diff --git a/access/session/server/auth_sessions.go b/access/session/server/auth_sessions.go index d00447154..8b24de249 100644 --- a/access/session/server/auth_sessions.go +++ b/access/session/server/auth_sessions.go @@ -72,7 +72,7 @@ func makeClientConnID(connType int, clientConnID, frontendConnID uint64) ClientC } func (c ClientConnID) String() string { - return fmt.Sprintf("{conn_type: %d, client_conn_id: %d, frontend_conn_id: %d}", c.connType, c.clientConnID, c.frontendConnID) + return fmt.Sprintf("%d@%d.%d", c.connType, c.clientConnID, c.frontendConnID) } func (c ClientConnID) Equal(id ClientConnID) bool { @@ -216,6 +216,12 @@ func (s *authSessions) setLayer(layer int32) { func (s *authSessions) destroySession(sessionId int64) bool { // TODO(@benqi): + if sess, ok := s.sessions[sessionId]; ok { + s.updates.onGenericSessionClose(sess) + delete(s.sessions, sessionId) + } else { + // + } return true } @@ -448,7 +454,7 @@ func (s *authSessions) onSessionData(sessionMsg *sessionData) { authKey := getCacheAuthKey(s.authKeyId) if authKey == nil { // err := fmt.Errorf("onSessionData - not found authKeyId") - glog.Errorf("onSessionData - error: {not found authKeyId}, data: {sess: %s, conn_id: %s, md: %s}", s, sessionMsg.connID, sessionMsg.cntl) + glog.Errorf("onSessionData - error: {not found authKeyId}, data: {sessions: %s, conn_id: %s, md: %s}", s, sessionMsg.connID, sessionMsg.cntl) return } else { s.onBindAuthKey(authKey) @@ -459,14 +465,12 @@ func (s *authSessions) onSessionData(sessionMsg *sessionData) { err = message.Decode(s.authKeyId, s.authKey, sessionMsg.buf[8:]) if err != nil { // TODO(@benqi): close frontend conn?? - glog.Error(err) - glog.Errorf("onSessionData - error: {%v}, data: {sess: %s, conn_id: %s, md: %s}", err, s, sessionMsg.connID, sessionMsg.cntl) + // glog.Error(err) + glog.Errorf("onSessionData - error: {%s}, data: {sessions: %s, conn_id: %s, md: %s}", err, s, sessionMsg.connID, sessionMsg.cntl) return } - glog.Infof("onSessionData - message: {%s}, data: {sess: %s, conn_id: %s, md: %s}", message, s, sessionMsg.connID, sessionMsg.cntl) - if s.cacheSalt == nil { s.cacheSalt, s.cacheLastSalt, _ = getOrFetchNewSalt(s.authKeyId) } else { @@ -476,18 +480,12 @@ func (s *authSessions) onSessionData(sessionMsg *sessionData) { } if s.cacheSalt == nil { - glog.Errorf("onSessionData - getOrFetchNewSalt nil error, data: {sess: %s, conn_id: %s, md: %s}", s, sessionMsg.connID, sessionMsg.cntl) + glog.Errorf("onSessionData - getOrFetchNewSalt nil error, data: {sessions: %s, conn_id: %s, md: %s}", s, sessionMsg.connID, sessionMsg.cntl) return } sess := s.getOrCreateSession(sessionMsg.connID, message.SessionId, message.Object) - //if sess.SessionType() == kSessionUnknown && !sess.sessionOnline() { - // pushSessionId := s.getPushSessionId() // getCachePushSessionID(s.AuthUserId, s.authKeyId) - // if pushSessionId != 0 && message.SessionId == pushSessionId { - // s.onBindPushSessionId(pushSessionId) - // sess = s.sessions[message.SessionId] - // } - //} + glog.Infof("onSessionData - message: {%s}, data: {sess: %s, sessions: %s, conn_id: %s, md: %s}", message, s, sess, sessionMsg.connID, sessionMsg.cntl) message2 := &mtproto.TLMessage2{ MsgId: message.MessageId, @@ -643,41 +641,5 @@ func (s *authSessions) getOrCreateSession(connId ClientConnID, sessionId int64, } } - //if sessType != kSessionUnknown { - // sess2 := newSession(sessionId, sessType, s) - // - // if sess != nil { - // sess2.MergeSession(sess) - // } - // - // if sess2.SessionType() == kSessionGeneric { - // s.updates.onGenericSessionNew(sess2) - // } else if sess2.SessionType() == kSessionPush { - // s.updates.onPushSessionNew(sess2) - // } - // - // s.sessions[sessionId] = sess2 - // sess = sess2 - //} else { - // pushSessionId := s.getPushSessionId() - // - // if sess == nil { - // if pushSessionId == sessionId { - // sess = newSession(sessionId, kSessionPush, s) - // s.updates.onPushSessionNew(sess) - // } else { - // sess = newSession(sessionId, kSessionUnknown, s) - // } - // // sess.onNewSession(connId, sessionId) - // s.sessions[sessionId] = sess - // } else { - // if pushSessionId == sessionId { - // - // } - // // nothing do - // } - //} - // glog.Info("getSessionType2 - ", reflect.TypeOf(request), ", sessType: ", sessType, ", sess: ", sess) - return sess } diff --git a/access/session/server/server.go b/access/session/server/server.go index 4015487aa..e3db0ce95 100644 --- a/access/session/server/server.go +++ b/access/session/server/server.go @@ -136,25 +136,28 @@ func (s *SessionServer) OnServerNewConnection(conn *net2.TcpConnection) { } func (s *SessionServer) OnServerMessageDataArrived(conn *net2.TcpConnection, cntl *zrpc.ZRpcController, msg proto.Message) error { - glog.Infof("onServerMessageDataArrived - receive data: {peer: %s, cntl: %s, msg: %s}", conn, cntl.RpcMeta, msg) + // glog.Infof("onServerMessageDataArrived - receive data: {peer: %s, cntl: %s, msg: %s}", conn, cntl.RpcMeta, msg) switch msg.(type) { case *mtproto.TLSessionClientCreated: - glog.Info("onSessionClientNew - sessionClientNew: ", conn) + // glog.Info("onSessionClientNew - sessionClientNew: ", conn) return s.onSessionClientNew(conn.GetConnID(), cntl, msg.(*mtproto.TLSessionClientCreated)) case *mtproto.TLSessionMessageData: return s.onSessionData(conn.GetConnID(), cntl, msg.(*mtproto.TLSessionMessageData)) case *mtproto.TLSessionClientClosed: - glog.Info("onSessionClientClosed - sessionClientClosed: ", conn) + // glog.Info("onSessionClientClosed - sessionClientClosed: ", conn) return s.onSessionClientClosed(conn.GetConnID(), cntl, msg.(*mtproto.TLSessionClientClosed)) case *mtproto.TLPushConnectToSessionServer: - glog.Infof("onPushConnectToSessionServer - request(ConnectToSessionServerReq): {%v}", msg) + // glog.Infof("onPushConnectToSessionServer - request(ConnectToSessionServerReq): {%v}", msg) pushSessionServerConnected := &mtproto.TLPushSessionServerConnected{Data2: &mtproto.ServerConnected_Data{ SessionServerId: getServerID(), ServerName: "session", }} serverConnected := pushSessionServerConnected.To_ServerConnected() - cntl.SetMethodName(proto.MessageName(serverConnected)) - zrpc.SendMessageByConn(conn, cntl, serverConnected) + + cntl2 := cntl.Clone() + cntl2.MoveAttachment() + cntl2.SetMethodName(proto.MessageName(serverConnected)) + zrpc.SendMessageByConn(conn, cntl2, serverConnected) case *mtproto.TLPushPushRpcResultData: pushData, _ := msg.(*mtproto.TLPushPushRpcResultData) @@ -165,11 +168,14 @@ func (s *SessionServer) OnServerMessageDataArrived(conn *net2.TcpConnection, cnt } else { mBool = mtproto.ToBool(true) } - cntl.SetMethodName(proto.MessageName(mBool)) - zrpc.SendMessageByConn(conn, cntl, mBool) + + cntl2 := cntl.Clone() + cntl2.MoveAttachment() + cntl2.SetMethodName(proto.MessageName(mBool)) + zrpc.SendMessageByConn(conn, cntl2, mBool) case *mtproto.TLPushPushUpdatesData: pushData, _ := msg.(*mtproto.TLPushPushUpdatesData) - glog.Info("pushData - ", pushData) + // glog.Info("pushData - ", pushData) // isPush := pushData.GetIsPush() == 1 err := s.onSyncData(pushData.GetAuthKeyId(), pushData.Pts, pushData.PtsCount, cntl) var mBool *mtproto.Bool @@ -178,8 +184,11 @@ func (s *SessionServer) OnServerMessageDataArrived(conn *net2.TcpConnection, cnt } else { mBool = mtproto.ToBool(true) } - cntl.SetMethodName(proto.MessageName(mBool)) - zrpc.SendMessageByConn(conn, cntl, mBool) + + cntl2 := cntl.Clone() + cntl2.MoveAttachment() + cntl2.SetMethodName(proto.MessageName(mBool)) + zrpc.SendMessageByConn(conn, cntl2, mBool) default: err := fmt.Errorf("invalid payload type: %v", msg) glog.Error(err) @@ -208,7 +217,7 @@ func (s *SessionServer) OnServerConnectionClosed(conn *net2.TcpConnection) { //////////////////////////////////////////////////////////////////////////////////////////////////////// func (s *SessionServer) onSessionClientNew(connID uint64, cntl *zrpc.ZRpcController, sessData *mtproto.TLSessionClientCreated) error { - glog.Infof("onSessionClientNew - receive data: {client_conn_id: %s, md: %s, sess_data: %s}", connID, cntl.RpcMeta, sessData) + // glog.Infof("onSessionClientNew - receive data: {client_conn_id: %s, md: %s, sess_data: %s}", connID, cntl.RpcMeta, sessData) //authKeyId := sessData.GetAuthKeyId() //var sessList *authSessions @@ -221,21 +230,25 @@ func (s *SessionServer) onSessionClientNew(connID uint64, cntl *zrpc.ZRpcControl // sessList, _ = vv.(*authSessions) //} // - //clientConnID := makeClientConnID(int(sessData.GetConnType()), connID, uint64(sessData.GetClientConnId())) + clientConnID := makeClientConnID(int(sessData.GetConnType()), connID, uint64(sessData.GetClientConnId())) + glog.Infof("onSessionClientNew - ID: {conn_id: %s, auth_key_id: %d}", clientConnID, sessData.GetAuthKeyId()) //return sessList.onSessionClientNew(clientConnID) return nil } //////////////////////////////////////////////////////////////////////////////////////////////////////// func (s *SessionServer) onSessionData(connID uint64, cntl *zrpc.ZRpcController, sessData *mtproto.TLSessionMessageData) error { - glog.Infof("onSessionData - receive data: {conn_id: %d, md: %s, sess_data: %s}", - connID, - cntl.RpcMeta, - sessData) + //glog.Infof("onSessionData - receive data: {conn_id: %d, md: %s, sess_data: %s}", + // connID, + // cntl.RpcMeta, + // sessData) + clientConnID := makeClientConnID(int(sessData.GetConnType()), connID, uint64(sessData.GetClientConnId())) authKeyId := sessData.GetAuthKeyId() var sessList *authSessions if vv, ok := s.sessionManager.Load(authKeyId); !ok { + glog.Infof("onSessionDataNew - ID: {conn_id: %s, auth_key_id: %d}", clientConnID, sessData.GetAuthKeyId()) + sessList = makeAuthSessions(authKeyId) s.sessionManager.Store(authKeyId, sessList) s.onNewSessionClientManager(sessList) @@ -243,27 +256,23 @@ func (s *SessionServer) onSessionData(connID uint64, cntl *zrpc.ZRpcController, sessList, _ = vv.(*authSessions) } - clientConnID := makeClientConnID(int(sessData.GetConnType()), connID, uint64(sessData.GetClientConnId())) return sessList.onSessionDataArrived(clientConnID, cntl, cntl.MoveAttachment()) } func (s *SessionServer) onSessionClientClosed(connID uint64, cntl *zrpc.ZRpcController, sessData *mtproto.TLSessionClientClosed) error { - glog.Infof("onSessionClientClosed - receive data: {client_conn_id: %d, md: %s, sess_data: %s}", - connID, - cntl, - sessData) + clientConnID := makeClientConnID(int(sessData.GetConnType()), connID, uint64(sessData.GetClientConnId())) + glog.Infof("onSessionClientClosed - ID: {conn_id: %s, auth_key_id: %d}", clientConnID, sessData.GetAuthKeyId()) var sessList *authSessions if vv, ok := s.sessionManager.Load(sessData.GetAuthKeyId()); !ok { - err := fmt.Errorf("onSessionClientClosed - not find sessionList by authKeyId: {%d}", sessData.GetAuthKeyId()) + err := fmt.Errorf("onSessionClientClosed - not find sessionList by ID: {conn_id: %s, auth_key_id: %d}", clientConnID, sessData.GetAuthKeyId()) glog.Warning(err) return err } else { sessList, _ = vv.(*authSessions) } - clientConnID := makeClientConnID(int(sessData.GetConnType()), connID, uint64(sessData.GetClientConnId())) return sessList.onSessionClientClosed(clientConnID) } diff --git a/access/session/server/session.go b/access/session/server/session.go index 1e86ad9c9..f892c521b 100644 --- a/access/session/server/session.go +++ b/access/session/server/session.go @@ -307,10 +307,12 @@ func (c *session) processMessageData(id ClientConnID, cntl *zrpc.ZRpcController, // 1. check salt if !c.checkBadServerSalt(id, cntl, salt, msg) { - glog.Infof("salt invalid - {sess: %s, conn_id: %s, md: %s}", c, id, cntl) + // glog.Infof("salt invalid - {sess: %s, conn_id: %s, md: %s}", c, id, cntl) return } + c.closeDate = time.Now().Unix() + kDefaultPingTimeout + kPingAddTimeout + //if !c.checkBadMsgNotification(id, cntl, msg) { // glog.Infof("badMsgNotification - {sess: %s, conn_id: %s, md: %s}", c, id, cntl) // return @@ -931,7 +933,7 @@ func (c *session) onPing(connID ClientConnID, cntl *zrpc.ZRpcController, msgId i }} c.pendingMessages = append(c.pendingMessages, makePendingMessage(0, false, pong)) - c.closeDate = time.Now().Unix() + kDefaultPingTimeout + kPingAddTimeout + // c.closeDate = time.Now().Unix() + kDefaultPingTimeout + kPingAddTimeout } func (c *session) onPingDelayDisconnect(connID ClientConnID, cntl *zrpc.ZRpcController, msgId int64, seqNo int32, pingDelayDisconnect *mtproto.TLPingDelayDisconnect) { diff --git a/access/session/server/updates_manager.go b/access/session/server/updates_manager.go index 815d5c985..c310f6029 100644 --- a/access/session/server/updates_manager.go +++ b/access/session/server/updates_manager.go @@ -55,8 +55,14 @@ func (m *updatesManager) onGenericSessionNew(s sessionBase) { m.genericSessions.PushBack(ss) } -func (m *updatesManager) onGenericSessionClose() { - // m.genericSession = nil +func (m *updatesManager) onGenericSessionClose(s sessionBase) { + ss := s.(*genericSession) + for e := m.genericSessions.Front(); e != nil; e = e.Next() { + if ss.SessionId() == e.Value.(*genericSession).sessionId { + m.genericSessions.Remove(e) + break + } + } } func (m *updatesManager) onPushSessionNew(s sessionBase) { diff --git a/messenger/biz_server/server/messages/messages.getRecentLocationsLayer72_handler.go b/messenger/biz_server/server/messages/messages.getRecentLocationsLayer72_handler.go new file mode 100644 index 000000000..f9d5730a5 --- /dev/null +++ b/messenger/biz_server/server/messages/messages.getRecentLocationsLayer72_handler.go @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2018-present, NebulaChat Studio (https://nebula.chat). + * All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package messages + +import ( + "github.com/golang/glog" + "github.com/nebula-chat/chatengine/mtproto" + "github.com/nebula-chat/chatengine/pkg/grpc_util" + "github.com/nebula-chat/chatengine/pkg/logger" + "golang.org/x/net/context" +) + +// messages.getRecentLocations#249431e2 peer:InputPeer limit:int = messages.Messages; +func (s *MessagesServiceImpl) MessagesGetRecentLocationsLayer72(ctx context.Context, request *mtproto.TLMessagesGetRecentLocationsLayer72) (*mtproto.Messages_Messages, error) { + md := grpc_util.RpcMetadataFromIncoming(ctx) + glog.Infof("messages.getRecentLocations#249431e2 - metadata: %s, request: %s", logger.JsonDebugData(md), logger.JsonDebugData(request)) + + // TODO(@benqi): Impl MessagesSearchGlobal logic + messages := &mtproto.TLMessagesMessages{Data2: &mtproto.Messages_Messages_Data{ + Messages: []*mtproto.Message{}, + Chats: []*mtproto.Chat{}, + Users: []*mtproto.User{}, + }} + + glog.Infof("messages.getRecentLocations#249431e2 - reply: %s", logger.JsonDebugData(messages)) + return messages.To_Messages_Messages(), nil +} diff --git a/messenger/biz_server/server/messages/messages.getRecentLocations_handler.go b/messenger/biz_server/server/messages/messages.getRecentLocations_handler.go index 2e69cfb1b..a2aaf0237 100644 --- a/messenger/biz_server/server/messages/messages.getRecentLocations_handler.go +++ b/messenger/biz_server/server/messages/messages.getRecentLocations_handler.go @@ -19,16 +19,16 @@ package messages import ( "github.com/golang/glog" + "github.com/nebula-chat/chatengine/mtproto" "github.com/nebula-chat/chatengine/pkg/grpc_util" "github.com/nebula-chat/chatengine/pkg/logger" - "github.com/nebula-chat/chatengine/mtproto" "golang.org/x/net/context" ) -// messages.getRecentLocations#249431e2 peer:InputPeer limit:int = messages.Messages; +// messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages; func (s *MessagesServiceImpl) MessagesGetRecentLocations(ctx context.Context, request *mtproto.TLMessagesGetRecentLocations) (*mtproto.Messages_Messages, error) { md := grpc_util.RpcMetadataFromIncoming(ctx) - glog.Infof("messages.getRecentLocations#249431e2 - metadata: %s, request: %s", logger.JsonDebugData(md), logger.JsonDebugData(request)) + glog.Infof("messages.getRecentLocations#bbc45b09 - metadata: %s, request: %s", logger.JsonDebugData(md), logger.JsonDebugData(request)) // TODO(@benqi): Impl MessagesSearchGlobal logic messages := &mtproto.TLMessagesMessages{Data2: &mtproto.Messages_Messages_Data{ @@ -37,6 +37,6 @@ func (s *MessagesServiceImpl) MessagesGetRecentLocations(ctx context.Context, re Users: []*mtproto.User{}, }} - glog.Infof("messages.getRecentLocations#249431e2 - reply: %s", logger.JsonDebugData(messages)) + glog.Infof("messages.getRecentLocations#bbc45b09 - reply: %s", logger.JsonDebugData(messages)) return messages.To_Messages_Messages(), nil } diff --git a/mtproto/codec_schema.tl.pb.go b/mtproto/codec_schema.tl.pb.go index 5dd02be9d..12e9c59cf 100644 --- a/mtproto/codec_schema.tl.pb.go +++ b/mtproto/codec_schema.tl.pb.go @@ -793,6 +793,7 @@ var registers2 = map[int32]TLObjectHelper{ int32(TLConstructor_CRC32_account_unregisterDeviceLayer71): TLObjectHelper{newTLObjectFunc: func() TLObject { return NewTLAccountUnregisterDeviceLayer71() }, layer: 71, classIdList: []int32{}}, int32(TLConstructor_CRC32_messages_getMessagesLayer71): TLObjectHelper{newTLObjectFunc: func() TLObject { return NewTLMessagesGetMessagesLayer71() }, layer: 71, classIdList: []int32{}}, int32(TLConstructor_CRC32_langpack_getLangPackLayer71): TLObjectHelper{newTLObjectFunc: func() TLObject { return NewTLLangpackGetLangPackLayer71() }, layer: 71, classIdList: []int32{}}, + int32(TLConstructor_CRC32_messages_getRecentLocationsLayer72): TLObjectHelper{newTLObjectFunc: func() TLObject { return NewTLMessagesGetRecentLocationsLayer72() }, layer: 72, classIdList: []int32{}}, int32(TLConstructor_CRC32_invokeAfterMsg): TLObjectHelper{newTLObjectFunc: func() TLObject { return NewTLInvokeAfterMsg() }, layer: 85, classIdList: []int32{}}, int32(TLConstructor_CRC32_invokeAfterMsgs): TLObjectHelper{newTLObjectFunc: func() TLObject { return NewTLInvokeAfterMsgs() }, layer: 85, classIdList: []int32{}}, int32(TLConstructor_CRC32_initConnection): TLObjectHelper{newTLObjectFunc: func() TLObject { return NewTLInitConnection() }, layer: 85, classIdList: []int32{}}, @@ -1155,6 +1156,426 @@ func (m *TLFutureSalt) EncodeToLayerIgnore(layer int) []byte { ////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// SetClient_DHParamsAnswer <-- +// + TL_DhGenOk +// + TL_DhGenRetry +// + TL_DhGenFail +// + +func (m *SetClient_DHParamsAnswer) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_dh_gen_ok: + t := m.To_DhGenOk() + return t.Encode() + case TLConstructor_CRC32_dh_gen_retry: + t := m.To_DhGenRetry() + return t.Encode() + case TLConstructor_CRC32_dh_gen_fail: + t := m.To_DhGenFail() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *SetClient_DHParamsAnswer) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_dh_gen_ok: + t := m.To_DhGenOk() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_dh_gen_retry: + t := m.To_DhGenRetry() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_dh_gen_fail: + t := m.To_DhGenFail() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *SetClient_DHParamsAnswer) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_dh_gen_ok: + m2 := &TLDhGenOk{Data2: &SetClient_DHParamsAnswer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_dh_gen_retry: + m2 := &TLDhGenRetry{Data2: &SetClient_DHParamsAnswer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_dh_gen_fail: + m2 := &TLDhGenFail{Data2: &SetClient_DHParamsAnswer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer; +func (m *SetClient_DHParamsAnswer) To_DhGenOk() *TLDhGenOk { + return &TLDhGenOk{ + Data2: m.Data2, + } +} + +// dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer; +func (m *SetClient_DHParamsAnswer) To_DhGenRetry() *TLDhGenRetry { + return &TLDhGenRetry{ + Data2: m.Data2, + } +} + +// dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer; +func (m *SetClient_DHParamsAnswer) To_DhGenFail() *TLDhGenFail { + return &TLDhGenFail{ + Data2: m.Data2, + } +} + +// dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer; +func (m *TLDhGenOk) To_SetClient_DHParamsAnswer() *SetClient_DHParamsAnswer { + return &SetClient_DHParamsAnswer{ + Constructor: TLConstructor_CRC32_dh_gen_ok, + Data2: m.Data2, + } +} + +func (m *TLDhGenOk) SetNonce(v []byte) { m.Data2.Nonce = v } +func (m *TLDhGenOk) GetNonce() []byte { return m.Data2.Nonce } + +func (m *TLDhGenOk) SetServerNonce(v []byte) { m.Data2.ServerNonce = v } +func (m *TLDhGenOk) GetServerNonce() []byte { return m.Data2.ServerNonce } + +func (m *TLDhGenOk) SetNewNonceHash1(v []byte) { m.Data2.NewNonceHash1 = v } +func (m *TLDhGenOk) GetNewNonceHash1() []byte { return m.Data2.NewNonceHash1 } + +func NewTLDhGenOk() *TLDhGenOk { + return &TLDhGenOk{Data2: &SetClient_DHParamsAnswer_Data{}} +} + +func (m *TLDhGenOk) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_dh_gen_ok)) + + x.Bytes(m.GetNonce()) + x.Bytes(m.GetServerNonce()) + x.Bytes(m.GetNewNonceHash1()) + + return x.buf +} + +func (m *TLDhGenOk) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_dh_gen_ok)) + + x.Bytes(m.GetNonce()) + x.Bytes(m.GetServerNonce()) + x.Bytes(m.GetNewNonceHash1()) + + return x.buf +} + +func (m *TLDhGenOk) Decode(dbuf *DecodeBuf) error { + m.SetNonce(dbuf.Bytes(16)) + m.SetServerNonce(dbuf.Bytes(16)) + m.SetNewNonceHash1(dbuf.Bytes(16)) + + return dbuf.err +} + +// dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer; +func (m *TLDhGenRetry) To_SetClient_DHParamsAnswer() *SetClient_DHParamsAnswer { + return &SetClient_DHParamsAnswer{ + Constructor: TLConstructor_CRC32_dh_gen_retry, + Data2: m.Data2, + } +} + +func (m *TLDhGenRetry) SetNonce(v []byte) { m.Data2.Nonce = v } +func (m *TLDhGenRetry) GetNonce() []byte { return m.Data2.Nonce } + +func (m *TLDhGenRetry) SetServerNonce(v []byte) { m.Data2.ServerNonce = v } +func (m *TLDhGenRetry) GetServerNonce() []byte { return m.Data2.ServerNonce } + +func (m *TLDhGenRetry) SetNewNonceHash2(v []byte) { m.Data2.NewNonceHash2 = v } +func (m *TLDhGenRetry) GetNewNonceHash2() []byte { return m.Data2.NewNonceHash2 } + +func NewTLDhGenRetry() *TLDhGenRetry { + return &TLDhGenRetry{Data2: &SetClient_DHParamsAnswer_Data{}} +} + +func (m *TLDhGenRetry) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_dh_gen_retry)) + + x.Bytes(m.GetNonce()) + x.Bytes(m.GetServerNonce()) + x.Bytes(m.GetNewNonceHash2()) + + return x.buf +} + +func (m *TLDhGenRetry) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_dh_gen_retry)) + + x.Bytes(m.GetNonce()) + x.Bytes(m.GetServerNonce()) + x.Bytes(m.GetNewNonceHash2()) + + return x.buf +} + +func (m *TLDhGenRetry) Decode(dbuf *DecodeBuf) error { + m.SetNonce(dbuf.Bytes(16)) + m.SetServerNonce(dbuf.Bytes(16)) + m.SetNewNonceHash2(dbuf.Bytes(16)) + + return dbuf.err +} + +// dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer; +func (m *TLDhGenFail) To_SetClient_DHParamsAnswer() *SetClient_DHParamsAnswer { + return &SetClient_DHParamsAnswer{ + Constructor: TLConstructor_CRC32_dh_gen_fail, + Data2: m.Data2, + } +} + +func (m *TLDhGenFail) SetNonce(v []byte) { m.Data2.Nonce = v } +func (m *TLDhGenFail) GetNonce() []byte { return m.Data2.Nonce } + +func (m *TLDhGenFail) SetServerNonce(v []byte) { m.Data2.ServerNonce = v } +func (m *TLDhGenFail) GetServerNonce() []byte { return m.Data2.ServerNonce } + +func (m *TLDhGenFail) SetNewNonceHash3(v []byte) { m.Data2.NewNonceHash3 = v } +func (m *TLDhGenFail) GetNewNonceHash3() []byte { return m.Data2.NewNonceHash3 } + +func NewTLDhGenFail() *TLDhGenFail { + return &TLDhGenFail{Data2: &SetClient_DHParamsAnswer_Data{}} +} + +func (m *TLDhGenFail) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_dh_gen_fail)) + + x.Bytes(m.GetNonce()) + x.Bytes(m.GetServerNonce()) + x.Bytes(m.GetNewNonceHash3()) + + return x.buf +} + +func (m *TLDhGenFail) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_dh_gen_fail)) + + x.Bytes(m.GetNonce()) + x.Bytes(m.GetServerNonce()) + x.Bytes(m.GetNewNonceHash3()) + + return x.buf +} + +func (m *TLDhGenFail) Decode(dbuf *DecodeBuf) error { + m.SetNonce(dbuf.Bytes(16)) + m.SetServerNonce(dbuf.Bytes(16)) + m.SetNewNonceHash3(dbuf.Bytes(16)) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// DestroyAuthKeyRes <-- +// + TL_DestroyAuthKeyOk +// + TL_DestroyAuthKeyNone +// + TL_DestroyAuthKeyFail +// + +func (m *DestroyAuthKeyRes) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_destroy_auth_key_ok: + t := m.To_DestroyAuthKeyOk() + return t.Encode() + case TLConstructor_CRC32_destroy_auth_key_none: + t := m.To_DestroyAuthKeyNone() + return t.Encode() + case TLConstructor_CRC32_destroy_auth_key_fail: + t := m.To_DestroyAuthKeyFail() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *DestroyAuthKeyRes) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_destroy_auth_key_ok: + t := m.To_DestroyAuthKeyOk() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_destroy_auth_key_none: + t := m.To_DestroyAuthKeyNone() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_destroy_auth_key_fail: + t := m.To_DestroyAuthKeyFail() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *DestroyAuthKeyRes) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_destroy_auth_key_ok: + m2 := &TLDestroyAuthKeyOk{Data2: &DestroyAuthKeyRes_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_destroy_auth_key_none: + m2 := &TLDestroyAuthKeyNone{Data2: &DestroyAuthKeyRes_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_destroy_auth_key_fail: + m2 := &TLDestroyAuthKeyFail{Data2: &DestroyAuthKeyRes_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// destroy_auth_key_ok#f660e1d4 = DestroyAuthKeyRes; +func (m *DestroyAuthKeyRes) To_DestroyAuthKeyOk() *TLDestroyAuthKeyOk { + return &TLDestroyAuthKeyOk{ + Data2: m.Data2, + } +} + +// destroy_auth_key_none#0a9f2259 = DestroyAuthKeyRes; +func (m *DestroyAuthKeyRes) To_DestroyAuthKeyNone() *TLDestroyAuthKeyNone { + return &TLDestroyAuthKeyNone{ + Data2: m.Data2, + } +} + +// destroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes; +func (m *DestroyAuthKeyRes) To_DestroyAuthKeyFail() *TLDestroyAuthKeyFail { + return &TLDestroyAuthKeyFail{ + Data2: m.Data2, + } +} + +// destroy_auth_key_ok#f660e1d4 = DestroyAuthKeyRes; +func (m *TLDestroyAuthKeyOk) To_DestroyAuthKeyRes() *DestroyAuthKeyRes { + return &DestroyAuthKeyRes{ + Constructor: TLConstructor_CRC32_destroy_auth_key_ok, + Data2: m.Data2, + } +} + +func NewTLDestroyAuthKeyOk() *TLDestroyAuthKeyOk { + return &TLDestroyAuthKeyOk{Data2: &DestroyAuthKeyRes_Data{}} +} + +func (m *TLDestroyAuthKeyOk) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_destroy_auth_key_ok)) + + return x.buf +} + +func (m *TLDestroyAuthKeyOk) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_destroy_auth_key_ok)) + + return x.buf +} + +func (m *TLDestroyAuthKeyOk) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// destroy_auth_key_none#0a9f2259 = DestroyAuthKeyRes; +func (m *TLDestroyAuthKeyNone) To_DestroyAuthKeyRes() *DestroyAuthKeyRes { + return &DestroyAuthKeyRes{ + Constructor: TLConstructor_CRC32_destroy_auth_key_none, + Data2: m.Data2, + } +} + +func NewTLDestroyAuthKeyNone() *TLDestroyAuthKeyNone { + return &TLDestroyAuthKeyNone{Data2: &DestroyAuthKeyRes_Data{}} +} + +func (m *TLDestroyAuthKeyNone) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_destroy_auth_key_none)) + + return x.buf +} + +func (m *TLDestroyAuthKeyNone) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_destroy_auth_key_none)) + + return x.buf +} + +func (m *TLDestroyAuthKeyNone) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// destroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes; +func (m *TLDestroyAuthKeyFail) To_DestroyAuthKeyRes() *DestroyAuthKeyRes { + return &DestroyAuthKeyRes{ + Constructor: TLConstructor_CRC32_destroy_auth_key_fail, + Data2: m.Data2, + } +} + +func NewTLDestroyAuthKeyFail() *TLDestroyAuthKeyFail { + return &TLDestroyAuthKeyFail{Data2: &DestroyAuthKeyRes_Data{}} +} + +func (m *TLDestroyAuthKeyFail) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_destroy_auth_key_fail)) + + return x.buf +} + +func (m *TLDestroyAuthKeyFail) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_destroy_auth_key_fail)) + + return x.buf +} + +func (m *TLDestroyAuthKeyFail) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + /////////////////////////////////////////////////////////////////////////////// // ResPQ <-- // + TL_ResPQ @@ -2068,22 +2489,18 @@ func (m *TLClient_DHInnerData) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// SetClient_DHParamsAnswer <-- -// + TL_DhGenOk -// + TL_DhGenRetry -// + TL_DhGenFail +// MsgDetailedInfo <-- +// + TL_MsgDetailedInfo +// + TL_MsgNewDetailedInfo // -func (m *SetClient_DHParamsAnswer) Encode() []byte { +func (m *MsgDetailedInfo) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_dh_gen_ok: - t := m.To_DhGenOk() - return t.Encode() - case TLConstructor_CRC32_dh_gen_retry: - t := m.To_DhGenRetry() + case TLConstructor_CRC32_msg_detailed_info: + t := m.To_MsgDetailedInfo() return t.Encode() - case TLConstructor_CRC32_dh_gen_fail: - t := m.To_DhGenFail() + case TLConstructor_CRC32_msg_new_detailed_info: + t := m.To_MsgNewDetailedInfo() return t.Encode() default: @@ -2092,17 +2509,14 @@ func (m *SetClient_DHParamsAnswer) Encode() []byte { } } -func (m *SetClient_DHParamsAnswer) EncodeToLayer(layer int) []byte { +func (m *MsgDetailedInfo) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_dh_gen_ok: - t := m.To_DhGenOk() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_dh_gen_retry: - t := m.To_DhGenRetry() + case TLConstructor_CRC32_msg_detailed_info: + t := m.To_MsgDetailedInfo() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_dh_gen_fail: - t := m.To_DhGenFail() + case TLConstructor_CRC32_msg_new_detailed_info: + t := m.To_MsgNewDetailedInfo() return t.EncodeToLayer(layer) default: @@ -2111,19 +2525,15 @@ func (m *SetClient_DHParamsAnswer) EncodeToLayer(layer int) []byte { } } -func (m *SetClient_DHParamsAnswer) Decode(dbuf *DecodeBuf) error { +func (m *MsgDetailedInfo) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_dh_gen_ok: - m2 := &TLDhGenOk{Data2: &SetClient_DHParamsAnswer_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_dh_gen_retry: - m2 := &TLDhGenRetry{Data2: &SetClient_DHParamsAnswer_Data{}} + case TLConstructor_CRC32_msg_detailed_info: + m2 := &TLMsgDetailedInfo{Data2: &MsgDetailedInfo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_dh_gen_fail: - m2 := &TLDhGenFail{Data2: &SetClient_DHParamsAnswer_Data{}} + case TLConstructor_CRC32_msg_new_detailed_info: + m2 := &TLMsgNewDetailedInfo{Data2: &MsgDetailedInfo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -2133,197 +2543,235 @@ func (m *SetClient_DHParamsAnswer) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer; -func (m *SetClient_DHParamsAnswer) To_DhGenOk() *TLDhGenOk { - return &TLDhGenOk{ - Data2: m.Data2, - } -} - -// dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer; -func (m *SetClient_DHParamsAnswer) To_DhGenRetry() *TLDhGenRetry { - return &TLDhGenRetry{ +// msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo; +func (m *MsgDetailedInfo) To_MsgDetailedInfo() *TLMsgDetailedInfo { + return &TLMsgDetailedInfo{ Data2: m.Data2, } } -// dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer; -func (m *SetClient_DHParamsAnswer) To_DhGenFail() *TLDhGenFail { - return &TLDhGenFail{ +// msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo; +func (m *MsgDetailedInfo) To_MsgNewDetailedInfo() *TLMsgNewDetailedInfo { + return &TLMsgNewDetailedInfo{ Data2: m.Data2, } } -// dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer; -func (m *TLDhGenOk) To_SetClient_DHParamsAnswer() *SetClient_DHParamsAnswer { - return &SetClient_DHParamsAnswer{ - Constructor: TLConstructor_CRC32_dh_gen_ok, +// msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo; +func (m *TLMsgDetailedInfo) To_MsgDetailedInfo() *MsgDetailedInfo { + return &MsgDetailedInfo{ + Constructor: TLConstructor_CRC32_msg_detailed_info, Data2: m.Data2, } } -func (m *TLDhGenOk) SetNonce(v []byte) { m.Data2.Nonce = v } -func (m *TLDhGenOk) GetNonce() []byte { return m.Data2.Nonce } +func (m *TLMsgDetailedInfo) SetMsgId(v int64) { m.Data2.MsgId = v } +func (m *TLMsgDetailedInfo) GetMsgId() int64 { return m.Data2.MsgId } -func (m *TLDhGenOk) SetServerNonce(v []byte) { m.Data2.ServerNonce = v } -func (m *TLDhGenOk) GetServerNonce() []byte { return m.Data2.ServerNonce } +func (m *TLMsgDetailedInfo) SetAnswerMsgId(v int64) { m.Data2.AnswerMsgId = v } +func (m *TLMsgDetailedInfo) GetAnswerMsgId() int64 { return m.Data2.AnswerMsgId } -func (m *TLDhGenOk) SetNewNonceHash1(v []byte) { m.Data2.NewNonceHash1 = v } -func (m *TLDhGenOk) GetNewNonceHash1() []byte { return m.Data2.NewNonceHash1 } +func (m *TLMsgDetailedInfo) SetBytes(v int32) { m.Data2.Bytes = v } +func (m *TLMsgDetailedInfo) GetBytes() int32 { return m.Data2.Bytes } -func NewTLDhGenOk() *TLDhGenOk { - return &TLDhGenOk{Data2: &SetClient_DHParamsAnswer_Data{}} +func (m *TLMsgDetailedInfo) SetStatus(v int32) { m.Data2.Status = v } +func (m *TLMsgDetailedInfo) GetStatus() int32 { return m.Data2.Status } + +func NewTLMsgDetailedInfo() *TLMsgDetailedInfo { + return &TLMsgDetailedInfo{Data2: &MsgDetailedInfo_Data{}} } -func (m *TLDhGenOk) Encode() []byte { +func (m *TLMsgDetailedInfo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dh_gen_ok)) + x.Int(int32(TLConstructor_CRC32_msg_detailed_info)) - x.Bytes(m.GetNonce()) - x.Bytes(m.GetServerNonce()) - x.Bytes(m.GetNewNonceHash1()) + x.Long(m.GetMsgId()) + x.Long(m.GetAnswerMsgId()) + x.Int(m.GetBytes()) + x.Int(m.GetStatus()) return x.buf } -func (m *TLDhGenOk) EncodeToLayer(layer int) []byte { +func (m *TLMsgDetailedInfo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dh_gen_ok)) + x.Int(int32(TLConstructor_CRC32_msg_detailed_info)) - x.Bytes(m.GetNonce()) - x.Bytes(m.GetServerNonce()) - x.Bytes(m.GetNewNonceHash1()) + x.Long(m.GetMsgId()) + x.Long(m.GetAnswerMsgId()) + x.Int(m.GetBytes()) + x.Int(m.GetStatus()) return x.buf } -func (m *TLDhGenOk) Decode(dbuf *DecodeBuf) error { - m.SetNonce(dbuf.Bytes(16)) - m.SetServerNonce(dbuf.Bytes(16)) - m.SetNewNonceHash1(dbuf.Bytes(16)) +func (m *TLMsgDetailedInfo) Decode(dbuf *DecodeBuf) error { + m.SetMsgId(dbuf.Long()) + m.SetAnswerMsgId(dbuf.Long()) + m.SetBytes(dbuf.Int()) + m.SetStatus(dbuf.Int()) return dbuf.err } -// dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer; -func (m *TLDhGenRetry) To_SetClient_DHParamsAnswer() *SetClient_DHParamsAnswer { - return &SetClient_DHParamsAnswer{ - Constructor: TLConstructor_CRC32_dh_gen_retry, +// msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo; +func (m *TLMsgNewDetailedInfo) To_MsgDetailedInfo() *MsgDetailedInfo { + return &MsgDetailedInfo{ + Constructor: TLConstructor_CRC32_msg_new_detailed_info, Data2: m.Data2, } } -func (m *TLDhGenRetry) SetNonce(v []byte) { m.Data2.Nonce = v } -func (m *TLDhGenRetry) GetNonce() []byte { return m.Data2.Nonce } +func (m *TLMsgNewDetailedInfo) SetAnswerMsgId(v int64) { m.Data2.AnswerMsgId = v } +func (m *TLMsgNewDetailedInfo) GetAnswerMsgId() int64 { return m.Data2.AnswerMsgId } -func (m *TLDhGenRetry) SetServerNonce(v []byte) { m.Data2.ServerNonce = v } -func (m *TLDhGenRetry) GetServerNonce() []byte { return m.Data2.ServerNonce } +func (m *TLMsgNewDetailedInfo) SetBytes(v int32) { m.Data2.Bytes = v } +func (m *TLMsgNewDetailedInfo) GetBytes() int32 { return m.Data2.Bytes } -func (m *TLDhGenRetry) SetNewNonceHash2(v []byte) { m.Data2.NewNonceHash2 = v } -func (m *TLDhGenRetry) GetNewNonceHash2() []byte { return m.Data2.NewNonceHash2 } +func (m *TLMsgNewDetailedInfo) SetStatus(v int32) { m.Data2.Status = v } +func (m *TLMsgNewDetailedInfo) GetStatus() int32 { return m.Data2.Status } -func NewTLDhGenRetry() *TLDhGenRetry { - return &TLDhGenRetry{Data2: &SetClient_DHParamsAnswer_Data{}} +func NewTLMsgNewDetailedInfo() *TLMsgNewDetailedInfo { + return &TLMsgNewDetailedInfo{Data2: &MsgDetailedInfo_Data{}} } -func (m *TLDhGenRetry) Encode() []byte { +func (m *TLMsgNewDetailedInfo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dh_gen_retry)) + x.Int(int32(TLConstructor_CRC32_msg_new_detailed_info)) - x.Bytes(m.GetNonce()) - x.Bytes(m.GetServerNonce()) - x.Bytes(m.GetNewNonceHash2()) + x.Long(m.GetAnswerMsgId()) + x.Int(m.GetBytes()) + x.Int(m.GetStatus()) return x.buf } -func (m *TLDhGenRetry) EncodeToLayer(layer int) []byte { +func (m *TLMsgNewDetailedInfo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dh_gen_retry)) + x.Int(int32(TLConstructor_CRC32_msg_new_detailed_info)) - x.Bytes(m.GetNonce()) - x.Bytes(m.GetServerNonce()) - x.Bytes(m.GetNewNonceHash2()) + x.Long(m.GetAnswerMsgId()) + x.Int(m.GetBytes()) + x.Int(m.GetStatus()) return x.buf } -func (m *TLDhGenRetry) Decode(dbuf *DecodeBuf) error { - m.SetNonce(dbuf.Bytes(16)) - m.SetServerNonce(dbuf.Bytes(16)) - m.SetNewNonceHash2(dbuf.Bytes(16)) +func (m *TLMsgNewDetailedInfo) Decode(dbuf *DecodeBuf) error { + m.SetAnswerMsgId(dbuf.Long()) + m.SetBytes(dbuf.Int()) + m.SetStatus(dbuf.Int()) return dbuf.err } -// dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer; -func (m *TLDhGenFail) To_SetClient_DHParamsAnswer() *SetClient_DHParamsAnswer { - return &SetClient_DHParamsAnswer{ - Constructor: TLConstructor_CRC32_dh_gen_fail, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// MsgResendReq <-- +// + TL_MsgResendReq +// + +func (m *MsgResendReq) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_msg_resend_req: + t := m.To_MsgResendReq() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLDhGenFail) SetNonce(v []byte) { m.Data2.Nonce = v } -func (m *TLDhGenFail) GetNonce() []byte { return m.Data2.Nonce } +func (m *MsgResendReq) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_msg_resend_req: + t := m.To_MsgResendReq() + return t.EncodeToLayer(layer) -func (m *TLDhGenFail) SetServerNonce(v []byte) { m.Data2.ServerNonce = v } -func (m *TLDhGenFail) GetServerNonce() []byte { return m.Data2.ServerNonce } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLDhGenFail) SetNewNonceHash3(v []byte) { m.Data2.NewNonceHash3 = v } -func (m *TLDhGenFail) GetNewNonceHash3() []byte { return m.Data2.NewNonceHash3 } +func (m *MsgResendReq) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_msg_resend_req: + m2 := &TLMsgResendReq{Data2: &MsgResendReq_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func NewTLDhGenFail() *TLDhGenFail { - return &TLDhGenFail{Data2: &SetClient_DHParamsAnswer_Data{}} + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLDhGenFail) Encode() []byte { +// msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq; +func (m *MsgResendReq) To_MsgResendReq() *TLMsgResendReq { + return &TLMsgResendReq{ + Data2: m.Data2, + } +} + +// msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq; +func (m *TLMsgResendReq) To_MsgResendReq() *MsgResendReq { + return &MsgResendReq{ + Constructor: TLConstructor_CRC32_msg_resend_req, + Data2: m.Data2, + } +} + +func (m *TLMsgResendReq) SetMsgIds(v []int64) { m.Data2.MsgIds = v } +func (m *TLMsgResendReq) GetMsgIds() []int64 { return m.Data2.MsgIds } + +func NewTLMsgResendReq() *TLMsgResendReq { + return &TLMsgResendReq{Data2: &MsgResendReq_Data{}} +} + +func (m *TLMsgResendReq) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dh_gen_fail)) + x.Int(int32(TLConstructor_CRC32_msg_resend_req)) - x.Bytes(m.GetNonce()) - x.Bytes(m.GetServerNonce()) - x.Bytes(m.GetNewNonceHash3()) + x.VectorLong(m.GetMsgIds()) return x.buf } -func (m *TLDhGenFail) EncodeToLayer(layer int) []byte { +func (m *TLMsgResendReq) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dh_gen_fail)) + x.Int(int32(TLConstructor_CRC32_msg_resend_req)) - x.Bytes(m.GetNonce()) - x.Bytes(m.GetServerNonce()) - x.Bytes(m.GetNewNonceHash3()) + x.VectorLong(m.GetMsgIds()) return x.buf } -func (m *TLDhGenFail) Decode(dbuf *DecodeBuf) error { - m.SetNonce(dbuf.Bytes(16)) - m.SetServerNonce(dbuf.Bytes(16)) - m.SetNewNonceHash3(dbuf.Bytes(16)) +func (m *TLMsgResendReq) Decode(dbuf *DecodeBuf) error { + m.SetMsgIds(dbuf.VectorLong()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// DestroyAuthKeyRes <-- -// + TL_DestroyAuthKeyOk -// + TL_DestroyAuthKeyNone -// + TL_DestroyAuthKeyFail +// RpcDropAnswer <-- +// + TL_RpcAnswerUnknown +// + TL_RpcAnswerDroppedRunning +// + TL_RpcAnswerDropped // -func (m *DestroyAuthKeyRes) Encode() []byte { +func (m *RpcDropAnswer) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_destroy_auth_key_ok: - t := m.To_DestroyAuthKeyOk() + case TLConstructor_CRC32_rpc_answer_unknown: + t := m.To_RpcAnswerUnknown() return t.Encode() - case TLConstructor_CRC32_destroy_auth_key_none: - t := m.To_DestroyAuthKeyNone() + case TLConstructor_CRC32_rpc_answer_dropped_running: + t := m.To_RpcAnswerDroppedRunning() return t.Encode() - case TLConstructor_CRC32_destroy_auth_key_fail: - t := m.To_DestroyAuthKeyFail() + case TLConstructor_CRC32_rpc_answer_dropped: + t := m.To_RpcAnswerDropped() return t.Encode() default: @@ -2332,17 +2780,17 @@ func (m *DestroyAuthKeyRes) Encode() []byte { } } -func (m *DestroyAuthKeyRes) EncodeToLayer(layer int) []byte { +func (m *RpcDropAnswer) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_destroy_auth_key_ok: - t := m.To_DestroyAuthKeyOk() + case TLConstructor_CRC32_rpc_answer_unknown: + t := m.To_RpcAnswerUnknown() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_destroy_auth_key_none: - t := m.To_DestroyAuthKeyNone() + case TLConstructor_CRC32_rpc_answer_dropped_running: + t := m.To_RpcAnswerDroppedRunning() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_destroy_auth_key_fail: - t := m.To_DestroyAuthKeyFail() + case TLConstructor_CRC32_rpc_answer_dropped: + t := m.To_RpcAnswerDropped() return t.EncodeToLayer(layer) default: @@ -2351,19 +2799,19 @@ func (m *DestroyAuthKeyRes) EncodeToLayer(layer int) []byte { } } -func (m *DestroyAuthKeyRes) Decode(dbuf *DecodeBuf) error { +func (m *RpcDropAnswer) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_destroy_auth_key_ok: - m2 := &TLDestroyAuthKeyOk{Data2: &DestroyAuthKeyRes_Data{}} + case TLConstructor_CRC32_rpc_answer_unknown: + m2 := &TLRpcAnswerUnknown{Data2: &RpcDropAnswer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_destroy_auth_key_none: - m2 := &TLDestroyAuthKeyNone{Data2: &DestroyAuthKeyRes_Data{}} + case TLConstructor_CRC32_rpc_answer_dropped_running: + m2 := &TLRpcAnswerDroppedRunning{Data2: &RpcDropAnswer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_destroy_auth_key_fail: - m2 := &TLDestroyAuthKeyFail{Data2: &DestroyAuthKeyRes_Data{}} + case TLConstructor_CRC32_rpc_answer_dropped: + m2 := &TLRpcAnswerDropped{Data2: &RpcDropAnswer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -2373,133 +2821,149 @@ func (m *DestroyAuthKeyRes) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// destroy_auth_key_ok#f660e1d4 = DestroyAuthKeyRes; -func (m *DestroyAuthKeyRes) To_DestroyAuthKeyOk() *TLDestroyAuthKeyOk { - return &TLDestroyAuthKeyOk{ +// rpc_answer_unknown#5e2ad36e = RpcDropAnswer; +func (m *RpcDropAnswer) To_RpcAnswerUnknown() *TLRpcAnswerUnknown { + return &TLRpcAnswerUnknown{ Data2: m.Data2, } } -// destroy_auth_key_none#0a9f2259 = DestroyAuthKeyRes; -func (m *DestroyAuthKeyRes) To_DestroyAuthKeyNone() *TLDestroyAuthKeyNone { - return &TLDestroyAuthKeyNone{ +// rpc_answer_dropped_running#cd78e586 = RpcDropAnswer; +func (m *RpcDropAnswer) To_RpcAnswerDroppedRunning() *TLRpcAnswerDroppedRunning { + return &TLRpcAnswerDroppedRunning{ Data2: m.Data2, } } -// destroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes; -func (m *DestroyAuthKeyRes) To_DestroyAuthKeyFail() *TLDestroyAuthKeyFail { - return &TLDestroyAuthKeyFail{ +// rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer; +func (m *RpcDropAnswer) To_RpcAnswerDropped() *TLRpcAnswerDropped { + return &TLRpcAnswerDropped{ Data2: m.Data2, } } -// destroy_auth_key_ok#f660e1d4 = DestroyAuthKeyRes; -func (m *TLDestroyAuthKeyOk) To_DestroyAuthKeyRes() *DestroyAuthKeyRes { - return &DestroyAuthKeyRes{ - Constructor: TLConstructor_CRC32_destroy_auth_key_ok, +// rpc_answer_unknown#5e2ad36e = RpcDropAnswer; +func (m *TLRpcAnswerUnknown) To_RpcDropAnswer() *RpcDropAnswer { + return &RpcDropAnswer{ + Constructor: TLConstructor_CRC32_rpc_answer_unknown, Data2: m.Data2, } } -func NewTLDestroyAuthKeyOk() *TLDestroyAuthKeyOk { - return &TLDestroyAuthKeyOk{Data2: &DestroyAuthKeyRes_Data{}} +func NewTLRpcAnswerUnknown() *TLRpcAnswerUnknown { + return &TLRpcAnswerUnknown{Data2: &RpcDropAnswer_Data{}} } -func (m *TLDestroyAuthKeyOk) Encode() []byte { +func (m *TLRpcAnswerUnknown) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_auth_key_ok)) + x.Int(int32(TLConstructor_CRC32_rpc_answer_unknown)) return x.buf } -func (m *TLDestroyAuthKeyOk) EncodeToLayer(layer int) []byte { +func (m *TLRpcAnswerUnknown) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_auth_key_ok)) + x.Int(int32(TLConstructor_CRC32_rpc_answer_unknown)) return x.buf } -func (m *TLDestroyAuthKeyOk) Decode(dbuf *DecodeBuf) error { +func (m *TLRpcAnswerUnknown) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// destroy_auth_key_none#0a9f2259 = DestroyAuthKeyRes; -func (m *TLDestroyAuthKeyNone) To_DestroyAuthKeyRes() *DestroyAuthKeyRes { - return &DestroyAuthKeyRes{ - Constructor: TLConstructor_CRC32_destroy_auth_key_none, +// rpc_answer_dropped_running#cd78e586 = RpcDropAnswer; +func (m *TLRpcAnswerDroppedRunning) To_RpcDropAnswer() *RpcDropAnswer { + return &RpcDropAnswer{ + Constructor: TLConstructor_CRC32_rpc_answer_dropped_running, Data2: m.Data2, } } -func NewTLDestroyAuthKeyNone() *TLDestroyAuthKeyNone { - return &TLDestroyAuthKeyNone{Data2: &DestroyAuthKeyRes_Data{}} +func NewTLRpcAnswerDroppedRunning() *TLRpcAnswerDroppedRunning { + return &TLRpcAnswerDroppedRunning{Data2: &RpcDropAnswer_Data{}} } -func (m *TLDestroyAuthKeyNone) Encode() []byte { +func (m *TLRpcAnswerDroppedRunning) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_auth_key_none)) + x.Int(int32(TLConstructor_CRC32_rpc_answer_dropped_running)) return x.buf } -func (m *TLDestroyAuthKeyNone) EncodeToLayer(layer int) []byte { +func (m *TLRpcAnswerDroppedRunning) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_auth_key_none)) + x.Int(int32(TLConstructor_CRC32_rpc_answer_dropped_running)) return x.buf } -func (m *TLDestroyAuthKeyNone) Decode(dbuf *DecodeBuf) error { +func (m *TLRpcAnswerDroppedRunning) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// destroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes; -func (m *TLDestroyAuthKeyFail) To_DestroyAuthKeyRes() *DestroyAuthKeyRes { - return &DestroyAuthKeyRes{ - Constructor: TLConstructor_CRC32_destroy_auth_key_fail, +// rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer; +func (m *TLRpcAnswerDropped) To_RpcDropAnswer() *RpcDropAnswer { + return &RpcDropAnswer{ + Constructor: TLConstructor_CRC32_rpc_answer_dropped, Data2: m.Data2, } } -func NewTLDestroyAuthKeyFail() *TLDestroyAuthKeyFail { - return &TLDestroyAuthKeyFail{Data2: &DestroyAuthKeyRes_Data{}} +func (m *TLRpcAnswerDropped) SetMsgId(v int64) { m.Data2.MsgId = v } +func (m *TLRpcAnswerDropped) GetMsgId() int64 { return m.Data2.MsgId } + +func (m *TLRpcAnswerDropped) SetSeqNo(v int32) { m.Data2.SeqNo = v } +func (m *TLRpcAnswerDropped) GetSeqNo() int32 { return m.Data2.SeqNo } + +func (m *TLRpcAnswerDropped) SetBytes(v int32) { m.Data2.Bytes = v } +func (m *TLRpcAnswerDropped) GetBytes() int32 { return m.Data2.Bytes } + +func NewTLRpcAnswerDropped() *TLRpcAnswerDropped { + return &TLRpcAnswerDropped{Data2: &RpcDropAnswer_Data{}} } -func (m *TLDestroyAuthKeyFail) Encode() []byte { +func (m *TLRpcAnswerDropped) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_auth_key_fail)) + x.Int(int32(TLConstructor_CRC32_rpc_answer_dropped)) + + x.Long(m.GetMsgId()) + x.Int(m.GetSeqNo()) + x.Int(m.GetBytes()) return x.buf } -func (m *TLDestroyAuthKeyFail) EncodeToLayer(layer int) []byte { +func (m *TLRpcAnswerDropped) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_auth_key_fail)) + x.Int(int32(TLConstructor_CRC32_rpc_answer_dropped)) + + x.Long(m.GetMsgId()) + x.Int(m.GetSeqNo()) + x.Int(m.GetBytes()) return x.buf } -func (m *TLDestroyAuthKeyFail) Decode(dbuf *DecodeBuf) error { +func (m *TLRpcAnswerDropped) Decode(dbuf *DecodeBuf) error { + m.SetMsgId(dbuf.Long()) + m.SetSeqNo(dbuf.Int()) + m.SetBytes(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// DestroySessionRes <-- -// + TL_DestroySessionOk -// + TL_DestroySessionNone +// FutureSalt <-- +// + TL_FutureSalt // -func (m *DestroySessionRes) Encode() []byte { +func (m *FutureSalt) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_destroy_session_ok: - t := m.To_DestroySessionOk() - return t.Encode() - case TLConstructor_CRC32_destroy_session_none: - t := m.To_DestroySessionNone() + case TLConstructor_CRC32_future_salt: + t := m.To_FutureSalt() return t.Encode() default: @@ -2508,14 +2972,11 @@ func (m *DestroySessionRes) Encode() []byte { } } -func (m *DestroySessionRes) EncodeToLayer(layer int) []byte { +func (m *FutureSalt) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_destroy_session_ok: - t := m.To_DestroySessionOk() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_destroy_session_none: - t := m.To_DestroySessionNone() + case TLConstructor_CRC32_future_salt: + t := m.To_FutureSalt() return t.EncodeToLayer(layer) default: @@ -2524,15 +2985,11 @@ func (m *DestroySessionRes) EncodeToLayer(layer int) []byte { } } -func (m *DestroySessionRes) Decode(dbuf *DecodeBuf) error { +func (m *FutureSalt) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_destroy_session_ok: - m2 := &TLDestroySessionOk{Data2: &DestroySessionRes_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_destroy_session_none: - m2 := &TLDestroySessionNone{Data2: &DestroySessionRes_Data{}} + case TLConstructor_CRC32_future_salt: + m2 := &TLFutureSalt{Data2: &FutureSalt_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -2542,107 +2999,73 @@ func (m *DestroySessionRes) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// destroy_session_ok#e22045fc session_id:long = DestroySessionRes; -func (m *DestroySessionRes) To_DestroySessionOk() *TLDestroySessionOk { - return &TLDestroySessionOk{ - Data2: m.Data2, - } -} - -// destroy_session_none#62d350c9 session_id:long = DestroySessionRes; -func (m *DestroySessionRes) To_DestroySessionNone() *TLDestroySessionNone { - return &TLDestroySessionNone{ +// future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt; +func (m *FutureSalt) To_FutureSalt() *TLFutureSalt { + return &TLFutureSalt{ Data2: m.Data2, } } -// destroy_session_ok#e22045fc session_id:long = DestroySessionRes; -func (m *TLDestroySessionOk) To_DestroySessionRes() *DestroySessionRes { - return &DestroySessionRes{ - Constructor: TLConstructor_CRC32_destroy_session_ok, +// future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt; +func (m *TLFutureSalt) To_FutureSalt() *FutureSalt { + return &FutureSalt{ + Constructor: TLConstructor_CRC32_future_salt, Data2: m.Data2, } } -func (m *TLDestroySessionOk) SetSessionId(v int64) { m.Data2.SessionId = v } -func (m *TLDestroySessionOk) GetSessionId() int64 { return m.Data2.SessionId } +func (m *TLFutureSalt) SetValidSince(v int32) { m.Data2.ValidSince = v } +func (m *TLFutureSalt) GetValidSince() int32 { return m.Data2.ValidSince } -func NewTLDestroySessionOk() *TLDestroySessionOk { - return &TLDestroySessionOk{Data2: &DestroySessionRes_Data{}} +func (m *TLFutureSalt) SetValidUntil(v int32) { m.Data2.ValidUntil = v } +func (m *TLFutureSalt) GetValidUntil() int32 { return m.Data2.ValidUntil } + +func (m *TLFutureSalt) SetSalt(v int64) { m.Data2.Salt = v } +func (m *TLFutureSalt) GetSalt() int64 { return m.Data2.Salt } + +func NewTLFutureSalt() *TLFutureSalt { + return &TLFutureSalt{Data2: &FutureSalt_Data{}} } -func (m *TLDestroySessionOk) Encode() []byte { +func (m *TLFutureSalt) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_session_ok)) + x.Int(int32(TLConstructor_CRC32_future_salt)) - x.Long(m.GetSessionId()) + x.Int(m.GetValidSince()) + x.Int(m.GetValidUntil()) + x.Long(m.GetSalt()) return x.buf } -func (m *TLDestroySessionOk) EncodeToLayer(layer int) []byte { +func (m *TLFutureSalt) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_session_ok)) + x.Int(int32(TLConstructor_CRC32_future_salt)) - x.Long(m.GetSessionId()) + x.Int(m.GetValidSince()) + x.Int(m.GetValidUntil()) + x.Long(m.GetSalt()) return x.buf } -func (m *TLDestroySessionOk) Decode(dbuf *DecodeBuf) error { - m.SetSessionId(dbuf.Long()) - - return dbuf.err -} - -// destroy_session_none#62d350c9 session_id:long = DestroySessionRes; -func (m *TLDestroySessionNone) To_DestroySessionRes() *DestroySessionRes { - return &DestroySessionRes{ - Constructor: TLConstructor_CRC32_destroy_session_none, - Data2: m.Data2, - } -} - -func (m *TLDestroySessionNone) SetSessionId(v int64) { m.Data2.SessionId = v } -func (m *TLDestroySessionNone) GetSessionId() int64 { return m.Data2.SessionId } - -func NewTLDestroySessionNone() *TLDestroySessionNone { - return &TLDestroySessionNone{Data2: &DestroySessionRes_Data{}} -} - -func (m *TLDestroySessionNone) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_session_none)) - - x.Long(m.GetSessionId()) - - return x.buf -} - -func (m *TLDestroySessionNone) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_destroy_session_none)) - - x.Long(m.GetSessionId()) - - return x.buf -} - -func (m *TLDestroySessionNone) Decode(dbuf *DecodeBuf) error { - m.SetSessionId(dbuf.Long()) +func (m *TLFutureSalt) Decode(dbuf *DecodeBuf) error { + m.SetValidSince(dbuf.Int()) + m.SetValidUntil(dbuf.Int()) + m.SetSalt(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// NewSession <-- -// + TL_NewSessionCreated +// MsgsAck <-- +// + TL_MsgsAck // -func (m *NewSession) Encode() []byte { +func (m *MsgsAck) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_new_session_created: - t := m.To_NewSessionCreated() + case TLConstructor_CRC32_msgs_ack: + t := m.To_MsgsAck() return t.Encode() default: @@ -2651,11 +3074,11 @@ func (m *NewSession) Encode() []byte { } } -func (m *NewSession) EncodeToLayer(layer int) []byte { +func (m *MsgsAck) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_new_session_created: - t := m.To_NewSessionCreated() + case TLConstructor_CRC32_msgs_ack: + t := m.To_MsgsAck() return t.EncodeToLayer(layer) default: @@ -2664,11 +3087,11 @@ func (m *NewSession) EncodeToLayer(layer int) []byte { } } -func (m *NewSession) Decode(dbuf *DecodeBuf) error { +func (m *MsgsAck) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_new_session_created: - m2 := &TLNewSessionCreated{Data2: &NewSession_Data{}} + case TLConstructor_CRC32_msgs_ack: + m2 := &TLMsgsAck{Data2: &MsgsAck_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -2678,60 +3101,48 @@ func (m *NewSession) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession; -func (m *NewSession) To_NewSessionCreated() *TLNewSessionCreated { - return &TLNewSessionCreated{ +// msgs_ack#62d6b459 msg_ids:Vector = MsgsAck; +func (m *MsgsAck) To_MsgsAck() *TLMsgsAck { + return &TLMsgsAck{ Data2: m.Data2, } } -// new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession; -func (m *TLNewSessionCreated) To_NewSession() *NewSession { - return &NewSession{ - Constructor: TLConstructor_CRC32_new_session_created, +// msgs_ack#62d6b459 msg_ids:Vector = MsgsAck; +func (m *TLMsgsAck) To_MsgsAck() *MsgsAck { + return &MsgsAck{ + Constructor: TLConstructor_CRC32_msgs_ack, Data2: m.Data2, } } -func (m *TLNewSessionCreated) SetFirstMsgId(v int64) { m.Data2.FirstMsgId = v } -func (m *TLNewSessionCreated) GetFirstMsgId() int64 { return m.Data2.FirstMsgId } - -func (m *TLNewSessionCreated) SetUniqueId(v int64) { m.Data2.UniqueId = v } -func (m *TLNewSessionCreated) GetUniqueId() int64 { return m.Data2.UniqueId } - -func (m *TLNewSessionCreated) SetServerSalt(v int64) { m.Data2.ServerSalt = v } -func (m *TLNewSessionCreated) GetServerSalt() int64 { return m.Data2.ServerSalt } +func (m *TLMsgsAck) SetMsgIds(v []int64) { m.Data2.MsgIds = v } +func (m *TLMsgsAck) GetMsgIds() []int64 { return m.Data2.MsgIds } -func NewTLNewSessionCreated() *TLNewSessionCreated { - return &TLNewSessionCreated{Data2: &NewSession_Data{}} +func NewTLMsgsAck() *TLMsgsAck { + return &TLMsgsAck{Data2: &MsgsAck_Data{}} } -func (m *TLNewSessionCreated) Encode() []byte { +func (m *TLMsgsAck) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_new_session_created)) + x.Int(int32(TLConstructor_CRC32_msgs_ack)) - x.Long(m.GetFirstMsgId()) - x.Long(m.GetUniqueId()) - x.Long(m.GetServerSalt()) + x.VectorLong(m.GetMsgIds()) return x.buf } -func (m *TLNewSessionCreated) EncodeToLayer(layer int) []byte { +func (m *TLMsgsAck) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_new_session_created)) + x.Int(int32(TLConstructor_CRC32_msgs_ack)) - x.Long(m.GetFirstMsgId()) - x.Long(m.GetUniqueId()) - x.Long(m.GetServerSalt()) + x.VectorLong(m.GetMsgIds()) return x.buf } -func (m *TLNewSessionCreated) Decode(dbuf *DecodeBuf) error { - m.SetFirstMsgId(dbuf.Long()) - m.SetUniqueId(dbuf.Long()) - m.SetServerSalt(dbuf.Long()) +func (m *TLMsgsAck) Decode(dbuf *DecodeBuf) error { + m.SetMsgIds(dbuf.VectorLong()) return dbuf.err } @@ -2833,14 +3244,14 @@ func (m *TLMsgsStateInfo) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// MsgResendReq <-- -// + TL_MsgResendReq +// MsgsAllInfo <-- +// + TL_MsgsAllInfo // -func (m *MsgResendReq) Encode() []byte { +func (m *MsgsAllInfo) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_msg_resend_req: - t := m.To_MsgResendReq() + case TLConstructor_CRC32_msgs_all_info: + t := m.To_MsgsAllInfo() return t.Encode() default: @@ -2849,11 +3260,11 @@ func (m *MsgResendReq) Encode() []byte { } } -func (m *MsgResendReq) EncodeToLayer(layer int) []byte { +func (m *MsgsAllInfo) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_msg_resend_req: - t := m.To_MsgResendReq() + case TLConstructor_CRC32_msgs_all_info: + t := m.To_MsgsAllInfo() return t.EncodeToLayer(layer) default: @@ -2862,11 +3273,11 @@ func (m *MsgResendReq) EncodeToLayer(layer int) []byte { } } -func (m *MsgResendReq) Decode(dbuf *DecodeBuf) error { +func (m *MsgsAllInfo) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_msg_resend_req: - m2 := &TLMsgResendReq{Data2: &MsgResendReq_Data{}} + case TLConstructor_CRC32_msgs_all_info: + m2 := &TLMsgsAllInfo{Data2: &MsgsAllInfo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -2876,48 +3287,56 @@ func (m *MsgResendReq) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq; -func (m *MsgResendReq) To_MsgResendReq() *TLMsgResendReq { - return &TLMsgResendReq{ +// msgs_all_info#8cc0d131 msg_ids:Vector info:string = MsgsAllInfo; +func (m *MsgsAllInfo) To_MsgsAllInfo() *TLMsgsAllInfo { + return &TLMsgsAllInfo{ Data2: m.Data2, } } -// msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq; -func (m *TLMsgResendReq) To_MsgResendReq() *MsgResendReq { - return &MsgResendReq{ - Constructor: TLConstructor_CRC32_msg_resend_req, +// msgs_all_info#8cc0d131 msg_ids:Vector info:string = MsgsAllInfo; +func (m *TLMsgsAllInfo) To_MsgsAllInfo() *MsgsAllInfo { + return &MsgsAllInfo{ + Constructor: TLConstructor_CRC32_msgs_all_info, Data2: m.Data2, } } -func (m *TLMsgResendReq) SetMsgIds(v []int64) { m.Data2.MsgIds = v } -func (m *TLMsgResendReq) GetMsgIds() []int64 { return m.Data2.MsgIds } +func (m *TLMsgsAllInfo) SetMsgIds(v []int64) { m.Data2.MsgIds = v } +func (m *TLMsgsAllInfo) GetMsgIds() []int64 { return m.Data2.MsgIds } -func NewTLMsgResendReq() *TLMsgResendReq { - return &TLMsgResendReq{Data2: &MsgResendReq_Data{}} +func (m *TLMsgsAllInfo) SetInfo(v string) { m.Data2.Info = v } +func (m *TLMsgsAllInfo) GetInfo() string { return m.Data2.Info } + +func NewTLMsgsAllInfo() *TLMsgsAllInfo { + return &TLMsgsAllInfo{Data2: &MsgsAllInfo_Data{}} } -func (m *TLMsgResendReq) Encode() []byte { +func (m *TLMsgsAllInfo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msg_resend_req)) + x.Int(int32(TLConstructor_CRC32_msgs_all_info)) x.VectorLong(m.GetMsgIds()) + x.String(m.GetInfo()) + return x.buf } -func (m *TLMsgResendReq) EncodeToLayer(layer int) []byte { +func (m *TLMsgsAllInfo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msg_resend_req)) + x.Int(int32(TLConstructor_CRC32_msgs_all_info)) x.VectorLong(m.GetMsgIds()) + x.String(m.GetInfo()) + return x.buf } -func (m *TLMsgResendReq) Decode(dbuf *DecodeBuf) error { +func (m *TLMsgsAllInfo) Decode(dbuf *DecodeBuf) error { m.SetMsgIds(dbuf.VectorLong()) + m.SetInfo(dbuf.String()) return dbuf.err } @@ -3037,14 +3456,14 @@ func (m *TLFutureSalts) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// Pong <-- -// + TL_Pong +// HttpWait <-- +// + TL_HttpWait // -func (m *Pong) Encode() []byte { +func (m *HttpWait) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_pong: - t := m.To_Pong() + case TLConstructor_CRC32_http_wait: + t := m.To_HttpWait() return t.Encode() default: @@ -3053,11 +3472,11 @@ func (m *Pong) Encode() []byte { } } -func (m *Pong) EncodeToLayer(layer int) []byte { +func (m *HttpWait) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_pong: - t := m.To_Pong() + case TLConstructor_CRC32_http_wait: + t := m.To_HttpWait() return t.EncodeToLayer(layer) default: @@ -3066,11 +3485,11 @@ func (m *Pong) EncodeToLayer(layer int) []byte { } } -func (m *Pong) Decode(dbuf *DecodeBuf) error { +func (m *HttpWait) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_pong: - m2 := &TLPong{Data2: &Pong_Data{}} + case TLConstructor_CRC32_http_wait: + m2 := &TLHttpWait{Data2: &HttpWait_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -3080,67 +3499,77 @@ func (m *Pong) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// pong#347773c5 msg_id:long ping_id:long = Pong; -func (m *Pong) To_Pong() *TLPong { - return &TLPong{ +// http_wait#9299359f max_delay:int wait_after:int max_wait:int = HttpWait; +func (m *HttpWait) To_HttpWait() *TLHttpWait { + return &TLHttpWait{ Data2: m.Data2, } } -// pong#347773c5 msg_id:long ping_id:long = Pong; -func (m *TLPong) To_Pong() *Pong { - return &Pong{ - Constructor: TLConstructor_CRC32_pong, +// http_wait#9299359f max_delay:int wait_after:int max_wait:int = HttpWait; +func (m *TLHttpWait) To_HttpWait() *HttpWait { + return &HttpWait{ + Constructor: TLConstructor_CRC32_http_wait, Data2: m.Data2, } } -func (m *TLPong) SetMsgId(v int64) { m.Data2.MsgId = v } -func (m *TLPong) GetMsgId() int64 { return m.Data2.MsgId } +func (m *TLHttpWait) SetMaxDelay(v int32) { m.Data2.MaxDelay = v } +func (m *TLHttpWait) GetMaxDelay() int32 { return m.Data2.MaxDelay } -func (m *TLPong) SetPingId(v int64) { m.Data2.PingId = v } -func (m *TLPong) GetPingId() int64 { return m.Data2.PingId } +func (m *TLHttpWait) SetWaitAfter(v int32) { m.Data2.WaitAfter = v } +func (m *TLHttpWait) GetWaitAfter() int32 { return m.Data2.WaitAfter } -func NewTLPong() *TLPong { - return &TLPong{Data2: &Pong_Data{}} +func (m *TLHttpWait) SetMaxWait(v int32) { m.Data2.MaxWait = v } +func (m *TLHttpWait) GetMaxWait() int32 { return m.Data2.MaxWait } + +func NewTLHttpWait() *TLHttpWait { + return &TLHttpWait{Data2: &HttpWait_Data{}} } -func (m *TLPong) Encode() []byte { +func (m *TLHttpWait) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pong)) + x.Int(int32(TLConstructor_CRC32_http_wait)) - x.Long(m.GetMsgId()) - x.Long(m.GetPingId()) + x.Int(m.GetMaxDelay()) + x.Int(m.GetWaitAfter()) + x.Int(m.GetMaxWait()) return x.buf } -func (m *TLPong) EncodeToLayer(layer int) []byte { +func (m *TLHttpWait) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pong)) + x.Int(int32(TLConstructor_CRC32_http_wait)) - x.Long(m.GetMsgId()) - x.Long(m.GetPingId()) + x.Int(m.GetMaxDelay()) + x.Int(m.GetWaitAfter()) + x.Int(m.GetMaxWait()) return x.buf } -func (m *TLPong) Decode(dbuf *DecodeBuf) error { - m.SetMsgId(dbuf.Long()) - m.SetPingId(dbuf.Long()) +func (m *TLHttpWait) Decode(dbuf *DecodeBuf) error { + m.SetMaxDelay(dbuf.Int()) + m.SetWaitAfter(dbuf.Int()) + m.SetMaxWait(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Help_ConfigSimple <-- -// + TL_HelpConfigSimple +// BadMsgNotification <-- +// + TL_BadMsgNotification +// + TL_BadServerSalt // -func (m *Help_ConfigSimple) Encode() []byte { +func (m *BadMsgNotification) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_help_configSimple: - t := m.To_HelpConfigSimple() + case TLConstructor_CRC32_bad_msg_notification: + t := m.To_BadMsgNotification() + return t.Encode() + case TLConstructor_CRC32_bad_server_salt: + t := m.To_BadServerSalt() return t.Encode() default: @@ -3149,11 +3578,14 @@ func (m *Help_ConfigSimple) Encode() []byte { } } -func (m *Help_ConfigSimple) EncodeToLayer(layer int) []byte { +func (m *BadMsgNotification) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_help_configSimple: - t := m.To_HelpConfigSimple() + case TLConstructor_CRC32_bad_msg_notification: + t := m.To_BadMsgNotification() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_bad_server_salt: + t := m.To_BadServerSalt() return t.EncodeToLayer(layer) default: @@ -3162,11 +3594,15 @@ func (m *Help_ConfigSimple) EncodeToLayer(layer int) []byte { } } -func (m *Help_ConfigSimple) Decode(dbuf *DecodeBuf) error { +func (m *BadMsgNotification) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_help_configSimple: - m2 := &TLHelpConfigSimple{Data2: &Help_ConfigSimple_Data{}} + case TLConstructor_CRC32_bad_msg_notification: + m2 := &TLBadMsgNotification{Data2: &BadMsgNotification_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_bad_server_salt: + m2 := &TLBadServerSalt{Data2: &BadMsgNotification_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -3176,89 +3612,137 @@ func (m *Help_ConfigSimple) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; -func (m *Help_ConfigSimple) To_HelpConfigSimple() *TLHelpConfigSimple { - return &TLHelpConfigSimple{ +// bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification; +func (m *BadMsgNotification) To_BadMsgNotification() *TLBadMsgNotification { + return &TLBadMsgNotification{ Data2: m.Data2, } } -// help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; -func (m *TLHelpConfigSimple) To_Help_ConfigSimple() *Help_ConfigSimple { - return &Help_ConfigSimple{ - Constructor: TLConstructor_CRC32_help_configSimple, +// bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification; +func (m *BadMsgNotification) To_BadServerSalt() *TLBadServerSalt { + return &TLBadServerSalt{ + Data2: m.Data2, + } +} + +// bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification; +func (m *TLBadMsgNotification) To_BadMsgNotification() *BadMsgNotification { + return &BadMsgNotification{ + Constructor: TLConstructor_CRC32_bad_msg_notification, Data2: m.Data2, } } -func (m *TLHelpConfigSimple) SetDate(v int32) { m.Data2.Date = v } -func (m *TLHelpConfigSimple) GetDate() int32 { return m.Data2.Date } +func (m *TLBadMsgNotification) SetBadMsgId(v int64) { m.Data2.BadMsgId = v } +func (m *TLBadMsgNotification) GetBadMsgId() int64 { return m.Data2.BadMsgId } -func (m *TLHelpConfigSimple) SetExpires(v int32) { m.Data2.Expires = v } -func (m *TLHelpConfigSimple) GetExpires() int32 { return m.Data2.Expires } +func (m *TLBadMsgNotification) SetBadMsgSeqno(v int32) { m.Data2.BadMsgSeqno = v } +func (m *TLBadMsgNotification) GetBadMsgSeqno() int32 { return m.Data2.BadMsgSeqno } -func (m *TLHelpConfigSimple) SetRules(v []*AccessPointRule) { m.Data2.Rules = v } -func (m *TLHelpConfigSimple) GetRules() []*AccessPointRule { return m.Data2.Rules } +func (m *TLBadMsgNotification) SetErrorCode(v int32) { m.Data2.ErrorCode = v } +func (m *TLBadMsgNotification) GetErrorCode() int32 { return m.Data2.ErrorCode } -func NewTLHelpConfigSimple() *TLHelpConfigSimple { - return &TLHelpConfigSimple{Data2: &Help_ConfigSimple_Data{}} +func NewTLBadMsgNotification() *TLBadMsgNotification { + return &TLBadMsgNotification{Data2: &BadMsgNotification_Data{}} } -func (m *TLHelpConfigSimple) Encode() []byte { +func (m *TLBadMsgNotification) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_configSimple)) + x.Int(int32(TLConstructor_CRC32_bad_msg_notification)) - x.Int(m.GetDate()) - x.Int(m.GetExpires()) - x.Int(int32(len(m.GetRules()))) - for _, v := range m.GetRules() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Long(m.GetBadMsgId()) + x.Int(m.GetBadMsgSeqno()) + x.Int(m.GetErrorCode()) return x.buf } -func (m *TLHelpConfigSimple) EncodeToLayer(layer int) []byte { +func (m *TLBadMsgNotification) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_configSimple)) + x.Int(int32(TLConstructor_CRC32_bad_msg_notification)) - x.Int(m.GetDate()) - x.Int(m.GetExpires()) - x.Int(int32(len(m.GetRules()))) - for _, v := range m.GetRules() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Long(m.GetBadMsgId()) + x.Int(m.GetBadMsgSeqno()) + x.Int(m.GetErrorCode()) return x.buf } -func (m *TLHelpConfigSimple) Decode(dbuf *DecodeBuf) error { - m.SetDate(dbuf.Int()) - m.SetExpires(dbuf.Int()) - l3 := dbuf.Int() - v3 := make([]*AccessPointRule, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &AccessPointRule{} - v3[i].Decode(dbuf) +func (m *TLBadMsgNotification) Decode(dbuf *DecodeBuf) error { + m.SetBadMsgId(dbuf.Long()) + m.SetBadMsgSeqno(dbuf.Int()) + m.SetErrorCode(dbuf.Int()) + + return dbuf.err +} + +// bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification; +func (m *TLBadServerSalt) To_BadMsgNotification() *BadMsgNotification { + return &BadMsgNotification{ + Constructor: TLConstructor_CRC32_bad_server_salt, + Data2: m.Data2, } - m.SetRules(v3) +} + +func (m *TLBadServerSalt) SetBadMsgId(v int64) { m.Data2.BadMsgId = v } +func (m *TLBadServerSalt) GetBadMsgId() int64 { return m.Data2.BadMsgId } + +func (m *TLBadServerSalt) SetBadMsgSeqno(v int32) { m.Data2.BadMsgSeqno = v } +func (m *TLBadServerSalt) GetBadMsgSeqno() int32 { return m.Data2.BadMsgSeqno } + +func (m *TLBadServerSalt) SetErrorCode(v int32) { m.Data2.ErrorCode = v } +func (m *TLBadServerSalt) GetErrorCode() int32 { return m.Data2.ErrorCode } + +func (m *TLBadServerSalt) SetNewServerSalt(v int64) { m.Data2.NewServerSalt = v } +func (m *TLBadServerSalt) GetNewServerSalt() int64 { return m.Data2.NewServerSalt } + +func NewTLBadServerSalt() *TLBadServerSalt { + return &TLBadServerSalt{Data2: &BadMsgNotification_Data{}} +} + +func (m *TLBadServerSalt) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_bad_server_salt)) + + x.Long(m.GetBadMsgId()) + x.Int(m.GetBadMsgSeqno()) + x.Int(m.GetErrorCode()) + x.Long(m.GetNewServerSalt()) + + return x.buf +} + +func (m *TLBadServerSalt) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_bad_server_salt)) + + x.Long(m.GetBadMsgId()) + x.Int(m.GetBadMsgSeqno()) + x.Int(m.GetErrorCode()) + x.Long(m.GetNewServerSalt()) + + return x.buf +} + +func (m *TLBadServerSalt) Decode(dbuf *DecodeBuf) error { + m.SetBadMsgId(dbuf.Long()) + m.SetBadMsgSeqno(dbuf.Int()) + m.SetErrorCode(dbuf.Int()) + m.SetNewServerSalt(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// MsgDetailedInfo <-- -// + TL_MsgDetailedInfo -// + TL_MsgNewDetailedInfo +// Pong <-- +// + TL_Pong // -func (m *MsgDetailedInfo) Encode() []byte { +func (m *Pong) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_msg_detailed_info: - t := m.To_MsgDetailedInfo() - return t.Encode() - case TLConstructor_CRC32_msg_new_detailed_info: - t := m.To_MsgNewDetailedInfo() + case TLConstructor_CRC32_pong: + t := m.To_Pong() return t.Encode() default: @@ -3267,14 +3751,11 @@ func (m *MsgDetailedInfo) Encode() []byte { } } -func (m *MsgDetailedInfo) EncodeToLayer(layer int) []byte { +func (m *Pong) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_msg_detailed_info: - t := m.To_MsgDetailedInfo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_msg_new_detailed_info: - t := m.To_MsgNewDetailedInfo() + case TLConstructor_CRC32_pong: + t := m.To_Pong() return t.EncodeToLayer(layer) default: @@ -3283,15 +3764,11 @@ func (m *MsgDetailedInfo) EncodeToLayer(layer int) []byte { } } -func (m *MsgDetailedInfo) Decode(dbuf *DecodeBuf) error { +func (m *Pong) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_msg_detailed_info: - m2 := &TLMsgDetailedInfo{Data2: &MsgDetailedInfo_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_msg_new_detailed_info: - m2 := &TLMsgNewDetailedInfo{Data2: &MsgDetailedInfo_Data{}} + case TLConstructor_CRC32_pong: + m2 := &TLPong{Data2: &Pong_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -3301,137 +3778,71 @@ func (m *MsgDetailedInfo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo; -func (m *MsgDetailedInfo) To_MsgDetailedInfo() *TLMsgDetailedInfo { - return &TLMsgDetailedInfo{ - Data2: m.Data2, - } -} - -// msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo; -func (m *MsgDetailedInfo) To_MsgNewDetailedInfo() *TLMsgNewDetailedInfo { - return &TLMsgNewDetailedInfo{ +// pong#347773c5 msg_id:long ping_id:long = Pong; +func (m *Pong) To_Pong() *TLPong { + return &TLPong{ Data2: m.Data2, } } -// msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo; -func (m *TLMsgDetailedInfo) To_MsgDetailedInfo() *MsgDetailedInfo { - return &MsgDetailedInfo{ - Constructor: TLConstructor_CRC32_msg_detailed_info, +// pong#347773c5 msg_id:long ping_id:long = Pong; +func (m *TLPong) To_Pong() *Pong { + return &Pong{ + Constructor: TLConstructor_CRC32_pong, Data2: m.Data2, } } -func (m *TLMsgDetailedInfo) SetMsgId(v int64) { m.Data2.MsgId = v } -func (m *TLMsgDetailedInfo) GetMsgId() int64 { return m.Data2.MsgId } - -func (m *TLMsgDetailedInfo) SetAnswerMsgId(v int64) { m.Data2.AnswerMsgId = v } -func (m *TLMsgDetailedInfo) GetAnswerMsgId() int64 { return m.Data2.AnswerMsgId } - -func (m *TLMsgDetailedInfo) SetBytes(v int32) { m.Data2.Bytes = v } -func (m *TLMsgDetailedInfo) GetBytes() int32 { return m.Data2.Bytes } +func (m *TLPong) SetMsgId(v int64) { m.Data2.MsgId = v } +func (m *TLPong) GetMsgId() int64 { return m.Data2.MsgId } -func (m *TLMsgDetailedInfo) SetStatus(v int32) { m.Data2.Status = v } -func (m *TLMsgDetailedInfo) GetStatus() int32 { return m.Data2.Status } +func (m *TLPong) SetPingId(v int64) { m.Data2.PingId = v } +func (m *TLPong) GetPingId() int64 { return m.Data2.PingId } -func NewTLMsgDetailedInfo() *TLMsgDetailedInfo { - return &TLMsgDetailedInfo{Data2: &MsgDetailedInfo_Data{}} +func NewTLPong() *TLPong { + return &TLPong{Data2: &Pong_Data{}} } -func (m *TLMsgDetailedInfo) Encode() []byte { +func (m *TLPong) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msg_detailed_info)) + x.Int(int32(TLConstructor_CRC32_pong)) x.Long(m.GetMsgId()) - x.Long(m.GetAnswerMsgId()) - x.Int(m.GetBytes()) - x.Int(m.GetStatus()) + x.Long(m.GetPingId()) return x.buf } -func (m *TLMsgDetailedInfo) EncodeToLayer(layer int) []byte { +func (m *TLPong) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msg_detailed_info)) + x.Int(int32(TLConstructor_CRC32_pong)) x.Long(m.GetMsgId()) - x.Long(m.GetAnswerMsgId()) - x.Int(m.GetBytes()) - x.Int(m.GetStatus()) + x.Long(m.GetPingId()) return x.buf } -func (m *TLMsgDetailedInfo) Decode(dbuf *DecodeBuf) error { +func (m *TLPong) Decode(dbuf *DecodeBuf) error { m.SetMsgId(dbuf.Long()) - m.SetAnswerMsgId(dbuf.Long()) - m.SetBytes(dbuf.Int()) - m.SetStatus(dbuf.Int()) - - return dbuf.err -} - -// msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo; -func (m *TLMsgNewDetailedInfo) To_MsgDetailedInfo() *MsgDetailedInfo { - return &MsgDetailedInfo{ - Constructor: TLConstructor_CRC32_msg_new_detailed_info, - Data2: m.Data2, - } -} - -func (m *TLMsgNewDetailedInfo) SetAnswerMsgId(v int64) { m.Data2.AnswerMsgId = v } -func (m *TLMsgNewDetailedInfo) GetAnswerMsgId() int64 { return m.Data2.AnswerMsgId } - -func (m *TLMsgNewDetailedInfo) SetBytes(v int32) { m.Data2.Bytes = v } -func (m *TLMsgNewDetailedInfo) GetBytes() int32 { return m.Data2.Bytes } - -func (m *TLMsgNewDetailedInfo) SetStatus(v int32) { m.Data2.Status = v } -func (m *TLMsgNewDetailedInfo) GetStatus() int32 { return m.Data2.Status } - -func NewTLMsgNewDetailedInfo() *TLMsgNewDetailedInfo { - return &TLMsgNewDetailedInfo{Data2: &MsgDetailedInfo_Data{}} -} - -func (m *TLMsgNewDetailedInfo) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msg_new_detailed_info)) - - x.Long(m.GetAnswerMsgId()) - x.Int(m.GetBytes()) - x.Int(m.GetStatus()) - - return x.buf -} - -func (m *TLMsgNewDetailedInfo) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msg_new_detailed_info)) - - x.Long(m.GetAnswerMsgId()) - x.Int(m.GetBytes()) - x.Int(m.GetStatus()) - - return x.buf -} - -func (m *TLMsgNewDetailedInfo) Decode(dbuf *DecodeBuf) error { - m.SetAnswerMsgId(dbuf.Long()) - m.SetBytes(dbuf.Int()) - m.SetStatus(dbuf.Int()) + m.SetPingId(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// RpcError <-- -// + TL_RpcError +// DestroySessionRes <-- +// + TL_DestroySessionOk +// + TL_DestroySessionNone // -func (m *RpcError) Encode() []byte { +func (m *DestroySessionRes) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_rpc_error: - t := m.To_RpcError() + case TLConstructor_CRC32_destroy_session_ok: + t := m.To_DestroySessionOk() + return t.Encode() + case TLConstructor_CRC32_destroy_session_none: + t := m.To_DestroySessionNone() return t.Encode() default: @@ -3440,11 +3851,14 @@ func (m *RpcError) Encode() []byte { } } -func (m *RpcError) EncodeToLayer(layer int) []byte { +func (m *DestroySessionRes) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_rpc_error: - t := m.To_RpcError() + case TLConstructor_CRC32_destroy_session_ok: + t := m.To_DestroySessionOk() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_destroy_session_none: + t := m.To_DestroySessionNone() return t.EncodeToLayer(layer) default: @@ -3453,11 +3867,15 @@ func (m *RpcError) EncodeToLayer(layer int) []byte { } } -func (m *RpcError) Decode(dbuf *DecodeBuf) error { +func (m *DestroySessionRes) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_rpc_error: - m2 := &TLRpcError{Data2: &RpcError_Data{}} + case TLConstructor_CRC32_destroy_session_ok: + m2 := &TLDestroySessionOk{Data2: &DestroySessionRes_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_destroy_session_none: + m2 := &TLDestroySessionNone{Data2: &DestroySessionRes_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -3467,156 +3885,94 @@ func (m *RpcError) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// rpc_error#2144ca19 error_code:int error_message:string = RpcError; -func (m *RpcError) To_RpcError() *TLRpcError { - return &TLRpcError{ +// destroy_session_ok#e22045fc session_id:long = DestroySessionRes; +func (m *DestroySessionRes) To_DestroySessionOk() *TLDestroySessionOk { + return &TLDestroySessionOk{ Data2: m.Data2, } } -// rpc_error#2144ca19 error_code:int error_message:string = RpcError; -func (m *TLRpcError) To_RpcError() *RpcError { - return &RpcError{ - Constructor: TLConstructor_CRC32_rpc_error, - Data2: m.Data2, +// destroy_session_none#62d350c9 session_id:long = DestroySessionRes; +func (m *DestroySessionRes) To_DestroySessionNone() *TLDestroySessionNone { + return &TLDestroySessionNone{ + Data2: m.Data2, } } -func (m *TLRpcError) SetErrorCode(v int32) { m.Data2.ErrorCode = v } -func (m *TLRpcError) GetErrorCode() int32 { return m.Data2.ErrorCode } +// destroy_session_ok#e22045fc session_id:long = DestroySessionRes; +func (m *TLDestroySessionOk) To_DestroySessionRes() *DestroySessionRes { + return &DestroySessionRes{ + Constructor: TLConstructor_CRC32_destroy_session_ok, + Data2: m.Data2, + } +} -func (m *TLRpcError) SetErrorMessage(v string) { m.Data2.ErrorMessage = v } -func (m *TLRpcError) GetErrorMessage() string { return m.Data2.ErrorMessage } +func (m *TLDestroySessionOk) SetSessionId(v int64) { m.Data2.SessionId = v } +func (m *TLDestroySessionOk) GetSessionId() int64 { return m.Data2.SessionId } -func NewTLRpcError() *TLRpcError { - return &TLRpcError{Data2: &RpcError_Data{}} +func NewTLDestroySessionOk() *TLDestroySessionOk { + return &TLDestroySessionOk{Data2: &DestroySessionRes_Data{}} } -func (m *TLRpcError) Encode() []byte { +func (m *TLDestroySessionOk) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_rpc_error)) + x.Int(int32(TLConstructor_CRC32_destroy_session_ok)) - x.Int(m.GetErrorCode()) - x.String(m.GetErrorMessage()) + x.Long(m.GetSessionId()) return x.buf } -func (m *TLRpcError) EncodeToLayer(layer int) []byte { +func (m *TLDestroySessionOk) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_rpc_error)) + x.Int(int32(TLConstructor_CRC32_destroy_session_ok)) - x.Int(m.GetErrorCode()) - x.String(m.GetErrorMessage()) + x.Long(m.GetSessionId()) return x.buf } -func (m *TLRpcError) Decode(dbuf *DecodeBuf) error { - m.SetErrorCode(dbuf.Int()) - m.SetErrorMessage(dbuf.String()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// HttpWait <-- -// + TL_HttpWait -// - -func (m *HttpWait) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_http_wait: - t := m.To_HttpWait() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *HttpWait) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_http_wait: - t := m.To_HttpWait() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *HttpWait) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_http_wait: - m2 := &TLHttpWait{Data2: &HttpWait_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLDestroySessionOk) Decode(dbuf *DecodeBuf) error { + m.SetSessionId(dbuf.Long()) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// http_wait#9299359f max_delay:int wait_after:int max_wait:int = HttpWait; -func (m *HttpWait) To_HttpWait() *TLHttpWait { - return &TLHttpWait{ - Data2: m.Data2, - } -} - -// http_wait#9299359f max_delay:int wait_after:int max_wait:int = HttpWait; -func (m *TLHttpWait) To_HttpWait() *HttpWait { - return &HttpWait{ - Constructor: TLConstructor_CRC32_http_wait, +// destroy_session_none#62d350c9 session_id:long = DestroySessionRes; +func (m *TLDestroySessionNone) To_DestroySessionRes() *DestroySessionRes { + return &DestroySessionRes{ + Constructor: TLConstructor_CRC32_destroy_session_none, Data2: m.Data2, } } -func (m *TLHttpWait) SetMaxDelay(v int32) { m.Data2.MaxDelay = v } -func (m *TLHttpWait) GetMaxDelay() int32 { return m.Data2.MaxDelay } - -func (m *TLHttpWait) SetWaitAfter(v int32) { m.Data2.WaitAfter = v } -func (m *TLHttpWait) GetWaitAfter() int32 { return m.Data2.WaitAfter } - -func (m *TLHttpWait) SetMaxWait(v int32) { m.Data2.MaxWait = v } -func (m *TLHttpWait) GetMaxWait() int32 { return m.Data2.MaxWait } +func (m *TLDestroySessionNone) SetSessionId(v int64) { m.Data2.SessionId = v } +func (m *TLDestroySessionNone) GetSessionId() int64 { return m.Data2.SessionId } -func NewTLHttpWait() *TLHttpWait { - return &TLHttpWait{Data2: &HttpWait_Data{}} +func NewTLDestroySessionNone() *TLDestroySessionNone { + return &TLDestroySessionNone{Data2: &DestroySessionRes_Data{}} } -func (m *TLHttpWait) Encode() []byte { +func (m *TLDestroySessionNone) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_http_wait)) + x.Int(int32(TLConstructor_CRC32_destroy_session_none)) - x.Int(m.GetMaxDelay()) - x.Int(m.GetWaitAfter()) - x.Int(m.GetMaxWait()) + x.Long(m.GetSessionId()) return x.buf } -func (m *TLHttpWait) EncodeToLayer(layer int) []byte { +func (m *TLDestroySessionNone) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_http_wait)) + x.Int(int32(TLConstructor_CRC32_destroy_session_none)) - x.Int(m.GetMaxDelay()) - x.Int(m.GetWaitAfter()) - x.Int(m.GetMaxWait()) + x.Long(m.GetSessionId()) return x.buf } -func (m *TLHttpWait) Decode(dbuf *DecodeBuf) error { - m.SetMaxDelay(dbuf.Int()) - m.SetWaitAfter(dbuf.Int()) - m.SetMaxWait(dbuf.Int()) +func (m *TLDestroySessionNone) Decode(dbuf *DecodeBuf) error { + m.SetSessionId(dbuf.Long()) return dbuf.err } @@ -3786,273 +4142,6 @@ func (m *TLIpPortSecret) Decode(dbuf *DecodeBuf) error { return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// MsgsAck <-- -// + TL_MsgsAck -// - -func (m *MsgsAck) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_msgs_ack: - t := m.To_MsgsAck() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *MsgsAck) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_msgs_ack: - t := m.To_MsgsAck() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *MsgsAck) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_msgs_ack: - m2 := &TLMsgsAck{Data2: &MsgsAck_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// msgs_ack#62d6b459 msg_ids:Vector = MsgsAck; -func (m *MsgsAck) To_MsgsAck() *TLMsgsAck { - return &TLMsgsAck{ - Data2: m.Data2, - } -} - -// msgs_ack#62d6b459 msg_ids:Vector = MsgsAck; -func (m *TLMsgsAck) To_MsgsAck() *MsgsAck { - return &MsgsAck{ - Constructor: TLConstructor_CRC32_msgs_ack, - Data2: m.Data2, - } -} - -func (m *TLMsgsAck) SetMsgIds(v []int64) { m.Data2.MsgIds = v } -func (m *TLMsgsAck) GetMsgIds() []int64 { return m.Data2.MsgIds } - -func NewTLMsgsAck() *TLMsgsAck { - return &TLMsgsAck{Data2: &MsgsAck_Data{}} -} - -func (m *TLMsgsAck) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msgs_ack)) - - x.VectorLong(m.GetMsgIds()) - - return x.buf -} - -func (m *TLMsgsAck) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msgs_ack)) - - x.VectorLong(m.GetMsgIds()) - - return x.buf -} - -func (m *TLMsgsAck) Decode(dbuf *DecodeBuf) error { - m.SetMsgIds(dbuf.VectorLong()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// BadMsgNotification <-- -// + TL_BadMsgNotification -// + TL_BadServerSalt -// - -func (m *BadMsgNotification) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_bad_msg_notification: - t := m.To_BadMsgNotification() - return t.Encode() - case TLConstructor_CRC32_bad_server_salt: - t := m.To_BadServerSalt() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *BadMsgNotification) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_bad_msg_notification: - t := m.To_BadMsgNotification() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_bad_server_salt: - t := m.To_BadServerSalt() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *BadMsgNotification) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_bad_msg_notification: - m2 := &TLBadMsgNotification{Data2: &BadMsgNotification_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_bad_server_salt: - m2 := &TLBadServerSalt{Data2: &BadMsgNotification_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification; -func (m *BadMsgNotification) To_BadMsgNotification() *TLBadMsgNotification { - return &TLBadMsgNotification{ - Data2: m.Data2, - } -} - -// bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification; -func (m *BadMsgNotification) To_BadServerSalt() *TLBadServerSalt { - return &TLBadServerSalt{ - Data2: m.Data2, - } -} - -// bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification; -func (m *TLBadMsgNotification) To_BadMsgNotification() *BadMsgNotification { - return &BadMsgNotification{ - Constructor: TLConstructor_CRC32_bad_msg_notification, - Data2: m.Data2, - } -} - -func (m *TLBadMsgNotification) SetBadMsgId(v int64) { m.Data2.BadMsgId = v } -func (m *TLBadMsgNotification) GetBadMsgId() int64 { return m.Data2.BadMsgId } - -func (m *TLBadMsgNotification) SetBadMsgSeqno(v int32) { m.Data2.BadMsgSeqno = v } -func (m *TLBadMsgNotification) GetBadMsgSeqno() int32 { return m.Data2.BadMsgSeqno } - -func (m *TLBadMsgNotification) SetErrorCode(v int32) { m.Data2.ErrorCode = v } -func (m *TLBadMsgNotification) GetErrorCode() int32 { return m.Data2.ErrorCode } - -func NewTLBadMsgNotification() *TLBadMsgNotification { - return &TLBadMsgNotification{Data2: &BadMsgNotification_Data{}} -} - -func (m *TLBadMsgNotification) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_bad_msg_notification)) - - x.Long(m.GetBadMsgId()) - x.Int(m.GetBadMsgSeqno()) - x.Int(m.GetErrorCode()) - - return x.buf -} - -func (m *TLBadMsgNotification) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_bad_msg_notification)) - - x.Long(m.GetBadMsgId()) - x.Int(m.GetBadMsgSeqno()) - x.Int(m.GetErrorCode()) - - return x.buf -} - -func (m *TLBadMsgNotification) Decode(dbuf *DecodeBuf) error { - m.SetBadMsgId(dbuf.Long()) - m.SetBadMsgSeqno(dbuf.Int()) - m.SetErrorCode(dbuf.Int()) - - return dbuf.err -} - -// bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification; -func (m *TLBadServerSalt) To_BadMsgNotification() *BadMsgNotification { - return &BadMsgNotification{ - Constructor: TLConstructor_CRC32_bad_server_salt, - Data2: m.Data2, - } -} - -func (m *TLBadServerSalt) SetBadMsgId(v int64) { m.Data2.BadMsgId = v } -func (m *TLBadServerSalt) GetBadMsgId() int64 { return m.Data2.BadMsgId } - -func (m *TLBadServerSalt) SetBadMsgSeqno(v int32) { m.Data2.BadMsgSeqno = v } -func (m *TLBadServerSalt) GetBadMsgSeqno() int32 { return m.Data2.BadMsgSeqno } - -func (m *TLBadServerSalt) SetErrorCode(v int32) { m.Data2.ErrorCode = v } -func (m *TLBadServerSalt) GetErrorCode() int32 { return m.Data2.ErrorCode } - -func (m *TLBadServerSalt) SetNewServerSalt(v int64) { m.Data2.NewServerSalt = v } -func (m *TLBadServerSalt) GetNewServerSalt() int64 { return m.Data2.NewServerSalt } - -func NewTLBadServerSalt() *TLBadServerSalt { - return &TLBadServerSalt{Data2: &BadMsgNotification_Data{}} -} - -func (m *TLBadServerSalt) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_bad_server_salt)) - - x.Long(m.GetBadMsgId()) - x.Int(m.GetBadMsgSeqno()) - x.Int(m.GetErrorCode()) - x.Long(m.GetNewServerSalt()) - - return x.buf -} - -func (m *TLBadServerSalt) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_bad_server_salt)) - - x.Long(m.GetBadMsgId()) - x.Int(m.GetBadMsgSeqno()) - x.Int(m.GetErrorCode()) - x.Long(m.GetNewServerSalt()) - - return x.buf -} - -func (m *TLBadServerSalt) Decode(dbuf *DecodeBuf) error { - m.SetBadMsgId(dbuf.Long()) - m.SetBadMsgSeqno(dbuf.Int()) - m.SetErrorCode(dbuf.Int()) - m.SetNewServerSalt(dbuf.Long()) - - return dbuf.err -} - /////////////////////////////////////////////////////////////////////////////// // AccessPointRule <-- // + TL_AccessPointRule @@ -4258,14 +4347,14 @@ func (m *TLMsgsStateReq) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// MsgsAllInfo <-- -// + TL_MsgsAllInfo +// RpcError <-- +// + TL_RpcError // -func (m *MsgsAllInfo) Encode() []byte { +func (m *RpcError) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_msgs_all_info: - t := m.To_MsgsAllInfo() + case TLConstructor_CRC32_rpc_error: + t := m.To_RpcError() return t.Encode() default: @@ -4274,11 +4363,11 @@ func (m *MsgsAllInfo) Encode() []byte { } } -func (m *MsgsAllInfo) EncodeToLayer(layer int) []byte { +func (m *RpcError) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_msgs_all_info: - t := m.To_MsgsAllInfo() + case TLConstructor_CRC32_rpc_error: + t := m.To_RpcError() return t.EncodeToLayer(layer) default: @@ -4287,11 +4376,11 @@ func (m *MsgsAllInfo) EncodeToLayer(layer int) []byte { } } -func (m *MsgsAllInfo) Decode(dbuf *DecodeBuf) error { +func (m *RpcError) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_msgs_all_info: - m2 := &TLMsgsAllInfo{Data2: &MsgsAllInfo_Data{}} + case TLConstructor_CRC32_rpc_error: + m2 := &TLRpcError{Data2: &RpcError_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -4301,77 +4390,67 @@ func (m *MsgsAllInfo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// msgs_all_info#8cc0d131 msg_ids:Vector info:string = MsgsAllInfo; -func (m *MsgsAllInfo) To_MsgsAllInfo() *TLMsgsAllInfo { - return &TLMsgsAllInfo{ +// rpc_error#2144ca19 error_code:int error_message:string = RpcError; +func (m *RpcError) To_RpcError() *TLRpcError { + return &TLRpcError{ Data2: m.Data2, } } -// msgs_all_info#8cc0d131 msg_ids:Vector info:string = MsgsAllInfo; -func (m *TLMsgsAllInfo) To_MsgsAllInfo() *MsgsAllInfo { - return &MsgsAllInfo{ - Constructor: TLConstructor_CRC32_msgs_all_info, +// rpc_error#2144ca19 error_code:int error_message:string = RpcError; +func (m *TLRpcError) To_RpcError() *RpcError { + return &RpcError{ + Constructor: TLConstructor_CRC32_rpc_error, Data2: m.Data2, } } -func (m *TLMsgsAllInfo) SetMsgIds(v []int64) { m.Data2.MsgIds = v } -func (m *TLMsgsAllInfo) GetMsgIds() []int64 { return m.Data2.MsgIds } +func (m *TLRpcError) SetErrorCode(v int32) { m.Data2.ErrorCode = v } +func (m *TLRpcError) GetErrorCode() int32 { return m.Data2.ErrorCode } -func (m *TLMsgsAllInfo) SetInfo(v string) { m.Data2.Info = v } -func (m *TLMsgsAllInfo) GetInfo() string { return m.Data2.Info } +func (m *TLRpcError) SetErrorMessage(v string) { m.Data2.ErrorMessage = v } +func (m *TLRpcError) GetErrorMessage() string { return m.Data2.ErrorMessage } -func NewTLMsgsAllInfo() *TLMsgsAllInfo { - return &TLMsgsAllInfo{Data2: &MsgsAllInfo_Data{}} +func NewTLRpcError() *TLRpcError { + return &TLRpcError{Data2: &RpcError_Data{}} } -func (m *TLMsgsAllInfo) Encode() []byte { +func (m *TLRpcError) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msgs_all_info)) - - x.VectorLong(m.GetMsgIds()) + x.Int(int32(TLConstructor_CRC32_rpc_error)) - x.String(m.GetInfo()) + x.Int(m.GetErrorCode()) + x.String(m.GetErrorMessage()) return x.buf } -func (m *TLMsgsAllInfo) EncodeToLayer(layer int) []byte { +func (m *TLRpcError) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_msgs_all_info)) - - x.VectorLong(m.GetMsgIds()) + x.Int(int32(TLConstructor_CRC32_rpc_error)) - x.String(m.GetInfo()) + x.Int(m.GetErrorCode()) + x.String(m.GetErrorMessage()) return x.buf } -func (m *TLMsgsAllInfo) Decode(dbuf *DecodeBuf) error { - m.SetMsgIds(dbuf.VectorLong()) - m.SetInfo(dbuf.String()) +func (m *TLRpcError) Decode(dbuf *DecodeBuf) error { + m.SetErrorCode(dbuf.Int()) + m.SetErrorMessage(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// RpcDropAnswer <-- -// + TL_RpcAnswerUnknown -// + TL_RpcAnswerDroppedRunning -// + TL_RpcAnswerDropped +// NewSession <-- +// + TL_NewSessionCreated // -func (m *RpcDropAnswer) Encode() []byte { +func (m *NewSession) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_rpc_answer_unknown: - t := m.To_RpcAnswerUnknown() - return t.Encode() - case TLConstructor_CRC32_rpc_answer_dropped_running: - t := m.To_RpcAnswerDroppedRunning() - return t.Encode() - case TLConstructor_CRC32_rpc_answer_dropped: - t := m.To_RpcAnswerDropped() + case TLConstructor_CRC32_new_session_created: + t := m.To_NewSessionCreated() return t.Encode() default: @@ -4380,17 +4459,11 @@ func (m *RpcDropAnswer) Encode() []byte { } } -func (m *RpcDropAnswer) EncodeToLayer(layer int) []byte { +func (m *NewSession) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_rpc_answer_unknown: - t := m.To_RpcAnswerUnknown() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_rpc_answer_dropped_running: - t := m.To_RpcAnswerDroppedRunning() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_rpc_answer_dropped: - t := m.To_RpcAnswerDropped() + case TLConstructor_CRC32_new_session_created: + t := m.To_NewSessionCreated() return t.EncodeToLayer(layer) default: @@ -4399,19 +4472,11 @@ func (m *RpcDropAnswer) EncodeToLayer(layer int) []byte { } } -func (m *RpcDropAnswer) Decode(dbuf *DecodeBuf) error { +func (m *NewSession) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_rpc_answer_unknown: - m2 := &TLRpcAnswerUnknown{Data2: &RpcDropAnswer_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_rpc_answer_dropped_running: - m2 := &TLRpcAnswerDroppedRunning{Data2: &RpcDropAnswer_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_rpc_answer_dropped: - m2 := &TLRpcAnswerDropped{Data2: &RpcDropAnswer_Data{}} + case TLConstructor_CRC32_new_session_created: + m2 := &TLNewSessionCreated{Data2: &NewSession_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -4421,149 +4486,73 @@ func (m *RpcDropAnswer) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// rpc_answer_unknown#5e2ad36e = RpcDropAnswer; -func (m *RpcDropAnswer) To_RpcAnswerUnknown() *TLRpcAnswerUnknown { - return &TLRpcAnswerUnknown{ - Data2: m.Data2, - } -} - -// rpc_answer_dropped_running#cd78e586 = RpcDropAnswer; -func (m *RpcDropAnswer) To_RpcAnswerDroppedRunning() *TLRpcAnswerDroppedRunning { - return &TLRpcAnswerDroppedRunning{ - Data2: m.Data2, - } -} - -// rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer; -func (m *RpcDropAnswer) To_RpcAnswerDropped() *TLRpcAnswerDropped { - return &TLRpcAnswerDropped{ +// new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession; +func (m *NewSession) To_NewSessionCreated() *TLNewSessionCreated { + return &TLNewSessionCreated{ Data2: m.Data2, } } -// rpc_answer_unknown#5e2ad36e = RpcDropAnswer; -func (m *TLRpcAnswerUnknown) To_RpcDropAnswer() *RpcDropAnswer { - return &RpcDropAnswer{ - Constructor: TLConstructor_CRC32_rpc_answer_unknown, - Data2: m.Data2, - } -} - -func NewTLRpcAnswerUnknown() *TLRpcAnswerUnknown { - return &TLRpcAnswerUnknown{Data2: &RpcDropAnswer_Data{}} -} - -func (m *TLRpcAnswerUnknown) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_rpc_answer_unknown)) - - return x.buf -} - -func (m *TLRpcAnswerUnknown) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_rpc_answer_unknown)) - - return x.buf -} - -func (m *TLRpcAnswerUnknown) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// rpc_answer_dropped_running#cd78e586 = RpcDropAnswer; -func (m *TLRpcAnswerDroppedRunning) To_RpcDropAnswer() *RpcDropAnswer { - return &RpcDropAnswer{ - Constructor: TLConstructor_CRC32_rpc_answer_dropped_running, - Data2: m.Data2, - } -} - -func NewTLRpcAnswerDroppedRunning() *TLRpcAnswerDroppedRunning { - return &TLRpcAnswerDroppedRunning{Data2: &RpcDropAnswer_Data{}} -} - -func (m *TLRpcAnswerDroppedRunning) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_rpc_answer_dropped_running)) - - return x.buf -} - -func (m *TLRpcAnswerDroppedRunning) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_rpc_answer_dropped_running)) - - return x.buf -} - -func (m *TLRpcAnswerDroppedRunning) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer; -func (m *TLRpcAnswerDropped) To_RpcDropAnswer() *RpcDropAnswer { - return &RpcDropAnswer{ - Constructor: TLConstructor_CRC32_rpc_answer_dropped, +// new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession; +func (m *TLNewSessionCreated) To_NewSession() *NewSession { + return &NewSession{ + Constructor: TLConstructor_CRC32_new_session_created, Data2: m.Data2, } } -func (m *TLRpcAnswerDropped) SetMsgId(v int64) { m.Data2.MsgId = v } -func (m *TLRpcAnswerDropped) GetMsgId() int64 { return m.Data2.MsgId } +func (m *TLNewSessionCreated) SetFirstMsgId(v int64) { m.Data2.FirstMsgId = v } +func (m *TLNewSessionCreated) GetFirstMsgId() int64 { return m.Data2.FirstMsgId } -func (m *TLRpcAnswerDropped) SetSeqNo(v int32) { m.Data2.SeqNo = v } -func (m *TLRpcAnswerDropped) GetSeqNo() int32 { return m.Data2.SeqNo } +func (m *TLNewSessionCreated) SetUniqueId(v int64) { m.Data2.UniqueId = v } +func (m *TLNewSessionCreated) GetUniqueId() int64 { return m.Data2.UniqueId } -func (m *TLRpcAnswerDropped) SetBytes(v int32) { m.Data2.Bytes = v } -func (m *TLRpcAnswerDropped) GetBytes() int32 { return m.Data2.Bytes } +func (m *TLNewSessionCreated) SetServerSalt(v int64) { m.Data2.ServerSalt = v } +func (m *TLNewSessionCreated) GetServerSalt() int64 { return m.Data2.ServerSalt } -func NewTLRpcAnswerDropped() *TLRpcAnswerDropped { - return &TLRpcAnswerDropped{Data2: &RpcDropAnswer_Data{}} +func NewTLNewSessionCreated() *TLNewSessionCreated { + return &TLNewSessionCreated{Data2: &NewSession_Data{}} } -func (m *TLRpcAnswerDropped) Encode() []byte { +func (m *TLNewSessionCreated) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_rpc_answer_dropped)) + x.Int(int32(TLConstructor_CRC32_new_session_created)) - x.Long(m.GetMsgId()) - x.Int(m.GetSeqNo()) - x.Int(m.GetBytes()) + x.Long(m.GetFirstMsgId()) + x.Long(m.GetUniqueId()) + x.Long(m.GetServerSalt()) return x.buf } -func (m *TLRpcAnswerDropped) EncodeToLayer(layer int) []byte { +func (m *TLNewSessionCreated) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_rpc_answer_dropped)) + x.Int(int32(TLConstructor_CRC32_new_session_created)) - x.Long(m.GetMsgId()) - x.Int(m.GetSeqNo()) - x.Int(m.GetBytes()) + x.Long(m.GetFirstMsgId()) + x.Long(m.GetUniqueId()) + x.Long(m.GetServerSalt()) return x.buf } -func (m *TLRpcAnswerDropped) Decode(dbuf *DecodeBuf) error { - m.SetMsgId(dbuf.Long()) - m.SetSeqNo(dbuf.Int()) - m.SetBytes(dbuf.Int()) +func (m *TLNewSessionCreated) Decode(dbuf *DecodeBuf) error { + m.SetFirstMsgId(dbuf.Long()) + m.SetUniqueId(dbuf.Long()) + m.SetServerSalt(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// FutureSalt <-- -// + TL_FutureSalt +// Help_ConfigSimple <-- +// + TL_HelpConfigSimple // -func (m *FutureSalt) Encode() []byte { +func (m *Help_ConfigSimple) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_future_salt: - t := m.To_FutureSalt() + case TLConstructor_CRC32_help_configSimple: + t := m.To_HelpConfigSimple() return t.Encode() default: @@ -4572,11 +4561,11 @@ func (m *FutureSalt) Encode() []byte { } } -func (m *FutureSalt) EncodeToLayer(layer int) []byte { +func (m *Help_ConfigSimple) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_future_salt: - t := m.To_FutureSalt() + case TLConstructor_CRC32_help_configSimple: + t := m.To_HelpConfigSimple() return t.EncodeToLayer(layer) default: @@ -4585,11 +4574,11 @@ func (m *FutureSalt) EncodeToLayer(layer int) []byte { } } -func (m *FutureSalt) Decode(dbuf *DecodeBuf) error { +func (m *Help_ConfigSimple) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_future_salt: - m2 := &TLFutureSalt{Data2: &FutureSalt_Data{}} + case TLConstructor_CRC32_help_configSimple: + m2 := &TLHelpConfigSimple{Data2: &Help_ConfigSimple_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -4599,73 +4588,85 @@ func (m *FutureSalt) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt; -func (m *FutureSalt) To_FutureSalt() *TLFutureSalt { - return &TLFutureSalt{ +// help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; +func (m *Help_ConfigSimple) To_HelpConfigSimple() *TLHelpConfigSimple { + return &TLHelpConfigSimple{ Data2: m.Data2, } } -// future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt; -func (m *TLFutureSalt) To_FutureSalt() *FutureSalt { - return &FutureSalt{ - Constructor: TLConstructor_CRC32_future_salt, +// help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; +func (m *TLHelpConfigSimple) To_Help_ConfigSimple() *Help_ConfigSimple { + return &Help_ConfigSimple{ + Constructor: TLConstructor_CRC32_help_configSimple, Data2: m.Data2, } } -func (m *TLFutureSalt) SetValidSince(v int32) { m.Data2.ValidSince = v } -func (m *TLFutureSalt) GetValidSince() int32 { return m.Data2.ValidSince } +func (m *TLHelpConfigSimple) SetDate(v int32) { m.Data2.Date = v } +func (m *TLHelpConfigSimple) GetDate() int32 { return m.Data2.Date } -func (m *TLFutureSalt) SetValidUntil(v int32) { m.Data2.ValidUntil = v } -func (m *TLFutureSalt) GetValidUntil() int32 { return m.Data2.ValidUntil } +func (m *TLHelpConfigSimple) SetExpires(v int32) { m.Data2.Expires = v } +func (m *TLHelpConfigSimple) GetExpires() int32 { return m.Data2.Expires } -func (m *TLFutureSalt) SetSalt(v int64) { m.Data2.Salt = v } -func (m *TLFutureSalt) GetSalt() int64 { return m.Data2.Salt } +func (m *TLHelpConfigSimple) SetRules(v []*AccessPointRule) { m.Data2.Rules = v } +func (m *TLHelpConfigSimple) GetRules() []*AccessPointRule { return m.Data2.Rules } -func NewTLFutureSalt() *TLFutureSalt { - return &TLFutureSalt{Data2: &FutureSalt_Data{}} +func NewTLHelpConfigSimple() *TLHelpConfigSimple { + return &TLHelpConfigSimple{Data2: &Help_ConfigSimple_Data{}} } -func (m *TLFutureSalt) Encode() []byte { +func (m *TLHelpConfigSimple) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_future_salt)) + x.Int(int32(TLConstructor_CRC32_help_configSimple)) - x.Int(m.GetValidSince()) - x.Int(m.GetValidUntil()) - x.Long(m.GetSalt()) + x.Int(m.GetDate()) + x.Int(m.GetExpires()) + x.Int(int32(len(m.GetRules()))) + for _, v := range m.GetRules() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLFutureSalt) EncodeToLayer(layer int) []byte { +func (m *TLHelpConfigSimple) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_future_salt)) + x.Int(int32(TLConstructor_CRC32_help_configSimple)) - x.Int(m.GetValidSince()) - x.Int(m.GetValidUntil()) - x.Long(m.GetSalt()) + x.Int(m.GetDate()) + x.Int(m.GetExpires()) + x.Int(int32(len(m.GetRules()))) + for _, v := range m.GetRules() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLFutureSalt) Decode(dbuf *DecodeBuf) error { - m.SetValidSince(dbuf.Int()) - m.SetValidUntil(dbuf.Int()) - m.SetSalt(dbuf.Long()) +func (m *TLHelpConfigSimple) Decode(dbuf *DecodeBuf) error { + m.SetDate(dbuf.Int()) + m.SetExpires(dbuf.Int()) + l3 := dbuf.Int() + v3 := make([]*AccessPointRule, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &AccessPointRule{} + v3[i].Decode(dbuf) + } + m.SetRules(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SavedContact <-- -// + TL_SavedPhoneContact +// Authorization <-- +// + TL_Authorization // -func (m *SavedContact) Encode() []byte { +func (m *Authorization) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_savedPhoneContact: - t := m.To_SavedPhoneContact() + case TLConstructor_CRC32_authorization: + t := m.To_Authorization() return t.Encode() default: @@ -4674,11 +4675,11 @@ func (m *SavedContact) Encode() []byte { } } -func (m *SavedContact) EncodeToLayer(layer int) []byte { +func (m *Authorization) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_savedPhoneContact: - t := m.To_SavedPhoneContact() + case TLConstructor_CRC32_authorization: + t := m.To_Authorization() return t.EncodeToLayer(layer) default: @@ -4687,11 +4688,11 @@ func (m *SavedContact) EncodeToLayer(layer int) []byte { } } -func (m *SavedContact) Decode(dbuf *DecodeBuf) error { +func (m *Authorization) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_savedPhoneContact: - m2 := &TLSavedPhoneContact{Data2: &SavedContact_Data{}} + case TLConstructor_CRC32_authorization: + m2 := &TLAuthorization{Data2: &Authorization_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -4701,87 +4702,141 @@ func (m *SavedContact) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact; -func (m *SavedContact) To_SavedPhoneContact() *TLSavedPhoneContact { - return &TLSavedPhoneContact{ +// authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization; +func (m *Authorization) To_Authorization() *TLAuthorization { + return &TLAuthorization{ Data2: m.Data2, } } -// savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact; -func (m *TLSavedPhoneContact) To_SavedContact() *SavedContact { - return &SavedContact{ - Constructor: TLConstructor_CRC32_savedPhoneContact, +// authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization; +func (m *TLAuthorization) To_Authorization() *Authorization { + return &Authorization{ + Constructor: TLConstructor_CRC32_authorization, Data2: m.Data2, } } -func (m *TLSavedPhoneContact) SetPhone(v string) { m.Data2.Phone = v } -func (m *TLSavedPhoneContact) GetPhone() string { return m.Data2.Phone } +func (m *TLAuthorization) SetHash(v int64) { m.Data2.Hash = v } +func (m *TLAuthorization) GetHash() int64 { return m.Data2.Hash } -func (m *TLSavedPhoneContact) SetFirstName(v string) { m.Data2.FirstName = v } -func (m *TLSavedPhoneContact) GetFirstName() string { return m.Data2.FirstName } +func (m *TLAuthorization) SetFlags(v int32) { m.Data2.Flags = v } +func (m *TLAuthorization) GetFlags() int32 { return m.Data2.Flags } -func (m *TLSavedPhoneContact) SetLastName(v string) { m.Data2.LastName = v } -func (m *TLSavedPhoneContact) GetLastName() string { return m.Data2.LastName } +func (m *TLAuthorization) SetDeviceModel(v string) { m.Data2.DeviceModel = v } +func (m *TLAuthorization) GetDeviceModel() string { return m.Data2.DeviceModel } -func (m *TLSavedPhoneContact) SetDate(v int32) { m.Data2.Date = v } -func (m *TLSavedPhoneContact) GetDate() int32 { return m.Data2.Date } +func (m *TLAuthorization) SetPlatform(v string) { m.Data2.Platform = v } +func (m *TLAuthorization) GetPlatform() string { return m.Data2.Platform } -func NewTLSavedPhoneContact() *TLSavedPhoneContact { - return &TLSavedPhoneContact{Data2: &SavedContact_Data{}} +func (m *TLAuthorization) SetSystemVersion(v string) { m.Data2.SystemVersion = v } +func (m *TLAuthorization) GetSystemVersion() string { return m.Data2.SystemVersion } + +func (m *TLAuthorization) SetApiId(v int32) { m.Data2.ApiId = v } +func (m *TLAuthorization) GetApiId() int32 { return m.Data2.ApiId } + +func (m *TLAuthorization) SetAppName(v string) { m.Data2.AppName = v } +func (m *TLAuthorization) GetAppName() string { return m.Data2.AppName } + +func (m *TLAuthorization) SetAppVersion(v string) { m.Data2.AppVersion = v } +func (m *TLAuthorization) GetAppVersion() string { return m.Data2.AppVersion } + +func (m *TLAuthorization) SetDateCreated(v int32) { m.Data2.DateCreated = v } +func (m *TLAuthorization) GetDateCreated() int32 { return m.Data2.DateCreated } + +func (m *TLAuthorization) SetDateActive(v int32) { m.Data2.DateActive = v } +func (m *TLAuthorization) GetDateActive() int32 { return m.Data2.DateActive } + +func (m *TLAuthorization) SetIp(v string) { m.Data2.Ip = v } +func (m *TLAuthorization) GetIp() string { return m.Data2.Ip } + +func (m *TLAuthorization) SetCountry(v string) { m.Data2.Country = v } +func (m *TLAuthorization) GetCountry() string { return m.Data2.Country } + +func (m *TLAuthorization) SetRegion(v string) { m.Data2.Region = v } +func (m *TLAuthorization) GetRegion() string { return m.Data2.Region } + +func NewTLAuthorization() *TLAuthorization { + return &TLAuthorization{Data2: &Authorization_Data{}} } -func (m *TLSavedPhoneContact) Encode() []byte { +func (m *TLAuthorization) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_savedPhoneContact)) + x.Int(int32(TLConstructor_CRC32_authorization)) - x.String(m.GetPhone()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.Int(m.GetDate()) + x.Long(m.GetHash()) + x.Int(m.GetFlags()) + x.String(m.GetDeviceModel()) + x.String(m.GetPlatform()) + x.String(m.GetSystemVersion()) + x.Int(m.GetApiId()) + x.String(m.GetAppName()) + x.String(m.GetAppVersion()) + x.Int(m.GetDateCreated()) + x.Int(m.GetDateActive()) + x.String(m.GetIp()) + x.String(m.GetCountry()) + x.String(m.GetRegion()) return x.buf } -func (m *TLSavedPhoneContact) EncodeToLayer(layer int) []byte { +func (m *TLAuthorization) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_savedPhoneContact)) + x.Int(int32(TLConstructor_CRC32_authorization)) - x.String(m.GetPhone()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.Int(m.GetDate()) + x.Long(m.GetHash()) + x.Int(m.GetFlags()) + x.String(m.GetDeviceModel()) + x.String(m.GetPlatform()) + x.String(m.GetSystemVersion()) + x.Int(m.GetApiId()) + x.String(m.GetAppName()) + x.String(m.GetAppVersion()) + x.Int(m.GetDateCreated()) + x.Int(m.GetDateActive()) + x.String(m.GetIp()) + x.String(m.GetCountry()) + x.String(m.GetRegion()) return x.buf } -func (m *TLSavedPhoneContact) Decode(dbuf *DecodeBuf) error { - m.SetPhone(dbuf.String()) - m.SetFirstName(dbuf.String()) - m.SetLastName(dbuf.String()) - m.SetDate(dbuf.Int()) +func (m *TLAuthorization) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Long()) + m.SetFlags(dbuf.Int()) + m.SetDeviceModel(dbuf.String()) + m.SetPlatform(dbuf.String()) + m.SetSystemVersion(dbuf.String()) + m.SetApiId(dbuf.Int()) + m.SetAppName(dbuf.String()) + m.SetAppVersion(dbuf.String()) + m.SetDateCreated(dbuf.Int()) + m.SetDateActive(dbuf.Int()) + m.SetIp(dbuf.String()) + m.SetCountry(dbuf.String()) + m.SetRegion(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// FileLocation <-- -// + TL_FileLocationUnavailable -// + TL_FileLocation -// + TL_FileLocationLayer86 +// InputStickerSet <-- +// + TL_InputStickerSetEmpty +// + TL_InputStickerSetID +// + TL_InputStickerSetShortName // -func (m *FileLocation) Encode() []byte { +func (m *InputStickerSet) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_fileLocationUnavailable: - t := m.To_FileLocationUnavailable() + case TLConstructor_CRC32_inputStickerSetEmpty: + t := m.To_InputStickerSetEmpty() return t.Encode() - case TLConstructor_CRC32_fileLocation: - t := m.To_FileLocation() + case TLConstructor_CRC32_inputStickerSetID: + t := m.To_InputStickerSetID() return t.Encode() - case TLConstructor_CRC32_fileLocationLayer86: - t := m.To_FileLocationLayer86() + case TLConstructor_CRC32_inputStickerSetShortName: + t := m.To_InputStickerSetShortName() return t.Encode() default: @@ -4790,17 +4845,17 @@ func (m *FileLocation) Encode() []byte { } } -func (m *FileLocation) EncodeToLayer(layer int) []byte { +func (m *InputStickerSet) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_fileLocationUnavailable: - t := m.To_FileLocationUnavailable() + case TLConstructor_CRC32_inputStickerSetEmpty: + t := m.To_InputStickerSetEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_fileLocation: - t := m.To_FileLocation() + case TLConstructor_CRC32_inputStickerSetID: + t := m.To_InputStickerSetID() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_fileLocationLayer86: - t := m.To_FileLocationLayer86() + case TLConstructor_CRC32_inputStickerSetShortName: + t := m.To_InputStickerSetShortName() return t.EncodeToLayer(layer) default: @@ -4809,15 +4864,468 @@ func (m *FileLocation) EncodeToLayer(layer int) []byte { } } -func (m *FileLocation) Decode(dbuf *DecodeBuf) error { +func (m *InputStickerSet) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_fileLocationUnavailable: - m2 := &TLFileLocationUnavailable{Data2: &FileLocation_Data{}} + case TLConstructor_CRC32_inputStickerSetEmpty: + m2 := &TLInputStickerSetEmpty{Data2: &InputStickerSet_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_fileLocation: - m2 := &TLFileLocation{Data2: &FileLocation_Data{}} + case TLConstructor_CRC32_inputStickerSetID: + m2 := &TLInputStickerSetID{Data2: &InputStickerSet_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputStickerSetShortName: + m2 := &TLInputStickerSetShortName{Data2: &InputStickerSet_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// inputStickerSetEmpty#ffb62b95 = InputStickerSet; +func (m *InputStickerSet) To_InputStickerSetEmpty() *TLInputStickerSetEmpty { + return &TLInputStickerSetEmpty{ + Data2: m.Data2, + } +} + +// inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; +func (m *InputStickerSet) To_InputStickerSetID() *TLInputStickerSetID { + return &TLInputStickerSetID{ + Data2: m.Data2, + } +} + +// inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; +func (m *InputStickerSet) To_InputStickerSetShortName() *TLInputStickerSetShortName { + return &TLInputStickerSetShortName{ + Data2: m.Data2, + } +} + +// inputStickerSetEmpty#ffb62b95 = InputStickerSet; +func (m *TLInputStickerSetEmpty) To_InputStickerSet() *InputStickerSet { + return &InputStickerSet{ + Constructor: TLConstructor_CRC32_inputStickerSetEmpty, + Data2: m.Data2, + } +} + +func NewTLInputStickerSetEmpty() *TLInputStickerSetEmpty { + return &TLInputStickerSetEmpty{Data2: &InputStickerSet_Data{}} +} + +func (m *TLInputStickerSetEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputStickerSetEmpty)) + + return x.buf +} + +func (m *TLInputStickerSetEmpty) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputStickerSetEmpty)) + + return x.buf +} + +func (m *TLInputStickerSetEmpty) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; +func (m *TLInputStickerSetID) To_InputStickerSet() *InputStickerSet { + return &InputStickerSet{ + Constructor: TLConstructor_CRC32_inputStickerSetID, + Data2: m.Data2, + } +} + +func (m *TLInputStickerSetID) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputStickerSetID) GetId() int64 { return m.Data2.Id } + +func (m *TLInputStickerSetID) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputStickerSetID) GetAccessHash() int64 { return m.Data2.AccessHash } + +func NewTLInputStickerSetID() *TLInputStickerSetID { + return &TLInputStickerSetID{Data2: &InputStickerSet_Data{}} +} + +func (m *TLInputStickerSetID) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputStickerSetID)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputStickerSetID) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputStickerSetID)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputStickerSetID) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + + return dbuf.err +} + +// inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; +func (m *TLInputStickerSetShortName) To_InputStickerSet() *InputStickerSet { + return &InputStickerSet{ + Constructor: TLConstructor_CRC32_inputStickerSetShortName, + Data2: m.Data2, + } +} + +func (m *TLInputStickerSetShortName) SetShortName(v string) { m.Data2.ShortName = v } +func (m *TLInputStickerSetShortName) GetShortName() string { return m.Data2.ShortName } + +func NewTLInputStickerSetShortName() *TLInputStickerSetShortName { + return &TLInputStickerSetShortName{Data2: &InputStickerSet_Data{}} +} + +func (m *TLInputStickerSetShortName) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputStickerSetShortName)) + + x.String(m.GetShortName()) + + return x.buf +} + +func (m *TLInputStickerSetShortName) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputStickerSetShortName)) + + x.String(m.GetShortName()) + + return x.buf +} + +func (m *TLInputStickerSetShortName) Decode(dbuf *DecodeBuf) error { + m.SetShortName(dbuf.String()) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// Payments_PaymentForm <-- +// + TL_PaymentsPaymentForm +// + +func (m *Payments_PaymentForm) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_payments_paymentForm: + t := m.To_PaymentsPaymentForm() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *Payments_PaymentForm) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_payments_paymentForm: + t := m.To_PaymentsPaymentForm() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *Payments_PaymentForm) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_payments_paymentForm: + m2 := &TLPaymentsPaymentForm{Data2: &Payments_PaymentForm_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; +func (m *Payments_PaymentForm) To_PaymentsPaymentForm() *TLPaymentsPaymentForm { + return &TLPaymentsPaymentForm{ + Data2: m.Data2, + } +} + +// payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; +func (m *TLPaymentsPaymentForm) To_Payments_PaymentForm() *Payments_PaymentForm { + return &Payments_PaymentForm{ + Constructor: TLConstructor_CRC32_payments_paymentForm, + Data2: m.Data2, + } +} + +func (m *TLPaymentsPaymentForm) SetCanSaveCredentials(v bool) { m.Data2.CanSaveCredentials = v } +func (m *TLPaymentsPaymentForm) GetCanSaveCredentials() bool { return m.Data2.CanSaveCredentials } + +func (m *TLPaymentsPaymentForm) SetPasswordMissing(v bool) { m.Data2.PasswordMissing = v } +func (m *TLPaymentsPaymentForm) GetPasswordMissing() bool { return m.Data2.PasswordMissing } + +func (m *TLPaymentsPaymentForm) SetBotId(v int32) { m.Data2.BotId = v } +func (m *TLPaymentsPaymentForm) GetBotId() int32 { return m.Data2.BotId } + +func (m *TLPaymentsPaymentForm) SetInvoice(v *Invoice) { m.Data2.Invoice = v } +func (m *TLPaymentsPaymentForm) GetInvoice() *Invoice { return m.Data2.Invoice } + +func (m *TLPaymentsPaymentForm) SetProviderId(v int32) { m.Data2.ProviderId = v } +func (m *TLPaymentsPaymentForm) GetProviderId() int32 { return m.Data2.ProviderId } + +func (m *TLPaymentsPaymentForm) SetUrl(v string) { m.Data2.Url = v } +func (m *TLPaymentsPaymentForm) GetUrl() string { return m.Data2.Url } + +func (m *TLPaymentsPaymentForm) SetNativeProvider(v string) { m.Data2.NativeProvider = v } +func (m *TLPaymentsPaymentForm) GetNativeProvider() string { return m.Data2.NativeProvider } + +func (m *TLPaymentsPaymentForm) SetNativeParams(v *DataJSON) { m.Data2.NativeParams = v } +func (m *TLPaymentsPaymentForm) GetNativeParams() *DataJSON { return m.Data2.NativeParams } + +func (m *TLPaymentsPaymentForm) SetSavedInfo(v *PaymentRequestedInfo) { m.Data2.SavedInfo = v } +func (m *TLPaymentsPaymentForm) GetSavedInfo() *PaymentRequestedInfo { return m.Data2.SavedInfo } + +func (m *TLPaymentsPaymentForm) SetSavedCredentials(v *PaymentSavedCredentials) { + m.Data2.SavedCredentials = v +} +func (m *TLPaymentsPaymentForm) GetSavedCredentials() *PaymentSavedCredentials { + return m.Data2.SavedCredentials +} + +func (m *TLPaymentsPaymentForm) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLPaymentsPaymentForm) GetUsers() []*User { return m.Data2.Users } + +func NewTLPaymentsPaymentForm() *TLPaymentsPaymentForm { + return &TLPaymentsPaymentForm{Data2: &Payments_PaymentForm_Data{}} +} + +func (m *TLPaymentsPaymentForm) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_payments_paymentForm)) + + // flags + var flags uint32 = 0 + if m.GetCanSaveCredentials() == true { + flags |= 1 << 2 + } + if m.GetPasswordMissing() == true { + flags |= 1 << 3 + } + if m.GetNativeProvider() != "" { + flags |= 1 << 4 + } + if m.GetNativeParams() != nil { + flags |= 1 << 4 + } + if m.GetSavedInfo() != nil { + flags |= 1 << 0 + } + if m.GetSavedCredentials() != nil { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetBotId()) + x.Bytes(m.GetInvoice().Encode()) + x.Int(m.GetProviderId()) + x.String(m.GetUrl()) + if m.GetNativeProvider() != "" { + x.String(m.GetNativeProvider()) + } + if m.GetNativeParams() != nil { + x.Bytes(m.GetNativeParams().Encode()) + } + if m.GetSavedInfo() != nil { + x.Bytes(m.GetSavedInfo().Encode()) + } + if m.GetSavedCredentials() != nil { + x.Bytes(m.GetSavedCredentials().Encode()) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } + + return x.buf +} + +func (m *TLPaymentsPaymentForm) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_payments_paymentForm)) + + // flags + var flags uint32 = 0 + if m.GetCanSaveCredentials() == true { + flags |= 1 << 2 + } + if m.GetPasswordMissing() == true { + flags |= 1 << 3 + } + if m.GetNativeProvider() != "" { + flags |= 1 << 4 + } + if m.GetNativeParams() != nil { + flags |= 1 << 4 + } + if m.GetSavedInfo() != nil { + flags |= 1 << 0 + } + if m.GetSavedCredentials() != nil { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetBotId()) + x.Bytes(m.GetInvoice().EncodeToLayer(layer)) + x.Int(m.GetProviderId()) + x.String(m.GetUrl()) + if m.GetNativeProvider() != "" { + x.String(m.GetNativeProvider()) + } + if m.GetNativeParams() != nil { + x.Bytes(m.GetNativeParams().EncodeToLayer(layer)) + } + if m.GetSavedInfo() != nil { + x.Bytes(m.GetSavedInfo().EncodeToLayer(layer)) + } + if m.GetSavedCredentials() != nil { + x.Bytes(m.GetSavedCredentials().EncodeToLayer(layer)) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + + return x.buf +} + +func (m *TLPaymentsPaymentForm) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 2)) != 0 { + m.SetCanSaveCredentials(true) + } + if (flags & (1 << 3)) != 0 { + m.SetPasswordMissing(true) + } + m.SetBotId(dbuf.Int()) + m5 := &Invoice{} + m5.Decode(dbuf) + m.SetInvoice(m5) + m.SetProviderId(dbuf.Int()) + m.SetUrl(dbuf.String()) + if (flags & (1 << 4)) != 0 { + m.SetNativeProvider(dbuf.String()) + } + if (flags & (1 << 4)) != 0 { + m9 := &DataJSON{} + m9.Decode(dbuf) + m.SetNativeParams(m9) + } + if (flags & (1 << 0)) != 0 { + m10 := &PaymentRequestedInfo{} + m10.Decode(dbuf) + m.SetSavedInfo(m10) + } + if (flags & (1 << 1)) != 0 { + m11 := &PaymentSavedCredentials{} + m11.Decode(dbuf) + m.SetSavedCredentials(m11) + } + c12 := dbuf.Int() + if c12 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 12, c12) + return dbuf.err + } + l12 := dbuf.Int() + v12 := make([]*User, l12) + for i := int32(0); i < l12; i++ { + v12[i] = &User{} + v12[i].Decode(dbuf) + } + m.SetUsers(v12) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// FileLocation <-- +// + TL_FileLocationUnavailable +// + TL_FileLocation +// + TL_FileLocationLayer86 +// + +func (m *FileLocation) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_fileLocationUnavailable: + t := m.To_FileLocationUnavailable() + return t.Encode() + case TLConstructor_CRC32_fileLocation: + t := m.To_FileLocation() + return t.Encode() + case TLConstructor_CRC32_fileLocationLayer86: + t := m.To_FileLocationLayer86() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *FileLocation) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_fileLocationUnavailable: + t := m.To_FileLocationUnavailable() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_fileLocation: + t := m.To_FileLocation() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_fileLocationLayer86: + t := m.To_FileLocationLayer86() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *FileLocation) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_fileLocationUnavailable: + m2 := &TLFileLocationUnavailable{Data2: &FileLocation_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_fileLocation: + m2 := &TLFileLocation{Data2: &FileLocation_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 case TLConstructor_CRC32_fileLocationLayer86: @@ -5024,18 +5532,14 @@ func (m *TLFileLocationLayer86) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// UserProfilePhoto <-- -// + TL_UserProfilePhotoEmpty -// + TL_UserProfilePhoto +// SecureValueHash <-- +// + TL_SecureValueHash // -func (m *UserProfilePhoto) Encode() []byte { +func (m *SecureValueHash) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_userProfilePhotoEmpty: - t := m.To_UserProfilePhotoEmpty() - return t.Encode() - case TLConstructor_CRC32_userProfilePhoto: - t := m.To_UserProfilePhoto() + case TLConstructor_CRC32_secureValueHash: + t := m.To_SecureValueHash() return t.Encode() default: @@ -5044,14 +5548,11 @@ func (m *UserProfilePhoto) Encode() []byte { } } -func (m *UserProfilePhoto) EncodeToLayer(layer int) []byte { +func (m *SecureValueHash) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_userProfilePhotoEmpty: - t := m.To_UserProfilePhotoEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_userProfilePhoto: - t := m.To_UserProfilePhoto() + case TLConstructor_CRC32_secureValueHash: + t := m.To_SecureValueHash() return t.EncodeToLayer(layer) default: @@ -5060,15 +5561,11 @@ func (m *UserProfilePhoto) EncodeToLayer(layer int) []byte { } } -func (m *UserProfilePhoto) Decode(dbuf *DecodeBuf) error { +func (m *SecureValueHash) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_userProfilePhotoEmpty: - m2 := &TLUserProfilePhotoEmpty{Data2: &UserProfilePhoto_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_userProfilePhoto: - m2 := &TLUserProfilePhoto{Data2: &UserProfilePhoto_Data{}} + case TLConstructor_CRC32_secureValueHash: + m2 := &TLSecureValueHash{Data2: &SecureValueHash_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -5078,127 +5575,69 @@ func (m *UserProfilePhoto) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; -func (m *UserProfilePhoto) To_UserProfilePhotoEmpty() *TLUserProfilePhotoEmpty { - return &TLUserProfilePhotoEmpty{ - Data2: m.Data2, - } -} - -// userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto; -func (m *UserProfilePhoto) To_UserProfilePhoto() *TLUserProfilePhoto { - return &TLUserProfilePhoto{ +// secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash; +func (m *SecureValueHash) To_SecureValueHash() *TLSecureValueHash { + return &TLSecureValueHash{ Data2: m.Data2, } } -// userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; -func (m *TLUserProfilePhotoEmpty) To_UserProfilePhoto() *UserProfilePhoto { - return &UserProfilePhoto{ - Constructor: TLConstructor_CRC32_userProfilePhotoEmpty, +// secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash; +func (m *TLSecureValueHash) To_SecureValueHash() *SecureValueHash { + return &SecureValueHash{ + Constructor: TLConstructor_CRC32_secureValueHash, Data2: m.Data2, } } -func NewTLUserProfilePhotoEmpty() *TLUserProfilePhotoEmpty { - return &TLUserProfilePhotoEmpty{Data2: &UserProfilePhoto_Data{}} -} - -func (m *TLUserProfilePhotoEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userProfilePhotoEmpty)) - - return x.buf -} - -func (m *TLUserProfilePhotoEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userProfilePhotoEmpty)) - - return x.buf -} - -func (m *TLUserProfilePhotoEmpty) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto; -func (m *TLUserProfilePhoto) To_UserProfilePhoto() *UserProfilePhoto { - return &UserProfilePhoto{ - Constructor: TLConstructor_CRC32_userProfilePhoto, - Data2: m.Data2, - } -} - -func (m *TLUserProfilePhoto) SetPhotoId(v int64) { m.Data2.PhotoId = v } -func (m *TLUserProfilePhoto) GetPhotoId() int64 { return m.Data2.PhotoId } - -func (m *TLUserProfilePhoto) SetPhotoSmall(v *FileLocation) { m.Data2.PhotoSmall = v } -func (m *TLUserProfilePhoto) GetPhotoSmall() *FileLocation { return m.Data2.PhotoSmall } +func (m *TLSecureValueHash) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueHash) GetType() *SecureValueType { return m.Data2.Type } -func (m *TLUserProfilePhoto) SetPhotoBig(v *FileLocation) { m.Data2.PhotoBig = v } -func (m *TLUserProfilePhoto) GetPhotoBig() *FileLocation { return m.Data2.PhotoBig } +func (m *TLSecureValueHash) SetHash(v []byte) { m.Data2.Hash = v } +func (m *TLSecureValueHash) GetHash() []byte { return m.Data2.Hash } -func NewTLUserProfilePhoto() *TLUserProfilePhoto { - return &TLUserProfilePhoto{Data2: &UserProfilePhoto_Data{}} +func NewTLSecureValueHash() *TLSecureValueHash { + return &TLSecureValueHash{Data2: &SecureValueHash_Data{}} } -func (m *TLUserProfilePhoto) Encode() []byte { +func (m *TLSecureValueHash) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userProfilePhoto)) + x.Int(int32(TLConstructor_CRC32_secureValueHash)) - x.Long(m.GetPhotoId()) - x.Bytes(m.GetPhotoSmall().Encode()) - x.Bytes(m.GetPhotoBig().Encode()) + x.Bytes(m.GetType().Encode()) + x.StringBytes(m.GetHash()) return x.buf } -func (m *TLUserProfilePhoto) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueHash) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userProfilePhoto)) + x.Int(int32(TLConstructor_CRC32_secureValueHash)) - x.Long(m.GetPhotoId()) - x.Bytes(m.GetPhotoSmall().EncodeToLayer(layer)) - x.Bytes(m.GetPhotoBig().EncodeToLayer(layer)) + x.Bytes(m.GetType().EncodeToLayer(layer)) + x.StringBytes(m.GetHash()) return x.buf } -func (m *TLUserProfilePhoto) Decode(dbuf *DecodeBuf) error { - m.SetPhotoId(dbuf.Long()) - m2 := &FileLocation{} - m2.Decode(dbuf) - m.SetPhotoSmall(m2) - m3 := &FileLocation{} - m3.Decode(dbuf) - m.SetPhotoBig(m3) +func (m *TLSecureValueHash) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + m.SetHash(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Updates_Difference <-- -// + TL_UpdatesDifferenceEmpty -// + TL_UpdatesDifference -// + TL_UpdatesDifferenceSlice -// + TL_UpdatesDifferenceTooLong +// Payments_PaymentReceipt <-- +// + TL_PaymentsPaymentReceipt // -func (m *Updates_Difference) Encode() []byte { +func (m *Payments_PaymentReceipt) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_updates_differenceEmpty: - t := m.To_UpdatesDifferenceEmpty() - return t.Encode() - case TLConstructor_CRC32_updates_difference: - t := m.To_UpdatesDifference() - return t.Encode() - case TLConstructor_CRC32_updates_differenceSlice: - t := m.To_UpdatesDifferenceSlice() - return t.Encode() - case TLConstructor_CRC32_updates_differenceTooLong: - t := m.To_UpdatesDifferenceTooLong() + case TLConstructor_CRC32_payments_paymentReceipt: + t := m.To_PaymentsPaymentReceipt() return t.Encode() default: @@ -5207,20 +5646,11 @@ func (m *Updates_Difference) Encode() []byte { } } -func (m *Updates_Difference) EncodeToLayer(layer int) []byte { +func (m *Payments_PaymentReceipt) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_updates_differenceEmpty: - t := m.To_UpdatesDifferenceEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updates_difference: - t := m.To_UpdatesDifference() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updates_differenceSlice: - t := m.To_UpdatesDifferenceSlice() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updates_differenceTooLong: - t := m.To_UpdatesDifferenceTooLong() + case TLConstructor_CRC32_payments_paymentReceipt: + t := m.To_PaymentsPaymentReceipt() return t.EncodeToLayer(layer) default: @@ -5229,23 +5659,11 @@ func (m *Updates_Difference) EncodeToLayer(layer int) []byte { } } -func (m *Updates_Difference) Decode(dbuf *DecodeBuf) error { +func (m *Payments_PaymentReceipt) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_updates_differenceEmpty: - m2 := &TLUpdatesDifferenceEmpty{Data2: &Updates_Difference_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updates_difference: - m2 := &TLUpdatesDifference{Data2: &Updates_Difference_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updates_differenceSlice: - m2 := &TLUpdatesDifferenceSlice{Data2: &Updates_Difference_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updates_differenceTooLong: - m2 := &TLUpdatesDifferenceTooLong{Data2: &Updates_Difference_Data{}} + case TLConstructor_CRC32_payments_paymentReceipt: + m2 := &TLPaymentsPaymentReceipt{Data2: &Payments_PaymentReceipt_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -5255,493 +5673,308 @@ func (m *Updates_Difference) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; -func (m *Updates_Difference) To_UpdatesDifferenceEmpty() *TLUpdatesDifferenceEmpty { - return &TLUpdatesDifferenceEmpty{ - Data2: m.Data2, - } -} - -// updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; -func (m *Updates_Difference) To_UpdatesDifference() *TLUpdatesDifference { - return &TLUpdatesDifference{ - Data2: m.Data2, - } -} - -// updates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference; -func (m *Updates_Difference) To_UpdatesDifferenceSlice() *TLUpdatesDifferenceSlice { - return &TLUpdatesDifferenceSlice{ - Data2: m.Data2, - } -} - -// updates.differenceTooLong#4afe8f6d pts:int = updates.Difference; -func (m *Updates_Difference) To_UpdatesDifferenceTooLong() *TLUpdatesDifferenceTooLong { - return &TLUpdatesDifferenceTooLong{ +// payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; +func (m *Payments_PaymentReceipt) To_PaymentsPaymentReceipt() *TLPaymentsPaymentReceipt { + return &TLPaymentsPaymentReceipt{ Data2: m.Data2, } } -// updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; -func (m *TLUpdatesDifferenceEmpty) To_Updates_Difference() *Updates_Difference { - return &Updates_Difference{ - Constructor: TLConstructor_CRC32_updates_differenceEmpty, +// payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; +func (m *TLPaymentsPaymentReceipt) To_Payments_PaymentReceipt() *Payments_PaymentReceipt { + return &Payments_PaymentReceipt{ + Constructor: TLConstructor_CRC32_payments_paymentReceipt, Data2: m.Data2, } } -func (m *TLUpdatesDifferenceEmpty) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdatesDifferenceEmpty) GetDate() int32 { return m.Data2.Date } - -func (m *TLUpdatesDifferenceEmpty) SetSeq(v int32) { m.Data2.Seq = v } -func (m *TLUpdatesDifferenceEmpty) GetSeq() int32 { return m.Data2.Seq } - -func NewTLUpdatesDifferenceEmpty() *TLUpdatesDifferenceEmpty { - return &TLUpdatesDifferenceEmpty{Data2: &Updates_Difference_Data{}} -} - -func (m *TLUpdatesDifferenceEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_differenceEmpty)) - - x.Int(m.GetDate()) - x.Int(m.GetSeq()) - - return x.buf -} - -func (m *TLUpdatesDifferenceEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_differenceEmpty)) - - x.Int(m.GetDate()) - x.Int(m.GetSeq()) - - return x.buf -} +func (m *TLPaymentsPaymentReceipt) SetDate(v int32) { m.Data2.Date = v } +func (m *TLPaymentsPaymentReceipt) GetDate() int32 { return m.Data2.Date } -func (m *TLUpdatesDifferenceEmpty) Decode(dbuf *DecodeBuf) error { - m.SetDate(dbuf.Int()) - m.SetSeq(dbuf.Int()) +func (m *TLPaymentsPaymentReceipt) SetBotId(v int32) { m.Data2.BotId = v } +func (m *TLPaymentsPaymentReceipt) GetBotId() int32 { return m.Data2.BotId } - return dbuf.err -} +func (m *TLPaymentsPaymentReceipt) SetInvoice(v *Invoice) { m.Data2.Invoice = v } +func (m *TLPaymentsPaymentReceipt) GetInvoice() *Invoice { return m.Data2.Invoice } -// updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; -func (m *TLUpdatesDifference) To_Updates_Difference() *Updates_Difference { - return &Updates_Difference{ - Constructor: TLConstructor_CRC32_updates_difference, - Data2: m.Data2, - } -} +func (m *TLPaymentsPaymentReceipt) SetProviderId(v int32) { m.Data2.ProviderId = v } +func (m *TLPaymentsPaymentReceipt) GetProviderId() int32 { return m.Data2.ProviderId } -func (m *TLUpdatesDifference) SetNewMessages(v []*Message) { m.Data2.NewMessages = v } -func (m *TLUpdatesDifference) GetNewMessages() []*Message { return m.Data2.NewMessages } +func (m *TLPaymentsPaymentReceipt) SetInfo(v *PaymentRequestedInfo) { m.Data2.Info = v } +func (m *TLPaymentsPaymentReceipt) GetInfo() *PaymentRequestedInfo { return m.Data2.Info } -func (m *TLUpdatesDifference) SetNewEncryptedMessages(v []*EncryptedMessage) { - m.Data2.NewEncryptedMessages = v -} -func (m *TLUpdatesDifference) GetNewEncryptedMessages() []*EncryptedMessage { - return m.Data2.NewEncryptedMessages -} +func (m *TLPaymentsPaymentReceipt) SetShipping(v *ShippingOption) { m.Data2.Shipping = v } +func (m *TLPaymentsPaymentReceipt) GetShipping() *ShippingOption { return m.Data2.Shipping } -func (m *TLUpdatesDifference) SetOtherUpdates(v []*Update) { m.Data2.OtherUpdates = v } -func (m *TLUpdatesDifference) GetOtherUpdates() []*Update { return m.Data2.OtherUpdates } +func (m *TLPaymentsPaymentReceipt) SetCurrency(v string) { m.Data2.Currency = v } +func (m *TLPaymentsPaymentReceipt) GetCurrency() string { return m.Data2.Currency } -func (m *TLUpdatesDifference) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLUpdatesDifference) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLPaymentsPaymentReceipt) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } +func (m *TLPaymentsPaymentReceipt) GetTotalAmount() int64 { return m.Data2.TotalAmount } -func (m *TLUpdatesDifference) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLUpdatesDifference) GetUsers() []*User { return m.Data2.Users } +func (m *TLPaymentsPaymentReceipt) SetCredentialsTitle(v string) { m.Data2.CredentialsTitle = v } +func (m *TLPaymentsPaymentReceipt) GetCredentialsTitle() string { return m.Data2.CredentialsTitle } -func (m *TLUpdatesDifference) SetState(v *Updates_State) { m.Data2.State = v } -func (m *TLUpdatesDifference) GetState() *Updates_State { return m.Data2.State } +func (m *TLPaymentsPaymentReceipt) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLPaymentsPaymentReceipt) GetUsers() []*User { return m.Data2.Users } -func NewTLUpdatesDifference() *TLUpdatesDifference { - return &TLUpdatesDifference{Data2: &Updates_Difference_Data{}} +func NewTLPaymentsPaymentReceipt() *TLPaymentsPaymentReceipt { + return &TLPaymentsPaymentReceipt{Data2: &Payments_PaymentReceipt_Data{}} } -func (m *TLUpdatesDifference) Encode() []byte { +func (m *TLPaymentsPaymentReceipt) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_difference)) + x.Int(int32(TLConstructor_CRC32_payments_paymentReceipt)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewMessages()))) - for _, v := range m.GetNewMessages() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetInfo() != nil { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewEncryptedMessages()))) - for _, v := range m.GetNewEncryptedMessages() { - x.buf = append(x.buf, (*v).Encode()...) + if m.GetShipping() != nil { + flags |= 1 << 1 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetOtherUpdates()))) - for _, v := range m.GetOtherUpdates() { - x.buf = append(x.buf, (*v).Encode()...) + x.UInt(flags) + + x.Int(m.GetDate()) + x.Int(m.GetBotId()) + x.Bytes(m.GetInvoice().Encode()) + x.Int(m.GetProviderId()) + if m.GetInfo() != nil { + x.Bytes(m.GetInfo().Encode()) } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) + if m.GetShipping() != nil { + x.Bytes(m.GetShipping().Encode()) } + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) + x.String(m.GetCredentialsTitle()) x.Int(int32(TLConstructor_CRC32_vector)) x.Int(int32(len(m.GetUsers()))) for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).Encode()...) } - x.Bytes(m.GetState().Encode()) return x.buf } -func (m *TLUpdatesDifference) EncodeToLayer(layer int) []byte { +func (m *TLPaymentsPaymentReceipt) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_difference)) + x.Int(int32(TLConstructor_CRC32_payments_paymentReceipt)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewMessages()))) - for _, v := range m.GetNewMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetInfo() != nil { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewEncryptedMessages()))) - for _, v := range m.GetNewEncryptedMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + if m.GetShipping() != nil { + flags |= 1 << 1 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetOtherUpdates()))) - for _, v := range m.GetOtherUpdates() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + x.UInt(flags) + + x.Int(m.GetDate()) + x.Int(m.GetBotId()) + x.Bytes(m.GetInvoice().EncodeToLayer(layer)) + x.Int(m.GetProviderId()) + if m.GetInfo() != nil { + x.Bytes(m.GetInfo().EncodeToLayer(layer)) } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + if m.GetShipping() != nil { + x.Bytes(m.GetShipping().EncodeToLayer(layer)) } + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) + x.String(m.GetCredentialsTitle()) x.Int(int32(TLConstructor_CRC32_vector)) x.Int(int32(len(m.GetUsers()))) for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.Bytes(m.GetState().EncodeToLayer(layer)) return x.buf } -func (m *TLUpdatesDifference) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err +func (m *TLPaymentsPaymentReceipt) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetDate(dbuf.Int()) + m.SetBotId(dbuf.Int()) + m4 := &Invoice{} + m4.Decode(dbuf) + m.SetInvoice(m4) + m.SetProviderId(dbuf.Int()) + if (flags & (1 << 0)) != 0 { + m6 := &PaymentRequestedInfo{} + m6.Decode(dbuf) + m.SetInfo(m6) } - l1 := dbuf.Int() - v1 := make([]*Message, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Message{} - v1[i].Decode(dbuf) + if (flags & (1 << 1)) != 0 { + m7 := &ShippingOption{} + m7.Decode(dbuf) + m.SetShipping(m7) } - m.SetNewMessages(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + m.SetCurrency(dbuf.String()) + m.SetTotalAmount(dbuf.Long()) + m.SetCredentialsTitle(dbuf.String()) + c11 := dbuf.Int() + if c11 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 11, c11) return dbuf.err } - l2 := dbuf.Int() - v2 := make([]*EncryptedMessage, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &EncryptedMessage{} - v2[i].Decode(dbuf) + l11 := dbuf.Int() + v11 := make([]*User, l11) + for i := int32(0); i < l11; i++ { + v11[i] = &User{} + v11[i].Decode(dbuf) } - m.SetNewEncryptedMessages(v2) + m.SetUsers(v11) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Update, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Update{} - v3[i].Decode(dbuf) - } - m.SetOtherUpdates(v3) + return dbuf.err +} - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*Chat, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &Chat{} - v4[i].Decode(dbuf) - } - m.SetChats(v4) +/////////////////////////////////////////////////////////////////////////////// +// PhoneCallProtocol <-- +// + TL_PhoneCallProtocol +// - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err +func (m *PhoneCallProtocol) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_phoneCallProtocol: + t := m.To_PhoneCallProtocol() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - l5 := dbuf.Int() - v5 := make([]*User, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &User{} - v5[i].Decode(dbuf) +} + +func (m *PhoneCallProtocol) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_phoneCallProtocol: + t := m.To_PhoneCallProtocol() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - m.SetUsers(v5) +} - m6 := &Updates_State{} - m6.Decode(dbuf) - m.SetState(m6) +func (m *PhoneCallProtocol) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_phoneCallProtocol: + m2 := &TLPhoneCallProtocol{Data2: &PhoneCallProtocol_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// updates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference; -func (m *TLUpdatesDifferenceSlice) To_Updates_Difference() *Updates_Difference { - return &Updates_Difference{ - Constructor: TLConstructor_CRC32_updates_differenceSlice, - Data2: m.Data2, +// phoneCallProtocol#a2bb35cb flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int = PhoneCallProtocol; +func (m *PhoneCallProtocol) To_PhoneCallProtocol() *TLPhoneCallProtocol { + return &TLPhoneCallProtocol{ + Data2: m.Data2, } } -func (m *TLUpdatesDifferenceSlice) SetNewMessages(v []*Message) { m.Data2.NewMessages = v } -func (m *TLUpdatesDifferenceSlice) GetNewMessages() []*Message { return m.Data2.NewMessages } - -func (m *TLUpdatesDifferenceSlice) SetNewEncryptedMessages(v []*EncryptedMessage) { - m.Data2.NewEncryptedMessages = v -} -func (m *TLUpdatesDifferenceSlice) GetNewEncryptedMessages() []*EncryptedMessage { - return m.Data2.NewEncryptedMessages +// phoneCallProtocol#a2bb35cb flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int = PhoneCallProtocol; +func (m *TLPhoneCallProtocol) To_PhoneCallProtocol() *PhoneCallProtocol { + return &PhoneCallProtocol{ + Constructor: TLConstructor_CRC32_phoneCallProtocol, + Data2: m.Data2, + } } -func (m *TLUpdatesDifferenceSlice) SetOtherUpdates(v []*Update) { m.Data2.OtherUpdates = v } -func (m *TLUpdatesDifferenceSlice) GetOtherUpdates() []*Update { return m.Data2.OtherUpdates } +func (m *TLPhoneCallProtocol) SetUdpP2P(v bool) { m.Data2.UdpP2P = v } +func (m *TLPhoneCallProtocol) GetUdpP2P() bool { return m.Data2.UdpP2P } -func (m *TLUpdatesDifferenceSlice) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLUpdatesDifferenceSlice) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLPhoneCallProtocol) SetUdpReflector(v bool) { m.Data2.UdpReflector = v } +func (m *TLPhoneCallProtocol) GetUdpReflector() bool { return m.Data2.UdpReflector } -func (m *TLUpdatesDifferenceSlice) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLUpdatesDifferenceSlice) GetUsers() []*User { return m.Data2.Users } +func (m *TLPhoneCallProtocol) SetMinLayer(v int32) { m.Data2.MinLayer = v } +func (m *TLPhoneCallProtocol) GetMinLayer() int32 { return m.Data2.MinLayer } -func (m *TLUpdatesDifferenceSlice) SetIntermediateState(v *Updates_State) { - m.Data2.IntermediateState = v -} -func (m *TLUpdatesDifferenceSlice) GetIntermediateState() *Updates_State { - return m.Data2.IntermediateState -} +func (m *TLPhoneCallProtocol) SetMaxLayer(v int32) { m.Data2.MaxLayer = v } +func (m *TLPhoneCallProtocol) GetMaxLayer() int32 { return m.Data2.MaxLayer } -func NewTLUpdatesDifferenceSlice() *TLUpdatesDifferenceSlice { - return &TLUpdatesDifferenceSlice{Data2: &Updates_Difference_Data{}} +func NewTLPhoneCallProtocol() *TLPhoneCallProtocol { + return &TLPhoneCallProtocol{Data2: &PhoneCallProtocol_Data{}} } -func (m *TLUpdatesDifferenceSlice) Encode() []byte { +func (m *TLPhoneCallProtocol) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_differenceSlice)) + x.Int(int32(TLConstructor_CRC32_phoneCallProtocol)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewMessages()))) - for _, v := range m.GetNewMessages() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetUdpP2P() == true { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewEncryptedMessages()))) - for _, v := range m.GetNewEncryptedMessages() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetOtherUpdates()))) - for _, v := range m.GetOtherUpdates() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) + if m.GetUdpReflector() == true { + flags |= 1 << 1 } - x.Bytes(m.GetIntermediateState().Encode()) + x.UInt(flags) + + x.Int(m.GetMinLayer()) + x.Int(m.GetMaxLayer()) return x.buf } -func (m *TLUpdatesDifferenceSlice) EncodeToLayer(layer int) []byte { +func (m *TLPhoneCallProtocol) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_differenceSlice)) + x.Int(int32(TLConstructor_CRC32_phoneCallProtocol)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewMessages()))) - for _, v := range m.GetNewMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewEncryptedMessages()))) - for _, v := range m.GetNewEncryptedMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetOtherUpdates()))) - for _, v := range m.GetOtherUpdates() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetUdpP2P() == true { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + if m.GetUdpReflector() == true { + flags |= 1 << 1 } - x.Bytes(m.GetIntermediateState().EncodeToLayer(layer)) + x.UInt(flags) + + x.Int(m.GetMinLayer()) + x.Int(m.GetMaxLayer()) return x.buf } -func (m *TLUpdatesDifferenceSlice) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Message, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Message{} - v1[i].Decode(dbuf) - } - m.SetNewMessages(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*EncryptedMessage, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &EncryptedMessage{} - v2[i].Decode(dbuf) - } - m.SetNewEncryptedMessages(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Update, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Update{} - v3[i].Decode(dbuf) - } - m.SetOtherUpdates(v3) - - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*Chat, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &Chat{} - v4[i].Decode(dbuf) - } - m.SetChats(v4) - - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err - } - l5 := dbuf.Int() - v5 := make([]*User, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &User{} - v5[i].Decode(dbuf) +func (m *TLPhoneCallProtocol) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetUdpP2P(true) } - m.SetUsers(v5) - - m6 := &Updates_State{} - m6.Decode(dbuf) - m.SetIntermediateState(m6) - - return dbuf.err -} - -// updates.differenceTooLong#4afe8f6d pts:int = updates.Difference; -func (m *TLUpdatesDifferenceTooLong) To_Updates_Difference() *Updates_Difference { - return &Updates_Difference{ - Constructor: TLConstructor_CRC32_updates_differenceTooLong, - Data2: m.Data2, + if (flags & (1 << 1)) != 0 { + m.SetUdpReflector(true) } -} - -func (m *TLUpdatesDifferenceTooLong) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdatesDifferenceTooLong) GetPts() int32 { return m.Data2.Pts } - -func NewTLUpdatesDifferenceTooLong() *TLUpdatesDifferenceTooLong { - return &TLUpdatesDifferenceTooLong{Data2: &Updates_Difference_Data{}} -} - -func (m *TLUpdatesDifferenceTooLong) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_differenceTooLong)) - - x.Int(m.GetPts()) - - return x.buf -} - -func (m *TLUpdatesDifferenceTooLong) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_differenceTooLong)) - - x.Int(m.GetPts()) - - return x.buf -} - -func (m *TLUpdatesDifferenceTooLong) Decode(dbuf *DecodeBuf) error { - m.SetPts(dbuf.Int()) + m.SetMinLayer(dbuf.Int()) + m.SetMaxLayer(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputEncryptedFile <-- -// + TL_InputEncryptedFileEmpty -// + TL_InputEncryptedFileUploaded -// + TL_InputEncryptedFile -// + TL_InputEncryptedFileBigUploaded +// InputFile <-- +// + TL_InputFile +// + TL_InputFileBig // -func (m *InputEncryptedFile) Encode() []byte { +func (m *InputFile) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputEncryptedFileEmpty: - t := m.To_InputEncryptedFileEmpty() - return t.Encode() - case TLConstructor_CRC32_inputEncryptedFileUploaded: - t := m.To_InputEncryptedFileUploaded() - return t.Encode() - case TLConstructor_CRC32_inputEncryptedFile: - t := m.To_InputEncryptedFile() + case TLConstructor_CRC32_inputFile: + t := m.To_InputFile() return t.Encode() - case TLConstructor_CRC32_inputEncryptedFileBigUploaded: - t := m.To_InputEncryptedFileBigUploaded() + case TLConstructor_CRC32_inputFileBig: + t := m.To_InputFileBig() return t.Encode() default: @@ -5750,20 +5983,14 @@ func (m *InputEncryptedFile) Encode() []byte { } } -func (m *InputEncryptedFile) EncodeToLayer(layer int) []byte { +func (m *InputFile) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputEncryptedFileEmpty: - t := m.To_InputEncryptedFileEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputEncryptedFileUploaded: - t := m.To_InputEncryptedFileUploaded() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputEncryptedFile: - t := m.To_InputEncryptedFile() + case TLConstructor_CRC32_inputFile: + t := m.To_InputFile() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputEncryptedFileBigUploaded: - t := m.To_InputEncryptedFileBigUploaded() + case TLConstructor_CRC32_inputFileBig: + t := m.To_InputFileBig() return t.EncodeToLayer(layer) default: @@ -5772,23 +5999,15 @@ func (m *InputEncryptedFile) EncodeToLayer(layer int) []byte { } } -func (m *InputEncryptedFile) Decode(dbuf *DecodeBuf) error { +func (m *InputFile) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputEncryptedFileEmpty: - m2 := &TLInputEncryptedFileEmpty{Data2: &InputEncryptedFile_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputEncryptedFileUploaded: - m2 := &TLInputEncryptedFileUploaded{Data2: &InputEncryptedFile_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputEncryptedFile: - m2 := &TLInputEncryptedFile{Data2: &InputEncryptedFile_Data{}} + case TLConstructor_CRC32_inputFile: + m2 := &TLInputFile{Data2: &InputFile_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputEncryptedFileBigUploaded: - m2 := &TLInputEncryptedFileBigUploaded{Data2: &InputEncryptedFile_Data{}} + case TLConstructor_CRC32_inputFileBig: + m2 := &TLInputFileBig{Data2: &InputFile_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -5798,227 +6017,145 @@ func (m *InputEncryptedFile) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputEncryptedFileEmpty#1837c364 = InputEncryptedFile; -func (m *InputEncryptedFile) To_InputEncryptedFileEmpty() *TLInputEncryptedFileEmpty { - return &TLInputEncryptedFileEmpty{ - Data2: m.Data2, - } -} - -// inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile; -func (m *InputEncryptedFile) To_InputEncryptedFileUploaded() *TLInputEncryptedFileUploaded { - return &TLInputEncryptedFileUploaded{ - Data2: m.Data2, - } -} - -// inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile; -func (m *InputEncryptedFile) To_InputEncryptedFile() *TLInputEncryptedFile { - return &TLInputEncryptedFile{ +// inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile; +func (m *InputFile) To_InputFile() *TLInputFile { + return &TLInputFile{ Data2: m.Data2, } } -// inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile; -func (m *InputEncryptedFile) To_InputEncryptedFileBigUploaded() *TLInputEncryptedFileBigUploaded { - return &TLInputEncryptedFileBigUploaded{ +// inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile; +func (m *InputFile) To_InputFileBig() *TLInputFileBig { + return &TLInputFileBig{ Data2: m.Data2, } } -// inputEncryptedFileEmpty#1837c364 = InputEncryptedFile; -func (m *TLInputEncryptedFileEmpty) To_InputEncryptedFile() *InputEncryptedFile { - return &InputEncryptedFile{ - Constructor: TLConstructor_CRC32_inputEncryptedFileEmpty, - Data2: m.Data2, - } -} - -func NewTLInputEncryptedFileEmpty() *TLInputEncryptedFileEmpty { - return &TLInputEncryptedFileEmpty{Data2: &InputEncryptedFile_Data{}} -} - -func (m *TLInputEncryptedFileEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFileEmpty)) - - return x.buf -} - -func (m *TLInputEncryptedFileEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFileEmpty)) - - return x.buf -} - -func (m *TLInputEncryptedFileEmpty) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile; -func (m *TLInputEncryptedFileUploaded) To_InputEncryptedFile() *InputEncryptedFile { - return &InputEncryptedFile{ - Constructor: TLConstructor_CRC32_inputEncryptedFileUploaded, +// inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile; +func (m *TLInputFile) To_InputFile() *InputFile { + return &InputFile{ + Constructor: TLConstructor_CRC32_inputFile, Data2: m.Data2, } } -func (m *TLInputEncryptedFileUploaded) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputEncryptedFileUploaded) GetId() int64 { return m.Data2.Id } +func (m *TLInputFile) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputFile) GetId() int64 { return m.Data2.Id } -func (m *TLInputEncryptedFileUploaded) SetParts(v int32) { m.Data2.Parts = v } -func (m *TLInputEncryptedFileUploaded) GetParts() int32 { return m.Data2.Parts } +func (m *TLInputFile) SetParts(v int32) { m.Data2.Parts = v } +func (m *TLInputFile) GetParts() int32 { return m.Data2.Parts } -func (m *TLInputEncryptedFileUploaded) SetMd5Checksum(v string) { m.Data2.Md5Checksum = v } -func (m *TLInputEncryptedFileUploaded) GetMd5Checksum() string { return m.Data2.Md5Checksum } +func (m *TLInputFile) SetName(v string) { m.Data2.Name = v } +func (m *TLInputFile) GetName() string { return m.Data2.Name } -func (m *TLInputEncryptedFileUploaded) SetKeyFingerprint(v int32) { m.Data2.KeyFingerprint = v } -func (m *TLInputEncryptedFileUploaded) GetKeyFingerprint() int32 { return m.Data2.KeyFingerprint } +func (m *TLInputFile) SetMd5Checksum(v string) { m.Data2.Md5Checksum = v } +func (m *TLInputFile) GetMd5Checksum() string { return m.Data2.Md5Checksum } -func NewTLInputEncryptedFileUploaded() *TLInputEncryptedFileUploaded { - return &TLInputEncryptedFileUploaded{Data2: &InputEncryptedFile_Data{}} +func NewTLInputFile() *TLInputFile { + return &TLInputFile{Data2: &InputFile_Data{}} } -func (m *TLInputEncryptedFileUploaded) Encode() []byte { +func (m *TLInputFile) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFileUploaded)) + x.Int(int32(TLConstructor_CRC32_inputFile)) x.Long(m.GetId()) x.Int(m.GetParts()) + x.String(m.GetName()) x.String(m.GetMd5Checksum()) - x.Int(m.GetKeyFingerprint()) return x.buf } -func (m *TLInputEncryptedFileUploaded) EncodeToLayer(layer int) []byte { +func (m *TLInputFile) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFileUploaded)) + x.Int(int32(TLConstructor_CRC32_inputFile)) x.Long(m.GetId()) x.Int(m.GetParts()) + x.String(m.GetName()) x.String(m.GetMd5Checksum()) - x.Int(m.GetKeyFingerprint()) return x.buf } -func (m *TLInputEncryptedFileUploaded) Decode(dbuf *DecodeBuf) error { +func (m *TLInputFile) Decode(dbuf *DecodeBuf) error { m.SetId(dbuf.Long()) m.SetParts(dbuf.Int()) + m.SetName(dbuf.String()) m.SetMd5Checksum(dbuf.String()) - m.SetKeyFingerprint(dbuf.Int()) - - return dbuf.err -} - -// inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile; -func (m *TLInputEncryptedFile) To_InputEncryptedFile() *InputEncryptedFile { - return &InputEncryptedFile{ - Constructor: TLConstructor_CRC32_inputEncryptedFile, - Data2: m.Data2, - } -} - -func (m *TLInputEncryptedFile) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputEncryptedFile) GetId() int64 { return m.Data2.Id } - -func (m *TLInputEncryptedFile) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputEncryptedFile) GetAccessHash() int64 { return m.Data2.AccessHash } - -func NewTLInputEncryptedFile() *TLInputEncryptedFile { - return &TLInputEncryptedFile{Data2: &InputEncryptedFile_Data{}} -} - -func (m *TLInputEncryptedFile) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFile)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - - return x.buf -} - -func (m *TLInputEncryptedFile) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFile)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - - return x.buf -} - -func (m *TLInputEncryptedFile) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) return dbuf.err } -// inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile; -func (m *TLInputEncryptedFileBigUploaded) To_InputEncryptedFile() *InputEncryptedFile { - return &InputEncryptedFile{ - Constructor: TLConstructor_CRC32_inputEncryptedFileBigUploaded, +// inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile; +func (m *TLInputFileBig) To_InputFile() *InputFile { + return &InputFile{ + Constructor: TLConstructor_CRC32_inputFileBig, Data2: m.Data2, } } -func (m *TLInputEncryptedFileBigUploaded) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputEncryptedFileBigUploaded) GetId() int64 { return m.Data2.Id } +func (m *TLInputFileBig) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputFileBig) GetId() int64 { return m.Data2.Id } -func (m *TLInputEncryptedFileBigUploaded) SetParts(v int32) { m.Data2.Parts = v } -func (m *TLInputEncryptedFileBigUploaded) GetParts() int32 { return m.Data2.Parts } +func (m *TLInputFileBig) SetParts(v int32) { m.Data2.Parts = v } +func (m *TLInputFileBig) GetParts() int32 { return m.Data2.Parts } -func (m *TLInputEncryptedFileBigUploaded) SetKeyFingerprint(v int32) { m.Data2.KeyFingerprint = v } -func (m *TLInputEncryptedFileBigUploaded) GetKeyFingerprint() int32 { return m.Data2.KeyFingerprint } +func (m *TLInputFileBig) SetName(v string) { m.Data2.Name = v } +func (m *TLInputFileBig) GetName() string { return m.Data2.Name } -func NewTLInputEncryptedFileBigUploaded() *TLInputEncryptedFileBigUploaded { - return &TLInputEncryptedFileBigUploaded{Data2: &InputEncryptedFile_Data{}} +func NewTLInputFileBig() *TLInputFileBig { + return &TLInputFileBig{Data2: &InputFile_Data{}} } -func (m *TLInputEncryptedFileBigUploaded) Encode() []byte { +func (m *TLInputFileBig) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFileBigUploaded)) + x.Int(int32(TLConstructor_CRC32_inputFileBig)) x.Long(m.GetId()) x.Int(m.GetParts()) - x.Int(m.GetKeyFingerprint()) + x.String(m.GetName()) return x.buf } -func (m *TLInputEncryptedFileBigUploaded) EncodeToLayer(layer int) []byte { +func (m *TLInputFileBig) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFileBigUploaded)) + x.Int(int32(TLConstructor_CRC32_inputFileBig)) x.Long(m.GetId()) x.Int(m.GetParts()) - x.Int(m.GetKeyFingerprint()) + x.String(m.GetName()) return x.buf } -func (m *TLInputEncryptedFileBigUploaded) Decode(dbuf *DecodeBuf) error { +func (m *TLInputFileBig) Decode(dbuf *DecodeBuf) error { m.SetId(dbuf.Long()) m.SetParts(dbuf.Int()) - m.SetKeyFingerprint(dbuf.Int()) + m.SetName(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Contacts_Found <-- -// + TL_ContactsFound +// InputChatPhoto <-- +// + TL_InputChatPhotoEmpty +// + TL_InputChatUploadedPhoto +// + TL_InputChatPhoto // -func (m *Contacts_Found) Encode() []byte { +func (m *InputChatPhoto) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_contacts_found: - t := m.To_ContactsFound() + case TLConstructor_CRC32_inputChatPhotoEmpty: + t := m.To_InputChatPhotoEmpty() + return t.Encode() + case TLConstructor_CRC32_inputChatUploadedPhoto: + t := m.To_InputChatUploadedPhoto() + return t.Encode() + case TLConstructor_CRC32_inputChatPhoto: + t := m.To_InputChatPhoto() return t.Encode() default: @@ -6027,11 +6164,17 @@ func (m *Contacts_Found) Encode() []byte { } } -func (m *Contacts_Found) EncodeToLayer(layer int) []byte { +func (m *InputChatPhoto) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_contacts_found: - t := m.To_ContactsFound() + case TLConstructor_CRC32_inputChatPhotoEmpty: + t := m.To_InputChatPhotoEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputChatUploadedPhoto: + t := m.To_InputChatUploadedPhoto() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputChatPhoto: + t := m.To_InputChatPhoto() return t.EncodeToLayer(layer) default: @@ -6040,11 +6183,19 @@ func (m *Contacts_Found) EncodeToLayer(layer int) []byte { } } -func (m *Contacts_Found) Decode(dbuf *DecodeBuf) error { +func (m *InputChatPhoto) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_contacts_found: - m2 := &TLContactsFound{Data2: &Contacts_Found_Data{}} + case TLConstructor_CRC32_inputChatPhotoEmpty: + m2 := &TLInputChatPhotoEmpty{Data2: &InputChatPhoto_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputChatUploadedPhoto: + m2 := &TLInputChatUploadedPhoto{Data2: &InputChatPhoto_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputChatPhoto: + m2 := &TLInputChatPhoto{Data2: &InputChatPhoto_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -6054,322 +6205,149 @@ func (m *Contacts_Found) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// contacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found; -func (m *Contacts_Found) To_ContactsFound() *TLContactsFound { - return &TLContactsFound{ +// inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; +func (m *InputChatPhoto) To_InputChatPhotoEmpty() *TLInputChatPhotoEmpty { + return &TLInputChatPhotoEmpty{ Data2: m.Data2, } } -// contacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found; -func (m *TLContactsFound) To_Contacts_Found() *Contacts_Found { - return &Contacts_Found{ - Constructor: TLConstructor_CRC32_contacts_found, - Data2: m.Data2, +// inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto; +func (m *InputChatPhoto) To_InputChatUploadedPhoto() *TLInputChatUploadedPhoto { + return &TLInputChatUploadedPhoto{ + Data2: m.Data2, } } -func (m *TLContactsFound) SetMyResults(v []*Peer) { m.Data2.MyResults = v } -func (m *TLContactsFound) GetMyResults() []*Peer { return m.Data2.MyResults } +// inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; +func (m *InputChatPhoto) To_InputChatPhoto() *TLInputChatPhoto { + return &TLInputChatPhoto{ + Data2: m.Data2, + } +} -func (m *TLContactsFound) SetResults(v []*Peer) { m.Data2.Results = v } -func (m *TLContactsFound) GetResults() []*Peer { return m.Data2.Results } +// inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; +func (m *TLInputChatPhotoEmpty) To_InputChatPhoto() *InputChatPhoto { + return &InputChatPhoto{ + Constructor: TLConstructor_CRC32_inputChatPhotoEmpty, + Data2: m.Data2, + } +} -func (m *TLContactsFound) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLContactsFound) GetChats() []*Chat { return m.Data2.Chats } +func NewTLInputChatPhotoEmpty() *TLInputChatPhotoEmpty { + return &TLInputChatPhotoEmpty{Data2: &InputChatPhoto_Data{}} +} -func (m *TLContactsFound) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLContactsFound) GetUsers() []*User { return m.Data2.Users } +func (m *TLInputChatPhotoEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputChatPhotoEmpty)) -func NewTLContactsFound() *TLContactsFound { - return &TLContactsFound{Data2: &Contacts_Found_Data{}} + return x.buf } -func (m *TLContactsFound) Encode() []byte { +func (m *TLInputChatPhotoEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_found)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMyResults()))) - for _, v := range m.GetMyResults() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetResults()))) - for _, v := range m.GetResults() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(int32(TLConstructor_CRC32_inputChatPhotoEmpty)) return x.buf } -func (m *TLContactsFound) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_found)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMyResults()))) - for _, v := range m.GetMyResults() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetResults()))) - for _, v := range m.GetResults() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } +func (m *TLInputChatPhotoEmpty) Decode(dbuf *DecodeBuf) error { - return x.buf + return dbuf.err } -func (m *TLContactsFound) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Peer, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Peer{} - v1[i].Decode(dbuf) - } - m.SetMyResults(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Peer, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Peer{} - v2[i].Decode(dbuf) - } - m.SetResults(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Chat, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Chat{} - v3[i].Decode(dbuf) +// inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto; +func (m *TLInputChatUploadedPhoto) To_InputChatPhoto() *InputChatPhoto { + return &InputChatPhoto{ + Constructor: TLConstructor_CRC32_inputChatUploadedPhoto, + Data2: m.Data2, } - m.SetChats(v3) +} - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*User, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &User{} - v4[i].Decode(dbuf) - } - m.SetUsers(v4) +func (m *TLInputChatUploadedPhoto) SetFile(v *InputFile) { m.Data2.File = v } +func (m *TLInputChatUploadedPhoto) GetFile() *InputFile { return m.Data2.File } - return dbuf.err +func NewTLInputChatUploadedPhoto() *TLInputChatUploadedPhoto { + return &TLInputChatUploadedPhoto{Data2: &InputChatPhoto_Data{}} } -/////////////////////////////////////////////////////////////////////////////// -// Help_TermsOfService <-- -// + TL_HelpTermsOfService -// +func (m *TLInputChatUploadedPhoto) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputChatUploadedPhoto)) -func (m *Help_TermsOfService) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_help_termsOfService: - t := m.To_HelpTermsOfService() - return t.Encode() + x.Bytes(m.GetFile().Encode()) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *Help_TermsOfService) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_help_termsOfService: - t := m.To_HelpTermsOfService() - return t.EncodeToLayer(layer) +func (m *TLInputChatUploadedPhoto) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputChatUploadedPhoto)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetFile().EncodeToLayer(layer)) + + return x.buf } -func (m *Help_TermsOfService) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_help_termsOfService: - m2 := &TLHelpTermsOfService{Data2: &Help_TermsOfService_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputChatUploadedPhoto) Decode(dbuf *DecodeBuf) error { + m1 := &InputFile{} + m1.Decode(dbuf) + m.SetFile(m1) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService; -func (m *Help_TermsOfService) To_HelpTermsOfService() *TLHelpTermsOfService { - return &TLHelpTermsOfService{ - Data2: m.Data2, - } -} - -// help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService; -func (m *TLHelpTermsOfService) To_Help_TermsOfService() *Help_TermsOfService { - return &Help_TermsOfService{ - Constructor: TLConstructor_CRC32_help_termsOfService, +// inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; +func (m *TLInputChatPhoto) To_InputChatPhoto() *InputChatPhoto { + return &InputChatPhoto{ + Constructor: TLConstructor_CRC32_inputChatPhoto, Data2: m.Data2, } } -func (m *TLHelpTermsOfService) SetPopup(v bool) { m.Data2.Popup = v } -func (m *TLHelpTermsOfService) GetPopup() bool { return m.Data2.Popup } - -func (m *TLHelpTermsOfService) SetId(v *DataJSON) { m.Data2.Id = v } -func (m *TLHelpTermsOfService) GetId() *DataJSON { return m.Data2.Id } - -func (m *TLHelpTermsOfService) SetText(v string) { m.Data2.Text = v } -func (m *TLHelpTermsOfService) GetText() string { return m.Data2.Text } - -func (m *TLHelpTermsOfService) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLHelpTermsOfService) GetEntities() []*MessageEntity { return m.Data2.Entities } - -func (m *TLHelpTermsOfService) SetMinAgeConfirm(v int32) { m.Data2.MinAgeConfirm = v } -func (m *TLHelpTermsOfService) GetMinAgeConfirm() int32 { return m.Data2.MinAgeConfirm } +func (m *TLInputChatPhoto) SetId(v *InputPhoto) { m.Data2.Id = v } +func (m *TLInputChatPhoto) GetId() *InputPhoto { return m.Data2.Id } -func NewTLHelpTermsOfService() *TLHelpTermsOfService { - return &TLHelpTermsOfService{Data2: &Help_TermsOfService_Data{}} +func NewTLInputChatPhoto() *TLInputChatPhoto { + return &TLInputChatPhoto{Data2: &InputChatPhoto_Data{}} } -func (m *TLHelpTermsOfService) Encode() []byte { +func (m *TLInputChatPhoto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_termsOfService)) - - // flags - var flags uint32 = 0 - if m.GetPopup() == true { - flags |= 1 << 0 - } - if m.GetMinAgeConfirm() != 0 { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputChatPhoto)) x.Bytes(m.GetId().Encode()) - x.String(m.GetText()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } - if m.GetMinAgeConfirm() != 0 { - x.Int(m.GetMinAgeConfirm()) - } return x.buf } -func (m *TLHelpTermsOfService) EncodeToLayer(layer int) []byte { +func (m *TLInputChatPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_termsOfService)) - - // flags - var flags uint32 = 0 - if m.GetPopup() == true { - flags |= 1 << 0 - } - if m.GetMinAgeConfirm() != 0 { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputChatPhoto)) x.Bytes(m.GetId().EncodeToLayer(layer)) - x.String(m.GetText()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - if m.GetMinAgeConfirm() != 0 { - x.Int(m.GetMinAgeConfirm()) - } return x.buf } -func (m *TLHelpTermsOfService) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetPopup(true) - } - m3 := &DataJSON{} - m3.Decode(dbuf) - m.SetId(m3) - m.SetText(dbuf.String()) - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err - } - l5 := dbuf.Int() - v5 := make([]*MessageEntity, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &MessageEntity{} - v5[i].Decode(dbuf) - } - m.SetEntities(v5) - - if (flags & (1 << 1)) != 0 { - m.SetMinAgeConfirm(dbuf.Int()) - } +func (m *TLInputChatPhoto) Decode(dbuf *DecodeBuf) error { + m1 := &InputPhoto{} + m1.Decode(dbuf) + m.SetId(m1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PhoneCallProtocol <-- -// + TL_PhoneCallProtocol +// Updates_State <-- +// + TL_UpdatesState // -func (m *PhoneCallProtocol) Encode() []byte { +func (m *Updates_State) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_phoneCallProtocol: - t := m.To_PhoneCallProtocol() + case TLConstructor_CRC32_updates_state: + t := m.To_UpdatesState() return t.Encode() default: @@ -6378,11 +6356,11 @@ func (m *PhoneCallProtocol) Encode() []byte { } } -func (m *PhoneCallProtocol) EncodeToLayer(layer int) []byte { +func (m *Updates_State) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_phoneCallProtocol: - t := m.To_PhoneCallProtocol() + case TLConstructor_CRC32_updates_state: + t := m.To_UpdatesState() return t.EncodeToLayer(layer) default: @@ -6391,11 +6369,11 @@ func (m *PhoneCallProtocol) EncodeToLayer(layer int) []byte { } } -func (m *PhoneCallProtocol) Decode(dbuf *DecodeBuf) error { +func (m *Updates_State) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_phoneCallProtocol: - m2 := &TLPhoneCallProtocol{Data2: &PhoneCallProtocol_Data{}} + case TLConstructor_CRC32_updates_state: + m2 := &TLUpdatesState{Data2: &Updates_State_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -6405,101 +6383,85 @@ func (m *PhoneCallProtocol) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// phoneCallProtocol#a2bb35cb flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int = PhoneCallProtocol; -func (m *PhoneCallProtocol) To_PhoneCallProtocol() *TLPhoneCallProtocol { - return &TLPhoneCallProtocol{ +// updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; +func (m *Updates_State) To_UpdatesState() *TLUpdatesState { + return &TLUpdatesState{ Data2: m.Data2, } } -// phoneCallProtocol#a2bb35cb flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int = PhoneCallProtocol; -func (m *TLPhoneCallProtocol) To_PhoneCallProtocol() *PhoneCallProtocol { - return &PhoneCallProtocol{ - Constructor: TLConstructor_CRC32_phoneCallProtocol, +// updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; +func (m *TLUpdatesState) To_Updates_State() *Updates_State { + return &Updates_State{ + Constructor: TLConstructor_CRC32_updates_state, Data2: m.Data2, } } -func (m *TLPhoneCallProtocol) SetUdpP2P(v bool) { m.Data2.UdpP2P = v } -func (m *TLPhoneCallProtocol) GetUdpP2P() bool { return m.Data2.UdpP2P } +func (m *TLUpdatesState) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdatesState) GetPts() int32 { return m.Data2.Pts } -func (m *TLPhoneCallProtocol) SetUdpReflector(v bool) { m.Data2.UdpReflector = v } -func (m *TLPhoneCallProtocol) GetUdpReflector() bool { return m.Data2.UdpReflector } +func (m *TLUpdatesState) SetQts(v int32) { m.Data2.Qts = v } +func (m *TLUpdatesState) GetQts() int32 { return m.Data2.Qts } -func (m *TLPhoneCallProtocol) SetMinLayer(v int32) { m.Data2.MinLayer = v } -func (m *TLPhoneCallProtocol) GetMinLayer() int32 { return m.Data2.MinLayer } +func (m *TLUpdatesState) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdatesState) GetDate() int32 { return m.Data2.Date } -func (m *TLPhoneCallProtocol) SetMaxLayer(v int32) { m.Data2.MaxLayer = v } -func (m *TLPhoneCallProtocol) GetMaxLayer() int32 { return m.Data2.MaxLayer } +func (m *TLUpdatesState) SetSeq(v int32) { m.Data2.Seq = v } +func (m *TLUpdatesState) GetSeq() int32 { return m.Data2.Seq } -func NewTLPhoneCallProtocol() *TLPhoneCallProtocol { - return &TLPhoneCallProtocol{Data2: &PhoneCallProtocol_Data{}} +func (m *TLUpdatesState) SetUnreadCount(v int32) { m.Data2.UnreadCount = v } +func (m *TLUpdatesState) GetUnreadCount() int32 { return m.Data2.UnreadCount } + +func NewTLUpdatesState() *TLUpdatesState { + return &TLUpdatesState{Data2: &Updates_State_Data{}} } -func (m *TLPhoneCallProtocol) Encode() []byte { +func (m *TLUpdatesState) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallProtocol)) - - // flags - var flags uint32 = 0 - if m.GetUdpP2P() == true { - flags |= 1 << 0 - } - if m.GetUdpReflector() == true { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_updates_state)) - x.Int(m.GetMinLayer()) - x.Int(m.GetMaxLayer()) + x.Int(m.GetPts()) + x.Int(m.GetQts()) + x.Int(m.GetDate()) + x.Int(m.GetSeq()) + x.Int(m.GetUnreadCount()) return x.buf } -func (m *TLPhoneCallProtocol) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesState) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallProtocol)) - - // flags - var flags uint32 = 0 - if m.GetUdpP2P() == true { - flags |= 1 << 0 - } - if m.GetUdpReflector() == true { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_updates_state)) - x.Int(m.GetMinLayer()) - x.Int(m.GetMaxLayer()) + x.Int(m.GetPts()) + x.Int(m.GetQts()) + x.Int(m.GetDate()) + x.Int(m.GetSeq()) + x.Int(m.GetUnreadCount()) return x.buf } -func (m *TLPhoneCallProtocol) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetUdpP2P(true) - } - if (flags & (1 << 1)) != 0 { - m.SetUdpReflector(true) - } - m.SetMinLayer(dbuf.Int()) - m.SetMaxLayer(dbuf.Int()) +func (m *TLUpdatesState) Decode(dbuf *DecodeBuf) error { + m.SetPts(dbuf.Int()) + m.SetQts(dbuf.Int()) + m.SetDate(dbuf.Int()) + m.SetSeq(dbuf.Int()) + m.SetUnreadCount(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SecureSecretSettings <-- -// + TL_SecureSecretSettings +// MessageRange <-- +// + TL_MessageRange // -func (m *SecureSecretSettings) Encode() []byte { +func (m *MessageRange) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_secureSecretSettings: - t := m.To_SecureSecretSettings() + case TLConstructor_CRC32_messageRange: + t := m.To_MessageRange() return t.Encode() default: @@ -6508,11 +6470,11 @@ func (m *SecureSecretSettings) Encode() []byte { } } -func (m *SecureSecretSettings) EncodeToLayer(layer int) []byte { +func (m *MessageRange) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_secureSecretSettings: - t := m.To_SecureSecretSettings() + case TLConstructor_CRC32_messageRange: + t := m.To_MessageRange() return t.EncodeToLayer(layer) default: @@ -6521,11 +6483,11 @@ func (m *SecureSecretSettings) EncodeToLayer(layer int) []byte { } } -func (m *SecureSecretSettings) Decode(dbuf *DecodeBuf) error { +func (m *MessageRange) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_secureSecretSettings: - m2 := &TLSecureSecretSettings{Data2: &SecureSecretSettings_Data{}} + case TLConstructor_CRC32_messageRange: + m2 := &TLMessageRange{Data2: &MessageRange_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -6535,75 +6497,71 @@ func (m *SecureSecretSettings) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings; -func (m *SecureSecretSettings) To_SecureSecretSettings() *TLSecureSecretSettings { - return &TLSecureSecretSettings{ +// messageRange#ae30253 min_id:int max_id:int = MessageRange; +func (m *MessageRange) To_MessageRange() *TLMessageRange { + return &TLMessageRange{ Data2: m.Data2, } } -// secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings; -func (m *TLSecureSecretSettings) To_SecureSecretSettings() *SecureSecretSettings { - return &SecureSecretSettings{ - Constructor: TLConstructor_CRC32_secureSecretSettings, +// messageRange#ae30253 min_id:int max_id:int = MessageRange; +func (m *TLMessageRange) To_MessageRange() *MessageRange { + return &MessageRange{ + Constructor: TLConstructor_CRC32_messageRange, Data2: m.Data2, } } -func (m *TLSecureSecretSettings) SetSecureAlgo(v *SecurePasswordKdfAlgo) { m.Data2.SecureAlgo = v } -func (m *TLSecureSecretSettings) GetSecureAlgo() *SecurePasswordKdfAlgo { return m.Data2.SecureAlgo } - -func (m *TLSecureSecretSettings) SetSecureSecret(v []byte) { m.Data2.SecureSecret = v } -func (m *TLSecureSecretSettings) GetSecureSecret() []byte { return m.Data2.SecureSecret } +func (m *TLMessageRange) SetMinId(v int32) { m.Data2.MinId = v } +func (m *TLMessageRange) GetMinId() int32 { return m.Data2.MinId } -func (m *TLSecureSecretSettings) SetSecureSecretId(v int64) { m.Data2.SecureSecretId = v } -func (m *TLSecureSecretSettings) GetSecureSecretId() int64 { return m.Data2.SecureSecretId } +func (m *TLMessageRange) SetMaxId(v int32) { m.Data2.MaxId = v } +func (m *TLMessageRange) GetMaxId() int32 { return m.Data2.MaxId } -func NewTLSecureSecretSettings() *TLSecureSecretSettings { - return &TLSecureSecretSettings{Data2: &SecureSecretSettings_Data{}} +func NewTLMessageRange() *TLMessageRange { + return &TLMessageRange{Data2: &MessageRange_Data{}} } -func (m *TLSecureSecretSettings) Encode() []byte { +func (m *TLMessageRange) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureSecretSettings)) + x.Int(int32(TLConstructor_CRC32_messageRange)) - x.Bytes(m.GetSecureAlgo().Encode()) - x.StringBytes(m.GetSecureSecret()) - x.Long(m.GetSecureSecretId()) + x.Int(m.GetMinId()) + x.Int(m.GetMaxId()) return x.buf } -func (m *TLSecureSecretSettings) EncodeToLayer(layer int) []byte { +func (m *TLMessageRange) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureSecretSettings)) + x.Int(int32(TLConstructor_CRC32_messageRange)) - x.Bytes(m.GetSecureAlgo().EncodeToLayer(layer)) - x.StringBytes(m.GetSecureSecret()) - x.Long(m.GetSecureSecretId()) + x.Int(m.GetMinId()) + x.Int(m.GetMaxId()) return x.buf } -func (m *TLSecureSecretSettings) Decode(dbuf *DecodeBuf) error { - m1 := &SecurePasswordKdfAlgo{} - m1.Decode(dbuf) - m.SetSecureAlgo(m1) - m.SetSecureSecret(dbuf.StringBytes()) - m.SetSecureSecretId(dbuf.Long()) +func (m *TLMessageRange) Decode(dbuf *DecodeBuf) error { + m.SetMinId(dbuf.Int()) + m.SetMaxId(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Auth_CheckedPhone <-- -// + TL_AuthCheckedPhone +// BotInlineResult <-- +// + TL_BotInlineResult +// + TL_BotInlineMediaResult // -func (m *Auth_CheckedPhone) Encode() []byte { +func (m *BotInlineResult) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_auth_checkedPhone: - t := m.To_AuthCheckedPhone() + case TLConstructor_CRC32_botInlineResult: + t := m.To_BotInlineResult() + return t.Encode() + case TLConstructor_CRC32_botInlineMediaResult: + t := m.To_BotInlineMediaResult() return t.Encode() default: @@ -6612,11 +6570,14 @@ func (m *Auth_CheckedPhone) Encode() []byte { } } -func (m *Auth_CheckedPhone) EncodeToLayer(layer int) []byte { +func (m *BotInlineResult) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_auth_checkedPhone: - t := m.To_AuthCheckedPhone() + case TLConstructor_CRC32_botInlineResult: + t := m.To_BotInlineResult() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_botInlineMediaResult: + t := m.To_BotInlineMediaResult() return t.EncodeToLayer(layer) default: @@ -6625,11 +6586,15 @@ func (m *Auth_CheckedPhone) EncodeToLayer(layer int) []byte { } } -func (m *Auth_CheckedPhone) Decode(dbuf *DecodeBuf) error { +func (m *BotInlineResult) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_auth_checkedPhone: - m2 := &TLAuthCheckedPhone{Data2: &Auth_CheckedPhone_Data{}} + case TLConstructor_CRC32_botInlineResult: + m2 := &TLBotInlineResult{Data2: &BotInlineResult_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_botInlineMediaResult: + m2 := &TLBotInlineMediaResult{Data2: &BotInlineResult_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -6639,67 +6604,333 @@ func (m *Auth_CheckedPhone) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone; -func (m *Auth_CheckedPhone) To_AuthCheckedPhone() *TLAuthCheckedPhone { - return &TLAuthCheckedPhone{ +// botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult; +func (m *BotInlineResult) To_BotInlineResult() *TLBotInlineResult { + return &TLBotInlineResult{ Data2: m.Data2, } } -// auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone; -func (m *TLAuthCheckedPhone) To_Auth_CheckedPhone() *Auth_CheckedPhone { - return &Auth_CheckedPhone{ - Constructor: TLConstructor_CRC32_auth_checkedPhone, - Data2: m.Data2, - } -} - -func (m *TLAuthCheckedPhone) SetPhoneRegistered(v *Bool) { m.Data2.PhoneRegistered = v } -func (m *TLAuthCheckedPhone) GetPhoneRegistered() *Bool { return m.Data2.PhoneRegistered } +// botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult; +func (m *BotInlineResult) To_BotInlineMediaResult() *TLBotInlineMediaResult { + return &TLBotInlineMediaResult{ + Data2: m.Data2, + } +} -func NewTLAuthCheckedPhone() *TLAuthCheckedPhone { - return &TLAuthCheckedPhone{Data2: &Auth_CheckedPhone_Data{}} +// botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult; +func (m *TLBotInlineResult) To_BotInlineResult() *BotInlineResult { + return &BotInlineResult{ + Constructor: TLConstructor_CRC32_botInlineResult, + Data2: m.Data2, + } } -func (m *TLAuthCheckedPhone) Encode() []byte { +func (m *TLBotInlineResult) SetId(v string) { m.Data2.Id = v } +func (m *TLBotInlineResult) GetId() string { return m.Data2.Id } + +func (m *TLBotInlineResult) SetType(v string) { m.Data2.Type = v } +func (m *TLBotInlineResult) GetType() string { return m.Data2.Type } + +func (m *TLBotInlineResult) SetTitle(v string) { m.Data2.Title = v } +func (m *TLBotInlineResult) GetTitle() string { return m.Data2.Title } + +func (m *TLBotInlineResult) SetDescription(v string) { m.Data2.Description = v } +func (m *TLBotInlineResult) GetDescription() string { return m.Data2.Description } + +func (m *TLBotInlineResult) SetUrl(v string) { m.Data2.Url = v } +func (m *TLBotInlineResult) GetUrl() string { return m.Data2.Url } + +func (m *TLBotInlineResult) SetThumb(v *WebDocument) { m.Data2.Thumb = v } +func (m *TLBotInlineResult) GetThumb() *WebDocument { return m.Data2.Thumb } + +func (m *TLBotInlineResult) SetContent(v *WebDocument) { m.Data2.Content = v } +func (m *TLBotInlineResult) GetContent() *WebDocument { return m.Data2.Content } + +func (m *TLBotInlineResult) SetSendMessage(v *BotInlineMessage) { m.Data2.SendMessage = v } +func (m *TLBotInlineResult) GetSendMessage() *BotInlineMessage { return m.Data2.SendMessage } + +func NewTLBotInlineResult() *TLBotInlineResult { + return &TLBotInlineResult{Data2: &BotInlineResult_Data{}} +} + +func (m *TLBotInlineResult) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_checkedPhone)) + x.Int(int32(TLConstructor_CRC32_botInlineResult)) - x.Bytes(m.GetPhoneRegistered().Encode()) + // flags + var flags uint32 = 0 + if m.GetTitle() != "" { + flags |= 1 << 1 + } + if m.GetDescription() != "" { + flags |= 1 << 2 + } + if m.GetUrl() != "" { + flags |= 1 << 3 + } + if m.GetThumb() != nil { + flags |= 1 << 4 + } + if m.GetContent() != nil { + flags |= 1 << 5 + } + x.UInt(flags) + + x.String(m.GetId()) + x.String(m.GetType()) + if m.GetTitle() != "" { + x.String(m.GetTitle()) + } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + if m.GetUrl() != "" { + x.String(m.GetUrl()) + } + if m.GetThumb() != nil { + x.Bytes(m.GetThumb().Encode()) + } + if m.GetContent() != nil { + x.Bytes(m.GetContent().Encode()) + } + x.Bytes(m.GetSendMessage().Encode()) return x.buf } -func (m *TLAuthCheckedPhone) EncodeToLayer(layer int) []byte { +func (m *TLBotInlineResult) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_checkedPhone)) + x.Int(int32(TLConstructor_CRC32_botInlineResult)) - x.Bytes(m.GetPhoneRegistered().EncodeToLayer(layer)) + // flags + var flags uint32 = 0 + if m.GetTitle() != "" { + flags |= 1 << 1 + } + if m.GetDescription() != "" { + flags |= 1 << 2 + } + if m.GetUrl() != "" { + flags |= 1 << 3 + } + if m.GetThumb() != nil { + flags |= 1 << 4 + } + if m.GetContent() != nil { + flags |= 1 << 5 + } + x.UInt(flags) + + x.String(m.GetId()) + x.String(m.GetType()) + if m.GetTitle() != "" { + x.String(m.GetTitle()) + } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + if m.GetUrl() != "" { + x.String(m.GetUrl()) + } + if m.GetThumb() != nil { + x.Bytes(m.GetThumb().EncodeToLayer(layer)) + } + if m.GetContent() != nil { + x.Bytes(m.GetContent().EncodeToLayer(layer)) + } + x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) return x.buf } -func (m *TLAuthCheckedPhone) Decode(dbuf *DecodeBuf) error { - m1 := &Bool{} - m1.Decode(dbuf) - m.SetPhoneRegistered(m1) +func (m *TLBotInlineResult) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetId(dbuf.String()) + m.SetType(dbuf.String()) + if (flags & (1 << 1)) != 0 { + m.SetTitle(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m.SetDescription(dbuf.String()) + } + if (flags & (1 << 3)) != 0 { + m.SetUrl(dbuf.String()) + } + if (flags & (1 << 4)) != 0 { + m7 := &WebDocument{} + m7.Decode(dbuf) + m.SetThumb(m7) + } + if (flags & (1 << 5)) != 0 { + m8 := &WebDocument{} + m8.Decode(dbuf) + m.SetContent(m8) + } + m9 := &BotInlineMessage{} + m9.Decode(dbuf) + m.SetSendMessage(m9) + + return dbuf.err +} + +// botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult; +func (m *TLBotInlineMediaResult) To_BotInlineResult() *BotInlineResult { + return &BotInlineResult{ + Constructor: TLConstructor_CRC32_botInlineMediaResult, + Data2: m.Data2, + } +} + +func (m *TLBotInlineMediaResult) SetId(v string) { m.Data2.Id = v } +func (m *TLBotInlineMediaResult) GetId() string { return m.Data2.Id } + +func (m *TLBotInlineMediaResult) SetType(v string) { m.Data2.Type = v } +func (m *TLBotInlineMediaResult) GetType() string { return m.Data2.Type } + +func (m *TLBotInlineMediaResult) SetPhoto(v *Photo) { m.Data2.Photo = v } +func (m *TLBotInlineMediaResult) GetPhoto() *Photo { return m.Data2.Photo } + +func (m *TLBotInlineMediaResult) SetDocument(v *Document) { m.Data2.Document = v } +func (m *TLBotInlineMediaResult) GetDocument() *Document { return m.Data2.Document } + +func (m *TLBotInlineMediaResult) SetTitle(v string) { m.Data2.Title = v } +func (m *TLBotInlineMediaResult) GetTitle() string { return m.Data2.Title } + +func (m *TLBotInlineMediaResult) SetDescription(v string) { m.Data2.Description = v } +func (m *TLBotInlineMediaResult) GetDescription() string { return m.Data2.Description } + +func (m *TLBotInlineMediaResult) SetSendMessage(v *BotInlineMessage) { m.Data2.SendMessage = v } +func (m *TLBotInlineMediaResult) GetSendMessage() *BotInlineMessage { return m.Data2.SendMessage } + +func NewTLBotInlineMediaResult() *TLBotInlineMediaResult { + return &TLBotInlineMediaResult{Data2: &BotInlineResult_Data{}} +} + +func (m *TLBotInlineMediaResult) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_botInlineMediaResult)) + + // flags + var flags uint32 = 0 + if m.GetPhoto() != nil { + flags |= 1 << 0 + } + if m.GetDocument() != nil { + flags |= 1 << 1 + } + if m.GetTitle() != "" { + flags |= 1 << 2 + } + if m.GetDescription() != "" { + flags |= 1 << 3 + } + x.UInt(flags) + + x.String(m.GetId()) + x.String(m.GetType()) + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().Encode()) + } + if m.GetDocument() != nil { + x.Bytes(m.GetDocument().Encode()) + } + if m.GetTitle() != "" { + x.String(m.GetTitle()) + } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + x.Bytes(m.GetSendMessage().Encode()) + + return x.buf +} + +func (m *TLBotInlineMediaResult) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_botInlineMediaResult)) + + // flags + var flags uint32 = 0 + if m.GetPhoto() != nil { + flags |= 1 << 0 + } + if m.GetDocument() != nil { + flags |= 1 << 1 + } + if m.GetTitle() != "" { + flags |= 1 << 2 + } + if m.GetDescription() != "" { + flags |= 1 << 3 + } + x.UInt(flags) + + x.String(m.GetId()) + x.String(m.GetType()) + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + } + if m.GetDocument() != nil { + x.Bytes(m.GetDocument().EncodeToLayer(layer)) + } + if m.GetTitle() != "" { + x.String(m.GetTitle()) + } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLBotInlineMediaResult) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetId(dbuf.String()) + m.SetType(dbuf.String()) + if (flags & (1 << 0)) != 0 { + m4 := &Photo{} + m4.Decode(dbuf) + m.SetPhoto(m4) + } + if (flags & (1 << 1)) != 0 { + m5 := &Document{} + m5.Decode(dbuf) + m.SetDocument(m5) + } + if (flags & (1 << 2)) != 0 { + m.SetTitle(dbuf.String()) + } + if (flags & (1 << 3)) != 0 { + m.SetDescription(dbuf.String()) + } + m8 := &BotInlineMessage{} + m8.Decode(dbuf) + m.SetSendMessage(m8) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// EncryptedFile <-- -// + TL_EncryptedFileEmpty -// + TL_EncryptedFile +// ChatParticipant <-- +// + TL_ChatParticipant +// + TL_ChatParticipantCreator +// + TL_ChatParticipantAdmin // -func (m *EncryptedFile) Encode() []byte { +func (m *ChatParticipant) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_encryptedFileEmpty: - t := m.To_EncryptedFileEmpty() + case TLConstructor_CRC32_chatParticipant: + t := m.To_ChatParticipant() return t.Encode() - case TLConstructor_CRC32_encryptedFile: - t := m.To_EncryptedFile() + case TLConstructor_CRC32_chatParticipantCreator: + t := m.To_ChatParticipantCreator() + return t.Encode() + case TLConstructor_CRC32_chatParticipantAdmin: + t := m.To_ChatParticipantAdmin() return t.Encode() default: @@ -6708,14 +6939,17 @@ func (m *EncryptedFile) Encode() []byte { } } -func (m *EncryptedFile) EncodeToLayer(layer int) []byte { +func (m *ChatParticipant) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_encryptedFileEmpty: - t := m.To_EncryptedFileEmpty() + case TLConstructor_CRC32_chatParticipant: + t := m.To_ChatParticipant() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_encryptedFile: - t := m.To_EncryptedFile() + case TLConstructor_CRC32_chatParticipantCreator: + t := m.To_ChatParticipantCreator() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_chatParticipantAdmin: + t := m.To_ChatParticipantAdmin() return t.EncodeToLayer(layer) default: @@ -6724,15 +6958,19 @@ func (m *EncryptedFile) EncodeToLayer(layer int) []byte { } } -func (m *EncryptedFile) Decode(dbuf *DecodeBuf) error { +func (m *ChatParticipant) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_encryptedFileEmpty: - m2 := &TLEncryptedFileEmpty{Data2: &EncryptedFile_Data{}} + case TLConstructor_CRC32_chatParticipant: + m2 := &TLChatParticipant{Data2: &ChatParticipant_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_encryptedFile: - m2 := &TLEncryptedFile{Data2: &EncryptedFile_Data{}} + case TLConstructor_CRC32_chatParticipantCreator: + m2 := &TLChatParticipantCreator{Data2: &ChatParticipant_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_chatParticipantAdmin: + m2 := &TLChatParticipantAdmin{Data2: &ChatParticipant_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -6742,179 +6980,197 @@ func (m *EncryptedFile) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// encryptedFileEmpty#c21f497e = EncryptedFile; -func (m *EncryptedFile) To_EncryptedFileEmpty() *TLEncryptedFileEmpty { - return &TLEncryptedFileEmpty{ +// chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant; +func (m *ChatParticipant) To_ChatParticipant() *TLChatParticipant { + return &TLChatParticipant{ Data2: m.Data2, } } -// encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile; -func (m *EncryptedFile) To_EncryptedFile() *TLEncryptedFile { - return &TLEncryptedFile{ +// chatParticipantCreator#da13538a user_id:int = ChatParticipant; +func (m *ChatParticipant) To_ChatParticipantCreator() *TLChatParticipantCreator { + return &TLChatParticipantCreator{ Data2: m.Data2, } } -// encryptedFileEmpty#c21f497e = EncryptedFile; -func (m *TLEncryptedFileEmpty) To_EncryptedFile() *EncryptedFile { - return &EncryptedFile{ - Constructor: TLConstructor_CRC32_encryptedFileEmpty, +// chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant; +func (m *ChatParticipant) To_ChatParticipantAdmin() *TLChatParticipantAdmin { + return &TLChatParticipantAdmin{ + Data2: m.Data2, + } +} + +// chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant; +func (m *TLChatParticipant) To_ChatParticipant() *ChatParticipant { + return &ChatParticipant{ + Constructor: TLConstructor_CRC32_chatParticipant, Data2: m.Data2, } } -func NewTLEncryptedFileEmpty() *TLEncryptedFileEmpty { - return &TLEncryptedFileEmpty{Data2: &EncryptedFile_Data{}} +func (m *TLChatParticipant) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLChatParticipant) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLChatParticipant) SetInviterId(v int32) { m.Data2.InviterId = v } +func (m *TLChatParticipant) GetInviterId() int32 { return m.Data2.InviterId } + +func (m *TLChatParticipant) SetDate(v int32) { m.Data2.Date = v } +func (m *TLChatParticipant) GetDate() int32 { return m.Data2.Date } + +func NewTLChatParticipant() *TLChatParticipant { + return &TLChatParticipant{Data2: &ChatParticipant_Data{}} } -func (m *TLEncryptedFileEmpty) Encode() []byte { +func (m *TLChatParticipant) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedFileEmpty)) + x.Int(int32(TLConstructor_CRC32_chatParticipant)) + + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLEncryptedFileEmpty) EncodeToLayer(layer int) []byte { +func (m *TLChatParticipant) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedFileEmpty)) + x.Int(int32(TLConstructor_CRC32_chatParticipant)) + + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLEncryptedFileEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLChatParticipant) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetInviterId(dbuf.Int()) + m.SetDate(dbuf.Int()) return dbuf.err } -// encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile; -func (m *TLEncryptedFile) To_EncryptedFile() *EncryptedFile { - return &EncryptedFile{ - Constructor: TLConstructor_CRC32_encryptedFile, +// chatParticipantCreator#da13538a user_id:int = ChatParticipant; +func (m *TLChatParticipantCreator) To_ChatParticipant() *ChatParticipant { + return &ChatParticipant{ + Constructor: TLConstructor_CRC32_chatParticipantCreator, Data2: m.Data2, } } -func (m *TLEncryptedFile) SetId(v int64) { m.Data2.Id = v } -func (m *TLEncryptedFile) GetId() int64 { return m.Data2.Id } +func (m *TLChatParticipantCreator) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLChatParticipantCreator) GetUserId() int32 { return m.Data2.UserId } -func (m *TLEncryptedFile) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLEncryptedFile) GetAccessHash() int64 { return m.Data2.AccessHash } +func NewTLChatParticipantCreator() *TLChatParticipantCreator { + return &TLChatParticipantCreator{Data2: &ChatParticipant_Data{}} +} -func (m *TLEncryptedFile) SetSize(v int32) { m.Data2.Size = v } -func (m *TLEncryptedFile) GetSize() int32 { return m.Data2.Size } +func (m *TLChatParticipantCreator) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_chatParticipantCreator)) -func (m *TLEncryptedFile) SetDcId(v int32) { m.Data2.DcId = v } -func (m *TLEncryptedFile) GetDcId() int32 { return m.Data2.DcId } + x.Int(m.GetUserId()) -func (m *TLEncryptedFile) SetKeyFingerprint(v int32) { m.Data2.KeyFingerprint = v } -func (m *TLEncryptedFile) GetKeyFingerprint() int32 { return m.Data2.KeyFingerprint } + return x.buf +} -func NewTLEncryptedFile() *TLEncryptedFile { - return &TLEncryptedFile{Data2: &EncryptedFile_Data{}} +func (m *TLChatParticipantCreator) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_chatParticipantCreator)) + + x.Int(m.GetUserId()) + + return x.buf } -func (m *TLEncryptedFile) Encode() []byte { +func (m *TLChatParticipantCreator) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + + return dbuf.err +} + +// chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant; +func (m *TLChatParticipantAdmin) To_ChatParticipant() *ChatParticipant { + return &ChatParticipant{ + Constructor: TLConstructor_CRC32_chatParticipantAdmin, + Data2: m.Data2, + } +} + +func (m *TLChatParticipantAdmin) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLChatParticipantAdmin) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLChatParticipantAdmin) SetInviterId(v int32) { m.Data2.InviterId = v } +func (m *TLChatParticipantAdmin) GetInviterId() int32 { return m.Data2.InviterId } + +func (m *TLChatParticipantAdmin) SetDate(v int32) { m.Data2.Date = v } +func (m *TLChatParticipantAdmin) GetDate() int32 { return m.Data2.Date } + +func NewTLChatParticipantAdmin() *TLChatParticipantAdmin { + return &TLChatParticipantAdmin{Data2: &ChatParticipant_Data{}} +} + +func (m *TLChatParticipantAdmin) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedFile)) + x.Int(int32(TLConstructor_CRC32_chatParticipantAdmin)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetSize()) - x.Int(m.GetDcId()) - x.Int(m.GetKeyFingerprint()) + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLEncryptedFile) EncodeToLayer(layer int) []byte { +func (m *TLChatParticipantAdmin) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedFile)) + x.Int(int32(TLConstructor_CRC32_chatParticipantAdmin)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetSize()) - x.Int(m.GetDcId()) - x.Int(m.GetKeyFingerprint()) + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLEncryptedFile) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetSize(dbuf.Int()) - m.SetDcId(dbuf.Int()) - m.SetKeyFingerprint(dbuf.Int()) +func (m *TLChatParticipantAdmin) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetInviterId(dbuf.Int()) + m.SetDate(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// MessageEntity <-- -// + TL_MessageEntityUnknown -// + TL_MessageEntityMention -// + TL_MessageEntityHashtag -// + TL_MessageEntityBotCommand -// + TL_MessageEntityUrl -// + TL_MessageEntityEmail -// + TL_MessageEntityBold -// + TL_MessageEntityItalic -// + TL_MessageEntityCode -// + TL_MessageEntityPre -// + TL_MessageEntityTextUrl -// + TL_MessageEntityMentionName -// + TL_InputMessageEntityMentionName -// + TL_MessageEntityPhone -// + TL_MessageEntityCashtag +// PrivacyRule <-- +// + TL_PrivacyValueAllowContacts +// + TL_PrivacyValueAllowAll +// + TL_PrivacyValueAllowUsers +// + TL_PrivacyValueDisallowContacts +// + TL_PrivacyValueDisallowAll +// + TL_PrivacyValueDisallowUsers // -func (m *MessageEntity) Encode() []byte { +func (m *PrivacyRule) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messageEntityUnknown: - t := m.To_MessageEntityUnknown() - return t.Encode() - case TLConstructor_CRC32_messageEntityMention: - t := m.To_MessageEntityMention() - return t.Encode() - case TLConstructor_CRC32_messageEntityHashtag: - t := m.To_MessageEntityHashtag() - return t.Encode() - case TLConstructor_CRC32_messageEntityBotCommand: - t := m.To_MessageEntityBotCommand() - return t.Encode() - case TLConstructor_CRC32_messageEntityUrl: - t := m.To_MessageEntityUrl() - return t.Encode() - case TLConstructor_CRC32_messageEntityEmail: - t := m.To_MessageEntityEmail() - return t.Encode() - case TLConstructor_CRC32_messageEntityBold: - t := m.To_MessageEntityBold() - return t.Encode() - case TLConstructor_CRC32_messageEntityItalic: - t := m.To_MessageEntityItalic() - return t.Encode() - case TLConstructor_CRC32_messageEntityCode: - t := m.To_MessageEntityCode() - return t.Encode() - case TLConstructor_CRC32_messageEntityPre: - t := m.To_MessageEntityPre() + case TLConstructor_CRC32_privacyValueAllowContacts: + t := m.To_PrivacyValueAllowContacts() return t.Encode() - case TLConstructor_CRC32_messageEntityTextUrl: - t := m.To_MessageEntityTextUrl() + case TLConstructor_CRC32_privacyValueAllowAll: + t := m.To_PrivacyValueAllowAll() return t.Encode() - case TLConstructor_CRC32_messageEntityMentionName: - t := m.To_MessageEntityMentionName() + case TLConstructor_CRC32_privacyValueAllowUsers: + t := m.To_PrivacyValueAllowUsers() return t.Encode() - case TLConstructor_CRC32_inputMessageEntityMentionName: - t := m.To_InputMessageEntityMentionName() + case TLConstructor_CRC32_privacyValueDisallowContacts: + t := m.To_PrivacyValueDisallowContacts() return t.Encode() - case TLConstructor_CRC32_messageEntityPhone: - t := m.To_MessageEntityPhone() + case TLConstructor_CRC32_privacyValueDisallowAll: + t := m.To_PrivacyValueDisallowAll() return t.Encode() - case TLConstructor_CRC32_messageEntityCashtag: - t := m.To_MessageEntityCashtag() + case TLConstructor_CRC32_privacyValueDisallowUsers: + t := m.To_PrivacyValueDisallowUsers() return t.Encode() default: @@ -6923,53 +7179,26 @@ func (m *MessageEntity) Encode() []byte { } } -func (m *MessageEntity) EncodeToLayer(layer int) []byte { +func (m *PrivacyRule) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messageEntityUnknown: - t := m.To_MessageEntityUnknown() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityMention: - t := m.To_MessageEntityMention() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityHashtag: - t := m.To_MessageEntityHashtag() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityBotCommand: - t := m.To_MessageEntityBotCommand() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityUrl: - t := m.To_MessageEntityUrl() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityEmail: - t := m.To_MessageEntityEmail() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityBold: - t := m.To_MessageEntityBold() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityItalic: - t := m.To_MessageEntityItalic() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityCode: - t := m.To_MessageEntityCode() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityPre: - t := m.To_MessageEntityPre() + case TLConstructor_CRC32_privacyValueAllowContacts: + t := m.To_PrivacyValueAllowContacts() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityTextUrl: - t := m.To_MessageEntityTextUrl() + case TLConstructor_CRC32_privacyValueAllowAll: + t := m.To_PrivacyValueAllowAll() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityMentionName: - t := m.To_MessageEntityMentionName() + case TLConstructor_CRC32_privacyValueAllowUsers: + t := m.To_PrivacyValueAllowUsers() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessageEntityMentionName: - t := m.To_InputMessageEntityMentionName() + case TLConstructor_CRC32_privacyValueDisallowContacts: + t := m.To_PrivacyValueDisallowContacts() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityPhone: - t := m.To_MessageEntityPhone() + case TLConstructor_CRC32_privacyValueDisallowAll: + t := m.To_PrivacyValueDisallowAll() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageEntityCashtag: - t := m.To_MessageEntityCashtag() + case TLConstructor_CRC32_privacyValueDisallowUsers: + t := m.To_PrivacyValueDisallowUsers() return t.EncodeToLayer(layer) default: @@ -6978,67 +7207,31 @@ func (m *MessageEntity) EncodeToLayer(layer int) []byte { } } -func (m *MessageEntity) Decode(dbuf *DecodeBuf) error { +func (m *PrivacyRule) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messageEntityUnknown: - m2 := &TLMessageEntityUnknown{Data2: &MessageEntity_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityMention: - m2 := &TLMessageEntityMention{Data2: &MessageEntity_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityHashtag: - m2 := &TLMessageEntityHashtag{Data2: &MessageEntity_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityBotCommand: - m2 := &TLMessageEntityBotCommand{Data2: &MessageEntity_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityUrl: - m2 := &TLMessageEntityUrl{Data2: &MessageEntity_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityEmail: - m2 := &TLMessageEntityEmail{Data2: &MessageEntity_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityBold: - m2 := &TLMessageEntityBold{Data2: &MessageEntity_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityItalic: - m2 := &TLMessageEntityItalic{Data2: &MessageEntity_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityCode: - m2 := &TLMessageEntityCode{Data2: &MessageEntity_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityPre: - m2 := &TLMessageEntityPre{Data2: &MessageEntity_Data{}} + case TLConstructor_CRC32_privacyValueAllowContacts: + m2 := &TLPrivacyValueAllowContacts{Data2: &PrivacyRule_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityTextUrl: - m2 := &TLMessageEntityTextUrl{Data2: &MessageEntity_Data{}} + case TLConstructor_CRC32_privacyValueAllowAll: + m2 := &TLPrivacyValueAllowAll{Data2: &PrivacyRule_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityMentionName: - m2 := &TLMessageEntityMentionName{Data2: &MessageEntity_Data{}} + case TLConstructor_CRC32_privacyValueAllowUsers: + m2 := &TLPrivacyValueAllowUsers{Data2: &PrivacyRule_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessageEntityMentionName: - m2 := &TLInputMessageEntityMentionName{Data2: &MessageEntity_Data{}} + case TLConstructor_CRC32_privacyValueDisallowContacts: + m2 := &TLPrivacyValueDisallowContacts{Data2: &PrivacyRule_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityPhone: - m2 := &TLMessageEntityPhone{Data2: &MessageEntity_Data{}} + case TLConstructor_CRC32_privacyValueDisallowAll: + m2 := &TLPrivacyValueDisallowAll{Data2: &PrivacyRule_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageEntityCashtag: - m2 := &TLMessageEntityCashtag{Data2: &MessageEntity_Data{}} + case TLConstructor_CRC32_privacyValueDisallowUsers: + m2 := &TLPrivacyValueDisallowUsers{Data2: &PrivacyRule_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -7048,825 +7241,828 @@ func (m *MessageEntity) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityUnknown() *TLMessageEntityUnknown { - return &TLMessageEntityUnknown{ - Data2: m.Data2, - } -} - -// messageEntityMention#fa04579d offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityMention() *TLMessageEntityMention { - return &TLMessageEntityMention{ - Data2: m.Data2, - } -} - -// messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityHashtag() *TLMessageEntityHashtag { - return &TLMessageEntityHashtag{ - Data2: m.Data2, - } -} - -// messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityBotCommand() *TLMessageEntityBotCommand { - return &TLMessageEntityBotCommand{ - Data2: m.Data2, - } -} - -// messageEntityUrl#6ed02538 offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityUrl() *TLMessageEntityUrl { - return &TLMessageEntityUrl{ - Data2: m.Data2, - } -} - -// messageEntityEmail#64e475c2 offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityEmail() *TLMessageEntityEmail { - return &TLMessageEntityEmail{ - Data2: m.Data2, - } -} - -// messageEntityBold#bd610bc9 offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityBold() *TLMessageEntityBold { - return &TLMessageEntityBold{ - Data2: m.Data2, - } -} - -// messageEntityItalic#826f8b60 offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityItalic() *TLMessageEntityItalic { - return &TLMessageEntityItalic{ - Data2: m.Data2, - } -} - -// messageEntityCode#28a20571 offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityCode() *TLMessageEntityCode { - return &TLMessageEntityCode{ - Data2: m.Data2, - } -} - -// messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity; -func (m *MessageEntity) To_MessageEntityPre() *TLMessageEntityPre { - return &TLMessageEntityPre{ +// privacyValueAllowContacts#fffe1bac = PrivacyRule; +func (m *PrivacyRule) To_PrivacyValueAllowContacts() *TLPrivacyValueAllowContacts { + return &TLPrivacyValueAllowContacts{ Data2: m.Data2, } } -// messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity; -func (m *MessageEntity) To_MessageEntityTextUrl() *TLMessageEntityTextUrl { - return &TLMessageEntityTextUrl{ +// privacyValueAllowAll#65427b82 = PrivacyRule; +func (m *PrivacyRule) To_PrivacyValueAllowAll() *TLPrivacyValueAllowAll { + return &TLPrivacyValueAllowAll{ Data2: m.Data2, } } -// messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityMentionName() *TLMessageEntityMentionName { - return &TLMessageEntityMentionName{ +// privacyValueAllowUsers#4d5bbe0c users:Vector = PrivacyRule; +func (m *PrivacyRule) To_PrivacyValueAllowUsers() *TLPrivacyValueAllowUsers { + return &TLPrivacyValueAllowUsers{ Data2: m.Data2, } } -// inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity; -func (m *MessageEntity) To_InputMessageEntityMentionName() *TLInputMessageEntityMentionName { - return &TLInputMessageEntityMentionName{ +// privacyValueDisallowContacts#f888fa1a = PrivacyRule; +func (m *PrivacyRule) To_PrivacyValueDisallowContacts() *TLPrivacyValueDisallowContacts { + return &TLPrivacyValueDisallowContacts{ Data2: m.Data2, } } -// messageEntityPhone#9b69e34b offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityPhone() *TLMessageEntityPhone { - return &TLMessageEntityPhone{ +// privacyValueDisallowAll#8b73e763 = PrivacyRule; +func (m *PrivacyRule) To_PrivacyValueDisallowAll() *TLPrivacyValueDisallowAll { + return &TLPrivacyValueDisallowAll{ Data2: m.Data2, } } -// messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity; -func (m *MessageEntity) To_MessageEntityCashtag() *TLMessageEntityCashtag { - return &TLMessageEntityCashtag{ +// privacyValueDisallowUsers#c7f49b7 users:Vector = PrivacyRule; +func (m *PrivacyRule) To_PrivacyValueDisallowUsers() *TLPrivacyValueDisallowUsers { + return &TLPrivacyValueDisallowUsers{ Data2: m.Data2, } } -// messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity; -func (m *TLMessageEntityUnknown) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityUnknown, +// privacyValueAllowContacts#fffe1bac = PrivacyRule; +func (m *TLPrivacyValueAllowContacts) To_PrivacyRule() *PrivacyRule { + return &PrivacyRule{ + Constructor: TLConstructor_CRC32_privacyValueAllowContacts, Data2: m.Data2, } } -func (m *TLMessageEntityUnknown) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityUnknown) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityUnknown) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityUnknown) GetLength() int32 { return m.Data2.Length } - -func NewTLMessageEntityUnknown() *TLMessageEntityUnknown { - return &TLMessageEntityUnknown{Data2: &MessageEntity_Data{}} +func NewTLPrivacyValueAllowContacts() *TLPrivacyValueAllowContacts { + return &TLPrivacyValueAllowContacts{Data2: &PrivacyRule_Data{}} } -func (m *TLMessageEntityUnknown) Encode() []byte { +func (m *TLPrivacyValueAllowContacts) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityUnknown)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_privacyValueAllowContacts)) return x.buf } -func (m *TLMessageEntityUnknown) EncodeToLayer(layer int) []byte { +func (m *TLPrivacyValueAllowContacts) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityUnknown)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_privacyValueAllowContacts)) return x.buf } -func (m *TLMessageEntityUnknown) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +func (m *TLPrivacyValueAllowContacts) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageEntityMention#fa04579d offset:int length:int = MessageEntity; -func (m *TLMessageEntityMention) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityMention, +// privacyValueAllowAll#65427b82 = PrivacyRule; +func (m *TLPrivacyValueAllowAll) To_PrivacyRule() *PrivacyRule { + return &PrivacyRule{ + Constructor: TLConstructor_CRC32_privacyValueAllowAll, Data2: m.Data2, } } -func (m *TLMessageEntityMention) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityMention) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityMention) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityMention) GetLength() int32 { return m.Data2.Length } - -func NewTLMessageEntityMention() *TLMessageEntityMention { - return &TLMessageEntityMention{Data2: &MessageEntity_Data{}} +func NewTLPrivacyValueAllowAll() *TLPrivacyValueAllowAll { + return &TLPrivacyValueAllowAll{Data2: &PrivacyRule_Data{}} } -func (m *TLMessageEntityMention) Encode() []byte { +func (m *TLPrivacyValueAllowAll) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityMention)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_privacyValueAllowAll)) return x.buf } -func (m *TLMessageEntityMention) EncodeToLayer(layer int) []byte { +func (m *TLPrivacyValueAllowAll) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityMention)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_privacyValueAllowAll)) return x.buf } -func (m *TLMessageEntityMention) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +func (m *TLPrivacyValueAllowAll) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity; -func (m *TLMessageEntityHashtag) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityHashtag, +// privacyValueAllowUsers#4d5bbe0c users:Vector = PrivacyRule; +func (m *TLPrivacyValueAllowUsers) To_PrivacyRule() *PrivacyRule { + return &PrivacyRule{ + Constructor: TLConstructor_CRC32_privacyValueAllowUsers, Data2: m.Data2, } } -func (m *TLMessageEntityHashtag) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityHashtag) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityHashtag) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityHashtag) GetLength() int32 { return m.Data2.Length } +func (m *TLPrivacyValueAllowUsers) SetUsers(v []int32) { m.Data2.Users = v } +func (m *TLPrivacyValueAllowUsers) GetUsers() []int32 { return m.Data2.Users } -func NewTLMessageEntityHashtag() *TLMessageEntityHashtag { - return &TLMessageEntityHashtag{Data2: &MessageEntity_Data{}} +func NewTLPrivacyValueAllowUsers() *TLPrivacyValueAllowUsers { + return &TLPrivacyValueAllowUsers{Data2: &PrivacyRule_Data{}} } -func (m *TLMessageEntityHashtag) Encode() []byte { +func (m *TLPrivacyValueAllowUsers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityHashtag)) + x.Int(int32(TLConstructor_CRC32_privacyValueAllowUsers)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.VectorInt(m.GetUsers()) return x.buf } -func (m *TLMessageEntityHashtag) EncodeToLayer(layer int) []byte { +func (m *TLPrivacyValueAllowUsers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityHashtag)) + x.Int(int32(TLConstructor_CRC32_privacyValueAllowUsers)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.VectorInt(m.GetUsers()) return x.buf } -func (m *TLMessageEntityHashtag) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +func (m *TLPrivacyValueAllowUsers) Decode(dbuf *DecodeBuf) error { + m.SetUsers(dbuf.VectorInt()) return dbuf.err } -// messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity; -func (m *TLMessageEntityBotCommand) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityBotCommand, +// privacyValueDisallowContacts#f888fa1a = PrivacyRule; +func (m *TLPrivacyValueDisallowContacts) To_PrivacyRule() *PrivacyRule { + return &PrivacyRule{ + Constructor: TLConstructor_CRC32_privacyValueDisallowContacts, Data2: m.Data2, } } -func (m *TLMessageEntityBotCommand) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityBotCommand) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityBotCommand) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityBotCommand) GetLength() int32 { return m.Data2.Length } - -func NewTLMessageEntityBotCommand() *TLMessageEntityBotCommand { - return &TLMessageEntityBotCommand{Data2: &MessageEntity_Data{}} +func NewTLPrivacyValueDisallowContacts() *TLPrivacyValueDisallowContacts { + return &TLPrivacyValueDisallowContacts{Data2: &PrivacyRule_Data{}} } -func (m *TLMessageEntityBotCommand) Encode() []byte { +func (m *TLPrivacyValueDisallowContacts) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityBotCommand)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_privacyValueDisallowContacts)) return x.buf } -func (m *TLMessageEntityBotCommand) EncodeToLayer(layer int) []byte { +func (m *TLPrivacyValueDisallowContacts) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityBotCommand)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_privacyValueDisallowContacts)) return x.buf } -func (m *TLMessageEntityBotCommand) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +func (m *TLPrivacyValueDisallowContacts) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageEntityUrl#6ed02538 offset:int length:int = MessageEntity; -func (m *TLMessageEntityUrl) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityUrl, +// privacyValueDisallowAll#8b73e763 = PrivacyRule; +func (m *TLPrivacyValueDisallowAll) To_PrivacyRule() *PrivacyRule { + return &PrivacyRule{ + Constructor: TLConstructor_CRC32_privacyValueDisallowAll, Data2: m.Data2, } } -func (m *TLMessageEntityUrl) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityUrl) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityUrl) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityUrl) GetLength() int32 { return m.Data2.Length } - -func NewTLMessageEntityUrl() *TLMessageEntityUrl { - return &TLMessageEntityUrl{Data2: &MessageEntity_Data{}} +func NewTLPrivacyValueDisallowAll() *TLPrivacyValueDisallowAll { + return &TLPrivacyValueDisallowAll{Data2: &PrivacyRule_Data{}} } -func (m *TLMessageEntityUrl) Encode() []byte { +func (m *TLPrivacyValueDisallowAll) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityUrl)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_privacyValueDisallowAll)) return x.buf } -func (m *TLMessageEntityUrl) EncodeToLayer(layer int) []byte { +func (m *TLPrivacyValueDisallowAll) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityUrl)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_privacyValueDisallowAll)) return x.buf } -func (m *TLMessageEntityUrl) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +func (m *TLPrivacyValueDisallowAll) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageEntityEmail#64e475c2 offset:int length:int = MessageEntity; -func (m *TLMessageEntityEmail) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityEmail, +// privacyValueDisallowUsers#c7f49b7 users:Vector = PrivacyRule; +func (m *TLPrivacyValueDisallowUsers) To_PrivacyRule() *PrivacyRule { + return &PrivacyRule{ + Constructor: TLConstructor_CRC32_privacyValueDisallowUsers, Data2: m.Data2, } } -func (m *TLMessageEntityEmail) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityEmail) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityEmail) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityEmail) GetLength() int32 { return m.Data2.Length } +func (m *TLPrivacyValueDisallowUsers) SetUsers(v []int32) { m.Data2.Users = v } +func (m *TLPrivacyValueDisallowUsers) GetUsers() []int32 { return m.Data2.Users } -func NewTLMessageEntityEmail() *TLMessageEntityEmail { - return &TLMessageEntityEmail{Data2: &MessageEntity_Data{}} +func NewTLPrivacyValueDisallowUsers() *TLPrivacyValueDisallowUsers { + return &TLPrivacyValueDisallowUsers{Data2: &PrivacyRule_Data{}} } -func (m *TLMessageEntityEmail) Encode() []byte { +func (m *TLPrivacyValueDisallowUsers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityEmail)) + x.Int(int32(TLConstructor_CRC32_privacyValueDisallowUsers)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.VectorInt(m.GetUsers()) return x.buf } -func (m *TLMessageEntityEmail) EncodeToLayer(layer int) []byte { +func (m *TLPrivacyValueDisallowUsers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityEmail)) + x.Int(int32(TLConstructor_CRC32_privacyValueDisallowUsers)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.VectorInt(m.GetUsers()) return x.buf } -func (m *TLMessageEntityEmail) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +func (m *TLPrivacyValueDisallowUsers) Decode(dbuf *DecodeBuf) error { + m.SetUsers(dbuf.VectorInt()) return dbuf.err } -// messageEntityBold#bd610bc9 offset:int length:int = MessageEntity; -func (m *TLMessageEntityBold) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityBold, - Data2: m.Data2, - } -} - -func (m *TLMessageEntityBold) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityBold) GetOffset() int32 { return m.Data2.Offset } +/////////////////////////////////////////////////////////////////////////////// +// Upload_WebFile <-- +// + TL_UploadWebFile +// -func (m *TLMessageEntityBold) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityBold) GetLength() int32 { return m.Data2.Length } +func (m *Upload_WebFile) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_upload_webFile: + t := m.To_UploadWebFile() + return t.Encode() -func NewTLMessageEntityBold() *TLMessageEntityBold { - return &TLMessageEntityBold{Data2: &MessageEntity_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageEntityBold) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityBold)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) +func (m *Upload_WebFile) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_upload_webFile: + t := m.To_UploadWebFile() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageEntityBold) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityBold)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) +func (m *Upload_WebFile) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_upload_webFile: + m2 := &TLUploadWebFile{Data2: &Upload_WebFile_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLMessageEntityBold) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) - - return dbuf.err +// upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; +func (m *Upload_WebFile) To_UploadWebFile() *TLUploadWebFile { + return &TLUploadWebFile{ + Data2: m.Data2, + } } -// messageEntityItalic#826f8b60 offset:int length:int = MessageEntity; -func (m *TLMessageEntityItalic) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityItalic, +// upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; +func (m *TLUploadWebFile) To_Upload_WebFile() *Upload_WebFile { + return &Upload_WebFile{ + Constructor: TLConstructor_CRC32_upload_webFile, Data2: m.Data2, } } -func (m *TLMessageEntityItalic) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityItalic) GetOffset() int32 { return m.Data2.Offset } +func (m *TLUploadWebFile) SetSize(v int32) { m.Data2.Size = v } +func (m *TLUploadWebFile) GetSize() int32 { return m.Data2.Size } -func (m *TLMessageEntityItalic) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityItalic) GetLength() int32 { return m.Data2.Length } +func (m *TLUploadWebFile) SetMimeType(v string) { m.Data2.MimeType = v } +func (m *TLUploadWebFile) GetMimeType() string { return m.Data2.MimeType } -func NewTLMessageEntityItalic() *TLMessageEntityItalic { - return &TLMessageEntityItalic{Data2: &MessageEntity_Data{}} +func (m *TLUploadWebFile) SetFileType(v *Storage_FileType) { m.Data2.FileType = v } +func (m *TLUploadWebFile) GetFileType() *Storage_FileType { return m.Data2.FileType } + +func (m *TLUploadWebFile) SetMtime(v int32) { m.Data2.Mtime = v } +func (m *TLUploadWebFile) GetMtime() int32 { return m.Data2.Mtime } + +func (m *TLUploadWebFile) SetBytes(v []byte) { m.Data2.Bytes = v } +func (m *TLUploadWebFile) GetBytes() []byte { return m.Data2.Bytes } + +func NewTLUploadWebFile() *TLUploadWebFile { + return &TLUploadWebFile{Data2: &Upload_WebFile_Data{}} } -func (m *TLMessageEntityItalic) Encode() []byte { +func (m *TLUploadWebFile) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityItalic)) + x.Int(int32(TLConstructor_CRC32_upload_webFile)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(m.GetSize()) + x.String(m.GetMimeType()) + x.Bytes(m.GetFileType().Encode()) + x.Int(m.GetMtime()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLMessageEntityItalic) EncodeToLayer(layer int) []byte { +func (m *TLUploadWebFile) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityItalic)) + x.Int(int32(TLConstructor_CRC32_upload_webFile)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(m.GetSize()) + x.String(m.GetMimeType()) + x.Bytes(m.GetFileType().EncodeToLayer(layer)) + x.Int(m.GetMtime()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLMessageEntityItalic) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +func (m *TLUploadWebFile) Decode(dbuf *DecodeBuf) error { + m.SetSize(dbuf.Int()) + m.SetMimeType(dbuf.String()) + m3 := &Storage_FileType{} + m3.Decode(dbuf) + m.SetFileType(m3) + m.SetMtime(dbuf.Int()) + m.SetBytes(dbuf.StringBytes()) return dbuf.err } -// messageEntityCode#28a20571 offset:int length:int = MessageEntity; -func (m *TLMessageEntityCode) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityCode, - Data2: m.Data2, - } -} - -func (m *TLMessageEntityCode) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityCode) GetOffset() int32 { return m.Data2.Offset } +/////////////////////////////////////////////////////////////////////////////// +// SecurePlainData <-- +// + TL_SecurePlainPhone +// + TL_SecurePlainEmail +// -func (m *TLMessageEntityCode) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityCode) GetLength() int32 { return m.Data2.Length } +func (m *SecurePlainData) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_securePlainPhone: + t := m.To_SecurePlainPhone() + return t.Encode() + case TLConstructor_CRC32_securePlainEmail: + t := m.To_SecurePlainEmail() + return t.Encode() -func NewTLMessageEntityCode() *TLMessageEntityCode { - return &TLMessageEntityCode{Data2: &MessageEntity_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageEntityCode) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityCode)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) +func (m *SecurePlainData) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_securePlainPhone: + t := m.To_SecurePlainPhone() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_securePlainEmail: + t := m.To_SecurePlainEmail() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageEntityCode) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityCode)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) +func (m *SecurePlainData) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_securePlainPhone: + m2 := &TLSecurePlainPhone{Data2: &SecurePlainData_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_securePlainEmail: + m2 := &TLSecurePlainEmail{Data2: &SecurePlainData_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLMessageEntityCode) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +// securePlainPhone#7d6099dd phone:string = SecurePlainData; +func (m *SecurePlainData) To_SecurePlainPhone() *TLSecurePlainPhone { + return &TLSecurePlainPhone{ + Data2: m.Data2, + } +} - return dbuf.err +// securePlainEmail#21ec5a5f email:string = SecurePlainData; +func (m *SecurePlainData) To_SecurePlainEmail() *TLSecurePlainEmail { + return &TLSecurePlainEmail{ + Data2: m.Data2, + } } -// messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity; -func (m *TLMessageEntityPre) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityPre, +// securePlainPhone#7d6099dd phone:string = SecurePlainData; +func (m *TLSecurePlainPhone) To_SecurePlainData() *SecurePlainData { + return &SecurePlainData{ + Constructor: TLConstructor_CRC32_securePlainPhone, Data2: m.Data2, } } -func (m *TLMessageEntityPre) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityPre) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityPre) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityPre) GetLength() int32 { return m.Data2.Length } - -func (m *TLMessageEntityPre) SetLanguage(v string) { m.Data2.Language = v } -func (m *TLMessageEntityPre) GetLanguage() string { return m.Data2.Language } +func (m *TLSecurePlainPhone) SetPhone(v string) { m.Data2.Phone = v } +func (m *TLSecurePlainPhone) GetPhone() string { return m.Data2.Phone } -func NewTLMessageEntityPre() *TLMessageEntityPre { - return &TLMessageEntityPre{Data2: &MessageEntity_Data{}} +func NewTLSecurePlainPhone() *TLSecurePlainPhone { + return &TLSecurePlainPhone{Data2: &SecurePlainData_Data{}} } -func (m *TLMessageEntityPre) Encode() []byte { +func (m *TLSecurePlainPhone) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityPre)) + x.Int(int32(TLConstructor_CRC32_securePlainPhone)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) - x.String(m.GetLanguage()) + x.String(m.GetPhone()) return x.buf } -func (m *TLMessageEntityPre) EncodeToLayer(layer int) []byte { +func (m *TLSecurePlainPhone) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityPre)) + x.Int(int32(TLConstructor_CRC32_securePlainPhone)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) - x.String(m.GetLanguage()) + x.String(m.GetPhone()) return x.buf } -func (m *TLMessageEntityPre) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) - m.SetLanguage(dbuf.String()) +func (m *TLSecurePlainPhone) Decode(dbuf *DecodeBuf) error { + m.SetPhone(dbuf.String()) return dbuf.err } -// messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity; -func (m *TLMessageEntityTextUrl) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityTextUrl, +// securePlainEmail#21ec5a5f email:string = SecurePlainData; +func (m *TLSecurePlainEmail) To_SecurePlainData() *SecurePlainData { + return &SecurePlainData{ + Constructor: TLConstructor_CRC32_securePlainEmail, Data2: m.Data2, } } -func (m *TLMessageEntityTextUrl) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityTextUrl) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityTextUrl) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityTextUrl) GetLength() int32 { return m.Data2.Length } - -func (m *TLMessageEntityTextUrl) SetUrl(v string) { m.Data2.Url = v } -func (m *TLMessageEntityTextUrl) GetUrl() string { return m.Data2.Url } +func (m *TLSecurePlainEmail) SetEmail(v string) { m.Data2.Email = v } +func (m *TLSecurePlainEmail) GetEmail() string { return m.Data2.Email } -func NewTLMessageEntityTextUrl() *TLMessageEntityTextUrl { - return &TLMessageEntityTextUrl{Data2: &MessageEntity_Data{}} +func NewTLSecurePlainEmail() *TLSecurePlainEmail { + return &TLSecurePlainEmail{Data2: &SecurePlainData_Data{}} } -func (m *TLMessageEntityTextUrl) Encode() []byte { +func (m *TLSecurePlainEmail) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityTextUrl)) + x.Int(int32(TLConstructor_CRC32_securePlainEmail)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) - x.String(m.GetUrl()) + x.String(m.GetEmail()) return x.buf } -func (m *TLMessageEntityTextUrl) EncodeToLayer(layer int) []byte { +func (m *TLSecurePlainEmail) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityTextUrl)) + x.Int(int32(TLConstructor_CRC32_securePlainEmail)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) - x.String(m.GetUrl()) + x.String(m.GetEmail()) return x.buf } -func (m *TLMessageEntityTextUrl) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) - m.SetUrl(dbuf.String()) +func (m *TLSecurePlainEmail) Decode(dbuf *DecodeBuf) error { + m.SetEmail(dbuf.String()) return dbuf.err } -// messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity; -func (m *TLMessageEntityMentionName) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityMentionName, - Data2: m.Data2, - } -} - -func (m *TLMessageEntityMentionName) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityMentionName) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityMentionName) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityMentionName) GetLength() int32 { return m.Data2.Length } +/////////////////////////////////////////////////////////////////////////////// +// InputBotInlineMessageID <-- +// + TL_InputBotInlineMessageID +// -func (m *TLMessageEntityMentionName) SetUserId(v int32) { m.Data2.UserId_5 = v } -func (m *TLMessageEntityMentionName) GetUserId() int32 { return m.Data2.UserId_5 } +func (m *InputBotInlineMessageID) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputBotInlineMessageID: + t := m.To_InputBotInlineMessageID() + return t.Encode() -func NewTLMessageEntityMentionName() *TLMessageEntityMentionName { - return &TLMessageEntityMentionName{Data2: &MessageEntity_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageEntityMentionName) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityMentionName)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) - x.Int(m.GetUserId()) +func (m *InputBotInlineMessageID) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputBotInlineMessageID: + t := m.To_InputBotInlineMessageID() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageEntityMentionName) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityMentionName)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) - x.Int(m.GetUserId()) +func (m *InputBotInlineMessageID) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputBotInlineMessageID: + m2 := &TLInputBotInlineMessageID{Data2: &InputBotInlineMessageID_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLMessageEntityMentionName) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) - m.SetUserId(dbuf.Int()) - - return dbuf.err +// inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID; +func (m *InputBotInlineMessageID) To_InputBotInlineMessageID() *TLInputBotInlineMessageID { + return &TLInputBotInlineMessageID{ + Data2: m.Data2, + } } -// inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity; -func (m *TLInputMessageEntityMentionName) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_inputMessageEntityMentionName, +// inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID; +func (m *TLInputBotInlineMessageID) To_InputBotInlineMessageID() *InputBotInlineMessageID { + return &InputBotInlineMessageID{ + Constructor: TLConstructor_CRC32_inputBotInlineMessageID, Data2: m.Data2, } } -func (m *TLInputMessageEntityMentionName) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLInputMessageEntityMentionName) GetOffset() int32 { return m.Data2.Offset } +func (m *TLInputBotInlineMessageID) SetDcId(v int32) { m.Data2.DcId = v } +func (m *TLInputBotInlineMessageID) GetDcId() int32 { return m.Data2.DcId } -func (m *TLInputMessageEntityMentionName) SetLength(v int32) { m.Data2.Length = v } -func (m *TLInputMessageEntityMentionName) GetLength() int32 { return m.Data2.Length } +func (m *TLInputBotInlineMessageID) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputBotInlineMessageID) GetId() int64 { return m.Data2.Id } -func (m *TLInputMessageEntityMentionName) SetUserId(v *InputUser) { m.Data2.UserId_6 = v } -func (m *TLInputMessageEntityMentionName) GetUserId() *InputUser { return m.Data2.UserId_6 } +func (m *TLInputBotInlineMessageID) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputBotInlineMessageID) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLInputMessageEntityMentionName() *TLInputMessageEntityMentionName { - return &TLInputMessageEntityMentionName{Data2: &MessageEntity_Data{}} +func NewTLInputBotInlineMessageID() *TLInputBotInlineMessageID { + return &TLInputBotInlineMessageID{Data2: &InputBotInlineMessageID_Data{}} } -func (m *TLInputMessageEntityMentionName) Encode() []byte { +func (m *TLInputBotInlineMessageID) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessageEntityMentionName)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageID)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) - x.Bytes(m.GetUserId().Encode()) + x.Int(m.GetDcId()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLInputMessageEntityMentionName) EncodeToLayer(layer int) []byte { +func (m *TLInputBotInlineMessageID) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessageEntityMentionName)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageID)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) - x.Bytes(m.GetUserId().EncodeToLayer(layer)) + x.Int(m.GetDcId()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLInputMessageEntityMentionName) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) - m3 := &InputUser{} - m3.Decode(dbuf) - m.SetUserId(m3) +func (m *TLInputBotInlineMessageID) Decode(dbuf *DecodeBuf) error { + m.SetDcId(dbuf.Int()) + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } -// messageEntityPhone#9b69e34b offset:int length:int = MessageEntity; -func (m *TLMessageEntityPhone) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityPhone, - Data2: m.Data2, - } -} - -func (m *TLMessageEntityPhone) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityPhone) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityPhone) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityPhone) GetLength() int32 { return m.Data2.Length } - -func NewTLMessageEntityPhone() *TLMessageEntityPhone { - return &TLMessageEntityPhone{Data2: &MessageEntity_Data{}} -} - -func (m *TLMessageEntityPhone) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityPhone)) +/////////////////////////////////////////////////////////////////////////////// +// Messages_PeerDialogs <-- +// + TL_MessagesPeerDialogs +// - x.Int(m.GetOffset()) - x.Int(m.GetLength()) +func (m *Messages_PeerDialogs) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_peerDialogs: + t := m.To_MessagesPeerDialogs() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageEntityPhone) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityPhone)) - - x.Int(m.GetOffset()) - x.Int(m.GetLength()) +func (m *Messages_PeerDialogs) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_peerDialogs: + t := m.To_MessagesPeerDialogs() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageEntityPhone) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +func (m *Messages_PeerDialogs) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_peerDialogs: + m2 := &TLMessagesPeerDialogs{Data2: &Messages_PeerDialogs_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity; -func (m *TLMessageEntityCashtag) To_MessageEntity() *MessageEntity { - return &MessageEntity{ - Constructor: TLConstructor_CRC32_messageEntityCashtag, - Data2: m.Data2, +// messages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs; +func (m *Messages_PeerDialogs) To_MessagesPeerDialogs() *TLMessagesPeerDialogs { + return &TLMessagesPeerDialogs{ + Data2: m.Data2, } } -func (m *TLMessageEntityCashtag) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessageEntityCashtag) GetOffset() int32 { return m.Data2.Offset } - -func (m *TLMessageEntityCashtag) SetLength(v int32) { m.Data2.Length = v } -func (m *TLMessageEntityCashtag) GetLength() int32 { return m.Data2.Length } +// messages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs; +func (m *TLMessagesPeerDialogs) To_Messages_PeerDialogs() *Messages_PeerDialogs { + return &Messages_PeerDialogs{ + Constructor: TLConstructor_CRC32_messages_peerDialogs, + Data2: m.Data2, + } +} -func NewTLMessageEntityCashtag() *TLMessageEntityCashtag { - return &TLMessageEntityCashtag{Data2: &MessageEntity_Data{}} +func (m *TLMessagesPeerDialogs) SetDialogs(v []*Dialog) { m.Data2.Dialogs = v } +func (m *TLMessagesPeerDialogs) GetDialogs() []*Dialog { return m.Data2.Dialogs } + +func (m *TLMessagesPeerDialogs) SetMessages(v []*Message) { m.Data2.Messages = v } +func (m *TLMessagesPeerDialogs) GetMessages() []*Message { return m.Data2.Messages } + +func (m *TLMessagesPeerDialogs) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLMessagesPeerDialogs) GetChats() []*Chat { return m.Data2.Chats } + +func (m *TLMessagesPeerDialogs) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLMessagesPeerDialogs) GetUsers() []*User { return m.Data2.Users } + +func (m *TLMessagesPeerDialogs) SetState(v *Updates_State) { m.Data2.State = v } +func (m *TLMessagesPeerDialogs) GetState() *Updates_State { return m.Data2.State } + +func NewTLMessagesPeerDialogs() *TLMessagesPeerDialogs { + return &TLMessagesPeerDialogs{Data2: &Messages_PeerDialogs_Data{}} } -func (m *TLMessageEntityCashtag) Encode() []byte { +func (m *TLMessagesPeerDialogs) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityCashtag)) + x.Int(int32(TLConstructor_CRC32_messages_peerDialogs)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDialogs()))) + for _, v := range m.GetDialogs() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Bytes(m.GetState().Encode()) return x.buf } -func (m *TLMessageEntityCashtag) EncodeToLayer(layer int) []byte { +func (m *TLMessagesPeerDialogs) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEntityCashtag)) + x.Int(int32(TLConstructor_CRC32_messages_peerDialogs)) - x.Int(m.GetOffset()) - x.Int(m.GetLength()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDialogs()))) + for _, v := range m.GetDialogs() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Bytes(m.GetState().EncodeToLayer(layer)) return x.buf } -func (m *TLMessageEntityCashtag) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLength(dbuf.Int()) +func (m *TLMessagesPeerDialogs) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*Dialog, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Dialog{} + v1[i].Decode(dbuf) + } + m.SetDialogs(v1) + + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Message, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Message{} + v2[i].Decode(dbuf) + } + m.SetMessages(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Chat, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Chat{} + v3[i].Decode(dbuf) + } + m.SetChats(v3) + + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*User, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &User{} + v4[i].Decode(dbuf) + } + m.SetUsers(v4) + + m5 := &Updates_State{} + m5.Decode(dbuf) + m.SetState(m5) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// WebDocument <-- -// + TL_WebDocument -// + TL_WebDocumentNoProxy +// PhotoSize <-- +// + TL_PhotoSizeEmpty +// + TL_PhotoSize +// + TL_PhotoCachedSize // -func (m *WebDocument) Encode() []byte { +func (m *PhotoSize) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_webDocument: - t := m.To_WebDocument() + case TLConstructor_CRC32_photoSizeEmpty: + t := m.To_PhotoSizeEmpty() return t.Encode() - case TLConstructor_CRC32_webDocumentNoProxy: - t := m.To_WebDocumentNoProxy() + case TLConstructor_CRC32_photoSize: + t := m.To_PhotoSize() + return t.Encode() + case TLConstructor_CRC32_photoCachedSize: + t := m.To_PhotoCachedSize() return t.Encode() default: @@ -7875,14 +8071,17 @@ func (m *WebDocument) Encode() []byte { } } -func (m *WebDocument) EncodeToLayer(layer int) []byte { +func (m *PhotoSize) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_webDocument: - t := m.To_WebDocument() + case TLConstructor_CRC32_photoSizeEmpty: + t := m.To_PhotoSizeEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_webDocumentNoProxy: - t := m.To_WebDocumentNoProxy() + case TLConstructor_CRC32_photoSize: + t := m.To_PhotoSize() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_photoCachedSize: + t := m.To_PhotoCachedSize() return t.EncodeToLayer(layer) default: @@ -7891,15 +8090,19 @@ func (m *WebDocument) EncodeToLayer(layer int) []byte { } } -func (m *WebDocument) Decode(dbuf *DecodeBuf) error { +func (m *PhotoSize) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_webDocument: - m2 := &TLWebDocument{Data2: &WebDocument_Data{}} + case TLConstructor_CRC32_photoSizeEmpty: + m2 := &TLPhotoSizeEmpty{Data2: &PhotoSize_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_webDocumentNoProxy: - m2 := &TLWebDocumentNoProxy{Data2: &WebDocument_Data{}} + case TLConstructor_CRC32_photoSize: + m2 := &TLPhotoSize{Data2: &PhotoSize_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_photoCachedSize: + m2 := &TLPhotoCachedSize{Data2: &PhotoSize_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -7909,187 +8112,209 @@ func (m *WebDocument) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument; -func (m *WebDocument) To_WebDocument() *TLWebDocument { - return &TLWebDocument{ +// photoSizeEmpty#e17e23c type:string = PhotoSize; +func (m *PhotoSize) To_PhotoSizeEmpty() *TLPhotoSizeEmpty { + return &TLPhotoSizeEmpty{ Data2: m.Data2, } } -// webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument; -func (m *WebDocument) To_WebDocumentNoProxy() *TLWebDocumentNoProxy { - return &TLWebDocumentNoProxy{ +// photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize; +func (m *PhotoSize) To_PhotoSize() *TLPhotoSize { + return &TLPhotoSize{ Data2: m.Data2, } } -// webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument; -func (m *TLWebDocument) To_WebDocument() *WebDocument { - return &WebDocument{ - Constructor: TLConstructor_CRC32_webDocument, +// photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize; +func (m *PhotoSize) To_PhotoCachedSize() *TLPhotoCachedSize { + return &TLPhotoCachedSize{ + Data2: m.Data2, + } +} + +// photoSizeEmpty#e17e23c type:string = PhotoSize; +func (m *TLPhotoSizeEmpty) To_PhotoSize() *PhotoSize { + return &PhotoSize{ + Constructor: TLConstructor_CRC32_photoSizeEmpty, Data2: m.Data2, } } -func (m *TLWebDocument) SetUrl(v string) { m.Data2.Url = v } -func (m *TLWebDocument) GetUrl() string { return m.Data2.Url } +func (m *TLPhotoSizeEmpty) SetType(v string) { m.Data2.Type = v } +func (m *TLPhotoSizeEmpty) GetType() string { return m.Data2.Type } -func (m *TLWebDocument) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLWebDocument) GetAccessHash() int64 { return m.Data2.AccessHash } +func NewTLPhotoSizeEmpty() *TLPhotoSizeEmpty { + return &TLPhotoSizeEmpty{Data2: &PhotoSize_Data{}} +} -func (m *TLWebDocument) SetSize(v int32) { m.Data2.Size = v } -func (m *TLWebDocument) GetSize() int32 { return m.Data2.Size } +func (m *TLPhotoSizeEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_photoSizeEmpty)) -func (m *TLWebDocument) SetMimeType(v string) { m.Data2.MimeType = v } -func (m *TLWebDocument) GetMimeType() string { return m.Data2.MimeType } + x.String(m.GetType()) -func (m *TLWebDocument) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } -func (m *TLWebDocument) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } + return x.buf +} -func NewTLWebDocument() *TLWebDocument { - return &TLWebDocument{Data2: &WebDocument_Data{}} +func (m *TLPhotoSizeEmpty) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_photoSizeEmpty)) + + x.String(m.GetType()) + + return x.buf } -func (m *TLWebDocument) Encode() []byte { +func (m *TLPhotoSizeEmpty) Decode(dbuf *DecodeBuf) error { + m.SetType(dbuf.String()) + + return dbuf.err +} + +// photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize; +func (m *TLPhotoSize) To_PhotoSize() *PhotoSize { + return &PhotoSize{ + Constructor: TLConstructor_CRC32_photoSize, + Data2: m.Data2, + } +} + +func (m *TLPhotoSize) SetType(v string) { m.Data2.Type = v } +func (m *TLPhotoSize) GetType() string { return m.Data2.Type } + +func (m *TLPhotoSize) SetLocation(v *FileLocation) { m.Data2.Location = v } +func (m *TLPhotoSize) GetLocation() *FileLocation { return m.Data2.Location } + +func (m *TLPhotoSize) SetW(v int32) { m.Data2.W = v } +func (m *TLPhotoSize) GetW() int32 { return m.Data2.W } + +func (m *TLPhotoSize) SetH(v int32) { m.Data2.H = v } +func (m *TLPhotoSize) GetH() int32 { return m.Data2.H } + +func (m *TLPhotoSize) SetSize(v int32) { m.Data2.Size = v } +func (m *TLPhotoSize) GetSize() int32 { return m.Data2.Size } + +func NewTLPhotoSize() *TLPhotoSize { + return &TLPhotoSize{Data2: &PhotoSize_Data{}} +} + +func (m *TLPhotoSize) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webDocument)) + x.Int(int32(TLConstructor_CRC32_photoSize)) - x.String(m.GetUrl()) - x.Long(m.GetAccessHash()) + x.String(m.GetType()) + x.Bytes(m.GetLocation().Encode()) + x.Int(m.GetW()) + x.Int(m.GetH()) x.Int(m.GetSize()) - x.String(m.GetMimeType()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).Encode()...) - } return x.buf } -func (m *TLWebDocument) EncodeToLayer(layer int) []byte { +func (m *TLPhotoSize) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webDocument)) + x.Int(int32(TLConstructor_CRC32_photoSize)) - x.String(m.GetUrl()) - x.Long(m.GetAccessHash()) + x.String(m.GetType()) + x.Bytes(m.GetLocation().EncodeToLayer(layer)) + x.Int(m.GetW()) + x.Int(m.GetH()) x.Int(m.GetSize()) - x.String(m.GetMimeType()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } return x.buf } -func (m *TLWebDocument) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m.SetAccessHash(dbuf.Long()) +func (m *TLPhotoSize) Decode(dbuf *DecodeBuf) error { + m.SetType(dbuf.String()) + m2 := &FileLocation{} + m2.Decode(dbuf) + m.SetLocation(m2) + m.SetW(dbuf.Int()) + m.SetH(dbuf.Int()) m.SetSize(dbuf.Int()) - m.SetMimeType(dbuf.String()) - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err - } - l5 := dbuf.Int() - v5 := make([]*DocumentAttribute, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &DocumentAttribute{} - v5[i].Decode(dbuf) - } - m.SetAttributes(v5) return dbuf.err } -// webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument; -func (m *TLWebDocumentNoProxy) To_WebDocument() *WebDocument { - return &WebDocument{ - Constructor: TLConstructor_CRC32_webDocumentNoProxy, +// photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize; +func (m *TLPhotoCachedSize) To_PhotoSize() *PhotoSize { + return &PhotoSize{ + Constructor: TLConstructor_CRC32_photoCachedSize, Data2: m.Data2, } } -func (m *TLWebDocumentNoProxy) SetUrl(v string) { m.Data2.Url = v } -func (m *TLWebDocumentNoProxy) GetUrl() string { return m.Data2.Url } +func (m *TLPhotoCachedSize) SetType(v string) { m.Data2.Type = v } +func (m *TLPhotoCachedSize) GetType() string { return m.Data2.Type } -func (m *TLWebDocumentNoProxy) SetSize(v int32) { m.Data2.Size = v } -func (m *TLWebDocumentNoProxy) GetSize() int32 { return m.Data2.Size } +func (m *TLPhotoCachedSize) SetLocation(v *FileLocation) { m.Data2.Location = v } +func (m *TLPhotoCachedSize) GetLocation() *FileLocation { return m.Data2.Location } -func (m *TLWebDocumentNoProxy) SetMimeType(v string) { m.Data2.MimeType = v } -func (m *TLWebDocumentNoProxy) GetMimeType() string { return m.Data2.MimeType } +func (m *TLPhotoCachedSize) SetW(v int32) { m.Data2.W = v } +func (m *TLPhotoCachedSize) GetW() int32 { return m.Data2.W } -func (m *TLWebDocumentNoProxy) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } -func (m *TLWebDocumentNoProxy) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } +func (m *TLPhotoCachedSize) SetH(v int32) { m.Data2.H = v } +func (m *TLPhotoCachedSize) GetH() int32 { return m.Data2.H } -func NewTLWebDocumentNoProxy() *TLWebDocumentNoProxy { - return &TLWebDocumentNoProxy{Data2: &WebDocument_Data{}} +func (m *TLPhotoCachedSize) SetBytes(v []byte) { m.Data2.Bytes = v } +func (m *TLPhotoCachedSize) GetBytes() []byte { return m.Data2.Bytes } + +func NewTLPhotoCachedSize() *TLPhotoCachedSize { + return &TLPhotoCachedSize{Data2: &PhotoSize_Data{}} } -func (m *TLWebDocumentNoProxy) Encode() []byte { +func (m *TLPhotoCachedSize) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webDocumentNoProxy)) + x.Int(int32(TLConstructor_CRC32_photoCachedSize)) - x.String(m.GetUrl()) - x.Int(m.GetSize()) - x.String(m.GetMimeType()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.String(m.GetType()) + x.Bytes(m.GetLocation().Encode()) + x.Int(m.GetW()) + x.Int(m.GetH()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLWebDocumentNoProxy) EncodeToLayer(layer int) []byte { +func (m *TLPhotoCachedSize) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webDocumentNoProxy)) + x.Int(int32(TLConstructor_CRC32_photoCachedSize)) - x.String(m.GetUrl()) - x.Int(m.GetSize()) - x.String(m.GetMimeType()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.String(m.GetType()) + x.Bytes(m.GetLocation().EncodeToLayer(layer)) + x.Int(m.GetW()) + x.Int(m.GetH()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLWebDocumentNoProxy) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m.SetSize(dbuf.Int()) - m.SetMimeType(dbuf.String()) - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*DocumentAttribute, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &DocumentAttribute{} - v4[i].Decode(dbuf) - } - m.SetAttributes(v4) +func (m *TLPhotoCachedSize) Decode(dbuf *DecodeBuf) error { + m.SetType(dbuf.String()) + m2 := &FileLocation{} + m2.Decode(dbuf) + m.SetLocation(m2) + m.SetW(dbuf.Int()) + m.SetH(dbuf.Int()) + m.SetBytes(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Contacts_ImportedContacts <-- -// + TL_ContactsImportedContacts +// Messages_DhConfig <-- +// + TL_MessagesDhConfigNotModified +// + TL_MessagesDhConfig // -func (m *Contacts_ImportedContacts) Encode() []byte { +func (m *Messages_DhConfig) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_contacts_importedContacts: - t := m.To_ContactsImportedContacts() + case TLConstructor_CRC32_messages_dhConfigNotModified: + t := m.To_MessagesDhConfigNotModified() + return t.Encode() + case TLConstructor_CRC32_messages_dhConfig: + t := m.To_MessagesDhConfig() return t.Encode() default: @@ -8098,11 +8323,14 @@ func (m *Contacts_ImportedContacts) Encode() []byte { } } -func (m *Contacts_ImportedContacts) EncodeToLayer(layer int) []byte { +func (m *Messages_DhConfig) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_contacts_importedContacts: - t := m.To_ContactsImportedContacts() + case TLConstructor_CRC32_messages_dhConfigNotModified: + t := m.To_MessagesDhConfigNotModified() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_dhConfig: + t := m.To_MessagesDhConfig() return t.EncodeToLayer(layer) default: @@ -8111,11 +8339,15 @@ func (m *Contacts_ImportedContacts) EncodeToLayer(layer int) []byte { } } -func (m *Contacts_ImportedContacts) Decode(dbuf *DecodeBuf) error { +func (m *Messages_DhConfig) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_contacts_importedContacts: - m2 := &TLContactsImportedContacts{Data2: &Contacts_ImportedContacts_Data{}} + case TLConstructor_CRC32_messages_dhConfigNotModified: + m2 := &TLMessagesDhConfigNotModified{Data2: &Messages_DhConfig_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_dhConfig: + m2 := &TLMessagesDhConfig{Data2: &Messages_DhConfig_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -8125,144 +8357,153 @@ func (m *Contacts_ImportedContacts) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// contacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts; -func (m *Contacts_ImportedContacts) To_ContactsImportedContacts() *TLContactsImportedContacts { - return &TLContactsImportedContacts{ +// messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig; +func (m *Messages_DhConfig) To_MessagesDhConfigNotModified() *TLMessagesDhConfigNotModified { + return &TLMessagesDhConfigNotModified{ Data2: m.Data2, } } -// contacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts; -func (m *TLContactsImportedContacts) To_Contacts_ImportedContacts() *Contacts_ImportedContacts { - return &Contacts_ImportedContacts{ - Constructor: TLConstructor_CRC32_contacts_importedContacts, +// messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig; +func (m *Messages_DhConfig) To_MessagesDhConfig() *TLMessagesDhConfig { + return &TLMessagesDhConfig{ + Data2: m.Data2, + } +} + +// messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig; +func (m *TLMessagesDhConfigNotModified) To_Messages_DhConfig() *Messages_DhConfig { + return &Messages_DhConfig{ + Constructor: TLConstructor_CRC32_messages_dhConfigNotModified, Data2: m.Data2, } } -func (m *TLContactsImportedContacts) SetImported(v []*ImportedContact) { m.Data2.Imported = v } -func (m *TLContactsImportedContacts) GetImported() []*ImportedContact { return m.Data2.Imported } +func (m *TLMessagesDhConfigNotModified) SetRandom(v []byte) { m.Data2.Random = v } +func (m *TLMessagesDhConfigNotModified) GetRandom() []byte { return m.Data2.Random } -func (m *TLContactsImportedContacts) SetPopularInvites(v []*PopularContact) { - m.Data2.PopularInvites = v -} -func (m *TLContactsImportedContacts) GetPopularInvites() []*PopularContact { - return m.Data2.PopularInvites +func NewTLMessagesDhConfigNotModified() *TLMessagesDhConfigNotModified { + return &TLMessagesDhConfigNotModified{Data2: &Messages_DhConfig_Data{}} } -func (m *TLContactsImportedContacts) SetRetryContacts(v []int64) { m.Data2.RetryContacts = v } -func (m *TLContactsImportedContacts) GetRetryContacts() []int64 { return m.Data2.RetryContacts } +func (m *TLMessagesDhConfigNotModified) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_dhConfigNotModified)) -func (m *TLContactsImportedContacts) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLContactsImportedContacts) GetUsers() []*User { return m.Data2.Users } + x.StringBytes(m.GetRandom()) -func NewTLContactsImportedContacts() *TLContactsImportedContacts { - return &TLContactsImportedContacts{Data2: &Contacts_ImportedContacts_Data{}} + return x.buf } -func (m *TLContactsImportedContacts) Encode() []byte { +func (m *TLMessagesDhConfigNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_importedContacts)) + x.Int(int32(TLConstructor_CRC32_messages_dhConfigNotModified)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetImported()))) - for _, v := range m.GetImported() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPopularInvites()))) - for _, v := range m.GetPopularInvites() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.VectorLong(m.GetRetryContacts()) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.StringBytes(m.GetRandom()) return x.buf } -func (m *TLContactsImportedContacts) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_importedContacts)) +func (m *TLMessagesDhConfigNotModified) Decode(dbuf *DecodeBuf) error { + m.SetRandom(dbuf.StringBytes()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetImported()))) - for _, v := range m.GetImported() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPopularInvites()))) - for _, v := range m.GetPopularInvites() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.VectorLong(m.GetRetryContacts()) + return dbuf.err +} - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) +// messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig; +func (m *TLMessagesDhConfig) To_Messages_DhConfig() *Messages_DhConfig { + return &Messages_DhConfig{ + Constructor: TLConstructor_CRC32_messages_dhConfig, + Data2: m.Data2, } +} + +func (m *TLMessagesDhConfig) SetG(v int32) { m.Data2.G = v } +func (m *TLMessagesDhConfig) GetG() int32 { return m.Data2.G } + +func (m *TLMessagesDhConfig) SetP(v []byte) { m.Data2.P = v } +func (m *TLMessagesDhConfig) GetP() []byte { return m.Data2.P } + +func (m *TLMessagesDhConfig) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLMessagesDhConfig) GetVersion() int32 { return m.Data2.Version } + +func (m *TLMessagesDhConfig) SetRandom(v []byte) { m.Data2.Random = v } +func (m *TLMessagesDhConfig) GetRandom() []byte { return m.Data2.Random } + +func NewTLMessagesDhConfig() *TLMessagesDhConfig { + return &TLMessagesDhConfig{Data2: &Messages_DhConfig_Data{}} +} + +func (m *TLMessagesDhConfig) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_dhConfig)) + + x.Int(m.GetG()) + x.StringBytes(m.GetP()) + x.Int(m.GetVersion()) + x.StringBytes(m.GetRandom()) return x.buf } -func (m *TLContactsImportedContacts) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*ImportedContact, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &ImportedContact{} - v1[i].Decode(dbuf) - } - m.SetImported(v1) +func (m *TLMessagesDhConfig) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_dhConfig)) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*PopularContact, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &PopularContact{} - v2[i].Decode(dbuf) - } - m.SetPopularInvites(v2) + x.Int(m.GetG()) + x.StringBytes(m.GetP()) + x.Int(m.GetVersion()) + x.StringBytes(m.GetRandom()) - m.SetRetryContacts(dbuf.VectorLong()) - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*User, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &User{} - v4[i].Decode(dbuf) - } - m.SetUsers(v4) + return x.buf +} + +func (m *TLMessagesDhConfig) Decode(dbuf *DecodeBuf) error { + m.SetG(dbuf.Int()) + m.SetP(dbuf.StringBytes()) + m.SetVersion(dbuf.Int()) + m.SetRandom(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// StickerPack <-- -// + TL_StickerPack +// KeyboardButton <-- +// + TL_KeyboardButton +// + TL_KeyboardButtonUrl +// + TL_KeyboardButtonCallback +// + TL_KeyboardButtonRequestPhone +// + TL_KeyboardButtonRequestGeoLocation +// + TL_KeyboardButtonSwitchInline +// + TL_KeyboardButtonGame +// + TL_KeyboardButtonBuy // -func (m *StickerPack) Encode() []byte { +func (m *KeyboardButton) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_stickerPack: - t := m.To_StickerPack() + case TLConstructor_CRC32_keyboardButton: + t := m.To_KeyboardButton() + return t.Encode() + case TLConstructor_CRC32_keyboardButtonUrl: + t := m.To_KeyboardButtonUrl() + return t.Encode() + case TLConstructor_CRC32_keyboardButtonCallback: + t := m.To_KeyboardButtonCallback() + return t.Encode() + case TLConstructor_CRC32_keyboardButtonRequestPhone: + t := m.To_KeyboardButtonRequestPhone() + return t.Encode() + case TLConstructor_CRC32_keyboardButtonRequestGeoLocation: + t := m.To_KeyboardButtonRequestGeoLocation() + return t.Encode() + case TLConstructor_CRC32_keyboardButtonSwitchInline: + t := m.To_KeyboardButtonSwitchInline() + return t.Encode() + case TLConstructor_CRC32_keyboardButtonGame: + t := m.To_KeyboardButtonGame() + return t.Encode() + case TLConstructor_CRC32_keyboardButtonBuy: + t := m.To_KeyboardButtonBuy() return t.Encode() default: @@ -8271,11 +8512,32 @@ func (m *StickerPack) Encode() []byte { } } -func (m *StickerPack) EncodeToLayer(layer int) []byte { +func (m *KeyboardButton) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_stickerPack: - t := m.To_StickerPack() + case TLConstructor_CRC32_keyboardButton: + t := m.To_KeyboardButton() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_keyboardButtonUrl: + t := m.To_KeyboardButtonUrl() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_keyboardButtonCallback: + t := m.To_KeyboardButtonCallback() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_keyboardButtonRequestPhone: + t := m.To_KeyboardButtonRequestPhone() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_keyboardButtonRequestGeoLocation: + t := m.To_KeyboardButtonRequestGeoLocation() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_keyboardButtonSwitchInline: + t := m.To_KeyboardButtonSwitchInline() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_keyboardButtonGame: + t := m.To_KeyboardButtonGame() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_keyboardButtonBuy: + t := m.To_KeyboardButtonBuy() return t.EncodeToLayer(layer) default: @@ -8284,11 +8546,39 @@ func (m *StickerPack) EncodeToLayer(layer int) []byte { } } -func (m *StickerPack) Decode(dbuf *DecodeBuf) error { +func (m *KeyboardButton) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_stickerPack: - m2 := &TLStickerPack{Data2: &StickerPack_Data{}} + case TLConstructor_CRC32_keyboardButton: + m2 := &TLKeyboardButton{Data2: &KeyboardButton_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_keyboardButtonUrl: + m2 := &TLKeyboardButtonUrl{Data2: &KeyboardButton_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_keyboardButtonCallback: + m2 := &TLKeyboardButtonCallback{Data2: &KeyboardButton_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_keyboardButtonRequestPhone: + m2 := &TLKeyboardButtonRequestPhone{Data2: &KeyboardButton_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_keyboardButtonRequestGeoLocation: + m2 := &TLKeyboardButtonRequestGeoLocation{Data2: &KeyboardButton_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_keyboardButtonSwitchInline: + m2 := &TLKeyboardButtonSwitchInline{Data2: &KeyboardButton_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_keyboardButtonGame: + m2 := &TLKeyboardButtonGame{Data2: &KeyboardButton_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_keyboardButtonBuy: + m2 := &TLKeyboardButtonBuy{Data2: &KeyboardButton_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -8298,471 +8588,423 @@ func (m *StickerPack) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack; -func (m *StickerPack) To_StickerPack() *TLStickerPack { - return &TLStickerPack{ +// keyboardButton#a2fa4880 text:string = KeyboardButton; +func (m *KeyboardButton) To_KeyboardButton() *TLKeyboardButton { + return &TLKeyboardButton{ Data2: m.Data2, } } -// stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack; -func (m *TLStickerPack) To_StickerPack() *StickerPack { - return &StickerPack{ - Constructor: TLConstructor_CRC32_stickerPack, - Data2: m.Data2, +// keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton; +func (m *KeyboardButton) To_KeyboardButtonUrl() *TLKeyboardButtonUrl { + return &TLKeyboardButtonUrl{ + Data2: m.Data2, } } -func (m *TLStickerPack) SetEmoticon(v string) { m.Data2.Emoticon = v } -func (m *TLStickerPack) GetEmoticon() string { return m.Data2.Emoticon } +// keyboardButtonCallback#683a5e46 text:string data:bytes = KeyboardButton; +func (m *KeyboardButton) To_KeyboardButtonCallback() *TLKeyboardButtonCallback { + return &TLKeyboardButtonCallback{ + Data2: m.Data2, + } +} -func (m *TLStickerPack) SetDocuments(v []int64) { m.Data2.Documents = v } -func (m *TLStickerPack) GetDocuments() []int64 { return m.Data2.Documents } +// keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton; +func (m *KeyboardButton) To_KeyboardButtonRequestPhone() *TLKeyboardButtonRequestPhone { + return &TLKeyboardButtonRequestPhone{ + Data2: m.Data2, + } +} -func NewTLStickerPack() *TLStickerPack { - return &TLStickerPack{Data2: &StickerPack_Data{}} +// keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton; +func (m *KeyboardButton) To_KeyboardButtonRequestGeoLocation() *TLKeyboardButtonRequestGeoLocation { + return &TLKeyboardButtonRequestGeoLocation{ + Data2: m.Data2, + } } -func (m *TLStickerPack) Encode() []byte { +// keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton; +func (m *KeyboardButton) To_KeyboardButtonSwitchInline() *TLKeyboardButtonSwitchInline { + return &TLKeyboardButtonSwitchInline{ + Data2: m.Data2, + } +} + +// keyboardButtonGame#50f41ccf text:string = KeyboardButton; +func (m *KeyboardButton) To_KeyboardButtonGame() *TLKeyboardButtonGame { + return &TLKeyboardButtonGame{ + Data2: m.Data2, + } +} + +// keyboardButtonBuy#afd93fbb text:string = KeyboardButton; +func (m *KeyboardButton) To_KeyboardButtonBuy() *TLKeyboardButtonBuy { + return &TLKeyboardButtonBuy{ + Data2: m.Data2, + } +} + +// keyboardButton#a2fa4880 text:string = KeyboardButton; +func (m *TLKeyboardButton) To_KeyboardButton() *KeyboardButton { + return &KeyboardButton{ + Constructor: TLConstructor_CRC32_keyboardButton, + Data2: m.Data2, + } +} + +func (m *TLKeyboardButton) SetText(v string) { m.Data2.Text = v } +func (m *TLKeyboardButton) GetText() string { return m.Data2.Text } + +func NewTLKeyboardButton() *TLKeyboardButton { + return &TLKeyboardButton{Data2: &KeyboardButton_Data{}} +} + +func (m *TLKeyboardButton) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_stickerPack)) + x.Int(int32(TLConstructor_CRC32_keyboardButton)) - x.String(m.GetEmoticon()) - x.VectorLong(m.GetDocuments()) + x.String(m.GetText()) return x.buf } -func (m *TLStickerPack) EncodeToLayer(layer int) []byte { +func (m *TLKeyboardButton) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_stickerPack)) + x.Int(int32(TLConstructor_CRC32_keyboardButton)) - x.String(m.GetEmoticon()) - x.VectorLong(m.GetDocuments()) + x.String(m.GetText()) return x.buf } -func (m *TLStickerPack) Decode(dbuf *DecodeBuf) error { - m.SetEmoticon(dbuf.String()) - m.SetDocuments(dbuf.VectorLong()) +func (m *TLKeyboardButton) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Account_Password <-- -// + TL_AccountPassword -// +// keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton; +func (m *TLKeyboardButtonUrl) To_KeyboardButton() *KeyboardButton { + return &KeyboardButton{ + Constructor: TLConstructor_CRC32_keyboardButtonUrl, + Data2: m.Data2, + } +} -func (m *Account_Password) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_account_password: - t := m.To_AccountPassword() - return t.Encode() +func (m *TLKeyboardButtonUrl) SetText(v string) { m.Data2.Text = v } +func (m *TLKeyboardButtonUrl) GetText() string { return m.Data2.Text } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLKeyboardButtonUrl) SetUrl(v string) { m.Data2.Url = v } +func (m *TLKeyboardButtonUrl) GetUrl() string { return m.Data2.Url } + +func NewTLKeyboardButtonUrl() *TLKeyboardButtonUrl { + return &TLKeyboardButtonUrl{Data2: &KeyboardButton_Data{}} } -func (m *Account_Password) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_account_password: - t := m.To_AccountPassword() - return t.EncodeToLayer(layer) +func (m *TLKeyboardButtonUrl) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonUrl)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.String(m.GetText()) + x.String(m.GetUrl()) + + return x.buf } -func (m *Account_Password) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_account_password: - m2 := &TLAccountPassword{Data2: &Account_Password_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLKeyboardButtonUrl) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonUrl)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.String(m.GetText()) + x.String(m.GetUrl()) + + return x.buf } -// account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password; -func (m *Account_Password) To_AccountPassword() *TLAccountPassword { - return &TLAccountPassword{ - Data2: m.Data2, - } +func (m *TLKeyboardButtonUrl) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) + m.SetUrl(dbuf.String()) + + return dbuf.err } -// account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password; -func (m *TLAccountPassword) To_Account_Password() *Account_Password { - return &Account_Password{ - Constructor: TLConstructor_CRC32_account_password, +// keyboardButtonCallback#683a5e46 text:string data:bytes = KeyboardButton; +func (m *TLKeyboardButtonCallback) To_KeyboardButton() *KeyboardButton { + return &KeyboardButton{ + Constructor: TLConstructor_CRC32_keyboardButtonCallback, Data2: m.Data2, } } -func (m *TLAccountPassword) SetHasRecovery(v bool) { m.Data2.HasRecovery = v } -func (m *TLAccountPassword) GetHasRecovery() bool { return m.Data2.HasRecovery } +func (m *TLKeyboardButtonCallback) SetText(v string) { m.Data2.Text = v } +func (m *TLKeyboardButtonCallback) GetText() string { return m.Data2.Text } -func (m *TLAccountPassword) SetHasSecureValues(v bool) { m.Data2.HasSecureValues = v } -func (m *TLAccountPassword) GetHasSecureValues() bool { return m.Data2.HasSecureValues } +func (m *TLKeyboardButtonCallback) SetData(v []byte) { m.Data2.Data = v } +func (m *TLKeyboardButtonCallback) GetData() []byte { return m.Data2.Data } -func (m *TLAccountPassword) SetHasPassword(v bool) { m.Data2.HasPassword = v } -func (m *TLAccountPassword) GetHasPassword() bool { return m.Data2.HasPassword } +func NewTLKeyboardButtonCallback() *TLKeyboardButtonCallback { + return &TLKeyboardButtonCallback{Data2: &KeyboardButton_Data{}} +} -func (m *TLAccountPassword) SetCurrentAlgo(v *PasswordKdfAlgo) { m.Data2.CurrentAlgo = v } -func (m *TLAccountPassword) GetCurrentAlgo() *PasswordKdfAlgo { return m.Data2.CurrentAlgo } +func (m *TLKeyboardButtonCallback) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonCallback)) -func (m *TLAccountPassword) SetSrp_B(v []byte) { m.Data2.Srp_B = v } -func (m *TLAccountPassword) GetSrp_B() []byte { return m.Data2.Srp_B } + x.String(m.GetText()) + x.StringBytes(m.GetData()) -func (m *TLAccountPassword) SetSrpId(v int64) { m.Data2.SrpId = v } -func (m *TLAccountPassword) GetSrpId() int64 { return m.Data2.SrpId } + return x.buf +} -func (m *TLAccountPassword) SetHint(v string) { m.Data2.Hint = v } -func (m *TLAccountPassword) GetHint() string { return m.Data2.Hint } +func (m *TLKeyboardButtonCallback) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonCallback)) -func (m *TLAccountPassword) SetEmailUnconfirmedPattern(v string) { m.Data2.EmailUnconfirmedPattern = v } -func (m *TLAccountPassword) GetEmailUnconfirmedPattern() string { - return m.Data2.EmailUnconfirmedPattern + x.String(m.GetText()) + x.StringBytes(m.GetData()) + + return x.buf } -func (m *TLAccountPassword) SetNewAlgo(v *PasswordKdfAlgo) { m.Data2.NewAlgo = v } -func (m *TLAccountPassword) GetNewAlgo() *PasswordKdfAlgo { return m.Data2.NewAlgo } +func (m *TLKeyboardButtonCallback) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) + m.SetData(dbuf.StringBytes()) -func (m *TLAccountPassword) SetNewSecureAlgo(v *SecurePasswordKdfAlgo) { m.Data2.NewSecureAlgo = v } -func (m *TLAccountPassword) GetNewSecureAlgo() *SecurePasswordKdfAlgo { return m.Data2.NewSecureAlgo } + return dbuf.err +} -func (m *TLAccountPassword) SetSecureRandom(v []byte) { m.Data2.SecureRandom = v } -func (m *TLAccountPassword) GetSecureRandom() []byte { return m.Data2.SecureRandom } +// keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton; +func (m *TLKeyboardButtonRequestPhone) To_KeyboardButton() *KeyboardButton { + return &KeyboardButton{ + Constructor: TLConstructor_CRC32_keyboardButtonRequestPhone, + Data2: m.Data2, + } +} -func NewTLAccountPassword() *TLAccountPassword { - return &TLAccountPassword{Data2: &Account_Password_Data{}} +func (m *TLKeyboardButtonRequestPhone) SetText(v string) { m.Data2.Text = v } +func (m *TLKeyboardButtonRequestPhone) GetText() string { return m.Data2.Text } + +func NewTLKeyboardButtonRequestPhone() *TLKeyboardButtonRequestPhone { + return &TLKeyboardButtonRequestPhone{Data2: &KeyboardButton_Data{}} } -func (m *TLAccountPassword) Encode() []byte { +func (m *TLKeyboardButtonRequestPhone) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_password)) - - // flags - var flags uint32 = 0 - if m.GetHasRecovery() == true { - flags |= 1 << 0 - } - if m.GetHasSecureValues() == true { - flags |= 1 << 1 - } - if m.GetHasPassword() == true { - flags |= 1 << 2 - } - if m.GetCurrentAlgo() != nil { - flags |= 1 << 2 - } - if m.GetSrp_B() != nil { - flags |= 1 << 2 - } - if m.GetSrpId() != 0 { - flags |= 1 << 2 - } - if m.GetHint() != "" { - flags |= 1 << 3 - } - if m.GetEmailUnconfirmedPattern() != "" { - flags |= 1 << 4 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_keyboardButtonRequestPhone)) - if m.GetCurrentAlgo() != nil { - x.Bytes(m.GetCurrentAlgo().Encode()) - } - if m.GetSrp_B() != nil { - x.StringBytes(m.GetSrp_B()) - } - if m.GetSrpId() != 0 { - x.Long(m.GetSrpId()) - } - if m.GetHint() != "" { - x.String(m.GetHint()) - } - if m.GetEmailUnconfirmedPattern() != "" { - x.String(m.GetEmailUnconfirmedPattern()) - } - x.Bytes(m.GetNewAlgo().Encode()) - x.Bytes(m.GetNewSecureAlgo().Encode()) - x.StringBytes(m.GetSecureRandom()) + x.String(m.GetText()) return x.buf } -func (m *TLAccountPassword) EncodeToLayer(layer int) []byte { +func (m *TLKeyboardButtonRequestPhone) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_password)) + x.Int(int32(TLConstructor_CRC32_keyboardButtonRequestPhone)) - // flags - var flags uint32 = 0 - if m.GetHasRecovery() == true { - flags |= 1 << 0 - } - if m.GetHasSecureValues() == true { - flags |= 1 << 1 - } - if m.GetHasPassword() == true { - flags |= 1 << 2 - } - if m.GetCurrentAlgo() != nil { - flags |= 1 << 2 - } - if m.GetSrp_B() != nil { - flags |= 1 << 2 - } - if m.GetSrpId() != 0 { - flags |= 1 << 2 - } - if m.GetHint() != "" { - flags |= 1 << 3 - } - if m.GetEmailUnconfirmedPattern() != "" { - flags |= 1 << 4 - } - x.UInt(flags) + x.String(m.GetText()) - if m.GetCurrentAlgo() != nil { - x.Bytes(m.GetCurrentAlgo().EncodeToLayer(layer)) - } - if m.GetSrp_B() != nil { - x.StringBytes(m.GetSrp_B()) - } - if m.GetSrpId() != 0 { - x.Long(m.GetSrpId()) - } - if m.GetHint() != "" { - x.String(m.GetHint()) - } - if m.GetEmailUnconfirmedPattern() != "" { - x.String(m.GetEmailUnconfirmedPattern()) + return x.buf +} + +func (m *TLKeyboardButtonRequestPhone) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) + + return dbuf.err +} + +// keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton; +func (m *TLKeyboardButtonRequestGeoLocation) To_KeyboardButton() *KeyboardButton { + return &KeyboardButton{ + Constructor: TLConstructor_CRC32_keyboardButtonRequestGeoLocation, + Data2: m.Data2, } - x.Bytes(m.GetNewAlgo().EncodeToLayer(layer)) - x.Bytes(m.GetNewSecureAlgo().EncodeToLayer(layer)) - x.StringBytes(m.GetSecureRandom()) +} + +func (m *TLKeyboardButtonRequestGeoLocation) SetText(v string) { m.Data2.Text = v } +func (m *TLKeyboardButtonRequestGeoLocation) GetText() string { return m.Data2.Text } + +func NewTLKeyboardButtonRequestGeoLocation() *TLKeyboardButtonRequestGeoLocation { + return &TLKeyboardButtonRequestGeoLocation{Data2: &KeyboardButton_Data{}} +} + +func (m *TLKeyboardButtonRequestGeoLocation) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonRequestGeoLocation)) + + x.String(m.GetText()) return x.buf } -func (m *TLAccountPassword) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetHasRecovery(true) - } - if (flags & (1 << 1)) != 0 { - m.SetHasSecureValues(true) - } - if (flags & (1 << 2)) != 0 { - m.SetHasPassword(true) - } - if (flags & (1 << 2)) != 0 { - m5 := &PasswordKdfAlgo{} - m5.Decode(dbuf) - m.SetCurrentAlgo(m5) - } - if (flags & (1 << 2)) != 0 { - m.SetSrp_B(dbuf.StringBytes()) - } - if (flags & (1 << 2)) != 0 { - m.SetSrpId(dbuf.Long()) - } - if (flags & (1 << 3)) != 0 { - m.SetHint(dbuf.String()) - } - if (flags & (1 << 4)) != 0 { - m.SetEmailUnconfirmedPattern(dbuf.String()) - } - m10 := &PasswordKdfAlgo{} - m10.Decode(dbuf) - m.SetNewAlgo(m10) - m11 := &SecurePasswordKdfAlgo{} - m11.Decode(dbuf) - m.SetNewSecureAlgo(m11) - m.SetSecureRandom(dbuf.StringBytes()) +func (m *TLKeyboardButtonRequestGeoLocation) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonRequestGeoLocation)) - return dbuf.err + x.String(m.GetText()) + + return x.buf } -/////////////////////////////////////////////////////////////////////////////// -// Messages_StickerSetInstallResult <-- -// + TL_MessagesStickerSetInstallResultSuccess -// + TL_MessagesStickerSetInstallResultArchive -// +func (m *TLKeyboardButtonRequestGeoLocation) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) -func (m *Messages_StickerSetInstallResult) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_stickerSetInstallResultSuccess: - t := m.To_MessagesStickerSetInstallResultSuccess() - return t.Encode() - case TLConstructor_CRC32_messages_stickerSetInstallResultArchive: - t := m.To_MessagesStickerSetInstallResultArchive() - return t.Encode() + return dbuf.err +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton; +func (m *TLKeyboardButtonSwitchInline) To_KeyboardButton() *KeyboardButton { + return &KeyboardButton{ + Constructor: TLConstructor_CRC32_keyboardButtonSwitchInline, + Data2: m.Data2, } } -func (m *Messages_StickerSetInstallResult) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_stickerSetInstallResultSuccess: - t := m.To_MessagesStickerSetInstallResultSuccess() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_stickerSetInstallResultArchive: - t := m.To_MessagesStickerSetInstallResultArchive() - return t.EncodeToLayer(layer) +func (m *TLKeyboardButtonSwitchInline) SetSamePeer(v bool) { m.Data2.SamePeer = v } +func (m *TLKeyboardButtonSwitchInline) GetSamePeer() bool { return m.Data2.SamePeer } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLKeyboardButtonSwitchInline) SetText(v string) { m.Data2.Text = v } +func (m *TLKeyboardButtonSwitchInline) GetText() string { return m.Data2.Text } + +func (m *TLKeyboardButtonSwitchInline) SetQuery(v string) { m.Data2.Query = v } +func (m *TLKeyboardButtonSwitchInline) GetQuery() string { return m.Data2.Query } + +func NewTLKeyboardButtonSwitchInline() *TLKeyboardButtonSwitchInline { + return &TLKeyboardButtonSwitchInline{Data2: &KeyboardButton_Data{}} } -func (m *Messages_StickerSetInstallResult) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_stickerSetInstallResultSuccess: - m2 := &TLMessagesStickerSetInstallResultSuccess{Data2: &Messages_StickerSetInstallResult_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_stickerSetInstallResultArchive: - m2 := &TLMessagesStickerSetInstallResultArchive{Data2: &Messages_StickerSetInstallResult_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLKeyboardButtonSwitchInline) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonSwitchInline)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + // flags + var flags uint32 = 0 + if m.GetSamePeer() == true { + flags |= 1 << 0 } - return dbuf.err + x.UInt(flags) + + x.String(m.GetText()) + x.String(m.GetQuery()) + + return x.buf } -// messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult; -func (m *Messages_StickerSetInstallResult) To_MessagesStickerSetInstallResultSuccess() *TLMessagesStickerSetInstallResultSuccess { - return &TLMessagesStickerSetInstallResultSuccess{ - Data2: m.Data2, +func (m *TLKeyboardButtonSwitchInline) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonSwitchInline)) + + // flags + var flags uint32 = 0 + if m.GetSamePeer() == true { + flags |= 1 << 0 } + x.UInt(flags) + + x.String(m.GetText()) + x.String(m.GetQuery()) + + return x.buf } -// messages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult; -func (m *Messages_StickerSetInstallResult) To_MessagesStickerSetInstallResultArchive() *TLMessagesStickerSetInstallResultArchive { - return &TLMessagesStickerSetInstallResultArchive{ - Data2: m.Data2, +func (m *TLKeyboardButtonSwitchInline) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetSamePeer(true) } + m.SetText(dbuf.String()) + m.SetQuery(dbuf.String()) + + return dbuf.err } -// messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult; -func (m *TLMessagesStickerSetInstallResultSuccess) To_Messages_StickerSetInstallResult() *Messages_StickerSetInstallResult { - return &Messages_StickerSetInstallResult{ - Constructor: TLConstructor_CRC32_messages_stickerSetInstallResultSuccess, +// keyboardButtonGame#50f41ccf text:string = KeyboardButton; +func (m *TLKeyboardButtonGame) To_KeyboardButton() *KeyboardButton { + return &KeyboardButton{ + Constructor: TLConstructor_CRC32_keyboardButtonGame, Data2: m.Data2, } } -func NewTLMessagesStickerSetInstallResultSuccess() *TLMessagesStickerSetInstallResultSuccess { - return &TLMessagesStickerSetInstallResultSuccess{Data2: &Messages_StickerSetInstallResult_Data{}} +func (m *TLKeyboardButtonGame) SetText(v string) { m.Data2.Text = v } +func (m *TLKeyboardButtonGame) GetText() string { return m.Data2.Text } + +func NewTLKeyboardButtonGame() *TLKeyboardButtonGame { + return &TLKeyboardButtonGame{Data2: &KeyboardButton_Data{}} } -func (m *TLMessagesStickerSetInstallResultSuccess) Encode() []byte { +func (m *TLKeyboardButtonGame) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickerSetInstallResultSuccess)) + x.Int(int32(TLConstructor_CRC32_keyboardButtonGame)) + + x.String(m.GetText()) return x.buf } -func (m *TLMessagesStickerSetInstallResultSuccess) EncodeToLayer(layer int) []byte { +func (m *TLKeyboardButtonGame) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickerSetInstallResultSuccess)) + x.Int(int32(TLConstructor_CRC32_keyboardButtonGame)) + + x.String(m.GetText()) return x.buf } -func (m *TLMessagesStickerSetInstallResultSuccess) Decode(dbuf *DecodeBuf) error { +func (m *TLKeyboardButtonGame) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) return dbuf.err } -// messages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult; -func (m *TLMessagesStickerSetInstallResultArchive) To_Messages_StickerSetInstallResult() *Messages_StickerSetInstallResult { - return &Messages_StickerSetInstallResult{ - Constructor: TLConstructor_CRC32_messages_stickerSetInstallResultArchive, +// keyboardButtonBuy#afd93fbb text:string = KeyboardButton; +func (m *TLKeyboardButtonBuy) To_KeyboardButton() *KeyboardButton { + return &KeyboardButton{ + Constructor: TLConstructor_CRC32_keyboardButtonBuy, Data2: m.Data2, } } -func (m *TLMessagesStickerSetInstallResultArchive) SetSets(v []*StickerSetCovered) { m.Data2.Sets = v } -func (m *TLMessagesStickerSetInstallResultArchive) GetSets() []*StickerSetCovered { return m.Data2.Sets } +func (m *TLKeyboardButtonBuy) SetText(v string) { m.Data2.Text = v } +func (m *TLKeyboardButtonBuy) GetText() string { return m.Data2.Text } -func NewTLMessagesStickerSetInstallResultArchive() *TLMessagesStickerSetInstallResultArchive { - return &TLMessagesStickerSetInstallResultArchive{Data2: &Messages_StickerSetInstallResult_Data{}} +func NewTLKeyboardButtonBuy() *TLKeyboardButtonBuy { + return &TLKeyboardButtonBuy{Data2: &KeyboardButton_Data{}} } -func (m *TLMessagesStickerSetInstallResultArchive) Encode() []byte { +func (m *TLKeyboardButtonBuy) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickerSetInstallResultArchive)) + x.Int(int32(TLConstructor_CRC32_keyboardButtonBuy)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.String(m.GetText()) return x.buf } -func (m *TLMessagesStickerSetInstallResultArchive) EncodeToLayer(layer int) []byte { +func (m *TLKeyboardButtonBuy) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickerSetInstallResultArchive)) + x.Int(int32(TLConstructor_CRC32_keyboardButtonBuy)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.String(m.GetText()) return x.buf } -func (m *TLMessagesStickerSetInstallResultArchive) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*StickerSetCovered, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &StickerSetCovered{} - v1[i].Decode(dbuf) - } - m.SetSets(v1) +func (m *TLKeyboardButtonBuy) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputDialogPeer <-- -// + TL_InputDialogPeer +// ShippingOption <-- +// + TL_ShippingOption // -func (m *InputDialogPeer) Encode() []byte { +func (m *ShippingOption) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputDialogPeer: - t := m.To_InputDialogPeer() + case TLConstructor_CRC32_shippingOption: + t := m.To_ShippingOption() return t.Encode() default: @@ -8771,11 +9013,11 @@ func (m *InputDialogPeer) Encode() []byte { } } -func (m *InputDialogPeer) EncodeToLayer(layer int) []byte { +func (m *ShippingOption) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputDialogPeer: - t := m.To_InputDialogPeer() + case TLConstructor_CRC32_shippingOption: + t := m.To_ShippingOption() return t.EncodeToLayer(layer) default: @@ -8784,11 +9026,11 @@ func (m *InputDialogPeer) EncodeToLayer(layer int) []byte { } } -func (m *InputDialogPeer) Decode(dbuf *DecodeBuf) error { +func (m *ShippingOption) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputDialogPeer: - m2 := &TLInputDialogPeer{Data2: &InputDialogPeer_Data{}} + case TLConstructor_CRC32_shippingOption: + m2 := &TLShippingOption{Data2: &ShippingOption_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -8798,67 +9040,108 @@ func (m *InputDialogPeer) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer; -func (m *InputDialogPeer) To_InputDialogPeer() *TLInputDialogPeer { - return &TLInputDialogPeer{ +// shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; +func (m *ShippingOption) To_ShippingOption() *TLShippingOption { + return &TLShippingOption{ Data2: m.Data2, } } -// inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer; -func (m *TLInputDialogPeer) To_InputDialogPeer() *InputDialogPeer { - return &InputDialogPeer{ - Constructor: TLConstructor_CRC32_inputDialogPeer, +// shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; +func (m *TLShippingOption) To_ShippingOption() *ShippingOption { + return &ShippingOption{ + Constructor: TLConstructor_CRC32_shippingOption, Data2: m.Data2, } } -func (m *TLInputDialogPeer) SetPeer(v *InputPeer) { m.Data2.Peer = v } -func (m *TLInputDialogPeer) GetPeer() *InputPeer { return m.Data2.Peer } +func (m *TLShippingOption) SetId(v string) { m.Data2.Id = v } +func (m *TLShippingOption) GetId() string { return m.Data2.Id } -func NewTLInputDialogPeer() *TLInputDialogPeer { - return &TLInputDialogPeer{Data2: &InputDialogPeer_Data{}} +func (m *TLShippingOption) SetTitle(v string) { m.Data2.Title = v } +func (m *TLShippingOption) GetTitle() string { return m.Data2.Title } + +func (m *TLShippingOption) SetPrices(v []*LabeledPrice) { m.Data2.Prices = v } +func (m *TLShippingOption) GetPrices() []*LabeledPrice { return m.Data2.Prices } + +func NewTLShippingOption() *TLShippingOption { + return &TLShippingOption{Data2: &ShippingOption_Data{}} } -func (m *TLInputDialogPeer) Encode() []byte { +func (m *TLShippingOption) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDialogPeer)) + x.Int(int32(TLConstructor_CRC32_shippingOption)) - x.Bytes(m.GetPeer().Encode()) + x.String(m.GetId()) + x.String(m.GetTitle()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPrices()))) + for _, v := range m.GetPrices() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLInputDialogPeer) EncodeToLayer(layer int) []byte { +func (m *TLShippingOption) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDialogPeer)) + x.Int(int32(TLConstructor_CRC32_shippingOption)) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.String(m.GetId()) + x.String(m.GetTitle()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPrices()))) + for _, v := range m.GetPrices() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLInputDialogPeer) Decode(dbuf *DecodeBuf) error { - m1 := &InputPeer{} - m1.Decode(dbuf) - m.SetPeer(m1) +func (m *TLShippingOption) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.String()) + m.SetTitle(dbuf.String()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*LabeledPrice, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &LabeledPrice{} + v3[i].Decode(dbuf) + } + m.SetPrices(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SecurePlainData <-- -// + TL_SecurePlainPhone -// + TL_SecurePlainEmail +// RecentMeUrl <-- +// + TL_RecentMeUrlUnknown +// + TL_RecentMeUrlUser +// + TL_RecentMeUrlChat +// + TL_RecentMeUrlChatInvite +// + TL_RecentMeUrlStickerSet // -func (m *SecurePlainData) Encode() []byte { +func (m *RecentMeUrl) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_securePlainPhone: - t := m.To_SecurePlainPhone() + case TLConstructor_CRC32_recentMeUrlUnknown: + t := m.To_RecentMeUrlUnknown() return t.Encode() - case TLConstructor_CRC32_securePlainEmail: - t := m.To_SecurePlainEmail() + case TLConstructor_CRC32_recentMeUrlUser: + t := m.To_RecentMeUrlUser() + return t.Encode() + case TLConstructor_CRC32_recentMeUrlChat: + t := m.To_RecentMeUrlChat() + return t.Encode() + case TLConstructor_CRC32_recentMeUrlChatInvite: + t := m.To_RecentMeUrlChatInvite() + return t.Encode() + case TLConstructor_CRC32_recentMeUrlStickerSet: + t := m.To_RecentMeUrlStickerSet() return t.Encode() default: @@ -8867,14 +9150,23 @@ func (m *SecurePlainData) Encode() []byte { } } -func (m *SecurePlainData) EncodeToLayer(layer int) []byte { +func (m *RecentMeUrl) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_securePlainPhone: - t := m.To_SecurePlainPhone() + case TLConstructor_CRC32_recentMeUrlUnknown: + t := m.To_RecentMeUrlUnknown() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_securePlainEmail: - t := m.To_SecurePlainEmail() + case TLConstructor_CRC32_recentMeUrlUser: + t := m.To_RecentMeUrlUser() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_recentMeUrlChat: + t := m.To_RecentMeUrlChat() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_recentMeUrlChatInvite: + t := m.To_RecentMeUrlChatInvite() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_recentMeUrlStickerSet: + t := m.To_RecentMeUrlStickerSet() return t.EncodeToLayer(layer) default: @@ -8883,15 +9175,27 @@ func (m *SecurePlainData) EncodeToLayer(layer int) []byte { } } -func (m *SecurePlainData) Decode(dbuf *DecodeBuf) error { +func (m *RecentMeUrl) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_securePlainPhone: - m2 := &TLSecurePlainPhone{Data2: &SecurePlainData_Data{}} + case TLConstructor_CRC32_recentMeUrlUnknown: + m2 := &TLRecentMeUrlUnknown{Data2: &RecentMeUrl_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_securePlainEmail: - m2 := &TLSecurePlainEmail{Data2: &SecurePlainData_Data{}} + case TLConstructor_CRC32_recentMeUrlUser: + m2 := &TLRecentMeUrlUser{Data2: &RecentMeUrl_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_recentMeUrlChat: + m2 := &TLRecentMeUrlChat{Data2: &RecentMeUrl_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_recentMeUrlChatInvite: + m2 := &TLRecentMeUrlChatInvite{Data2: &RecentMeUrl_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_recentMeUrlStickerSet: + m2 := &TLRecentMeUrlStickerSet{Data2: &RecentMeUrl_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -8901,203 +9205,273 @@ func (m *SecurePlainData) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// securePlainPhone#7d6099dd phone:string = SecurePlainData; -func (m *SecurePlainData) To_SecurePlainPhone() *TLSecurePlainPhone { - return &TLSecurePlainPhone{ +// recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl; +func (m *RecentMeUrl) To_RecentMeUrlUnknown() *TLRecentMeUrlUnknown { + return &TLRecentMeUrlUnknown{ Data2: m.Data2, } } -// securePlainEmail#21ec5a5f email:string = SecurePlainData; -func (m *SecurePlainData) To_SecurePlainEmail() *TLSecurePlainEmail { - return &TLSecurePlainEmail{ +// recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl; +func (m *RecentMeUrl) To_RecentMeUrlUser() *TLRecentMeUrlUser { + return &TLRecentMeUrlUser{ Data2: m.Data2, } } -// securePlainPhone#7d6099dd phone:string = SecurePlainData; -func (m *TLSecurePlainPhone) To_SecurePlainData() *SecurePlainData { - return &SecurePlainData{ - Constructor: TLConstructor_CRC32_securePlainPhone, +// recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl; +func (m *RecentMeUrl) To_RecentMeUrlChat() *TLRecentMeUrlChat { + return &TLRecentMeUrlChat{ + Data2: m.Data2, + } +} + +// recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl; +func (m *RecentMeUrl) To_RecentMeUrlChatInvite() *TLRecentMeUrlChatInvite { + return &TLRecentMeUrlChatInvite{ + Data2: m.Data2, + } +} + +// recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl; +func (m *RecentMeUrl) To_RecentMeUrlStickerSet() *TLRecentMeUrlStickerSet { + return &TLRecentMeUrlStickerSet{ + Data2: m.Data2, + } +} + +// recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl; +func (m *TLRecentMeUrlUnknown) To_RecentMeUrl() *RecentMeUrl { + return &RecentMeUrl{ + Constructor: TLConstructor_CRC32_recentMeUrlUnknown, Data2: m.Data2, } } -func (m *TLSecurePlainPhone) SetPhone(v string) { m.Data2.Phone = v } -func (m *TLSecurePlainPhone) GetPhone() string { return m.Data2.Phone } +func (m *TLRecentMeUrlUnknown) SetUrl(v string) { m.Data2.Url = v } +func (m *TLRecentMeUrlUnknown) GetUrl() string { return m.Data2.Url } -func NewTLSecurePlainPhone() *TLSecurePlainPhone { - return &TLSecurePlainPhone{Data2: &SecurePlainData_Data{}} +func NewTLRecentMeUrlUnknown() *TLRecentMeUrlUnknown { + return &TLRecentMeUrlUnknown{Data2: &RecentMeUrl_Data{}} } -func (m *TLSecurePlainPhone) Encode() []byte { +func (m *TLRecentMeUrlUnknown) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePlainPhone)) + x.Int(int32(TLConstructor_CRC32_recentMeUrlUnknown)) - x.String(m.GetPhone()) + x.String(m.GetUrl()) return x.buf } -func (m *TLSecurePlainPhone) EncodeToLayer(layer int) []byte { +func (m *TLRecentMeUrlUnknown) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePlainPhone)) + x.Int(int32(TLConstructor_CRC32_recentMeUrlUnknown)) - x.String(m.GetPhone()) + x.String(m.GetUrl()) return x.buf } -func (m *TLSecurePlainPhone) Decode(dbuf *DecodeBuf) error { - m.SetPhone(dbuf.String()) +func (m *TLRecentMeUrlUnknown) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) return dbuf.err } -// securePlainEmail#21ec5a5f email:string = SecurePlainData; -func (m *TLSecurePlainEmail) To_SecurePlainData() *SecurePlainData { - return &SecurePlainData{ - Constructor: TLConstructor_CRC32_securePlainEmail, +// recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl; +func (m *TLRecentMeUrlUser) To_RecentMeUrl() *RecentMeUrl { + return &RecentMeUrl{ + Constructor: TLConstructor_CRC32_recentMeUrlUser, Data2: m.Data2, } } -func (m *TLSecurePlainEmail) SetEmail(v string) { m.Data2.Email = v } -func (m *TLSecurePlainEmail) GetEmail() string { return m.Data2.Email } +func (m *TLRecentMeUrlUser) SetUrl(v string) { m.Data2.Url = v } +func (m *TLRecentMeUrlUser) GetUrl() string { return m.Data2.Url } -func NewTLSecurePlainEmail() *TLSecurePlainEmail { - return &TLSecurePlainEmail{Data2: &SecurePlainData_Data{}} +func (m *TLRecentMeUrlUser) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLRecentMeUrlUser) GetUserId() int32 { return m.Data2.UserId } + +func NewTLRecentMeUrlUser() *TLRecentMeUrlUser { + return &TLRecentMeUrlUser{Data2: &RecentMeUrl_Data{}} } -func (m *TLSecurePlainEmail) Encode() []byte { +func (m *TLRecentMeUrlUser) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePlainEmail)) + x.Int(int32(TLConstructor_CRC32_recentMeUrlUser)) - x.String(m.GetEmail()) + x.String(m.GetUrl()) + x.Int(m.GetUserId()) return x.buf } -func (m *TLSecurePlainEmail) EncodeToLayer(layer int) []byte { +func (m *TLRecentMeUrlUser) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePlainEmail)) + x.Int(int32(TLConstructor_CRC32_recentMeUrlUser)) - x.String(m.GetEmail()) + x.String(m.GetUrl()) + x.Int(m.GetUserId()) return x.buf } -func (m *TLSecurePlainEmail) Decode(dbuf *DecodeBuf) error { - m.SetEmail(dbuf.String()) +func (m *TLRecentMeUrlUser) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m.SetUserId(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// SchemeParam <-- -// + TL_SchemeParam -// +// recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl; +func (m *TLRecentMeUrlChat) To_RecentMeUrl() *RecentMeUrl { + return &RecentMeUrl{ + Constructor: TLConstructor_CRC32_recentMeUrlChat, + Data2: m.Data2, + } +} -func (m *SchemeParam) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_schemeParam: - t := m.To_SchemeParam() - return t.Encode() +func (m *TLRecentMeUrlChat) SetUrl(v string) { m.Data2.Url = v } +func (m *TLRecentMeUrlChat) GetUrl() string { return m.Data2.Url } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLRecentMeUrlChat) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLRecentMeUrlChat) GetChatId() int32 { return m.Data2.ChatId } + +func NewTLRecentMeUrlChat() *TLRecentMeUrlChat { + return &TLRecentMeUrlChat{Data2: &RecentMeUrl_Data{}} } -func (m *SchemeParam) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_schemeParam: - t := m.To_SchemeParam() - return t.EncodeToLayer(layer) +func (m *TLRecentMeUrlChat) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_recentMeUrlChat)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.String(m.GetUrl()) + x.Int(m.GetChatId()) + + return x.buf } -func (m *SchemeParam) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_schemeParam: - m2 := &TLSchemeParam{Data2: &SchemeParam_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLRecentMeUrlChat) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_recentMeUrlChat)) + + x.String(m.GetUrl()) + x.Int(m.GetChatId()) + + return x.buf +} + +func (m *TLRecentMeUrlChat) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m.SetChatId(dbuf.Int()) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// schemeParam#21b59bef name:string type:string = SchemeParam; -func (m *SchemeParam) To_SchemeParam() *TLSchemeParam { - return &TLSchemeParam{ - Data2: m.Data2, +// recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl; +func (m *TLRecentMeUrlChatInvite) To_RecentMeUrl() *RecentMeUrl { + return &RecentMeUrl{ + Constructor: TLConstructor_CRC32_recentMeUrlChatInvite, + Data2: m.Data2, } } -// schemeParam#21b59bef name:string type:string = SchemeParam; -func (m *TLSchemeParam) To_SchemeParam() *SchemeParam { - return &SchemeParam{ - Constructor: TLConstructor_CRC32_schemeParam, +func (m *TLRecentMeUrlChatInvite) SetUrl(v string) { m.Data2.Url = v } +func (m *TLRecentMeUrlChatInvite) GetUrl() string { return m.Data2.Url } + +func (m *TLRecentMeUrlChatInvite) SetChatInvite(v *ChatInvite) { m.Data2.ChatInvite = v } +func (m *TLRecentMeUrlChatInvite) GetChatInvite() *ChatInvite { return m.Data2.ChatInvite } + +func NewTLRecentMeUrlChatInvite() *TLRecentMeUrlChatInvite { + return &TLRecentMeUrlChatInvite{Data2: &RecentMeUrl_Data{}} +} + +func (m *TLRecentMeUrlChatInvite) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_recentMeUrlChatInvite)) + + x.String(m.GetUrl()) + x.Bytes(m.GetChatInvite().Encode()) + + return x.buf +} + +func (m *TLRecentMeUrlChatInvite) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_recentMeUrlChatInvite)) + + x.String(m.GetUrl()) + x.Bytes(m.GetChatInvite().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLRecentMeUrlChatInvite) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m2 := &ChatInvite{} + m2.Decode(dbuf) + m.SetChatInvite(m2) + + return dbuf.err +} + +// recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl; +func (m *TLRecentMeUrlStickerSet) To_RecentMeUrl() *RecentMeUrl { + return &RecentMeUrl{ + Constructor: TLConstructor_CRC32_recentMeUrlStickerSet, Data2: m.Data2, } } -func (m *TLSchemeParam) SetName(v string) { m.Data2.Name = v } -func (m *TLSchemeParam) GetName() string { return m.Data2.Name } +func (m *TLRecentMeUrlStickerSet) SetUrl(v string) { m.Data2.Url = v } +func (m *TLRecentMeUrlStickerSet) GetUrl() string { return m.Data2.Url } -func (m *TLSchemeParam) SetType(v string) { m.Data2.Type = v } -func (m *TLSchemeParam) GetType() string { return m.Data2.Type } +func (m *TLRecentMeUrlStickerSet) SetSet(v *StickerSetCovered) { m.Data2.Set = v } +func (m *TLRecentMeUrlStickerSet) GetSet() *StickerSetCovered { return m.Data2.Set } -func NewTLSchemeParam() *TLSchemeParam { - return &TLSchemeParam{Data2: &SchemeParam_Data{}} +func NewTLRecentMeUrlStickerSet() *TLRecentMeUrlStickerSet { + return &TLRecentMeUrlStickerSet{Data2: &RecentMeUrl_Data{}} } -func (m *TLSchemeParam) Encode() []byte { +func (m *TLRecentMeUrlStickerSet) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_schemeParam)) + x.Int(int32(TLConstructor_CRC32_recentMeUrlStickerSet)) - x.String(m.GetName()) - x.String(m.GetType()) + x.String(m.GetUrl()) + x.Bytes(m.GetSet().Encode()) return x.buf } -func (m *TLSchemeParam) EncodeToLayer(layer int) []byte { +func (m *TLRecentMeUrlStickerSet) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_schemeParam)) + x.Int(int32(TLConstructor_CRC32_recentMeUrlStickerSet)) - x.String(m.GetName()) - x.String(m.GetType()) + x.String(m.GetUrl()) + x.Bytes(m.GetSet().EncodeToLayer(layer)) return x.buf } -func (m *TLSchemeParam) Decode(dbuf *DecodeBuf) error { - m.SetName(dbuf.String()) - m.SetType(dbuf.String()) +func (m *TLRecentMeUrlStickerSet) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m2 := &StickerSetCovered{} + m2.Decode(dbuf) + m.SetSet(m2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// AccountDaysTTL <-- -// + TL_AccountDaysTTL +// FileHash <-- +// + TL_FileHash // -func (m *AccountDaysTTL) Encode() []byte { +func (m *FileHash) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_accountDaysTTL: - t := m.To_AccountDaysTTL() + case TLConstructor_CRC32_fileHash: + t := m.To_FileHash() return t.Encode() default: @@ -9106,11 +9480,11 @@ func (m *AccountDaysTTL) Encode() []byte { } } -func (m *AccountDaysTTL) EncodeToLayer(layer int) []byte { +func (m *FileHash) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_accountDaysTTL: - t := m.To_AccountDaysTTL() + case TLConstructor_CRC32_fileHash: + t := m.To_FileHash() return t.EncodeToLayer(layer) default: @@ -9119,11 +9493,11 @@ func (m *AccountDaysTTL) EncodeToLayer(layer int) []byte { } } -func (m *AccountDaysTTL) Decode(dbuf *DecodeBuf) error { +func (m *FileHash) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_accountDaysTTL: - m2 := &TLAccountDaysTTL{Data2: &AccountDaysTTL_Data{}} + case TLConstructor_CRC32_fileHash: + m2 := &TLFileHash{Data2: &FileHash_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -9133,65 +9507,89 @@ func (m *AccountDaysTTL) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; -func (m *AccountDaysTTL) To_AccountDaysTTL() *TLAccountDaysTTL { - return &TLAccountDaysTTL{ +// fileHash#6242c773 offset:int limit:int hash:bytes = FileHash; +func (m *FileHash) To_FileHash() *TLFileHash { + return &TLFileHash{ Data2: m.Data2, } } -// accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; -func (m *TLAccountDaysTTL) To_AccountDaysTTL() *AccountDaysTTL { - return &AccountDaysTTL{ - Constructor: TLConstructor_CRC32_accountDaysTTL, +// fileHash#6242c773 offset:int limit:int hash:bytes = FileHash; +func (m *TLFileHash) To_FileHash() *FileHash { + return &FileHash{ + Constructor: TLConstructor_CRC32_fileHash, Data2: m.Data2, } } -func (m *TLAccountDaysTTL) SetDays(v int32) { m.Data2.Days = v } -func (m *TLAccountDaysTTL) GetDays() int32 { return m.Data2.Days } +func (m *TLFileHash) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLFileHash) GetOffset() int32 { return m.Data2.Offset } -func NewTLAccountDaysTTL() *TLAccountDaysTTL { - return &TLAccountDaysTTL{Data2: &AccountDaysTTL_Data{}} +func (m *TLFileHash) SetLimit(v int32) { m.Data2.Limit = v } +func (m *TLFileHash) GetLimit() int32 { return m.Data2.Limit } + +func (m *TLFileHash) SetHash(v []byte) { m.Data2.Hash = v } +func (m *TLFileHash) GetHash() []byte { return m.Data2.Hash } + +func NewTLFileHash() *TLFileHash { + return &TLFileHash{Data2: &FileHash_Data{}} } -func (m *TLAccountDaysTTL) Encode() []byte { +func (m *TLFileHash) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_accountDaysTTL)) + x.Int(int32(TLConstructor_CRC32_fileHash)) - x.Int(m.GetDays()) + x.Int(m.GetOffset()) + x.Int(m.GetLimit()) + x.StringBytes(m.GetHash()) return x.buf } -func (m *TLAccountDaysTTL) EncodeToLayer(layer int) []byte { +func (m *TLFileHash) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_accountDaysTTL)) + x.Int(int32(TLConstructor_CRC32_fileHash)) - x.Int(m.GetDays()) + x.Int(m.GetOffset()) + x.Int(m.GetLimit()) + x.StringBytes(m.GetHash()) return x.buf } -func (m *TLAccountDaysTTL) Decode(dbuf *DecodeBuf) error { - m.SetDays(dbuf.Int()) +func (m *TLFileHash) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLimit(dbuf.Int()) + m.SetHash(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Page <-- -// + TL_PagePart -// + TL_PageFull +// InputPeer <-- +// + TL_InputPeerEmpty +// + TL_InputPeerSelf +// + TL_InputPeerChat +// + TL_InputPeerUser +// + TL_InputPeerChannel // -func (m *Page) Encode() []byte { +func (m *InputPeer) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_pagePart: - t := m.To_PagePart() + case TLConstructor_CRC32_inputPeerEmpty: + t := m.To_InputPeerEmpty() return t.Encode() - case TLConstructor_CRC32_pageFull: - t := m.To_PageFull() + case TLConstructor_CRC32_inputPeerSelf: + t := m.To_InputPeerSelf() + return t.Encode() + case TLConstructor_CRC32_inputPeerChat: + t := m.To_InputPeerChat() + return t.Encode() + case TLConstructor_CRC32_inputPeerUser: + t := m.To_InputPeerUser() + return t.Encode() + case TLConstructor_CRC32_inputPeerChannel: + t := m.To_InputPeerChannel() return t.Encode() default: @@ -9200,14 +9598,23 @@ func (m *Page) Encode() []byte { } } -func (m *Page) EncodeToLayer(layer int) []byte { +func (m *InputPeer) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_pagePart: - t := m.To_PagePart() + case TLConstructor_CRC32_inputPeerEmpty: + t := m.To_InputPeerEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageFull: - t := m.To_PageFull() + case TLConstructor_CRC32_inputPeerSelf: + t := m.To_InputPeerSelf() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPeerChat: + t := m.To_InputPeerChat() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPeerUser: + t := m.To_InputPeerUser() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPeerChannel: + t := m.To_InputPeerChannel() return t.EncodeToLayer(layer) default: @@ -9216,15 +9623,27 @@ func (m *Page) EncodeToLayer(layer int) []byte { } } -func (m *Page) Decode(dbuf *DecodeBuf) error { +func (m *InputPeer) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_pagePart: - m2 := &TLPagePart{Data2: &Page_Data{}} + case TLConstructor_CRC32_inputPeerEmpty: + m2 := &TLInputPeerEmpty{Data2: &InputPeer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageFull: - m2 := &TLPageFull{Data2: &Page_Data{}} + case TLConstructor_CRC32_inputPeerSelf: + m2 := &TLInputPeerSelf{Data2: &InputPeer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPeerChat: + m2 := &TLInputPeerChat{Data2: &InputPeer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPeerUser: + m2 := &TLInputPeerUser{Data2: &InputPeer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPeerChannel: + m2 := &TLInputPeerChannel{Data2: &InputPeer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -9234,253 +9653,245 @@ func (m *Page) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// pagePart#8e3f9ebe blocks:Vector photos:Vector documents:Vector = Page; -func (m *Page) To_PagePart() *TLPagePart { - return &TLPagePart{ +// inputPeerEmpty#7f3b18ea = InputPeer; +func (m *InputPeer) To_InputPeerEmpty() *TLInputPeerEmpty { + return &TLInputPeerEmpty{ Data2: m.Data2, } } -// pageFull#556ec7aa blocks:Vector photos:Vector documents:Vector = Page; -func (m *Page) To_PageFull() *TLPageFull { - return &TLPageFull{ +// inputPeerSelf#7da07ec9 = InputPeer; +func (m *InputPeer) To_InputPeerSelf() *TLInputPeerSelf { + return &TLInputPeerSelf{ Data2: m.Data2, } } -// pagePart#8e3f9ebe blocks:Vector photos:Vector documents:Vector = Page; -func (m *TLPagePart) To_Page() *Page { - return &Page{ - Constructor: TLConstructor_CRC32_pagePart, - Data2: m.Data2, +// inputPeerChat#179be863 chat_id:int = InputPeer; +func (m *InputPeer) To_InputPeerChat() *TLInputPeerChat { + return &TLInputPeerChat{ + Data2: m.Data2, } } -func (m *TLPagePart) SetBlocks(v []*PageBlock) { m.Data2.Blocks = v } -func (m *TLPagePart) GetBlocks() []*PageBlock { return m.Data2.Blocks } +// inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer; +func (m *InputPeer) To_InputPeerUser() *TLInputPeerUser { + return &TLInputPeerUser{ + Data2: m.Data2, + } +} -func (m *TLPagePart) SetPhotos(v []*Photo) { m.Data2.Photos = v } -func (m *TLPagePart) GetPhotos() []*Photo { return m.Data2.Photos } +// inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer; +func (m *InputPeer) To_InputPeerChannel() *TLInputPeerChannel { + return &TLInputPeerChannel{ + Data2: m.Data2, + } +} -func (m *TLPagePart) SetDocuments(v []*Document) { m.Data2.Documents = v } -func (m *TLPagePart) GetDocuments() []*Document { return m.Data2.Documents } +// inputPeerEmpty#7f3b18ea = InputPeer; +func (m *TLInputPeerEmpty) To_InputPeer() *InputPeer { + return &InputPeer{ + Constructor: TLConstructor_CRC32_inputPeerEmpty, + Data2: m.Data2, + } +} -func NewTLPagePart() *TLPagePart { - return &TLPagePart{Data2: &Page_Data{}} +func NewTLInputPeerEmpty() *TLInputPeerEmpty { + return &TLInputPeerEmpty{Data2: &InputPeer_Data{}} } -func (m *TLPagePart) Encode() []byte { +func (m *TLInputPeerEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pagePart)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocks()))) - for _, v := range m.GetBlocks() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPhotos()))) - for _, v := range m.GetPhotos() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDocuments()))) - for _, v := range m.GetDocuments() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(int32(TLConstructor_CRC32_inputPeerEmpty)) return x.buf } -func (m *TLPagePart) EncodeToLayer(layer int) []byte { +func (m *TLInputPeerEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pagePart)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocks()))) - for _, v := range m.GetBlocks() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPhotos()))) - for _, v := range m.GetPhotos() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDocuments()))) - for _, v := range m.GetDocuments() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(int32(TLConstructor_CRC32_inputPeerEmpty)) return x.buf } -func (m *TLPagePart) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*PageBlock, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &PageBlock{} - v1[i].Decode(dbuf) - } - m.SetBlocks(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Photo, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Photo{} - v2[i].Decode(dbuf) - } - m.SetPhotos(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Document, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Document{} - v3[i].Decode(dbuf) - } - m.SetDocuments(v3) +func (m *TLInputPeerEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// pageFull#556ec7aa blocks:Vector photos:Vector documents:Vector = Page; -func (m *TLPageFull) To_Page() *Page { - return &Page{ - Constructor: TLConstructor_CRC32_pageFull, +// inputPeerSelf#7da07ec9 = InputPeer; +func (m *TLInputPeerSelf) To_InputPeer() *InputPeer { + return &InputPeer{ + Constructor: TLConstructor_CRC32_inputPeerSelf, Data2: m.Data2, } } -func (m *TLPageFull) SetBlocks(v []*PageBlock) { m.Data2.Blocks = v } -func (m *TLPageFull) GetBlocks() []*PageBlock { return m.Data2.Blocks } - -func (m *TLPageFull) SetPhotos(v []*Photo) { m.Data2.Photos = v } -func (m *TLPageFull) GetPhotos() []*Photo { return m.Data2.Photos } +func NewTLInputPeerSelf() *TLInputPeerSelf { + return &TLInputPeerSelf{Data2: &InputPeer_Data{}} +} -func (m *TLPageFull) SetDocuments(v []*Document) { m.Data2.Documents = v } -func (m *TLPageFull) GetDocuments() []*Document { return m.Data2.Documents } +func (m *TLInputPeerSelf) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputPeerSelf)) -func NewTLPageFull() *TLPageFull { - return &TLPageFull{Data2: &Page_Data{}} + return x.buf } -func (m *TLPageFull) Encode() []byte { +func (m *TLInputPeerSelf) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageFull)) + x.Int(int32(TLConstructor_CRC32_inputPeerSelf)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocks()))) - for _, v := range m.GetBlocks() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPhotos()))) - for _, v := range m.GetPhotos() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDocuments()))) - for _, v := range m.GetDocuments() { - x.buf = append(x.buf, (*v).Encode()...) + return x.buf +} + +func (m *TLInputPeerSelf) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// inputPeerChat#179be863 chat_id:int = InputPeer; +func (m *TLInputPeerChat) To_InputPeer() *InputPeer { + return &InputPeer{ + Constructor: TLConstructor_CRC32_inputPeerChat, + Data2: m.Data2, } +} + +func (m *TLInputPeerChat) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLInputPeerChat) GetChatId() int32 { return m.Data2.ChatId } + +func NewTLInputPeerChat() *TLInputPeerChat { + return &TLInputPeerChat{Data2: &InputPeer_Data{}} +} + +func (m *TLInputPeerChat) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputPeerChat)) + + x.Int(m.GetChatId()) return x.buf } -func (m *TLPageFull) EncodeToLayer(layer int) []byte { +func (m *TLInputPeerChat) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageFull)) + x.Int(int32(TLConstructor_CRC32_inputPeerChat)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocks()))) - for _, v := range m.GetBlocks() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPhotos()))) - for _, v := range m.GetPhotos() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDocuments()))) - for _, v := range m.GetDocuments() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetChatId()) return x.buf } -func (m *TLPageFull) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*PageBlock, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &PageBlock{} - v1[i].Decode(dbuf) - } - m.SetBlocks(v1) +func (m *TLInputPeerChat) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Photo, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Photo{} - v2[i].Decode(dbuf) - } - m.SetPhotos(v2) + return dbuf.err +} - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err +// inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer; +func (m *TLInputPeerUser) To_InputPeer() *InputPeer { + return &InputPeer{ + Constructor: TLConstructor_CRC32_inputPeerUser, + Data2: m.Data2, } - l3 := dbuf.Int() - v3 := make([]*Document, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Document{} - v3[i].Decode(dbuf) +} + +func (m *TLInputPeerUser) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLInputPeerUser) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLInputPeerUser) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputPeerUser) GetAccessHash() int64 { return m.Data2.AccessHash } + +func NewTLInputPeerUser() *TLInputPeerUser { + return &TLInputPeerUser{Data2: &InputPeer_Data{}} +} + +func (m *TLInputPeerUser) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputPeerUser)) + + x.Int(m.GetUserId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputPeerUser) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputPeerUser)) + + x.Int(m.GetUserId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputPeerUser) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetAccessHash(dbuf.Long()) + + return dbuf.err +} + +// inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer; +func (m *TLInputPeerChannel) To_InputPeer() *InputPeer { + return &InputPeer{ + Constructor: TLConstructor_CRC32_inputPeerChannel, + Data2: m.Data2, } - m.SetDocuments(v3) +} + +func (m *TLInputPeerChannel) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLInputPeerChannel) GetChannelId() int32 { return m.Data2.ChannelId } + +func (m *TLInputPeerChannel) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputPeerChannel) GetAccessHash() int64 { return m.Data2.AccessHash } + +func NewTLInputPeerChannel() *TLInputPeerChannel { + return &TLInputPeerChannel{Data2: &InputPeer_Data{}} +} + +func (m *TLInputPeerChannel) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputPeerChannel)) + + x.Int(m.GetChannelId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputPeerChannel) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputPeerChannel)) + + x.Int(m.GetChannelId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputPeerChannel) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SecureRequiredType <-- -// + TL_SecureRequiredType -// + TL_SecureRequiredTypeOneOf +// UserProfilePhoto <-- +// + TL_UserProfilePhotoEmpty +// + TL_UserProfilePhoto // -func (m *SecureRequiredType) Encode() []byte { +func (m *UserProfilePhoto) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_secureRequiredType: - t := m.To_SecureRequiredType() + case TLConstructor_CRC32_userProfilePhotoEmpty: + t := m.To_UserProfilePhotoEmpty() return t.Encode() - case TLConstructor_CRC32_secureRequiredTypeOneOf: - t := m.To_SecureRequiredTypeOneOf() + case TLConstructor_CRC32_userProfilePhoto: + t := m.To_UserProfilePhoto() return t.Encode() default: @@ -9489,14 +9900,14 @@ func (m *SecureRequiredType) Encode() []byte { } } -func (m *SecureRequiredType) EncodeToLayer(layer int) []byte { +func (m *UserProfilePhoto) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_secureRequiredType: - t := m.To_SecureRequiredType() + case TLConstructor_CRC32_userProfilePhotoEmpty: + t := m.To_UserProfilePhotoEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureRequiredTypeOneOf: - t := m.To_SecureRequiredTypeOneOf() + case TLConstructor_CRC32_userProfilePhoto: + t := m.To_UserProfilePhoto() return t.EncodeToLayer(layer) default: @@ -9505,15 +9916,15 @@ func (m *SecureRequiredType) EncodeToLayer(layer int) []byte { } } -func (m *SecureRequiredType) Decode(dbuf *DecodeBuf) error { +func (m *UserProfilePhoto) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_secureRequiredType: - m2 := &TLSecureRequiredType{Data2: &SecureRequiredType_Data{}} + case TLConstructor_CRC32_userProfilePhotoEmpty: + m2 := &TLUserProfilePhotoEmpty{Data2: &UserProfilePhoto_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureRequiredTypeOneOf: - m2 := &TLSecureRequiredTypeOneOf{Data2: &SecureRequiredType_Data{}} + case TLConstructor_CRC32_userProfilePhoto: + m2 := &TLUserProfilePhoto{Data2: &UserProfilePhoto_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -9523,210 +9934,175 @@ func (m *SecureRequiredType) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType; -func (m *SecureRequiredType) To_SecureRequiredType() *TLSecureRequiredType { - return &TLSecureRequiredType{ +// userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; +func (m *UserProfilePhoto) To_UserProfilePhotoEmpty() *TLUserProfilePhotoEmpty { + return &TLUserProfilePhotoEmpty{ Data2: m.Data2, } } -// secureRequiredTypeOneOf#27477b4 types:Vector = SecureRequiredType; -func (m *SecureRequiredType) To_SecureRequiredTypeOneOf() *TLSecureRequiredTypeOneOf { - return &TLSecureRequiredTypeOneOf{ +// userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto; +func (m *UserProfilePhoto) To_UserProfilePhoto() *TLUserProfilePhoto { + return &TLUserProfilePhoto{ Data2: m.Data2, } } -// secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType; -func (m *TLSecureRequiredType) To_SecureRequiredType() *SecureRequiredType { - return &SecureRequiredType{ - Constructor: TLConstructor_CRC32_secureRequiredType, +// userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; +func (m *TLUserProfilePhotoEmpty) To_UserProfilePhoto() *UserProfilePhoto { + return &UserProfilePhoto{ + Constructor: TLConstructor_CRC32_userProfilePhotoEmpty, Data2: m.Data2, } } -func (m *TLSecureRequiredType) SetNativeNames(v bool) { m.Data2.NativeNames = v } -func (m *TLSecureRequiredType) GetNativeNames() bool { return m.Data2.NativeNames } - -func (m *TLSecureRequiredType) SetSelfieRequired(v bool) { m.Data2.SelfieRequired = v } -func (m *TLSecureRequiredType) GetSelfieRequired() bool { return m.Data2.SelfieRequired } - -func (m *TLSecureRequiredType) SetTranslationRequired(v bool) { m.Data2.TranslationRequired = v } -func (m *TLSecureRequiredType) GetTranslationRequired() bool { return m.Data2.TranslationRequired } - -func (m *TLSecureRequiredType) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureRequiredType) GetType() *SecureValueType { return m.Data2.Type } - -func NewTLSecureRequiredType() *TLSecureRequiredType { - return &TLSecureRequiredType{Data2: &SecureRequiredType_Data{}} +func NewTLUserProfilePhotoEmpty() *TLUserProfilePhotoEmpty { + return &TLUserProfilePhotoEmpty{Data2: &UserProfilePhoto_Data{}} } -func (m *TLSecureRequiredType) Encode() []byte { +func (m *TLUserProfilePhotoEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureRequiredType)) - - // flags - var flags uint32 = 0 - if m.GetNativeNames() == true { - flags |= 1 << 0 - } - if m.GetSelfieRequired() == true { - flags |= 1 << 1 - } - if m.GetTranslationRequired() == true { - flags |= 1 << 2 - } - x.UInt(flags) - - x.Bytes(m.GetType().Encode()) + x.Int(int32(TLConstructor_CRC32_userProfilePhotoEmpty)) return x.buf } -func (m *TLSecureRequiredType) EncodeToLayer(layer int) []byte { +func (m *TLUserProfilePhotoEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureRequiredType)) - - // flags - var flags uint32 = 0 - if m.GetNativeNames() == true { - flags |= 1 << 0 - } - if m.GetSelfieRequired() == true { - flags |= 1 << 1 - } - if m.GetTranslationRequired() == true { - flags |= 1 << 2 - } - x.UInt(flags) - - x.Bytes(m.GetType().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_userProfilePhotoEmpty)) return x.buf } -func (m *TLSecureRequiredType) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetNativeNames(true) - } - if (flags & (1 << 1)) != 0 { - m.SetSelfieRequired(true) - } - if (flags & (1 << 2)) != 0 { - m.SetTranslationRequired(true) - } - m5 := &SecureValueType{} - m5.Decode(dbuf) - m.SetType(m5) +func (m *TLUserProfilePhotoEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureRequiredTypeOneOf#27477b4 types:Vector = SecureRequiredType; -func (m *TLSecureRequiredTypeOneOf) To_SecureRequiredType() *SecureRequiredType { - return &SecureRequiredType{ - Constructor: TLConstructor_CRC32_secureRequiredTypeOneOf, +// userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto; +func (m *TLUserProfilePhoto) To_UserProfilePhoto() *UserProfilePhoto { + return &UserProfilePhoto{ + Constructor: TLConstructor_CRC32_userProfilePhoto, Data2: m.Data2, } } -func (m *TLSecureRequiredTypeOneOf) SetTypes(v []*SecureRequiredType) { m.Data2.Types = v } -func (m *TLSecureRequiredTypeOneOf) GetTypes() []*SecureRequiredType { return m.Data2.Types } +func (m *TLUserProfilePhoto) SetPhotoId(v int64) { m.Data2.PhotoId = v } +func (m *TLUserProfilePhoto) GetPhotoId() int64 { return m.Data2.PhotoId } -func NewTLSecureRequiredTypeOneOf() *TLSecureRequiredTypeOneOf { - return &TLSecureRequiredTypeOneOf{Data2: &SecureRequiredType_Data{}} +func (m *TLUserProfilePhoto) SetPhotoSmall(v *FileLocation) { m.Data2.PhotoSmall = v } +func (m *TLUserProfilePhoto) GetPhotoSmall() *FileLocation { return m.Data2.PhotoSmall } + +func (m *TLUserProfilePhoto) SetPhotoBig(v *FileLocation) { m.Data2.PhotoBig = v } +func (m *TLUserProfilePhoto) GetPhotoBig() *FileLocation { return m.Data2.PhotoBig } + +func NewTLUserProfilePhoto() *TLUserProfilePhoto { + return &TLUserProfilePhoto{Data2: &UserProfilePhoto_Data{}} } -func (m *TLSecureRequiredTypeOneOf) Encode() []byte { +func (m *TLUserProfilePhoto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureRequiredTypeOneOf)) + x.Int(int32(TLConstructor_CRC32_userProfilePhoto)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTypes()))) - for _, v := range m.GetTypes() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Long(m.GetPhotoId()) + x.Bytes(m.GetPhotoSmall().Encode()) + x.Bytes(m.GetPhotoBig().Encode()) return x.buf } -func (m *TLSecureRequiredTypeOneOf) EncodeToLayer(layer int) []byte { +func (m *TLUserProfilePhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureRequiredTypeOneOf)) + x.Int(int32(TLConstructor_CRC32_userProfilePhoto)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTypes()))) - for _, v := range m.GetTypes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Long(m.GetPhotoId()) + x.Bytes(m.GetPhotoSmall().EncodeToLayer(layer)) + x.Bytes(m.GetPhotoBig().EncodeToLayer(layer)) return x.buf } -func (m *TLSecureRequiredTypeOneOf) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*SecureRequiredType, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &SecureRequiredType{} - v1[i].Decode(dbuf) - } - m.SetTypes(v1) +func (m *TLUserProfilePhoto) Decode(dbuf *DecodeBuf) error { + m.SetPhotoId(dbuf.Long()) + m2 := &FileLocation{} + m2.Decode(dbuf) + m.SetPhotoSmall(m2) + m3 := &FileLocation{} + m3.Decode(dbuf) + m.SetPhotoBig(m3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// RichText <-- -// + TL_TextEmpty -// + TL_TextPlain -// + TL_TextBold -// + TL_TextItalic -// + TL_TextUnderline -// + TL_TextStrike -// + TL_TextFixed -// + TL_TextUrl -// + TL_TextEmail -// + TL_TextConcat +// MessagesFilter <-- +// + TL_InputMessagesFilterEmpty +// + TL_InputMessagesFilterPhotos +// + TL_InputMessagesFilterVideo +// + TL_InputMessagesFilterPhotoVideo +// + TL_InputMessagesFilterDocument +// + TL_InputMessagesFilterUrl +// + TL_InputMessagesFilterGif +// + TL_InputMessagesFilterVoice +// + TL_InputMessagesFilterMusic +// + TL_InputMessagesFilterChatPhotos +// + TL_InputMessagesFilterPhoneCalls +// + TL_InputMessagesFilterRoundVoice +// + TL_InputMessagesFilterRoundVideo +// + TL_InputMessagesFilterMyMentions +// + TL_InputMessagesFilterGeo +// + TL_InputMessagesFilterContacts // -func (m *RichText) Encode() []byte { +func (m *MessagesFilter) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_textEmpty: - t := m.To_TextEmpty() + case TLConstructor_CRC32_inputMessagesFilterEmpty: + t := m.To_InputMessagesFilterEmpty() return t.Encode() - case TLConstructor_CRC32_textPlain: - t := m.To_TextPlain() + case TLConstructor_CRC32_inputMessagesFilterPhotos: + t := m.To_InputMessagesFilterPhotos() return t.Encode() - case TLConstructor_CRC32_textBold: - t := m.To_TextBold() + case TLConstructor_CRC32_inputMessagesFilterVideo: + t := m.To_InputMessagesFilterVideo() return t.Encode() - case TLConstructor_CRC32_textItalic: - t := m.To_TextItalic() + case TLConstructor_CRC32_inputMessagesFilterPhotoVideo: + t := m.To_InputMessagesFilterPhotoVideo() return t.Encode() - case TLConstructor_CRC32_textUnderline: - t := m.To_TextUnderline() + case TLConstructor_CRC32_inputMessagesFilterDocument: + t := m.To_InputMessagesFilterDocument() return t.Encode() - case TLConstructor_CRC32_textStrike: - t := m.To_TextStrike() + case TLConstructor_CRC32_inputMessagesFilterUrl: + t := m.To_InputMessagesFilterUrl() return t.Encode() - case TLConstructor_CRC32_textFixed: - t := m.To_TextFixed() + case TLConstructor_CRC32_inputMessagesFilterGif: + t := m.To_InputMessagesFilterGif() return t.Encode() - case TLConstructor_CRC32_textUrl: - t := m.To_TextUrl() + case TLConstructor_CRC32_inputMessagesFilterVoice: + t := m.To_InputMessagesFilterVoice() return t.Encode() - case TLConstructor_CRC32_textEmail: - t := m.To_TextEmail() + case TLConstructor_CRC32_inputMessagesFilterMusic: + t := m.To_InputMessagesFilterMusic() return t.Encode() - case TLConstructor_CRC32_textConcat: - t := m.To_TextConcat() + case TLConstructor_CRC32_inputMessagesFilterChatPhotos: + t := m.To_InputMessagesFilterChatPhotos() + return t.Encode() + case TLConstructor_CRC32_inputMessagesFilterPhoneCalls: + t := m.To_InputMessagesFilterPhoneCalls() + return t.Encode() + case TLConstructor_CRC32_inputMessagesFilterRoundVoice: + t := m.To_InputMessagesFilterRoundVoice() + return t.Encode() + case TLConstructor_CRC32_inputMessagesFilterRoundVideo: + t := m.To_InputMessagesFilterRoundVideo() + return t.Encode() + case TLConstructor_CRC32_inputMessagesFilterMyMentions: + t := m.To_InputMessagesFilterMyMentions() + return t.Encode() + case TLConstructor_CRC32_inputMessagesFilterGeo: + t := m.To_InputMessagesFilterGeo() + return t.Encode() + case TLConstructor_CRC32_inputMessagesFilterContacts: + t := m.To_InputMessagesFilterContacts() return t.Encode() default: @@ -9735,87 +10111,129 @@ func (m *RichText) Encode() []byte { } } -func (m *RichText) EncodeToLayer(layer int) []byte { +func (m *MessagesFilter) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_textEmpty: - t := m.To_TextEmpty() + case TLConstructor_CRC32_inputMessagesFilterEmpty: + t := m.To_InputMessagesFilterEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_textPlain: - t := m.To_TextPlain() + case TLConstructor_CRC32_inputMessagesFilterPhotos: + t := m.To_InputMessagesFilterPhotos() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_textBold: - t := m.To_TextBold() + case TLConstructor_CRC32_inputMessagesFilterVideo: + t := m.To_InputMessagesFilterVideo() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_textItalic: - t := m.To_TextItalic() + case TLConstructor_CRC32_inputMessagesFilterPhotoVideo: + t := m.To_InputMessagesFilterPhotoVideo() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_textUnderline: - t := m.To_TextUnderline() + case TLConstructor_CRC32_inputMessagesFilterDocument: + t := m.To_InputMessagesFilterDocument() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_textStrike: - t := m.To_TextStrike() + case TLConstructor_CRC32_inputMessagesFilterUrl: + t := m.To_InputMessagesFilterUrl() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_textFixed: - t := m.To_TextFixed() + case TLConstructor_CRC32_inputMessagesFilterGif: + t := m.To_InputMessagesFilterGif() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_textUrl: - t := m.To_TextUrl() + case TLConstructor_CRC32_inputMessagesFilterVoice: + t := m.To_InputMessagesFilterVoice() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_textEmail: - t := m.To_TextEmail() + case TLConstructor_CRC32_inputMessagesFilterMusic: + t := m.To_InputMessagesFilterMusic() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_textConcat: - t := m.To_TextConcat() + case TLConstructor_CRC32_inputMessagesFilterChatPhotos: + t := m.To_InputMessagesFilterChatPhotos() return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *RichText) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_textEmpty: - m2 := &TLTextEmpty{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterPhoneCalls: + t := m.To_InputMessagesFilterPhoneCalls() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMessagesFilterRoundVoice: + t := m.To_InputMessagesFilterRoundVoice() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMessagesFilterRoundVideo: + t := m.To_InputMessagesFilterRoundVideo() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMessagesFilterMyMentions: + t := m.To_InputMessagesFilterMyMentions() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMessagesFilterGeo: + t := m.To_InputMessagesFilterGeo() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMessagesFilterContacts: + t := m.To_InputMessagesFilterContacts() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *MessagesFilter) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputMessagesFilterEmpty: + m2 := &TLInputMessagesFilterEmpty{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_textPlain: - m2 := &TLTextPlain{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterPhotos: + m2 := &TLInputMessagesFilterPhotos{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_textBold: - m2 := &TLTextBold{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterVideo: + m2 := &TLInputMessagesFilterVideo{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_textItalic: - m2 := &TLTextItalic{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterPhotoVideo: + m2 := &TLInputMessagesFilterPhotoVideo{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_textUnderline: - m2 := &TLTextUnderline{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterDocument: + m2 := &TLInputMessagesFilterDocument{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_textStrike: - m2 := &TLTextStrike{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterUrl: + m2 := &TLInputMessagesFilterUrl{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_textFixed: - m2 := &TLTextFixed{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterGif: + m2 := &TLInputMessagesFilterGif{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_textUrl: - m2 := &TLTextUrl{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterVoice: + m2 := &TLInputMessagesFilterVoice{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_textEmail: - m2 := &TLTextEmail{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterMusic: + m2 := &TLInputMessagesFilterMusic{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_textConcat: - m2 := &TLTextConcat{Data2: &RichText_Data{}} + case TLConstructor_CRC32_inputMessagesFilterChatPhotos: + m2 := &TLInputMessagesFilterChatPhotos{Data2: &MessagesFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMessagesFilterPhoneCalls: + m2 := &TLInputMessagesFilterPhoneCalls{Data2: &MessagesFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMessagesFilterRoundVoice: + m2 := &TLInputMessagesFilterRoundVoice{Data2: &MessagesFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMessagesFilterRoundVideo: + m2 := &TLInputMessagesFilterRoundVideo{Data2: &MessagesFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMessagesFilterMyMentions: + m2 := &TLInputMessagesFilterMyMentions{Data2: &MessagesFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMessagesFilterGeo: + m2 := &TLInputMessagesFilterGeo{Data2: &MessagesFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMessagesFilterContacts: + m2 := &TLInputMessagesFilterContacts{Data2: &MessagesFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -9825,797 +10243,657 @@ func (m *RichText) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textEmpty#dc3d824f = RichText; -func (m *RichText) To_TextEmpty() *TLTextEmpty { - return &TLTextEmpty{ +// inputMessagesFilterEmpty#57e2f66c = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterEmpty() *TLInputMessagesFilterEmpty { + return &TLInputMessagesFilterEmpty{ Data2: m.Data2, } } -// textPlain#744694e0 text:string = RichText; -func (m *RichText) To_TextPlain() *TLTextPlain { - return &TLTextPlain{ +// inputMessagesFilterPhotos#9609a51c = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterPhotos() *TLInputMessagesFilterPhotos { + return &TLInputMessagesFilterPhotos{ Data2: m.Data2, } } -// textBold#6724abc4 text:RichText = RichText; -func (m *RichText) To_TextBold() *TLTextBold { - return &TLTextBold{ +// inputMessagesFilterVideo#9fc00e65 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterVideo() *TLInputMessagesFilterVideo { + return &TLInputMessagesFilterVideo{ Data2: m.Data2, } } -// textItalic#d912a59c text:RichText = RichText; -func (m *RichText) To_TextItalic() *TLTextItalic { - return &TLTextItalic{ +// inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterPhotoVideo() *TLInputMessagesFilterPhotoVideo { + return &TLInputMessagesFilterPhotoVideo{ Data2: m.Data2, } } -// textUnderline#c12622c4 text:RichText = RichText; -func (m *RichText) To_TextUnderline() *TLTextUnderline { - return &TLTextUnderline{ +// inputMessagesFilterDocument#9eddf188 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterDocument() *TLInputMessagesFilterDocument { + return &TLInputMessagesFilterDocument{ Data2: m.Data2, } } -// textStrike#9bf8bb95 text:RichText = RichText; -func (m *RichText) To_TextStrike() *TLTextStrike { - return &TLTextStrike{ +// inputMessagesFilterUrl#7ef0dd87 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterUrl() *TLInputMessagesFilterUrl { + return &TLInputMessagesFilterUrl{ Data2: m.Data2, } } -// textFixed#6c3f19b9 text:RichText = RichText; -func (m *RichText) To_TextFixed() *TLTextFixed { - return &TLTextFixed{ +// inputMessagesFilterGif#ffc86587 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterGif() *TLInputMessagesFilterGif { + return &TLInputMessagesFilterGif{ Data2: m.Data2, } } -// textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText; -func (m *RichText) To_TextUrl() *TLTextUrl { - return &TLTextUrl{ +// inputMessagesFilterVoice#50f5c392 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterVoice() *TLInputMessagesFilterVoice { + return &TLInputMessagesFilterVoice{ Data2: m.Data2, } } -// textEmail#de5a0dd6 text:RichText email:string = RichText; -func (m *RichText) To_TextEmail() *TLTextEmail { - return &TLTextEmail{ +// inputMessagesFilterMusic#3751b49e = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterMusic() *TLInputMessagesFilterMusic { + return &TLInputMessagesFilterMusic{ Data2: m.Data2, } } -// textConcat#7e6260d7 texts:Vector = RichText; -func (m *RichText) To_TextConcat() *TLTextConcat { - return &TLTextConcat{ +// inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterChatPhotos() *TLInputMessagesFilterChatPhotos { + return &TLInputMessagesFilterChatPhotos{ Data2: m.Data2, } } -// textEmpty#dc3d824f = RichText; -func (m *TLTextEmpty) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textEmpty, +// inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterPhoneCalls() *TLInputMessagesFilterPhoneCalls { + return &TLInputMessagesFilterPhoneCalls{ + Data2: m.Data2, + } +} + +// inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterRoundVoice() *TLInputMessagesFilterRoundVoice { + return &TLInputMessagesFilterRoundVoice{ + Data2: m.Data2, + } +} + +// inputMessagesFilterRoundVideo#b549da53 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterRoundVideo() *TLInputMessagesFilterRoundVideo { + return &TLInputMessagesFilterRoundVideo{ + Data2: m.Data2, + } +} + +// inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterMyMentions() *TLInputMessagesFilterMyMentions { + return &TLInputMessagesFilterMyMentions{ + Data2: m.Data2, + } +} + +// inputMessagesFilterGeo#e7026d0d = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterGeo() *TLInputMessagesFilterGeo { + return &TLInputMessagesFilterGeo{ + Data2: m.Data2, + } +} + +// inputMessagesFilterContacts#e062db83 = MessagesFilter; +func (m *MessagesFilter) To_InputMessagesFilterContacts() *TLInputMessagesFilterContacts { + return &TLInputMessagesFilterContacts{ + Data2: m.Data2, + } +} + +// inputMessagesFilterEmpty#57e2f66c = MessagesFilter; +func (m *TLInputMessagesFilterEmpty) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterEmpty, Data2: m.Data2, } } -func NewTLTextEmpty() *TLTextEmpty { - return &TLTextEmpty{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterEmpty() *TLInputMessagesFilterEmpty { + return &TLInputMessagesFilterEmpty{Data2: &MessagesFilter_Data{}} } -func (m *TLTextEmpty) Encode() []byte { +func (m *TLInputMessagesFilterEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textEmpty)) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterEmpty)) return x.buf } -func (m *TLTextEmpty) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textEmpty)) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterEmpty)) return x.buf } -func (m *TLTextEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLInputMessagesFilterEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textPlain#744694e0 text:string = RichText; -func (m *TLTextPlain) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textPlain, +// inputMessagesFilterPhotos#9609a51c = MessagesFilter; +func (m *TLInputMessagesFilterPhotos) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterPhotos, Data2: m.Data2, } } -func (m *TLTextPlain) SetText(v string) { m.Data2.Text_1 = v } -func (m *TLTextPlain) GetText() string { return m.Data2.Text_1 } - -func NewTLTextPlain() *TLTextPlain { - return &TLTextPlain{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterPhotos() *TLInputMessagesFilterPhotos { + return &TLInputMessagesFilterPhotos{Data2: &MessagesFilter_Data{}} } -func (m *TLTextPlain) Encode() []byte { +func (m *TLInputMessagesFilterPhotos) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textPlain)) - - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhotos)) return x.buf } -func (m *TLTextPlain) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterPhotos) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textPlain)) - - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhotos)) return x.buf } -func (m *TLTextPlain) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) +func (m *TLInputMessagesFilterPhotos) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textBold#6724abc4 text:RichText = RichText; -func (m *TLTextBold) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textBold, +// inputMessagesFilterVideo#9fc00e65 = MessagesFilter; +func (m *TLInputMessagesFilterVideo) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterVideo, Data2: m.Data2, } } -func (m *TLTextBold) SetText(v *RichText) { m.Data2.Text_2 = v } -func (m *TLTextBold) GetText() *RichText { return m.Data2.Text_2 } - -func NewTLTextBold() *TLTextBold { - return &TLTextBold{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterVideo() *TLInputMessagesFilterVideo { + return &TLInputMessagesFilterVideo{Data2: &MessagesFilter_Data{}} } -func (m *TLTextBold) Encode() []byte { +func (m *TLInputMessagesFilterVideo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textBold)) - - x.Bytes(m.GetText().Encode()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterVideo)) return x.buf } -func (m *TLTextBold) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterVideo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textBold)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterVideo)) return x.buf } -func (m *TLTextBold) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) +func (m *TLInputMessagesFilterVideo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textItalic#d912a59c text:RichText = RichText; -func (m *TLTextItalic) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textItalic, +// inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter; +func (m *TLInputMessagesFilterPhotoVideo) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterPhotoVideo, Data2: m.Data2, } } -func (m *TLTextItalic) SetText(v *RichText) { m.Data2.Text_2 = v } -func (m *TLTextItalic) GetText() *RichText { return m.Data2.Text_2 } - -func NewTLTextItalic() *TLTextItalic { - return &TLTextItalic{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterPhotoVideo() *TLInputMessagesFilterPhotoVideo { + return &TLInputMessagesFilterPhotoVideo{Data2: &MessagesFilter_Data{}} } -func (m *TLTextItalic) Encode() []byte { +func (m *TLInputMessagesFilterPhotoVideo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textItalic)) - - x.Bytes(m.GetText().Encode()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhotoVideo)) return x.buf } -func (m *TLTextItalic) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterPhotoVideo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textItalic)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhotoVideo)) return x.buf } -func (m *TLTextItalic) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) +func (m *TLInputMessagesFilterPhotoVideo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textUnderline#c12622c4 text:RichText = RichText; -func (m *TLTextUnderline) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textUnderline, +// inputMessagesFilterDocument#9eddf188 = MessagesFilter; +func (m *TLInputMessagesFilterDocument) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterDocument, Data2: m.Data2, } } -func (m *TLTextUnderline) SetText(v *RichText) { m.Data2.Text_2 = v } -func (m *TLTextUnderline) GetText() *RichText { return m.Data2.Text_2 } - -func NewTLTextUnderline() *TLTextUnderline { - return &TLTextUnderline{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterDocument() *TLInputMessagesFilterDocument { + return &TLInputMessagesFilterDocument{Data2: &MessagesFilter_Data{}} } -func (m *TLTextUnderline) Encode() []byte { +func (m *TLInputMessagesFilterDocument) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textUnderline)) - - x.Bytes(m.GetText().Encode()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterDocument)) return x.buf } -func (m *TLTextUnderline) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterDocument) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textUnderline)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterDocument)) return x.buf } -func (m *TLTextUnderline) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) +func (m *TLInputMessagesFilterDocument) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textStrike#9bf8bb95 text:RichText = RichText; -func (m *TLTextStrike) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textStrike, +// inputMessagesFilterUrl#7ef0dd87 = MessagesFilter; +func (m *TLInputMessagesFilterUrl) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterUrl, Data2: m.Data2, } } -func (m *TLTextStrike) SetText(v *RichText) { m.Data2.Text_2 = v } -func (m *TLTextStrike) GetText() *RichText { return m.Data2.Text_2 } - -func NewTLTextStrike() *TLTextStrike { - return &TLTextStrike{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterUrl() *TLInputMessagesFilterUrl { + return &TLInputMessagesFilterUrl{Data2: &MessagesFilter_Data{}} } -func (m *TLTextStrike) Encode() []byte { +func (m *TLInputMessagesFilterUrl) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textStrike)) - - x.Bytes(m.GetText().Encode()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterUrl)) return x.buf } -func (m *TLTextStrike) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterUrl) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textStrike)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterUrl)) return x.buf } -func (m *TLTextStrike) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) +func (m *TLInputMessagesFilterUrl) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textFixed#6c3f19b9 text:RichText = RichText; -func (m *TLTextFixed) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textFixed, +// inputMessagesFilterGif#ffc86587 = MessagesFilter; +func (m *TLInputMessagesFilterGif) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterGif, Data2: m.Data2, } } -func (m *TLTextFixed) SetText(v *RichText) { m.Data2.Text_2 = v } -func (m *TLTextFixed) GetText() *RichText { return m.Data2.Text_2 } - -func NewTLTextFixed() *TLTextFixed { - return &TLTextFixed{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterGif() *TLInputMessagesFilterGif { + return &TLInputMessagesFilterGif{Data2: &MessagesFilter_Data{}} } -func (m *TLTextFixed) Encode() []byte { +func (m *TLInputMessagesFilterGif) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textFixed)) - - x.Bytes(m.GetText().Encode()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterGif)) return x.buf } -func (m *TLTextFixed) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterGif) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textFixed)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterGif)) return x.buf } -func (m *TLTextFixed) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) +func (m *TLInputMessagesFilterGif) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText; -func (m *TLTextUrl) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textUrl, +// inputMessagesFilterVoice#50f5c392 = MessagesFilter; +func (m *TLInputMessagesFilterVoice) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterVoice, Data2: m.Data2, } } -func (m *TLTextUrl) SetText(v *RichText) { m.Data2.Text_2 = v } -func (m *TLTextUrl) GetText() *RichText { return m.Data2.Text_2 } - -func (m *TLTextUrl) SetUrl(v string) { m.Data2.Url = v } -func (m *TLTextUrl) GetUrl() string { return m.Data2.Url } - -func (m *TLTextUrl) SetWebpageId(v int64) { m.Data2.WebpageId = v } -func (m *TLTextUrl) GetWebpageId() int64 { return m.Data2.WebpageId } - -func NewTLTextUrl() *TLTextUrl { - return &TLTextUrl{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterVoice() *TLInputMessagesFilterVoice { + return &TLInputMessagesFilterVoice{Data2: &MessagesFilter_Data{}} } -func (m *TLTextUrl) Encode() []byte { +func (m *TLInputMessagesFilterVoice) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textUrl)) - - x.Bytes(m.GetText().Encode()) - x.String(m.GetUrl()) - x.Long(m.GetWebpageId()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterVoice)) return x.buf } -func (m *TLTextUrl) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterVoice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textUrl)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) - x.String(m.GetUrl()) - x.Long(m.GetWebpageId()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterVoice)) return x.buf } -func (m *TLTextUrl) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) - m.SetUrl(dbuf.String()) - m.SetWebpageId(dbuf.Long()) +func (m *TLInputMessagesFilterVoice) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textEmail#de5a0dd6 text:RichText email:string = RichText; -func (m *TLTextEmail) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textEmail, +// inputMessagesFilterMusic#3751b49e = MessagesFilter; +func (m *TLInputMessagesFilterMusic) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterMusic, Data2: m.Data2, } } -func (m *TLTextEmail) SetText(v *RichText) { m.Data2.Text_2 = v } -func (m *TLTextEmail) GetText() *RichText { return m.Data2.Text_2 } - -func (m *TLTextEmail) SetEmail(v string) { m.Data2.Email = v } -func (m *TLTextEmail) GetEmail() string { return m.Data2.Email } - -func NewTLTextEmail() *TLTextEmail { - return &TLTextEmail{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterMusic() *TLInputMessagesFilterMusic { + return &TLInputMessagesFilterMusic{Data2: &MessagesFilter_Data{}} } -func (m *TLTextEmail) Encode() []byte { +func (m *TLInputMessagesFilterMusic) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textEmail)) - - x.Bytes(m.GetText().Encode()) - x.String(m.GetEmail()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterMusic)) return x.buf } -func (m *TLTextEmail) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterMusic) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textEmail)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) - x.String(m.GetEmail()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterMusic)) return x.buf } -func (m *TLTextEmail) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) - m.SetEmail(dbuf.String()) +func (m *TLInputMessagesFilterMusic) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// textConcat#7e6260d7 texts:Vector = RichText; -func (m *TLTextConcat) To_RichText() *RichText { - return &RichText{ - Constructor: TLConstructor_CRC32_textConcat, +// inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter; +func (m *TLInputMessagesFilterChatPhotos) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterChatPhotos, Data2: m.Data2, } } -func (m *TLTextConcat) SetTexts(v []*RichText) { m.Data2.Texts = v } -func (m *TLTextConcat) GetTexts() []*RichText { return m.Data2.Texts } - -func NewTLTextConcat() *TLTextConcat { - return &TLTextConcat{Data2: &RichText_Data{}} +func NewTLInputMessagesFilterChatPhotos() *TLInputMessagesFilterChatPhotos { + return &TLInputMessagesFilterChatPhotos{Data2: &MessagesFilter_Data{}} } -func (m *TLTextConcat) Encode() []byte { +func (m *TLInputMessagesFilterChatPhotos) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textConcat)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTexts()))) - for _, v := range m.GetTexts() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterChatPhotos)) return x.buf } -func (m *TLTextConcat) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterChatPhotos) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_textConcat)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTexts()))) - for _, v := range m.GetTexts() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterChatPhotos)) return x.buf } -func (m *TLTextConcat) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*RichText, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &RichText{} - v1[i].Decode(dbuf) - } - m.SetTexts(v1) +func (m *TLInputMessagesFilterChatPhotos) Decode(dbuf *DecodeBuf) error { return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// ContactStatus <-- -// + TL_ContactStatus -// +// inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter; +func (m *TLInputMessagesFilterPhoneCalls) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterPhoneCalls, + Data2: m.Data2, + } +} -func (m *ContactStatus) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_contactStatus: - t := m.To_ContactStatus() - return t.Encode() +func (m *TLInputMessagesFilterPhoneCalls) SetMissed(v bool) { m.Data2.Missed = v } +func (m *TLInputMessagesFilterPhoneCalls) GetMissed() bool { return m.Data2.Missed } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLInputMessagesFilterPhoneCalls() *TLInputMessagesFilterPhoneCalls { + return &TLInputMessagesFilterPhoneCalls{Data2: &MessagesFilter_Data{}} } -func (m *ContactStatus) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_contactStatus: - t := m.To_ContactStatus() - return t.EncodeToLayer(layer) +func (m *TLInputMessagesFilterPhoneCalls) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhoneCalls)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetMissed() == true { + flags |= 1 << 0 } + x.UInt(flags) + + return x.buf } -func (m *ContactStatus) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_contactStatus: - m2 := &TLContactStatus{Data2: &ContactStatus_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputMessagesFilterPhoneCalls) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhoneCalls)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + // flags + var flags uint32 = 0 + if m.GetMissed() == true { + flags |= 1 << 0 } - return dbuf.err + x.UInt(flags) + + return x.buf } -// contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus; -func (m *ContactStatus) To_ContactStatus() *TLContactStatus { - return &TLContactStatus{ - Data2: m.Data2, +func (m *TLInputMessagesFilterPhoneCalls) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetMissed(true) } + + return dbuf.err } -// contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus; -func (m *TLContactStatus) To_ContactStatus() *ContactStatus { - return &ContactStatus{ - Constructor: TLConstructor_CRC32_contactStatus, +// inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter; +func (m *TLInputMessagesFilterRoundVoice) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterRoundVoice, Data2: m.Data2, } } -func (m *TLContactStatus) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLContactStatus) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLContactStatus) SetStatus(v *UserStatus) { m.Data2.Status = v } -func (m *TLContactStatus) GetStatus() *UserStatus { return m.Data2.Status } - -func NewTLContactStatus() *TLContactStatus { - return &TLContactStatus{Data2: &ContactStatus_Data{}} +func NewTLInputMessagesFilterRoundVoice() *TLInputMessagesFilterRoundVoice { + return &TLInputMessagesFilterRoundVoice{Data2: &MessagesFilter_Data{}} } -func (m *TLContactStatus) Encode() []byte { +func (m *TLInputMessagesFilterRoundVoice) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactStatus)) - - x.Int(m.GetUserId()) - x.Bytes(m.GetStatus().Encode()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterRoundVoice)) return x.buf } -func (m *TLContactStatus) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterRoundVoice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactStatus)) - - x.Int(m.GetUserId()) - x.Bytes(m.GetStatus().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterRoundVoice)) return x.buf } -func (m *TLContactStatus) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m2 := &UserStatus{} - m2.Decode(dbuf) - m.SetStatus(m2) +func (m *TLInputMessagesFilterRoundVoice) Decode(dbuf *DecodeBuf) error { return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// InputSecureFile <-- -// + TL_InputSecureFileUploaded -// + TL_InputSecureFile -// +// inputMessagesFilterRoundVideo#b549da53 = MessagesFilter; +func (m *TLInputMessagesFilterRoundVideo) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterRoundVideo, + Data2: m.Data2, + } +} -func (m *InputSecureFile) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputSecureFileUploaded: - t := m.To_InputSecureFileUploaded() - return t.Encode() - case TLConstructor_CRC32_inputSecureFile: - t := m.To_InputSecureFile() - return t.Encode() +func NewTLInputMessagesFilterRoundVideo() *TLInputMessagesFilterRoundVideo { + return &TLInputMessagesFilterRoundVideo{Data2: &MessagesFilter_Data{}} +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLInputMessagesFilterRoundVideo) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterRoundVideo)) + + return x.buf } -func (m *InputSecureFile) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputSecureFileUploaded: - t := m.To_InputSecureFileUploaded() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputSecureFile: - t := m.To_InputSecureFile() - return t.EncodeToLayer(layer) +func (m *TLInputMessagesFilterRoundVideo) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterRoundVideo)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *InputSecureFile) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputSecureFileUploaded: - m2 := &TLInputSecureFileUploaded{Data2: &InputSecureFile_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputSecureFile: - m2 := &TLInputSecureFile{Data2: &InputSecureFile_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputMessagesFilterRoundVideo) Decode(dbuf *DecodeBuf) error { - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile; -func (m *InputSecureFile) To_InputSecureFileUploaded() *TLInputSecureFileUploaded { - return &TLInputSecureFileUploaded{ - Data2: m.Data2, +// inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter; +func (m *TLInputMessagesFilterMyMentions) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterMyMentions, + Data2: m.Data2, } } -// inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile; -func (m *InputSecureFile) To_InputSecureFile() *TLInputSecureFile { - return &TLInputSecureFile{ - Data2: m.Data2, - } +func NewTLInputMessagesFilterMyMentions() *TLInputMessagesFilterMyMentions { + return &TLInputMessagesFilterMyMentions{Data2: &MessagesFilter_Data{}} } -// inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile; -func (m *TLInputSecureFileUploaded) To_InputSecureFile() *InputSecureFile { - return &InputSecureFile{ - Constructor: TLConstructor_CRC32_inputSecureFileUploaded, - Data2: m.Data2, - } +func (m *TLInputMessagesFilterMyMentions) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterMyMentions)) + + return x.buf } -func (m *TLInputSecureFileUploaded) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputSecureFileUploaded) GetId() int64 { return m.Data2.Id } +func (m *TLInputMessagesFilterMyMentions) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterMyMentions)) -func (m *TLInputSecureFileUploaded) SetParts(v int32) { m.Data2.Parts = v } -func (m *TLInputSecureFileUploaded) GetParts() int32 { return m.Data2.Parts } + return x.buf +} -func (m *TLInputSecureFileUploaded) SetMd5Checksum(v string) { m.Data2.Md5Checksum = v } -func (m *TLInputSecureFileUploaded) GetMd5Checksum() string { return m.Data2.Md5Checksum } +func (m *TLInputMessagesFilterMyMentions) Decode(dbuf *DecodeBuf) error { -func (m *TLInputSecureFileUploaded) SetFileHash(v []byte) { m.Data2.FileHash = v } -func (m *TLInputSecureFileUploaded) GetFileHash() []byte { return m.Data2.FileHash } + return dbuf.err +} -func (m *TLInputSecureFileUploaded) SetSecret(v []byte) { m.Data2.Secret = v } -func (m *TLInputSecureFileUploaded) GetSecret() []byte { return m.Data2.Secret } +// inputMessagesFilterGeo#e7026d0d = MessagesFilter; +func (m *TLInputMessagesFilterGeo) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterGeo, + Data2: m.Data2, + } +} -func NewTLInputSecureFileUploaded() *TLInputSecureFileUploaded { - return &TLInputSecureFileUploaded{Data2: &InputSecureFile_Data{}} +func NewTLInputMessagesFilterGeo() *TLInputMessagesFilterGeo { + return &TLInputMessagesFilterGeo{Data2: &MessagesFilter_Data{}} } -func (m *TLInputSecureFileUploaded) Encode() []byte { +func (m *TLInputMessagesFilterGeo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSecureFileUploaded)) - - x.Long(m.GetId()) - x.Int(m.GetParts()) - x.String(m.GetMd5Checksum()) - x.StringBytes(m.GetFileHash()) - x.StringBytes(m.GetSecret()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterGeo)) return x.buf } -func (m *TLInputSecureFileUploaded) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterGeo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSecureFileUploaded)) - - x.Long(m.GetId()) - x.Int(m.GetParts()) - x.String(m.GetMd5Checksum()) - x.StringBytes(m.GetFileHash()) - x.StringBytes(m.GetSecret()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterGeo)) return x.buf } -func (m *TLInputSecureFileUploaded) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetParts(dbuf.Int()) - m.SetMd5Checksum(dbuf.String()) - m.SetFileHash(dbuf.StringBytes()) - m.SetSecret(dbuf.StringBytes()) +func (m *TLInputMessagesFilterGeo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile; -func (m *TLInputSecureFile) To_InputSecureFile() *InputSecureFile { - return &InputSecureFile{ - Constructor: TLConstructor_CRC32_inputSecureFile, +// inputMessagesFilterContacts#e062db83 = MessagesFilter; +func (m *TLInputMessagesFilterContacts) To_MessagesFilter() *MessagesFilter { + return &MessagesFilter{ + Constructor: TLConstructor_CRC32_inputMessagesFilterContacts, Data2: m.Data2, } } -func (m *TLInputSecureFile) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputSecureFile) GetId() int64 { return m.Data2.Id } - -func (m *TLInputSecureFile) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputSecureFile) GetAccessHash() int64 { return m.Data2.AccessHash } - -func NewTLInputSecureFile() *TLInputSecureFile { - return &TLInputSecureFile{Data2: &InputSecureFile_Data{}} +func NewTLInputMessagesFilterContacts() *TLInputMessagesFilterContacts { + return &TLInputMessagesFilterContacts{Data2: &MessagesFilter_Data{}} } -func (m *TLInputSecureFile) Encode() []byte { +func (m *TLInputMessagesFilterContacts) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSecureFile)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterContacts)) return x.buf } -func (m *TLInputSecureFile) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagesFilterContacts) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSecureFile)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_inputMessagesFilterContacts)) return x.buf } -func (m *TLInputSecureFile) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) +func (m *TLInputMessagesFilterContacts) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Help_DeepLinkInfo <-- -// + TL_HelpDeepLinkInfoEmpty -// + TL_HelpDeepLinkInfo +// InputEncryptedFile <-- +// + TL_InputEncryptedFileEmpty +// + TL_InputEncryptedFileUploaded +// + TL_InputEncryptedFile +// + TL_InputEncryptedFileBigUploaded // -func (m *Help_DeepLinkInfo) Encode() []byte { +func (m *InputEncryptedFile) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_help_deepLinkInfoEmpty: - t := m.To_HelpDeepLinkInfoEmpty() + case TLConstructor_CRC32_inputEncryptedFileEmpty: + t := m.To_InputEncryptedFileEmpty() return t.Encode() - case TLConstructor_CRC32_help_deepLinkInfo: - t := m.To_HelpDeepLinkInfo() + case TLConstructor_CRC32_inputEncryptedFileUploaded: + t := m.To_InputEncryptedFileUploaded() + return t.Encode() + case TLConstructor_CRC32_inputEncryptedFile: + t := m.To_InputEncryptedFile() + return t.Encode() + case TLConstructor_CRC32_inputEncryptedFileBigUploaded: + t := m.To_InputEncryptedFileBigUploaded() return t.Encode() default: @@ -10624,14 +10902,20 @@ func (m *Help_DeepLinkInfo) Encode() []byte { } } -func (m *Help_DeepLinkInfo) EncodeToLayer(layer int) []byte { +func (m *InputEncryptedFile) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_help_deepLinkInfoEmpty: - t := m.To_HelpDeepLinkInfoEmpty() + case TLConstructor_CRC32_inputEncryptedFileEmpty: + t := m.To_InputEncryptedFileEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_help_deepLinkInfo: - t := m.To_HelpDeepLinkInfo() + case TLConstructor_CRC32_inputEncryptedFileUploaded: + t := m.To_InputEncryptedFileUploaded() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputEncryptedFile: + t := m.To_InputEncryptedFile() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputEncryptedFileBigUploaded: + t := m.To_InputEncryptedFileBigUploaded() return t.EncodeToLayer(layer) default: @@ -10640,15 +10924,23 @@ func (m *Help_DeepLinkInfo) EncodeToLayer(layer int) []byte { } } -func (m *Help_DeepLinkInfo) Decode(dbuf *DecodeBuf) error { +func (m *InputEncryptedFile) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_help_deepLinkInfoEmpty: - m2 := &TLHelpDeepLinkInfoEmpty{Data2: &Help_DeepLinkInfo_Data{}} + case TLConstructor_CRC32_inputEncryptedFileEmpty: + m2 := &TLInputEncryptedFileEmpty{Data2: &InputEncryptedFile_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_help_deepLinkInfo: - m2 := &TLHelpDeepLinkInfo{Data2: &Help_DeepLinkInfo_Data{}} + case TLConstructor_CRC32_inputEncryptedFileUploaded: + m2 := &TLInputEncryptedFileUploaded{Data2: &InputEncryptedFile_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputEncryptedFile: + m2 := &TLInputEncryptedFile{Data2: &InputEncryptedFile_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputEncryptedFileBigUploaded: + m2 := &TLInputEncryptedFileBigUploaded{Data2: &InputEncryptedFile_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -10658,179 +10950,227 @@ func (m *Help_DeepLinkInfo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo; -func (m *Help_DeepLinkInfo) To_HelpDeepLinkInfoEmpty() *TLHelpDeepLinkInfoEmpty { - return &TLHelpDeepLinkInfoEmpty{ +// inputEncryptedFileEmpty#1837c364 = InputEncryptedFile; +func (m *InputEncryptedFile) To_InputEncryptedFileEmpty() *TLInputEncryptedFileEmpty { + return &TLInputEncryptedFileEmpty{ Data2: m.Data2, } } -// help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo; -func (m *Help_DeepLinkInfo) To_HelpDeepLinkInfo() *TLHelpDeepLinkInfo { - return &TLHelpDeepLinkInfo{ +// inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile; +func (m *InputEncryptedFile) To_InputEncryptedFileUploaded() *TLInputEncryptedFileUploaded { + return &TLInputEncryptedFileUploaded{ Data2: m.Data2, } } -// help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo; -func (m *TLHelpDeepLinkInfoEmpty) To_Help_DeepLinkInfo() *Help_DeepLinkInfo { - return &Help_DeepLinkInfo{ - Constructor: TLConstructor_CRC32_help_deepLinkInfoEmpty, +// inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile; +func (m *InputEncryptedFile) To_InputEncryptedFile() *TLInputEncryptedFile { + return &TLInputEncryptedFile{ + Data2: m.Data2, + } +} + +// inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile; +func (m *InputEncryptedFile) To_InputEncryptedFileBigUploaded() *TLInputEncryptedFileBigUploaded { + return &TLInputEncryptedFileBigUploaded{ + Data2: m.Data2, + } +} + +// inputEncryptedFileEmpty#1837c364 = InputEncryptedFile; +func (m *TLInputEncryptedFileEmpty) To_InputEncryptedFile() *InputEncryptedFile { + return &InputEncryptedFile{ + Constructor: TLConstructor_CRC32_inputEncryptedFileEmpty, Data2: m.Data2, } } -func NewTLHelpDeepLinkInfoEmpty() *TLHelpDeepLinkInfoEmpty { - return &TLHelpDeepLinkInfoEmpty{Data2: &Help_DeepLinkInfo_Data{}} +func NewTLInputEncryptedFileEmpty() *TLInputEncryptedFileEmpty { + return &TLInputEncryptedFileEmpty{Data2: &InputEncryptedFile_Data{}} } -func (m *TLHelpDeepLinkInfoEmpty) Encode() []byte { +func (m *TLInputEncryptedFileEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_deepLinkInfoEmpty)) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFileEmpty)) return x.buf } -func (m *TLHelpDeepLinkInfoEmpty) EncodeToLayer(layer int) []byte { +func (m *TLInputEncryptedFileEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_deepLinkInfoEmpty)) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFileEmpty)) return x.buf } -func (m *TLHelpDeepLinkInfoEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLInputEncryptedFileEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo; -func (m *TLHelpDeepLinkInfo) To_Help_DeepLinkInfo() *Help_DeepLinkInfo { - return &Help_DeepLinkInfo{ - Constructor: TLConstructor_CRC32_help_deepLinkInfo, +// inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile; +func (m *TLInputEncryptedFileUploaded) To_InputEncryptedFile() *InputEncryptedFile { + return &InputEncryptedFile{ + Constructor: TLConstructor_CRC32_inputEncryptedFileUploaded, Data2: m.Data2, } } -func (m *TLHelpDeepLinkInfo) SetUpdateApp(v bool) { m.Data2.UpdateApp = v } -func (m *TLHelpDeepLinkInfo) GetUpdateApp() bool { return m.Data2.UpdateApp } +func (m *TLInputEncryptedFileUploaded) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputEncryptedFileUploaded) GetId() int64 { return m.Data2.Id } -func (m *TLHelpDeepLinkInfo) SetMessage(v string) { m.Data2.Message = v } -func (m *TLHelpDeepLinkInfo) GetMessage() string { return m.Data2.Message } +func (m *TLInputEncryptedFileUploaded) SetParts(v int32) { m.Data2.Parts = v } +func (m *TLInputEncryptedFileUploaded) GetParts() int32 { return m.Data2.Parts } -func (m *TLHelpDeepLinkInfo) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLHelpDeepLinkInfo) GetEntities() []*MessageEntity { return m.Data2.Entities } +func (m *TLInputEncryptedFileUploaded) SetMd5Checksum(v string) { m.Data2.Md5Checksum = v } +func (m *TLInputEncryptedFileUploaded) GetMd5Checksum() string { return m.Data2.Md5Checksum } -func NewTLHelpDeepLinkInfo() *TLHelpDeepLinkInfo { - return &TLHelpDeepLinkInfo{Data2: &Help_DeepLinkInfo_Data{}} +func (m *TLInputEncryptedFileUploaded) SetKeyFingerprint(v int32) { m.Data2.KeyFingerprint = v } +func (m *TLInputEncryptedFileUploaded) GetKeyFingerprint() int32 { return m.Data2.KeyFingerprint } + +func NewTLInputEncryptedFileUploaded() *TLInputEncryptedFileUploaded { + return &TLInputEncryptedFileUploaded{Data2: &InputEncryptedFile_Data{}} } -func (m *TLHelpDeepLinkInfo) Encode() []byte { +func (m *TLInputEncryptedFileUploaded) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_deepLinkInfo)) - - // flags - var flags uint32 = 0 - if m.GetUpdateApp() == true { - flags |= 1 << 0 - } - if m.GetEntities() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFileUploaded)) - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } - } + x.Long(m.GetId()) + x.Int(m.GetParts()) + x.String(m.GetMd5Checksum()) + x.Int(m.GetKeyFingerprint()) return x.buf } -func (m *TLHelpDeepLinkInfo) EncodeToLayer(layer int) []byte { +func (m *TLInputEncryptedFileUploaded) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_deepLinkInfo)) - - // flags - var flags uint32 = 0 - if m.GetUpdateApp() == true { - flags |= 1 << 0 - } - if m.GetEntities() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFileUploaded)) - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } + x.Long(m.GetId()) + x.Int(m.GetParts()) + x.String(m.GetMd5Checksum()) + x.Int(m.GetKeyFingerprint()) return x.buf } -func (m *TLHelpDeepLinkInfo) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetUpdateApp(true) - } - m.SetMessage(dbuf.String()) - if (flags & (1 << 1)) != 0 { - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*MessageEntity, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &MessageEntity{} - v4[i].Decode(dbuf) - } - m.SetEntities(v4) +func (m *TLInputEncryptedFileUploaded) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetParts(dbuf.Int()) + m.SetMd5Checksum(dbuf.String()) + m.SetKeyFingerprint(dbuf.Int()) + + return dbuf.err +} + +// inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile; +func (m *TLInputEncryptedFile) To_InputEncryptedFile() *InputEncryptedFile { + return &InputEncryptedFile{ + Constructor: TLConstructor_CRC32_inputEncryptedFile, + Data2: m.Data2, + } +} + +func (m *TLInputEncryptedFile) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputEncryptedFile) GetId() int64 { return m.Data2.Id } + +func (m *TLInputEncryptedFile) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputEncryptedFile) GetAccessHash() int64 { return m.Data2.AccessHash } + +func NewTLInputEncryptedFile() *TLInputEncryptedFile { + return &TLInputEncryptedFile{Data2: &InputEncryptedFile_Data{}} +} + +func (m *TLInputEncryptedFile) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFile)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputEncryptedFile) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFile)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputEncryptedFile) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + + return dbuf.err +} +// inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile; +func (m *TLInputEncryptedFileBigUploaded) To_InputEncryptedFile() *InputEncryptedFile { + return &InputEncryptedFile{ + Constructor: TLConstructor_CRC32_inputEncryptedFileBigUploaded, + Data2: m.Data2, } +} + +func (m *TLInputEncryptedFileBigUploaded) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputEncryptedFileBigUploaded) GetId() int64 { return m.Data2.Id } + +func (m *TLInputEncryptedFileBigUploaded) SetParts(v int32) { m.Data2.Parts = v } +func (m *TLInputEncryptedFileBigUploaded) GetParts() int32 { return m.Data2.Parts } + +func (m *TLInputEncryptedFileBigUploaded) SetKeyFingerprint(v int32) { m.Data2.KeyFingerprint = v } +func (m *TLInputEncryptedFileBigUploaded) GetKeyFingerprint() int32 { return m.Data2.KeyFingerprint } + +func NewTLInputEncryptedFileBigUploaded() *TLInputEncryptedFileBigUploaded { + return &TLInputEncryptedFileBigUploaded{Data2: &InputEncryptedFile_Data{}} +} + +func (m *TLInputEncryptedFileBigUploaded) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFileBigUploaded)) + + x.Long(m.GetId()) + x.Int(m.GetParts()) + x.Int(m.GetKeyFingerprint()) + + return x.buf +} + +func (m *TLInputEncryptedFileBigUploaded) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFileBigUploaded)) + + x.Long(m.GetId()) + x.Int(m.GetParts()) + x.Int(m.GetKeyFingerprint()) + + return x.buf +} + +func (m *TLInputEncryptedFileBigUploaded) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetParts(dbuf.Int()) + m.SetKeyFingerprint(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PhoneCall <-- -// + TL_PhoneCallEmpty -// + TL_PhoneCallWaiting -// + TL_PhoneCallRequested -// + TL_PhoneCallAccepted -// + TL_PhoneCall -// + TL_PhoneCallDiscarded +// KeyboardButtonRow <-- +// + TL_KeyboardButtonRow // -func (m *PhoneCall) Encode() []byte { +func (m *KeyboardButtonRow) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_phoneCallEmpty: - t := m.To_PhoneCallEmpty() - return t.Encode() - case TLConstructor_CRC32_phoneCallWaiting: - t := m.To_PhoneCallWaiting() - return t.Encode() - case TLConstructor_CRC32_phoneCallRequested: - t := m.To_PhoneCallRequested() - return t.Encode() - case TLConstructor_CRC32_phoneCallAccepted: - t := m.To_PhoneCallAccepted() - return t.Encode() - case TLConstructor_CRC32_phoneCall: - t := m.To_PhoneCall() - return t.Encode() - case TLConstructor_CRC32_phoneCallDiscarded: - t := m.To_PhoneCallDiscarded() + case TLConstructor_CRC32_keyboardButtonRow: + t := m.To_KeyboardButtonRow() return t.Encode() default: @@ -10839,26 +11179,11 @@ func (m *PhoneCall) Encode() []byte { } } -func (m *PhoneCall) EncodeToLayer(layer int) []byte { +func (m *KeyboardButtonRow) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_phoneCallEmpty: - t := m.To_PhoneCallEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_phoneCallWaiting: - t := m.To_PhoneCallWaiting() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_phoneCallRequested: - t := m.To_PhoneCallRequested() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_phoneCallAccepted: - t := m.To_PhoneCallAccepted() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_phoneCall: - t := m.To_PhoneCall() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_phoneCallDiscarded: - t := m.To_PhoneCallDiscarded() + case TLConstructor_CRC32_keyboardButtonRow: + t := m.To_KeyboardButtonRow() return t.EncodeToLayer(layer) default: @@ -10867,31 +11192,11 @@ func (m *PhoneCall) EncodeToLayer(layer int) []byte { } } -func (m *PhoneCall) Decode(dbuf *DecodeBuf) error { +func (m *KeyboardButtonRow) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_phoneCallEmpty: - m2 := &TLPhoneCallEmpty{Data2: &PhoneCall_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_phoneCallWaiting: - m2 := &TLPhoneCallWaiting{Data2: &PhoneCall_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_phoneCallRequested: - m2 := &TLPhoneCallRequested{Data2: &PhoneCall_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_phoneCallAccepted: - m2 := &TLPhoneCallAccepted{Data2: &PhoneCall_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_phoneCall: - m2 := &TLPhoneCall{Data2: &PhoneCall_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_phoneCallDiscarded: - m2 := &TLPhoneCallDiscarded{Data2: &PhoneCall_Data{}} + case TLConstructor_CRC32_keyboardButtonRow: + m2 := &TLKeyboardButtonRow{Data2: &KeyboardButtonRow_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -10901,595 +11206,513 @@ func (m *PhoneCall) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// phoneCallEmpty#5366c915 id:long = PhoneCall; -func (m *PhoneCall) To_PhoneCallEmpty() *TLPhoneCallEmpty { - return &TLPhoneCallEmpty{ +// keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; +func (m *KeyboardButtonRow) To_KeyboardButtonRow() *TLKeyboardButtonRow { + return &TLKeyboardButtonRow{ Data2: m.Data2, } } -// phoneCallWaiting#1b8f4ad1 flags:# id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; -func (m *PhoneCall) To_PhoneCallWaiting() *TLPhoneCallWaiting { - return &TLPhoneCallWaiting{ - Data2: m.Data2, +// keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; +func (m *TLKeyboardButtonRow) To_KeyboardButtonRow() *KeyboardButtonRow { + return &KeyboardButtonRow{ + Constructor: TLConstructor_CRC32_keyboardButtonRow, + Data2: m.Data2, } } -// phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; -func (m *PhoneCall) To_PhoneCallRequested() *TLPhoneCallRequested { - return &TLPhoneCallRequested{ - Data2: m.Data2, +func (m *TLKeyboardButtonRow) SetButtons(v []*KeyboardButton) { m.Data2.Buttons = v } +func (m *TLKeyboardButtonRow) GetButtons() []*KeyboardButton { return m.Data2.Buttons } + +func NewTLKeyboardButtonRow() *TLKeyboardButtonRow { + return &TLKeyboardButtonRow{Data2: &KeyboardButtonRow_Data{}} +} + +func (m *TLKeyboardButtonRow) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonRow)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetButtons()))) + for _, v := range m.GetButtons() { + x.buf = append(x.buf, (*v).Encode()...) } + + return x.buf } -// phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; -func (m *PhoneCall) To_PhoneCallAccepted() *TLPhoneCallAccepted { - return &TLPhoneCallAccepted{ - Data2: m.Data2, +func (m *TLKeyboardButtonRow) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_keyboardButtonRow)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetButtons()))) + for _, v := range m.GetButtons() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } + + return x.buf } -// phoneCall#ffe6ab67 id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connection:PhoneConnection alternative_connections:Vector start_date:int = PhoneCall; -func (m *PhoneCall) To_PhoneCall() *TLPhoneCall { - return &TLPhoneCall{ - Data2: m.Data2, +func (m *TLKeyboardButtonRow) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*KeyboardButton, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &KeyboardButton{} + v1[i].Decode(dbuf) + } + m.SetButtons(v1) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// InputContact <-- +// + TL_InputPhoneContact +// + +func (m *InputContact) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputPhoneContact: + t := m.To_InputPhoneContact() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -// phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; -func (m *PhoneCall) To_PhoneCallDiscarded() *TLPhoneCallDiscarded { - return &TLPhoneCallDiscarded{ +func (m *InputContact) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputPhoneContact: + t := m.To_InputPhoneContact() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *InputContact) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputPhoneContact: + m2 := &TLInputPhoneContact{Data2: &InputContact_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact; +func (m *InputContact) To_InputPhoneContact() *TLInputPhoneContact { + return &TLInputPhoneContact{ Data2: m.Data2, } } -// phoneCallEmpty#5366c915 id:long = PhoneCall; -func (m *TLPhoneCallEmpty) To_PhoneCall() *PhoneCall { - return &PhoneCall{ - Constructor: TLConstructor_CRC32_phoneCallEmpty, +// inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact; +func (m *TLInputPhoneContact) To_InputContact() *InputContact { + return &InputContact{ + Constructor: TLConstructor_CRC32_inputPhoneContact, Data2: m.Data2, } } -func (m *TLPhoneCallEmpty) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhoneCallEmpty) GetId() int64 { return m.Data2.Id } +func (m *TLInputPhoneContact) SetClientId(v int64) { m.Data2.ClientId = v } +func (m *TLInputPhoneContact) GetClientId() int64 { return m.Data2.ClientId } -func NewTLPhoneCallEmpty() *TLPhoneCallEmpty { - return &TLPhoneCallEmpty{Data2: &PhoneCall_Data{}} +func (m *TLInputPhoneContact) SetPhone(v string) { m.Data2.Phone = v } +func (m *TLInputPhoneContact) GetPhone() string { return m.Data2.Phone } + +func (m *TLInputPhoneContact) SetFirstName(v string) { m.Data2.FirstName = v } +func (m *TLInputPhoneContact) GetFirstName() string { return m.Data2.FirstName } + +func (m *TLInputPhoneContact) SetLastName(v string) { m.Data2.LastName = v } +func (m *TLInputPhoneContact) GetLastName() string { return m.Data2.LastName } + +func NewTLInputPhoneContact() *TLInputPhoneContact { + return &TLInputPhoneContact{Data2: &InputContact_Data{}} } -func (m *TLPhoneCallEmpty) Encode() []byte { +func (m *TLInputPhoneContact) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallEmpty)) + x.Int(int32(TLConstructor_CRC32_inputPhoneContact)) - x.Long(m.GetId()) + x.Long(m.GetClientId()) + x.String(m.GetPhone()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) return x.buf } -func (m *TLPhoneCallEmpty) EncodeToLayer(layer int) []byte { +func (m *TLInputPhoneContact) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallEmpty)) + x.Int(int32(TLConstructor_CRC32_inputPhoneContact)) - x.Long(m.GetId()) + x.Long(m.GetClientId()) + x.String(m.GetPhone()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) return x.buf } -func (m *TLPhoneCallEmpty) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) +func (m *TLInputPhoneContact) Decode(dbuf *DecodeBuf) error { + m.SetClientId(dbuf.Long()) + m.SetPhone(dbuf.String()) + m.SetFirstName(dbuf.String()) + m.SetLastName(dbuf.String()) return dbuf.err } -// phoneCallWaiting#1b8f4ad1 flags:# id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; -func (m *TLPhoneCallWaiting) To_PhoneCall() *PhoneCall { - return &PhoneCall{ - Constructor: TLConstructor_CRC32_phoneCallWaiting, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// PeerSettings <-- +// + TL_PeerSettings +// + +func (m *PeerSettings) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_peerSettings: + t := m.To_PeerSettings() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLPhoneCallWaiting) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhoneCallWaiting) GetId() int64 { return m.Data2.Id } +func (m *PeerSettings) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_peerSettings: + t := m.To_PeerSettings() + return t.EncodeToLayer(layer) -func (m *TLPhoneCallWaiting) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLPhoneCallWaiting) GetAccessHash() int64 { return m.Data2.AccessHash } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLPhoneCallWaiting) SetDate(v int32) { m.Data2.Date = v } -func (m *TLPhoneCallWaiting) GetDate() int32 { return m.Data2.Date } +func (m *PeerSettings) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_peerSettings: + m2 := &TLPeerSettings{Data2: &PeerSettings_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func (m *TLPhoneCallWaiting) SetAdminId(v int32) { m.Data2.AdminId = v } -func (m *TLPhoneCallWaiting) GetAdminId() int32 { return m.Data2.AdminId } + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} -func (m *TLPhoneCallWaiting) SetParticipantId(v int32) { m.Data2.ParticipantId = v } -func (m *TLPhoneCallWaiting) GetParticipantId() int32 { return m.Data2.ParticipantId } +// peerSettings#818426cd flags:# report_spam:flags.0?true = PeerSettings; +func (m *PeerSettings) To_PeerSettings() *TLPeerSettings { + return &TLPeerSettings{ + Data2: m.Data2, + } +} -func (m *TLPhoneCallWaiting) SetProtocol(v *PhoneCallProtocol) { m.Data2.Protocol = v } -func (m *TLPhoneCallWaiting) GetProtocol() *PhoneCallProtocol { return m.Data2.Protocol } +// peerSettings#818426cd flags:# report_spam:flags.0?true = PeerSettings; +func (m *TLPeerSettings) To_PeerSettings() *PeerSettings { + return &PeerSettings{ + Constructor: TLConstructor_CRC32_peerSettings, + Data2: m.Data2, + } +} -func (m *TLPhoneCallWaiting) SetReceiveDate(v int32) { m.Data2.ReceiveDate = v } -func (m *TLPhoneCallWaiting) GetReceiveDate() int32 { return m.Data2.ReceiveDate } +func (m *TLPeerSettings) SetReportSpam(v bool) { m.Data2.ReportSpam = v } +func (m *TLPeerSettings) GetReportSpam() bool { return m.Data2.ReportSpam } -func NewTLPhoneCallWaiting() *TLPhoneCallWaiting { - return &TLPhoneCallWaiting{Data2: &PhoneCall_Data{}} +func NewTLPeerSettings() *TLPeerSettings { + return &TLPeerSettings{Data2: &PeerSettings_Data{}} } -func (m *TLPhoneCallWaiting) Encode() []byte { +func (m *TLPeerSettings) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallWaiting)) + x.Int(int32(TLConstructor_CRC32_peerSettings)) // flags var flags uint32 = 0 - if m.GetReceiveDate() != 0 { + if m.GetReportSpam() == true { flags |= 1 << 0 } x.UInt(flags) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.Bytes(m.GetProtocol().Encode()) - if m.GetReceiveDate() != 0 { - x.Int(m.GetReceiveDate()) - } - return x.buf } -func (m *TLPhoneCallWaiting) EncodeToLayer(layer int) []byte { +func (m *TLPeerSettings) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallWaiting)) + x.Int(int32(TLConstructor_CRC32_peerSettings)) // flags var flags uint32 = 0 - if m.GetReceiveDate() != 0 { + if m.GetReportSpam() == true { flags |= 1 << 0 } x.UInt(flags) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.Bytes(m.GetProtocol().EncodeToLayer(layer)) - if m.GetReceiveDate() != 0 { - x.Int(m.GetReceiveDate()) - } - return x.buf } -func (m *TLPhoneCallWaiting) Decode(dbuf *DecodeBuf) error { +func (m *TLPeerSettings) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetDate(dbuf.Int()) - m.SetAdminId(dbuf.Int()) - m.SetParticipantId(dbuf.Int()) - m7 := &PhoneCallProtocol{} - m7.Decode(dbuf) - m.SetProtocol(m7) if (flags & (1 << 0)) != 0 { - m.SetReceiveDate(dbuf.Int()) + m.SetReportSpam(true) } return dbuf.err } -// phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; -func (m *TLPhoneCallRequested) To_PhoneCall() *PhoneCall { - return &PhoneCall{ - Constructor: TLConstructor_CRC32_phoneCallRequested, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// Invoice <-- +// + TL_Invoice +// + +func (m *Invoice) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_invoice: + t := m.To_Invoice() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLPhoneCallRequested) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhoneCallRequested) GetId() int64 { return m.Data2.Id } - -func (m *TLPhoneCallRequested) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLPhoneCallRequested) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *Invoice) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_invoice: + t := m.To_Invoice() + return t.EncodeToLayer(layer) -func (m *TLPhoneCallRequested) SetDate(v int32) { m.Data2.Date = v } -func (m *TLPhoneCallRequested) GetDate() int32 { return m.Data2.Date } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLPhoneCallRequested) SetAdminId(v int32) { m.Data2.AdminId = v } -func (m *TLPhoneCallRequested) GetAdminId() int32 { return m.Data2.AdminId } - -func (m *TLPhoneCallRequested) SetParticipantId(v int32) { m.Data2.ParticipantId = v } -func (m *TLPhoneCallRequested) GetParticipantId() int32 { return m.Data2.ParticipantId } - -func (m *TLPhoneCallRequested) SetGAHash(v []byte) { m.Data2.GAHash = v } -func (m *TLPhoneCallRequested) GetGAHash() []byte { return m.Data2.GAHash } - -func (m *TLPhoneCallRequested) SetProtocol(v *PhoneCallProtocol) { m.Data2.Protocol = v } -func (m *TLPhoneCallRequested) GetProtocol() *PhoneCallProtocol { return m.Data2.Protocol } - -func NewTLPhoneCallRequested() *TLPhoneCallRequested { - return &TLPhoneCallRequested{Data2: &PhoneCall_Data{}} -} - -func (m *TLPhoneCallRequested) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallRequested)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGAHash()) - x.Bytes(m.GetProtocol().Encode()) - - return x.buf -} - -func (m *TLPhoneCallRequested) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallRequested)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGAHash()) - x.Bytes(m.GetProtocol().EncodeToLayer(layer)) - - return x.buf -} - -func (m *TLPhoneCallRequested) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetDate(dbuf.Int()) - m.SetAdminId(dbuf.Int()) - m.SetParticipantId(dbuf.Int()) - m.SetGAHash(dbuf.StringBytes()) - m7 := &PhoneCallProtocol{} - m7.Decode(dbuf) - m.SetProtocol(m7) - - return dbuf.err -} +func (m *Invoice) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_invoice: + m2 := &TLInvoice{Data2: &Invoice_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -// phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; -func (m *TLPhoneCallAccepted) To_PhoneCall() *PhoneCall { - return &PhoneCall{ - Constructor: TLConstructor_CRC32_phoneCallAccepted, - Data2: m.Data2, + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } -} - -func (m *TLPhoneCallAccepted) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhoneCallAccepted) GetId() int64 { return m.Data2.Id } - -func (m *TLPhoneCallAccepted) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLPhoneCallAccepted) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLPhoneCallAccepted) SetDate(v int32) { m.Data2.Date = v } -func (m *TLPhoneCallAccepted) GetDate() int32 { return m.Data2.Date } - -func (m *TLPhoneCallAccepted) SetAdminId(v int32) { m.Data2.AdminId = v } -func (m *TLPhoneCallAccepted) GetAdminId() int32 { return m.Data2.AdminId } - -func (m *TLPhoneCallAccepted) SetParticipantId(v int32) { m.Data2.ParticipantId = v } -func (m *TLPhoneCallAccepted) GetParticipantId() int32 { return m.Data2.ParticipantId } - -func (m *TLPhoneCallAccepted) SetGB(v []byte) { m.Data2.GB = v } -func (m *TLPhoneCallAccepted) GetGB() []byte { return m.Data2.GB } - -func (m *TLPhoneCallAccepted) SetProtocol(v *PhoneCallProtocol) { m.Data2.Protocol = v } -func (m *TLPhoneCallAccepted) GetProtocol() *PhoneCallProtocol { return m.Data2.Protocol } - -func NewTLPhoneCallAccepted() *TLPhoneCallAccepted { - return &TLPhoneCallAccepted{Data2: &PhoneCall_Data{}} -} - -func (m *TLPhoneCallAccepted) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallAccepted)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGB()) - x.Bytes(m.GetProtocol().Encode()) - - return x.buf -} - -func (m *TLPhoneCallAccepted) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallAccepted)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGB()) - x.Bytes(m.GetProtocol().EncodeToLayer(layer)) - - return x.buf -} - -func (m *TLPhoneCallAccepted) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetDate(dbuf.Int()) - m.SetAdminId(dbuf.Int()) - m.SetParticipantId(dbuf.Int()) - m.SetGB(dbuf.StringBytes()) - m7 := &PhoneCallProtocol{} - m7.Decode(dbuf) - m.SetProtocol(m7) - return dbuf.err } -// phoneCall#ffe6ab67 id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connection:PhoneConnection alternative_connections:Vector start_date:int = PhoneCall; -func (m *TLPhoneCall) To_PhoneCall() *PhoneCall { - return &PhoneCall{ - Constructor: TLConstructor_CRC32_phoneCall, - Data2: m.Data2, +// invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector = Invoice; +func (m *Invoice) To_Invoice() *TLInvoice { + return &TLInvoice{ + Data2: m.Data2, } } -func (m *TLPhoneCall) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhoneCall) GetId() int64 { return m.Data2.Id } - -func (m *TLPhoneCall) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLPhoneCall) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLPhoneCall) SetDate(v int32) { m.Data2.Date = v } -func (m *TLPhoneCall) GetDate() int32 { return m.Data2.Date } - -func (m *TLPhoneCall) SetAdminId(v int32) { m.Data2.AdminId = v } -func (m *TLPhoneCall) GetAdminId() int32 { return m.Data2.AdminId } - -func (m *TLPhoneCall) SetParticipantId(v int32) { m.Data2.ParticipantId = v } -func (m *TLPhoneCall) GetParticipantId() int32 { return m.Data2.ParticipantId } - -func (m *TLPhoneCall) SetGAOrB(v []byte) { m.Data2.GAOrB = v } -func (m *TLPhoneCall) GetGAOrB() []byte { return m.Data2.GAOrB } - -func (m *TLPhoneCall) SetKeyFingerprint(v int64) { m.Data2.KeyFingerprint = v } -func (m *TLPhoneCall) GetKeyFingerprint() int64 { return m.Data2.KeyFingerprint } - -func (m *TLPhoneCall) SetProtocol(v *PhoneCallProtocol) { m.Data2.Protocol = v } -func (m *TLPhoneCall) GetProtocol() *PhoneCallProtocol { return m.Data2.Protocol } - -func (m *TLPhoneCall) SetConnection(v *PhoneConnection) { m.Data2.Connection = v } -func (m *TLPhoneCall) GetConnection() *PhoneConnection { return m.Data2.Connection } - -func (m *TLPhoneCall) SetAlternativeConnections(v []*PhoneConnection) { - m.Data2.AlternativeConnections = v -} -func (m *TLPhoneCall) GetAlternativeConnections() []*PhoneConnection { - return m.Data2.AlternativeConnections -} - -func (m *TLPhoneCall) SetStartDate(v int32) { m.Data2.StartDate = v } -func (m *TLPhoneCall) GetStartDate() int32 { return m.Data2.StartDate } - -func NewTLPhoneCall() *TLPhoneCall { - return &TLPhoneCall{Data2: &PhoneCall_Data{}} -} - -func (m *TLPhoneCall) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCall)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGAOrB()) - x.Long(m.GetKeyFingerprint()) - x.Bytes(m.GetProtocol().Encode()) - x.Bytes(m.GetConnection().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAlternativeConnections()))) - for _, v := range m.GetAlternativeConnections() { - x.buf = append(x.buf, (*v).Encode()...) +// invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector = Invoice; +func (m *TLInvoice) To_Invoice() *Invoice { + return &Invoice{ + Constructor: TLConstructor_CRC32_invoice, + Data2: m.Data2, } - x.Int(m.GetStartDate()) - - return x.buf } -func (m *TLPhoneCall) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCall)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGAOrB()) - x.Long(m.GetKeyFingerprint()) - x.Bytes(m.GetProtocol().EncodeToLayer(layer)) - x.Bytes(m.GetConnection().EncodeToLayer(layer)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAlternativeConnections()))) - for _, v := range m.GetAlternativeConnections() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(m.GetStartDate()) - - return x.buf -} +func (m *TLInvoice) SetTest(v bool) { m.Data2.Test = v } +func (m *TLInvoice) GetTest() bool { return m.Data2.Test } -func (m *TLPhoneCall) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetDate(dbuf.Int()) - m.SetAdminId(dbuf.Int()) - m.SetParticipantId(dbuf.Int()) - m.SetGAOrB(dbuf.StringBytes()) - m.SetKeyFingerprint(dbuf.Long()) - m8 := &PhoneCallProtocol{} - m8.Decode(dbuf) - m.SetProtocol(m8) - m9 := &PhoneConnection{} - m9.Decode(dbuf) - m.SetConnection(m9) - c10 := dbuf.Int() - if c10 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 10, c10) - return dbuf.err - } - l10 := dbuf.Int() - v10 := make([]*PhoneConnection, l10) - for i := int32(0); i < l10; i++ { - v10[i] = &PhoneConnection{} - v10[i].Decode(dbuf) - } - m.SetAlternativeConnections(v10) +func (m *TLInvoice) SetNameRequested(v bool) { m.Data2.NameRequested = v } +func (m *TLInvoice) GetNameRequested() bool { return m.Data2.NameRequested } - m.SetStartDate(dbuf.Int()) +func (m *TLInvoice) SetPhoneRequested(v bool) { m.Data2.PhoneRequested = v } +func (m *TLInvoice) GetPhoneRequested() bool { return m.Data2.PhoneRequested } - return dbuf.err -} +func (m *TLInvoice) SetEmailRequested(v bool) { m.Data2.EmailRequested = v } +func (m *TLInvoice) GetEmailRequested() bool { return m.Data2.EmailRequested } -// phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; -func (m *TLPhoneCallDiscarded) To_PhoneCall() *PhoneCall { - return &PhoneCall{ - Constructor: TLConstructor_CRC32_phoneCallDiscarded, - Data2: m.Data2, - } -} +func (m *TLInvoice) SetShippingAddressRequested(v bool) { m.Data2.ShippingAddressRequested = v } +func (m *TLInvoice) GetShippingAddressRequested() bool { return m.Data2.ShippingAddressRequested } -func (m *TLPhoneCallDiscarded) SetNeedRating(v bool) { m.Data2.NeedRating = v } -func (m *TLPhoneCallDiscarded) GetNeedRating() bool { return m.Data2.NeedRating } +func (m *TLInvoice) SetFlexible(v bool) { m.Data2.Flexible = v } +func (m *TLInvoice) GetFlexible() bool { return m.Data2.Flexible } -func (m *TLPhoneCallDiscarded) SetNeedDebug(v bool) { m.Data2.NeedDebug = v } -func (m *TLPhoneCallDiscarded) GetNeedDebug() bool { return m.Data2.NeedDebug } +func (m *TLInvoice) SetPhoneToProvider(v bool) { m.Data2.PhoneToProvider = v } +func (m *TLInvoice) GetPhoneToProvider() bool { return m.Data2.PhoneToProvider } -func (m *TLPhoneCallDiscarded) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhoneCallDiscarded) GetId() int64 { return m.Data2.Id } +func (m *TLInvoice) SetEmailToProvider(v bool) { m.Data2.EmailToProvider = v } +func (m *TLInvoice) GetEmailToProvider() bool { return m.Data2.EmailToProvider } -func (m *TLPhoneCallDiscarded) SetReason(v *PhoneCallDiscardReason) { m.Data2.Reason = v } -func (m *TLPhoneCallDiscarded) GetReason() *PhoneCallDiscardReason { return m.Data2.Reason } +func (m *TLInvoice) SetCurrency(v string) { m.Data2.Currency = v } +func (m *TLInvoice) GetCurrency() string { return m.Data2.Currency } -func (m *TLPhoneCallDiscarded) SetDuration(v int32) { m.Data2.Duration = v } -func (m *TLPhoneCallDiscarded) GetDuration() int32 { return m.Data2.Duration } +func (m *TLInvoice) SetPrices(v []*LabeledPrice) { m.Data2.Prices = v } +func (m *TLInvoice) GetPrices() []*LabeledPrice { return m.Data2.Prices } -func NewTLPhoneCallDiscarded() *TLPhoneCallDiscarded { - return &TLPhoneCallDiscarded{Data2: &PhoneCall_Data{}} +func NewTLInvoice() *TLInvoice { + return &TLInvoice{Data2: &Invoice_Data{}} } -func (m *TLPhoneCallDiscarded) Encode() []byte { +func (m *TLInvoice) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscarded)) + x.Int(int32(TLConstructor_CRC32_invoice)) // flags var flags uint32 = 0 - if m.GetNeedRating() == true { + if m.GetTest() == true { + flags |= 1 << 0 + } + if m.GetNameRequested() == true { + flags |= 1 << 1 + } + if m.GetPhoneRequested() == true { flags |= 1 << 2 } - if m.GetNeedDebug() == true { + if m.GetEmailRequested() == true { flags |= 1 << 3 } - if m.GetReason() != nil { - flags |= 1 << 0 + if m.GetShippingAddressRequested() == true { + flags |= 1 << 4 } - if m.GetDuration() != 0 { - flags |= 1 << 1 + if m.GetFlexible() == true { + flags |= 1 << 5 + } + if m.GetPhoneToProvider() == true { + flags |= 1 << 6 + } + if m.GetEmailToProvider() == true { + flags |= 1 << 7 } x.UInt(flags) - x.Long(m.GetId()) - if m.GetReason() != nil { - x.Bytes(m.GetReason().Encode()) - } - if m.GetDuration() != 0 { - x.Int(m.GetDuration()) + x.String(m.GetCurrency()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPrices()))) + for _, v := range m.GetPrices() { + x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLPhoneCallDiscarded) EncodeToLayer(layer int) []byte { +func (m *TLInvoice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscarded)) + x.Int(int32(TLConstructor_CRC32_invoice)) // flags var flags uint32 = 0 - if m.GetNeedRating() == true { + if m.GetTest() == true { + flags |= 1 << 0 + } + if m.GetNameRequested() == true { + flags |= 1 << 1 + } + if m.GetPhoneRequested() == true { flags |= 1 << 2 } - if m.GetNeedDebug() == true { + if m.GetEmailRequested() == true { flags |= 1 << 3 } - if m.GetReason() != nil { - flags |= 1 << 0 + if m.GetShippingAddressRequested() == true { + flags |= 1 << 4 } - if m.GetDuration() != 0 { - flags |= 1 << 1 + if m.GetFlexible() == true { + flags |= 1 << 5 + } + if m.GetPhoneToProvider() == true { + flags |= 1 << 6 + } + if m.GetEmailToProvider() == true { + flags |= 1 << 7 } x.UInt(flags) - x.Long(m.GetId()) - if m.GetReason() != nil { - x.Bytes(m.GetReason().EncodeToLayer(layer)) - } - if m.GetDuration() != 0 { - x.Int(m.GetDuration()) + x.String(m.GetCurrency()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPrices()))) + for _, v := range m.GetPrices() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLPhoneCallDiscarded) Decode(dbuf *DecodeBuf) error { +func (m *TLInvoice) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags + if (flags & (1 << 0)) != 0 { + m.SetTest(true) + } + if (flags & (1 << 1)) != 0 { + m.SetNameRequested(true) + } if (flags & (1 << 2)) != 0 { - m.SetNeedRating(true) + m.SetPhoneRequested(true) } if (flags & (1 << 3)) != 0 { - m.SetNeedDebug(true) + m.SetEmailRequested(true) } - m.SetId(dbuf.Long()) - if (flags & (1 << 0)) != 0 { - m5 := &PhoneCallDiscardReason{} - m5.Decode(dbuf) - m.SetReason(m5) + if (flags & (1 << 4)) != 0 { + m.SetShippingAddressRequested(true) } - if (flags & (1 << 1)) != 0 { - m.SetDuration(dbuf.Int()) + if (flags & (1 << 5)) != 0 { + m.SetFlexible(true) + } + if (flags & (1 << 6)) != 0 { + m.SetPhoneToProvider(true) + } + if (flags & (1 << 7)) != 0 { + m.SetEmailToProvider(true) + } + m.SetCurrency(dbuf.String()) + c11 := dbuf.Int() + if c11 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 11, c11) + return dbuf.err + } + l11 := dbuf.Int() + v11 := make([]*LabeledPrice, l11) + for i := int32(0); i < l11; i++ { + v11[i] = &LabeledPrice{} + v11[i].Decode(dbuf) } + m.SetPrices(v11) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputUser <-- -// + TL_InputUserEmpty -// + TL_InputUserSelf -// + TL_InputUser +// PaymentRequestedInfo <-- +// + TL_PaymentRequestedInfo // -func (m *InputUser) Encode() []byte { +func (m *PaymentRequestedInfo) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputUserEmpty: - t := m.To_InputUserEmpty() - return t.Encode() - case TLConstructor_CRC32_inputUserSelf: - t := m.To_InputUserSelf() - return t.Encode() - case TLConstructor_CRC32_inputUser: - t := m.To_InputUser() + case TLConstructor_CRC32_paymentRequestedInfo: + t := m.To_PaymentRequestedInfo() return t.Encode() default: @@ -11498,17 +11721,11 @@ func (m *InputUser) Encode() []byte { } } -func (m *InputUser) EncodeToLayer(layer int) []byte { +func (m *PaymentRequestedInfo) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputUserEmpty: - t := m.To_InputUserEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputUserSelf: - t := m.To_InputUserSelf() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputUser: - t := m.To_InputUser() + case TLConstructor_CRC32_paymentRequestedInfo: + t := m.To_PaymentRequestedInfo() return t.EncodeToLayer(layer) default: @@ -11517,19 +11734,11 @@ func (m *InputUser) EncodeToLayer(layer int) []byte { } } -func (m *InputUser) Decode(dbuf *DecodeBuf) error { +func (m *PaymentRequestedInfo) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputUserEmpty: - m2 := &TLInputUserEmpty{Data2: &InputUser_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputUserSelf: - m2 := &TLInputUserSelf{Data2: &InputUser_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputUser: - m2 := &TLInputUser{Data2: &InputUser_Data{}} + case TLConstructor_CRC32_paymentRequestedInfo: + m2 := &TLPaymentRequestedInfo{Data2: &PaymentRequestedInfo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -11539,143 +11748,235 @@ func (m *InputUser) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputUserEmpty#b98886cf = InputUser; -func (m *InputUser) To_InputUserEmpty() *TLInputUserEmpty { - return &TLInputUserEmpty{ - Data2: m.Data2, - } -} - -// inputUserSelf#f7c1b13f = InputUser; -func (m *InputUser) To_InputUserSelf() *TLInputUserSelf { - return &TLInputUserSelf{ - Data2: m.Data2, - } -} - -// inputUser#d8292816 user_id:int access_hash:long = InputUser; -func (m *InputUser) To_InputUser() *TLInputUser { - return &TLInputUser{ +// paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo; +func (m *PaymentRequestedInfo) To_PaymentRequestedInfo() *TLPaymentRequestedInfo { + return &TLPaymentRequestedInfo{ Data2: m.Data2, } } -// inputUserEmpty#b98886cf = InputUser; -func (m *TLInputUserEmpty) To_InputUser() *InputUser { - return &InputUser{ - Constructor: TLConstructor_CRC32_inputUserEmpty, +// paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo; +func (m *TLPaymentRequestedInfo) To_PaymentRequestedInfo() *PaymentRequestedInfo { + return &PaymentRequestedInfo{ + Constructor: TLConstructor_CRC32_paymentRequestedInfo, Data2: m.Data2, } } -func NewTLInputUserEmpty() *TLInputUserEmpty { - return &TLInputUserEmpty{Data2: &InputUser_Data{}} -} +func (m *TLPaymentRequestedInfo) SetName(v string) { m.Data2.Name = v } +func (m *TLPaymentRequestedInfo) GetName() string { return m.Data2.Name } -func (m *TLInputUserEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputUserEmpty)) +func (m *TLPaymentRequestedInfo) SetPhone(v string) { m.Data2.Phone = v } +func (m *TLPaymentRequestedInfo) GetPhone() string { return m.Data2.Phone } - return x.buf -} +func (m *TLPaymentRequestedInfo) SetEmail(v string) { m.Data2.Email = v } +func (m *TLPaymentRequestedInfo) GetEmail() string { return m.Data2.Email } -func (m *TLInputUserEmpty) EncodeToLayer(layer int) []byte { +func (m *TLPaymentRequestedInfo) SetShippingAddress(v *PostAddress) { m.Data2.ShippingAddress = v } +func (m *TLPaymentRequestedInfo) GetShippingAddress() *PostAddress { return m.Data2.ShippingAddress } + +func NewTLPaymentRequestedInfo() *TLPaymentRequestedInfo { + return &TLPaymentRequestedInfo{Data2: &PaymentRequestedInfo_Data{}} +} + +func (m *TLPaymentRequestedInfo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputUserEmpty)) + x.Int(int32(TLConstructor_CRC32_paymentRequestedInfo)) + + // flags + var flags uint32 = 0 + if m.GetName() != "" { + flags |= 1 << 0 + } + if m.GetPhone() != "" { + flags |= 1 << 1 + } + if m.GetEmail() != "" { + flags |= 1 << 2 + } + if m.GetShippingAddress() != nil { + flags |= 1 << 3 + } + x.UInt(flags) + + if m.GetName() != "" { + x.String(m.GetName()) + } + if m.GetPhone() != "" { + x.String(m.GetPhone()) + } + if m.GetEmail() != "" { + x.String(m.GetEmail()) + } + if m.GetShippingAddress() != nil { + x.Bytes(m.GetShippingAddress().Encode()) + } return x.buf } -func (m *TLInputUserEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLPaymentRequestedInfo) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_paymentRequestedInfo)) - return dbuf.err -} + // flags + var flags uint32 = 0 + if m.GetName() != "" { + flags |= 1 << 0 + } + if m.GetPhone() != "" { + flags |= 1 << 1 + } + if m.GetEmail() != "" { + flags |= 1 << 2 + } + if m.GetShippingAddress() != nil { + flags |= 1 << 3 + } + x.UInt(flags) -// inputUserSelf#f7c1b13f = InputUser; -func (m *TLInputUserSelf) To_InputUser() *InputUser { - return &InputUser{ - Constructor: TLConstructor_CRC32_inputUserSelf, - Data2: m.Data2, + if m.GetName() != "" { + x.String(m.GetName()) + } + if m.GetPhone() != "" { + x.String(m.GetPhone()) + } + if m.GetEmail() != "" { + x.String(m.GetEmail()) } + if m.GetShippingAddress() != nil { + x.Bytes(m.GetShippingAddress().EncodeToLayer(layer)) + } + + return x.buf } -func NewTLInputUserSelf() *TLInputUserSelf { - return &TLInputUserSelf{Data2: &InputUser_Data{}} +func (m *TLPaymentRequestedInfo) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetName(dbuf.String()) + } + if (flags & (1 << 1)) != 0 { + m.SetPhone(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m.SetEmail(dbuf.String()) + } + if (flags & (1 << 3)) != 0 { + m5 := &PostAddress{} + m5.Decode(dbuf) + m.SetShippingAddress(m5) + } + + return dbuf.err } -func (m *TLInputUserSelf) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputUserSelf)) +/////////////////////////////////////////////////////////////////////////////// +// PaymentCharge <-- +// + TL_PaymentCharge +// - return x.buf +func (m *PaymentCharge) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_paymentCharge: + t := m.To_PaymentCharge() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputUserSelf) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputUserSelf)) +func (m *PaymentCharge) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_paymentCharge: + t := m.To_PaymentCharge() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputUserSelf) Decode(dbuf *DecodeBuf) error { +func (m *PaymentCharge) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_paymentCharge: + m2 := &TLPaymentCharge{Data2: &PaymentCharge_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// inputUser#d8292816 user_id:int access_hash:long = InputUser; -func (m *TLInputUser) To_InputUser() *InputUser { - return &InputUser{ - Constructor: TLConstructor_CRC32_inputUser, +// paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; +func (m *PaymentCharge) To_PaymentCharge() *TLPaymentCharge { + return &TLPaymentCharge{ + Data2: m.Data2, + } +} + +// paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; +func (m *TLPaymentCharge) To_PaymentCharge() *PaymentCharge { + return &PaymentCharge{ + Constructor: TLConstructor_CRC32_paymentCharge, Data2: m.Data2, } } -func (m *TLInputUser) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLInputUser) GetUserId() int32 { return m.Data2.UserId } +func (m *TLPaymentCharge) SetId(v string) { m.Data2.Id = v } +func (m *TLPaymentCharge) GetId() string { return m.Data2.Id } -func (m *TLInputUser) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputUser) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLPaymentCharge) SetProviderChargeId(v string) { m.Data2.ProviderChargeId = v } +func (m *TLPaymentCharge) GetProviderChargeId() string { return m.Data2.ProviderChargeId } -func NewTLInputUser() *TLInputUser { - return &TLInputUser{Data2: &InputUser_Data{}} +func NewTLPaymentCharge() *TLPaymentCharge { + return &TLPaymentCharge{Data2: &PaymentCharge_Data{}} } -func (m *TLInputUser) Encode() []byte { +func (m *TLPaymentCharge) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputUser)) + x.Int(int32(TLConstructor_CRC32_paymentCharge)) - x.Int(m.GetUserId()) - x.Long(m.GetAccessHash()) + x.String(m.GetId()) + x.String(m.GetProviderChargeId()) return x.buf } -func (m *TLInputUser) EncodeToLayer(layer int) []byte { +func (m *TLPaymentCharge) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputUser)) + x.Int(int32(TLConstructor_CRC32_paymentCharge)) - x.Int(m.GetUserId()) - x.Long(m.GetAccessHash()) + x.String(m.GetId()) + x.String(m.GetProviderChargeId()) return x.buf } -func (m *TLInputUser) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetAccessHash(dbuf.Long()) +func (m *TLPaymentCharge) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.String()) + m.SetProviderChargeId(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Updates_State <-- -// + TL_UpdatesState +// InputWebDocument <-- +// + TL_InputWebDocument // -func (m *Updates_State) Encode() []byte { +func (m *InputWebDocument) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_updates_state: - t := m.To_UpdatesState() + case TLConstructor_CRC32_inputWebDocument: + t := m.To_InputWebDocument() return t.Encode() default: @@ -11684,11 +11985,11 @@ func (m *Updates_State) Encode() []byte { } } -func (m *Updates_State) EncodeToLayer(layer int) []byte { +func (m *InputWebDocument) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_updates_state: - t := m.To_UpdatesState() + case TLConstructor_CRC32_inputWebDocument: + t := m.To_InputWebDocument() return t.EncodeToLayer(layer) default: @@ -11697,11 +11998,11 @@ func (m *Updates_State) EncodeToLayer(layer int) []byte { } } -func (m *Updates_State) Decode(dbuf *DecodeBuf) error { +func (m *InputWebDocument) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_updates_state: - m2 := &TLUpdatesState{Data2: &Updates_State_Data{}} + case TLConstructor_CRC32_inputWebDocument: + m2 := &TLInputWebDocument{Data2: &InputWebDocument_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -11711,89 +12012,102 @@ func (m *Updates_State) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; -func (m *Updates_State) To_UpdatesState() *TLUpdatesState { - return &TLUpdatesState{ +// inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; +func (m *InputWebDocument) To_InputWebDocument() *TLInputWebDocument { + return &TLInputWebDocument{ Data2: m.Data2, } } -// updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; -func (m *TLUpdatesState) To_Updates_State() *Updates_State { - return &Updates_State{ - Constructor: TLConstructor_CRC32_updates_state, +// inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; +func (m *TLInputWebDocument) To_InputWebDocument() *InputWebDocument { + return &InputWebDocument{ + Constructor: TLConstructor_CRC32_inputWebDocument, Data2: m.Data2, } } -func (m *TLUpdatesState) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdatesState) GetPts() int32 { return m.Data2.Pts } - -func (m *TLUpdatesState) SetQts(v int32) { m.Data2.Qts = v } -func (m *TLUpdatesState) GetQts() int32 { return m.Data2.Qts } +func (m *TLInputWebDocument) SetUrl(v string) { m.Data2.Url = v } +func (m *TLInputWebDocument) GetUrl() string { return m.Data2.Url } -func (m *TLUpdatesState) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdatesState) GetDate() int32 { return m.Data2.Date } +func (m *TLInputWebDocument) SetSize(v int32) { m.Data2.Size = v } +func (m *TLInputWebDocument) GetSize() int32 { return m.Data2.Size } -func (m *TLUpdatesState) SetSeq(v int32) { m.Data2.Seq = v } -func (m *TLUpdatesState) GetSeq() int32 { return m.Data2.Seq } +func (m *TLInputWebDocument) SetMimeType(v string) { m.Data2.MimeType = v } +func (m *TLInputWebDocument) GetMimeType() string { return m.Data2.MimeType } -func (m *TLUpdatesState) SetUnreadCount(v int32) { m.Data2.UnreadCount = v } -func (m *TLUpdatesState) GetUnreadCount() int32 { return m.Data2.UnreadCount } +func (m *TLInputWebDocument) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } +func (m *TLInputWebDocument) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } -func NewTLUpdatesState() *TLUpdatesState { - return &TLUpdatesState{Data2: &Updates_State_Data{}} +func NewTLInputWebDocument() *TLInputWebDocument { + return &TLInputWebDocument{Data2: &InputWebDocument_Data{}} } -func (m *TLUpdatesState) Encode() []byte { +func (m *TLInputWebDocument) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_state)) + x.Int(int32(TLConstructor_CRC32_inputWebDocument)) - x.Int(m.GetPts()) - x.Int(m.GetQts()) - x.Int(m.GetDate()) - x.Int(m.GetSeq()) - x.Int(m.GetUnreadCount()) + x.String(m.GetUrl()) + x.Int(m.GetSize()) + x.String(m.GetMimeType()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLUpdatesState) EncodeToLayer(layer int) []byte { +func (m *TLInputWebDocument) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_state)) + x.Int(int32(TLConstructor_CRC32_inputWebDocument)) - x.Int(m.GetPts()) - x.Int(m.GetQts()) - x.Int(m.GetDate()) - x.Int(m.GetSeq()) - x.Int(m.GetUnreadCount()) + x.String(m.GetUrl()) + x.Int(m.GetSize()) + x.String(m.GetMimeType()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLUpdatesState) Decode(dbuf *DecodeBuf) error { - m.SetPts(dbuf.Int()) - m.SetQts(dbuf.Int()) - m.SetDate(dbuf.Int()) - m.SetSeq(dbuf.Int()) - m.SetUnreadCount(dbuf.Int()) +func (m *TLInputWebDocument) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m.SetSize(dbuf.Int()) + m.SetMimeType(dbuf.String()) + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*DocumentAttribute, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &DocumentAttribute{} + v4[i].Decode(dbuf) + } + m.SetAttributes(v4) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputChannel <-- -// + TL_InputChannelEmpty -// + TL_InputChannel +// Messages_FavedStickers <-- +// + TL_MessagesFavedStickersNotModified +// + TL_MessagesFavedStickers // -func (m *InputChannel) Encode() []byte { +func (m *Messages_FavedStickers) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputChannelEmpty: - t := m.To_InputChannelEmpty() + case TLConstructor_CRC32_messages_favedStickersNotModified: + t := m.To_MessagesFavedStickersNotModified() return t.Encode() - case TLConstructor_CRC32_inputChannel: - t := m.To_InputChannel() + case TLConstructor_CRC32_messages_favedStickers: + t := m.To_MessagesFavedStickers() return t.Encode() default: @@ -11802,14 +12116,14 @@ func (m *InputChannel) Encode() []byte { } } -func (m *InputChannel) EncodeToLayer(layer int) []byte { +func (m *Messages_FavedStickers) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputChannelEmpty: - t := m.To_InputChannelEmpty() + case TLConstructor_CRC32_messages_favedStickersNotModified: + t := m.To_MessagesFavedStickersNotModified() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputChannel: - t := m.To_InputChannel() + case TLConstructor_CRC32_messages_favedStickers: + t := m.To_MessagesFavedStickers() return t.EncodeToLayer(layer) default: @@ -11818,15 +12132,15 @@ func (m *InputChannel) EncodeToLayer(layer int) []byte { } } -func (m *InputChannel) Decode(dbuf *DecodeBuf) error { +func (m *Messages_FavedStickers) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputChannelEmpty: - m2 := &TLInputChannelEmpty{Data2: &InputChannel_Data{}} + case TLConstructor_CRC32_messages_favedStickersNotModified: + m2 := &TLMessagesFavedStickersNotModified{Data2: &Messages_FavedStickers_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputChannel: - m2 := &TLInputChannel{Data2: &InputChannel_Data{}} + case TLConstructor_CRC32_messages_favedStickers: + m2 := &TLMessagesFavedStickers{Data2: &Messages_FavedStickers_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -11836,125 +12150,150 @@ func (m *InputChannel) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputChannelEmpty#ee8c1e86 = InputChannel; -func (m *InputChannel) To_InputChannelEmpty() *TLInputChannelEmpty { - return &TLInputChannelEmpty{ +// messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers; +func (m *Messages_FavedStickers) To_MessagesFavedStickersNotModified() *TLMessagesFavedStickersNotModified { + return &TLMessagesFavedStickersNotModified{ Data2: m.Data2, } } -// inputChannel#afeb712e channel_id:int access_hash:long = InputChannel; -func (m *InputChannel) To_InputChannel() *TLInputChannel { - return &TLInputChannel{ +// messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers; +func (m *Messages_FavedStickers) To_MessagesFavedStickers() *TLMessagesFavedStickers { + return &TLMessagesFavedStickers{ Data2: m.Data2, } } -// inputChannelEmpty#ee8c1e86 = InputChannel; -func (m *TLInputChannelEmpty) To_InputChannel() *InputChannel { - return &InputChannel{ - Constructor: TLConstructor_CRC32_inputChannelEmpty, +// messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers; +func (m *TLMessagesFavedStickersNotModified) To_Messages_FavedStickers() *Messages_FavedStickers { + return &Messages_FavedStickers{ + Constructor: TLConstructor_CRC32_messages_favedStickersNotModified, Data2: m.Data2, } } -func NewTLInputChannelEmpty() *TLInputChannelEmpty { - return &TLInputChannelEmpty{Data2: &InputChannel_Data{}} +func NewTLMessagesFavedStickersNotModified() *TLMessagesFavedStickersNotModified { + return &TLMessagesFavedStickersNotModified{Data2: &Messages_FavedStickers_Data{}} } -func (m *TLInputChannelEmpty) Encode() []byte { +func (m *TLMessagesFavedStickersNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChannelEmpty)) + x.Int(int32(TLConstructor_CRC32_messages_favedStickersNotModified)) return x.buf } -func (m *TLInputChannelEmpty) EncodeToLayer(layer int) []byte { +func (m *TLMessagesFavedStickersNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChannelEmpty)) + x.Int(int32(TLConstructor_CRC32_messages_favedStickersNotModified)) return x.buf } -func (m *TLInputChannelEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLMessagesFavedStickersNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputChannel#afeb712e channel_id:int access_hash:long = InputChannel; -func (m *TLInputChannel) To_InputChannel() *InputChannel { - return &InputChannel{ - Constructor: TLConstructor_CRC32_inputChannel, +// messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers; +func (m *TLMessagesFavedStickers) To_Messages_FavedStickers() *Messages_FavedStickers { + return &Messages_FavedStickers{ + Constructor: TLConstructor_CRC32_messages_favedStickers, Data2: m.Data2, } } -func (m *TLInputChannel) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLInputChannel) GetChannelId() int32 { return m.Data2.ChannelId } +func (m *TLMessagesFavedStickers) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLMessagesFavedStickers) GetHash() int32 { return m.Data2.Hash } -func (m *TLInputChannel) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputChannel) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLMessagesFavedStickers) SetPacks(v []*StickerPack) { m.Data2.Packs = v } +func (m *TLMessagesFavedStickers) GetPacks() []*StickerPack { return m.Data2.Packs } -func NewTLInputChannel() *TLInputChannel { - return &TLInputChannel{Data2: &InputChannel_Data{}} +func (m *TLMessagesFavedStickers) SetStickers(v []*Document) { m.Data2.Stickers = v } +func (m *TLMessagesFavedStickers) GetStickers() []*Document { return m.Data2.Stickers } + +func NewTLMessagesFavedStickers() *TLMessagesFavedStickers { + return &TLMessagesFavedStickers{Data2: &Messages_FavedStickers_Data{}} } -func (m *TLInputChannel) Encode() []byte { +func (m *TLMessagesFavedStickers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChannel)) + x.Int(int32(TLConstructor_CRC32_messages_favedStickers)) - x.Int(m.GetChannelId()) - x.Long(m.GetAccessHash()) + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPacks()))) + for _, v := range m.GetPacks() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLInputChannel) EncodeToLayer(layer int) []byte { +func (m *TLMessagesFavedStickers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChannel)) + x.Int(int32(TLConstructor_CRC32_messages_favedStickers)) - x.Int(m.GetChannelId()) - x.Long(m.GetAccessHash()) + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPacks()))) + for _, v := range m.GetPacks() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLInputChannel) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m.SetAccessHash(dbuf.Long()) +func (m *TLMessagesFavedStickers) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*StickerPack, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &StickerPack{} + v2[i].Decode(dbuf) + } + m.SetPacks(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Document, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Document{} + v3[i].Decode(dbuf) + } + m.SetStickers(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ChannelParticipantsFilter <-- -// + TL_ChannelParticipantsRecent -// + TL_ChannelParticipantsAdmins -// + TL_ChannelParticipantsKicked -// + TL_ChannelParticipantsBots -// + TL_ChannelParticipantsBanned -// + TL_ChannelParticipantsSearch +// ContactBlocked <-- +// + TL_ContactBlocked // -func (m *ChannelParticipantsFilter) Encode() []byte { +func (m *ContactBlocked) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_channelParticipantsRecent: - t := m.To_ChannelParticipantsRecent() - return t.Encode() - case TLConstructor_CRC32_channelParticipantsAdmins: - t := m.To_ChannelParticipantsAdmins() - return t.Encode() - case TLConstructor_CRC32_channelParticipantsKicked: - t := m.To_ChannelParticipantsKicked() - return t.Encode() - case TLConstructor_CRC32_channelParticipantsBots: - t := m.To_ChannelParticipantsBots() - return t.Encode() - case TLConstructor_CRC32_channelParticipantsBanned: - t := m.To_ChannelParticipantsBanned() - return t.Encode() - case TLConstructor_CRC32_channelParticipantsSearch: - t := m.To_ChannelParticipantsSearch() + case TLConstructor_CRC32_contactBlocked: + t := m.To_ContactBlocked() return t.Encode() default: @@ -11963,26 +12302,149 @@ func (m *ChannelParticipantsFilter) Encode() []byte { } } -func (m *ChannelParticipantsFilter) EncodeToLayer(layer int) []byte { +func (m *ContactBlocked) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_channelParticipantsRecent: - t := m.To_ChannelParticipantsRecent() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelParticipantsAdmins: - t := m.To_ChannelParticipantsAdmins() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelParticipantsKicked: - t := m.To_ChannelParticipantsKicked() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelParticipantsBots: - t := m.To_ChannelParticipantsBots() + case TLConstructor_CRC32_contactBlocked: + t := m.To_ContactBlocked() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelParticipantsBanned: - t := m.To_ChannelParticipantsBanned() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *ContactBlocked) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_contactBlocked: + m2 := &TLContactBlocked{Data2: &ContactBlocked_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// contactBlocked#561bc879 user_id:int date:int = ContactBlocked; +func (m *ContactBlocked) To_ContactBlocked() *TLContactBlocked { + return &TLContactBlocked{ + Data2: m.Data2, + } +} + +// contactBlocked#561bc879 user_id:int date:int = ContactBlocked; +func (m *TLContactBlocked) To_ContactBlocked() *ContactBlocked { + return &ContactBlocked{ + Constructor: TLConstructor_CRC32_contactBlocked, + Data2: m.Data2, + } +} + +func (m *TLContactBlocked) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLContactBlocked) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLContactBlocked) SetDate(v int32) { m.Data2.Date = v } +func (m *TLContactBlocked) GetDate() int32 { return m.Data2.Date } + +func NewTLContactBlocked() *TLContactBlocked { + return &TLContactBlocked{Data2: &ContactBlocked_Data{}} +} + +func (m *TLContactBlocked) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_contactBlocked)) + + x.Int(m.GetUserId()) + x.Int(m.GetDate()) + + return x.buf +} + +func (m *TLContactBlocked) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_contactBlocked)) + + x.Int(m.GetUserId()) + x.Int(m.GetDate()) + + return x.buf +} + +func (m *TLContactBlocked) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetDate(dbuf.Int()) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// DocumentAttribute <-- +// + TL_DocumentAttributeImageSize +// + TL_DocumentAttributeAnimated +// + TL_DocumentAttributeSticker +// + TL_DocumentAttributeVideo +// + TL_DocumentAttributeAudio +// + TL_DocumentAttributeFilename +// + TL_DocumentAttributeHasStickers +// + +func (m *DocumentAttribute) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_documentAttributeImageSize: + t := m.To_DocumentAttributeImageSize() + return t.Encode() + case TLConstructor_CRC32_documentAttributeAnimated: + t := m.To_DocumentAttributeAnimated() + return t.Encode() + case TLConstructor_CRC32_documentAttributeSticker: + t := m.To_DocumentAttributeSticker() + return t.Encode() + case TLConstructor_CRC32_documentAttributeVideo: + t := m.To_DocumentAttributeVideo() + return t.Encode() + case TLConstructor_CRC32_documentAttributeAudio: + t := m.To_DocumentAttributeAudio() + return t.Encode() + case TLConstructor_CRC32_documentAttributeFilename: + t := m.To_DocumentAttributeFilename() + return t.Encode() + case TLConstructor_CRC32_documentAttributeHasStickers: + t := m.To_DocumentAttributeHasStickers() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *DocumentAttribute) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_documentAttributeImageSize: + t := m.To_DocumentAttributeImageSize() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelParticipantsSearch: - t := m.To_ChannelParticipantsSearch() + case TLConstructor_CRC32_documentAttributeAnimated: + t := m.To_DocumentAttributeAnimated() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_documentAttributeSticker: + t := m.To_DocumentAttributeSticker() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_documentAttributeVideo: + t := m.To_DocumentAttributeVideo() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_documentAttributeAudio: + t := m.To_DocumentAttributeAudio() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_documentAttributeFilename: + t := m.To_DocumentAttributeFilename() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_documentAttributeHasStickers: + t := m.To_DocumentAttributeHasStickers() return t.EncodeToLayer(layer) default: @@ -11991,31 +12453,35 @@ func (m *ChannelParticipantsFilter) EncodeToLayer(layer int) []byte { } } -func (m *ChannelParticipantsFilter) Decode(dbuf *DecodeBuf) error { +func (m *DocumentAttribute) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_channelParticipantsRecent: - m2 := &TLChannelParticipantsRecent{Data2: &ChannelParticipantsFilter_Data{}} + case TLConstructor_CRC32_documentAttributeImageSize: + m2 := &TLDocumentAttributeImageSize{Data2: &DocumentAttribute_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelParticipantsAdmins: - m2 := &TLChannelParticipantsAdmins{Data2: &ChannelParticipantsFilter_Data{}} + case TLConstructor_CRC32_documentAttributeAnimated: + m2 := &TLDocumentAttributeAnimated{Data2: &DocumentAttribute_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelParticipantsKicked: - m2 := &TLChannelParticipantsKicked{Data2: &ChannelParticipantsFilter_Data{}} + case TLConstructor_CRC32_documentAttributeSticker: + m2 := &TLDocumentAttributeSticker{Data2: &DocumentAttribute_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelParticipantsBots: - m2 := &TLChannelParticipantsBots{Data2: &ChannelParticipantsFilter_Data{}} + case TLConstructor_CRC32_documentAttributeVideo: + m2 := &TLDocumentAttributeVideo{Data2: &DocumentAttribute_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelParticipantsBanned: - m2 := &TLChannelParticipantsBanned{Data2: &ChannelParticipantsFilter_Data{}} + case TLConstructor_CRC32_documentAttributeAudio: + m2 := &TLDocumentAttributeAudio{Data2: &DocumentAttribute_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelParticipantsSearch: - m2 := &TLChannelParticipantsSearch{Data2: &ChannelParticipantsFilter_Data{}} + case TLConstructor_CRC32_documentAttributeFilename: + m2 := &TLDocumentAttributeFilename{Data2: &DocumentAttribute_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_documentAttributeHasStickers: + m2 := &TLDocumentAttributeHasStickers{Data2: &DocumentAttribute_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -12025,532 +12491,499 @@ func (m *ChannelParticipantsFilter) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter; -func (m *ChannelParticipantsFilter) To_ChannelParticipantsRecent() *TLChannelParticipantsRecent { - return &TLChannelParticipantsRecent{ +// documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; +func (m *DocumentAttribute) To_DocumentAttributeImageSize() *TLDocumentAttributeImageSize { + return &TLDocumentAttributeImageSize{ Data2: m.Data2, } } -// channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter; -func (m *ChannelParticipantsFilter) To_ChannelParticipantsAdmins() *TLChannelParticipantsAdmins { - return &TLChannelParticipantsAdmins{ +// documentAttributeAnimated#11b58939 = DocumentAttribute; +func (m *DocumentAttribute) To_DocumentAttributeAnimated() *TLDocumentAttributeAnimated { + return &TLDocumentAttributeAnimated{ Data2: m.Data2, } } -// channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter; -func (m *ChannelParticipantsFilter) To_ChannelParticipantsKicked() *TLChannelParticipantsKicked { - return &TLChannelParticipantsKicked{ +// documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute; +func (m *DocumentAttribute) To_DocumentAttributeSticker() *TLDocumentAttributeSticker { + return &TLDocumentAttributeSticker{ Data2: m.Data2, } } -// channelParticipantsBots#b0d1865b = ChannelParticipantsFilter; -func (m *ChannelParticipantsFilter) To_ChannelParticipantsBots() *TLChannelParticipantsBots { - return &TLChannelParticipantsBots{ +// documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute; +func (m *DocumentAttribute) To_DocumentAttributeVideo() *TLDocumentAttributeVideo { + return &TLDocumentAttributeVideo{ Data2: m.Data2, } } -// channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter; -func (m *ChannelParticipantsFilter) To_ChannelParticipantsBanned() *TLChannelParticipantsBanned { - return &TLChannelParticipantsBanned{ +// documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; +func (m *DocumentAttribute) To_DocumentAttributeAudio() *TLDocumentAttributeAudio { + return &TLDocumentAttributeAudio{ Data2: m.Data2, } } -// channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter; -func (m *ChannelParticipantsFilter) To_ChannelParticipantsSearch() *TLChannelParticipantsSearch { - return &TLChannelParticipantsSearch{ +// documentAttributeFilename#15590068 file_name:string = DocumentAttribute; +func (m *DocumentAttribute) To_DocumentAttributeFilename() *TLDocumentAttributeFilename { + return &TLDocumentAttributeFilename{ Data2: m.Data2, } } -// channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter; -func (m *TLChannelParticipantsRecent) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { - return &ChannelParticipantsFilter{ - Constructor: TLConstructor_CRC32_channelParticipantsRecent, +// documentAttributeHasStickers#9801d2f7 = DocumentAttribute; +func (m *DocumentAttribute) To_DocumentAttributeHasStickers() *TLDocumentAttributeHasStickers { + return &TLDocumentAttributeHasStickers{ + Data2: m.Data2, + } +} + +// documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; +func (m *TLDocumentAttributeImageSize) To_DocumentAttribute() *DocumentAttribute { + return &DocumentAttribute{ + Constructor: TLConstructor_CRC32_documentAttributeImageSize, Data2: m.Data2, } } -func NewTLChannelParticipantsRecent() *TLChannelParticipantsRecent { - return &TLChannelParticipantsRecent{Data2: &ChannelParticipantsFilter_Data{}} +func (m *TLDocumentAttributeImageSize) SetW(v int32) { m.Data2.W = v } +func (m *TLDocumentAttributeImageSize) GetW() int32 { return m.Data2.W } + +func (m *TLDocumentAttributeImageSize) SetH(v int32) { m.Data2.H = v } +func (m *TLDocumentAttributeImageSize) GetH() int32 { return m.Data2.H } + +func NewTLDocumentAttributeImageSize() *TLDocumentAttributeImageSize { + return &TLDocumentAttributeImageSize{Data2: &DocumentAttribute_Data{}} } -func (m *TLChannelParticipantsRecent) Encode() []byte { +func (m *TLDocumentAttributeImageSize) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsRecent)) + x.Int(int32(TLConstructor_CRC32_documentAttributeImageSize)) + + x.Int(m.GetW()) + x.Int(m.GetH()) return x.buf } -func (m *TLChannelParticipantsRecent) EncodeToLayer(layer int) []byte { +func (m *TLDocumentAttributeImageSize) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsRecent)) + x.Int(int32(TLConstructor_CRC32_documentAttributeImageSize)) + + x.Int(m.GetW()) + x.Int(m.GetH()) return x.buf } -func (m *TLChannelParticipantsRecent) Decode(dbuf *DecodeBuf) error { +func (m *TLDocumentAttributeImageSize) Decode(dbuf *DecodeBuf) error { + m.SetW(dbuf.Int()) + m.SetH(dbuf.Int()) return dbuf.err } -// channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter; -func (m *TLChannelParticipantsAdmins) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { - return &ChannelParticipantsFilter{ - Constructor: TLConstructor_CRC32_channelParticipantsAdmins, +// documentAttributeAnimated#11b58939 = DocumentAttribute; +func (m *TLDocumentAttributeAnimated) To_DocumentAttribute() *DocumentAttribute { + return &DocumentAttribute{ + Constructor: TLConstructor_CRC32_documentAttributeAnimated, Data2: m.Data2, } } -func NewTLChannelParticipantsAdmins() *TLChannelParticipantsAdmins { - return &TLChannelParticipantsAdmins{Data2: &ChannelParticipantsFilter_Data{}} +func NewTLDocumentAttributeAnimated() *TLDocumentAttributeAnimated { + return &TLDocumentAttributeAnimated{Data2: &DocumentAttribute_Data{}} } -func (m *TLChannelParticipantsAdmins) Encode() []byte { +func (m *TLDocumentAttributeAnimated) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsAdmins)) + x.Int(int32(TLConstructor_CRC32_documentAttributeAnimated)) return x.buf } -func (m *TLChannelParticipantsAdmins) EncodeToLayer(layer int) []byte { +func (m *TLDocumentAttributeAnimated) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsAdmins)) + x.Int(int32(TLConstructor_CRC32_documentAttributeAnimated)) return x.buf } -func (m *TLChannelParticipantsAdmins) Decode(dbuf *DecodeBuf) error { +func (m *TLDocumentAttributeAnimated) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter; -func (m *TLChannelParticipantsKicked) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { - return &ChannelParticipantsFilter{ - Constructor: TLConstructor_CRC32_channelParticipantsKicked, +// documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute; +func (m *TLDocumentAttributeSticker) To_DocumentAttribute() *DocumentAttribute { + return &DocumentAttribute{ + Constructor: TLConstructor_CRC32_documentAttributeSticker, Data2: m.Data2, } } -func (m *TLChannelParticipantsKicked) SetQ(v string) { m.Data2.Q = v } -func (m *TLChannelParticipantsKicked) GetQ() string { return m.Data2.Q } +func (m *TLDocumentAttributeSticker) SetMask(v bool) { m.Data2.Mask = v } +func (m *TLDocumentAttributeSticker) GetMask() bool { return m.Data2.Mask } -func NewTLChannelParticipantsKicked() *TLChannelParticipantsKicked { - return &TLChannelParticipantsKicked{Data2: &ChannelParticipantsFilter_Data{}} -} +func (m *TLDocumentAttributeSticker) SetAlt(v string) { m.Data2.Alt = v } +func (m *TLDocumentAttributeSticker) GetAlt() string { return m.Data2.Alt } -func (m *TLChannelParticipantsKicked) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsKicked)) +func (m *TLDocumentAttributeSticker) SetStickerset(v *InputStickerSet) { m.Data2.Stickerset = v } +func (m *TLDocumentAttributeSticker) GetStickerset() *InputStickerSet { return m.Data2.Stickerset } - x.String(m.GetQ()) +func (m *TLDocumentAttributeSticker) SetMaskCoords(v *MaskCoords) { m.Data2.MaskCoords = v } +func (m *TLDocumentAttributeSticker) GetMaskCoords() *MaskCoords { return m.Data2.MaskCoords } - return x.buf +func NewTLDocumentAttributeSticker() *TLDocumentAttributeSticker { + return &TLDocumentAttributeSticker{Data2: &DocumentAttribute_Data{}} } -func (m *TLChannelParticipantsKicked) EncodeToLayer(layer int) []byte { +func (m *TLDocumentAttributeSticker) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsKicked)) - - x.String(m.GetQ()) - - return x.buf -} - -func (m *TLChannelParticipantsKicked) Decode(dbuf *DecodeBuf) error { - m.SetQ(dbuf.String()) + x.Int(int32(TLConstructor_CRC32_documentAttributeSticker)) - return dbuf.err -} + // flags + var flags uint32 = 0 + if m.GetMask() == true { + flags |= 1 << 1 + } + if m.GetMaskCoords() != nil { + flags |= 1 << 0 + } + x.UInt(flags) -// channelParticipantsBots#b0d1865b = ChannelParticipantsFilter; -func (m *TLChannelParticipantsBots) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { - return &ChannelParticipantsFilter{ - Constructor: TLConstructor_CRC32_channelParticipantsBots, - Data2: m.Data2, + x.String(m.GetAlt()) + x.Bytes(m.GetStickerset().Encode()) + if m.GetMaskCoords() != nil { + x.Bytes(m.GetMaskCoords().Encode()) } -} -func NewTLChannelParticipantsBots() *TLChannelParticipantsBots { - return &TLChannelParticipantsBots{Data2: &ChannelParticipantsFilter_Data{}} + return x.buf } -func (m *TLChannelParticipantsBots) Encode() []byte { +func (m *TLDocumentAttributeSticker) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsBots)) + x.Int(int32(TLConstructor_CRC32_documentAttributeSticker)) - return x.buf -} + // flags + var flags uint32 = 0 + if m.GetMask() == true { + flags |= 1 << 1 + } + if m.GetMaskCoords() != nil { + flags |= 1 << 0 + } + x.UInt(flags) -func (m *TLChannelParticipantsBots) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsBots)) + x.String(m.GetAlt()) + x.Bytes(m.GetStickerset().EncodeToLayer(layer)) + if m.GetMaskCoords() != nil { + x.Bytes(m.GetMaskCoords().EncodeToLayer(layer)) + } return x.buf } -func (m *TLChannelParticipantsBots) Decode(dbuf *DecodeBuf) error { +func (m *TLDocumentAttributeSticker) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetMask(true) + } + m.SetAlt(dbuf.String()) + m4 := &InputStickerSet{} + m4.Decode(dbuf) + m.SetStickerset(m4) + if (flags & (1 << 0)) != 0 { + m5 := &MaskCoords{} + m5.Decode(dbuf) + m.SetMaskCoords(m5) + } return dbuf.err } -// channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter; -func (m *TLChannelParticipantsBanned) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { - return &ChannelParticipantsFilter{ - Constructor: TLConstructor_CRC32_channelParticipantsBanned, +// documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute; +func (m *TLDocumentAttributeVideo) To_DocumentAttribute() *DocumentAttribute { + return &DocumentAttribute{ + Constructor: TLConstructor_CRC32_documentAttributeVideo, Data2: m.Data2, } } -func (m *TLChannelParticipantsBanned) SetQ(v string) { m.Data2.Q = v } -func (m *TLChannelParticipantsBanned) GetQ() string { return m.Data2.Q } +func (m *TLDocumentAttributeVideo) SetRoundMessage(v bool) { m.Data2.RoundMessage = v } +func (m *TLDocumentAttributeVideo) GetRoundMessage() bool { return m.Data2.RoundMessage } -func NewTLChannelParticipantsBanned() *TLChannelParticipantsBanned { - return &TLChannelParticipantsBanned{Data2: &ChannelParticipantsFilter_Data{}} +func (m *TLDocumentAttributeVideo) SetSupportsStreaming(v bool) { m.Data2.SupportsStreaming = v } +func (m *TLDocumentAttributeVideo) GetSupportsStreaming() bool { return m.Data2.SupportsStreaming } + +func (m *TLDocumentAttributeVideo) SetDuration(v int32) { m.Data2.Duration = v } +func (m *TLDocumentAttributeVideo) GetDuration() int32 { return m.Data2.Duration } + +func (m *TLDocumentAttributeVideo) SetW(v int32) { m.Data2.W = v } +func (m *TLDocumentAttributeVideo) GetW() int32 { return m.Data2.W } + +func (m *TLDocumentAttributeVideo) SetH(v int32) { m.Data2.H = v } +func (m *TLDocumentAttributeVideo) GetH() int32 { return m.Data2.H } + +func NewTLDocumentAttributeVideo() *TLDocumentAttributeVideo { + return &TLDocumentAttributeVideo{Data2: &DocumentAttribute_Data{}} } -func (m *TLChannelParticipantsBanned) Encode() []byte { +func (m *TLDocumentAttributeVideo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsBanned)) + x.Int(int32(TLConstructor_CRC32_documentAttributeVideo)) - x.String(m.GetQ()) + // flags + var flags uint32 = 0 + if m.GetRoundMessage() == true { + flags |= 1 << 0 + } + if m.GetSupportsStreaming() == true { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetDuration()) + x.Int(m.GetW()) + x.Int(m.GetH()) return x.buf } -func (m *TLChannelParticipantsBanned) EncodeToLayer(layer int) []byte { +func (m *TLDocumentAttributeVideo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsBanned)) + x.Int(int32(TLConstructor_CRC32_documentAttributeVideo)) - x.String(m.GetQ()) + // flags + var flags uint32 = 0 + if m.GetRoundMessage() == true { + flags |= 1 << 0 + } + if m.GetSupportsStreaming() == true { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetDuration()) + x.Int(m.GetW()) + x.Int(m.GetH()) return x.buf } -func (m *TLChannelParticipantsBanned) Decode(dbuf *DecodeBuf) error { - m.SetQ(dbuf.String()) +func (m *TLDocumentAttributeVideo) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetRoundMessage(true) + } + if (flags & (1 << 1)) != 0 { + m.SetSupportsStreaming(true) + } + m.SetDuration(dbuf.Int()) + m.SetW(dbuf.Int()) + m.SetH(dbuf.Int()) return dbuf.err } -// channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter; -func (m *TLChannelParticipantsSearch) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { - return &ChannelParticipantsFilter{ - Constructor: TLConstructor_CRC32_channelParticipantsSearch, +// documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; +func (m *TLDocumentAttributeAudio) To_DocumentAttribute() *DocumentAttribute { + return &DocumentAttribute{ + Constructor: TLConstructor_CRC32_documentAttributeAudio, Data2: m.Data2, } } -func (m *TLChannelParticipantsSearch) SetQ(v string) { m.Data2.Q = v } -func (m *TLChannelParticipantsSearch) GetQ() string { return m.Data2.Q } +func (m *TLDocumentAttributeAudio) SetVoice(v bool) { m.Data2.Voice = v } +func (m *TLDocumentAttributeAudio) GetVoice() bool { return m.Data2.Voice } -func NewTLChannelParticipantsSearch() *TLChannelParticipantsSearch { - return &TLChannelParticipantsSearch{Data2: &ChannelParticipantsFilter_Data{}} +func (m *TLDocumentAttributeAudio) SetDuration(v int32) { m.Data2.Duration = v } +func (m *TLDocumentAttributeAudio) GetDuration() int32 { return m.Data2.Duration } + +func (m *TLDocumentAttributeAudio) SetTitle(v string) { m.Data2.Title = v } +func (m *TLDocumentAttributeAudio) GetTitle() string { return m.Data2.Title } + +func (m *TLDocumentAttributeAudio) SetPerformer(v string) { m.Data2.Performer = v } +func (m *TLDocumentAttributeAudio) GetPerformer() string { return m.Data2.Performer } + +func (m *TLDocumentAttributeAudio) SetWaveform(v []byte) { m.Data2.Waveform = v } +func (m *TLDocumentAttributeAudio) GetWaveform() []byte { return m.Data2.Waveform } + +func NewTLDocumentAttributeAudio() *TLDocumentAttributeAudio { + return &TLDocumentAttributeAudio{Data2: &DocumentAttribute_Data{}} } -func (m *TLChannelParticipantsSearch) Encode() []byte { +func (m *TLDocumentAttributeAudio) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsSearch)) + x.Int(int32(TLConstructor_CRC32_documentAttributeAudio)) - x.String(m.GetQ()) + // flags + var flags uint32 = 0 + if m.GetVoice() == true { + flags |= 1 << 10 + } + if m.GetTitle() != "" { + flags |= 1 << 0 + } + if m.GetPerformer() != "" { + flags |= 1 << 1 + } + if m.GetWaveform() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Int(m.GetDuration()) + if m.GetTitle() != "" { + x.String(m.GetTitle()) + } + if m.GetPerformer() != "" { + x.String(m.GetPerformer()) + } + if m.GetWaveform() != nil { + x.StringBytes(m.GetWaveform()) + } return x.buf } -func (m *TLChannelParticipantsSearch) EncodeToLayer(layer int) []byte { +func (m *TLDocumentAttributeAudio) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantsSearch)) - - x.String(m.GetQ()) - - return x.buf -} - -func (m *TLChannelParticipantsSearch) Decode(dbuf *DecodeBuf) error { - m.SetQ(dbuf.String()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// Auth_SentCodeType <-- -// + TL_AuthSentCodeTypeApp -// + TL_AuthSentCodeTypeSms -// + TL_AuthSentCodeTypeCall -// + TL_AuthSentCodeTypeFlashCall -// - -func (m *Auth_SentCodeType) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_auth_sentCodeTypeApp: - t := m.To_AuthSentCodeTypeApp() - return t.Encode() - case TLConstructor_CRC32_auth_sentCodeTypeSms: - t := m.To_AuthSentCodeTypeSms() - return t.Encode() - case TLConstructor_CRC32_auth_sentCodeTypeCall: - t := m.To_AuthSentCodeTypeCall() - return t.Encode() - case TLConstructor_CRC32_auth_sentCodeTypeFlashCall: - t := m.To_AuthSentCodeTypeFlashCall() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Auth_SentCodeType) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_auth_sentCodeTypeApp: - t := m.To_AuthSentCodeTypeApp() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_auth_sentCodeTypeSms: - t := m.To_AuthSentCodeTypeSms() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_auth_sentCodeTypeCall: - t := m.To_AuthSentCodeTypeCall() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_auth_sentCodeTypeFlashCall: - t := m.To_AuthSentCodeTypeFlashCall() - return t.EncodeToLayer(layer) + x.Int(int32(TLConstructor_CRC32_documentAttributeAudio)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetVoice() == true { + flags |= 1 << 10 } -} - -func (m *Auth_SentCodeType) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_auth_sentCodeTypeApp: - m2 := &TLAuthSentCodeTypeApp{Data2: &Auth_SentCodeType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_auth_sentCodeTypeSms: - m2 := &TLAuthSentCodeTypeSms{Data2: &Auth_SentCodeType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_auth_sentCodeTypeCall: - m2 := &TLAuthSentCodeTypeCall{Data2: &Auth_SentCodeType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_auth_sentCodeTypeFlashCall: - m2 := &TLAuthSentCodeTypeFlashCall{Data2: &Auth_SentCodeType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + if m.GetTitle() != "" { + flags |= 1 << 0 } - return dbuf.err -} - -// auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType; -func (m *Auth_SentCodeType) To_AuthSentCodeTypeApp() *TLAuthSentCodeTypeApp { - return &TLAuthSentCodeTypeApp{ - Data2: m.Data2, + if m.GetPerformer() != "" { + flags |= 1 << 1 } -} - -// auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType; -func (m *Auth_SentCodeType) To_AuthSentCodeTypeSms() *TLAuthSentCodeTypeSms { - return &TLAuthSentCodeTypeSms{ - Data2: m.Data2, + if m.GetWaveform() != nil { + flags |= 1 << 2 } -} + x.UInt(flags) -// auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType; -func (m *Auth_SentCodeType) To_AuthSentCodeTypeCall() *TLAuthSentCodeTypeCall { - return &TLAuthSentCodeTypeCall{ - Data2: m.Data2, + x.Int(m.GetDuration()) + if m.GetTitle() != "" { + x.String(m.GetTitle()) } -} - -// auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType; -func (m *Auth_SentCodeType) To_AuthSentCodeTypeFlashCall() *TLAuthSentCodeTypeFlashCall { - return &TLAuthSentCodeTypeFlashCall{ - Data2: m.Data2, + if m.GetPerformer() != "" { + x.String(m.GetPerformer()) } -} - -// auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType; -func (m *TLAuthSentCodeTypeApp) To_Auth_SentCodeType() *Auth_SentCodeType { - return &Auth_SentCodeType{ - Constructor: TLConstructor_CRC32_auth_sentCodeTypeApp, - Data2: m.Data2, + if m.GetWaveform() != nil { + x.StringBytes(m.GetWaveform()) } -} - -func (m *TLAuthSentCodeTypeApp) SetLength(v int32) { m.Data2.Length = v } -func (m *TLAuthSentCodeTypeApp) GetLength() int32 { return m.Data2.Length } - -func NewTLAuthSentCodeTypeApp() *TLAuthSentCodeTypeApp { - return &TLAuthSentCodeTypeApp{Data2: &Auth_SentCodeType_Data{}} -} - -func (m *TLAuthSentCodeTypeApp) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeApp)) - - x.Int(m.GetLength()) - - return x.buf -} - -func (m *TLAuthSentCodeTypeApp) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeApp)) - - x.Int(m.GetLength()) return x.buf } -func (m *TLAuthSentCodeTypeApp) Decode(dbuf *DecodeBuf) error { - m.SetLength(dbuf.Int()) - - return dbuf.err -} - -// auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType; -func (m *TLAuthSentCodeTypeSms) To_Auth_SentCodeType() *Auth_SentCodeType { - return &Auth_SentCodeType{ - Constructor: TLConstructor_CRC32_auth_sentCodeTypeSms, - Data2: m.Data2, +func (m *TLDocumentAttributeAudio) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 10)) != 0 { + m.SetVoice(true) + } + m.SetDuration(dbuf.Int()) + if (flags & (1 << 0)) != 0 { + m.SetTitle(dbuf.String()) + } + if (flags & (1 << 1)) != 0 { + m.SetPerformer(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m.SetWaveform(dbuf.StringBytes()) } -} - -func (m *TLAuthSentCodeTypeSms) SetLength(v int32) { m.Data2.Length = v } -func (m *TLAuthSentCodeTypeSms) GetLength() int32 { return m.Data2.Length } - -func NewTLAuthSentCodeTypeSms() *TLAuthSentCodeTypeSms { - return &TLAuthSentCodeTypeSms{Data2: &Auth_SentCodeType_Data{}} -} - -func (m *TLAuthSentCodeTypeSms) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeSms)) - - x.Int(m.GetLength()) - - return x.buf -} - -func (m *TLAuthSentCodeTypeSms) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeSms)) - - x.Int(m.GetLength()) - - return x.buf -} - -func (m *TLAuthSentCodeTypeSms) Decode(dbuf *DecodeBuf) error { - m.SetLength(dbuf.Int()) return dbuf.err } -// auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType; -func (m *TLAuthSentCodeTypeCall) To_Auth_SentCodeType() *Auth_SentCodeType { - return &Auth_SentCodeType{ - Constructor: TLConstructor_CRC32_auth_sentCodeTypeCall, +// documentAttributeFilename#15590068 file_name:string = DocumentAttribute; +func (m *TLDocumentAttributeFilename) To_DocumentAttribute() *DocumentAttribute { + return &DocumentAttribute{ + Constructor: TLConstructor_CRC32_documentAttributeFilename, Data2: m.Data2, } } -func (m *TLAuthSentCodeTypeCall) SetLength(v int32) { m.Data2.Length = v } -func (m *TLAuthSentCodeTypeCall) GetLength() int32 { return m.Data2.Length } +func (m *TLDocumentAttributeFilename) SetFileName(v string) { m.Data2.FileName = v } +func (m *TLDocumentAttributeFilename) GetFileName() string { return m.Data2.FileName } -func NewTLAuthSentCodeTypeCall() *TLAuthSentCodeTypeCall { - return &TLAuthSentCodeTypeCall{Data2: &Auth_SentCodeType_Data{}} +func NewTLDocumentAttributeFilename() *TLDocumentAttributeFilename { + return &TLDocumentAttributeFilename{Data2: &DocumentAttribute_Data{}} } -func (m *TLAuthSentCodeTypeCall) Encode() []byte { +func (m *TLDocumentAttributeFilename) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeCall)) + x.Int(int32(TLConstructor_CRC32_documentAttributeFilename)) - x.Int(m.GetLength()) + x.String(m.GetFileName()) return x.buf } -func (m *TLAuthSentCodeTypeCall) EncodeToLayer(layer int) []byte { +func (m *TLDocumentAttributeFilename) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeCall)) + x.Int(int32(TLConstructor_CRC32_documentAttributeFilename)) - x.Int(m.GetLength()) + x.String(m.GetFileName()) return x.buf } -func (m *TLAuthSentCodeTypeCall) Decode(dbuf *DecodeBuf) error { - m.SetLength(dbuf.Int()) +func (m *TLDocumentAttributeFilename) Decode(dbuf *DecodeBuf) error { + m.SetFileName(dbuf.String()) return dbuf.err } -// auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType; -func (m *TLAuthSentCodeTypeFlashCall) To_Auth_SentCodeType() *Auth_SentCodeType { - return &Auth_SentCodeType{ - Constructor: TLConstructor_CRC32_auth_sentCodeTypeFlashCall, +// documentAttributeHasStickers#9801d2f7 = DocumentAttribute; +func (m *TLDocumentAttributeHasStickers) To_DocumentAttribute() *DocumentAttribute { + return &DocumentAttribute{ + Constructor: TLConstructor_CRC32_documentAttributeHasStickers, Data2: m.Data2, } } -func (m *TLAuthSentCodeTypeFlashCall) SetPattern(v string) { m.Data2.Pattern = v } -func (m *TLAuthSentCodeTypeFlashCall) GetPattern() string { return m.Data2.Pattern } - -func NewTLAuthSentCodeTypeFlashCall() *TLAuthSentCodeTypeFlashCall { - return &TLAuthSentCodeTypeFlashCall{Data2: &Auth_SentCodeType_Data{}} +func NewTLDocumentAttributeHasStickers() *TLDocumentAttributeHasStickers { + return &TLDocumentAttributeHasStickers{Data2: &DocumentAttribute_Data{}} } -func (m *TLAuthSentCodeTypeFlashCall) Encode() []byte { +func (m *TLDocumentAttributeHasStickers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeFlashCall)) - - x.String(m.GetPattern()) + x.Int(int32(TLConstructor_CRC32_documentAttributeHasStickers)) return x.buf } -func (m *TLAuthSentCodeTypeFlashCall) EncodeToLayer(layer int) []byte { +func (m *TLDocumentAttributeHasStickers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeFlashCall)) - - x.String(m.GetPattern()) + x.Int(int32(TLConstructor_CRC32_documentAttributeHasStickers)) return x.buf } -func (m *TLAuthSentCodeTypeFlashCall) Decode(dbuf *DecodeBuf) error { - m.SetPattern(dbuf.String()) +func (m *TLDocumentAttributeHasStickers) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// DraftMessage <-- -// + TL_DraftMessageEmpty -// + TL_DraftMessage +// Account_Password <-- +// + TL_AccountPassword // -func (m *DraftMessage) Encode() []byte { +func (m *Account_Password) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_draftMessageEmpty: - t := m.To_DraftMessageEmpty() - return t.Encode() - case TLConstructor_CRC32_draftMessage: - t := m.To_DraftMessage() + case TLConstructor_CRC32_account_password: + t := m.To_AccountPassword() return t.Encode() default: @@ -12559,14 +12992,11 @@ func (m *DraftMessage) Encode() []byte { } } -func (m *DraftMessage) EncodeToLayer(layer int) []byte { +func (m *Account_Password) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_draftMessageEmpty: - t := m.To_DraftMessageEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_draftMessage: - t := m.To_DraftMessage() + case TLConstructor_CRC32_account_password: + t := m.To_AccountPassword() return t.EncodeToLayer(layer) default: @@ -12575,15 +13005,11 @@ func (m *DraftMessage) EncodeToLayer(layer int) []byte { } } -func (m *DraftMessage) Decode(dbuf *DecodeBuf) error { +func (m *Account_Password) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_draftMessageEmpty: - m2 := &TLDraftMessageEmpty{Data2: &DraftMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_draftMessage: - m2 := &TLDraftMessage{Data2: &DraftMessage_Data{}} + case TLConstructor_CRC32_account_password: + m2 := &TLAccountPassword{Data2: &Account_Password_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -12593,217 +13019,217 @@ func (m *DraftMessage) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; -func (m *DraftMessage) To_DraftMessageEmpty() *TLDraftMessageEmpty { - return &TLDraftMessageEmpty{ - Data2: m.Data2, - } -} - -// draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector date:int = DraftMessage; -func (m *DraftMessage) To_DraftMessage() *TLDraftMessage { - return &TLDraftMessage{ +// account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password; +func (m *Account_Password) To_AccountPassword() *TLAccountPassword { + return &TLAccountPassword{ Data2: m.Data2, } } -// draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; -func (m *TLDraftMessageEmpty) To_DraftMessage() *DraftMessage { - return &DraftMessage{ - Constructor: TLConstructor_CRC32_draftMessageEmpty, +// account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password; +func (m *TLAccountPassword) To_Account_Password() *Account_Password { + return &Account_Password{ + Constructor: TLConstructor_CRC32_account_password, Data2: m.Data2, } } -func (m *TLDraftMessageEmpty) SetDate(v int32) { m.Data2.Date = v } -func (m *TLDraftMessageEmpty) GetDate() int32 { return m.Data2.Date } - -func NewTLDraftMessageEmpty() *TLDraftMessageEmpty { - return &TLDraftMessageEmpty{Data2: &DraftMessage_Data{}} -} - -func (m *TLDraftMessageEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_draftMessageEmpty)) - - // flags - var flags uint32 = 0 - if m.GetDate() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) - - if m.GetDate() != 0 { - x.Int(m.GetDate()) - } - - return x.buf -} +func (m *TLAccountPassword) SetHasRecovery(v bool) { m.Data2.HasRecovery = v } +func (m *TLAccountPassword) GetHasRecovery() bool { return m.Data2.HasRecovery } -func (m *TLDraftMessageEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_draftMessageEmpty)) +func (m *TLAccountPassword) SetHasSecureValues(v bool) { m.Data2.HasSecureValues = v } +func (m *TLAccountPassword) GetHasSecureValues() bool { return m.Data2.HasSecureValues } - // flags - var flags uint32 = 0 - if m.GetDate() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) +func (m *TLAccountPassword) SetHasPassword(v bool) { m.Data2.HasPassword = v } +func (m *TLAccountPassword) GetHasPassword() bool { return m.Data2.HasPassword } - if m.GetDate() != 0 { - x.Int(m.GetDate()) - } +func (m *TLAccountPassword) SetCurrentAlgo(v *PasswordKdfAlgo) { m.Data2.CurrentAlgo = v } +func (m *TLAccountPassword) GetCurrentAlgo() *PasswordKdfAlgo { return m.Data2.CurrentAlgo } - return x.buf -} +func (m *TLAccountPassword) SetSrp_B(v []byte) { m.Data2.Srp_B = v } +func (m *TLAccountPassword) GetSrp_B() []byte { return m.Data2.Srp_B } -func (m *TLDraftMessageEmpty) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetDate(dbuf.Int()) - } +func (m *TLAccountPassword) SetSrpId(v int64) { m.Data2.SrpId = v } +func (m *TLAccountPassword) GetSrpId() int64 { return m.Data2.SrpId } - return dbuf.err -} +func (m *TLAccountPassword) SetHint(v string) { m.Data2.Hint = v } +func (m *TLAccountPassword) GetHint() string { return m.Data2.Hint } -// draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector date:int = DraftMessage; -func (m *TLDraftMessage) To_DraftMessage() *DraftMessage { - return &DraftMessage{ - Constructor: TLConstructor_CRC32_draftMessage, - Data2: m.Data2, - } +func (m *TLAccountPassword) SetEmailUnconfirmedPattern(v string) { m.Data2.EmailUnconfirmedPattern = v } +func (m *TLAccountPassword) GetEmailUnconfirmedPattern() string { + return m.Data2.EmailUnconfirmedPattern } -func (m *TLDraftMessage) SetNoWebpage(v bool) { m.Data2.NoWebpage = v } -func (m *TLDraftMessage) GetNoWebpage() bool { return m.Data2.NoWebpage } - -func (m *TLDraftMessage) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } -func (m *TLDraftMessage) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } - -func (m *TLDraftMessage) SetMessage(v string) { m.Data2.Message = v } -func (m *TLDraftMessage) GetMessage() string { return m.Data2.Message } +func (m *TLAccountPassword) SetNewAlgo(v *PasswordKdfAlgo) { m.Data2.NewAlgo = v } +func (m *TLAccountPassword) GetNewAlgo() *PasswordKdfAlgo { return m.Data2.NewAlgo } -func (m *TLDraftMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLDraftMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } +func (m *TLAccountPassword) SetNewSecureAlgo(v *SecurePasswordKdfAlgo) { m.Data2.NewSecureAlgo = v } +func (m *TLAccountPassword) GetNewSecureAlgo() *SecurePasswordKdfAlgo { return m.Data2.NewSecureAlgo } -func (m *TLDraftMessage) SetDate(v int32) { m.Data2.Date = v } -func (m *TLDraftMessage) GetDate() int32 { return m.Data2.Date } +func (m *TLAccountPassword) SetSecureRandom(v []byte) { m.Data2.SecureRandom = v } +func (m *TLAccountPassword) GetSecureRandom() []byte { return m.Data2.SecureRandom } -func NewTLDraftMessage() *TLDraftMessage { - return &TLDraftMessage{Data2: &DraftMessage_Data{}} +func NewTLAccountPassword() *TLAccountPassword { + return &TLAccountPassword{Data2: &Account_Password_Data{}} } -func (m *TLDraftMessage) Encode() []byte { +func (m *TLAccountPassword) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_draftMessage)) + x.Int(int32(TLConstructor_CRC32_account_password)) // flags var flags uint32 = 0 - if m.GetNoWebpage() == true { + if m.GetHasRecovery() == true { + flags |= 1 << 0 + } + if m.GetHasSecureValues() == true { flags |= 1 << 1 } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 0 + if m.GetHasPassword() == true { + flags |= 1 << 2 } - if m.GetEntities() != nil { + if m.GetCurrentAlgo() != nil { + flags |= 1 << 2 + } + if m.GetSrp_B() != nil { + flags |= 1 << 2 + } + if m.GetSrpId() != 0 { + flags |= 1 << 2 + } + if m.GetHint() != "" { flags |= 1 << 3 } + if m.GetEmailUnconfirmedPattern() != "" { + flags |= 1 << 4 + } x.UInt(flags) - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) + if m.GetCurrentAlgo() != nil { + x.Bytes(m.GetCurrentAlgo().Encode()) } - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } + if m.GetSrp_B() != nil { + x.StringBytes(m.GetSrp_B()) } - x.Int(m.GetDate()) + if m.GetSrpId() != 0 { + x.Long(m.GetSrpId()) + } + if m.GetHint() != "" { + x.String(m.GetHint()) + } + if m.GetEmailUnconfirmedPattern() != "" { + x.String(m.GetEmailUnconfirmedPattern()) + } + x.Bytes(m.GetNewAlgo().Encode()) + x.Bytes(m.GetNewSecureAlgo().Encode()) + x.StringBytes(m.GetSecureRandom()) return x.buf } -func (m *TLDraftMessage) EncodeToLayer(layer int) []byte { +func (m *TLAccountPassword) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_draftMessage)) + x.Int(int32(TLConstructor_CRC32_account_password)) // flags var flags uint32 = 0 - if m.GetNoWebpage() == true { + if m.GetHasRecovery() == true { + flags |= 1 << 0 + } + if m.GetHasSecureValues() == true { flags |= 1 << 1 } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 0 + if m.GetHasPassword() == true { + flags |= 1 << 2 } - if m.GetEntities() != nil { + if m.GetCurrentAlgo() != nil { + flags |= 1 << 2 + } + if m.GetSrp_B() != nil { + flags |= 1 << 2 + } + if m.GetSrpId() != 0 { + flags |= 1 << 2 + } + if m.GetHint() != "" { flags |= 1 << 3 } + if m.GetEmailUnconfirmedPattern() != "" { + flags |= 1 << 4 + } x.UInt(flags) - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) + if m.GetCurrentAlgo() != nil { + x.Bytes(m.GetCurrentAlgo().EncodeToLayer(layer)) } - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + if m.GetSrp_B() != nil { + x.StringBytes(m.GetSrp_B()) } - x.Int(m.GetDate()) + if m.GetSrpId() != 0 { + x.Long(m.GetSrpId()) + } + if m.GetHint() != "" { + x.String(m.GetHint()) + } + if m.GetEmailUnconfirmedPattern() != "" { + x.String(m.GetEmailUnconfirmedPattern()) + } + x.Bytes(m.GetNewAlgo().EncodeToLayer(layer)) + x.Bytes(m.GetNewSecureAlgo().EncodeToLayer(layer)) + x.StringBytes(m.GetSecureRandom()) return x.buf } -func (m *TLDraftMessage) Decode(dbuf *DecodeBuf) error { +func (m *TLAccountPassword) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags + if (flags & (1 << 0)) != 0 { + m.SetHasRecovery(true) + } if (flags & (1 << 1)) != 0 { - m.SetNoWebpage(true) + m.SetHasSecureValues(true) } - if (flags & (1 << 0)) != 0 { - m.SetReplyToMsgId(dbuf.Int()) + if (flags & (1 << 2)) != 0 { + m.SetHasPassword(true) + } + if (flags & (1 << 2)) != 0 { + m5 := &PasswordKdfAlgo{} + m5.Decode(dbuf) + m.SetCurrentAlgo(m5) + } + if (flags & (1 << 2)) != 0 { + m.SetSrp_B(dbuf.StringBytes()) + } + if (flags & (1 << 2)) != 0 { + m.SetSrpId(dbuf.Long()) } - m.SetMessage(dbuf.String()) if (flags & (1 << 3)) != 0 { - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err - } - l5 := dbuf.Int() - v5 := make([]*MessageEntity, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &MessageEntity{} - v5[i].Decode(dbuf) - } - m.SetEntities(v5) - + m.SetHint(dbuf.String()) } - m.SetDate(dbuf.Int()) + if (flags & (1 << 4)) != 0 { + m.SetEmailUnconfirmedPattern(dbuf.String()) + } + m10 := &PasswordKdfAlgo{} + m10.Decode(dbuf) + m.SetNewAlgo(m10) + m11 := &SecurePasswordKdfAlgo{} + m11.Decode(dbuf) + m.SetNewSecureAlgo(m11) + m.SetSecureRandom(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputStickeredMedia <-- -// + TL_InputStickeredMediaPhoto -// + TL_InputStickeredMediaDocument +// ExportedMessageLink <-- +// + TL_ExportedMessageLink // -func (m *InputStickeredMedia) Encode() []byte { +func (m *ExportedMessageLink) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputStickeredMediaPhoto: - t := m.To_InputStickeredMediaPhoto() - return t.Encode() - case TLConstructor_CRC32_inputStickeredMediaDocument: - t := m.To_InputStickeredMediaDocument() + case TLConstructor_CRC32_exportedMessageLink: + t := m.To_ExportedMessageLink() return t.Encode() default: @@ -12812,14 +13238,11 @@ func (m *InputStickeredMedia) Encode() []byte { } } -func (m *InputStickeredMedia) EncodeToLayer(layer int) []byte { +func (m *ExportedMessageLink) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputStickeredMediaPhoto: - t := m.To_InputStickeredMediaPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputStickeredMediaDocument: - t := m.To_InputStickeredMediaDocument() + case TLConstructor_CRC32_exportedMessageLink: + t := m.To_ExportedMessageLink() return t.EncodeToLayer(layer) default: @@ -12828,15 +13251,11 @@ func (m *InputStickeredMedia) EncodeToLayer(layer int) []byte { } } -func (m *InputStickeredMedia) Decode(dbuf *DecodeBuf) error { +func (m *ExportedMessageLink) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputStickeredMediaPhoto: - m2 := &TLInputStickeredMediaPhoto{Data2: &InputStickeredMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputStickeredMediaDocument: - m2 := &TLInputStickeredMediaDocument{Data2: &InputStickeredMedia_Data{}} + case TLConstructor_CRC32_exportedMessageLink: + m2 := &TLExportedMessageLink{Data2: &ExportedMessageLink_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -12846,111 +13265,67 @@ func (m *InputStickeredMedia) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia; -func (m *InputStickeredMedia) To_InputStickeredMediaPhoto() *TLInputStickeredMediaPhoto { - return &TLInputStickeredMediaPhoto{ - Data2: m.Data2, - } -} - -// inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia; -func (m *InputStickeredMedia) To_InputStickeredMediaDocument() *TLInputStickeredMediaDocument { - return &TLInputStickeredMediaDocument{ +// exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink; +func (m *ExportedMessageLink) To_ExportedMessageLink() *TLExportedMessageLink { + return &TLExportedMessageLink{ Data2: m.Data2, } } -// inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia; -func (m *TLInputStickeredMediaPhoto) To_InputStickeredMedia() *InputStickeredMedia { - return &InputStickeredMedia{ - Constructor: TLConstructor_CRC32_inputStickeredMediaPhoto, +// exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink; +func (m *TLExportedMessageLink) To_ExportedMessageLink() *ExportedMessageLink { + return &ExportedMessageLink{ + Constructor: TLConstructor_CRC32_exportedMessageLink, Data2: m.Data2, } } -func (m *TLInputStickeredMediaPhoto) SetId(v *InputPhoto) { m.Data2.Id_1 = v } -func (m *TLInputStickeredMediaPhoto) GetId() *InputPhoto { return m.Data2.Id_1 } - -func NewTLInputStickeredMediaPhoto() *TLInputStickeredMediaPhoto { - return &TLInputStickeredMediaPhoto{Data2: &InputStickeredMedia_Data{}} -} - -func (m *TLInputStickeredMediaPhoto) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickeredMediaPhoto)) - - x.Bytes(m.GetId().Encode()) - - return x.buf -} - -func (m *TLInputStickeredMediaPhoto) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickeredMediaPhoto)) - - x.Bytes(m.GetId().EncodeToLayer(layer)) - - return x.buf -} - -func (m *TLInputStickeredMediaPhoto) Decode(dbuf *DecodeBuf) error { - m1 := &InputPhoto{} - m1.Decode(dbuf) - m.SetId(m1) - - return dbuf.err -} - -// inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia; -func (m *TLInputStickeredMediaDocument) To_InputStickeredMedia() *InputStickeredMedia { - return &InputStickeredMedia{ - Constructor: TLConstructor_CRC32_inputStickeredMediaDocument, - Data2: m.Data2, - } -} +func (m *TLExportedMessageLink) SetLink(v string) { m.Data2.Link = v } +func (m *TLExportedMessageLink) GetLink() string { return m.Data2.Link } -func (m *TLInputStickeredMediaDocument) SetId(v *InputDocument) { m.Data2.Id_2 = v } -func (m *TLInputStickeredMediaDocument) GetId() *InputDocument { return m.Data2.Id_2 } +func (m *TLExportedMessageLink) SetHtml(v string) { m.Data2.Html = v } +func (m *TLExportedMessageLink) GetHtml() string { return m.Data2.Html } -func NewTLInputStickeredMediaDocument() *TLInputStickeredMediaDocument { - return &TLInputStickeredMediaDocument{Data2: &InputStickeredMedia_Data{}} +func NewTLExportedMessageLink() *TLExportedMessageLink { + return &TLExportedMessageLink{Data2: &ExportedMessageLink_Data{}} } -func (m *TLInputStickeredMediaDocument) Encode() []byte { +func (m *TLExportedMessageLink) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickeredMediaDocument)) + x.Int(int32(TLConstructor_CRC32_exportedMessageLink)) - x.Bytes(m.GetId().Encode()) + x.String(m.GetLink()) + x.String(m.GetHtml()) return x.buf } -func (m *TLInputStickeredMediaDocument) EncodeToLayer(layer int) []byte { +func (m *TLExportedMessageLink) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickeredMediaDocument)) + x.Int(int32(TLConstructor_CRC32_exportedMessageLink)) - x.Bytes(m.GetId().EncodeToLayer(layer)) + x.String(m.GetLink()) + x.String(m.GetHtml()) return x.buf } -func (m *TLInputStickeredMediaDocument) Decode(dbuf *DecodeBuf) error { - m1 := &InputDocument{} - m1.Decode(dbuf) - m.SetId(m1) +func (m *TLExportedMessageLink) Decode(dbuf *DecodeBuf) error { + m.SetLink(dbuf.String()) + m.SetHtml(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputSecureValue <-- -// + TL_InputSecureValue +// MessageFwdHeader <-- +// + TL_MessageFwdHeader // -func (m *InputSecureValue) Encode() []byte { +func (m *MessageFwdHeader) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputSecureValue: - t := m.To_InputSecureValue() + case TLConstructor_CRC32_messageFwdHeader: + t := m.To_MessageFwdHeader() return t.Encode() default: @@ -12959,11 +13334,11 @@ func (m *InputSecureValue) Encode() []byte { } } -func (m *InputSecureValue) EncodeToLayer(layer int) []byte { +func (m *MessageFwdHeader) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputSecureValue: - t := m.To_InputSecureValue() + case TLConstructor_CRC32_messageFwdHeader: + t := m.To_MessageFwdHeader() return t.EncodeToLayer(layer) default: @@ -12972,11 +13347,11 @@ func (m *InputSecureValue) EncodeToLayer(layer int) []byte { } } -func (m *InputSecureValue) Decode(dbuf *DecodeBuf) error { +func (m *MessageFwdHeader) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputSecureValue: - m2 := &TLInputSecureValue{Data2: &InputSecureValue_Data{}} + case TLConstructor_CRC32_messageFwdHeader: + m2 := &TLMessageFwdHeader{Data2: &MessageFwdHeader_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -12986,257 +13361,181 @@ func (m *InputSecureValue) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue; -func (m *InputSecureValue) To_InputSecureValue() *TLInputSecureValue { - return &TLInputSecureValue{ +// messageFwdHeader#559ebe6d flags:# from_id:flags.0?int date:int channel_id:flags.1?int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int = MessageFwdHeader; +func (m *MessageFwdHeader) To_MessageFwdHeader() *TLMessageFwdHeader { + return &TLMessageFwdHeader{ Data2: m.Data2, } } -// inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue; -func (m *TLInputSecureValue) To_InputSecureValue() *InputSecureValue { - return &InputSecureValue{ - Constructor: TLConstructor_CRC32_inputSecureValue, +// messageFwdHeader#559ebe6d flags:# from_id:flags.0?int date:int channel_id:flags.1?int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int = MessageFwdHeader; +func (m *TLMessageFwdHeader) To_MessageFwdHeader() *MessageFwdHeader { + return &MessageFwdHeader{ + Constructor: TLConstructor_CRC32_messageFwdHeader, Data2: m.Data2, } } -func (m *TLInputSecureValue) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLInputSecureValue) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLInputSecureValue) SetData(v *SecureData) { m.Data2.Data = v } -func (m *TLInputSecureValue) GetData() *SecureData { return m.Data2.Data } +func (m *TLMessageFwdHeader) SetFromId(v int32) { m.Data2.FromId = v } +func (m *TLMessageFwdHeader) GetFromId() int32 { return m.Data2.FromId } -func (m *TLInputSecureValue) SetFrontSide(v *InputSecureFile) { m.Data2.FrontSide = v } -func (m *TLInputSecureValue) GetFrontSide() *InputSecureFile { return m.Data2.FrontSide } +func (m *TLMessageFwdHeader) SetDate(v int32) { m.Data2.Date = v } +func (m *TLMessageFwdHeader) GetDate() int32 { return m.Data2.Date } -func (m *TLInputSecureValue) SetReverseSide(v *InputSecureFile) { m.Data2.ReverseSide = v } -func (m *TLInputSecureValue) GetReverseSide() *InputSecureFile { return m.Data2.ReverseSide } +func (m *TLMessageFwdHeader) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLMessageFwdHeader) GetChannelId() int32 { return m.Data2.ChannelId } -func (m *TLInputSecureValue) SetSelfie(v *InputSecureFile) { m.Data2.Selfie = v } -func (m *TLInputSecureValue) GetSelfie() *InputSecureFile { return m.Data2.Selfie } +func (m *TLMessageFwdHeader) SetChannelPost(v int32) { m.Data2.ChannelPost = v } +func (m *TLMessageFwdHeader) GetChannelPost() int32 { return m.Data2.ChannelPost } -func (m *TLInputSecureValue) SetTranslation(v []*InputSecureFile) { m.Data2.Translation = v } -func (m *TLInputSecureValue) GetTranslation() []*InputSecureFile { return m.Data2.Translation } +func (m *TLMessageFwdHeader) SetPostAuthor(v string) { m.Data2.PostAuthor = v } +func (m *TLMessageFwdHeader) GetPostAuthor() string { return m.Data2.PostAuthor } -func (m *TLInputSecureValue) SetFiles(v []*InputSecureFile) { m.Data2.Files = v } -func (m *TLInputSecureValue) GetFiles() []*InputSecureFile { return m.Data2.Files } +func (m *TLMessageFwdHeader) SetSavedFromPeer(v *Peer) { m.Data2.SavedFromPeer = v } +func (m *TLMessageFwdHeader) GetSavedFromPeer() *Peer { return m.Data2.SavedFromPeer } -func (m *TLInputSecureValue) SetPlainData(v *SecurePlainData) { m.Data2.PlainData = v } -func (m *TLInputSecureValue) GetPlainData() *SecurePlainData { return m.Data2.PlainData } +func (m *TLMessageFwdHeader) SetSavedFromMsgId(v int32) { m.Data2.SavedFromMsgId = v } +func (m *TLMessageFwdHeader) GetSavedFromMsgId() int32 { return m.Data2.SavedFromMsgId } -func NewTLInputSecureValue() *TLInputSecureValue { - return &TLInputSecureValue{Data2: &InputSecureValue_Data{}} +func NewTLMessageFwdHeader() *TLMessageFwdHeader { + return &TLMessageFwdHeader{Data2: &MessageFwdHeader_Data{}} } -func (m *TLInputSecureValue) Encode() []byte { +func (m *TLMessageFwdHeader) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSecureValue)) + x.Int(int32(TLConstructor_CRC32_messageFwdHeader)) // flags var flags uint32 = 0 - if m.GetData() != nil { + if m.GetFromId() != 0 { flags |= 1 << 0 } - if m.GetFrontSide() != nil { + if m.GetChannelId() != 0 { flags |= 1 << 1 } - if m.GetReverseSide() != nil { + if m.GetChannelPost() != 0 { flags |= 1 << 2 } - if m.GetSelfie() != nil { + if m.GetPostAuthor() != "" { flags |= 1 << 3 } - if m.GetTranslation() != nil { - flags |= 1 << 6 - } - if m.GetFiles() != nil { + if m.GetSavedFromPeer() != nil { flags |= 1 << 4 } - if m.GetPlainData() != nil { - flags |= 1 << 5 + if m.GetSavedFromMsgId() != 0 { + flags |= 1 << 4 } x.UInt(flags) - x.Bytes(m.GetType().Encode()) - if m.GetData() != nil { - x.Bytes(m.GetData().Encode()) - } - if m.GetFrontSide() != nil { - x.Bytes(m.GetFrontSide().Encode()) + if m.GetFromId() != 0 { + x.Int(m.GetFromId()) } - if m.GetReverseSide() != nil { - x.Bytes(m.GetReverseSide().Encode()) + x.Int(m.GetDate()) + if m.GetChannelId() != 0 { + x.Int(m.GetChannelId()) } - if m.GetSelfie() != nil { - x.Bytes(m.GetSelfie().Encode()) + if m.GetChannelPost() != 0 { + x.Int(m.GetChannelPost()) } - if m.GetTranslation() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTranslation()))) - for _, v := range m.GetTranslation() { - x.buf = append(x.buf, (*v).Encode()...) - } + if m.GetPostAuthor() != "" { + x.String(m.GetPostAuthor()) } - if m.GetFiles() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetFiles()))) - for _, v := range m.GetFiles() { - x.buf = append(x.buf, (*v).Encode()...) - } + if m.GetSavedFromPeer() != nil { + x.Bytes(m.GetSavedFromPeer().Encode()) } - if m.GetPlainData() != nil { - x.Bytes(m.GetPlainData().Encode()) + if m.GetSavedFromMsgId() != 0 { + x.Int(m.GetSavedFromMsgId()) } return x.buf } -func (m *TLInputSecureValue) EncodeToLayer(layer int) []byte { +func (m *TLMessageFwdHeader) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSecureValue)) + x.Int(int32(TLConstructor_CRC32_messageFwdHeader)) // flags var flags uint32 = 0 - if m.GetData() != nil { + if m.GetFromId() != 0 { flags |= 1 << 0 } - if m.GetFrontSide() != nil { + if m.GetChannelId() != 0 { flags |= 1 << 1 } - if m.GetReverseSide() != nil { + if m.GetChannelPost() != 0 { flags |= 1 << 2 } - if m.GetSelfie() != nil { + if m.GetPostAuthor() != "" { flags |= 1 << 3 } - if m.GetTranslation() != nil { - flags |= 1 << 6 - } - if m.GetFiles() != nil { + if m.GetSavedFromPeer() != nil { flags |= 1 << 4 } - if m.GetPlainData() != nil { - flags |= 1 << 5 + if m.GetSavedFromMsgId() != 0 { + flags |= 1 << 4 } x.UInt(flags) - x.Bytes(m.GetType().EncodeToLayer(layer)) - if m.GetData() != nil { - x.Bytes(m.GetData().EncodeToLayer(layer)) - } - if m.GetFrontSide() != nil { - x.Bytes(m.GetFrontSide().EncodeToLayer(layer)) + if m.GetFromId() != 0 { + x.Int(m.GetFromId()) } - if m.GetReverseSide() != nil { - x.Bytes(m.GetReverseSide().EncodeToLayer(layer)) + x.Int(m.GetDate()) + if m.GetChannelId() != 0 { + x.Int(m.GetChannelId()) } - if m.GetSelfie() != nil { - x.Bytes(m.GetSelfie().EncodeToLayer(layer)) + if m.GetChannelPost() != 0 { + x.Int(m.GetChannelPost()) } - if m.GetTranslation() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTranslation()))) - for _, v := range m.GetTranslation() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + if m.GetPostAuthor() != "" { + x.String(m.GetPostAuthor()) } - if m.GetFiles() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetFiles()))) - for _, v := range m.GetFiles() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + if m.GetSavedFromPeer() != nil { + x.Bytes(m.GetSavedFromPeer().EncodeToLayer(layer)) } - if m.GetPlainData() != nil { - x.Bytes(m.GetPlainData().EncodeToLayer(layer)) + if m.GetSavedFromMsgId() != 0 { + x.Int(m.GetSavedFromMsgId()) } return x.buf } -func (m *TLInputSecureValue) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageFwdHeader) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m2 := &SecureValueType{} - m2.Decode(dbuf) - m.SetType(m2) if (flags & (1 << 0)) != 0 { - m3 := &SecureData{} - m3.Decode(dbuf) - m.SetData(m3) + m.SetFromId(dbuf.Int()) } + m.SetDate(dbuf.Int()) if (flags & (1 << 1)) != 0 { - m4 := &InputSecureFile{} - m4.Decode(dbuf) - m.SetFrontSide(m4) + m.SetChannelId(dbuf.Int()) } if (flags & (1 << 2)) != 0 { - m5 := &InputSecureFile{} - m5.Decode(dbuf) - m.SetReverseSide(m5) + m.SetChannelPost(dbuf.Int()) } if (flags & (1 << 3)) != 0 { - m6 := &InputSecureFile{} - m6.Decode(dbuf) - m.SetSelfie(m6) - } - if (flags & (1 << 6)) != 0 { - c7 := dbuf.Int() - if c7 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) - return dbuf.err - } - l7 := dbuf.Int() - v7 := make([]*InputSecureFile, l7) - for i := int32(0); i < l7; i++ { - v7[i] = &InputSecureFile{} - v7[i].Decode(dbuf) - } - m.SetTranslation(v7) - + m.SetPostAuthor(dbuf.String()) } if (flags & (1 << 4)) != 0 { - c8 := dbuf.Int() - if c8 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) - return dbuf.err - } - l8 := dbuf.Int() - v8 := make([]*InputSecureFile, l8) - for i := int32(0); i < l8; i++ { - v8[i] = &InputSecureFile{} - v8[i].Decode(dbuf) - } - m.SetFiles(v8) - + m7 := &Peer{} + m7.Decode(dbuf) + m.SetSavedFromPeer(m7) } - if (flags & (1 << 5)) != 0 { - m9 := &SecurePlainData{} - m9.Decode(dbuf) - m.SetPlainData(m9) + if (flags & (1 << 4)) != 0 { + m.SetSavedFromMsgId(dbuf.Int()) } return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputChatPhoto <-- -// + TL_InputChatPhotoEmpty -// + TL_InputChatUploadedPhoto -// + TL_InputChatPhoto +// True <-- +// + TL_True // -func (m *InputChatPhoto) Encode() []byte { +func (m *True) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputChatPhotoEmpty: - t := m.To_InputChatPhotoEmpty() - return t.Encode() - case TLConstructor_CRC32_inputChatUploadedPhoto: - t := m.To_InputChatUploadedPhoto() - return t.Encode() - case TLConstructor_CRC32_inputChatPhoto: - t := m.To_InputChatPhoto() + case TLConstructor_CRC32_true: + t := m.To_True() return t.Encode() default: @@ -13245,17 +13544,11 @@ func (m *InputChatPhoto) Encode() []byte { } } -func (m *InputChatPhoto) EncodeToLayer(layer int) []byte { +func (m *True) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputChatPhotoEmpty: - t := m.To_InputChatPhotoEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputChatUploadedPhoto: - t := m.To_InputChatUploadedPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputChatPhoto: - t := m.To_InputChatPhoto() + case TLConstructor_CRC32_true: + t := m.To_True() return t.EncodeToLayer(layer) default: @@ -13264,19 +13557,11 @@ func (m *InputChatPhoto) EncodeToLayer(layer int) []byte { } } -func (m *InputChatPhoto) Decode(dbuf *DecodeBuf) error { +func (m *True) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputChatPhotoEmpty: - m2 := &TLInputChatPhotoEmpty{Data2: &InputChatPhoto_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputChatUploadedPhoto: - m2 := &TLInputChatUploadedPhoto{Data2: &InputChatPhoto_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputChatPhoto: - m2 := &TLInputChatPhoto{Data2: &InputChatPhoto_Data{}} + case TLConstructor_CRC32_true: + m2 := &TLTrue{Data2: &True_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -13286,149 +13571,202 @@ func (m *InputChatPhoto) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; -func (m *InputChatPhoto) To_InputChatPhotoEmpty() *TLInputChatPhotoEmpty { - return &TLInputChatPhotoEmpty{ - Data2: m.Data2, - } -} - -// inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto; -func (m *InputChatPhoto) To_InputChatUploadedPhoto() *TLInputChatUploadedPhoto { - return &TLInputChatUploadedPhoto{ - Data2: m.Data2, - } -} - -// inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; -func (m *InputChatPhoto) To_InputChatPhoto() *TLInputChatPhoto { - return &TLInputChatPhoto{ +// true#3fedd339 = True; +func (m *True) To_True() *TLTrue { + return &TLTrue{ Data2: m.Data2, } } -// inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; -func (m *TLInputChatPhotoEmpty) To_InputChatPhoto() *InputChatPhoto { - return &InputChatPhoto{ - Constructor: TLConstructor_CRC32_inputChatPhotoEmpty, +// true#3fedd339 = True; +func (m *TLTrue) To_True() *True { + return &True{ + Constructor: TLConstructor_CRC32_true, Data2: m.Data2, } } -func NewTLInputChatPhotoEmpty() *TLInputChatPhotoEmpty { - return &TLInputChatPhotoEmpty{Data2: &InputChatPhoto_Data{}} +func NewTLTrue() *TLTrue { + return &TLTrue{Data2: &True_Data{}} } -func (m *TLInputChatPhotoEmpty) Encode() []byte { +func (m *TLTrue) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChatPhotoEmpty)) + x.Int(int32(TLConstructor_CRC32_true)) return x.buf } -func (m *TLInputChatPhotoEmpty) EncodeToLayer(layer int) []byte { +func (m *TLTrue) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChatPhotoEmpty)) + x.Int(int32(TLConstructor_CRC32_true)) return x.buf } -func (m *TLInputChatPhotoEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLTrue) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto; -func (m *TLInputChatUploadedPhoto) To_InputChatPhoto() *InputChatPhoto { - return &InputChatPhoto{ - Constructor: TLConstructor_CRC32_inputChatUploadedPhoto, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// ChatPhoto <-- +// + TL_ChatPhotoEmpty +// + TL_ChatPhoto +// + +func (m *ChatPhoto) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_chatPhotoEmpty: + t := m.To_ChatPhotoEmpty() + return t.Encode() + case TLConstructor_CRC32_chatPhoto: + t := m.To_ChatPhoto() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLInputChatUploadedPhoto) SetFile(v *InputFile) { m.Data2.File = v } -func (m *TLInputChatUploadedPhoto) GetFile() *InputFile { return m.Data2.File } +func (m *ChatPhoto) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_chatPhotoEmpty: + t := m.To_ChatPhotoEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_chatPhoto: + t := m.To_ChatPhoto() + return t.EncodeToLayer(layer) -func NewTLInputChatUploadedPhoto() *TLInputChatUploadedPhoto { - return &TLInputChatUploadedPhoto{Data2: &InputChatPhoto_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputChatUploadedPhoto) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChatUploadedPhoto)) +func (m *ChatPhoto) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_chatPhotoEmpty: + m2 := &TLChatPhotoEmpty{Data2: &ChatPhoto_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_chatPhoto: + m2 := &TLChatPhoto{Data2: &ChatPhoto_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - x.Bytes(m.GetFile().Encode()) + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} - return x.buf +// chatPhotoEmpty#37c1011c = ChatPhoto; +func (m *ChatPhoto) To_ChatPhotoEmpty() *TLChatPhotoEmpty { + return &TLChatPhotoEmpty{ + Data2: m.Data2, + } } -func (m *TLInputChatUploadedPhoto) EncodeToLayer(layer int) []byte { +// chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto; +func (m *ChatPhoto) To_ChatPhoto() *TLChatPhoto { + return &TLChatPhoto{ + Data2: m.Data2, + } +} + +// chatPhotoEmpty#37c1011c = ChatPhoto; +func (m *TLChatPhotoEmpty) To_ChatPhoto() *ChatPhoto { + return &ChatPhoto{ + Constructor: TLConstructor_CRC32_chatPhotoEmpty, + Data2: m.Data2, + } +} + +func NewTLChatPhotoEmpty() *TLChatPhotoEmpty { + return &TLChatPhotoEmpty{Data2: &ChatPhoto_Data{}} +} + +func (m *TLChatPhotoEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChatUploadedPhoto)) + x.Int(int32(TLConstructor_CRC32_chatPhotoEmpty)) - x.Bytes(m.GetFile().EncodeToLayer(layer)) + return x.buf +} + +func (m *TLChatPhotoEmpty) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_chatPhotoEmpty)) return x.buf } -func (m *TLInputChatUploadedPhoto) Decode(dbuf *DecodeBuf) error { - m1 := &InputFile{} - m1.Decode(dbuf) - m.SetFile(m1) +func (m *TLChatPhotoEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; -func (m *TLInputChatPhoto) To_InputChatPhoto() *InputChatPhoto { - return &InputChatPhoto{ - Constructor: TLConstructor_CRC32_inputChatPhoto, +// chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto; +func (m *TLChatPhoto) To_ChatPhoto() *ChatPhoto { + return &ChatPhoto{ + Constructor: TLConstructor_CRC32_chatPhoto, Data2: m.Data2, } } -func (m *TLInputChatPhoto) SetId(v *InputPhoto) { m.Data2.Id = v } -func (m *TLInputChatPhoto) GetId() *InputPhoto { return m.Data2.Id } +func (m *TLChatPhoto) SetPhotoSmall(v *FileLocation) { m.Data2.PhotoSmall = v } +func (m *TLChatPhoto) GetPhotoSmall() *FileLocation { return m.Data2.PhotoSmall } -func NewTLInputChatPhoto() *TLInputChatPhoto { - return &TLInputChatPhoto{Data2: &InputChatPhoto_Data{}} +func (m *TLChatPhoto) SetPhotoBig(v *FileLocation) { m.Data2.PhotoBig = v } +func (m *TLChatPhoto) GetPhotoBig() *FileLocation { return m.Data2.PhotoBig } + +func NewTLChatPhoto() *TLChatPhoto { + return &TLChatPhoto{Data2: &ChatPhoto_Data{}} } -func (m *TLInputChatPhoto) Encode() []byte { +func (m *TLChatPhoto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChatPhoto)) + x.Int(int32(TLConstructor_CRC32_chatPhoto)) - x.Bytes(m.GetId().Encode()) + x.Bytes(m.GetPhotoSmall().Encode()) + x.Bytes(m.GetPhotoBig().Encode()) return x.buf } -func (m *TLInputChatPhoto) EncodeToLayer(layer int) []byte { +func (m *TLChatPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputChatPhoto)) + x.Int(int32(TLConstructor_CRC32_chatPhoto)) - x.Bytes(m.GetId().EncodeToLayer(layer)) + x.Bytes(m.GetPhotoSmall().EncodeToLayer(layer)) + x.Bytes(m.GetPhotoBig().EncodeToLayer(layer)) return x.buf } -func (m *TLInputChatPhoto) Decode(dbuf *DecodeBuf) error { - m1 := &InputPhoto{} +func (m *TLChatPhoto) Decode(dbuf *DecodeBuf) error { + m1 := &FileLocation{} m1.Decode(dbuf) - m.SetId(m1) + m.SetPhotoSmall(m1) + m2 := &FileLocation{} + m2.Decode(dbuf) + m.SetPhotoBig(m2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputEncryptedChat <-- -// + TL_InputEncryptedChat +// DcOption <-- +// + TL_DcOption // -func (m *InputEncryptedChat) Encode() []byte { +func (m *DcOption) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputEncryptedChat: - t := m.To_InputEncryptedChat() + case TLConstructor_CRC32_dcOption: + t := m.To_DcOption() return t.Encode() default: @@ -13437,11 +13775,11 @@ func (m *InputEncryptedChat) Encode() []byte { } } -func (m *InputEncryptedChat) EncodeToLayer(layer int) []byte { +func (m *DcOption) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputEncryptedChat: - t := m.To_InputEncryptedChat() + case TLConstructor_CRC32_dcOption: + t := m.To_DcOption() return t.EncodeToLayer(layer) default: @@ -13450,11 +13788,11 @@ func (m *InputEncryptedChat) EncodeToLayer(layer int) []byte { } } -func (m *InputEncryptedChat) Decode(dbuf *DecodeBuf) error { +func (m *DcOption) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputEncryptedChat: - m2 := &TLInputEncryptedChat{Data2: &InputEncryptedChat_Data{}} + case TLConstructor_CRC32_dcOption: + m2 := &TLDcOption{Data2: &DcOption_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -13464,67 +13802,161 @@ func (m *InputEncryptedChat) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat; -func (m *InputEncryptedChat) To_InputEncryptedChat() *TLInputEncryptedChat { - return &TLInputEncryptedChat{ +// dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption; +func (m *DcOption) To_DcOption() *TLDcOption { + return &TLDcOption{ Data2: m.Data2, } } -// inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat; -func (m *TLInputEncryptedChat) To_InputEncryptedChat() *InputEncryptedChat { - return &InputEncryptedChat{ - Constructor: TLConstructor_CRC32_inputEncryptedChat, +// dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption; +func (m *TLDcOption) To_DcOption() *DcOption { + return &DcOption{ + Constructor: TLConstructor_CRC32_dcOption, Data2: m.Data2, } } -func (m *TLInputEncryptedChat) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLInputEncryptedChat) GetChatId() int32 { return m.Data2.ChatId } +func (m *TLDcOption) SetIpv6(v bool) { m.Data2.Ipv6 = v } +func (m *TLDcOption) GetIpv6() bool { return m.Data2.Ipv6 } -func (m *TLInputEncryptedChat) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputEncryptedChat) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLDcOption) SetMediaOnly(v bool) { m.Data2.MediaOnly = v } +func (m *TLDcOption) GetMediaOnly() bool { return m.Data2.MediaOnly } -func NewTLInputEncryptedChat() *TLInputEncryptedChat { - return &TLInputEncryptedChat{Data2: &InputEncryptedChat_Data{}} +func (m *TLDcOption) SetTcpoOnly(v bool) { m.Data2.TcpoOnly = v } +func (m *TLDcOption) GetTcpoOnly() bool { return m.Data2.TcpoOnly } + +func (m *TLDcOption) SetCdn(v bool) { m.Data2.Cdn = v } +func (m *TLDcOption) GetCdn() bool { return m.Data2.Cdn } + +func (m *TLDcOption) SetStatic(v bool) { m.Data2.Static = v } +func (m *TLDcOption) GetStatic() bool { return m.Data2.Static } + +func (m *TLDcOption) SetId(v int32) { m.Data2.Id = v } +func (m *TLDcOption) GetId() int32 { return m.Data2.Id } + +func (m *TLDcOption) SetIpAddress(v string) { m.Data2.IpAddress = v } +func (m *TLDcOption) GetIpAddress() string { return m.Data2.IpAddress } + +func (m *TLDcOption) SetPort(v int32) { m.Data2.Port = v } +func (m *TLDcOption) GetPort() int32 { return m.Data2.Port } + +func (m *TLDcOption) SetSecret(v []byte) { m.Data2.Secret = v } +func (m *TLDcOption) GetSecret() []byte { return m.Data2.Secret } + +func NewTLDcOption() *TLDcOption { + return &TLDcOption{Data2: &DcOption_Data{}} } -func (m *TLInputEncryptedChat) Encode() []byte { +func (m *TLDcOption) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedChat)) + x.Int(int32(TLConstructor_CRC32_dcOption)) - x.Int(m.GetChatId()) - x.Long(m.GetAccessHash()) + // flags + var flags uint32 = 0 + if m.GetIpv6() == true { + flags |= 1 << 0 + } + if m.GetMediaOnly() == true { + flags |= 1 << 1 + } + if m.GetTcpoOnly() == true { + flags |= 1 << 2 + } + if m.GetCdn() == true { + flags |= 1 << 3 + } + if m.GetStatic() == true { + flags |= 1 << 4 + } + if m.GetSecret() != nil { + flags |= 1 << 10 + } + x.UInt(flags) + + x.Int(m.GetId()) + x.String(m.GetIpAddress()) + x.Int(m.GetPort()) + if m.GetSecret() != nil { + x.StringBytes(m.GetSecret()) + } return x.buf } -func (m *TLInputEncryptedChat) EncodeToLayer(layer int) []byte { +func (m *TLDcOption) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedChat)) + x.Int(int32(TLConstructor_CRC32_dcOption)) - x.Int(m.GetChatId()) - x.Long(m.GetAccessHash()) + // flags + var flags uint32 = 0 + if m.GetIpv6() == true { + flags |= 1 << 0 + } + if m.GetMediaOnly() == true { + flags |= 1 << 1 + } + if m.GetTcpoOnly() == true { + flags |= 1 << 2 + } + if m.GetCdn() == true { + flags |= 1 << 3 + } + if m.GetStatic() == true { + flags |= 1 << 4 + } + if m.GetSecret() != nil { + flags |= 1 << 10 + } + x.UInt(flags) + + x.Int(m.GetId()) + x.String(m.GetIpAddress()) + x.Int(m.GetPort()) + if m.GetSecret() != nil { + x.StringBytes(m.GetSecret()) + } return x.buf } -func (m *TLInputEncryptedChat) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) - m.SetAccessHash(dbuf.Long()) +func (m *TLDcOption) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetIpv6(true) + } + if (flags & (1 << 1)) != 0 { + m.SetMediaOnly(true) + } + if (flags & (1 << 2)) != 0 { + m.SetTcpoOnly(true) + } + if (flags & (1 << 3)) != 0 { + m.SetCdn(true) + } + if (flags & (1 << 4)) != 0 { + m.SetStatic(true) + } + m.SetId(dbuf.Int()) + m.SetIpAddress(dbuf.String()) + m.SetPort(dbuf.Int()) + if (flags & (1 << 10)) != 0 { + m.SetSecret(dbuf.StringBytes()) + } return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_PeerDialogs <-- -// + TL_MessagesPeerDialogs +// Channels_ChannelParticipant <-- +// + TL_ChannelsChannelParticipant // -func (m *Messages_PeerDialogs) Encode() []byte { +func (m *Channels_ChannelParticipant) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_peerDialogs: - t := m.To_MessagesPeerDialogs() + case TLConstructor_CRC32_channels_channelParticipant: + t := m.To_ChannelsChannelParticipant() return t.Encode() default: @@ -13533,11 +13965,11 @@ func (m *Messages_PeerDialogs) Encode() []byte { } } -func (m *Messages_PeerDialogs) EncodeToLayer(layer int) []byte { +func (m *Channels_ChannelParticipant) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_peerDialogs: - t := m.To_MessagesPeerDialogs() + case TLConstructor_CRC32_channels_channelParticipant: + t := m.To_ChannelsChannelParticipant() return t.EncodeToLayer(layer) default: @@ -13546,11 +13978,11 @@ func (m *Messages_PeerDialogs) EncodeToLayer(layer int) []byte { } } -func (m *Messages_PeerDialogs) Decode(dbuf *DecodeBuf) error { +func (m *Channels_ChannelParticipant) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_peerDialogs: - m2 := &TLMessagesPeerDialogs{Data2: &Messages_PeerDialogs_Data{}} + case TLConstructor_CRC32_channels_channelParticipant: + m2 := &TLChannelsChannelParticipant{Data2: &Channels_ChannelParticipant_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -13560,255 +13992,90 @@ func (m *Messages_PeerDialogs) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs; -func (m *Messages_PeerDialogs) To_MessagesPeerDialogs() *TLMessagesPeerDialogs { - return &TLMessagesPeerDialogs{ +// channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector = channels.ChannelParticipant; +func (m *Channels_ChannelParticipant) To_ChannelsChannelParticipant() *TLChannelsChannelParticipant { + return &TLChannelsChannelParticipant{ Data2: m.Data2, } } -// messages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs; -func (m *TLMessagesPeerDialogs) To_Messages_PeerDialogs() *Messages_PeerDialogs { - return &Messages_PeerDialogs{ - Constructor: TLConstructor_CRC32_messages_peerDialogs, +// channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector = channels.ChannelParticipant; +func (m *TLChannelsChannelParticipant) To_Channels_ChannelParticipant() *Channels_ChannelParticipant { + return &Channels_ChannelParticipant{ + Constructor: TLConstructor_CRC32_channels_channelParticipant, Data2: m.Data2, } } -func (m *TLMessagesPeerDialogs) SetDialogs(v []*Dialog) { m.Data2.Dialogs = v } -func (m *TLMessagesPeerDialogs) GetDialogs() []*Dialog { return m.Data2.Dialogs } - -func (m *TLMessagesPeerDialogs) SetMessages(v []*Message) { m.Data2.Messages = v } -func (m *TLMessagesPeerDialogs) GetMessages() []*Message { return m.Data2.Messages } - -func (m *TLMessagesPeerDialogs) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLMessagesPeerDialogs) GetChats() []*Chat { return m.Data2.Chats } - -func (m *TLMessagesPeerDialogs) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLMessagesPeerDialogs) GetUsers() []*User { return m.Data2.Users } +func (m *TLChannelsChannelParticipant) SetParticipant(v *ChannelParticipant) { m.Data2.Participant = v } +func (m *TLChannelsChannelParticipant) GetParticipant() *ChannelParticipant { + return m.Data2.Participant +} -func (m *TLMessagesPeerDialogs) SetState(v *Updates_State) { m.Data2.State = v } -func (m *TLMessagesPeerDialogs) GetState() *Updates_State { return m.Data2.State } +func (m *TLChannelsChannelParticipant) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLChannelsChannelParticipant) GetUsers() []*User { return m.Data2.Users } -func NewTLMessagesPeerDialogs() *TLMessagesPeerDialogs { - return &TLMessagesPeerDialogs{Data2: &Messages_PeerDialogs_Data{}} +func NewTLChannelsChannelParticipant() *TLChannelsChannelParticipant { + return &TLChannelsChannelParticipant{Data2: &Channels_ChannelParticipant_Data{}} } -func (m *TLMessagesPeerDialogs) Encode() []byte { +func (m *TLChannelsChannelParticipant) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_peerDialogs)) + x.Int(int32(TLConstructor_CRC32_channels_channelParticipant)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDialogs()))) - for _, v := range m.GetDialogs() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetParticipant().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) x.Int(int32(len(m.GetUsers()))) for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).Encode()...) } - x.Bytes(m.GetState().Encode()) return x.buf } -func (m *TLMessagesPeerDialogs) EncodeToLayer(layer int) []byte { +func (m *TLChannelsChannelParticipant) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_peerDialogs)) + x.Int(int32(TLConstructor_CRC32_channels_channelParticipant)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDialogs()))) - for _, v := range m.GetDialogs() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetParticipant().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) x.Int(int32(len(m.GetUsers()))) for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.Bytes(m.GetState().EncodeToLayer(layer)) return x.buf } -func (m *TLMessagesPeerDialogs) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Dialog, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Dialog{} - v1[i].Decode(dbuf) - } - m.SetDialogs(v1) - +func (m *TLChannelsChannelParticipant) Decode(dbuf *DecodeBuf) error { + m1 := &ChannelParticipant{} + m1.Decode(dbuf) + m.SetParticipant(m1) c2 := dbuf.Int() if c2 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } l2 := dbuf.Int() - v2 := make([]*Message, l2) + v2 := make([]*User, l2) for i := int32(0); i < l2; i++ { - v2[i] = &Message{} + v2[i] = &User{} v2[i].Decode(dbuf) } - m.SetMessages(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Chat, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Chat{} - v3[i].Decode(dbuf) - } - m.SetChats(v3) - - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*User, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &User{} - v4[i].Decode(dbuf) - } - m.SetUsers(v4) - - m5 := &Updates_State{} - m5.Decode(dbuf) - m.SetState(m5) + m.SetUsers(v2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PageBlock <-- -// + TL_PageBlockUnsupported -// + TL_PageBlockTitle -// + TL_PageBlockSubtitle -// + TL_PageBlockAuthorDate -// + TL_PageBlockHeader -// + TL_PageBlockSubheader -// + TL_PageBlockParagraph -// + TL_PageBlockPreformatted -// + TL_PageBlockFooter -// + TL_PageBlockDivider -// + TL_PageBlockAnchor -// + TL_PageBlockList -// + TL_PageBlockBlockquote -// + TL_PageBlockPullquote -// + TL_PageBlockPhoto -// + TL_PageBlockVideo -// + TL_PageBlockCover -// + TL_PageBlockEmbed -// + TL_PageBlockEmbedPost -// + TL_PageBlockCollage -// + TL_PageBlockSlideshow -// + TL_PageBlockChannel -// + TL_PageBlockAudio +// SchemeParam <-- +// + TL_SchemeParam // -func (m *PageBlock) Encode() []byte { +func (m *SchemeParam) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_pageBlockUnsupported: - t := m.To_PageBlockUnsupported() - return t.Encode() - case TLConstructor_CRC32_pageBlockTitle: - t := m.To_PageBlockTitle() - return t.Encode() - case TLConstructor_CRC32_pageBlockSubtitle: - t := m.To_PageBlockSubtitle() - return t.Encode() - case TLConstructor_CRC32_pageBlockAuthorDate: - t := m.To_PageBlockAuthorDate() - return t.Encode() - case TLConstructor_CRC32_pageBlockHeader: - t := m.To_PageBlockHeader() - return t.Encode() - case TLConstructor_CRC32_pageBlockSubheader: - t := m.To_PageBlockSubheader() - return t.Encode() - case TLConstructor_CRC32_pageBlockParagraph: - t := m.To_PageBlockParagraph() - return t.Encode() - case TLConstructor_CRC32_pageBlockPreformatted: - t := m.To_PageBlockPreformatted() - return t.Encode() - case TLConstructor_CRC32_pageBlockFooter: - t := m.To_PageBlockFooter() - return t.Encode() - case TLConstructor_CRC32_pageBlockDivider: - t := m.To_PageBlockDivider() - return t.Encode() - case TLConstructor_CRC32_pageBlockAnchor: - t := m.To_PageBlockAnchor() - return t.Encode() - case TLConstructor_CRC32_pageBlockList: - t := m.To_PageBlockList() - return t.Encode() - case TLConstructor_CRC32_pageBlockBlockquote: - t := m.To_PageBlockBlockquote() - return t.Encode() - case TLConstructor_CRC32_pageBlockPullquote: - t := m.To_PageBlockPullquote() - return t.Encode() - case TLConstructor_CRC32_pageBlockPhoto: - t := m.To_PageBlockPhoto() - return t.Encode() - case TLConstructor_CRC32_pageBlockVideo: - t := m.To_PageBlockVideo() - return t.Encode() - case TLConstructor_CRC32_pageBlockCover: - t := m.To_PageBlockCover() - return t.Encode() - case TLConstructor_CRC32_pageBlockEmbed: - t := m.To_PageBlockEmbed() - return t.Encode() - case TLConstructor_CRC32_pageBlockEmbedPost: - t := m.To_PageBlockEmbedPost() - return t.Encode() - case TLConstructor_CRC32_pageBlockCollage: - t := m.To_PageBlockCollage() - return t.Encode() - case TLConstructor_CRC32_pageBlockSlideshow: - t := m.To_PageBlockSlideshow() - return t.Encode() - case TLConstructor_CRC32_pageBlockChannel: - t := m.To_PageBlockChannel() - return t.Encode() - case TLConstructor_CRC32_pageBlockAudio: - t := m.To_PageBlockAudio() + case TLConstructor_CRC32_schemeParam: + t := m.To_SchemeParam() return t.Encode() default: @@ -13817,77 +14084,11 @@ func (m *PageBlock) Encode() []byte { } } -func (m *PageBlock) EncodeToLayer(layer int) []byte { +func (m *SchemeParam) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_pageBlockUnsupported: - t := m.To_PageBlockUnsupported() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockTitle: - t := m.To_PageBlockTitle() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockSubtitle: - t := m.To_PageBlockSubtitle() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockAuthorDate: - t := m.To_PageBlockAuthorDate() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockHeader: - t := m.To_PageBlockHeader() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockSubheader: - t := m.To_PageBlockSubheader() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockParagraph: - t := m.To_PageBlockParagraph() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockPreformatted: - t := m.To_PageBlockPreformatted() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockFooter: - t := m.To_PageBlockFooter() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockDivider: - t := m.To_PageBlockDivider() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockAnchor: - t := m.To_PageBlockAnchor() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockList: - t := m.To_PageBlockList() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockBlockquote: - t := m.To_PageBlockBlockquote() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockPullquote: - t := m.To_PageBlockPullquote() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockPhoto: - t := m.To_PageBlockPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockVideo: - t := m.To_PageBlockVideo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockCover: - t := m.To_PageBlockCover() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockEmbed: - t := m.To_PageBlockEmbed() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockEmbedPost: - t := m.To_PageBlockEmbedPost() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockCollage: - t := m.To_PageBlockCollage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockSlideshow: - t := m.To_PageBlockSlideshow() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockChannel: - t := m.To_PageBlockChannel() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_pageBlockAudio: - t := m.To_PageBlockAudio() + case TLConstructor_CRC32_schemeParam: + t := m.To_SchemeParam() return t.EncodeToLayer(layer) default: @@ -13896,99 +14097,11 @@ func (m *PageBlock) EncodeToLayer(layer int) []byte { } } -func (m *PageBlock) Decode(dbuf *DecodeBuf) error { +func (m *SchemeParam) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_pageBlockUnsupported: - m2 := &TLPageBlockUnsupported{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockTitle: - m2 := &TLPageBlockTitle{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockSubtitle: - m2 := &TLPageBlockSubtitle{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockAuthorDate: - m2 := &TLPageBlockAuthorDate{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockHeader: - m2 := &TLPageBlockHeader{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockSubheader: - m2 := &TLPageBlockSubheader{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockParagraph: - m2 := &TLPageBlockParagraph{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockPreformatted: - m2 := &TLPageBlockPreformatted{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockFooter: - m2 := &TLPageBlockFooter{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockDivider: - m2 := &TLPageBlockDivider{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockAnchor: - m2 := &TLPageBlockAnchor{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockList: - m2 := &TLPageBlockList{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockBlockquote: - m2 := &TLPageBlockBlockquote{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockPullquote: - m2 := &TLPageBlockPullquote{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockPhoto: - m2 := &TLPageBlockPhoto{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockVideo: - m2 := &TLPageBlockVideo{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockCover: - m2 := &TLPageBlockCover{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockEmbed: - m2 := &TLPageBlockEmbed{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockEmbedPost: - m2 := &TLPageBlockEmbedPost{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockCollage: - m2 := &TLPageBlockCollage{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockSlideshow: - m2 := &TLPageBlockSlideshow{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockChannel: - m2 := &TLPageBlockChannel{Data2: &PageBlock_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_pageBlockAudio: - m2 := &TLPageBlockAudio{Data2: &PageBlock_Data{}} + case TLConstructor_CRC32_schemeParam: + m2 := &TLSchemeParam{Data2: &SchemeParam_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -13998,1410 +14111,1476 @@ func (m *PageBlock) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// pageBlockUnsupported#13567e8a = PageBlock; -func (m *PageBlock) To_PageBlockUnsupported() *TLPageBlockUnsupported { - return &TLPageBlockUnsupported{ - Data2: m.Data2, - } -} - -// pageBlockTitle#70abc3fd text:RichText = PageBlock; -func (m *PageBlock) To_PageBlockTitle() *TLPageBlockTitle { - return &TLPageBlockTitle{ - Data2: m.Data2, - } -} - -// pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock; -func (m *PageBlock) To_PageBlockSubtitle() *TLPageBlockSubtitle { - return &TLPageBlockSubtitle{ +// schemeParam#21b59bef name:string type:string = SchemeParam; +func (m *SchemeParam) To_SchemeParam() *TLSchemeParam { + return &TLSchemeParam{ Data2: m.Data2, } } -// pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock; -func (m *PageBlock) To_PageBlockAuthorDate() *TLPageBlockAuthorDate { - return &TLPageBlockAuthorDate{ - Data2: m.Data2, +// schemeParam#21b59bef name:string type:string = SchemeParam; +func (m *TLSchemeParam) To_SchemeParam() *SchemeParam { + return &SchemeParam{ + Constructor: TLConstructor_CRC32_schemeParam, + Data2: m.Data2, } } -// pageBlockHeader#bfd064ec text:RichText = PageBlock; -func (m *PageBlock) To_PageBlockHeader() *TLPageBlockHeader { - return &TLPageBlockHeader{ - Data2: m.Data2, - } -} +func (m *TLSchemeParam) SetName(v string) { m.Data2.Name = v } +func (m *TLSchemeParam) GetName() string { return m.Data2.Name } -// pageBlockSubheader#f12bb6e1 text:RichText = PageBlock; -func (m *PageBlock) To_PageBlockSubheader() *TLPageBlockSubheader { - return &TLPageBlockSubheader{ - Data2: m.Data2, - } -} +func (m *TLSchemeParam) SetType(v string) { m.Data2.Type = v } +func (m *TLSchemeParam) GetType() string { return m.Data2.Type } -// pageBlockParagraph#467a0766 text:RichText = PageBlock; -func (m *PageBlock) To_PageBlockParagraph() *TLPageBlockParagraph { - return &TLPageBlockParagraph{ - Data2: m.Data2, - } +func NewTLSchemeParam() *TLSchemeParam { + return &TLSchemeParam{Data2: &SchemeParam_Data{}} } -// pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock; -func (m *PageBlock) To_PageBlockPreformatted() *TLPageBlockPreformatted { - return &TLPageBlockPreformatted{ - Data2: m.Data2, - } -} +func (m *TLSchemeParam) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_schemeParam)) -// pageBlockFooter#48870999 text:RichText = PageBlock; -func (m *PageBlock) To_PageBlockFooter() *TLPageBlockFooter { - return &TLPageBlockFooter{ - Data2: m.Data2, - } -} + x.String(m.GetName()) + x.String(m.GetType()) -// pageBlockDivider#db20b188 = PageBlock; -func (m *PageBlock) To_PageBlockDivider() *TLPageBlockDivider { - return &TLPageBlockDivider{ - Data2: m.Data2, - } + return x.buf } -// pageBlockAnchor#ce0d37b0 name:string = PageBlock; -func (m *PageBlock) To_PageBlockAnchor() *TLPageBlockAnchor { - return &TLPageBlockAnchor{ - Data2: m.Data2, - } -} +func (m *TLSchemeParam) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_schemeParam)) -// pageBlockList#3a58c7f4 ordered:Bool items:Vector = PageBlock; -func (m *PageBlock) To_PageBlockList() *TLPageBlockList { - return &TLPageBlockList{ - Data2: m.Data2, - } -} + x.String(m.GetName()) + x.String(m.GetType()) -// pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock; -func (m *PageBlock) To_PageBlockBlockquote() *TLPageBlockBlockquote { - return &TLPageBlockBlockquote{ - Data2: m.Data2, - } + return x.buf } -// pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock; -func (m *PageBlock) To_PageBlockPullquote() *TLPageBlockPullquote { - return &TLPageBlockPullquote{ - Data2: m.Data2, - } -} +func (m *TLSchemeParam) Decode(dbuf *DecodeBuf) error { + m.SetName(dbuf.String()) + m.SetType(dbuf.String()) -// pageBlockPhoto#e9c69982 photo_id:long caption:RichText = PageBlock; -func (m *PageBlock) To_PageBlockPhoto() *TLPageBlockPhoto { - return &TLPageBlockPhoto{ - Data2: m.Data2, - } + return dbuf.err } -// pageBlockVideo#d9d71866 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:RichText = PageBlock; -func (m *PageBlock) To_PageBlockVideo() *TLPageBlockVideo { - return &TLPageBlockVideo{ - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// Contacts_ImportedContacts <-- +// + TL_ContactsImportedContacts +// -// pageBlockCover#39f23300 cover:PageBlock = PageBlock; -func (m *PageBlock) To_PageBlockCover() *TLPageBlockCover { - return &TLPageBlockCover{ - Data2: m.Data2, - } -} +func (m *Contacts_ImportedContacts) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_contacts_importedContacts: + t := m.To_ContactsImportedContacts() + return t.Encode() -// pageBlockEmbed#cde200d1 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:int h:int caption:RichText = PageBlock; -func (m *PageBlock) To_PageBlockEmbed() *TLPageBlockEmbed { - return &TLPageBlockEmbed{ - Data2: m.Data2, + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -// pageBlockEmbedPost#292c7be9 url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:RichText = PageBlock; -func (m *PageBlock) To_PageBlockEmbedPost() *TLPageBlockEmbedPost { - return &TLPageBlockEmbedPost{ - Data2: m.Data2, - } -} +func (m *Contacts_ImportedContacts) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_contacts_importedContacts: + t := m.To_ContactsImportedContacts() + return t.EncodeToLayer(layer) -// pageBlockCollage#8b31c4f items:Vector caption:RichText = PageBlock; -func (m *PageBlock) To_PageBlockCollage() *TLPageBlockCollage { - return &TLPageBlockCollage{ - Data2: m.Data2, + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -// pageBlockSlideshow#130c8963 items:Vector caption:RichText = PageBlock; -func (m *PageBlock) To_PageBlockSlideshow() *TLPageBlockSlideshow { - return &TLPageBlockSlideshow{ - Data2: m.Data2, - } -} +func (m *Contacts_ImportedContacts) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_contacts_importedContacts: + m2 := &TLContactsImportedContacts{Data2: &Contacts_ImportedContacts_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -// pageBlockChannel#ef1751b5 channel:Chat = PageBlock; -func (m *PageBlock) To_PageBlockChannel() *TLPageBlockChannel { - return &TLPageBlockChannel{ - Data2: m.Data2, + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } + return dbuf.err } -// pageBlockAudio#31b81a7f audio_id:long caption:RichText = PageBlock; -func (m *PageBlock) To_PageBlockAudio() *TLPageBlockAudio { - return &TLPageBlockAudio{ +// contacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts; +func (m *Contacts_ImportedContacts) To_ContactsImportedContacts() *TLContactsImportedContacts { + return &TLContactsImportedContacts{ Data2: m.Data2, } } -// pageBlockUnsupported#13567e8a = PageBlock; -func (m *TLPageBlockUnsupported) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockUnsupported, +// contacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts; +func (m *TLContactsImportedContacts) To_Contacts_ImportedContacts() *Contacts_ImportedContacts { + return &Contacts_ImportedContacts{ + Constructor: TLConstructor_CRC32_contacts_importedContacts, Data2: m.Data2, } } -func NewTLPageBlockUnsupported() *TLPageBlockUnsupported { - return &TLPageBlockUnsupported{Data2: &PageBlock_Data{}} -} - -func (m *TLPageBlockUnsupported) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockUnsupported)) - - return x.buf -} - -func (m *TLPageBlockUnsupported) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockUnsupported)) +func (m *TLContactsImportedContacts) SetImported(v []*ImportedContact) { m.Data2.Imported = v } +func (m *TLContactsImportedContacts) GetImported() []*ImportedContact { return m.Data2.Imported } - return x.buf +func (m *TLContactsImportedContacts) SetPopularInvites(v []*PopularContact) { + m.Data2.PopularInvites = v } - -func (m *TLPageBlockUnsupported) Decode(dbuf *DecodeBuf) error { - - return dbuf.err +func (m *TLContactsImportedContacts) GetPopularInvites() []*PopularContact { + return m.Data2.PopularInvites } -// pageBlockTitle#70abc3fd text:RichText = PageBlock; -func (m *TLPageBlockTitle) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockTitle, - Data2: m.Data2, - } -} +func (m *TLContactsImportedContacts) SetRetryContacts(v []int64) { m.Data2.RetryContacts = v } +func (m *TLContactsImportedContacts) GetRetryContacts() []int64 { return m.Data2.RetryContacts } -func (m *TLPageBlockTitle) SetText(v *RichText) { m.Data2.Text = v } -func (m *TLPageBlockTitle) GetText() *RichText { return m.Data2.Text } +func (m *TLContactsImportedContacts) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLContactsImportedContacts) GetUsers() []*User { return m.Data2.Users } -func NewTLPageBlockTitle() *TLPageBlockTitle { - return &TLPageBlockTitle{Data2: &PageBlock_Data{}} +func NewTLContactsImportedContacts() *TLContactsImportedContacts { + return &TLContactsImportedContacts{Data2: &Contacts_ImportedContacts_Data{}} } -func (m *TLPageBlockTitle) Encode() []byte { +func (m *TLContactsImportedContacts) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockTitle)) + x.Int(int32(TLConstructor_CRC32_contacts_importedContacts)) - x.Bytes(m.GetText().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetImported()))) + for _, v := range m.GetImported() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPopularInvites()))) + for _, v := range m.GetPopularInvites() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.VectorLong(m.GetRetryContacts()) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLPageBlockTitle) EncodeToLayer(layer int) []byte { +func (m *TLContactsImportedContacts) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockTitle)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_contacts_importedContacts)) - return x.buf -} + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetImported()))) + for _, v := range m.GetImported() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPopularInvites()))) + for _, v := range m.GetPopularInvites() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.VectorLong(m.GetRetryContacts()) -func (m *TLPageBlockTitle) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } - return dbuf.err + return x.buf } -// pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock; -func (m *TLPageBlockSubtitle) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockSubtitle, - Data2: m.Data2, +func (m *TLContactsImportedContacts) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } -} + l1 := dbuf.Int() + v1 := make([]*ImportedContact, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &ImportedContact{} + v1[i].Decode(dbuf) + } + m.SetImported(v1) -func (m *TLPageBlockSubtitle) SetText(v *RichText) { m.Data2.Text = v } -func (m *TLPageBlockSubtitle) GetText() *RichText { return m.Data2.Text } + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*PopularContact, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &PopularContact{} + v2[i].Decode(dbuf) + } + m.SetPopularInvites(v2) -func NewTLPageBlockSubtitle() *TLPageBlockSubtitle { - return &TLPageBlockSubtitle{Data2: &PageBlock_Data{}} + m.SetRetryContacts(dbuf.VectorLong()) + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*User, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &User{} + v4[i].Decode(dbuf) + } + m.SetUsers(v4) + + return dbuf.err } -func (m *TLPageBlockSubtitle) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockSubtitle)) +/////////////////////////////////////////////////////////////////////////////// +// Updates_Difference <-- +// + TL_UpdatesDifferenceEmpty +// + TL_UpdatesDifference +// + TL_UpdatesDifferenceSlice +// + TL_UpdatesDifferenceTooLong +// - x.Bytes(m.GetText().Encode()) +func (m *Updates_Difference) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_updates_differenceEmpty: + t := m.To_UpdatesDifferenceEmpty() + return t.Encode() + case TLConstructor_CRC32_updates_difference: + t := m.To_UpdatesDifference() + return t.Encode() + case TLConstructor_CRC32_updates_differenceSlice: + t := m.To_UpdatesDifferenceSlice() + return t.Encode() + case TLConstructor_CRC32_updates_differenceTooLong: + t := m.To_UpdatesDifferenceTooLong() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLPageBlockSubtitle) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockSubtitle)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) +func (m *Updates_Difference) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_updates_differenceEmpty: + t := m.To_UpdatesDifferenceEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updates_difference: + t := m.To_UpdatesDifference() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updates_differenceSlice: + t := m.To_UpdatesDifferenceSlice() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updates_differenceTooLong: + t := m.To_UpdatesDifferenceTooLong() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLPageBlockSubtitle) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) +func (m *Updates_Difference) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_updates_differenceEmpty: + m2 := &TLUpdatesDifferenceEmpty{Data2: &Updates_Difference_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updates_difference: + m2 := &TLUpdatesDifference{Data2: &Updates_Difference_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updates_differenceSlice: + m2 := &TLUpdatesDifferenceSlice{Data2: &Updates_Difference_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updates_differenceTooLong: + m2 := &TLUpdatesDifferenceTooLong{Data2: &Updates_Difference_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock; -func (m *TLPageBlockAuthorDate) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockAuthorDate, - Data2: m.Data2, +// updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; +func (m *Updates_Difference) To_UpdatesDifferenceEmpty() *TLUpdatesDifferenceEmpty { + return &TLUpdatesDifferenceEmpty{ + Data2: m.Data2, } } -func (m *TLPageBlockAuthorDate) SetAuthor(v *RichText) { m.Data2.Author_2 = v } -func (m *TLPageBlockAuthorDate) GetAuthor() *RichText { return m.Data2.Author_2 } - -func (m *TLPageBlockAuthorDate) SetPublishedDate(v int32) { m.Data2.PublishedDate = v } -func (m *TLPageBlockAuthorDate) GetPublishedDate() int32 { return m.Data2.PublishedDate } - -func NewTLPageBlockAuthorDate() *TLPageBlockAuthorDate { - return &TLPageBlockAuthorDate{Data2: &PageBlock_Data{}} -} - -func (m *TLPageBlockAuthorDate) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockAuthorDate)) - - x.Bytes(m.GetAuthor().Encode()) - x.Int(m.GetPublishedDate()) - - return x.buf +// updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; +func (m *Updates_Difference) To_UpdatesDifference() *TLUpdatesDifference { + return &TLUpdatesDifference{ + Data2: m.Data2, + } } -func (m *TLPageBlockAuthorDate) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockAuthorDate)) - - x.Bytes(m.GetAuthor().EncodeToLayer(layer)) - x.Int(m.GetPublishedDate()) - - return x.buf +// updates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference; +func (m *Updates_Difference) To_UpdatesDifferenceSlice() *TLUpdatesDifferenceSlice { + return &TLUpdatesDifferenceSlice{ + Data2: m.Data2, + } } -func (m *TLPageBlockAuthorDate) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetAuthor(m1) - m.SetPublishedDate(dbuf.Int()) - - return dbuf.err +// updates.differenceTooLong#4afe8f6d pts:int = updates.Difference; +func (m *Updates_Difference) To_UpdatesDifferenceTooLong() *TLUpdatesDifferenceTooLong { + return &TLUpdatesDifferenceTooLong{ + Data2: m.Data2, + } } -// pageBlockHeader#bfd064ec text:RichText = PageBlock; -func (m *TLPageBlockHeader) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockHeader, +// updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; +func (m *TLUpdatesDifferenceEmpty) To_Updates_Difference() *Updates_Difference { + return &Updates_Difference{ + Constructor: TLConstructor_CRC32_updates_differenceEmpty, Data2: m.Data2, } } -func (m *TLPageBlockHeader) SetText(v *RichText) { m.Data2.Text = v } -func (m *TLPageBlockHeader) GetText() *RichText { return m.Data2.Text } +func (m *TLUpdatesDifferenceEmpty) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdatesDifferenceEmpty) GetDate() int32 { return m.Data2.Date } -func NewTLPageBlockHeader() *TLPageBlockHeader { - return &TLPageBlockHeader{Data2: &PageBlock_Data{}} +func (m *TLUpdatesDifferenceEmpty) SetSeq(v int32) { m.Data2.Seq = v } +func (m *TLUpdatesDifferenceEmpty) GetSeq() int32 { return m.Data2.Seq } + +func NewTLUpdatesDifferenceEmpty() *TLUpdatesDifferenceEmpty { + return &TLUpdatesDifferenceEmpty{Data2: &Updates_Difference_Data{}} } -func (m *TLPageBlockHeader) Encode() []byte { +func (m *TLUpdatesDifferenceEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockHeader)) + x.Int(int32(TLConstructor_CRC32_updates_differenceEmpty)) - x.Bytes(m.GetText().Encode()) + x.Int(m.GetDate()) + x.Int(m.GetSeq()) return x.buf } -func (m *TLPageBlockHeader) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesDifferenceEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockHeader)) + x.Int(int32(TLConstructor_CRC32_updates_differenceEmpty)) - x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Int(m.GetDate()) + x.Int(m.GetSeq()) return x.buf } -func (m *TLPageBlockHeader) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) +func (m *TLUpdatesDifferenceEmpty) Decode(dbuf *DecodeBuf) error { + m.SetDate(dbuf.Int()) + m.SetSeq(dbuf.Int()) return dbuf.err } -// pageBlockSubheader#f12bb6e1 text:RichText = PageBlock; -func (m *TLPageBlockSubheader) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockSubheader, +// updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; +func (m *TLUpdatesDifference) To_Updates_Difference() *Updates_Difference { + return &Updates_Difference{ + Constructor: TLConstructor_CRC32_updates_difference, Data2: m.Data2, } } -func (m *TLPageBlockSubheader) SetText(v *RichText) { m.Data2.Text = v } -func (m *TLPageBlockSubheader) GetText() *RichText { return m.Data2.Text } - -func NewTLPageBlockSubheader() *TLPageBlockSubheader { - return &TLPageBlockSubheader{Data2: &PageBlock_Data{}} -} - -func (m *TLPageBlockSubheader) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockSubheader)) - - x.Bytes(m.GetText().Encode()) +func (m *TLUpdatesDifference) SetNewMessages(v []*Message) { m.Data2.NewMessages = v } +func (m *TLUpdatesDifference) GetNewMessages() []*Message { return m.Data2.NewMessages } - return x.buf +func (m *TLUpdatesDifference) SetNewEncryptedMessages(v []*EncryptedMessage) { + m.Data2.NewEncryptedMessages = v } - -func (m *TLPageBlockSubheader) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockSubheader)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) - - return x.buf +func (m *TLUpdatesDifference) GetNewEncryptedMessages() []*EncryptedMessage { + return m.Data2.NewEncryptedMessages } -func (m *TLPageBlockSubheader) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) +func (m *TLUpdatesDifference) SetOtherUpdates(v []*Update) { m.Data2.OtherUpdates = v } +func (m *TLUpdatesDifference) GetOtherUpdates() []*Update { return m.Data2.OtherUpdates } - return dbuf.err -} +func (m *TLUpdatesDifference) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLUpdatesDifference) GetChats() []*Chat { return m.Data2.Chats } -// pageBlockParagraph#467a0766 text:RichText = PageBlock; -func (m *TLPageBlockParagraph) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockParagraph, - Data2: m.Data2, - } -} +func (m *TLUpdatesDifference) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLUpdatesDifference) GetUsers() []*User { return m.Data2.Users } -func (m *TLPageBlockParagraph) SetText(v *RichText) { m.Data2.Text = v } -func (m *TLPageBlockParagraph) GetText() *RichText { return m.Data2.Text } +func (m *TLUpdatesDifference) SetState(v *Updates_State) { m.Data2.State = v } +func (m *TLUpdatesDifference) GetState() *Updates_State { return m.Data2.State } -func NewTLPageBlockParagraph() *TLPageBlockParagraph { - return &TLPageBlockParagraph{Data2: &PageBlock_Data{}} +func NewTLUpdatesDifference() *TLUpdatesDifference { + return &TLUpdatesDifference{Data2: &Updates_Difference_Data{}} } -func (m *TLPageBlockParagraph) Encode() []byte { +func (m *TLUpdatesDifference) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockParagraph)) + x.Int(int32(TLConstructor_CRC32_updates_difference)) - x.Bytes(m.GetText().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetNewMessages()))) + for _, v := range m.GetNewMessages() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetNewEncryptedMessages()))) + for _, v := range m.GetNewEncryptedMessages() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetOtherUpdates()))) + for _, v := range m.GetOtherUpdates() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Bytes(m.GetState().Encode()) return x.buf } -func (m *TLPageBlockParagraph) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesDifference) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockParagraph)) + x.Int(int32(TLConstructor_CRC32_updates_difference)) - x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetNewMessages()))) + for _, v := range m.GetNewMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetNewEncryptedMessages()))) + for _, v := range m.GetNewEncryptedMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetOtherUpdates()))) + for _, v := range m.GetOtherUpdates() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Bytes(m.GetState().EncodeToLayer(layer)) return x.buf } -func (m *TLPageBlockParagraph) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) - - return dbuf.err -} - -// pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock; -func (m *TLPageBlockPreformatted) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockPreformatted, - Data2: m.Data2, +func (m *TLUpdatesDifference) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } -} - -func (m *TLPageBlockPreformatted) SetText(v *RichText) { m.Data2.Text = v } -func (m *TLPageBlockPreformatted) GetText() *RichText { return m.Data2.Text } - -func (m *TLPageBlockPreformatted) SetLanguage(v string) { m.Data2.Language = v } -func (m *TLPageBlockPreformatted) GetLanguage() string { return m.Data2.Language } - -func NewTLPageBlockPreformatted() *TLPageBlockPreformatted { - return &TLPageBlockPreformatted{Data2: &PageBlock_Data{}} -} - -func (m *TLPageBlockPreformatted) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockPreformatted)) - - x.Bytes(m.GetText().Encode()) - x.String(m.GetLanguage()) + l1 := dbuf.Int() + v1 := make([]*Message, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Message{} + v1[i].Decode(dbuf) + } + m.SetNewMessages(v1) - return x.buf -} + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*EncryptedMessage, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &EncryptedMessage{} + v2[i].Decode(dbuf) + } + m.SetNewEncryptedMessages(v2) -func (m *TLPageBlockPreformatted) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockPreformatted)) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Update, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Update{} + v3[i].Decode(dbuf) + } + m.SetOtherUpdates(v3) - x.Bytes(m.GetText().EncodeToLayer(layer)) - x.String(m.GetLanguage()) + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*Chat, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &Chat{} + v4[i].Decode(dbuf) + } + m.SetChats(v4) - return x.buf -} + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*User, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &User{} + v5[i].Decode(dbuf) + } + m.SetUsers(v5) -func (m *TLPageBlockPreformatted) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) - m.SetLanguage(dbuf.String()) + m6 := &Updates_State{} + m6.Decode(dbuf) + m.SetState(m6) return dbuf.err } -// pageBlockFooter#48870999 text:RichText = PageBlock; -func (m *TLPageBlockFooter) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockFooter, +// updates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference; +func (m *TLUpdatesDifferenceSlice) To_Updates_Difference() *Updates_Difference { + return &Updates_Difference{ + Constructor: TLConstructor_CRC32_updates_differenceSlice, Data2: m.Data2, } } -func (m *TLPageBlockFooter) SetText(v *RichText) { m.Data2.Text = v } -func (m *TLPageBlockFooter) GetText() *RichText { return m.Data2.Text } +func (m *TLUpdatesDifferenceSlice) SetNewMessages(v []*Message) { m.Data2.NewMessages = v } +func (m *TLUpdatesDifferenceSlice) GetNewMessages() []*Message { return m.Data2.NewMessages } -func NewTLPageBlockFooter() *TLPageBlockFooter { - return &TLPageBlockFooter{Data2: &PageBlock_Data{}} +func (m *TLUpdatesDifferenceSlice) SetNewEncryptedMessages(v []*EncryptedMessage) { + m.Data2.NewEncryptedMessages = v } - -func (m *TLPageBlockFooter) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockFooter)) - - x.Bytes(m.GetText().Encode()) - - return x.buf +func (m *TLUpdatesDifferenceSlice) GetNewEncryptedMessages() []*EncryptedMessage { + return m.Data2.NewEncryptedMessages } -func (m *TLPageBlockFooter) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockFooter)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) +func (m *TLUpdatesDifferenceSlice) SetOtherUpdates(v []*Update) { m.Data2.OtherUpdates = v } +func (m *TLUpdatesDifferenceSlice) GetOtherUpdates() []*Update { return m.Data2.OtherUpdates } - return x.buf -} +func (m *TLUpdatesDifferenceSlice) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLUpdatesDifferenceSlice) GetChats() []*Chat { return m.Data2.Chats } -func (m *TLPageBlockFooter) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) +func (m *TLUpdatesDifferenceSlice) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLUpdatesDifferenceSlice) GetUsers() []*User { return m.Data2.Users } - return dbuf.err +func (m *TLUpdatesDifferenceSlice) SetIntermediateState(v *Updates_State) { + m.Data2.IntermediateState = v +} +func (m *TLUpdatesDifferenceSlice) GetIntermediateState() *Updates_State { + return m.Data2.IntermediateState } -// pageBlockDivider#db20b188 = PageBlock; -func (m *TLPageBlockDivider) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockDivider, - Data2: m.Data2, - } +func NewTLUpdatesDifferenceSlice() *TLUpdatesDifferenceSlice { + return &TLUpdatesDifferenceSlice{Data2: &Updates_Difference_Data{}} } -func NewTLPageBlockDivider() *TLPageBlockDivider { - return &TLPageBlockDivider{Data2: &PageBlock_Data{}} -} - -func (m *TLPageBlockDivider) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockDivider)) - - return x.buf -} - -func (m *TLPageBlockDivider) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesDifferenceSlice) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockDivider)) - - return x.buf -} - -func (m *TLPageBlockDivider) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_updates_differenceSlice)) -// pageBlockAnchor#ce0d37b0 name:string = PageBlock; -func (m *TLPageBlockAnchor) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockAnchor, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetNewMessages()))) + for _, v := range m.GetNewMessages() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func (m *TLPageBlockAnchor) SetName(v string) { m.Data2.Name = v } -func (m *TLPageBlockAnchor) GetName() string { return m.Data2.Name } - -func NewTLPageBlockAnchor() *TLPageBlockAnchor { - return &TLPageBlockAnchor{Data2: &PageBlock_Data{}} -} - -func (m *TLPageBlockAnchor) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockAnchor)) - - x.String(m.GetName()) - - return x.buf -} - -func (m *TLPageBlockAnchor) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockAnchor)) - - x.String(m.GetName()) - - return x.buf -} - -func (m *TLPageBlockAnchor) Decode(dbuf *DecodeBuf) error { - m.SetName(dbuf.String()) - - return dbuf.err -} - -// pageBlockList#3a58c7f4 ordered:Bool items:Vector = PageBlock; -func (m *TLPageBlockList) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockList, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetNewEncryptedMessages()))) + for _, v := range m.GetNewEncryptedMessages() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func (m *TLPageBlockList) SetOrdered(v *Bool) { m.Data2.Ordered = v } -func (m *TLPageBlockList) GetOrdered() *Bool { return m.Data2.Ordered } - -func (m *TLPageBlockList) SetItems(v []*RichText) { m.Data2.Items_7 = v } -func (m *TLPageBlockList) GetItems() []*RichText { return m.Data2.Items_7 } - -func NewTLPageBlockList() *TLPageBlockList { - return &TLPageBlockList{Data2: &PageBlock_Data{}} -} - -func (m *TLPageBlockList) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockList)) - - x.Bytes(m.GetOrdered().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetItems()))) - for _, v := range m.GetItems() { + x.Int(int32(len(m.GetOtherUpdates()))) + for _, v := range m.GetOtherUpdates() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).Encode()...) } + x.Bytes(m.GetIntermediateState().Encode()) return x.buf } -func (m *TLPageBlockList) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesDifferenceSlice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockList)) + x.Int(int32(TLConstructor_CRC32_updates_differenceSlice)) - x.Bytes(m.GetOrdered().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetItems()))) - for _, v := range m.GetItems() { + x.Int(int32(len(m.GetNewMessages()))) + for _, v := range m.GetNewMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetNewEncryptedMessages()))) + for _, v := range m.GetNewEncryptedMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetOtherUpdates()))) + for _, v := range m.GetOtherUpdates() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } + x.Bytes(m.GetIntermediateState().EncodeToLayer(layer)) return x.buf } -func (m *TLPageBlockList) Decode(dbuf *DecodeBuf) error { - m1 := &Bool{} - m1.Decode(dbuf) - m.SetOrdered(m1) +func (m *TLUpdatesDifferenceSlice) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*Message, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Message{} + v1[i].Decode(dbuf) + } + m.SetNewMessages(v1) + c2 := dbuf.Int() if c2 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } l2 := dbuf.Int() - v2 := make([]*RichText, l2) + v2 := make([]*EncryptedMessage, l2) for i := int32(0); i < l2; i++ { - v2[i] = &RichText{} + v2[i] = &EncryptedMessage{} v2[i].Decode(dbuf) } - m.SetItems(v2) + m.SetNewEncryptedMessages(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Update, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Update{} + v3[i].Decode(dbuf) + } + m.SetOtherUpdates(v3) + + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*Chat, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &Chat{} + v4[i].Decode(dbuf) + } + m.SetChats(v4) + + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*User, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &User{} + v5[i].Decode(dbuf) + } + m.SetUsers(v5) + + m6 := &Updates_State{} + m6.Decode(dbuf) + m.SetIntermediateState(m6) return dbuf.err } -// pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock; -func (m *TLPageBlockBlockquote) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockBlockquote, +// updates.differenceTooLong#4afe8f6d pts:int = updates.Difference; +func (m *TLUpdatesDifferenceTooLong) To_Updates_Difference() *Updates_Difference { + return &Updates_Difference{ + Constructor: TLConstructor_CRC32_updates_differenceTooLong, Data2: m.Data2, } } -func (m *TLPageBlockBlockquote) SetText(v *RichText) { m.Data2.Text = v } -func (m *TLPageBlockBlockquote) GetText() *RichText { return m.Data2.Text } - -func (m *TLPageBlockBlockquote) SetCaption(v *RichText) { m.Data2.Caption = v } -func (m *TLPageBlockBlockquote) GetCaption() *RichText { return m.Data2.Caption } +func (m *TLUpdatesDifferenceTooLong) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdatesDifferenceTooLong) GetPts() int32 { return m.Data2.Pts } -func NewTLPageBlockBlockquote() *TLPageBlockBlockquote { - return &TLPageBlockBlockquote{Data2: &PageBlock_Data{}} +func NewTLUpdatesDifferenceTooLong() *TLUpdatesDifferenceTooLong { + return &TLUpdatesDifferenceTooLong{Data2: &Updates_Difference_Data{}} } -func (m *TLPageBlockBlockquote) Encode() []byte { +func (m *TLUpdatesDifferenceTooLong) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockBlockquote)) + x.Int(int32(TLConstructor_CRC32_updates_differenceTooLong)) - x.Bytes(m.GetText().Encode()) - x.Bytes(m.GetCaption().Encode()) + x.Int(m.GetPts()) return x.buf } -func (m *TLPageBlockBlockquote) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesDifferenceTooLong) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockBlockquote)) + x.Int(int32(TLConstructor_CRC32_updates_differenceTooLong)) - x.Bytes(m.GetText().EncodeToLayer(layer)) - x.Bytes(m.GetCaption().EncodeToLayer(layer)) + x.Int(m.GetPts()) return x.buf } -func (m *TLPageBlockBlockquote) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) - m2 := &RichText{} - m2.Decode(dbuf) - m.SetCaption(m2) +func (m *TLUpdatesDifferenceTooLong) Decode(dbuf *DecodeBuf) error { + m.SetPts(dbuf.Int()) return dbuf.err } -// pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock; -func (m *TLPageBlockPullquote) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockPullquote, - Data2: m.Data2, - } -} - -func (m *TLPageBlockPullquote) SetText(v *RichText) { m.Data2.Text = v } -func (m *TLPageBlockPullquote) GetText() *RichText { return m.Data2.Text } +/////////////////////////////////////////////////////////////////////////////// +// User <-- +// + TL_UserEmpty +// + TL_User +// -func (m *TLPageBlockPullquote) SetCaption(v *RichText) { m.Data2.Caption = v } -func (m *TLPageBlockPullquote) GetCaption() *RichText { return m.Data2.Caption } +func (m *User) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_userEmpty: + t := m.To_UserEmpty() + return t.Encode() + case TLConstructor_CRC32_user: + t := m.To_User() + return t.Encode() -func NewTLPageBlockPullquote() *TLPageBlockPullquote { - return &TLPageBlockPullquote{Data2: &PageBlock_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLPageBlockPullquote) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockPullquote)) - - x.Bytes(m.GetText().Encode()) - x.Bytes(m.GetCaption().Encode()) +func (m *User) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_userEmpty: + t := m.To_UserEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_user: + t := m.To_User() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLPageBlockPullquote) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockPullquote)) - - x.Bytes(m.GetText().EncodeToLayer(layer)) - x.Bytes(m.GetCaption().EncodeToLayer(layer)) +func (m *User) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_userEmpty: + m2 := &TLUserEmpty{Data2: &User_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_user: + m2 := &TLUser{Data2: &User_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLPageBlockPullquote) Decode(dbuf *DecodeBuf) error { - m1 := &RichText{} - m1.Decode(dbuf) - m.SetText(m1) - m2 := &RichText{} - m2.Decode(dbuf) - m.SetCaption(m2) +// userEmpty#200250ba id:int = User; +func (m *User) To_UserEmpty() *TLUserEmpty { + return &TLUserEmpty{ + Data2: m.Data2, + } +} - return dbuf.err +// user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User; +func (m *User) To_User() *TLUser { + return &TLUser{ + Data2: m.Data2, + } } -// pageBlockPhoto#e9c69982 photo_id:long caption:RichText = PageBlock; -func (m *TLPageBlockPhoto) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockPhoto, +// userEmpty#200250ba id:int = User; +func (m *TLUserEmpty) To_User() *User { + return &User{ + Constructor: TLConstructor_CRC32_userEmpty, Data2: m.Data2, } } -func (m *TLPageBlockPhoto) SetPhotoId(v int64) { m.Data2.PhotoId = v } -func (m *TLPageBlockPhoto) GetPhotoId() int64 { return m.Data2.PhotoId } - -func (m *TLPageBlockPhoto) SetCaption(v *RichText) { m.Data2.Caption = v } -func (m *TLPageBlockPhoto) GetCaption() *RichText { return m.Data2.Caption } +func (m *TLUserEmpty) SetId(v int32) { m.Data2.Id = v } +func (m *TLUserEmpty) GetId() int32 { return m.Data2.Id } -func NewTLPageBlockPhoto() *TLPageBlockPhoto { - return &TLPageBlockPhoto{Data2: &PageBlock_Data{}} +func NewTLUserEmpty() *TLUserEmpty { + return &TLUserEmpty{Data2: &User_Data{}} } -func (m *TLPageBlockPhoto) Encode() []byte { +func (m *TLUserEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockPhoto)) + x.Int(int32(TLConstructor_CRC32_userEmpty)) - x.Long(m.GetPhotoId()) - x.Bytes(m.GetCaption().Encode()) + x.Int(m.GetId()) return x.buf } -func (m *TLPageBlockPhoto) EncodeToLayer(layer int) []byte { +func (m *TLUserEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockPhoto)) + x.Int(int32(TLConstructor_CRC32_userEmpty)) - x.Long(m.GetPhotoId()) - x.Bytes(m.GetCaption().EncodeToLayer(layer)) + x.Int(m.GetId()) return x.buf } -func (m *TLPageBlockPhoto) Decode(dbuf *DecodeBuf) error { - m.SetPhotoId(dbuf.Long()) - m2 := &RichText{} - m2.Decode(dbuf) - m.SetCaption(m2) +func (m *TLUserEmpty) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) return dbuf.err } -// pageBlockVideo#d9d71866 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:RichText = PageBlock; -func (m *TLPageBlockVideo) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockVideo, +// user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User; +func (m *TLUser) To_User() *User { + return &User{ + Constructor: TLConstructor_CRC32_user, Data2: m.Data2, } } -func (m *TLPageBlockVideo) SetAutoplay(v bool) { m.Data2.Autoplay = v } -func (m *TLPageBlockVideo) GetAutoplay() bool { return m.Data2.Autoplay } +func (m *TLUser) SetSelf(v bool) { m.Data2.Self = v } +func (m *TLUser) GetSelf() bool { return m.Data2.Self } -func (m *TLPageBlockVideo) SetLoop(v bool) { m.Data2.Loop = v } -func (m *TLPageBlockVideo) GetLoop() bool { return m.Data2.Loop } +func (m *TLUser) SetContact(v bool) { m.Data2.Contact = v } +func (m *TLUser) GetContact() bool { return m.Data2.Contact } -func (m *TLPageBlockVideo) SetVideoId(v int64) { m.Data2.VideoId = v } -func (m *TLPageBlockVideo) GetVideoId() int64 { return m.Data2.VideoId } +func (m *TLUser) SetMutualContact(v bool) { m.Data2.MutualContact = v } +func (m *TLUser) GetMutualContact() bool { return m.Data2.MutualContact } -func (m *TLPageBlockVideo) SetCaption(v *RichText) { m.Data2.Caption = v } -func (m *TLPageBlockVideo) GetCaption() *RichText { return m.Data2.Caption } +func (m *TLUser) SetDeleted(v bool) { m.Data2.Deleted = v } +func (m *TLUser) GetDeleted() bool { return m.Data2.Deleted } -func NewTLPageBlockVideo() *TLPageBlockVideo { - return &TLPageBlockVideo{Data2: &PageBlock_Data{}} -} +func (m *TLUser) SetBot(v bool) { m.Data2.Bot = v } +func (m *TLUser) GetBot() bool { return m.Data2.Bot } -func (m *TLPageBlockVideo) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockVideo)) +func (m *TLUser) SetBotChatHistory(v bool) { m.Data2.BotChatHistory = v } +func (m *TLUser) GetBotChatHistory() bool { return m.Data2.BotChatHistory } - // flags - var flags uint32 = 0 - if m.GetAutoplay() == true { - flags |= 1 << 0 - } - if m.GetLoop() == true { - flags |= 1 << 1 - } - x.UInt(flags) +func (m *TLUser) SetBotNochats(v bool) { m.Data2.BotNochats = v } +func (m *TLUser) GetBotNochats() bool { return m.Data2.BotNochats } - x.Long(m.GetVideoId()) - x.Bytes(m.GetCaption().Encode()) +func (m *TLUser) SetVerified(v bool) { m.Data2.Verified = v } +func (m *TLUser) GetVerified() bool { return m.Data2.Verified } - return x.buf -} +func (m *TLUser) SetRestricted(v bool) { m.Data2.Restricted = v } +func (m *TLUser) GetRestricted() bool { return m.Data2.Restricted } -func (m *TLPageBlockVideo) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockVideo)) +func (m *TLUser) SetMin(v bool) { m.Data2.Min = v } +func (m *TLUser) GetMin() bool { return m.Data2.Min } - // flags - var flags uint32 = 0 - if m.GetAutoplay() == true { - flags |= 1 << 0 - } - if m.GetLoop() == true { - flags |= 1 << 1 - } - x.UInt(flags) +func (m *TLUser) SetBotInlineGeo(v bool) { m.Data2.BotInlineGeo = v } +func (m *TLUser) GetBotInlineGeo() bool { return m.Data2.BotInlineGeo } - x.Long(m.GetVideoId()) - x.Bytes(m.GetCaption().EncodeToLayer(layer)) +func (m *TLUser) SetId(v int32) { m.Data2.Id = v } +func (m *TLUser) GetId() int32 { return m.Data2.Id } - return x.buf -} +func (m *TLUser) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLUser) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLPageBlockVideo) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetAutoplay(true) - } - if (flags & (1 << 1)) != 0 { - m.SetLoop(true) - } - m.SetVideoId(dbuf.Long()) - m5 := &RichText{} - m5.Decode(dbuf) - m.SetCaption(m5) +func (m *TLUser) SetFirstName(v string) { m.Data2.FirstName = v } +func (m *TLUser) GetFirstName() string { return m.Data2.FirstName } - return dbuf.err -} +func (m *TLUser) SetLastName(v string) { m.Data2.LastName = v } +func (m *TLUser) GetLastName() string { return m.Data2.LastName } -// pageBlockCover#39f23300 cover:PageBlock = PageBlock; -func (m *TLPageBlockCover) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockCover, - Data2: m.Data2, - } -} +func (m *TLUser) SetUsername(v string) { m.Data2.Username = v } +func (m *TLUser) GetUsername() string { return m.Data2.Username } -func (m *TLPageBlockCover) SetCover(v *PageBlock) { m.Data2.Cover = v } -func (m *TLPageBlockCover) GetCover() *PageBlock { return m.Data2.Cover } +func (m *TLUser) SetPhone(v string) { m.Data2.Phone = v } +func (m *TLUser) GetPhone() string { return m.Data2.Phone } -func NewTLPageBlockCover() *TLPageBlockCover { - return &TLPageBlockCover{Data2: &PageBlock_Data{}} -} +func (m *TLUser) SetPhoto(v *UserProfilePhoto) { m.Data2.Photo = v } +func (m *TLUser) GetPhoto() *UserProfilePhoto { return m.Data2.Photo } -func (m *TLPageBlockCover) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockCover)) +func (m *TLUser) SetStatus(v *UserStatus) { m.Data2.Status = v } +func (m *TLUser) GetStatus() *UserStatus { return m.Data2.Status } - x.Bytes(m.GetCover().Encode()) +func (m *TLUser) SetBotInfoVersion(v int32) { m.Data2.BotInfoVersion = v } +func (m *TLUser) GetBotInfoVersion() int32 { return m.Data2.BotInfoVersion } - return x.buf -} +func (m *TLUser) SetRestrictionReason(v string) { m.Data2.RestrictionReason = v } +func (m *TLUser) GetRestrictionReason() string { return m.Data2.RestrictionReason } -func (m *TLPageBlockCover) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockCover)) +func (m *TLUser) SetBotInlinePlaceholder(v string) { m.Data2.BotInlinePlaceholder = v } +func (m *TLUser) GetBotInlinePlaceholder() string { return m.Data2.BotInlinePlaceholder } - x.Bytes(m.GetCover().EncodeToLayer(layer)) +func (m *TLUser) SetLangCode(v string) { m.Data2.LangCode = v } +func (m *TLUser) GetLangCode() string { return m.Data2.LangCode } - return x.buf -} - -func (m *TLPageBlockCover) Decode(dbuf *DecodeBuf) error { - m1 := &PageBlock{} - m1.Decode(dbuf) - m.SetCover(m1) - - return dbuf.err -} - -// pageBlockEmbed#cde200d1 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:int h:int caption:RichText = PageBlock; -func (m *TLPageBlockEmbed) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockEmbed, - Data2: m.Data2, - } -} - -func (m *TLPageBlockEmbed) SetFullWidth(v bool) { m.Data2.FullWidth = v } -func (m *TLPageBlockEmbed) GetFullWidth() bool { return m.Data2.FullWidth } - -func (m *TLPageBlockEmbed) SetAllowScrolling(v bool) { m.Data2.AllowScrolling = v } -func (m *TLPageBlockEmbed) GetAllowScrolling() bool { return m.Data2.AllowScrolling } - -func (m *TLPageBlockEmbed) SetUrl(v string) { m.Data2.Url = v } -func (m *TLPageBlockEmbed) GetUrl() string { return m.Data2.Url } - -func (m *TLPageBlockEmbed) SetHtml(v string) { m.Data2.Html = v } -func (m *TLPageBlockEmbed) GetHtml() string { return m.Data2.Html } - -func (m *TLPageBlockEmbed) SetPosterPhotoId(v int64) { m.Data2.PosterPhotoId = v } -func (m *TLPageBlockEmbed) GetPosterPhotoId() int64 { return m.Data2.PosterPhotoId } - -func (m *TLPageBlockEmbed) SetW(v int32) { m.Data2.W = v } -func (m *TLPageBlockEmbed) GetW() int32 { return m.Data2.W } - -func (m *TLPageBlockEmbed) SetH(v int32) { m.Data2.H = v } -func (m *TLPageBlockEmbed) GetH() int32 { return m.Data2.H } - -func (m *TLPageBlockEmbed) SetCaption(v *RichText) { m.Data2.Caption = v } -func (m *TLPageBlockEmbed) GetCaption() *RichText { return m.Data2.Caption } - -func NewTLPageBlockEmbed() *TLPageBlockEmbed { - return &TLPageBlockEmbed{Data2: &PageBlock_Data{}} +func NewTLUser() *TLUser { + return &TLUser{Data2: &User_Data{}} } -func (m *TLPageBlockEmbed) Encode() []byte { +func (m *TLUser) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockEmbed)) + x.Int(int32(TLConstructor_CRC32_user)) // flags var flags uint32 = 0 - if m.GetFullWidth() == true { - flags |= 1 << 0 + if m.GetSelf() == true { + flags |= 1 << 10 } - if m.GetAllowScrolling() == true { - flags |= 1 << 3 + if m.GetContact() == true { + flags |= 1 << 11 } - if m.GetUrl() != "" { + if m.GetMutualContact() == true { + flags |= 1 << 12 + } + if m.GetDeleted() == true { + flags |= 1 << 13 + } + if m.GetBot() == true { + flags |= 1 << 14 + } + if m.GetBotChatHistory() == true { + flags |= 1 << 15 + } + if m.GetBotNochats() == true { + flags |= 1 << 16 + } + if m.GetVerified() == true { + flags |= 1 << 17 + } + if m.GetRestricted() == true { + flags |= 1 << 18 + } + if m.GetMin() == true { + flags |= 1 << 20 + } + if m.GetBotInlineGeo() == true { + flags |= 1 << 21 + } + if m.GetAccessHash() != 0 { + flags |= 1 << 0 + } + if m.GetFirstName() != "" { flags |= 1 << 1 } - if m.GetHtml() != "" { + if m.GetLastName() != "" { flags |= 1 << 2 } - if m.GetPosterPhotoId() != 0 { + if m.GetUsername() != "" { + flags |= 1 << 3 + } + if m.GetPhone() != "" { flags |= 1 << 4 } + if m.GetPhoto() != nil { + flags |= 1 << 5 + } + if m.GetStatus() != nil { + flags |= 1 << 6 + } + if m.GetBotInfoVersion() != 0 { + flags |= 1 << 14 + } + if m.GetRestrictionReason() != "" { + flags |= 1 << 18 + } + if m.GetBotInlinePlaceholder() != "" { + flags |= 1 << 19 + } + if m.GetLangCode() != "" { + flags |= 1 << 22 + } x.UInt(flags) - if m.GetUrl() != "" { - x.String(m.GetUrl()) + x.Int(m.GetId()) + if m.GetAccessHash() != 0 { + x.Long(m.GetAccessHash()) } - if m.GetHtml() != "" { - x.String(m.GetHtml()) + if m.GetFirstName() != "" { + x.String(m.GetFirstName()) } - if m.GetPosterPhotoId() != 0 { - x.Long(m.GetPosterPhotoId()) + if m.GetLastName() != "" { + x.String(m.GetLastName()) + } + if m.GetUsername() != "" { + x.String(m.GetUsername()) + } + if m.GetPhone() != "" { + x.String(m.GetPhone()) + } + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().Encode()) + } + if m.GetStatus() != nil { + x.Bytes(m.GetStatus().Encode()) + } + if m.GetBotInfoVersion() != 0 { + x.Int(m.GetBotInfoVersion()) + } + if m.GetRestrictionReason() != "" { + x.String(m.GetRestrictionReason()) + } + if m.GetBotInlinePlaceholder() != "" { + x.String(m.GetBotInlinePlaceholder()) + } + if m.GetLangCode() != "" { + x.String(m.GetLangCode()) } - x.Int(m.GetW()) - x.Int(m.GetH()) - x.Bytes(m.GetCaption().Encode()) return x.buf } -func (m *TLPageBlockEmbed) EncodeToLayer(layer int) []byte { +func (m *TLUser) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockEmbed)) + x.Int(int32(TLConstructor_CRC32_user)) // flags var flags uint32 = 0 - if m.GetFullWidth() == true { - flags |= 1 << 0 + if m.GetSelf() == true { + flags |= 1 << 10 } - if m.GetAllowScrolling() == true { - flags |= 1 << 3 + if m.GetContact() == true { + flags |= 1 << 11 } - if m.GetUrl() != "" { + if m.GetMutualContact() == true { + flags |= 1 << 12 + } + if m.GetDeleted() == true { + flags |= 1 << 13 + } + if m.GetBot() == true { + flags |= 1 << 14 + } + if m.GetBotChatHistory() == true { + flags |= 1 << 15 + } + if m.GetBotNochats() == true { + flags |= 1 << 16 + } + if m.GetVerified() == true { + flags |= 1 << 17 + } + if m.GetRestricted() == true { + flags |= 1 << 18 + } + if m.GetMin() == true { + flags |= 1 << 20 + } + if m.GetBotInlineGeo() == true { + flags |= 1 << 21 + } + if m.GetAccessHash() != 0 { + flags |= 1 << 0 + } + if m.GetFirstName() != "" { flags |= 1 << 1 } - if m.GetHtml() != "" { + if m.GetLastName() != "" { flags |= 1 << 2 } - if m.GetPosterPhotoId() != 0 { + if m.GetUsername() != "" { + flags |= 1 << 3 + } + if m.GetPhone() != "" { flags |= 1 << 4 } + if m.GetPhoto() != nil { + flags |= 1 << 5 + } + if m.GetStatus() != nil { + flags |= 1 << 6 + } + if m.GetBotInfoVersion() != 0 { + flags |= 1 << 14 + } + if m.GetRestrictionReason() != "" { + flags |= 1 << 18 + } + if m.GetBotInlinePlaceholder() != "" { + flags |= 1 << 19 + } + if m.GetLangCode() != "" { + flags |= 1 << 22 + } x.UInt(flags) - if m.GetUrl() != "" { - x.String(m.GetUrl()) + x.Int(m.GetId()) + if m.GetAccessHash() != 0 { + x.Long(m.GetAccessHash()) } - if m.GetHtml() != "" { - x.String(m.GetHtml()) + if m.GetFirstName() != "" { + x.String(m.GetFirstName()) } - if m.GetPosterPhotoId() != 0 { - x.Long(m.GetPosterPhotoId()) + if m.GetLastName() != "" { + x.String(m.GetLastName()) + } + if m.GetUsername() != "" { + x.String(m.GetUsername()) + } + if m.GetPhone() != "" { + x.String(m.GetPhone()) + } + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + } + if m.GetStatus() != nil { + x.Bytes(m.GetStatus().EncodeToLayer(layer)) + } + if m.GetBotInfoVersion() != 0 { + x.Int(m.GetBotInfoVersion()) + } + if m.GetRestrictionReason() != "" { + x.String(m.GetRestrictionReason()) + } + if m.GetBotInlinePlaceholder() != "" { + x.String(m.GetBotInlinePlaceholder()) + } + if m.GetLangCode() != "" { + x.String(m.GetLangCode()) } - x.Int(m.GetW()) - x.Int(m.GetH()) - x.Bytes(m.GetCaption().EncodeToLayer(layer)) return x.buf } -func (m *TLPageBlockEmbed) Decode(dbuf *DecodeBuf) error { +func (m *TLUser) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - if (flags & (1 << 0)) != 0 { - m.SetFullWidth(true) + if (flags & (1 << 10)) != 0 { + m.SetSelf(true) } - if (flags & (1 << 3)) != 0 { - m.SetAllowScrolling(true) + if (flags & (1 << 11)) != 0 { + m.SetContact(true) + } + if (flags & (1 << 12)) != 0 { + m.SetMutualContact(true) + } + if (flags & (1 << 13)) != 0 { + m.SetDeleted(true) + } + if (flags & (1 << 14)) != 0 { + m.SetBot(true) + } + if (flags & (1 << 15)) != 0 { + m.SetBotChatHistory(true) + } + if (flags & (1 << 16)) != 0 { + m.SetBotNochats(true) + } + if (flags & (1 << 17)) != 0 { + m.SetVerified(true) + } + if (flags & (1 << 18)) != 0 { + m.SetRestricted(true) + } + if (flags & (1 << 20)) != 0 { + m.SetMin(true) + } + if (flags & (1 << 21)) != 0 { + m.SetBotInlineGeo(true) + } + m.SetId(dbuf.Int()) + if (flags & (1 << 0)) != 0 { + m.SetAccessHash(dbuf.Long()) } if (flags & (1 << 1)) != 0 { - m.SetUrl(dbuf.String()) + m.SetFirstName(dbuf.String()) } if (flags & (1 << 2)) != 0 { - m.SetHtml(dbuf.String()) + m.SetLastName(dbuf.String()) + } + if (flags & (1 << 3)) != 0 { + m.SetUsername(dbuf.String()) } if (flags & (1 << 4)) != 0 { - m.SetPosterPhotoId(dbuf.Long()) + m.SetPhone(dbuf.String()) + } + if (flags & (1 << 5)) != 0 { + m19 := &UserProfilePhoto{} + m19.Decode(dbuf) + m.SetPhoto(m19) + } + if (flags & (1 << 6)) != 0 { + m20 := &UserStatus{} + m20.Decode(dbuf) + m.SetStatus(m20) + } + if (flags & (1 << 14)) != 0 { + m.SetBotInfoVersion(dbuf.Int()) + } + if (flags & (1 << 18)) != 0 { + m.SetRestrictionReason(dbuf.String()) + } + if (flags & (1 << 19)) != 0 { + m.SetBotInlinePlaceholder(dbuf.String()) + } + if (flags & (1 << 22)) != 0 { + m.SetLangCode(dbuf.String()) } - m.SetW(dbuf.Int()) - m.SetH(dbuf.Int()) - m9 := &RichText{} - m9.Decode(dbuf) - m.SetCaption(m9) return dbuf.err } -// pageBlockEmbedPost#292c7be9 url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:RichText = PageBlock; -func (m *TLPageBlockEmbedPost) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockEmbedPost, - Data2: m.Data2, - } -} - -func (m *TLPageBlockEmbedPost) SetUrl(v string) { m.Data2.Url = v } -func (m *TLPageBlockEmbedPost) GetUrl() string { return m.Data2.Url } - -func (m *TLPageBlockEmbedPost) SetWebpageId(v int64) { m.Data2.WebpageId = v } -func (m *TLPageBlockEmbedPost) GetWebpageId() int64 { return m.Data2.WebpageId } - -func (m *TLPageBlockEmbedPost) SetAuthorPhotoId(v int64) { m.Data2.AuthorPhotoId = v } -func (m *TLPageBlockEmbedPost) GetAuthorPhotoId() int64 { return m.Data2.AuthorPhotoId } - -func (m *TLPageBlockEmbedPost) SetAuthor(v string) { m.Data2.Author_23 = v } -func (m *TLPageBlockEmbedPost) GetAuthor() string { return m.Data2.Author_23 } - -func (m *TLPageBlockEmbedPost) SetDate(v int32) { m.Data2.Date = v } -func (m *TLPageBlockEmbedPost) GetDate() int32 { return m.Data2.Date } - -func (m *TLPageBlockEmbedPost) SetBlocks(v []*PageBlock) { m.Data2.Blocks = v } -func (m *TLPageBlockEmbedPost) GetBlocks() []*PageBlock { return m.Data2.Blocks } +/////////////////////////////////////////////////////////////////////////////// +// Dialog <-- +// + TL_Dialog +// -func (m *TLPageBlockEmbedPost) SetCaption(v *RichText) { m.Data2.Caption = v } -func (m *TLPageBlockEmbedPost) GetCaption() *RichText { return m.Data2.Caption } +func (m *Dialog) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_dialog: + t := m.To_Dialog() + return t.Encode() -func NewTLPageBlockEmbedPost() *TLPageBlockEmbedPost { - return &TLPageBlockEmbedPost{Data2: &PageBlock_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLPageBlockEmbedPost) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockEmbedPost)) +func (m *Dialog) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_dialog: + t := m.To_Dialog() + return t.EncodeToLayer(layer) - x.String(m.GetUrl()) - x.Long(m.GetWebpageId()) - x.Long(m.GetAuthorPhotoId()) - x.String(m.GetAuthor()) - x.Int(m.GetDate()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocks()))) - for _, v := range m.GetBlocks() { - x.buf = append(x.buf, (*v).Encode()...) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - x.Bytes(m.GetCaption().Encode()) - - return x.buf } -func (m *TLPageBlockEmbedPost) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockEmbedPost)) +func (m *Dialog) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_dialog: + m2 := &TLDialog{Data2: &Dialog_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - x.String(m.GetUrl()) - x.Long(m.GetWebpageId()) - x.Long(m.GetAuthorPhotoId()) - x.String(m.GetAuthor()) - x.Int(m.GetDate()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocks()))) - for _, v := range m.GetBlocks() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - x.Bytes(m.GetCaption().EncodeToLayer(layer)) - - return x.buf + return dbuf.err } -func (m *TLPageBlockEmbedPost) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m.SetWebpageId(dbuf.Long()) - m.SetAuthorPhotoId(dbuf.Long()) - m.SetAuthor(dbuf.String()) - m.SetDate(dbuf.Int()) - c6 := dbuf.Int() - if c6 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) - return dbuf.err - } - l6 := dbuf.Int() - v6 := make([]*PageBlock, l6) - for i := int32(0); i < l6; i++ { - v6[i] = &PageBlock{} - v6[i].Decode(dbuf) +// dialog#e4def5db flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog; +func (m *Dialog) To_Dialog() *TLDialog { + return &TLDialog{ + Data2: m.Data2, } - m.SetBlocks(v6) - - m7 := &RichText{} - m7.Decode(dbuf) - m.SetCaption(m7) - - return dbuf.err } -// pageBlockCollage#8b31c4f items:Vector caption:RichText = PageBlock; -func (m *TLPageBlockCollage) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockCollage, +// dialog#e4def5db flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog; +func (m *TLDialog) To_Dialog() *Dialog { + return &Dialog{ + Constructor: TLConstructor_CRC32_dialog, Data2: m.Data2, } } -func (m *TLPageBlockCollage) SetItems(v []*PageBlock) { m.Data2.Items_26 = v } -func (m *TLPageBlockCollage) GetItems() []*PageBlock { return m.Data2.Items_26 } +func (m *TLDialog) SetPinned(v bool) { m.Data2.Pinned = v } +func (m *TLDialog) GetPinned() bool { return m.Data2.Pinned } -func (m *TLPageBlockCollage) SetCaption(v *RichText) { m.Data2.Caption = v } -func (m *TLPageBlockCollage) GetCaption() *RichText { return m.Data2.Caption } +func (m *TLDialog) SetUnreadMark(v bool) { m.Data2.UnreadMark = v } +func (m *TLDialog) GetUnreadMark() bool { return m.Data2.UnreadMark } -func NewTLPageBlockCollage() *TLPageBlockCollage { - return &TLPageBlockCollage{Data2: &PageBlock_Data{}} -} +func (m *TLDialog) SetPeer(v *Peer) { m.Data2.Peer = v } +func (m *TLDialog) GetPeer() *Peer { return m.Data2.Peer } -func (m *TLPageBlockCollage) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockCollage)) +func (m *TLDialog) SetTopMessage(v int32) { m.Data2.TopMessage = v } +func (m *TLDialog) GetTopMessage() int32 { return m.Data2.TopMessage } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetItems()))) - for _, v := range m.GetItems() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Bytes(m.GetCaption().Encode()) +func (m *TLDialog) SetReadInboxMaxId(v int32) { m.Data2.ReadInboxMaxId = v } +func (m *TLDialog) GetReadInboxMaxId() int32 { return m.Data2.ReadInboxMaxId } - return x.buf -} +func (m *TLDialog) SetReadOutboxMaxId(v int32) { m.Data2.ReadOutboxMaxId = v } +func (m *TLDialog) GetReadOutboxMaxId() int32 { return m.Data2.ReadOutboxMaxId } -func (m *TLPageBlockCollage) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockCollage)) +func (m *TLDialog) SetUnreadCount(v int32) { m.Data2.UnreadCount = v } +func (m *TLDialog) GetUnreadCount() int32 { return m.Data2.UnreadCount } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetItems()))) - for _, v := range m.GetItems() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Bytes(m.GetCaption().EncodeToLayer(layer)) +func (m *TLDialog) SetUnreadMentionsCount(v int32) { m.Data2.UnreadMentionsCount = v } +func (m *TLDialog) GetUnreadMentionsCount() int32 { return m.Data2.UnreadMentionsCount } - return x.buf -} - -func (m *TLPageBlockCollage) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*PageBlock, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &PageBlock{} - v1[i].Decode(dbuf) - } - m.SetItems(v1) - - m2 := &RichText{} - m2.Decode(dbuf) - m.SetCaption(m2) - - return dbuf.err -} - -// pageBlockSlideshow#130c8963 items:Vector caption:RichText = PageBlock; -func (m *TLPageBlockSlideshow) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockSlideshow, - Data2: m.Data2, - } -} +func (m *TLDialog) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } +func (m *TLDialog) GetNotifySettings() *PeerNotifySettings { return m.Data2.NotifySettings } -func (m *TLPageBlockSlideshow) SetItems(v []*PageBlock) { m.Data2.Items_26 = v } -func (m *TLPageBlockSlideshow) GetItems() []*PageBlock { return m.Data2.Items_26 } +func (m *TLDialog) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLDialog) GetPts() int32 { return m.Data2.Pts } -func (m *TLPageBlockSlideshow) SetCaption(v *RichText) { m.Data2.Caption = v } -func (m *TLPageBlockSlideshow) GetCaption() *RichText { return m.Data2.Caption } +func (m *TLDialog) SetDraft(v *DraftMessage) { m.Data2.Draft = v } +func (m *TLDialog) GetDraft() *DraftMessage { return m.Data2.Draft } -func NewTLPageBlockSlideshow() *TLPageBlockSlideshow { - return &TLPageBlockSlideshow{Data2: &PageBlock_Data{}} +func NewTLDialog() *TLDialog { + return &TLDialog{Data2: &Dialog_Data{}} } -func (m *TLPageBlockSlideshow) Encode() []byte { +func (m *TLDialog) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockSlideshow)) + x.Int(int32(TLConstructor_CRC32_dialog)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetItems()))) - for _, v := range m.GetItems() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetPinned() == true { + flags |= 1 << 2 } - x.Bytes(m.GetCaption().Encode()) - - return x.buf -} - -func (m *TLPageBlockSlideshow) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockSlideshow)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetItems()))) - for _, v := range m.GetItems() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + if m.GetUnreadMark() == true { + flags |= 1 << 3 } - x.Bytes(m.GetCaption().EncodeToLayer(layer)) - - return x.buf -} - -func (m *TLPageBlockSlideshow) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err + if m.GetPts() != 0 { + flags |= 1 << 0 } - l1 := dbuf.Int() - v1 := make([]*PageBlock, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &PageBlock{} - v1[i].Decode(dbuf) + if m.GetDraft() != nil { + flags |= 1 << 1 } - m.SetItems(v1) - - m2 := &RichText{} - m2.Decode(dbuf) - m.SetCaption(m2) - - return dbuf.err -} + x.UInt(flags) -// pageBlockChannel#ef1751b5 channel:Chat = PageBlock; -func (m *TLPageBlockChannel) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockChannel, - Data2: m.Data2, + x.Bytes(m.GetPeer().Encode()) + x.Int(m.GetTopMessage()) + x.Int(m.GetReadInboxMaxId()) + x.Int(m.GetReadOutboxMaxId()) + x.Int(m.GetUnreadCount()) + x.Int(m.GetUnreadMentionsCount()) + x.Bytes(m.GetNotifySettings().Encode()) + if m.GetPts() != 0 { + x.Int(m.GetPts()) + } + if m.GetDraft() != nil { + x.Bytes(m.GetDraft().Encode()) } -} - -func (m *TLPageBlockChannel) SetChannel(v *Chat) { m.Data2.Channel = v } -func (m *TLPageBlockChannel) GetChannel() *Chat { return m.Data2.Channel } - -func NewTLPageBlockChannel() *TLPageBlockChannel { - return &TLPageBlockChannel{Data2: &PageBlock_Data{}} -} - -func (m *TLPageBlockChannel) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockChannel)) - - x.Bytes(m.GetChannel().Encode()) return x.buf } -func (m *TLPageBlockChannel) EncodeToLayer(layer int) []byte { +func (m *TLDialog) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockChannel)) - - x.Bytes(m.GetChannel().EncodeToLayer(layer)) - - return x.buf -} - -func (m *TLPageBlockChannel) Decode(dbuf *DecodeBuf) error { - m1 := &Chat{} - m1.Decode(dbuf) - m.SetChannel(m1) - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_dialog)) -// pageBlockAudio#31b81a7f audio_id:long caption:RichText = PageBlock; -func (m *TLPageBlockAudio) To_PageBlock() *PageBlock { - return &PageBlock{ - Constructor: TLConstructor_CRC32_pageBlockAudio, - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetPinned() == true { + flags |= 1 << 2 } -} - -func (m *TLPageBlockAudio) SetAudioId(v int64) { m.Data2.AudioId = v } -func (m *TLPageBlockAudio) GetAudioId() int64 { return m.Data2.AudioId } - -func (m *TLPageBlockAudio) SetCaption(v *RichText) { m.Data2.Caption = v } -func (m *TLPageBlockAudio) GetCaption() *RichText { return m.Data2.Caption } - -func NewTLPageBlockAudio() *TLPageBlockAudio { - return &TLPageBlockAudio{Data2: &PageBlock_Data{}} -} - -func (m *TLPageBlockAudio) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockAudio)) - - x.Long(m.GetAudioId()) - x.Bytes(m.GetCaption().Encode()) - - return x.buf -} - -func (m *TLPageBlockAudio) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_pageBlockAudio)) + if m.GetUnreadMark() == true { + flags |= 1 << 3 + } + if m.GetPts() != 0 { + flags |= 1 << 0 + } + if m.GetDraft() != nil { + flags |= 1 << 1 + } + x.UInt(flags) - x.Long(m.GetAudioId()) - x.Bytes(m.GetCaption().EncodeToLayer(layer)) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.Int(m.GetTopMessage()) + x.Int(m.GetReadInboxMaxId()) + x.Int(m.GetReadOutboxMaxId()) + x.Int(m.GetUnreadCount()) + x.Int(m.GetUnreadMentionsCount()) + x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) + if m.GetPts() != 0 { + x.Int(m.GetPts()) + } + if m.GetDraft() != nil { + x.Bytes(m.GetDraft().EncodeToLayer(layer)) + } return x.buf } -func (m *TLPageBlockAudio) Decode(dbuf *DecodeBuf) error { - m.SetAudioId(dbuf.Long()) - m2 := &RichText{} - m2.Decode(dbuf) - m.SetCaption(m2) +func (m *TLDialog) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 2)) != 0 { + m.SetPinned(true) + } + if (flags & (1 << 3)) != 0 { + m.SetUnreadMark(true) + } + m4 := &Peer{} + m4.Decode(dbuf) + m.SetPeer(m4) + m.SetTopMessage(dbuf.Int()) + m.SetReadInboxMaxId(dbuf.Int()) + m.SetReadOutboxMaxId(dbuf.Int()) + m.SetUnreadCount(dbuf.Int()) + m.SetUnreadMentionsCount(dbuf.Int()) + m10 := &PeerNotifySettings{} + m10.Decode(dbuf) + m.SetNotifySettings(m10) + if (flags & (1 << 0)) != 0 { + m.SetPts(dbuf.Int()) + } + if (flags & (1 << 1)) != 0 { + m12 := &DraftMessage{} + m12.Decode(dbuf) + m.SetDraft(m12) + } return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PostAddress <-- -// + TL_PostAddress +// StickerSet <-- +// + TL_StickerSet // -func (m *PostAddress) Encode() []byte { +func (m *StickerSet) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_postAddress: - t := m.To_PostAddress() + case TLConstructor_CRC32_stickerSet: + t := m.To_StickerSet() return t.Encode() default: @@ -15410,11 +15589,11 @@ func (m *PostAddress) Encode() []byte { } } -func (m *PostAddress) EncodeToLayer(layer int) []byte { +func (m *StickerSet) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_postAddress: - t := m.To_PostAddress() + case TLConstructor_CRC32_stickerSet: + t := m.To_StickerSet() return t.EncodeToLayer(layer) default: @@ -15423,11 +15602,11 @@ func (m *PostAddress) EncodeToLayer(layer int) []byte { } } -func (m *PostAddress) Decode(dbuf *DecodeBuf) error { +func (m *StickerSet) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_postAddress: - m2 := &TLPostAddress{Data2: &PostAddress_Data{}} + case TLConstructor_CRC32_stickerSet: + m2 := &TLStickerSet{Data2: &StickerSet_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -15437,91 +15616,159 @@ func (m *PostAddress) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress; -func (m *PostAddress) To_PostAddress() *TLPostAddress { - return &TLPostAddress{ +// stickerSet#5585a139 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet; +func (m *StickerSet) To_StickerSet() *TLStickerSet { + return &TLStickerSet{ Data2: m.Data2, } } -// postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress; -func (m *TLPostAddress) To_PostAddress() *PostAddress { - return &PostAddress{ - Constructor: TLConstructor_CRC32_postAddress, +// stickerSet#5585a139 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet; +func (m *TLStickerSet) To_StickerSet() *StickerSet { + return &StickerSet{ + Constructor: TLConstructor_CRC32_stickerSet, Data2: m.Data2, } } -func (m *TLPostAddress) SetStreetLine1(v string) { m.Data2.StreetLine1 = v } -func (m *TLPostAddress) GetStreetLine1() string { return m.Data2.StreetLine1 } +func (m *TLStickerSet) SetArchived(v bool) { m.Data2.Archived = v } +func (m *TLStickerSet) GetArchived() bool { return m.Data2.Archived } -func (m *TLPostAddress) SetStreetLine2(v string) { m.Data2.StreetLine2 = v } -func (m *TLPostAddress) GetStreetLine2() string { return m.Data2.StreetLine2 } +func (m *TLStickerSet) SetOfficial(v bool) { m.Data2.Official = v } +func (m *TLStickerSet) GetOfficial() bool { return m.Data2.Official } -func (m *TLPostAddress) SetCity(v string) { m.Data2.City = v } -func (m *TLPostAddress) GetCity() string { return m.Data2.City } +func (m *TLStickerSet) SetMasks(v bool) { m.Data2.Masks = v } +func (m *TLStickerSet) GetMasks() bool { return m.Data2.Masks } -func (m *TLPostAddress) SetState(v string) { m.Data2.State = v } -func (m *TLPostAddress) GetState() string { return m.Data2.State } +func (m *TLStickerSet) SetInstalledDate(v int32) { m.Data2.InstalledDate = v } +func (m *TLStickerSet) GetInstalledDate() int32 { return m.Data2.InstalledDate } -func (m *TLPostAddress) SetCountryIso2(v string) { m.Data2.CountryIso2 = v } -func (m *TLPostAddress) GetCountryIso2() string { return m.Data2.CountryIso2 } +func (m *TLStickerSet) SetId(v int64) { m.Data2.Id = v } +func (m *TLStickerSet) GetId() int64 { return m.Data2.Id } -func (m *TLPostAddress) SetPostCode(v string) { m.Data2.PostCode = v } -func (m *TLPostAddress) GetPostCode() string { return m.Data2.PostCode } +func (m *TLStickerSet) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLStickerSet) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLPostAddress() *TLPostAddress { - return &TLPostAddress{Data2: &PostAddress_Data{}} +func (m *TLStickerSet) SetTitle(v string) { m.Data2.Title = v } +func (m *TLStickerSet) GetTitle() string { return m.Data2.Title } + +func (m *TLStickerSet) SetShortName(v string) { m.Data2.ShortName = v } +func (m *TLStickerSet) GetShortName() string { return m.Data2.ShortName } + +func (m *TLStickerSet) SetCount(v int32) { m.Data2.Count = v } +func (m *TLStickerSet) GetCount() int32 { return m.Data2.Count } + +func (m *TLStickerSet) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLStickerSet) GetHash() int32 { return m.Data2.Hash } + +func NewTLStickerSet() *TLStickerSet { + return &TLStickerSet{Data2: &StickerSet_Data{}} } -func (m *TLPostAddress) Encode() []byte { +func (m *TLStickerSet) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_postAddress)) + x.Int(int32(TLConstructor_CRC32_stickerSet)) - x.String(m.GetStreetLine1()) - x.String(m.GetStreetLine2()) - x.String(m.GetCity()) - x.String(m.GetState()) - x.String(m.GetCountryIso2()) - x.String(m.GetPostCode()) + // flags + var flags uint32 = 0 + if m.GetArchived() == true { + flags |= 1 << 1 + } + if m.GetOfficial() == true { + flags |= 1 << 2 + } + if m.GetMasks() == true { + flags |= 1 << 3 + } + if m.GetInstalledDate() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) + + if m.GetInstalledDate() != 0 { + x.Int(m.GetInstalledDate()) + } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.String(m.GetTitle()) + x.String(m.GetShortName()) + x.Int(m.GetCount()) + x.Int(m.GetHash()) return x.buf } -func (m *TLPostAddress) EncodeToLayer(layer int) []byte { +func (m *TLStickerSet) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_postAddress)) + x.Int(int32(TLConstructor_CRC32_stickerSet)) - x.String(m.GetStreetLine1()) - x.String(m.GetStreetLine2()) - x.String(m.GetCity()) - x.String(m.GetState()) - x.String(m.GetCountryIso2()) - x.String(m.GetPostCode()) + // flags + var flags uint32 = 0 + if m.GetArchived() == true { + flags |= 1 << 1 + } + if m.GetOfficial() == true { + flags |= 1 << 2 + } + if m.GetMasks() == true { + flags |= 1 << 3 + } + if m.GetInstalledDate() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) + + if m.GetInstalledDate() != 0 { + x.Int(m.GetInstalledDate()) + } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.String(m.GetTitle()) + x.String(m.GetShortName()) + x.Int(m.GetCount()) + x.Int(m.GetHash()) return x.buf } -func (m *TLPostAddress) Decode(dbuf *DecodeBuf) error { - m.SetStreetLine1(dbuf.String()) - m.SetStreetLine2(dbuf.String()) - m.SetCity(dbuf.String()) - m.SetState(dbuf.String()) - m.SetCountryIso2(dbuf.String()) - m.SetPostCode(dbuf.String()) +func (m *TLStickerSet) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetArchived(true) + } + if (flags & (1 << 2)) != 0 { + m.SetOfficial(true) + } + if (flags & (1 << 3)) != 0 { + m.SetMasks(true) + } + if (flags & (1 << 0)) != 0 { + m.SetInstalledDate(dbuf.Int()) + } + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetTitle(dbuf.String()) + m.SetShortName(dbuf.String()) + m.SetCount(dbuf.Int()) + m.SetHash(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PopularContact <-- -// + TL_PopularContact +// Messages_FeaturedStickers <-- +// + TL_MessagesFeaturedStickersNotModified +// + TL_MessagesFeaturedStickers // -func (m *PopularContact) Encode() []byte { +func (m *Messages_FeaturedStickers) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_popularContact: - t := m.To_PopularContact() + case TLConstructor_CRC32_messages_featuredStickersNotModified: + t := m.To_MessagesFeaturedStickersNotModified() + return t.Encode() + case TLConstructor_CRC32_messages_featuredStickers: + t := m.To_MessagesFeaturedStickers() return t.Encode() default: @@ -15530,11 +15777,14 @@ func (m *PopularContact) Encode() []byte { } } -func (m *PopularContact) EncodeToLayer(layer int) []byte { +func (m *Messages_FeaturedStickers) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_popularContact: - t := m.To_PopularContact() + case TLConstructor_CRC32_messages_featuredStickersNotModified: + t := m.To_MessagesFeaturedStickersNotModified() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_featuredStickers: + t := m.To_MessagesFeaturedStickers() return t.EncodeToLayer(layer) default: @@ -15543,11 +15793,15 @@ func (m *PopularContact) EncodeToLayer(layer int) []byte { } } -func (m *PopularContact) Decode(dbuf *DecodeBuf) error { +func (m *Messages_FeaturedStickers) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_popularContact: - m2 := &TLPopularContact{Data2: &PopularContact_Data{}} + case TLConstructor_CRC32_messages_featuredStickersNotModified: + m2 := &TLMessagesFeaturedStickersNotModified{Data2: &Messages_FeaturedStickers_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_featuredStickers: + m2 := &TLMessagesFeaturedStickers{Data2: &Messages_FeaturedStickers_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -15557,83 +15811,143 @@ func (m *PopularContact) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// popularContact#5ce14175 client_id:long importers:int = PopularContact; -func (m *PopularContact) To_PopularContact() *TLPopularContact { - return &TLPopularContact{ +// messages.featuredStickersNotModified#4ede3cf = messages.FeaturedStickers; +func (m *Messages_FeaturedStickers) To_MessagesFeaturedStickersNotModified() *TLMessagesFeaturedStickersNotModified { + return &TLMessagesFeaturedStickersNotModified{ Data2: m.Data2, } } -// popularContact#5ce14175 client_id:long importers:int = PopularContact; -func (m *TLPopularContact) To_PopularContact() *PopularContact { - return &PopularContact{ - Constructor: TLConstructor_CRC32_popularContact, - Data2: m.Data2, +// messages.featuredStickers#f89d88e5 hash:int sets:Vector unread:Vector = messages.FeaturedStickers; +func (m *Messages_FeaturedStickers) To_MessagesFeaturedStickers() *TLMessagesFeaturedStickers { + return &TLMessagesFeaturedStickers{ + Data2: m.Data2, } } -func (m *TLPopularContact) SetClientId(v int64) { m.Data2.ClientId = v } -func (m *TLPopularContact) GetClientId() int64 { return m.Data2.ClientId } - -func (m *TLPopularContact) SetImporters(v int32) { m.Data2.Importers = v } -func (m *TLPopularContact) GetImporters() int32 { return m.Data2.Importers } +// messages.featuredStickersNotModified#4ede3cf = messages.FeaturedStickers; +func (m *TLMessagesFeaturedStickersNotModified) To_Messages_FeaturedStickers() *Messages_FeaturedStickers { + return &Messages_FeaturedStickers{ + Constructor: TLConstructor_CRC32_messages_featuredStickersNotModified, + Data2: m.Data2, + } +} -func NewTLPopularContact() *TLPopularContact { - return &TLPopularContact{Data2: &PopularContact_Data{}} +func NewTLMessagesFeaturedStickersNotModified() *TLMessagesFeaturedStickersNotModified { + return &TLMessagesFeaturedStickersNotModified{Data2: &Messages_FeaturedStickers_Data{}} } -func (m *TLPopularContact) Encode() []byte { +func (m *TLMessagesFeaturedStickersNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_popularContact)) - - x.Long(m.GetClientId()) - x.Int(m.GetImporters()) + x.Int(int32(TLConstructor_CRC32_messages_featuredStickersNotModified)) return x.buf } -func (m *TLPopularContact) EncodeToLayer(layer int) []byte { +func (m *TLMessagesFeaturedStickersNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_popularContact)) - - x.Long(m.GetClientId()) - x.Int(m.GetImporters()) + x.Int(int32(TLConstructor_CRC32_messages_featuredStickersNotModified)) return x.buf } -func (m *TLPopularContact) Decode(dbuf *DecodeBuf) error { - m.SetClientId(dbuf.Long()) - m.SetImporters(dbuf.Int()) +func (m *TLMessagesFeaturedStickersNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// RecentMeUrl <-- -// + TL_RecentMeUrlUnknown -// + TL_RecentMeUrlUser -// + TL_RecentMeUrlChat -// + TL_RecentMeUrlChatInvite -// + TL_RecentMeUrlStickerSet -// +// messages.featuredStickers#f89d88e5 hash:int sets:Vector unread:Vector = messages.FeaturedStickers; +func (m *TLMessagesFeaturedStickers) To_Messages_FeaturedStickers() *Messages_FeaturedStickers { + return &Messages_FeaturedStickers{ + Constructor: TLConstructor_CRC32_messages_featuredStickers, + Data2: m.Data2, + } +} -func (m *RecentMeUrl) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_recentMeUrlUnknown: - t := m.To_RecentMeUrlUnknown() - return t.Encode() - case TLConstructor_CRC32_recentMeUrlUser: - t := m.To_RecentMeUrlUser() +func (m *TLMessagesFeaturedStickers) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLMessagesFeaturedStickers) GetHash() int32 { return m.Data2.Hash } + +func (m *TLMessagesFeaturedStickers) SetSets(v []*StickerSetCovered) { m.Data2.Sets = v } +func (m *TLMessagesFeaturedStickers) GetSets() []*StickerSetCovered { return m.Data2.Sets } + +func (m *TLMessagesFeaturedStickers) SetUnread(v []int64) { m.Data2.Unread = v } +func (m *TLMessagesFeaturedStickers) GetUnread() []int64 { return m.Data2.Unread } + +func NewTLMessagesFeaturedStickers() *TLMessagesFeaturedStickers { + return &TLMessagesFeaturedStickers{Data2: &Messages_FeaturedStickers_Data{}} +} + +func (m *TLMessagesFeaturedStickers) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_featuredStickers)) + + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.VectorLong(m.GetUnread()) + + return x.buf +} + +func (m *TLMessagesFeaturedStickers) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_featuredStickers)) + + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.VectorLong(m.GetUnread()) + + return x.buf +} + +func (m *TLMessagesFeaturedStickers) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*StickerSetCovered, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &StickerSetCovered{} + v2[i].Decode(dbuf) + } + m.SetSets(v2) + + m.SetUnread(dbuf.VectorLong()) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// Messages_Messages <-- +// + TL_MessagesMessages +// + TL_MessagesMessagesSlice +// + TL_MessagesChannelMessages +// + TL_MessagesMessagesNotModified +// + +func (m *Messages_Messages) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_messages: + t := m.To_MessagesMessages() return t.Encode() - case TLConstructor_CRC32_recentMeUrlChat: - t := m.To_RecentMeUrlChat() + case TLConstructor_CRC32_messages_messagesSlice: + t := m.To_MessagesMessagesSlice() return t.Encode() - case TLConstructor_CRC32_recentMeUrlChatInvite: - t := m.To_RecentMeUrlChatInvite() + case TLConstructor_CRC32_messages_channelMessages: + t := m.To_MessagesChannelMessages() return t.Encode() - case TLConstructor_CRC32_recentMeUrlStickerSet: - t := m.To_RecentMeUrlStickerSet() + case TLConstructor_CRC32_messages_messagesNotModified: + t := m.To_MessagesMessagesNotModified() return t.Encode() default: @@ -15642,23 +15956,20 @@ func (m *RecentMeUrl) Encode() []byte { } } -func (m *RecentMeUrl) EncodeToLayer(layer int) []byte { +func (m *Messages_Messages) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_recentMeUrlUnknown: - t := m.To_RecentMeUrlUnknown() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_recentMeUrlUser: - t := m.To_RecentMeUrlUser() + case TLConstructor_CRC32_messages_messages: + t := m.To_MessagesMessages() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_recentMeUrlChat: - t := m.To_RecentMeUrlChat() + case TLConstructor_CRC32_messages_messagesSlice: + t := m.To_MessagesMessagesSlice() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_recentMeUrlChatInvite: - t := m.To_RecentMeUrlChatInvite() + case TLConstructor_CRC32_messages_channelMessages: + t := m.To_MessagesChannelMessages() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_recentMeUrlStickerSet: - t := m.To_RecentMeUrlStickerSet() + case TLConstructor_CRC32_messages_messagesNotModified: + t := m.To_MessagesMessagesNotModified() return t.EncodeToLayer(layer) default: @@ -15667,27 +15978,23 @@ func (m *RecentMeUrl) EncodeToLayer(layer int) []byte { } } -func (m *RecentMeUrl) Decode(dbuf *DecodeBuf) error { +func (m *Messages_Messages) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_recentMeUrlUnknown: - m2 := &TLRecentMeUrlUnknown{Data2: &RecentMeUrl_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_recentMeUrlUser: - m2 := &TLRecentMeUrlUser{Data2: &RecentMeUrl_Data{}} + case TLConstructor_CRC32_messages_messages: + m2 := &TLMessagesMessages{Data2: &Messages_Messages_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_recentMeUrlChat: - m2 := &TLRecentMeUrlChat{Data2: &RecentMeUrl_Data{}} + case TLConstructor_CRC32_messages_messagesSlice: + m2 := &TLMessagesMessagesSlice{Data2: &Messages_Messages_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_recentMeUrlChatInvite: - m2 := &TLRecentMeUrlChatInvite{Data2: &RecentMeUrl_Data{}} + case TLConstructor_CRC32_messages_channelMessages: + m2 := &TLMessagesChannelMessages{Data2: &Messages_Messages_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_recentMeUrlStickerSet: - m2 := &TLRecentMeUrlStickerSet{Data2: &RecentMeUrl_Data{}} + case TLConstructor_CRC32_messages_messagesNotModified: + m2 := &TLMessagesMessagesNotModified{Data2: &Messages_Messages_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -15697,281 +16004,460 @@ func (m *RecentMeUrl) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl; -func (m *RecentMeUrl) To_RecentMeUrlUnknown() *TLRecentMeUrlUnknown { - return &TLRecentMeUrlUnknown{ - Data2: m.Data2, - } -} - -// recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl; -func (m *RecentMeUrl) To_RecentMeUrlUser() *TLRecentMeUrlUser { - return &TLRecentMeUrlUser{ +// messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages; +func (m *Messages_Messages) To_MessagesMessages() *TLMessagesMessages { + return &TLMessagesMessages{ Data2: m.Data2, } } -// recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl; -func (m *RecentMeUrl) To_RecentMeUrlChat() *TLRecentMeUrlChat { - return &TLRecentMeUrlChat{ +// messages.messagesSlice#b446ae3 count:int messages:Vector chats:Vector users:Vector = messages.Messages; +func (m *Messages_Messages) To_MessagesMessagesSlice() *TLMessagesMessagesSlice { + return &TLMessagesMessagesSlice{ Data2: m.Data2, } } -// recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl; -func (m *RecentMeUrl) To_RecentMeUrlChatInvite() *TLRecentMeUrlChatInvite { - return &TLRecentMeUrlChatInvite{ +// messages.channelMessages#99262e37 flags:# pts:int count:int messages:Vector chats:Vector users:Vector = messages.Messages; +func (m *Messages_Messages) To_MessagesChannelMessages() *TLMessagesChannelMessages { + return &TLMessagesChannelMessages{ Data2: m.Data2, } } -// recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl; -func (m *RecentMeUrl) To_RecentMeUrlStickerSet() *TLRecentMeUrlStickerSet { - return &TLRecentMeUrlStickerSet{ +// messages.messagesNotModified#74535f21 count:int = messages.Messages; +func (m *Messages_Messages) To_MessagesMessagesNotModified() *TLMessagesMessagesNotModified { + return &TLMessagesMessagesNotModified{ Data2: m.Data2, } } -// recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl; -func (m *TLRecentMeUrlUnknown) To_RecentMeUrl() *RecentMeUrl { - return &RecentMeUrl{ - Constructor: TLConstructor_CRC32_recentMeUrlUnknown, +// messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages; +func (m *TLMessagesMessages) To_Messages_Messages() *Messages_Messages { + return &Messages_Messages{ + Constructor: TLConstructor_CRC32_messages_messages, Data2: m.Data2, } } -func (m *TLRecentMeUrlUnknown) SetUrl(v string) { m.Data2.Url = v } -func (m *TLRecentMeUrlUnknown) GetUrl() string { return m.Data2.Url } - -func NewTLRecentMeUrlUnknown() *TLRecentMeUrlUnknown { - return &TLRecentMeUrlUnknown{Data2: &RecentMeUrl_Data{}} -} +func (m *TLMessagesMessages) SetMessages(v []*Message) { m.Data2.Messages = v } +func (m *TLMessagesMessages) GetMessages() []*Message { return m.Data2.Messages } -func (m *TLRecentMeUrlUnknown) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlUnknown)) +func (m *TLMessagesMessages) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLMessagesMessages) GetChats() []*Chat { return m.Data2.Chats } - x.String(m.GetUrl()) +func (m *TLMessagesMessages) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLMessagesMessages) GetUsers() []*User { return m.Data2.Users } - return x.buf +func NewTLMessagesMessages() *TLMessagesMessages { + return &TLMessagesMessages{Data2: &Messages_Messages_Data{}} } -func (m *TLRecentMeUrlUnknown) EncodeToLayer(layer int) []byte { +func (m *TLMessagesMessages) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlUnknown)) - - x.String(m.GetUrl()) - - return x.buf -} - -func (m *TLRecentMeUrlUnknown) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_messages_messages)) -// recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl; -func (m *TLRecentMeUrlUser) To_RecentMeUrl() *RecentMeUrl { - return &RecentMeUrl{ - Constructor: TLConstructor_CRC32_recentMeUrlUser, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func (m *TLRecentMeUrlUser) SetUrl(v string) { m.Data2.Url = v } -func (m *TLRecentMeUrlUser) GetUrl() string { return m.Data2.Url } - -func (m *TLRecentMeUrlUser) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLRecentMeUrlUser) GetUserId() int32 { return m.Data2.UserId } -func NewTLRecentMeUrlUser() *TLRecentMeUrlUser { - return &TLRecentMeUrlUser{Data2: &RecentMeUrl_Data{}} + return x.buf } -func (m *TLRecentMeUrlUser) Encode() []byte { +func (m *TLMessagesMessages) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlUser)) + x.Int(int32(TLConstructor_CRC32_messages_messages)) - x.String(m.GetUrl()) - x.Int(m.GetUserId()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLRecentMeUrlUser) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlUser)) - - x.String(m.GetUrl()) - x.Int(m.GetUserId()) +func (m *TLMessagesMessages) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*Message, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Message{} + v1[i].Decode(dbuf) + } + m.SetMessages(v1) - return x.buf -} + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Chat, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Chat{} + v2[i].Decode(dbuf) + } + m.SetChats(v2) -func (m *TLRecentMeUrlUser) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m.SetUserId(dbuf.Int()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*User, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &User{} + v3[i].Decode(dbuf) + } + m.SetUsers(v3) return dbuf.err } -// recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl; -func (m *TLRecentMeUrlChat) To_RecentMeUrl() *RecentMeUrl { - return &RecentMeUrl{ - Constructor: TLConstructor_CRC32_recentMeUrlChat, +// messages.messagesSlice#b446ae3 count:int messages:Vector chats:Vector users:Vector = messages.Messages; +func (m *TLMessagesMessagesSlice) To_Messages_Messages() *Messages_Messages { + return &Messages_Messages{ + Constructor: TLConstructor_CRC32_messages_messagesSlice, Data2: m.Data2, } } -func (m *TLRecentMeUrlChat) SetUrl(v string) { m.Data2.Url = v } -func (m *TLRecentMeUrlChat) GetUrl() string { return m.Data2.Url } +func (m *TLMessagesMessagesSlice) SetCount(v int32) { m.Data2.Count = v } +func (m *TLMessagesMessagesSlice) GetCount() int32 { return m.Data2.Count } -func (m *TLRecentMeUrlChat) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLRecentMeUrlChat) GetChatId() int32 { return m.Data2.ChatId } +func (m *TLMessagesMessagesSlice) SetMessages(v []*Message) { m.Data2.Messages = v } +func (m *TLMessagesMessagesSlice) GetMessages() []*Message { return m.Data2.Messages } -func NewTLRecentMeUrlChat() *TLRecentMeUrlChat { - return &TLRecentMeUrlChat{Data2: &RecentMeUrl_Data{}} +func (m *TLMessagesMessagesSlice) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLMessagesMessagesSlice) GetChats() []*Chat { return m.Data2.Chats } + +func (m *TLMessagesMessagesSlice) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLMessagesMessagesSlice) GetUsers() []*User { return m.Data2.Users } + +func NewTLMessagesMessagesSlice() *TLMessagesMessagesSlice { + return &TLMessagesMessagesSlice{Data2: &Messages_Messages_Data{}} } -func (m *TLRecentMeUrlChat) Encode() []byte { +func (m *TLMessagesMessagesSlice) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlChat)) + x.Int(int32(TLConstructor_CRC32_messages_messagesSlice)) - x.String(m.GetUrl()) - x.Int(m.GetChatId()) + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLRecentMeUrlChat) EncodeToLayer(layer int) []byte { +func (m *TLMessagesMessagesSlice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlChat)) + x.Int(int32(TLConstructor_CRC32_messages_messagesSlice)) - x.String(m.GetUrl()) - x.Int(m.GetChatId()) + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLRecentMeUrlChat) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m.SetChatId(dbuf.Int()) +func (m *TLMessagesMessagesSlice) Decode(dbuf *DecodeBuf) error { + m.SetCount(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Message, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Message{} + v2[i].Decode(dbuf) + } + m.SetMessages(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Chat, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Chat{} + v3[i].Decode(dbuf) + } + m.SetChats(v3) + + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*User, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &User{} + v4[i].Decode(dbuf) + } + m.SetUsers(v4) return dbuf.err } -// recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl; -func (m *TLRecentMeUrlChatInvite) To_RecentMeUrl() *RecentMeUrl { - return &RecentMeUrl{ - Constructor: TLConstructor_CRC32_recentMeUrlChatInvite, +// messages.channelMessages#99262e37 flags:# pts:int count:int messages:Vector chats:Vector users:Vector = messages.Messages; +func (m *TLMessagesChannelMessages) To_Messages_Messages() *Messages_Messages { + return &Messages_Messages{ + Constructor: TLConstructor_CRC32_messages_channelMessages, Data2: m.Data2, } } -func (m *TLRecentMeUrlChatInvite) SetUrl(v string) { m.Data2.Url = v } -func (m *TLRecentMeUrlChatInvite) GetUrl() string { return m.Data2.Url } +func (m *TLMessagesChannelMessages) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLMessagesChannelMessages) GetPts() int32 { return m.Data2.Pts } -func (m *TLRecentMeUrlChatInvite) SetChatInvite(v *ChatInvite) { m.Data2.ChatInvite = v } -func (m *TLRecentMeUrlChatInvite) GetChatInvite() *ChatInvite { return m.Data2.ChatInvite } +func (m *TLMessagesChannelMessages) SetCount(v int32) { m.Data2.Count = v } +func (m *TLMessagesChannelMessages) GetCount() int32 { return m.Data2.Count } -func NewTLRecentMeUrlChatInvite() *TLRecentMeUrlChatInvite { - return &TLRecentMeUrlChatInvite{Data2: &RecentMeUrl_Data{}} -} +func (m *TLMessagesChannelMessages) SetMessages(v []*Message) { m.Data2.Messages = v } +func (m *TLMessagesChannelMessages) GetMessages() []*Message { return m.Data2.Messages } -func (m *TLRecentMeUrlChatInvite) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlChatInvite)) +func (m *TLMessagesChannelMessages) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLMessagesChannelMessages) GetChats() []*Chat { return m.Data2.Chats } - x.String(m.GetUrl()) - x.Bytes(m.GetChatInvite().Encode()) +func (m *TLMessagesChannelMessages) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLMessagesChannelMessages) GetUsers() []*User { return m.Data2.Users } - return x.buf +func NewTLMessagesChannelMessages() *TLMessagesChannelMessages { + return &TLMessagesChannelMessages{Data2: &Messages_Messages_Data{}} } -func (m *TLRecentMeUrlChatInvite) EncodeToLayer(layer int) []byte { +func (m *TLMessagesChannelMessages) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlChatInvite)) - - x.String(m.GetUrl()) - x.Bytes(m.GetChatInvite().EncodeToLayer(layer)) - - return x.buf -} - -func (m *TLRecentMeUrlChatInvite) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m2 := &ChatInvite{} - m2.Decode(dbuf) - m.SetChatInvite(m2) + x.Int(int32(TLConstructor_CRC32_messages_channelMessages)) - return dbuf.err -} + // flags + var flags uint32 = 0 + x.UInt(flags) -// recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl; -func (m *TLRecentMeUrlStickerSet) To_RecentMeUrl() *RecentMeUrl { - return &RecentMeUrl{ - Constructor: TLConstructor_CRC32_recentMeUrlStickerSet, - Data2: m.Data2, + x.Int(m.GetPts()) + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func (m *TLRecentMeUrlStickerSet) SetUrl(v string) { m.Data2.Url = v } -func (m *TLRecentMeUrlStickerSet) GetUrl() string { return m.Data2.Url } - -func (m *TLRecentMeUrlStickerSet) SetSet(v *StickerSetCovered) { m.Data2.Set = v } -func (m *TLRecentMeUrlStickerSet) GetSet() *StickerSetCovered { return m.Data2.Set } -func NewTLRecentMeUrlStickerSet() *TLRecentMeUrlStickerSet { - return &TLRecentMeUrlStickerSet{Data2: &RecentMeUrl_Data{}} + return x.buf } -func (m *TLRecentMeUrlStickerSet) Encode() []byte { +func (m *TLMessagesChannelMessages) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlStickerSet)) + x.Int(int32(TLConstructor_CRC32_messages_channelMessages)) - x.String(m.GetUrl()) - x.Bytes(m.GetSet().Encode()) + // flags + var flags uint32 = 0 + x.UInt(flags) + + x.Int(m.GetPts()) + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLRecentMeUrlStickerSet) EncodeToLayer(layer int) []byte { +func (m *TLMessagesChannelMessages) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetPts(dbuf.Int()) + m.SetCount(dbuf.Int()) + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*Message, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &Message{} + v4[i].Decode(dbuf) + } + m.SetMessages(v4) + + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*Chat, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &Chat{} + v5[i].Decode(dbuf) + } + m.SetChats(v5) + + c6 := dbuf.Int() + if c6 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) + return dbuf.err + } + l6 := dbuf.Int() + v6 := make([]*User, l6) + for i := int32(0); i < l6; i++ { + v6[i] = &User{} + v6[i].Decode(dbuf) + } + m.SetUsers(v6) + + return dbuf.err +} + +// messages.messagesNotModified#74535f21 count:int = messages.Messages; +func (m *TLMessagesMessagesNotModified) To_Messages_Messages() *Messages_Messages { + return &Messages_Messages{ + Constructor: TLConstructor_CRC32_messages_messagesNotModified, + Data2: m.Data2, + } +} + +func (m *TLMessagesMessagesNotModified) SetCount(v int32) { m.Data2.Count = v } +func (m *TLMessagesMessagesNotModified) GetCount() int32 { return m.Data2.Count } + +func NewTLMessagesMessagesNotModified() *TLMessagesMessagesNotModified { + return &TLMessagesMessagesNotModified{Data2: &Messages_Messages_Data{}} +} + +func (m *TLMessagesMessagesNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_recentMeUrlStickerSet)) + x.Int(int32(TLConstructor_CRC32_messages_messagesNotModified)) - x.String(m.GetUrl()) - x.Bytes(m.GetSet().EncodeToLayer(layer)) + x.Int(m.GetCount()) return x.buf } -func (m *TLRecentMeUrlStickerSet) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m2 := &StickerSetCovered{} - m2.Decode(dbuf) - m.SetSet(m2) +func (m *TLMessagesMessagesNotModified) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_messagesNotModified)) + + x.Int(m.GetCount()) + + return x.buf +} + +func (m *TLMessagesMessagesNotModified) Decode(dbuf *DecodeBuf) error { + m.SetCount(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PhotoSize <-- -// + TL_PhotoSizeEmpty -// + TL_PhotoSize -// + TL_PhotoCachedSize +// PhoneCall <-- +// + TL_PhoneCallEmpty +// + TL_PhoneCallWaiting +// + TL_PhoneCallRequested +// + TL_PhoneCallAccepted +// + TL_PhoneCall +// + TL_PhoneCallDiscarded // -func (m *PhotoSize) Encode() []byte { +func (m *PhoneCall) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_photoSizeEmpty: - t := m.To_PhotoSizeEmpty() + case TLConstructor_CRC32_phoneCallEmpty: + t := m.To_PhoneCallEmpty() return t.Encode() - case TLConstructor_CRC32_photoSize: - t := m.To_PhotoSize() + case TLConstructor_CRC32_phoneCallWaiting: + t := m.To_PhoneCallWaiting() return t.Encode() - case TLConstructor_CRC32_photoCachedSize: - t := m.To_PhotoCachedSize() + case TLConstructor_CRC32_phoneCallRequested: + t := m.To_PhoneCallRequested() + return t.Encode() + case TLConstructor_CRC32_phoneCallAccepted: + t := m.To_PhoneCallAccepted() + return t.Encode() + case TLConstructor_CRC32_phoneCall: + t := m.To_PhoneCall() + return t.Encode() + case TLConstructor_CRC32_phoneCallDiscarded: + t := m.To_PhoneCallDiscarded() return t.Encode() default: @@ -15980,17 +16466,26 @@ func (m *PhotoSize) Encode() []byte { } } -func (m *PhotoSize) EncodeToLayer(layer int) []byte { +func (m *PhoneCall) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_photoSizeEmpty: - t := m.To_PhotoSizeEmpty() + case TLConstructor_CRC32_phoneCallEmpty: + t := m.To_PhoneCallEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_photoSize: - t := m.To_PhotoSize() + case TLConstructor_CRC32_phoneCallWaiting: + t := m.To_PhoneCallWaiting() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_photoCachedSize: - t := m.To_PhotoCachedSize() + case TLConstructor_CRC32_phoneCallRequested: + t := m.To_PhoneCallRequested() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_phoneCallAccepted: + t := m.To_PhoneCallAccepted() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_phoneCall: + t := m.To_PhoneCall() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_phoneCallDiscarded: + t := m.To_PhoneCallDiscarded() return t.EncodeToLayer(layer) default: @@ -15999,19 +16494,31 @@ func (m *PhotoSize) EncodeToLayer(layer int) []byte { } } -func (m *PhotoSize) Decode(dbuf *DecodeBuf) error { +func (m *PhoneCall) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_photoSizeEmpty: - m2 := &TLPhotoSizeEmpty{Data2: &PhotoSize_Data{}} + case TLConstructor_CRC32_phoneCallEmpty: + m2 := &TLPhoneCallEmpty{Data2: &PhoneCall_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_photoSize: - m2 := &TLPhotoSize{Data2: &PhotoSize_Data{}} + case TLConstructor_CRC32_phoneCallWaiting: + m2 := &TLPhoneCallWaiting{Data2: &PhoneCall_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_photoCachedSize: - m2 := &TLPhotoCachedSize{Data2: &PhotoSize_Data{}} + case TLConstructor_CRC32_phoneCallRequested: + m2 := &TLPhoneCallRequested{Data2: &PhoneCall_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_phoneCallAccepted: + m2 := &TLPhoneCallAccepted{Data2: &PhoneCall_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_phoneCall: + m2 := &TLPhoneCall{Data2: &PhoneCall_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_phoneCallDiscarded: + m2 := &TLPhoneCallDiscarded{Data2: &PhoneCall_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -16021,5078 +16528,5330 @@ func (m *PhotoSize) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// photoSizeEmpty#e17e23c type:string = PhotoSize; -func (m *PhotoSize) To_PhotoSizeEmpty() *TLPhotoSizeEmpty { - return &TLPhotoSizeEmpty{ +// phoneCallEmpty#5366c915 id:long = PhoneCall; +func (m *PhoneCall) To_PhoneCallEmpty() *TLPhoneCallEmpty { + return &TLPhoneCallEmpty{ Data2: m.Data2, } } -// photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize; -func (m *PhotoSize) To_PhotoSize() *TLPhotoSize { - return &TLPhotoSize{ +// phoneCallWaiting#1b8f4ad1 flags:# id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; +func (m *PhoneCall) To_PhoneCallWaiting() *TLPhoneCallWaiting { + return &TLPhoneCallWaiting{ Data2: m.Data2, } } -// photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize; -func (m *PhotoSize) To_PhotoCachedSize() *TLPhotoCachedSize { - return &TLPhotoCachedSize{ +// phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; +func (m *PhoneCall) To_PhoneCallRequested() *TLPhoneCallRequested { + return &TLPhoneCallRequested{ Data2: m.Data2, } } -// photoSizeEmpty#e17e23c type:string = PhotoSize; -func (m *TLPhotoSizeEmpty) To_PhotoSize() *PhotoSize { - return &PhotoSize{ - Constructor: TLConstructor_CRC32_photoSizeEmpty, +// phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; +func (m *PhoneCall) To_PhoneCallAccepted() *TLPhoneCallAccepted { + return &TLPhoneCallAccepted{ + Data2: m.Data2, + } +} + +// phoneCall#ffe6ab67 id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connection:PhoneConnection alternative_connections:Vector start_date:int = PhoneCall; +func (m *PhoneCall) To_PhoneCall() *TLPhoneCall { + return &TLPhoneCall{ + Data2: m.Data2, + } +} + +// phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; +func (m *PhoneCall) To_PhoneCallDiscarded() *TLPhoneCallDiscarded { + return &TLPhoneCallDiscarded{ + Data2: m.Data2, + } +} + +// phoneCallEmpty#5366c915 id:long = PhoneCall; +func (m *TLPhoneCallEmpty) To_PhoneCall() *PhoneCall { + return &PhoneCall{ + Constructor: TLConstructor_CRC32_phoneCallEmpty, Data2: m.Data2, } } -func (m *TLPhotoSizeEmpty) SetType(v string) { m.Data2.Type = v } -func (m *TLPhotoSizeEmpty) GetType() string { return m.Data2.Type } +func (m *TLPhoneCallEmpty) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhoneCallEmpty) GetId() int64 { return m.Data2.Id } -func NewTLPhotoSizeEmpty() *TLPhotoSizeEmpty { - return &TLPhotoSizeEmpty{Data2: &PhotoSize_Data{}} +func NewTLPhoneCallEmpty() *TLPhoneCallEmpty { + return &TLPhoneCallEmpty{Data2: &PhoneCall_Data{}} } -func (m *TLPhotoSizeEmpty) Encode() []byte { +func (m *TLPhoneCallEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoSizeEmpty)) + x.Int(int32(TLConstructor_CRC32_phoneCallEmpty)) - x.String(m.GetType()) + x.Long(m.GetId()) return x.buf } -func (m *TLPhotoSizeEmpty) EncodeToLayer(layer int) []byte { +func (m *TLPhoneCallEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoSizeEmpty)) + x.Int(int32(TLConstructor_CRC32_phoneCallEmpty)) - x.String(m.GetType()) + x.Long(m.GetId()) return x.buf } -func (m *TLPhotoSizeEmpty) Decode(dbuf *DecodeBuf) error { - m.SetType(dbuf.String()) +func (m *TLPhoneCallEmpty) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) return dbuf.err } -// photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize; -func (m *TLPhotoSize) To_PhotoSize() *PhotoSize { - return &PhotoSize{ - Constructor: TLConstructor_CRC32_photoSize, +// phoneCallWaiting#1b8f4ad1 flags:# id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; +func (m *TLPhoneCallWaiting) To_PhoneCall() *PhoneCall { + return &PhoneCall{ + Constructor: TLConstructor_CRC32_phoneCallWaiting, Data2: m.Data2, } } -func (m *TLPhotoSize) SetType(v string) { m.Data2.Type = v } -func (m *TLPhotoSize) GetType() string { return m.Data2.Type } +func (m *TLPhoneCallWaiting) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhoneCallWaiting) GetId() int64 { return m.Data2.Id } -func (m *TLPhotoSize) SetLocation(v *FileLocation) { m.Data2.Location = v } -func (m *TLPhotoSize) GetLocation() *FileLocation { return m.Data2.Location } +func (m *TLPhoneCallWaiting) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLPhoneCallWaiting) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLPhotoSize) SetW(v int32) { m.Data2.W = v } -func (m *TLPhotoSize) GetW() int32 { return m.Data2.W } +func (m *TLPhoneCallWaiting) SetDate(v int32) { m.Data2.Date = v } +func (m *TLPhoneCallWaiting) GetDate() int32 { return m.Data2.Date } -func (m *TLPhotoSize) SetH(v int32) { m.Data2.H = v } -func (m *TLPhotoSize) GetH() int32 { return m.Data2.H } +func (m *TLPhoneCallWaiting) SetAdminId(v int32) { m.Data2.AdminId = v } +func (m *TLPhoneCallWaiting) GetAdminId() int32 { return m.Data2.AdminId } -func (m *TLPhotoSize) SetSize(v int32) { m.Data2.Size = v } -func (m *TLPhotoSize) GetSize() int32 { return m.Data2.Size } +func (m *TLPhoneCallWaiting) SetParticipantId(v int32) { m.Data2.ParticipantId = v } +func (m *TLPhoneCallWaiting) GetParticipantId() int32 { return m.Data2.ParticipantId } -func NewTLPhotoSize() *TLPhotoSize { - return &TLPhotoSize{Data2: &PhotoSize_Data{}} +func (m *TLPhoneCallWaiting) SetProtocol(v *PhoneCallProtocol) { m.Data2.Protocol = v } +func (m *TLPhoneCallWaiting) GetProtocol() *PhoneCallProtocol { return m.Data2.Protocol } + +func (m *TLPhoneCallWaiting) SetReceiveDate(v int32) { m.Data2.ReceiveDate = v } +func (m *TLPhoneCallWaiting) GetReceiveDate() int32 { return m.Data2.ReceiveDate } + +func NewTLPhoneCallWaiting() *TLPhoneCallWaiting { + return &TLPhoneCallWaiting{Data2: &PhoneCall_Data{}} } -func (m *TLPhotoSize) Encode() []byte { +func (m *TLPhoneCallWaiting) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoSize)) + x.Int(int32(TLConstructor_CRC32_phoneCallWaiting)) - x.String(m.GetType()) - x.Bytes(m.GetLocation().Encode()) - x.Int(m.GetW()) - x.Int(m.GetH()) - x.Int(m.GetSize()) + // flags + var flags uint32 = 0 + if m.GetReceiveDate() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.Bytes(m.GetProtocol().Encode()) + if m.GetReceiveDate() != 0 { + x.Int(m.GetReceiveDate()) + } return x.buf } -func (m *TLPhotoSize) EncodeToLayer(layer int) []byte { +func (m *TLPhoneCallWaiting) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoSize)) + x.Int(int32(TLConstructor_CRC32_phoneCallWaiting)) - x.String(m.GetType()) - x.Bytes(m.GetLocation().EncodeToLayer(layer)) - x.Int(m.GetW()) - x.Int(m.GetH()) - x.Int(m.GetSize()) + // flags + var flags uint32 = 0 + if m.GetReceiveDate() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.Bytes(m.GetProtocol().EncodeToLayer(layer)) + if m.GetReceiveDate() != 0 { + x.Int(m.GetReceiveDate()) + } return x.buf } -func (m *TLPhotoSize) Decode(dbuf *DecodeBuf) error { - m.SetType(dbuf.String()) - m2 := &FileLocation{} - m2.Decode(dbuf) - m.SetLocation(m2) - m.SetW(dbuf.Int()) - m.SetH(dbuf.Int()) - m.SetSize(dbuf.Int()) +func (m *TLPhoneCallWaiting) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetDate(dbuf.Int()) + m.SetAdminId(dbuf.Int()) + m.SetParticipantId(dbuf.Int()) + m7 := &PhoneCallProtocol{} + m7.Decode(dbuf) + m.SetProtocol(m7) + if (flags & (1 << 0)) != 0 { + m.SetReceiveDate(dbuf.Int()) + } return dbuf.err } -// photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize; -func (m *TLPhotoCachedSize) To_PhotoSize() *PhotoSize { - return &PhotoSize{ - Constructor: TLConstructor_CRC32_photoCachedSize, +// phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; +func (m *TLPhoneCallRequested) To_PhoneCall() *PhoneCall { + return &PhoneCall{ + Constructor: TLConstructor_CRC32_phoneCallRequested, Data2: m.Data2, } } -func (m *TLPhotoCachedSize) SetType(v string) { m.Data2.Type = v } -func (m *TLPhotoCachedSize) GetType() string { return m.Data2.Type } +func (m *TLPhoneCallRequested) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhoneCallRequested) GetId() int64 { return m.Data2.Id } -func (m *TLPhotoCachedSize) SetLocation(v *FileLocation) { m.Data2.Location = v } -func (m *TLPhotoCachedSize) GetLocation() *FileLocation { return m.Data2.Location } +func (m *TLPhoneCallRequested) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLPhoneCallRequested) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLPhotoCachedSize) SetW(v int32) { m.Data2.W = v } -func (m *TLPhotoCachedSize) GetW() int32 { return m.Data2.W } +func (m *TLPhoneCallRequested) SetDate(v int32) { m.Data2.Date = v } +func (m *TLPhoneCallRequested) GetDate() int32 { return m.Data2.Date } -func (m *TLPhotoCachedSize) SetH(v int32) { m.Data2.H = v } -func (m *TLPhotoCachedSize) GetH() int32 { return m.Data2.H } +func (m *TLPhoneCallRequested) SetAdminId(v int32) { m.Data2.AdminId = v } +func (m *TLPhoneCallRequested) GetAdminId() int32 { return m.Data2.AdminId } -func (m *TLPhotoCachedSize) SetBytes(v []byte) { m.Data2.Bytes = v } -func (m *TLPhotoCachedSize) GetBytes() []byte { return m.Data2.Bytes } +func (m *TLPhoneCallRequested) SetParticipantId(v int32) { m.Data2.ParticipantId = v } +func (m *TLPhoneCallRequested) GetParticipantId() int32 { return m.Data2.ParticipantId } -func NewTLPhotoCachedSize() *TLPhotoCachedSize { - return &TLPhotoCachedSize{Data2: &PhotoSize_Data{}} +func (m *TLPhoneCallRequested) SetGAHash(v []byte) { m.Data2.GAHash = v } +func (m *TLPhoneCallRequested) GetGAHash() []byte { return m.Data2.GAHash } + +func (m *TLPhoneCallRequested) SetProtocol(v *PhoneCallProtocol) { m.Data2.Protocol = v } +func (m *TLPhoneCallRequested) GetProtocol() *PhoneCallProtocol { return m.Data2.Protocol } + +func NewTLPhoneCallRequested() *TLPhoneCallRequested { + return &TLPhoneCallRequested{Data2: &PhoneCall_Data{}} } -func (m *TLPhotoCachedSize) Encode() []byte { +func (m *TLPhoneCallRequested) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoCachedSize)) + x.Int(int32(TLConstructor_CRC32_phoneCallRequested)) - x.String(m.GetType()) - x.Bytes(m.GetLocation().Encode()) - x.Int(m.GetW()) - x.Int(m.GetH()) - x.StringBytes(m.GetBytes()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGAHash()) + x.Bytes(m.GetProtocol().Encode()) return x.buf } -func (m *TLPhotoCachedSize) EncodeToLayer(layer int) []byte { +func (m *TLPhoneCallRequested) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoCachedSize)) + x.Int(int32(TLConstructor_CRC32_phoneCallRequested)) - x.String(m.GetType()) - x.Bytes(m.GetLocation().EncodeToLayer(layer)) - x.Int(m.GetW()) - x.Int(m.GetH()) - x.StringBytes(m.GetBytes()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGAHash()) + x.Bytes(m.GetProtocol().EncodeToLayer(layer)) return x.buf } -func (m *TLPhotoCachedSize) Decode(dbuf *DecodeBuf) error { - m.SetType(dbuf.String()) - m2 := &FileLocation{} - m2.Decode(dbuf) - m.SetLocation(m2) - m.SetW(dbuf.Int()) - m.SetH(dbuf.Int()) - m.SetBytes(dbuf.StringBytes()) +func (m *TLPhoneCallRequested) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetDate(dbuf.Int()) + m.SetAdminId(dbuf.Int()) + m.SetParticipantId(dbuf.Int()) + m.SetGAHash(dbuf.StringBytes()) + m7 := &PhoneCallProtocol{} + m7.Decode(dbuf) + m.SetProtocol(m7) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Update <-- -// + TL_UpdateNewMessage -// + TL_UpdateMessageID -// + TL_UpdateDeleteMessages -// + TL_UpdateUserTyping -// + TL_UpdateChatUserTyping -// + TL_UpdateChatParticipants -// + TL_UpdateUserStatus -// + TL_UpdateUserName -// + TL_UpdateUserPhoto -// + TL_UpdateContactRegistered -// + TL_UpdateContactLink -// + TL_UpdateNewEncryptedMessage -// + TL_UpdateEncryptedChatTyping -// + TL_UpdateEncryption -// + TL_UpdateEncryptedMessagesRead -// + TL_UpdateChatParticipantAdd -// + TL_UpdateChatParticipantDelete -// + TL_UpdateDcOptions -// + TL_UpdateUserBlocked -// + TL_UpdateNotifySettings -// + TL_UpdateServiceNotification -// + TL_UpdatePrivacy -// + TL_UpdateUserPhone -// + TL_UpdateReadHistoryInbox -// + TL_UpdateReadHistoryOutbox -// + TL_UpdateWebPage -// + TL_UpdateReadMessagesContents -// + TL_UpdateChannelTooLong -// + TL_UpdateChannel -// + TL_UpdateNewChannelMessage -// + TL_UpdateReadChannelInbox -// + TL_UpdateDeleteChannelMessages -// + TL_UpdateChannelMessageViews -// + TL_UpdateChatAdmins -// + TL_UpdateChatParticipantAdmin -// + TL_UpdateNewStickerSet -// + TL_UpdateStickerSetsOrder -// + TL_UpdateStickerSets -// + TL_UpdateSavedGifs -// + TL_UpdateBotInlineQuery -// + TL_UpdateBotInlineSend -// + TL_UpdateEditChannelMessage -// + TL_UpdateChannelPinnedMessage -// + TL_UpdateBotCallbackQuery -// + TL_UpdateEditMessage -// + TL_UpdateInlineBotCallbackQuery -// + TL_UpdateReadChannelOutbox -// + TL_UpdateDraftMessage -// + TL_UpdateReadFeaturedStickers -// + TL_UpdateRecentStickers -// + TL_UpdateConfig -// + TL_UpdatePtsChanged -// + TL_UpdateChannelWebPage -// + TL_UpdateDialogPinned -// + TL_UpdatePinnedDialogs -// + TL_UpdateBotWebhookJSON -// + TL_UpdateBotWebhookJSONQuery -// + TL_UpdateBotShippingQuery -// + TL_UpdateBotPrecheckoutQuery -// + TL_UpdatePhoneCall -// + TL_UpdateLangPackTooLong -// + TL_UpdateLangPack -// + TL_UpdateFavedStickers -// + TL_UpdateChannelReadMessagesContents -// + TL_UpdateContactsReset -// + TL_UpdateChannelAvailableMessages -// + TL_UpdateDialogUnreadMark -// +// phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; +func (m *TLPhoneCallAccepted) To_PhoneCall() *PhoneCall { + return &PhoneCall{ + Constructor: TLConstructor_CRC32_phoneCallAccepted, + Data2: m.Data2, + } +} -func (m *Update) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_updateNewMessage: - t := m.To_UpdateNewMessage() - return t.Encode() - case TLConstructor_CRC32_updateMessageID: - t := m.To_UpdateMessageID() - return t.Encode() - case TLConstructor_CRC32_updateDeleteMessages: - t := m.To_UpdateDeleteMessages() - return t.Encode() - case TLConstructor_CRC32_updateUserTyping: - t := m.To_UpdateUserTyping() - return t.Encode() - case TLConstructor_CRC32_updateChatUserTyping: - t := m.To_UpdateChatUserTyping() - return t.Encode() - case TLConstructor_CRC32_updateChatParticipants: - t := m.To_UpdateChatParticipants() - return t.Encode() - case TLConstructor_CRC32_updateUserStatus: - t := m.To_UpdateUserStatus() - return t.Encode() - case TLConstructor_CRC32_updateUserName: - t := m.To_UpdateUserName() - return t.Encode() - case TLConstructor_CRC32_updateUserPhoto: - t := m.To_UpdateUserPhoto() - return t.Encode() - case TLConstructor_CRC32_updateContactRegistered: - t := m.To_UpdateContactRegistered() - return t.Encode() - case TLConstructor_CRC32_updateContactLink: - t := m.To_UpdateContactLink() - return t.Encode() - case TLConstructor_CRC32_updateNewEncryptedMessage: - t := m.To_UpdateNewEncryptedMessage() - return t.Encode() - case TLConstructor_CRC32_updateEncryptedChatTyping: - t := m.To_UpdateEncryptedChatTyping() - return t.Encode() - case TLConstructor_CRC32_updateEncryption: - t := m.To_UpdateEncryption() - return t.Encode() - case TLConstructor_CRC32_updateEncryptedMessagesRead: - t := m.To_UpdateEncryptedMessagesRead() - return t.Encode() - case TLConstructor_CRC32_updateChatParticipantAdd: - t := m.To_UpdateChatParticipantAdd() - return t.Encode() - case TLConstructor_CRC32_updateChatParticipantDelete: - t := m.To_UpdateChatParticipantDelete() - return t.Encode() - case TLConstructor_CRC32_updateDcOptions: - t := m.To_UpdateDcOptions() - return t.Encode() - case TLConstructor_CRC32_updateUserBlocked: - t := m.To_UpdateUserBlocked() - return t.Encode() - case TLConstructor_CRC32_updateNotifySettings: - t := m.To_UpdateNotifySettings() - return t.Encode() - case TLConstructor_CRC32_updateServiceNotification: - t := m.To_UpdateServiceNotification() - return t.Encode() - case TLConstructor_CRC32_updatePrivacy: - t := m.To_UpdatePrivacy() - return t.Encode() - case TLConstructor_CRC32_updateUserPhone: - t := m.To_UpdateUserPhone() - return t.Encode() - case TLConstructor_CRC32_updateReadHistoryInbox: - t := m.To_UpdateReadHistoryInbox() - return t.Encode() - case TLConstructor_CRC32_updateReadHistoryOutbox: - t := m.To_UpdateReadHistoryOutbox() - return t.Encode() - case TLConstructor_CRC32_updateWebPage: - t := m.To_UpdateWebPage() - return t.Encode() - case TLConstructor_CRC32_updateReadMessagesContents: - t := m.To_UpdateReadMessagesContents() - return t.Encode() - case TLConstructor_CRC32_updateChannelTooLong: - t := m.To_UpdateChannelTooLong() - return t.Encode() - case TLConstructor_CRC32_updateChannel: - t := m.To_UpdateChannel() - return t.Encode() - case TLConstructor_CRC32_updateNewChannelMessage: - t := m.To_UpdateNewChannelMessage() - return t.Encode() - case TLConstructor_CRC32_updateReadChannelInbox: - t := m.To_UpdateReadChannelInbox() - return t.Encode() - case TLConstructor_CRC32_updateDeleteChannelMessages: - t := m.To_UpdateDeleteChannelMessages() - return t.Encode() - case TLConstructor_CRC32_updateChannelMessageViews: - t := m.To_UpdateChannelMessageViews() - return t.Encode() - case TLConstructor_CRC32_updateChatAdmins: - t := m.To_UpdateChatAdmins() - return t.Encode() - case TLConstructor_CRC32_updateChatParticipantAdmin: - t := m.To_UpdateChatParticipantAdmin() - return t.Encode() - case TLConstructor_CRC32_updateNewStickerSet: - t := m.To_UpdateNewStickerSet() - return t.Encode() - case TLConstructor_CRC32_updateStickerSetsOrder: - t := m.To_UpdateStickerSetsOrder() - return t.Encode() - case TLConstructor_CRC32_updateStickerSets: - t := m.To_UpdateStickerSets() - return t.Encode() - case TLConstructor_CRC32_updateSavedGifs: - t := m.To_UpdateSavedGifs() - return t.Encode() - case TLConstructor_CRC32_updateBotInlineQuery: - t := m.To_UpdateBotInlineQuery() - return t.Encode() - case TLConstructor_CRC32_updateBotInlineSend: - t := m.To_UpdateBotInlineSend() - return t.Encode() - case TLConstructor_CRC32_updateEditChannelMessage: - t := m.To_UpdateEditChannelMessage() - return t.Encode() - case TLConstructor_CRC32_updateChannelPinnedMessage: - t := m.To_UpdateChannelPinnedMessage() - return t.Encode() - case TLConstructor_CRC32_updateBotCallbackQuery: - t := m.To_UpdateBotCallbackQuery() - return t.Encode() - case TLConstructor_CRC32_updateEditMessage: - t := m.To_UpdateEditMessage() - return t.Encode() - case TLConstructor_CRC32_updateInlineBotCallbackQuery: - t := m.To_UpdateInlineBotCallbackQuery() - return t.Encode() - case TLConstructor_CRC32_updateReadChannelOutbox: - t := m.To_UpdateReadChannelOutbox() - return t.Encode() - case TLConstructor_CRC32_updateDraftMessage: - t := m.To_UpdateDraftMessage() - return t.Encode() - case TLConstructor_CRC32_updateReadFeaturedStickers: - t := m.To_UpdateReadFeaturedStickers() - return t.Encode() - case TLConstructor_CRC32_updateRecentStickers: - t := m.To_UpdateRecentStickers() - return t.Encode() - case TLConstructor_CRC32_updateConfig: - t := m.To_UpdateConfig() - return t.Encode() - case TLConstructor_CRC32_updatePtsChanged: - t := m.To_UpdatePtsChanged() - return t.Encode() - case TLConstructor_CRC32_updateChannelWebPage: - t := m.To_UpdateChannelWebPage() - return t.Encode() - case TLConstructor_CRC32_updateDialogPinned: - t := m.To_UpdateDialogPinned() - return t.Encode() - case TLConstructor_CRC32_updatePinnedDialogs: - t := m.To_UpdatePinnedDialogs() - return t.Encode() - case TLConstructor_CRC32_updateBotWebhookJSON: - t := m.To_UpdateBotWebhookJSON() - return t.Encode() - case TLConstructor_CRC32_updateBotWebhookJSONQuery: - t := m.To_UpdateBotWebhookJSONQuery() - return t.Encode() - case TLConstructor_CRC32_updateBotShippingQuery: - t := m.To_UpdateBotShippingQuery() - return t.Encode() - case TLConstructor_CRC32_updateBotPrecheckoutQuery: - t := m.To_UpdateBotPrecheckoutQuery() - return t.Encode() - case TLConstructor_CRC32_updatePhoneCall: - t := m.To_UpdatePhoneCall() - return t.Encode() - case TLConstructor_CRC32_updateLangPackTooLong: - t := m.To_UpdateLangPackTooLong() - return t.Encode() - case TLConstructor_CRC32_updateLangPack: - t := m.To_UpdateLangPack() - return t.Encode() - case TLConstructor_CRC32_updateFavedStickers: - t := m.To_UpdateFavedStickers() - return t.Encode() - case TLConstructor_CRC32_updateChannelReadMessagesContents: - t := m.To_UpdateChannelReadMessagesContents() - return t.Encode() - case TLConstructor_CRC32_updateContactsReset: - t := m.To_UpdateContactsReset() - return t.Encode() - case TLConstructor_CRC32_updateChannelAvailableMessages: - t := m.To_UpdateChannelAvailableMessages() - return t.Encode() - case TLConstructor_CRC32_updateDialogUnreadMark: - t := m.To_UpdateDialogUnreadMark() - return t.Encode() +func (m *TLPhoneCallAccepted) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhoneCallAccepted) GetId() int64 { return m.Data2.Id } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLPhoneCallAccepted) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLPhoneCallAccepted) GetAccessHash() int64 { return m.Data2.AccessHash } + +func (m *TLPhoneCallAccepted) SetDate(v int32) { m.Data2.Date = v } +func (m *TLPhoneCallAccepted) GetDate() int32 { return m.Data2.Date } + +func (m *TLPhoneCallAccepted) SetAdminId(v int32) { m.Data2.AdminId = v } +func (m *TLPhoneCallAccepted) GetAdminId() int32 { return m.Data2.AdminId } + +func (m *TLPhoneCallAccepted) SetParticipantId(v int32) { m.Data2.ParticipantId = v } +func (m *TLPhoneCallAccepted) GetParticipantId() int32 { return m.Data2.ParticipantId } + +func (m *TLPhoneCallAccepted) SetGB(v []byte) { m.Data2.GB = v } +func (m *TLPhoneCallAccepted) GetGB() []byte { return m.Data2.GB } + +func (m *TLPhoneCallAccepted) SetProtocol(v *PhoneCallProtocol) { m.Data2.Protocol = v } +func (m *TLPhoneCallAccepted) GetProtocol() *PhoneCallProtocol { return m.Data2.Protocol } + +func NewTLPhoneCallAccepted() *TLPhoneCallAccepted { + return &TLPhoneCallAccepted{Data2: &PhoneCall_Data{}} } -func (m *Update) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_updateNewMessage: - t := m.To_UpdateNewMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateMessageID: - t := m.To_UpdateMessageID() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateDeleteMessages: - t := m.To_UpdateDeleteMessages() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateUserTyping: - t := m.To_UpdateUserTyping() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChatUserTyping: - t := m.To_UpdateChatUserTyping() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChatParticipants: - t := m.To_UpdateChatParticipants() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateUserStatus: - t := m.To_UpdateUserStatus() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateUserName: - t := m.To_UpdateUserName() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateUserPhoto: - t := m.To_UpdateUserPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateContactRegistered: - t := m.To_UpdateContactRegistered() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateContactLink: - t := m.To_UpdateContactLink() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateNewEncryptedMessage: - t := m.To_UpdateNewEncryptedMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateEncryptedChatTyping: - t := m.To_UpdateEncryptedChatTyping() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateEncryption: - t := m.To_UpdateEncryption() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateEncryptedMessagesRead: - t := m.To_UpdateEncryptedMessagesRead() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChatParticipantAdd: - t := m.To_UpdateChatParticipantAdd() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChatParticipantDelete: - t := m.To_UpdateChatParticipantDelete() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateDcOptions: - t := m.To_UpdateDcOptions() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateUserBlocked: - t := m.To_UpdateUserBlocked() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateNotifySettings: - t := m.To_UpdateNotifySettings() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateServiceNotification: - t := m.To_UpdateServiceNotification() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updatePrivacy: - t := m.To_UpdatePrivacy() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateUserPhone: - t := m.To_UpdateUserPhone() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateReadHistoryInbox: - t := m.To_UpdateReadHistoryInbox() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateReadHistoryOutbox: - t := m.To_UpdateReadHistoryOutbox() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateWebPage: - t := m.To_UpdateWebPage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateReadMessagesContents: - t := m.To_UpdateReadMessagesContents() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChannelTooLong: - t := m.To_UpdateChannelTooLong() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChannel: - t := m.To_UpdateChannel() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateNewChannelMessage: - t := m.To_UpdateNewChannelMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateReadChannelInbox: - t := m.To_UpdateReadChannelInbox() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateDeleteChannelMessages: - t := m.To_UpdateDeleteChannelMessages() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChannelMessageViews: - t := m.To_UpdateChannelMessageViews() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChatAdmins: - t := m.To_UpdateChatAdmins() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChatParticipantAdmin: - t := m.To_UpdateChatParticipantAdmin() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateNewStickerSet: - t := m.To_UpdateNewStickerSet() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateStickerSetsOrder: - t := m.To_UpdateStickerSetsOrder() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateStickerSets: - t := m.To_UpdateStickerSets() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateSavedGifs: - t := m.To_UpdateSavedGifs() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateBotInlineQuery: - t := m.To_UpdateBotInlineQuery() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateBotInlineSend: - t := m.To_UpdateBotInlineSend() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateEditChannelMessage: - t := m.To_UpdateEditChannelMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChannelPinnedMessage: - t := m.To_UpdateChannelPinnedMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateBotCallbackQuery: - t := m.To_UpdateBotCallbackQuery() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateEditMessage: - t := m.To_UpdateEditMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateInlineBotCallbackQuery: - t := m.To_UpdateInlineBotCallbackQuery() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateReadChannelOutbox: - t := m.To_UpdateReadChannelOutbox() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateDraftMessage: - t := m.To_UpdateDraftMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateReadFeaturedStickers: - t := m.To_UpdateReadFeaturedStickers() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateRecentStickers: - t := m.To_UpdateRecentStickers() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateConfig: - t := m.To_UpdateConfig() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updatePtsChanged: - t := m.To_UpdatePtsChanged() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChannelWebPage: - t := m.To_UpdateChannelWebPage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateDialogPinned: - t := m.To_UpdateDialogPinned() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updatePinnedDialogs: - t := m.To_UpdatePinnedDialogs() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateBotWebhookJSON: - t := m.To_UpdateBotWebhookJSON() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateBotWebhookJSONQuery: - t := m.To_UpdateBotWebhookJSONQuery() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateBotShippingQuery: - t := m.To_UpdateBotShippingQuery() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateBotPrecheckoutQuery: - t := m.To_UpdateBotPrecheckoutQuery() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updatePhoneCall: - t := m.To_UpdatePhoneCall() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateLangPackTooLong: - t := m.To_UpdateLangPackTooLong() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateLangPack: - t := m.To_UpdateLangPack() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateFavedStickers: - t := m.To_UpdateFavedStickers() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChannelReadMessagesContents: - t := m.To_UpdateChannelReadMessagesContents() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateContactsReset: - t := m.To_UpdateContactsReset() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateChannelAvailableMessages: - t := m.To_UpdateChannelAvailableMessages() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateDialogUnreadMark: - t := m.To_UpdateDialogUnreadMark() - return t.EncodeToLayer(layer) +func (m *TLPhoneCallAccepted) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_phoneCallAccepted)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGB()) + x.Bytes(m.GetProtocol().Encode()) + + return x.buf +} + +func (m *TLPhoneCallAccepted) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_phoneCallAccepted)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGB()) + x.Bytes(m.GetProtocol().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLPhoneCallAccepted) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetDate(dbuf.Int()) + m.SetAdminId(dbuf.Int()) + m.SetParticipantId(dbuf.Int()) + m.SetGB(dbuf.StringBytes()) + m7 := &PhoneCallProtocol{} + m7.Decode(dbuf) + m.SetProtocol(m7) + + return dbuf.err +} + +// phoneCall#ffe6ab67 id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connection:PhoneConnection alternative_connections:Vector start_date:int = PhoneCall; +func (m *TLPhoneCall) To_PhoneCall() *PhoneCall { + return &PhoneCall{ + Constructor: TLConstructor_CRC32_phoneCall, + Data2: m.Data2, } } -func (m *Update) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_updateNewMessage: - m2 := &TLUpdateNewMessage{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateMessageID: - m2 := &TLUpdateMessageID{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateDeleteMessages: - m2 := &TLUpdateDeleteMessages{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateUserTyping: - m2 := &TLUpdateUserTyping{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChatUserTyping: - m2 := &TLUpdateChatUserTyping{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChatParticipants: - m2 := &TLUpdateChatParticipants{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateUserStatus: - m2 := &TLUpdateUserStatus{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateUserName: - m2 := &TLUpdateUserName{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateUserPhoto: - m2 := &TLUpdateUserPhoto{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateContactRegistered: - m2 := &TLUpdateContactRegistered{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateContactLink: - m2 := &TLUpdateContactLink{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateNewEncryptedMessage: - m2 := &TLUpdateNewEncryptedMessage{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateEncryptedChatTyping: - m2 := &TLUpdateEncryptedChatTyping{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateEncryption: - m2 := &TLUpdateEncryption{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateEncryptedMessagesRead: - m2 := &TLUpdateEncryptedMessagesRead{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChatParticipantAdd: - m2 := &TLUpdateChatParticipantAdd{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChatParticipantDelete: - m2 := &TLUpdateChatParticipantDelete{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateDcOptions: - m2 := &TLUpdateDcOptions{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateUserBlocked: - m2 := &TLUpdateUserBlocked{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateNotifySettings: - m2 := &TLUpdateNotifySettings{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateServiceNotification: - m2 := &TLUpdateServiceNotification{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updatePrivacy: - m2 := &TLUpdatePrivacy{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateUserPhone: - m2 := &TLUpdateUserPhone{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateReadHistoryInbox: - m2 := &TLUpdateReadHistoryInbox{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateReadHistoryOutbox: - m2 := &TLUpdateReadHistoryOutbox{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateWebPage: - m2 := &TLUpdateWebPage{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateReadMessagesContents: - m2 := &TLUpdateReadMessagesContents{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChannelTooLong: - m2 := &TLUpdateChannelTooLong{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChannel: - m2 := &TLUpdateChannel{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateNewChannelMessage: - m2 := &TLUpdateNewChannelMessage{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateReadChannelInbox: - m2 := &TLUpdateReadChannelInbox{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateDeleteChannelMessages: - m2 := &TLUpdateDeleteChannelMessages{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChannelMessageViews: - m2 := &TLUpdateChannelMessageViews{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChatAdmins: - m2 := &TLUpdateChatAdmins{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChatParticipantAdmin: - m2 := &TLUpdateChatParticipantAdmin{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateNewStickerSet: - m2 := &TLUpdateNewStickerSet{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateStickerSetsOrder: - m2 := &TLUpdateStickerSetsOrder{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateStickerSets: - m2 := &TLUpdateStickerSets{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateSavedGifs: - m2 := &TLUpdateSavedGifs{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateBotInlineQuery: - m2 := &TLUpdateBotInlineQuery{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateBotInlineSend: - m2 := &TLUpdateBotInlineSend{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateEditChannelMessage: - m2 := &TLUpdateEditChannelMessage{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChannelPinnedMessage: - m2 := &TLUpdateChannelPinnedMessage{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateBotCallbackQuery: - m2 := &TLUpdateBotCallbackQuery{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateEditMessage: - m2 := &TLUpdateEditMessage{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateInlineBotCallbackQuery: - m2 := &TLUpdateInlineBotCallbackQuery{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateReadChannelOutbox: - m2 := &TLUpdateReadChannelOutbox{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateDraftMessage: - m2 := &TLUpdateDraftMessage{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateReadFeaturedStickers: - m2 := &TLUpdateReadFeaturedStickers{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateRecentStickers: - m2 := &TLUpdateRecentStickers{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateConfig: - m2 := &TLUpdateConfig{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updatePtsChanged: - m2 := &TLUpdatePtsChanged{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChannelWebPage: - m2 := &TLUpdateChannelWebPage{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateDialogPinned: - m2 := &TLUpdateDialogPinned{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updatePinnedDialogs: - m2 := &TLUpdatePinnedDialogs{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateBotWebhookJSON: - m2 := &TLUpdateBotWebhookJSON{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateBotWebhookJSONQuery: - m2 := &TLUpdateBotWebhookJSONQuery{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateBotShippingQuery: - m2 := &TLUpdateBotShippingQuery{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateBotPrecheckoutQuery: - m2 := &TLUpdateBotPrecheckoutQuery{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updatePhoneCall: - m2 := &TLUpdatePhoneCall{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateLangPackTooLong: - m2 := &TLUpdateLangPackTooLong{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateLangPack: - m2 := &TLUpdateLangPack{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateFavedStickers: - m2 := &TLUpdateFavedStickers{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChannelReadMessagesContents: - m2 := &TLUpdateChannelReadMessagesContents{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateContactsReset: - m2 := &TLUpdateContactsReset{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateChannelAvailableMessages: - m2 := &TLUpdateChannelAvailableMessages{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateDialogUnreadMark: - m2 := &TLUpdateDialogUnreadMark{Data2: &Update_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLPhoneCall) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhoneCall) GetId() int64 { return m.Data2.Id } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} +func (m *TLPhoneCall) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLPhoneCall) GetAccessHash() int64 { return m.Data2.AccessHash } -// updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update; -func (m *Update) To_UpdateNewMessage() *TLUpdateNewMessage { - return &TLUpdateNewMessage{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) SetDate(v int32) { m.Data2.Date = v } +func (m *TLPhoneCall) GetDate() int32 { return m.Data2.Date } -// updateMessageID#4e90bfd6 id:int random_id:long = Update; -func (m *Update) To_UpdateMessageID() *TLUpdateMessageID { - return &TLUpdateMessageID{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) SetAdminId(v int32) { m.Data2.AdminId = v } +func (m *TLPhoneCall) GetAdminId() int32 { return m.Data2.AdminId } -// updateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update; -func (m *Update) To_UpdateDeleteMessages() *TLUpdateDeleteMessages { - return &TLUpdateDeleteMessages{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) SetParticipantId(v int32) { m.Data2.ParticipantId = v } +func (m *TLPhoneCall) GetParticipantId() int32 { return m.Data2.ParticipantId } -// updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update; -func (m *Update) To_UpdateUserTyping() *TLUpdateUserTyping { - return &TLUpdateUserTyping{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) SetGAOrB(v []byte) { m.Data2.GAOrB = v } +func (m *TLPhoneCall) GetGAOrB() []byte { return m.Data2.GAOrB } -// updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update; -func (m *Update) To_UpdateChatUserTyping() *TLUpdateChatUserTyping { - return &TLUpdateChatUserTyping{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) SetKeyFingerprint(v int64) { m.Data2.KeyFingerprint = v } +func (m *TLPhoneCall) GetKeyFingerprint() int64 { return m.Data2.KeyFingerprint } -// updateChatParticipants#7761198 participants:ChatParticipants = Update; -func (m *Update) To_UpdateChatParticipants() *TLUpdateChatParticipants { - return &TLUpdateChatParticipants{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) SetProtocol(v *PhoneCallProtocol) { m.Data2.Protocol = v } +func (m *TLPhoneCall) GetProtocol() *PhoneCallProtocol { return m.Data2.Protocol } -// updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update; -func (m *Update) To_UpdateUserStatus() *TLUpdateUserStatus { - return &TLUpdateUserStatus{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) SetConnection(v *PhoneConnection) { m.Data2.Connection = v } +func (m *TLPhoneCall) GetConnection() *PhoneConnection { return m.Data2.Connection } -// updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update; -func (m *Update) To_UpdateUserName() *TLUpdateUserName { - return &TLUpdateUserName{ - Data2: m.Data2, - } +func (m *TLPhoneCall) SetAlternativeConnections(v []*PhoneConnection) { + m.Data2.AlternativeConnections = v } - -// updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update; -func (m *Update) To_UpdateUserPhoto() *TLUpdateUserPhoto { - return &TLUpdateUserPhoto{ - Data2: m.Data2, - } +func (m *TLPhoneCall) GetAlternativeConnections() []*PhoneConnection { + return m.Data2.AlternativeConnections } -// updateContactRegistered#2575bbb9 user_id:int date:int = Update; -func (m *Update) To_UpdateContactRegistered() *TLUpdateContactRegistered { - return &TLUpdateContactRegistered{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) SetStartDate(v int32) { m.Data2.StartDate = v } +func (m *TLPhoneCall) GetStartDate() int32 { return m.Data2.StartDate } -// updateContactLink#9d2e67c5 user_id:int my_link:ContactLink foreign_link:ContactLink = Update; -func (m *Update) To_UpdateContactLink() *TLUpdateContactLink { - return &TLUpdateContactLink{ - Data2: m.Data2, - } +func NewTLPhoneCall() *TLPhoneCall { + return &TLPhoneCall{Data2: &PhoneCall_Data{}} } -// updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update; -func (m *Update) To_UpdateNewEncryptedMessage() *TLUpdateNewEncryptedMessage { - return &TLUpdateNewEncryptedMessage{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_phoneCall)) -// updateEncryptedChatTyping#1710f156 chat_id:int = Update; -func (m *Update) To_UpdateEncryptedChatTyping() *TLUpdateEncryptedChatTyping { - return &TLUpdateEncryptedChatTyping{ - Data2: m.Data2, + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGAOrB()) + x.Long(m.GetKeyFingerprint()) + x.Bytes(m.GetProtocol().Encode()) + x.Bytes(m.GetConnection().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAlternativeConnections()))) + for _, v := range m.GetAlternativeConnections() { + x.buf = append(x.buf, (*v).Encode()...) } -} + x.Int(m.GetStartDate()) -// updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update; -func (m *Update) To_UpdateEncryption() *TLUpdateEncryption { - return &TLUpdateEncryption{ - Data2: m.Data2, - } + return x.buf } -// updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update; -func (m *Update) To_UpdateEncryptedMessagesRead() *TLUpdateEncryptedMessagesRead { - return &TLUpdateEncryptedMessagesRead{ - Data2: m.Data2, - } -} +func (m *TLPhoneCall) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_phoneCall)) -// updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update; -func (m *Update) To_UpdateChatParticipantAdd() *TLUpdateChatParticipantAdd { - return &TLUpdateChatParticipantAdd{ - Data2: m.Data2, + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGAOrB()) + x.Long(m.GetKeyFingerprint()) + x.Bytes(m.GetProtocol().EncodeToLayer(layer)) + x.Bytes(m.GetConnection().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAlternativeConnections()))) + for _, v := range m.GetAlternativeConnections() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } -} + x.Int(m.GetStartDate()) -// updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update; -func (m *Update) To_UpdateChatParticipantDelete() *TLUpdateChatParticipantDelete { - return &TLUpdateChatParticipantDelete{ - Data2: m.Data2, - } + return x.buf } -// updateDcOptions#8e5e9873 dc_options:Vector = Update; -func (m *Update) To_UpdateDcOptions() *TLUpdateDcOptions { - return &TLUpdateDcOptions{ - Data2: m.Data2, +func (m *TLPhoneCall) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetDate(dbuf.Int()) + m.SetAdminId(dbuf.Int()) + m.SetParticipantId(dbuf.Int()) + m.SetGAOrB(dbuf.StringBytes()) + m.SetKeyFingerprint(dbuf.Long()) + m8 := &PhoneCallProtocol{} + m8.Decode(dbuf) + m.SetProtocol(m8) + m9 := &PhoneConnection{} + m9.Decode(dbuf) + m.SetConnection(m9) + c10 := dbuf.Int() + if c10 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 10, c10) + return dbuf.err } -} - -// updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; -func (m *Update) To_UpdateUserBlocked() *TLUpdateUserBlocked { - return &TLUpdateUserBlocked{ - Data2: m.Data2, + l10 := dbuf.Int() + v10 := make([]*PhoneConnection, l10) + for i := int32(0); i < l10; i++ { + v10[i] = &PhoneConnection{} + v10[i].Decode(dbuf) } -} + m.SetAlternativeConnections(v10) -// updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; -func (m *Update) To_UpdateNotifySettings() *TLUpdateNotifySettings { - return &TLUpdateNotifySettings{ - Data2: m.Data2, - } -} + m.SetStartDate(dbuf.Int()) -// updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update; -func (m *Update) To_UpdateServiceNotification() *TLUpdateServiceNotification { - return &TLUpdateServiceNotification{ - Data2: m.Data2, - } + return dbuf.err } -// updatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update; -func (m *Update) To_UpdatePrivacy() *TLUpdatePrivacy { - return &TLUpdatePrivacy{ - Data2: m.Data2, +// phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; +func (m *TLPhoneCallDiscarded) To_PhoneCall() *PhoneCall { + return &PhoneCall{ + Constructor: TLConstructor_CRC32_phoneCallDiscarded, + Data2: m.Data2, } } -// updateUserPhone#12b9417b user_id:int phone:string = Update; -func (m *Update) To_UpdateUserPhone() *TLUpdateUserPhone { - return &TLUpdateUserPhone{ - Data2: m.Data2, - } -} +func (m *TLPhoneCallDiscarded) SetNeedRating(v bool) { m.Data2.NeedRating = v } +func (m *TLPhoneCallDiscarded) GetNeedRating() bool { return m.Data2.NeedRating } -// updateReadHistoryInbox#9961fd5c peer:Peer max_id:int pts:int pts_count:int = Update; -func (m *Update) To_UpdateReadHistoryInbox() *TLUpdateReadHistoryInbox { - return &TLUpdateReadHistoryInbox{ - Data2: m.Data2, - } -} +func (m *TLPhoneCallDiscarded) SetNeedDebug(v bool) { m.Data2.NeedDebug = v } +func (m *TLPhoneCallDiscarded) GetNeedDebug() bool { return m.Data2.NeedDebug } -// updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update; -func (m *Update) To_UpdateReadHistoryOutbox() *TLUpdateReadHistoryOutbox { - return &TLUpdateReadHistoryOutbox{ - Data2: m.Data2, - } -} +func (m *TLPhoneCallDiscarded) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhoneCallDiscarded) GetId() int64 { return m.Data2.Id } -// updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update; -func (m *Update) To_UpdateWebPage() *TLUpdateWebPage { - return &TLUpdateWebPage{ - Data2: m.Data2, - } -} - -// updateReadMessagesContents#68c13933 messages:Vector pts:int pts_count:int = Update; -func (m *Update) To_UpdateReadMessagesContents() *TLUpdateReadMessagesContents { - return &TLUpdateReadMessagesContents{ - Data2: m.Data2, - } -} - -// updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update; -func (m *Update) To_UpdateChannelTooLong() *TLUpdateChannelTooLong { - return &TLUpdateChannelTooLong{ - Data2: m.Data2, - } -} - -// updateChannel#b6d45656 channel_id:int = Update; -func (m *Update) To_UpdateChannel() *TLUpdateChannel { - return &TLUpdateChannel{ - Data2: m.Data2, - } -} - -// updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update; -func (m *Update) To_UpdateNewChannelMessage() *TLUpdateNewChannelMessage { - return &TLUpdateNewChannelMessage{ - Data2: m.Data2, - } -} +func (m *TLPhoneCallDiscarded) SetReason(v *PhoneCallDiscardReason) { m.Data2.Reason = v } +func (m *TLPhoneCallDiscarded) GetReason() *PhoneCallDiscardReason { return m.Data2.Reason } -// updateReadChannelInbox#4214f37f channel_id:int max_id:int = Update; -func (m *Update) To_UpdateReadChannelInbox() *TLUpdateReadChannelInbox { - return &TLUpdateReadChannelInbox{ - Data2: m.Data2, - } -} +func (m *TLPhoneCallDiscarded) SetDuration(v int32) { m.Data2.Duration = v } +func (m *TLPhoneCallDiscarded) GetDuration() int32 { return m.Data2.Duration } -// updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector pts:int pts_count:int = Update; -func (m *Update) To_UpdateDeleteChannelMessages() *TLUpdateDeleteChannelMessages { - return &TLUpdateDeleteChannelMessages{ - Data2: m.Data2, - } +func NewTLPhoneCallDiscarded() *TLPhoneCallDiscarded { + return &TLPhoneCallDiscarded{Data2: &PhoneCall_Data{}} } -// updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update; -func (m *Update) To_UpdateChannelMessageViews() *TLUpdateChannelMessageViews { - return &TLUpdateChannelMessageViews{ - Data2: m.Data2, - } -} +func (m *TLPhoneCallDiscarded) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscarded)) -// updateChatAdmins#6e947941 chat_id:int enabled:Bool version:int = Update; -func (m *Update) To_UpdateChatAdmins() *TLUpdateChatAdmins { - return &TLUpdateChatAdmins{ - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetNeedRating() == true { + flags |= 1 << 2 } -} - -// updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update; -func (m *Update) To_UpdateChatParticipantAdmin() *TLUpdateChatParticipantAdmin { - return &TLUpdateChatParticipantAdmin{ - Data2: m.Data2, + if m.GetNeedDebug() == true { + flags |= 1 << 3 } -} - -// updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; -func (m *Update) To_UpdateNewStickerSet() *TLUpdateNewStickerSet { - return &TLUpdateNewStickerSet{ - Data2: m.Data2, + if m.GetReason() != nil { + flags |= 1 << 0 } -} - -// updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector = Update; -func (m *Update) To_UpdateStickerSetsOrder() *TLUpdateStickerSetsOrder { - return &TLUpdateStickerSetsOrder{ - Data2: m.Data2, + if m.GetDuration() != 0 { + flags |= 1 << 1 } -} + x.UInt(flags) -// updateStickerSets#43ae3dec = Update; -func (m *Update) To_UpdateStickerSets() *TLUpdateStickerSets { - return &TLUpdateStickerSets{ - Data2: m.Data2, + x.Long(m.GetId()) + if m.GetReason() != nil { + x.Bytes(m.GetReason().Encode()) } -} - -// updateSavedGifs#9375341e = Update; -func (m *Update) To_UpdateSavedGifs() *TLUpdateSavedGifs { - return &TLUpdateSavedGifs{ - Data2: m.Data2, + if m.GetDuration() != 0 { + x.Int(m.GetDuration()) } -} -// updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update; -func (m *Update) To_UpdateBotInlineQuery() *TLUpdateBotInlineQuery { - return &TLUpdateBotInlineQuery{ - Data2: m.Data2, - } + return x.buf } -// updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update; -func (m *Update) To_UpdateBotInlineSend() *TLUpdateBotInlineSend { - return &TLUpdateBotInlineSend{ - Data2: m.Data2, - } -} +func (m *TLPhoneCallDiscarded) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscarded)) -// updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update; -func (m *Update) To_UpdateEditChannelMessage() *TLUpdateEditChannelMessage { - return &TLUpdateEditChannelMessage{ - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetNeedRating() == true { + flags |= 1 << 2 } -} - -// updateChannelPinnedMessage#98592475 channel_id:int id:int = Update; -func (m *Update) To_UpdateChannelPinnedMessage() *TLUpdateChannelPinnedMessage { - return &TLUpdateChannelPinnedMessage{ - Data2: m.Data2, + if m.GetNeedDebug() == true { + flags |= 1 << 3 } -} - -// updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; -func (m *Update) To_UpdateBotCallbackQuery() *TLUpdateBotCallbackQuery { - return &TLUpdateBotCallbackQuery{ - Data2: m.Data2, + if m.GetReason() != nil { + flags |= 1 << 0 } -} - -// updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update; -func (m *Update) To_UpdateEditMessage() *TLUpdateEditMessage { - return &TLUpdateEditMessage{ - Data2: m.Data2, + if m.GetDuration() != 0 { + flags |= 1 << 1 } -} + x.UInt(flags) -// updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; -func (m *Update) To_UpdateInlineBotCallbackQuery() *TLUpdateInlineBotCallbackQuery { - return &TLUpdateInlineBotCallbackQuery{ - Data2: m.Data2, + x.Long(m.GetId()) + if m.GetReason() != nil { + x.Bytes(m.GetReason().EncodeToLayer(layer)) } -} - -// updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update; -func (m *Update) To_UpdateReadChannelOutbox() *TLUpdateReadChannelOutbox { - return &TLUpdateReadChannelOutbox{ - Data2: m.Data2, + if m.GetDuration() != 0 { + x.Int(m.GetDuration()) } -} -// updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update; -func (m *Update) To_UpdateDraftMessage() *TLUpdateDraftMessage { - return &TLUpdateDraftMessage{ - Data2: m.Data2, - } + return x.buf } -// updateReadFeaturedStickers#571d2742 = Update; -func (m *Update) To_UpdateReadFeaturedStickers() *TLUpdateReadFeaturedStickers { - return &TLUpdateReadFeaturedStickers{ - Data2: m.Data2, +func (m *TLPhoneCallDiscarded) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 2)) != 0 { + m.SetNeedRating(true) } -} - -// updateRecentStickers#9a422c20 = Update; -func (m *Update) To_UpdateRecentStickers() *TLUpdateRecentStickers { - return &TLUpdateRecentStickers{ - Data2: m.Data2, + if (flags & (1 << 3)) != 0 { + m.SetNeedDebug(true) } -} - -// updateConfig#a229dd06 = Update; -func (m *Update) To_UpdateConfig() *TLUpdateConfig { - return &TLUpdateConfig{ - Data2: m.Data2, + m.SetId(dbuf.Long()) + if (flags & (1 << 0)) != 0 { + m5 := &PhoneCallDiscardReason{} + m5.Decode(dbuf) + m.SetReason(m5) } -} - -// updatePtsChanged#3354678f = Update; -func (m *Update) To_UpdatePtsChanged() *TLUpdatePtsChanged { - return &TLUpdatePtsChanged{ - Data2: m.Data2, + if (flags & (1 << 1)) != 0 { + m.SetDuration(dbuf.Int()) } -} -// updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update; -func (m *Update) To_UpdateChannelWebPage() *TLUpdateChannelWebPage { - return &TLUpdateChannelWebPage{ - Data2: m.Data2, - } + return dbuf.err } -// updateDialogPinned#19d27f3c flags:# pinned:flags.0?true peer:DialogPeer = Update; -func (m *Update) To_UpdateDialogPinned() *TLUpdateDialogPinned { - return &TLUpdateDialogPinned{ - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// SecureValue <-- +// + TL_SecureValue +// -// updatePinnedDialogs#ea4cb65b flags:# order:flags.0?Vector = Update; -func (m *Update) To_UpdatePinnedDialogs() *TLUpdatePinnedDialogs { - return &TLUpdatePinnedDialogs{ - Data2: m.Data2, - } -} +func (m *SecureValue) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_secureValue: + t := m.To_SecureValue() + return t.Encode() -// updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; -func (m *Update) To_UpdateBotWebhookJSON() *TLUpdateBotWebhookJSON { - return &TLUpdateBotWebhookJSON{ - Data2: m.Data2, + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -// updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; -func (m *Update) To_UpdateBotWebhookJSONQuery() *TLUpdateBotWebhookJSONQuery { - return &TLUpdateBotWebhookJSONQuery{ - Data2: m.Data2, - } -} +func (m *SecureValue) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_secureValue: + t := m.To_SecureValue() + return t.EncodeToLayer(layer) -// updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; -func (m *Update) To_UpdateBotShippingQuery() *TLUpdateBotShippingQuery { - return &TLUpdateBotShippingQuery{ - Data2: m.Data2, + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -// updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; -func (m *Update) To_UpdateBotPrecheckoutQuery() *TLUpdateBotPrecheckoutQuery { - return &TLUpdateBotPrecheckoutQuery{ - Data2: m.Data2, - } -} +func (m *SecureValue) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_secureValue: + m2 := &TLSecureValue{Data2: &SecureValue_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -// updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update; -func (m *Update) To_UpdatePhoneCall() *TLUpdatePhoneCall { - return &TLUpdatePhoneCall{ - Data2: m.Data2, + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } + return dbuf.err } -// updateLangPackTooLong#10c2404b = Update; -func (m *Update) To_UpdateLangPackTooLong() *TLUpdateLangPackTooLong { - return &TLUpdateLangPackTooLong{ +// secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue; +func (m *SecureValue) To_SecureValue() *TLSecureValue { + return &TLSecureValue{ Data2: m.Data2, } } -// updateLangPack#56022f4d difference:LangPackDifference = Update; -func (m *Update) To_UpdateLangPack() *TLUpdateLangPack { - return &TLUpdateLangPack{ - Data2: m.Data2, +// secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue; +func (m *TLSecureValue) To_SecureValue() *SecureValue { + return &SecureValue{ + Constructor: TLConstructor_CRC32_secureValue, + Data2: m.Data2, } } -// updateFavedStickers#e511996d = Update; -func (m *Update) To_UpdateFavedStickers() *TLUpdateFavedStickers { - return &TLUpdateFavedStickers{ - Data2: m.Data2, - } -} +func (m *TLSecureValue) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValue) GetType() *SecureValueType { return m.Data2.Type } -// updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector = Update; -func (m *Update) To_UpdateChannelReadMessagesContents() *TLUpdateChannelReadMessagesContents { - return &TLUpdateChannelReadMessagesContents{ - Data2: m.Data2, - } -} +func (m *TLSecureValue) SetData(v *SecureData) { m.Data2.Data = v } +func (m *TLSecureValue) GetData() *SecureData { return m.Data2.Data } -// updateContactsReset#7084a7be = Update; -func (m *Update) To_UpdateContactsReset() *TLUpdateContactsReset { - return &TLUpdateContactsReset{ - Data2: m.Data2, - } -} +func (m *TLSecureValue) SetFrontSide(v *SecureFile) { m.Data2.FrontSide = v } +func (m *TLSecureValue) GetFrontSide() *SecureFile { return m.Data2.FrontSide } -// updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update; -func (m *Update) To_UpdateChannelAvailableMessages() *TLUpdateChannelAvailableMessages { - return &TLUpdateChannelAvailableMessages{ - Data2: m.Data2, - } -} +func (m *TLSecureValue) SetReverseSide(v *SecureFile) { m.Data2.ReverseSide = v } +func (m *TLSecureValue) GetReverseSide() *SecureFile { return m.Data2.ReverseSide } -// updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update; -func (m *Update) To_UpdateDialogUnreadMark() *TLUpdateDialogUnreadMark { - return &TLUpdateDialogUnreadMark{ - Data2: m.Data2, - } -} +func (m *TLSecureValue) SetSelfie(v *SecureFile) { m.Data2.Selfie = v } +func (m *TLSecureValue) GetSelfie() *SecureFile { return m.Data2.Selfie } -// updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update; -func (m *TLUpdateNewMessage) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateNewMessage, - Data2: m.Data2, - } -} +func (m *TLSecureValue) SetTranslation(v []*SecureFile) { m.Data2.Translation = v } +func (m *TLSecureValue) GetTranslation() []*SecureFile { return m.Data2.Translation } -func (m *TLUpdateNewMessage) SetMessage(v *Message) { m.Data2.Message_1 = v } -func (m *TLUpdateNewMessage) GetMessage() *Message { return m.Data2.Message_1 } +func (m *TLSecureValue) SetFiles(v []*SecureFile) { m.Data2.Files = v } +func (m *TLSecureValue) GetFiles() []*SecureFile { return m.Data2.Files } -func (m *TLUpdateNewMessage) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateNewMessage) GetPts() int32 { return m.Data2.Pts } +func (m *TLSecureValue) SetPlainData(v *SecurePlainData) { m.Data2.PlainData = v } +func (m *TLSecureValue) GetPlainData() *SecurePlainData { return m.Data2.PlainData } -func (m *TLUpdateNewMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateNewMessage) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLSecureValue) SetHash(v []byte) { m.Data2.Hash = v } +func (m *TLSecureValue) GetHash() []byte { return m.Data2.Hash } -func NewTLUpdateNewMessage() *TLUpdateNewMessage { - return &TLUpdateNewMessage{Data2: &Update_Data{}} +func NewTLSecureValue() *TLSecureValue { + return &TLSecureValue{Data2: &SecureValue_Data{}} } -func (m *TLUpdateNewMessage) Encode() []byte { +func (m *TLSecureValue) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNewMessage)) - - x.Bytes(m.GetMessage().Encode()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) - - return x.buf -} + x.Int(int32(TLConstructor_CRC32_secureValue)) -func (m *TLUpdateNewMessage) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNewMessage)) + // flags + var flags uint32 = 0 + if m.GetData() != nil { + flags |= 1 << 0 + } + if m.GetFrontSide() != nil { + flags |= 1 << 1 + } + if m.GetReverseSide() != nil { + flags |= 1 << 2 + } + if m.GetSelfie() != nil { + flags |= 1 << 3 + } + if m.GetTranslation() != nil { + flags |= 1 << 6 + } + if m.GetFiles() != nil { + flags |= 1 << 4 + } + if m.GetPlainData() != nil { + flags |= 1 << 5 + } + x.UInt(flags) - x.Bytes(m.GetMessage().EncodeToLayer(layer)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Bytes(m.GetType().Encode()) + if m.GetData() != nil { + x.Bytes(m.GetData().Encode()) + } + if m.GetFrontSide() != nil { + x.Bytes(m.GetFrontSide().Encode()) + } + if m.GetReverseSide() != nil { + x.Bytes(m.GetReverseSide().Encode()) + } + if m.GetSelfie() != nil { + x.Bytes(m.GetSelfie().Encode()) + } + if m.GetTranslation() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTranslation()))) + for _, v := range m.GetTranslation() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetFiles() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetFiles()))) + for _, v := range m.GetFiles() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetPlainData() != nil { + x.Bytes(m.GetPlainData().Encode()) + } + x.StringBytes(m.GetHash()) return x.buf } -func (m *TLUpdateNewMessage) Decode(dbuf *DecodeBuf) error { - m1 := &Message{} - m1.Decode(dbuf) - m.SetMessage(m1) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLSecureValue) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValue)) - return dbuf.err -} + // flags + var flags uint32 = 0 + if m.GetData() != nil { + flags |= 1 << 0 + } + if m.GetFrontSide() != nil { + flags |= 1 << 1 + } + if m.GetReverseSide() != nil { + flags |= 1 << 2 + } + if m.GetSelfie() != nil { + flags |= 1 << 3 + } + if m.GetTranslation() != nil { + flags |= 1 << 6 + } + if m.GetFiles() != nil { + flags |= 1 << 4 + } + if m.GetPlainData() != nil { + flags |= 1 << 5 + } + x.UInt(flags) -// updateMessageID#4e90bfd6 id:int random_id:long = Update; -func (m *TLUpdateMessageID) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateMessageID, - Data2: m.Data2, + x.Bytes(m.GetType().EncodeToLayer(layer)) + if m.GetData() != nil { + x.Bytes(m.GetData().EncodeToLayer(layer)) + } + if m.GetFrontSide() != nil { + x.Bytes(m.GetFrontSide().EncodeToLayer(layer)) + } + if m.GetReverseSide() != nil { + x.Bytes(m.GetReverseSide().EncodeToLayer(layer)) + } + if m.GetSelfie() != nil { + x.Bytes(m.GetSelfie().EncodeToLayer(layer)) + } + if m.GetTranslation() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTranslation()))) + for _, v := range m.GetTranslation() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetFiles() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetFiles()))) + for _, v := range m.GetFiles() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } } + if m.GetPlainData() != nil { + x.Bytes(m.GetPlainData().EncodeToLayer(layer)) + } + x.StringBytes(m.GetHash()) + + return x.buf } -func (m *TLUpdateMessageID) SetId(v int32) { m.Data2.Id_4 = v } -func (m *TLUpdateMessageID) GetId() int32 { return m.Data2.Id_4 } +func (m *TLSecureValue) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &SecureValueType{} + m2.Decode(dbuf) + m.SetType(m2) + if (flags & (1 << 0)) != 0 { + m3 := &SecureData{} + m3.Decode(dbuf) + m.SetData(m3) + } + if (flags & (1 << 1)) != 0 { + m4 := &SecureFile{} + m4.Decode(dbuf) + m.SetFrontSide(m4) + } + if (flags & (1 << 2)) != 0 { + m5 := &SecureFile{} + m5.Decode(dbuf) + m.SetReverseSide(m5) + } + if (flags & (1 << 3)) != 0 { + m6 := &SecureFile{} + m6.Decode(dbuf) + m.SetSelfie(m6) + } + if (flags & (1 << 6)) != 0 { + c7 := dbuf.Int() + if c7 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) + return dbuf.err + } + l7 := dbuf.Int() + v7 := make([]*SecureFile, l7) + for i := int32(0); i < l7; i++ { + v7[i] = &SecureFile{} + v7[i].Decode(dbuf) + } + m.SetTranslation(v7) -func (m *TLUpdateMessageID) SetRandomId(v int64) { m.Data2.RandomId = v } -func (m *TLUpdateMessageID) GetRandomId() int64 { return m.Data2.RandomId } + } + if (flags & (1 << 4)) != 0 { + c8 := dbuf.Int() + if c8 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) + return dbuf.err + } + l8 := dbuf.Int() + v8 := make([]*SecureFile, l8) + for i := int32(0); i < l8; i++ { + v8[i] = &SecureFile{} + v8[i].Decode(dbuf) + } + m.SetFiles(v8) -func NewTLUpdateMessageID() *TLUpdateMessageID { - return &TLUpdateMessageID{Data2: &Update_Data{}} + } + if (flags & (1 << 5)) != 0 { + m9 := &SecurePlainData{} + m9.Decode(dbuf) + m.SetPlainData(m9) + } + m.SetHash(dbuf.StringBytes()) + + return dbuf.err } -func (m *TLUpdateMessageID) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateMessageID)) +/////////////////////////////////////////////////////////////////////////////// +// Peer <-- +// + TL_PeerUser +// + TL_PeerChat +// + TL_PeerChannel +// - x.Int(m.GetId()) - x.Long(m.GetRandomId()) +func (m *Peer) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_peerUser: + t := m.To_PeerUser() + return t.Encode() + case TLConstructor_CRC32_peerChat: + t := m.To_PeerChat() + return t.Encode() + case TLConstructor_CRC32_peerChannel: + t := m.To_PeerChannel() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateMessageID) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateMessageID)) - - x.Int(m.GetId()) - x.Long(m.GetRandomId()) +func (m *Peer) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_peerUser: + t := m.To_PeerUser() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_peerChat: + t := m.To_PeerChat() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_peerChannel: + t := m.To_PeerChannel() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateMessageID) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetRandomId(dbuf.Long()) +func (m *Peer) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_peerUser: + m2 := &TLPeerUser{Data2: &Peer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_peerChat: + m2 := &TLPeerChat{Data2: &Peer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_peerChannel: + m2 := &TLPeerChannel{Data2: &Peer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// updateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update; -func (m *TLUpdateDeleteMessages) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateDeleteMessages, - Data2: m.Data2, +// peerUser#9db1bc6d user_id:int = Peer; +func (m *Peer) To_PeerUser() *TLPeerUser { + return &TLPeerUser{ + Data2: m.Data2, } } -func (m *TLUpdateDeleteMessages) SetMessages(v []int32) { m.Data2.Messages = v } -func (m *TLUpdateDeleteMessages) GetMessages() []int32 { return m.Data2.Messages } +// peerChat#bad0e5bb chat_id:int = Peer; +func (m *Peer) To_PeerChat() *TLPeerChat { + return &TLPeerChat{ + Data2: m.Data2, + } +} -func (m *TLUpdateDeleteMessages) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateDeleteMessages) GetPts() int32 { return m.Data2.Pts } +// peerChannel#bddde532 channel_id:int = Peer; +func (m *Peer) To_PeerChannel() *TLPeerChannel { + return &TLPeerChannel{ + Data2: m.Data2, + } +} -func (m *TLUpdateDeleteMessages) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateDeleteMessages) GetPtsCount() int32 { return m.Data2.PtsCount } +// peerUser#9db1bc6d user_id:int = Peer; +func (m *TLPeerUser) To_Peer() *Peer { + return &Peer{ + Constructor: TLConstructor_CRC32_peerUser, + Data2: m.Data2, + } +} -func NewTLUpdateDeleteMessages() *TLUpdateDeleteMessages { - return &TLUpdateDeleteMessages{Data2: &Update_Data{}} +func (m *TLPeerUser) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLPeerUser) GetUserId() int32 { return m.Data2.UserId } + +func NewTLPeerUser() *TLPeerUser { + return &TLPeerUser{Data2: &Peer_Data{}} } -func (m *TLUpdateDeleteMessages) Encode() []byte { +func (m *TLPeerUser) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDeleteMessages)) - - x.VectorInt(m.GetMessages()) + x.Int(int32(TLConstructor_CRC32_peerUser)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetUserId()) return x.buf } -func (m *TLUpdateDeleteMessages) EncodeToLayer(layer int) []byte { +func (m *TLPeerUser) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDeleteMessages)) - - x.VectorInt(m.GetMessages()) + x.Int(int32(TLConstructor_CRC32_peerUser)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetUserId()) return x.buf } -func (m *TLUpdateDeleteMessages) Decode(dbuf *DecodeBuf) error { - m.SetMessages(dbuf.VectorInt()) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLPeerUser) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) return dbuf.err } -// updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update; -func (m *TLUpdateUserTyping) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateUserTyping, +// peerChat#bad0e5bb chat_id:int = Peer; +func (m *TLPeerChat) To_Peer() *Peer { + return &Peer{ + Constructor: TLConstructor_CRC32_peerChat, Data2: m.Data2, } } -func (m *TLUpdateUserTyping) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateUserTyping) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLUpdateUserTyping) SetAction(v *SendMessageAction) { m.Data2.Action = v } -func (m *TLUpdateUserTyping) GetAction() *SendMessageAction { return m.Data2.Action } +func (m *TLPeerChat) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLPeerChat) GetChatId() int32 { return m.Data2.ChatId } -func NewTLUpdateUserTyping() *TLUpdateUserTyping { - return &TLUpdateUserTyping{Data2: &Update_Data{}} +func NewTLPeerChat() *TLPeerChat { + return &TLPeerChat{Data2: &Peer_Data{}} } -func (m *TLUpdateUserTyping) Encode() []byte { +func (m *TLPeerChat) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserTyping)) + x.Int(int32(TLConstructor_CRC32_peerChat)) - x.Int(m.GetUserId()) - x.Bytes(m.GetAction().Encode()) + x.Int(m.GetChatId()) return x.buf } -func (m *TLUpdateUserTyping) EncodeToLayer(layer int) []byte { +func (m *TLPeerChat) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserTyping)) + x.Int(int32(TLConstructor_CRC32_peerChat)) - x.Int(m.GetUserId()) - x.Bytes(m.GetAction().EncodeToLayer(layer)) + x.Int(m.GetChatId()) return x.buf } -func (m *TLUpdateUserTyping) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m2 := &SendMessageAction{} - m2.Decode(dbuf) - m.SetAction(m2) +func (m *TLPeerChat) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) return dbuf.err } -// updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update; -func (m *TLUpdateChatUserTyping) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChatUserTyping, +// peerChannel#bddde532 channel_id:int = Peer; +func (m *TLPeerChannel) To_Peer() *Peer { + return &Peer{ + Constructor: TLConstructor_CRC32_peerChannel, Data2: m.Data2, } } -func (m *TLUpdateChatUserTyping) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLUpdateChatUserTyping) GetChatId() int32 { return m.Data2.ChatId } - -func (m *TLUpdateChatUserTyping) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateChatUserTyping) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLUpdateChatUserTyping) SetAction(v *SendMessageAction) { m.Data2.Action = v } -func (m *TLUpdateChatUserTyping) GetAction() *SendMessageAction { return m.Data2.Action } +func (m *TLPeerChannel) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLPeerChannel) GetChannelId() int32 { return m.Data2.ChannelId } -func NewTLUpdateChatUserTyping() *TLUpdateChatUserTyping { - return &TLUpdateChatUserTyping{Data2: &Update_Data{}} +func NewTLPeerChannel() *TLPeerChannel { + return &TLPeerChannel{Data2: &Peer_Data{}} } -func (m *TLUpdateChatUserTyping) Encode() []byte { +func (m *TLPeerChannel) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatUserTyping)) + x.Int(int32(TLConstructor_CRC32_peerChannel)) - x.Int(m.GetChatId()) - x.Int(m.GetUserId()) - x.Bytes(m.GetAction().Encode()) + x.Int(m.GetChannelId()) return x.buf } -func (m *TLUpdateChatUserTyping) EncodeToLayer(layer int) []byte { +func (m *TLPeerChannel) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatUserTyping)) + x.Int(int32(TLConstructor_CRC32_peerChannel)) - x.Int(m.GetChatId()) - x.Int(m.GetUserId()) - x.Bytes(m.GetAction().EncodeToLayer(layer)) + x.Int(m.GetChannelId()) return x.buf } -func (m *TLUpdateChatUserTyping) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) - m.SetUserId(dbuf.Int()) - m3 := &SendMessageAction{} - m3.Decode(dbuf) - m.SetAction(m3) +func (m *TLPeerChannel) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) return dbuf.err } -// updateChatParticipants#7761198 participants:ChatParticipants = Update; -func (m *TLUpdateChatParticipants) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChatParticipants, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// Updates <-- +// + TL_UpdateAccountResetAuthorization +// + TL_UpdatesTooLong +// + TL_UpdateShortMessage +// + TL_UpdateShortChatMessage +// + TL_UpdateShort +// + TL_UpdatesCombined +// + TL_Updates +// + TL_UpdateShortSentMessage +// + +func (m *Updates) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_updateAccountResetAuthorization: + t := m.To_UpdateAccountResetAuthorization() + return t.Encode() + case TLConstructor_CRC32_updatesTooLong: + t := m.To_UpdatesTooLong() + return t.Encode() + case TLConstructor_CRC32_updateShortMessage: + t := m.To_UpdateShortMessage() + return t.Encode() + case TLConstructor_CRC32_updateShortChatMessage: + t := m.To_UpdateShortChatMessage() + return t.Encode() + case TLConstructor_CRC32_updateShort: + t := m.To_UpdateShort() + return t.Encode() + case TLConstructor_CRC32_updatesCombined: + t := m.To_UpdatesCombined() + return t.Encode() + case TLConstructor_CRC32_updates: + t := m.To_Updates() + return t.Encode() + case TLConstructor_CRC32_updateShortSentMessage: + t := m.To_UpdateShortSentMessage() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLUpdateChatParticipants) SetParticipants(v *ChatParticipants) { m.Data2.Participants = v } -func (m *TLUpdateChatParticipants) GetParticipants() *ChatParticipants { return m.Data2.Participants } +func (m *Updates) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_updateAccountResetAuthorization: + t := m.To_UpdateAccountResetAuthorization() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updatesTooLong: + t := m.To_UpdatesTooLong() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateShortMessage: + t := m.To_UpdateShortMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateShortChatMessage: + t := m.To_UpdateShortChatMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateShort: + t := m.To_UpdateShort() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updatesCombined: + t := m.To_UpdatesCombined() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updates: + t := m.To_Updates() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateShortSentMessage: + t := m.To_UpdateShortSentMessage() + return t.EncodeToLayer(layer) -func NewTLUpdateChatParticipants() *TLUpdateChatParticipants { - return &TLUpdateChatParticipants{Data2: &Update_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateChatParticipants) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatParticipants)) +func (m *Updates) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_updateAccountResetAuthorization: + m2 := &TLUpdateAccountResetAuthorization{Data2: &Updates_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updatesTooLong: + m2 := &TLUpdatesTooLong{Data2: &Updates_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateShortMessage: + m2 := &TLUpdateShortMessage{Data2: &Updates_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateShortChatMessage: + m2 := &TLUpdateShortChatMessage{Data2: &Updates_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateShort: + m2 := &TLUpdateShort{Data2: &Updates_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updatesCombined: + m2 := &TLUpdatesCombined{Data2: &Updates_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updates: + m2 := &TLUpdates{Data2: &Updates_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateShortSentMessage: + m2 := &TLUpdateShortSentMessage{Data2: &Updates_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - x.Bytes(m.GetParticipants().Encode()) + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} - return x.buf +// updateAccountResetAuthorization user_id:int auth_key_id:long = Updates; +func (m *Updates) To_UpdateAccountResetAuthorization() *TLUpdateAccountResetAuthorization { + return &TLUpdateAccountResetAuthorization{ + Data2: m.Data2, + } } -func (m *TLUpdateChatParticipants) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatParticipants)) +// updatesTooLong#e317af7e = Updates; +func (m *Updates) To_UpdatesTooLong() *TLUpdatesTooLong { + return &TLUpdatesTooLong{ + Data2: m.Data2, + } +} - x.Bytes(m.GetParticipants().EncodeToLayer(layer)) +// updateShortMessage#914fbf11 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; +func (m *Updates) To_UpdateShortMessage() *TLUpdateShortMessage { + return &TLUpdateShortMessage{ + Data2: m.Data2, + } +} - return x.buf +// updateShortChatMessage#16812688 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; +func (m *Updates) To_UpdateShortChatMessage() *TLUpdateShortChatMessage { + return &TLUpdateShortChatMessage{ + Data2: m.Data2, + } } -func (m *TLUpdateChatParticipants) Decode(dbuf *DecodeBuf) error { - m1 := &ChatParticipants{} - m1.Decode(dbuf) - m.SetParticipants(m1) +// updateShort#78d4dec1 update:Update date:int = Updates; +func (m *Updates) To_UpdateShort() *TLUpdateShort { + return &TLUpdateShort{ + Data2: m.Data2, + } +} - return dbuf.err +// updatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates; +func (m *Updates) To_UpdatesCombined() *TLUpdatesCombined { + return &TLUpdatesCombined{ + Data2: m.Data2, + } } -// updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update; -func (m *TLUpdateUserStatus) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateUserStatus, +// updates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates; +func (m *Updates) To_Updates() *TLUpdates { + return &TLUpdates{ + Data2: m.Data2, + } +} + +// updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates; +func (m *Updates) To_UpdateShortSentMessage() *TLUpdateShortSentMessage { + return &TLUpdateShortSentMessage{ + Data2: m.Data2, + } +} + +// updateAccountResetAuthorization user_id:int auth_key_id:long = Updates; +func (m *TLUpdateAccountResetAuthorization) To_Updates() *Updates { + return &Updates{ + Constructor: TLConstructor_CRC32_updateAccountResetAuthorization, Data2: m.Data2, } } -func (m *TLUpdateUserStatus) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateUserStatus) GetUserId() int32 { return m.Data2.UserId } +func (m *TLUpdateAccountResetAuthorization) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateAccountResetAuthorization) GetUserId() int32 { return m.Data2.UserId } -func (m *TLUpdateUserStatus) SetStatus(v *UserStatus) { m.Data2.Status = v } -func (m *TLUpdateUserStatus) GetStatus() *UserStatus { return m.Data2.Status } +func (m *TLUpdateAccountResetAuthorization) SetAuthKeyId(v int64) { m.Data2.AuthKeyId = v } +func (m *TLUpdateAccountResetAuthorization) GetAuthKeyId() int64 { return m.Data2.AuthKeyId } -func NewTLUpdateUserStatus() *TLUpdateUserStatus { - return &TLUpdateUserStatus{Data2: &Update_Data{}} +func NewTLUpdateAccountResetAuthorization() *TLUpdateAccountResetAuthorization { + return &TLUpdateAccountResetAuthorization{Data2: &Updates_Data{}} } -func (m *TLUpdateUserStatus) Encode() []byte { +func (m *TLUpdateAccountResetAuthorization) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserStatus)) + x.Int(int32(TLConstructor_CRC32_updateAccountResetAuthorization)) x.Int(m.GetUserId()) - x.Bytes(m.GetStatus().Encode()) + x.Long(m.GetAuthKeyId()) return x.buf } -func (m *TLUpdateUserStatus) EncodeToLayer(layer int) []byte { +func (m *TLUpdateAccountResetAuthorization) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserStatus)) + x.Int(int32(TLConstructor_CRC32_updateAccountResetAuthorization)) x.Int(m.GetUserId()) - x.Bytes(m.GetStatus().EncodeToLayer(layer)) + x.Long(m.GetAuthKeyId()) return x.buf } -func (m *TLUpdateUserStatus) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateAccountResetAuthorization) Decode(dbuf *DecodeBuf) error { m.SetUserId(dbuf.Int()) - m2 := &UserStatus{} - m2.Decode(dbuf) - m.SetStatus(m2) + m.SetAuthKeyId(dbuf.Long()) return dbuf.err } -// updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update; -func (m *TLUpdateUserName) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateUserName, +// updatesTooLong#e317af7e = Updates; +func (m *TLUpdatesTooLong) To_Updates() *Updates { + return &Updates{ + Constructor: TLConstructor_CRC32_updatesTooLong, Data2: m.Data2, } } -func (m *TLUpdateUserName) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateUserName) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLUpdateUserName) SetFirstName(v string) { m.Data2.FirstName = v } -func (m *TLUpdateUserName) GetFirstName() string { return m.Data2.FirstName } - -func (m *TLUpdateUserName) SetLastName(v string) { m.Data2.LastName = v } -func (m *TLUpdateUserName) GetLastName() string { return m.Data2.LastName } - -func (m *TLUpdateUserName) SetUsername(v string) { m.Data2.Username = v } -func (m *TLUpdateUserName) GetUsername() string { return m.Data2.Username } - -func NewTLUpdateUserName() *TLUpdateUserName { - return &TLUpdateUserName{Data2: &Update_Data{}} +func NewTLUpdatesTooLong() *TLUpdatesTooLong { + return &TLUpdatesTooLong{Data2: &Updates_Data{}} } -func (m *TLUpdateUserName) Encode() []byte { +func (m *TLUpdatesTooLong) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserName)) - - x.Int(m.GetUserId()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetUsername()) + x.Int(int32(TLConstructor_CRC32_updatesTooLong)) return x.buf } -func (m *TLUpdateUserName) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesTooLong) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserName)) - - x.Int(m.GetUserId()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetUsername()) + x.Int(int32(TLConstructor_CRC32_updatesTooLong)) return x.buf } -func (m *TLUpdateUserName) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetFirstName(dbuf.String()) - m.SetLastName(dbuf.String()) - m.SetUsername(dbuf.String()) +func (m *TLUpdatesTooLong) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update; -func (m *TLUpdateUserPhoto) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateUserPhoto, +// updateShortMessage#914fbf11 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; +func (m *TLUpdateShortMessage) To_Updates() *Updates { + return &Updates{ + Constructor: TLConstructor_CRC32_updateShortMessage, Data2: m.Data2, } } -func (m *TLUpdateUserPhoto) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateUserPhoto) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLUpdateUserPhoto) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdateUserPhoto) GetDate() int32 { return m.Data2.Date } - -func (m *TLUpdateUserPhoto) SetPhoto(v *UserProfilePhoto) { m.Data2.Photo = v } -func (m *TLUpdateUserPhoto) GetPhoto() *UserProfilePhoto { return m.Data2.Photo } +func (m *TLUpdateShortMessage) SetOut(v bool) { m.Data2.Out = v } +func (m *TLUpdateShortMessage) GetOut() bool { return m.Data2.Out } -func (m *TLUpdateUserPhoto) SetPrevious(v *Bool) { m.Data2.Previous = v } -func (m *TLUpdateUserPhoto) GetPrevious() *Bool { return m.Data2.Previous } +func (m *TLUpdateShortMessage) SetMentioned(v bool) { m.Data2.Mentioned = v } +func (m *TLUpdateShortMessage) GetMentioned() bool { return m.Data2.Mentioned } -func NewTLUpdateUserPhoto() *TLUpdateUserPhoto { - return &TLUpdateUserPhoto{Data2: &Update_Data{}} -} +func (m *TLUpdateShortMessage) SetMediaUnread(v bool) { m.Data2.MediaUnread = v } +func (m *TLUpdateShortMessage) GetMediaUnread() bool { return m.Data2.MediaUnread } -func (m *TLUpdateUserPhoto) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserPhoto)) +func (m *TLUpdateShortMessage) SetSilent(v bool) { m.Data2.Silent = v } +func (m *TLUpdateShortMessage) GetSilent() bool { return m.Data2.Silent } - x.Int(m.GetUserId()) - x.Int(m.GetDate()) - x.Bytes(m.GetPhoto().Encode()) - x.Bytes(m.GetPrevious().Encode()) +func (m *TLUpdateShortMessage) SetId(v int32) { m.Data2.Id = v } +func (m *TLUpdateShortMessage) GetId() int32 { return m.Data2.Id } - return x.buf -} +func (m *TLUpdateShortMessage) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateShortMessage) GetUserId() int32 { return m.Data2.UserId } -func (m *TLUpdateUserPhoto) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserPhoto)) +func (m *TLUpdateShortMessage) SetMessage(v string) { m.Data2.Message = v } +func (m *TLUpdateShortMessage) GetMessage() string { return m.Data2.Message } - x.Int(m.GetUserId()) - x.Int(m.GetDate()) - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - x.Bytes(m.GetPrevious().EncodeToLayer(layer)) +func (m *TLUpdateShortMessage) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateShortMessage) GetPts() int32 { return m.Data2.Pts } - return x.buf -} +func (m *TLUpdateShortMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateShortMessage) GetPtsCount() int32 { return m.Data2.PtsCount } -func (m *TLUpdateUserPhoto) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetDate(dbuf.Int()) - m3 := &UserProfilePhoto{} - m3.Decode(dbuf) - m.SetPhoto(m3) - m4 := &Bool{} - m4.Decode(dbuf) - m.SetPrevious(m4) +func (m *TLUpdateShortMessage) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdateShortMessage) GetDate() int32 { return m.Data2.Date } - return dbuf.err -} +func (m *TLUpdateShortMessage) SetFwdFrom(v *MessageFwdHeader) { m.Data2.FwdFrom = v } +func (m *TLUpdateShortMessage) GetFwdFrom() *MessageFwdHeader { return m.Data2.FwdFrom } -// updateContactRegistered#2575bbb9 user_id:int date:int = Update; -func (m *TLUpdateContactRegistered) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateContactRegistered, - Data2: m.Data2, - } -} +func (m *TLUpdateShortMessage) SetViaBotId(v int32) { m.Data2.ViaBotId = v } +func (m *TLUpdateShortMessage) GetViaBotId() int32 { return m.Data2.ViaBotId } -func (m *TLUpdateContactRegistered) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateContactRegistered) GetUserId() int32 { return m.Data2.UserId } +func (m *TLUpdateShortMessage) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } +func (m *TLUpdateShortMessage) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } -func (m *TLUpdateContactRegistered) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdateContactRegistered) GetDate() int32 { return m.Data2.Date } +func (m *TLUpdateShortMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLUpdateShortMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } -func NewTLUpdateContactRegistered() *TLUpdateContactRegistered { - return &TLUpdateContactRegistered{Data2: &Update_Data{}} +func NewTLUpdateShortMessage() *TLUpdateShortMessage { + return &TLUpdateShortMessage{Data2: &Updates_Data{}} } -func (m *TLUpdateContactRegistered) Encode() []byte { +func (m *TLUpdateShortMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateContactRegistered)) + x.Int(int32(TLConstructor_CRC32_updateShortMessage)) + + // flags + var flags uint32 = 0 + if m.GetOut() == true { + flags |= 1 << 1 + } + if m.GetMentioned() == true { + flags |= 1 << 4 + } + if m.GetMediaUnread() == true { + flags |= 1 << 5 + } + if m.GetSilent() == true { + flags |= 1 << 13 + } + if m.GetFwdFrom() != nil { + flags |= 1 << 2 + } + if m.GetViaBotId() != 0 { + flags |= 1 << 11 + } + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 3 + } + if m.GetEntities() != nil { + flags |= 1 << 7 + } + x.UInt(flags) + x.Int(m.GetId()) x.Int(m.GetUserId()) + x.String(m.GetMessage()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) x.Int(m.GetDate()) + if m.GetFwdFrom() != nil { + x.Bytes(m.GetFwdFrom().Encode()) + } + if m.GetViaBotId() != 0 { + x.Int(m.GetViaBotId()) + } + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } + } return x.buf } -func (m *TLUpdateContactRegistered) EncodeToLayer(layer int) []byte { +func (m *TLUpdateShortMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateContactRegistered)) + x.Int(int32(TLConstructor_CRC32_updateShortMessage)) + + // flags + var flags uint32 = 0 + if m.GetOut() == true { + flags |= 1 << 1 + } + if m.GetMentioned() == true { + flags |= 1 << 4 + } + if m.GetMediaUnread() == true { + flags |= 1 << 5 + } + if m.GetSilent() == true { + flags |= 1 << 13 + } + if m.GetFwdFrom() != nil { + flags |= 1 << 2 + } + if m.GetViaBotId() != 0 { + flags |= 1 << 11 + } + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 3 + } + if m.GetEntities() != nil { + flags |= 1 << 7 + } + x.UInt(flags) + x.Int(m.GetId()) x.Int(m.GetUserId()) + x.String(m.GetMessage()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) x.Int(m.GetDate()) + if m.GetFwdFrom() != nil { + x.Bytes(m.GetFwdFrom().EncodeToLayer(layer)) + } + if m.GetViaBotId() != 0 { + x.Int(m.GetViaBotId()) + } + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } return x.buf } -func (m *TLUpdateContactRegistered) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateShortMessage) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetOut(true) + } + if (flags & (1 << 4)) != 0 { + m.SetMentioned(true) + } + if (flags & (1 << 5)) != 0 { + m.SetMediaUnread(true) + } + if (flags & (1 << 13)) != 0 { + m.SetSilent(true) + } + m.SetId(dbuf.Int()) m.SetUserId(dbuf.Int()) + m.SetMessage(dbuf.String()) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) m.SetDate(dbuf.Int()) + if (flags & (1 << 2)) != 0 { + m12 := &MessageFwdHeader{} + m12.Decode(dbuf) + m.SetFwdFrom(m12) + } + if (flags & (1 << 11)) != 0 { + m.SetViaBotId(dbuf.Int()) + } + if (flags & (1 << 3)) != 0 { + m.SetReplyToMsgId(dbuf.Int()) + } + if (flags & (1 << 7)) != 0 { + c15 := dbuf.Int() + if c15 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 15, c15) + return dbuf.err + } + l15 := dbuf.Int() + v15 := make([]*MessageEntity, l15) + for i := int32(0); i < l15; i++ { + v15[i] = &MessageEntity{} + v15[i].Decode(dbuf) + } + m.SetEntities(v15) + + } return dbuf.err } -// updateContactLink#9d2e67c5 user_id:int my_link:ContactLink foreign_link:ContactLink = Update; -func (m *TLUpdateContactLink) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateContactLink, +// updateShortChatMessage#16812688 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; +func (m *TLUpdateShortChatMessage) To_Updates() *Updates { + return &Updates{ + Constructor: TLConstructor_CRC32_updateShortChatMessage, Data2: m.Data2, } } -func (m *TLUpdateContactLink) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateContactLink) GetUserId() int32 { return m.Data2.UserId } +func (m *TLUpdateShortChatMessage) SetOut(v bool) { m.Data2.Out = v } +func (m *TLUpdateShortChatMessage) GetOut() bool { return m.Data2.Out } -func (m *TLUpdateContactLink) SetMyLink(v *ContactLink) { m.Data2.MyLink = v } -func (m *TLUpdateContactLink) GetMyLink() *ContactLink { return m.Data2.MyLink } +func (m *TLUpdateShortChatMessage) SetMentioned(v bool) { m.Data2.Mentioned = v } +func (m *TLUpdateShortChatMessage) GetMentioned() bool { return m.Data2.Mentioned } -func (m *TLUpdateContactLink) SetForeignLink(v *ContactLink) { m.Data2.ForeignLink = v } -func (m *TLUpdateContactLink) GetForeignLink() *ContactLink { return m.Data2.ForeignLink } +func (m *TLUpdateShortChatMessage) SetMediaUnread(v bool) { m.Data2.MediaUnread = v } +func (m *TLUpdateShortChatMessage) GetMediaUnread() bool { return m.Data2.MediaUnread } -func NewTLUpdateContactLink() *TLUpdateContactLink { - return &TLUpdateContactLink{Data2: &Update_Data{}} -} +func (m *TLUpdateShortChatMessage) SetSilent(v bool) { m.Data2.Silent = v } +func (m *TLUpdateShortChatMessage) GetSilent() bool { return m.Data2.Silent } -func (m *TLUpdateContactLink) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateContactLink)) +func (m *TLUpdateShortChatMessage) SetId(v int32) { m.Data2.Id = v } +func (m *TLUpdateShortChatMessage) GetId() int32 { return m.Data2.Id } - x.Int(m.GetUserId()) - x.Bytes(m.GetMyLink().Encode()) - x.Bytes(m.GetForeignLink().Encode()) +func (m *TLUpdateShortChatMessage) SetFromId(v int32) { m.Data2.FromId = v } +func (m *TLUpdateShortChatMessage) GetFromId() int32 { return m.Data2.FromId } - return x.buf -} +func (m *TLUpdateShortChatMessage) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLUpdateShortChatMessage) GetChatId() int32 { return m.Data2.ChatId } -func (m *TLUpdateContactLink) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateContactLink)) +func (m *TLUpdateShortChatMessage) SetMessage(v string) { m.Data2.Message = v } +func (m *TLUpdateShortChatMessage) GetMessage() string { return m.Data2.Message } - x.Int(m.GetUserId()) - x.Bytes(m.GetMyLink().EncodeToLayer(layer)) - x.Bytes(m.GetForeignLink().EncodeToLayer(layer)) +func (m *TLUpdateShortChatMessage) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateShortChatMessage) GetPts() int32 { return m.Data2.Pts } - return x.buf -} +func (m *TLUpdateShortChatMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateShortChatMessage) GetPtsCount() int32 { return m.Data2.PtsCount } -func (m *TLUpdateContactLink) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m2 := &ContactLink{} - m2.Decode(dbuf) - m.SetMyLink(m2) - m3 := &ContactLink{} - m3.Decode(dbuf) - m.SetForeignLink(m3) +func (m *TLUpdateShortChatMessage) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdateShortChatMessage) GetDate() int32 { return m.Data2.Date } - return dbuf.err -} +func (m *TLUpdateShortChatMessage) SetFwdFrom(v *MessageFwdHeader) { m.Data2.FwdFrom = v } +func (m *TLUpdateShortChatMessage) GetFwdFrom() *MessageFwdHeader { return m.Data2.FwdFrom } -// updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update; -func (m *TLUpdateNewEncryptedMessage) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateNewEncryptedMessage, - Data2: m.Data2, - } -} +func (m *TLUpdateShortChatMessage) SetViaBotId(v int32) { m.Data2.ViaBotId = v } +func (m *TLUpdateShortChatMessage) GetViaBotId() int32 { return m.Data2.ViaBotId } -func (m *TLUpdateNewEncryptedMessage) SetMessage(v *EncryptedMessage) { m.Data2.Message_20 = v } -func (m *TLUpdateNewEncryptedMessage) GetMessage() *EncryptedMessage { return m.Data2.Message_20 } +func (m *TLUpdateShortChatMessage) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } +func (m *TLUpdateShortChatMessage) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } -func (m *TLUpdateNewEncryptedMessage) SetQts(v int32) { m.Data2.Qts = v } -func (m *TLUpdateNewEncryptedMessage) GetQts() int32 { return m.Data2.Qts } +func (m *TLUpdateShortChatMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLUpdateShortChatMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } -func NewTLUpdateNewEncryptedMessage() *TLUpdateNewEncryptedMessage { - return &TLUpdateNewEncryptedMessage{Data2: &Update_Data{}} +func NewTLUpdateShortChatMessage() *TLUpdateShortChatMessage { + return &TLUpdateShortChatMessage{Data2: &Updates_Data{}} } -func (m *TLUpdateNewEncryptedMessage) Encode() []byte { +func (m *TLUpdateShortChatMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNewEncryptedMessage)) + x.Int(int32(TLConstructor_CRC32_updateShortChatMessage)) - x.Bytes(m.GetMessage().Encode()) - x.Int(m.GetQts()) + // flags + var flags uint32 = 0 + if m.GetOut() == true { + flags |= 1 << 1 + } + if m.GetMentioned() == true { + flags |= 1 << 4 + } + if m.GetMediaUnread() == true { + flags |= 1 << 5 + } + if m.GetSilent() == true { + flags |= 1 << 13 + } + if m.GetFwdFrom() != nil { + flags |= 1 << 2 + } + if m.GetViaBotId() != 0 { + flags |= 1 << 11 + } + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 3 + } + if m.GetEntities() != nil { + flags |= 1 << 7 + } + x.UInt(flags) + + x.Int(m.GetId()) + x.Int(m.GetFromId()) + x.Int(m.GetChatId()) + x.String(m.GetMessage()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) + x.Int(m.GetDate()) + if m.GetFwdFrom() != nil { + x.Bytes(m.GetFwdFrom().Encode()) + } + if m.GetViaBotId() != 0 { + x.Int(m.GetViaBotId()) + } + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } + } return x.buf } -func (m *TLUpdateNewEncryptedMessage) EncodeToLayer(layer int) []byte { +func (m *TLUpdateShortChatMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNewEncryptedMessage)) - - x.Bytes(m.GetMessage().EncodeToLayer(layer)) - x.Int(m.GetQts()) + x.Int(int32(TLConstructor_CRC32_updateShortChatMessage)) - return x.buf -} + // flags + var flags uint32 = 0 + if m.GetOut() == true { + flags |= 1 << 1 + } + if m.GetMentioned() == true { + flags |= 1 << 4 + } + if m.GetMediaUnread() == true { + flags |= 1 << 5 + } + if m.GetSilent() == true { + flags |= 1 << 13 + } + if m.GetFwdFrom() != nil { + flags |= 1 << 2 + } + if m.GetViaBotId() != 0 { + flags |= 1 << 11 + } + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 3 + } + if m.GetEntities() != nil { + flags |= 1 << 7 + } + x.UInt(flags) -func (m *TLUpdateNewEncryptedMessage) Decode(dbuf *DecodeBuf) error { - m1 := &EncryptedMessage{} - m1.Decode(dbuf) - m.SetMessage(m1) - m.SetQts(dbuf.Int()) + x.Int(m.GetId()) + x.Int(m.GetFromId()) + x.Int(m.GetChatId()) + x.String(m.GetMessage()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) + x.Int(m.GetDate()) + if m.GetFwdFrom() != nil { + x.Bytes(m.GetFwdFrom().EncodeToLayer(layer)) + } + if m.GetViaBotId() != 0 { + x.Int(m.GetViaBotId()) + } + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } - return dbuf.err + return x.buf } -// updateEncryptedChatTyping#1710f156 chat_id:int = Update; -func (m *TLUpdateEncryptedChatTyping) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateEncryptedChatTyping, - Data2: m.Data2, +func (m *TLUpdateShortChatMessage) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetOut(true) } -} - -func (m *TLUpdateEncryptedChatTyping) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLUpdateEncryptedChatTyping) GetChatId() int32 { return m.Data2.ChatId } - -func NewTLUpdateEncryptedChatTyping() *TLUpdateEncryptedChatTyping { - return &TLUpdateEncryptedChatTyping{Data2: &Update_Data{}} -} - -func (m *TLUpdateEncryptedChatTyping) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEncryptedChatTyping)) - - x.Int(m.GetChatId()) - - return x.buf -} - -func (m *TLUpdateEncryptedChatTyping) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEncryptedChatTyping)) - - x.Int(m.GetChatId()) - - return x.buf -} - -func (m *TLUpdateEncryptedChatTyping) Decode(dbuf *DecodeBuf) error { + if (flags & (1 << 4)) != 0 { + m.SetMentioned(true) + } + if (flags & (1 << 5)) != 0 { + m.SetMediaUnread(true) + } + if (flags & (1 << 13)) != 0 { + m.SetSilent(true) + } + m.SetId(dbuf.Int()) + m.SetFromId(dbuf.Int()) m.SetChatId(dbuf.Int()) + m.SetMessage(dbuf.String()) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) + m.SetDate(dbuf.Int()) + if (flags & (1 << 2)) != 0 { + m13 := &MessageFwdHeader{} + m13.Decode(dbuf) + m.SetFwdFrom(m13) + } + if (flags & (1 << 11)) != 0 { + m.SetViaBotId(dbuf.Int()) + } + if (flags & (1 << 3)) != 0 { + m.SetReplyToMsgId(dbuf.Int()) + } + if (flags & (1 << 7)) != 0 { + c16 := dbuf.Int() + if c16 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 16, c16) + return dbuf.err + } + l16 := dbuf.Int() + v16 := make([]*MessageEntity, l16) + for i := int32(0); i < l16; i++ { + v16[i] = &MessageEntity{} + v16[i].Decode(dbuf) + } + m.SetEntities(v16) + + } return dbuf.err } -// updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update; -func (m *TLUpdateEncryption) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateEncryption, +// updateShort#78d4dec1 update:Update date:int = Updates; +func (m *TLUpdateShort) To_Updates() *Updates { + return &Updates{ + Constructor: TLConstructor_CRC32_updateShort, Data2: m.Data2, } } -func (m *TLUpdateEncryption) SetChat(v *EncryptedChat) { m.Data2.Chat = v } -func (m *TLUpdateEncryption) GetChat() *EncryptedChat { return m.Data2.Chat } +func (m *TLUpdateShort) SetUpdate(v *Update) { m.Data2.Update = v } +func (m *TLUpdateShort) GetUpdate() *Update { return m.Data2.Update } -func (m *TLUpdateEncryption) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdateEncryption) GetDate() int32 { return m.Data2.Date } +func (m *TLUpdateShort) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdateShort) GetDate() int32 { return m.Data2.Date } -func NewTLUpdateEncryption() *TLUpdateEncryption { - return &TLUpdateEncryption{Data2: &Update_Data{}} +func NewTLUpdateShort() *TLUpdateShort { + return &TLUpdateShort{Data2: &Updates_Data{}} } -func (m *TLUpdateEncryption) Encode() []byte { +func (m *TLUpdateShort) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEncryption)) + x.Int(int32(TLConstructor_CRC32_updateShort)) - x.Bytes(m.GetChat().Encode()) + x.Bytes(m.GetUpdate().Encode()) x.Int(m.GetDate()) return x.buf } -func (m *TLUpdateEncryption) EncodeToLayer(layer int) []byte { +func (m *TLUpdateShort) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEncryption)) + x.Int(int32(TLConstructor_CRC32_updateShort)) - x.Bytes(m.GetChat().EncodeToLayer(layer)) + x.Bytes(m.GetUpdate().EncodeToLayer(layer)) x.Int(m.GetDate()) return x.buf } -func (m *TLUpdateEncryption) Decode(dbuf *DecodeBuf) error { - m1 := &EncryptedChat{} +func (m *TLUpdateShort) Decode(dbuf *DecodeBuf) error { + m1 := &Update{} m1.Decode(dbuf) - m.SetChat(m1) + m.SetUpdate(m1) m.SetDate(dbuf.Int()) return dbuf.err } -// updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update; -func (m *TLUpdateEncryptedMessagesRead) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateEncryptedMessagesRead, +// updatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates; +func (m *TLUpdatesCombined) To_Updates() *Updates { + return &Updates{ + Constructor: TLConstructor_CRC32_updatesCombined, Data2: m.Data2, } } -func (m *TLUpdateEncryptedMessagesRead) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLUpdateEncryptedMessagesRead) GetChatId() int32 { return m.Data2.ChatId } +func (m *TLUpdatesCombined) SetUpdates(v []*Update) { m.Data2.Updates = v } +func (m *TLUpdatesCombined) GetUpdates() []*Update { return m.Data2.Updates } -func (m *TLUpdateEncryptedMessagesRead) SetMaxDate(v int32) { m.Data2.MaxDate = v } -func (m *TLUpdateEncryptedMessagesRead) GetMaxDate() int32 { return m.Data2.MaxDate } +func (m *TLUpdatesCombined) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLUpdatesCombined) GetUsers() []*User { return m.Data2.Users } -func (m *TLUpdateEncryptedMessagesRead) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdateEncryptedMessagesRead) GetDate() int32 { return m.Data2.Date } +func (m *TLUpdatesCombined) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLUpdatesCombined) GetChats() []*Chat { return m.Data2.Chats } -func NewTLUpdateEncryptedMessagesRead() *TLUpdateEncryptedMessagesRead { - return &TLUpdateEncryptedMessagesRead{Data2: &Update_Data{}} -} +func (m *TLUpdatesCombined) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdatesCombined) GetDate() int32 { return m.Data2.Date } -func (m *TLUpdateEncryptedMessagesRead) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEncryptedMessagesRead)) +func (m *TLUpdatesCombined) SetSeqStart(v int32) { m.Data2.SeqStart = v } +func (m *TLUpdatesCombined) GetSeqStart() int32 { return m.Data2.SeqStart } - x.Int(m.GetChatId()) - x.Int(m.GetMaxDate()) - x.Int(m.GetDate()) +func (m *TLUpdatesCombined) SetSeq(v int32) { m.Data2.Seq = v } +func (m *TLUpdatesCombined) GetSeq() int32 { return m.Data2.Seq } - return x.buf +func NewTLUpdatesCombined() *TLUpdatesCombined { + return &TLUpdatesCombined{Data2: &Updates_Data{}} } -func (m *TLUpdateEncryptedMessagesRead) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesCombined) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEncryptedMessagesRead)) + x.Int(int32(TLConstructor_CRC32_updatesCombined)) - x.Int(m.GetChatId()) - x.Int(m.GetMaxDate()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUpdates()))) + for _, v := range m.GetUpdates() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } x.Int(m.GetDate()) + x.Int(m.GetSeqStart()) + x.Int(m.GetSeq()) return x.buf } -func (m *TLUpdateEncryptedMessagesRead) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) - m.SetMaxDate(dbuf.Int()) - m.SetDate(dbuf.Int()) - - return dbuf.err -} - -// updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update; -func (m *TLUpdateChatParticipantAdd) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChatParticipantAdd, - Data2: m.Data2, - } -} - -func (m *TLUpdateChatParticipantAdd) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLUpdateChatParticipantAdd) GetChatId() int32 { return m.Data2.ChatId } - -func (m *TLUpdateChatParticipantAdd) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateChatParticipantAdd) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLUpdateChatParticipantAdd) SetInviterId(v int32) { m.Data2.InviterId = v } -func (m *TLUpdateChatParticipantAdd) GetInviterId() int32 { return m.Data2.InviterId } - -func (m *TLUpdateChatParticipantAdd) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdateChatParticipantAdd) GetDate() int32 { return m.Data2.Date } - -func (m *TLUpdateChatParticipantAdd) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLUpdateChatParticipantAdd) GetVersion() int32 { return m.Data2.Version } - -func NewTLUpdateChatParticipantAdd() *TLUpdateChatParticipantAdd { - return &TLUpdateChatParticipantAdd{Data2: &Update_Data{}} -} - -func (m *TLUpdateChatParticipantAdd) Encode() []byte { +func (m *TLUpdatesCombined) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatParticipantAdd)) + x.Int(int32(TLConstructor_CRC32_updatesCombined)) - x.Int(m.GetChatId()) - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUpdates()))) + for _, v := range m.GetUpdates() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } x.Int(m.GetDate()) - x.Int(m.GetVersion()) + x.Int(m.GetSeqStart()) + x.Int(m.GetSeq()) return x.buf } -func (m *TLUpdateChatParticipantAdd) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatParticipantAdd)) +func (m *TLUpdatesCombined) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*Update, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Update{} + v1[i].Decode(dbuf) + } + m.SetUpdates(v1) - x.Int(m.GetChatId()) - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) - x.Int(m.GetDate()) - x.Int(m.GetVersion()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*User, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &User{} + v2[i].Decode(dbuf) + } + m.SetUsers(v2) - return x.buf -} + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Chat, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Chat{} + v3[i].Decode(dbuf) + } + m.SetChats(v3) -func (m *TLUpdateChatParticipantAdd) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) - m.SetUserId(dbuf.Int()) - m.SetInviterId(dbuf.Int()) m.SetDate(dbuf.Int()) - m.SetVersion(dbuf.Int()) + m.SetSeqStart(dbuf.Int()) + m.SetSeq(dbuf.Int()) return dbuf.err } -// updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update; -func (m *TLUpdateChatParticipantDelete) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChatParticipantDelete, +// updates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates; +func (m *TLUpdates) To_Updates() *Updates { + return &Updates{ + Constructor: TLConstructor_CRC32_updates, Data2: m.Data2, } } -func (m *TLUpdateChatParticipantDelete) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLUpdateChatParticipantDelete) GetChatId() int32 { return m.Data2.ChatId } - -func (m *TLUpdateChatParticipantDelete) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateChatParticipantDelete) GetUserId() int32 { return m.Data2.UserId } +func (m *TLUpdates) SetUpdates(v []*Update) { m.Data2.Updates = v } +func (m *TLUpdates) GetUpdates() []*Update { return m.Data2.Updates } -func (m *TLUpdateChatParticipantDelete) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLUpdateChatParticipantDelete) GetVersion() int32 { return m.Data2.Version } +func (m *TLUpdates) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLUpdates) GetUsers() []*User { return m.Data2.Users } -func NewTLUpdateChatParticipantDelete() *TLUpdateChatParticipantDelete { - return &TLUpdateChatParticipantDelete{Data2: &Update_Data{}} -} +func (m *TLUpdates) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLUpdates) GetChats() []*Chat { return m.Data2.Chats } -func (m *TLUpdateChatParticipantDelete) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatParticipantDelete)) +func (m *TLUpdates) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdates) GetDate() int32 { return m.Data2.Date } - x.Int(m.GetChatId()) - x.Int(m.GetUserId()) - x.Int(m.GetVersion()) +func (m *TLUpdates) SetSeq(v int32) { m.Data2.Seq = v } +func (m *TLUpdates) GetSeq() int32 { return m.Data2.Seq } - return x.buf +func NewTLUpdates() *TLUpdates { + return &TLUpdates{Data2: &Updates_Data{}} } -func (m *TLUpdateChatParticipantDelete) EncodeToLayer(layer int) []byte { +func (m *TLUpdates) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatParticipantDelete)) - - x.Int(m.GetChatId()) - x.Int(m.GetUserId()) - x.Int(m.GetVersion()) - - return x.buf -} - -func (m *TLUpdateChatParticipantDelete) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) - m.SetUserId(dbuf.Int()) - m.SetVersion(dbuf.Int()) - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_updates)) -// updateDcOptions#8e5e9873 dc_options:Vector = Update; -func (m *TLUpdateDcOptions) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateDcOptions, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUpdates()))) + for _, v := range m.GetUpdates() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func (m *TLUpdateDcOptions) SetDcOptions(v []*DcOption) { m.Data2.DcOptions = v } -func (m *TLUpdateDcOptions) GetDcOptions() []*DcOption { return m.Data2.DcOptions } - -func NewTLUpdateDcOptions() *TLUpdateDcOptions { - return &TLUpdateDcOptions{Data2: &Update_Data{}} -} - -func (m *TLUpdateDcOptions) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDcOptions)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDcOptions()))) - for _, v := range m.GetDcOptions() { + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { x.buf = append(x.buf, (*v).Encode()...) } + x.Int(m.GetDate()) + x.Int(m.GetSeq()) return x.buf } -func (m *TLUpdateDcOptions) EncodeToLayer(layer int) []byte { +func (m *TLUpdates) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDcOptions)) + x.Int(int32(TLConstructor_CRC32_updates)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDcOptions()))) - for _, v := range m.GetDcOptions() { + x.Int(int32(len(m.GetUpdates()))) + for _, v := range m.GetUpdates() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } + x.Int(m.GetDate()) + x.Int(m.GetSeq()) return x.buf } -func (m *TLUpdateDcOptions) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdates) Decode(dbuf *DecodeBuf) error { c1 := dbuf.Int() if c1 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) return dbuf.err } l1 := dbuf.Int() - v1 := make([]*DcOption, l1) + v1 := make([]*Update, l1) for i := int32(0); i < l1; i++ { - v1[i] = &DcOption{} + v1[i] = &Update{} v1[i].Decode(dbuf) } - m.SetDcOptions(v1) + m.SetUpdates(v1) + + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*User, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &User{} + v2[i].Decode(dbuf) + } + m.SetUsers(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Chat, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Chat{} + v3[i].Decode(dbuf) + } + m.SetChats(v3) + + m.SetDate(dbuf.Int()) + m.SetSeq(dbuf.Int()) return dbuf.err } -// updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; -func (m *TLUpdateUserBlocked) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateUserBlocked, +// updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates; +func (m *TLUpdateShortSentMessage) To_Updates() *Updates { + return &Updates{ + Constructor: TLConstructor_CRC32_updateShortSentMessage, Data2: m.Data2, } } -func (m *TLUpdateUserBlocked) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateUserBlocked) GetUserId() int32 { return m.Data2.UserId } +func (m *TLUpdateShortSentMessage) SetOut(v bool) { m.Data2.Out = v } +func (m *TLUpdateShortSentMessage) GetOut() bool { return m.Data2.Out } -func (m *TLUpdateUserBlocked) SetBlocked(v *Bool) { m.Data2.Blocked = v } -func (m *TLUpdateUserBlocked) GetBlocked() *Bool { return m.Data2.Blocked } +func (m *TLUpdateShortSentMessage) SetId(v int32) { m.Data2.Id = v } +func (m *TLUpdateShortSentMessage) GetId() int32 { return m.Data2.Id } -func NewTLUpdateUserBlocked() *TLUpdateUserBlocked { - return &TLUpdateUserBlocked{Data2: &Update_Data{}} -} +func (m *TLUpdateShortSentMessage) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateShortSentMessage) GetPts() int32 { return m.Data2.Pts } -func (m *TLUpdateUserBlocked) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserBlocked)) +func (m *TLUpdateShortSentMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateShortSentMessage) GetPtsCount() int32 { return m.Data2.PtsCount } - x.Int(m.GetUserId()) - x.Bytes(m.GetBlocked().Encode()) +func (m *TLUpdateShortSentMessage) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdateShortSentMessage) GetDate() int32 { return m.Data2.Date } - return x.buf +func (m *TLUpdateShortSentMessage) SetMedia(v *MessageMedia) { m.Data2.Media = v } +func (m *TLUpdateShortSentMessage) GetMedia() *MessageMedia { return m.Data2.Media } + +func (m *TLUpdateShortSentMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLUpdateShortSentMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } + +func NewTLUpdateShortSentMessage() *TLUpdateShortSentMessage { + return &TLUpdateShortSentMessage{Data2: &Updates_Data{}} } -func (m *TLUpdateUserBlocked) EncodeToLayer(layer int) []byte { +func (m *TLUpdateShortSentMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserBlocked)) + x.Int(int32(TLConstructor_CRC32_updateShortSentMessage)) - x.Int(m.GetUserId()) - x.Bytes(m.GetBlocked().EncodeToLayer(layer)) + // flags + var flags uint32 = 0 + if m.GetOut() == true { + flags |= 1 << 1 + } + if m.GetMedia() != nil { + flags |= 1 << 9 + } + if m.GetEntities() != nil { + flags |= 1 << 7 + } + x.UInt(flags) + + x.Int(m.GetId()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) + x.Int(m.GetDate()) + if m.GetMedia() != nil { + x.Bytes(m.GetMedia().Encode()) + } + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } + } return x.buf } -func (m *TLUpdateUserBlocked) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m2 := &Bool{} - m2.Decode(dbuf) - m.SetBlocked(m2) - - return dbuf.err -} +func (m *TLUpdateShortSentMessage) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateShortSentMessage)) -// updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; -func (m *TLUpdateNotifySettings) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateNotifySettings, - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetOut() == true { + flags |= 1 << 1 } -} - -func (m *TLUpdateNotifySettings) SetPeer(v *NotifyPeer) { m.Data2.Peer_28 = v } -func (m *TLUpdateNotifySettings) GetPeer() *NotifyPeer { return m.Data2.Peer_28 } - -func (m *TLUpdateNotifySettings) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } -func (m *TLUpdateNotifySettings) GetNotifySettings() *PeerNotifySettings { - return m.Data2.NotifySettings -} - -func NewTLUpdateNotifySettings() *TLUpdateNotifySettings { - return &TLUpdateNotifySettings{Data2: &Update_Data{}} -} - -func (m *TLUpdateNotifySettings) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNotifySettings)) + if m.GetMedia() != nil { + flags |= 1 << 9 + } + if m.GetEntities() != nil { + flags |= 1 << 7 + } + x.UInt(flags) - x.Bytes(m.GetPeer().Encode()) - x.Bytes(m.GetNotifySettings().Encode()) + x.Int(m.GetId()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) + x.Int(m.GetDate()) + if m.GetMedia() != nil { + x.Bytes(m.GetMedia().EncodeToLayer(layer)) + } + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } return x.buf } -func (m *TLUpdateNotifySettings) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNotifySettings)) +func (m *TLUpdateShortSentMessage) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetOut(true) + } + m.SetId(dbuf.Int()) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) + m.SetDate(dbuf.Int()) + if (flags & (1 << 9)) != 0 { + m7 := &MessageMedia{} + m7.Decode(dbuf) + m.SetMedia(m7) + } + if (flags & (1 << 7)) != 0 { + c8 := dbuf.Int() + if c8 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) + return dbuf.err + } + l8 := dbuf.Int() + v8 := make([]*MessageEntity, l8) + for i := int32(0); i < l8; i++ { + v8[i] = &MessageEntity{} + v8[i].Decode(dbuf) + } + m.SetEntities(v8) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) + } - return x.buf + return dbuf.err } -func (m *TLUpdateNotifySettings) Decode(dbuf *DecodeBuf) error { - m1 := &NotifyPeer{} - m1.Decode(dbuf) - m.SetPeer(m1) - m2 := &PeerNotifySettings{} - m2.Decode(dbuf) - m.SetNotifySettings(m2) +/////////////////////////////////////////////////////////////////////////////// +// EncryptedChat <-- +// + TL_EncryptedChatEmpty +// + TL_EncryptedChatWaiting +// + TL_EncryptedChatRequested +// + TL_EncryptedChat +// + TL_EncryptedChatDiscarded +// - return dbuf.err -} +func (m *EncryptedChat) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_encryptedChatEmpty: + t := m.To_EncryptedChatEmpty() + return t.Encode() + case TLConstructor_CRC32_encryptedChatWaiting: + t := m.To_EncryptedChatWaiting() + return t.Encode() + case TLConstructor_CRC32_encryptedChatRequested: + t := m.To_EncryptedChatRequested() + return t.Encode() + case TLConstructor_CRC32_encryptedChat: + t := m.To_EncryptedChat() + return t.Encode() + case TLConstructor_CRC32_encryptedChatDiscarded: + t := m.To_EncryptedChatDiscarded() + return t.Encode() -// updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update; -func (m *TLUpdateServiceNotification) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateServiceNotification, - Data2: m.Data2, + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLUpdateServiceNotification) SetPopup(v bool) { m.Data2.Popup = v } -func (m *TLUpdateServiceNotification) GetPopup() bool { return m.Data2.Popup } - -func (m *TLUpdateServiceNotification) SetInboxDate(v int32) { m.Data2.InboxDate = v } -func (m *TLUpdateServiceNotification) GetInboxDate() int32 { return m.Data2.InboxDate } - -func (m *TLUpdateServiceNotification) SetType(v string) { m.Data2.Type = v } -func (m *TLUpdateServiceNotification) GetType() string { return m.Data2.Type } - -func (m *TLUpdateServiceNotification) SetMessage(v string) { m.Data2.Message_33 = v } -func (m *TLUpdateServiceNotification) GetMessage() string { return m.Data2.Message_33 } - -func (m *TLUpdateServiceNotification) SetMedia(v *MessageMedia) { m.Data2.Media = v } -func (m *TLUpdateServiceNotification) GetMedia() *MessageMedia { return m.Data2.Media } - -func (m *TLUpdateServiceNotification) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLUpdateServiceNotification) GetEntities() []*MessageEntity { return m.Data2.Entities } +func (m *EncryptedChat) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_encryptedChatEmpty: + t := m.To_EncryptedChatEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_encryptedChatWaiting: + t := m.To_EncryptedChatWaiting() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_encryptedChatRequested: + t := m.To_EncryptedChatRequested() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_encryptedChat: + t := m.To_EncryptedChat() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_encryptedChatDiscarded: + t := m.To_EncryptedChatDiscarded() + return t.EncodeToLayer(layer) -func NewTLUpdateServiceNotification() *TLUpdateServiceNotification { - return &TLUpdateServiceNotification{Data2: &Update_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateServiceNotification) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateServiceNotification)) +func (m *EncryptedChat) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_encryptedChatEmpty: + m2 := &TLEncryptedChatEmpty{Data2: &EncryptedChat_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_encryptedChatWaiting: + m2 := &TLEncryptedChatWaiting{Data2: &EncryptedChat_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_encryptedChatRequested: + m2 := &TLEncryptedChatRequested{Data2: &EncryptedChat_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_encryptedChat: + m2 := &TLEncryptedChat{Data2: &EncryptedChat_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_encryptedChatDiscarded: + m2 := &TLEncryptedChatDiscarded{Data2: &EncryptedChat_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - // flags - var flags uint32 = 0 - if m.GetPopup() == true { - flags |= 1 << 0 - } - if m.GetInboxDate() != 0 { - flags |= 1 << 1 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - x.UInt(flags) + return dbuf.err +} - if m.GetInboxDate() != 0 { - x.Int(m.GetInboxDate()) - } - x.String(m.GetType()) - x.String(m.GetMessage()) - x.Bytes(m.GetMedia().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) +// encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat; +func (m *EncryptedChat) To_EncryptedChatEmpty() *TLEncryptedChatEmpty { + return &TLEncryptedChatEmpty{ + Data2: m.Data2, } - - return x.buf } -func (m *TLUpdateServiceNotification) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateServiceNotification)) - - // flags - var flags uint32 = 0 - if m.GetPopup() == true { - flags |= 1 << 0 - } - if m.GetInboxDate() != 0 { - flags |= 1 << 1 +// encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat; +func (m *EncryptedChat) To_EncryptedChatWaiting() *TLEncryptedChatWaiting { + return &TLEncryptedChatWaiting{ + Data2: m.Data2, } - x.UInt(flags) +} - if m.GetInboxDate() != 0 { - x.Int(m.GetInboxDate()) - } - x.String(m.GetType()) - x.String(m.GetMessage()) - x.Bytes(m.GetMedia().EncodeToLayer(layer)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) +// encryptedChatRequested#c878527e id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat; +func (m *EncryptedChat) To_EncryptedChatRequested() *TLEncryptedChatRequested { + return &TLEncryptedChatRequested{ + Data2: m.Data2, } - - return x.buf } -func (m *TLUpdateServiceNotification) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetPopup(true) - } - if (flags & (1 << 1)) != 0 { - m.SetInboxDate(dbuf.Int()) - } - m.SetType(dbuf.String()) - m.SetMessage(dbuf.String()) - m6 := &MessageMedia{} - m6.Decode(dbuf) - m.SetMedia(m6) - c7 := dbuf.Int() - if c7 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) - return dbuf.err - } - l7 := dbuf.Int() - v7 := make([]*MessageEntity, l7) - for i := int32(0); i < l7; i++ { - v7[i] = &MessageEntity{} - v7[i].Decode(dbuf) +// encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat; +func (m *EncryptedChat) To_EncryptedChat() *TLEncryptedChat { + return &TLEncryptedChat{ + Data2: m.Data2, } - m.SetEntities(v7) +} - return dbuf.err +// encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat; +func (m *EncryptedChat) To_EncryptedChatDiscarded() *TLEncryptedChatDiscarded { + return &TLEncryptedChatDiscarded{ + Data2: m.Data2, + } } -// updatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update; -func (m *TLUpdatePrivacy) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updatePrivacy, +// encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat; +func (m *TLEncryptedChatEmpty) To_EncryptedChat() *EncryptedChat { + return &EncryptedChat{ + Constructor: TLConstructor_CRC32_encryptedChatEmpty, Data2: m.Data2, } } -func (m *TLUpdatePrivacy) SetKey(v *PrivacyKey) { m.Data2.Key = v } -func (m *TLUpdatePrivacy) GetKey() *PrivacyKey { return m.Data2.Key } - -func (m *TLUpdatePrivacy) SetRules(v []*PrivacyRule) { m.Data2.Rules = v } -func (m *TLUpdatePrivacy) GetRules() []*PrivacyRule { return m.Data2.Rules } +func (m *TLEncryptedChatEmpty) SetId(v int32) { m.Data2.Id = v } +func (m *TLEncryptedChatEmpty) GetId() int32 { return m.Data2.Id } -func NewTLUpdatePrivacy() *TLUpdatePrivacy { - return &TLUpdatePrivacy{Data2: &Update_Data{}} +func NewTLEncryptedChatEmpty() *TLEncryptedChatEmpty { + return &TLEncryptedChatEmpty{Data2: &EncryptedChat_Data{}} } -func (m *TLUpdatePrivacy) Encode() []byte { +func (m *TLEncryptedChatEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatePrivacy)) + x.Int(int32(TLConstructor_CRC32_encryptedChatEmpty)) - x.Bytes(m.GetKey().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRules()))) - for _, v := range m.GetRules() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(m.GetId()) return x.buf } -func (m *TLUpdatePrivacy) EncodeToLayer(layer int) []byte { +func (m *TLEncryptedChatEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatePrivacy)) + x.Int(int32(TLConstructor_CRC32_encryptedChatEmpty)) - x.Bytes(m.GetKey().EncodeToLayer(layer)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRules()))) - for _, v := range m.GetRules() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetId()) return x.buf } -func (m *TLUpdatePrivacy) Decode(dbuf *DecodeBuf) error { - m1 := &PrivacyKey{} - m1.Decode(dbuf) - m.SetKey(m1) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*PrivacyRule, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &PrivacyRule{} - v2[i].Decode(dbuf) - } - m.SetRules(v2) +func (m *TLEncryptedChatEmpty) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) return dbuf.err } -// updateUserPhone#12b9417b user_id:int phone:string = Update; -func (m *TLUpdateUserPhone) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateUserPhone, +// encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat; +func (m *TLEncryptedChatWaiting) To_EncryptedChat() *EncryptedChat { + return &EncryptedChat{ + Constructor: TLConstructor_CRC32_encryptedChatWaiting, Data2: m.Data2, } } -func (m *TLUpdateUserPhone) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateUserPhone) GetUserId() int32 { return m.Data2.UserId } +func (m *TLEncryptedChatWaiting) SetId(v int32) { m.Data2.Id = v } +func (m *TLEncryptedChatWaiting) GetId() int32 { return m.Data2.Id } -func (m *TLUpdateUserPhone) SetPhone(v string) { m.Data2.Phone = v } -func (m *TLUpdateUserPhone) GetPhone() string { return m.Data2.Phone } +func (m *TLEncryptedChatWaiting) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLEncryptedChatWaiting) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLUpdateUserPhone() *TLUpdateUserPhone { - return &TLUpdateUserPhone{Data2: &Update_Data{}} +func (m *TLEncryptedChatWaiting) SetDate(v int32) { m.Data2.Date = v } +func (m *TLEncryptedChatWaiting) GetDate() int32 { return m.Data2.Date } + +func (m *TLEncryptedChatWaiting) SetAdminId(v int32) { m.Data2.AdminId = v } +func (m *TLEncryptedChatWaiting) GetAdminId() int32 { return m.Data2.AdminId } + +func (m *TLEncryptedChatWaiting) SetParticipantId(v int32) { m.Data2.ParticipantId = v } +func (m *TLEncryptedChatWaiting) GetParticipantId() int32 { return m.Data2.ParticipantId } + +func NewTLEncryptedChatWaiting() *TLEncryptedChatWaiting { + return &TLEncryptedChatWaiting{Data2: &EncryptedChat_Data{}} } -func (m *TLUpdateUserPhone) Encode() []byte { +func (m *TLEncryptedChatWaiting) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserPhone)) + x.Int(int32(TLConstructor_CRC32_encryptedChatWaiting)) - x.Int(m.GetUserId()) - x.String(m.GetPhone()) + x.Int(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) return x.buf } -func (m *TLUpdateUserPhone) EncodeToLayer(layer int) []byte { +func (m *TLEncryptedChatWaiting) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateUserPhone)) + x.Int(int32(TLConstructor_CRC32_encryptedChatWaiting)) - x.Int(m.GetUserId()) - x.String(m.GetPhone()) + x.Int(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) return x.buf } -func (m *TLUpdateUserPhone) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetPhone(dbuf.String()) +func (m *TLEncryptedChatWaiting) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetAccessHash(dbuf.Long()) + m.SetDate(dbuf.Int()) + m.SetAdminId(dbuf.Int()) + m.SetParticipantId(dbuf.Int()) return dbuf.err } -// updateReadHistoryInbox#9961fd5c peer:Peer max_id:int pts:int pts_count:int = Update; -func (m *TLUpdateReadHistoryInbox) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateReadHistoryInbox, +// encryptedChatRequested#c878527e id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat; +func (m *TLEncryptedChatRequested) To_EncryptedChat() *EncryptedChat { + return &EncryptedChat{ + Constructor: TLConstructor_CRC32_encryptedChatRequested, Data2: m.Data2, } } -func (m *TLUpdateReadHistoryInbox) SetPeer(v *Peer) { m.Data2.Peer_39 = v } -func (m *TLUpdateReadHistoryInbox) GetPeer() *Peer { return m.Data2.Peer_39 } +func (m *TLEncryptedChatRequested) SetId(v int32) { m.Data2.Id = v } +func (m *TLEncryptedChatRequested) GetId() int32 { return m.Data2.Id } -func (m *TLUpdateReadHistoryInbox) SetMaxId(v int32) { m.Data2.MaxId = v } -func (m *TLUpdateReadHistoryInbox) GetMaxId() int32 { return m.Data2.MaxId } +func (m *TLEncryptedChatRequested) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLEncryptedChatRequested) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLUpdateReadHistoryInbox) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateReadHistoryInbox) GetPts() int32 { return m.Data2.Pts } +func (m *TLEncryptedChatRequested) SetDate(v int32) { m.Data2.Date = v } +func (m *TLEncryptedChatRequested) GetDate() int32 { return m.Data2.Date } -func (m *TLUpdateReadHistoryInbox) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateReadHistoryInbox) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLEncryptedChatRequested) SetAdminId(v int32) { m.Data2.AdminId = v } +func (m *TLEncryptedChatRequested) GetAdminId() int32 { return m.Data2.AdminId } -func NewTLUpdateReadHistoryInbox() *TLUpdateReadHistoryInbox { - return &TLUpdateReadHistoryInbox{Data2: &Update_Data{}} +func (m *TLEncryptedChatRequested) SetParticipantId(v int32) { m.Data2.ParticipantId = v } +func (m *TLEncryptedChatRequested) GetParticipantId() int32 { return m.Data2.ParticipantId } + +func (m *TLEncryptedChatRequested) SetGA(v []byte) { m.Data2.GA = v } +func (m *TLEncryptedChatRequested) GetGA() []byte { return m.Data2.GA } + +func NewTLEncryptedChatRequested() *TLEncryptedChatRequested { + return &TLEncryptedChatRequested{Data2: &EncryptedChat_Data{}} } -func (m *TLUpdateReadHistoryInbox) Encode() []byte { +func (m *TLEncryptedChatRequested) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadHistoryInbox)) + x.Int(int32(TLConstructor_CRC32_encryptedChatRequested)) - x.Bytes(m.GetPeer().Encode()) - x.Int(m.GetMaxId()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGA()) return x.buf } -func (m *TLUpdateReadHistoryInbox) EncodeToLayer(layer int) []byte { +func (m *TLEncryptedChatRequested) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadHistoryInbox)) + x.Int(int32(TLConstructor_CRC32_encryptedChatRequested)) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - x.Int(m.GetMaxId()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGA()) return x.buf } -func (m *TLUpdateReadHistoryInbox) Decode(dbuf *DecodeBuf) error { - m1 := &Peer{} - m1.Decode(dbuf) - m.SetPeer(m1) - m.SetMaxId(dbuf.Int()) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLEncryptedChatRequested) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetAccessHash(dbuf.Long()) + m.SetDate(dbuf.Int()) + m.SetAdminId(dbuf.Int()) + m.SetParticipantId(dbuf.Int()) + m.SetGA(dbuf.StringBytes()) return dbuf.err } -// updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update; -func (m *TLUpdateReadHistoryOutbox) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateReadHistoryOutbox, +// encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat; +func (m *TLEncryptedChat) To_EncryptedChat() *EncryptedChat { + return &EncryptedChat{ + Constructor: TLConstructor_CRC32_encryptedChat, Data2: m.Data2, } } -func (m *TLUpdateReadHistoryOutbox) SetPeer(v *Peer) { m.Data2.Peer_39 = v } -func (m *TLUpdateReadHistoryOutbox) GetPeer() *Peer { return m.Data2.Peer_39 } +func (m *TLEncryptedChat) SetId(v int32) { m.Data2.Id = v } +func (m *TLEncryptedChat) GetId() int32 { return m.Data2.Id } -func (m *TLUpdateReadHistoryOutbox) SetMaxId(v int32) { m.Data2.MaxId = v } -func (m *TLUpdateReadHistoryOutbox) GetMaxId() int32 { return m.Data2.MaxId } +func (m *TLEncryptedChat) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLEncryptedChat) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLUpdateReadHistoryOutbox) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateReadHistoryOutbox) GetPts() int32 { return m.Data2.Pts } +func (m *TLEncryptedChat) SetDate(v int32) { m.Data2.Date = v } +func (m *TLEncryptedChat) GetDate() int32 { return m.Data2.Date } -func (m *TLUpdateReadHistoryOutbox) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateReadHistoryOutbox) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLEncryptedChat) SetAdminId(v int32) { m.Data2.AdminId = v } +func (m *TLEncryptedChat) GetAdminId() int32 { return m.Data2.AdminId } -func NewTLUpdateReadHistoryOutbox() *TLUpdateReadHistoryOutbox { - return &TLUpdateReadHistoryOutbox{Data2: &Update_Data{}} -} +func (m *TLEncryptedChat) SetParticipantId(v int32) { m.Data2.ParticipantId = v } +func (m *TLEncryptedChat) GetParticipantId() int32 { return m.Data2.ParticipantId } -func (m *TLUpdateReadHistoryOutbox) Encode() []byte { +func (m *TLEncryptedChat) SetGAOrB(v []byte) { m.Data2.GAOrB = v } +func (m *TLEncryptedChat) GetGAOrB() []byte { return m.Data2.GAOrB } + +func (m *TLEncryptedChat) SetKeyFingerprint(v int64) { m.Data2.KeyFingerprint = v } +func (m *TLEncryptedChat) GetKeyFingerprint() int64 { return m.Data2.KeyFingerprint } + +func NewTLEncryptedChat() *TLEncryptedChat { + return &TLEncryptedChat{Data2: &EncryptedChat_Data{}} +} + +func (m *TLEncryptedChat) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadHistoryOutbox)) + x.Int(int32(TLConstructor_CRC32_encryptedChat)) - x.Bytes(m.GetPeer().Encode()) - x.Int(m.GetMaxId()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGAOrB()) + x.Long(m.GetKeyFingerprint()) return x.buf } -func (m *TLUpdateReadHistoryOutbox) EncodeToLayer(layer int) []byte { +func (m *TLEncryptedChat) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadHistoryOutbox)) + x.Int(int32(TLConstructor_CRC32_encryptedChat)) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - x.Int(m.GetMaxId()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(m.GetAdminId()) + x.Int(m.GetParticipantId()) + x.StringBytes(m.GetGAOrB()) + x.Long(m.GetKeyFingerprint()) return x.buf } -func (m *TLUpdateReadHistoryOutbox) Decode(dbuf *DecodeBuf) error { - m1 := &Peer{} - m1.Decode(dbuf) - m.SetPeer(m1) - m.SetMaxId(dbuf.Int()) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLEncryptedChat) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetAccessHash(dbuf.Long()) + m.SetDate(dbuf.Int()) + m.SetAdminId(dbuf.Int()) + m.SetParticipantId(dbuf.Int()) + m.SetGAOrB(dbuf.StringBytes()) + m.SetKeyFingerprint(dbuf.Long()) return dbuf.err } -// updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update; -func (m *TLUpdateWebPage) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateWebPage, +// encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat; +func (m *TLEncryptedChatDiscarded) To_EncryptedChat() *EncryptedChat { + return &EncryptedChat{ + Constructor: TLConstructor_CRC32_encryptedChatDiscarded, Data2: m.Data2, } } -func (m *TLUpdateWebPage) SetWebpage(v *WebPage) { m.Data2.Webpage = v } -func (m *TLUpdateWebPage) GetWebpage() *WebPage { return m.Data2.Webpage } - -func (m *TLUpdateWebPage) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateWebPage) GetPts() int32 { return m.Data2.Pts } - -func (m *TLUpdateWebPage) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateWebPage) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLEncryptedChatDiscarded) SetId(v int32) { m.Data2.Id = v } +func (m *TLEncryptedChatDiscarded) GetId() int32 { return m.Data2.Id } -func NewTLUpdateWebPage() *TLUpdateWebPage { - return &TLUpdateWebPage{Data2: &Update_Data{}} +func NewTLEncryptedChatDiscarded() *TLEncryptedChatDiscarded { + return &TLEncryptedChatDiscarded{Data2: &EncryptedChat_Data{}} } -func (m *TLUpdateWebPage) Encode() []byte { +func (m *TLEncryptedChatDiscarded) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateWebPage)) + x.Int(int32(TLConstructor_CRC32_encryptedChatDiscarded)) - x.Bytes(m.GetWebpage().Encode()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetId()) return x.buf } -func (m *TLUpdateWebPage) EncodeToLayer(layer int) []byte { +func (m *TLEncryptedChatDiscarded) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateWebPage)) + x.Int(int32(TLConstructor_CRC32_encryptedChatDiscarded)) - x.Bytes(m.GetWebpage().EncodeToLayer(layer)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetId()) return x.buf } -func (m *TLUpdateWebPage) Decode(dbuf *DecodeBuf) error { - m1 := &WebPage{} - m1.Decode(dbuf) - m.SetWebpage(m1) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLEncryptedChatDiscarded) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) return dbuf.err } -// updateReadMessagesContents#68c13933 messages:Vector pts:int pts_count:int = Update; -func (m *TLUpdateReadMessagesContents) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateReadMessagesContents, - Data2: m.Data2, - } -} - -func (m *TLUpdateReadMessagesContents) SetMessages(v []int32) { m.Data2.Messages = v } -func (m *TLUpdateReadMessagesContents) GetMessages() []int32 { return m.Data2.Messages } - -func (m *TLUpdateReadMessagesContents) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateReadMessagesContents) GetPts() int32 { return m.Data2.Pts } +/////////////////////////////////////////////////////////////////////////////// +// InputBotInlineMessage <-- +// + TL_InputBotInlineMessageMediaAuto +// + TL_InputBotInlineMessageText +// + TL_InputBotInlineMessageMediaGeo +// + TL_InputBotInlineMessageMediaVenue +// + TL_InputBotInlineMessageMediaContact +// + TL_InputBotInlineMessageGame +// -func (m *TLUpdateReadMessagesContents) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateReadMessagesContents) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *InputBotInlineMessage) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputBotInlineMessageMediaAuto: + t := m.To_InputBotInlineMessageMediaAuto() + return t.Encode() + case TLConstructor_CRC32_inputBotInlineMessageText: + t := m.To_InputBotInlineMessageText() + return t.Encode() + case TLConstructor_CRC32_inputBotInlineMessageMediaGeo: + t := m.To_InputBotInlineMessageMediaGeo() + return t.Encode() + case TLConstructor_CRC32_inputBotInlineMessageMediaVenue: + t := m.To_InputBotInlineMessageMediaVenue() + return t.Encode() + case TLConstructor_CRC32_inputBotInlineMessageMediaContact: + t := m.To_InputBotInlineMessageMediaContact() + return t.Encode() + case TLConstructor_CRC32_inputBotInlineMessageGame: + t := m.To_InputBotInlineMessageGame() + return t.Encode() -func NewTLUpdateReadMessagesContents() *TLUpdateReadMessagesContents { - return &TLUpdateReadMessagesContents{Data2: &Update_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateReadMessagesContents) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadMessagesContents)) +func (m *InputBotInlineMessage) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputBotInlineMessageMediaAuto: + t := m.To_InputBotInlineMessageMediaAuto() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputBotInlineMessageText: + t := m.To_InputBotInlineMessageText() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputBotInlineMessageMediaGeo: + t := m.To_InputBotInlineMessageMediaGeo() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputBotInlineMessageMediaVenue: + t := m.To_InputBotInlineMessageMediaVenue() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputBotInlineMessageMediaContact: + t := m.To_InputBotInlineMessageMediaContact() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputBotInlineMessageGame: + t := m.To_InputBotInlineMessageGame() + return t.EncodeToLayer(layer) - x.VectorInt(m.GetMessages()) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) +func (m *InputBotInlineMessage) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputBotInlineMessageMediaAuto: + m2 := &TLInputBotInlineMessageMediaAuto{Data2: &InputBotInlineMessage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputBotInlineMessageText: + m2 := &TLInputBotInlineMessageText{Data2: &InputBotInlineMessage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputBotInlineMessageMediaGeo: + m2 := &TLInputBotInlineMessageMediaGeo{Data2: &InputBotInlineMessage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputBotInlineMessageMediaVenue: + m2 := &TLInputBotInlineMessageMediaVenue{Data2: &InputBotInlineMessage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputBotInlineMessageMediaContact: + m2 := &TLInputBotInlineMessageMediaContact{Data2: &InputBotInlineMessage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputBotInlineMessageGame: + m2 := &TLInputBotInlineMessageGame{Data2: &InputBotInlineMessage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLUpdateReadMessagesContents) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadMessagesContents)) +// inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *InputBotInlineMessage) To_InputBotInlineMessageMediaAuto() *TLInputBotInlineMessageMediaAuto { + return &TLInputBotInlineMessageMediaAuto{ + Data2: m.Data2, + } +} - x.VectorInt(m.GetMessages()) +// inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *InputBotInlineMessage) To_InputBotInlineMessageText() *TLInputBotInlineMessageText { + return &TLInputBotInlineMessageText{ + Data2: m.Data2, + } +} - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) +// inputBotInlineMessageMediaGeo#c1b15d65 flags:# geo_point:InputGeoPoint period:int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *InputBotInlineMessage) To_InputBotInlineMessageMediaGeo() *TLInputBotInlineMessageMediaGeo { + return &TLInputBotInlineMessageMediaGeo{ + Data2: m.Data2, + } +} - return x.buf +// inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *InputBotInlineMessage) To_InputBotInlineMessageMediaVenue() *TLInputBotInlineMessageMediaVenue { + return &TLInputBotInlineMessageMediaVenue{ + Data2: m.Data2, + } } -func (m *TLUpdateReadMessagesContents) Decode(dbuf *DecodeBuf) error { - m.SetMessages(dbuf.VectorInt()) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +// inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *InputBotInlineMessage) To_InputBotInlineMessageMediaContact() *TLInputBotInlineMessageMediaContact { + return &TLInputBotInlineMessageMediaContact{ + Data2: m.Data2, + } +} - return dbuf.err +// inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *InputBotInlineMessage) To_InputBotInlineMessageGame() *TLInputBotInlineMessageGame { + return &TLInputBotInlineMessageGame{ + Data2: m.Data2, + } } -// updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update; -func (m *TLUpdateChannelTooLong) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChannelTooLong, +// inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *TLInputBotInlineMessageMediaAuto) To_InputBotInlineMessage() *InputBotInlineMessage { + return &InputBotInlineMessage{ + Constructor: TLConstructor_CRC32_inputBotInlineMessageMediaAuto, Data2: m.Data2, } } -func (m *TLUpdateChannelTooLong) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateChannelTooLong) GetChannelId() int32 { return m.Data2.ChannelId } +func (m *TLInputBotInlineMessageMediaAuto) SetMessage(v string) { m.Data2.Message = v } +func (m *TLInputBotInlineMessageMediaAuto) GetMessage() string { return m.Data2.Message } -func (m *TLUpdateChannelTooLong) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateChannelTooLong) GetPts() int32 { return m.Data2.Pts } +func (m *TLInputBotInlineMessageMediaAuto) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLInputBotInlineMessageMediaAuto) GetEntities() []*MessageEntity { return m.Data2.Entities } -func NewTLUpdateChannelTooLong() *TLUpdateChannelTooLong { - return &TLUpdateChannelTooLong{Data2: &Update_Data{}} +func (m *TLInputBotInlineMessageMediaAuto) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLInputBotInlineMessageMediaAuto) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } + +func NewTLInputBotInlineMessageMediaAuto() *TLInputBotInlineMessageMediaAuto { + return &TLInputBotInlineMessageMediaAuto{Data2: &InputBotInlineMessage_Data{}} } -func (m *TLUpdateChannelTooLong) Encode() []byte { +func (m *TLInputBotInlineMessageMediaAuto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelTooLong)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaAuto)) // flags var flags uint32 = 0 - if m.GetPts() != 0 { - flags |= 1 << 0 + if m.GetEntities() != nil { + flags |= 1 << 1 + } + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 } x.UInt(flags) - x.Int(m.GetChannelId()) - if m.GetPts() != 0 { - x.Int(m.GetPts()) + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) } return x.buf } -func (m *TLUpdateChannelTooLong) EncodeToLayer(layer int) []byte { +func (m *TLInputBotInlineMessageMediaAuto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelTooLong)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaAuto)) // flags var flags uint32 = 0 - if m.GetPts() != 0 { - flags |= 1 << 0 + if m.GetEntities() != nil { + flags |= 1 << 1 + } + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 } x.UInt(flags) - x.Int(m.GetChannelId()) - if m.GetPts() != 0 { - x.Int(m.GetPts()) + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) } return x.buf } -func (m *TLUpdateChannelTooLong) Decode(dbuf *DecodeBuf) error { +func (m *TLInputBotInlineMessageMediaAuto) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m.SetChannelId(dbuf.Int()) - if (flags & (1 << 0)) != 0 { - m.SetPts(dbuf.Int()) + m.SetMessage(dbuf.String()) + if (flags & (1 << 1)) != 0 { + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*MessageEntity, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &MessageEntity{} + v3[i].Decode(dbuf) + } + m.SetEntities(v3) + + } + if (flags & (1 << 2)) != 0 { + m4 := &ReplyMarkup{} + m4.Decode(dbuf) + m.SetReplyMarkup(m4) } return dbuf.err } -// updateChannel#b6d45656 channel_id:int = Update; -func (m *TLUpdateChannel) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChannel, +// inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *TLInputBotInlineMessageText) To_InputBotInlineMessage() *InputBotInlineMessage { + return &InputBotInlineMessage{ + Constructor: TLConstructor_CRC32_inputBotInlineMessageText, Data2: m.Data2, } } -func (m *TLUpdateChannel) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateChannel) GetChannelId() int32 { return m.Data2.ChannelId } +func (m *TLInputBotInlineMessageText) SetNoWebpage(v bool) { m.Data2.NoWebpage = v } +func (m *TLInputBotInlineMessageText) GetNoWebpage() bool { return m.Data2.NoWebpage } -func NewTLUpdateChannel() *TLUpdateChannel { - return &TLUpdateChannel{Data2: &Update_Data{}} +func (m *TLInputBotInlineMessageText) SetMessage(v string) { m.Data2.Message = v } +func (m *TLInputBotInlineMessageText) GetMessage() string { return m.Data2.Message } + +func (m *TLInputBotInlineMessageText) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLInputBotInlineMessageText) GetEntities() []*MessageEntity { return m.Data2.Entities } + +func (m *TLInputBotInlineMessageText) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLInputBotInlineMessageText) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } + +func NewTLInputBotInlineMessageText() *TLInputBotInlineMessageText { + return &TLInputBotInlineMessageText{Data2: &InputBotInlineMessage_Data{}} } -func (m *TLUpdateChannel) Encode() []byte { +func (m *TLInputBotInlineMessageText) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannel)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageText)) - x.Int(m.GetChannelId()) + // flags + var flags uint32 = 0 + if m.GetNoWebpage() == true { + flags |= 1 << 0 + } + if m.GetEntities() != nil { + flags |= 1 << 1 + } + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } return x.buf } -func (m *TLUpdateChannel) EncodeToLayer(layer int) []byte { +func (m *TLInputBotInlineMessageText) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannel)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageText)) - x.Int(m.GetChannelId()) + // flags + var flags uint32 = 0 + if m.GetNoWebpage() == true { + flags |= 1 << 0 + } + if m.GetEntities() != nil { + flags |= 1 << 1 + } + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLUpdateChannel) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) +func (m *TLInputBotInlineMessageText) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetNoWebpage(true) + } + m.SetMessage(dbuf.String()) + if (flags & (1 << 1)) != 0 { + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*MessageEntity, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &MessageEntity{} + v4[i].Decode(dbuf) + } + m.SetEntities(v4) + + } + if (flags & (1 << 2)) != 0 { + m5 := &ReplyMarkup{} + m5.Decode(dbuf) + m.SetReplyMarkup(m5) + } return dbuf.err } -// updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update; -func (m *TLUpdateNewChannelMessage) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateNewChannelMessage, +// inputBotInlineMessageMediaGeo#c1b15d65 flags:# geo_point:InputGeoPoint period:int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *TLInputBotInlineMessageMediaGeo) To_InputBotInlineMessage() *InputBotInlineMessage { + return &InputBotInlineMessage{ + Constructor: TLConstructor_CRC32_inputBotInlineMessageMediaGeo, Data2: m.Data2, } } -func (m *TLUpdateNewChannelMessage) SetMessage(v *Message) { m.Data2.Message_1 = v } -func (m *TLUpdateNewChannelMessage) GetMessage() *Message { return m.Data2.Message_1 } +func (m *TLInputBotInlineMessageMediaGeo) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } +func (m *TLInputBotInlineMessageMediaGeo) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } -func (m *TLUpdateNewChannelMessage) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateNewChannelMessage) GetPts() int32 { return m.Data2.Pts } +func (m *TLInputBotInlineMessageMediaGeo) SetPeriod(v int32) { m.Data2.Period = v } +func (m *TLInputBotInlineMessageMediaGeo) GetPeriod() int32 { return m.Data2.Period } -func (m *TLUpdateNewChannelMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateNewChannelMessage) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLInputBotInlineMessageMediaGeo) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLInputBotInlineMessageMediaGeo) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } -func NewTLUpdateNewChannelMessage() *TLUpdateNewChannelMessage { - return &TLUpdateNewChannelMessage{Data2: &Update_Data{}} +func NewTLInputBotInlineMessageMediaGeo() *TLInputBotInlineMessageMediaGeo { + return &TLInputBotInlineMessageMediaGeo{Data2: &InputBotInlineMessage_Data{}} } -func (m *TLUpdateNewChannelMessage) Encode() []byte { +func (m *TLInputBotInlineMessageMediaGeo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNewChannelMessage)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaGeo)) - x.Bytes(m.GetMessage().Encode()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Bytes(m.GetGeoPoint().Encode()) + x.Int(m.GetPeriod()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } return x.buf } -func (m *TLUpdateNewChannelMessage) EncodeToLayer(layer int) []byte { +func (m *TLInputBotInlineMessageMediaGeo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNewChannelMessage)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaGeo)) - x.Bytes(m.GetMessage().EncodeToLayer(layer)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) + x.Int(m.GetPeriod()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLUpdateNewChannelMessage) Decode(dbuf *DecodeBuf) error { - m1 := &Message{} - m1.Decode(dbuf) - m.SetMessage(m1) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLInputBotInlineMessageMediaGeo) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &InputGeoPoint{} + m2.Decode(dbuf) + m.SetGeoPoint(m2) + m.SetPeriod(dbuf.Int()) + if (flags & (1 << 2)) != 0 { + m4 := &ReplyMarkup{} + m4.Decode(dbuf) + m.SetReplyMarkup(m4) + } return dbuf.err } -// updateReadChannelInbox#4214f37f channel_id:int max_id:int = Update; -func (m *TLUpdateReadChannelInbox) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateReadChannelInbox, +// inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *TLInputBotInlineMessageMediaVenue) To_InputBotInlineMessage() *InputBotInlineMessage { + return &InputBotInlineMessage{ + Constructor: TLConstructor_CRC32_inputBotInlineMessageMediaVenue, Data2: m.Data2, } } -func (m *TLUpdateReadChannelInbox) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateReadChannelInbox) GetChannelId() int32 { return m.Data2.ChannelId } +func (m *TLInputBotInlineMessageMediaVenue) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } +func (m *TLInputBotInlineMessageMediaVenue) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } -func (m *TLUpdateReadChannelInbox) SetMaxId(v int32) { m.Data2.MaxId = v } -func (m *TLUpdateReadChannelInbox) GetMaxId() int32 { return m.Data2.MaxId } +func (m *TLInputBotInlineMessageMediaVenue) SetTitle(v string) { m.Data2.Title = v } +func (m *TLInputBotInlineMessageMediaVenue) GetTitle() string { return m.Data2.Title } -func NewTLUpdateReadChannelInbox() *TLUpdateReadChannelInbox { - return &TLUpdateReadChannelInbox{Data2: &Update_Data{}} +func (m *TLInputBotInlineMessageMediaVenue) SetAddress(v string) { m.Data2.Address = v } +func (m *TLInputBotInlineMessageMediaVenue) GetAddress() string { return m.Data2.Address } + +func (m *TLInputBotInlineMessageMediaVenue) SetProvider(v string) { m.Data2.Provider = v } +func (m *TLInputBotInlineMessageMediaVenue) GetProvider() string { return m.Data2.Provider } + +func (m *TLInputBotInlineMessageMediaVenue) SetVenueId(v string) { m.Data2.VenueId = v } +func (m *TLInputBotInlineMessageMediaVenue) GetVenueId() string { return m.Data2.VenueId } + +func (m *TLInputBotInlineMessageMediaVenue) SetVenueType(v string) { m.Data2.VenueType = v } +func (m *TLInputBotInlineMessageMediaVenue) GetVenueType() string { return m.Data2.VenueType } + +func (m *TLInputBotInlineMessageMediaVenue) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLInputBotInlineMessageMediaVenue) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } + +func NewTLInputBotInlineMessageMediaVenue() *TLInputBotInlineMessageMediaVenue { + return &TLInputBotInlineMessageMediaVenue{Data2: &InputBotInlineMessage_Data{}} } -func (m *TLUpdateReadChannelInbox) Encode() []byte { +func (m *TLInputBotInlineMessageMediaVenue) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadChannelInbox)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaVenue)) - x.Int(m.GetChannelId()) - x.Int(m.GetMaxId()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Bytes(m.GetGeoPoint().Encode()) + x.String(m.GetTitle()) + x.String(m.GetAddress()) + x.String(m.GetProvider()) + x.String(m.GetVenueId()) + x.String(m.GetVenueType()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } return x.buf } -func (m *TLUpdateReadChannelInbox) EncodeToLayer(layer int) []byte { +func (m *TLInputBotInlineMessageMediaVenue) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadChannelInbox)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaVenue)) - x.Int(m.GetChannelId()) - x.Int(m.GetMaxId()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) + x.String(m.GetTitle()) + x.String(m.GetAddress()) + x.String(m.GetProvider()) + x.String(m.GetVenueId()) + x.String(m.GetVenueType()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLUpdateReadChannelInbox) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m.SetMaxId(dbuf.Int()) +func (m *TLInputBotInlineMessageMediaVenue) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &InputGeoPoint{} + m2.Decode(dbuf) + m.SetGeoPoint(m2) + m.SetTitle(dbuf.String()) + m.SetAddress(dbuf.String()) + m.SetProvider(dbuf.String()) + m.SetVenueId(dbuf.String()) + m.SetVenueType(dbuf.String()) + if (flags & (1 << 2)) != 0 { + m8 := &ReplyMarkup{} + m8.Decode(dbuf) + m.SetReplyMarkup(m8) + } return dbuf.err } -// updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector pts:int pts_count:int = Update; -func (m *TLUpdateDeleteChannelMessages) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateDeleteChannelMessages, +// inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *TLInputBotInlineMessageMediaContact) To_InputBotInlineMessage() *InputBotInlineMessage { + return &InputBotInlineMessage{ + Constructor: TLConstructor_CRC32_inputBotInlineMessageMediaContact, Data2: m.Data2, } } -func (m *TLUpdateDeleteChannelMessages) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateDeleteChannelMessages) GetChannelId() int32 { return m.Data2.ChannelId } +func (m *TLInputBotInlineMessageMediaContact) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } +func (m *TLInputBotInlineMessageMediaContact) GetPhoneNumber() string { return m.Data2.PhoneNumber } -func (m *TLUpdateDeleteChannelMessages) SetMessages(v []int32) { m.Data2.Messages = v } -func (m *TLUpdateDeleteChannelMessages) GetMessages() []int32 { return m.Data2.Messages } +func (m *TLInputBotInlineMessageMediaContact) SetFirstName(v string) { m.Data2.FirstName = v } +func (m *TLInputBotInlineMessageMediaContact) GetFirstName() string { return m.Data2.FirstName } -func (m *TLUpdateDeleteChannelMessages) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateDeleteChannelMessages) GetPts() int32 { return m.Data2.Pts } +func (m *TLInputBotInlineMessageMediaContact) SetLastName(v string) { m.Data2.LastName = v } +func (m *TLInputBotInlineMessageMediaContact) GetLastName() string { return m.Data2.LastName } -func (m *TLUpdateDeleteChannelMessages) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateDeleteChannelMessages) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLInputBotInlineMessageMediaContact) SetVcard(v string) { m.Data2.Vcard = v } +func (m *TLInputBotInlineMessageMediaContact) GetVcard() string { return m.Data2.Vcard } -func NewTLUpdateDeleteChannelMessages() *TLUpdateDeleteChannelMessages { - return &TLUpdateDeleteChannelMessages{Data2: &Update_Data{}} +func (m *TLInputBotInlineMessageMediaContact) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLInputBotInlineMessageMediaContact) GetReplyMarkup() *ReplyMarkup { + return m.Data2.ReplyMarkup } -func (m *TLUpdateDeleteChannelMessages) Encode() []byte { +func NewTLInputBotInlineMessageMediaContact() *TLInputBotInlineMessageMediaContact { + return &TLInputBotInlineMessageMediaContact{Data2: &InputBotInlineMessage_Data{}} +} + +func (m *TLInputBotInlineMessageMediaContact) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDeleteChannelMessages)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaContact)) - x.Int(m.GetChannelId()) - x.VectorInt(m.GetMessages()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.String(m.GetPhoneNumber()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetVcard()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } return x.buf } -func (m *TLUpdateDeleteChannelMessages) EncodeToLayer(layer int) []byte { +func (m *TLInputBotInlineMessageMediaContact) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDeleteChannelMessages)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaContact)) - x.Int(m.GetChannelId()) - x.VectorInt(m.GetMessages()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.String(m.GetPhoneNumber()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetVcard()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLUpdateDeleteChannelMessages) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m.SetMessages(dbuf.VectorInt()) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLInputBotInlineMessageMediaContact) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetPhoneNumber(dbuf.String()) + m.SetFirstName(dbuf.String()) + m.SetLastName(dbuf.String()) + m.SetVcard(dbuf.String()) + if (flags & (1 << 2)) != 0 { + m6 := &ReplyMarkup{} + m6.Decode(dbuf) + m.SetReplyMarkup(m6) + } return dbuf.err } -// updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update; -func (m *TLUpdateChannelMessageViews) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChannelMessageViews, +// inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +func (m *TLInputBotInlineMessageGame) To_InputBotInlineMessage() *InputBotInlineMessage { + return &InputBotInlineMessage{ + Constructor: TLConstructor_CRC32_inputBotInlineMessageGame, Data2: m.Data2, } } -func (m *TLUpdateChannelMessageViews) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateChannelMessageViews) GetChannelId() int32 { return m.Data2.ChannelId } - -func (m *TLUpdateChannelMessageViews) SetId(v int32) { m.Data2.Id_4 = v } -func (m *TLUpdateChannelMessageViews) GetId() int32 { return m.Data2.Id_4 } - -func (m *TLUpdateChannelMessageViews) SetViews(v int32) { m.Data2.Views = v } -func (m *TLUpdateChannelMessageViews) GetViews() int32 { return m.Data2.Views } +func (m *TLInputBotInlineMessageGame) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLInputBotInlineMessageGame) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } -func NewTLUpdateChannelMessageViews() *TLUpdateChannelMessageViews { - return &TLUpdateChannelMessageViews{Data2: &Update_Data{}} +func NewTLInputBotInlineMessageGame() *TLInputBotInlineMessageGame { + return &TLInputBotInlineMessageGame{Data2: &InputBotInlineMessage_Data{}} } -func (m *TLUpdateChannelMessageViews) Encode() []byte { +func (m *TLInputBotInlineMessageGame) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelMessageViews)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageGame)) - x.Int(m.GetChannelId()) - x.Int(m.GetId()) - x.Int(m.GetViews()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } return x.buf } -func (m *TLUpdateChannelMessageViews) EncodeToLayer(layer int) []byte { +func (m *TLInputBotInlineMessageGame) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelMessageViews)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageGame)) - x.Int(m.GetChannelId()) - x.Int(m.GetId()) - x.Int(m.GetViews()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLUpdateChannelMessageViews) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m.SetId(dbuf.Int()) - m.SetViews(dbuf.Int()) +func (m *TLInputBotInlineMessageGame) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 2)) != 0 { + m2 := &ReplyMarkup{} + m2.Decode(dbuf) + m.SetReplyMarkup(m2) + } return dbuf.err } -// updateChatAdmins#6e947941 chat_id:int enabled:Bool version:int = Update; -func (m *TLUpdateChatAdmins) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChatAdmins, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// PhoneCallDiscardReason <-- +// + TL_PhoneCallDiscardReasonMissed +// + TL_PhoneCallDiscardReasonDisconnect +// + TL_PhoneCallDiscardReasonHangup +// + TL_PhoneCallDiscardReasonBusy +// -func (m *TLUpdateChatAdmins) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLUpdateChatAdmins) GetChatId() int32 { return m.Data2.ChatId } +func (m *PhoneCallDiscardReason) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_phoneCallDiscardReasonMissed: + t := m.To_PhoneCallDiscardReasonMissed() + return t.Encode() + case TLConstructor_CRC32_phoneCallDiscardReasonDisconnect: + t := m.To_PhoneCallDiscardReasonDisconnect() + return t.Encode() + case TLConstructor_CRC32_phoneCallDiscardReasonHangup: + t := m.To_PhoneCallDiscardReasonHangup() + return t.Encode() + case TLConstructor_CRC32_phoneCallDiscardReasonBusy: + t := m.To_PhoneCallDiscardReasonBusy() + return t.Encode() -func (m *TLUpdateChatAdmins) SetEnabled(v *Bool) { m.Data2.Enabled = v } -func (m *TLUpdateChatAdmins) GetEnabled() *Bool { return m.Data2.Enabled } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdateChatAdmins) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLUpdateChatAdmins) GetVersion() int32 { return m.Data2.Version } +func (m *PhoneCallDiscardReason) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_phoneCallDiscardReasonMissed: + t := m.To_PhoneCallDiscardReasonMissed() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_phoneCallDiscardReasonDisconnect: + t := m.To_PhoneCallDiscardReasonDisconnect() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_phoneCallDiscardReasonHangup: + t := m.To_PhoneCallDiscardReasonHangup() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_phoneCallDiscardReasonBusy: + t := m.To_PhoneCallDiscardReasonBusy() + return t.EncodeToLayer(layer) -func NewTLUpdateChatAdmins() *TLUpdateChatAdmins { - return &TLUpdateChatAdmins{Data2: &Update_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateChatAdmins) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatAdmins)) - - x.Int(m.GetChatId()) - x.Bytes(m.GetEnabled().Encode()) - x.Int(m.GetVersion()) +func (m *PhoneCallDiscardReason) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_phoneCallDiscardReasonMissed: + m2 := &TLPhoneCallDiscardReasonMissed{Data2: &PhoneCallDiscardReason_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_phoneCallDiscardReasonDisconnect: + m2 := &TLPhoneCallDiscardReasonDisconnect{Data2: &PhoneCallDiscardReason_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_phoneCallDiscardReasonHangup: + m2 := &TLPhoneCallDiscardReasonHangup{Data2: &PhoneCallDiscardReason_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_phoneCallDiscardReasonBusy: + m2 := &TLPhoneCallDiscardReasonBusy{Data2: &PhoneCallDiscardReason_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLUpdateChatAdmins) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatAdmins)) - - x.Int(m.GetChatId()) - x.Bytes(m.GetEnabled().EncodeToLayer(layer)) - x.Int(m.GetVersion()) +// phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason; +func (m *PhoneCallDiscardReason) To_PhoneCallDiscardReasonMissed() *TLPhoneCallDiscardReasonMissed { + return &TLPhoneCallDiscardReasonMissed{ + Data2: m.Data2, + } +} - return x.buf +// phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason; +func (m *PhoneCallDiscardReason) To_PhoneCallDiscardReasonDisconnect() *TLPhoneCallDiscardReasonDisconnect { + return &TLPhoneCallDiscardReasonDisconnect{ + Data2: m.Data2, + } } -func (m *TLUpdateChatAdmins) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) - m2 := &Bool{} - m2.Decode(dbuf) - m.SetEnabled(m2) - m.SetVersion(dbuf.Int()) +// phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason; +func (m *PhoneCallDiscardReason) To_PhoneCallDiscardReasonHangup() *TLPhoneCallDiscardReasonHangup { + return &TLPhoneCallDiscardReasonHangup{ + Data2: m.Data2, + } +} - return dbuf.err +// phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason; +func (m *PhoneCallDiscardReason) To_PhoneCallDiscardReasonBusy() *TLPhoneCallDiscardReasonBusy { + return &TLPhoneCallDiscardReasonBusy{ + Data2: m.Data2, + } } -// updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update; -func (m *TLUpdateChatParticipantAdmin) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChatParticipantAdmin, +// phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason; +func (m *TLPhoneCallDiscardReasonMissed) To_PhoneCallDiscardReason() *PhoneCallDiscardReason { + return &PhoneCallDiscardReason{ + Constructor: TLConstructor_CRC32_phoneCallDiscardReasonMissed, Data2: m.Data2, } } -func (m *TLUpdateChatParticipantAdmin) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLUpdateChatParticipantAdmin) GetChatId() int32 { return m.Data2.ChatId } - -func (m *TLUpdateChatParticipantAdmin) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateChatParticipantAdmin) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLUpdateChatParticipantAdmin) SetIsAdmin(v *Bool) { m.Data2.IsAdmin = v } -func (m *TLUpdateChatParticipantAdmin) GetIsAdmin() *Bool { return m.Data2.IsAdmin } - -func (m *TLUpdateChatParticipantAdmin) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLUpdateChatParticipantAdmin) GetVersion() int32 { return m.Data2.Version } - -func NewTLUpdateChatParticipantAdmin() *TLUpdateChatParticipantAdmin { - return &TLUpdateChatParticipantAdmin{Data2: &Update_Data{}} +func NewTLPhoneCallDiscardReasonMissed() *TLPhoneCallDiscardReasonMissed { + return &TLPhoneCallDiscardReasonMissed{Data2: &PhoneCallDiscardReason_Data{}} } -func (m *TLUpdateChatParticipantAdmin) Encode() []byte { +func (m *TLPhoneCallDiscardReasonMissed) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatParticipantAdmin)) - - x.Int(m.GetChatId()) - x.Int(m.GetUserId()) - x.Bytes(m.GetIsAdmin().Encode()) - x.Int(m.GetVersion()) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonMissed)) return x.buf } -func (m *TLUpdateChatParticipantAdmin) EncodeToLayer(layer int) []byte { +func (m *TLPhoneCallDiscardReasonMissed) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChatParticipantAdmin)) - - x.Int(m.GetChatId()) - x.Int(m.GetUserId()) - x.Bytes(m.GetIsAdmin().EncodeToLayer(layer)) - x.Int(m.GetVersion()) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonMissed)) return x.buf } -func (m *TLUpdateChatParticipantAdmin) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) - m.SetUserId(dbuf.Int()) - m3 := &Bool{} - m3.Decode(dbuf) - m.SetIsAdmin(m3) - m.SetVersion(dbuf.Int()) +func (m *TLPhoneCallDiscardReasonMissed) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; -func (m *TLUpdateNewStickerSet) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateNewStickerSet, +// phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason; +func (m *TLPhoneCallDiscardReasonDisconnect) To_PhoneCallDiscardReason() *PhoneCallDiscardReason { + return &PhoneCallDiscardReason{ + Constructor: TLConstructor_CRC32_phoneCallDiscardReasonDisconnect, Data2: m.Data2, } } -func (m *TLUpdateNewStickerSet) SetStickerset(v *Messages_StickerSet) { m.Data2.Stickerset = v } -func (m *TLUpdateNewStickerSet) GetStickerset() *Messages_StickerSet { return m.Data2.Stickerset } - -func NewTLUpdateNewStickerSet() *TLUpdateNewStickerSet { - return &TLUpdateNewStickerSet{Data2: &Update_Data{}} +func NewTLPhoneCallDiscardReasonDisconnect() *TLPhoneCallDiscardReasonDisconnect { + return &TLPhoneCallDiscardReasonDisconnect{Data2: &PhoneCallDiscardReason_Data{}} } -func (m *TLUpdateNewStickerSet) Encode() []byte { +func (m *TLPhoneCallDiscardReasonDisconnect) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNewStickerSet)) - - x.Bytes(m.GetStickerset().Encode()) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonDisconnect)) return x.buf } -func (m *TLUpdateNewStickerSet) EncodeToLayer(layer int) []byte { +func (m *TLPhoneCallDiscardReasonDisconnect) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateNewStickerSet)) - - x.Bytes(m.GetStickerset().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonDisconnect)) return x.buf } -func (m *TLUpdateNewStickerSet) Decode(dbuf *DecodeBuf) error { - m1 := &Messages_StickerSet{} - m1.Decode(dbuf) - m.SetStickerset(m1) +func (m *TLPhoneCallDiscardReasonDisconnect) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector = Update; -func (m *TLUpdateStickerSetsOrder) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateStickerSetsOrder, - Data2: m.Data2, - } -} - -func (m *TLUpdateStickerSetsOrder) SetMasks(v bool) { m.Data2.Masks = v } -func (m *TLUpdateStickerSetsOrder) GetMasks() bool { return m.Data2.Masks } - -func (m *TLUpdateStickerSetsOrder) SetOrder(v []int64) { m.Data2.Order_48 = v } -func (m *TLUpdateStickerSetsOrder) GetOrder() []int64 { return m.Data2.Order_48 } +// phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason; +func (m *TLPhoneCallDiscardReasonHangup) To_PhoneCallDiscardReason() *PhoneCallDiscardReason { + return &PhoneCallDiscardReason{ + Constructor: TLConstructor_CRC32_phoneCallDiscardReasonHangup, + Data2: m.Data2, + } +} -func NewTLUpdateStickerSetsOrder() *TLUpdateStickerSetsOrder { - return &TLUpdateStickerSetsOrder{Data2: &Update_Data{}} +func NewTLPhoneCallDiscardReasonHangup() *TLPhoneCallDiscardReasonHangup { + return &TLPhoneCallDiscardReasonHangup{Data2: &PhoneCallDiscardReason_Data{}} } -func (m *TLUpdateStickerSetsOrder) Encode() []byte { +func (m *TLPhoneCallDiscardReasonHangup) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateStickerSetsOrder)) - - // flags - var flags uint32 = 0 - if m.GetMasks() == true { - flags |= 1 << 0 - } - x.UInt(flags) - - x.VectorLong(m.GetOrder()) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonHangup)) return x.buf } -func (m *TLUpdateStickerSetsOrder) EncodeToLayer(layer int) []byte { +func (m *TLPhoneCallDiscardReasonHangup) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateStickerSetsOrder)) - - // flags - var flags uint32 = 0 - if m.GetMasks() == true { - flags |= 1 << 0 - } - x.UInt(flags) - - x.VectorLong(m.GetOrder()) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonHangup)) return x.buf } -func (m *TLUpdateStickerSetsOrder) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetMasks(true) - } - m.SetOrder(dbuf.VectorLong()) +func (m *TLPhoneCallDiscardReasonHangup) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updateStickerSets#43ae3dec = Update; -func (m *TLUpdateStickerSets) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateStickerSets, +// phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason; +func (m *TLPhoneCallDiscardReasonBusy) To_PhoneCallDiscardReason() *PhoneCallDiscardReason { + return &PhoneCallDiscardReason{ + Constructor: TLConstructor_CRC32_phoneCallDiscardReasonBusy, Data2: m.Data2, } } -func NewTLUpdateStickerSets() *TLUpdateStickerSets { - return &TLUpdateStickerSets{Data2: &Update_Data{}} +func NewTLPhoneCallDiscardReasonBusy() *TLPhoneCallDiscardReasonBusy { + return &TLPhoneCallDiscardReasonBusy{Data2: &PhoneCallDiscardReason_Data{}} } -func (m *TLUpdateStickerSets) Encode() []byte { +func (m *TLPhoneCallDiscardReasonBusy) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateStickerSets)) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonBusy)) return x.buf } -func (m *TLUpdateStickerSets) EncodeToLayer(layer int) []byte { +func (m *TLPhoneCallDiscardReasonBusy) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateStickerSets)) + x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonBusy)) return x.buf } -func (m *TLUpdateStickerSets) Decode(dbuf *DecodeBuf) error { +func (m *TLPhoneCallDiscardReasonBusy) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updateSavedGifs#9375341e = Update; -func (m *TLUpdateSavedGifs) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateSavedGifs, - Data2: m.Data2, - } -} - -func NewTLUpdateSavedGifs() *TLUpdateSavedGifs { - return &TLUpdateSavedGifs{Data2: &Update_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// Channels_AdminLogResults <-- +// + TL_ChannelsAdminLogResults +// -func (m *TLUpdateSavedGifs) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateSavedGifs)) +func (m *Channels_AdminLogResults) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_channels_adminLogResults: + t := m.To_ChannelsAdminLogResults() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateSavedGifs) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateSavedGifs)) +func (m *Channels_AdminLogResults) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_channels_adminLogResults: + t := m.To_ChannelsAdminLogResults() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateSavedGifs) Decode(dbuf *DecodeBuf) error { +func (m *Channels_AdminLogResults) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_channels_adminLogResults: + m2 := &TLChannelsAdminLogResults{Data2: &Channels_AdminLogResults_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update; -func (m *TLUpdateBotInlineQuery) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateBotInlineQuery, - Data2: m.Data2, +// channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; +func (m *Channels_AdminLogResults) To_ChannelsAdminLogResults() *TLChannelsAdminLogResults { + return &TLChannelsAdminLogResults{ + Data2: m.Data2, } } -func (m *TLUpdateBotInlineQuery) SetQueryId(v int64) { m.Data2.QueryId = v } -func (m *TLUpdateBotInlineQuery) GetQueryId() int64 { return m.Data2.QueryId } - -func (m *TLUpdateBotInlineQuery) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateBotInlineQuery) GetUserId() int32 { return m.Data2.UserId } +// channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; +func (m *TLChannelsAdminLogResults) To_Channels_AdminLogResults() *Channels_AdminLogResults { + return &Channels_AdminLogResults{ + Constructor: TLConstructor_CRC32_channels_adminLogResults, + Data2: m.Data2, + } +} -func (m *TLUpdateBotInlineQuery) SetQuery(v string) { m.Data2.Query = v } -func (m *TLUpdateBotInlineQuery) GetQuery() string { return m.Data2.Query } +func (m *TLChannelsAdminLogResults) SetEvents(v []*ChannelAdminLogEvent) { m.Data2.Events = v } +func (m *TLChannelsAdminLogResults) GetEvents() []*ChannelAdminLogEvent { return m.Data2.Events } -func (m *TLUpdateBotInlineQuery) SetGeo(v *GeoPoint) { m.Data2.Geo = v } -func (m *TLUpdateBotInlineQuery) GetGeo() *GeoPoint { return m.Data2.Geo } +func (m *TLChannelsAdminLogResults) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLChannelsAdminLogResults) GetChats() []*Chat { return m.Data2.Chats } -func (m *TLUpdateBotInlineQuery) SetOffset(v string) { m.Data2.Offset = v } -func (m *TLUpdateBotInlineQuery) GetOffset() string { return m.Data2.Offset } +func (m *TLChannelsAdminLogResults) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLChannelsAdminLogResults) GetUsers() []*User { return m.Data2.Users } -func NewTLUpdateBotInlineQuery() *TLUpdateBotInlineQuery { - return &TLUpdateBotInlineQuery{Data2: &Update_Data{}} +func NewTLChannelsAdminLogResults() *TLChannelsAdminLogResults { + return &TLChannelsAdminLogResults{Data2: &Channels_AdminLogResults_Data{}} } -func (m *TLUpdateBotInlineQuery) Encode() []byte { +func (m *TLChannelsAdminLogResults) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotInlineQuery)) + x.Int(int32(TLConstructor_CRC32_channels_adminLogResults)) - // flags - var flags uint32 = 0 - if m.GetGeo() != nil { - flags |= 1 << 0 + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEvents()))) + for _, v := range m.GetEvents() { + x.buf = append(x.buf, (*v).Encode()...) } - x.UInt(flags) - - x.Long(m.GetQueryId()) - x.Int(m.GetUserId()) - x.String(m.GetQuery()) - if m.GetGeo() != nil { - x.Bytes(m.GetGeo().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } - x.String(m.GetOffset()) return x.buf } -func (m *TLUpdateBotInlineQuery) EncodeToLayer(layer int) []byte { +func (m *TLChannelsAdminLogResults) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotInlineQuery)) + x.Int(int32(TLConstructor_CRC32_channels_adminLogResults)) - // flags - var flags uint32 = 0 - if m.GetGeo() != nil { - flags |= 1 << 0 + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEvents()))) + for _, v := range m.GetEvents() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.UInt(flags) - - x.Long(m.GetQueryId()) - x.Int(m.GetUserId()) - x.String(m.GetQuery()) - if m.GetGeo() != nil { - x.Bytes(m.GetGeo().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.String(m.GetOffset()) return x.buf } -func (m *TLUpdateBotInlineQuery) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetQueryId(dbuf.Long()) - m.SetUserId(dbuf.Int()) - m.SetQuery(dbuf.String()) - if (flags & (1 << 0)) != 0 { - m5 := &GeoPoint{} - m5.Decode(dbuf) - m.SetGeo(m5) +func (m *TLChannelsAdminLogResults) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } - m.SetOffset(dbuf.String()) + l1 := dbuf.Int() + v1 := make([]*ChannelAdminLogEvent, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &ChannelAdminLogEvent{} + v1[i].Decode(dbuf) + } + m.SetEvents(v1) + + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Chat, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Chat{} + v2[i].Decode(dbuf) + } + m.SetChats(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*User, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &User{} + v3[i].Decode(dbuf) + } + m.SetUsers(v3) return dbuf.err } -// updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update; -func (m *TLUpdateBotInlineSend) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateBotInlineSend, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// Auth_Authorization <-- +// + TL_AuthAuthorization +// + +func (m *Auth_Authorization) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_auth_authorization: + t := m.To_AuthAuthorization() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLUpdateBotInlineSend) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateBotInlineSend) GetUserId() int32 { return m.Data2.UserId } +func (m *Auth_Authorization) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_auth_authorization: + t := m.To_AuthAuthorization() + return t.EncodeToLayer(layer) -func (m *TLUpdateBotInlineSend) SetQuery(v string) { m.Data2.Query = v } -func (m *TLUpdateBotInlineSend) GetQuery() string { return m.Data2.Query } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdateBotInlineSend) SetGeo(v *GeoPoint) { m.Data2.Geo = v } -func (m *TLUpdateBotInlineSend) GetGeo() *GeoPoint { return m.Data2.Geo } +func (m *Auth_Authorization) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_auth_authorization: + m2 := &TLAuthAuthorization{Data2: &Auth_Authorization_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func (m *TLUpdateBotInlineSend) SetId(v string) { m.Data2.Id_53 = v } -func (m *TLUpdateBotInlineSend) GetId() string { return m.Data2.Id_53 } + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} -func (m *TLUpdateBotInlineSend) SetMsgId(v *InputBotInlineMessageID) { m.Data2.MsgId_54 = v } -func (m *TLUpdateBotInlineSend) GetMsgId() *InputBotInlineMessageID { return m.Data2.MsgId_54 } +// auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization; +func (m *Auth_Authorization) To_AuthAuthorization() *TLAuthAuthorization { + return &TLAuthAuthorization{ + Data2: m.Data2, + } +} -func NewTLUpdateBotInlineSend() *TLUpdateBotInlineSend { - return &TLUpdateBotInlineSend{Data2: &Update_Data{}} +// auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization; +func (m *TLAuthAuthorization) To_Auth_Authorization() *Auth_Authorization { + return &Auth_Authorization{ + Constructor: TLConstructor_CRC32_auth_authorization, + Data2: m.Data2, + } } -func (m *TLUpdateBotInlineSend) Encode() []byte { +func (m *TLAuthAuthorization) SetTmpSessions(v int32) { m.Data2.TmpSessions = v } +func (m *TLAuthAuthorization) GetTmpSessions() int32 { return m.Data2.TmpSessions } + +func (m *TLAuthAuthorization) SetUser(v *User) { m.Data2.User = v } +func (m *TLAuthAuthorization) GetUser() *User { return m.Data2.User } + +func NewTLAuthAuthorization() *TLAuthAuthorization { + return &TLAuthAuthorization{Data2: &Auth_Authorization_Data{}} +} + +func (m *TLAuthAuthorization) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotInlineSend)) + x.Int(int32(TLConstructor_CRC32_auth_authorization)) // flags var flags uint32 = 0 - if m.GetGeo() != nil { + if m.GetTmpSessions() != 0 { flags |= 1 << 0 } - if m.GetMsgId() != nil { - flags |= 1 << 1 - } x.UInt(flags) - x.Int(m.GetUserId()) - x.String(m.GetQuery()) - if m.GetGeo() != nil { - x.Bytes(m.GetGeo().Encode()) - } - x.String(m.GetId()) - if m.GetMsgId() != nil { - x.Bytes(m.GetMsgId().Encode()) + if m.GetTmpSessions() != 0 { + x.Int(m.GetTmpSessions()) } + x.Bytes(m.GetUser().Encode()) return x.buf } -func (m *TLUpdateBotInlineSend) EncodeToLayer(layer int) []byte { +func (m *TLAuthAuthorization) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotInlineSend)) + x.Int(int32(TLConstructor_CRC32_auth_authorization)) // flags var flags uint32 = 0 - if m.GetGeo() != nil { + if m.GetTmpSessions() != 0 { flags |= 1 << 0 } - if m.GetMsgId() != nil { - flags |= 1 << 1 - } x.UInt(flags) - x.Int(m.GetUserId()) - x.String(m.GetQuery()) - if m.GetGeo() != nil { - x.Bytes(m.GetGeo().EncodeToLayer(layer)) - } - x.String(m.GetId()) - if m.GetMsgId() != nil { - x.Bytes(m.GetMsgId().EncodeToLayer(layer)) + if m.GetTmpSessions() != 0 { + x.Int(m.GetTmpSessions()) } + x.Bytes(m.GetUser().EncodeToLayer(layer)) return x.buf } -func (m *TLUpdateBotInlineSend) Decode(dbuf *DecodeBuf) error { +func (m *TLAuthAuthorization) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m.SetUserId(dbuf.Int()) - m.SetQuery(dbuf.String()) if (flags & (1 << 0)) != 0 { - m4 := &GeoPoint{} - m4.Decode(dbuf) - m.SetGeo(m4) - } - m.SetId(dbuf.String()) - if (flags & (1 << 1)) != 0 { - m6 := &InputBotInlineMessageID{} - m6.Decode(dbuf) - m.SetMsgId(m6) + m.SetTmpSessions(dbuf.Int()) } + m3 := &User{} + m3.Decode(dbuf) + m.SetUser(m3) return dbuf.err } -// updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update; -func (m *TLUpdateEditChannelMessage) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateEditChannelMessage, - Data2: m.Data2, - } -} - -func (m *TLUpdateEditChannelMessage) SetMessage(v *Message) { m.Data2.Message_1 = v } -func (m *TLUpdateEditChannelMessage) GetMessage() *Message { return m.Data2.Message_1 } - -func (m *TLUpdateEditChannelMessage) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateEditChannelMessage) GetPts() int32 { return m.Data2.Pts } +/////////////////////////////////////////////////////////////////////////////// +// Account_Takeout <-- +// + TL_AccountTakeout +// -func (m *TLUpdateEditChannelMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateEditChannelMessage) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *Account_Takeout) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_account_takeout: + t := m.To_AccountTakeout() + return t.Encode() -func NewTLUpdateEditChannelMessage() *TLUpdateEditChannelMessage { - return &TLUpdateEditChannelMessage{Data2: &Update_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateEditChannelMessage) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEditChannelMessage)) - - x.Bytes(m.GetMessage().Encode()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) +func (m *Account_Takeout) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_account_takeout: + t := m.To_AccountTakeout() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateEditChannelMessage) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEditChannelMessage)) - - x.Bytes(m.GetMessage().EncodeToLayer(layer)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) +func (m *Account_Takeout) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_account_takeout: + m2 := &TLAccountTakeout{Data2: &Account_Takeout_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLUpdateEditChannelMessage) Decode(dbuf *DecodeBuf) error { - m1 := &Message{} - m1.Decode(dbuf) - m.SetMessage(m1) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) - - return dbuf.err +// account.takeout#4dba4501 id:long = account.Takeout; +func (m *Account_Takeout) To_AccountTakeout() *TLAccountTakeout { + return &TLAccountTakeout{ + Data2: m.Data2, + } } -// updateChannelPinnedMessage#98592475 channel_id:int id:int = Update; -func (m *TLUpdateChannelPinnedMessage) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChannelPinnedMessage, +// account.takeout#4dba4501 id:long = account.Takeout; +func (m *TLAccountTakeout) To_Account_Takeout() *Account_Takeout { + return &Account_Takeout{ + Constructor: TLConstructor_CRC32_account_takeout, Data2: m.Data2, } } -func (m *TLUpdateChannelPinnedMessage) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateChannelPinnedMessage) GetChannelId() int32 { return m.Data2.ChannelId } - -func (m *TLUpdateChannelPinnedMessage) SetId(v int32) { m.Data2.Id_4 = v } -func (m *TLUpdateChannelPinnedMessage) GetId() int32 { return m.Data2.Id_4 } +func (m *TLAccountTakeout) SetId(v int64) { m.Data2.Id = v } +func (m *TLAccountTakeout) GetId() int64 { return m.Data2.Id } -func NewTLUpdateChannelPinnedMessage() *TLUpdateChannelPinnedMessage { - return &TLUpdateChannelPinnedMessage{Data2: &Update_Data{}} +func NewTLAccountTakeout() *TLAccountTakeout { + return &TLAccountTakeout{Data2: &Account_Takeout_Data{}} } -func (m *TLUpdateChannelPinnedMessage) Encode() []byte { +func (m *TLAccountTakeout) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelPinnedMessage)) + x.Int(int32(TLConstructor_CRC32_account_takeout)) - x.Int(m.GetChannelId()) - x.Int(m.GetId()) + x.Long(m.GetId()) return x.buf } -func (m *TLUpdateChannelPinnedMessage) EncodeToLayer(layer int) []byte { +func (m *TLAccountTakeout) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelPinnedMessage)) + x.Int(int32(TLConstructor_CRC32_account_takeout)) - x.Int(m.GetChannelId()) - x.Int(m.GetId()) + x.Long(m.GetId()) return x.buf } -func (m *TLUpdateChannelPinnedMessage) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m.SetId(dbuf.Int()) +func (m *TLAccountTakeout) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) return dbuf.err } -// updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; -func (m *TLUpdateBotCallbackQuery) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateBotCallbackQuery, - Data2: m.Data2, - } -} - -func (m *TLUpdateBotCallbackQuery) SetQueryId(v int64) { m.Data2.QueryId = v } -func (m *TLUpdateBotCallbackQuery) GetQueryId() int64 { return m.Data2.QueryId } - -func (m *TLUpdateBotCallbackQuery) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateBotCallbackQuery) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLUpdateBotCallbackQuery) SetPeer(v *Peer) { m.Data2.Peer_39 = v } -func (m *TLUpdateBotCallbackQuery) GetPeer() *Peer { return m.Data2.Peer_39 } - -func (m *TLUpdateBotCallbackQuery) SetMsgId(v int32) { m.Data2.MsgId_55 = v } -func (m *TLUpdateBotCallbackQuery) GetMsgId() int32 { return m.Data2.MsgId_55 } +/////////////////////////////////////////////////////////////////////////////// +// InputCheckPasswordSRP <-- +// + TL_InputCheckPasswordEmpty +// + TL_InputCheckPasswordSRP +// -func (m *TLUpdateBotCallbackQuery) SetChatInstance(v int64) { m.Data2.ChatInstance = v } -func (m *TLUpdateBotCallbackQuery) GetChatInstance() int64 { return m.Data2.ChatInstance } +func (m *InputCheckPasswordSRP) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputCheckPasswordEmpty: + t := m.To_InputCheckPasswordEmpty() + return t.Encode() + case TLConstructor_CRC32_inputCheckPasswordSRP: + t := m.To_InputCheckPasswordSRP() + return t.Encode() -func (m *TLUpdateBotCallbackQuery) SetData(v []byte) { m.Data2.Data_57 = v } -func (m *TLUpdateBotCallbackQuery) GetData() []byte { return m.Data2.Data_57 } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdateBotCallbackQuery) SetGameShortName(v string) { m.Data2.GameShortName = v } -func (m *TLUpdateBotCallbackQuery) GetGameShortName() string { return m.Data2.GameShortName } +func (m *InputCheckPasswordSRP) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputCheckPasswordEmpty: + t := m.To_InputCheckPasswordEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputCheckPasswordSRP: + t := m.To_InputCheckPasswordSRP() + return t.EncodeToLayer(layer) -func NewTLUpdateBotCallbackQuery() *TLUpdateBotCallbackQuery { - return &TLUpdateBotCallbackQuery{Data2: &Update_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateBotCallbackQuery) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotCallbackQuery)) +func (m *InputCheckPasswordSRP) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputCheckPasswordEmpty: + m2 := &TLInputCheckPasswordEmpty{Data2: &InputCheckPasswordSRP_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputCheckPasswordSRP: + m2 := &TLInputCheckPasswordSRP{Data2: &InputCheckPasswordSRP_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - // flags - var flags uint32 = 0 - if m.GetData() != nil { - flags |= 1 << 0 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - if m.GetGameShortName() != "" { - flags |= 1 << 1 + return dbuf.err +} + +// inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP; +func (m *InputCheckPasswordSRP) To_InputCheckPasswordEmpty() *TLInputCheckPasswordEmpty { + return &TLInputCheckPasswordEmpty{ + Data2: m.Data2, } - x.UInt(flags) +} - x.Long(m.GetQueryId()) - x.Int(m.GetUserId()) - x.Bytes(m.GetPeer().Encode()) - x.Int(m.GetMsgId()) - x.Long(m.GetChatInstance()) - if m.GetData() != nil { - x.StringBytes(m.GetData()) +// inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP; +func (m *InputCheckPasswordSRP) To_InputCheckPasswordSRP() *TLInputCheckPasswordSRP { + return &TLInputCheckPasswordSRP{ + Data2: m.Data2, } - if m.GetGameShortName() != "" { - x.String(m.GetGameShortName()) +} + +// inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP; +func (m *TLInputCheckPasswordEmpty) To_InputCheckPasswordSRP() *InputCheckPasswordSRP { + return &InputCheckPasswordSRP{ + Constructor: TLConstructor_CRC32_inputCheckPasswordEmpty, + Data2: m.Data2, } +} - return x.buf +func NewTLInputCheckPasswordEmpty() *TLInputCheckPasswordEmpty { + return &TLInputCheckPasswordEmpty{Data2: &InputCheckPasswordSRP_Data{}} } -func (m *TLUpdateBotCallbackQuery) EncodeToLayer(layer int) []byte { +func (m *TLInputCheckPasswordEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotCallbackQuery)) + x.Int(int32(TLConstructor_CRC32_inputCheckPasswordEmpty)) - // flags - var flags uint32 = 0 - if m.GetData() != nil { - flags |= 1 << 0 - } - if m.GetGameShortName() != "" { - flags |= 1 << 1 - } - x.UInt(flags) + return x.buf +} - x.Long(m.GetQueryId()) - x.Int(m.GetUserId()) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - x.Int(m.GetMsgId()) - x.Long(m.GetChatInstance()) - if m.GetData() != nil { - x.StringBytes(m.GetData()) - } - if m.GetGameShortName() != "" { - x.String(m.GetGameShortName()) - } +func (m *TLInputCheckPasswordEmpty) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputCheckPasswordEmpty)) return x.buf } -func (m *TLUpdateBotCallbackQuery) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetQueryId(dbuf.Long()) - m.SetUserId(dbuf.Int()) - m4 := &Peer{} - m4.Decode(dbuf) - m.SetPeer(m4) - m.SetMsgId(dbuf.Int()) - m.SetChatInstance(dbuf.Long()) - if (flags & (1 << 0)) != 0 { - m.SetData(dbuf.StringBytes()) - } - if (flags & (1 << 1)) != 0 { - m.SetGameShortName(dbuf.String()) - } +func (m *TLInputCheckPasswordEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update; -func (m *TLUpdateEditMessage) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateEditMessage, +// inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP; +func (m *TLInputCheckPasswordSRP) To_InputCheckPasswordSRP() *InputCheckPasswordSRP { + return &InputCheckPasswordSRP{ + Constructor: TLConstructor_CRC32_inputCheckPasswordSRP, Data2: m.Data2, } } -func (m *TLUpdateEditMessage) SetMessage(v *Message) { m.Data2.Message_1 = v } -func (m *TLUpdateEditMessage) GetMessage() *Message { return m.Data2.Message_1 } +func (m *TLInputCheckPasswordSRP) SetSrpId(v int64) { m.Data2.SrpId = v } +func (m *TLInputCheckPasswordSRP) GetSrpId() int64 { return m.Data2.SrpId } -func (m *TLUpdateEditMessage) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateEditMessage) GetPts() int32 { return m.Data2.Pts } +func (m *TLInputCheckPasswordSRP) SetA(v []byte) { m.Data2.A = v } +func (m *TLInputCheckPasswordSRP) GetA() []byte { return m.Data2.A } -func (m *TLUpdateEditMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateEditMessage) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLInputCheckPasswordSRP) SetM1(v []byte) { m.Data2.M1 = v } +func (m *TLInputCheckPasswordSRP) GetM1() []byte { return m.Data2.M1 } -func NewTLUpdateEditMessage() *TLUpdateEditMessage { - return &TLUpdateEditMessage{Data2: &Update_Data{}} +func NewTLInputCheckPasswordSRP() *TLInputCheckPasswordSRP { + return &TLInputCheckPasswordSRP{Data2: &InputCheckPasswordSRP_Data{}} } -func (m *TLUpdateEditMessage) Encode() []byte { +func (m *TLInputCheckPasswordSRP) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEditMessage)) + x.Int(int32(TLConstructor_CRC32_inputCheckPasswordSRP)) - x.Bytes(m.GetMessage().Encode()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Long(m.GetSrpId()) + x.StringBytes(m.GetA()) + x.StringBytes(m.GetM1()) return x.buf } -func (m *TLUpdateEditMessage) EncodeToLayer(layer int) []byte { +func (m *TLInputCheckPasswordSRP) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateEditMessage)) + x.Int(int32(TLConstructor_CRC32_inputCheckPasswordSRP)) - x.Bytes(m.GetMessage().EncodeToLayer(layer)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Long(m.GetSrpId()) + x.StringBytes(m.GetA()) + x.StringBytes(m.GetM1()) return x.buf } -func (m *TLUpdateEditMessage) Decode(dbuf *DecodeBuf) error { - m1 := &Message{} - m1.Decode(dbuf) - m.SetMessage(m1) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLInputCheckPasswordSRP) Decode(dbuf *DecodeBuf) error { + m.SetSrpId(dbuf.Long()) + m.SetA(dbuf.StringBytes()) + m.SetM1(dbuf.StringBytes()) return dbuf.err } -// updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; -func (m *TLUpdateInlineBotCallbackQuery) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateInlineBotCallbackQuery, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// Messages_ArchivedStickers <-- +// + TL_MessagesArchivedStickers +// + +func (m *Messages_ArchivedStickers) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_archivedStickers: + t := m.To_MessagesArchivedStickers() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLUpdateInlineBotCallbackQuery) SetQueryId(v int64) { m.Data2.QueryId = v } -func (m *TLUpdateInlineBotCallbackQuery) GetQueryId() int64 { return m.Data2.QueryId } +func (m *Messages_ArchivedStickers) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_archivedStickers: + t := m.To_MessagesArchivedStickers() + return t.EncodeToLayer(layer) -func (m *TLUpdateInlineBotCallbackQuery) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateInlineBotCallbackQuery) GetUserId() int32 { return m.Data2.UserId } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdateInlineBotCallbackQuery) SetMsgId(v *InputBotInlineMessageID) { m.Data2.MsgId_54 = v } -func (m *TLUpdateInlineBotCallbackQuery) GetMsgId() *InputBotInlineMessageID { return m.Data2.MsgId_54 } +func (m *Messages_ArchivedStickers) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_archivedStickers: + m2 := &TLMessagesArchivedStickers{Data2: &Messages_ArchivedStickers_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func (m *TLUpdateInlineBotCallbackQuery) SetChatInstance(v int64) { m.Data2.ChatInstance = v } -func (m *TLUpdateInlineBotCallbackQuery) GetChatInstance() int64 { return m.Data2.ChatInstance } + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} -func (m *TLUpdateInlineBotCallbackQuery) SetData(v []byte) { m.Data2.Data_57 = v } -func (m *TLUpdateInlineBotCallbackQuery) GetData() []byte { return m.Data2.Data_57 } +// messages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers; +func (m *Messages_ArchivedStickers) To_MessagesArchivedStickers() *TLMessagesArchivedStickers { + return &TLMessagesArchivedStickers{ + Data2: m.Data2, + } +} -func (m *TLUpdateInlineBotCallbackQuery) SetGameShortName(v string) { m.Data2.GameShortName = v } -func (m *TLUpdateInlineBotCallbackQuery) GetGameShortName() string { return m.Data2.GameShortName } +// messages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers; +func (m *TLMessagesArchivedStickers) To_Messages_ArchivedStickers() *Messages_ArchivedStickers { + return &Messages_ArchivedStickers{ + Constructor: TLConstructor_CRC32_messages_archivedStickers, + Data2: m.Data2, + } +} -func NewTLUpdateInlineBotCallbackQuery() *TLUpdateInlineBotCallbackQuery { - return &TLUpdateInlineBotCallbackQuery{Data2: &Update_Data{}} +func (m *TLMessagesArchivedStickers) SetCount(v int32) { m.Data2.Count = v } +func (m *TLMessagesArchivedStickers) GetCount() int32 { return m.Data2.Count } + +func (m *TLMessagesArchivedStickers) SetSets(v []*StickerSetCovered) { m.Data2.Sets = v } +func (m *TLMessagesArchivedStickers) GetSets() []*StickerSetCovered { return m.Data2.Sets } + +func NewTLMessagesArchivedStickers() *TLMessagesArchivedStickers { + return &TLMessagesArchivedStickers{Data2: &Messages_ArchivedStickers_Data{}} } -func (m *TLUpdateInlineBotCallbackQuery) Encode() []byte { +func (m *TLMessagesArchivedStickers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateInlineBotCallbackQuery)) - - // flags - var flags uint32 = 0 - if m.GetData() != nil { - flags |= 1 << 0 - } - if m.GetGameShortName() != "" { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_messages_archivedStickers)) - x.Long(m.GetQueryId()) - x.Int(m.GetUserId()) - x.Bytes(m.GetMsgId().Encode()) - x.Long(m.GetChatInstance()) - if m.GetData() != nil { - x.StringBytes(m.GetData()) - } - if m.GetGameShortName() != "" { - x.String(m.GetGameShortName()) + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLUpdateInlineBotCallbackQuery) EncodeToLayer(layer int) []byte { +func (m *TLMessagesArchivedStickers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateInlineBotCallbackQuery)) + x.Int(int32(TLConstructor_CRC32_messages_archivedStickers)) - // flags - var flags uint32 = 0 - if m.GetData() != nil { - flags |= 1 << 0 - } - if m.GetGameShortName() != "" { - flags |= 1 << 1 + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.UInt(flags) - x.Long(m.GetQueryId()) - x.Int(m.GetUserId()) - x.Bytes(m.GetMsgId().EncodeToLayer(layer)) - x.Long(m.GetChatInstance()) - if m.GetData() != nil { - x.StringBytes(m.GetData()) + return x.buf +} + +func (m *TLMessagesArchivedStickers) Decode(dbuf *DecodeBuf) error { + m.SetCount(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err } - if m.GetGameShortName() != "" { - x.String(m.GetGameShortName()) + l2 := dbuf.Int() + v2 := make([]*StickerSetCovered, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &StickerSetCovered{} + v2[i].Decode(dbuf) } + m.SetSets(v2) - return x.buf + return dbuf.err } -func (m *TLUpdateInlineBotCallbackQuery) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetQueryId(dbuf.Long()) - m.SetUserId(dbuf.Int()) - m4 := &InputBotInlineMessageID{} - m4.Decode(dbuf) - m.SetMsgId(m4) - m.SetChatInstance(dbuf.Long()) - if (flags & (1 << 0)) != 0 { - m.SetData(dbuf.StringBytes()) +/////////////////////////////////////////////////////////////////////////////// +// Upload_CdnFile <-- +// + TL_UploadCdnFileReuploadNeeded +// + TL_UploadCdnFile +// + +func (m *Upload_CdnFile) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_upload_cdnFileReuploadNeeded: + t := m.To_UploadCdnFileReuploadNeeded() + return t.Encode() + case TLConstructor_CRC32_upload_cdnFile: + t := m.To_UploadCdnFile() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - if (flags & (1 << 1)) != 0 { - m.SetGameShortName(dbuf.String()) +} + +func (m *Upload_CdnFile) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_upload_cdnFileReuploadNeeded: + t := m.To_UploadCdnFileReuploadNeeded() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_upload_cdnFile: + t := m.To_UploadCdnFile() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } +} +func (m *Upload_CdnFile) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_upload_cdnFileReuploadNeeded: + m2 := &TLUploadCdnFileReuploadNeeded{Data2: &Upload_CdnFile_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_upload_cdnFile: + m2 := &TLUploadCdnFile{Data2: &Upload_CdnFile_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update; -func (m *TLUpdateReadChannelOutbox) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateReadChannelOutbox, - Data2: m.Data2, +// upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile; +func (m *Upload_CdnFile) To_UploadCdnFileReuploadNeeded() *TLUploadCdnFileReuploadNeeded { + return &TLUploadCdnFileReuploadNeeded{ + Data2: m.Data2, } } -func (m *TLUpdateReadChannelOutbox) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateReadChannelOutbox) GetChannelId() int32 { return m.Data2.ChannelId } +// upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile; +func (m *Upload_CdnFile) To_UploadCdnFile() *TLUploadCdnFile { + return &TLUploadCdnFile{ + Data2: m.Data2, + } +} -func (m *TLUpdateReadChannelOutbox) SetMaxId(v int32) { m.Data2.MaxId = v } -func (m *TLUpdateReadChannelOutbox) GetMaxId() int32 { return m.Data2.MaxId } +// upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile; +func (m *TLUploadCdnFileReuploadNeeded) To_Upload_CdnFile() *Upload_CdnFile { + return &Upload_CdnFile{ + Constructor: TLConstructor_CRC32_upload_cdnFileReuploadNeeded, + Data2: m.Data2, + } +} -func NewTLUpdateReadChannelOutbox() *TLUpdateReadChannelOutbox { - return &TLUpdateReadChannelOutbox{Data2: &Update_Data{}} +func (m *TLUploadCdnFileReuploadNeeded) SetRequestToken(v []byte) { m.Data2.RequestToken = v } +func (m *TLUploadCdnFileReuploadNeeded) GetRequestToken() []byte { return m.Data2.RequestToken } + +func NewTLUploadCdnFileReuploadNeeded() *TLUploadCdnFileReuploadNeeded { + return &TLUploadCdnFileReuploadNeeded{Data2: &Upload_CdnFile_Data{}} } -func (m *TLUpdateReadChannelOutbox) Encode() []byte { +func (m *TLUploadCdnFileReuploadNeeded) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadChannelOutbox)) + x.Int(int32(TLConstructor_CRC32_upload_cdnFileReuploadNeeded)) - x.Int(m.GetChannelId()) - x.Int(m.GetMaxId()) + x.StringBytes(m.GetRequestToken()) return x.buf } -func (m *TLUpdateReadChannelOutbox) EncodeToLayer(layer int) []byte { +func (m *TLUploadCdnFileReuploadNeeded) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadChannelOutbox)) + x.Int(int32(TLConstructor_CRC32_upload_cdnFileReuploadNeeded)) - x.Int(m.GetChannelId()) - x.Int(m.GetMaxId()) + x.StringBytes(m.GetRequestToken()) return x.buf } -func (m *TLUpdateReadChannelOutbox) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m.SetMaxId(dbuf.Int()) +func (m *TLUploadCdnFileReuploadNeeded) Decode(dbuf *DecodeBuf) error { + m.SetRequestToken(dbuf.StringBytes()) return dbuf.err } -// updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update; -func (m *TLUpdateDraftMessage) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateDraftMessage, +// upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile; +func (m *TLUploadCdnFile) To_Upload_CdnFile() *Upload_CdnFile { + return &Upload_CdnFile{ + Constructor: TLConstructor_CRC32_upload_cdnFile, Data2: m.Data2, } } -func (m *TLUpdateDraftMessage) SetPeer(v *Peer) { m.Data2.Peer_39 = v } -func (m *TLUpdateDraftMessage) GetPeer() *Peer { return m.Data2.Peer_39 } - -func (m *TLUpdateDraftMessage) SetDraft(v *DraftMessage) { m.Data2.Draft = v } -func (m *TLUpdateDraftMessage) GetDraft() *DraftMessage { return m.Data2.Draft } +func (m *TLUploadCdnFile) SetBytes(v []byte) { m.Data2.Bytes = v } +func (m *TLUploadCdnFile) GetBytes() []byte { return m.Data2.Bytes } -func NewTLUpdateDraftMessage() *TLUpdateDraftMessage { - return &TLUpdateDraftMessage{Data2: &Update_Data{}} +func NewTLUploadCdnFile() *TLUploadCdnFile { + return &TLUploadCdnFile{Data2: &Upload_CdnFile_Data{}} } -func (m *TLUpdateDraftMessage) Encode() []byte { +func (m *TLUploadCdnFile) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDraftMessage)) + x.Int(int32(TLConstructor_CRC32_upload_cdnFile)) - x.Bytes(m.GetPeer().Encode()) - x.Bytes(m.GetDraft().Encode()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLUpdateDraftMessage) EncodeToLayer(layer int) []byte { +func (m *TLUploadCdnFile) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDraftMessage)) + x.Int(int32(TLConstructor_CRC32_upload_cdnFile)) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - x.Bytes(m.GetDraft().EncodeToLayer(layer)) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLUpdateDraftMessage) Decode(dbuf *DecodeBuf) error { - m1 := &Peer{} - m1.Decode(dbuf) - m.SetPeer(m1) - m2 := &DraftMessage{} - m2.Decode(dbuf) - m.SetDraft(m2) +func (m *TLUploadCdnFile) Decode(dbuf *DecodeBuf) error { + m.SetBytes(dbuf.StringBytes()) return dbuf.err } -// updateReadFeaturedStickers#571d2742 = Update; -func (m *TLUpdateReadFeaturedStickers) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateReadFeaturedStickers, - Data2: m.Data2, - } -} - -func NewTLUpdateReadFeaturedStickers() *TLUpdateReadFeaturedStickers { - return &TLUpdateReadFeaturedStickers{Data2: &Update_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// ChannelAdminRights <-- +// + TL_ChannelAdminRights +// -func (m *TLUpdateReadFeaturedStickers) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadFeaturedStickers)) +func (m *ChannelAdminRights) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_channelAdminRights: + t := m.To_ChannelAdminRights() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateReadFeaturedStickers) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateReadFeaturedStickers)) +func (m *ChannelAdminRights) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_channelAdminRights: + t := m.To_ChannelAdminRights() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateReadFeaturedStickers) Decode(dbuf *DecodeBuf) error { +func (m *ChannelAdminRights) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_channelAdminRights: + m2 := &TLChannelAdminRights{Data2: &ChannelAdminRights_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// updateRecentStickers#9a422c20 = Update; -func (m *TLUpdateRecentStickers) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateRecentStickers, - Data2: m.Data2, +// channelAdminRights#5d7ceba5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true invite_link:flags.6?true pin_messages:flags.7?true add_admins:flags.9?true manage_call:flags.10?true = ChannelAdminRights; +func (m *ChannelAdminRights) To_ChannelAdminRights() *TLChannelAdminRights { + return &TLChannelAdminRights{ + Data2: m.Data2, } } -func NewTLUpdateRecentStickers() *TLUpdateRecentStickers { - return &TLUpdateRecentStickers{Data2: &Update_Data{}} +// channelAdminRights#5d7ceba5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true invite_link:flags.6?true pin_messages:flags.7?true add_admins:flags.9?true manage_call:flags.10?true = ChannelAdminRights; +func (m *TLChannelAdminRights) To_ChannelAdminRights() *ChannelAdminRights { + return &ChannelAdminRights{ + Constructor: TLConstructor_CRC32_channelAdminRights, + Data2: m.Data2, + } } -func (m *TLUpdateRecentStickers) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateRecentStickers)) +func (m *TLChannelAdminRights) SetChangeInfo(v bool) { m.Data2.ChangeInfo = v } +func (m *TLChannelAdminRights) GetChangeInfo() bool { return m.Data2.ChangeInfo } - return x.buf -} +func (m *TLChannelAdminRights) SetPostMessages(v bool) { m.Data2.PostMessages = v } +func (m *TLChannelAdminRights) GetPostMessages() bool { return m.Data2.PostMessages } -func (m *TLUpdateRecentStickers) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateRecentStickers)) +func (m *TLChannelAdminRights) SetEditMessages(v bool) { m.Data2.EditMessages = v } +func (m *TLChannelAdminRights) GetEditMessages() bool { return m.Data2.EditMessages } - return x.buf -} +func (m *TLChannelAdminRights) SetDeleteMessages(v bool) { m.Data2.DeleteMessages = v } +func (m *TLChannelAdminRights) GetDeleteMessages() bool { return m.Data2.DeleteMessages } -func (m *TLUpdateRecentStickers) Decode(dbuf *DecodeBuf) error { +func (m *TLChannelAdminRights) SetBanUsers(v bool) { m.Data2.BanUsers = v } +func (m *TLChannelAdminRights) GetBanUsers() bool { return m.Data2.BanUsers } - return dbuf.err -} +func (m *TLChannelAdminRights) SetInviteUsers(v bool) { m.Data2.InviteUsers = v } +func (m *TLChannelAdminRights) GetInviteUsers() bool { return m.Data2.InviteUsers } -// updateConfig#a229dd06 = Update; -func (m *TLUpdateConfig) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateConfig, - Data2: m.Data2, - } -} +func (m *TLChannelAdminRights) SetInviteLink(v bool) { m.Data2.InviteLink = v } +func (m *TLChannelAdminRights) GetInviteLink() bool { return m.Data2.InviteLink } -func NewTLUpdateConfig() *TLUpdateConfig { - return &TLUpdateConfig{Data2: &Update_Data{}} +func (m *TLChannelAdminRights) SetPinMessages(v bool) { m.Data2.PinMessages = v } +func (m *TLChannelAdminRights) GetPinMessages() bool { return m.Data2.PinMessages } + +func (m *TLChannelAdminRights) SetAddAdmins(v bool) { m.Data2.AddAdmins = v } +func (m *TLChannelAdminRights) GetAddAdmins() bool { return m.Data2.AddAdmins } + +func (m *TLChannelAdminRights) SetManageCall(v bool) { m.Data2.ManageCall = v } +func (m *TLChannelAdminRights) GetManageCall() bool { return m.Data2.ManageCall } + +func NewTLChannelAdminRights() *TLChannelAdminRights { + return &TLChannelAdminRights{Data2: &ChannelAdminRights_Data{}} } -func (m *TLUpdateConfig) Encode() []byte { +func (m *TLChannelAdminRights) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateConfig)) + x.Int(int32(TLConstructor_CRC32_channelAdminRights)) + + // flags + var flags uint32 = 0 + if m.GetChangeInfo() == true { + flags |= 1 << 0 + } + if m.GetPostMessages() == true { + flags |= 1 << 1 + } + if m.GetEditMessages() == true { + flags |= 1 << 2 + } + if m.GetDeleteMessages() == true { + flags |= 1 << 3 + } + if m.GetBanUsers() == true { + flags |= 1 << 4 + } + if m.GetInviteUsers() == true { + flags |= 1 << 5 + } + if m.GetInviteLink() == true { + flags |= 1 << 6 + } + if m.GetPinMessages() == true { + flags |= 1 << 7 + } + if m.GetAddAdmins() == true { + flags |= 1 << 9 + } + if m.GetManageCall() == true { + flags |= 1 << 10 + } + x.UInt(flags) return x.buf } -func (m *TLUpdateConfig) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminRights) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateConfig)) + x.Int(int32(TLConstructor_CRC32_channelAdminRights)) + + // flags + var flags uint32 = 0 + if m.GetChangeInfo() == true { + flags |= 1 << 0 + } + if m.GetPostMessages() == true { + flags |= 1 << 1 + } + if m.GetEditMessages() == true { + flags |= 1 << 2 + } + if m.GetDeleteMessages() == true { + flags |= 1 << 3 + } + if m.GetBanUsers() == true { + flags |= 1 << 4 + } + if m.GetInviteUsers() == true { + flags |= 1 << 5 + } + if m.GetInviteLink() == true { + flags |= 1 << 6 + } + if m.GetPinMessages() == true { + flags |= 1 << 7 + } + if m.GetAddAdmins() == true { + flags |= 1 << 9 + } + if m.GetManageCall() == true { + flags |= 1 << 10 + } + x.UInt(flags) return x.buf } -func (m *TLUpdateConfig) Decode(dbuf *DecodeBuf) error { +func (m *TLChannelAdminRights) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetChangeInfo(true) + } + if (flags & (1 << 1)) != 0 { + m.SetPostMessages(true) + } + if (flags & (1 << 2)) != 0 { + m.SetEditMessages(true) + } + if (flags & (1 << 3)) != 0 { + m.SetDeleteMessages(true) + } + if (flags & (1 << 4)) != 0 { + m.SetBanUsers(true) + } + if (flags & (1 << 5)) != 0 { + m.SetInviteUsers(true) + } + if (flags & (1 << 6)) != 0 { + m.SetInviteLink(true) + } + if (flags & (1 << 7)) != 0 { + m.SetPinMessages(true) + } + if (flags & (1 << 9)) != 0 { + m.SetAddAdmins(true) + } + if (flags & (1 << 10)) != 0 { + m.SetManageCall(true) + } return dbuf.err } -// updatePtsChanged#3354678f = Update; -func (m *TLUpdatePtsChanged) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updatePtsChanged, - Data2: m.Data2, - } -} - -func NewTLUpdatePtsChanged() *TLUpdatePtsChanged { - return &TLUpdatePtsChanged{Data2: &Update_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// SchemeMethod <-- +// + TL_SchemeMethod +// -func (m *TLUpdatePtsChanged) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatePtsChanged)) +func (m *SchemeMethod) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_schemeMethod: + t := m.To_SchemeMethod() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdatePtsChanged) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatePtsChanged)) +func (m *SchemeMethod) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_schemeMethod: + t := m.To_SchemeMethod() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdatePtsChanged) Decode(dbuf *DecodeBuf) error { +func (m *SchemeMethod) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_schemeMethod: + m2 := &TLSchemeMethod{Data2: &SchemeMethod_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update; -func (m *TLUpdateChannelWebPage) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChannelWebPage, +// schemeMethod#479357c0 id:int method:string params:Vector type:string = SchemeMethod; +func (m *SchemeMethod) To_SchemeMethod() *TLSchemeMethod { + return &TLSchemeMethod{ + Data2: m.Data2, + } +} + +// schemeMethod#479357c0 id:int method:string params:Vector type:string = SchemeMethod; +func (m *TLSchemeMethod) To_SchemeMethod() *SchemeMethod { + return &SchemeMethod{ + Constructor: TLConstructor_CRC32_schemeMethod, Data2: m.Data2, } } -func (m *TLUpdateChannelWebPage) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateChannelWebPage) GetChannelId() int32 { return m.Data2.ChannelId } +func (m *TLSchemeMethod) SetId(v int32) { m.Data2.Id = v } +func (m *TLSchemeMethod) GetId() int32 { return m.Data2.Id } -func (m *TLUpdateChannelWebPage) SetWebpage(v *WebPage) { m.Data2.Webpage = v } -func (m *TLUpdateChannelWebPage) GetWebpage() *WebPage { return m.Data2.Webpage } +func (m *TLSchemeMethod) SetMethod(v string) { m.Data2.Method = v } +func (m *TLSchemeMethod) GetMethod() string { return m.Data2.Method } -func (m *TLUpdateChannelWebPage) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateChannelWebPage) GetPts() int32 { return m.Data2.Pts } +func (m *TLSchemeMethod) SetParams(v []*SchemeParam) { m.Data2.Params = v } +func (m *TLSchemeMethod) GetParams() []*SchemeParam { return m.Data2.Params } -func (m *TLUpdateChannelWebPage) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateChannelWebPage) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLSchemeMethod) SetType(v string) { m.Data2.Type = v } +func (m *TLSchemeMethod) GetType() string { return m.Data2.Type } -func NewTLUpdateChannelWebPage() *TLUpdateChannelWebPage { - return &TLUpdateChannelWebPage{Data2: &Update_Data{}} +func NewTLSchemeMethod() *TLSchemeMethod { + return &TLSchemeMethod{Data2: &SchemeMethod_Data{}} } -func (m *TLUpdateChannelWebPage) Encode() []byte { +func (m *TLSchemeMethod) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelWebPage)) + x.Int(int32(TLConstructor_CRC32_schemeMethod)) - x.Int(m.GetChannelId()) - x.Bytes(m.GetWebpage().Encode()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetId()) + x.String(m.GetMethod()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParams()))) + for _, v := range m.GetParams() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.String(m.GetType()) return x.buf } -func (m *TLUpdateChannelWebPage) EncodeToLayer(layer int) []byte { +func (m *TLSchemeMethod) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelWebPage)) + x.Int(int32(TLConstructor_CRC32_schemeMethod)) - x.Int(m.GetChannelId()) - x.Bytes(m.GetWebpage().EncodeToLayer(layer)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Int(m.GetId()) + x.String(m.GetMethod()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParams()))) + for _, v := range m.GetParams() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.String(m.GetType()) return x.buf } -func (m *TLUpdateChannelWebPage) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m2 := &WebPage{} - m2.Decode(dbuf) - m.SetWebpage(m2) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLSchemeMethod) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetMethod(dbuf.String()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*SchemeParam, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &SchemeParam{} + v3[i].Decode(dbuf) + } + m.SetParams(v3) - return dbuf.err -} + m.SetType(dbuf.String()) -// updateDialogPinned#19d27f3c flags:# pinned:flags.0?true peer:DialogPeer = Update; -func (m *TLUpdateDialogPinned) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateDialogPinned, - Data2: m.Data2, - } + return dbuf.err } -func (m *TLUpdateDialogPinned) SetPinned(v bool) { m.Data2.Pinned = v } -func (m *TLUpdateDialogPinned) GetPinned() bool { return m.Data2.Pinned } +/////////////////////////////////////////////////////////////////////////////// +// Auth_SentCode <-- +// + TL_AuthSentCode +// -func (m *TLUpdateDialogPinned) SetPeer(v *DialogPeer) { m.Data2.Peer_61 = v } -func (m *TLUpdateDialogPinned) GetPeer() *DialogPeer { return m.Data2.Peer_61 } +func (m *Auth_SentCode) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_auth_sentCode: + t := m.To_AuthSentCode() + return t.Encode() -func NewTLUpdateDialogPinned() *TLUpdateDialogPinned { - return &TLUpdateDialogPinned{Data2: &Update_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateDialogPinned) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDialogPinned)) +func (m *Auth_SentCode) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_auth_sentCode: + t := m.To_AuthSentCode() + return t.EncodeToLayer(layer) - // flags - var flags uint32 = 0 - if m.GetPinned() == true { - flags |= 1 << 0 + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - x.UInt(flags) - - x.Bytes(m.GetPeer().Encode()) - - return x.buf } -func (m *TLUpdateDialogPinned) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDialogPinned)) +func (m *Auth_SentCode) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_auth_sentCode: + m2 := &TLAuthSentCode{Data2: &Auth_SentCode_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - // flags - var flags uint32 = 0 - if m.GetPinned() == true { - flags |= 1 << 0 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - x.UInt(flags) - - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - - return x.buf + return dbuf.err } -func (m *TLUpdateDialogPinned) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetPinned(true) +// auth.sentCode#38faab5f flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int terms_of_service:flags.3?help.TermsOfService = auth.SentCode; +func (m *Auth_SentCode) To_AuthSentCode() *TLAuthSentCode { + return &TLAuthSentCode{ + Data2: m.Data2, } - m3 := &DialogPeer{} - m3.Decode(dbuf) - m.SetPeer(m3) - - return dbuf.err } -// updatePinnedDialogs#ea4cb65b flags:# order:flags.0?Vector = Update; -func (m *TLUpdatePinnedDialogs) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updatePinnedDialogs, +// auth.sentCode#38faab5f flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int terms_of_service:flags.3?help.TermsOfService = auth.SentCode; +func (m *TLAuthSentCode) To_Auth_SentCode() *Auth_SentCode { + return &Auth_SentCode{ + Constructor: TLConstructor_CRC32_auth_sentCode, Data2: m.Data2, } } -func (m *TLUpdatePinnedDialogs) SetOrder(v []*DialogPeer) { m.Data2.Order_62 = v } -func (m *TLUpdatePinnedDialogs) GetOrder() []*DialogPeer { return m.Data2.Order_62 } +func (m *TLAuthSentCode) SetPhoneRegistered(v bool) { m.Data2.PhoneRegistered = v } +func (m *TLAuthSentCode) GetPhoneRegistered() bool { return m.Data2.PhoneRegistered } -func NewTLUpdatePinnedDialogs() *TLUpdatePinnedDialogs { - return &TLUpdatePinnedDialogs{Data2: &Update_Data{}} +func (m *TLAuthSentCode) SetType(v *Auth_SentCodeType) { m.Data2.Type = v } +func (m *TLAuthSentCode) GetType() *Auth_SentCodeType { return m.Data2.Type } + +func (m *TLAuthSentCode) SetPhoneCodeHash(v string) { m.Data2.PhoneCodeHash = v } +func (m *TLAuthSentCode) GetPhoneCodeHash() string { return m.Data2.PhoneCodeHash } + +func (m *TLAuthSentCode) SetNextType(v *Auth_CodeType) { m.Data2.NextType = v } +func (m *TLAuthSentCode) GetNextType() *Auth_CodeType { return m.Data2.NextType } + +func (m *TLAuthSentCode) SetTimeout(v int32) { m.Data2.Timeout = v } +func (m *TLAuthSentCode) GetTimeout() int32 { return m.Data2.Timeout } + +func (m *TLAuthSentCode) SetTermsOfService(v *Help_TermsOfService) { m.Data2.TermsOfService = v } +func (m *TLAuthSentCode) GetTermsOfService() *Help_TermsOfService { return m.Data2.TermsOfService } + +func NewTLAuthSentCode() *TLAuthSentCode { + return &TLAuthSentCode{Data2: &Auth_SentCode_Data{}} } -func (m *TLUpdatePinnedDialogs) Encode() []byte { +func (m *TLAuthSentCode) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatePinnedDialogs)) + x.Int(int32(TLConstructor_CRC32_auth_sentCode)) // flags var flags uint32 = 0 - if m.GetOrder() != nil { + if m.GetPhoneRegistered() == true { flags |= 1 << 0 } - x.UInt(flags) - - if m.GetOrder() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetOrder()))) - for _, v := range m.GetOrder() { - x.buf = append(x.buf, (*v).Encode()...) - } + if m.GetNextType() != nil { + flags |= 1 << 1 + } + if m.GetTimeout() != 0 { + flags |= 1 << 2 + } + if m.GetTermsOfService() != nil { + flags |= 1 << 3 + } + x.UInt(flags) + + x.Bytes(m.GetType().Encode()) + x.String(m.GetPhoneCodeHash()) + if m.GetNextType() != nil { + x.Bytes(m.GetNextType().Encode()) + } + if m.GetTimeout() != 0 { + x.Int(m.GetTimeout()) + } + if m.GetTermsOfService() != nil { + x.Bytes(m.GetTermsOfService().Encode()) } return x.buf } -func (m *TLUpdatePinnedDialogs) EncodeToLayer(layer int) []byte { +func (m *TLAuthSentCode) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatePinnedDialogs)) + x.Int(int32(TLConstructor_CRC32_auth_sentCode)) // flags var flags uint32 = 0 - if m.GetOrder() != nil { + if m.GetPhoneRegistered() == true { flags |= 1 << 0 } + if m.GetNextType() != nil { + flags |= 1 << 1 + } + if m.GetTimeout() != 0 { + flags |= 1 << 2 + } + if m.GetTermsOfService() != nil { + flags |= 1 << 3 + } x.UInt(flags) - if m.GetOrder() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetOrder()))) - for _, v := range m.GetOrder() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetType().EncodeToLayer(layer)) + x.String(m.GetPhoneCodeHash()) + if m.GetNextType() != nil { + x.Bytes(m.GetNextType().EncodeToLayer(layer)) + } + if m.GetTimeout() != 0 { + x.Int(m.GetTimeout()) + } + if m.GetTermsOfService() != nil { + x.Bytes(m.GetTermsOfService().EncodeToLayer(layer)) } return x.buf } -func (m *TLUpdatePinnedDialogs) Decode(dbuf *DecodeBuf) error { +func (m *TLAuthSentCode) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags if (flags & (1 << 0)) != 0 { - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*DialogPeer, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &DialogPeer{} - v2[i].Decode(dbuf) - } - m.SetOrder(v2) - + m.SetPhoneRegistered(true) } - - return dbuf.err -} - -// updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; -func (m *TLUpdateBotWebhookJSON) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateBotWebhookJSON, - Data2: m.Data2, + m3 := &Auth_SentCodeType{} + m3.Decode(dbuf) + m.SetType(m3) + m.SetPhoneCodeHash(dbuf.String()) + if (flags & (1 << 1)) != 0 { + m5 := &Auth_CodeType{} + m5.Decode(dbuf) + m.SetNextType(m5) + } + if (flags & (1 << 2)) != 0 { + m.SetTimeout(dbuf.Int()) + } + if (flags & (1 << 3)) != 0 { + m7 := &Help_TermsOfService{} + m7.Decode(dbuf) + m.SetTermsOfService(m7) } -} - -func (m *TLUpdateBotWebhookJSON) SetData(v *DataJSON) { m.Data2.Data_63 = v } -func (m *TLUpdateBotWebhookJSON) GetData() *DataJSON { return m.Data2.Data_63 } -func NewTLUpdateBotWebhookJSON() *TLUpdateBotWebhookJSON { - return &TLUpdateBotWebhookJSON{Data2: &Update_Data{}} + return dbuf.err } -func (m *TLUpdateBotWebhookJSON) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotWebhookJSON)) +/////////////////////////////////////////////////////////////////////////////// +// Contact <-- +// + TL_Contact +// - x.Bytes(m.GetData().Encode()) +func (m *Contact) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_contact: + t := m.To_Contact() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateBotWebhookJSON) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotWebhookJSON)) - - x.Bytes(m.GetData().EncodeToLayer(layer)) +func (m *Contact) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_contact: + t := m.To_Contact() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateBotWebhookJSON) Decode(dbuf *DecodeBuf) error { - m1 := &DataJSON{} - m1.Decode(dbuf) - m.SetData(m1) +func (m *Contact) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_contact: + m2 := &TLContact{Data2: &Contact_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; -func (m *TLUpdateBotWebhookJSONQuery) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateBotWebhookJSONQuery, - Data2: m.Data2, +// contact#f911c994 user_id:int mutual:Bool = Contact; +func (m *Contact) To_Contact() *TLContact { + return &TLContact{ + Data2: m.Data2, } } -func (m *TLUpdateBotWebhookJSONQuery) SetQueryId(v int64) { m.Data2.QueryId = v } -func (m *TLUpdateBotWebhookJSONQuery) GetQueryId() int64 { return m.Data2.QueryId } - -func (m *TLUpdateBotWebhookJSONQuery) SetData(v *DataJSON) { m.Data2.Data_63 = v } -func (m *TLUpdateBotWebhookJSONQuery) GetData() *DataJSON { return m.Data2.Data_63 } - -func (m *TLUpdateBotWebhookJSONQuery) SetTimeout(v int32) { m.Data2.Timeout = v } -func (m *TLUpdateBotWebhookJSONQuery) GetTimeout() int32 { return m.Data2.Timeout } - -func NewTLUpdateBotWebhookJSONQuery() *TLUpdateBotWebhookJSONQuery { - return &TLUpdateBotWebhookJSONQuery{Data2: &Update_Data{}} -} - -func (m *TLUpdateBotWebhookJSONQuery) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotWebhookJSONQuery)) - - x.Long(m.GetQueryId()) - x.Bytes(m.GetData().Encode()) - x.Int(m.GetTimeout()) - - return x.buf -} - -func (m *TLUpdateBotWebhookJSONQuery) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotWebhookJSONQuery)) - - x.Long(m.GetQueryId()) - x.Bytes(m.GetData().EncodeToLayer(layer)) - x.Int(m.GetTimeout()) - - return x.buf -} - -func (m *TLUpdateBotWebhookJSONQuery) Decode(dbuf *DecodeBuf) error { - m.SetQueryId(dbuf.Long()) - m2 := &DataJSON{} - m2.Decode(dbuf) - m.SetData(m2) - m.SetTimeout(dbuf.Int()) - - return dbuf.err -} - -// updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; -func (m *TLUpdateBotShippingQuery) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateBotShippingQuery, +// contact#f911c994 user_id:int mutual:Bool = Contact; +func (m *TLContact) To_Contact() *Contact { + return &Contact{ + Constructor: TLConstructor_CRC32_contact, Data2: m.Data2, } } -func (m *TLUpdateBotShippingQuery) SetQueryId(v int64) { m.Data2.QueryId = v } -func (m *TLUpdateBotShippingQuery) GetQueryId() int64 { return m.Data2.QueryId } - -func (m *TLUpdateBotShippingQuery) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateBotShippingQuery) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLUpdateBotShippingQuery) SetPayload(v []byte) { m.Data2.Payload = v } -func (m *TLUpdateBotShippingQuery) GetPayload() []byte { return m.Data2.Payload } +func (m *TLContact) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLContact) GetUserId() int32 { return m.Data2.UserId } -func (m *TLUpdateBotShippingQuery) SetShippingAddress(v *PostAddress) { m.Data2.ShippingAddress = v } -func (m *TLUpdateBotShippingQuery) GetShippingAddress() *PostAddress { return m.Data2.ShippingAddress } +func (m *TLContact) SetMutual(v *Bool) { m.Data2.Mutual = v } +func (m *TLContact) GetMutual() *Bool { return m.Data2.Mutual } -func NewTLUpdateBotShippingQuery() *TLUpdateBotShippingQuery { - return &TLUpdateBotShippingQuery{Data2: &Update_Data{}} +func NewTLContact() *TLContact { + return &TLContact{Data2: &Contact_Data{}} } -func (m *TLUpdateBotShippingQuery) Encode() []byte { +func (m *TLContact) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotShippingQuery)) + x.Int(int32(TLConstructor_CRC32_contact)) - x.Long(m.GetQueryId()) x.Int(m.GetUserId()) - x.StringBytes(m.GetPayload()) - x.Bytes(m.GetShippingAddress().Encode()) + x.Bytes(m.GetMutual().Encode()) return x.buf } -func (m *TLUpdateBotShippingQuery) EncodeToLayer(layer int) []byte { +func (m *TLContact) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotShippingQuery)) + x.Int(int32(TLConstructor_CRC32_contact)) - x.Long(m.GetQueryId()) x.Int(m.GetUserId()) - x.StringBytes(m.GetPayload()) - x.Bytes(m.GetShippingAddress().EncodeToLayer(layer)) + x.Bytes(m.GetMutual().EncodeToLayer(layer)) return x.buf } -func (m *TLUpdateBotShippingQuery) Decode(dbuf *DecodeBuf) error { - m.SetQueryId(dbuf.Long()) +func (m *TLContact) Decode(dbuf *DecodeBuf) error { m.SetUserId(dbuf.Int()) - m.SetPayload(dbuf.StringBytes()) - m4 := &PostAddress{} - m4.Decode(dbuf) - m.SetShippingAddress(m4) + m2 := &Bool{} + m2.Decode(dbuf) + m.SetMutual(m2) return dbuf.err } -// updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; -func (m *TLUpdateBotPrecheckoutQuery) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateBotPrecheckoutQuery, - Data2: m.Data2, - } -} - -func (m *TLUpdateBotPrecheckoutQuery) SetQueryId(v int64) { m.Data2.QueryId = v } -func (m *TLUpdateBotPrecheckoutQuery) GetQueryId() int64 { return m.Data2.QueryId } - -func (m *TLUpdateBotPrecheckoutQuery) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateBotPrecheckoutQuery) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLUpdateBotPrecheckoutQuery) SetPayload(v []byte) { m.Data2.Payload = v } -func (m *TLUpdateBotPrecheckoutQuery) GetPayload() []byte { return m.Data2.Payload } - -func (m *TLUpdateBotPrecheckoutQuery) SetInfo(v *PaymentRequestedInfo) { m.Data2.Info = v } -func (m *TLUpdateBotPrecheckoutQuery) GetInfo() *PaymentRequestedInfo { return m.Data2.Info } - -func (m *TLUpdateBotPrecheckoutQuery) SetShippingOptionId(v string) { m.Data2.ShippingOptionId = v } -func (m *TLUpdateBotPrecheckoutQuery) GetShippingOptionId() string { return m.Data2.ShippingOptionId } - -func (m *TLUpdateBotPrecheckoutQuery) SetCurrency(v string) { m.Data2.Currency = v } -func (m *TLUpdateBotPrecheckoutQuery) GetCurrency() string { return m.Data2.Currency } +/////////////////////////////////////////////////////////////////////////////// +// Upload_File <-- +// + TL_UploadFile +// + TL_UploadFileCdnRedirect +// -func (m *TLUpdateBotPrecheckoutQuery) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } -func (m *TLUpdateBotPrecheckoutQuery) GetTotalAmount() int64 { return m.Data2.TotalAmount } +func (m *Upload_File) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_upload_file: + t := m.To_UploadFile() + return t.Encode() + case TLConstructor_CRC32_upload_fileCdnRedirect: + t := m.To_UploadFileCdnRedirect() + return t.Encode() -func NewTLUpdateBotPrecheckoutQuery() *TLUpdateBotPrecheckoutQuery { - return &TLUpdateBotPrecheckoutQuery{Data2: &Update_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateBotPrecheckoutQuery) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotPrecheckoutQuery)) - - // flags - var flags uint32 = 0 - if m.GetInfo() != nil { - flags |= 1 << 0 - } - if m.GetShippingOptionId() != "" { - flags |= 1 << 1 - } - x.UInt(flags) +func (m *Upload_File) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_upload_file: + t := m.To_UploadFile() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_upload_fileCdnRedirect: + t := m.To_UploadFileCdnRedirect() + return t.EncodeToLayer(layer) - x.Long(m.GetQueryId()) - x.Int(m.GetUserId()) - x.StringBytes(m.GetPayload()) - if m.GetInfo() != nil { - x.Bytes(m.GetInfo().Encode()) - } - if m.GetShippingOptionId() != "" { - x.String(m.GetShippingOptionId()) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) - - return x.buf } -func (m *TLUpdateBotPrecheckoutQuery) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateBotPrecheckoutQuery)) +func (m *Upload_File) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_upload_file: + m2 := &TLUploadFile{Data2: &Upload_File_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_upload_fileCdnRedirect: + m2 := &TLUploadFileCdnRedirect{Data2: &Upload_File_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - // flags - var flags uint32 = 0 - if m.GetInfo() != nil { - flags |= 1 << 0 - } - if m.GetShippingOptionId() != "" { - flags |= 1 << 1 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - x.UInt(flags) + return dbuf.err +} - x.Long(m.GetQueryId()) - x.Int(m.GetUserId()) - x.StringBytes(m.GetPayload()) - if m.GetInfo() != nil { - x.Bytes(m.GetInfo().EncodeToLayer(layer)) - } - if m.GetShippingOptionId() != "" { - x.String(m.GetShippingOptionId()) +// upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; +func (m *Upload_File) To_UploadFile() *TLUploadFile { + return &TLUploadFile{ + Data2: m.Data2, } - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) - - return x.buf } -func (m *TLUpdateBotPrecheckoutQuery) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetQueryId(dbuf.Long()) - m.SetUserId(dbuf.Int()) - m.SetPayload(dbuf.StringBytes()) - if (flags & (1 << 0)) != 0 { - m5 := &PaymentRequestedInfo{} - m5.Decode(dbuf) - m.SetInfo(m5) - } - if (flags & (1 << 1)) != 0 { - m.SetShippingOptionId(dbuf.String()) +// upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File; +func (m *Upload_File) To_UploadFileCdnRedirect() *TLUploadFileCdnRedirect { + return &TLUploadFileCdnRedirect{ + Data2: m.Data2, } - m.SetCurrency(dbuf.String()) - m.SetTotalAmount(dbuf.Long()) - - return dbuf.err } -// updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update; -func (m *TLUpdatePhoneCall) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updatePhoneCall, +// upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; +func (m *TLUploadFile) To_Upload_File() *Upload_File { + return &Upload_File{ + Constructor: TLConstructor_CRC32_upload_file, Data2: m.Data2, } } -func (m *TLUpdatePhoneCall) SetPhoneCall(v *PhoneCall) { m.Data2.PhoneCall = v } -func (m *TLUpdatePhoneCall) GetPhoneCall() *PhoneCall { return m.Data2.PhoneCall } +func (m *TLUploadFile) SetType(v *Storage_FileType) { m.Data2.Type = v } +func (m *TLUploadFile) GetType() *Storage_FileType { return m.Data2.Type } -func NewTLUpdatePhoneCall() *TLUpdatePhoneCall { - return &TLUpdatePhoneCall{Data2: &Update_Data{}} +func (m *TLUploadFile) SetMtime(v int32) { m.Data2.Mtime = v } +func (m *TLUploadFile) GetMtime() int32 { return m.Data2.Mtime } + +func (m *TLUploadFile) SetBytes(v []byte) { m.Data2.Bytes = v } +func (m *TLUploadFile) GetBytes() []byte { return m.Data2.Bytes } + +func NewTLUploadFile() *TLUploadFile { + return &TLUploadFile{Data2: &Upload_File_Data{}} } -func (m *TLUpdatePhoneCall) Encode() []byte { +func (m *TLUploadFile) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatePhoneCall)) + x.Int(int32(TLConstructor_CRC32_upload_file)) - x.Bytes(m.GetPhoneCall().Encode()) + x.Bytes(m.GetType().Encode()) + x.Int(m.GetMtime()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLUpdatePhoneCall) EncodeToLayer(layer int) []byte { +func (m *TLUploadFile) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatePhoneCall)) + x.Int(int32(TLConstructor_CRC32_upload_file)) - x.Bytes(m.GetPhoneCall().EncodeToLayer(layer)) + x.Bytes(m.GetType().EncodeToLayer(layer)) + x.Int(m.GetMtime()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLUpdatePhoneCall) Decode(dbuf *DecodeBuf) error { - m1 := &PhoneCall{} +func (m *TLUploadFile) Decode(dbuf *DecodeBuf) error { + m1 := &Storage_FileType{} m1.Decode(dbuf) - m.SetPhoneCall(m1) + m.SetType(m1) + m.SetMtime(dbuf.Int()) + m.SetBytes(dbuf.StringBytes()) return dbuf.err } -// updateLangPackTooLong#10c2404b = Update; -func (m *TLUpdateLangPackTooLong) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateLangPackTooLong, +// upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File; +func (m *TLUploadFileCdnRedirect) To_Upload_File() *Upload_File { + return &Upload_File{ + Constructor: TLConstructor_CRC32_upload_fileCdnRedirect, Data2: m.Data2, } } -func NewTLUpdateLangPackTooLong() *TLUpdateLangPackTooLong { - return &TLUpdateLangPackTooLong{Data2: &Update_Data{}} -} - -func (m *TLUpdateLangPackTooLong) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateLangPackTooLong)) - - return x.buf -} - -func (m *TLUpdateLangPackTooLong) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateLangPackTooLong)) - - return x.buf -} +func (m *TLUploadFileCdnRedirect) SetDcId(v int32) { m.Data2.DcId = v } +func (m *TLUploadFileCdnRedirect) GetDcId() int32 { return m.Data2.DcId } -func (m *TLUpdateLangPackTooLong) Decode(dbuf *DecodeBuf) error { +func (m *TLUploadFileCdnRedirect) SetFileToken(v []byte) { m.Data2.FileToken = v } +func (m *TLUploadFileCdnRedirect) GetFileToken() []byte { return m.Data2.FileToken } - return dbuf.err -} +func (m *TLUploadFileCdnRedirect) SetEncryptionKey(v []byte) { m.Data2.EncryptionKey = v } +func (m *TLUploadFileCdnRedirect) GetEncryptionKey() []byte { return m.Data2.EncryptionKey } -// updateLangPack#56022f4d difference:LangPackDifference = Update; -func (m *TLUpdateLangPack) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateLangPack, - Data2: m.Data2, - } -} +func (m *TLUploadFileCdnRedirect) SetEncryptionIv(v []byte) { m.Data2.EncryptionIv = v } +func (m *TLUploadFileCdnRedirect) GetEncryptionIv() []byte { return m.Data2.EncryptionIv } -func (m *TLUpdateLangPack) SetDifference(v *LangPackDifference) { m.Data2.Difference = v } -func (m *TLUpdateLangPack) GetDifference() *LangPackDifference { return m.Data2.Difference } +func (m *TLUploadFileCdnRedirect) SetFileHashes(v []*FileHash) { m.Data2.FileHashes = v } +func (m *TLUploadFileCdnRedirect) GetFileHashes() []*FileHash { return m.Data2.FileHashes } -func NewTLUpdateLangPack() *TLUpdateLangPack { - return &TLUpdateLangPack{Data2: &Update_Data{}} +func NewTLUploadFileCdnRedirect() *TLUploadFileCdnRedirect { + return &TLUploadFileCdnRedirect{Data2: &Upload_File_Data{}} } -func (m *TLUpdateLangPack) Encode() []byte { +func (m *TLUploadFileCdnRedirect) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateLangPack)) + x.Int(int32(TLConstructor_CRC32_upload_fileCdnRedirect)) - x.Bytes(m.GetDifference().Encode()) + x.Int(m.GetDcId()) + x.StringBytes(m.GetFileToken()) + x.StringBytes(m.GetEncryptionKey()) + x.StringBytes(m.GetEncryptionIv()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetFileHashes()))) + for _, v := range m.GetFileHashes() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLUpdateLangPack) EncodeToLayer(layer int) []byte { +func (m *TLUploadFileCdnRedirect) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateLangPack)) + x.Int(int32(TLConstructor_CRC32_upload_fileCdnRedirect)) - x.Bytes(m.GetDifference().EncodeToLayer(layer)) + x.Int(m.GetDcId()) + x.StringBytes(m.GetFileToken()) + x.StringBytes(m.GetEncryptionKey()) + x.StringBytes(m.GetEncryptionIv()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetFileHashes()))) + for _, v := range m.GetFileHashes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLUpdateLangPack) Decode(dbuf *DecodeBuf) error { - m1 := &LangPackDifference{} - m1.Decode(dbuf) - m.SetDifference(m1) +func (m *TLUploadFileCdnRedirect) Decode(dbuf *DecodeBuf) error { + m.SetDcId(dbuf.Int()) + m.SetFileToken(dbuf.StringBytes()) + m.SetEncryptionKey(dbuf.StringBytes()) + m.SetEncryptionIv(dbuf.StringBytes()) + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*FileHash, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &FileHash{} + v5[i].Decode(dbuf) + } + m.SetFileHashes(v5) return dbuf.err } -// updateFavedStickers#e511996d = Update; -func (m *TLUpdateFavedStickers) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateFavedStickers, - Data2: m.Data2, - } -} - -func NewTLUpdateFavedStickers() *TLUpdateFavedStickers { - return &TLUpdateFavedStickers{Data2: &Update_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// PrivacyKey <-- +// + TL_PrivacyKeyStatusTimestamp +// + TL_PrivacyKeyChatInvite +// + TL_PrivacyKeyPhoneCall +// -func (m *TLUpdateFavedStickers) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateFavedStickers)) +func (m *PrivacyKey) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_privacyKeyStatusTimestamp: + t := m.To_PrivacyKeyStatusTimestamp() + return t.Encode() + case TLConstructor_CRC32_privacyKeyChatInvite: + t := m.To_PrivacyKeyChatInvite() + return t.Encode() + case TLConstructor_CRC32_privacyKeyPhoneCall: + t := m.To_PrivacyKeyPhoneCall() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateFavedStickers) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateFavedStickers)) +func (m *PrivacyKey) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_privacyKeyStatusTimestamp: + t := m.To_PrivacyKeyStatusTimestamp() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_privacyKeyChatInvite: + t := m.To_PrivacyKeyChatInvite() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_privacyKeyPhoneCall: + t := m.To_PrivacyKeyPhoneCall() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLUpdateFavedStickers) Decode(dbuf *DecodeBuf) error { +func (m *PrivacyKey) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_privacyKeyStatusTimestamp: + m2 := &TLPrivacyKeyStatusTimestamp{Data2: &PrivacyKey_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_privacyKeyChatInvite: + m2 := &TLPrivacyKeyChatInvite{Data2: &PrivacyKey_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_privacyKeyPhoneCall: + m2 := &TLPrivacyKeyPhoneCall{Data2: &PrivacyKey_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector = Update; -func (m *TLUpdateChannelReadMessagesContents) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChannelReadMessagesContents, - Data2: m.Data2, +// privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; +func (m *PrivacyKey) To_PrivacyKeyStatusTimestamp() *TLPrivacyKeyStatusTimestamp { + return &TLPrivacyKeyStatusTimestamp{ + Data2: m.Data2, } } -func (m *TLUpdateChannelReadMessagesContents) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateChannelReadMessagesContents) GetChannelId() int32 { return m.Data2.ChannelId } - -func (m *TLUpdateChannelReadMessagesContents) SetMessages(v []int32) { m.Data2.Messages = v } -func (m *TLUpdateChannelReadMessagesContents) GetMessages() []int32 { return m.Data2.Messages } - -func NewTLUpdateChannelReadMessagesContents() *TLUpdateChannelReadMessagesContents { - return &TLUpdateChannelReadMessagesContents{Data2: &Update_Data{}} -} - -func (m *TLUpdateChannelReadMessagesContents) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelReadMessagesContents)) - - x.Int(m.GetChannelId()) - x.VectorInt(m.GetMessages()) - - return x.buf -} - -func (m *TLUpdateChannelReadMessagesContents) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelReadMessagesContents)) - - x.Int(m.GetChannelId()) - x.VectorInt(m.GetMessages()) - - return x.buf +// privacyKeyChatInvite#500e6dfa = PrivacyKey; +func (m *PrivacyKey) To_PrivacyKeyChatInvite() *TLPrivacyKeyChatInvite { + return &TLPrivacyKeyChatInvite{ + Data2: m.Data2, + } } -func (m *TLUpdateChannelReadMessagesContents) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m.SetMessages(dbuf.VectorInt()) - - return dbuf.err +// privacyKeyPhoneCall#3d662b7b = PrivacyKey; +func (m *PrivacyKey) To_PrivacyKeyPhoneCall() *TLPrivacyKeyPhoneCall { + return &TLPrivacyKeyPhoneCall{ + Data2: m.Data2, + } } -// updateContactsReset#7084a7be = Update; -func (m *TLUpdateContactsReset) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateContactsReset, +// privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; +func (m *TLPrivacyKeyStatusTimestamp) To_PrivacyKey() *PrivacyKey { + return &PrivacyKey{ + Constructor: TLConstructor_CRC32_privacyKeyStatusTimestamp, Data2: m.Data2, } } -func NewTLUpdateContactsReset() *TLUpdateContactsReset { - return &TLUpdateContactsReset{Data2: &Update_Data{}} +func NewTLPrivacyKeyStatusTimestamp() *TLPrivacyKeyStatusTimestamp { + return &TLPrivacyKeyStatusTimestamp{Data2: &PrivacyKey_Data{}} } -func (m *TLUpdateContactsReset) Encode() []byte { +func (m *TLPrivacyKeyStatusTimestamp) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateContactsReset)) + x.Int(int32(TLConstructor_CRC32_privacyKeyStatusTimestamp)) return x.buf } -func (m *TLUpdateContactsReset) EncodeToLayer(layer int) []byte { +func (m *TLPrivacyKeyStatusTimestamp) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateContactsReset)) + x.Int(int32(TLConstructor_CRC32_privacyKeyStatusTimestamp)) return x.buf } -func (m *TLUpdateContactsReset) Decode(dbuf *DecodeBuf) error { +func (m *TLPrivacyKeyStatusTimestamp) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update; -func (m *TLUpdateChannelAvailableMessages) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateChannelAvailableMessages, +// privacyKeyChatInvite#500e6dfa = PrivacyKey; +func (m *TLPrivacyKeyChatInvite) To_PrivacyKey() *PrivacyKey { + return &PrivacyKey{ + Constructor: TLConstructor_CRC32_privacyKeyChatInvite, Data2: m.Data2, } } -func (m *TLUpdateChannelAvailableMessages) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLUpdateChannelAvailableMessages) GetChannelId() int32 { return m.Data2.ChannelId } - -func (m *TLUpdateChannelAvailableMessages) SetAvailableMinId(v int32) { m.Data2.AvailableMinId = v } -func (m *TLUpdateChannelAvailableMessages) GetAvailableMinId() int32 { return m.Data2.AvailableMinId } - -func NewTLUpdateChannelAvailableMessages() *TLUpdateChannelAvailableMessages { - return &TLUpdateChannelAvailableMessages{Data2: &Update_Data{}} +func NewTLPrivacyKeyChatInvite() *TLPrivacyKeyChatInvite { + return &TLPrivacyKeyChatInvite{Data2: &PrivacyKey_Data{}} } -func (m *TLUpdateChannelAvailableMessages) Encode() []byte { +func (m *TLPrivacyKeyChatInvite) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelAvailableMessages)) - - x.Int(m.GetChannelId()) - x.Int(m.GetAvailableMinId()) + x.Int(int32(TLConstructor_CRC32_privacyKeyChatInvite)) return x.buf } -func (m *TLUpdateChannelAvailableMessages) EncodeToLayer(layer int) []byte { +func (m *TLPrivacyKeyChatInvite) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateChannelAvailableMessages)) - - x.Int(m.GetChannelId()) - x.Int(m.GetAvailableMinId()) + x.Int(int32(TLConstructor_CRC32_privacyKeyChatInvite)) return x.buf } -func (m *TLUpdateChannelAvailableMessages) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m.SetAvailableMinId(dbuf.Int()) +func (m *TLPrivacyKeyChatInvite) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update; -func (m *TLUpdateDialogUnreadMark) To_Update() *Update { - return &Update{ - Constructor: TLConstructor_CRC32_updateDialogUnreadMark, +// privacyKeyPhoneCall#3d662b7b = PrivacyKey; +func (m *TLPrivacyKeyPhoneCall) To_PrivacyKey() *PrivacyKey { + return &PrivacyKey{ + Constructor: TLConstructor_CRC32_privacyKeyPhoneCall, Data2: m.Data2, } } -func (m *TLUpdateDialogUnreadMark) SetUnread(v bool) { m.Data2.Unread = v } -func (m *TLUpdateDialogUnreadMark) GetUnread() bool { return m.Data2.Unread } - -func (m *TLUpdateDialogUnreadMark) SetPeer(v *DialogPeer) { m.Data2.Peer_61 = v } -func (m *TLUpdateDialogUnreadMark) GetPeer() *DialogPeer { return m.Data2.Peer_61 } - -func NewTLUpdateDialogUnreadMark() *TLUpdateDialogUnreadMark { - return &TLUpdateDialogUnreadMark{Data2: &Update_Data{}} +func NewTLPrivacyKeyPhoneCall() *TLPrivacyKeyPhoneCall { + return &TLPrivacyKeyPhoneCall{Data2: &PrivacyKey_Data{}} } -func (m *TLUpdateDialogUnreadMark) Encode() []byte { +func (m *TLPrivacyKeyPhoneCall) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDialogUnreadMark)) - - // flags - var flags uint32 = 0 - if m.GetUnread() == true { - flags |= 1 << 0 - } - x.UInt(flags) - - x.Bytes(m.GetPeer().Encode()) + x.Int(int32(TLConstructor_CRC32_privacyKeyPhoneCall)) return x.buf } -func (m *TLUpdateDialogUnreadMark) EncodeToLayer(layer int) []byte { +func (m *TLPrivacyKeyPhoneCall) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateDialogUnreadMark)) - - // flags - var flags uint32 = 0 - if m.GetUnread() == true { - flags |= 1 << 0 - } - x.UInt(flags) - - x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_privacyKeyPhoneCall)) return x.buf } -func (m *TLUpdateDialogUnreadMark) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetUnread(true) - } - m3 := &DialogPeer{} - m3.Decode(dbuf) - m.SetPeer(m3) +func (m *TLPrivacyKeyPhoneCall) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// WebPage <-- -// + TL_WebPageEmpty -// + TL_WebPagePending -// + TL_WebPage -// + TL_WebPageNotModified +// ChannelAdminLogEventsFilter <-- +// + TL_ChannelAdminLogEventsFilter // -func (m *WebPage) Encode() []byte { +func (m *ChannelAdminLogEventsFilter) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_webPageEmpty: - t := m.To_WebPageEmpty() - return t.Encode() - case TLConstructor_CRC32_webPagePending: - t := m.To_WebPagePending() - return t.Encode() - case TLConstructor_CRC32_webPage: - t := m.To_WebPage() - return t.Encode() - case TLConstructor_CRC32_webPageNotModified: - t := m.To_WebPageNotModified() + case TLConstructor_CRC32_channelAdminLogEventsFilter: + t := m.To_ChannelAdminLogEventsFilter() return t.Encode() default: @@ -21101,20 +21860,11 @@ func (m *WebPage) Encode() []byte { } } -func (m *WebPage) EncodeToLayer(layer int) []byte { +func (m *ChannelAdminLogEventsFilter) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_webPageEmpty: - t := m.To_WebPageEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_webPagePending: - t := m.To_WebPagePending() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_webPage: - t := m.To_WebPage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_webPageNotModified: - t := m.To_WebPageNotModified() + case TLConstructor_CRC32_channelAdminLogEventsFilter: + t := m.To_ChannelAdminLogEventsFilter() return t.EncodeToLayer(layer) default: @@ -21123,23 +21873,11 @@ func (m *WebPage) EncodeToLayer(layer int) []byte { } } -func (m *WebPage) Decode(dbuf *DecodeBuf) error { +func (m *ChannelAdminLogEventsFilter) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_webPageEmpty: - m2 := &TLWebPageEmpty{Data2: &WebPage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_webPagePending: - m2 := &TLWebPagePending{Data2: &WebPage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_webPage: - m2 := &TLWebPage{Data2: &WebPage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_webPageNotModified: - m2 := &TLWebPageNotModified{Data2: &WebPage_Data{}} + case TLConstructor_CRC32_channelAdminLogEventsFilter: + m2 := &TLChannelAdminLogEventsFilter{Data2: &ChannelAdminLogEventsFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -21149,469 +21887,235 @@ func (m *WebPage) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// webPageEmpty#eb1477e8 id:long = WebPage; -func (m *WebPage) To_WebPageEmpty() *TLWebPageEmpty { - return &TLWebPageEmpty{ - Data2: m.Data2, - } -} - -// webPagePending#c586da1c id:long date:int = WebPage; -func (m *WebPage) To_WebPagePending() *TLWebPagePending { - return &TLWebPagePending{ - Data2: m.Data2, - } -} - -// webPage#5f07b4bc flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page = WebPage; -func (m *WebPage) To_WebPage() *TLWebPage { - return &TLWebPage{ - Data2: m.Data2, - } -} - -// webPageNotModified#85849473 = WebPage; -func (m *WebPage) To_WebPageNotModified() *TLWebPageNotModified { - return &TLWebPageNotModified{ +// channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; +func (m *ChannelAdminLogEventsFilter) To_ChannelAdminLogEventsFilter() *TLChannelAdminLogEventsFilter { + return &TLChannelAdminLogEventsFilter{ Data2: m.Data2, } } -// webPageEmpty#eb1477e8 id:long = WebPage; -func (m *TLWebPageEmpty) To_WebPage() *WebPage { - return &WebPage{ - Constructor: TLConstructor_CRC32_webPageEmpty, +// channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; +func (m *TLChannelAdminLogEventsFilter) To_ChannelAdminLogEventsFilter() *ChannelAdminLogEventsFilter { + return &ChannelAdminLogEventsFilter{ + Constructor: TLConstructor_CRC32_channelAdminLogEventsFilter, Data2: m.Data2, } } -func (m *TLWebPageEmpty) SetId(v int64) { m.Data2.Id = v } -func (m *TLWebPageEmpty) GetId() int64 { return m.Data2.Id } - -func NewTLWebPageEmpty() *TLWebPageEmpty { - return &TLWebPageEmpty{Data2: &WebPage_Data{}} -} - -func (m *TLWebPageEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webPageEmpty)) +func (m *TLChannelAdminLogEventsFilter) SetJoin(v bool) { m.Data2.Join = v } +func (m *TLChannelAdminLogEventsFilter) GetJoin() bool { return m.Data2.Join } - x.Long(m.GetId()) +func (m *TLChannelAdminLogEventsFilter) SetLeave(v bool) { m.Data2.Leave = v } +func (m *TLChannelAdminLogEventsFilter) GetLeave() bool { return m.Data2.Leave } - return x.buf -} +func (m *TLChannelAdminLogEventsFilter) SetInvite(v bool) { m.Data2.Invite = v } +func (m *TLChannelAdminLogEventsFilter) GetInvite() bool { return m.Data2.Invite } -func (m *TLWebPageEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webPageEmpty)) +func (m *TLChannelAdminLogEventsFilter) SetBan(v bool) { m.Data2.Ban = v } +func (m *TLChannelAdminLogEventsFilter) GetBan() bool { return m.Data2.Ban } - x.Long(m.GetId()) +func (m *TLChannelAdminLogEventsFilter) SetUnban(v bool) { m.Data2.Unban = v } +func (m *TLChannelAdminLogEventsFilter) GetUnban() bool { return m.Data2.Unban } - return x.buf -} +func (m *TLChannelAdminLogEventsFilter) SetKick(v bool) { m.Data2.Kick = v } +func (m *TLChannelAdminLogEventsFilter) GetKick() bool { return m.Data2.Kick } -func (m *TLWebPageEmpty) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) +func (m *TLChannelAdminLogEventsFilter) SetUnkick(v bool) { m.Data2.Unkick = v } +func (m *TLChannelAdminLogEventsFilter) GetUnkick() bool { return m.Data2.Unkick } - return dbuf.err -} +func (m *TLChannelAdminLogEventsFilter) SetPromote(v bool) { m.Data2.Promote = v } +func (m *TLChannelAdminLogEventsFilter) GetPromote() bool { return m.Data2.Promote } -// webPagePending#c586da1c id:long date:int = WebPage; -func (m *TLWebPagePending) To_WebPage() *WebPage { - return &WebPage{ - Constructor: TLConstructor_CRC32_webPagePending, - Data2: m.Data2, - } -} +func (m *TLChannelAdminLogEventsFilter) SetDemote(v bool) { m.Data2.Demote = v } +func (m *TLChannelAdminLogEventsFilter) GetDemote() bool { return m.Data2.Demote } -func (m *TLWebPagePending) SetId(v int64) { m.Data2.Id = v } -func (m *TLWebPagePending) GetId() int64 { return m.Data2.Id } +func (m *TLChannelAdminLogEventsFilter) SetInfo(v bool) { m.Data2.Info = v } +func (m *TLChannelAdminLogEventsFilter) GetInfo() bool { return m.Data2.Info } -func (m *TLWebPagePending) SetDate(v int32) { m.Data2.Date = v } -func (m *TLWebPagePending) GetDate() int32 { return m.Data2.Date } +func (m *TLChannelAdminLogEventsFilter) SetSettings(v bool) { m.Data2.Settings = v } +func (m *TLChannelAdminLogEventsFilter) GetSettings() bool { return m.Data2.Settings } -func NewTLWebPagePending() *TLWebPagePending { - return &TLWebPagePending{Data2: &WebPage_Data{}} -} +func (m *TLChannelAdminLogEventsFilter) SetPinned(v bool) { m.Data2.Pinned = v } +func (m *TLChannelAdminLogEventsFilter) GetPinned() bool { return m.Data2.Pinned } -func (m *TLWebPagePending) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webPagePending)) +func (m *TLChannelAdminLogEventsFilter) SetEdit(v bool) { m.Data2.Edit = v } +func (m *TLChannelAdminLogEventsFilter) GetEdit() bool { return m.Data2.Edit } - x.Long(m.GetId()) - x.Int(m.GetDate()) +func (m *TLChannelAdminLogEventsFilter) SetDelete(v bool) { m.Data2.Delete = v } +func (m *TLChannelAdminLogEventsFilter) GetDelete() bool { return m.Data2.Delete } - return x.buf +func NewTLChannelAdminLogEventsFilter() *TLChannelAdminLogEventsFilter { + return &TLChannelAdminLogEventsFilter{Data2: &ChannelAdminLogEventsFilter_Data{}} } -func (m *TLWebPagePending) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminLogEventsFilter) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webPagePending)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventsFilter)) - x.Long(m.GetId()) - x.Int(m.GetDate()) + // flags + var flags uint32 = 0 + if m.GetJoin() == true { + flags |= 1 << 0 + } + if m.GetLeave() == true { + flags |= 1 << 1 + } + if m.GetInvite() == true { + flags |= 1 << 2 + } + if m.GetBan() == true { + flags |= 1 << 3 + } + if m.GetUnban() == true { + flags |= 1 << 4 + } + if m.GetKick() == true { + flags |= 1 << 5 + } + if m.GetUnkick() == true { + flags |= 1 << 6 + } + if m.GetPromote() == true { + flags |= 1 << 7 + } + if m.GetDemote() == true { + flags |= 1 << 8 + } + if m.GetInfo() == true { + flags |= 1 << 9 + } + if m.GetSettings() == true { + flags |= 1 << 10 + } + if m.GetPinned() == true { + flags |= 1 << 11 + } + if m.GetEdit() == true { + flags |= 1 << 12 + } + if m.GetDelete() == true { + flags |= 1 << 13 + } + x.UInt(flags) return x.buf } -func (m *TLWebPagePending) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetDate(dbuf.Int()) - - return dbuf.err -} +func (m *TLChannelAdminLogEventsFilter) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventsFilter)) -// webPage#5f07b4bc flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page = WebPage; -func (m *TLWebPage) To_WebPage() *WebPage { - return &WebPage{ - Constructor: TLConstructor_CRC32_webPage, - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetJoin() == true { + flags |= 1 << 0 } -} - -func (m *TLWebPage) SetId(v int64) { m.Data2.Id = v } -func (m *TLWebPage) GetId() int64 { return m.Data2.Id } - -func (m *TLWebPage) SetUrl(v string) { m.Data2.Url = v } -func (m *TLWebPage) GetUrl() string { return m.Data2.Url } - -func (m *TLWebPage) SetDisplayUrl(v string) { m.Data2.DisplayUrl = v } -func (m *TLWebPage) GetDisplayUrl() string { return m.Data2.DisplayUrl } - -func (m *TLWebPage) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLWebPage) GetHash() int32 { return m.Data2.Hash } - -func (m *TLWebPage) SetType(v string) { m.Data2.Type = v } -func (m *TLWebPage) GetType() string { return m.Data2.Type } - -func (m *TLWebPage) SetSiteName(v string) { m.Data2.SiteName = v } -func (m *TLWebPage) GetSiteName() string { return m.Data2.SiteName } - -func (m *TLWebPage) SetTitle(v string) { m.Data2.Title = v } -func (m *TLWebPage) GetTitle() string { return m.Data2.Title } - -func (m *TLWebPage) SetDescription(v string) { m.Data2.Description = v } -func (m *TLWebPage) GetDescription() string { return m.Data2.Description } - -func (m *TLWebPage) SetPhoto(v *Photo) { m.Data2.Photo = v } -func (m *TLWebPage) GetPhoto() *Photo { return m.Data2.Photo } - -func (m *TLWebPage) SetEmbedUrl(v string) { m.Data2.EmbedUrl = v } -func (m *TLWebPage) GetEmbedUrl() string { return m.Data2.EmbedUrl } - -func (m *TLWebPage) SetEmbedType(v string) { m.Data2.EmbedType = v } -func (m *TLWebPage) GetEmbedType() string { return m.Data2.EmbedType } - -func (m *TLWebPage) SetEmbedWidth(v int32) { m.Data2.EmbedWidth = v } -func (m *TLWebPage) GetEmbedWidth() int32 { return m.Data2.EmbedWidth } - -func (m *TLWebPage) SetEmbedHeight(v int32) { m.Data2.EmbedHeight = v } -func (m *TLWebPage) GetEmbedHeight() int32 { return m.Data2.EmbedHeight } - -func (m *TLWebPage) SetDuration(v int32) { m.Data2.Duration = v } -func (m *TLWebPage) GetDuration() int32 { return m.Data2.Duration } - -func (m *TLWebPage) SetAuthor(v string) { m.Data2.Author = v } -func (m *TLWebPage) GetAuthor() string { return m.Data2.Author } - -func (m *TLWebPage) SetDocument(v *Document) { m.Data2.Document = v } -func (m *TLWebPage) GetDocument() *Document { return m.Data2.Document } - -func (m *TLWebPage) SetCachedPage(v *Page) { m.Data2.CachedPage = v } -func (m *TLWebPage) GetCachedPage() *Page { return m.Data2.CachedPage } - -func NewTLWebPage() *TLWebPage { - return &TLWebPage{Data2: &WebPage_Data{}} -} - -func (m *TLWebPage) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webPage)) - - // flags - var flags uint32 = 0 - if m.GetType() != "" { - flags |= 1 << 0 - } - if m.GetSiteName() != "" { + if m.GetLeave() == true { flags |= 1 << 1 } - if m.GetTitle() != "" { + if m.GetInvite() == true { flags |= 1 << 2 } - if m.GetDescription() != "" { + if m.GetBan() == true { flags |= 1 << 3 } - if m.GetPhoto() != nil { + if m.GetUnban() == true { flags |= 1 << 4 } - if m.GetEmbedUrl() != "" { - flags |= 1 << 5 - } - if m.GetEmbedType() != "" { + if m.GetKick() == true { flags |= 1 << 5 } - if m.GetEmbedWidth() != 0 { - flags |= 1 << 6 - } - if m.GetEmbedHeight() != 0 { + if m.GetUnkick() == true { flags |= 1 << 6 } - if m.GetDuration() != 0 { + if m.GetPromote() == true { flags |= 1 << 7 } - if m.GetAuthor() != "" { + if m.GetDemote() == true { flags |= 1 << 8 } - if m.GetDocument() != nil { + if m.GetInfo() == true { flags |= 1 << 9 } - if m.GetCachedPage() != nil { + if m.GetSettings() == true { flags |= 1 << 10 } - x.UInt(flags) - - x.Long(m.GetId()) - x.String(m.GetUrl()) - x.String(m.GetDisplayUrl()) - x.Int(m.GetHash()) - if m.GetType() != "" { - x.String(m.GetType()) - } - if m.GetSiteName() != "" { - x.String(m.GetSiteName()) - } - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetDescription() != "" { - x.String(m.GetDescription()) - } - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().Encode()) - } - if m.GetEmbedUrl() != "" { - x.String(m.GetEmbedUrl()) - } - if m.GetEmbedType() != "" { - x.String(m.GetEmbedType()) - } - if m.GetEmbedWidth() != 0 { - x.Int(m.GetEmbedWidth()) - } - if m.GetEmbedHeight() != 0 { - x.Int(m.GetEmbedHeight()) - } - if m.GetDuration() != 0 { - x.Int(m.GetDuration()) - } - if m.GetAuthor() != "" { - x.String(m.GetAuthor()) - } - if m.GetDocument() != nil { - x.Bytes(m.GetDocument().Encode()) - } - if m.GetCachedPage() != nil { - x.Bytes(m.GetCachedPage().Encode()) - } - - return x.buf -} - -func (m *TLWebPage) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webPage)) - - // flags - var flags uint32 = 0 - if m.GetType() != "" { - flags |= 1 << 0 - } - if m.GetSiteName() != "" { - flags |= 1 << 1 - } - if m.GetTitle() != "" { - flags |= 1 << 2 - } - if m.GetDescription() != "" { - flags |= 1 << 3 - } - if m.GetPhoto() != nil { - flags |= 1 << 4 - } - if m.GetEmbedUrl() != "" { - flags |= 1 << 5 - } - if m.GetEmbedType() != "" { - flags |= 1 << 5 - } - if m.GetEmbedWidth() != 0 { - flags |= 1 << 6 - } - if m.GetEmbedHeight() != 0 { - flags |= 1 << 6 - } - if m.GetDuration() != 0 { - flags |= 1 << 7 - } - if m.GetAuthor() != "" { - flags |= 1 << 8 + if m.GetPinned() == true { + flags |= 1 << 11 } - if m.GetDocument() != nil { - flags |= 1 << 9 + if m.GetEdit() == true { + flags |= 1 << 12 } - if m.GetCachedPage() != nil { - flags |= 1 << 10 + if m.GetDelete() == true { + flags |= 1 << 13 } x.UInt(flags) - x.Long(m.GetId()) - x.String(m.GetUrl()) - x.String(m.GetDisplayUrl()) - x.Int(m.GetHash()) - if m.GetType() != "" { - x.String(m.GetType()) - } - if m.GetSiteName() != "" { - x.String(m.GetSiteName()) - } - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetDescription() != "" { - x.String(m.GetDescription()) - } - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - } - if m.GetEmbedUrl() != "" { - x.String(m.GetEmbedUrl()) - } - if m.GetEmbedType() != "" { - x.String(m.GetEmbedType()) - } - if m.GetEmbedWidth() != 0 { - x.Int(m.GetEmbedWidth()) - } - if m.GetEmbedHeight() != 0 { - x.Int(m.GetEmbedHeight()) - } - if m.GetDuration() != 0 { - x.Int(m.GetDuration()) - } - if m.GetAuthor() != "" { - x.String(m.GetAuthor()) - } - if m.GetDocument() != nil { - x.Bytes(m.GetDocument().EncodeToLayer(layer)) - } - if m.GetCachedPage() != nil { - x.Bytes(m.GetCachedPage().EncodeToLayer(layer)) - } - return x.buf } -func (m *TLWebPage) Decode(dbuf *DecodeBuf) error { +func (m *TLChannelAdminLogEventsFilter) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m.SetId(dbuf.Long()) - m.SetUrl(dbuf.String()) - m.SetDisplayUrl(dbuf.String()) - m.SetHash(dbuf.Int()) if (flags & (1 << 0)) != 0 { - m.SetType(dbuf.String()) + m.SetJoin(true) } if (flags & (1 << 1)) != 0 { - m.SetSiteName(dbuf.String()) + m.SetLeave(true) } if (flags & (1 << 2)) != 0 { - m.SetTitle(dbuf.String()) + m.SetInvite(true) } if (flags & (1 << 3)) != 0 { - m.SetDescription(dbuf.String()) + m.SetBan(true) } if (flags & (1 << 4)) != 0 { - m10 := &Photo{} - m10.Decode(dbuf) - m.SetPhoto(m10) - } - if (flags & (1 << 5)) != 0 { - m.SetEmbedUrl(dbuf.String()) + m.SetUnban(true) } if (flags & (1 << 5)) != 0 { - m.SetEmbedType(dbuf.String()) - } - if (flags & (1 << 6)) != 0 { - m.SetEmbedWidth(dbuf.Int()) + m.SetKick(true) } if (flags & (1 << 6)) != 0 { - m.SetEmbedHeight(dbuf.Int()) + m.SetUnkick(true) } if (flags & (1 << 7)) != 0 { - m.SetDuration(dbuf.Int()) + m.SetPromote(true) } if (flags & (1 << 8)) != 0 { - m.SetAuthor(dbuf.String()) + m.SetDemote(true) } if (flags & (1 << 9)) != 0 { - m17 := &Document{} - m17.Decode(dbuf) - m.SetDocument(m17) + m.SetInfo(true) } if (flags & (1 << 10)) != 0 { - m18 := &Page{} - m18.Decode(dbuf) - m.SetCachedPage(m18) + m.SetSettings(true) } - - return dbuf.err -} - -// webPageNotModified#85849473 = WebPage; -func (m *TLWebPageNotModified) To_WebPage() *WebPage { - return &WebPage{ - Constructor: TLConstructor_CRC32_webPageNotModified, - Data2: m.Data2, + if (flags & (1 << 11)) != 0 { + m.SetPinned(true) + } + if (flags & (1 << 12)) != 0 { + m.SetEdit(true) + } + if (flags & (1 << 13)) != 0 { + m.SetDelete(true) } -} - -func NewTLWebPageNotModified() *TLWebPageNotModified { - return &TLWebPageNotModified{Data2: &WebPage_Data{}} -} - -func (m *TLWebPageNotModified) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webPageNotModified)) - - return x.buf -} - -func (m *TLWebPageNotModified) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webPageNotModified)) - - return x.buf -} - -func (m *TLWebPageNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Upload_CdnFile <-- -// + TL_UploadCdnFileReuploadNeeded -// + TL_UploadCdnFile +// ChatFull <-- +// + TL_ChatFull +// + TL_ChannelFull // -func (m *Upload_CdnFile) Encode() []byte { +func (m *ChatFull) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_upload_cdnFileReuploadNeeded: - t := m.To_UploadCdnFileReuploadNeeded() + case TLConstructor_CRC32_chatFull: + t := m.To_ChatFull() return t.Encode() - case TLConstructor_CRC32_upload_cdnFile: - t := m.To_UploadCdnFile() + case TLConstructor_CRC32_channelFull: + t := m.To_ChannelFull() return t.Encode() default: @@ -21620,14 +22124,14 @@ func (m *Upload_CdnFile) Encode() []byte { } } -func (m *Upload_CdnFile) EncodeToLayer(layer int) []byte { +func (m *ChatFull) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_upload_cdnFileReuploadNeeded: - t := m.To_UploadCdnFileReuploadNeeded() + case TLConstructor_CRC32_chatFull: + t := m.To_ChatFull() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_upload_cdnFile: - t := m.To_UploadCdnFile() + case TLConstructor_CRC32_channelFull: + t := m.To_ChannelFull() return t.EncodeToLayer(layer) default: @@ -21636,15 +22140,15 @@ func (m *Upload_CdnFile) EncodeToLayer(layer int) []byte { } } -func (m *Upload_CdnFile) Decode(dbuf *DecodeBuf) error { +func (m *ChatFull) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_upload_cdnFileReuploadNeeded: - m2 := &TLUploadCdnFileReuploadNeeded{Data2: &Upload_CdnFile_Data{}} + case TLConstructor_CRC32_chatFull: + m2 := &TLChatFull{Data2: &ChatFull_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_upload_cdnFile: - m2 := &TLUploadCdnFile{Data2: &Upload_CdnFile_Data{}} + case TLConstructor_CRC32_channelFull: + m2 := &TLChannelFull{Data2: &ChatFull_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -21654,216 +22158,460 @@ func (m *Upload_CdnFile) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile; -func (m *Upload_CdnFile) To_UploadCdnFileReuploadNeeded() *TLUploadCdnFileReuploadNeeded { - return &TLUploadCdnFileReuploadNeeded{ +// chatFull#2e02a614 id:int participants:ChatParticipants chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector = ChatFull; +func (m *ChatFull) To_ChatFull() *TLChatFull { + return &TLChatFull{ Data2: m.Data2, } } -// upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile; -func (m *Upload_CdnFile) To_UploadCdnFile() *TLUploadCdnFile { - return &TLUploadCdnFile{ +// channelFull#76af5481 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int = ChatFull; +func (m *ChatFull) To_ChannelFull() *TLChannelFull { + return &TLChannelFull{ Data2: m.Data2, } } -// upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile; -func (m *TLUploadCdnFileReuploadNeeded) To_Upload_CdnFile() *Upload_CdnFile { - return &Upload_CdnFile{ - Constructor: TLConstructor_CRC32_upload_cdnFileReuploadNeeded, +// chatFull#2e02a614 id:int participants:ChatParticipants chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector = ChatFull; +func (m *TLChatFull) To_ChatFull() *ChatFull { + return &ChatFull{ + Constructor: TLConstructor_CRC32_chatFull, Data2: m.Data2, } } -func (m *TLUploadCdnFileReuploadNeeded) SetRequestToken(v []byte) { m.Data2.RequestToken = v } -func (m *TLUploadCdnFileReuploadNeeded) GetRequestToken() []byte { return m.Data2.RequestToken } +func (m *TLChatFull) SetId(v int32) { m.Data2.Id = v } +func (m *TLChatFull) GetId() int32 { return m.Data2.Id } -func NewTLUploadCdnFileReuploadNeeded() *TLUploadCdnFileReuploadNeeded { - return &TLUploadCdnFileReuploadNeeded{Data2: &Upload_CdnFile_Data{}} +func (m *TLChatFull) SetParticipants(v *ChatParticipants) { m.Data2.Participants = v } +func (m *TLChatFull) GetParticipants() *ChatParticipants { return m.Data2.Participants } + +func (m *TLChatFull) SetChatPhoto(v *Photo) { m.Data2.ChatPhoto = v } +func (m *TLChatFull) GetChatPhoto() *Photo { return m.Data2.ChatPhoto } + +func (m *TLChatFull) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } +func (m *TLChatFull) GetNotifySettings() *PeerNotifySettings { return m.Data2.NotifySettings } + +func (m *TLChatFull) SetExportedInvite(v *ExportedChatInvite) { m.Data2.ExportedInvite = v } +func (m *TLChatFull) GetExportedInvite() *ExportedChatInvite { return m.Data2.ExportedInvite } + +func (m *TLChatFull) SetBotInfo(v []*BotInfo) { m.Data2.BotInfo = v } +func (m *TLChatFull) GetBotInfo() []*BotInfo { return m.Data2.BotInfo } + +func NewTLChatFull() *TLChatFull { + return &TLChatFull{Data2: &ChatFull_Data{}} } -func (m *TLUploadCdnFileReuploadNeeded) Encode() []byte { +func (m *TLChatFull) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_cdnFileReuploadNeeded)) + x.Int(int32(TLConstructor_CRC32_chatFull)) - x.StringBytes(m.GetRequestToken()) + x.Int(m.GetId()) + x.Bytes(m.GetParticipants().Encode()) + x.Bytes(m.GetChatPhoto().Encode()) + x.Bytes(m.GetNotifySettings().Encode()) + x.Bytes(m.GetExportedInvite().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBotInfo()))) + for _, v := range m.GetBotInfo() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLUploadCdnFileReuploadNeeded) EncodeToLayer(layer int) []byte { +func (m *TLChatFull) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_cdnFileReuploadNeeded)) + x.Int(int32(TLConstructor_CRC32_chatFull)) - x.StringBytes(m.GetRequestToken()) + x.Int(m.GetId()) + x.Bytes(m.GetParticipants().EncodeToLayer(layer)) + x.Bytes(m.GetChatPhoto().EncodeToLayer(layer)) + x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) + x.Bytes(m.GetExportedInvite().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBotInfo()))) + for _, v := range m.GetBotInfo() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLUploadCdnFileReuploadNeeded) Decode(dbuf *DecodeBuf) error { - m.SetRequestToken(dbuf.StringBytes()) +func (m *TLChatFull) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m2 := &ChatParticipants{} + m2.Decode(dbuf) + m.SetParticipants(m2) + m3 := &Photo{} + m3.Decode(dbuf) + m.SetChatPhoto(m3) + m4 := &PeerNotifySettings{} + m4.Decode(dbuf) + m.SetNotifySettings(m4) + m5 := &ExportedChatInvite{} + m5.Decode(dbuf) + m.SetExportedInvite(m5) + c6 := dbuf.Int() + if c6 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) + return dbuf.err + } + l6 := dbuf.Int() + v6 := make([]*BotInfo, l6) + for i := int32(0); i < l6; i++ { + v6[i] = &BotInfo{} + v6[i].Decode(dbuf) + } + m.SetBotInfo(v6) return dbuf.err } -// upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile; -func (m *TLUploadCdnFile) To_Upload_CdnFile() *Upload_CdnFile { - return &Upload_CdnFile{ - Constructor: TLConstructor_CRC32_upload_cdnFile, +// channelFull#76af5481 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int = ChatFull; +func (m *TLChannelFull) To_ChatFull() *ChatFull { + return &ChatFull{ + Constructor: TLConstructor_CRC32_channelFull, Data2: m.Data2, } } -func (m *TLUploadCdnFile) SetBytes(v []byte) { m.Data2.Bytes = v } -func (m *TLUploadCdnFile) GetBytes() []byte { return m.Data2.Bytes } +func (m *TLChannelFull) SetCanViewParticipants(v bool) { m.Data2.CanViewParticipants = v } +func (m *TLChannelFull) GetCanViewParticipants() bool { return m.Data2.CanViewParticipants } -func NewTLUploadCdnFile() *TLUploadCdnFile { - return &TLUploadCdnFile{Data2: &Upload_CdnFile_Data{}} -} +func (m *TLChannelFull) SetCanSetUsername(v bool) { m.Data2.CanSetUsername = v } +func (m *TLChannelFull) GetCanSetUsername() bool { return m.Data2.CanSetUsername } -func (m *TLUploadCdnFile) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_cdnFile)) +func (m *TLChannelFull) SetCanSetStickers(v bool) { m.Data2.CanSetStickers = v } +func (m *TLChannelFull) GetCanSetStickers() bool { return m.Data2.CanSetStickers } - x.StringBytes(m.GetBytes()) +func (m *TLChannelFull) SetHiddenPrehistory(v bool) { m.Data2.HiddenPrehistory = v } +func (m *TLChannelFull) GetHiddenPrehistory() bool { return m.Data2.HiddenPrehistory } - return x.buf -} +func (m *TLChannelFull) SetId(v int32) { m.Data2.Id = v } +func (m *TLChannelFull) GetId() int32 { return m.Data2.Id } -func (m *TLUploadCdnFile) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_cdnFile)) +func (m *TLChannelFull) SetAbout(v string) { m.Data2.About = v } +func (m *TLChannelFull) GetAbout() string { return m.Data2.About } - x.StringBytes(m.GetBytes()) +func (m *TLChannelFull) SetParticipantsCount(v int32) { m.Data2.ParticipantsCount = v } +func (m *TLChannelFull) GetParticipantsCount() int32 { return m.Data2.ParticipantsCount } - return x.buf -} +func (m *TLChannelFull) SetAdminsCount(v int32) { m.Data2.AdminsCount = v } +func (m *TLChannelFull) GetAdminsCount() int32 { return m.Data2.AdminsCount } -func (m *TLUploadCdnFile) Decode(dbuf *DecodeBuf) error { - m.SetBytes(dbuf.StringBytes()) +func (m *TLChannelFull) SetKickedCount(v int32) { m.Data2.KickedCount = v } +func (m *TLChannelFull) GetKickedCount() int32 { return m.Data2.KickedCount } - return dbuf.err -} +func (m *TLChannelFull) SetBannedCount(v int32) { m.Data2.BannedCount = v } +func (m *TLChannelFull) GetBannedCount() int32 { return m.Data2.BannedCount } -/////////////////////////////////////////////////////////////////////////////// -// CdnConfig <-- -// + TL_CdnConfig -// +func (m *TLChannelFull) SetReadInboxMaxId(v int32) { m.Data2.ReadInboxMaxId = v } +func (m *TLChannelFull) GetReadInboxMaxId() int32 { return m.Data2.ReadInboxMaxId } -func (m *CdnConfig) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_cdnConfig: - t := m.To_CdnConfig() - return t.Encode() +func (m *TLChannelFull) SetReadOutboxMaxId(v int32) { m.Data2.ReadOutboxMaxId = v } +func (m *TLChannelFull) GetReadOutboxMaxId() int32 { return m.Data2.ReadOutboxMaxId } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLChannelFull) SetUnreadCount(v int32) { m.Data2.UnreadCount = v } +func (m *TLChannelFull) GetUnreadCount() int32 { return m.Data2.UnreadCount } -func (m *CdnConfig) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_cdnConfig: - t := m.To_CdnConfig() - return t.EncodeToLayer(layer) +func (m *TLChannelFull) SetChatPhoto(v *Photo) { m.Data2.ChatPhoto = v } +func (m *TLChannelFull) GetChatPhoto() *Photo { return m.Data2.ChatPhoto } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLChannelFull) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } +func (m *TLChannelFull) GetNotifySettings() *PeerNotifySettings { return m.Data2.NotifySettings } -func (m *CdnConfig) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_cdnConfig: - m2 := &TLCdnConfig{Data2: &CdnConfig_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLChannelFull) SetExportedInvite(v *ExportedChatInvite) { m.Data2.ExportedInvite = v } +func (m *TLChannelFull) GetExportedInvite() *ExportedChatInvite { return m.Data2.ExportedInvite } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} +func (m *TLChannelFull) SetBotInfo(v []*BotInfo) { m.Data2.BotInfo = v } +func (m *TLChannelFull) GetBotInfo() []*BotInfo { return m.Data2.BotInfo } -// cdnConfig#5725e40a public_keys:Vector = CdnConfig; -func (m *CdnConfig) To_CdnConfig() *TLCdnConfig { - return &TLCdnConfig{ - Data2: m.Data2, - } -} +func (m *TLChannelFull) SetMigratedFromChatId(v int32) { m.Data2.MigratedFromChatId = v } +func (m *TLChannelFull) GetMigratedFromChatId() int32 { return m.Data2.MigratedFromChatId } -// cdnConfig#5725e40a public_keys:Vector = CdnConfig; -func (m *TLCdnConfig) To_CdnConfig() *CdnConfig { - return &CdnConfig{ - Constructor: TLConstructor_CRC32_cdnConfig, - Data2: m.Data2, - } -} +func (m *TLChannelFull) SetMigratedFromMaxId(v int32) { m.Data2.MigratedFromMaxId = v } +func (m *TLChannelFull) GetMigratedFromMaxId() int32 { return m.Data2.MigratedFromMaxId } -func (m *TLCdnConfig) SetPublicKeys(v []*CdnPublicKey) { m.Data2.PublicKeys = v } -func (m *TLCdnConfig) GetPublicKeys() []*CdnPublicKey { return m.Data2.PublicKeys } +func (m *TLChannelFull) SetPinnedMsgId(v int32) { m.Data2.PinnedMsgId = v } +func (m *TLChannelFull) GetPinnedMsgId() int32 { return m.Data2.PinnedMsgId } -func NewTLCdnConfig() *TLCdnConfig { - return &TLCdnConfig{Data2: &CdnConfig_Data{}} +func (m *TLChannelFull) SetStickerset(v *StickerSet) { m.Data2.Stickerset = v } +func (m *TLChannelFull) GetStickerset() *StickerSet { return m.Data2.Stickerset } + +func (m *TLChannelFull) SetAvailableMinId(v int32) { m.Data2.AvailableMinId = v } +func (m *TLChannelFull) GetAvailableMinId() int32 { return m.Data2.AvailableMinId } + +func NewTLChannelFull() *TLChannelFull { + return &TLChannelFull{Data2: &ChatFull_Data{}} } -func (m *TLCdnConfig) Encode() []byte { +func (m *TLChannelFull) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_cdnConfig)) + x.Int(int32(TLConstructor_CRC32_channelFull)) + + // flags + var flags uint32 = 0 + if m.GetCanViewParticipants() == true { + flags |= 1 << 3 + } + if m.GetCanSetUsername() == true { + flags |= 1 << 6 + } + if m.GetCanSetStickers() == true { + flags |= 1 << 7 + } + if m.GetHiddenPrehistory() == true { + flags |= 1 << 10 + } + if m.GetParticipantsCount() != 0 { + flags |= 1 << 0 + } + if m.GetAdminsCount() != 0 { + flags |= 1 << 1 + } + if m.GetKickedCount() != 0 { + flags |= 1 << 2 + } + if m.GetBannedCount() != 0 { + flags |= 1 << 2 + } + if m.GetMigratedFromChatId() != 0 { + flags |= 1 << 4 + } + if m.GetMigratedFromMaxId() != 0 { + flags |= 1 << 4 + } + if m.GetPinnedMsgId() != 0 { + flags |= 1 << 5 + } + if m.GetStickerset() != nil { + flags |= 1 << 8 + } + if m.GetAvailableMinId() != 0 { + flags |= 1 << 9 + } + x.UInt(flags) + x.Int(m.GetId()) + x.String(m.GetAbout()) + if m.GetParticipantsCount() != 0 { + x.Int(m.GetParticipantsCount()) + } + if m.GetAdminsCount() != 0 { + x.Int(m.GetAdminsCount()) + } + if m.GetKickedCount() != 0 { + x.Int(m.GetKickedCount()) + } + if m.GetBannedCount() != 0 { + x.Int(m.GetBannedCount()) + } + x.Int(m.GetReadInboxMaxId()) + x.Int(m.GetReadOutboxMaxId()) + x.Int(m.GetUnreadCount()) + x.Bytes(m.GetChatPhoto().Encode()) + x.Bytes(m.GetNotifySettings().Encode()) + x.Bytes(m.GetExportedInvite().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPublicKeys()))) - for _, v := range m.GetPublicKeys() { + x.Int(int32(len(m.GetBotInfo()))) + for _, v := range m.GetBotInfo() { x.buf = append(x.buf, (*v).Encode()...) } + if m.GetMigratedFromChatId() != 0 { + x.Int(m.GetMigratedFromChatId()) + } + if m.GetMigratedFromMaxId() != 0 { + x.Int(m.GetMigratedFromMaxId()) + } + if m.GetPinnedMsgId() != 0 { + x.Int(m.GetPinnedMsgId()) + } + if m.GetStickerset() != nil { + x.Bytes(m.GetStickerset().Encode()) + } + if m.GetAvailableMinId() != 0 { + x.Int(m.GetAvailableMinId()) + } return x.buf } -func (m *TLCdnConfig) EncodeToLayer(layer int) []byte { +func (m *TLChannelFull) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_cdnConfig)) + x.Int(int32(TLConstructor_CRC32_channelFull)) + + // flags + var flags uint32 = 0 + if m.GetCanViewParticipants() == true { + flags |= 1 << 3 + } + if m.GetCanSetUsername() == true { + flags |= 1 << 6 + } + if m.GetCanSetStickers() == true { + flags |= 1 << 7 + } + if m.GetHiddenPrehistory() == true { + flags |= 1 << 10 + } + if m.GetParticipantsCount() != 0 { + flags |= 1 << 0 + } + if m.GetAdminsCount() != 0 { + flags |= 1 << 1 + } + if m.GetKickedCount() != 0 { + flags |= 1 << 2 + } + if m.GetBannedCount() != 0 { + flags |= 1 << 2 + } + if m.GetMigratedFromChatId() != 0 { + flags |= 1 << 4 + } + if m.GetMigratedFromMaxId() != 0 { + flags |= 1 << 4 + } + if m.GetPinnedMsgId() != 0 { + flags |= 1 << 5 + } + if m.GetStickerset() != nil { + flags |= 1 << 8 + } + if m.GetAvailableMinId() != 0 { + flags |= 1 << 9 + } + x.UInt(flags) + x.Int(m.GetId()) + x.String(m.GetAbout()) + if m.GetParticipantsCount() != 0 { + x.Int(m.GetParticipantsCount()) + } + if m.GetAdminsCount() != 0 { + x.Int(m.GetAdminsCount()) + } + if m.GetKickedCount() != 0 { + x.Int(m.GetKickedCount()) + } + if m.GetBannedCount() != 0 { + x.Int(m.GetBannedCount()) + } + x.Int(m.GetReadInboxMaxId()) + x.Int(m.GetReadOutboxMaxId()) + x.Int(m.GetUnreadCount()) + x.Bytes(m.GetChatPhoto().EncodeToLayer(layer)) + x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) + x.Bytes(m.GetExportedInvite().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPublicKeys()))) - for _, v := range m.GetPublicKeys() { + x.Int(int32(len(m.GetBotInfo()))) + for _, v := range m.GetBotInfo() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } + if m.GetMigratedFromChatId() != 0 { + x.Int(m.GetMigratedFromChatId()) + } + if m.GetMigratedFromMaxId() != 0 { + x.Int(m.GetMigratedFromMaxId()) + } + if m.GetPinnedMsgId() != 0 { + x.Int(m.GetPinnedMsgId()) + } + if m.GetStickerset() != nil { + x.Bytes(m.GetStickerset().EncodeToLayer(layer)) + } + if m.GetAvailableMinId() != 0 { + x.Int(m.GetAvailableMinId()) + } return x.buf } -func (m *TLCdnConfig) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) +func (m *TLChannelFull) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 3)) != 0 { + m.SetCanViewParticipants(true) + } + if (flags & (1 << 6)) != 0 { + m.SetCanSetUsername(true) + } + if (flags & (1 << 7)) != 0 { + m.SetCanSetStickers(true) + } + if (flags & (1 << 10)) != 0 { + m.SetHiddenPrehistory(true) + } + m.SetId(dbuf.Int()) + m.SetAbout(dbuf.String()) + if (flags & (1 << 0)) != 0 { + m.SetParticipantsCount(dbuf.Int()) + } + if (flags & (1 << 1)) != 0 { + m.SetAdminsCount(dbuf.Int()) + } + if (flags & (1 << 2)) != 0 { + m.SetKickedCount(dbuf.Int()) + } + if (flags & (1 << 2)) != 0 { + m.SetBannedCount(dbuf.Int()) + } + m.SetReadInboxMaxId(dbuf.Int()) + m.SetReadOutboxMaxId(dbuf.Int()) + m.SetUnreadCount(dbuf.Int()) + m15 := &Photo{} + m15.Decode(dbuf) + m.SetChatPhoto(m15) + m16 := &PeerNotifySettings{} + m16.Decode(dbuf) + m.SetNotifySettings(m16) + m17 := &ExportedChatInvite{} + m17.Decode(dbuf) + m.SetExportedInvite(m17) + c18 := dbuf.Int() + if c18 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 18, c18) return dbuf.err } - l1 := dbuf.Int() - v1 := make([]*CdnPublicKey, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &CdnPublicKey{} - v1[i].Decode(dbuf) + l18 := dbuf.Int() + v18 := make([]*BotInfo, l18) + for i := int32(0); i < l18; i++ { + v18[i] = &BotInfo{} + v18[i].Decode(dbuf) + } + m.SetBotInfo(v18) + + if (flags & (1 << 4)) != 0 { + m.SetMigratedFromChatId(dbuf.Int()) + } + if (flags & (1 << 4)) != 0 { + m.SetMigratedFromMaxId(dbuf.Int()) + } + if (flags & (1 << 5)) != 0 { + m.SetPinnedMsgId(dbuf.Int()) + } + if (flags & (1 << 8)) != 0 { + m22 := &StickerSet{} + m22.Decode(dbuf) + m.SetStickerset(m22) + } + if (flags & (1 << 9)) != 0 { + m.SetAvailableMinId(dbuf.Int()) } - m.SetPublicKeys(v1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Auth_ExportedAuthorization <-- -// + TL_AuthExportedAuthorization +// BotInfo <-- +// + TL_BotInfo // -func (m *Auth_ExportedAuthorization) Encode() []byte { +func (m *BotInfo) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_auth_exportedAuthorization: - t := m.To_AuthExportedAuthorization() + case TLConstructor_CRC32_botInfo: + t := m.To_BotInfo() return t.Encode() default: @@ -21872,11 +22620,11 @@ func (m *Auth_ExportedAuthorization) Encode() []byte { } } -func (m *Auth_ExportedAuthorization) EncodeToLayer(layer int) []byte { +func (m *BotInfo) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_auth_exportedAuthorization: - t := m.To_AuthExportedAuthorization() + case TLConstructor_CRC32_botInfo: + t := m.To_BotInfo() return t.EncodeToLayer(layer) default: @@ -21885,11 +22633,11 @@ func (m *Auth_ExportedAuthorization) EncodeToLayer(layer int) []byte { } } -func (m *Auth_ExportedAuthorization) Decode(dbuf *DecodeBuf) error { +func (m *BotInfo) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_auth_exportedAuthorization: - m2 := &TLAuthExportedAuthorization{Data2: &Auth_ExportedAuthorization_Data{}} + case TLConstructor_CRC32_botInfo: + m2 := &TLBotInfo{Data2: &BotInfo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -21899,71 +22647,96 @@ func (m *Auth_ExportedAuthorization) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization; -func (m *Auth_ExportedAuthorization) To_AuthExportedAuthorization() *TLAuthExportedAuthorization { - return &TLAuthExportedAuthorization{ +// botInfo#98e81d3a user_id:int description:string commands:Vector = BotInfo; +func (m *BotInfo) To_BotInfo() *TLBotInfo { + return &TLBotInfo{ Data2: m.Data2, } } -// auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization; -func (m *TLAuthExportedAuthorization) To_Auth_ExportedAuthorization() *Auth_ExportedAuthorization { - return &Auth_ExportedAuthorization{ - Constructor: TLConstructor_CRC32_auth_exportedAuthorization, +// botInfo#98e81d3a user_id:int description:string commands:Vector = BotInfo; +func (m *TLBotInfo) To_BotInfo() *BotInfo { + return &BotInfo{ + Constructor: TLConstructor_CRC32_botInfo, Data2: m.Data2, } } -func (m *TLAuthExportedAuthorization) SetId(v int32) { m.Data2.Id = v } -func (m *TLAuthExportedAuthorization) GetId() int32 { return m.Data2.Id } +func (m *TLBotInfo) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLBotInfo) GetUserId() int32 { return m.Data2.UserId } -func (m *TLAuthExportedAuthorization) SetBytes(v []byte) { m.Data2.Bytes = v } -func (m *TLAuthExportedAuthorization) GetBytes() []byte { return m.Data2.Bytes } +func (m *TLBotInfo) SetDescription(v string) { m.Data2.Description = v } +func (m *TLBotInfo) GetDescription() string { return m.Data2.Description } -func NewTLAuthExportedAuthorization() *TLAuthExportedAuthorization { - return &TLAuthExportedAuthorization{Data2: &Auth_ExportedAuthorization_Data{}} +func (m *TLBotInfo) SetCommands(v []*BotCommand) { m.Data2.Commands = v } +func (m *TLBotInfo) GetCommands() []*BotCommand { return m.Data2.Commands } + +func NewTLBotInfo() *TLBotInfo { + return &TLBotInfo{Data2: &BotInfo_Data{}} } -func (m *TLAuthExportedAuthorization) Encode() []byte { +func (m *TLBotInfo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_exportedAuthorization)) + x.Int(int32(TLConstructor_CRC32_botInfo)) - x.Int(m.GetId()) - x.StringBytes(m.GetBytes()) + x.Int(m.GetUserId()) + x.String(m.GetDescription()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetCommands()))) + for _, v := range m.GetCommands() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLAuthExportedAuthorization) EncodeToLayer(layer int) []byte { +func (m *TLBotInfo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_exportedAuthorization)) + x.Int(int32(TLConstructor_CRC32_botInfo)) - x.Int(m.GetId()) - x.StringBytes(m.GetBytes()) + x.Int(m.GetUserId()) + x.String(m.GetDescription()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetCommands()))) + for _, v := range m.GetCommands() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLAuthExportedAuthorization) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetBytes(dbuf.StringBytes()) +func (m *TLBotInfo) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetDescription(dbuf.String()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*BotCommand, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &BotCommand{} + v3[i].Decode(dbuf) + } + m.SetCommands(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_SentEncryptedMessage <-- -// + TL_MessagesSentEncryptedMessage -// + TL_MessagesSentEncryptedFile +// WebDocument <-- +// + TL_WebDocument +// + TL_WebDocumentNoProxy // -func (m *Messages_SentEncryptedMessage) Encode() []byte { +func (m *WebDocument) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_sentEncryptedMessage: - t := m.To_MessagesSentEncryptedMessage() + case TLConstructor_CRC32_webDocument: + t := m.To_WebDocument() return t.Encode() - case TLConstructor_CRC32_messages_sentEncryptedFile: - t := m.To_MessagesSentEncryptedFile() + case TLConstructor_CRC32_webDocumentNoProxy: + t := m.To_WebDocumentNoProxy() return t.Encode() default: @@ -21972,14 +22745,14 @@ func (m *Messages_SentEncryptedMessage) Encode() []byte { } } -func (m *Messages_SentEncryptedMessage) EncodeToLayer(layer int) []byte { +func (m *WebDocument) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_sentEncryptedMessage: - t := m.To_MessagesSentEncryptedMessage() + case TLConstructor_CRC32_webDocument: + t := m.To_WebDocument() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_sentEncryptedFile: - t := m.To_MessagesSentEncryptedFile() + case TLConstructor_CRC32_webDocumentNoProxy: + t := m.To_WebDocumentNoProxy() return t.EncodeToLayer(layer) default: @@ -21988,15 +22761,15 @@ func (m *Messages_SentEncryptedMessage) EncodeToLayer(layer int) []byte { } } -func (m *Messages_SentEncryptedMessage) Decode(dbuf *DecodeBuf) error { +func (m *WebDocument) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_sentEncryptedMessage: - m2 := &TLMessagesSentEncryptedMessage{Data2: &Messages_SentEncryptedMessage_Data{}} + case TLConstructor_CRC32_webDocument: + m2 := &TLWebDocument{Data2: &WebDocument_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_sentEncryptedFile: - m2 := &TLMessagesSentEncryptedFile{Data2: &Messages_SentEncryptedMessage_Data{}} + case TLConstructor_CRC32_webDocumentNoProxy: + m2 := &TLWebDocumentNoProxy{Data2: &WebDocument_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -22006,119 +22779,187 @@ func (m *Messages_SentEncryptedMessage) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage; -func (m *Messages_SentEncryptedMessage) To_MessagesSentEncryptedMessage() *TLMessagesSentEncryptedMessage { - return &TLMessagesSentEncryptedMessage{ +// webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument; +func (m *WebDocument) To_WebDocument() *TLWebDocument { + return &TLWebDocument{ Data2: m.Data2, } } -// messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage; -func (m *Messages_SentEncryptedMessage) To_MessagesSentEncryptedFile() *TLMessagesSentEncryptedFile { - return &TLMessagesSentEncryptedFile{ +// webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument; +func (m *WebDocument) To_WebDocumentNoProxy() *TLWebDocumentNoProxy { + return &TLWebDocumentNoProxy{ Data2: m.Data2, } } -// messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage; -func (m *TLMessagesSentEncryptedMessage) To_Messages_SentEncryptedMessage() *Messages_SentEncryptedMessage { - return &Messages_SentEncryptedMessage{ - Constructor: TLConstructor_CRC32_messages_sentEncryptedMessage, +// webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument; +func (m *TLWebDocument) To_WebDocument() *WebDocument { + return &WebDocument{ + Constructor: TLConstructor_CRC32_webDocument, Data2: m.Data2, } } -func (m *TLMessagesSentEncryptedMessage) SetDate(v int32) { m.Data2.Date = v } -func (m *TLMessagesSentEncryptedMessage) GetDate() int32 { return m.Data2.Date } +func (m *TLWebDocument) SetUrl(v string) { m.Data2.Url = v } +func (m *TLWebDocument) GetUrl() string { return m.Data2.Url } -func NewTLMessagesSentEncryptedMessage() *TLMessagesSentEncryptedMessage { - return &TLMessagesSentEncryptedMessage{Data2: &Messages_SentEncryptedMessage_Data{}} +func (m *TLWebDocument) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLWebDocument) GetAccessHash() int64 { return m.Data2.AccessHash } + +func (m *TLWebDocument) SetSize(v int32) { m.Data2.Size = v } +func (m *TLWebDocument) GetSize() int32 { return m.Data2.Size } + +func (m *TLWebDocument) SetMimeType(v string) { m.Data2.MimeType = v } +func (m *TLWebDocument) GetMimeType() string { return m.Data2.MimeType } + +func (m *TLWebDocument) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } +func (m *TLWebDocument) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } + +func NewTLWebDocument() *TLWebDocument { + return &TLWebDocument{Data2: &WebDocument_Data{}} } -func (m *TLMessagesSentEncryptedMessage) Encode() []byte { +func (m *TLWebDocument) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_sentEncryptedMessage)) + x.Int(int32(TLConstructor_CRC32_webDocument)) - x.Int(m.GetDate()) + x.String(m.GetUrl()) + x.Long(m.GetAccessHash()) + x.Int(m.GetSize()) + x.String(m.GetMimeType()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLMessagesSentEncryptedMessage) EncodeToLayer(layer int) []byte { +func (m *TLWebDocument) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_sentEncryptedMessage)) + x.Int(int32(TLConstructor_CRC32_webDocument)) - x.Int(m.GetDate()) + x.String(m.GetUrl()) + x.Long(m.GetAccessHash()) + x.Int(m.GetSize()) + x.String(m.GetMimeType()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLMessagesSentEncryptedMessage) Decode(dbuf *DecodeBuf) error { - m.SetDate(dbuf.Int()) +func (m *TLWebDocument) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m.SetAccessHash(dbuf.Long()) + m.SetSize(dbuf.Int()) + m.SetMimeType(dbuf.String()) + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*DocumentAttribute, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &DocumentAttribute{} + v5[i].Decode(dbuf) + } + m.SetAttributes(v5) return dbuf.err } -// messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage; -func (m *TLMessagesSentEncryptedFile) To_Messages_SentEncryptedMessage() *Messages_SentEncryptedMessage { - return &Messages_SentEncryptedMessage{ - Constructor: TLConstructor_CRC32_messages_sentEncryptedFile, +// webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument; +func (m *TLWebDocumentNoProxy) To_WebDocument() *WebDocument { + return &WebDocument{ + Constructor: TLConstructor_CRC32_webDocumentNoProxy, Data2: m.Data2, } } -func (m *TLMessagesSentEncryptedFile) SetDate(v int32) { m.Data2.Date = v } -func (m *TLMessagesSentEncryptedFile) GetDate() int32 { return m.Data2.Date } +func (m *TLWebDocumentNoProxy) SetUrl(v string) { m.Data2.Url = v } +func (m *TLWebDocumentNoProxy) GetUrl() string { return m.Data2.Url } -func (m *TLMessagesSentEncryptedFile) SetFile(v *EncryptedFile) { m.Data2.File = v } -func (m *TLMessagesSentEncryptedFile) GetFile() *EncryptedFile { return m.Data2.File } +func (m *TLWebDocumentNoProxy) SetSize(v int32) { m.Data2.Size = v } +func (m *TLWebDocumentNoProxy) GetSize() int32 { return m.Data2.Size } -func NewTLMessagesSentEncryptedFile() *TLMessagesSentEncryptedFile { - return &TLMessagesSentEncryptedFile{Data2: &Messages_SentEncryptedMessage_Data{}} +func (m *TLWebDocumentNoProxy) SetMimeType(v string) { m.Data2.MimeType = v } +func (m *TLWebDocumentNoProxy) GetMimeType() string { return m.Data2.MimeType } + +func (m *TLWebDocumentNoProxy) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } +func (m *TLWebDocumentNoProxy) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } + +func NewTLWebDocumentNoProxy() *TLWebDocumentNoProxy { + return &TLWebDocumentNoProxy{Data2: &WebDocument_Data{}} } -func (m *TLMessagesSentEncryptedFile) Encode() []byte { +func (m *TLWebDocumentNoProxy) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_sentEncryptedFile)) + x.Int(int32(TLConstructor_CRC32_webDocumentNoProxy)) - x.Int(m.GetDate()) - x.Bytes(m.GetFile().Encode()) + x.String(m.GetUrl()) + x.Int(m.GetSize()) + x.String(m.GetMimeType()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLMessagesSentEncryptedFile) EncodeToLayer(layer int) []byte { +func (m *TLWebDocumentNoProxy) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_sentEncryptedFile)) + x.Int(int32(TLConstructor_CRC32_webDocumentNoProxy)) - x.Int(m.GetDate()) - x.Bytes(m.GetFile().EncodeToLayer(layer)) + x.String(m.GetUrl()) + x.Int(m.GetSize()) + x.String(m.GetMimeType()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLMessagesSentEncryptedFile) Decode(dbuf *DecodeBuf) error { - m.SetDate(dbuf.Int()) - m2 := &EncryptedFile{} - m2.Decode(dbuf) - m.SetFile(m2) +func (m *TLWebDocumentNoProxy) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m.SetSize(dbuf.Int()) + m.SetMimeType(dbuf.String()) + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*DocumentAttribute, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &DocumentAttribute{} + v4[i].Decode(dbuf) + } + m.SetAttributes(v4) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SecureFile <-- -// + TL_SecureFileEmpty -// + TL_SecureFile +// LangPackLanguage <-- +// + TL_LangPackLanguage // -func (m *SecureFile) Encode() []byte { +func (m *LangPackLanguage) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_secureFileEmpty: - t := m.To_SecureFileEmpty() - return t.Encode() - case TLConstructor_CRC32_secureFile: - t := m.To_SecureFile() + case TLConstructor_CRC32_langPackLanguage: + t := m.To_LangPackLanguage() return t.Encode() default: @@ -22127,14 +22968,11 @@ func (m *SecureFile) Encode() []byte { } } -func (m *SecureFile) EncodeToLayer(layer int) []byte { +func (m *LangPackLanguage) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_secureFileEmpty: - t := m.To_SecureFileEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureFile: - t := m.To_SecureFile() + case TLConstructor_CRC32_langPackLanguage: + t := m.To_LangPackLanguage() return t.EncodeToLayer(layer) default: @@ -22143,15 +22981,11 @@ func (m *SecureFile) EncodeToLayer(layer int) []byte { } } -func (m *SecureFile) Decode(dbuf *DecodeBuf) error { +func (m *LangPackLanguage) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_secureFileEmpty: - m2 := &TLSecureFileEmpty{Data2: &SecureFile_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureFile: - m2 := &TLSecureFile{Data2: &SecureFile_Data{}} + case TLConstructor_CRC32_langPackLanguage: + m2 := &TLLangPackLanguage{Data2: &LangPackLanguage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -22161,135 +22995,81 @@ func (m *SecureFile) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureFileEmpty#64199744 = SecureFile; -func (m *SecureFile) To_SecureFileEmpty() *TLSecureFileEmpty { - return &TLSecureFileEmpty{ - Data2: m.Data2, - } -} - -// secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile; -func (m *SecureFile) To_SecureFile() *TLSecureFile { - return &TLSecureFile{ +// langPackLanguage#117698f1 name:string native_name:string lang_code:string = LangPackLanguage; +func (m *LangPackLanguage) To_LangPackLanguage() *TLLangPackLanguage { + return &TLLangPackLanguage{ Data2: m.Data2, } } -// secureFileEmpty#64199744 = SecureFile; -func (m *TLSecureFileEmpty) To_SecureFile() *SecureFile { - return &SecureFile{ - Constructor: TLConstructor_CRC32_secureFileEmpty, - Data2: m.Data2, - } -} - -func NewTLSecureFileEmpty() *TLSecureFileEmpty { - return &TLSecureFileEmpty{Data2: &SecureFile_Data{}} -} - -func (m *TLSecureFileEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureFileEmpty)) - - return x.buf -} - -func (m *TLSecureFileEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureFileEmpty)) - - return x.buf -} - -func (m *TLSecureFileEmpty) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile; -func (m *TLSecureFile) To_SecureFile() *SecureFile { - return &SecureFile{ - Constructor: TLConstructor_CRC32_secureFile, +// langPackLanguage#117698f1 name:string native_name:string lang_code:string = LangPackLanguage; +func (m *TLLangPackLanguage) To_LangPackLanguage() *LangPackLanguage { + return &LangPackLanguage{ + Constructor: TLConstructor_CRC32_langPackLanguage, Data2: m.Data2, } } -func (m *TLSecureFile) SetId(v int64) { m.Data2.Id = v } -func (m *TLSecureFile) GetId() int64 { return m.Data2.Id } - -func (m *TLSecureFile) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLSecureFile) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLSecureFile) SetSize(v int32) { m.Data2.Size = v } -func (m *TLSecureFile) GetSize() int32 { return m.Data2.Size } - -func (m *TLSecureFile) SetDcId(v int32) { m.Data2.DcId = v } -func (m *TLSecureFile) GetDcId() int32 { return m.Data2.DcId } - -func (m *TLSecureFile) SetDate(v int32) { m.Data2.Date = v } -func (m *TLSecureFile) GetDate() int32 { return m.Data2.Date } +func (m *TLLangPackLanguage) SetName(v string) { m.Data2.Name = v } +func (m *TLLangPackLanguage) GetName() string { return m.Data2.Name } -func (m *TLSecureFile) SetFileHash(v []byte) { m.Data2.FileHash = v } -func (m *TLSecureFile) GetFileHash() []byte { return m.Data2.FileHash } +func (m *TLLangPackLanguage) SetNativeName(v string) { m.Data2.NativeName = v } +func (m *TLLangPackLanguage) GetNativeName() string { return m.Data2.NativeName } -func (m *TLSecureFile) SetSecret(v []byte) { m.Data2.Secret = v } -func (m *TLSecureFile) GetSecret() []byte { return m.Data2.Secret } +func (m *TLLangPackLanguage) SetLangCode(v string) { m.Data2.LangCode = v } +func (m *TLLangPackLanguage) GetLangCode() string { return m.Data2.LangCode } -func NewTLSecureFile() *TLSecureFile { - return &TLSecureFile{Data2: &SecureFile_Data{}} +func NewTLLangPackLanguage() *TLLangPackLanguage { + return &TLLangPackLanguage{Data2: &LangPackLanguage_Data{}} } -func (m *TLSecureFile) Encode() []byte { +func (m *TLLangPackLanguage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureFile)) + x.Int(int32(TLConstructor_CRC32_langPackLanguage)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetSize()) - x.Int(m.GetDcId()) - x.Int(m.GetDate()) - x.StringBytes(m.GetFileHash()) - x.StringBytes(m.GetSecret()) + x.String(m.GetName()) + x.String(m.GetNativeName()) + x.String(m.GetLangCode()) return x.buf } -func (m *TLSecureFile) EncodeToLayer(layer int) []byte { +func (m *TLLangPackLanguage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureFile)) + x.Int(int32(TLConstructor_CRC32_langPackLanguage)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetSize()) - x.Int(m.GetDcId()) - x.Int(m.GetDate()) - x.StringBytes(m.GetFileHash()) - x.StringBytes(m.GetSecret()) + x.String(m.GetName()) + x.String(m.GetNativeName()) + x.String(m.GetLangCode()) return x.buf } -func (m *TLSecureFile) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetSize(dbuf.Int()) - m.SetDcId(dbuf.Int()) - m.SetDate(dbuf.Int()) - m.SetFileHash(dbuf.StringBytes()) - m.SetSecret(dbuf.StringBytes()) +func (m *TLLangPackLanguage) Decode(dbuf *DecodeBuf) error { + m.SetName(dbuf.String()) + m.SetNativeName(dbuf.String()) + m.SetLangCode(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ChannelAdminLogEventsFilter <-- -// + TL_ChannelAdminLogEventsFilter +// Photo <-- +// + TL_PhotoEmpty +// + TL_Photo +// + TL_PhotoLayer86 // -func (m *ChannelAdminLogEventsFilter) Encode() []byte { +func (m *Photo) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_channelAdminLogEventsFilter: - t := m.To_ChannelAdminLogEventsFilter() + case TLConstructor_CRC32_photoEmpty: + t := m.To_PhotoEmpty() + return t.Encode() + case TLConstructor_CRC32_photo: + t := m.To_Photo() + return t.Encode() + case TLConstructor_CRC32_photoLayer86: + t := m.To_PhotoLayer86() return t.Encode() default: @@ -22298,11 +23078,17 @@ func (m *ChannelAdminLogEventsFilter) Encode() []byte { } } -func (m *ChannelAdminLogEventsFilter) EncodeToLayer(layer int) []byte { +func (m *Photo) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_channelAdminLogEventsFilter: - t := m.To_ChannelAdminLogEventsFilter() + case TLConstructor_CRC32_photoEmpty: + t := m.To_PhotoEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_photo: + t := m.To_Photo() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_photoLayer86: + t := m.To_PhotoLayer86() return t.EncodeToLayer(layer) default: @@ -22311,11 +23097,19 @@ func (m *ChannelAdminLogEventsFilter) EncodeToLayer(layer int) []byte { } } -func (m *ChannelAdminLogEventsFilter) Decode(dbuf *DecodeBuf) error { +func (m *Photo) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_channelAdminLogEventsFilter: - m2 := &TLChannelAdminLogEventsFilter{Data2: &ChannelAdminLogEventsFilter_Data{}} + case TLConstructor_CRC32_photoEmpty: + m2 := &TLPhotoEmpty{Data2: &Photo_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_photo: + m2 := &TLPhoto{Data2: &Photo_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_photoLayer86: + m2 := &TLPhotoLayer86{Data2: &Photo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -22325,239 +23119,277 @@ func (m *ChannelAdminLogEventsFilter) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; -func (m *ChannelAdminLogEventsFilter) To_ChannelAdminLogEventsFilter() *TLChannelAdminLogEventsFilter { - return &TLChannelAdminLogEventsFilter{ +// photoEmpty#2331b22d id:long = Photo; +func (m *Photo) To_PhotoEmpty() *TLPhotoEmpty { + return &TLPhotoEmpty{ Data2: m.Data2, } } -// channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; -func (m *TLChannelAdminLogEventsFilter) To_ChannelAdminLogEventsFilter() *ChannelAdminLogEventsFilter { - return &ChannelAdminLogEventsFilter{ - Constructor: TLConstructor_CRC32_channelAdminLogEventsFilter, +// photo#9288dd29 flags:# has_stickers:flags.0?true id:long access_hash:long date:int sizes:Vector = Photo; +func (m *Photo) To_Photo() *TLPhoto { + return &TLPhoto{ + Data2: m.Data2, + } +} + +// photo#9c477dd8 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector = Photo; +func (m *Photo) To_PhotoLayer86() *TLPhotoLayer86 { + return &TLPhotoLayer86{ + Data2: m.Data2, + } +} + +// photoEmpty#2331b22d id:long = Photo; +func (m *TLPhotoEmpty) To_Photo() *Photo { + return &Photo{ + Constructor: TLConstructor_CRC32_photoEmpty, Data2: m.Data2, } } -func (m *TLChannelAdminLogEventsFilter) SetJoin(v bool) { m.Data2.Join = v } -func (m *TLChannelAdminLogEventsFilter) GetJoin() bool { return m.Data2.Join } +func (m *TLPhotoEmpty) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhotoEmpty) GetId() int64 { return m.Data2.Id } -func (m *TLChannelAdminLogEventsFilter) SetLeave(v bool) { m.Data2.Leave = v } -func (m *TLChannelAdminLogEventsFilter) GetLeave() bool { return m.Data2.Leave } +func NewTLPhotoEmpty() *TLPhotoEmpty { + return &TLPhotoEmpty{Data2: &Photo_Data{}} +} -func (m *TLChannelAdminLogEventsFilter) SetInvite(v bool) { m.Data2.Invite = v } -func (m *TLChannelAdminLogEventsFilter) GetInvite() bool { return m.Data2.Invite } +func (m *TLPhotoEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_photoEmpty)) -func (m *TLChannelAdminLogEventsFilter) SetBan(v bool) { m.Data2.Ban = v } -func (m *TLChannelAdminLogEventsFilter) GetBan() bool { return m.Data2.Ban } + x.Long(m.GetId()) -func (m *TLChannelAdminLogEventsFilter) SetUnban(v bool) { m.Data2.Unban = v } -func (m *TLChannelAdminLogEventsFilter) GetUnban() bool { return m.Data2.Unban } + return x.buf +} -func (m *TLChannelAdminLogEventsFilter) SetKick(v bool) { m.Data2.Kick = v } -func (m *TLChannelAdminLogEventsFilter) GetKick() bool { return m.Data2.Kick } +func (m *TLPhotoEmpty) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_photoEmpty)) -func (m *TLChannelAdminLogEventsFilter) SetUnkick(v bool) { m.Data2.Unkick = v } -func (m *TLChannelAdminLogEventsFilter) GetUnkick() bool { return m.Data2.Unkick } + x.Long(m.GetId()) -func (m *TLChannelAdminLogEventsFilter) SetPromote(v bool) { m.Data2.Promote = v } -func (m *TLChannelAdminLogEventsFilter) GetPromote() bool { return m.Data2.Promote } + return x.buf +} -func (m *TLChannelAdminLogEventsFilter) SetDemote(v bool) { m.Data2.Demote = v } -func (m *TLChannelAdminLogEventsFilter) GetDemote() bool { return m.Data2.Demote } +func (m *TLPhotoEmpty) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) -func (m *TLChannelAdminLogEventsFilter) SetInfo(v bool) { m.Data2.Info = v } -func (m *TLChannelAdminLogEventsFilter) GetInfo() bool { return m.Data2.Info } + return dbuf.err +} -func (m *TLChannelAdminLogEventsFilter) SetSettings(v bool) { m.Data2.Settings = v } -func (m *TLChannelAdminLogEventsFilter) GetSettings() bool { return m.Data2.Settings } +// photo#9288dd29 flags:# has_stickers:flags.0?true id:long access_hash:long date:int sizes:Vector = Photo; +func (m *TLPhoto) To_Photo() *Photo { + return &Photo{ + Constructor: TLConstructor_CRC32_photo, + Data2: m.Data2, + } +} -func (m *TLChannelAdminLogEventsFilter) SetPinned(v bool) { m.Data2.Pinned = v } -func (m *TLChannelAdminLogEventsFilter) GetPinned() bool { return m.Data2.Pinned } +func (m *TLPhoto) SetHasStickers(v bool) { m.Data2.HasStickers = v } +func (m *TLPhoto) GetHasStickers() bool { return m.Data2.HasStickers } -func (m *TLChannelAdminLogEventsFilter) SetEdit(v bool) { m.Data2.Edit = v } -func (m *TLChannelAdminLogEventsFilter) GetEdit() bool { return m.Data2.Edit } +func (m *TLPhoto) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhoto) GetId() int64 { return m.Data2.Id } -func (m *TLChannelAdminLogEventsFilter) SetDelete(v bool) { m.Data2.Delete = v } -func (m *TLChannelAdminLogEventsFilter) GetDelete() bool { return m.Data2.Delete } +func (m *TLPhoto) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLPhoto) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLChannelAdminLogEventsFilter() *TLChannelAdminLogEventsFilter { - return &TLChannelAdminLogEventsFilter{Data2: &ChannelAdminLogEventsFilter_Data{}} +func (m *TLPhoto) SetDate(v int32) { m.Data2.Date = v } +func (m *TLPhoto) GetDate() int32 { return m.Data2.Date } + +func (m *TLPhoto) SetSizes(v []*PhotoSize) { m.Data2.Sizes = v } +func (m *TLPhoto) GetSizes() []*PhotoSize { return m.Data2.Sizes } + +func NewTLPhoto() *TLPhoto { + return &TLPhoto{Data2: &Photo_Data{}} } -func (m *TLChannelAdminLogEventsFilter) Encode() []byte { +func (m *TLPhoto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventsFilter)) + x.Int(int32(TLConstructor_CRC32_photo)) // flags var flags uint32 = 0 - if m.GetJoin() == true { + if m.GetHasStickers() == true { flags |= 1 << 0 } - if m.GetLeave() == true { - flags |= 1 << 1 - } - if m.GetInvite() == true { - flags |= 1 << 2 - } - if m.GetBan() == true { - flags |= 1 << 3 - } - if m.GetUnban() == true { - flags |= 1 << 4 - } - if m.GetKick() == true { - flags |= 1 << 5 - } - if m.GetUnkick() == true { - flags |= 1 << 6 - } - if m.GetPromote() == true { - flags |= 1 << 7 - } - if m.GetDemote() == true { - flags |= 1 << 8 - } - if m.GetInfo() == true { - flags |= 1 << 9 - } - if m.GetSettings() == true { - flags |= 1 << 10 - } - if m.GetPinned() == true { - flags |= 1 << 11 - } - if m.GetEdit() == true { - flags |= 1 << 12 - } - if m.GetDelete() == true { - flags |= 1 << 13 - } x.UInt(flags) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSizes()))) + for _, v := range m.GetSizes() { + x.buf = append(x.buf, (*v).Encode()...) + } + return x.buf } -func (m *TLChannelAdminLogEventsFilter) EncodeToLayer(layer int) []byte { +func (m *TLPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventsFilter)) + x.Int(int32(TLConstructor_CRC32_photo)) // flags var flags uint32 = 0 - if m.GetJoin() == true { + if m.GetHasStickers() == true { flags |= 1 << 0 } - if m.GetLeave() == true { - flags |= 1 << 1 - } - if m.GetInvite() == true { - flags |= 1 << 2 - } - if m.GetBan() == true { - flags |= 1 << 3 - } - if m.GetUnban() == true { - flags |= 1 << 4 - } - if m.GetKick() == true { - flags |= 1 << 5 - } - if m.GetUnkick() == true { - flags |= 1 << 6 - } - if m.GetPromote() == true { - flags |= 1 << 7 - } - if m.GetDemote() == true { - flags |= 1 << 8 - } - if m.GetInfo() == true { - flags |= 1 << 9 - } - if m.GetSettings() == true { - flags |= 1 << 10 - } - if m.GetPinned() == true { - flags |= 1 << 11 - } - if m.GetEdit() == true { - flags |= 1 << 12 - } - if m.GetDelete() == true { - flags |= 1 << 13 - } x.UInt(flags) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSizes()))) + for _, v := range m.GetSizes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + return x.buf } -func (m *TLChannelAdminLogEventsFilter) Decode(dbuf *DecodeBuf) error { +func (m *TLPhoto) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags if (flags & (1 << 0)) != 0 { - m.SetJoin(true) + m.SetHasStickers(true) } - if (flags & (1 << 1)) != 0 { - m.SetLeave(true) + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetDate(dbuf.Int()) + c6 := dbuf.Int() + if c6 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) + return dbuf.err } - if (flags & (1 << 2)) != 0 { - m.SetInvite(true) - } - if (flags & (1 << 3)) != 0 { - m.SetBan(true) - } - if (flags & (1 << 4)) != 0 { - m.SetUnban(true) - } - if (flags & (1 << 5)) != 0 { - m.SetKick(true) + l6 := dbuf.Int() + v6 := make([]*PhotoSize, l6) + for i := int32(0); i < l6; i++ { + v6[i] = &PhotoSize{} + v6[i].Decode(dbuf) } - if (flags & (1 << 6)) != 0 { - m.SetUnkick(true) + m.SetSizes(v6) + + return dbuf.err +} + +// photo#9c477dd8 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector = Photo; +func (m *TLPhotoLayer86) To_Photo() *Photo { + return &Photo{ + Constructor: TLConstructor_CRC32_photoLayer86, + Data2: m.Data2, } - if (flags & (1 << 7)) != 0 { - m.SetPromote(true) +} + +func (m *TLPhotoLayer86) SetHasStickers(v bool) { m.Data2.HasStickers = v } +func (m *TLPhotoLayer86) GetHasStickers() bool { return m.Data2.HasStickers } + +func (m *TLPhotoLayer86) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhotoLayer86) GetId() int64 { return m.Data2.Id } + +func (m *TLPhotoLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLPhotoLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } + +func (m *TLPhotoLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } +func (m *TLPhotoLayer86) GetFileReference() []byte { return m.Data2.FileReference } + +func (m *TLPhotoLayer86) SetDate(v int32) { m.Data2.Date = v } +func (m *TLPhotoLayer86) GetDate() int32 { return m.Data2.Date } + +func (m *TLPhotoLayer86) SetSizes(v []*PhotoSize) { m.Data2.Sizes = v } +func (m *TLPhotoLayer86) GetSizes() []*PhotoSize { return m.Data2.Sizes } + +func NewTLPhotoLayer86() *TLPhotoLayer86 { + return &TLPhotoLayer86{Data2: &Photo_Data{}} +} + +func (m *TLPhotoLayer86) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_photoLayer86)) + + // flags + var flags uint32 = 0 + if m.GetHasStickers() == true { + flags |= 1 << 0 } - if (flags & (1 << 8)) != 0 { - m.SetDemote(true) + x.UInt(flags) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) + x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSizes()))) + for _, v := range m.GetSizes() { + x.buf = append(x.buf, (*v).Encode()...) } - if (flags & (1 << 9)) != 0 { - m.SetInfo(true) + + return x.buf +} + +func (m *TLPhotoLayer86) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_photoLayer86)) + + // flags + var flags uint32 = 0 + if m.GetHasStickers() == true { + flags |= 1 << 0 } - if (flags & (1 << 10)) != 0 { - m.SetSettings(true) + x.UInt(flags) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) + x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSizes()))) + for _, v := range m.GetSizes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - if (flags & (1 << 11)) != 0 { - m.SetPinned(true) + + return x.buf +} + +func (m *TLPhotoLayer86) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetHasStickers(true) } - if (flags & (1 << 12)) != 0 { - m.SetEdit(true) + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetFileReference(dbuf.StringBytes()) + m.SetDate(dbuf.Int()) + c7 := dbuf.Int() + if c7 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) + return dbuf.err } - if (flags & (1 << 13)) != 0 { - m.SetDelete(true) + l7 := dbuf.Int() + v7 := make([]*PhotoSize, l7) + for i := int32(0); i < l7; i++ { + v7[i] = &PhotoSize{} + v7[i].Decode(dbuf) } + m.SetSizes(v7) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputNotifyPeer <-- -// + TL_InputNotifyPeer -// + TL_InputNotifyUsers -// + TL_InputNotifyChats +// Account_PasswordInputSettings <-- +// + TL_AccountPasswordInputSettings // -func (m *InputNotifyPeer) Encode() []byte { +func (m *Account_PasswordInputSettings) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputNotifyPeer: - t := m.To_InputNotifyPeer() - return t.Encode() - case TLConstructor_CRC32_inputNotifyUsers: - t := m.To_InputNotifyUsers() - return t.Encode() - case TLConstructor_CRC32_inputNotifyChats: - t := m.To_InputNotifyChats() + case TLConstructor_CRC32_account_passwordInputSettings: + t := m.To_AccountPasswordInputSettings() return t.Encode() default: @@ -22566,17 +23398,11 @@ func (m *InputNotifyPeer) Encode() []byte { } } -func (m *InputNotifyPeer) EncodeToLayer(layer int) []byte { +func (m *Account_PasswordInputSettings) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputNotifyPeer: - t := m.To_InputNotifyPeer() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputNotifyUsers: - t := m.To_InputNotifyUsers() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputNotifyChats: - t := m.To_InputNotifyChats() + case TLConstructor_CRC32_account_passwordInputSettings: + t := m.To_AccountPasswordInputSettings() return t.EncodeToLayer(layer) default: @@ -22585,19 +23411,11 @@ func (m *InputNotifyPeer) EncodeToLayer(layer int) []byte { } } -func (m *InputNotifyPeer) Decode(dbuf *DecodeBuf) error { +func (m *Account_PasswordInputSettings) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputNotifyPeer: - m2 := &TLInputNotifyPeer{Data2: &InputNotifyPeer_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputNotifyUsers: - m2 := &TLInputNotifyUsers{Data2: &InputNotifyPeer_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputNotifyChats: - m2 := &TLInputNotifyChats{Data2: &InputNotifyPeer_Data{}} + case TLConstructor_CRC32_account_passwordInputSettings: + m2 := &TLAccountPasswordInputSettings{Data2: &Account_PasswordInputSettings_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -22607,139 +23425,163 @@ func (m *InputNotifyPeer) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer; -func (m *InputNotifyPeer) To_InputNotifyPeer() *TLInputNotifyPeer { - return &TLInputNotifyPeer{ - Data2: m.Data2, - } -} - -// inputNotifyUsers#193b4417 = InputNotifyPeer; -func (m *InputNotifyPeer) To_InputNotifyUsers() *TLInputNotifyUsers { - return &TLInputNotifyUsers{ - Data2: m.Data2, - } -} - -// inputNotifyChats#4a95e84e = InputNotifyPeer; -func (m *InputNotifyPeer) To_InputNotifyChats() *TLInputNotifyChats { - return &TLInputNotifyChats{ +// account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings; +func (m *Account_PasswordInputSettings) To_AccountPasswordInputSettings() *TLAccountPasswordInputSettings { + return &TLAccountPasswordInputSettings{ Data2: m.Data2, } } -// inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer; -func (m *TLInputNotifyPeer) To_InputNotifyPeer() *InputNotifyPeer { - return &InputNotifyPeer{ - Constructor: TLConstructor_CRC32_inputNotifyPeer, +// account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings; +func (m *TLAccountPasswordInputSettings) To_Account_PasswordInputSettings() *Account_PasswordInputSettings { + return &Account_PasswordInputSettings{ + Constructor: TLConstructor_CRC32_account_passwordInputSettings, Data2: m.Data2, } } -func (m *TLInputNotifyPeer) SetPeer(v *InputPeer) { m.Data2.Peer = v } -func (m *TLInputNotifyPeer) GetPeer() *InputPeer { return m.Data2.Peer } - -func NewTLInputNotifyPeer() *TLInputNotifyPeer { - return &TLInputNotifyPeer{Data2: &InputNotifyPeer_Data{}} -} - -func (m *TLInputNotifyPeer) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputNotifyPeer)) - - x.Bytes(m.GetPeer().Encode()) - - return x.buf -} - -func (m *TLInputNotifyPeer) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputNotifyPeer)) - - x.Bytes(m.GetPeer().EncodeToLayer(layer)) +func (m *TLAccountPasswordInputSettings) SetNewAlgo(v *PasswordKdfAlgo) { m.Data2.NewAlgo = v } +func (m *TLAccountPasswordInputSettings) GetNewAlgo() *PasswordKdfAlgo { return m.Data2.NewAlgo } - return x.buf -} +func (m *TLAccountPasswordInputSettings) SetNewPasswordHash(v []byte) { m.Data2.NewPasswordHash = v } +func (m *TLAccountPasswordInputSettings) GetNewPasswordHash() []byte { return m.Data2.NewPasswordHash } -func (m *TLInputNotifyPeer) Decode(dbuf *DecodeBuf) error { - m1 := &InputPeer{} - m1.Decode(dbuf) - m.SetPeer(m1) +func (m *TLAccountPasswordInputSettings) SetHint(v string) { m.Data2.Hint = v } +func (m *TLAccountPasswordInputSettings) GetHint() string { return m.Data2.Hint } - return dbuf.err -} +func (m *TLAccountPasswordInputSettings) SetEmail(v string) { m.Data2.Email = v } +func (m *TLAccountPasswordInputSettings) GetEmail() string { return m.Data2.Email } -// inputNotifyUsers#193b4417 = InputNotifyPeer; -func (m *TLInputNotifyUsers) To_InputNotifyPeer() *InputNotifyPeer { - return &InputNotifyPeer{ - Constructor: TLConstructor_CRC32_inputNotifyUsers, - Data2: m.Data2, - } +func (m *TLAccountPasswordInputSettings) SetNewSecureSettings(v *SecureSecretSettings) { + m.Data2.NewSecureSettings = v } - -func NewTLInputNotifyUsers() *TLInputNotifyUsers { - return &TLInputNotifyUsers{Data2: &InputNotifyPeer_Data{}} +func (m *TLAccountPasswordInputSettings) GetNewSecureSettings() *SecureSecretSettings { + return m.Data2.NewSecureSettings } -func (m *TLInputNotifyUsers) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputNotifyUsers)) - - return x.buf +func NewTLAccountPasswordInputSettings() *TLAccountPasswordInputSettings { + return &TLAccountPasswordInputSettings{Data2: &Account_PasswordInputSettings_Data{}} } -func (m *TLInputNotifyUsers) EncodeToLayer(layer int) []byte { +func (m *TLAccountPasswordInputSettings) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputNotifyUsers)) - - return x.buf -} - -func (m *TLInputNotifyUsers) Decode(dbuf *DecodeBuf) error { + x.Int(int32(TLConstructor_CRC32_account_passwordInputSettings)) - return dbuf.err -} + // flags + var flags uint32 = 0 + if m.GetNewAlgo() != nil { + flags |= 1 << 0 + } + if m.GetNewPasswordHash() != nil { + flags |= 1 << 0 + } + if m.GetHint() != "" { + flags |= 1 << 0 + } + if m.GetEmail() != "" { + flags |= 1 << 1 + } + if m.GetNewSecureSettings() != nil { + flags |= 1 << 2 + } + x.UInt(flags) -// inputNotifyChats#4a95e84e = InputNotifyPeer; -func (m *TLInputNotifyChats) To_InputNotifyPeer() *InputNotifyPeer { - return &InputNotifyPeer{ - Constructor: TLConstructor_CRC32_inputNotifyChats, - Data2: m.Data2, + if m.GetNewAlgo() != nil { + x.Bytes(m.GetNewAlgo().Encode()) + } + if m.GetNewPasswordHash() != nil { + x.StringBytes(m.GetNewPasswordHash()) + } + if m.GetHint() != "" { + x.String(m.GetHint()) + } + if m.GetEmail() != "" { + x.String(m.GetEmail()) + } + if m.GetNewSecureSettings() != nil { + x.Bytes(m.GetNewSecureSettings().Encode()) } -} -func NewTLInputNotifyChats() *TLInputNotifyChats { - return &TLInputNotifyChats{Data2: &InputNotifyPeer_Data{}} + return x.buf } -func (m *TLInputNotifyChats) Encode() []byte { +func (m *TLAccountPasswordInputSettings) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputNotifyChats)) + x.Int(int32(TLConstructor_CRC32_account_passwordInputSettings)) - return x.buf -} + // flags + var flags uint32 = 0 + if m.GetNewAlgo() != nil { + flags |= 1 << 0 + } + if m.GetNewPasswordHash() != nil { + flags |= 1 << 0 + } + if m.GetHint() != "" { + flags |= 1 << 0 + } + if m.GetEmail() != "" { + flags |= 1 << 1 + } + if m.GetNewSecureSettings() != nil { + flags |= 1 << 2 + } + x.UInt(flags) -func (m *TLInputNotifyChats) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputNotifyChats)) + if m.GetNewAlgo() != nil { + x.Bytes(m.GetNewAlgo().EncodeToLayer(layer)) + } + if m.GetNewPasswordHash() != nil { + x.StringBytes(m.GetNewPasswordHash()) + } + if m.GetHint() != "" { + x.String(m.GetHint()) + } + if m.GetEmail() != "" { + x.String(m.GetEmail()) + } + if m.GetNewSecureSettings() != nil { + x.Bytes(m.GetNewSecureSettings().EncodeToLayer(layer)) + } return x.buf } -func (m *TLInputNotifyChats) Decode(dbuf *DecodeBuf) error { +func (m *TLAccountPasswordInputSettings) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m2 := &PasswordKdfAlgo{} + m2.Decode(dbuf) + m.SetNewAlgo(m2) + } + if (flags & (1 << 0)) != 0 { + m.SetNewPasswordHash(dbuf.StringBytes()) + } + if (flags & (1 << 0)) != 0 { + m.SetHint(dbuf.String()) + } + if (flags & (1 << 1)) != 0 { + m.SetEmail(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m6 := &SecureSecretSettings{} + m6.Decode(dbuf) + m.SetNewSecureSettings(m6) + } return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ReceivedNotifyMessage <-- -// + TL_ReceivedNotifyMessage +// LabeledPrice <-- +// + TL_LabeledPrice // -func (m *ReceivedNotifyMessage) Encode() []byte { +func (m *LabeledPrice) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_receivedNotifyMessage: - t := m.To_ReceivedNotifyMessage() + case TLConstructor_CRC32_labeledPrice: + t := m.To_LabeledPrice() return t.Encode() default: @@ -22748,11 +23590,11 @@ func (m *ReceivedNotifyMessage) Encode() []byte { } } -func (m *ReceivedNotifyMessage) EncodeToLayer(layer int) []byte { +func (m *LabeledPrice) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_receivedNotifyMessage: - t := m.To_ReceivedNotifyMessage() + case TLConstructor_CRC32_labeledPrice: + t := m.To_LabeledPrice() return t.EncodeToLayer(layer) default: @@ -22761,11 +23603,11 @@ func (m *ReceivedNotifyMessage) EncodeToLayer(layer int) []byte { } } -func (m *ReceivedNotifyMessage) Decode(dbuf *DecodeBuf) error { +func (m *LabeledPrice) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_receivedNotifyMessage: - m2 := &TLReceivedNotifyMessage{Data2: &ReceivedNotifyMessage_Data{}} + case TLConstructor_CRC32_labeledPrice: + m2 := &TLLabeledPrice{Data2: &LabeledPrice_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -22775,67 +23617,75 @@ func (m *ReceivedNotifyMessage) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage; -func (m *ReceivedNotifyMessage) To_ReceivedNotifyMessage() *TLReceivedNotifyMessage { - return &TLReceivedNotifyMessage{ +// labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; +func (m *LabeledPrice) To_LabeledPrice() *TLLabeledPrice { + return &TLLabeledPrice{ Data2: m.Data2, } } -// receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage; -func (m *TLReceivedNotifyMessage) To_ReceivedNotifyMessage() *ReceivedNotifyMessage { - return &ReceivedNotifyMessage{ - Constructor: TLConstructor_CRC32_receivedNotifyMessage, +// labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; +func (m *TLLabeledPrice) To_LabeledPrice() *LabeledPrice { + return &LabeledPrice{ + Constructor: TLConstructor_CRC32_labeledPrice, Data2: m.Data2, } } -func (m *TLReceivedNotifyMessage) SetId(v int32) { m.Data2.Id = v } -func (m *TLReceivedNotifyMessage) GetId() int32 { return m.Data2.Id } +func (m *TLLabeledPrice) SetLabel(v string) { m.Data2.Label = v } +func (m *TLLabeledPrice) GetLabel() string { return m.Data2.Label } -func (m *TLReceivedNotifyMessage) SetFlags(v int32) { m.Data2.Flags = v } -func (m *TLReceivedNotifyMessage) GetFlags() int32 { return m.Data2.Flags } +func (m *TLLabeledPrice) SetAmount(v int64) { m.Data2.Amount = v } +func (m *TLLabeledPrice) GetAmount() int64 { return m.Data2.Amount } -func NewTLReceivedNotifyMessage() *TLReceivedNotifyMessage { - return &TLReceivedNotifyMessage{Data2: &ReceivedNotifyMessage_Data{}} +func NewTLLabeledPrice() *TLLabeledPrice { + return &TLLabeledPrice{Data2: &LabeledPrice_Data{}} } -func (m *TLReceivedNotifyMessage) Encode() []byte { +func (m *TLLabeledPrice) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_receivedNotifyMessage)) + x.Int(int32(TLConstructor_CRC32_labeledPrice)) - x.Int(m.GetId()) - x.Int(m.GetFlags()) + x.String(m.GetLabel()) + x.Long(m.GetAmount()) return x.buf } -func (m *TLReceivedNotifyMessage) EncodeToLayer(layer int) []byte { +func (m *TLLabeledPrice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_receivedNotifyMessage)) + x.Int(int32(TLConstructor_CRC32_labeledPrice)) - x.Int(m.GetId()) - x.Int(m.GetFlags()) + x.String(m.GetLabel()) + x.Long(m.GetAmount()) return x.buf } -func (m *TLReceivedNotifyMessage) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetFlags(dbuf.Int()) +func (m *TLLabeledPrice) Decode(dbuf *DecodeBuf) error { + m.SetLabel(dbuf.String()) + m.SetAmount(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// BotInfo <-- -// + TL_BotInfo +// InputUser <-- +// + TL_InputUserEmpty +// + TL_InputUserSelf +// + TL_InputUser // -func (m *BotInfo) Encode() []byte { +func (m *InputUser) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_botInfo: - t := m.To_BotInfo() + case TLConstructor_CRC32_inputUserEmpty: + t := m.To_InputUserEmpty() + return t.Encode() + case TLConstructor_CRC32_inputUserSelf: + t := m.To_InputUserSelf() + return t.Encode() + case TLConstructor_CRC32_inputUser: + t := m.To_InputUser() return t.Encode() default: @@ -22844,11 +23694,17 @@ func (m *BotInfo) Encode() []byte { } } -func (m *BotInfo) EncodeToLayer(layer int) []byte { +func (m *InputUser) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_botInfo: - t := m.To_BotInfo() + case TLConstructor_CRC32_inputUserEmpty: + t := m.To_InputUserEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputUserSelf: + t := m.To_InputUserSelf() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputUser: + t := m.To_InputUser() return t.EncodeToLayer(layer) default: @@ -22857,11 +23713,19 @@ func (m *BotInfo) EncodeToLayer(layer int) []byte { } } -func (m *BotInfo) Decode(dbuf *DecodeBuf) error { +func (m *InputUser) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_botInfo: - m2 := &TLBotInfo{Data2: &BotInfo_Data{}} + case TLConstructor_CRC32_inputUserEmpty: + m2 := &TLInputUserEmpty{Data2: &InputUser_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputUserSelf: + m2 := &TLInputUserSelf{Data2: &InputUser_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputUser: + m2 := &TLInputUser{Data2: &InputUser_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -22871,268 +23735,147 @@ func (m *BotInfo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// botInfo#98e81d3a user_id:int description:string commands:Vector = BotInfo; -func (m *BotInfo) To_BotInfo() *TLBotInfo { - return &TLBotInfo{ +// inputUserEmpty#b98886cf = InputUser; +func (m *InputUser) To_InputUserEmpty() *TLInputUserEmpty { + return &TLInputUserEmpty{ Data2: m.Data2, } } -// botInfo#98e81d3a user_id:int description:string commands:Vector = BotInfo; -func (m *TLBotInfo) To_BotInfo() *BotInfo { - return &BotInfo{ - Constructor: TLConstructor_CRC32_botInfo, - Data2: m.Data2, +// inputUserSelf#f7c1b13f = InputUser; +func (m *InputUser) To_InputUserSelf() *TLInputUserSelf { + return &TLInputUserSelf{ + Data2: m.Data2, } } -func (m *TLBotInfo) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLBotInfo) GetUserId() int32 { return m.Data2.UserId } +// inputUser#d8292816 user_id:int access_hash:long = InputUser; +func (m *InputUser) To_InputUser() *TLInputUser { + return &TLInputUser{ + Data2: m.Data2, + } +} -func (m *TLBotInfo) SetDescription(v string) { m.Data2.Description = v } -func (m *TLBotInfo) GetDescription() string { return m.Data2.Description } - -func (m *TLBotInfo) SetCommands(v []*BotCommand) { m.Data2.Commands = v } -func (m *TLBotInfo) GetCommands() []*BotCommand { return m.Data2.Commands } +// inputUserEmpty#b98886cf = InputUser; +func (m *TLInputUserEmpty) To_InputUser() *InputUser { + return &InputUser{ + Constructor: TLConstructor_CRC32_inputUserEmpty, + Data2: m.Data2, + } +} -func NewTLBotInfo() *TLBotInfo { - return &TLBotInfo{Data2: &BotInfo_Data{}} +func NewTLInputUserEmpty() *TLInputUserEmpty { + return &TLInputUserEmpty{Data2: &InputUser_Data{}} } -func (m *TLBotInfo) Encode() []byte { +func (m *TLInputUserEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInfo)) - - x.Int(m.GetUserId()) - x.String(m.GetDescription()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetCommands()))) - for _, v := range m.GetCommands() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(int32(TLConstructor_CRC32_inputUserEmpty)) return x.buf } -func (m *TLBotInfo) EncodeToLayer(layer int) []byte { +func (m *TLInputUserEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInfo)) - - x.Int(m.GetUserId()) - x.String(m.GetDescription()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetCommands()))) - for _, v := range m.GetCommands() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(int32(TLConstructor_CRC32_inputUserEmpty)) return x.buf } -func (m *TLBotInfo) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetDescription(dbuf.String()) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*BotCommand, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &BotCommand{} - v3[i].Decode(dbuf) - } - m.SetCommands(v3) +func (m *TLInputUserEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Messages_BotCallbackAnswer <-- -// + TL_MessagesBotCallbackAnswer -// - -func (m *Messages_BotCallbackAnswer) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_botCallbackAnswer: - t := m.To_MessagesBotCallbackAnswer() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// inputUserSelf#f7c1b13f = InputUser; +func (m *TLInputUserSelf) To_InputUser() *InputUser { + return &InputUser{ + Constructor: TLConstructor_CRC32_inputUserSelf, + Data2: m.Data2, } } -func (m *Messages_BotCallbackAnswer) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_botCallbackAnswer: - t := m.To_MessagesBotCallbackAnswer() - return t.EncodeToLayer(layer) +func NewTLInputUserSelf() *TLInputUserSelf { + return &TLInputUserSelf{Data2: &InputUser_Data{}} +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLInputUserSelf) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputUserSelf)) + + return x.buf } -func (m *Messages_BotCallbackAnswer) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_botCallbackAnswer: - m2 := &TLMessagesBotCallbackAnswer{Data2: &Messages_BotCallbackAnswer_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputUserSelf) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputUserSelf)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + return x.buf } -// messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; -func (m *Messages_BotCallbackAnswer) To_MessagesBotCallbackAnswer() *TLMessagesBotCallbackAnswer { - return &TLMessagesBotCallbackAnswer{ - Data2: m.Data2, - } +func (m *TLInputUserSelf) Decode(dbuf *DecodeBuf) error { + + return dbuf.err } -// messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; -func (m *TLMessagesBotCallbackAnswer) To_Messages_BotCallbackAnswer() *Messages_BotCallbackAnswer { - return &Messages_BotCallbackAnswer{ - Constructor: TLConstructor_CRC32_messages_botCallbackAnswer, +// inputUser#d8292816 user_id:int access_hash:long = InputUser; +func (m *TLInputUser) To_InputUser() *InputUser { + return &InputUser{ + Constructor: TLConstructor_CRC32_inputUser, Data2: m.Data2, } } -func (m *TLMessagesBotCallbackAnswer) SetAlert(v bool) { m.Data2.Alert = v } -func (m *TLMessagesBotCallbackAnswer) GetAlert() bool { return m.Data2.Alert } - -func (m *TLMessagesBotCallbackAnswer) SetHasUrl(v bool) { m.Data2.HasUrl = v } -func (m *TLMessagesBotCallbackAnswer) GetHasUrl() bool { return m.Data2.HasUrl } - -func (m *TLMessagesBotCallbackAnswer) SetNativeUi(v bool) { m.Data2.NativeUi = v } -func (m *TLMessagesBotCallbackAnswer) GetNativeUi() bool { return m.Data2.NativeUi } - -func (m *TLMessagesBotCallbackAnswer) SetMessage(v string) { m.Data2.Message = v } -func (m *TLMessagesBotCallbackAnswer) GetMessage() string { return m.Data2.Message } - -func (m *TLMessagesBotCallbackAnswer) SetUrl(v string) { m.Data2.Url = v } -func (m *TLMessagesBotCallbackAnswer) GetUrl() string { return m.Data2.Url } +func (m *TLInputUser) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLInputUser) GetUserId() int32 { return m.Data2.UserId } -func (m *TLMessagesBotCallbackAnswer) SetCacheTime(v int32) { m.Data2.CacheTime = v } -func (m *TLMessagesBotCallbackAnswer) GetCacheTime() int32 { return m.Data2.CacheTime } +func (m *TLInputUser) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputUser) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLMessagesBotCallbackAnswer() *TLMessagesBotCallbackAnswer { - return &TLMessagesBotCallbackAnswer{Data2: &Messages_BotCallbackAnswer_Data{}} +func NewTLInputUser() *TLInputUser { + return &TLInputUser{Data2: &InputUser_Data{}} } -func (m *TLMessagesBotCallbackAnswer) Encode() []byte { +func (m *TLInputUser) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_botCallbackAnswer)) - - // flags - var flags uint32 = 0 - if m.GetAlert() == true { - flags |= 1 << 1 - } - if m.GetHasUrl() == true { - flags |= 1 << 3 - } - if m.GetNativeUi() == true { - flags |= 1 << 4 - } - if m.GetMessage() != "" { - flags |= 1 << 0 - } - if m.GetUrl() != "" { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputUser)) - if m.GetMessage() != "" { - x.String(m.GetMessage()) - } - if m.GetUrl() != "" { - x.String(m.GetUrl()) - } - x.Int(m.GetCacheTime()) + x.Int(m.GetUserId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLMessagesBotCallbackAnswer) EncodeToLayer(layer int) []byte { +func (m *TLInputUser) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_botCallbackAnswer)) - - // flags - var flags uint32 = 0 - if m.GetAlert() == true { - flags |= 1 << 1 - } - if m.GetHasUrl() == true { - flags |= 1 << 3 - } - if m.GetNativeUi() == true { - flags |= 1 << 4 - } - if m.GetMessage() != "" { - flags |= 1 << 0 - } - if m.GetUrl() != "" { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputUser)) - if m.GetMessage() != "" { - x.String(m.GetMessage()) - } - if m.GetUrl() != "" { - x.String(m.GetUrl()) - } - x.Int(m.GetCacheTime()) + x.Int(m.GetUserId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLMessagesBotCallbackAnswer) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetAlert(true) - } - if (flags & (1 << 3)) != 0 { - m.SetHasUrl(true) - } - if (flags & (1 << 4)) != 0 { - m.SetNativeUi(true) - } - if (flags & (1 << 0)) != 0 { - m.SetMessage(dbuf.String()) - } - if (flags & (1 << 2)) != 0 { - m.SetUrl(dbuf.String()) - } - m.SetCacheTime(dbuf.Int()) +func (m *TLInputUser) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// StickerSetCovered <-- -// + TL_StickerSetCovered -// + TL_StickerSetMultiCovered +// Messages_Chats <-- +// + TL_MessagesChats +// + TL_MessagesChatsSlice // -func (m *StickerSetCovered) Encode() []byte { +func (m *Messages_Chats) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_stickerSetCovered: - t := m.To_StickerSetCovered() + case TLConstructor_CRC32_messages_chats: + t := m.To_MessagesChats() return t.Encode() - case TLConstructor_CRC32_stickerSetMultiCovered: - t := m.To_StickerSetMultiCovered() + case TLConstructor_CRC32_messages_chatsSlice: + t := m.To_MessagesChatsSlice() return t.Encode() default: @@ -23141,14 +23884,14 @@ func (m *StickerSetCovered) Encode() []byte { } } -func (m *StickerSetCovered) EncodeToLayer(layer int) []byte { +func (m *Messages_Chats) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_stickerSetCovered: - t := m.To_StickerSetCovered() + case TLConstructor_CRC32_messages_chats: + t := m.To_MessagesChats() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_stickerSetMultiCovered: - t := m.To_StickerSetMultiCovered() + case TLConstructor_CRC32_messages_chatsSlice: + t := m.To_MessagesChatsSlice() return t.EncodeToLayer(layer) default: @@ -23157,15 +23900,15 @@ func (m *StickerSetCovered) EncodeToLayer(layer int) []byte { } } -func (m *StickerSetCovered) Decode(dbuf *DecodeBuf) error { +func (m *Messages_Chats) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_stickerSetCovered: - m2 := &TLStickerSetCovered{Data2: &StickerSetCovered_Data{}} + case TLConstructor_CRC32_messages_chats: + m2 := &TLMessagesChats{Data2: &Messages_Chats_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_stickerSetMultiCovered: - m2 := &TLStickerSetMultiCovered{Data2: &StickerSetCovered_Data{}} + case TLConstructor_CRC32_messages_chatsSlice: + m2 := &TLMessagesChatsSlice{Data2: &Messages_Chats_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -23175,144 +23918,151 @@ func (m *StickerSetCovered) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered; -func (m *StickerSetCovered) To_StickerSetCovered() *TLStickerSetCovered { - return &TLStickerSetCovered{ +// messages.chats#64ff9fd5 chats:Vector = messages.Chats; +func (m *Messages_Chats) To_MessagesChats() *TLMessagesChats { + return &TLMessagesChats{ Data2: m.Data2, } } -// stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered; -func (m *StickerSetCovered) To_StickerSetMultiCovered() *TLStickerSetMultiCovered { - return &TLStickerSetMultiCovered{ +// messages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats; +func (m *Messages_Chats) To_MessagesChatsSlice() *TLMessagesChatsSlice { + return &TLMessagesChatsSlice{ Data2: m.Data2, } } -// stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered; -func (m *TLStickerSetCovered) To_StickerSetCovered() *StickerSetCovered { - return &StickerSetCovered{ - Constructor: TLConstructor_CRC32_stickerSetCovered, +// messages.chats#64ff9fd5 chats:Vector = messages.Chats; +func (m *TLMessagesChats) To_Messages_Chats() *Messages_Chats { + return &Messages_Chats{ + Constructor: TLConstructor_CRC32_messages_chats, Data2: m.Data2, } } -func (m *TLStickerSetCovered) SetSet(v *StickerSet) { m.Data2.Set = v } -func (m *TLStickerSetCovered) GetSet() *StickerSet { return m.Data2.Set } - -func (m *TLStickerSetCovered) SetCover(v *Document) { m.Data2.Cover = v } -func (m *TLStickerSetCovered) GetCover() *Document { return m.Data2.Cover } +func (m *TLMessagesChats) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLMessagesChats) GetChats() []*Chat { return m.Data2.Chats } -func NewTLStickerSetCovered() *TLStickerSetCovered { - return &TLStickerSetCovered{Data2: &StickerSetCovered_Data{}} +func NewTLMessagesChats() *TLMessagesChats { + return &TLMessagesChats{Data2: &Messages_Chats_Data{}} } -func (m *TLStickerSetCovered) Encode() []byte { +func (m *TLMessagesChats) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_stickerSetCovered)) + x.Int(int32(TLConstructor_CRC32_messages_chats)) - x.Bytes(m.GetSet().Encode()) - x.Bytes(m.GetCover().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLStickerSetCovered) EncodeToLayer(layer int) []byte { +func (m *TLMessagesChats) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_stickerSetCovered)) + x.Int(int32(TLConstructor_CRC32_messages_chats)) - x.Bytes(m.GetSet().EncodeToLayer(layer)) - x.Bytes(m.GetCover().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLStickerSetCovered) Decode(dbuf *DecodeBuf) error { - m1 := &StickerSet{} - m1.Decode(dbuf) - m.SetSet(m1) - m2 := &Document{} - m2.Decode(dbuf) - m.SetCover(m2) +func (m *TLMessagesChats) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*Chat, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Chat{} + v1[i].Decode(dbuf) + } + m.SetChats(v1) return dbuf.err } -// stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered; -func (m *TLStickerSetMultiCovered) To_StickerSetCovered() *StickerSetCovered { - return &StickerSetCovered{ - Constructor: TLConstructor_CRC32_stickerSetMultiCovered, +// messages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats; +func (m *TLMessagesChatsSlice) To_Messages_Chats() *Messages_Chats { + return &Messages_Chats{ + Constructor: TLConstructor_CRC32_messages_chatsSlice, Data2: m.Data2, } } -func (m *TLStickerSetMultiCovered) SetSet(v *StickerSet) { m.Data2.Set = v } -func (m *TLStickerSetMultiCovered) GetSet() *StickerSet { return m.Data2.Set } +func (m *TLMessagesChatsSlice) SetCount(v int32) { m.Data2.Count = v } +func (m *TLMessagesChatsSlice) GetCount() int32 { return m.Data2.Count } -func (m *TLStickerSetMultiCovered) SetCovers(v []*Document) { m.Data2.Covers = v } -func (m *TLStickerSetMultiCovered) GetCovers() []*Document { return m.Data2.Covers } +func (m *TLMessagesChatsSlice) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLMessagesChatsSlice) GetChats() []*Chat { return m.Data2.Chats } -func NewTLStickerSetMultiCovered() *TLStickerSetMultiCovered { - return &TLStickerSetMultiCovered{Data2: &StickerSetCovered_Data{}} +func NewTLMessagesChatsSlice() *TLMessagesChatsSlice { + return &TLMessagesChatsSlice{Data2: &Messages_Chats_Data{}} } -func (m *TLStickerSetMultiCovered) Encode() []byte { +func (m *TLMessagesChatsSlice) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_stickerSetMultiCovered)) + x.Int(int32(TLConstructor_CRC32_messages_chatsSlice)) - x.Bytes(m.GetSet().Encode()) + x.Int(m.GetCount()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetCovers()))) - for _, v := range m.GetCovers() { + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLStickerSetMultiCovered) EncodeToLayer(layer int) []byte { +func (m *TLMessagesChatsSlice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_stickerSetMultiCovered)) + x.Int(int32(TLConstructor_CRC32_messages_chatsSlice)) - x.Bytes(m.GetSet().EncodeToLayer(layer)) + x.Int(m.GetCount()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetCovers()))) - for _, v := range m.GetCovers() { + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLStickerSetMultiCovered) Decode(dbuf *DecodeBuf) error { - m1 := &StickerSet{} - m1.Decode(dbuf) - m.SetSet(m1) +func (m *TLMessagesChatsSlice) Decode(dbuf *DecodeBuf) error { + m.SetCount(dbuf.Int()) c2 := dbuf.Int() if c2 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } l2 := dbuf.Int() - v2 := make([]*Document, l2) + v2 := make([]*Chat, l2) for i := int32(0); i < l2; i++ { - v2[i] = &Document{} + v2[i] = &Chat{} v2[i].Decode(dbuf) } - m.SetCovers(v2) + m.SetChats(v2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PaymentSavedCredentials <-- -// + TL_PaymentSavedCredentialsCard +// Help_TermsOfService <-- +// + TL_HelpTermsOfService // -func (m *PaymentSavedCredentials) Encode() []byte { +func (m *Help_TermsOfService) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_paymentSavedCredentialsCard: - t := m.To_PaymentSavedCredentialsCard() + case TLConstructor_CRC32_help_termsOfService: + t := m.To_HelpTermsOfService() return t.Encode() default: @@ -23321,11 +24071,11 @@ func (m *PaymentSavedCredentials) Encode() []byte { } } -func (m *PaymentSavedCredentials) EncodeToLayer(layer int) []byte { +func (m *Help_TermsOfService) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_paymentSavedCredentialsCard: - t := m.To_PaymentSavedCredentialsCard() + case TLConstructor_CRC32_help_termsOfService: + t := m.To_HelpTermsOfService() return t.EncodeToLayer(layer) default: @@ -23334,11 +24084,11 @@ func (m *PaymentSavedCredentials) EncodeToLayer(layer int) []byte { } } -func (m *PaymentSavedCredentials) Decode(dbuf *DecodeBuf) error { +func (m *Help_TermsOfService) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_paymentSavedCredentialsCard: - m2 := &TLPaymentSavedCredentialsCard{Data2: &PaymentSavedCredentials_Data{}} + case TLConstructor_CRC32_help_termsOfService: + m2 := &TLHelpTermsOfService{Data2: &Help_TermsOfService_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -23348,188 +24098,135 @@ func (m *PaymentSavedCredentials) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; -func (m *PaymentSavedCredentials) To_PaymentSavedCredentialsCard() *TLPaymentSavedCredentialsCard { - return &TLPaymentSavedCredentialsCard{ +// help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService; +func (m *Help_TermsOfService) To_HelpTermsOfService() *TLHelpTermsOfService { + return &TLHelpTermsOfService{ Data2: m.Data2, } } -// paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; -func (m *TLPaymentSavedCredentialsCard) To_PaymentSavedCredentials() *PaymentSavedCredentials { - return &PaymentSavedCredentials{ - Constructor: TLConstructor_CRC32_paymentSavedCredentialsCard, +// help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService; +func (m *TLHelpTermsOfService) To_Help_TermsOfService() *Help_TermsOfService { + return &Help_TermsOfService{ + Constructor: TLConstructor_CRC32_help_termsOfService, Data2: m.Data2, } } -func (m *TLPaymentSavedCredentialsCard) SetId(v string) { m.Data2.Id = v } -func (m *TLPaymentSavedCredentialsCard) GetId() string { return m.Data2.Id } +func (m *TLHelpTermsOfService) SetPopup(v bool) { m.Data2.Popup = v } +func (m *TLHelpTermsOfService) GetPopup() bool { return m.Data2.Popup } -func (m *TLPaymentSavedCredentialsCard) SetTitle(v string) { m.Data2.Title = v } -func (m *TLPaymentSavedCredentialsCard) GetTitle() string { return m.Data2.Title } +func (m *TLHelpTermsOfService) SetId(v *DataJSON) { m.Data2.Id = v } +func (m *TLHelpTermsOfService) GetId() *DataJSON { return m.Data2.Id } -func NewTLPaymentSavedCredentialsCard() *TLPaymentSavedCredentialsCard { - return &TLPaymentSavedCredentialsCard{Data2: &PaymentSavedCredentials_Data{}} -} +func (m *TLHelpTermsOfService) SetText(v string) { m.Data2.Text = v } +func (m *TLHelpTermsOfService) GetText() string { return m.Data2.Text } -func (m *TLPaymentSavedCredentialsCard) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_paymentSavedCredentialsCard)) +func (m *TLHelpTermsOfService) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLHelpTermsOfService) GetEntities() []*MessageEntity { return m.Data2.Entities } - x.String(m.GetId()) - x.String(m.GetTitle()) +func (m *TLHelpTermsOfService) SetMinAgeConfirm(v int32) { m.Data2.MinAgeConfirm = v } +func (m *TLHelpTermsOfService) GetMinAgeConfirm() int32 { return m.Data2.MinAgeConfirm } - return x.buf +func NewTLHelpTermsOfService() *TLHelpTermsOfService { + return &TLHelpTermsOfService{Data2: &Help_TermsOfService_Data{}} } -func (m *TLPaymentSavedCredentialsCard) EncodeToLayer(layer int) []byte { +func (m *TLHelpTermsOfService) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_paymentSavedCredentialsCard)) - - x.String(m.GetId()) - x.String(m.GetTitle()) + x.Int(int32(TLConstructor_CRC32_help_termsOfService)) - return x.buf -} + // flags + var flags uint32 = 0 + if m.GetPopup() == true { + flags |= 1 << 0 + } + if m.GetMinAgeConfirm() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) -func (m *TLPaymentSavedCredentialsCard) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.String()) - m.SetTitle(dbuf.String()) + x.Bytes(m.GetId().Encode()) + x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } + if m.GetMinAgeConfirm() != 0 { + x.Int(m.GetMinAgeConfirm()) + } - return dbuf.err + return x.buf } -/////////////////////////////////////////////////////////////////////////////// -// ShippingOption <-- -// + TL_ShippingOption -// - -func (m *ShippingOption) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_shippingOption: - t := m.To_ShippingOption() - return t.Encode() +func (m *TLHelpTermsOfService) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_help_termsOfService)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetPopup() == true { + flags |= 1 << 0 } -} + if m.GetMinAgeConfirm() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) -func (m *ShippingOption) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_shippingOption: - t := m.To_ShippingOption() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *ShippingOption) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_shippingOption: - m2 := &TLShippingOption{Data2: &ShippingOption_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; -func (m *ShippingOption) To_ShippingOption() *TLShippingOption { - return &TLShippingOption{ - Data2: m.Data2, - } -} - -// shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; -func (m *TLShippingOption) To_ShippingOption() *ShippingOption { - return &ShippingOption{ - Constructor: TLConstructor_CRC32_shippingOption, - Data2: m.Data2, - } -} - -func (m *TLShippingOption) SetId(v string) { m.Data2.Id = v } -func (m *TLShippingOption) GetId() string { return m.Data2.Id } - -func (m *TLShippingOption) SetTitle(v string) { m.Data2.Title = v } -func (m *TLShippingOption) GetTitle() string { return m.Data2.Title } - -func (m *TLShippingOption) SetPrices(v []*LabeledPrice) { m.Data2.Prices = v } -func (m *TLShippingOption) GetPrices() []*LabeledPrice { return m.Data2.Prices } - -func NewTLShippingOption() *TLShippingOption { - return &TLShippingOption{Data2: &ShippingOption_Data{}} -} - -func (m *TLShippingOption) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_shippingOption)) - - x.String(m.GetId()) - x.String(m.GetTitle()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPrices()))) - for _, v := range m.GetPrices() { - x.buf = append(x.buf, (*v).Encode()...) - } - - return x.buf -} - -func (m *TLShippingOption) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_shippingOption)) - - x.String(m.GetId()) - x.String(m.GetTitle()) + x.Bytes(m.GetId().EncodeToLayer(layer)) + x.String(m.GetText()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPrices()))) - for _, v := range m.GetPrices() { + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } + if m.GetMinAgeConfirm() != 0 { + x.Int(m.GetMinAgeConfirm()) + } return x.buf } -func (m *TLShippingOption) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.String()) - m.SetTitle(dbuf.String()) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) +func (m *TLHelpTermsOfService) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetPopup(true) + } + m3 := &DataJSON{} + m3.Decode(dbuf) + m.SetId(m3) + m.SetText(dbuf.String()) + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) return dbuf.err } - l3 := dbuf.Int() - v3 := make([]*LabeledPrice, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &LabeledPrice{} - v3[i].Decode(dbuf) + l5 := dbuf.Int() + v5 := make([]*MessageEntity, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &MessageEntity{} + v5[i].Decode(dbuf) + } + m.SetEntities(v5) + + if (flags & (1 << 1)) != 0 { + m.SetMinAgeConfirm(dbuf.Int()) } - m.SetPrices(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputContact <-- -// + TL_InputPhoneContact +// InlineBotSwitchPM <-- +// + TL_InlineBotSwitchPM // -func (m *InputContact) Encode() []byte { +func (m *InlineBotSwitchPM) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputPhoneContact: - t := m.To_InputPhoneContact() + case TLConstructor_CRC32_inlineBotSwitchPM: + t := m.To_InlineBotSwitchPM() return t.Encode() default: @@ -23538,11 +24235,11 @@ func (m *InputContact) Encode() []byte { } } -func (m *InputContact) EncodeToLayer(layer int) []byte { +func (m *InlineBotSwitchPM) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputPhoneContact: - t := m.To_InputPhoneContact() + case TLConstructor_CRC32_inlineBotSwitchPM: + t := m.To_InlineBotSwitchPM() return t.EncodeToLayer(layer) default: @@ -23551,11 +24248,11 @@ func (m *InputContact) EncodeToLayer(layer int) []byte { } } -func (m *InputContact) Decode(dbuf *DecodeBuf) error { +func (m *InlineBotSwitchPM) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputPhoneContact: - m2 := &TLInputPhoneContact{Data2: &InputContact_Data{}} + case TLConstructor_CRC32_inlineBotSwitchPM: + m2 := &TLInlineBotSwitchPM{Data2: &InlineBotSwitchPM_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -23565,79 +24262,67 @@ func (m *InputContact) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact; -func (m *InputContact) To_InputPhoneContact() *TLInputPhoneContact { - return &TLInputPhoneContact{ +// inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM; +func (m *InlineBotSwitchPM) To_InlineBotSwitchPM() *TLInlineBotSwitchPM { + return &TLInlineBotSwitchPM{ Data2: m.Data2, } } -// inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact; -func (m *TLInputPhoneContact) To_InputContact() *InputContact { - return &InputContact{ - Constructor: TLConstructor_CRC32_inputPhoneContact, +// inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM; +func (m *TLInlineBotSwitchPM) To_InlineBotSwitchPM() *InlineBotSwitchPM { + return &InlineBotSwitchPM{ + Constructor: TLConstructor_CRC32_inlineBotSwitchPM, Data2: m.Data2, } } -func (m *TLInputPhoneContact) SetClientId(v int64) { m.Data2.ClientId = v } -func (m *TLInputPhoneContact) GetClientId() int64 { return m.Data2.ClientId } - -func (m *TLInputPhoneContact) SetPhone(v string) { m.Data2.Phone = v } -func (m *TLInputPhoneContact) GetPhone() string { return m.Data2.Phone } - -func (m *TLInputPhoneContact) SetFirstName(v string) { m.Data2.FirstName = v } -func (m *TLInputPhoneContact) GetFirstName() string { return m.Data2.FirstName } +func (m *TLInlineBotSwitchPM) SetText(v string) { m.Data2.Text = v } +func (m *TLInlineBotSwitchPM) GetText() string { return m.Data2.Text } -func (m *TLInputPhoneContact) SetLastName(v string) { m.Data2.LastName = v } -func (m *TLInputPhoneContact) GetLastName() string { return m.Data2.LastName } +func (m *TLInlineBotSwitchPM) SetStartParam(v string) { m.Data2.StartParam = v } +func (m *TLInlineBotSwitchPM) GetStartParam() string { return m.Data2.StartParam } -func NewTLInputPhoneContact() *TLInputPhoneContact { - return &TLInputPhoneContact{Data2: &InputContact_Data{}} +func NewTLInlineBotSwitchPM() *TLInlineBotSwitchPM { + return &TLInlineBotSwitchPM{Data2: &InlineBotSwitchPM_Data{}} } -func (m *TLInputPhoneContact) Encode() []byte { +func (m *TLInlineBotSwitchPM) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhoneContact)) + x.Int(int32(TLConstructor_CRC32_inlineBotSwitchPM)) - x.Long(m.GetClientId()) - x.String(m.GetPhone()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) + x.String(m.GetText()) + x.String(m.GetStartParam()) return x.buf } -func (m *TLInputPhoneContact) EncodeToLayer(layer int) []byte { +func (m *TLInlineBotSwitchPM) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhoneContact)) + x.Int(int32(TLConstructor_CRC32_inlineBotSwitchPM)) - x.Long(m.GetClientId()) - x.String(m.GetPhone()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) + x.String(m.GetText()) + x.String(m.GetStartParam()) return x.buf } -func (m *TLInputPhoneContact) Decode(dbuf *DecodeBuf) error { - m.SetClientId(dbuf.Long()) - m.SetPhone(dbuf.String()) - m.SetFirstName(dbuf.String()) - m.SetLastName(dbuf.String()) +func (m *TLInlineBotSwitchPM) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) + m.SetStartParam(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PeerSettings <-- -// + TL_PeerSettings +// Error <-- +// + TL_Error // -func (m *PeerSettings) Encode() []byte { +func (m *Error) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_peerSettings: - t := m.To_PeerSettings() + case TLConstructor_CRC32_error: + t := m.To_Error() return t.Encode() default: @@ -23646,11 +24331,11 @@ func (m *PeerSettings) Encode() []byte { } } -func (m *PeerSettings) EncodeToLayer(layer int) []byte { +func (m *Error) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_peerSettings: - t := m.To_PeerSettings() + case TLConstructor_CRC32_error: + t := m.To_Error() return t.EncodeToLayer(layer) default: @@ -23659,11 +24344,11 @@ func (m *PeerSettings) EncodeToLayer(layer int) []byte { } } -func (m *PeerSettings) Decode(dbuf *DecodeBuf) error { +func (m *Error) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_peerSettings: - m2 := &TLPeerSettings{Data2: &PeerSettings_Data{}} + case TLConstructor_CRC32_error: + m2 := &TLError{Data2: &Error_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -23673,83 +24358,107 @@ func (m *PeerSettings) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// peerSettings#818426cd flags:# report_spam:flags.0?true = PeerSettings; -func (m *PeerSettings) To_PeerSettings() *TLPeerSettings { - return &TLPeerSettings{ +// error#c4b9f9bb code:int text:string = Error; +func (m *Error) To_Error() *TLError { + return &TLError{ Data2: m.Data2, } } -// peerSettings#818426cd flags:# report_spam:flags.0?true = PeerSettings; -func (m *TLPeerSettings) To_PeerSettings() *PeerSettings { - return &PeerSettings{ - Constructor: TLConstructor_CRC32_peerSettings, +// error#c4b9f9bb code:int text:string = Error; +func (m *TLError) To_Error() *Error { + return &Error{ + Constructor: TLConstructor_CRC32_error, Data2: m.Data2, } } -func (m *TLPeerSettings) SetReportSpam(v bool) { m.Data2.ReportSpam = v } -func (m *TLPeerSettings) GetReportSpam() bool { return m.Data2.ReportSpam } +func (m *TLError) SetCode(v int32) { m.Data2.Code = v } +func (m *TLError) GetCode() int32 { return m.Data2.Code } -func NewTLPeerSettings() *TLPeerSettings { - return &TLPeerSettings{Data2: &PeerSettings_Data{}} +func (m *TLError) SetText(v string) { m.Data2.Text = v } +func (m *TLError) GetText() string { return m.Data2.Text } + +func NewTLError() *TLError { + return &TLError{Data2: &Error_Data{}} } -func (m *TLPeerSettings) Encode() []byte { +func (m *TLError) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerSettings)) + x.Int(int32(TLConstructor_CRC32_error)) - // flags - var flags uint32 = 0 - if m.GetReportSpam() == true { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(m.GetCode()) + x.String(m.GetText()) return x.buf } -func (m *TLPeerSettings) EncodeToLayer(layer int) []byte { +func (m *TLError) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerSettings)) + x.Int(int32(TLConstructor_CRC32_error)) - // flags - var flags uint32 = 0 - if m.GetReportSpam() == true { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(m.GetCode()) + x.String(m.GetText()) return x.buf } -func (m *TLPeerSettings) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetReportSpam(true) - } +func (m *TLError) Decode(dbuf *DecodeBuf) error { + m.SetCode(dbuf.Int()) + m.SetText(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// NotifyPeer <-- -// + TL_NotifyPeer -// + TL_NotifyUsers -// + TL_NotifyChats +// MessageMedia <-- +// + TL_MessageMediaEmpty +// + TL_MessageMediaPhoto +// + TL_MessageMediaGeo +// + TL_MessageMediaContact +// + TL_MessageMediaUnsupported +// + TL_MessageMediaDocument +// + TL_MessageMediaWebPage +// + TL_MessageMediaVenue +// + TL_MessageMediaGame +// + TL_MessageMediaInvoice +// + TL_MessageMediaGeoLive // -func (m *NotifyPeer) Encode() []byte { +func (m *MessageMedia) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_notifyPeer: - t := m.To_NotifyPeer() + case TLConstructor_CRC32_messageMediaEmpty: + t := m.To_MessageMediaEmpty() return t.Encode() - case TLConstructor_CRC32_notifyUsers: - t := m.To_NotifyUsers() + case TLConstructor_CRC32_messageMediaPhoto: + t := m.To_MessageMediaPhoto() return t.Encode() - case TLConstructor_CRC32_notifyChats: - t := m.To_NotifyChats() + case TLConstructor_CRC32_messageMediaGeo: + t := m.To_MessageMediaGeo() + return t.Encode() + case TLConstructor_CRC32_messageMediaContact: + t := m.To_MessageMediaContact() + return t.Encode() + case TLConstructor_CRC32_messageMediaUnsupported: + t := m.To_MessageMediaUnsupported() + return t.Encode() + case TLConstructor_CRC32_messageMediaDocument: + t := m.To_MessageMediaDocument() + return t.Encode() + case TLConstructor_CRC32_messageMediaWebPage: + t := m.To_MessageMediaWebPage() + return t.Encode() + case TLConstructor_CRC32_messageMediaVenue: + t := m.To_MessageMediaVenue() + return t.Encode() + case TLConstructor_CRC32_messageMediaGame: + t := m.To_MessageMediaGame() + return t.Encode() + case TLConstructor_CRC32_messageMediaInvoice: + t := m.To_MessageMediaInvoice() + return t.Encode() + case TLConstructor_CRC32_messageMediaGeoLive: + t := m.To_MessageMediaGeoLive() return t.Encode() default: @@ -23758,17 +24467,41 @@ func (m *NotifyPeer) Encode() []byte { } } -func (m *NotifyPeer) EncodeToLayer(layer int) []byte { +func (m *MessageMedia) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_notifyPeer: - t := m.To_NotifyPeer() + case TLConstructor_CRC32_messageMediaEmpty: + t := m.To_MessageMediaEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_notifyUsers: - t := m.To_NotifyUsers() + case TLConstructor_CRC32_messageMediaPhoto: + t := m.To_MessageMediaPhoto() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_notifyChats: - t := m.To_NotifyChats() + case TLConstructor_CRC32_messageMediaGeo: + t := m.To_MessageMediaGeo() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageMediaContact: + t := m.To_MessageMediaContact() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageMediaUnsupported: + t := m.To_MessageMediaUnsupported() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageMediaDocument: + t := m.To_MessageMediaDocument() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageMediaWebPage: + t := m.To_MessageMediaWebPage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageMediaVenue: + t := m.To_MessageMediaVenue() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageMediaGame: + t := m.To_MessageMediaGame() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageMediaInvoice: + t := m.To_MessageMediaInvoice() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageMediaGeoLive: + t := m.To_MessageMediaGeoLive() return t.EncodeToLayer(layer) default: @@ -23777,19 +24510,51 @@ func (m *NotifyPeer) EncodeToLayer(layer int) []byte { } } -func (m *NotifyPeer) Decode(dbuf *DecodeBuf) error { +func (m *MessageMedia) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_notifyPeer: - m2 := &TLNotifyPeer{Data2: &NotifyPeer_Data{}} + case TLConstructor_CRC32_messageMediaEmpty: + m2 := &TLMessageMediaEmpty{Data2: &MessageMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_notifyUsers: - m2 := &TLNotifyUsers{Data2: &NotifyPeer_Data{}} + case TLConstructor_CRC32_messageMediaPhoto: + m2 := &TLMessageMediaPhoto{Data2: &MessageMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_notifyChats: - m2 := &TLNotifyChats{Data2: &NotifyPeer_Data{}} + case TLConstructor_CRC32_messageMediaGeo: + m2 := &TLMessageMediaGeo{Data2: &MessageMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageMediaContact: + m2 := &TLMessageMediaContact{Data2: &MessageMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageMediaUnsupported: + m2 := &TLMessageMediaUnsupported{Data2: &MessageMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageMediaDocument: + m2 := &TLMessageMediaDocument{Data2: &MessageMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageMediaWebPage: + m2 := &TLMessageMediaWebPage{Data2: &MessageMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageMediaVenue: + m2 := &TLMessageMediaVenue{Data2: &MessageMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageMediaGame: + m2 := &TLMessageMediaGame{Data2: &MessageMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageMediaInvoice: + m2 := &TLMessageMediaInvoice{Data2: &MessageMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageMediaGeoLive: + m2 := &TLMessageMediaGeoLive{Data2: &MessageMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -23799,745 +24564,763 @@ func (m *NotifyPeer) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; -func (m *NotifyPeer) To_NotifyPeer() *TLNotifyPeer { - return &TLNotifyPeer{ +// messageMediaEmpty#3ded6320 = MessageMedia; +func (m *MessageMedia) To_MessageMediaEmpty() *TLMessageMediaEmpty { + return &TLMessageMediaEmpty{ Data2: m.Data2, } } -// notifyUsers#b4c83b4c = NotifyPeer; -func (m *NotifyPeer) To_NotifyUsers() *TLNotifyUsers { - return &TLNotifyUsers{ +// messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; +func (m *MessageMedia) To_MessageMediaPhoto() *TLMessageMediaPhoto { + return &TLMessageMediaPhoto{ Data2: m.Data2, } } -// notifyChats#c007cec3 = NotifyPeer; -func (m *NotifyPeer) To_NotifyChats() *TLNotifyChats { - return &TLNotifyChats{ +// messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia; +func (m *MessageMedia) To_MessageMediaGeo() *TLMessageMediaGeo { + return &TLMessageMediaGeo{ Data2: m.Data2, } } -// notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; -func (m *TLNotifyPeer) To_NotifyPeer() *NotifyPeer { - return &NotifyPeer{ - Constructor: TLConstructor_CRC32_notifyPeer, - Data2: m.Data2, +// messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia; +func (m *MessageMedia) To_MessageMediaContact() *TLMessageMediaContact { + return &TLMessageMediaContact{ + Data2: m.Data2, } } -func (m *TLNotifyPeer) SetPeer(v *Peer) { m.Data2.Peer = v } -func (m *TLNotifyPeer) GetPeer() *Peer { return m.Data2.Peer } - -func NewTLNotifyPeer() *TLNotifyPeer { - return &TLNotifyPeer{Data2: &NotifyPeer_Data{}} +// messageMediaUnsupported#9f84f49e = MessageMedia; +func (m *MessageMedia) To_MessageMediaUnsupported() *TLMessageMediaUnsupported { + return &TLMessageMediaUnsupported{ + Data2: m.Data2, + } } -func (m *TLNotifyPeer) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_notifyPeer)) - - x.Bytes(m.GetPeer().Encode()) - - return x.buf +// messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia; +func (m *MessageMedia) To_MessageMediaDocument() *TLMessageMediaDocument { + return &TLMessageMediaDocument{ + Data2: m.Data2, + } } -func (m *TLNotifyPeer) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_notifyPeer)) - - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - - return x.buf +// messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia; +func (m *MessageMedia) To_MessageMediaWebPage() *TLMessageMediaWebPage { + return &TLMessageMediaWebPage{ + Data2: m.Data2, + } } -func (m *TLNotifyPeer) Decode(dbuf *DecodeBuf) error { - m1 := &Peer{} - m1.Decode(dbuf) - m.SetPeer(m1) - - return dbuf.err +// messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia; +func (m *MessageMedia) To_MessageMediaVenue() *TLMessageMediaVenue { + return &TLMessageMediaVenue{ + Data2: m.Data2, + } } -// notifyUsers#b4c83b4c = NotifyPeer; -func (m *TLNotifyUsers) To_NotifyPeer() *NotifyPeer { - return &NotifyPeer{ - Constructor: TLConstructor_CRC32_notifyUsers, - Data2: m.Data2, +// messageMediaGame#fdb19008 game:Game = MessageMedia; +func (m *MessageMedia) To_MessageMediaGame() *TLMessageMediaGame { + return &TLMessageMediaGame{ + Data2: m.Data2, } } -func NewTLNotifyUsers() *TLNotifyUsers { - return &TLNotifyUsers{Data2: &NotifyPeer_Data{}} +// messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; +func (m *MessageMedia) To_MessageMediaInvoice() *TLMessageMediaInvoice { + return &TLMessageMediaInvoice{ + Data2: m.Data2, + } } -func (m *TLNotifyUsers) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_notifyUsers)) - +// messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia; +func (m *MessageMedia) To_MessageMediaGeoLive() *TLMessageMediaGeoLive { + return &TLMessageMediaGeoLive{ + Data2: m.Data2, + } +} + +// messageMediaEmpty#3ded6320 = MessageMedia; +func (m *TLMessageMediaEmpty) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaEmpty, + Data2: m.Data2, + } +} + +func NewTLMessageMediaEmpty() *TLMessageMediaEmpty { + return &TLMessageMediaEmpty{Data2: &MessageMedia_Data{}} +} + +func (m *TLMessageMediaEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaEmpty)) + return x.buf } -func (m *TLNotifyUsers) EncodeToLayer(layer int) []byte { +func (m *TLMessageMediaEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_notifyUsers)) + x.Int(int32(TLConstructor_CRC32_messageMediaEmpty)) return x.buf } -func (m *TLNotifyUsers) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageMediaEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// notifyChats#c007cec3 = NotifyPeer; -func (m *TLNotifyChats) To_NotifyPeer() *NotifyPeer { - return &NotifyPeer{ - Constructor: TLConstructor_CRC32_notifyChats, +// messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; +func (m *TLMessageMediaPhoto) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaPhoto, Data2: m.Data2, } } -func NewTLNotifyChats() *TLNotifyChats { - return &TLNotifyChats{Data2: &NotifyPeer_Data{}} +func (m *TLMessageMediaPhoto) SetPhoto(v *Photo) { m.Data2.Photo_1 = v } +func (m *TLMessageMediaPhoto) GetPhoto() *Photo { return m.Data2.Photo_1 } + +func (m *TLMessageMediaPhoto) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } +func (m *TLMessageMediaPhoto) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } + +func NewTLMessageMediaPhoto() *TLMessageMediaPhoto { + return &TLMessageMediaPhoto{Data2: &MessageMedia_Data{}} } -func (m *TLNotifyChats) Encode() []byte { +func (m *TLMessageMediaPhoto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_notifyChats)) + x.Int(int32(TLConstructor_CRC32_messageMediaPhoto)) + + // flags + var flags uint32 = 0 + if m.GetPhoto() != nil { + flags |= 1 << 0 + } + if m.GetTtlSeconds() != 0 { + flags |= 1 << 2 + } + x.UInt(flags) + + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().Encode()) + } + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) + } return x.buf } -func (m *TLNotifyChats) EncodeToLayer(layer int) []byte { +func (m *TLMessageMediaPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_notifyChats)) + x.Int(int32(TLConstructor_CRC32_messageMediaPhoto)) + + // flags + var flags uint32 = 0 + if m.GetPhoto() != nil { + flags |= 1 << 0 + } + if m.GetTtlSeconds() != 0 { + flags |= 1 << 2 + } + x.UInt(flags) + + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + } + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) + } return x.buf } -func (m *TLNotifyChats) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageMediaPhoto) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m2 := &Photo{} + m2.Decode(dbuf) + m.SetPhoto(m2) + } + if (flags & (1 << 2)) != 0 { + m.SetTtlSeconds(dbuf.Int()) + } return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// HighScore <-- -// + TL_HighScore -// +// messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia; +func (m *TLMessageMediaGeo) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaGeo, + Data2: m.Data2, + } +} -func (m *HighScore) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_highScore: - t := m.To_HighScore() - return t.Encode() +func (m *TLMessageMediaGeo) SetGeo(v *GeoPoint) { m.Data2.Geo = v } +func (m *TLMessageMediaGeo) GetGeo() *GeoPoint { return m.Data2.Geo } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLMessageMediaGeo() *TLMessageMediaGeo { + return &TLMessageMediaGeo{Data2: &MessageMedia_Data{}} } -func (m *HighScore) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_highScore: - t := m.To_HighScore() - return t.EncodeToLayer(layer) +func (m *TLMessageMediaGeo) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaGeo)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetGeo().Encode()) + + return x.buf } -func (m *HighScore) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_highScore: - m2 := &TLHighScore{Data2: &HighScore_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLMessageMediaGeo) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaGeo)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetGeo().EncodeToLayer(layer)) + + return x.buf } -// highScore#58fffcd0 pos:int user_id:int score:int = HighScore; -func (m *HighScore) To_HighScore() *TLHighScore { - return &TLHighScore{ - Data2: m.Data2, - } +func (m *TLMessageMediaGeo) Decode(dbuf *DecodeBuf) error { + m1 := &GeoPoint{} + m1.Decode(dbuf) + m.SetGeo(m1) + + return dbuf.err } -// highScore#58fffcd0 pos:int user_id:int score:int = HighScore; -func (m *TLHighScore) To_HighScore() *HighScore { - return &HighScore{ - Constructor: TLConstructor_CRC32_highScore, +// messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia; +func (m *TLMessageMediaContact) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaContact, Data2: m.Data2, } } -func (m *TLHighScore) SetPos(v int32) { m.Data2.Pos = v } -func (m *TLHighScore) GetPos() int32 { return m.Data2.Pos } +func (m *TLMessageMediaContact) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } +func (m *TLMessageMediaContact) GetPhoneNumber() string { return m.Data2.PhoneNumber } -func (m *TLHighScore) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLHighScore) GetUserId() int32 { return m.Data2.UserId } +func (m *TLMessageMediaContact) SetFirstName(v string) { m.Data2.FirstName = v } +func (m *TLMessageMediaContact) GetFirstName() string { return m.Data2.FirstName } -func (m *TLHighScore) SetScore(v int32) { m.Data2.Score = v } -func (m *TLHighScore) GetScore() int32 { return m.Data2.Score } +func (m *TLMessageMediaContact) SetLastName(v string) { m.Data2.LastName = v } +func (m *TLMessageMediaContact) GetLastName() string { return m.Data2.LastName } -func NewTLHighScore() *TLHighScore { - return &TLHighScore{Data2: &HighScore_Data{}} +func (m *TLMessageMediaContact) SetVcard(v string) { m.Data2.Vcard = v } +func (m *TLMessageMediaContact) GetVcard() string { return m.Data2.Vcard } + +func (m *TLMessageMediaContact) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLMessageMediaContact) GetUserId() int32 { return m.Data2.UserId } + +func NewTLMessageMediaContact() *TLMessageMediaContact { + return &TLMessageMediaContact{Data2: &MessageMedia_Data{}} } -func (m *TLHighScore) Encode() []byte { +func (m *TLMessageMediaContact) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_highScore)) + x.Int(int32(TLConstructor_CRC32_messageMediaContact)) - x.Int(m.GetPos()) + x.String(m.GetPhoneNumber()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetVcard()) x.Int(m.GetUserId()) - x.Int(m.GetScore()) return x.buf } -func (m *TLHighScore) EncodeToLayer(layer int) []byte { +func (m *TLMessageMediaContact) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_highScore)) + x.Int(int32(TLConstructor_CRC32_messageMediaContact)) - x.Int(m.GetPos()) + x.String(m.GetPhoneNumber()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetVcard()) x.Int(m.GetUserId()) - x.Int(m.GetScore()) return x.buf } -func (m *TLHighScore) Decode(dbuf *DecodeBuf) error { - m.SetPos(dbuf.Int()) +func (m *TLMessageMediaContact) Decode(dbuf *DecodeBuf) error { + m.SetPhoneNumber(dbuf.String()) + m.SetFirstName(dbuf.String()) + m.SetLastName(dbuf.String()) + m.SetVcard(dbuf.String()) m.SetUserId(dbuf.Int()) - m.SetScore(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// ChatFull <-- -// + TL_ChatFull -// + TL_ChannelFull -// - -func (m *ChatFull) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_chatFull: - t := m.To_ChatFull() - return t.Encode() - case TLConstructor_CRC32_channelFull: - t := m.To_ChannelFull() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// messageMediaUnsupported#9f84f49e = MessageMedia; +func (m *TLMessageMediaUnsupported) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaUnsupported, + Data2: m.Data2, } } -func (m *ChatFull) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_chatFull: - t := m.To_ChatFull() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelFull: - t := m.To_ChannelFull() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLMessageMediaUnsupported() *TLMessageMediaUnsupported { + return &TLMessageMediaUnsupported{Data2: &MessageMedia_Data{}} } -func (m *ChatFull) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_chatFull: - m2 := &TLChatFull{Data2: &ChatFull_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelFull: - m2 := &TLChannelFull{Data2: &ChatFull_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLMessageMediaUnsupported) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaUnsupported)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + return x.buf } -// chatFull#2e02a614 id:int participants:ChatParticipants chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector = ChatFull; -func (m *ChatFull) To_ChatFull() *TLChatFull { - return &TLChatFull{ - Data2: m.Data2, - } +func (m *TLMessageMediaUnsupported) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaUnsupported)) + + return x.buf } -// channelFull#76af5481 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int = ChatFull; -func (m *ChatFull) To_ChannelFull() *TLChannelFull { - return &TLChannelFull{ - Data2: m.Data2, - } +func (m *TLMessageMediaUnsupported) Decode(dbuf *DecodeBuf) error { + + return dbuf.err } -// chatFull#2e02a614 id:int participants:ChatParticipants chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector = ChatFull; -func (m *TLChatFull) To_ChatFull() *ChatFull { - return &ChatFull{ - Constructor: TLConstructor_CRC32_chatFull, +// messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia; +func (m *TLMessageMediaDocument) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaDocument, Data2: m.Data2, } } -func (m *TLChatFull) SetId(v int32) { m.Data2.Id = v } -func (m *TLChatFull) GetId() int32 { return m.Data2.Id } - -func (m *TLChatFull) SetParticipants(v *ChatParticipants) { m.Data2.Participants = v } -func (m *TLChatFull) GetParticipants() *ChatParticipants { return m.Data2.Participants } - -func (m *TLChatFull) SetChatPhoto(v *Photo) { m.Data2.ChatPhoto = v } -func (m *TLChatFull) GetChatPhoto() *Photo { return m.Data2.ChatPhoto } - -func (m *TLChatFull) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } -func (m *TLChatFull) GetNotifySettings() *PeerNotifySettings { return m.Data2.NotifySettings } - -func (m *TLChatFull) SetExportedInvite(v *ExportedChatInvite) { m.Data2.ExportedInvite = v } -func (m *TLChatFull) GetExportedInvite() *ExportedChatInvite { return m.Data2.ExportedInvite } +func (m *TLMessageMediaDocument) SetDocument(v *Document) { m.Data2.Document = v } +func (m *TLMessageMediaDocument) GetDocument() *Document { return m.Data2.Document } -func (m *TLChatFull) SetBotInfo(v []*BotInfo) { m.Data2.BotInfo = v } -func (m *TLChatFull) GetBotInfo() []*BotInfo { return m.Data2.BotInfo } +func (m *TLMessageMediaDocument) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } +func (m *TLMessageMediaDocument) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } -func NewTLChatFull() *TLChatFull { - return &TLChatFull{Data2: &ChatFull_Data{}} +func NewTLMessageMediaDocument() *TLMessageMediaDocument { + return &TLMessageMediaDocument{Data2: &MessageMedia_Data{}} } -func (m *TLChatFull) Encode() []byte { +func (m *TLMessageMediaDocument) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatFull)) + x.Int(int32(TLConstructor_CRC32_messageMediaDocument)) - x.Int(m.GetId()) - x.Bytes(m.GetParticipants().Encode()) - x.Bytes(m.GetChatPhoto().Encode()) - x.Bytes(m.GetNotifySettings().Encode()) - x.Bytes(m.GetExportedInvite().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBotInfo()))) - for _, v := range m.GetBotInfo() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetDocument() != nil { + flags |= 1 << 0 + } + if m.GetTtlSeconds() != 0 { + flags |= 1 << 2 + } + x.UInt(flags) + + if m.GetDocument() != nil { + x.Bytes(m.GetDocument().Encode()) + } + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) } return x.buf } -func (m *TLChatFull) EncodeToLayer(layer int) []byte { +func (m *TLMessageMediaDocument) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatFull)) + x.Int(int32(TLConstructor_CRC32_messageMediaDocument)) - x.Int(m.GetId()) - x.Bytes(m.GetParticipants().EncodeToLayer(layer)) - x.Bytes(m.GetChatPhoto().EncodeToLayer(layer)) - x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) - x.Bytes(m.GetExportedInvite().EncodeToLayer(layer)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBotInfo()))) - for _, v := range m.GetBotInfo() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetDocument() != nil { + flags |= 1 << 0 + } + if m.GetTtlSeconds() != 0 { + flags |= 1 << 2 + } + x.UInt(flags) + + if m.GetDocument() != nil { + x.Bytes(m.GetDocument().EncodeToLayer(layer)) + } + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) } return x.buf } -func (m *TLChatFull) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m2 := &ChatParticipants{} - m2.Decode(dbuf) - m.SetParticipants(m2) - m3 := &Photo{} - m3.Decode(dbuf) - m.SetChatPhoto(m3) - m4 := &PeerNotifySettings{} - m4.Decode(dbuf) - m.SetNotifySettings(m4) - m5 := &ExportedChatInvite{} - m5.Decode(dbuf) - m.SetExportedInvite(m5) - c6 := dbuf.Int() - if c6 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) - return dbuf.err +func (m *TLMessageMediaDocument) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m2 := &Document{} + m2.Decode(dbuf) + m.SetDocument(m2) } - l6 := dbuf.Int() - v6 := make([]*BotInfo, l6) - for i := int32(0); i < l6; i++ { - v6[i] = &BotInfo{} - v6[i].Decode(dbuf) + if (flags & (1 << 2)) != 0 { + m.SetTtlSeconds(dbuf.Int()) } - m.SetBotInfo(v6) return dbuf.err } -// channelFull#76af5481 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int = ChatFull; -func (m *TLChannelFull) To_ChatFull() *ChatFull { - return &ChatFull{ - Constructor: TLConstructor_CRC32_channelFull, +// messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia; +func (m *TLMessageMediaWebPage) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaWebPage, Data2: m.Data2, } } -func (m *TLChannelFull) SetCanViewParticipants(v bool) { m.Data2.CanViewParticipants = v } -func (m *TLChannelFull) GetCanViewParticipants() bool { return m.Data2.CanViewParticipants } - -func (m *TLChannelFull) SetCanSetUsername(v bool) { m.Data2.CanSetUsername = v } -func (m *TLChannelFull) GetCanSetUsername() bool { return m.Data2.CanSetUsername } +func (m *TLMessageMediaWebPage) SetWebpage(v *WebPage) { m.Data2.Webpage = v } +func (m *TLMessageMediaWebPage) GetWebpage() *WebPage { return m.Data2.Webpage } -func (m *TLChannelFull) SetCanSetStickers(v bool) { m.Data2.CanSetStickers = v } -func (m *TLChannelFull) GetCanSetStickers() bool { return m.Data2.CanSetStickers } +func NewTLMessageMediaWebPage() *TLMessageMediaWebPage { + return &TLMessageMediaWebPage{Data2: &MessageMedia_Data{}} +} -func (m *TLChannelFull) SetHiddenPrehistory(v bool) { m.Data2.HiddenPrehistory = v } -func (m *TLChannelFull) GetHiddenPrehistory() bool { return m.Data2.HiddenPrehistory } +func (m *TLMessageMediaWebPage) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaWebPage)) -func (m *TLChannelFull) SetId(v int32) { m.Data2.Id = v } -func (m *TLChannelFull) GetId() int32 { return m.Data2.Id } + x.Bytes(m.GetWebpage().Encode()) -func (m *TLChannelFull) SetAbout(v string) { m.Data2.About = v } -func (m *TLChannelFull) GetAbout() string { return m.Data2.About } + return x.buf +} -func (m *TLChannelFull) SetParticipantsCount(v int32) { m.Data2.ParticipantsCount = v } -func (m *TLChannelFull) GetParticipantsCount() int32 { return m.Data2.ParticipantsCount } +func (m *TLMessageMediaWebPage) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaWebPage)) -func (m *TLChannelFull) SetAdminsCount(v int32) { m.Data2.AdminsCount = v } -func (m *TLChannelFull) GetAdminsCount() int32 { return m.Data2.AdminsCount } + x.Bytes(m.GetWebpage().EncodeToLayer(layer)) -func (m *TLChannelFull) SetKickedCount(v int32) { m.Data2.KickedCount = v } -func (m *TLChannelFull) GetKickedCount() int32 { return m.Data2.KickedCount } + return x.buf +} -func (m *TLChannelFull) SetBannedCount(v int32) { m.Data2.BannedCount = v } -func (m *TLChannelFull) GetBannedCount() int32 { return m.Data2.BannedCount } +func (m *TLMessageMediaWebPage) Decode(dbuf *DecodeBuf) error { + m1 := &WebPage{} + m1.Decode(dbuf) + m.SetWebpage(m1) -func (m *TLChannelFull) SetReadInboxMaxId(v int32) { m.Data2.ReadInboxMaxId = v } -func (m *TLChannelFull) GetReadInboxMaxId() int32 { return m.Data2.ReadInboxMaxId } + return dbuf.err +} -func (m *TLChannelFull) SetReadOutboxMaxId(v int32) { m.Data2.ReadOutboxMaxId = v } -func (m *TLChannelFull) GetReadOutboxMaxId() int32 { return m.Data2.ReadOutboxMaxId } +// messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia; +func (m *TLMessageMediaVenue) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaVenue, + Data2: m.Data2, + } +} -func (m *TLChannelFull) SetUnreadCount(v int32) { m.Data2.UnreadCount = v } -func (m *TLChannelFull) GetUnreadCount() int32 { return m.Data2.UnreadCount } +func (m *TLMessageMediaVenue) SetGeo(v *GeoPoint) { m.Data2.Geo = v } +func (m *TLMessageMediaVenue) GetGeo() *GeoPoint { return m.Data2.Geo } -func (m *TLChannelFull) SetChatPhoto(v *Photo) { m.Data2.ChatPhoto = v } -func (m *TLChannelFull) GetChatPhoto() *Photo { return m.Data2.ChatPhoto } +func (m *TLMessageMediaVenue) SetTitle(v string) { m.Data2.Title = v } +func (m *TLMessageMediaVenue) GetTitle() string { return m.Data2.Title } -func (m *TLChannelFull) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } -func (m *TLChannelFull) GetNotifySettings() *PeerNotifySettings { return m.Data2.NotifySettings } +func (m *TLMessageMediaVenue) SetAddress(v string) { m.Data2.Address = v } +func (m *TLMessageMediaVenue) GetAddress() string { return m.Data2.Address } -func (m *TLChannelFull) SetExportedInvite(v *ExportedChatInvite) { m.Data2.ExportedInvite = v } -func (m *TLChannelFull) GetExportedInvite() *ExportedChatInvite { return m.Data2.ExportedInvite } +func (m *TLMessageMediaVenue) SetProvider(v string) { m.Data2.Provider = v } +func (m *TLMessageMediaVenue) GetProvider() string { return m.Data2.Provider } -func (m *TLChannelFull) SetBotInfo(v []*BotInfo) { m.Data2.BotInfo = v } -func (m *TLChannelFull) GetBotInfo() []*BotInfo { return m.Data2.BotInfo } +func (m *TLMessageMediaVenue) SetVenueId(v string) { m.Data2.VenueId = v } +func (m *TLMessageMediaVenue) GetVenueId() string { return m.Data2.VenueId } -func (m *TLChannelFull) SetMigratedFromChatId(v int32) { m.Data2.MigratedFromChatId = v } -func (m *TLChannelFull) GetMigratedFromChatId() int32 { return m.Data2.MigratedFromChatId } +func (m *TLMessageMediaVenue) SetVenueType(v string) { m.Data2.VenueType = v } +func (m *TLMessageMediaVenue) GetVenueType() string { return m.Data2.VenueType } -func (m *TLChannelFull) SetMigratedFromMaxId(v int32) { m.Data2.MigratedFromMaxId = v } -func (m *TLChannelFull) GetMigratedFromMaxId() int32 { return m.Data2.MigratedFromMaxId } +func NewTLMessageMediaVenue() *TLMessageMediaVenue { + return &TLMessageMediaVenue{Data2: &MessageMedia_Data{}} +} -func (m *TLChannelFull) SetPinnedMsgId(v int32) { m.Data2.PinnedMsgId = v } -func (m *TLChannelFull) GetPinnedMsgId() int32 { return m.Data2.PinnedMsgId } +func (m *TLMessageMediaVenue) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaVenue)) -func (m *TLChannelFull) SetStickerset(v *StickerSet) { m.Data2.Stickerset = v } -func (m *TLChannelFull) GetStickerset() *StickerSet { return m.Data2.Stickerset } + x.Bytes(m.GetGeo().Encode()) + x.String(m.GetTitle()) + x.String(m.GetAddress()) + x.String(m.GetProvider()) + x.String(m.GetVenueId()) + x.String(m.GetVenueType()) -func (m *TLChannelFull) SetAvailableMinId(v int32) { m.Data2.AvailableMinId = v } -func (m *TLChannelFull) GetAvailableMinId() int32 { return m.Data2.AvailableMinId } + return x.buf +} -func NewTLChannelFull() *TLChannelFull { - return &TLChannelFull{Data2: &ChatFull_Data{}} +func (m *TLMessageMediaVenue) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaVenue)) + + x.Bytes(m.GetGeo().EncodeToLayer(layer)) + x.String(m.GetTitle()) + x.String(m.GetAddress()) + x.String(m.GetProvider()) + x.String(m.GetVenueId()) + x.String(m.GetVenueType()) + + return x.buf } -func (m *TLChannelFull) Encode() []byte { +func (m *TLMessageMediaVenue) Decode(dbuf *DecodeBuf) error { + m1 := &GeoPoint{} + m1.Decode(dbuf) + m.SetGeo(m1) + m.SetTitle(dbuf.String()) + m.SetAddress(dbuf.String()) + m.SetProvider(dbuf.String()) + m.SetVenueId(dbuf.String()) + m.SetVenueType(dbuf.String()) + + return dbuf.err +} + +// messageMediaGame#fdb19008 game:Game = MessageMedia; +func (m *TLMessageMediaGame) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaGame, + Data2: m.Data2, + } +} + +func (m *TLMessageMediaGame) SetGame(v *Game) { m.Data2.Game = v } +func (m *TLMessageMediaGame) GetGame() *Game { return m.Data2.Game } + +func NewTLMessageMediaGame() *TLMessageMediaGame { + return &TLMessageMediaGame{Data2: &MessageMedia_Data{}} +} + +func (m *TLMessageMediaGame) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelFull)) + x.Int(int32(TLConstructor_CRC32_messageMediaGame)) + + x.Bytes(m.GetGame().Encode()) + + return x.buf +} + +func (m *TLMessageMediaGame) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaGame)) + + x.Bytes(m.GetGame().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLMessageMediaGame) Decode(dbuf *DecodeBuf) error { + m1 := &Game{} + m1.Decode(dbuf) + m.SetGame(m1) + + return dbuf.err +} + +// messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; +func (m *TLMessageMediaInvoice) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaInvoice, + Data2: m.Data2, + } +} + +func (m *TLMessageMediaInvoice) SetShippingAddressRequested(v bool) { + m.Data2.ShippingAddressRequested = v +} +func (m *TLMessageMediaInvoice) GetShippingAddressRequested() bool { + return m.Data2.ShippingAddressRequested +} + +func (m *TLMessageMediaInvoice) SetTest(v bool) { m.Data2.Test = v } +func (m *TLMessageMediaInvoice) GetTest() bool { return m.Data2.Test } + +func (m *TLMessageMediaInvoice) SetTitle(v string) { m.Data2.Title = v } +func (m *TLMessageMediaInvoice) GetTitle() string { return m.Data2.Title } + +func (m *TLMessageMediaInvoice) SetDescription(v string) { m.Data2.Description = v } +func (m *TLMessageMediaInvoice) GetDescription() string { return m.Data2.Description } + +func (m *TLMessageMediaInvoice) SetPhoto(v *WebDocument) { m.Data2.Photo_20 = v } +func (m *TLMessageMediaInvoice) GetPhoto() *WebDocument { return m.Data2.Photo_20 } + +func (m *TLMessageMediaInvoice) SetReceiptMsgId(v int32) { m.Data2.ReceiptMsgId = v } +func (m *TLMessageMediaInvoice) GetReceiptMsgId() int32 { return m.Data2.ReceiptMsgId } + +func (m *TLMessageMediaInvoice) SetCurrency(v string) { m.Data2.Currency = v } +func (m *TLMessageMediaInvoice) GetCurrency() string { return m.Data2.Currency } + +func (m *TLMessageMediaInvoice) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } +func (m *TLMessageMediaInvoice) GetTotalAmount() int64 { return m.Data2.TotalAmount } + +func (m *TLMessageMediaInvoice) SetStartParam(v string) { m.Data2.StartParam = v } +func (m *TLMessageMediaInvoice) GetStartParam() string { return m.Data2.StartParam } + +func NewTLMessageMediaInvoice() *TLMessageMediaInvoice { + return &TLMessageMediaInvoice{Data2: &MessageMedia_Data{}} +} + +func (m *TLMessageMediaInvoice) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaInvoice)) // flags var flags uint32 = 0 - if m.GetCanViewParticipants() == true { - flags |= 1 << 3 - } - if m.GetCanSetUsername() == true { - flags |= 1 << 6 - } - if m.GetCanSetStickers() == true { - flags |= 1 << 7 + if m.GetShippingAddressRequested() == true { + flags |= 1 << 1 } - if m.GetHiddenPrehistory() == true { - flags |= 1 << 10 + if m.GetTest() == true { + flags |= 1 << 3 } - if m.GetParticipantsCount() != 0 { + if m.GetPhoto() != nil { flags |= 1 << 0 } - if m.GetAdminsCount() != 0 { - flags |= 1 << 1 - } - if m.GetKickedCount() != 0 { - flags |= 1 << 2 - } - if m.GetBannedCount() != 0 { + if m.GetReceiptMsgId() != 0 { flags |= 1 << 2 } - if m.GetMigratedFromChatId() != 0 { - flags |= 1 << 4 - } - if m.GetMigratedFromMaxId() != 0 { - flags |= 1 << 4 - } - if m.GetPinnedMsgId() != 0 { - flags |= 1 << 5 - } - if m.GetStickerset() != nil { - flags |= 1 << 8 - } - if m.GetAvailableMinId() != 0 { - flags |= 1 << 9 - } x.UInt(flags) - x.Int(m.GetId()) - x.String(m.GetAbout()) - if m.GetParticipantsCount() != 0 { - x.Int(m.GetParticipantsCount()) - } - if m.GetAdminsCount() != 0 { - x.Int(m.GetAdminsCount()) - } - if m.GetKickedCount() != 0 { - x.Int(m.GetKickedCount()) - } - if m.GetBannedCount() != 0 { - x.Int(m.GetBannedCount()) - } - x.Int(m.GetReadInboxMaxId()) - x.Int(m.GetReadOutboxMaxId()) - x.Int(m.GetUnreadCount()) - x.Bytes(m.GetChatPhoto().Encode()) - x.Bytes(m.GetNotifySettings().Encode()) - x.Bytes(m.GetExportedInvite().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBotInfo()))) - for _, v := range m.GetBotInfo() { - x.buf = append(x.buf, (*v).Encode()...) - } - if m.GetMigratedFromChatId() != 0 { - x.Int(m.GetMigratedFromChatId()) - } - if m.GetMigratedFromMaxId() != 0 { - x.Int(m.GetMigratedFromMaxId()) - } - if m.GetPinnedMsgId() != 0 { - x.Int(m.GetPinnedMsgId()) - } - if m.GetStickerset() != nil { - x.Bytes(m.GetStickerset().Encode()) + x.String(m.GetTitle()) + x.String(m.GetDescription()) + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().Encode()) } - if m.GetAvailableMinId() != 0 { - x.Int(m.GetAvailableMinId()) + if m.GetReceiptMsgId() != 0 { + x.Int(m.GetReceiptMsgId()) } + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) + x.String(m.GetStartParam()) return x.buf } -func (m *TLChannelFull) EncodeToLayer(layer int) []byte { +func (m *TLMessageMediaInvoice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelFull)) + x.Int(int32(TLConstructor_CRC32_messageMediaInvoice)) // flags var flags uint32 = 0 - if m.GetCanViewParticipants() == true { - flags |= 1 << 3 - } - if m.GetCanSetUsername() == true { - flags |= 1 << 6 - } - if m.GetCanSetStickers() == true { - flags |= 1 << 7 + if m.GetShippingAddressRequested() == true { + flags |= 1 << 1 } - if m.GetHiddenPrehistory() == true { - flags |= 1 << 10 + if m.GetTest() == true { + flags |= 1 << 3 } - if m.GetParticipantsCount() != 0 { + if m.GetPhoto() != nil { flags |= 1 << 0 } - if m.GetAdminsCount() != 0 { - flags |= 1 << 1 - } - if m.GetKickedCount() != 0 { - flags |= 1 << 2 - } - if m.GetBannedCount() != 0 { + if m.GetReceiptMsgId() != 0 { flags |= 1 << 2 } - if m.GetMigratedFromChatId() != 0 { - flags |= 1 << 4 - } - if m.GetMigratedFromMaxId() != 0 { - flags |= 1 << 4 - } - if m.GetPinnedMsgId() != 0 { - flags |= 1 << 5 - } - if m.GetStickerset() != nil { - flags |= 1 << 8 - } - if m.GetAvailableMinId() != 0 { - flags |= 1 << 9 - } x.UInt(flags) - x.Int(m.GetId()) - x.String(m.GetAbout()) - if m.GetParticipantsCount() != 0 { - x.Int(m.GetParticipantsCount()) - } - if m.GetAdminsCount() != 0 { - x.Int(m.GetAdminsCount()) - } - if m.GetKickedCount() != 0 { - x.Int(m.GetKickedCount()) - } - if m.GetBannedCount() != 0 { - x.Int(m.GetBannedCount()) - } - x.Int(m.GetReadInboxMaxId()) - x.Int(m.GetReadOutboxMaxId()) - x.Int(m.GetUnreadCount()) - x.Bytes(m.GetChatPhoto().EncodeToLayer(layer)) - x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) - x.Bytes(m.GetExportedInvite().EncodeToLayer(layer)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBotInfo()))) - for _, v := range m.GetBotInfo() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - if m.GetMigratedFromChatId() != 0 { - x.Int(m.GetMigratedFromChatId()) - } - if m.GetMigratedFromMaxId() != 0 { - x.Int(m.GetMigratedFromMaxId()) - } - if m.GetPinnedMsgId() != 0 { - x.Int(m.GetPinnedMsgId()) - } - if m.GetStickerset() != nil { - x.Bytes(m.GetStickerset().EncodeToLayer(layer)) + x.String(m.GetTitle()) + x.String(m.GetDescription()) + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) } - if m.GetAvailableMinId() != 0 { - x.Int(m.GetAvailableMinId()) + if m.GetReceiptMsgId() != 0 { + x.Int(m.GetReceiptMsgId()) } + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) + x.String(m.GetStartParam()) return x.buf } -func (m *TLChannelFull) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageMediaInvoice) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - if (flags & (1 << 3)) != 0 { - m.SetCanViewParticipants(true) - } - if (flags & (1 << 6)) != 0 { - m.SetCanSetUsername(true) - } - if (flags & (1 << 7)) != 0 { - m.SetCanSetStickers(true) + if (flags & (1 << 1)) != 0 { + m.SetShippingAddressRequested(true) } - if (flags & (1 << 10)) != 0 { - m.SetHiddenPrehistory(true) + if (flags & (1 << 3)) != 0 { + m.SetTest(true) } - m.SetId(dbuf.Int()) - m.SetAbout(dbuf.String()) + m.SetTitle(dbuf.String()) + m.SetDescription(dbuf.String()) if (flags & (1 << 0)) != 0 { - m.SetParticipantsCount(dbuf.Int()) - } - if (flags & (1 << 1)) != 0 { - m.SetAdminsCount(dbuf.Int()) - } - if (flags & (1 << 2)) != 0 { - m.SetKickedCount(dbuf.Int()) + m6 := &WebDocument{} + m6.Decode(dbuf) + m.SetPhoto(m6) } if (flags & (1 << 2)) != 0 { - m.SetBannedCount(dbuf.Int()) - } - m.SetReadInboxMaxId(dbuf.Int()) - m.SetReadOutboxMaxId(dbuf.Int()) - m.SetUnreadCount(dbuf.Int()) - m15 := &Photo{} - m15.Decode(dbuf) - m.SetChatPhoto(m15) - m16 := &PeerNotifySettings{} - m16.Decode(dbuf) - m.SetNotifySettings(m16) - m17 := &ExportedChatInvite{} - m17.Decode(dbuf) - m.SetExportedInvite(m17) - c18 := dbuf.Int() - if c18 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 18, c18) - return dbuf.err - } - l18 := dbuf.Int() - v18 := make([]*BotInfo, l18) - for i := int32(0); i < l18; i++ { - v18[i] = &BotInfo{} - v18[i].Decode(dbuf) + m.SetReceiptMsgId(dbuf.Int()) } - m.SetBotInfo(v18) + m.SetCurrency(dbuf.String()) + m.SetTotalAmount(dbuf.Long()) + m.SetStartParam(dbuf.String()) - if (flags & (1 << 4)) != 0 { - m.SetMigratedFromChatId(dbuf.Int()) - } - if (flags & (1 << 4)) != 0 { - m.SetMigratedFromMaxId(dbuf.Int()) - } - if (flags & (1 << 5)) != 0 { - m.SetPinnedMsgId(dbuf.Int()) - } - if (flags & (1 << 8)) != 0 { - m22 := &StickerSet{} - m22.Decode(dbuf) - m.SetStickerset(m22) - } - if (flags & (1 << 9)) != 0 { - m.SetAvailableMinId(dbuf.Int()) + return dbuf.err +} + +// messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia; +func (m *TLMessageMediaGeoLive) To_MessageMedia() *MessageMedia { + return &MessageMedia{ + Constructor: TLConstructor_CRC32_messageMediaGeoLive, + Data2: m.Data2, } +} + +func (m *TLMessageMediaGeoLive) SetGeo(v *GeoPoint) { m.Data2.Geo = v } +func (m *TLMessageMediaGeoLive) GetGeo() *GeoPoint { return m.Data2.Geo } + +func (m *TLMessageMediaGeoLive) SetPeriod(v int32) { m.Data2.Period = v } +func (m *TLMessageMediaGeoLive) GetPeriod() int32 { return m.Data2.Period } + +func NewTLMessageMediaGeoLive() *TLMessageMediaGeoLive { + return &TLMessageMediaGeoLive{Data2: &MessageMedia_Data{}} +} + +func (m *TLMessageMediaGeoLive) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaGeoLive)) + + x.Bytes(m.GetGeo().Encode()) + x.Int(m.GetPeriod()) + + return x.buf +} + +func (m *TLMessageMediaGeoLive) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageMediaGeoLive)) + + x.Bytes(m.GetGeo().EncodeToLayer(layer)) + x.Int(m.GetPeriod()) + + return x.buf +} + +func (m *TLMessageMediaGeoLive) Decode(dbuf *DecodeBuf) error { + m1 := &GeoPoint{} + m1.Decode(dbuf) + m.SetGeo(m1) + m.SetPeriod(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Contacts_Contacts <-- -// + TL_ContactsContactsNotModified -// + TL_ContactsContacts +// GeoPoint <-- +// + TL_GeoPointEmpty +// + TL_GeoPoint // -func (m *Contacts_Contacts) Encode() []byte { +func (m *GeoPoint) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_contacts_contactsNotModified: - t := m.To_ContactsContactsNotModified() + case TLConstructor_CRC32_geoPointEmpty: + t := m.To_GeoPointEmpty() return t.Encode() - case TLConstructor_CRC32_contacts_contacts: - t := m.To_ContactsContacts() + case TLConstructor_CRC32_geoPoint: + t := m.To_GeoPoint() return t.Encode() default: @@ -24546,14 +25329,14 @@ func (m *Contacts_Contacts) Encode() []byte { } } -func (m *Contacts_Contacts) EncodeToLayer(layer int) []byte { +func (m *GeoPoint) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_contacts_contactsNotModified: - t := m.To_ContactsContactsNotModified() + case TLConstructor_CRC32_geoPointEmpty: + t := m.To_GeoPointEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_contacts_contacts: - t := m.To_ContactsContacts() + case TLConstructor_CRC32_geoPoint: + t := m.To_GeoPoint() return t.EncodeToLayer(layer) default: @@ -24562,15 +25345,15 @@ func (m *Contacts_Contacts) EncodeToLayer(layer int) []byte { } } -func (m *Contacts_Contacts) Decode(dbuf *DecodeBuf) error { +func (m *GeoPoint) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_contacts_contactsNotModified: - m2 := &TLContactsContactsNotModified{Data2: &Contacts_Contacts_Data{}} + case TLConstructor_CRC32_geoPointEmpty: + m2 := &TLGeoPointEmpty{Data2: &GeoPoint_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_contacts_contacts: - m2 := &TLContactsContacts{Data2: &Contacts_Contacts_Data{}} + case TLConstructor_CRC32_geoPoint: + m2 := &TLGeoPoint{Data2: &GeoPoint_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -24580,150 +25363,115 @@ func (m *Contacts_Contacts) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// contacts.contactsNotModified#b74ba9d2 = contacts.Contacts; -func (m *Contacts_Contacts) To_ContactsContactsNotModified() *TLContactsContactsNotModified { - return &TLContactsContactsNotModified{ +// geoPointEmpty#1117dd5f = GeoPoint; +func (m *GeoPoint) To_GeoPointEmpty() *TLGeoPointEmpty { + return &TLGeoPointEmpty{ Data2: m.Data2, } } -// contacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts; -func (m *Contacts_Contacts) To_ContactsContacts() *TLContactsContacts { - return &TLContactsContacts{ +// geoPoint#296f104 long:double lat:double access_hash:long = GeoPoint; +func (m *GeoPoint) To_GeoPoint() *TLGeoPoint { + return &TLGeoPoint{ Data2: m.Data2, } } -// contacts.contactsNotModified#b74ba9d2 = contacts.Contacts; -func (m *TLContactsContactsNotModified) To_Contacts_Contacts() *Contacts_Contacts { - return &Contacts_Contacts{ - Constructor: TLConstructor_CRC32_contacts_contactsNotModified, +// geoPointEmpty#1117dd5f = GeoPoint; +func (m *TLGeoPointEmpty) To_GeoPoint() *GeoPoint { + return &GeoPoint{ + Constructor: TLConstructor_CRC32_geoPointEmpty, Data2: m.Data2, } } -func NewTLContactsContactsNotModified() *TLContactsContactsNotModified { - return &TLContactsContactsNotModified{Data2: &Contacts_Contacts_Data{}} +func NewTLGeoPointEmpty() *TLGeoPointEmpty { + return &TLGeoPointEmpty{Data2: &GeoPoint_Data{}} } -func (m *TLContactsContactsNotModified) Encode() []byte { +func (m *TLGeoPointEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_contactsNotModified)) + x.Int(int32(TLConstructor_CRC32_geoPointEmpty)) return x.buf } -func (m *TLContactsContactsNotModified) EncodeToLayer(layer int) []byte { +func (m *TLGeoPointEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_contactsNotModified)) + x.Int(int32(TLConstructor_CRC32_geoPointEmpty)) return x.buf } -func (m *TLContactsContactsNotModified) Decode(dbuf *DecodeBuf) error { +func (m *TLGeoPointEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// contacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts; -func (m *TLContactsContacts) To_Contacts_Contacts() *Contacts_Contacts { - return &Contacts_Contacts{ - Constructor: TLConstructor_CRC32_contacts_contacts, +// geoPoint#296f104 long:double lat:double access_hash:long = GeoPoint; +func (m *TLGeoPoint) To_GeoPoint() *GeoPoint { + return &GeoPoint{ + Constructor: TLConstructor_CRC32_geoPoint, Data2: m.Data2, } } -func (m *TLContactsContacts) SetContacts(v []*Contact) { m.Data2.Contacts = v } -func (m *TLContactsContacts) GetContacts() []*Contact { return m.Data2.Contacts } +func (m *TLGeoPoint) SetLong(v float64) { m.Data2.Long = v } +func (m *TLGeoPoint) GetLong() float64 { return m.Data2.Long } -func (m *TLContactsContacts) SetSavedCount(v int32) { m.Data2.SavedCount = v } -func (m *TLContactsContacts) GetSavedCount() int32 { return m.Data2.SavedCount } +func (m *TLGeoPoint) SetLat(v float64) { m.Data2.Lat = v } +func (m *TLGeoPoint) GetLat() float64 { return m.Data2.Lat } -func (m *TLContactsContacts) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLContactsContacts) GetUsers() []*User { return m.Data2.Users } +func (m *TLGeoPoint) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLGeoPoint) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLContactsContacts() *TLContactsContacts { - return &TLContactsContacts{Data2: &Contacts_Contacts_Data{}} +func NewTLGeoPoint() *TLGeoPoint { + return &TLGeoPoint{Data2: &GeoPoint_Data{}} } -func (m *TLContactsContacts) Encode() []byte { +func (m *TLGeoPoint) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_contacts)) + x.Int(int32(TLConstructor_CRC32_geoPoint)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetContacts()))) - for _, v := range m.GetContacts() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(m.GetSavedCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Double(m.GetLong()) + x.Double(m.GetLat()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLContactsContacts) EncodeToLayer(layer int) []byte { +func (m *TLGeoPoint) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_contacts)) + x.Int(int32(TLConstructor_CRC32_geoPoint)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetContacts()))) - for _, v := range m.GetContacts() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(m.GetSavedCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Double(m.GetLong()) + x.Double(m.GetLat()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLContactsContacts) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Contact, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Contact{} - v1[i].Decode(dbuf) - } - m.SetContacts(v1) - - m.SetSavedCount(dbuf.Int()) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*User, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &User{} - v3[i].Decode(dbuf) - } - m.SetUsers(v3) +func (m *TLGeoPoint) Decode(dbuf *DecodeBuf) error { + m.SetLong(dbuf.Double()) + m.SetLat(dbuf.Double()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Phone_PhoneCall <-- -// + TL_PhonePhoneCall +// InputStickeredMedia <-- +// + TL_InputStickeredMediaPhoto +// + TL_InputStickeredMediaDocument // -func (m *Phone_PhoneCall) Encode() []byte { +func (m *InputStickeredMedia) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_phone_phoneCall: - t := m.To_PhonePhoneCall() + case TLConstructor_CRC32_inputStickeredMediaPhoto: + t := m.To_InputStickeredMediaPhoto() + return t.Encode() + case TLConstructor_CRC32_inputStickeredMediaDocument: + t := m.To_InputStickeredMediaDocument() return t.Encode() default: @@ -24732,11 +25480,14 @@ func (m *Phone_PhoneCall) Encode() []byte { } } -func (m *Phone_PhoneCall) EncodeToLayer(layer int) []byte { +func (m *InputStickeredMedia) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_phone_phoneCall: - t := m.To_PhonePhoneCall() + case TLConstructor_CRC32_inputStickeredMediaPhoto: + t := m.To_InputStickeredMediaPhoto() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputStickeredMediaDocument: + t := m.To_InputStickeredMediaDocument() return t.EncodeToLayer(layer) default: @@ -24745,11 +25496,15 @@ func (m *Phone_PhoneCall) EncodeToLayer(layer int) []byte { } } -func (m *Phone_PhoneCall) Decode(dbuf *DecodeBuf) error { +func (m *InputStickeredMedia) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_phone_phoneCall: - m2 := &TLPhonePhoneCall{Data2: &Phone_PhoneCall_Data{}} + case TLConstructor_CRC32_inputStickeredMediaPhoto: + m2 := &TLInputStickeredMediaPhoto{Data2: &InputStickeredMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputStickeredMediaDocument: + m2 := &TLInputStickeredMediaDocument{Data2: &InputStickeredMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -24759,96 +25514,115 @@ func (m *Phone_PhoneCall) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall; -func (m *Phone_PhoneCall) To_PhonePhoneCall() *TLPhonePhoneCall { - return &TLPhonePhoneCall{ +// inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia; +func (m *InputStickeredMedia) To_InputStickeredMediaPhoto() *TLInputStickeredMediaPhoto { + return &TLInputStickeredMediaPhoto{ Data2: m.Data2, } } -// phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall; -func (m *TLPhonePhoneCall) To_Phone_PhoneCall() *Phone_PhoneCall { - return &Phone_PhoneCall{ - Constructor: TLConstructor_CRC32_phone_phoneCall, +// inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia; +func (m *InputStickeredMedia) To_InputStickeredMediaDocument() *TLInputStickeredMediaDocument { + return &TLInputStickeredMediaDocument{ + Data2: m.Data2, + } +} + +// inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia; +func (m *TLInputStickeredMediaPhoto) To_InputStickeredMedia() *InputStickeredMedia { + return &InputStickeredMedia{ + Constructor: TLConstructor_CRC32_inputStickeredMediaPhoto, Data2: m.Data2, } } -func (m *TLPhonePhoneCall) SetPhoneCall(v *PhoneCall) { m.Data2.PhoneCall = v } -func (m *TLPhonePhoneCall) GetPhoneCall() *PhoneCall { return m.Data2.PhoneCall } +func (m *TLInputStickeredMediaPhoto) SetId(v *InputPhoto) { m.Data2.Id_1 = v } +func (m *TLInputStickeredMediaPhoto) GetId() *InputPhoto { return m.Data2.Id_1 } -func (m *TLPhonePhoneCall) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLPhonePhoneCall) GetUsers() []*User { return m.Data2.Users } +func NewTLInputStickeredMediaPhoto() *TLInputStickeredMediaPhoto { + return &TLInputStickeredMediaPhoto{Data2: &InputStickeredMedia_Data{}} +} -func NewTLPhonePhoneCall() *TLPhonePhoneCall { - return &TLPhonePhoneCall{Data2: &Phone_PhoneCall_Data{}} +func (m *TLInputStickeredMediaPhoto) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputStickeredMediaPhoto)) + + x.Bytes(m.GetId().Encode()) + + return x.buf } -func (m *TLPhonePhoneCall) Encode() []byte { +func (m *TLInputStickeredMediaPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phone_phoneCall)) + x.Int(int32(TLConstructor_CRC32_inputStickeredMediaPhoto)) - x.Bytes(m.GetPhoneCall().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) + x.Bytes(m.GetId().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLInputStickeredMediaPhoto) Decode(dbuf *DecodeBuf) error { + m1 := &InputPhoto{} + m1.Decode(dbuf) + m.SetId(m1) + + return dbuf.err +} + +// inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia; +func (m *TLInputStickeredMediaDocument) To_InputStickeredMedia() *InputStickeredMedia { + return &InputStickeredMedia{ + Constructor: TLConstructor_CRC32_inputStickeredMediaDocument, + Data2: m.Data2, } +} + +func (m *TLInputStickeredMediaDocument) SetId(v *InputDocument) { m.Data2.Id_2 = v } +func (m *TLInputStickeredMediaDocument) GetId() *InputDocument { return m.Data2.Id_2 } + +func NewTLInputStickeredMediaDocument() *TLInputStickeredMediaDocument { + return &TLInputStickeredMediaDocument{Data2: &InputStickeredMedia_Data{}} +} + +func (m *TLInputStickeredMediaDocument) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputStickeredMediaDocument)) + + x.Bytes(m.GetId().Encode()) return x.buf } -func (m *TLPhonePhoneCall) EncodeToLayer(layer int) []byte { +func (m *TLInputStickeredMediaDocument) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phone_phoneCall)) + x.Int(int32(TLConstructor_CRC32_inputStickeredMediaDocument)) - x.Bytes(m.GetPhoneCall().EncodeToLayer(layer)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetId().EncodeToLayer(layer)) return x.buf } -func (m *TLPhonePhoneCall) Decode(dbuf *DecodeBuf) error { - m1 := &PhoneCall{} +func (m *TLInputStickeredMediaDocument) Decode(dbuf *DecodeBuf) error { + m1 := &InputDocument{} m1.Decode(dbuf) - m.SetPhoneCall(m1) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*User, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &User{} - v2[i].Decode(dbuf) - } - m.SetUsers(v2) + m.SetId(m1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// LangPackString <-- -// + TL_LangPackString -// + TL_LangPackStringPluralized -// + TL_LangPackStringDeleted +// Help_PassportConfig <-- +// + TL_HelpPassportConfigNotModified +// + TL_HelpPassportConfig // -func (m *LangPackString) Encode() []byte { +func (m *Help_PassportConfig) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_langPackString: - t := m.To_LangPackString() - return t.Encode() - case TLConstructor_CRC32_langPackStringPluralized: - t := m.To_LangPackStringPluralized() + case TLConstructor_CRC32_help_passportConfigNotModified: + t := m.To_HelpPassportConfigNotModified() return t.Encode() - case TLConstructor_CRC32_langPackStringDeleted: - t := m.To_LangPackStringDeleted() + case TLConstructor_CRC32_help_passportConfig: + t := m.To_HelpPassportConfig() return t.Encode() default: @@ -24857,17 +25631,14 @@ func (m *LangPackString) Encode() []byte { } } -func (m *LangPackString) EncodeToLayer(layer int) []byte { +func (m *Help_PassportConfig) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_langPackString: - t := m.To_LangPackString() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_langPackStringPluralized: - t := m.To_LangPackStringPluralized() + case TLConstructor_CRC32_help_passportConfigNotModified: + t := m.To_HelpPassportConfigNotModified() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_langPackStringDeleted: - t := m.To_LangPackStringDeleted() + case TLConstructor_CRC32_help_passportConfig: + t := m.To_HelpPassportConfig() return t.EncodeToLayer(layer) default: @@ -24876,19 +25647,15 @@ func (m *LangPackString) EncodeToLayer(layer int) []byte { } } -func (m *LangPackString) Decode(dbuf *DecodeBuf) error { +func (m *Help_PassportConfig) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_langPackString: - m2 := &TLLangPackString{Data2: &LangPackString_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_langPackStringPluralized: - m2 := &TLLangPackStringPluralized{Data2: &LangPackString_Data{}} + case TLConstructor_CRC32_help_passportConfigNotModified: + m2 := &TLHelpPassportConfigNotModified{Data2: &Help_PassportConfig_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_langPackStringDeleted: - m2 := &TLLangPackStringDeleted{Data2: &LangPackString_Data{}} + case TLConstructor_CRC32_help_passportConfig: + m2 := &TLHelpPassportConfig{Data2: &Help_PassportConfig_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -24898,265 +25665,313 @@ func (m *LangPackString) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// langPackString#cad181f6 key:string value:string = LangPackString; -func (m *LangPackString) To_LangPackString() *TLLangPackString { - return &TLLangPackString{ - Data2: m.Data2, - } -} - -// langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString; -func (m *LangPackString) To_LangPackStringPluralized() *TLLangPackStringPluralized { - return &TLLangPackStringPluralized{ +// help.passportConfigNotModified#bfb9f457 = help.PassportConfig; +func (m *Help_PassportConfig) To_HelpPassportConfigNotModified() *TLHelpPassportConfigNotModified { + return &TLHelpPassportConfigNotModified{ Data2: m.Data2, } } -// langPackStringDeleted#2979eeb2 key:string = LangPackString; -func (m *LangPackString) To_LangPackStringDeleted() *TLLangPackStringDeleted { - return &TLLangPackStringDeleted{ +// help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig; +func (m *Help_PassportConfig) To_HelpPassportConfig() *TLHelpPassportConfig { + return &TLHelpPassportConfig{ Data2: m.Data2, } } -// langPackString#cad181f6 key:string value:string = LangPackString; -func (m *TLLangPackString) To_LangPackString() *LangPackString { - return &LangPackString{ - Constructor: TLConstructor_CRC32_langPackString, +// help.passportConfigNotModified#bfb9f457 = help.PassportConfig; +func (m *TLHelpPassportConfigNotModified) To_Help_PassportConfig() *Help_PassportConfig { + return &Help_PassportConfig{ + Constructor: TLConstructor_CRC32_help_passportConfigNotModified, Data2: m.Data2, } } -func (m *TLLangPackString) SetKey(v string) { m.Data2.Key = v } -func (m *TLLangPackString) GetKey() string { return m.Data2.Key } - -func (m *TLLangPackString) SetValue(v string) { m.Data2.Value = v } -func (m *TLLangPackString) GetValue() string { return m.Data2.Value } - -func NewTLLangPackString() *TLLangPackString { - return &TLLangPackString{Data2: &LangPackString_Data{}} +func NewTLHelpPassportConfigNotModified() *TLHelpPassportConfigNotModified { + return &TLHelpPassportConfigNotModified{Data2: &Help_PassportConfig_Data{}} } -func (m *TLLangPackString) Encode() []byte { +func (m *TLHelpPassportConfigNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackString)) - - x.String(m.GetKey()) - x.String(m.GetValue()) + x.Int(int32(TLConstructor_CRC32_help_passportConfigNotModified)) return x.buf } -func (m *TLLangPackString) EncodeToLayer(layer int) []byte { +func (m *TLHelpPassportConfigNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackString)) - - x.String(m.GetKey()) - x.String(m.GetValue()) + x.Int(int32(TLConstructor_CRC32_help_passportConfigNotModified)) return x.buf } -func (m *TLLangPackString) Decode(dbuf *DecodeBuf) error { - m.SetKey(dbuf.String()) - m.SetValue(dbuf.String()) +func (m *TLHelpPassportConfigNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString; -func (m *TLLangPackStringPluralized) To_LangPackString() *LangPackString { - return &LangPackString{ - Constructor: TLConstructor_CRC32_langPackStringPluralized, +// help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig; +func (m *TLHelpPassportConfig) To_Help_PassportConfig() *Help_PassportConfig { + return &Help_PassportConfig{ + Constructor: TLConstructor_CRC32_help_passportConfig, Data2: m.Data2, } } -func (m *TLLangPackStringPluralized) SetKey(v string) { m.Data2.Key = v } -func (m *TLLangPackStringPluralized) GetKey() string { return m.Data2.Key } - -func (m *TLLangPackStringPluralized) SetZeroValue(v string) { m.Data2.ZeroValue = v } -func (m *TLLangPackStringPluralized) GetZeroValue() string { return m.Data2.ZeroValue } - -func (m *TLLangPackStringPluralized) SetOneValue(v string) { m.Data2.OneValue = v } -func (m *TLLangPackStringPluralized) GetOneValue() string { return m.Data2.OneValue } - -func (m *TLLangPackStringPluralized) SetTwoValue(v string) { m.Data2.TwoValue = v } -func (m *TLLangPackStringPluralized) GetTwoValue() string { return m.Data2.TwoValue } - -func (m *TLLangPackStringPluralized) SetFewValue(v string) { m.Data2.FewValue = v } -func (m *TLLangPackStringPluralized) GetFewValue() string { return m.Data2.FewValue } - -func (m *TLLangPackStringPluralized) SetManyValue(v string) { m.Data2.ManyValue = v } -func (m *TLLangPackStringPluralized) GetManyValue() string { return m.Data2.ManyValue } +func (m *TLHelpPassportConfig) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLHelpPassportConfig) GetHash() int32 { return m.Data2.Hash } -func (m *TLLangPackStringPluralized) SetOtherValue(v string) { m.Data2.OtherValue = v } -func (m *TLLangPackStringPluralized) GetOtherValue() string { return m.Data2.OtherValue } +func (m *TLHelpPassportConfig) SetCountriesLangs(v *DataJSON) { m.Data2.CountriesLangs = v } +func (m *TLHelpPassportConfig) GetCountriesLangs() *DataJSON { return m.Data2.CountriesLangs } -func NewTLLangPackStringPluralized() *TLLangPackStringPluralized { - return &TLLangPackStringPluralized{Data2: &LangPackString_Data{}} +func NewTLHelpPassportConfig() *TLHelpPassportConfig { + return &TLHelpPassportConfig{Data2: &Help_PassportConfig_Data{}} } -func (m *TLLangPackStringPluralized) Encode() []byte { +func (m *TLHelpPassportConfig) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackStringPluralized)) - - // flags - var flags uint32 = 0 - if m.GetZeroValue() != "" { - flags |= 1 << 0 - } - if m.GetOneValue() != "" { - flags |= 1 << 1 - } - if m.GetTwoValue() != "" { - flags |= 1 << 2 - } - if m.GetFewValue() != "" { - flags |= 1 << 3 - } - if m.GetManyValue() != "" { - flags |= 1 << 4 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_help_passportConfig)) - x.String(m.GetKey()) - if m.GetZeroValue() != "" { - x.String(m.GetZeroValue()) - } - if m.GetOneValue() != "" { - x.String(m.GetOneValue()) - } - if m.GetTwoValue() != "" { - x.String(m.GetTwoValue()) - } - if m.GetFewValue() != "" { - x.String(m.GetFewValue()) - } - if m.GetManyValue() != "" { - x.String(m.GetManyValue()) - } - x.String(m.GetOtherValue()) + x.Int(m.GetHash()) + x.Bytes(m.GetCountriesLangs().Encode()) return x.buf } -func (m *TLLangPackStringPluralized) EncodeToLayer(layer int) []byte { +func (m *TLHelpPassportConfig) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackStringPluralized)) - - // flags - var flags uint32 = 0 - if m.GetZeroValue() != "" { - flags |= 1 << 0 - } - if m.GetOneValue() != "" { - flags |= 1 << 1 - } - if m.GetTwoValue() != "" { - flags |= 1 << 2 - } - if m.GetFewValue() != "" { - flags |= 1 << 3 - } - if m.GetManyValue() != "" { - flags |= 1 << 4 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_help_passportConfig)) - x.String(m.GetKey()) - if m.GetZeroValue() != "" { - x.String(m.GetZeroValue()) - } - if m.GetOneValue() != "" { - x.String(m.GetOneValue()) - } - if m.GetTwoValue() != "" { - x.String(m.GetTwoValue()) - } - if m.GetFewValue() != "" { - x.String(m.GetFewValue()) - } - if m.GetManyValue() != "" { - x.String(m.GetManyValue()) - } - x.String(m.GetOtherValue()) + x.Int(m.GetHash()) + x.Bytes(m.GetCountriesLangs().EncodeToLayer(layer)) return x.buf } -func (m *TLLangPackStringPluralized) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetKey(dbuf.String()) - if (flags & (1 << 0)) != 0 { - m.SetZeroValue(dbuf.String()) - } - if (flags & (1 << 1)) != 0 { - m.SetOneValue(dbuf.String()) - } - if (flags & (1 << 2)) != 0 { - m.SetTwoValue(dbuf.String()) - } - if (flags & (1 << 3)) != 0 { - m.SetFewValue(dbuf.String()) - } - if (flags & (1 << 4)) != 0 { - m.SetManyValue(dbuf.String()) - } - m.SetOtherValue(dbuf.String()) +func (m *TLHelpPassportConfig) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Int()) + m2 := &DataJSON{} + m2.Decode(dbuf) + m.SetCountriesLangs(m2) return dbuf.err } -// langPackStringDeleted#2979eeb2 key:string = LangPackString; -func (m *TLLangPackStringDeleted) To_LangPackString() *LangPackString { - return &LangPackString{ - Constructor: TLConstructor_CRC32_langPackStringDeleted, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// Help_ProxyData <-- +// + TL_HelpProxyDataEmpty +// + TL_HelpProxyDataPromo +// + +func (m *Help_ProxyData) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_help_proxyDataEmpty: + t := m.To_HelpProxyDataEmpty() + return t.Encode() + case TLConstructor_CRC32_help_proxyDataPromo: + t := m.To_HelpProxyDataPromo() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLLangPackStringDeleted) SetKey(v string) { m.Data2.Key = v } -func (m *TLLangPackStringDeleted) GetKey() string { return m.Data2.Key } +func (m *Help_ProxyData) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_help_proxyDataEmpty: + t := m.To_HelpProxyDataEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_help_proxyDataPromo: + t := m.To_HelpProxyDataPromo() + return t.EncodeToLayer(layer) -func NewTLLangPackStringDeleted() *TLLangPackStringDeleted { - return &TLLangPackStringDeleted{Data2: &LangPackString_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLLangPackStringDeleted) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackStringDeleted)) +func (m *Help_ProxyData) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_help_proxyDataEmpty: + m2 := &TLHelpProxyDataEmpty{Data2: &Help_ProxyData_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_help_proxyDataPromo: + m2 := &TLHelpProxyDataPromo{Data2: &Help_ProxyData_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - x.String(m.GetKey()) + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// help.proxyDataEmpty#e09e1fb8 expires:int = help.ProxyData; +func (m *Help_ProxyData) To_HelpProxyDataEmpty() *TLHelpProxyDataEmpty { + return &TLHelpProxyDataEmpty{ + Data2: m.Data2, + } +} + +// help.proxyDataPromo#2bf7ee23 expires:int peer:Peer chats:Vector users:Vector = help.ProxyData; +func (m *Help_ProxyData) To_HelpProxyDataPromo() *TLHelpProxyDataPromo { + return &TLHelpProxyDataPromo{ + Data2: m.Data2, + } +} + +// help.proxyDataEmpty#e09e1fb8 expires:int = help.ProxyData; +func (m *TLHelpProxyDataEmpty) To_Help_ProxyData() *Help_ProxyData { + return &Help_ProxyData{ + Constructor: TLConstructor_CRC32_help_proxyDataEmpty, + Data2: m.Data2, + } +} + +func (m *TLHelpProxyDataEmpty) SetExpires(v int32) { m.Data2.Expires = v } +func (m *TLHelpProxyDataEmpty) GetExpires() int32 { return m.Data2.Expires } + +func NewTLHelpProxyDataEmpty() *TLHelpProxyDataEmpty { + return &TLHelpProxyDataEmpty{Data2: &Help_ProxyData_Data{}} +} + +func (m *TLHelpProxyDataEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_help_proxyDataEmpty)) + + x.Int(m.GetExpires()) return x.buf } -func (m *TLLangPackStringDeleted) EncodeToLayer(layer int) []byte { +func (m *TLHelpProxyDataEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackStringDeleted)) + x.Int(int32(TLConstructor_CRC32_help_proxyDataEmpty)) - x.String(m.GetKey()) + x.Int(m.GetExpires()) return x.buf } -func (m *TLLangPackStringDeleted) Decode(dbuf *DecodeBuf) error { - m.SetKey(dbuf.String()) +func (m *TLHelpProxyDataEmpty) Decode(dbuf *DecodeBuf) error { + m.SetExpires(dbuf.Int()) + + return dbuf.err +} + +// help.proxyDataPromo#2bf7ee23 expires:int peer:Peer chats:Vector users:Vector = help.ProxyData; +func (m *TLHelpProxyDataPromo) To_Help_ProxyData() *Help_ProxyData { + return &Help_ProxyData{ + Constructor: TLConstructor_CRC32_help_proxyDataPromo, + Data2: m.Data2, + } +} + +func (m *TLHelpProxyDataPromo) SetExpires(v int32) { m.Data2.Expires = v } +func (m *TLHelpProxyDataPromo) GetExpires() int32 { return m.Data2.Expires } + +func (m *TLHelpProxyDataPromo) SetPeer(v *Peer) { m.Data2.Peer = v } +func (m *TLHelpProxyDataPromo) GetPeer() *Peer { return m.Data2.Peer } + +func (m *TLHelpProxyDataPromo) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLHelpProxyDataPromo) GetChats() []*Chat { return m.Data2.Chats } + +func (m *TLHelpProxyDataPromo) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLHelpProxyDataPromo) GetUsers() []*User { return m.Data2.Users } + +func NewTLHelpProxyDataPromo() *TLHelpProxyDataPromo { + return &TLHelpProxyDataPromo{Data2: &Help_ProxyData_Data{}} +} + +func (m *TLHelpProxyDataPromo) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_help_proxyDataPromo)) + + x.Int(m.GetExpires()) + x.Bytes(m.GetPeer().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } + + return x.buf +} + +func (m *TLHelpProxyDataPromo) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_help_proxyDataPromo)) + + x.Int(m.GetExpires()) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + + return x.buf +} + +func (m *TLHelpProxyDataPromo) Decode(dbuf *DecodeBuf) error { + m.SetExpires(dbuf.Int()) + m2 := &Peer{} + m2.Decode(dbuf) + m.SetPeer(m2) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Chat, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Chat{} + v3[i].Decode(dbuf) + } + m.SetChats(v3) + + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*User, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &User{} + v4[i].Decode(dbuf) + } + m.SetUsers(v4) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PaymentRequestedInfo <-- -// + TL_PaymentRequestedInfo +// InputSecureValue <-- +// + TL_InputSecureValue // -func (m *PaymentRequestedInfo) Encode() []byte { +func (m *InputSecureValue) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_paymentRequestedInfo: - t := m.To_PaymentRequestedInfo() + case TLConstructor_CRC32_inputSecureValue: + t := m.To_InputSecureValue() return t.Encode() default: @@ -25165,11 +25980,11 @@ func (m *PaymentRequestedInfo) Encode() []byte { } } -func (m *PaymentRequestedInfo) EncodeToLayer(layer int) []byte { +func (m *InputSecureValue) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_paymentRequestedInfo: - t := m.To_PaymentRequestedInfo() + case TLConstructor_CRC32_inputSecureValue: + t := m.To_InputSecureValue() return t.EncodeToLayer(layer) default: @@ -25178,11 +25993,11 @@ func (m *PaymentRequestedInfo) EncodeToLayer(layer int) []byte { } } -func (m *PaymentRequestedInfo) Decode(dbuf *DecodeBuf) error { +func (m *InputSecureValue) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_paymentRequestedInfo: - m2 := &TLPaymentRequestedInfo{Data2: &PaymentRequestedInfo_Data{}} + case TLConstructor_CRC32_inputSecureValue: + m2 := &TLInputSecureValue{Data2: &InputSecureValue_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -25192,187 +26007,249 @@ func (m *PaymentRequestedInfo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo; -func (m *PaymentRequestedInfo) To_PaymentRequestedInfo() *TLPaymentRequestedInfo { - return &TLPaymentRequestedInfo{ +// inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue; +func (m *InputSecureValue) To_InputSecureValue() *TLInputSecureValue { + return &TLInputSecureValue{ Data2: m.Data2, } } -// paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo; -func (m *TLPaymentRequestedInfo) To_PaymentRequestedInfo() *PaymentRequestedInfo { - return &PaymentRequestedInfo{ - Constructor: TLConstructor_CRC32_paymentRequestedInfo, +// inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue; +func (m *TLInputSecureValue) To_InputSecureValue() *InputSecureValue { + return &InputSecureValue{ + Constructor: TLConstructor_CRC32_inputSecureValue, Data2: m.Data2, } } -func (m *TLPaymentRequestedInfo) SetName(v string) { m.Data2.Name = v } -func (m *TLPaymentRequestedInfo) GetName() string { return m.Data2.Name } +func (m *TLInputSecureValue) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLInputSecureValue) GetType() *SecureValueType { return m.Data2.Type } -func (m *TLPaymentRequestedInfo) SetPhone(v string) { m.Data2.Phone = v } -func (m *TLPaymentRequestedInfo) GetPhone() string { return m.Data2.Phone } +func (m *TLInputSecureValue) SetData(v *SecureData) { m.Data2.Data = v } +func (m *TLInputSecureValue) GetData() *SecureData { return m.Data2.Data } -func (m *TLPaymentRequestedInfo) SetEmail(v string) { m.Data2.Email = v } -func (m *TLPaymentRequestedInfo) GetEmail() string { return m.Data2.Email } +func (m *TLInputSecureValue) SetFrontSide(v *InputSecureFile) { m.Data2.FrontSide = v } +func (m *TLInputSecureValue) GetFrontSide() *InputSecureFile { return m.Data2.FrontSide } -func (m *TLPaymentRequestedInfo) SetShippingAddress(v *PostAddress) { m.Data2.ShippingAddress = v } -func (m *TLPaymentRequestedInfo) GetShippingAddress() *PostAddress { return m.Data2.ShippingAddress } +func (m *TLInputSecureValue) SetReverseSide(v *InputSecureFile) { m.Data2.ReverseSide = v } +func (m *TLInputSecureValue) GetReverseSide() *InputSecureFile { return m.Data2.ReverseSide } -func NewTLPaymentRequestedInfo() *TLPaymentRequestedInfo { - return &TLPaymentRequestedInfo{Data2: &PaymentRequestedInfo_Data{}} +func (m *TLInputSecureValue) SetSelfie(v *InputSecureFile) { m.Data2.Selfie = v } +func (m *TLInputSecureValue) GetSelfie() *InputSecureFile { return m.Data2.Selfie } + +func (m *TLInputSecureValue) SetTranslation(v []*InputSecureFile) { m.Data2.Translation = v } +func (m *TLInputSecureValue) GetTranslation() []*InputSecureFile { return m.Data2.Translation } + +func (m *TLInputSecureValue) SetFiles(v []*InputSecureFile) { m.Data2.Files = v } +func (m *TLInputSecureValue) GetFiles() []*InputSecureFile { return m.Data2.Files } + +func (m *TLInputSecureValue) SetPlainData(v *SecurePlainData) { m.Data2.PlainData = v } +func (m *TLInputSecureValue) GetPlainData() *SecurePlainData { return m.Data2.PlainData } + +func NewTLInputSecureValue() *TLInputSecureValue { + return &TLInputSecureValue{Data2: &InputSecureValue_Data{}} } -func (m *TLPaymentRequestedInfo) Encode() []byte { +func (m *TLInputSecureValue) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_paymentRequestedInfo)) + x.Int(int32(TLConstructor_CRC32_inputSecureValue)) // flags var flags uint32 = 0 - if m.GetName() != "" { + if m.GetData() != nil { flags |= 1 << 0 } - if m.GetPhone() != "" { + if m.GetFrontSide() != nil { flags |= 1 << 1 } - if m.GetEmail() != "" { + if m.GetReverseSide() != nil { flags |= 1 << 2 } - if m.GetShippingAddress() != nil { + if m.GetSelfie() != nil { flags |= 1 << 3 } + if m.GetTranslation() != nil { + flags |= 1 << 6 + } + if m.GetFiles() != nil { + flags |= 1 << 4 + } + if m.GetPlainData() != nil { + flags |= 1 << 5 + } x.UInt(flags) - if m.GetName() != "" { - x.String(m.GetName()) + x.Bytes(m.GetType().Encode()) + if m.GetData() != nil { + x.Bytes(m.GetData().Encode()) } - if m.GetPhone() != "" { - x.String(m.GetPhone()) + if m.GetFrontSide() != nil { + x.Bytes(m.GetFrontSide().Encode()) } - if m.GetEmail() != "" { - x.String(m.GetEmail()) + if m.GetReverseSide() != nil { + x.Bytes(m.GetReverseSide().Encode()) } - if m.GetShippingAddress() != nil { - x.Bytes(m.GetShippingAddress().Encode()) + if m.GetSelfie() != nil { + x.Bytes(m.GetSelfie().Encode()) + } + if m.GetTranslation() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTranslation()))) + for _, v := range m.GetTranslation() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetFiles() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetFiles()))) + for _, v := range m.GetFiles() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetPlainData() != nil { + x.Bytes(m.GetPlainData().Encode()) } return x.buf } -func (m *TLPaymentRequestedInfo) EncodeToLayer(layer int) []byte { +func (m *TLInputSecureValue) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_paymentRequestedInfo)) + x.Int(int32(TLConstructor_CRC32_inputSecureValue)) // flags var flags uint32 = 0 - if m.GetName() != "" { + if m.GetData() != nil { flags |= 1 << 0 } - if m.GetPhone() != "" { + if m.GetFrontSide() != nil { flags |= 1 << 1 } - if m.GetEmail() != "" { + if m.GetReverseSide() != nil { flags |= 1 << 2 } - if m.GetShippingAddress() != nil { + if m.GetSelfie() != nil { flags |= 1 << 3 } + if m.GetTranslation() != nil { + flags |= 1 << 6 + } + if m.GetFiles() != nil { + flags |= 1 << 4 + } + if m.GetPlainData() != nil { + flags |= 1 << 5 + } x.UInt(flags) - if m.GetName() != "" { - x.String(m.GetName()) + x.Bytes(m.GetType().EncodeToLayer(layer)) + if m.GetData() != nil { + x.Bytes(m.GetData().EncodeToLayer(layer)) } - if m.GetPhone() != "" { - x.String(m.GetPhone()) + if m.GetFrontSide() != nil { + x.Bytes(m.GetFrontSide().EncodeToLayer(layer)) } - if m.GetEmail() != "" { - x.String(m.GetEmail()) + if m.GetReverseSide() != nil { + x.Bytes(m.GetReverseSide().EncodeToLayer(layer)) } - if m.GetShippingAddress() != nil { - x.Bytes(m.GetShippingAddress().EncodeToLayer(layer)) + if m.GetSelfie() != nil { + x.Bytes(m.GetSelfie().EncodeToLayer(layer)) + } + if m.GetTranslation() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTranslation()))) + for _, v := range m.GetTranslation() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetFiles() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetFiles()))) + for _, v := range m.GetFiles() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetPlainData() != nil { + x.Bytes(m.GetPlainData().EncodeToLayer(layer)) } return x.buf } -func (m *TLPaymentRequestedInfo) Decode(dbuf *DecodeBuf) error { +func (m *TLInputSecureValue) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags + m2 := &SecureValueType{} + m2.Decode(dbuf) + m.SetType(m2) if (flags & (1 << 0)) != 0 { - m.SetName(dbuf.String()) + m3 := &SecureData{} + m3.Decode(dbuf) + m.SetData(m3) } if (flags & (1 << 1)) != 0 { - m.SetPhone(dbuf.String()) + m4 := &InputSecureFile{} + m4.Decode(dbuf) + m.SetFrontSide(m4) } if (flags & (1 << 2)) != 0 { - m.SetEmail(dbuf.String()) + m5 := &InputSecureFile{} + m5.Decode(dbuf) + m.SetReverseSide(m5) } if (flags & (1 << 3)) != 0 { - m5 := &PostAddress{} - m5.Decode(dbuf) - m.SetShippingAddress(m5) + m6 := &InputSecureFile{} + m6.Decode(dbuf) + m.SetSelfie(m6) + } + if (flags & (1 << 6)) != 0 { + c7 := dbuf.Int() + if c7 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) + return dbuf.err + } + l7 := dbuf.Int() + v7 := make([]*InputSecureFile, l7) + for i := int32(0); i < l7; i++ { + v7[i] = &InputSecureFile{} + v7[i].Decode(dbuf) + } + m.SetTranslation(v7) + + } + if (flags & (1 << 4)) != 0 { + c8 := dbuf.Int() + if c8 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) + return dbuf.err + } + l8 := dbuf.Int() + v8 := make([]*InputSecureFile, l8) + for i := int32(0); i < l8; i++ { + v8[i] = &InputSecureFile{} + v8[i].Decode(dbuf) + } + m.SetFiles(v8) + + } + if (flags & (1 << 5)) != 0 { + m9 := &SecurePlainData{} + m9.Decode(dbuf) + m.SetPlainData(m9) } return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SecureValueType <-- -// + TL_SecureValueTypePersonalDetails -// + TL_SecureValueTypePassport -// + TL_SecureValueTypeDriverLicense -// + TL_SecureValueTypeIdentityCard -// + TL_SecureValueTypeInternalPassport -// + TL_SecureValueTypeAddress -// + TL_SecureValueTypeUtilityBill -// + TL_SecureValueTypeBankStatement -// + TL_SecureValueTypeRentalAgreement -// + TL_SecureValueTypePassportRegistration -// + TL_SecureValueTypeTemporaryRegistration -// + TL_SecureValueTypePhone -// + TL_SecureValueTypeEmail +// PeerNotifySettings <-- +// + TL_PeerNotifySettings // -func (m *SecureValueType) Encode() []byte { +func (m *PeerNotifySettings) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_secureValueTypePersonalDetails: - t := m.To_SecureValueTypePersonalDetails() - return t.Encode() - case TLConstructor_CRC32_secureValueTypePassport: - t := m.To_SecureValueTypePassport() - return t.Encode() - case TLConstructor_CRC32_secureValueTypeDriverLicense: - t := m.To_SecureValueTypeDriverLicense() - return t.Encode() - case TLConstructor_CRC32_secureValueTypeIdentityCard: - t := m.To_SecureValueTypeIdentityCard() - return t.Encode() - case TLConstructor_CRC32_secureValueTypeInternalPassport: - t := m.To_SecureValueTypeInternalPassport() - return t.Encode() - case TLConstructor_CRC32_secureValueTypeAddress: - t := m.To_SecureValueTypeAddress() - return t.Encode() - case TLConstructor_CRC32_secureValueTypeUtilityBill: - t := m.To_SecureValueTypeUtilityBill() - return t.Encode() - case TLConstructor_CRC32_secureValueTypeBankStatement: - t := m.To_SecureValueTypeBankStatement() - return t.Encode() - case TLConstructor_CRC32_secureValueTypeRentalAgreement: - t := m.To_SecureValueTypeRentalAgreement() - return t.Encode() - case TLConstructor_CRC32_secureValueTypePassportRegistration: - t := m.To_SecureValueTypePassportRegistration() - return t.Encode() - case TLConstructor_CRC32_secureValueTypeTemporaryRegistration: - t := m.To_SecureValueTypeTemporaryRegistration() - return t.Encode() - case TLConstructor_CRC32_secureValueTypePhone: - t := m.To_SecureValueTypePhone() - return t.Encode() - case TLConstructor_CRC32_secureValueTypeEmail: - t := m.To_SecureValueTypeEmail() + case TLConstructor_CRC32_peerNotifySettings: + t := m.To_PeerNotifySettings() return t.Encode() default: @@ -25381,47 +26258,11 @@ func (m *SecureValueType) Encode() []byte { } } -func (m *SecureValueType) EncodeToLayer(layer int) []byte { +func (m *PeerNotifySettings) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_secureValueTypePersonalDetails: - t := m.To_SecureValueTypePersonalDetails() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypePassport: - t := m.To_SecureValueTypePassport() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypeDriverLicense: - t := m.To_SecureValueTypeDriverLicense() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypeIdentityCard: - t := m.To_SecureValueTypeIdentityCard() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypeInternalPassport: - t := m.To_SecureValueTypeInternalPassport() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypeAddress: - t := m.To_SecureValueTypeAddress() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypeUtilityBill: - t := m.To_SecureValueTypeUtilityBill() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypeBankStatement: - t := m.To_SecureValueTypeBankStatement() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypeRentalAgreement: - t := m.To_SecureValueTypeRentalAgreement() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypePassportRegistration: - t := m.To_SecureValueTypePassportRegistration() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypeTemporaryRegistration: - t := m.To_SecureValueTypeTemporaryRegistration() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypePhone: - t := m.To_SecureValueTypePhone() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueTypeEmail: - t := m.To_SecureValueTypeEmail() + case TLConstructor_CRC32_peerNotifySettings: + t := m.To_PeerNotifySettings() return t.EncodeToLayer(layer) default: @@ -25430,59 +26271,11 @@ func (m *SecureValueType) EncodeToLayer(layer int) []byte { } } -func (m *SecureValueType) Decode(dbuf *DecodeBuf) error { +func (m *PeerNotifySettings) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_secureValueTypePersonalDetails: - m2 := &TLSecureValueTypePersonalDetails{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypePassport: - m2 := &TLSecureValueTypePassport{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypeDriverLicense: - m2 := &TLSecureValueTypeDriverLicense{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypeIdentityCard: - m2 := &TLSecureValueTypeIdentityCard{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypeInternalPassport: - m2 := &TLSecureValueTypeInternalPassport{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypeAddress: - m2 := &TLSecureValueTypeAddress{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypeUtilityBill: - m2 := &TLSecureValueTypeUtilityBill{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypeBankStatement: - m2 := &TLSecureValueTypeBankStatement{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypeRentalAgreement: - m2 := &TLSecureValueTypeRentalAgreement{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypePassportRegistration: - m2 := &TLSecureValueTypePassportRegistration{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypeTemporaryRegistration: - m2 := &TLSecureValueTypeTemporaryRegistration{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypePhone: - m2 := &TLSecureValueTypePhone{Data2: &SecureValueType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueTypeEmail: - m2 := &TLSecureValueTypeEmail{Data2: &SecureValueType_Data{}} + case TLConstructor_CRC32_peerNotifySettings: + m2 := &TLPeerNotifySettings{Data2: &PeerNotifySettings_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -25492,513 +26285,652 @@ func (m *SecureValueType) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueTypePersonalDetails#9d2a81e3 = SecureValueType; -func (m *SecureValueType) To_SecureValueTypePersonalDetails() *TLSecureValueTypePersonalDetails { - return &TLSecureValueTypePersonalDetails{ +// peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings; +func (m *PeerNotifySettings) To_PeerNotifySettings() *TLPeerNotifySettings { + return &TLPeerNotifySettings{ Data2: m.Data2, } } -// secureValueTypePassport#3dac6a00 = SecureValueType; -func (m *SecureValueType) To_SecureValueTypePassport() *TLSecureValueTypePassport { - return &TLSecureValueTypePassport{ - Data2: m.Data2, +// peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings; +func (m *TLPeerNotifySettings) To_PeerNotifySettings() *PeerNotifySettings { + return &PeerNotifySettings{ + Constructor: TLConstructor_CRC32_peerNotifySettings, + Data2: m.Data2, } } -// secureValueTypeDriverLicense#6e425c4 = SecureValueType; -func (m *SecureValueType) To_SecureValueTypeDriverLicense() *TLSecureValueTypeDriverLicense { - return &TLSecureValueTypeDriverLicense{ - Data2: m.Data2, - } +func (m *TLPeerNotifySettings) SetShowPreviews(v *Bool) { m.Data2.ShowPreviews = v } +func (m *TLPeerNotifySettings) GetShowPreviews() *Bool { return m.Data2.ShowPreviews } + +func (m *TLPeerNotifySettings) SetSilent(v *Bool) { m.Data2.Silent = v } +func (m *TLPeerNotifySettings) GetSilent() *Bool { return m.Data2.Silent } + +func (m *TLPeerNotifySettings) SetMuteUntil(v int32) { m.Data2.MuteUntil = v } +func (m *TLPeerNotifySettings) GetMuteUntil() int32 { return m.Data2.MuteUntil } + +func (m *TLPeerNotifySettings) SetSound(v string) { m.Data2.Sound = v } +func (m *TLPeerNotifySettings) GetSound() string { return m.Data2.Sound } + +func NewTLPeerNotifySettings() *TLPeerNotifySettings { + return &TLPeerNotifySettings{Data2: &PeerNotifySettings_Data{}} } -// secureValueTypeIdentityCard#a0d0744b = SecureValueType; -func (m *SecureValueType) To_SecureValueTypeIdentityCard() *TLSecureValueTypeIdentityCard { - return &TLSecureValueTypeIdentityCard{ - Data2: m.Data2, +func (m *TLPeerNotifySettings) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_peerNotifySettings)) + + // flags + var flags uint32 = 0 + if m.GetShowPreviews() != nil { + flags |= 1 << 0 } -} + if m.GetSilent() != nil { + flags |= 1 << 1 + } + if m.GetMuteUntil() != 0 { + flags |= 1 << 2 + } + if m.GetSound() != "" { + flags |= 1 << 3 + } + x.UInt(flags) -// secureValueTypeInternalPassport#99a48f23 = SecureValueType; -func (m *SecureValueType) To_SecureValueTypeInternalPassport() *TLSecureValueTypeInternalPassport { - return &TLSecureValueTypeInternalPassport{ - Data2: m.Data2, + if m.GetShowPreviews() != nil { + x.Bytes(m.GetShowPreviews().Encode()) + } + if m.GetSilent() != nil { + x.Bytes(m.GetSilent().Encode()) } + if m.GetMuteUntil() != 0 { + x.Int(m.GetMuteUntil()) + } + if m.GetSound() != "" { + x.String(m.GetSound()) + } + + return x.buf } -// secureValueTypeAddress#cbe31e26 = SecureValueType; -func (m *SecureValueType) To_SecureValueTypeAddress() *TLSecureValueTypeAddress { - return &TLSecureValueTypeAddress{ - Data2: m.Data2, +func (m *TLPeerNotifySettings) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_peerNotifySettings)) + + // flags + var flags uint32 = 0 + if m.GetShowPreviews() != nil { + flags |= 1 << 0 + } + if m.GetSilent() != nil { + flags |= 1 << 1 + } + if m.GetMuteUntil() != 0 { + flags |= 1 << 2 + } + if m.GetSound() != "" { + flags |= 1 << 3 + } + x.UInt(flags) + + if m.GetShowPreviews() != nil { + x.Bytes(m.GetShowPreviews().EncodeToLayer(layer)) + } + if m.GetSilent() != nil { + x.Bytes(m.GetSilent().EncodeToLayer(layer)) + } + if m.GetMuteUntil() != 0 { + x.Int(m.GetMuteUntil()) } + if m.GetSound() != "" { + x.String(m.GetSound()) + } + + return x.buf } -// secureValueTypeUtilityBill#fc36954e = SecureValueType; -func (m *SecureValueType) To_SecureValueTypeUtilityBill() *TLSecureValueTypeUtilityBill { - return &TLSecureValueTypeUtilityBill{ - Data2: m.Data2, +func (m *TLPeerNotifySettings) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m2 := &Bool{} + m2.Decode(dbuf) + m.SetShowPreviews(m2) } + if (flags & (1 << 1)) != 0 { + m3 := &Bool{} + m3.Decode(dbuf) + m.SetSilent(m3) + } + if (flags & (1 << 2)) != 0 { + m.SetMuteUntil(dbuf.Int()) + } + if (flags & (1 << 3)) != 0 { + m.SetSound(dbuf.String()) + } + + return dbuf.err } -// secureValueTypeBankStatement#89137c0d = SecureValueType; -func (m *SecureValueType) To_SecureValueTypeBankStatement() *TLSecureValueTypeBankStatement { - return &TLSecureValueTypeBankStatement{ - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// InputPrivacyKey <-- +// + TL_InputPrivacyKeyStatusTimestamp +// + TL_InputPrivacyKeyChatInvite +// + TL_InputPrivacyKeyPhoneCall +// + +func (m *InputPrivacyKey) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp: + t := m.To_InputPrivacyKeyStatusTimestamp() + return t.Encode() + case TLConstructor_CRC32_inputPrivacyKeyChatInvite: + t := m.To_InputPrivacyKeyChatInvite() + return t.Encode() + case TLConstructor_CRC32_inputPrivacyKeyPhoneCall: + t := m.To_InputPrivacyKeyPhoneCall() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -// secureValueTypeRentalAgreement#8b883488 = SecureValueType; -func (m *SecureValueType) To_SecureValueTypeRentalAgreement() *TLSecureValueTypeRentalAgreement { - return &TLSecureValueTypeRentalAgreement{ - Data2: m.Data2, +func (m *InputPrivacyKey) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp: + t := m.To_InputPrivacyKeyStatusTimestamp() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPrivacyKeyChatInvite: + t := m.To_InputPrivacyKeyChatInvite() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPrivacyKeyPhoneCall: + t := m.To_InputPrivacyKeyPhoneCall() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -// secureValueTypePassportRegistration#99e3806a = SecureValueType; -func (m *SecureValueType) To_SecureValueTypePassportRegistration() *TLSecureValueTypePassportRegistration { - return &TLSecureValueTypePassportRegistration{ - Data2: m.Data2, +func (m *InputPrivacyKey) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp: + m2 := &TLInputPrivacyKeyStatusTimestamp{Data2: &InputPrivacyKey_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPrivacyKeyChatInvite: + m2 := &TLInputPrivacyKeyChatInvite{Data2: &InputPrivacyKey_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPrivacyKeyPhoneCall: + m2 := &TLInputPrivacyKeyPhoneCall{Data2: &InputPrivacyKey_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } + return dbuf.err } -// secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType; -func (m *SecureValueType) To_SecureValueTypeTemporaryRegistration() *TLSecureValueTypeTemporaryRegistration { - return &TLSecureValueTypeTemporaryRegistration{ +// inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey; +func (m *InputPrivacyKey) To_InputPrivacyKeyStatusTimestamp() *TLInputPrivacyKeyStatusTimestamp { + return &TLInputPrivacyKeyStatusTimestamp{ Data2: m.Data2, } } -// secureValueTypePhone#b320aadb = SecureValueType; -func (m *SecureValueType) To_SecureValueTypePhone() *TLSecureValueTypePhone { - return &TLSecureValueTypePhone{ +// inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; +func (m *InputPrivacyKey) To_InputPrivacyKeyChatInvite() *TLInputPrivacyKeyChatInvite { + return &TLInputPrivacyKeyChatInvite{ Data2: m.Data2, } } -// secureValueTypeEmail#8e3ca7ee = SecureValueType; -func (m *SecureValueType) To_SecureValueTypeEmail() *TLSecureValueTypeEmail { - return &TLSecureValueTypeEmail{ +// inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey; +func (m *InputPrivacyKey) To_InputPrivacyKeyPhoneCall() *TLInputPrivacyKeyPhoneCall { + return &TLInputPrivacyKeyPhoneCall{ Data2: m.Data2, } } -// secureValueTypePersonalDetails#9d2a81e3 = SecureValueType; -func (m *TLSecureValueTypePersonalDetails) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypePersonalDetails, +// inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey; +func (m *TLInputPrivacyKeyStatusTimestamp) To_InputPrivacyKey() *InputPrivacyKey { + return &InputPrivacyKey{ + Constructor: TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp, Data2: m.Data2, } } -func NewTLSecureValueTypePersonalDetails() *TLSecureValueTypePersonalDetails { - return &TLSecureValueTypePersonalDetails{Data2: &SecureValueType_Data{}} +func NewTLInputPrivacyKeyStatusTimestamp() *TLInputPrivacyKeyStatusTimestamp { + return &TLInputPrivacyKeyStatusTimestamp{Data2: &InputPrivacyKey_Data{}} } -func (m *TLSecureValueTypePersonalDetails) Encode() []byte { +func (m *TLInputPrivacyKeyStatusTimestamp) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypePersonalDetails)) + x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp)) return x.buf } -func (m *TLSecureValueTypePersonalDetails) EncodeToLayer(layer int) []byte { +func (m *TLInputPrivacyKeyStatusTimestamp) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypePersonalDetails)) + x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp)) return x.buf } -func (m *TLSecureValueTypePersonalDetails) Decode(dbuf *DecodeBuf) error { +func (m *TLInputPrivacyKeyStatusTimestamp) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueTypePassport#3dac6a00 = SecureValueType; -func (m *TLSecureValueTypePassport) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypePassport, +// inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; +func (m *TLInputPrivacyKeyChatInvite) To_InputPrivacyKey() *InputPrivacyKey { + return &InputPrivacyKey{ + Constructor: TLConstructor_CRC32_inputPrivacyKeyChatInvite, Data2: m.Data2, } } -func NewTLSecureValueTypePassport() *TLSecureValueTypePassport { - return &TLSecureValueTypePassport{Data2: &SecureValueType_Data{}} +func NewTLInputPrivacyKeyChatInvite() *TLInputPrivacyKeyChatInvite { + return &TLInputPrivacyKeyChatInvite{Data2: &InputPrivacyKey_Data{}} } -func (m *TLSecureValueTypePassport) Encode() []byte { +func (m *TLInputPrivacyKeyChatInvite) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypePassport)) + x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyChatInvite)) return x.buf } -func (m *TLSecureValueTypePassport) EncodeToLayer(layer int) []byte { +func (m *TLInputPrivacyKeyChatInvite) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypePassport)) + x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyChatInvite)) return x.buf } -func (m *TLSecureValueTypePassport) Decode(dbuf *DecodeBuf) error { +func (m *TLInputPrivacyKeyChatInvite) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueTypeDriverLicense#6e425c4 = SecureValueType; -func (m *TLSecureValueTypeDriverLicense) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypeDriverLicense, +// inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey; +func (m *TLInputPrivacyKeyPhoneCall) To_InputPrivacyKey() *InputPrivacyKey { + return &InputPrivacyKey{ + Constructor: TLConstructor_CRC32_inputPrivacyKeyPhoneCall, Data2: m.Data2, } } -func NewTLSecureValueTypeDriverLicense() *TLSecureValueTypeDriverLicense { - return &TLSecureValueTypeDriverLicense{Data2: &SecureValueType_Data{}} +func NewTLInputPrivacyKeyPhoneCall() *TLInputPrivacyKeyPhoneCall { + return &TLInputPrivacyKeyPhoneCall{Data2: &InputPrivacyKey_Data{}} } -func (m *TLSecureValueTypeDriverLicense) Encode() []byte { +func (m *TLInputPrivacyKeyPhoneCall) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeDriverLicense)) + x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyPhoneCall)) return x.buf } -func (m *TLSecureValueTypeDriverLicense) EncodeToLayer(layer int) []byte { +func (m *TLInputPrivacyKeyPhoneCall) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeDriverLicense)) + x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyPhoneCall)) return x.buf } -func (m *TLSecureValueTypeDriverLicense) Decode(dbuf *DecodeBuf) error { +func (m *TLInputPrivacyKeyPhoneCall) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueTypeIdentityCard#a0d0744b = SecureValueType; -func (m *TLSecureValueTypeIdentityCard) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypeIdentityCard, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// TopPeerCategory <-- +// + TL_TopPeerCategoryBotsPM +// + TL_TopPeerCategoryBotsInline +// + TL_TopPeerCategoryCorrespondents +// + TL_TopPeerCategoryGroups +// + TL_TopPeerCategoryChannels +// + TL_TopPeerCategoryPhoneCalls +// + +func (m *TopPeerCategory) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_topPeerCategoryBotsPM: + t := m.To_TopPeerCategoryBotsPM() + return t.Encode() + case TLConstructor_CRC32_topPeerCategoryBotsInline: + t := m.To_TopPeerCategoryBotsInline() + return t.Encode() + case TLConstructor_CRC32_topPeerCategoryCorrespondents: + t := m.To_TopPeerCategoryCorrespondents() + return t.Encode() + case TLConstructor_CRC32_topPeerCategoryGroups: + t := m.To_TopPeerCategoryGroups() + return t.Encode() + case TLConstructor_CRC32_topPeerCategoryChannels: + t := m.To_TopPeerCategoryChannels() + return t.Encode() + case TLConstructor_CRC32_topPeerCategoryPhoneCalls: + t := m.To_TopPeerCategoryPhoneCalls() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func NewTLSecureValueTypeIdentityCard() *TLSecureValueTypeIdentityCard { - return &TLSecureValueTypeIdentityCard{Data2: &SecureValueType_Data{}} +func (m *TopPeerCategory) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_topPeerCategoryBotsPM: + t := m.To_TopPeerCategoryBotsPM() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_topPeerCategoryBotsInline: + t := m.To_TopPeerCategoryBotsInline() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_topPeerCategoryCorrespondents: + t := m.To_TopPeerCategoryCorrespondents() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_topPeerCategoryGroups: + t := m.To_TopPeerCategoryGroups() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_topPeerCategoryChannels: + t := m.To_TopPeerCategoryChannels() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_topPeerCategoryPhoneCalls: + t := m.To_TopPeerCategoryPhoneCalls() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLSecureValueTypeIdentityCard) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeIdentityCard)) +func (m *TopPeerCategory) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_topPeerCategoryBotsPM: + m2 := &TLTopPeerCategoryBotsPM{Data2: &TopPeerCategory_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_topPeerCategoryBotsInline: + m2 := &TLTopPeerCategoryBotsInline{Data2: &TopPeerCategory_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_topPeerCategoryCorrespondents: + m2 := &TLTopPeerCategoryCorrespondents{Data2: &TopPeerCategory_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_topPeerCategoryGroups: + m2 := &TLTopPeerCategoryGroups{Data2: &TopPeerCategory_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_topPeerCategoryChannels: + m2 := &TLTopPeerCategoryChannels{Data2: &TopPeerCategory_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_topPeerCategoryPhoneCalls: + m2 := &TLTopPeerCategoryPhoneCalls{Data2: &TopPeerCategory_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLSecureValueTypeIdentityCard) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeIdentityCard)) +// topPeerCategoryBotsPM#ab661b5b = TopPeerCategory; +func (m *TopPeerCategory) To_TopPeerCategoryBotsPM() *TLTopPeerCategoryBotsPM { + return &TLTopPeerCategoryBotsPM{ + Data2: m.Data2, + } +} - return x.buf +// topPeerCategoryBotsInline#148677e2 = TopPeerCategory; +func (m *TopPeerCategory) To_TopPeerCategoryBotsInline() *TLTopPeerCategoryBotsInline { + return &TLTopPeerCategoryBotsInline{ + Data2: m.Data2, + } } -func (m *TLSecureValueTypeIdentityCard) Decode(dbuf *DecodeBuf) error { +// topPeerCategoryCorrespondents#637b7ed = TopPeerCategory; +func (m *TopPeerCategory) To_TopPeerCategoryCorrespondents() *TLTopPeerCategoryCorrespondents { + return &TLTopPeerCategoryCorrespondents{ + Data2: m.Data2, + } +} - return dbuf.err +// topPeerCategoryGroups#bd17a14a = TopPeerCategory; +func (m *TopPeerCategory) To_TopPeerCategoryGroups() *TLTopPeerCategoryGroups { + return &TLTopPeerCategoryGroups{ + Data2: m.Data2, + } } -// secureValueTypeInternalPassport#99a48f23 = SecureValueType; -func (m *TLSecureValueTypeInternalPassport) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypeInternalPassport, +// topPeerCategoryChannels#161d9628 = TopPeerCategory; +func (m *TopPeerCategory) To_TopPeerCategoryChannels() *TLTopPeerCategoryChannels { + return &TLTopPeerCategoryChannels{ + Data2: m.Data2, + } +} + +// topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory; +func (m *TopPeerCategory) To_TopPeerCategoryPhoneCalls() *TLTopPeerCategoryPhoneCalls { + return &TLTopPeerCategoryPhoneCalls{ + Data2: m.Data2, + } +} + +// topPeerCategoryBotsPM#ab661b5b = TopPeerCategory; +func (m *TLTopPeerCategoryBotsPM) To_TopPeerCategory() *TopPeerCategory { + return &TopPeerCategory{ + Constructor: TLConstructor_CRC32_topPeerCategoryBotsPM, Data2: m.Data2, } } -func NewTLSecureValueTypeInternalPassport() *TLSecureValueTypeInternalPassport { - return &TLSecureValueTypeInternalPassport{Data2: &SecureValueType_Data{}} +func NewTLTopPeerCategoryBotsPM() *TLTopPeerCategoryBotsPM { + return &TLTopPeerCategoryBotsPM{Data2: &TopPeerCategory_Data{}} } -func (m *TLSecureValueTypeInternalPassport) Encode() []byte { +func (m *TLTopPeerCategoryBotsPM) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeInternalPassport)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryBotsPM)) return x.buf } -func (m *TLSecureValueTypeInternalPassport) EncodeToLayer(layer int) []byte { +func (m *TLTopPeerCategoryBotsPM) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeInternalPassport)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryBotsPM)) return x.buf } -func (m *TLSecureValueTypeInternalPassport) Decode(dbuf *DecodeBuf) error { +func (m *TLTopPeerCategoryBotsPM) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueTypeAddress#cbe31e26 = SecureValueType; -func (m *TLSecureValueTypeAddress) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypeAddress, +// topPeerCategoryBotsInline#148677e2 = TopPeerCategory; +func (m *TLTopPeerCategoryBotsInline) To_TopPeerCategory() *TopPeerCategory { + return &TopPeerCategory{ + Constructor: TLConstructor_CRC32_topPeerCategoryBotsInline, Data2: m.Data2, } } -func NewTLSecureValueTypeAddress() *TLSecureValueTypeAddress { - return &TLSecureValueTypeAddress{Data2: &SecureValueType_Data{}} +func NewTLTopPeerCategoryBotsInline() *TLTopPeerCategoryBotsInline { + return &TLTopPeerCategoryBotsInline{Data2: &TopPeerCategory_Data{}} } -func (m *TLSecureValueTypeAddress) Encode() []byte { +func (m *TLTopPeerCategoryBotsInline) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeAddress)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryBotsInline)) return x.buf } -func (m *TLSecureValueTypeAddress) EncodeToLayer(layer int) []byte { +func (m *TLTopPeerCategoryBotsInline) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeAddress)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryBotsInline)) return x.buf } -func (m *TLSecureValueTypeAddress) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// secureValueTypeUtilityBill#fc36954e = SecureValueType; -func (m *TLSecureValueTypeUtilityBill) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypeUtilityBill, - Data2: m.Data2, - } -} - -func NewTLSecureValueTypeUtilityBill() *TLSecureValueTypeUtilityBill { - return &TLSecureValueTypeUtilityBill{Data2: &SecureValueType_Data{}} -} - -func (m *TLSecureValueTypeUtilityBill) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeUtilityBill)) - - return x.buf -} - -func (m *TLSecureValueTypeUtilityBill) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeUtilityBill)) - - return x.buf -} - -func (m *TLSecureValueTypeUtilityBill) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// secureValueTypeBankStatement#89137c0d = SecureValueType; -func (m *TLSecureValueTypeBankStatement) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypeBankStatement, - Data2: m.Data2, - } -} - -func NewTLSecureValueTypeBankStatement() *TLSecureValueTypeBankStatement { - return &TLSecureValueTypeBankStatement{Data2: &SecureValueType_Data{}} -} - -func (m *TLSecureValueTypeBankStatement) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeBankStatement)) - - return x.buf -} - -func (m *TLSecureValueTypeBankStatement) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeBankStatement)) - - return x.buf -} - -func (m *TLSecureValueTypeBankStatement) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// secureValueTypeRentalAgreement#8b883488 = SecureValueType; -func (m *TLSecureValueTypeRentalAgreement) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypeRentalAgreement, - Data2: m.Data2, - } -} - -func NewTLSecureValueTypeRentalAgreement() *TLSecureValueTypeRentalAgreement { - return &TLSecureValueTypeRentalAgreement{Data2: &SecureValueType_Data{}} -} - -func (m *TLSecureValueTypeRentalAgreement) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeRentalAgreement)) - - return x.buf -} - -func (m *TLSecureValueTypeRentalAgreement) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeRentalAgreement)) - - return x.buf -} - -func (m *TLSecureValueTypeRentalAgreement) Decode(dbuf *DecodeBuf) error { +func (m *TLTopPeerCategoryBotsInline) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueTypePassportRegistration#99e3806a = SecureValueType; -func (m *TLSecureValueTypePassportRegistration) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypePassportRegistration, +// topPeerCategoryCorrespondents#637b7ed = TopPeerCategory; +func (m *TLTopPeerCategoryCorrespondents) To_TopPeerCategory() *TopPeerCategory { + return &TopPeerCategory{ + Constructor: TLConstructor_CRC32_topPeerCategoryCorrespondents, Data2: m.Data2, } } -func NewTLSecureValueTypePassportRegistration() *TLSecureValueTypePassportRegistration { - return &TLSecureValueTypePassportRegistration{Data2: &SecureValueType_Data{}} +func NewTLTopPeerCategoryCorrespondents() *TLTopPeerCategoryCorrespondents { + return &TLTopPeerCategoryCorrespondents{Data2: &TopPeerCategory_Data{}} } -func (m *TLSecureValueTypePassportRegistration) Encode() []byte { +func (m *TLTopPeerCategoryCorrespondents) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypePassportRegistration)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryCorrespondents)) return x.buf } -func (m *TLSecureValueTypePassportRegistration) EncodeToLayer(layer int) []byte { +func (m *TLTopPeerCategoryCorrespondents) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypePassportRegistration)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryCorrespondents)) return x.buf } -func (m *TLSecureValueTypePassportRegistration) Decode(dbuf *DecodeBuf) error { +func (m *TLTopPeerCategoryCorrespondents) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType; -func (m *TLSecureValueTypeTemporaryRegistration) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypeTemporaryRegistration, +// topPeerCategoryGroups#bd17a14a = TopPeerCategory; +func (m *TLTopPeerCategoryGroups) To_TopPeerCategory() *TopPeerCategory { + return &TopPeerCategory{ + Constructor: TLConstructor_CRC32_topPeerCategoryGroups, Data2: m.Data2, } } -func NewTLSecureValueTypeTemporaryRegistration() *TLSecureValueTypeTemporaryRegistration { - return &TLSecureValueTypeTemporaryRegistration{Data2: &SecureValueType_Data{}} +func NewTLTopPeerCategoryGroups() *TLTopPeerCategoryGroups { + return &TLTopPeerCategoryGroups{Data2: &TopPeerCategory_Data{}} } -func (m *TLSecureValueTypeTemporaryRegistration) Encode() []byte { +func (m *TLTopPeerCategoryGroups) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeTemporaryRegistration)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryGroups)) return x.buf } -func (m *TLSecureValueTypeTemporaryRegistration) EncodeToLayer(layer int) []byte { +func (m *TLTopPeerCategoryGroups) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeTemporaryRegistration)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryGroups)) return x.buf } -func (m *TLSecureValueTypeTemporaryRegistration) Decode(dbuf *DecodeBuf) error { +func (m *TLTopPeerCategoryGroups) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueTypePhone#b320aadb = SecureValueType; -func (m *TLSecureValueTypePhone) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypePhone, +// topPeerCategoryChannels#161d9628 = TopPeerCategory; +func (m *TLTopPeerCategoryChannels) To_TopPeerCategory() *TopPeerCategory { + return &TopPeerCategory{ + Constructor: TLConstructor_CRC32_topPeerCategoryChannels, Data2: m.Data2, } } -func NewTLSecureValueTypePhone() *TLSecureValueTypePhone { - return &TLSecureValueTypePhone{Data2: &SecureValueType_Data{}} +func NewTLTopPeerCategoryChannels() *TLTopPeerCategoryChannels { + return &TLTopPeerCategoryChannels{Data2: &TopPeerCategory_Data{}} } -func (m *TLSecureValueTypePhone) Encode() []byte { +func (m *TLTopPeerCategoryChannels) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypePhone)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryChannels)) return x.buf } -func (m *TLSecureValueTypePhone) EncodeToLayer(layer int) []byte { +func (m *TLTopPeerCategoryChannels) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypePhone)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryChannels)) return x.buf } -func (m *TLSecureValueTypePhone) Decode(dbuf *DecodeBuf) error { +func (m *TLTopPeerCategoryChannels) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueTypeEmail#8e3ca7ee = SecureValueType; -func (m *TLSecureValueTypeEmail) To_SecureValueType() *SecureValueType { - return &SecureValueType{ - Constructor: TLConstructor_CRC32_secureValueTypeEmail, +// topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory; +func (m *TLTopPeerCategoryPhoneCalls) To_TopPeerCategory() *TopPeerCategory { + return &TopPeerCategory{ + Constructor: TLConstructor_CRC32_topPeerCategoryPhoneCalls, Data2: m.Data2, } } -func NewTLSecureValueTypeEmail() *TLSecureValueTypeEmail { - return &TLSecureValueTypeEmail{Data2: &SecureValueType_Data{}} +func NewTLTopPeerCategoryPhoneCalls() *TLTopPeerCategoryPhoneCalls { + return &TLTopPeerCategoryPhoneCalls{Data2: &TopPeerCategory_Data{}} } -func (m *TLSecureValueTypeEmail) Encode() []byte { +func (m *TLTopPeerCategoryPhoneCalls) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeEmail)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryPhoneCalls)) return x.buf } -func (m *TLSecureValueTypeEmail) EncodeToLayer(layer int) []byte { +func (m *TLTopPeerCategoryPhoneCalls) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueTypeEmail)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryPhoneCalls)) return x.buf } -func (m *TLSecureValueTypeEmail) Decode(dbuf *DecodeBuf) error { +func (m *TLTopPeerCategoryPhoneCalls) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputGeoPoint <-- -// + TL_InputGeoPointEmpty -// + TL_InputGeoPoint +// DraftMessage <-- +// + TL_DraftMessageEmpty +// + TL_DraftMessage // -func (m *InputGeoPoint) Encode() []byte { +func (m *DraftMessage) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputGeoPointEmpty: - t := m.To_InputGeoPointEmpty() + case TLConstructor_CRC32_draftMessageEmpty: + t := m.To_DraftMessageEmpty() return t.Encode() - case TLConstructor_CRC32_inputGeoPoint: - t := m.To_InputGeoPoint() + case TLConstructor_CRC32_draftMessage: + t := m.To_DraftMessage() return t.Encode() default: @@ -26007,14 +26939,14 @@ func (m *InputGeoPoint) Encode() []byte { } } -func (m *InputGeoPoint) EncodeToLayer(layer int) []byte { +func (m *DraftMessage) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputGeoPointEmpty: - t := m.To_InputGeoPointEmpty() + case TLConstructor_CRC32_draftMessageEmpty: + t := m.To_DraftMessageEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputGeoPoint: - t := m.To_InputGeoPoint() + case TLConstructor_CRC32_draftMessage: + t := m.To_DraftMessage() return t.EncodeToLayer(layer) default: @@ -26023,15 +26955,15 @@ func (m *InputGeoPoint) EncodeToLayer(layer int) []byte { } } -func (m *InputGeoPoint) Decode(dbuf *DecodeBuf) error { +func (m *DraftMessage) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputGeoPointEmpty: - m2 := &TLInputGeoPointEmpty{Data2: &InputGeoPoint_Data{}} + case TLConstructor_CRC32_draftMessageEmpty: + m2 := &TLDraftMessageEmpty{Data2: &DraftMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputGeoPoint: - m2 := &TLInputGeoPoint{Data2: &InputGeoPoint_Data{}} + case TLConstructor_CRC32_draftMessage: + m2 := &TLDraftMessage{Data2: &DraftMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -26041,105 +26973,213 @@ func (m *InputGeoPoint) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputGeoPointEmpty#e4c123d6 = InputGeoPoint; -func (m *InputGeoPoint) To_InputGeoPointEmpty() *TLInputGeoPointEmpty { - return &TLInputGeoPointEmpty{ +// draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; +func (m *DraftMessage) To_DraftMessageEmpty() *TLDraftMessageEmpty { + return &TLDraftMessageEmpty{ Data2: m.Data2, } } -// inputGeoPoint#f3b7acc9 lat:double long:double = InputGeoPoint; -func (m *InputGeoPoint) To_InputGeoPoint() *TLInputGeoPoint { - return &TLInputGeoPoint{ +// draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector date:int = DraftMessage; +func (m *DraftMessage) To_DraftMessage() *TLDraftMessage { + return &TLDraftMessage{ Data2: m.Data2, } } -// inputGeoPointEmpty#e4c123d6 = InputGeoPoint; -func (m *TLInputGeoPointEmpty) To_InputGeoPoint() *InputGeoPoint { - return &InputGeoPoint{ - Constructor: TLConstructor_CRC32_inputGeoPointEmpty, +// draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; +func (m *TLDraftMessageEmpty) To_DraftMessage() *DraftMessage { + return &DraftMessage{ + Constructor: TLConstructor_CRC32_draftMessageEmpty, Data2: m.Data2, } } -func NewTLInputGeoPointEmpty() *TLInputGeoPointEmpty { - return &TLInputGeoPointEmpty{Data2: &InputGeoPoint_Data{}} +func (m *TLDraftMessageEmpty) SetDate(v int32) { m.Data2.Date = v } +func (m *TLDraftMessageEmpty) GetDate() int32 { return m.Data2.Date } + +func NewTLDraftMessageEmpty() *TLDraftMessageEmpty { + return &TLDraftMessageEmpty{Data2: &DraftMessage_Data{}} } -func (m *TLInputGeoPointEmpty) Encode() []byte { +func (m *TLDraftMessageEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputGeoPointEmpty)) + x.Int(int32(TLConstructor_CRC32_draftMessageEmpty)) + + // flags + var flags uint32 = 0 + if m.GetDate() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) + + if m.GetDate() != 0 { + x.Int(m.GetDate()) + } return x.buf } -func (m *TLInputGeoPointEmpty) EncodeToLayer(layer int) []byte { +func (m *TLDraftMessageEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputGeoPointEmpty)) + x.Int(int32(TLConstructor_CRC32_draftMessageEmpty)) + + // flags + var flags uint32 = 0 + if m.GetDate() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) + + if m.GetDate() != 0 { + x.Int(m.GetDate()) + } return x.buf } -func (m *TLInputGeoPointEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLDraftMessageEmpty) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetDate(dbuf.Int()) + } return dbuf.err } -// inputGeoPoint#f3b7acc9 lat:double long:double = InputGeoPoint; -func (m *TLInputGeoPoint) To_InputGeoPoint() *InputGeoPoint { - return &InputGeoPoint{ - Constructor: TLConstructor_CRC32_inputGeoPoint, +// draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector date:int = DraftMessage; +func (m *TLDraftMessage) To_DraftMessage() *DraftMessage { + return &DraftMessage{ + Constructor: TLConstructor_CRC32_draftMessage, Data2: m.Data2, } } -func (m *TLInputGeoPoint) SetLat(v float64) { m.Data2.Lat = v } -func (m *TLInputGeoPoint) GetLat() float64 { return m.Data2.Lat } +func (m *TLDraftMessage) SetNoWebpage(v bool) { m.Data2.NoWebpage = v } +func (m *TLDraftMessage) GetNoWebpage() bool { return m.Data2.NoWebpage } -func (m *TLInputGeoPoint) SetLong(v float64) { m.Data2.Long = v } -func (m *TLInputGeoPoint) GetLong() float64 { return m.Data2.Long } +func (m *TLDraftMessage) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } +func (m *TLDraftMessage) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } -func NewTLInputGeoPoint() *TLInputGeoPoint { - return &TLInputGeoPoint{Data2: &InputGeoPoint_Data{}} +func (m *TLDraftMessage) SetMessage(v string) { m.Data2.Message = v } +func (m *TLDraftMessage) GetMessage() string { return m.Data2.Message } + +func (m *TLDraftMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLDraftMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } + +func (m *TLDraftMessage) SetDate(v int32) { m.Data2.Date = v } +func (m *TLDraftMessage) GetDate() int32 { return m.Data2.Date } + +func NewTLDraftMessage() *TLDraftMessage { + return &TLDraftMessage{Data2: &DraftMessage_Data{}} } -func (m *TLInputGeoPoint) Encode() []byte { +func (m *TLDraftMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputGeoPoint)) + x.Int(int32(TLConstructor_CRC32_draftMessage)) - x.Double(m.GetLat()) - x.Double(m.GetLong()) + // flags + var flags uint32 = 0 + if m.GetNoWebpage() == true { + flags |= 1 << 1 + } + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 0 + } + if m.GetEntities() != nil { + flags |= 1 << 3 + } + x.UInt(flags) + + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + x.Int(m.GetDate()) return x.buf } -func (m *TLInputGeoPoint) EncodeToLayer(layer int) []byte { +func (m *TLDraftMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputGeoPoint)) + x.Int(int32(TLConstructor_CRC32_draftMessage)) - x.Double(m.GetLat()) - x.Double(m.GetLong()) + // flags + var flags uint32 = 0 + if m.GetNoWebpage() == true { + flags |= 1 << 1 + } + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 0 + } + if m.GetEntities() != nil { + flags |= 1 << 3 + } + x.UInt(flags) + + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + x.Int(m.GetDate()) return x.buf } -func (m *TLInputGeoPoint) Decode(dbuf *DecodeBuf) error { - m.SetLat(dbuf.Double()) - m.SetLong(dbuf.Double()) +func (m *TLDraftMessage) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetNoWebpage(true) + } + if (flags & (1 << 0)) != 0 { + m.SetReplyToMsgId(dbuf.Int()) + } + m.SetMessage(dbuf.String()) + if (flags & (1 << 3)) != 0 { + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*MessageEntity, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &MessageEntity{} + v5[i].Decode(dbuf) + } + m.SetEntities(v5) + + } + m.SetDate(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_AffectedHistory <-- -// + TL_MessagesAffectedHistory +// InputDialogPeer <-- +// + TL_InputDialogPeer // -func (m *Messages_AffectedHistory) Encode() []byte { +func (m *InputDialogPeer) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_affectedHistory: - t := m.To_MessagesAffectedHistory() + case TLConstructor_CRC32_inputDialogPeer: + t := m.To_InputDialogPeer() return t.Encode() default: @@ -26148,11 +27188,11 @@ func (m *Messages_AffectedHistory) Encode() []byte { } } -func (m *Messages_AffectedHistory) EncodeToLayer(layer int) []byte { +func (m *InputDialogPeer) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_affectedHistory: - t := m.To_MessagesAffectedHistory() + case TLConstructor_CRC32_inputDialogPeer: + t := m.To_InputDialogPeer() return t.EncodeToLayer(layer) default: @@ -26161,11 +27201,11 @@ func (m *Messages_AffectedHistory) EncodeToLayer(layer int) []byte { } } -func (m *Messages_AffectedHistory) Decode(dbuf *DecodeBuf) error { +func (m *InputDialogPeer) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_affectedHistory: - m2 := &TLMessagesAffectedHistory{Data2: &Messages_AffectedHistory_Data{}} + case TLConstructor_CRC32_inputDialogPeer: + m2 := &TLInputDialogPeer{Data2: &InputDialogPeer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -26175,77 +27215,67 @@ func (m *Messages_AffectedHistory) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory; -func (m *Messages_AffectedHistory) To_MessagesAffectedHistory() *TLMessagesAffectedHistory { - return &TLMessagesAffectedHistory{ +// inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer; +func (m *InputDialogPeer) To_InputDialogPeer() *TLInputDialogPeer { + return &TLInputDialogPeer{ Data2: m.Data2, } } -// messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory; -func (m *TLMessagesAffectedHistory) To_Messages_AffectedHistory() *Messages_AffectedHistory { - return &Messages_AffectedHistory{ - Constructor: TLConstructor_CRC32_messages_affectedHistory, +// inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer; +func (m *TLInputDialogPeer) To_InputDialogPeer() *InputDialogPeer { + return &InputDialogPeer{ + Constructor: TLConstructor_CRC32_inputDialogPeer, Data2: m.Data2, } } -func (m *TLMessagesAffectedHistory) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLMessagesAffectedHistory) GetPts() int32 { return m.Data2.Pts } - -func (m *TLMessagesAffectedHistory) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLMessagesAffectedHistory) GetPtsCount() int32 { return m.Data2.PtsCount } - -func (m *TLMessagesAffectedHistory) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLMessagesAffectedHistory) GetOffset() int32 { return m.Data2.Offset } +func (m *TLInputDialogPeer) SetPeer(v *InputPeer) { m.Data2.Peer = v } +func (m *TLInputDialogPeer) GetPeer() *InputPeer { return m.Data2.Peer } -func NewTLMessagesAffectedHistory() *TLMessagesAffectedHistory { - return &TLMessagesAffectedHistory{Data2: &Messages_AffectedHistory_Data{}} +func NewTLInputDialogPeer() *TLInputDialogPeer { + return &TLInputDialogPeer{Data2: &InputDialogPeer_Data{}} } -func (m *TLMessagesAffectedHistory) Encode() []byte { +func (m *TLInputDialogPeer) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_affectedHistory)) + x.Int(int32(TLConstructor_CRC32_inputDialogPeer)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) - x.Int(m.GetOffset()) + x.Bytes(m.GetPeer().Encode()) return x.buf } -func (m *TLMessagesAffectedHistory) EncodeToLayer(layer int) []byte { +func (m *TLInputDialogPeer) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_affectedHistory)) + x.Int(int32(TLConstructor_CRC32_inputDialogPeer)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) - x.Int(m.GetOffset()) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) return x.buf } -func (m *TLMessagesAffectedHistory) Decode(dbuf *DecodeBuf) error { - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) - m.SetOffset(dbuf.Int()) +func (m *TLInputDialogPeer) Decode(dbuf *DecodeBuf) error { + m1 := &InputPeer{} + m1.Decode(dbuf) + m.SetPeer(m1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_Stickers <-- -// + TL_MessagesStickersNotModified -// + TL_MessagesStickers +// Scheme <-- +// + TL_SchemeNotModified +// + TL_Scheme // -func (m *Messages_Stickers) Encode() []byte { +func (m *Scheme) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_stickersNotModified: - t := m.To_MessagesStickersNotModified() + case TLConstructor_CRC32_schemeNotModified: + t := m.To_SchemeNotModified() return t.Encode() - case TLConstructor_CRC32_messages_stickers: - t := m.To_MessagesStickers() + case TLConstructor_CRC32_scheme: + t := m.To_Scheme() return t.Encode() default: @@ -26254,14 +27284,14 @@ func (m *Messages_Stickers) Encode() []byte { } } -func (m *Messages_Stickers) EncodeToLayer(layer int) []byte { +func (m *Scheme) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_stickersNotModified: - t := m.To_MessagesStickersNotModified() + case TLConstructor_CRC32_schemeNotModified: + t := m.To_SchemeNotModified() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_stickers: - t := m.To_MessagesStickers() + case TLConstructor_CRC32_scheme: + t := m.To_Scheme() return t.EncodeToLayer(layer) default: @@ -26270,16 +27300,16 @@ func (m *Messages_Stickers) EncodeToLayer(layer int) []byte { } } -func (m *Messages_Stickers) Decode(dbuf *DecodeBuf) error { +func (m *Scheme) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_stickersNotModified: - m2 := &TLMessagesStickersNotModified{Data2: &Messages_Stickers_Data{}} + case TLConstructor_CRC32_schemeNotModified: + m2 := &TLSchemeNotModified{Data2: &Scheme_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_stickers: - m2 := &TLMessagesStickers{Data2: &Messages_Stickers_Data{}} - m2.Decode(dbuf) + case TLConstructor_CRC32_scheme: + m2 := &TLScheme{Data2: &Scheme_Data{}} + m2.Decode(dbuf) m.Data2 = m2.Data2 default: @@ -26288,152 +27318,157 @@ func (m *Messages_Stickers) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.stickersNotModified#f1749a22 = messages.Stickers; -func (m *Messages_Stickers) To_MessagesStickersNotModified() *TLMessagesStickersNotModified { - return &TLMessagesStickersNotModified{ +// schemeNotModified#263c9c58 = Scheme; +func (m *Scheme) To_SchemeNotModified() *TLSchemeNotModified { + return &TLSchemeNotModified{ Data2: m.Data2, } } -// messages.stickers#e4599bbd hash:int stickers:Vector = messages.Stickers; -func (m *Messages_Stickers) To_MessagesStickers() *TLMessagesStickers { - return &TLMessagesStickers{ +// scheme#4e6ef65e scheme_raw:string types:Vector methods:Vector version:int = Scheme; +func (m *Scheme) To_Scheme() *TLScheme { + return &TLScheme{ Data2: m.Data2, } } -// messages.stickersNotModified#f1749a22 = messages.Stickers; -func (m *TLMessagesStickersNotModified) To_Messages_Stickers() *Messages_Stickers { - return &Messages_Stickers{ - Constructor: TLConstructor_CRC32_messages_stickersNotModified, +// schemeNotModified#263c9c58 = Scheme; +func (m *TLSchemeNotModified) To_Scheme() *Scheme { + return &Scheme{ + Constructor: TLConstructor_CRC32_schemeNotModified, Data2: m.Data2, } } -func NewTLMessagesStickersNotModified() *TLMessagesStickersNotModified { - return &TLMessagesStickersNotModified{Data2: &Messages_Stickers_Data{}} +func NewTLSchemeNotModified() *TLSchemeNotModified { + return &TLSchemeNotModified{Data2: &Scheme_Data{}} } -func (m *TLMessagesStickersNotModified) Encode() []byte { +func (m *TLSchemeNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickersNotModified)) + x.Int(int32(TLConstructor_CRC32_schemeNotModified)) return x.buf } -func (m *TLMessagesStickersNotModified) EncodeToLayer(layer int) []byte { +func (m *TLSchemeNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickersNotModified)) + x.Int(int32(TLConstructor_CRC32_schemeNotModified)) return x.buf } -func (m *TLMessagesStickersNotModified) Decode(dbuf *DecodeBuf) error { +func (m *TLSchemeNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.stickers#e4599bbd hash:int stickers:Vector = messages.Stickers; -func (m *TLMessagesStickers) To_Messages_Stickers() *Messages_Stickers { - return &Messages_Stickers{ - Constructor: TLConstructor_CRC32_messages_stickers, +// scheme#4e6ef65e scheme_raw:string types:Vector methods:Vector version:int = Scheme; +func (m *TLScheme) To_Scheme() *Scheme { + return &Scheme{ + Constructor: TLConstructor_CRC32_scheme, Data2: m.Data2, } } -func (m *TLMessagesStickers) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLMessagesStickers) GetHash() int32 { return m.Data2.Hash } +func (m *TLScheme) SetSchemeRaw(v string) { m.Data2.SchemeRaw = v } +func (m *TLScheme) GetSchemeRaw() string { return m.Data2.SchemeRaw } -func (m *TLMessagesStickers) SetStickers(v []*Document) { m.Data2.Stickers = v } -func (m *TLMessagesStickers) GetStickers() []*Document { return m.Data2.Stickers } +func (m *TLScheme) SetTypes(v []*SchemeType) { m.Data2.Types = v } +func (m *TLScheme) GetTypes() []*SchemeType { return m.Data2.Types } -func NewTLMessagesStickers() *TLMessagesStickers { - return &TLMessagesStickers{Data2: &Messages_Stickers_Data{}} +func (m *TLScheme) SetMethods(v []*SchemeMethod) { m.Data2.Methods = v } +func (m *TLScheme) GetMethods() []*SchemeMethod { return m.Data2.Methods } + +func (m *TLScheme) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLScheme) GetVersion() int32 { return m.Data2.Version } + +func NewTLScheme() *TLScheme { + return &TLScheme{Data2: &Scheme_Data{}} } -func (m *TLMessagesStickers) Encode() []byte { +func (m *TLScheme) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickers)) + x.Int(int32(TLConstructor_CRC32_scheme)) - x.Int(m.GetHash()) + x.String(m.GetSchemeRaw()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { + x.Int(int32(len(m.GetTypes()))) + for _, v := range m.GetTypes() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMethods()))) + for _, v := range m.GetMethods() { x.buf = append(x.buf, (*v).Encode()...) } + x.Int(m.GetVersion()) return x.buf } -func (m *TLMessagesStickers) EncodeToLayer(layer int) []byte { +func (m *TLScheme) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickers)) + x.Int(int32(TLConstructor_CRC32_scheme)) - x.Int(m.GetHash()) + x.String(m.GetSchemeRaw()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { + x.Int(int32(len(m.GetTypes()))) + for _, v := range m.GetTypes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMethods()))) + for _, v := range m.GetMethods() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } + x.Int(m.GetVersion()) return x.buf } -func (m *TLMessagesStickers) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Int()) +func (m *TLScheme) Decode(dbuf *DecodeBuf) error { + m.SetSchemeRaw(dbuf.String()) c2 := dbuf.Int() if c2 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } l2 := dbuf.Int() - v2 := make([]*Document, l2) + v2 := make([]*SchemeType, l2) for i := int32(0); i < l2; i++ { - v2[i] = &Document{} + v2[i] = &SchemeType{} v2[i].Decode(dbuf) } - m.SetStickers(v2) + m.SetTypes(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*SchemeMethod, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &SchemeMethod{} + v3[i].Decode(dbuf) + } + m.SetMethods(v3) + + m.SetVersion(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// KeyboardButton <-- -// + TL_KeyboardButton -// + TL_KeyboardButtonUrl -// + TL_KeyboardButtonCallback -// + TL_KeyboardButtonRequestPhone -// + TL_KeyboardButtonRequestGeoLocation -// + TL_KeyboardButtonSwitchInline -// + TL_KeyboardButtonGame -// + TL_KeyboardButtonBuy +// Null <-- +// + TL_Null // -func (m *KeyboardButton) Encode() []byte { +func (m *Null) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_keyboardButton: - t := m.To_KeyboardButton() - return t.Encode() - case TLConstructor_CRC32_keyboardButtonUrl: - t := m.To_KeyboardButtonUrl() - return t.Encode() - case TLConstructor_CRC32_keyboardButtonCallback: - t := m.To_KeyboardButtonCallback() - return t.Encode() - case TLConstructor_CRC32_keyboardButtonRequestPhone: - t := m.To_KeyboardButtonRequestPhone() - return t.Encode() - case TLConstructor_CRC32_keyboardButtonRequestGeoLocation: - t := m.To_KeyboardButtonRequestGeoLocation() - return t.Encode() - case TLConstructor_CRC32_keyboardButtonSwitchInline: - t := m.To_KeyboardButtonSwitchInline() - return t.Encode() - case TLConstructor_CRC32_keyboardButtonGame: - t := m.To_KeyboardButtonGame() - return t.Encode() - case TLConstructor_CRC32_keyboardButtonBuy: - t := m.To_KeyboardButtonBuy() + case TLConstructor_CRC32_null: + t := m.To_Null() return t.Encode() default: @@ -26442,32 +27477,11 @@ func (m *KeyboardButton) Encode() []byte { } } -func (m *KeyboardButton) EncodeToLayer(layer int) []byte { +func (m *Null) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_keyboardButton: - t := m.To_KeyboardButton() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_keyboardButtonUrl: - t := m.To_KeyboardButtonUrl() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_keyboardButtonCallback: - t := m.To_KeyboardButtonCallback() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_keyboardButtonRequestPhone: - t := m.To_KeyboardButtonRequestPhone() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_keyboardButtonRequestGeoLocation: - t := m.To_KeyboardButtonRequestGeoLocation() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_keyboardButtonSwitchInline: - t := m.To_KeyboardButtonSwitchInline() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_keyboardButtonGame: - t := m.To_KeyboardButtonGame() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_keyboardButtonBuy: - t := m.To_KeyboardButtonBuy() + case TLConstructor_CRC32_null: + t := m.To_Null() return t.EncodeToLayer(layer) default: @@ -26476,39 +27490,11 @@ func (m *KeyboardButton) EncodeToLayer(layer int) []byte { } } -func (m *KeyboardButton) Decode(dbuf *DecodeBuf) error { +func (m *Null) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_keyboardButton: - m2 := &TLKeyboardButton{Data2: &KeyboardButton_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_keyboardButtonUrl: - m2 := &TLKeyboardButtonUrl{Data2: &KeyboardButton_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_keyboardButtonCallback: - m2 := &TLKeyboardButtonCallback{Data2: &KeyboardButton_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_keyboardButtonRequestPhone: - m2 := &TLKeyboardButtonRequestPhone{Data2: &KeyboardButton_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_keyboardButtonRequestGeoLocation: - m2 := &TLKeyboardButtonRequestGeoLocation{Data2: &KeyboardButton_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_keyboardButtonSwitchInline: - m2 := &TLKeyboardButtonSwitchInline{Data2: &KeyboardButton_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_keyboardButtonGame: - m2 := &TLKeyboardButtonGame{Data2: &KeyboardButton_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_keyboardButtonBuy: - m2 := &TLKeyboardButtonBuy{Data2: &KeyboardButton_Data{}} + case TLConstructor_CRC32_null: + m2 := &TLNull{Data2: &Null_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -26518,423 +27504,656 @@ func (m *KeyboardButton) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// keyboardButton#a2fa4880 text:string = KeyboardButton; -func (m *KeyboardButton) To_KeyboardButton() *TLKeyboardButton { - return &TLKeyboardButton{ - Data2: m.Data2, - } -} - -// keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton; -func (m *KeyboardButton) To_KeyboardButtonUrl() *TLKeyboardButtonUrl { - return &TLKeyboardButtonUrl{ - Data2: m.Data2, - } -} - -// keyboardButtonCallback#683a5e46 text:string data:bytes = KeyboardButton; -func (m *KeyboardButton) To_KeyboardButtonCallback() *TLKeyboardButtonCallback { - return &TLKeyboardButtonCallback{ - Data2: m.Data2, - } -} - -// keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton; -func (m *KeyboardButton) To_KeyboardButtonRequestPhone() *TLKeyboardButtonRequestPhone { - return &TLKeyboardButtonRequestPhone{ - Data2: m.Data2, - } -} - -// keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton; -func (m *KeyboardButton) To_KeyboardButtonRequestGeoLocation() *TLKeyboardButtonRequestGeoLocation { - return &TLKeyboardButtonRequestGeoLocation{ - Data2: m.Data2, - } -} - -// keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton; -func (m *KeyboardButton) To_KeyboardButtonSwitchInline() *TLKeyboardButtonSwitchInline { - return &TLKeyboardButtonSwitchInline{ - Data2: m.Data2, - } -} - -// keyboardButtonGame#50f41ccf text:string = KeyboardButton; -func (m *KeyboardButton) To_KeyboardButtonGame() *TLKeyboardButtonGame { - return &TLKeyboardButtonGame{ - Data2: m.Data2, - } -} - -// keyboardButtonBuy#afd93fbb text:string = KeyboardButton; -func (m *KeyboardButton) To_KeyboardButtonBuy() *TLKeyboardButtonBuy { - return &TLKeyboardButtonBuy{ +// null#56730bcc = Null; +func (m *Null) To_Null() *TLNull { + return &TLNull{ Data2: m.Data2, } } -// keyboardButton#a2fa4880 text:string = KeyboardButton; -func (m *TLKeyboardButton) To_KeyboardButton() *KeyboardButton { - return &KeyboardButton{ - Constructor: TLConstructor_CRC32_keyboardButton, +// null#56730bcc = Null; +func (m *TLNull) To_Null() *Null { + return &Null{ + Constructor: TLConstructor_CRC32_null, Data2: m.Data2, } } -func (m *TLKeyboardButton) SetText(v string) { m.Data2.Text = v } -func (m *TLKeyboardButton) GetText() string { return m.Data2.Text } - -func NewTLKeyboardButton() *TLKeyboardButton { - return &TLKeyboardButton{Data2: &KeyboardButton_Data{}} +func NewTLNull() *TLNull { + return &TLNull{Data2: &Null_Data{}} } -func (m *TLKeyboardButton) Encode() []byte { +func (m *TLNull) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButton)) - - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_null)) return x.buf } -func (m *TLKeyboardButton) EncodeToLayer(layer int) []byte { +func (m *TLNull) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButton)) - - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_null)) return x.buf } -func (m *TLKeyboardButton) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) +func (m *TLNull) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton; -func (m *TLKeyboardButtonUrl) To_KeyboardButton() *KeyboardButton { - return &KeyboardButton{ - Constructor: TLConstructor_CRC32_keyboardButtonUrl, - Data2: m.Data2, - } -} - -func (m *TLKeyboardButtonUrl) SetText(v string) { m.Data2.Text = v } -func (m *TLKeyboardButtonUrl) GetText() string { return m.Data2.Text } - -func (m *TLKeyboardButtonUrl) SetUrl(v string) { m.Data2.Url = v } -func (m *TLKeyboardButtonUrl) GetUrl() string { return m.Data2.Url } - -func NewTLKeyboardButtonUrl() *TLKeyboardButtonUrl { - return &TLKeyboardButtonUrl{Data2: &KeyboardButton_Data{}} -} - -func (m *TLKeyboardButtonUrl) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonUrl)) +/////////////////////////////////////////////////////////////////////////////// +// UserFull <-- +// + TL_UserFull +// - x.String(m.GetText()) - x.String(m.GetUrl()) +func (m *UserFull) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_userFull: + t := m.To_UserFull() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLKeyboardButtonUrl) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonUrl)) - - x.String(m.GetText()) - x.String(m.GetUrl()) +func (m *UserFull) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_userFull: + t := m.To_UserFull() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLKeyboardButtonUrl) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) - m.SetUrl(dbuf.String()) +func (m *UserFull) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_userFull: + m2 := &TLUserFull{Data2: &UserFull_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// keyboardButtonCallback#683a5e46 text:string data:bytes = KeyboardButton; -func (m *TLKeyboardButtonCallback) To_KeyboardButton() *KeyboardButton { - return &KeyboardButton{ - Constructor: TLConstructor_CRC32_keyboardButtonCallback, - Data2: m.Data2, +// userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; +func (m *UserFull) To_UserFull() *TLUserFull { + return &TLUserFull{ + Data2: m.Data2, } } -func (m *TLKeyboardButtonCallback) SetText(v string) { m.Data2.Text = v } -func (m *TLKeyboardButtonCallback) GetText() string { return m.Data2.Text } - -func (m *TLKeyboardButtonCallback) SetData(v []byte) { m.Data2.Data = v } -func (m *TLKeyboardButtonCallback) GetData() []byte { return m.Data2.Data } - -func NewTLKeyboardButtonCallback() *TLKeyboardButtonCallback { - return &TLKeyboardButtonCallback{Data2: &KeyboardButton_Data{}} +// userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; +func (m *TLUserFull) To_UserFull() *UserFull { + return &UserFull{ + Constructor: TLConstructor_CRC32_userFull, + Data2: m.Data2, + } } -func (m *TLKeyboardButtonCallback) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonCallback)) +func (m *TLUserFull) SetBlocked(v bool) { m.Data2.Blocked = v } +func (m *TLUserFull) GetBlocked() bool { return m.Data2.Blocked } - x.String(m.GetText()) - x.StringBytes(m.GetData()) +func (m *TLUserFull) SetPhoneCallsAvailable(v bool) { m.Data2.PhoneCallsAvailable = v } +func (m *TLUserFull) GetPhoneCallsAvailable() bool { return m.Data2.PhoneCallsAvailable } - return x.buf -} +func (m *TLUserFull) SetPhoneCallsPrivate(v bool) { m.Data2.PhoneCallsPrivate = v } +func (m *TLUserFull) GetPhoneCallsPrivate() bool { return m.Data2.PhoneCallsPrivate } -func (m *TLKeyboardButtonCallback) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonCallback)) +func (m *TLUserFull) SetUser(v *User) { m.Data2.User = v } +func (m *TLUserFull) GetUser() *User { return m.Data2.User } - x.String(m.GetText()) - x.StringBytes(m.GetData()) +func (m *TLUserFull) SetAbout(v string) { m.Data2.About = v } +func (m *TLUserFull) GetAbout() string { return m.Data2.About } - return x.buf -} +func (m *TLUserFull) SetLink(v *Contacts_Link) { m.Data2.Link = v } +func (m *TLUserFull) GetLink() *Contacts_Link { return m.Data2.Link } -func (m *TLKeyboardButtonCallback) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) - m.SetData(dbuf.StringBytes()) +func (m *TLUserFull) SetProfilePhoto(v *Photo) { m.Data2.ProfilePhoto = v } +func (m *TLUserFull) GetProfilePhoto() *Photo { return m.Data2.ProfilePhoto } - return dbuf.err -} +func (m *TLUserFull) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } +func (m *TLUserFull) GetNotifySettings() *PeerNotifySettings { return m.Data2.NotifySettings } -// keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton; -func (m *TLKeyboardButtonRequestPhone) To_KeyboardButton() *KeyboardButton { - return &KeyboardButton{ - Constructor: TLConstructor_CRC32_keyboardButtonRequestPhone, - Data2: m.Data2, - } -} +func (m *TLUserFull) SetBotInfo(v *BotInfo) { m.Data2.BotInfo = v } +func (m *TLUserFull) GetBotInfo() *BotInfo { return m.Data2.BotInfo } -func (m *TLKeyboardButtonRequestPhone) SetText(v string) { m.Data2.Text = v } -func (m *TLKeyboardButtonRequestPhone) GetText() string { return m.Data2.Text } +func (m *TLUserFull) SetCommonChatsCount(v int32) { m.Data2.CommonChatsCount = v } +func (m *TLUserFull) GetCommonChatsCount() int32 { return m.Data2.CommonChatsCount } -func NewTLKeyboardButtonRequestPhone() *TLKeyboardButtonRequestPhone { - return &TLKeyboardButtonRequestPhone{Data2: &KeyboardButton_Data{}} +func NewTLUserFull() *TLUserFull { + return &TLUserFull{Data2: &UserFull_Data{}} } -func (m *TLKeyboardButtonRequestPhone) Encode() []byte { +func (m *TLUserFull) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonRequestPhone)) - - x.String(m.GetText()) - - return x.buf -} + x.Int(int32(TLConstructor_CRC32_userFull)) -func (m *TLKeyboardButtonRequestPhone) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonRequestPhone)) + // flags + var flags uint32 = 0 + if m.GetBlocked() == true { + flags |= 1 << 0 + } + if m.GetPhoneCallsAvailable() == true { + flags |= 1 << 4 + } + if m.GetPhoneCallsPrivate() == true { + flags |= 1 << 5 + } + if m.GetAbout() != "" { + flags |= 1 << 1 + } + if m.GetProfilePhoto() != nil { + flags |= 1 << 2 + } + if m.GetBotInfo() != nil { + flags |= 1 << 3 + } + x.UInt(flags) - x.String(m.GetText()) + x.Bytes(m.GetUser().Encode()) + if m.GetAbout() != "" { + x.String(m.GetAbout()) + } + x.Bytes(m.GetLink().Encode()) + if m.GetProfilePhoto() != nil { + x.Bytes(m.GetProfilePhoto().Encode()) + } + x.Bytes(m.GetNotifySettings().Encode()) + if m.GetBotInfo() != nil { + x.Bytes(m.GetBotInfo().Encode()) + } + x.Int(m.GetCommonChatsCount()) return x.buf } -func (m *TLKeyboardButtonRequestPhone) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) - - return dbuf.err -} +func (m *TLUserFull) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_userFull)) -// keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton; -func (m *TLKeyboardButtonRequestGeoLocation) To_KeyboardButton() *KeyboardButton { - return &KeyboardButton{ - Constructor: TLConstructor_CRC32_keyboardButtonRequestGeoLocation, - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetBlocked() == true { + flags |= 1 << 0 } -} - -func (m *TLKeyboardButtonRequestGeoLocation) SetText(v string) { m.Data2.Text = v } -func (m *TLKeyboardButtonRequestGeoLocation) GetText() string { return m.Data2.Text } + if m.GetPhoneCallsAvailable() == true { + flags |= 1 << 4 + } + if m.GetPhoneCallsPrivate() == true { + flags |= 1 << 5 + } + if m.GetAbout() != "" { + flags |= 1 << 1 + } + if m.GetProfilePhoto() != nil { + flags |= 1 << 2 + } + if m.GetBotInfo() != nil { + flags |= 1 << 3 + } + x.UInt(flags) -func NewTLKeyboardButtonRequestGeoLocation() *TLKeyboardButtonRequestGeoLocation { - return &TLKeyboardButtonRequestGeoLocation{Data2: &KeyboardButton_Data{}} + x.Bytes(m.GetUser().EncodeToLayer(layer)) + if m.GetAbout() != "" { + x.String(m.GetAbout()) + } + x.Bytes(m.GetLink().EncodeToLayer(layer)) + if m.GetProfilePhoto() != nil { + x.Bytes(m.GetProfilePhoto().EncodeToLayer(layer)) + } + x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) + if m.GetBotInfo() != nil { + x.Bytes(m.GetBotInfo().EncodeToLayer(layer)) + } + x.Int(m.GetCommonChatsCount()) + + return x.buf } -func (m *TLKeyboardButtonRequestGeoLocation) Encode() []byte { +func (m *TLUserFull) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetBlocked(true) + } + if (flags & (1 << 4)) != 0 { + m.SetPhoneCallsAvailable(true) + } + if (flags & (1 << 5)) != 0 { + m.SetPhoneCallsPrivate(true) + } + m5 := &User{} + m5.Decode(dbuf) + m.SetUser(m5) + if (flags & (1 << 1)) != 0 { + m.SetAbout(dbuf.String()) + } + m7 := &Contacts_Link{} + m7.Decode(dbuf) + m.SetLink(m7) + if (flags & (1 << 2)) != 0 { + m8 := &Photo{} + m8.Decode(dbuf) + m.SetProfilePhoto(m8) + } + m9 := &PeerNotifySettings{} + m9.Decode(dbuf) + m.SetNotifySettings(m9) + if (flags & (1 << 3)) != 0 { + m10 := &BotInfo{} + m10.Decode(dbuf) + m.SetBotInfo(m10) + } + m.SetCommonChatsCount(dbuf.Int()) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// ReplyMarkup <-- +// + TL_ReplyKeyboardHide +// + TL_ReplyKeyboardForceReply +// + TL_ReplyKeyboardMarkup +// + TL_ReplyInlineMarkup +// + +func (m *ReplyMarkup) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_replyKeyboardHide: + t := m.To_ReplyKeyboardHide() + return t.Encode() + case TLConstructor_CRC32_replyKeyboardForceReply: + t := m.To_ReplyKeyboardForceReply() + return t.Encode() + case TLConstructor_CRC32_replyKeyboardMarkup: + t := m.To_ReplyKeyboardMarkup() + return t.Encode() + case TLConstructor_CRC32_replyInlineMarkup: + t := m.To_ReplyInlineMarkup() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *ReplyMarkup) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_replyKeyboardHide: + t := m.To_ReplyKeyboardHide() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_replyKeyboardForceReply: + t := m.To_ReplyKeyboardForceReply() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_replyKeyboardMarkup: + t := m.To_ReplyKeyboardMarkup() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_replyInlineMarkup: + t := m.To_ReplyInlineMarkup() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *ReplyMarkup) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_replyKeyboardHide: + m2 := &TLReplyKeyboardHide{Data2: &ReplyMarkup_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_replyKeyboardForceReply: + m2 := &TLReplyKeyboardForceReply{Data2: &ReplyMarkup_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_replyKeyboardMarkup: + m2 := &TLReplyKeyboardMarkup{Data2: &ReplyMarkup_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_replyInlineMarkup: + m2 := &TLReplyInlineMarkup{Data2: &ReplyMarkup_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; +func (m *ReplyMarkup) To_ReplyKeyboardHide() *TLReplyKeyboardHide { + return &TLReplyKeyboardHide{ + Data2: m.Data2, + } +} + +// replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup; +func (m *ReplyMarkup) To_ReplyKeyboardForceReply() *TLReplyKeyboardForceReply { + return &TLReplyKeyboardForceReply{ + Data2: m.Data2, + } +} + +// replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector = ReplyMarkup; +func (m *ReplyMarkup) To_ReplyKeyboardMarkup() *TLReplyKeyboardMarkup { + return &TLReplyKeyboardMarkup{ + Data2: m.Data2, + } +} + +// replyInlineMarkup#48a30254 rows:Vector = ReplyMarkup; +func (m *ReplyMarkup) To_ReplyInlineMarkup() *TLReplyInlineMarkup { + return &TLReplyInlineMarkup{ + Data2: m.Data2, + } +} + +// replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; +func (m *TLReplyKeyboardHide) To_ReplyMarkup() *ReplyMarkup { + return &ReplyMarkup{ + Constructor: TLConstructor_CRC32_replyKeyboardHide, + Data2: m.Data2, + } +} + +func (m *TLReplyKeyboardHide) SetSelective(v bool) { m.Data2.Selective = v } +func (m *TLReplyKeyboardHide) GetSelective() bool { return m.Data2.Selective } + +func NewTLReplyKeyboardHide() *TLReplyKeyboardHide { + return &TLReplyKeyboardHide{Data2: &ReplyMarkup_Data{}} +} + +func (m *TLReplyKeyboardHide) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonRequestGeoLocation)) + x.Int(int32(TLConstructor_CRC32_replyKeyboardHide)) - x.String(m.GetText()) + // flags + var flags uint32 = 0 + if m.GetSelective() == true { + flags |= 1 << 2 + } + x.UInt(flags) return x.buf } -func (m *TLKeyboardButtonRequestGeoLocation) EncodeToLayer(layer int) []byte { +func (m *TLReplyKeyboardHide) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonRequestGeoLocation)) + x.Int(int32(TLConstructor_CRC32_replyKeyboardHide)) - x.String(m.GetText()) + // flags + var flags uint32 = 0 + if m.GetSelective() == true { + flags |= 1 << 2 + } + x.UInt(flags) return x.buf } -func (m *TLKeyboardButtonRequestGeoLocation) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) +func (m *TLReplyKeyboardHide) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 2)) != 0 { + m.SetSelective(true) + } return dbuf.err } -// keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton; -func (m *TLKeyboardButtonSwitchInline) To_KeyboardButton() *KeyboardButton { - return &KeyboardButton{ - Constructor: TLConstructor_CRC32_keyboardButtonSwitchInline, +// replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup; +func (m *TLReplyKeyboardForceReply) To_ReplyMarkup() *ReplyMarkup { + return &ReplyMarkup{ + Constructor: TLConstructor_CRC32_replyKeyboardForceReply, Data2: m.Data2, } } -func (m *TLKeyboardButtonSwitchInline) SetSamePeer(v bool) { m.Data2.SamePeer = v } -func (m *TLKeyboardButtonSwitchInline) GetSamePeer() bool { return m.Data2.SamePeer } - -func (m *TLKeyboardButtonSwitchInline) SetText(v string) { m.Data2.Text = v } -func (m *TLKeyboardButtonSwitchInline) GetText() string { return m.Data2.Text } +func (m *TLReplyKeyboardForceReply) SetSingleUse(v bool) { m.Data2.SingleUse = v } +func (m *TLReplyKeyboardForceReply) GetSingleUse() bool { return m.Data2.SingleUse } -func (m *TLKeyboardButtonSwitchInline) SetQuery(v string) { m.Data2.Query = v } -func (m *TLKeyboardButtonSwitchInline) GetQuery() string { return m.Data2.Query } +func (m *TLReplyKeyboardForceReply) SetSelective(v bool) { m.Data2.Selective = v } +func (m *TLReplyKeyboardForceReply) GetSelective() bool { return m.Data2.Selective } -func NewTLKeyboardButtonSwitchInline() *TLKeyboardButtonSwitchInline { - return &TLKeyboardButtonSwitchInline{Data2: &KeyboardButton_Data{}} +func NewTLReplyKeyboardForceReply() *TLReplyKeyboardForceReply { + return &TLReplyKeyboardForceReply{Data2: &ReplyMarkup_Data{}} } -func (m *TLKeyboardButtonSwitchInline) Encode() []byte { +func (m *TLReplyKeyboardForceReply) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonSwitchInline)) + x.Int(int32(TLConstructor_CRC32_replyKeyboardForceReply)) // flags var flags uint32 = 0 - if m.GetSamePeer() == true { - flags |= 1 << 0 + if m.GetSingleUse() == true { + flags |= 1 << 1 + } + if m.GetSelective() == true { + flags |= 1 << 2 } x.UInt(flags) - x.String(m.GetText()) - x.String(m.GetQuery()) - return x.buf } -func (m *TLKeyboardButtonSwitchInline) EncodeToLayer(layer int) []byte { +func (m *TLReplyKeyboardForceReply) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonSwitchInline)) + x.Int(int32(TLConstructor_CRC32_replyKeyboardForceReply)) // flags var flags uint32 = 0 - if m.GetSamePeer() == true { - flags |= 1 << 0 + if m.GetSingleUse() == true { + flags |= 1 << 1 + } + if m.GetSelective() == true { + flags |= 1 << 2 } x.UInt(flags) - x.String(m.GetText()) - x.String(m.GetQuery()) - return x.buf } -func (m *TLKeyboardButtonSwitchInline) Decode(dbuf *DecodeBuf) error { +func (m *TLReplyKeyboardForceReply) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - if (flags & (1 << 0)) != 0 { - m.SetSamePeer(true) + if (flags & (1 << 1)) != 0 { + m.SetSingleUse(true) + } + if (flags & (1 << 2)) != 0 { + m.SetSelective(true) } - m.SetText(dbuf.String()) - m.SetQuery(dbuf.String()) return dbuf.err } -// keyboardButtonGame#50f41ccf text:string = KeyboardButton; -func (m *TLKeyboardButtonGame) To_KeyboardButton() *KeyboardButton { - return &KeyboardButton{ - Constructor: TLConstructor_CRC32_keyboardButtonGame, +// replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector = ReplyMarkup; +func (m *TLReplyKeyboardMarkup) To_ReplyMarkup() *ReplyMarkup { + return &ReplyMarkup{ + Constructor: TLConstructor_CRC32_replyKeyboardMarkup, Data2: m.Data2, } } -func (m *TLKeyboardButtonGame) SetText(v string) { m.Data2.Text = v } -func (m *TLKeyboardButtonGame) GetText() string { return m.Data2.Text } +func (m *TLReplyKeyboardMarkup) SetResize(v bool) { m.Data2.Resize = v } +func (m *TLReplyKeyboardMarkup) GetResize() bool { return m.Data2.Resize } -func NewTLKeyboardButtonGame() *TLKeyboardButtonGame { - return &TLKeyboardButtonGame{Data2: &KeyboardButton_Data{}} +func (m *TLReplyKeyboardMarkup) SetSingleUse(v bool) { m.Data2.SingleUse = v } +func (m *TLReplyKeyboardMarkup) GetSingleUse() bool { return m.Data2.SingleUse } + +func (m *TLReplyKeyboardMarkup) SetSelective(v bool) { m.Data2.Selective = v } +func (m *TLReplyKeyboardMarkup) GetSelective() bool { return m.Data2.Selective } + +func (m *TLReplyKeyboardMarkup) SetRows(v []*KeyboardButtonRow) { m.Data2.Rows = v } +func (m *TLReplyKeyboardMarkup) GetRows() []*KeyboardButtonRow { return m.Data2.Rows } + +func NewTLReplyKeyboardMarkup() *TLReplyKeyboardMarkup { + return &TLReplyKeyboardMarkup{Data2: &ReplyMarkup_Data{}} } -func (m *TLKeyboardButtonGame) Encode() []byte { +func (m *TLReplyKeyboardMarkup) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonGame)) + x.Int(int32(TLConstructor_CRC32_replyKeyboardMarkup)) - x.String(m.GetText()) + // flags + var flags uint32 = 0 + if m.GetResize() == true { + flags |= 1 << 0 + } + if m.GetSingleUse() == true { + flags |= 1 << 1 + } + if m.GetSelective() == true { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRows()))) + for _, v := range m.GetRows() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLKeyboardButtonGame) EncodeToLayer(layer int) []byte { +func (m *TLReplyKeyboardMarkup) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonGame)) + x.Int(int32(TLConstructor_CRC32_replyKeyboardMarkup)) - x.String(m.GetText()) + // flags + var flags uint32 = 0 + if m.GetResize() == true { + flags |= 1 << 0 + } + if m.GetSingleUse() == true { + flags |= 1 << 1 + } + if m.GetSelective() == true { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRows()))) + for _, v := range m.GetRows() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLKeyboardButtonGame) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) +func (m *TLReplyKeyboardMarkup) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetResize(true) + } + if (flags & (1 << 1)) != 0 { + m.SetSingleUse(true) + } + if (flags & (1 << 2)) != 0 { + m.SetSelective(true) + } + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*KeyboardButtonRow, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &KeyboardButtonRow{} + v5[i].Decode(dbuf) + } + m.SetRows(v5) return dbuf.err } -// keyboardButtonBuy#afd93fbb text:string = KeyboardButton; -func (m *TLKeyboardButtonBuy) To_KeyboardButton() *KeyboardButton { - return &KeyboardButton{ - Constructor: TLConstructor_CRC32_keyboardButtonBuy, +// replyInlineMarkup#48a30254 rows:Vector = ReplyMarkup; +func (m *TLReplyInlineMarkup) To_ReplyMarkup() *ReplyMarkup { + return &ReplyMarkup{ + Constructor: TLConstructor_CRC32_replyInlineMarkup, Data2: m.Data2, } } -func (m *TLKeyboardButtonBuy) SetText(v string) { m.Data2.Text = v } -func (m *TLKeyboardButtonBuy) GetText() string { return m.Data2.Text } +func (m *TLReplyInlineMarkup) SetRows(v []*KeyboardButtonRow) { m.Data2.Rows = v } +func (m *TLReplyInlineMarkup) GetRows() []*KeyboardButtonRow { return m.Data2.Rows } -func NewTLKeyboardButtonBuy() *TLKeyboardButtonBuy { - return &TLKeyboardButtonBuy{Data2: &KeyboardButton_Data{}} +func NewTLReplyInlineMarkup() *TLReplyInlineMarkup { + return &TLReplyInlineMarkup{Data2: &ReplyMarkup_Data{}} } -func (m *TLKeyboardButtonBuy) Encode() []byte { +func (m *TLReplyInlineMarkup) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonBuy)) + x.Int(int32(TLConstructor_CRC32_replyInlineMarkup)) - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRows()))) + for _, v := range m.GetRows() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLKeyboardButtonBuy) EncodeToLayer(layer int) []byte { +func (m *TLReplyInlineMarkup) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonBuy)) + x.Int(int32(TLConstructor_CRC32_replyInlineMarkup)) - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRows()))) + for _, v := range m.GetRows() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLKeyboardButtonBuy) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) +func (m *TLReplyInlineMarkup) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*KeyboardButtonRow, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &KeyboardButtonRow{} + v1[i].Decode(dbuf) + } + m.SetRows(v1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputPhoneCall <-- -// + TL_InputPhoneCall +// PaymentSavedCredentials <-- +// + TL_PaymentSavedCredentialsCard // -func (m *InputPhoneCall) Encode() []byte { +func (m *PaymentSavedCredentials) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputPhoneCall: - t := m.To_InputPhoneCall() + case TLConstructor_CRC32_paymentSavedCredentialsCard: + t := m.To_PaymentSavedCredentialsCard() return t.Encode() default: @@ -26943,11 +28162,11 @@ func (m *InputPhoneCall) Encode() []byte { } } -func (m *InputPhoneCall) EncodeToLayer(layer int) []byte { +func (m *PaymentSavedCredentials) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputPhoneCall: - t := m.To_InputPhoneCall() + case TLConstructor_CRC32_paymentSavedCredentialsCard: + t := m.To_PaymentSavedCredentialsCard() return t.EncodeToLayer(layer) default: @@ -26956,11 +28175,11 @@ func (m *InputPhoneCall) EncodeToLayer(layer int) []byte { } } -func (m *InputPhoneCall) Decode(dbuf *DecodeBuf) error { +func (m *PaymentSavedCredentials) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputPhoneCall: - m2 := &TLInputPhoneCall{Data2: &InputPhoneCall_Data{}} + case TLConstructor_CRC32_paymentSavedCredentialsCard: + m2 := &TLPaymentSavedCredentialsCard{Data2: &PaymentSavedCredentials_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -26970,123 +28189,83 @@ func (m *InputPhoneCall) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall; -func (m *InputPhoneCall) To_InputPhoneCall() *TLInputPhoneCall { - return &TLInputPhoneCall{ +// paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; +func (m *PaymentSavedCredentials) To_PaymentSavedCredentialsCard() *TLPaymentSavedCredentialsCard { + return &TLPaymentSavedCredentialsCard{ Data2: m.Data2, } } -// inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall; -func (m *TLInputPhoneCall) To_InputPhoneCall() *InputPhoneCall { - return &InputPhoneCall{ - Constructor: TLConstructor_CRC32_inputPhoneCall, +// paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; +func (m *TLPaymentSavedCredentialsCard) To_PaymentSavedCredentials() *PaymentSavedCredentials { + return &PaymentSavedCredentials{ + Constructor: TLConstructor_CRC32_paymentSavedCredentialsCard, Data2: m.Data2, } } -func (m *TLInputPhoneCall) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputPhoneCall) GetId() int64 { return m.Data2.Id } +func (m *TLPaymentSavedCredentialsCard) SetId(v string) { m.Data2.Id = v } +func (m *TLPaymentSavedCredentialsCard) GetId() string { return m.Data2.Id } -func (m *TLInputPhoneCall) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputPhoneCall) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLPaymentSavedCredentialsCard) SetTitle(v string) { m.Data2.Title = v } +func (m *TLPaymentSavedCredentialsCard) GetTitle() string { return m.Data2.Title } -func NewTLInputPhoneCall() *TLInputPhoneCall { - return &TLInputPhoneCall{Data2: &InputPhoneCall_Data{}} +func NewTLPaymentSavedCredentialsCard() *TLPaymentSavedCredentialsCard { + return &TLPaymentSavedCredentialsCard{Data2: &PaymentSavedCredentials_Data{}} } -func (m *TLInputPhoneCall) Encode() []byte { +func (m *TLPaymentSavedCredentialsCard) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhoneCall)) + x.Int(int32(TLConstructor_CRC32_paymentSavedCredentialsCard)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.String(m.GetId()) + x.String(m.GetTitle()) return x.buf } -func (m *TLInputPhoneCall) EncodeToLayer(layer int) []byte { +func (m *TLPaymentSavedCredentialsCard) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhoneCall)) + x.Int(int32(TLConstructor_CRC32_paymentSavedCredentialsCard)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.String(m.GetId()) + x.String(m.GetTitle()) return x.buf } -func (m *TLInputPhoneCall) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) +func (m *TLPaymentSavedCredentialsCard) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.String()) + m.SetTitle(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputMedia <-- -// + TL_InputMediaPhotoLayer46 -// + TL_InputMediaEmpty -// + TL_InputMediaUploadedPhoto -// + TL_InputMediaPhoto -// + TL_InputMediaGeoPoint -// + TL_InputMediaContact -// + TL_InputMediaUploadedDocument -// + TL_InputMediaDocument -// + TL_InputMediaVenue -// + TL_InputMediaGifExternal -// + TL_InputMediaPhotoExternal -// + TL_InputMediaDocumentExternal -// + TL_InputMediaGame -// + TL_InputMediaInvoice -// + TL_InputMediaGeoLive +// Chat <-- +// + TL_ChatEmpty +// + TL_Chat +// + TL_ChatForbidden +// + TL_Channel +// + TL_ChannelForbidden // -func (m *InputMedia) Encode() []byte { +func (m *Chat) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputMediaPhotoLayer46: - t := m.To_InputMediaPhotoLayer46() - return t.Encode() - case TLConstructor_CRC32_inputMediaEmpty: - t := m.To_InputMediaEmpty() - return t.Encode() - case TLConstructor_CRC32_inputMediaUploadedPhoto: - t := m.To_InputMediaUploadedPhoto() - return t.Encode() - case TLConstructor_CRC32_inputMediaPhoto: - t := m.To_InputMediaPhoto() - return t.Encode() - case TLConstructor_CRC32_inputMediaGeoPoint: - t := m.To_InputMediaGeoPoint() - return t.Encode() - case TLConstructor_CRC32_inputMediaContact: - t := m.To_InputMediaContact() - return t.Encode() - case TLConstructor_CRC32_inputMediaUploadedDocument: - t := m.To_InputMediaUploadedDocument() - return t.Encode() - case TLConstructor_CRC32_inputMediaDocument: - t := m.To_InputMediaDocument() - return t.Encode() - case TLConstructor_CRC32_inputMediaVenue: - t := m.To_InputMediaVenue() - return t.Encode() - case TLConstructor_CRC32_inputMediaGifExternal: - t := m.To_InputMediaGifExternal() - return t.Encode() - case TLConstructor_CRC32_inputMediaPhotoExternal: - t := m.To_InputMediaPhotoExternal() + case TLConstructor_CRC32_chatEmpty: + t := m.To_ChatEmpty() return t.Encode() - case TLConstructor_CRC32_inputMediaDocumentExternal: - t := m.To_InputMediaDocumentExternal() + case TLConstructor_CRC32_chat: + t := m.To_Chat() return t.Encode() - case TLConstructor_CRC32_inputMediaGame: - t := m.To_InputMediaGame() + case TLConstructor_CRC32_chatForbidden: + t := m.To_ChatForbidden() return t.Encode() - case TLConstructor_CRC32_inputMediaInvoice: - t := m.To_InputMediaInvoice() + case TLConstructor_CRC32_channel: + t := m.To_Channel() return t.Encode() - case TLConstructor_CRC32_inputMediaGeoLive: - t := m.To_InputMediaGeoLive() + case TLConstructor_CRC32_channelForbidden: + t := m.To_ChannelForbidden() return t.Encode() default: @@ -27095,53 +28274,23 @@ func (m *InputMedia) Encode() []byte { } } -func (m *InputMedia) EncodeToLayer(layer int) []byte { +func (m *Chat) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputMediaPhotoLayer46: - t := m.To_InputMediaPhotoLayer46() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaEmpty: - t := m.To_InputMediaEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaUploadedPhoto: - t := m.To_InputMediaUploadedPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaPhoto: - t := m.To_InputMediaPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaGeoPoint: - t := m.To_InputMediaGeoPoint() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaContact: - t := m.To_InputMediaContact() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaUploadedDocument: - t := m.To_InputMediaUploadedDocument() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaDocument: - t := m.To_InputMediaDocument() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaVenue: - t := m.To_InputMediaVenue() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaGifExternal: - t := m.To_InputMediaGifExternal() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaPhotoExternal: - t := m.To_InputMediaPhotoExternal() + case TLConstructor_CRC32_chatEmpty: + t := m.To_ChatEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaDocumentExternal: - t := m.To_InputMediaDocumentExternal() + case TLConstructor_CRC32_chat: + t := m.To_Chat() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaGame: - t := m.To_InputMediaGame() + case TLConstructor_CRC32_chatForbidden: + t := m.To_ChatForbidden() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaInvoice: - t := m.To_InputMediaInvoice() + case TLConstructor_CRC32_channel: + t := m.To_Channel() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMediaGeoLive: - t := m.To_InputMediaGeoLive() + case TLConstructor_CRC32_channelForbidden: + t := m.To_ChannelForbidden() return t.EncodeToLayer(layer) default: @@ -27150,67 +28299,27 @@ func (m *InputMedia) EncodeToLayer(layer int) []byte { } } -func (m *InputMedia) Decode(dbuf *DecodeBuf) error { +func (m *Chat) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputMediaPhotoLayer46: - m2 := &TLInputMediaPhotoLayer46{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaEmpty: - m2 := &TLInputMediaEmpty{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaUploadedPhoto: - m2 := &TLInputMediaUploadedPhoto{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaPhoto: - m2 := &TLInputMediaPhoto{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaGeoPoint: - m2 := &TLInputMediaGeoPoint{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaContact: - m2 := &TLInputMediaContact{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaUploadedDocument: - m2 := &TLInputMediaUploadedDocument{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaDocument: - m2 := &TLInputMediaDocument{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaVenue: - m2 := &TLInputMediaVenue{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaGifExternal: - m2 := &TLInputMediaGifExternal{Data2: &InputMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaPhotoExternal: - m2 := &TLInputMediaPhotoExternal{Data2: &InputMedia_Data{}} + case TLConstructor_CRC32_chatEmpty: + m2 := &TLChatEmpty{Data2: &Chat_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaDocumentExternal: - m2 := &TLInputMediaDocumentExternal{Data2: &InputMedia_Data{}} + case TLConstructor_CRC32_chat: + m2 := &TLChat{Data2: &Chat_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaGame: - m2 := &TLInputMediaGame{Data2: &InputMedia_Data{}} + case TLConstructor_CRC32_chatForbidden: + m2 := &TLChatForbidden{Data2: &Chat_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaInvoice: - m2 := &TLInputMediaInvoice{Data2: &InputMedia_Data{}} + case TLConstructor_CRC32_channel: + m2 := &TLChannel{Data2: &Chat_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMediaGeoLive: - m2 := &TLInputMediaGeoLive{Data2: &InputMedia_Data{}} + case TLConstructor_CRC32_channelForbidden: + m2 := &TLChannelForbidden{Data2: &Chat_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -27220,1167 +28329,1329 @@ func (m *InputMedia) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputMediaPhoto#e9bfb4f3 id:InputPhoto caption:string = InputMedia; -func (m *InputMedia) To_InputMediaPhotoLayer46() *TLInputMediaPhotoLayer46 { - return &TLInputMediaPhotoLayer46{ - Data2: m.Data2, - } -} - -// inputMediaEmpty#9664f57f = InputMedia; -func (m *InputMedia) To_InputMediaEmpty() *TLInputMediaEmpty { - return &TLInputMediaEmpty{ - Data2: m.Data2, - } -} - -// inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; -func (m *InputMedia) To_InputMediaUploadedPhoto() *TLInputMediaUploadedPhoto { - return &TLInputMediaUploadedPhoto{ - Data2: m.Data2, - } -} - -// inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia; -func (m *InputMedia) To_InputMediaPhoto() *TLInputMediaPhoto { - return &TLInputMediaPhoto{ - Data2: m.Data2, - } -} - -// inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia; -func (m *InputMedia) To_InputMediaGeoPoint() *TLInputMediaGeoPoint { - return &TLInputMediaGeoPoint{ - Data2: m.Data2, - } -} - -// inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia; -func (m *InputMedia) To_InputMediaContact() *TLInputMediaContact { - return &TLInputMediaContact{ - Data2: m.Data2, - } -} - -// inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; -func (m *InputMedia) To_InputMediaUploadedDocument() *TLInputMediaUploadedDocument { - return &TLInputMediaUploadedDocument{ - Data2: m.Data2, - } -} - -// inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia; -func (m *InputMedia) To_InputMediaDocument() *TLInputMediaDocument { - return &TLInputMediaDocument{ - Data2: m.Data2, - } -} - -// inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia; -func (m *InputMedia) To_InputMediaVenue() *TLInputMediaVenue { - return &TLInputMediaVenue{ - Data2: m.Data2, - } -} - -// inputMediaGifExternal#4843b0fd url:string q:string = InputMedia; -func (m *InputMedia) To_InputMediaGifExternal() *TLInputMediaGifExternal { - return &TLInputMediaGifExternal{ - Data2: m.Data2, - } -} - -// inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia; -func (m *InputMedia) To_InputMediaPhotoExternal() *TLInputMediaPhotoExternal { - return &TLInputMediaPhotoExternal{ +// chatEmpty#9ba2d800 id:int = Chat; +func (m *Chat) To_ChatEmpty() *TLChatEmpty { + return &TLChatEmpty{ Data2: m.Data2, } } -// inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia; -func (m *InputMedia) To_InputMediaDocumentExternal() *TLInputMediaDocumentExternal { - return &TLInputMediaDocumentExternal{ +// chat#d91cdd54 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true admins_enabled:flags.3?true admin:flags.4?true deactivated:flags.5?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel = Chat; +func (m *Chat) To_Chat() *TLChat { + return &TLChat{ Data2: m.Data2, } } -// inputMediaGame#d33f43f3 id:InputGame = InputMedia; -func (m *InputMedia) To_InputMediaGame() *TLInputMediaGame { - return &TLInputMediaGame{ +// chatForbidden#7328bdb id:int title:string = Chat; +func (m *Chat) To_ChatForbidden() *TLChatForbidden { + return &TLChatForbidden{ Data2: m.Data2, } } -// inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia; -func (m *InputMedia) To_InputMediaInvoice() *TLInputMediaInvoice { - return &TLInputMediaInvoice{ +// channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; +func (m *Chat) To_Channel() *TLChannel { + return &TLChannel{ Data2: m.Data2, } } -// inputMediaGeoLive#7b1a118f geo_point:InputGeoPoint period:int = InputMedia; -func (m *InputMedia) To_InputMediaGeoLive() *TLInputMediaGeoLive { - return &TLInputMediaGeoLive{ +// channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat; +func (m *Chat) To_ChannelForbidden() *TLChannelForbidden { + return &TLChannelForbidden{ Data2: m.Data2, } } -// inputMediaPhoto#e9bfb4f3 id:InputPhoto caption:string = InputMedia; -func (m *TLInputMediaPhotoLayer46) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaPhotoLayer46, +// chatEmpty#9ba2d800 id:int = Chat; +func (m *TLChatEmpty) To_Chat() *Chat { + return &Chat{ + Constructor: TLConstructor_CRC32_chatEmpty, Data2: m.Data2, } } -func (m *TLInputMediaPhotoLayer46) SetId(v *InputPhoto) { m.Data2.Id_1 = v } -func (m *TLInputMediaPhotoLayer46) GetId() *InputPhoto { return m.Data2.Id_1 } - -func (m *TLInputMediaPhotoLayer46) SetCaption(v string) { m.Data2.Caption = v } -func (m *TLInputMediaPhotoLayer46) GetCaption() string { return m.Data2.Caption } +func (m *TLChatEmpty) SetId(v int32) { m.Data2.Id = v } +func (m *TLChatEmpty) GetId() int32 { return m.Data2.Id } -func NewTLInputMediaPhotoLayer46() *TLInputMediaPhotoLayer46 { - return &TLInputMediaPhotoLayer46{Data2: &InputMedia_Data{}} +func NewTLChatEmpty() *TLChatEmpty { + return &TLChatEmpty{Data2: &Chat_Data{}} } -func (m *TLInputMediaPhotoLayer46) Encode() []byte { +func (m *TLChatEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaPhotoLayer46)) + x.Int(int32(TLConstructor_CRC32_chatEmpty)) - x.Bytes(m.GetId().Encode()) - x.String(m.GetCaption()) + x.Int(m.GetId()) return x.buf } -func (m *TLInputMediaPhotoLayer46) EncodeToLayer(layer int) []byte { +func (m *TLChatEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaPhotoLayer46)) + x.Int(int32(TLConstructor_CRC32_chatEmpty)) - x.Bytes(m.GetId().EncodeToLayer(layer)) - x.String(m.GetCaption()) + x.Int(m.GetId()) return x.buf } -func (m *TLInputMediaPhotoLayer46) Decode(dbuf *DecodeBuf) error { - m1 := &InputPhoto{} - m1.Decode(dbuf) - m.SetId(m1) - m.SetCaption(dbuf.String()) +func (m *TLChatEmpty) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) return dbuf.err } -// inputMediaEmpty#9664f57f = InputMedia; -func (m *TLInputMediaEmpty) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaEmpty, +// chat#d91cdd54 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true admins_enabled:flags.3?true admin:flags.4?true deactivated:flags.5?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel = Chat; +func (m *TLChat) To_Chat() *Chat { + return &Chat{ + Constructor: TLConstructor_CRC32_chat, Data2: m.Data2, } } -func NewTLInputMediaEmpty() *TLInputMediaEmpty { - return &TLInputMediaEmpty{Data2: &InputMedia_Data{}} -} +func (m *TLChat) SetCreator(v bool) { m.Data2.Creator = v } +func (m *TLChat) GetCreator() bool { return m.Data2.Creator } -func (m *TLInputMediaEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaEmpty)) +func (m *TLChat) SetKicked(v bool) { m.Data2.Kicked = v } +func (m *TLChat) GetKicked() bool { return m.Data2.Kicked } - return x.buf -} +func (m *TLChat) SetLeft(v bool) { m.Data2.Left = v } +func (m *TLChat) GetLeft() bool { return m.Data2.Left } -func (m *TLInputMediaEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaEmpty)) +func (m *TLChat) SetAdminsEnabled(v bool) { m.Data2.AdminsEnabled = v } +func (m *TLChat) GetAdminsEnabled() bool { return m.Data2.AdminsEnabled } - return x.buf -} +func (m *TLChat) SetAdmin(v bool) { m.Data2.Admin = v } +func (m *TLChat) GetAdmin() bool { return m.Data2.Admin } -func (m *TLInputMediaEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLChat) SetDeactivated(v bool) { m.Data2.Deactivated = v } +func (m *TLChat) GetDeactivated() bool { return m.Data2.Deactivated } - return dbuf.err -} +func (m *TLChat) SetId(v int32) { m.Data2.Id = v } +func (m *TLChat) GetId() int32 { return m.Data2.Id } -// inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; -func (m *TLInputMediaUploadedPhoto) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaUploadedPhoto, - Data2: m.Data2, - } -} +func (m *TLChat) SetTitle(v string) { m.Data2.Title = v } +func (m *TLChat) GetTitle() string { return m.Data2.Title } -func (m *TLInputMediaUploadedPhoto) SetFile(v *InputFile) { m.Data2.File = v } -func (m *TLInputMediaUploadedPhoto) GetFile() *InputFile { return m.Data2.File } +func (m *TLChat) SetPhoto(v *ChatPhoto) { m.Data2.Photo = v } +func (m *TLChat) GetPhoto() *ChatPhoto { return m.Data2.Photo } -func (m *TLInputMediaUploadedPhoto) SetStickers(v []*InputDocument) { m.Data2.Stickers = v } -func (m *TLInputMediaUploadedPhoto) GetStickers() []*InputDocument { return m.Data2.Stickers } +func (m *TLChat) SetParticipantsCount(v int32) { m.Data2.ParticipantsCount = v } +func (m *TLChat) GetParticipantsCount() int32 { return m.Data2.ParticipantsCount } -func (m *TLInputMediaUploadedPhoto) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } -func (m *TLInputMediaUploadedPhoto) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } +func (m *TLChat) SetDate(v int32) { m.Data2.Date = v } +func (m *TLChat) GetDate() int32 { return m.Data2.Date } -func NewTLInputMediaUploadedPhoto() *TLInputMediaUploadedPhoto { - return &TLInputMediaUploadedPhoto{Data2: &InputMedia_Data{}} +func (m *TLChat) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLChat) GetVersion() int32 { return m.Data2.Version } + +func (m *TLChat) SetMigratedTo(v *InputChannel) { m.Data2.MigratedTo = v } +func (m *TLChat) GetMigratedTo() *InputChannel { return m.Data2.MigratedTo } + +func NewTLChat() *TLChat { + return &TLChat{Data2: &Chat_Data{}} } -func (m *TLInputMediaUploadedPhoto) Encode() []byte { +func (m *TLChat) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaUploadedPhoto)) + x.Int(int32(TLConstructor_CRC32_chat)) // flags var flags uint32 = 0 - if m.GetStickers() != nil { + if m.GetCreator() == true { flags |= 1 << 0 } - if m.GetTtlSeconds() != 0 { + if m.GetKicked() == true { flags |= 1 << 1 } + if m.GetLeft() == true { + flags |= 1 << 2 + } + if m.GetAdminsEnabled() == true { + flags |= 1 << 3 + } + if m.GetAdmin() == true { + flags |= 1 << 4 + } + if m.GetDeactivated() == true { + flags |= 1 << 5 + } + if m.GetMigratedTo() != nil { + flags |= 1 << 6 + } x.UInt(flags) - x.Bytes(m.GetFile().Encode()) - if m.GetStickers() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { - x.buf = append(x.buf, (*v).Encode()...) - } - } - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + x.Int(m.GetId()) + x.String(m.GetTitle()) + x.Bytes(m.GetPhoto().Encode()) + x.Int(m.GetParticipantsCount()) + x.Int(m.GetDate()) + x.Int(m.GetVersion()) + if m.GetMigratedTo() != nil { + x.Bytes(m.GetMigratedTo().Encode()) } return x.buf } -func (m *TLInputMediaUploadedPhoto) EncodeToLayer(layer int) []byte { +func (m *TLChat) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaUploadedPhoto)) + x.Int(int32(TLConstructor_CRC32_chat)) // flags var flags uint32 = 0 - if m.GetStickers() != nil { + if m.GetCreator() == true { flags |= 1 << 0 } - if m.GetTtlSeconds() != 0 { + if m.GetKicked() == true { flags |= 1 << 1 } + if m.GetLeft() == true { + flags |= 1 << 2 + } + if m.GetAdminsEnabled() == true { + flags |= 1 << 3 + } + if m.GetAdmin() == true { + flags |= 1 << 4 + } + if m.GetDeactivated() == true { + flags |= 1 << 5 + } + if m.GetMigratedTo() != nil { + flags |= 1 << 6 + } x.UInt(flags) - x.Bytes(m.GetFile().EncodeToLayer(layer)) - if m.GetStickers() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + x.Int(m.GetId()) + x.String(m.GetTitle()) + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Int(m.GetParticipantsCount()) + x.Int(m.GetDate()) + x.Int(m.GetVersion()) + if m.GetMigratedTo() != nil { + x.Bytes(m.GetMigratedTo().EncodeToLayer(layer)) } return x.buf } -func (m *TLInputMediaUploadedPhoto) Decode(dbuf *DecodeBuf) error { +func (m *TLChat) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m2 := &InputFile{} - m2.Decode(dbuf) - m.SetFile(m2) if (flags & (1 << 0)) != 0 { - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*InputDocument, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &InputDocument{} - v3[i].Decode(dbuf) - } - m.SetStickers(v3) - + m.SetCreator(true) } if (flags & (1 << 1)) != 0 { - m.SetTtlSeconds(dbuf.Int()) + m.SetKicked(true) } - - return dbuf.err -} - -// inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia; -func (m *TLInputMediaPhoto) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaPhoto, - Data2: m.Data2, + if (flags & (1 << 2)) != 0 { + m.SetLeft(true) } -} - -func (m *TLInputMediaPhoto) SetId(v *InputPhoto) { m.Data2.Id_1 = v } -func (m *TLInputMediaPhoto) GetId() *InputPhoto { return m.Data2.Id_1 } - -func (m *TLInputMediaPhoto) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } -func (m *TLInputMediaPhoto) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } - -func NewTLInputMediaPhoto() *TLInputMediaPhoto { - return &TLInputMediaPhoto{Data2: &InputMedia_Data{}} -} - -func (m *TLInputMediaPhoto) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaPhoto)) - - // flags - var flags uint32 = 0 - if m.GetTtlSeconds() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) - - x.Bytes(m.GetId().Encode()) - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + if (flags & (1 << 3)) != 0 { + m.SetAdminsEnabled(true) } - - return x.buf -} - -func (m *TLInputMediaPhoto) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaPhoto)) - - // flags - var flags uint32 = 0 - if m.GetTtlSeconds() != 0 { - flags |= 1 << 0 + if (flags & (1 << 4)) != 0 { + m.SetAdmin(true) } - x.UInt(flags) - - x.Bytes(m.GetId().EncodeToLayer(layer)) - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + if (flags & (1 << 5)) != 0 { + m.SetDeactivated(true) } - - return x.buf -} - -func (m *TLInputMediaPhoto) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m2 := &InputPhoto{} - m2.Decode(dbuf) - m.SetId(m2) - if (flags & (1 << 0)) != 0 { - m.SetTtlSeconds(dbuf.Int()) + m.SetId(dbuf.Int()) + m.SetTitle(dbuf.String()) + m10 := &ChatPhoto{} + m10.Decode(dbuf) + m.SetPhoto(m10) + m.SetParticipantsCount(dbuf.Int()) + m.SetDate(dbuf.Int()) + m.SetVersion(dbuf.Int()) + if (flags & (1 << 6)) != 0 { + m14 := &InputChannel{} + m14.Decode(dbuf) + m.SetMigratedTo(m14) } return dbuf.err } -// inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia; -func (m *TLInputMediaGeoPoint) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaGeoPoint, +// chatForbidden#7328bdb id:int title:string = Chat; +func (m *TLChatForbidden) To_Chat() *Chat { + return &Chat{ + Constructor: TLConstructor_CRC32_chatForbidden, Data2: m.Data2, } } -func (m *TLInputMediaGeoPoint) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } -func (m *TLInputMediaGeoPoint) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } +func (m *TLChatForbidden) SetId(v int32) { m.Data2.Id = v } +func (m *TLChatForbidden) GetId() int32 { return m.Data2.Id } -func NewTLInputMediaGeoPoint() *TLInputMediaGeoPoint { - return &TLInputMediaGeoPoint{Data2: &InputMedia_Data{}} +func (m *TLChatForbidden) SetTitle(v string) { m.Data2.Title = v } +func (m *TLChatForbidden) GetTitle() string { return m.Data2.Title } + +func NewTLChatForbidden() *TLChatForbidden { + return &TLChatForbidden{Data2: &Chat_Data{}} } -func (m *TLInputMediaGeoPoint) Encode() []byte { +func (m *TLChatForbidden) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaGeoPoint)) + x.Int(int32(TLConstructor_CRC32_chatForbidden)) - x.Bytes(m.GetGeoPoint().Encode()) + x.Int(m.GetId()) + x.String(m.GetTitle()) return x.buf } -func (m *TLInputMediaGeoPoint) EncodeToLayer(layer int) []byte { +func (m *TLChatForbidden) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaGeoPoint)) + x.Int(int32(TLConstructor_CRC32_chatForbidden)) - x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) + x.Int(m.GetId()) + x.String(m.GetTitle()) return x.buf } -func (m *TLInputMediaGeoPoint) Decode(dbuf *DecodeBuf) error { - m1 := &InputGeoPoint{} - m1.Decode(dbuf) - m.SetGeoPoint(m1) +func (m *TLChatForbidden) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetTitle(dbuf.String()) return dbuf.err } -// inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia; -func (m *TLInputMediaContact) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaContact, +// channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; +func (m *TLChannel) To_Chat() *Chat { + return &Chat{ + Constructor: TLConstructor_CRC32_channel, Data2: m.Data2, } } -func (m *TLInputMediaContact) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } -func (m *TLInputMediaContact) GetPhoneNumber() string { return m.Data2.PhoneNumber } +func (m *TLChannel) SetCreator(v bool) { m.Data2.Creator = v } +func (m *TLChannel) GetCreator() bool { return m.Data2.Creator } -func (m *TLInputMediaContact) SetFirstName(v string) { m.Data2.FirstName = v } -func (m *TLInputMediaContact) GetFirstName() string { return m.Data2.FirstName } +func (m *TLChannel) SetLeft(v bool) { m.Data2.Left = v } +func (m *TLChannel) GetLeft() bool { return m.Data2.Left } -func (m *TLInputMediaContact) SetLastName(v string) { m.Data2.LastName = v } -func (m *TLInputMediaContact) GetLastName() string { return m.Data2.LastName } +func (m *TLChannel) SetEditor(v bool) { m.Data2.Editor = v } +func (m *TLChannel) GetEditor() bool { return m.Data2.Editor } -func (m *TLInputMediaContact) SetVcard(v string) { m.Data2.Vcard = v } -func (m *TLInputMediaContact) GetVcard() string { return m.Data2.Vcard } +func (m *TLChannel) SetBroadcast(v bool) { m.Data2.Broadcast = v } +func (m *TLChannel) GetBroadcast() bool { return m.Data2.Broadcast } -func NewTLInputMediaContact() *TLInputMediaContact { - return &TLInputMediaContact{Data2: &InputMedia_Data{}} -} +func (m *TLChannel) SetVerified(v bool) { m.Data2.Verified = v } +func (m *TLChannel) GetVerified() bool { return m.Data2.Verified } -func (m *TLInputMediaContact) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaContact)) +func (m *TLChannel) SetMegagroup(v bool) { m.Data2.Megagroup = v } +func (m *TLChannel) GetMegagroup() bool { return m.Data2.Megagroup } - x.String(m.GetPhoneNumber()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetVcard()) +func (m *TLChannel) SetRestricted(v bool) { m.Data2.Restricted = v } +func (m *TLChannel) GetRestricted() bool { return m.Data2.Restricted } - return x.buf -} +func (m *TLChannel) SetDemocracy(v bool) { m.Data2.Democracy = v } +func (m *TLChannel) GetDemocracy() bool { return m.Data2.Democracy } -func (m *TLInputMediaContact) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaContact)) +func (m *TLChannel) SetSignatures(v bool) { m.Data2.Signatures = v } +func (m *TLChannel) GetSignatures() bool { return m.Data2.Signatures } - x.String(m.GetPhoneNumber()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetVcard()) +func (m *TLChannel) SetMin(v bool) { m.Data2.Min = v } +func (m *TLChannel) GetMin() bool { return m.Data2.Min } - return x.buf -} +func (m *TLChannel) SetId(v int32) { m.Data2.Id = v } +func (m *TLChannel) GetId() int32 { return m.Data2.Id } -func (m *TLInputMediaContact) Decode(dbuf *DecodeBuf) error { - m.SetPhoneNumber(dbuf.String()) - m.SetFirstName(dbuf.String()) - m.SetLastName(dbuf.String()) - m.SetVcard(dbuf.String()) +func (m *TLChannel) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLChannel) GetAccessHash() int64 { return m.Data2.AccessHash } - return dbuf.err -} +func (m *TLChannel) SetTitle(v string) { m.Data2.Title = v } +func (m *TLChannel) GetTitle() string { return m.Data2.Title } -// inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; -func (m *TLInputMediaUploadedDocument) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaUploadedDocument, - Data2: m.Data2, - } -} +func (m *TLChannel) SetUsername(v string) { m.Data2.Username = v } +func (m *TLChannel) GetUsername() string { return m.Data2.Username } -func (m *TLInputMediaUploadedDocument) SetNosoundVideo(v bool) { m.Data2.NosoundVideo = v } -func (m *TLInputMediaUploadedDocument) GetNosoundVideo() bool { return m.Data2.NosoundVideo } +func (m *TLChannel) SetPhoto(v *ChatPhoto) { m.Data2.Photo = v } +func (m *TLChannel) GetPhoto() *ChatPhoto { return m.Data2.Photo } -func (m *TLInputMediaUploadedDocument) SetFile(v *InputFile) { m.Data2.File = v } -func (m *TLInputMediaUploadedDocument) GetFile() *InputFile { return m.Data2.File } +func (m *TLChannel) SetDate(v int32) { m.Data2.Date = v } +func (m *TLChannel) GetDate() int32 { return m.Data2.Date } -func (m *TLInputMediaUploadedDocument) SetThumb(v *InputFile) { m.Data2.Thumb = v } -func (m *TLInputMediaUploadedDocument) GetThumb() *InputFile { return m.Data2.Thumb } +func (m *TLChannel) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLChannel) GetVersion() int32 { return m.Data2.Version } -func (m *TLInputMediaUploadedDocument) SetMimeType(v string) { m.Data2.MimeType = v } -func (m *TLInputMediaUploadedDocument) GetMimeType() string { return m.Data2.MimeType } +func (m *TLChannel) SetRestrictionReason(v string) { m.Data2.RestrictionReason = v } +func (m *TLChannel) GetRestrictionReason() string { return m.Data2.RestrictionReason } -func (m *TLInputMediaUploadedDocument) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } -func (m *TLInputMediaUploadedDocument) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } +func (m *TLChannel) SetAdminRights(v *ChannelAdminRights) { m.Data2.AdminRights = v } +func (m *TLChannel) GetAdminRights() *ChannelAdminRights { return m.Data2.AdminRights } -func (m *TLInputMediaUploadedDocument) SetStickers(v []*InputDocument) { m.Data2.Stickers = v } -func (m *TLInputMediaUploadedDocument) GetStickers() []*InputDocument { return m.Data2.Stickers } +func (m *TLChannel) SetBannedRights(v *ChannelBannedRights) { m.Data2.BannedRights = v } +func (m *TLChannel) GetBannedRights() *ChannelBannedRights { return m.Data2.BannedRights } -func (m *TLInputMediaUploadedDocument) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } -func (m *TLInputMediaUploadedDocument) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } +func (m *TLChannel) SetParticipantsCount(v int32) { m.Data2.ParticipantsCount = v } +func (m *TLChannel) GetParticipantsCount() int32 { return m.Data2.ParticipantsCount } -func NewTLInputMediaUploadedDocument() *TLInputMediaUploadedDocument { - return &TLInputMediaUploadedDocument{Data2: &InputMedia_Data{}} +func NewTLChannel() *TLChannel { + return &TLChannel{Data2: &Chat_Data{}} } -func (m *TLInputMediaUploadedDocument) Encode() []byte { +func (m *TLChannel) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaUploadedDocument)) + x.Int(int32(TLConstructor_CRC32_channel)) // flags var flags uint32 = 0 - if m.GetNosoundVideo() == true { - flags |= 1 << 3 + if m.GetCreator() == true { + flags |= 1 << 0 } - if m.GetThumb() != nil { + if m.GetLeft() == true { flags |= 1 << 2 } - if m.GetStickers() != nil { - flags |= 1 << 0 + if m.GetEditor() == true { + flags |= 1 << 3 } - if m.GetTtlSeconds() != 0 { - flags |= 1 << 1 + if m.GetBroadcast() == true { + flags |= 1 << 5 + } + if m.GetVerified() == true { + flags |= 1 << 7 + } + if m.GetMegagroup() == true { + flags |= 1 << 8 + } + if m.GetRestricted() == true { + flags |= 1 << 9 + } + if m.GetDemocracy() == true { + flags |= 1 << 10 + } + if m.GetSignatures() == true { + flags |= 1 << 11 + } + if m.GetMin() == true { + flags |= 1 << 12 + } + if m.GetAccessHash() != 0 { + flags |= 1 << 13 + } + if m.GetUsername() != "" { + flags |= 1 << 6 + } + if m.GetRestrictionReason() != "" { + flags |= 1 << 9 + } + if m.GetAdminRights() != nil { + flags |= 1 << 14 + } + if m.GetBannedRights() != nil { + flags |= 1 << 15 + } + if m.GetParticipantsCount() != 0 { + flags |= 1 << 17 } x.UInt(flags) - x.Bytes(m.GetFile().Encode()) - if m.GetThumb() != nil { - x.Bytes(m.GetThumb().Encode()) + x.Int(m.GetId()) + if m.GetAccessHash() != 0 { + x.Long(m.GetAccessHash()) } - x.String(m.GetMimeType()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).Encode()...) + x.String(m.GetTitle()) + if m.GetUsername() != "" { + x.String(m.GetUsername()) } - if m.GetStickers() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetPhoto().Encode()) + x.Int(m.GetDate()) + x.Int(m.GetVersion()) + if m.GetRestrictionReason() != "" { + x.String(m.GetRestrictionReason()) } - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + if m.GetAdminRights() != nil { + x.Bytes(m.GetAdminRights().Encode()) + } + if m.GetBannedRights() != nil { + x.Bytes(m.GetBannedRights().Encode()) + } + if m.GetParticipantsCount() != 0 { + x.Int(m.GetParticipantsCount()) } return x.buf } -func (m *TLInputMediaUploadedDocument) EncodeToLayer(layer int) []byte { +func (m *TLChannel) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaUploadedDocument)) + x.Int(int32(TLConstructor_CRC32_channel)) // flags var flags uint32 = 0 - if m.GetNosoundVideo() == true { - flags |= 1 << 3 + if m.GetCreator() == true { + flags |= 1 << 0 } - if m.GetThumb() != nil { + if m.GetLeft() == true { flags |= 1 << 2 } - if m.GetStickers() != nil { - flags |= 1 << 0 + if m.GetEditor() == true { + flags |= 1 << 3 } - if m.GetTtlSeconds() != 0 { - flags |= 1 << 1 + if m.GetBroadcast() == true { + flags |= 1 << 5 + } + if m.GetVerified() == true { + flags |= 1 << 7 + } + if m.GetMegagroup() == true { + flags |= 1 << 8 + } + if m.GetRestricted() == true { + flags |= 1 << 9 + } + if m.GetDemocracy() == true { + flags |= 1 << 10 + } + if m.GetSignatures() == true { + flags |= 1 << 11 + } + if m.GetMin() == true { + flags |= 1 << 12 + } + if m.GetAccessHash() != 0 { + flags |= 1 << 13 + } + if m.GetUsername() != "" { + flags |= 1 << 6 + } + if m.GetRestrictionReason() != "" { + flags |= 1 << 9 + } + if m.GetAdminRights() != nil { + flags |= 1 << 14 + } + if m.GetBannedRights() != nil { + flags |= 1 << 15 + } + if m.GetParticipantsCount() != 0 { + flags |= 1 << 17 } x.UInt(flags) - x.Bytes(m.GetFile().EncodeToLayer(layer)) - if m.GetThumb() != nil { - x.Bytes(m.GetThumb().EncodeToLayer(layer)) + x.Int(m.GetId()) + if m.GetAccessHash() != 0 { + x.Long(m.GetAccessHash()) } - x.String(m.GetMimeType()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + x.String(m.GetTitle()) + if m.GetUsername() != "" { + x.String(m.GetUsername()) } - if m.GetStickers() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Int(m.GetDate()) + x.Int(m.GetVersion()) + if m.GetRestrictionReason() != "" { + x.String(m.GetRestrictionReason()) } - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + if m.GetAdminRights() != nil { + x.Bytes(m.GetAdminRights().EncodeToLayer(layer)) + } + if m.GetBannedRights() != nil { + x.Bytes(m.GetBannedRights().EncodeToLayer(layer)) + } + if m.GetParticipantsCount() != 0 { + x.Int(m.GetParticipantsCount()) } return x.buf } -func (m *TLInputMediaUploadedDocument) Decode(dbuf *DecodeBuf) error { +func (m *TLChannel) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - if (flags & (1 << 3)) != 0 { - m.SetNosoundVideo(true) + if (flags & (1 << 0)) != 0 { + m.SetCreator(true) } - m3 := &InputFile{} - m3.Decode(dbuf) - m.SetFile(m3) if (flags & (1 << 2)) != 0 { - m4 := &InputFile{} - m4.Decode(dbuf) - m.SetThumb(m4) + m.SetLeft(true) } - m.SetMimeType(dbuf.String()) - c6 := dbuf.Int() - if c6 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) - return dbuf.err + if (flags & (1 << 3)) != 0 { + m.SetEditor(true) } - l6 := dbuf.Int() - v6 := make([]*DocumentAttribute, l6) - for i := int32(0); i < l6; i++ { - v6[i] = &DocumentAttribute{} - v6[i].Decode(dbuf) + if (flags & (1 << 5)) != 0 { + m.SetBroadcast(true) } - m.SetAttributes(v6) - - if (flags & (1 << 0)) != 0 { - c7 := dbuf.Int() - if c7 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) - return dbuf.err - } - l7 := dbuf.Int() - v7 := make([]*InputDocument, l7) - for i := int32(0); i < l7; i++ { - v7[i] = &InputDocument{} - v7[i].Decode(dbuf) - } - m.SetStickers(v7) - + if (flags & (1 << 7)) != 0 { + m.SetVerified(true) } - if (flags & (1 << 1)) != 0 { - m.SetTtlSeconds(dbuf.Int()) + if (flags & (1 << 8)) != 0 { + m.SetMegagroup(true) + } + if (flags & (1 << 9)) != 0 { + m.SetRestricted(true) + } + if (flags & (1 << 10)) != 0 { + m.SetDemocracy(true) + } + if (flags & (1 << 11)) != 0 { + m.SetSignatures(true) + } + if (flags & (1 << 12)) != 0 { + m.SetMin(true) + } + m.SetId(dbuf.Int()) + if (flags & (1 << 13)) != 0 { + m.SetAccessHash(dbuf.Long()) + } + m.SetTitle(dbuf.String()) + if (flags & (1 << 6)) != 0 { + m.SetUsername(dbuf.String()) + } + m16 := &ChatPhoto{} + m16.Decode(dbuf) + m.SetPhoto(m16) + m.SetDate(dbuf.Int()) + m.SetVersion(dbuf.Int()) + if (flags & (1 << 9)) != 0 { + m.SetRestrictionReason(dbuf.String()) + } + if (flags & (1 << 14)) != 0 { + m20 := &ChannelAdminRights{} + m20.Decode(dbuf) + m.SetAdminRights(m20) + } + if (flags & (1 << 15)) != 0 { + m21 := &ChannelBannedRights{} + m21.Decode(dbuf) + m.SetBannedRights(m21) + } + if (flags & (1 << 17)) != 0 { + m.SetParticipantsCount(dbuf.Int()) } return dbuf.err } -// inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia; -func (m *TLInputMediaDocument) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaDocument, +// channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat; +func (m *TLChannelForbidden) To_Chat() *Chat { + return &Chat{ + Constructor: TLConstructor_CRC32_channelForbidden, Data2: m.Data2, } } -func (m *TLInputMediaDocument) SetId(v *InputDocument) { m.Data2.Id_15 = v } -func (m *TLInputMediaDocument) GetId() *InputDocument { return m.Data2.Id_15 } +func (m *TLChannelForbidden) SetBroadcast(v bool) { m.Data2.Broadcast = v } +func (m *TLChannelForbidden) GetBroadcast() bool { return m.Data2.Broadcast } -func (m *TLInputMediaDocument) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } -func (m *TLInputMediaDocument) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } +func (m *TLChannelForbidden) SetMegagroup(v bool) { m.Data2.Megagroup = v } +func (m *TLChannelForbidden) GetMegagroup() bool { return m.Data2.Megagroup } -func NewTLInputMediaDocument() *TLInputMediaDocument { - return &TLInputMediaDocument{Data2: &InputMedia_Data{}} -} +func (m *TLChannelForbidden) SetId(v int32) { m.Data2.Id = v } +func (m *TLChannelForbidden) GetId() int32 { return m.Data2.Id } -func (m *TLInputMediaDocument) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaDocument)) +func (m *TLChannelForbidden) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLChannelForbidden) GetAccessHash() int64 { return m.Data2.AccessHash } - // flags - var flags uint32 = 0 - if m.GetTtlSeconds() != 0 { - flags |= 1 << 0 +func (m *TLChannelForbidden) SetTitle(v string) { m.Data2.Title = v } +func (m *TLChannelForbidden) GetTitle() string { return m.Data2.Title } + +func (m *TLChannelForbidden) SetUntilDate(v int32) { m.Data2.UntilDate = v } +func (m *TLChannelForbidden) GetUntilDate() int32 { return m.Data2.UntilDate } + +func NewTLChannelForbidden() *TLChannelForbidden { + return &TLChannelForbidden{Data2: &Chat_Data{}} +} + +func (m *TLChannelForbidden) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelForbidden)) + + // flags + var flags uint32 = 0 + if m.GetBroadcast() == true { + flags |= 1 << 5 + } + if m.GetMegagroup() == true { + flags |= 1 << 8 + } + if m.GetUntilDate() != 0 { + flags |= 1 << 16 } x.UInt(flags) - x.Bytes(m.GetId().Encode()) - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + x.Int(m.GetId()) + x.Long(m.GetAccessHash()) + x.String(m.GetTitle()) + if m.GetUntilDate() != 0 { + x.Int(m.GetUntilDate()) } return x.buf } -func (m *TLInputMediaDocument) EncodeToLayer(layer int) []byte { +func (m *TLChannelForbidden) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaDocument)) + x.Int(int32(TLConstructor_CRC32_channelForbidden)) // flags var flags uint32 = 0 - if m.GetTtlSeconds() != 0 { - flags |= 1 << 0 + if m.GetBroadcast() == true { + flags |= 1 << 5 + } + if m.GetMegagroup() == true { + flags |= 1 << 8 + } + if m.GetUntilDate() != 0 { + flags |= 1 << 16 } x.UInt(flags) - x.Bytes(m.GetId().EncodeToLayer(layer)) - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + x.Int(m.GetId()) + x.Long(m.GetAccessHash()) + x.String(m.GetTitle()) + if m.GetUntilDate() != 0 { + x.Int(m.GetUntilDate()) } return x.buf } -func (m *TLInputMediaDocument) Decode(dbuf *DecodeBuf) error { +func (m *TLChannelForbidden) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m2 := &InputDocument{} - m2.Decode(dbuf) - m.SetId(m2) - if (flags & (1 << 0)) != 0 { - m.SetTtlSeconds(dbuf.Int()) + if (flags & (1 << 5)) != 0 { + m.SetBroadcast(true) + } + if (flags & (1 << 8)) != 0 { + m.SetMegagroup(true) + } + m.SetId(dbuf.Int()) + m.SetAccessHash(dbuf.Long()) + m.SetTitle(dbuf.String()) + if (flags & (1 << 16)) != 0 { + m.SetUntilDate(dbuf.Int()) } return dbuf.err } -// inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia; -func (m *TLInputMediaVenue) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaVenue, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// ReceivedNotifyMessage <-- +// + TL_ReceivedNotifyMessage +// + +func (m *ReceivedNotifyMessage) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_receivedNotifyMessage: + t := m.To_ReceivedNotifyMessage() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLInputMediaVenue) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } -func (m *TLInputMediaVenue) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } +func (m *ReceivedNotifyMessage) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_receivedNotifyMessage: + t := m.To_ReceivedNotifyMessage() + return t.EncodeToLayer(layer) -func (m *TLInputMediaVenue) SetTitle(v string) { m.Data2.Title = v } -func (m *TLInputMediaVenue) GetTitle() string { return m.Data2.Title } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLInputMediaVenue) SetAddress(v string) { m.Data2.Address = v } -func (m *TLInputMediaVenue) GetAddress() string { return m.Data2.Address } +func (m *ReceivedNotifyMessage) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_receivedNotifyMessage: + m2 := &TLReceivedNotifyMessage{Data2: &ReceivedNotifyMessage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func (m *TLInputMediaVenue) SetProvider(v string) { m.Data2.Provider = v } -func (m *TLInputMediaVenue) GetProvider() string { return m.Data2.Provider } + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} -func (m *TLInputMediaVenue) SetVenueId(v string) { m.Data2.VenueId = v } -func (m *TLInputMediaVenue) GetVenueId() string { return m.Data2.VenueId } +// receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage; +func (m *ReceivedNotifyMessage) To_ReceivedNotifyMessage() *TLReceivedNotifyMessage { + return &TLReceivedNotifyMessage{ + Data2: m.Data2, + } +} -func (m *TLInputMediaVenue) SetVenueType(v string) { m.Data2.VenueType = v } -func (m *TLInputMediaVenue) GetVenueType() string { return m.Data2.VenueType } +// receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage; +func (m *TLReceivedNotifyMessage) To_ReceivedNotifyMessage() *ReceivedNotifyMessage { + return &ReceivedNotifyMessage{ + Constructor: TLConstructor_CRC32_receivedNotifyMessage, + Data2: m.Data2, + } +} -func NewTLInputMediaVenue() *TLInputMediaVenue { - return &TLInputMediaVenue{Data2: &InputMedia_Data{}} +func (m *TLReceivedNotifyMessage) SetId(v int32) { m.Data2.Id = v } +func (m *TLReceivedNotifyMessage) GetId() int32 { return m.Data2.Id } + +func (m *TLReceivedNotifyMessage) SetFlags(v int32) { m.Data2.Flags = v } +func (m *TLReceivedNotifyMessage) GetFlags() int32 { return m.Data2.Flags } + +func NewTLReceivedNotifyMessage() *TLReceivedNotifyMessage { + return &TLReceivedNotifyMessage{Data2: &ReceivedNotifyMessage_Data{}} } -func (m *TLInputMediaVenue) Encode() []byte { +func (m *TLReceivedNotifyMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaVenue)) + x.Int(int32(TLConstructor_CRC32_receivedNotifyMessage)) - x.Bytes(m.GetGeoPoint().Encode()) - x.String(m.GetTitle()) - x.String(m.GetAddress()) - x.String(m.GetProvider()) - x.String(m.GetVenueId()) - x.String(m.GetVenueType()) + x.Int(m.GetId()) + x.Int(m.GetFlags()) return x.buf } -func (m *TLInputMediaVenue) EncodeToLayer(layer int) []byte { +func (m *TLReceivedNotifyMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaVenue)) + x.Int(int32(TLConstructor_CRC32_receivedNotifyMessage)) - x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) - x.String(m.GetTitle()) - x.String(m.GetAddress()) - x.String(m.GetProvider()) - x.String(m.GetVenueId()) - x.String(m.GetVenueType()) + x.Int(m.GetId()) + x.Int(m.GetFlags()) return x.buf } -func (m *TLInputMediaVenue) Decode(dbuf *DecodeBuf) error { - m1 := &InputGeoPoint{} - m1.Decode(dbuf) - m.SetGeoPoint(m1) - m.SetTitle(dbuf.String()) - m.SetAddress(dbuf.String()) - m.SetProvider(dbuf.String()) - m.SetVenueId(dbuf.String()) - m.SetVenueType(dbuf.String()) +func (m *TLReceivedNotifyMessage) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetFlags(dbuf.Int()) return dbuf.err } -// inputMediaGifExternal#4843b0fd url:string q:string = InputMedia; -func (m *TLInputMediaGifExternal) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaGifExternal, +/////////////////////////////////////////////////////////////////////////////// +// FoundGif <-- +// + TL_FoundGif +// + TL_FoundGifCached +// + +func (m *FoundGif) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_foundGif: + t := m.To_FoundGif() + return t.Encode() + case TLConstructor_CRC32_foundGifCached: + t := m.To_FoundGifCached() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *FoundGif) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_foundGif: + t := m.To_FoundGif() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_foundGifCached: + t := m.To_FoundGifCached() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *FoundGif) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_foundGif: + m2 := &TLFoundGif{Data2: &FoundGif_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_foundGifCached: + m2 := &TLFoundGifCached{Data2: &FoundGif_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// foundGif#162ecc1f url:string thumb_url:string content_url:string content_type:string w:int h:int = FoundGif; +func (m *FoundGif) To_FoundGif() *TLFoundGif { + return &TLFoundGif{ + Data2: m.Data2, + } +} + +// foundGifCached#9c750409 url:string photo:Photo document:Document = FoundGif; +func (m *FoundGif) To_FoundGifCached() *TLFoundGifCached { + return &TLFoundGifCached{ + Data2: m.Data2, + } +} + +// foundGif#162ecc1f url:string thumb_url:string content_url:string content_type:string w:int h:int = FoundGif; +func (m *TLFoundGif) To_FoundGif() *FoundGif { + return &FoundGif{ + Constructor: TLConstructor_CRC32_foundGif, Data2: m.Data2, } } -func (m *TLInputMediaGifExternal) SetUrl(v string) { m.Data2.Url = v } -func (m *TLInputMediaGifExternal) GetUrl() string { return m.Data2.Url } +func (m *TLFoundGif) SetUrl(v string) { m.Data2.Url = v } +func (m *TLFoundGif) GetUrl() string { return m.Data2.Url } -func (m *TLInputMediaGifExternal) SetQ(v string) { m.Data2.Q = v } -func (m *TLInputMediaGifExternal) GetQ() string { return m.Data2.Q } +func (m *TLFoundGif) SetThumbUrl(v string) { m.Data2.ThumbUrl = v } +func (m *TLFoundGif) GetThumbUrl() string { return m.Data2.ThumbUrl } -func NewTLInputMediaGifExternal() *TLInputMediaGifExternal { - return &TLInputMediaGifExternal{Data2: &InputMedia_Data{}} +func (m *TLFoundGif) SetContentUrl(v string) { m.Data2.ContentUrl = v } +func (m *TLFoundGif) GetContentUrl() string { return m.Data2.ContentUrl } + +func (m *TLFoundGif) SetContentType(v string) { m.Data2.ContentType = v } +func (m *TLFoundGif) GetContentType() string { return m.Data2.ContentType } + +func (m *TLFoundGif) SetW(v int32) { m.Data2.W = v } +func (m *TLFoundGif) GetW() int32 { return m.Data2.W } + +func (m *TLFoundGif) SetH(v int32) { m.Data2.H = v } +func (m *TLFoundGif) GetH() int32 { return m.Data2.H } + +func NewTLFoundGif() *TLFoundGif { + return &TLFoundGif{Data2: &FoundGif_Data{}} } -func (m *TLInputMediaGifExternal) Encode() []byte { +func (m *TLFoundGif) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaGifExternal)) + x.Int(int32(TLConstructor_CRC32_foundGif)) x.String(m.GetUrl()) - x.String(m.GetQ()) + x.String(m.GetThumbUrl()) + x.String(m.GetContentUrl()) + x.String(m.GetContentType()) + x.Int(m.GetW()) + x.Int(m.GetH()) return x.buf } -func (m *TLInputMediaGifExternal) EncodeToLayer(layer int) []byte { +func (m *TLFoundGif) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaGifExternal)) + x.Int(int32(TLConstructor_CRC32_foundGif)) x.String(m.GetUrl()) - x.String(m.GetQ()) + x.String(m.GetThumbUrl()) + x.String(m.GetContentUrl()) + x.String(m.GetContentType()) + x.Int(m.GetW()) + x.Int(m.GetH()) return x.buf } -func (m *TLInputMediaGifExternal) Decode(dbuf *DecodeBuf) error { +func (m *TLFoundGif) Decode(dbuf *DecodeBuf) error { m.SetUrl(dbuf.String()) - m.SetQ(dbuf.String()) + m.SetThumbUrl(dbuf.String()) + m.SetContentUrl(dbuf.String()) + m.SetContentType(dbuf.String()) + m.SetW(dbuf.Int()) + m.SetH(dbuf.Int()) return dbuf.err } -// inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia; -func (m *TLInputMediaPhotoExternal) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaPhotoExternal, +// foundGifCached#9c750409 url:string photo:Photo document:Document = FoundGif; +func (m *TLFoundGifCached) To_FoundGif() *FoundGif { + return &FoundGif{ + Constructor: TLConstructor_CRC32_foundGifCached, Data2: m.Data2, } } -func (m *TLInputMediaPhotoExternal) SetUrl(v string) { m.Data2.Url = v } -func (m *TLInputMediaPhotoExternal) GetUrl() string { return m.Data2.Url } +func (m *TLFoundGifCached) SetUrl(v string) { m.Data2.Url = v } +func (m *TLFoundGifCached) GetUrl() string { return m.Data2.Url } -func (m *TLInputMediaPhotoExternal) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } -func (m *TLInputMediaPhotoExternal) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } +func (m *TLFoundGifCached) SetPhoto(v *Photo) { m.Data2.Photo = v } +func (m *TLFoundGifCached) GetPhoto() *Photo { return m.Data2.Photo } -func NewTLInputMediaPhotoExternal() *TLInputMediaPhotoExternal { - return &TLInputMediaPhotoExternal{Data2: &InputMedia_Data{}} +func (m *TLFoundGifCached) SetDocument(v *Document) { m.Data2.Document = v } +func (m *TLFoundGifCached) GetDocument() *Document { return m.Data2.Document } + +func NewTLFoundGifCached() *TLFoundGifCached { + return &TLFoundGifCached{Data2: &FoundGif_Data{}} } -func (m *TLInputMediaPhotoExternal) Encode() []byte { +func (m *TLFoundGifCached) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaPhotoExternal)) - - // flags - var flags uint32 = 0 - if m.GetTtlSeconds() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_foundGifCached)) x.String(m.GetUrl()) - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) - } + x.Bytes(m.GetPhoto().Encode()) + x.Bytes(m.GetDocument().Encode()) return x.buf } -func (m *TLInputMediaPhotoExternal) EncodeToLayer(layer int) []byte { +func (m *TLFoundGifCached) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaPhotoExternal)) - - // flags - var flags uint32 = 0 - if m.GetTtlSeconds() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_foundGifCached)) x.String(m.GetUrl()) - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) - } + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Bytes(m.GetDocument().EncodeToLayer(layer)) return x.buf } -func (m *TLInputMediaPhotoExternal) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags +func (m *TLFoundGifCached) Decode(dbuf *DecodeBuf) error { m.SetUrl(dbuf.String()) - if (flags & (1 << 0)) != 0 { - m.SetTtlSeconds(dbuf.Int()) - } + m2 := &Photo{} + m2.Decode(dbuf) + m.SetPhoto(m2) + m3 := &Document{} + m3.Decode(dbuf) + m.SetDocument(m3) return dbuf.err } -// inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia; -func (m *TLInputMediaDocumentExternal) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaDocumentExternal, - Data2: m.Data2, - } -} - -func (m *TLInputMediaDocumentExternal) SetUrl(v string) { m.Data2.Url = v } -func (m *TLInputMediaDocumentExternal) GetUrl() string { return m.Data2.Url } +/////////////////////////////////////////////////////////////////////////////// +// SecureData <-- +// + TL_SecureData +// -func (m *TLInputMediaDocumentExternal) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } -func (m *TLInputMediaDocumentExternal) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } +func (m *SecureData) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_secureData: + t := m.To_SecureData() + return t.Encode() -func NewTLInputMediaDocumentExternal() *TLInputMediaDocumentExternal { - return &TLInputMediaDocumentExternal{Data2: &InputMedia_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputMediaDocumentExternal) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaDocumentExternal)) - - // flags - var flags uint32 = 0 - if m.GetTtlSeconds() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) +func (m *SecureData) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_secureData: + t := m.To_SecureData() + return t.EncodeToLayer(layer) - x.String(m.GetUrl()) - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - - return x.buf } -func (m *TLInputMediaDocumentExternal) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaDocumentExternal)) - - // flags - var flags uint32 = 0 - if m.GetTtlSeconds() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) +func (m *SecureData) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_secureData: + m2 := &TLSecureData{Data2: &SecureData_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - x.String(m.GetUrl()) - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - - return x.buf + return dbuf.err } -func (m *TLInputMediaDocumentExternal) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetUrl(dbuf.String()) - if (flags & (1 << 0)) != 0 { - m.SetTtlSeconds(dbuf.Int()) +// secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData; +func (m *SecureData) To_SecureData() *TLSecureData { + return &TLSecureData{ + Data2: m.Data2, } - - return dbuf.err } -// inputMediaGame#d33f43f3 id:InputGame = InputMedia; -func (m *TLInputMediaGame) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaGame, +// secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData; +func (m *TLSecureData) To_SecureData() *SecureData { + return &SecureData{ + Constructor: TLConstructor_CRC32_secureData, Data2: m.Data2, } } -func (m *TLInputMediaGame) SetId(v *InputGame) { m.Data2.Id_23 = v } -func (m *TLInputMediaGame) GetId() *InputGame { return m.Data2.Id_23 } +func (m *TLSecureData) SetData(v []byte) { m.Data2.Data = v } +func (m *TLSecureData) GetData() []byte { return m.Data2.Data } -func NewTLInputMediaGame() *TLInputMediaGame { - return &TLInputMediaGame{Data2: &InputMedia_Data{}} +func (m *TLSecureData) SetDataHash(v []byte) { m.Data2.DataHash = v } +func (m *TLSecureData) GetDataHash() []byte { return m.Data2.DataHash } + +func (m *TLSecureData) SetSecret(v []byte) { m.Data2.Secret = v } +func (m *TLSecureData) GetSecret() []byte { return m.Data2.Secret } + +func NewTLSecureData() *TLSecureData { + return &TLSecureData{Data2: &SecureData_Data{}} } -func (m *TLInputMediaGame) Encode() []byte { +func (m *TLSecureData) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaGame)) + x.Int(int32(TLConstructor_CRC32_secureData)) - x.Bytes(m.GetId().Encode()) + x.StringBytes(m.GetData()) + x.StringBytes(m.GetDataHash()) + x.StringBytes(m.GetSecret()) return x.buf } -func (m *TLInputMediaGame) EncodeToLayer(layer int) []byte { +func (m *TLSecureData) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaGame)) + x.Int(int32(TLConstructor_CRC32_secureData)) - x.Bytes(m.GetId().EncodeToLayer(layer)) + x.StringBytes(m.GetData()) + x.StringBytes(m.GetDataHash()) + x.StringBytes(m.GetSecret()) return x.buf } -func (m *TLInputMediaGame) Decode(dbuf *DecodeBuf) error { - m1 := &InputGame{} - m1.Decode(dbuf) - m.SetId(m1) +func (m *TLSecureData) Decode(dbuf *DecodeBuf) error { + m.SetData(dbuf.StringBytes()) + m.SetDataHash(dbuf.StringBytes()) + m.SetSecret(dbuf.StringBytes()) return dbuf.err } -// inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia; -func (m *TLInputMediaInvoice) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaInvoice, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// ChatParticipants <-- +// + TL_ChatParticipantsForbidden +// + TL_ChatParticipants +// + +func (m *ChatParticipants) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_chatParticipantsForbidden: + t := m.To_ChatParticipantsForbidden() + return t.Encode() + case TLConstructor_CRC32_chatParticipants: + t := m.To_ChatParticipants() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLInputMediaInvoice) SetTitle(v string) { m.Data2.Title = v } -func (m *TLInputMediaInvoice) GetTitle() string { return m.Data2.Title } +func (m *ChatParticipants) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_chatParticipantsForbidden: + t := m.To_ChatParticipantsForbidden() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_chatParticipants: + t := m.To_ChatParticipants() + return t.EncodeToLayer(layer) -func (m *TLInputMediaInvoice) SetDescription(v string) { m.Data2.Description = v } -func (m *TLInputMediaInvoice) GetDescription() string { return m.Data2.Description } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLInputMediaInvoice) SetPhoto(v *InputWebDocument) { m.Data2.Photo = v } -func (m *TLInputMediaInvoice) GetPhoto() *InputWebDocument { return m.Data2.Photo } +func (m *ChatParticipants) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_chatParticipantsForbidden: + m2 := &TLChatParticipantsForbidden{Data2: &ChatParticipants_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_chatParticipants: + m2 := &TLChatParticipants{Data2: &ChatParticipants_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func (m *TLInputMediaInvoice) SetInvoice(v *Invoice) { m.Data2.Invoice = v } -func (m *TLInputMediaInvoice) GetInvoice() *Invoice { return m.Data2.Invoice } + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} -func (m *TLInputMediaInvoice) SetPayload(v []byte) { m.Data2.Payload = v } -func (m *TLInputMediaInvoice) GetPayload() []byte { return m.Data2.Payload } +// chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants; +func (m *ChatParticipants) To_ChatParticipantsForbidden() *TLChatParticipantsForbidden { + return &TLChatParticipantsForbidden{ + Data2: m.Data2, + } +} -func (m *TLInputMediaInvoice) SetProvider(v string) { m.Data2.Provider = v } -func (m *TLInputMediaInvoice) GetProvider() string { return m.Data2.Provider } +// chatParticipants#3f460fed chat_id:int participants:Vector version:int = ChatParticipants; +func (m *ChatParticipants) To_ChatParticipants() *TLChatParticipants { + return &TLChatParticipants{ + Data2: m.Data2, + } +} -func (m *TLInputMediaInvoice) SetProviderData(v *DataJSON) { m.Data2.ProviderData = v } -func (m *TLInputMediaInvoice) GetProviderData() *DataJSON { return m.Data2.ProviderData } +// chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants; +func (m *TLChatParticipantsForbidden) To_ChatParticipants() *ChatParticipants { + return &ChatParticipants{ + Constructor: TLConstructor_CRC32_chatParticipantsForbidden, + Data2: m.Data2, + } +} -func (m *TLInputMediaInvoice) SetStartParam(v string) { m.Data2.StartParam = v } -func (m *TLInputMediaInvoice) GetStartParam() string { return m.Data2.StartParam } +func (m *TLChatParticipantsForbidden) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLChatParticipantsForbidden) GetChatId() int32 { return m.Data2.ChatId } -func NewTLInputMediaInvoice() *TLInputMediaInvoice { - return &TLInputMediaInvoice{Data2: &InputMedia_Data{}} +func (m *TLChatParticipantsForbidden) SetSelfParticipant(v *ChatParticipant) { + m.Data2.SelfParticipant = v +} +func (m *TLChatParticipantsForbidden) GetSelfParticipant() *ChatParticipant { + return m.Data2.SelfParticipant } -func (m *TLInputMediaInvoice) Encode() []byte { +func NewTLChatParticipantsForbidden() *TLChatParticipantsForbidden { + return &TLChatParticipantsForbidden{Data2: &ChatParticipants_Data{}} +} + +func (m *TLChatParticipantsForbidden) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaInvoice)) + x.Int(int32(TLConstructor_CRC32_chatParticipantsForbidden)) // flags var flags uint32 = 0 - if m.GetPhoto() != nil { + if m.GetSelfParticipant() != nil { flags |= 1 << 0 } x.UInt(flags) - x.String(m.GetTitle()) - x.String(m.GetDescription()) - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().Encode()) + x.Int(m.GetChatId()) + if m.GetSelfParticipant() != nil { + x.Bytes(m.GetSelfParticipant().Encode()) } - x.Bytes(m.GetInvoice().Encode()) - x.StringBytes(m.GetPayload()) - x.String(m.GetProvider()) - x.Bytes(m.GetProviderData().Encode()) - x.String(m.GetStartParam()) return x.buf } -func (m *TLInputMediaInvoice) EncodeToLayer(layer int) []byte { +func (m *TLChatParticipantsForbidden) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaInvoice)) + x.Int(int32(TLConstructor_CRC32_chatParticipantsForbidden)) // flags var flags uint32 = 0 - if m.GetPhoto() != nil { + if m.GetSelfParticipant() != nil { flags |= 1 << 0 } x.UInt(flags) - x.String(m.GetTitle()) - x.String(m.GetDescription()) - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Int(m.GetChatId()) + if m.GetSelfParticipant() != nil { + x.Bytes(m.GetSelfParticipant().EncodeToLayer(layer)) } - x.Bytes(m.GetInvoice().EncodeToLayer(layer)) - x.StringBytes(m.GetPayload()) - x.String(m.GetProvider()) - x.Bytes(m.GetProviderData().EncodeToLayer(layer)) - x.String(m.GetStartParam()) return x.buf } -func (m *TLInputMediaInvoice) Decode(dbuf *DecodeBuf) error { +func (m *TLChatParticipantsForbidden) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m.SetTitle(dbuf.String()) - m.SetDescription(dbuf.String()) + m.SetChatId(dbuf.Int()) if (flags & (1 << 0)) != 0 { - m4 := &InputWebDocument{} - m4.Decode(dbuf) - m.SetPhoto(m4) + m3 := &ChatParticipant{} + m3.Decode(dbuf) + m.SetSelfParticipant(m3) } - m5 := &Invoice{} - m5.Decode(dbuf) - m.SetInvoice(m5) - m.SetPayload(dbuf.StringBytes()) - m.SetProvider(dbuf.String()) - m8 := &DataJSON{} - m8.Decode(dbuf) - m.SetProviderData(m8) - m.SetStartParam(dbuf.String()) return dbuf.err } -// inputMediaGeoLive#7b1a118f geo_point:InputGeoPoint period:int = InputMedia; -func (m *TLInputMediaGeoLive) To_InputMedia() *InputMedia { - return &InputMedia{ - Constructor: TLConstructor_CRC32_inputMediaGeoLive, +// chatParticipants#3f460fed chat_id:int participants:Vector version:int = ChatParticipants; +func (m *TLChatParticipants) To_ChatParticipants() *ChatParticipants { + return &ChatParticipants{ + Constructor: TLConstructor_CRC32_chatParticipants, Data2: m.Data2, } } -func (m *TLInputMediaGeoLive) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } -func (m *TLInputMediaGeoLive) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } +func (m *TLChatParticipants) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLChatParticipants) GetChatId() int32 { return m.Data2.ChatId } -func (m *TLInputMediaGeoLive) SetPeriod(v int32) { m.Data2.Period = v } -func (m *TLInputMediaGeoLive) GetPeriod() int32 { return m.Data2.Period } +func (m *TLChatParticipants) SetParticipants(v []*ChatParticipant) { m.Data2.Participants = v } +func (m *TLChatParticipants) GetParticipants() []*ChatParticipant { return m.Data2.Participants } -func NewTLInputMediaGeoLive() *TLInputMediaGeoLive { - return &TLInputMediaGeoLive{Data2: &InputMedia_Data{}} +func (m *TLChatParticipants) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLChatParticipants) GetVersion() int32 { return m.Data2.Version } + +func NewTLChatParticipants() *TLChatParticipants { + return &TLChatParticipants{Data2: &ChatParticipants_Data{}} } -func (m *TLInputMediaGeoLive) Encode() []byte { +func (m *TLChatParticipants) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaGeoLive)) + x.Int(int32(TLConstructor_CRC32_chatParticipants)) - x.Bytes(m.GetGeoPoint().Encode()) - x.Int(m.GetPeriod()) + x.Int(m.GetChatId()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParticipants()))) + for _, v := range m.GetParticipants() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(m.GetVersion()) return x.buf } -func (m *TLInputMediaGeoLive) EncodeToLayer(layer int) []byte { +func (m *TLChatParticipants) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMediaGeoLive)) + x.Int(int32(TLConstructor_CRC32_chatParticipants)) - x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) - x.Int(m.GetPeriod()) + x.Int(m.GetChatId()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParticipants()))) + for _, v := range m.GetParticipants() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(m.GetVersion()) return x.buf } -func (m *TLInputMediaGeoLive) Decode(dbuf *DecodeBuf) error { - m1 := &InputGeoPoint{} - m1.Decode(dbuf) - m.SetGeoPoint(m1) - m.SetPeriod(dbuf.Int()) +func (m *TLChatParticipants) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*ChatParticipant, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &ChatParticipant{} + v2[i].Decode(dbuf) + } + m.SetParticipants(v2) + + m.SetVersion(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ChatParticipant <-- -// + TL_ChatParticipant -// + TL_ChatParticipantCreator -// + TL_ChatParticipantAdmin +// InputNotifyPeer <-- +// + TL_InputNotifyPeer +// + TL_InputNotifyUsers +// + TL_InputNotifyChats // -func (m *ChatParticipant) Encode() []byte { +func (m *InputNotifyPeer) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_chatParticipant: - t := m.To_ChatParticipant() + case TLConstructor_CRC32_inputNotifyPeer: + t := m.To_InputNotifyPeer() return t.Encode() - case TLConstructor_CRC32_chatParticipantCreator: - t := m.To_ChatParticipantCreator() + case TLConstructor_CRC32_inputNotifyUsers: + t := m.To_InputNotifyUsers() return t.Encode() - case TLConstructor_CRC32_chatParticipantAdmin: - t := m.To_ChatParticipantAdmin() + case TLConstructor_CRC32_inputNotifyChats: + t := m.To_InputNotifyChats() return t.Encode() default: @@ -28389,17 +29660,17 @@ func (m *ChatParticipant) Encode() []byte { } } -func (m *ChatParticipant) EncodeToLayer(layer int) []byte { +func (m *InputNotifyPeer) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_chatParticipant: - t := m.To_ChatParticipant() + case TLConstructor_CRC32_inputNotifyPeer: + t := m.To_InputNotifyPeer() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_chatParticipantCreator: - t := m.To_ChatParticipantCreator() + case TLConstructor_CRC32_inputNotifyUsers: + t := m.To_InputNotifyUsers() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_chatParticipantAdmin: - t := m.To_ChatParticipantAdmin() + case TLConstructor_CRC32_inputNotifyChats: + t := m.To_InputNotifyChats() return t.EncodeToLayer(layer) default: @@ -28408,19 +29679,19 @@ func (m *ChatParticipant) EncodeToLayer(layer int) []byte { } } -func (m *ChatParticipant) Decode(dbuf *DecodeBuf) error { +func (m *InputNotifyPeer) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_chatParticipant: - m2 := &TLChatParticipant{Data2: &ChatParticipant_Data{}} + case TLConstructor_CRC32_inputNotifyPeer: + m2 := &TLInputNotifyPeer{Data2: &InputNotifyPeer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_chatParticipantCreator: - m2 := &TLChatParticipantCreator{Data2: &ChatParticipant_Data{}} + case TLConstructor_CRC32_inputNotifyUsers: + m2 := &TLInputNotifyUsers{Data2: &InputNotifyPeer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_chatParticipantAdmin: - m2 := &TLChatParticipantAdmin{Data2: &ChatParticipant_Data{}} + case TLConstructor_CRC32_inputNotifyChats: + m2 := &TLInputNotifyChats{Data2: &InputNotifyPeer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -28430,177 +29701,139 @@ func (m *ChatParticipant) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant; -func (m *ChatParticipant) To_ChatParticipant() *TLChatParticipant { - return &TLChatParticipant{ +// inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer; +func (m *InputNotifyPeer) To_InputNotifyPeer() *TLInputNotifyPeer { + return &TLInputNotifyPeer{ Data2: m.Data2, } } -// chatParticipantCreator#da13538a user_id:int = ChatParticipant; -func (m *ChatParticipant) To_ChatParticipantCreator() *TLChatParticipantCreator { - return &TLChatParticipantCreator{ +// inputNotifyUsers#193b4417 = InputNotifyPeer; +func (m *InputNotifyPeer) To_InputNotifyUsers() *TLInputNotifyUsers { + return &TLInputNotifyUsers{ Data2: m.Data2, } } -// chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant; -func (m *ChatParticipant) To_ChatParticipantAdmin() *TLChatParticipantAdmin { - return &TLChatParticipantAdmin{ +// inputNotifyChats#4a95e84e = InputNotifyPeer; +func (m *InputNotifyPeer) To_InputNotifyChats() *TLInputNotifyChats { + return &TLInputNotifyChats{ Data2: m.Data2, } } -// chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant; -func (m *TLChatParticipant) To_ChatParticipant() *ChatParticipant { - return &ChatParticipant{ - Constructor: TLConstructor_CRC32_chatParticipant, +// inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer; +func (m *TLInputNotifyPeer) To_InputNotifyPeer() *InputNotifyPeer { + return &InputNotifyPeer{ + Constructor: TLConstructor_CRC32_inputNotifyPeer, Data2: m.Data2, } } -func (m *TLChatParticipant) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLChatParticipant) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLChatParticipant) SetInviterId(v int32) { m.Data2.InviterId = v } -func (m *TLChatParticipant) GetInviterId() int32 { return m.Data2.InviterId } - -func (m *TLChatParticipant) SetDate(v int32) { m.Data2.Date = v } -func (m *TLChatParticipant) GetDate() int32 { return m.Data2.Date } +func (m *TLInputNotifyPeer) SetPeer(v *InputPeer) { m.Data2.Peer = v } +func (m *TLInputNotifyPeer) GetPeer() *InputPeer { return m.Data2.Peer } -func NewTLChatParticipant() *TLChatParticipant { - return &TLChatParticipant{Data2: &ChatParticipant_Data{}} +func NewTLInputNotifyPeer() *TLInputNotifyPeer { + return &TLInputNotifyPeer{Data2: &InputNotifyPeer_Data{}} } -func (m *TLChatParticipant) Encode() []byte { +func (m *TLInputNotifyPeer) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipant)) + x.Int(int32(TLConstructor_CRC32_inputNotifyPeer)) - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) - x.Int(m.GetDate()) + x.Bytes(m.GetPeer().Encode()) return x.buf } -func (m *TLChatParticipant) EncodeToLayer(layer int) []byte { +func (m *TLInputNotifyPeer) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipant)) + x.Int(int32(TLConstructor_CRC32_inputNotifyPeer)) - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) - x.Int(m.GetDate()) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) return x.buf } -func (m *TLChatParticipant) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetInviterId(dbuf.Int()) - m.SetDate(dbuf.Int()) +func (m *TLInputNotifyPeer) Decode(dbuf *DecodeBuf) error { + m1 := &InputPeer{} + m1.Decode(dbuf) + m.SetPeer(m1) return dbuf.err } -// chatParticipantCreator#da13538a user_id:int = ChatParticipant; -func (m *TLChatParticipantCreator) To_ChatParticipant() *ChatParticipant { - return &ChatParticipant{ - Constructor: TLConstructor_CRC32_chatParticipantCreator, +// inputNotifyUsers#193b4417 = InputNotifyPeer; +func (m *TLInputNotifyUsers) To_InputNotifyPeer() *InputNotifyPeer { + return &InputNotifyPeer{ + Constructor: TLConstructor_CRC32_inputNotifyUsers, Data2: m.Data2, } } -func (m *TLChatParticipantCreator) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLChatParticipantCreator) GetUserId() int32 { return m.Data2.UserId } - -func NewTLChatParticipantCreator() *TLChatParticipantCreator { - return &TLChatParticipantCreator{Data2: &ChatParticipant_Data{}} +func NewTLInputNotifyUsers() *TLInputNotifyUsers { + return &TLInputNotifyUsers{Data2: &InputNotifyPeer_Data{}} } -func (m *TLChatParticipantCreator) Encode() []byte { +func (m *TLInputNotifyUsers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipantCreator)) - - x.Int(m.GetUserId()) + x.Int(int32(TLConstructor_CRC32_inputNotifyUsers)) return x.buf } -func (m *TLChatParticipantCreator) EncodeToLayer(layer int) []byte { +func (m *TLInputNotifyUsers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipantCreator)) - - x.Int(m.GetUserId()) + x.Int(int32(TLConstructor_CRC32_inputNotifyUsers)) return x.buf } -func (m *TLChatParticipantCreator) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) +func (m *TLInputNotifyUsers) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant; -func (m *TLChatParticipantAdmin) To_ChatParticipant() *ChatParticipant { - return &ChatParticipant{ - Constructor: TLConstructor_CRC32_chatParticipantAdmin, +// inputNotifyChats#4a95e84e = InputNotifyPeer; +func (m *TLInputNotifyChats) To_InputNotifyPeer() *InputNotifyPeer { + return &InputNotifyPeer{ + Constructor: TLConstructor_CRC32_inputNotifyChats, Data2: m.Data2, } } -func (m *TLChatParticipantAdmin) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLChatParticipantAdmin) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLChatParticipantAdmin) SetInviterId(v int32) { m.Data2.InviterId = v } -func (m *TLChatParticipantAdmin) GetInviterId() int32 { return m.Data2.InviterId } - -func (m *TLChatParticipantAdmin) SetDate(v int32) { m.Data2.Date = v } -func (m *TLChatParticipantAdmin) GetDate() int32 { return m.Data2.Date } - -func NewTLChatParticipantAdmin() *TLChatParticipantAdmin { - return &TLChatParticipantAdmin{Data2: &ChatParticipant_Data{}} +func NewTLInputNotifyChats() *TLInputNotifyChats { + return &TLInputNotifyChats{Data2: &InputNotifyPeer_Data{}} } -func (m *TLChatParticipantAdmin) Encode() []byte { +func (m *TLInputNotifyChats) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipantAdmin)) - - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) - x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_inputNotifyChats)) return x.buf } -func (m *TLChatParticipantAdmin) EncodeToLayer(layer int) []byte { +func (m *TLInputNotifyChats) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipantAdmin)) - - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) - x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_inputNotifyChats)) return x.buf } -func (m *TLChatParticipantAdmin) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetInviterId(dbuf.Int()) - m.SetDate(dbuf.Int()) +func (m *TLInputNotifyChats) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_StickerSet <-- -// + TL_MessagesStickerSet +// InputPeerNotifySettings <-- +// + TL_InputPeerNotifySettings // -func (m *Messages_StickerSet) Encode() []byte { +func (m *InputPeerNotifySettings) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_stickerSet: - t := m.To_MessagesStickerSet() + case TLConstructor_CRC32_inputPeerNotifySettings: + t := m.To_InputPeerNotifySettings() return t.Encode() default: @@ -28609,11 +29842,11 @@ func (m *Messages_StickerSet) Encode() []byte { } } -func (m *Messages_StickerSet) EncodeToLayer(layer int) []byte { +func (m *InputPeerNotifySettings) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_stickerSet: - t := m.To_MessagesStickerSet() + case TLConstructor_CRC32_inputPeerNotifySettings: + t := m.To_InputPeerNotifySettings() return t.EncodeToLayer(layer) default: @@ -28622,11 +29855,11 @@ func (m *Messages_StickerSet) EncodeToLayer(layer int) []byte { } } -func (m *Messages_StickerSet) Decode(dbuf *DecodeBuf) error { +func (m *InputPeerNotifySettings) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_stickerSet: - m2 := &TLMessagesStickerSet{Data2: &Messages_StickerSet_Data{}} + case TLConstructor_CRC32_inputPeerNotifySettings: + m2 := &TLInputPeerNotifySettings{Data2: &InputPeerNotifySettings_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -28636,114 +29869,145 @@ func (m *Messages_StickerSet) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; -func (m *Messages_StickerSet) To_MessagesStickerSet() *TLMessagesStickerSet { - return &TLMessagesStickerSet{ +// inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings; +func (m *InputPeerNotifySettings) To_InputPeerNotifySettings() *TLInputPeerNotifySettings { + return &TLInputPeerNotifySettings{ Data2: m.Data2, } } -// messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; -func (m *TLMessagesStickerSet) To_Messages_StickerSet() *Messages_StickerSet { - return &Messages_StickerSet{ - Constructor: TLConstructor_CRC32_messages_stickerSet, +// inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings; +func (m *TLInputPeerNotifySettings) To_InputPeerNotifySettings() *InputPeerNotifySettings { + return &InputPeerNotifySettings{ + Constructor: TLConstructor_CRC32_inputPeerNotifySettings, Data2: m.Data2, } } -func (m *TLMessagesStickerSet) SetSet(v *StickerSet) { m.Data2.Set = v } -func (m *TLMessagesStickerSet) GetSet() *StickerSet { return m.Data2.Set } +func (m *TLInputPeerNotifySettings) SetShowPreviews(v *Bool) { m.Data2.ShowPreviews = v } +func (m *TLInputPeerNotifySettings) GetShowPreviews() *Bool { return m.Data2.ShowPreviews } -func (m *TLMessagesStickerSet) SetPacks(v []*StickerPack) { m.Data2.Packs = v } -func (m *TLMessagesStickerSet) GetPacks() []*StickerPack { return m.Data2.Packs } +func (m *TLInputPeerNotifySettings) SetSilent(v *Bool) { m.Data2.Silent = v } +func (m *TLInputPeerNotifySettings) GetSilent() *Bool { return m.Data2.Silent } -func (m *TLMessagesStickerSet) SetDocuments(v []*Document) { m.Data2.Documents = v } -func (m *TLMessagesStickerSet) GetDocuments() []*Document { return m.Data2.Documents } +func (m *TLInputPeerNotifySettings) SetMuteUntil(v int32) { m.Data2.MuteUntil = v } +func (m *TLInputPeerNotifySettings) GetMuteUntil() int32 { return m.Data2.MuteUntil } -func NewTLMessagesStickerSet() *TLMessagesStickerSet { - return &TLMessagesStickerSet{Data2: &Messages_StickerSet_Data{}} +func (m *TLInputPeerNotifySettings) SetSound(v string) { m.Data2.Sound = v } +func (m *TLInputPeerNotifySettings) GetSound() string { return m.Data2.Sound } + +func NewTLInputPeerNotifySettings() *TLInputPeerNotifySettings { + return &TLInputPeerNotifySettings{Data2: &InputPeerNotifySettings_Data{}} } -func (m *TLMessagesStickerSet) Encode() []byte { +func (m *TLInputPeerNotifySettings) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickerSet)) + x.Int(int32(TLConstructor_CRC32_inputPeerNotifySettings)) - x.Bytes(m.GetSet().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPacks()))) - for _, v := range m.GetPacks() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetShowPreviews() != nil { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDocuments()))) - for _, v := range m.GetDocuments() { - x.buf = append(x.buf, (*v).Encode()...) + if m.GetSilent() != nil { + flags |= 1 << 1 + } + if m.GetMuteUntil() != 0 { + flags |= 1 << 2 + } + if m.GetSound() != "" { + flags |= 1 << 3 + } + x.UInt(flags) + + if m.GetShowPreviews() != nil { + x.Bytes(m.GetShowPreviews().Encode()) + } + if m.GetSilent() != nil { + x.Bytes(m.GetSilent().Encode()) + } + if m.GetMuteUntil() != 0 { + x.Int(m.GetMuteUntil()) + } + if m.GetSound() != "" { + x.String(m.GetSound()) } return x.buf } -func (m *TLMessagesStickerSet) EncodeToLayer(layer int) []byte { +func (m *TLInputPeerNotifySettings) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_stickerSet)) + x.Int(int32(TLConstructor_CRC32_inputPeerNotifySettings)) - x.Bytes(m.GetSet().EncodeToLayer(layer)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPacks()))) - for _, v := range m.GetPacks() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetShowPreviews() != nil { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDocuments()))) - for _, v := range m.GetDocuments() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + if m.GetSilent() != nil { + flags |= 1 << 1 + } + if m.GetMuteUntil() != 0 { + flags |= 1 << 2 + } + if m.GetSound() != "" { + flags |= 1 << 3 + } + x.UInt(flags) + + if m.GetShowPreviews() != nil { + x.Bytes(m.GetShowPreviews().EncodeToLayer(layer)) + } + if m.GetSilent() != nil { + x.Bytes(m.GetSilent().EncodeToLayer(layer)) + } + if m.GetMuteUntil() != 0 { + x.Int(m.GetMuteUntil()) + } + if m.GetSound() != "" { + x.String(m.GetSound()) } return x.buf } -func (m *TLMessagesStickerSet) Decode(dbuf *DecodeBuf) error { - m1 := &StickerSet{} - m1.Decode(dbuf) - m.SetSet(m1) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err +func (m *TLInputPeerNotifySettings) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m2 := &Bool{} + m2.Decode(dbuf) + m.SetShowPreviews(m2) } - l2 := dbuf.Int() - v2 := make([]*StickerPack, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &StickerPack{} - v2[i].Decode(dbuf) + if (flags & (1 << 1)) != 0 { + m3 := &Bool{} + m3.Decode(dbuf) + m.SetSilent(m3) } - m.SetPacks(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err + if (flags & (1 << 2)) != 0 { + m.SetMuteUntil(dbuf.Int()) } - l3 := dbuf.Int() - v3 := make([]*Document, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Document{} - v3[i].Decode(dbuf) + if (flags & (1 << 3)) != 0 { + m.SetSound(dbuf.String()) } - m.SetDocuments(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_HighScores <-- -// + TL_MessagesHighScores +// ExportedChatInvite <-- +// + TL_ChatInviteEmpty +// + TL_ChatInviteExported // -func (m *Messages_HighScores) Encode() []byte { +func (m *ExportedChatInvite) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_highScores: - t := m.To_MessagesHighScores() + case TLConstructor_CRC32_chatInviteEmpty: + t := m.To_ChatInviteEmpty() + return t.Encode() + case TLConstructor_CRC32_chatInviteExported: + t := m.To_ChatInviteExported() return t.Encode() default: @@ -28752,11 +30016,14 @@ func (m *Messages_HighScores) Encode() []byte { } } -func (m *Messages_HighScores) EncodeToLayer(layer int) []byte { +func (m *ExportedChatInvite) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_highScores: - t := m.To_MessagesHighScores() + case TLConstructor_CRC32_chatInviteEmpty: + t := m.To_ChatInviteEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_chatInviteExported: + t := m.To_ChatInviteExported() return t.EncodeToLayer(layer) default: @@ -28765,11 +30032,15 @@ func (m *Messages_HighScores) EncodeToLayer(layer int) []byte { } } -func (m *Messages_HighScores) Decode(dbuf *DecodeBuf) error { +func (m *ExportedChatInvite) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_highScores: - m2 := &TLMessagesHighScores{Data2: &Messages_HighScores_Data{}} + case TLConstructor_CRC32_chatInviteEmpty: + m2 := &TLChatInviteEmpty{Data2: &ExportedChatInvite_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_chatInviteExported: + m2 := &TLChatInviteExported{Data2: &ExportedChatInvite_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -28779,106 +30050,107 @@ func (m *Messages_HighScores) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores; -func (m *Messages_HighScores) To_MessagesHighScores() *TLMessagesHighScores { - return &TLMessagesHighScores{ +// chatInviteEmpty#69df3769 = ExportedChatInvite; +func (m *ExportedChatInvite) To_ChatInviteEmpty() *TLChatInviteEmpty { + return &TLChatInviteEmpty{ Data2: m.Data2, } } -// messages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores; -func (m *TLMessagesHighScores) To_Messages_HighScores() *Messages_HighScores { - return &Messages_HighScores{ - Constructor: TLConstructor_CRC32_messages_highScores, +// chatInviteExported#fc2e05bc link:string = ExportedChatInvite; +func (m *ExportedChatInvite) To_ChatInviteExported() *TLChatInviteExported { + return &TLChatInviteExported{ + Data2: m.Data2, + } +} + +// chatInviteEmpty#69df3769 = ExportedChatInvite; +func (m *TLChatInviteEmpty) To_ExportedChatInvite() *ExportedChatInvite { + return &ExportedChatInvite{ + Constructor: TLConstructor_CRC32_chatInviteEmpty, Data2: m.Data2, } } -func (m *TLMessagesHighScores) SetScores(v []*HighScore) { m.Data2.Scores = v } -func (m *TLMessagesHighScores) GetScores() []*HighScore { return m.Data2.Scores } +func NewTLChatInviteEmpty() *TLChatInviteEmpty { + return &TLChatInviteEmpty{Data2: &ExportedChatInvite_Data{}} +} -func (m *TLMessagesHighScores) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLMessagesHighScores) GetUsers() []*User { return m.Data2.Users } +func (m *TLChatInviteEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_chatInviteEmpty)) -func NewTLMessagesHighScores() *TLMessagesHighScores { - return &TLMessagesHighScores{Data2: &Messages_HighScores_Data{}} + return x.buf } -func (m *TLMessagesHighScores) Encode() []byte { +func (m *TLChatInviteEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_highScores)) + x.Int(int32(TLConstructor_CRC32_chatInviteEmpty)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetScores()))) - for _, v := range m.GetScores() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) + return x.buf +} + +func (m *TLChatInviteEmpty) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// chatInviteExported#fc2e05bc link:string = ExportedChatInvite; +func (m *TLChatInviteExported) To_ExportedChatInvite() *ExportedChatInvite { + return &ExportedChatInvite{ + Constructor: TLConstructor_CRC32_chatInviteExported, + Data2: m.Data2, } +} - return x.buf +func (m *TLChatInviteExported) SetLink(v string) { m.Data2.Link = v } +func (m *TLChatInviteExported) GetLink() string { return m.Data2.Link } + +func NewTLChatInviteExported() *TLChatInviteExported { + return &TLChatInviteExported{Data2: &ExportedChatInvite_Data{}} } -func (m *TLMessagesHighScores) EncodeToLayer(layer int) []byte { +func (m *TLChatInviteExported) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_highScores)) + x.Int(int32(TLConstructor_CRC32_chatInviteExported)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetScores()))) - for _, v := range m.GetScores() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.String(m.GetLink()) return x.buf } -func (m *TLMessagesHighScores) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*HighScore, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &HighScore{} - v1[i].Decode(dbuf) - } - m.SetScores(v1) +func (m *TLChatInviteExported) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_chatInviteExported)) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*User, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &User{} - v2[i].Decode(dbuf) - } - m.SetUsers(v2) + x.String(m.GetLink()) + + return x.buf +} + +func (m *TLChatInviteExported) Decode(dbuf *DecodeBuf) error { + m.SetLink(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// UserFull <-- -// + TL_UserFull +// Auth_CodeType <-- +// + TL_AuthCodeTypeSms +// + TL_AuthCodeTypeCall +// + TL_AuthCodeTypeFlashCall // -func (m *UserFull) Encode() []byte { +func (m *Auth_CodeType) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_userFull: - t := m.To_UserFull() + case TLConstructor_CRC32_auth_codeTypeSms: + t := m.To_AuthCodeTypeSms() + return t.Encode() + case TLConstructor_CRC32_auth_codeTypeCall: + t := m.To_AuthCodeTypeCall() + return t.Encode() + case TLConstructor_CRC32_auth_codeTypeFlashCall: + t := m.To_AuthCodeTypeFlashCall() return t.Encode() default: @@ -28887,11 +30159,17 @@ func (m *UserFull) Encode() []byte { } } -func (m *UserFull) EncodeToLayer(layer int) []byte { +func (m *Auth_CodeType) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_userFull: - t := m.To_UserFull() + case TLConstructor_CRC32_auth_codeTypeSms: + t := m.To_AuthCodeTypeSms() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_auth_codeTypeCall: + t := m.To_AuthCodeTypeCall() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_auth_codeTypeFlashCall: + t := m.To_AuthCodeTypeFlashCall() return t.EncodeToLayer(layer) default: @@ -28900,11 +30178,19 @@ func (m *UserFull) EncodeToLayer(layer int) []byte { } } -func (m *UserFull) Decode(dbuf *DecodeBuf) error { +func (m *Auth_CodeType) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_userFull: - m2 := &TLUserFull{Data2: &UserFull_Data{}} + case TLConstructor_CRC32_auth_codeTypeSms: + m2 := &TLAuthCodeTypeSms{Data2: &Auth_CodeType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_auth_codeTypeCall: + m2 := &TLAuthCodeTypeCall{Data2: &Auth_CodeType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_auth_codeTypeFlashCall: + m2 := &TLAuthCodeTypeFlashCall{Data2: &Auth_CodeType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -28914,291 +30200,165 @@ func (m *UserFull) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; -func (m *UserFull) To_UserFull() *TLUserFull { - return &TLUserFull{ +// auth.codeTypeSms#72a3158c = auth.CodeType; +func (m *Auth_CodeType) To_AuthCodeTypeSms() *TLAuthCodeTypeSms { + return &TLAuthCodeTypeSms{ Data2: m.Data2, } } -// userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; -func (m *TLUserFull) To_UserFull() *UserFull { - return &UserFull{ - Constructor: TLConstructor_CRC32_userFull, +// auth.codeTypeCall#741cd3e3 = auth.CodeType; +func (m *Auth_CodeType) To_AuthCodeTypeCall() *TLAuthCodeTypeCall { + return &TLAuthCodeTypeCall{ + Data2: m.Data2, + } +} + +// auth.codeTypeFlashCall#226ccefb = auth.CodeType; +func (m *Auth_CodeType) To_AuthCodeTypeFlashCall() *TLAuthCodeTypeFlashCall { + return &TLAuthCodeTypeFlashCall{ + Data2: m.Data2, + } +} + +// auth.codeTypeSms#72a3158c = auth.CodeType; +func (m *TLAuthCodeTypeSms) To_Auth_CodeType() *Auth_CodeType { + return &Auth_CodeType{ + Constructor: TLConstructor_CRC32_auth_codeTypeSms, Data2: m.Data2, } } -func (m *TLUserFull) SetBlocked(v bool) { m.Data2.Blocked = v } -func (m *TLUserFull) GetBlocked() bool { return m.Data2.Blocked } +func NewTLAuthCodeTypeSms() *TLAuthCodeTypeSms { + return &TLAuthCodeTypeSms{Data2: &Auth_CodeType_Data{}} +} -func (m *TLUserFull) SetPhoneCallsAvailable(v bool) { m.Data2.PhoneCallsAvailable = v } -func (m *TLUserFull) GetPhoneCallsAvailable() bool { return m.Data2.PhoneCallsAvailable } +func (m *TLAuthCodeTypeSms) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_codeTypeSms)) -func (m *TLUserFull) SetPhoneCallsPrivate(v bool) { m.Data2.PhoneCallsPrivate = v } -func (m *TLUserFull) GetPhoneCallsPrivate() bool { return m.Data2.PhoneCallsPrivate } + return x.buf +} -func (m *TLUserFull) SetUser(v *User) { m.Data2.User = v } -func (m *TLUserFull) GetUser() *User { return m.Data2.User } +func (m *TLAuthCodeTypeSms) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_codeTypeSms)) -func (m *TLUserFull) SetAbout(v string) { m.Data2.About = v } -func (m *TLUserFull) GetAbout() string { return m.Data2.About } + return x.buf +} -func (m *TLUserFull) SetLink(v *Contacts_Link) { m.Data2.Link = v } -func (m *TLUserFull) GetLink() *Contacts_Link { return m.Data2.Link } +func (m *TLAuthCodeTypeSms) Decode(dbuf *DecodeBuf) error { -func (m *TLUserFull) SetProfilePhoto(v *Photo) { m.Data2.ProfilePhoto = v } -func (m *TLUserFull) GetProfilePhoto() *Photo { return m.Data2.ProfilePhoto } + return dbuf.err +} -func (m *TLUserFull) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } -func (m *TLUserFull) GetNotifySettings() *PeerNotifySettings { return m.Data2.NotifySettings } +// auth.codeTypeCall#741cd3e3 = auth.CodeType; +func (m *TLAuthCodeTypeCall) To_Auth_CodeType() *Auth_CodeType { + return &Auth_CodeType{ + Constructor: TLConstructor_CRC32_auth_codeTypeCall, + Data2: m.Data2, + } +} -func (m *TLUserFull) SetBotInfo(v *BotInfo) { m.Data2.BotInfo = v } -func (m *TLUserFull) GetBotInfo() *BotInfo { return m.Data2.BotInfo } +func NewTLAuthCodeTypeCall() *TLAuthCodeTypeCall { + return &TLAuthCodeTypeCall{Data2: &Auth_CodeType_Data{}} +} -func (m *TLUserFull) SetCommonChatsCount(v int32) { m.Data2.CommonChatsCount = v } -func (m *TLUserFull) GetCommonChatsCount() int32 { return m.Data2.CommonChatsCount } +func (m *TLAuthCodeTypeCall) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_codeTypeCall)) -func NewTLUserFull() *TLUserFull { - return &TLUserFull{Data2: &UserFull_Data{}} + return x.buf } -func (m *TLUserFull) Encode() []byte { +func (m *TLAuthCodeTypeCall) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userFull)) + x.Int(int32(TLConstructor_CRC32_auth_codeTypeCall)) - // flags - var flags uint32 = 0 - if m.GetBlocked() == true { - flags |= 1 << 0 - } - if m.GetPhoneCallsAvailable() == true { - flags |= 1 << 4 - } - if m.GetPhoneCallsPrivate() == true { - flags |= 1 << 5 - } - if m.GetAbout() != "" { - flags |= 1 << 1 - } - if m.GetProfilePhoto() != nil { - flags |= 1 << 2 - } - if m.GetBotInfo() != nil { - flags |= 1 << 3 - } - x.UInt(flags) + return x.buf +} - x.Bytes(m.GetUser().Encode()) - if m.GetAbout() != "" { - x.String(m.GetAbout()) - } - x.Bytes(m.GetLink().Encode()) - if m.GetProfilePhoto() != nil { - x.Bytes(m.GetProfilePhoto().Encode()) - } - x.Bytes(m.GetNotifySettings().Encode()) - if m.GetBotInfo() != nil { - x.Bytes(m.GetBotInfo().Encode()) +func (m *TLAuthCodeTypeCall) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// auth.codeTypeFlashCall#226ccefb = auth.CodeType; +func (m *TLAuthCodeTypeFlashCall) To_Auth_CodeType() *Auth_CodeType { + return &Auth_CodeType{ + Constructor: TLConstructor_CRC32_auth_codeTypeFlashCall, + Data2: m.Data2, } - x.Int(m.GetCommonChatsCount()) +} - return x.buf +func NewTLAuthCodeTypeFlashCall() *TLAuthCodeTypeFlashCall { + return &TLAuthCodeTypeFlashCall{Data2: &Auth_CodeType_Data{}} } -func (m *TLUserFull) EncodeToLayer(layer int) []byte { +func (m *TLAuthCodeTypeFlashCall) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userFull)) + x.Int(int32(TLConstructor_CRC32_auth_codeTypeFlashCall)) - // flags - var flags uint32 = 0 - if m.GetBlocked() == true { - flags |= 1 << 0 - } - if m.GetPhoneCallsAvailable() == true { - flags |= 1 << 4 - } - if m.GetPhoneCallsPrivate() == true { - flags |= 1 << 5 - } - if m.GetAbout() != "" { - flags |= 1 << 1 - } - if m.GetProfilePhoto() != nil { - flags |= 1 << 2 - } - if m.GetBotInfo() != nil { - flags |= 1 << 3 - } - x.UInt(flags) + return x.buf +} - x.Bytes(m.GetUser().EncodeToLayer(layer)) - if m.GetAbout() != "" { - x.String(m.GetAbout()) - } - x.Bytes(m.GetLink().EncodeToLayer(layer)) - if m.GetProfilePhoto() != nil { - x.Bytes(m.GetProfilePhoto().EncodeToLayer(layer)) - } - x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) - if m.GetBotInfo() != nil { - x.Bytes(m.GetBotInfo().EncodeToLayer(layer)) - } - x.Int(m.GetCommonChatsCount()) +func (m *TLAuthCodeTypeFlashCall) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_codeTypeFlashCall)) return x.buf } -func (m *TLUserFull) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetBlocked(true) - } - if (flags & (1 << 4)) != 0 { - m.SetPhoneCallsAvailable(true) - } - if (flags & (1 << 5)) != 0 { - m.SetPhoneCallsPrivate(true) - } - m5 := &User{} - m5.Decode(dbuf) - m.SetUser(m5) - if (flags & (1 << 1)) != 0 { - m.SetAbout(dbuf.String()) - } - m7 := &Contacts_Link{} - m7.Decode(dbuf) - m.SetLink(m7) - if (flags & (1 << 2)) != 0 { - m8 := &Photo{} - m8.Decode(dbuf) - m.SetProfilePhoto(m8) - } - m9 := &PeerNotifySettings{} - m9.Decode(dbuf) - m.SetNotifySettings(m9) - if (flags & (1 << 3)) != 0 { - m10 := &BotInfo{} - m10.Decode(dbuf) - m.SetBotInfo(m10) - } - m.SetCommonChatsCount(dbuf.Int()) +func (m *TLAuthCodeTypeFlashCall) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Help_InviteText <-- -// + TL_HelpInviteText +// Storage_FileType <-- +// + TL_StorageFileUnknown +// + TL_StorageFilePartial +// + TL_StorageFileJpeg +// + TL_StorageFileGif +// + TL_StorageFilePng +// + TL_StorageFilePdf +// + TL_StorageFileMp3 +// + TL_StorageFileMov +// + TL_StorageFileMp4 +// + TL_StorageFileWebp // -func (m *Help_InviteText) Encode() []byte { +func (m *Storage_FileType) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_help_inviteText: - t := m.To_HelpInviteText() + case TLConstructor_CRC32_storage_fileUnknown: + t := m.To_StorageFileUnknown() return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Help_InviteText) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_help_inviteText: - t := m.To_HelpInviteText() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Help_InviteText) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_help_inviteText: - m2 := &TLHelpInviteText{Data2: &Help_InviteText_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// help.inviteText#18cb9f78 message:string = help.InviteText; -func (m *Help_InviteText) To_HelpInviteText() *TLHelpInviteText { - return &TLHelpInviteText{ - Data2: m.Data2, - } -} - -// help.inviteText#18cb9f78 message:string = help.InviteText; -func (m *TLHelpInviteText) To_Help_InviteText() *Help_InviteText { - return &Help_InviteText{ - Constructor: TLConstructor_CRC32_help_inviteText, - Data2: m.Data2, - } -} - -func (m *TLHelpInviteText) SetMessage(v string) { m.Data2.Message = v } -func (m *TLHelpInviteText) GetMessage() string { return m.Data2.Message } - -func NewTLHelpInviteText() *TLHelpInviteText { - return &TLHelpInviteText{Data2: &Help_InviteText_Data{}} -} - -func (m *TLHelpInviteText) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_inviteText)) - - x.String(m.GetMessage()) - - return x.buf -} - -func (m *TLHelpInviteText) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_inviteText)) - - x.String(m.GetMessage()) - - return x.buf -} - -func (m *TLHelpInviteText) Decode(dbuf *DecodeBuf) error { - m.SetMessage(dbuf.String()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// ContactLink <-- -// + TL_ContactLinkUnknown -// + TL_ContactLinkNone -// + TL_ContactLinkHasPhone -// + TL_ContactLinkContact -// - -func (m *ContactLink) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_contactLinkUnknown: - t := m.To_ContactLinkUnknown() + case TLConstructor_CRC32_storage_filePartial: + t := m.To_StorageFilePartial() return t.Encode() - case TLConstructor_CRC32_contactLinkNone: - t := m.To_ContactLinkNone() + case TLConstructor_CRC32_storage_fileJpeg: + t := m.To_StorageFileJpeg() return t.Encode() - case TLConstructor_CRC32_contactLinkHasPhone: - t := m.To_ContactLinkHasPhone() + case TLConstructor_CRC32_storage_fileGif: + t := m.To_StorageFileGif() return t.Encode() - case TLConstructor_CRC32_contactLinkContact: - t := m.To_ContactLinkContact() + case TLConstructor_CRC32_storage_filePng: + t := m.To_StorageFilePng() + return t.Encode() + case TLConstructor_CRC32_storage_filePdf: + t := m.To_StorageFilePdf() + return t.Encode() + case TLConstructor_CRC32_storage_fileMp3: + t := m.To_StorageFileMp3() + return t.Encode() + case TLConstructor_CRC32_storage_fileMov: + t := m.To_StorageFileMov() + return t.Encode() + case TLConstructor_CRC32_storage_fileMp4: + t := m.To_StorageFileMp4() + return t.Encode() + case TLConstructor_CRC32_storage_fileWebp: + t := m.To_StorageFileWebp() return t.Encode() default: @@ -29207,20 +30367,38 @@ func (m *ContactLink) Encode() []byte { } } -func (m *ContactLink) EncodeToLayer(layer int) []byte { +func (m *Storage_FileType) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_contactLinkUnknown: - t := m.To_ContactLinkUnknown() + case TLConstructor_CRC32_storage_fileUnknown: + t := m.To_StorageFileUnknown() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_contactLinkNone: - t := m.To_ContactLinkNone() + case TLConstructor_CRC32_storage_filePartial: + t := m.To_StorageFilePartial() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_contactLinkHasPhone: - t := m.To_ContactLinkHasPhone() + case TLConstructor_CRC32_storage_fileJpeg: + t := m.To_StorageFileJpeg() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_contactLinkContact: - t := m.To_ContactLinkContact() + case TLConstructor_CRC32_storage_fileGif: + t := m.To_StorageFileGif() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_storage_filePng: + t := m.To_StorageFilePng() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_storage_filePdf: + t := m.To_StorageFilePdf() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_storage_fileMp3: + t := m.To_StorageFileMp3() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_storage_fileMov: + t := m.To_StorageFileMov() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_storage_fileMp4: + t := m.To_StorageFileMp4() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_storage_fileWebp: + t := m.To_StorageFileWebp() return t.EncodeToLayer(layer) default: @@ -29229,23 +30407,47 @@ func (m *ContactLink) EncodeToLayer(layer int) []byte { } } -func (m *ContactLink) Decode(dbuf *DecodeBuf) error { +func (m *Storage_FileType) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_contactLinkUnknown: - m2 := &TLContactLinkUnknown{Data2: &ContactLink_Data{}} + case TLConstructor_CRC32_storage_fileUnknown: + m2 := &TLStorageFileUnknown{Data2: &Storage_FileType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_contactLinkNone: - m2 := &TLContactLinkNone{Data2: &ContactLink_Data{}} + case TLConstructor_CRC32_storage_filePartial: + m2 := &TLStorageFilePartial{Data2: &Storage_FileType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_contactLinkHasPhone: - m2 := &TLContactLinkHasPhone{Data2: &ContactLink_Data{}} + case TLConstructor_CRC32_storage_fileJpeg: + m2 := &TLStorageFileJpeg{Data2: &Storage_FileType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_contactLinkContact: - m2 := &TLContactLinkContact{Data2: &ContactLink_Data{}} + case TLConstructor_CRC32_storage_fileGif: + m2 := &TLStorageFileGif{Data2: &Storage_FileType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_storage_filePng: + m2 := &TLStorageFilePng{Data2: &Storage_FileType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_storage_filePdf: + m2 := &TLStorageFilePdf{Data2: &Storage_FileType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_storage_fileMp3: + m2 := &TLStorageFileMp3{Data2: &Storage_FileType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_storage_fileMov: + m2 := &TLStorageFileMov{Data2: &Storage_FileType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_storage_fileMp4: + m2 := &TLStorageFileMp4{Data2: &Storage_FileType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_storage_fileWebp: + m2 := &TLStorageFileWebp{Data2: &Storage_FileType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -29255,441 +30457,411 @@ func (m *ContactLink) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// contactLinkUnknown#5f4f9247 = ContactLink; -func (m *ContactLink) To_ContactLinkUnknown() *TLContactLinkUnknown { - return &TLContactLinkUnknown{ +// storage.fileUnknown#aa963b05 = storage.FileType; +func (m *Storage_FileType) To_StorageFileUnknown() *TLStorageFileUnknown { + return &TLStorageFileUnknown{ Data2: m.Data2, } } -// contactLinkNone#feedd3ad = ContactLink; -func (m *ContactLink) To_ContactLinkNone() *TLContactLinkNone { - return &TLContactLinkNone{ +// storage.filePartial#40bc6f52 = storage.FileType; +func (m *Storage_FileType) To_StorageFilePartial() *TLStorageFilePartial { + return &TLStorageFilePartial{ Data2: m.Data2, } } -// contactLinkHasPhone#268f3f59 = ContactLink; -func (m *ContactLink) To_ContactLinkHasPhone() *TLContactLinkHasPhone { - return &TLContactLinkHasPhone{ +// storage.fileJpeg#7efe0e = storage.FileType; +func (m *Storage_FileType) To_StorageFileJpeg() *TLStorageFileJpeg { + return &TLStorageFileJpeg{ Data2: m.Data2, } } -// contactLinkContact#d502c2d0 = ContactLink; -func (m *ContactLink) To_ContactLinkContact() *TLContactLinkContact { - return &TLContactLinkContact{ +// storage.fileGif#cae1aadf = storage.FileType; +func (m *Storage_FileType) To_StorageFileGif() *TLStorageFileGif { + return &TLStorageFileGif{ Data2: m.Data2, } } -// contactLinkUnknown#5f4f9247 = ContactLink; -func (m *TLContactLinkUnknown) To_ContactLink() *ContactLink { - return &ContactLink{ - Constructor: TLConstructor_CRC32_contactLinkUnknown, +// storage.filePng#a4f63c0 = storage.FileType; +func (m *Storage_FileType) To_StorageFilePng() *TLStorageFilePng { + return &TLStorageFilePng{ + Data2: m.Data2, + } +} + +// storage.filePdf#ae1e508d = storage.FileType; +func (m *Storage_FileType) To_StorageFilePdf() *TLStorageFilePdf { + return &TLStorageFilePdf{ + Data2: m.Data2, + } +} + +// storage.fileMp3#528a0677 = storage.FileType; +func (m *Storage_FileType) To_StorageFileMp3() *TLStorageFileMp3 { + return &TLStorageFileMp3{ + Data2: m.Data2, + } +} + +// storage.fileMov#4b09ebbc = storage.FileType; +func (m *Storage_FileType) To_StorageFileMov() *TLStorageFileMov { + return &TLStorageFileMov{ + Data2: m.Data2, + } +} + +// storage.fileMp4#b3cea0e4 = storage.FileType; +func (m *Storage_FileType) To_StorageFileMp4() *TLStorageFileMp4 { + return &TLStorageFileMp4{ + Data2: m.Data2, + } +} + +// storage.fileWebp#1081464c = storage.FileType; +func (m *Storage_FileType) To_StorageFileWebp() *TLStorageFileWebp { + return &TLStorageFileWebp{ + Data2: m.Data2, + } +} + +// storage.fileUnknown#aa963b05 = storage.FileType; +func (m *TLStorageFileUnknown) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_fileUnknown, Data2: m.Data2, } } -func NewTLContactLinkUnknown() *TLContactLinkUnknown { - return &TLContactLinkUnknown{Data2: &ContactLink_Data{}} +func NewTLStorageFileUnknown() *TLStorageFileUnknown { + return &TLStorageFileUnknown{Data2: &Storage_FileType_Data{}} } -func (m *TLContactLinkUnknown) Encode() []byte { +func (m *TLStorageFileUnknown) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactLinkUnknown)) + x.Int(int32(TLConstructor_CRC32_storage_fileUnknown)) return x.buf } -func (m *TLContactLinkUnknown) EncodeToLayer(layer int) []byte { +func (m *TLStorageFileUnknown) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactLinkUnknown)) + x.Int(int32(TLConstructor_CRC32_storage_fileUnknown)) return x.buf } -func (m *TLContactLinkUnknown) Decode(dbuf *DecodeBuf) error { +func (m *TLStorageFileUnknown) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// contactLinkNone#feedd3ad = ContactLink; -func (m *TLContactLinkNone) To_ContactLink() *ContactLink { - return &ContactLink{ - Constructor: TLConstructor_CRC32_contactLinkNone, +// storage.filePartial#40bc6f52 = storage.FileType; +func (m *TLStorageFilePartial) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_filePartial, Data2: m.Data2, } } -func NewTLContactLinkNone() *TLContactLinkNone { - return &TLContactLinkNone{Data2: &ContactLink_Data{}} +func NewTLStorageFilePartial() *TLStorageFilePartial { + return &TLStorageFilePartial{Data2: &Storage_FileType_Data{}} } -func (m *TLContactLinkNone) Encode() []byte { +func (m *TLStorageFilePartial) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactLinkNone)) + x.Int(int32(TLConstructor_CRC32_storage_filePartial)) return x.buf } -func (m *TLContactLinkNone) EncodeToLayer(layer int) []byte { +func (m *TLStorageFilePartial) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactLinkNone)) + x.Int(int32(TLConstructor_CRC32_storage_filePartial)) return x.buf } -func (m *TLContactLinkNone) Decode(dbuf *DecodeBuf) error { +func (m *TLStorageFilePartial) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// contactLinkHasPhone#268f3f59 = ContactLink; -func (m *TLContactLinkHasPhone) To_ContactLink() *ContactLink { - return &ContactLink{ - Constructor: TLConstructor_CRC32_contactLinkHasPhone, +// storage.fileJpeg#7efe0e = storage.FileType; +func (m *TLStorageFileJpeg) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_fileJpeg, Data2: m.Data2, } } -func NewTLContactLinkHasPhone() *TLContactLinkHasPhone { - return &TLContactLinkHasPhone{Data2: &ContactLink_Data{}} +func NewTLStorageFileJpeg() *TLStorageFileJpeg { + return &TLStorageFileJpeg{Data2: &Storage_FileType_Data{}} } -func (m *TLContactLinkHasPhone) Encode() []byte { +func (m *TLStorageFileJpeg) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactLinkHasPhone)) + x.Int(int32(TLConstructor_CRC32_storage_fileJpeg)) return x.buf } -func (m *TLContactLinkHasPhone) EncodeToLayer(layer int) []byte { +func (m *TLStorageFileJpeg) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactLinkHasPhone)) + x.Int(int32(TLConstructor_CRC32_storage_fileJpeg)) return x.buf } -func (m *TLContactLinkHasPhone) Decode(dbuf *DecodeBuf) error { +func (m *TLStorageFileJpeg) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// contactLinkContact#d502c2d0 = ContactLink; -func (m *TLContactLinkContact) To_ContactLink() *ContactLink { - return &ContactLink{ - Constructor: TLConstructor_CRC32_contactLinkContact, +// storage.fileGif#cae1aadf = storage.FileType; +func (m *TLStorageFileGif) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_fileGif, Data2: m.Data2, } } -func NewTLContactLinkContact() *TLContactLinkContact { - return &TLContactLinkContact{Data2: &ContactLink_Data{}} +func NewTLStorageFileGif() *TLStorageFileGif { + return &TLStorageFileGif{Data2: &Storage_FileType_Data{}} } -func (m *TLContactLinkContact) Encode() []byte { +func (m *TLStorageFileGif) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactLinkContact)) + x.Int(int32(TLConstructor_CRC32_storage_fileGif)) return x.buf } -func (m *TLContactLinkContact) EncodeToLayer(layer int) []byte { +func (m *TLStorageFileGif) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactLinkContact)) + x.Int(int32(TLConstructor_CRC32_storage_fileGif)) return x.buf } -func (m *TLContactLinkContact) Decode(dbuf *DecodeBuf) error { +func (m *TLStorageFileGif) Decode(dbuf *DecodeBuf) error { return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// PhoneConnection <-- -// + TL_PhoneConnection -// - -func (m *PhoneConnection) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_phoneConnection: - t := m.To_PhoneConnection() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// storage.filePng#a4f63c0 = storage.FileType; +func (m *TLStorageFilePng) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_filePng, + Data2: m.Data2, } } -func (m *PhoneConnection) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_phoneConnection: - t := m.To_PhoneConnection() - return t.EncodeToLayer(layer) +func NewTLStorageFilePng() *TLStorageFilePng { + return &TLStorageFilePng{Data2: &Storage_FileType_Data{}} +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLStorageFilePng) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_storage_filePng)) + + return x.buf } -func (m *PhoneConnection) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_phoneConnection: - m2 := &TLPhoneConnection{Data2: &PhoneConnection_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLStorageFilePng) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_storage_filePng)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + return x.buf } -// phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; -func (m *PhoneConnection) To_PhoneConnection() *TLPhoneConnection { - return &TLPhoneConnection{ - Data2: m.Data2, - } +func (m *TLStorageFilePng) Decode(dbuf *DecodeBuf) error { + + return dbuf.err } -// phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; -func (m *TLPhoneConnection) To_PhoneConnection() *PhoneConnection { - return &PhoneConnection{ - Constructor: TLConstructor_CRC32_phoneConnection, +// storage.filePdf#ae1e508d = storage.FileType; +func (m *TLStorageFilePdf) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_filePdf, Data2: m.Data2, } } -func (m *TLPhoneConnection) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhoneConnection) GetId() int64 { return m.Data2.Id } - -func (m *TLPhoneConnection) SetIp(v string) { m.Data2.Ip = v } -func (m *TLPhoneConnection) GetIp() string { return m.Data2.Ip } - -func (m *TLPhoneConnection) SetIpv6(v string) { m.Data2.Ipv6 = v } -func (m *TLPhoneConnection) GetIpv6() string { return m.Data2.Ipv6 } - -func (m *TLPhoneConnection) SetPort(v int32) { m.Data2.Port = v } -func (m *TLPhoneConnection) GetPort() int32 { return m.Data2.Port } - -func (m *TLPhoneConnection) SetPeerTag(v []byte) { m.Data2.PeerTag = v } -func (m *TLPhoneConnection) GetPeerTag() []byte { return m.Data2.PeerTag } - -func NewTLPhoneConnection() *TLPhoneConnection { - return &TLPhoneConnection{Data2: &PhoneConnection_Data{}} +func NewTLStorageFilePdf() *TLStorageFilePdf { + return &TLStorageFilePdf{Data2: &Storage_FileType_Data{}} } -func (m *TLPhoneConnection) Encode() []byte { +func (m *TLStorageFilePdf) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneConnection)) - - x.Long(m.GetId()) - x.String(m.GetIp()) - x.String(m.GetIpv6()) - x.Int(m.GetPort()) - x.StringBytes(m.GetPeerTag()) + x.Int(int32(TLConstructor_CRC32_storage_filePdf)) return x.buf } -func (m *TLPhoneConnection) EncodeToLayer(layer int) []byte { +func (m *TLStorageFilePdf) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneConnection)) - - x.Long(m.GetId()) - x.String(m.GetIp()) - x.String(m.GetIpv6()) - x.Int(m.GetPort()) - x.StringBytes(m.GetPeerTag()) + x.Int(int32(TLConstructor_CRC32_storage_filePdf)) return x.buf } -func (m *TLPhoneConnection) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetIp(dbuf.String()) - m.SetIpv6(dbuf.String()) - m.SetPort(dbuf.Int()) - m.SetPeerTag(dbuf.StringBytes()) +func (m *TLStorageFilePdf) Decode(dbuf *DecodeBuf) error { return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// InputSingleMedia <-- -// + TL_InputSingleMedia -// +// storage.fileMp3#528a0677 = storage.FileType; +func (m *TLStorageFileMp3) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_fileMp3, + Data2: m.Data2, + } +} -func (m *InputSingleMedia) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputSingleMedia: - t := m.To_InputSingleMedia() - return t.Encode() +func NewTLStorageFileMp3() *TLStorageFileMp3 { + return &TLStorageFileMp3{Data2: &Storage_FileType_Data{}} +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLStorageFileMp3) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_storage_fileMp3)) + + return x.buf } -func (m *InputSingleMedia) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputSingleMedia: - t := m.To_InputSingleMedia() - return t.EncodeToLayer(layer) +func (m *TLStorageFileMp3) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_storage_fileMp3)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *InputSingleMedia) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputSingleMedia: - m2 := &TLInputSingleMedia{Data2: &InputSingleMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLStorageFileMp3) Decode(dbuf *DecodeBuf) error { - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia; -func (m *InputSingleMedia) To_InputSingleMedia() *TLInputSingleMedia { - return &TLInputSingleMedia{ - Data2: m.Data2, - } -} - -// inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia; -func (m *TLInputSingleMedia) To_InputSingleMedia() *InputSingleMedia { - return &InputSingleMedia{ - Constructor: TLConstructor_CRC32_inputSingleMedia, +// storage.fileMov#4b09ebbc = storage.FileType; +func (m *TLStorageFileMov) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_fileMov, Data2: m.Data2, } } -func (m *TLInputSingleMedia) SetMedia(v *InputMedia) { m.Data2.Media = v } -func (m *TLInputSingleMedia) GetMedia() *InputMedia { return m.Data2.Media } +func NewTLStorageFileMov() *TLStorageFileMov { + return &TLStorageFileMov{Data2: &Storage_FileType_Data{}} +} -func (m *TLInputSingleMedia) SetRandomId(v int64) { m.Data2.RandomId = v } -func (m *TLInputSingleMedia) GetRandomId() int64 { return m.Data2.RandomId } +func (m *TLStorageFileMov) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_storage_fileMov)) -func (m *TLInputSingleMedia) SetMessage(v string) { m.Data2.Message = v } -func (m *TLInputSingleMedia) GetMessage() string { return m.Data2.Message } + return x.buf +} -func (m *TLInputSingleMedia) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLInputSingleMedia) GetEntities() []*MessageEntity { return m.Data2.Entities } +func (m *TLStorageFileMov) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_storage_fileMov)) -func NewTLInputSingleMedia() *TLInputSingleMedia { - return &TLInputSingleMedia{Data2: &InputSingleMedia_Data{}} + return x.buf } -func (m *TLInputSingleMedia) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSingleMedia)) +func (m *TLStorageFileMov) Decode(dbuf *DecodeBuf) error { - // flags - var flags uint32 = 0 - if m.GetEntities() != nil { - flags |= 1 << 0 - } - x.UInt(flags) + return dbuf.err +} - x.Bytes(m.GetMedia().Encode()) - x.Long(m.GetRandomId()) - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } +// storage.fileMp4#b3cea0e4 = storage.FileType; +func (m *TLStorageFileMp4) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_fileMp4, + Data2: m.Data2, } +} + +func NewTLStorageFileMp4() *TLStorageFileMp4 { + return &TLStorageFileMp4{Data2: &Storage_FileType_Data{}} +} + +func (m *TLStorageFileMp4) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_storage_fileMp4)) return x.buf } -func (m *TLInputSingleMedia) EncodeToLayer(layer int) []byte { +func (m *TLStorageFileMp4) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSingleMedia)) + x.Int(int32(TLConstructor_CRC32_storage_fileMp4)) - // flags - var flags uint32 = 0 - if m.GetEntities() != nil { - flags |= 1 << 0 - } - x.UInt(flags) + return x.buf +} - x.Bytes(m.GetMedia().EncodeToLayer(layer)) - x.Long(m.GetRandomId()) - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } +func (m *TLStorageFileMp4) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// storage.fileWebp#1081464c = storage.FileType; +func (m *TLStorageFileWebp) To_Storage_FileType() *Storage_FileType { + return &Storage_FileType{ + Constructor: TLConstructor_CRC32_storage_fileWebp, + Data2: m.Data2, } +} + +func NewTLStorageFileWebp() *TLStorageFileWebp { + return &TLStorageFileWebp{Data2: &Storage_FileType_Data{}} +} + +func (m *TLStorageFileWebp) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_storage_fileWebp)) return x.buf } -func (m *TLInputSingleMedia) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m2 := &InputMedia{} - m2.Decode(dbuf) - m.SetMedia(m2) - m.SetRandomId(dbuf.Long()) - m.SetMessage(dbuf.String()) - if (flags & (1 << 0)) != 0 { - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err - } - l5 := dbuf.Int() - v5 := make([]*MessageEntity, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &MessageEntity{} - v5[i].Decode(dbuf) - } - m.SetEntities(v5) +func (m *TLStorageFileWebp) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_storage_fileWebp)) - } + return x.buf +} + +func (m *TLStorageFileWebp) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputPrivacyKey <-- -// + TL_InputPrivacyKeyStatusTimestamp -// + TL_InputPrivacyKeyChatInvite -// + TL_InputPrivacyKeyPhoneCall +// ReportReason <-- +// + TL_InputReportReasonSpam +// + TL_InputReportReasonViolence +// + TL_InputReportReasonPornography +// + TL_InputReportReasonOther +// + TL_InputReportReasonCopyright // -func (m *InputPrivacyKey) Encode() []byte { +func (m *ReportReason) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp: - t := m.To_InputPrivacyKeyStatusTimestamp() + case TLConstructor_CRC32_inputReportReasonSpam: + t := m.To_InputReportReasonSpam() return t.Encode() - case TLConstructor_CRC32_inputPrivacyKeyChatInvite: - t := m.To_InputPrivacyKeyChatInvite() + case TLConstructor_CRC32_inputReportReasonViolence: + t := m.To_InputReportReasonViolence() return t.Encode() - case TLConstructor_CRC32_inputPrivacyKeyPhoneCall: - t := m.To_InputPrivacyKeyPhoneCall() + case TLConstructor_CRC32_inputReportReasonPornography: + t := m.To_InputReportReasonPornography() + return t.Encode() + case TLConstructor_CRC32_inputReportReasonOther: + t := m.To_InputReportReasonOther() + return t.Encode() + case TLConstructor_CRC32_inputReportReasonCopyright: + t := m.To_InputReportReasonCopyright() return t.Encode() default: @@ -29698,17 +30870,23 @@ func (m *InputPrivacyKey) Encode() []byte { } } -func (m *InputPrivacyKey) EncodeToLayer(layer int) []byte { +func (m *ReportReason) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp: - t := m.To_InputPrivacyKeyStatusTimestamp() + case TLConstructor_CRC32_inputReportReasonSpam: + t := m.To_InputReportReasonSpam() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPrivacyKeyChatInvite: - t := m.To_InputPrivacyKeyChatInvite() + case TLConstructor_CRC32_inputReportReasonViolence: + t := m.To_InputReportReasonViolence() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPrivacyKeyPhoneCall: - t := m.To_InputPrivacyKeyPhoneCall() + case TLConstructor_CRC32_inputReportReasonPornography: + t := m.To_InputReportReasonPornography() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputReportReasonOther: + t := m.To_InputReportReasonOther() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputReportReasonCopyright: + t := m.To_InputReportReasonCopyright() return t.EncodeToLayer(layer) default: @@ -29717,19 +30895,27 @@ func (m *InputPrivacyKey) EncodeToLayer(layer int) []byte { } } -func (m *InputPrivacyKey) Decode(dbuf *DecodeBuf) error { +func (m *ReportReason) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp: - m2 := &TLInputPrivacyKeyStatusTimestamp{Data2: &InputPrivacyKey_Data{}} + case TLConstructor_CRC32_inputReportReasonSpam: + m2 := &TLInputReportReasonSpam{Data2: &ReportReason_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPrivacyKeyChatInvite: - m2 := &TLInputPrivacyKeyChatInvite{Data2: &InputPrivacyKey_Data{}} + case TLConstructor_CRC32_inputReportReasonViolence: + m2 := &TLInputReportReasonViolence{Data2: &ReportReason_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPrivacyKeyPhoneCall: - m2 := &TLInputPrivacyKeyPhoneCall{Data2: &InputPrivacyKey_Data{}} + case TLConstructor_CRC32_inputReportReasonPornography: + m2 := &TLInputReportReasonPornography{Data2: &ReportReason_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputReportReasonOther: + m2 := &TLInputReportReasonOther{Data2: &ReportReason_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputReportReasonCopyright: + m2 := &TLInputReportReasonCopyright{Data2: &ReportReason_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -29739,153 +30925,213 @@ func (m *InputPrivacyKey) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey; -func (m *InputPrivacyKey) To_InputPrivacyKeyStatusTimestamp() *TLInputPrivacyKeyStatusTimestamp { - return &TLInputPrivacyKeyStatusTimestamp{ +// inputReportReasonSpam#58dbcab8 = ReportReason; +func (m *ReportReason) To_InputReportReasonSpam() *TLInputReportReasonSpam { + return &TLInputReportReasonSpam{ Data2: m.Data2, } } -// inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; -func (m *InputPrivacyKey) To_InputPrivacyKeyChatInvite() *TLInputPrivacyKeyChatInvite { - return &TLInputPrivacyKeyChatInvite{ +// inputReportReasonViolence#1e22c78d = ReportReason; +func (m *ReportReason) To_InputReportReasonViolence() *TLInputReportReasonViolence { + return &TLInputReportReasonViolence{ Data2: m.Data2, } } -// inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey; -func (m *InputPrivacyKey) To_InputPrivacyKeyPhoneCall() *TLInputPrivacyKeyPhoneCall { - return &TLInputPrivacyKeyPhoneCall{ +// inputReportReasonPornography#2e59d922 = ReportReason; +func (m *ReportReason) To_InputReportReasonPornography() *TLInputReportReasonPornography { + return &TLInputReportReasonPornography{ Data2: m.Data2, } } -// inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey; -func (m *TLInputPrivacyKeyStatusTimestamp) To_InputPrivacyKey() *InputPrivacyKey { - return &InputPrivacyKey{ - Constructor: TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp, +// inputReportReasonOther#e1746d0a text:string = ReportReason; +func (m *ReportReason) To_InputReportReasonOther() *TLInputReportReasonOther { + return &TLInputReportReasonOther{ + Data2: m.Data2, + } +} + +// inputReportReasonCopyright#9b89f93a = ReportReason; +func (m *ReportReason) To_InputReportReasonCopyright() *TLInputReportReasonCopyright { + return &TLInputReportReasonCopyright{ + Data2: m.Data2, + } +} + +// inputReportReasonSpam#58dbcab8 = ReportReason; +func (m *TLInputReportReasonSpam) To_ReportReason() *ReportReason { + return &ReportReason{ + Constructor: TLConstructor_CRC32_inputReportReasonSpam, Data2: m.Data2, } } -func NewTLInputPrivacyKeyStatusTimestamp() *TLInputPrivacyKeyStatusTimestamp { - return &TLInputPrivacyKeyStatusTimestamp{Data2: &InputPrivacyKey_Data{}} +func NewTLInputReportReasonSpam() *TLInputReportReasonSpam { + return &TLInputReportReasonSpam{Data2: &ReportReason_Data{}} } -func (m *TLInputPrivacyKeyStatusTimestamp) Encode() []byte { +func (m *TLInputReportReasonSpam) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp)) + x.Int(int32(TLConstructor_CRC32_inputReportReasonSpam)) return x.buf } -func (m *TLInputPrivacyKeyStatusTimestamp) EncodeToLayer(layer int) []byte { +func (m *TLInputReportReasonSpam) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyStatusTimestamp)) + x.Int(int32(TLConstructor_CRC32_inputReportReasonSpam)) return x.buf } -func (m *TLInputPrivacyKeyStatusTimestamp) Decode(dbuf *DecodeBuf) error { +func (m *TLInputReportReasonSpam) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; -func (m *TLInputPrivacyKeyChatInvite) To_InputPrivacyKey() *InputPrivacyKey { - return &InputPrivacyKey{ - Constructor: TLConstructor_CRC32_inputPrivacyKeyChatInvite, +// inputReportReasonViolence#1e22c78d = ReportReason; +func (m *TLInputReportReasonViolence) To_ReportReason() *ReportReason { + return &ReportReason{ + Constructor: TLConstructor_CRC32_inputReportReasonViolence, Data2: m.Data2, } } -func NewTLInputPrivacyKeyChatInvite() *TLInputPrivacyKeyChatInvite { - return &TLInputPrivacyKeyChatInvite{Data2: &InputPrivacyKey_Data{}} +func NewTLInputReportReasonViolence() *TLInputReportReasonViolence { + return &TLInputReportReasonViolence{Data2: &ReportReason_Data{}} } -func (m *TLInputPrivacyKeyChatInvite) Encode() []byte { +func (m *TLInputReportReasonViolence) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyChatInvite)) + x.Int(int32(TLConstructor_CRC32_inputReportReasonViolence)) return x.buf } -func (m *TLInputPrivacyKeyChatInvite) EncodeToLayer(layer int) []byte { +func (m *TLInputReportReasonViolence) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyChatInvite)) + x.Int(int32(TLConstructor_CRC32_inputReportReasonViolence)) return x.buf } -func (m *TLInputPrivacyKeyChatInvite) Decode(dbuf *DecodeBuf) error { +func (m *TLInputReportReasonViolence) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey; -func (m *TLInputPrivacyKeyPhoneCall) To_InputPrivacyKey() *InputPrivacyKey { - return &InputPrivacyKey{ - Constructor: TLConstructor_CRC32_inputPrivacyKeyPhoneCall, +// inputReportReasonPornography#2e59d922 = ReportReason; +func (m *TLInputReportReasonPornography) To_ReportReason() *ReportReason { + return &ReportReason{ + Constructor: TLConstructor_CRC32_inputReportReasonPornography, Data2: m.Data2, } } -func NewTLInputPrivacyKeyPhoneCall() *TLInputPrivacyKeyPhoneCall { - return &TLInputPrivacyKeyPhoneCall{Data2: &InputPrivacyKey_Data{}} +func NewTLInputReportReasonPornography() *TLInputReportReasonPornography { + return &TLInputReportReasonPornography{Data2: &ReportReason_Data{}} } -func (m *TLInputPrivacyKeyPhoneCall) Encode() []byte { +func (m *TLInputReportReasonPornography) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyPhoneCall)) + x.Int(int32(TLConstructor_CRC32_inputReportReasonPornography)) return x.buf } -func (m *TLInputPrivacyKeyPhoneCall) EncodeToLayer(layer int) []byte { +func (m *TLInputReportReasonPornography) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyKeyPhoneCall)) + x.Int(int32(TLConstructor_CRC32_inputReportReasonPornography)) return x.buf } -func (m *TLInputPrivacyKeyPhoneCall) Decode(dbuf *DecodeBuf) error { +func (m *TLInputReportReasonPornography) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// inputReportReasonOther#e1746d0a text:string = ReportReason; +func (m *TLInputReportReasonOther) To_ReportReason() *ReportReason { + return &ReportReason{ + Constructor: TLConstructor_CRC32_inputReportReasonOther, + Data2: m.Data2, + } +} + +func (m *TLInputReportReasonOther) SetText(v string) { m.Data2.Text = v } +func (m *TLInputReportReasonOther) GetText() string { return m.Data2.Text } + +func NewTLInputReportReasonOther() *TLInputReportReasonOther { + return &TLInputReportReasonOther{Data2: &ReportReason_Data{}} +} + +func (m *TLInputReportReasonOther) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputReportReasonOther)) + + x.String(m.GetText()) + + return x.buf +} + +func (m *TLInputReportReasonOther) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputReportReasonOther)) + + x.String(m.GetText()) + + return x.buf +} + +func (m *TLInputReportReasonOther) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) + + return dbuf.err +} + +// inputReportReasonCopyright#9b89f93a = ReportReason; +func (m *TLInputReportReasonCopyright) To_ReportReason() *ReportReason { + return &ReportReason{ + Constructor: TLConstructor_CRC32_inputReportReasonCopyright, + Data2: m.Data2, + } +} + +func NewTLInputReportReasonCopyright() *TLInputReportReasonCopyright { + return &TLInputReportReasonCopyright{Data2: &ReportReason_Data{}} +} + +func (m *TLInputReportReasonCopyright) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputReportReasonCopyright)) + + return x.buf +} + +func (m *TLInputReportReasonCopyright) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputReportReasonCopyright)) + + return x.buf +} + +func (m *TLInputReportReasonCopyright) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// DocumentAttribute <-- -// + TL_DocumentAttributeImageSize -// + TL_DocumentAttributeAnimated -// + TL_DocumentAttributeSticker -// + TL_DocumentAttributeVideo -// + TL_DocumentAttributeAudio -// + TL_DocumentAttributeFilename -// + TL_DocumentAttributeHasStickers +// Help_Support <-- +// + TL_HelpSupport // -func (m *DocumentAttribute) Encode() []byte { +func (m *Help_Support) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_documentAttributeImageSize: - t := m.To_DocumentAttributeImageSize() - return t.Encode() - case TLConstructor_CRC32_documentAttributeAnimated: - t := m.To_DocumentAttributeAnimated() - return t.Encode() - case TLConstructor_CRC32_documentAttributeSticker: - t := m.To_DocumentAttributeSticker() - return t.Encode() - case TLConstructor_CRC32_documentAttributeVideo: - t := m.To_DocumentAttributeVideo() - return t.Encode() - case TLConstructor_CRC32_documentAttributeAudio: - t := m.To_DocumentAttributeAudio() - return t.Encode() - case TLConstructor_CRC32_documentAttributeFilename: - t := m.To_DocumentAttributeFilename() - return t.Encode() - case TLConstructor_CRC32_documentAttributeHasStickers: - t := m.To_DocumentAttributeHasStickers() + case TLConstructor_CRC32_help_support: + t := m.To_HelpSupport() return t.Encode() default: @@ -29894,29 +31140,11 @@ func (m *DocumentAttribute) Encode() []byte { } } -func (m *DocumentAttribute) EncodeToLayer(layer int) []byte { +func (m *Help_Support) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_documentAttributeImageSize: - t := m.To_DocumentAttributeImageSize() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_documentAttributeAnimated: - t := m.To_DocumentAttributeAnimated() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_documentAttributeSticker: - t := m.To_DocumentAttributeSticker() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_documentAttributeVideo: - t := m.To_DocumentAttributeVideo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_documentAttributeAudio: - t := m.To_DocumentAttributeAudio() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_documentAttributeFilename: - t := m.To_DocumentAttributeFilename() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_documentAttributeHasStickers: - t := m.To_DocumentAttributeHasStickers() + case TLConstructor_CRC32_help_support: + t := m.To_HelpSupport() return t.EncodeToLayer(layer) default: @@ -29925,35 +31153,11 @@ func (m *DocumentAttribute) EncodeToLayer(layer int) []byte { } } -func (m *DocumentAttribute) Decode(dbuf *DecodeBuf) error { +func (m *Help_Support) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_documentAttributeImageSize: - m2 := &TLDocumentAttributeImageSize{Data2: &DocumentAttribute_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_documentAttributeAnimated: - m2 := &TLDocumentAttributeAnimated{Data2: &DocumentAttribute_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_documentAttributeSticker: - m2 := &TLDocumentAttributeSticker{Data2: &DocumentAttribute_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_documentAttributeVideo: - m2 := &TLDocumentAttributeVideo{Data2: &DocumentAttribute_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_documentAttributeAudio: - m2 := &TLDocumentAttributeAudio{Data2: &DocumentAttribute_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_documentAttributeFilename: - m2 := &TLDocumentAttributeFilename{Data2: &DocumentAttribute_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_documentAttributeHasStickers: - m2 := &TLDocumentAttributeHasStickers{Data2: &DocumentAttribute_Data{}} + case TLConstructor_CRC32_help_support: + m2 := &TLHelpSupport{Data2: &Help_Support_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -29963,695 +31167,450 @@ func (m *DocumentAttribute) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; -func (m *DocumentAttribute) To_DocumentAttributeImageSize() *TLDocumentAttributeImageSize { - return &TLDocumentAttributeImageSize{ +// help.support#17c6b5f6 phone_number:string user:User = help.Support; +func (m *Help_Support) To_HelpSupport() *TLHelpSupport { + return &TLHelpSupport{ Data2: m.Data2, } } -// documentAttributeAnimated#11b58939 = DocumentAttribute; -func (m *DocumentAttribute) To_DocumentAttributeAnimated() *TLDocumentAttributeAnimated { - return &TLDocumentAttributeAnimated{ - Data2: m.Data2, +// help.support#17c6b5f6 phone_number:string user:User = help.Support; +func (m *TLHelpSupport) To_Help_Support() *Help_Support { + return &Help_Support{ + Constructor: TLConstructor_CRC32_help_support, + Data2: m.Data2, } } -// documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute; -func (m *DocumentAttribute) To_DocumentAttributeSticker() *TLDocumentAttributeSticker { - return &TLDocumentAttributeSticker{ - Data2: m.Data2, - } -} +func (m *TLHelpSupport) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } +func (m *TLHelpSupport) GetPhoneNumber() string { return m.Data2.PhoneNumber } -// documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute; -func (m *DocumentAttribute) To_DocumentAttributeVideo() *TLDocumentAttributeVideo { - return &TLDocumentAttributeVideo{ - Data2: m.Data2, - } -} +func (m *TLHelpSupport) SetUser(v *User) { m.Data2.User = v } +func (m *TLHelpSupport) GetUser() *User { return m.Data2.User } -// documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; -func (m *DocumentAttribute) To_DocumentAttributeAudio() *TLDocumentAttributeAudio { - return &TLDocumentAttributeAudio{ - Data2: m.Data2, - } +func NewTLHelpSupport() *TLHelpSupport { + return &TLHelpSupport{Data2: &Help_Support_Data{}} } -// documentAttributeFilename#15590068 file_name:string = DocumentAttribute; -func (m *DocumentAttribute) To_DocumentAttributeFilename() *TLDocumentAttributeFilename { - return &TLDocumentAttributeFilename{ - Data2: m.Data2, - } -} - -// documentAttributeHasStickers#9801d2f7 = DocumentAttribute; -func (m *DocumentAttribute) To_DocumentAttributeHasStickers() *TLDocumentAttributeHasStickers { - return &TLDocumentAttributeHasStickers{ - Data2: m.Data2, - } -} - -// documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; -func (m *TLDocumentAttributeImageSize) To_DocumentAttribute() *DocumentAttribute { - return &DocumentAttribute{ - Constructor: TLConstructor_CRC32_documentAttributeImageSize, - Data2: m.Data2, - } -} - -func (m *TLDocumentAttributeImageSize) SetW(v int32) { m.Data2.W = v } -func (m *TLDocumentAttributeImageSize) GetW() int32 { return m.Data2.W } - -func (m *TLDocumentAttributeImageSize) SetH(v int32) { m.Data2.H = v } -func (m *TLDocumentAttributeImageSize) GetH() int32 { return m.Data2.H } - -func NewTLDocumentAttributeImageSize() *TLDocumentAttributeImageSize { - return &TLDocumentAttributeImageSize{Data2: &DocumentAttribute_Data{}} -} - -func (m *TLDocumentAttributeImageSize) Encode() []byte { +func (m *TLHelpSupport) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeImageSize)) + x.Int(int32(TLConstructor_CRC32_help_support)) - x.Int(m.GetW()) - x.Int(m.GetH()) + x.String(m.GetPhoneNumber()) + x.Bytes(m.GetUser().Encode()) return x.buf } -func (m *TLDocumentAttributeImageSize) EncodeToLayer(layer int) []byte { +func (m *TLHelpSupport) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeImageSize)) + x.Int(int32(TLConstructor_CRC32_help_support)) - x.Int(m.GetW()) - x.Int(m.GetH()) + x.String(m.GetPhoneNumber()) + x.Bytes(m.GetUser().EncodeToLayer(layer)) return x.buf } -func (m *TLDocumentAttributeImageSize) Decode(dbuf *DecodeBuf) error { - m.SetW(dbuf.Int()) - m.SetH(dbuf.Int()) +func (m *TLHelpSupport) Decode(dbuf *DecodeBuf) error { + m.SetPhoneNumber(dbuf.String()) + m2 := &User{} + m2.Decode(dbuf) + m.SetUser(m2) return dbuf.err } -// documentAttributeAnimated#11b58939 = DocumentAttribute; -func (m *TLDocumentAttributeAnimated) To_DocumentAttribute() *DocumentAttribute { - return &DocumentAttribute{ - Constructor: TLConstructor_CRC32_documentAttributeAnimated, - Data2: m.Data2, - } -} - -func NewTLDocumentAttributeAnimated() *TLDocumentAttributeAnimated { - return &TLDocumentAttributeAnimated{Data2: &DocumentAttribute_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// InputPrivacyRule <-- +// + TL_InputPrivacyValueAllowContacts +// + TL_InputPrivacyValueAllowAll +// + TL_InputPrivacyValueAllowUsers +// + TL_InputPrivacyValueDisallowContacts +// + TL_InputPrivacyValueDisallowAll +// + TL_InputPrivacyValueDisallowUsers +// -func (m *TLDocumentAttributeAnimated) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeAnimated)) +func (m *InputPrivacyRule) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputPrivacyValueAllowContacts: + t := m.To_InputPrivacyValueAllowContacts() + return t.Encode() + case TLConstructor_CRC32_inputPrivacyValueAllowAll: + t := m.To_InputPrivacyValueAllowAll() + return t.Encode() + case TLConstructor_CRC32_inputPrivacyValueAllowUsers: + t := m.To_InputPrivacyValueAllowUsers() + return t.Encode() + case TLConstructor_CRC32_inputPrivacyValueDisallowContacts: + t := m.To_InputPrivacyValueDisallowContacts() + return t.Encode() + case TLConstructor_CRC32_inputPrivacyValueDisallowAll: + t := m.To_InputPrivacyValueDisallowAll() + return t.Encode() + case TLConstructor_CRC32_inputPrivacyValueDisallowUsers: + t := m.To_InputPrivacyValueDisallowUsers() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLDocumentAttributeAnimated) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeAnimated)) +func (m *InputPrivacyRule) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputPrivacyValueAllowContacts: + t := m.To_InputPrivacyValueAllowContacts() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPrivacyValueAllowAll: + t := m.To_InputPrivacyValueAllowAll() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPrivacyValueAllowUsers: + t := m.To_InputPrivacyValueAllowUsers() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPrivacyValueDisallowContacts: + t := m.To_InputPrivacyValueDisallowContacts() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPrivacyValueDisallowAll: + t := m.To_InputPrivacyValueDisallowAll() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPrivacyValueDisallowUsers: + t := m.To_InputPrivacyValueDisallowUsers() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLDocumentAttributeAnimated) Decode(dbuf *DecodeBuf) error { +func (m *InputPrivacyRule) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputPrivacyValueAllowContacts: + m2 := &TLInputPrivacyValueAllowContacts{Data2: &InputPrivacyRule_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPrivacyValueAllowAll: + m2 := &TLInputPrivacyValueAllowAll{Data2: &InputPrivacyRule_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPrivacyValueAllowUsers: + m2 := &TLInputPrivacyValueAllowUsers{Data2: &InputPrivacyRule_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPrivacyValueDisallowContacts: + m2 := &TLInputPrivacyValueDisallowContacts{Data2: &InputPrivacyRule_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPrivacyValueDisallowAll: + m2 := &TLInputPrivacyValueDisallowAll{Data2: &InputPrivacyRule_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPrivacyValueDisallowUsers: + m2 := &TLInputPrivacyValueDisallowUsers{Data2: &InputPrivacyRule_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute; -func (m *TLDocumentAttributeSticker) To_DocumentAttribute() *DocumentAttribute { - return &DocumentAttribute{ - Constructor: TLConstructor_CRC32_documentAttributeSticker, - Data2: m.Data2, +// inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; +func (m *InputPrivacyRule) To_InputPrivacyValueAllowContacts() *TLInputPrivacyValueAllowContacts { + return &TLInputPrivacyValueAllowContacts{ + Data2: m.Data2, } } -func (m *TLDocumentAttributeSticker) SetMask(v bool) { m.Data2.Mask = v } -func (m *TLDocumentAttributeSticker) GetMask() bool { return m.Data2.Mask } - -func (m *TLDocumentAttributeSticker) SetAlt(v string) { m.Data2.Alt = v } -func (m *TLDocumentAttributeSticker) GetAlt() string { return m.Data2.Alt } - -func (m *TLDocumentAttributeSticker) SetStickerset(v *InputStickerSet) { m.Data2.Stickerset = v } -func (m *TLDocumentAttributeSticker) GetStickerset() *InputStickerSet { return m.Data2.Stickerset } - -func (m *TLDocumentAttributeSticker) SetMaskCoords(v *MaskCoords) { m.Data2.MaskCoords = v } -func (m *TLDocumentAttributeSticker) GetMaskCoords() *MaskCoords { return m.Data2.MaskCoords } +// inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; +func (m *InputPrivacyRule) To_InputPrivacyValueAllowAll() *TLInputPrivacyValueAllowAll { + return &TLInputPrivacyValueAllowAll{ + Data2: m.Data2, + } +} -func NewTLDocumentAttributeSticker() *TLDocumentAttributeSticker { - return &TLDocumentAttributeSticker{Data2: &DocumentAttribute_Data{}} +// inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; +func (m *InputPrivacyRule) To_InputPrivacyValueAllowUsers() *TLInputPrivacyValueAllowUsers { + return &TLInputPrivacyValueAllowUsers{ + Data2: m.Data2, + } } -func (m *TLDocumentAttributeSticker) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeSticker)) +// inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule; +func (m *InputPrivacyRule) To_InputPrivacyValueDisallowContacts() *TLInputPrivacyValueDisallowContacts { + return &TLInputPrivacyValueDisallowContacts{ + Data2: m.Data2, + } +} - // flags - var flags uint32 = 0 - if m.GetMask() == true { - flags |= 1 << 1 +// inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule; +func (m *InputPrivacyRule) To_InputPrivacyValueDisallowAll() *TLInputPrivacyValueDisallowAll { + return &TLInputPrivacyValueDisallowAll{ + Data2: m.Data2, } - if m.GetMaskCoords() != nil { - flags |= 1 << 0 +} + +// inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule; +func (m *InputPrivacyRule) To_InputPrivacyValueDisallowUsers() *TLInputPrivacyValueDisallowUsers { + return &TLInputPrivacyValueDisallowUsers{ + Data2: m.Data2, } - x.UInt(flags) +} - x.String(m.GetAlt()) - x.Bytes(m.GetStickerset().Encode()) - if m.GetMaskCoords() != nil { - x.Bytes(m.GetMaskCoords().Encode()) +// inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; +func (m *TLInputPrivacyValueAllowContacts) To_InputPrivacyRule() *InputPrivacyRule { + return &InputPrivacyRule{ + Constructor: TLConstructor_CRC32_inputPrivacyValueAllowContacts, + Data2: m.Data2, } +} - return x.buf +func NewTLInputPrivacyValueAllowContacts() *TLInputPrivacyValueAllowContacts { + return &TLInputPrivacyValueAllowContacts{Data2: &InputPrivacyRule_Data{}} } -func (m *TLDocumentAttributeSticker) EncodeToLayer(layer int) []byte { +func (m *TLInputPrivacyValueAllowContacts) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeSticker)) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowContacts)) - // flags - var flags uint32 = 0 - if m.GetMask() == true { - flags |= 1 << 1 - } - if m.GetMaskCoords() != nil { - flags |= 1 << 0 - } - x.UInt(flags) + return x.buf +} - x.String(m.GetAlt()) - x.Bytes(m.GetStickerset().EncodeToLayer(layer)) - if m.GetMaskCoords() != nil { - x.Bytes(m.GetMaskCoords().EncodeToLayer(layer)) - } +func (m *TLInputPrivacyValueAllowContacts) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowContacts)) return x.buf } -func (m *TLDocumentAttributeSticker) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetMask(true) - } - m.SetAlt(dbuf.String()) - m4 := &InputStickerSet{} - m4.Decode(dbuf) - m.SetStickerset(m4) - if (flags & (1 << 0)) != 0 { - m5 := &MaskCoords{} - m5.Decode(dbuf) - m.SetMaskCoords(m5) - } +func (m *TLInputPrivacyValueAllowContacts) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute; -func (m *TLDocumentAttributeVideo) To_DocumentAttribute() *DocumentAttribute { - return &DocumentAttribute{ - Constructor: TLConstructor_CRC32_documentAttributeVideo, +// inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; +func (m *TLInputPrivacyValueAllowAll) To_InputPrivacyRule() *InputPrivacyRule { + return &InputPrivacyRule{ + Constructor: TLConstructor_CRC32_inputPrivacyValueAllowAll, Data2: m.Data2, } } -func (m *TLDocumentAttributeVideo) SetRoundMessage(v bool) { m.Data2.RoundMessage = v } -func (m *TLDocumentAttributeVideo) GetRoundMessage() bool { return m.Data2.RoundMessage } - -func (m *TLDocumentAttributeVideo) SetSupportsStreaming(v bool) { m.Data2.SupportsStreaming = v } -func (m *TLDocumentAttributeVideo) GetSupportsStreaming() bool { return m.Data2.SupportsStreaming } - -func (m *TLDocumentAttributeVideo) SetDuration(v int32) { m.Data2.Duration = v } -func (m *TLDocumentAttributeVideo) GetDuration() int32 { return m.Data2.Duration } - -func (m *TLDocumentAttributeVideo) SetW(v int32) { m.Data2.W = v } -func (m *TLDocumentAttributeVideo) GetW() int32 { return m.Data2.W } - -func (m *TLDocumentAttributeVideo) SetH(v int32) { m.Data2.H = v } -func (m *TLDocumentAttributeVideo) GetH() int32 { return m.Data2.H } - -func NewTLDocumentAttributeVideo() *TLDocumentAttributeVideo { - return &TLDocumentAttributeVideo{Data2: &DocumentAttribute_Data{}} +func NewTLInputPrivacyValueAllowAll() *TLInputPrivacyValueAllowAll { + return &TLInputPrivacyValueAllowAll{Data2: &InputPrivacyRule_Data{}} } -func (m *TLDocumentAttributeVideo) Encode() []byte { +func (m *TLInputPrivacyValueAllowAll) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeVideo)) - - // flags - var flags uint32 = 0 - if m.GetRoundMessage() == true { - flags |= 1 << 0 - } - if m.GetSupportsStreaming() == true { - flags |= 1 << 1 - } - x.UInt(flags) - - x.Int(m.GetDuration()) - x.Int(m.GetW()) - x.Int(m.GetH()) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowAll)) return x.buf } -func (m *TLDocumentAttributeVideo) EncodeToLayer(layer int) []byte { +func (m *TLInputPrivacyValueAllowAll) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeVideo)) - - // flags - var flags uint32 = 0 - if m.GetRoundMessage() == true { - flags |= 1 << 0 - } - if m.GetSupportsStreaming() == true { - flags |= 1 << 1 - } - x.UInt(flags) - - x.Int(m.GetDuration()) - x.Int(m.GetW()) - x.Int(m.GetH()) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowAll)) return x.buf } -func (m *TLDocumentAttributeVideo) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetRoundMessage(true) - } - if (flags & (1 << 1)) != 0 { - m.SetSupportsStreaming(true) - } - m.SetDuration(dbuf.Int()) - m.SetW(dbuf.Int()) - m.SetH(dbuf.Int()) +func (m *TLInputPrivacyValueAllowAll) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; -func (m *TLDocumentAttributeAudio) To_DocumentAttribute() *DocumentAttribute { - return &DocumentAttribute{ - Constructor: TLConstructor_CRC32_documentAttributeAudio, +// inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; +func (m *TLInputPrivacyValueAllowUsers) To_InputPrivacyRule() *InputPrivacyRule { + return &InputPrivacyRule{ + Constructor: TLConstructor_CRC32_inputPrivacyValueAllowUsers, Data2: m.Data2, } } -func (m *TLDocumentAttributeAudio) SetVoice(v bool) { m.Data2.Voice = v } -func (m *TLDocumentAttributeAudio) GetVoice() bool { return m.Data2.Voice } - -func (m *TLDocumentAttributeAudio) SetDuration(v int32) { m.Data2.Duration = v } -func (m *TLDocumentAttributeAudio) GetDuration() int32 { return m.Data2.Duration } - -func (m *TLDocumentAttributeAudio) SetTitle(v string) { m.Data2.Title = v } -func (m *TLDocumentAttributeAudio) GetTitle() string { return m.Data2.Title } - -func (m *TLDocumentAttributeAudio) SetPerformer(v string) { m.Data2.Performer = v } -func (m *TLDocumentAttributeAudio) GetPerformer() string { return m.Data2.Performer } - -func (m *TLDocumentAttributeAudio) SetWaveform(v []byte) { m.Data2.Waveform = v } -func (m *TLDocumentAttributeAudio) GetWaveform() []byte { return m.Data2.Waveform } +func (m *TLInputPrivacyValueAllowUsers) SetUsers(v []*InputUser) { m.Data2.Users = v } +func (m *TLInputPrivacyValueAllowUsers) GetUsers() []*InputUser { return m.Data2.Users } -func NewTLDocumentAttributeAudio() *TLDocumentAttributeAudio { - return &TLDocumentAttributeAudio{Data2: &DocumentAttribute_Data{}} +func NewTLInputPrivacyValueAllowUsers() *TLInputPrivacyValueAllowUsers { + return &TLInputPrivacyValueAllowUsers{Data2: &InputPrivacyRule_Data{}} } -func (m *TLDocumentAttributeAudio) Encode() []byte { +func (m *TLInputPrivacyValueAllowUsers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeAudio)) - - // flags - var flags uint32 = 0 - if m.GetVoice() == true { - flags |= 1 << 10 - } - if m.GetTitle() != "" { - flags |= 1 << 0 - } - if m.GetPerformer() != "" { - flags |= 1 << 1 - } - if m.GetWaveform() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowUsers)) - x.Int(m.GetDuration()) - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetPerformer() != "" { - x.String(m.GetPerformer()) - } - if m.GetWaveform() != nil { - x.StringBytes(m.GetWaveform()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLDocumentAttributeAudio) EncodeToLayer(layer int) []byte { +func (m *TLInputPrivacyValueAllowUsers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeAudio)) - - // flags - var flags uint32 = 0 - if m.GetVoice() == true { - flags |= 1 << 10 - } - if m.GetTitle() != "" { - flags |= 1 << 0 - } - if m.GetPerformer() != "" { - flags |= 1 << 1 - } - if m.GetWaveform() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowUsers)) - x.Int(m.GetDuration()) - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetPerformer() != "" { - x.String(m.GetPerformer()) - } - if m.GetWaveform() != nil { - x.StringBytes(m.GetWaveform()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLDocumentAttributeAudio) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 10)) != 0 { - m.SetVoice(true) - } - m.SetDuration(dbuf.Int()) - if (flags & (1 << 0)) != 0 { - m.SetTitle(dbuf.String()) - } - if (flags & (1 << 1)) != 0 { - m.SetPerformer(dbuf.String()) +func (m *TLInputPrivacyValueAllowUsers) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } - if (flags & (1 << 2)) != 0 { - m.SetWaveform(dbuf.StringBytes()) + l1 := dbuf.Int() + v1 := make([]*InputUser, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &InputUser{} + v1[i].Decode(dbuf) } + m.SetUsers(v1) return dbuf.err } -// documentAttributeFilename#15590068 file_name:string = DocumentAttribute; -func (m *TLDocumentAttributeFilename) To_DocumentAttribute() *DocumentAttribute { - return &DocumentAttribute{ - Constructor: TLConstructor_CRC32_documentAttributeFilename, +// inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule; +func (m *TLInputPrivacyValueDisallowContacts) To_InputPrivacyRule() *InputPrivacyRule { + return &InputPrivacyRule{ + Constructor: TLConstructor_CRC32_inputPrivacyValueDisallowContacts, Data2: m.Data2, } } -func (m *TLDocumentAttributeFilename) SetFileName(v string) { m.Data2.FileName = v } -func (m *TLDocumentAttributeFilename) GetFileName() string { return m.Data2.FileName } - -func NewTLDocumentAttributeFilename() *TLDocumentAttributeFilename { - return &TLDocumentAttributeFilename{Data2: &DocumentAttribute_Data{}} +func NewTLInputPrivacyValueDisallowContacts() *TLInputPrivacyValueDisallowContacts { + return &TLInputPrivacyValueDisallowContacts{Data2: &InputPrivacyRule_Data{}} } -func (m *TLDocumentAttributeFilename) Encode() []byte { +func (m *TLInputPrivacyValueDisallowContacts) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeFilename)) - - x.String(m.GetFileName()) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowContacts)) return x.buf } -func (m *TLDocumentAttributeFilename) EncodeToLayer(layer int) []byte { +func (m *TLInputPrivacyValueDisallowContacts) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeFilename)) - - x.String(m.GetFileName()) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowContacts)) return x.buf } -func (m *TLDocumentAttributeFilename) Decode(dbuf *DecodeBuf) error { - m.SetFileName(dbuf.String()) +func (m *TLInputPrivacyValueDisallowContacts) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// documentAttributeHasStickers#9801d2f7 = DocumentAttribute; -func (m *TLDocumentAttributeHasStickers) To_DocumentAttribute() *DocumentAttribute { - return &DocumentAttribute{ - Constructor: TLConstructor_CRC32_documentAttributeHasStickers, +// inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule; +func (m *TLInputPrivacyValueDisallowAll) To_InputPrivacyRule() *InputPrivacyRule { + return &InputPrivacyRule{ + Constructor: TLConstructor_CRC32_inputPrivacyValueDisallowAll, Data2: m.Data2, } } -func NewTLDocumentAttributeHasStickers() *TLDocumentAttributeHasStickers { - return &TLDocumentAttributeHasStickers{Data2: &DocumentAttribute_Data{}} +func NewTLInputPrivacyValueDisallowAll() *TLInputPrivacyValueDisallowAll { + return &TLInputPrivacyValueDisallowAll{Data2: &InputPrivacyRule_Data{}} } -func (m *TLDocumentAttributeHasStickers) Encode() []byte { +func (m *TLInputPrivacyValueDisallowAll) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeHasStickers)) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowAll)) return x.buf } -func (m *TLDocumentAttributeHasStickers) EncodeToLayer(layer int) []byte { +func (m *TLInputPrivacyValueDisallowAll) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentAttributeHasStickers)) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowAll)) return x.buf } -func (m *TLDocumentAttributeHasStickers) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// Account_PasswordInputSettings <-- -// + TL_AccountPasswordInputSettings -// - -func (m *Account_PasswordInputSettings) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_account_passwordInputSettings: - t := m.To_AccountPasswordInputSettings() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Account_PasswordInputSettings) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_account_passwordInputSettings: - t := m.To_AccountPasswordInputSettings() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Account_PasswordInputSettings) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_account_passwordInputSettings: - m2 := &TLAccountPasswordInputSettings{Data2: &Account_PasswordInputSettings_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputPrivacyValueDisallowAll) Decode(dbuf *DecodeBuf) error { - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings; -func (m *Account_PasswordInputSettings) To_AccountPasswordInputSettings() *TLAccountPasswordInputSettings { - return &TLAccountPasswordInputSettings{ - Data2: m.Data2, - } -} - -// account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings; -func (m *TLAccountPasswordInputSettings) To_Account_PasswordInputSettings() *Account_PasswordInputSettings { - return &Account_PasswordInputSettings{ - Constructor: TLConstructor_CRC32_account_passwordInputSettings, +// inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule; +func (m *TLInputPrivacyValueDisallowUsers) To_InputPrivacyRule() *InputPrivacyRule { + return &InputPrivacyRule{ + Constructor: TLConstructor_CRC32_inputPrivacyValueDisallowUsers, Data2: m.Data2, } } -func (m *TLAccountPasswordInputSettings) SetNewAlgo(v *PasswordKdfAlgo) { m.Data2.NewAlgo = v } -func (m *TLAccountPasswordInputSettings) GetNewAlgo() *PasswordKdfAlgo { return m.Data2.NewAlgo } - -func (m *TLAccountPasswordInputSettings) SetNewPasswordHash(v []byte) { m.Data2.NewPasswordHash = v } -func (m *TLAccountPasswordInputSettings) GetNewPasswordHash() []byte { return m.Data2.NewPasswordHash } - -func (m *TLAccountPasswordInputSettings) SetHint(v string) { m.Data2.Hint = v } -func (m *TLAccountPasswordInputSettings) GetHint() string { return m.Data2.Hint } - -func (m *TLAccountPasswordInputSettings) SetEmail(v string) { m.Data2.Email = v } -func (m *TLAccountPasswordInputSettings) GetEmail() string { return m.Data2.Email } - -func (m *TLAccountPasswordInputSettings) SetNewSecureSettings(v *SecureSecretSettings) { - m.Data2.NewSecureSettings = v -} -func (m *TLAccountPasswordInputSettings) GetNewSecureSettings() *SecureSecretSettings { - return m.Data2.NewSecureSettings -} +func (m *TLInputPrivacyValueDisallowUsers) SetUsers(v []*InputUser) { m.Data2.Users = v } +func (m *TLInputPrivacyValueDisallowUsers) GetUsers() []*InputUser { return m.Data2.Users } -func NewTLAccountPasswordInputSettings() *TLAccountPasswordInputSettings { - return &TLAccountPasswordInputSettings{Data2: &Account_PasswordInputSettings_Data{}} +func NewTLInputPrivacyValueDisallowUsers() *TLInputPrivacyValueDisallowUsers { + return &TLInputPrivacyValueDisallowUsers{Data2: &InputPrivacyRule_Data{}} } -func (m *TLAccountPasswordInputSettings) Encode() []byte { +func (m *TLInputPrivacyValueDisallowUsers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_passwordInputSettings)) - - // flags - var flags uint32 = 0 - if m.GetNewAlgo() != nil { - flags |= 1 << 0 - } - if m.GetNewPasswordHash() != nil { - flags |= 1 << 0 - } - if m.GetHint() != "" { - flags |= 1 << 0 - } - if m.GetEmail() != "" { - flags |= 1 << 1 - } - if m.GetNewSecureSettings() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowUsers)) - if m.GetNewAlgo() != nil { - x.Bytes(m.GetNewAlgo().Encode()) - } - if m.GetNewPasswordHash() != nil { - x.StringBytes(m.GetNewPasswordHash()) - } - if m.GetHint() != "" { - x.String(m.GetHint()) - } - if m.GetEmail() != "" { - x.String(m.GetEmail()) - } - if m.GetNewSecureSettings() != nil { - x.Bytes(m.GetNewSecureSettings().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLAccountPasswordInputSettings) EncodeToLayer(layer int) []byte { +func (m *TLInputPrivacyValueDisallowUsers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_passwordInputSettings)) - - // flags - var flags uint32 = 0 - if m.GetNewAlgo() != nil { - flags |= 1 << 0 - } - if m.GetNewPasswordHash() != nil { - flags |= 1 << 0 - } - if m.GetHint() != "" { - flags |= 1 << 0 - } - if m.GetEmail() != "" { - flags |= 1 << 1 - } - if m.GetNewSecureSettings() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowUsers)) - if m.GetNewAlgo() != nil { - x.Bytes(m.GetNewAlgo().EncodeToLayer(layer)) - } - if m.GetNewPasswordHash() != nil { - x.StringBytes(m.GetNewPasswordHash()) - } - if m.GetHint() != "" { - x.String(m.GetHint()) - } - if m.GetEmail() != "" { - x.String(m.GetEmail()) - } - if m.GetNewSecureSettings() != nil { - x.Bytes(m.GetNewSecureSettings().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLAccountPasswordInputSettings) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m2 := &PasswordKdfAlgo{} - m2.Decode(dbuf) - m.SetNewAlgo(m2) - } - if (flags & (1 << 0)) != 0 { - m.SetNewPasswordHash(dbuf.StringBytes()) - } - if (flags & (1 << 0)) != 0 { - m.SetHint(dbuf.String()) - } - if (flags & (1 << 1)) != 0 { - m.SetEmail(dbuf.String()) +func (m *TLInputPrivacyValueDisallowUsers) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } - if (flags & (1 << 2)) != 0 { - m6 := &SecureSecretSettings{} - m6.Decode(dbuf) - m.SetNewSecureSettings(m6) + l1 := dbuf.Int() + v1 := make([]*InputUser, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &InputUser{} + v1[i].Decode(dbuf) } + m.SetUsers(v1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ChatPhoto <-- -// + TL_ChatPhotoEmpty -// + TL_ChatPhoto +// PopularContact <-- +// + TL_PopularContact // -func (m *ChatPhoto) Encode() []byte { +func (m *PopularContact) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_chatPhotoEmpty: - t := m.To_ChatPhotoEmpty() - return t.Encode() - case TLConstructor_CRC32_chatPhoto: - t := m.To_ChatPhoto() + case TLConstructor_CRC32_popularContact: + t := m.To_PopularContact() return t.Encode() default: @@ -30660,14 +31619,11 @@ func (m *ChatPhoto) Encode() []byte { } } -func (m *ChatPhoto) EncodeToLayer(layer int) []byte { +func (m *PopularContact) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_chatPhotoEmpty: - t := m.To_ChatPhotoEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_chatPhoto: - t := m.To_ChatPhoto() + case TLConstructor_CRC32_popularContact: + t := m.To_PopularContact() return t.EncodeToLayer(layer) default: @@ -30676,15 +31632,11 @@ func (m *ChatPhoto) EncodeToLayer(layer int) []byte { } } -func (m *ChatPhoto) Decode(dbuf *DecodeBuf) error { +func (m *PopularContact) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_chatPhotoEmpty: - m2 := &TLChatPhotoEmpty{Data2: &ChatPhoto_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_chatPhoto: - m2 := &TLChatPhoto{Data2: &ChatPhoto_Data{}} + case TLConstructor_CRC32_popularContact: + m2 := &TLPopularContact{Data2: &PopularContact_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -30694,113 +31646,115 @@ func (m *ChatPhoto) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// chatPhotoEmpty#37c1011c = ChatPhoto; -func (m *ChatPhoto) To_ChatPhotoEmpty() *TLChatPhotoEmpty { - return &TLChatPhotoEmpty{ - Data2: m.Data2, - } -} - -// chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto; -func (m *ChatPhoto) To_ChatPhoto() *TLChatPhoto { - return &TLChatPhoto{ +// popularContact#5ce14175 client_id:long importers:int = PopularContact; +func (m *PopularContact) To_PopularContact() *TLPopularContact { + return &TLPopularContact{ Data2: m.Data2, } } -// chatPhotoEmpty#37c1011c = ChatPhoto; -func (m *TLChatPhotoEmpty) To_ChatPhoto() *ChatPhoto { - return &ChatPhoto{ - Constructor: TLConstructor_CRC32_chatPhotoEmpty, - Data2: m.Data2, - } -} - -func NewTLChatPhotoEmpty() *TLChatPhotoEmpty { - return &TLChatPhotoEmpty{Data2: &ChatPhoto_Data{}} -} - -func (m *TLChatPhotoEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatPhotoEmpty)) - - return x.buf -} - -func (m *TLChatPhotoEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatPhotoEmpty)) - - return x.buf -} - -func (m *TLChatPhotoEmpty) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto; -func (m *TLChatPhoto) To_ChatPhoto() *ChatPhoto { - return &ChatPhoto{ - Constructor: TLConstructor_CRC32_chatPhoto, +// popularContact#5ce14175 client_id:long importers:int = PopularContact; +func (m *TLPopularContact) To_PopularContact() *PopularContact { + return &PopularContact{ + Constructor: TLConstructor_CRC32_popularContact, Data2: m.Data2, } } -func (m *TLChatPhoto) SetPhotoSmall(v *FileLocation) { m.Data2.PhotoSmall = v } -func (m *TLChatPhoto) GetPhotoSmall() *FileLocation { return m.Data2.PhotoSmall } +func (m *TLPopularContact) SetClientId(v int64) { m.Data2.ClientId = v } +func (m *TLPopularContact) GetClientId() int64 { return m.Data2.ClientId } -func (m *TLChatPhoto) SetPhotoBig(v *FileLocation) { m.Data2.PhotoBig = v } -func (m *TLChatPhoto) GetPhotoBig() *FileLocation { return m.Data2.PhotoBig } +func (m *TLPopularContact) SetImporters(v int32) { m.Data2.Importers = v } +func (m *TLPopularContact) GetImporters() int32 { return m.Data2.Importers } -func NewTLChatPhoto() *TLChatPhoto { - return &TLChatPhoto{Data2: &ChatPhoto_Data{}} +func NewTLPopularContact() *TLPopularContact { + return &TLPopularContact{Data2: &PopularContact_Data{}} } -func (m *TLChatPhoto) Encode() []byte { +func (m *TLPopularContact) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatPhoto)) + x.Int(int32(TLConstructor_CRC32_popularContact)) - x.Bytes(m.GetPhotoSmall().Encode()) - x.Bytes(m.GetPhotoBig().Encode()) + x.Long(m.GetClientId()) + x.Int(m.GetImporters()) return x.buf } -func (m *TLChatPhoto) EncodeToLayer(layer int) []byte { +func (m *TLPopularContact) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatPhoto)) + x.Int(int32(TLConstructor_CRC32_popularContact)) - x.Bytes(m.GetPhotoSmall().EncodeToLayer(layer)) - x.Bytes(m.GetPhotoBig().EncodeToLayer(layer)) + x.Long(m.GetClientId()) + x.Int(m.GetImporters()) return x.buf } -func (m *TLChatPhoto) Decode(dbuf *DecodeBuf) error { - m1 := &FileLocation{} - m1.Decode(dbuf) - m.SetPhotoSmall(m1) - m2 := &FileLocation{} - m2.Decode(dbuf) - m.SetPhotoBig(m2) +func (m *TLPopularContact) Decode(dbuf *DecodeBuf) error { + m.SetClientId(dbuf.Long()) + m.SetImporters(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Help_TermsOfServiceUpdate <-- -// + TL_HelpTermsOfServiceUpdateEmpty -// + TL_HelpTermsOfServiceUpdate +// SendMessageAction <-- +// + TL_SendMessageTypingAction +// + TL_SendMessageCancelAction +// + TL_SendMessageRecordVideoAction +// + TL_SendMessageUploadVideoAction +// + TL_SendMessageRecordAudioAction +// + TL_SendMessageUploadAudioAction +// + TL_SendMessageUploadPhotoAction +// + TL_SendMessageUploadDocumentAction +// + TL_SendMessageGeoLocationAction +// + TL_SendMessageChooseContactAction +// + TL_SendMessageGamePlayAction +// + TL_SendMessageRecordRoundAction +// + TL_SendMessageUploadRoundAction // -func (m *Help_TermsOfServiceUpdate) Encode() []byte { +func (m *SendMessageAction) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_help_termsOfServiceUpdateEmpty: - t := m.To_HelpTermsOfServiceUpdateEmpty() + case TLConstructor_CRC32_sendMessageTypingAction: + t := m.To_SendMessageTypingAction() return t.Encode() - case TLConstructor_CRC32_help_termsOfServiceUpdate: - t := m.To_HelpTermsOfServiceUpdate() + case TLConstructor_CRC32_sendMessageCancelAction: + t := m.To_SendMessageCancelAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageRecordVideoAction: + t := m.To_SendMessageRecordVideoAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageUploadVideoAction: + t := m.To_SendMessageUploadVideoAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageRecordAudioAction: + t := m.To_SendMessageRecordAudioAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageUploadAudioAction: + t := m.To_SendMessageUploadAudioAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageUploadPhotoAction: + t := m.To_SendMessageUploadPhotoAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageUploadDocumentAction: + t := m.To_SendMessageUploadDocumentAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageGeoLocationAction: + t := m.To_SendMessageGeoLocationAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageChooseContactAction: + t := m.To_SendMessageChooseContactAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageGamePlayAction: + t := m.To_SendMessageGamePlayAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageRecordRoundAction: + t := m.To_SendMessageRecordRoundAction() + return t.Encode() + case TLConstructor_CRC32_sendMessageUploadRoundAction: + t := m.To_SendMessageUploadRoundAction() return t.Encode() default: @@ -30809,14 +31763,47 @@ func (m *Help_TermsOfServiceUpdate) Encode() []byte { } } -func (m *Help_TermsOfServiceUpdate) EncodeToLayer(layer int) []byte { +func (m *SendMessageAction) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_help_termsOfServiceUpdateEmpty: - t := m.To_HelpTermsOfServiceUpdateEmpty() + case TLConstructor_CRC32_sendMessageTypingAction: + t := m.To_SendMessageTypingAction() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_help_termsOfServiceUpdate: - t := m.To_HelpTermsOfServiceUpdate() + case TLConstructor_CRC32_sendMessageCancelAction: + t := m.To_SendMessageCancelAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageRecordVideoAction: + t := m.To_SendMessageRecordVideoAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageUploadVideoAction: + t := m.To_SendMessageUploadVideoAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageRecordAudioAction: + t := m.To_SendMessageRecordAudioAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageUploadAudioAction: + t := m.To_SendMessageUploadAudioAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageUploadPhotoAction: + t := m.To_SendMessageUploadPhotoAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageUploadDocumentAction: + t := m.To_SendMessageUploadDocumentAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageGeoLocationAction: + t := m.To_SendMessageGeoLocationAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageChooseContactAction: + t := m.To_SendMessageChooseContactAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageGamePlayAction: + t := m.To_SendMessageGamePlayAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageRecordRoundAction: + t := m.To_SendMessageRecordRoundAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sendMessageUploadRoundAction: + t := m.To_SendMessageUploadRoundAction() return t.EncodeToLayer(layer) default: @@ -30825,15 +31812,59 @@ func (m *Help_TermsOfServiceUpdate) EncodeToLayer(layer int) []byte { } } -func (m *Help_TermsOfServiceUpdate) Decode(dbuf *DecodeBuf) error { +func (m *SendMessageAction) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_help_termsOfServiceUpdateEmpty: - m2 := &TLHelpTermsOfServiceUpdateEmpty{Data2: &Help_TermsOfServiceUpdate_Data{}} + case TLConstructor_CRC32_sendMessageTypingAction: + m2 := &TLSendMessageTypingAction{Data2: &SendMessageAction_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_help_termsOfServiceUpdate: - m2 := &TLHelpTermsOfServiceUpdate{Data2: &Help_TermsOfServiceUpdate_Data{}} + case TLConstructor_CRC32_sendMessageCancelAction: + m2 := &TLSendMessageCancelAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageRecordVideoAction: + m2 := &TLSendMessageRecordVideoAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageUploadVideoAction: + m2 := &TLSendMessageUploadVideoAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageRecordAudioAction: + m2 := &TLSendMessageRecordAudioAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageUploadAudioAction: + m2 := &TLSendMessageUploadAudioAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageUploadPhotoAction: + m2 := &TLSendMessageUploadPhotoAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageUploadDocumentAction: + m2 := &TLSendMessageUploadDocumentAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageGeoLocationAction: + m2 := &TLSendMessageGeoLocationAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageChooseContactAction: + m2 := &TLSendMessageChooseContactAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageGamePlayAction: + m2 := &TLSendMessageGamePlayAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageRecordRoundAction: + m2 := &TLSendMessageRecordRoundAction{Data2: &SendMessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sendMessageUploadRoundAction: + m2 := &TLSendMessageUploadRoundAction{Data2: &SendMessageAction_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -30843,813 +31874,549 @@ func (m *Help_TermsOfServiceUpdate) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate; -func (m *Help_TermsOfServiceUpdate) To_HelpTermsOfServiceUpdateEmpty() *TLHelpTermsOfServiceUpdateEmpty { - return &TLHelpTermsOfServiceUpdateEmpty{ +// sendMessageTypingAction#16bf744e = SendMessageAction; +func (m *SendMessageAction) To_SendMessageTypingAction() *TLSendMessageTypingAction { + return &TLSendMessageTypingAction{ Data2: m.Data2, } } -// help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate; -func (m *Help_TermsOfServiceUpdate) To_HelpTermsOfServiceUpdate() *TLHelpTermsOfServiceUpdate { - return &TLHelpTermsOfServiceUpdate{ +// sendMessageCancelAction#fd5ec8f5 = SendMessageAction; +func (m *SendMessageAction) To_SendMessageCancelAction() *TLSendMessageCancelAction { + return &TLSendMessageCancelAction{ Data2: m.Data2, } } -// help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate; -func (m *TLHelpTermsOfServiceUpdateEmpty) To_Help_TermsOfServiceUpdate() *Help_TermsOfServiceUpdate { - return &Help_TermsOfServiceUpdate{ - Constructor: TLConstructor_CRC32_help_termsOfServiceUpdateEmpty, - Data2: m.Data2, +// sendMessageRecordVideoAction#a187d66f = SendMessageAction; +func (m *SendMessageAction) To_SendMessageRecordVideoAction() *TLSendMessageRecordVideoAction { + return &TLSendMessageRecordVideoAction{ + Data2: m.Data2, } } -func (m *TLHelpTermsOfServiceUpdateEmpty) SetExpires(v int32) { m.Data2.Expires = v } -func (m *TLHelpTermsOfServiceUpdateEmpty) GetExpires() int32 { return m.Data2.Expires } +// sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction; +func (m *SendMessageAction) To_SendMessageUploadVideoAction() *TLSendMessageUploadVideoAction { + return &TLSendMessageUploadVideoAction{ + Data2: m.Data2, + } +} -func NewTLHelpTermsOfServiceUpdateEmpty() *TLHelpTermsOfServiceUpdateEmpty { - return &TLHelpTermsOfServiceUpdateEmpty{Data2: &Help_TermsOfServiceUpdate_Data{}} +// sendMessageRecordAudioAction#d52f73f7 = SendMessageAction; +func (m *SendMessageAction) To_SendMessageRecordAudioAction() *TLSendMessageRecordAudioAction { + return &TLSendMessageRecordAudioAction{ + Data2: m.Data2, + } } -func (m *TLHelpTermsOfServiceUpdateEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_termsOfServiceUpdateEmpty)) - - x.Int(m.GetExpires()) - - return x.buf +// sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction; +func (m *SendMessageAction) To_SendMessageUploadAudioAction() *TLSendMessageUploadAudioAction { + return &TLSendMessageUploadAudioAction{ + Data2: m.Data2, + } } -func (m *TLHelpTermsOfServiceUpdateEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_termsOfServiceUpdateEmpty)) - - x.Int(m.GetExpires()) +// sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction; +func (m *SendMessageAction) To_SendMessageUploadPhotoAction() *TLSendMessageUploadPhotoAction { + return &TLSendMessageUploadPhotoAction{ + Data2: m.Data2, + } +} - return x.buf +// sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction; +func (m *SendMessageAction) To_SendMessageUploadDocumentAction() *TLSendMessageUploadDocumentAction { + return &TLSendMessageUploadDocumentAction{ + Data2: m.Data2, + } } -func (m *TLHelpTermsOfServiceUpdateEmpty) Decode(dbuf *DecodeBuf) error { - m.SetExpires(dbuf.Int()) +// sendMessageGeoLocationAction#176f8ba1 = SendMessageAction; +func (m *SendMessageAction) To_SendMessageGeoLocationAction() *TLSendMessageGeoLocationAction { + return &TLSendMessageGeoLocationAction{ + Data2: m.Data2, + } +} - return dbuf.err +// sendMessageChooseContactAction#628cbc6f = SendMessageAction; +func (m *SendMessageAction) To_SendMessageChooseContactAction() *TLSendMessageChooseContactAction { + return &TLSendMessageChooseContactAction{ + Data2: m.Data2, + } } -// help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate; -func (m *TLHelpTermsOfServiceUpdate) To_Help_TermsOfServiceUpdate() *Help_TermsOfServiceUpdate { - return &Help_TermsOfServiceUpdate{ - Constructor: TLConstructor_CRC32_help_termsOfServiceUpdate, - Data2: m.Data2, +// sendMessageGamePlayAction#dd6a8f48 = SendMessageAction; +func (m *SendMessageAction) To_SendMessageGamePlayAction() *TLSendMessageGamePlayAction { + return &TLSendMessageGamePlayAction{ + Data2: m.Data2, } } -func (m *TLHelpTermsOfServiceUpdate) SetExpires(v int32) { m.Data2.Expires = v } -func (m *TLHelpTermsOfServiceUpdate) GetExpires() int32 { return m.Data2.Expires } +// sendMessageRecordRoundAction#88f27fbc = SendMessageAction; +func (m *SendMessageAction) To_SendMessageRecordRoundAction() *TLSendMessageRecordRoundAction { + return &TLSendMessageRecordRoundAction{ + Data2: m.Data2, + } +} -func (m *TLHelpTermsOfServiceUpdate) SetTermsOfService(v *Help_TermsOfService) { - m.Data2.TermsOfService = v +// sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction; +func (m *SendMessageAction) To_SendMessageUploadRoundAction() *TLSendMessageUploadRoundAction { + return &TLSendMessageUploadRoundAction{ + Data2: m.Data2, + } } -func (m *TLHelpTermsOfServiceUpdate) GetTermsOfService() *Help_TermsOfService { - return m.Data2.TermsOfService + +// sendMessageTypingAction#16bf744e = SendMessageAction; +func (m *TLSendMessageTypingAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageTypingAction, + Data2: m.Data2, + } } -func NewTLHelpTermsOfServiceUpdate() *TLHelpTermsOfServiceUpdate { - return &TLHelpTermsOfServiceUpdate{Data2: &Help_TermsOfServiceUpdate_Data{}} +func NewTLSendMessageTypingAction() *TLSendMessageTypingAction { + return &TLSendMessageTypingAction{Data2: &SendMessageAction_Data{}} } -func (m *TLHelpTermsOfServiceUpdate) Encode() []byte { +func (m *TLSendMessageTypingAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_termsOfServiceUpdate)) - - x.Int(m.GetExpires()) - x.Bytes(m.GetTermsOfService().Encode()) + x.Int(int32(TLConstructor_CRC32_sendMessageTypingAction)) return x.buf } -func (m *TLHelpTermsOfServiceUpdate) EncodeToLayer(layer int) []byte { +func (m *TLSendMessageTypingAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_termsOfServiceUpdate)) - - x.Int(m.GetExpires()) - x.Bytes(m.GetTermsOfService().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_sendMessageTypingAction)) return x.buf } -func (m *TLHelpTermsOfServiceUpdate) Decode(dbuf *DecodeBuf) error { - m.SetExpires(dbuf.Int()) - m2 := &Help_TermsOfService{} - m2.Decode(dbuf) - m.SetTermsOfService(m2) +func (m *TLSendMessageTypingAction) Decode(dbuf *DecodeBuf) error { return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// SecureValueError <-- -// + TL_SecureValueErrorData -// + TL_SecureValueErrorFrontSide -// + TL_SecureValueErrorReverseSide -// + TL_SecureValueErrorSelfie -// + TL_SecureValueErrorFile -// + TL_SecureValueErrorFiles -// + TL_SecureValueError -// + TL_SecureValueErrorTranslationFile -// + TL_SecureValueErrorTranslationFiles -// - -func (m *SecureValueError) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_secureValueErrorData: - t := m.To_SecureValueErrorData() - return t.Encode() - case TLConstructor_CRC32_secureValueErrorFrontSide: - t := m.To_SecureValueErrorFrontSide() - return t.Encode() - case TLConstructor_CRC32_secureValueErrorReverseSide: - t := m.To_SecureValueErrorReverseSide() - return t.Encode() - case TLConstructor_CRC32_secureValueErrorSelfie: - t := m.To_SecureValueErrorSelfie() - return t.Encode() - case TLConstructor_CRC32_secureValueErrorFile: - t := m.To_SecureValueErrorFile() - return t.Encode() - case TLConstructor_CRC32_secureValueErrorFiles: - t := m.To_SecureValueErrorFiles() - return t.Encode() - case TLConstructor_CRC32_secureValueError: - t := m.To_SecureValueError() - return t.Encode() - case TLConstructor_CRC32_secureValueErrorTranslationFile: - t := m.To_SecureValueErrorTranslationFile() - return t.Encode() - case TLConstructor_CRC32_secureValueErrorTranslationFiles: - t := m.To_SecureValueErrorTranslationFiles() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// sendMessageCancelAction#fd5ec8f5 = SendMessageAction; +func (m *TLSendMessageCancelAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageCancelAction, + Data2: m.Data2, } } -func (m *SecureValueError) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_secureValueErrorData: - t := m.To_SecureValueErrorData() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueErrorFrontSide: - t := m.To_SecureValueErrorFrontSide() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueErrorReverseSide: - t := m.To_SecureValueErrorReverseSide() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueErrorSelfie: - t := m.To_SecureValueErrorSelfie() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueErrorFile: - t := m.To_SecureValueErrorFile() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueErrorFiles: - t := m.To_SecureValueErrorFiles() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueError: - t := m.To_SecureValueError() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueErrorTranslationFile: - t := m.To_SecureValueErrorTranslationFile() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_secureValueErrorTranslationFiles: - t := m.To_SecureValueErrorTranslationFiles() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLSendMessageCancelAction() *TLSendMessageCancelAction { + return &TLSendMessageCancelAction{Data2: &SendMessageAction_Data{}} } -func (m *SecureValueError) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_secureValueErrorData: - m2 := &TLSecureValueErrorData{Data2: &SecureValueError_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueErrorFrontSide: - m2 := &TLSecureValueErrorFrontSide{Data2: &SecureValueError_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueErrorReverseSide: - m2 := &TLSecureValueErrorReverseSide{Data2: &SecureValueError_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueErrorSelfie: - m2 := &TLSecureValueErrorSelfie{Data2: &SecureValueError_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueErrorFile: - m2 := &TLSecureValueErrorFile{Data2: &SecureValueError_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueErrorFiles: - m2 := &TLSecureValueErrorFiles{Data2: &SecureValueError_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueError: - m2 := &TLSecureValueError{Data2: &SecureValueError_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueErrorTranslationFile: - m2 := &TLSecureValueErrorTranslationFile{Data2: &SecureValueError_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_secureValueErrorTranslationFiles: - m2 := &TLSecureValueErrorTranslationFiles{Data2: &SecureValueError_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLSendMessageCancelAction) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_sendMessageCancelAction)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + return x.buf } -// secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError; -func (m *SecureValueError) To_SecureValueErrorData() *TLSecureValueErrorData { - return &TLSecureValueErrorData{ - Data2: m.Data2, - } -} +func (m *TLSendMessageCancelAction) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_sendMessageCancelAction)) -// secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *SecureValueError) To_SecureValueErrorFrontSide() *TLSecureValueErrorFrontSide { - return &TLSecureValueErrorFrontSide{ - Data2: m.Data2, - } + return x.buf } -// secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *SecureValueError) To_SecureValueErrorReverseSide() *TLSecureValueErrorReverseSide { - return &TLSecureValueErrorReverseSide{ - Data2: m.Data2, - } -} +func (m *TLSendMessageCancelAction) Decode(dbuf *DecodeBuf) error { -// secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *SecureValueError) To_SecureValueErrorSelfie() *TLSecureValueErrorSelfie { - return &TLSecureValueErrorSelfie{ - Data2: m.Data2, - } + return dbuf.err } -// secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *SecureValueError) To_SecureValueErrorFile() *TLSecureValueErrorFile { - return &TLSecureValueErrorFile{ - Data2: m.Data2, +// sendMessageRecordVideoAction#a187d66f = SendMessageAction; +func (m *TLSendMessageRecordVideoAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageRecordVideoAction, + Data2: m.Data2, } } -// secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError; -func (m *SecureValueError) To_SecureValueErrorFiles() *TLSecureValueErrorFiles { - return &TLSecureValueErrorFiles{ - Data2: m.Data2, - } +func NewTLSendMessageRecordVideoAction() *TLSendMessageRecordVideoAction { + return &TLSendMessageRecordVideoAction{Data2: &SendMessageAction_Data{}} } -// secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError; -func (m *SecureValueError) To_SecureValueError() *TLSecureValueError { - return &TLSecureValueError{ - Data2: m.Data2, - } +func (m *TLSendMessageRecordVideoAction) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_sendMessageRecordVideoAction)) + + return x.buf } -// secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *SecureValueError) To_SecureValueErrorTranslationFile() *TLSecureValueErrorTranslationFile { - return &TLSecureValueErrorTranslationFile{ - Data2: m.Data2, - } +func (m *TLSendMessageRecordVideoAction) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_sendMessageRecordVideoAction)) + + return x.buf } -// secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError; -func (m *SecureValueError) To_SecureValueErrorTranslationFiles() *TLSecureValueErrorTranslationFiles { - return &TLSecureValueErrorTranslationFiles{ - Data2: m.Data2, - } +func (m *TLSendMessageRecordVideoAction) Decode(dbuf *DecodeBuf) error { + + return dbuf.err } -// secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError; -func (m *TLSecureValueErrorData) To_SecureValueError() *SecureValueError { - return &SecureValueError{ - Constructor: TLConstructor_CRC32_secureValueErrorData, +// sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction; +func (m *TLSendMessageUploadVideoAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageUploadVideoAction, Data2: m.Data2, } } -func (m *TLSecureValueErrorData) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueErrorData) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLSecureValueErrorData) SetDataHash(v []byte) { m.Data2.DataHash = v } -func (m *TLSecureValueErrorData) GetDataHash() []byte { return m.Data2.DataHash } - -func (m *TLSecureValueErrorData) SetField(v string) { m.Data2.Field = v } -func (m *TLSecureValueErrorData) GetField() string { return m.Data2.Field } - -func (m *TLSecureValueErrorData) SetText(v string) { m.Data2.Text = v } -func (m *TLSecureValueErrorData) GetText() string { return m.Data2.Text } +func (m *TLSendMessageUploadVideoAction) SetProgress(v int32) { m.Data2.Progress = v } +func (m *TLSendMessageUploadVideoAction) GetProgress() int32 { return m.Data2.Progress } -func NewTLSecureValueErrorData() *TLSecureValueErrorData { - return &TLSecureValueErrorData{Data2: &SecureValueError_Data{}} +func NewTLSendMessageUploadVideoAction() *TLSendMessageUploadVideoAction { + return &TLSendMessageUploadVideoAction{Data2: &SendMessageAction_Data{}} } -func (m *TLSecureValueErrorData) Encode() []byte { +func (m *TLSendMessageUploadVideoAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorData)) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadVideoAction)) - x.Bytes(m.GetType().Encode()) - x.StringBytes(m.GetDataHash()) - x.String(m.GetField()) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorData) EncodeToLayer(layer int) []byte { +func (m *TLSendMessageUploadVideoAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorData)) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadVideoAction)) - x.Bytes(m.GetType().EncodeToLayer(layer)) - x.StringBytes(m.GetDataHash()) - x.String(m.GetField()) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorData) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} - m1.Decode(dbuf) - m.SetType(m1) - m.SetDataHash(dbuf.StringBytes()) - m.SetField(dbuf.String()) - m.SetText(dbuf.String()) +func (m *TLSendMessageUploadVideoAction) Decode(dbuf *DecodeBuf) error { + m.SetProgress(dbuf.Int()) return dbuf.err } -// secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *TLSecureValueErrorFrontSide) To_SecureValueError() *SecureValueError { - return &SecureValueError{ - Constructor: TLConstructor_CRC32_secureValueErrorFrontSide, +// sendMessageRecordAudioAction#d52f73f7 = SendMessageAction; +func (m *TLSendMessageRecordAudioAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageRecordAudioAction, Data2: m.Data2, } } -func (m *TLSecureValueErrorFrontSide) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueErrorFrontSide) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLSecureValueErrorFrontSide) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } -func (m *TLSecureValueErrorFrontSide) GetFileHash() []byte { return m.Data2.FileHash_5 } - -func (m *TLSecureValueErrorFrontSide) SetText(v string) { m.Data2.Text = v } -func (m *TLSecureValueErrorFrontSide) GetText() string { return m.Data2.Text } - -func NewTLSecureValueErrorFrontSide() *TLSecureValueErrorFrontSide { - return &TLSecureValueErrorFrontSide{Data2: &SecureValueError_Data{}} +func NewTLSendMessageRecordAudioAction() *TLSendMessageRecordAudioAction { + return &TLSendMessageRecordAudioAction{Data2: &SendMessageAction_Data{}} } -func (m *TLSecureValueErrorFrontSide) Encode() []byte { +func (m *TLSendMessageRecordAudioAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorFrontSide)) - - x.Bytes(m.GetType().Encode()) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_sendMessageRecordAudioAction)) return x.buf } -func (m *TLSecureValueErrorFrontSide) EncodeToLayer(layer int) []byte { +func (m *TLSendMessageRecordAudioAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorFrontSide)) - - x.Bytes(m.GetType().EncodeToLayer(layer)) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_sendMessageRecordAudioAction)) return x.buf } -func (m *TLSecureValueErrorFrontSide) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} - m1.Decode(dbuf) - m.SetType(m1) - m.SetFileHash(dbuf.StringBytes()) - m.SetText(dbuf.String()) +func (m *TLSendMessageRecordAudioAction) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *TLSecureValueErrorReverseSide) To_SecureValueError() *SecureValueError { - return &SecureValueError{ - Constructor: TLConstructor_CRC32_secureValueErrorReverseSide, +// sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction; +func (m *TLSendMessageUploadAudioAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageUploadAudioAction, Data2: m.Data2, } } -func (m *TLSecureValueErrorReverseSide) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueErrorReverseSide) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLSecureValueErrorReverseSide) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } -func (m *TLSecureValueErrorReverseSide) GetFileHash() []byte { return m.Data2.FileHash_5 } - -func (m *TLSecureValueErrorReverseSide) SetText(v string) { m.Data2.Text = v } -func (m *TLSecureValueErrorReverseSide) GetText() string { return m.Data2.Text } +func (m *TLSendMessageUploadAudioAction) SetProgress(v int32) { m.Data2.Progress = v } +func (m *TLSendMessageUploadAudioAction) GetProgress() int32 { return m.Data2.Progress } -func NewTLSecureValueErrorReverseSide() *TLSecureValueErrorReverseSide { - return &TLSecureValueErrorReverseSide{Data2: &SecureValueError_Data{}} +func NewTLSendMessageUploadAudioAction() *TLSendMessageUploadAudioAction { + return &TLSendMessageUploadAudioAction{Data2: &SendMessageAction_Data{}} } -func (m *TLSecureValueErrorReverseSide) Encode() []byte { +func (m *TLSendMessageUploadAudioAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorReverseSide)) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadAudioAction)) - x.Bytes(m.GetType().Encode()) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorReverseSide) EncodeToLayer(layer int) []byte { +func (m *TLSendMessageUploadAudioAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorReverseSide)) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadAudioAction)) - x.Bytes(m.GetType().EncodeToLayer(layer)) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorReverseSide) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} - m1.Decode(dbuf) - m.SetType(m1) - m.SetFileHash(dbuf.StringBytes()) - m.SetText(dbuf.String()) +func (m *TLSendMessageUploadAudioAction) Decode(dbuf *DecodeBuf) error { + m.SetProgress(dbuf.Int()) return dbuf.err } -// secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *TLSecureValueErrorSelfie) To_SecureValueError() *SecureValueError { - return &SecureValueError{ - Constructor: TLConstructor_CRC32_secureValueErrorSelfie, +// sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction; +func (m *TLSendMessageUploadPhotoAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageUploadPhotoAction, Data2: m.Data2, } } -func (m *TLSecureValueErrorSelfie) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueErrorSelfie) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLSecureValueErrorSelfie) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } -func (m *TLSecureValueErrorSelfie) GetFileHash() []byte { return m.Data2.FileHash_5 } - -func (m *TLSecureValueErrorSelfie) SetText(v string) { m.Data2.Text = v } -func (m *TLSecureValueErrorSelfie) GetText() string { return m.Data2.Text } +func (m *TLSendMessageUploadPhotoAction) SetProgress(v int32) { m.Data2.Progress = v } +func (m *TLSendMessageUploadPhotoAction) GetProgress() int32 { return m.Data2.Progress } -func NewTLSecureValueErrorSelfie() *TLSecureValueErrorSelfie { - return &TLSecureValueErrorSelfie{Data2: &SecureValueError_Data{}} +func NewTLSendMessageUploadPhotoAction() *TLSendMessageUploadPhotoAction { + return &TLSendMessageUploadPhotoAction{Data2: &SendMessageAction_Data{}} } -func (m *TLSecureValueErrorSelfie) Encode() []byte { +func (m *TLSendMessageUploadPhotoAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorSelfie)) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadPhotoAction)) - x.Bytes(m.GetType().Encode()) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorSelfie) EncodeToLayer(layer int) []byte { +func (m *TLSendMessageUploadPhotoAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorSelfie)) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadPhotoAction)) - x.Bytes(m.GetType().EncodeToLayer(layer)) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorSelfie) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} - m1.Decode(dbuf) - m.SetType(m1) - m.SetFileHash(dbuf.StringBytes()) - m.SetText(dbuf.String()) +func (m *TLSendMessageUploadPhotoAction) Decode(dbuf *DecodeBuf) error { + m.SetProgress(dbuf.Int()) return dbuf.err } -// secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *TLSecureValueErrorFile) To_SecureValueError() *SecureValueError { - return &SecureValueError{ - Constructor: TLConstructor_CRC32_secureValueErrorFile, +// sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction; +func (m *TLSendMessageUploadDocumentAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageUploadDocumentAction, Data2: m.Data2, } } -func (m *TLSecureValueErrorFile) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueErrorFile) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLSecureValueErrorFile) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } -func (m *TLSecureValueErrorFile) GetFileHash() []byte { return m.Data2.FileHash_5 } - -func (m *TLSecureValueErrorFile) SetText(v string) { m.Data2.Text = v } -func (m *TLSecureValueErrorFile) GetText() string { return m.Data2.Text } +func (m *TLSendMessageUploadDocumentAction) SetProgress(v int32) { m.Data2.Progress = v } +func (m *TLSendMessageUploadDocumentAction) GetProgress() int32 { return m.Data2.Progress } -func NewTLSecureValueErrorFile() *TLSecureValueErrorFile { - return &TLSecureValueErrorFile{Data2: &SecureValueError_Data{}} +func NewTLSendMessageUploadDocumentAction() *TLSendMessageUploadDocumentAction { + return &TLSendMessageUploadDocumentAction{Data2: &SendMessageAction_Data{}} } -func (m *TLSecureValueErrorFile) Encode() []byte { +func (m *TLSendMessageUploadDocumentAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorFile)) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadDocumentAction)) - x.Bytes(m.GetType().Encode()) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorFile) EncodeToLayer(layer int) []byte { +func (m *TLSendMessageUploadDocumentAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorFile)) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadDocumentAction)) - x.Bytes(m.GetType().EncodeToLayer(layer)) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorFile) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} - m1.Decode(dbuf) - m.SetType(m1) - m.SetFileHash(dbuf.StringBytes()) - m.SetText(dbuf.String()) +func (m *TLSendMessageUploadDocumentAction) Decode(dbuf *DecodeBuf) error { + m.SetProgress(dbuf.Int()) return dbuf.err } -// secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError; -func (m *TLSecureValueErrorFiles) To_SecureValueError() *SecureValueError { - return &SecureValueError{ - Constructor: TLConstructor_CRC32_secureValueErrorFiles, +// sendMessageGeoLocationAction#176f8ba1 = SendMessageAction; +func (m *TLSendMessageGeoLocationAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageGeoLocationAction, Data2: m.Data2, } } -func (m *TLSecureValueErrorFiles) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueErrorFiles) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLSecureValueErrorFiles) SetFileHash(v [][]byte) { m.Data2.FileHash_6 = v } -func (m *TLSecureValueErrorFiles) GetFileHash() [][]byte { return m.Data2.FileHash_6 } +func NewTLSendMessageGeoLocationAction() *TLSendMessageGeoLocationAction { + return &TLSendMessageGeoLocationAction{Data2: &SendMessageAction_Data{}} +} -func (m *TLSecureValueErrorFiles) SetText(v string) { m.Data2.Text = v } -func (m *TLSecureValueErrorFiles) GetText() string { return m.Data2.Text } +func (m *TLSendMessageGeoLocationAction) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_sendMessageGeoLocationAction)) -func NewTLSecureValueErrorFiles() *TLSecureValueErrorFiles { - return &TLSecureValueErrorFiles{Data2: &SecureValueError_Data{}} + return x.buf } -func (m *TLSecureValueErrorFiles) Encode() []byte { +func (m *TLSendMessageGeoLocationAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorFiles)) + x.Int(int32(TLConstructor_CRC32_sendMessageGeoLocationAction)) - x.Bytes(m.GetType().Encode()) + return x.buf +} - x.String(m.GetText()) +func (m *TLSendMessageGeoLocationAction) Decode(dbuf *DecodeBuf) error { - return x.buf + return dbuf.err } -func (m *TLSecureValueErrorFiles) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorFiles)) +// sendMessageChooseContactAction#628cbc6f = SendMessageAction; +func (m *TLSendMessageChooseContactAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageChooseContactAction, + Data2: m.Data2, + } +} - x.Bytes(m.GetType().EncodeToLayer(layer)) +func NewTLSendMessageChooseContactAction() *TLSendMessageChooseContactAction { + return &TLSendMessageChooseContactAction{Data2: &SendMessageAction_Data{}} +} - x.String(m.GetText()) +func (m *TLSendMessageChooseContactAction) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_sendMessageChooseContactAction)) return x.buf } -func (m *TLSecureValueErrorFiles) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} - m1.Decode(dbuf) - m.SetType(m1) +func (m *TLSendMessageChooseContactAction) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_sendMessageChooseContactAction)) - m.SetText(dbuf.String()) + return x.buf +} + +func (m *TLSendMessageChooseContactAction) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError; -func (m *TLSecureValueError) To_SecureValueError() *SecureValueError { - return &SecureValueError{ - Constructor: TLConstructor_CRC32_secureValueError, +// sendMessageGamePlayAction#dd6a8f48 = SendMessageAction; +func (m *TLSendMessageGamePlayAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageGamePlayAction, Data2: m.Data2, } } -func (m *TLSecureValueError) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueError) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLSecureValueError) SetHash(v []byte) { m.Data2.Hash = v } -func (m *TLSecureValueError) GetHash() []byte { return m.Data2.Hash } - -func (m *TLSecureValueError) SetText(v string) { m.Data2.Text = v } -func (m *TLSecureValueError) GetText() string { return m.Data2.Text } - -func NewTLSecureValueError() *TLSecureValueError { - return &TLSecureValueError{Data2: &SecureValueError_Data{}} +func NewTLSendMessageGamePlayAction() *TLSendMessageGamePlayAction { + return &TLSendMessageGamePlayAction{Data2: &SendMessageAction_Data{}} } -func (m *TLSecureValueError) Encode() []byte { +func (m *TLSendMessageGamePlayAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueError)) - - x.Bytes(m.GetType().Encode()) - x.StringBytes(m.GetHash()) - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_sendMessageGamePlayAction)) return x.buf } -func (m *TLSecureValueError) EncodeToLayer(layer int) []byte { +func (m *TLSendMessageGamePlayAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueError)) - - x.Bytes(m.GetType().EncodeToLayer(layer)) - x.StringBytes(m.GetHash()) - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_sendMessageGamePlayAction)) return x.buf } -func (m *TLSecureValueError) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} - m1.Decode(dbuf) - m.SetType(m1) - m.SetHash(dbuf.StringBytes()) - m.SetText(dbuf.String()) +func (m *TLSendMessageGamePlayAction) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError; -func (m *TLSecureValueErrorTranslationFile) To_SecureValueError() *SecureValueError { - return &SecureValueError{ - Constructor: TLConstructor_CRC32_secureValueErrorTranslationFile, +// sendMessageRecordRoundAction#88f27fbc = SendMessageAction; +func (m *TLSendMessageRecordRoundAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageRecordRoundAction, Data2: m.Data2, } } -func (m *TLSecureValueErrorTranslationFile) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueErrorTranslationFile) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLSecureValueErrorTranslationFile) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } -func (m *TLSecureValueErrorTranslationFile) GetFileHash() []byte { return m.Data2.FileHash_5 } - -func (m *TLSecureValueErrorTranslationFile) SetText(v string) { m.Data2.Text = v } -func (m *TLSecureValueErrorTranslationFile) GetText() string { return m.Data2.Text } - -func NewTLSecureValueErrorTranslationFile() *TLSecureValueErrorTranslationFile { - return &TLSecureValueErrorTranslationFile{Data2: &SecureValueError_Data{}} +func NewTLSendMessageRecordRoundAction() *TLSendMessageRecordRoundAction { + return &TLSendMessageRecordRoundAction{Data2: &SendMessageAction_Data{}} } -func (m *TLSecureValueErrorTranslationFile) Encode() []byte { +func (m *TLSendMessageRecordRoundAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorTranslationFile)) - - x.Bytes(m.GetType().Encode()) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_sendMessageRecordRoundAction)) return x.buf } -func (m *TLSecureValueErrorTranslationFile) EncodeToLayer(layer int) []byte { +func (m *TLSendMessageRecordRoundAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorTranslationFile)) - - x.Bytes(m.GetType().EncodeToLayer(layer)) - x.StringBytes(m.GetFileHash()) - x.String(m.GetText()) + x.Int(int32(TLConstructor_CRC32_sendMessageRecordRoundAction)) return x.buf } -func (m *TLSecureValueErrorTranslationFile) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} - m1.Decode(dbuf) - m.SetType(m1) - m.SetFileHash(dbuf.StringBytes()) - m.SetText(dbuf.String()) +func (m *TLSendMessageRecordRoundAction) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError; -func (m *TLSecureValueErrorTranslationFiles) To_SecureValueError() *SecureValueError { - return &SecureValueError{ - Constructor: TLConstructor_CRC32_secureValueErrorTranslationFiles, +// sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction; +func (m *TLSendMessageUploadRoundAction) To_SendMessageAction() *SendMessageAction { + return &SendMessageAction{ + Constructor: TLConstructor_CRC32_sendMessageUploadRoundAction, Data2: m.Data2, } } -func (m *TLSecureValueErrorTranslationFiles) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueErrorTranslationFiles) GetType() *SecureValueType { return m.Data2.Type } - -func (m *TLSecureValueErrorTranslationFiles) SetFileHash(v [][]byte) { m.Data2.FileHash_6 = v } -func (m *TLSecureValueErrorTranslationFiles) GetFileHash() [][]byte { return m.Data2.FileHash_6 } - -func (m *TLSecureValueErrorTranslationFiles) SetText(v string) { m.Data2.Text = v } -func (m *TLSecureValueErrorTranslationFiles) GetText() string { return m.Data2.Text } +func (m *TLSendMessageUploadRoundAction) SetProgress(v int32) { m.Data2.Progress = v } +func (m *TLSendMessageUploadRoundAction) GetProgress() int32 { return m.Data2.Progress } -func NewTLSecureValueErrorTranslationFiles() *TLSecureValueErrorTranslationFiles { - return &TLSecureValueErrorTranslationFiles{Data2: &SecureValueError_Data{}} +func NewTLSendMessageUploadRoundAction() *TLSendMessageUploadRoundAction { + return &TLSendMessageUploadRoundAction{Data2: &SendMessageAction_Data{}} } -func (m *TLSecureValueErrorTranslationFiles) Encode() []byte { +func (m *TLSendMessageUploadRoundAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorTranslationFiles)) - - x.Bytes(m.GetType().Encode()) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadRoundAction)) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorTranslationFiles) EncodeToLayer(layer int) []byte { +func (m *TLSendMessageUploadRoundAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueErrorTranslationFiles)) - - x.Bytes(m.GetType().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_sendMessageUploadRoundAction)) - x.String(m.GetText()) + x.Int(m.GetProgress()) return x.buf } -func (m *TLSecureValueErrorTranslationFiles) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} - m1.Decode(dbuf) - m.SetType(m1) - - m.SetText(dbuf.String()) +func (m *TLSendMessageUploadRoundAction) Decode(dbuf *DecodeBuf) error { + m.SetProgress(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ReportReason <-- -// + TL_InputReportReasonSpam -// + TL_InputReportReasonViolence -// + TL_InputReportReasonPornography -// + TL_InputReportReasonOther -// + TL_InputReportReasonCopyright +// MaskCoords <-- +// + TL_MaskCoords // -func (m *ReportReason) Encode() []byte { +func (m *MaskCoords) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputReportReasonSpam: - t := m.To_InputReportReasonSpam() - return t.Encode() - case TLConstructor_CRC32_inputReportReasonViolence: - t := m.To_InputReportReasonViolence() - return t.Encode() - case TLConstructor_CRC32_inputReportReasonPornography: - t := m.To_InputReportReasonPornography() - return t.Encode() - case TLConstructor_CRC32_inputReportReasonOther: - t := m.To_InputReportReasonOther() - return t.Encode() - case TLConstructor_CRC32_inputReportReasonCopyright: - t := m.To_InputReportReasonCopyright() + case TLConstructor_CRC32_maskCoords: + t := m.To_MaskCoords() return t.Encode() default: @@ -31658,23 +32425,11 @@ func (m *ReportReason) Encode() []byte { } } -func (m *ReportReason) EncodeToLayer(layer int) []byte { +func (m *MaskCoords) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputReportReasonSpam: - t := m.To_InputReportReasonSpam() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputReportReasonViolence: - t := m.To_InputReportReasonViolence() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputReportReasonPornography: - t := m.To_InputReportReasonPornography() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputReportReasonOther: - t := m.To_InputReportReasonOther() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputReportReasonCopyright: - t := m.To_InputReportReasonCopyright() + case TLConstructor_CRC32_maskCoords: + t := m.To_MaskCoords() return t.EncodeToLayer(layer) default: @@ -31683,27 +32438,11 @@ func (m *ReportReason) EncodeToLayer(layer int) []byte { } } -func (m *ReportReason) Decode(dbuf *DecodeBuf) error { +func (m *MaskCoords) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputReportReasonSpam: - m2 := &TLInputReportReasonSpam{Data2: &ReportReason_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputReportReasonViolence: - m2 := &TLInputReportReasonViolence{Data2: &ReportReason_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputReportReasonPornography: - m2 := &TLInputReportReasonPornography{Data2: &ReportReason_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputReportReasonOther: - m2 := &TLInputReportReasonOther{Data2: &ReportReason_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputReportReasonCopyright: - m2 := &TLInputReportReasonCopyright{Data2: &ReportReason_Data{}} + case TLConstructor_CRC32_maskCoords: + m2 := &TLMaskCoords{Data2: &MaskCoords_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -31713,415 +32452,368 @@ func (m *ReportReason) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputReportReasonSpam#58dbcab8 = ReportReason; -func (m *ReportReason) To_InputReportReasonSpam() *TLInputReportReasonSpam { - return &TLInputReportReasonSpam{ +// maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords; +func (m *MaskCoords) To_MaskCoords() *TLMaskCoords { + return &TLMaskCoords{ Data2: m.Data2, } } -// inputReportReasonViolence#1e22c78d = ReportReason; -func (m *ReportReason) To_InputReportReasonViolence() *TLInputReportReasonViolence { - return &TLInputReportReasonViolence{ - Data2: m.Data2, +// maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords; +func (m *TLMaskCoords) To_MaskCoords() *MaskCoords { + return &MaskCoords{ + Constructor: TLConstructor_CRC32_maskCoords, + Data2: m.Data2, } } -// inputReportReasonPornography#2e59d922 = ReportReason; -func (m *ReportReason) To_InputReportReasonPornography() *TLInputReportReasonPornography { - return &TLInputReportReasonPornography{ - Data2: m.Data2, - } -} +func (m *TLMaskCoords) SetN(v int32) { m.Data2.N = v } +func (m *TLMaskCoords) GetN() int32 { return m.Data2.N } -// inputReportReasonOther#e1746d0a text:string = ReportReason; -func (m *ReportReason) To_InputReportReasonOther() *TLInputReportReasonOther { - return &TLInputReportReasonOther{ - Data2: m.Data2, - } -} +func (m *TLMaskCoords) SetX(v float64) { m.Data2.X = v } +func (m *TLMaskCoords) GetX() float64 { return m.Data2.X } -// inputReportReasonCopyright#9b89f93a = ReportReason; -func (m *ReportReason) To_InputReportReasonCopyright() *TLInputReportReasonCopyright { - return &TLInputReportReasonCopyright{ - Data2: m.Data2, - } -} +func (m *TLMaskCoords) SetY(v float64) { m.Data2.Y = v } +func (m *TLMaskCoords) GetY() float64 { return m.Data2.Y } -// inputReportReasonSpam#58dbcab8 = ReportReason; -func (m *TLInputReportReasonSpam) To_ReportReason() *ReportReason { - return &ReportReason{ - Constructor: TLConstructor_CRC32_inputReportReasonSpam, - Data2: m.Data2, - } -} +func (m *TLMaskCoords) SetZoom(v float64) { m.Data2.Zoom = v } +func (m *TLMaskCoords) GetZoom() float64 { return m.Data2.Zoom } -func NewTLInputReportReasonSpam() *TLInputReportReasonSpam { - return &TLInputReportReasonSpam{Data2: &ReportReason_Data{}} +func NewTLMaskCoords() *TLMaskCoords { + return &TLMaskCoords{Data2: &MaskCoords_Data{}} } -func (m *TLInputReportReasonSpam) Encode() []byte { +func (m *TLMaskCoords) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonSpam)) + x.Int(int32(TLConstructor_CRC32_maskCoords)) + + x.Int(m.GetN()) + x.Double(m.GetX()) + x.Double(m.GetY()) + x.Double(m.GetZoom()) return x.buf } -func (m *TLInputReportReasonSpam) EncodeToLayer(layer int) []byte { +func (m *TLMaskCoords) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonSpam)) + x.Int(int32(TLConstructor_CRC32_maskCoords)) + + x.Int(m.GetN()) + x.Double(m.GetX()) + x.Double(m.GetY()) + x.Double(m.GetZoom()) return x.buf } -func (m *TLInputReportReasonSpam) Decode(dbuf *DecodeBuf) error { +func (m *TLMaskCoords) Decode(dbuf *DecodeBuf) error { + m.SetN(dbuf.Int()) + m.SetX(dbuf.Double()) + m.SetY(dbuf.Double()) + m.SetZoom(dbuf.Double()) return dbuf.err } -// inputReportReasonViolence#1e22c78d = ReportReason; -func (m *TLInputReportReasonViolence) To_ReportReason() *ReportReason { - return &ReportReason{ - Constructor: TLConstructor_CRC32_inputReportReasonViolence, - Data2: m.Data2, - } -} - -func NewTLInputReportReasonViolence() *TLInputReportReasonViolence { - return &TLInputReportReasonViolence{Data2: &ReportReason_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// Page <-- +// + TL_PagePart +// + TL_PageFull +// -func (m *TLInputReportReasonViolence) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonViolence)) +func (m *Page) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_pagePart: + t := m.To_PagePart() + return t.Encode() + case TLConstructor_CRC32_pageFull: + t := m.To_PageFull() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputReportReasonViolence) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonViolence)) +func (m *Page) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_pagePart: + t := m.To_PagePart() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageFull: + t := m.To_PageFull() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputReportReasonViolence) Decode(dbuf *DecodeBuf) error { +func (m *Page) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_pagePart: + m2 := &TLPagePart{Data2: &Page_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageFull: + m2 := &TLPageFull{Data2: &Page_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// inputReportReasonPornography#2e59d922 = ReportReason; -func (m *TLInputReportReasonPornography) To_ReportReason() *ReportReason { - return &ReportReason{ - Constructor: TLConstructor_CRC32_inputReportReasonPornography, - Data2: m.Data2, +// pagePart#8e3f9ebe blocks:Vector photos:Vector documents:Vector = Page; +func (m *Page) To_PagePart() *TLPagePart { + return &TLPagePart{ + Data2: m.Data2, } } -func NewTLInputReportReasonPornography() *TLInputReportReasonPornography { - return &TLInputReportReasonPornography{Data2: &ReportReason_Data{}} -} - -func (m *TLInputReportReasonPornography) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonPornography)) - - return x.buf -} - -func (m *TLInputReportReasonPornography) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonPornography)) - - return x.buf -} - -func (m *TLInputReportReasonPornography) Decode(dbuf *DecodeBuf) error { - - return dbuf.err +// pageFull#556ec7aa blocks:Vector photos:Vector documents:Vector = Page; +func (m *Page) To_PageFull() *TLPageFull { + return &TLPageFull{ + Data2: m.Data2, + } } -// inputReportReasonOther#e1746d0a text:string = ReportReason; -func (m *TLInputReportReasonOther) To_ReportReason() *ReportReason { - return &ReportReason{ - Constructor: TLConstructor_CRC32_inputReportReasonOther, +// pagePart#8e3f9ebe blocks:Vector photos:Vector documents:Vector = Page; +func (m *TLPagePart) To_Page() *Page { + return &Page{ + Constructor: TLConstructor_CRC32_pagePart, Data2: m.Data2, } } -func (m *TLInputReportReasonOther) SetText(v string) { m.Data2.Text = v } -func (m *TLInputReportReasonOther) GetText() string { return m.Data2.Text } - -func NewTLInputReportReasonOther() *TLInputReportReasonOther { - return &TLInputReportReasonOther{Data2: &ReportReason_Data{}} -} +func (m *TLPagePart) SetBlocks(v []*PageBlock) { m.Data2.Blocks = v } +func (m *TLPagePart) GetBlocks() []*PageBlock { return m.Data2.Blocks } -func (m *TLInputReportReasonOther) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonOther)) +func (m *TLPagePart) SetPhotos(v []*Photo) { m.Data2.Photos = v } +func (m *TLPagePart) GetPhotos() []*Photo { return m.Data2.Photos } - x.String(m.GetText()) +func (m *TLPagePart) SetDocuments(v []*Document) { m.Data2.Documents = v } +func (m *TLPagePart) GetDocuments() []*Document { return m.Data2.Documents } - return x.buf +func NewTLPagePart() *TLPagePart { + return &TLPagePart{Data2: &Page_Data{}} } -func (m *TLInputReportReasonOther) EncodeToLayer(layer int) []byte { +func (m *TLPagePart) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonOther)) - - x.String(m.GetText()) - - return x.buf -} + x.Int(int32(TLConstructor_CRC32_pagePart)) -func (m *TLInputReportReasonOther) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) - - return dbuf.err -} - -// inputReportReasonCopyright#9b89f93a = ReportReason; -func (m *TLInputReportReasonCopyright) To_ReportReason() *ReportReason { - return &ReportReason{ - Constructor: TLConstructor_CRC32_inputReportReasonCopyright, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocks()))) + for _, v := range m.GetBlocks() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPhotos()))) + for _, v := range m.GetPhotos() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDocuments()))) + for _, v := range m.GetDocuments() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func NewTLInputReportReasonCopyright() *TLInputReportReasonCopyright { - return &TLInputReportReasonCopyright{Data2: &ReportReason_Data{}} -} - -func (m *TLInputReportReasonCopyright) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonCopyright)) return x.buf } -func (m *TLInputReportReasonCopyright) EncodeToLayer(layer int) []byte { +func (m *TLPagePart) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputReportReasonCopyright)) - - return x.buf -} - -func (m *TLInputReportReasonCopyright) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// InputStickerSet <-- -// + TL_InputStickerSetEmpty -// + TL_InputStickerSetID -// + TL_InputStickerSetShortName -// - -func (m *InputStickerSet) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputStickerSetEmpty: - t := m.To_InputStickerSetEmpty() - return t.Encode() - case TLConstructor_CRC32_inputStickerSetID: - t := m.To_InputStickerSetID() - return t.Encode() - case TLConstructor_CRC32_inputStickerSetShortName: - t := m.To_InputStickerSetShortName() - return t.Encode() + x.Int(int32(TLConstructor_CRC32_pagePart)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocks()))) + for _, v := range m.GetBlocks() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } -} - -func (m *InputStickerSet) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputStickerSetEmpty: - t := m.To_InputStickerSetEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputStickerSetID: - t := m.To_InputStickerSetID() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputStickerSetShortName: - t := m.To_InputStickerSetShortName() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPhotos()))) + for _, v := range m.GetPhotos() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } -} - -func (m *InputStickerSet) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputStickerSetEmpty: - m2 := &TLInputStickerSetEmpty{Data2: &InputStickerSet_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputStickerSetID: - m2 := &TLInputStickerSetID{Data2: &InputStickerSet_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputStickerSetShortName: - m2 := &TLInputStickerSetShortName{Data2: &InputStickerSet_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDocuments()))) + for _, v := range m.GetDocuments() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - return dbuf.err -} -// inputStickerSetEmpty#ffb62b95 = InputStickerSet; -func (m *InputStickerSet) To_InputStickerSetEmpty() *TLInputStickerSetEmpty { - return &TLInputStickerSetEmpty{ - Data2: m.Data2, - } + return x.buf } -// inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; -func (m *InputStickerSet) To_InputStickerSetID() *TLInputStickerSetID { - return &TLInputStickerSetID{ - Data2: m.Data2, +func (m *TLPagePart) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } -} - -// inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; -func (m *InputStickerSet) To_InputStickerSetShortName() *TLInputStickerSetShortName { - return &TLInputStickerSetShortName{ - Data2: m.Data2, + l1 := dbuf.Int() + v1 := make([]*PageBlock, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &PageBlock{} + v1[i].Decode(dbuf) } -} + m.SetBlocks(v1) -// inputStickerSetEmpty#ffb62b95 = InputStickerSet; -func (m *TLInputStickerSetEmpty) To_InputStickerSet() *InputStickerSet { - return &InputStickerSet{ - Constructor: TLConstructor_CRC32_inputStickerSetEmpty, - Data2: m.Data2, + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err } -} - -func NewTLInputStickerSetEmpty() *TLInputStickerSetEmpty { - return &TLInputStickerSetEmpty{Data2: &InputStickerSet_Data{}} -} - -func (m *TLInputStickerSetEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickerSetEmpty)) - - return x.buf -} - -func (m *TLInputStickerSetEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickerSetEmpty)) - - return x.buf -} + l2 := dbuf.Int() + v2 := make([]*Photo, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Photo{} + v2[i].Decode(dbuf) + } + m.SetPhotos(v2) -func (m *TLInputStickerSetEmpty) Decode(dbuf *DecodeBuf) error { + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Document, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Document{} + v3[i].Decode(dbuf) + } + m.SetDocuments(v3) return dbuf.err } -// inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; -func (m *TLInputStickerSetID) To_InputStickerSet() *InputStickerSet { - return &InputStickerSet{ - Constructor: TLConstructor_CRC32_inputStickerSetID, +// pageFull#556ec7aa blocks:Vector photos:Vector documents:Vector = Page; +func (m *TLPageFull) To_Page() *Page { + return &Page{ + Constructor: TLConstructor_CRC32_pageFull, Data2: m.Data2, } } -func (m *TLInputStickerSetID) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputStickerSetID) GetId() int64 { return m.Data2.Id } - -func (m *TLInputStickerSetID) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputStickerSetID) GetAccessHash() int64 { return m.Data2.AccessHash } - -func NewTLInputStickerSetID() *TLInputStickerSetID { - return &TLInputStickerSetID{Data2: &InputStickerSet_Data{}} -} +func (m *TLPageFull) SetBlocks(v []*PageBlock) { m.Data2.Blocks = v } +func (m *TLPageFull) GetBlocks() []*PageBlock { return m.Data2.Blocks } -func (m *TLInputStickerSetID) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickerSetID)) +func (m *TLPageFull) SetPhotos(v []*Photo) { m.Data2.Photos = v } +func (m *TLPageFull) GetPhotos() []*Photo { return m.Data2.Photos } - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) +func (m *TLPageFull) SetDocuments(v []*Document) { m.Data2.Documents = v } +func (m *TLPageFull) GetDocuments() []*Document { return m.Data2.Documents } - return x.buf +func NewTLPageFull() *TLPageFull { + return &TLPageFull{Data2: &Page_Data{}} } -func (m *TLInputStickerSetID) EncodeToLayer(layer int) []byte { +func (m *TLPageFull) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickerSetID)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - - return x.buf -} - -func (m *TLInputStickerSetID) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_pageFull)) -// inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; -func (m *TLInputStickerSetShortName) To_InputStickerSet() *InputStickerSet { - return &InputStickerSet{ - Constructor: TLConstructor_CRC32_inputStickerSetShortName, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocks()))) + for _, v := range m.GetBlocks() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPhotos()))) + for _, v := range m.GetPhotos() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDocuments()))) + for _, v := range m.GetDocuments() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func (m *TLInputStickerSetShortName) SetShortName(v string) { m.Data2.ShortName = v } -func (m *TLInputStickerSetShortName) GetShortName() string { return m.Data2.ShortName } -func NewTLInputStickerSetShortName() *TLInputStickerSetShortName { - return &TLInputStickerSetShortName{Data2: &InputStickerSet_Data{}} + return x.buf } -func (m *TLInputStickerSetShortName) Encode() []byte { +func (m *TLPageFull) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickerSetShortName)) + x.Int(int32(TLConstructor_CRC32_pageFull)) - x.String(m.GetShortName()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocks()))) + for _, v := range m.GetBlocks() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPhotos()))) + for _, v := range m.GetPhotos() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDocuments()))) + for _, v := range m.GetDocuments() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLInputStickerSetShortName) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickerSetShortName)) - - x.String(m.GetShortName()) +func (m *TLPageFull) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*PageBlock, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &PageBlock{} + v1[i].Decode(dbuf) + } + m.SetBlocks(v1) - return x.buf -} + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Photo, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Photo{} + v2[i].Decode(dbuf) + } + m.SetPhotos(v2) -func (m *TLInputStickerSetShortName) Decode(dbuf *DecodeBuf) error { - m.SetShortName(dbuf.String()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Document, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Document{} + v3[i].Decode(dbuf) + } + m.SetDocuments(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Channels_ChannelParticipant <-- -// + TL_ChannelsChannelParticipant +// CdnConfig <-- +// + TL_CdnConfig // -func (m *Channels_ChannelParticipant) Encode() []byte { +func (m *CdnConfig) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_channels_channelParticipant: - t := m.To_ChannelsChannelParticipant() + case TLConstructor_CRC32_cdnConfig: + t := m.To_CdnConfig() return t.Encode() default: @@ -32130,11 +32822,11 @@ func (m *Channels_ChannelParticipant) Encode() []byte { } } -func (m *Channels_ChannelParticipant) EncodeToLayer(layer int) []byte { +func (m *CdnConfig) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_channels_channelParticipant: - t := m.To_ChannelsChannelParticipant() + case TLConstructor_CRC32_cdnConfig: + t := m.To_CdnConfig() return t.EncodeToLayer(layer) default: @@ -32143,11 +32835,11 @@ func (m *Channels_ChannelParticipant) EncodeToLayer(layer int) []byte { } } -func (m *Channels_ChannelParticipant) Decode(dbuf *DecodeBuf) error { +func (m *CdnConfig) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_channels_channelParticipant: - m2 := &TLChannelsChannelParticipant{Data2: &Channels_ChannelParticipant_Data{}} + case TLConstructor_CRC32_cdnConfig: + m2 := &TLCdnConfig{Data2: &CdnConfig_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -32157,90 +32849,88 @@ func (m *Channels_ChannelParticipant) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector = channels.ChannelParticipant; -func (m *Channels_ChannelParticipant) To_ChannelsChannelParticipant() *TLChannelsChannelParticipant { - return &TLChannelsChannelParticipant{ +// cdnConfig#5725e40a public_keys:Vector = CdnConfig; +func (m *CdnConfig) To_CdnConfig() *TLCdnConfig { + return &TLCdnConfig{ Data2: m.Data2, } } -// channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector = channels.ChannelParticipant; -func (m *TLChannelsChannelParticipant) To_Channels_ChannelParticipant() *Channels_ChannelParticipant { - return &Channels_ChannelParticipant{ - Constructor: TLConstructor_CRC32_channels_channelParticipant, +// cdnConfig#5725e40a public_keys:Vector = CdnConfig; +func (m *TLCdnConfig) To_CdnConfig() *CdnConfig { + return &CdnConfig{ + Constructor: TLConstructor_CRC32_cdnConfig, Data2: m.Data2, } } -func (m *TLChannelsChannelParticipant) SetParticipant(v *ChannelParticipant) { m.Data2.Participant = v } -func (m *TLChannelsChannelParticipant) GetParticipant() *ChannelParticipant { - return m.Data2.Participant -} - -func (m *TLChannelsChannelParticipant) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLChannelsChannelParticipant) GetUsers() []*User { return m.Data2.Users } +func (m *TLCdnConfig) SetPublicKeys(v []*CdnPublicKey) { m.Data2.PublicKeys = v } +func (m *TLCdnConfig) GetPublicKeys() []*CdnPublicKey { return m.Data2.PublicKeys } -func NewTLChannelsChannelParticipant() *TLChannelsChannelParticipant { - return &TLChannelsChannelParticipant{Data2: &Channels_ChannelParticipant_Data{}} +func NewTLCdnConfig() *TLCdnConfig { + return &TLCdnConfig{Data2: &CdnConfig_Data{}} } -func (m *TLChannelsChannelParticipant) Encode() []byte { +func (m *TLCdnConfig) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channels_channelParticipant)) + x.Int(int32(TLConstructor_CRC32_cdnConfig)) - x.Bytes(m.GetParticipant().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { + x.Int(int32(len(m.GetPublicKeys()))) + for _, v := range m.GetPublicKeys() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLChannelsChannelParticipant) EncodeToLayer(layer int) []byte { +func (m *TLCdnConfig) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channels_channelParticipant)) + x.Int(int32(TLConstructor_CRC32_cdnConfig)) - x.Bytes(m.GetParticipant().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { + x.Int(int32(len(m.GetPublicKeys()))) + for _, v := range m.GetPublicKeys() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLChannelsChannelParticipant) Decode(dbuf *DecodeBuf) error { - m1 := &ChannelParticipant{} - m1.Decode(dbuf) - m.SetParticipant(m1) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) +func (m *TLCdnConfig) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) return dbuf.err } - l2 := dbuf.Int() - v2 := make([]*User, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &User{} - v2[i].Decode(dbuf) + l1 := dbuf.Int() + v1 := make([]*CdnPublicKey, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &CdnPublicKey{} + v1[i].Decode(dbuf) } - m.SetUsers(v2) + m.SetPublicKeys(v1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InlineBotSwitchPM <-- -// + TL_InlineBotSwitchPM +// Messages_Dialogs <-- +// + TL_MessagesDialogs +// + TL_MessagesDialogsSlice +// + TL_MessagesDialogsNotModified // -func (m *InlineBotSwitchPM) Encode() []byte { +func (m *Messages_Dialogs) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inlineBotSwitchPM: - t := m.To_InlineBotSwitchPM() + case TLConstructor_CRC32_messages_dialogs: + t := m.To_MessagesDialogs() + return t.Encode() + case TLConstructor_CRC32_messages_dialogsSlice: + t := m.To_MessagesDialogsSlice() + return t.Encode() + case TLConstructor_CRC32_messages_dialogsNotModified: + t := m.To_MessagesDialogsNotModified() return t.Encode() default: @@ -32249,11 +32939,17 @@ func (m *InlineBotSwitchPM) Encode() []byte { } } -func (m *InlineBotSwitchPM) EncodeToLayer(layer int) []byte { +func (m *Messages_Dialogs) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inlineBotSwitchPM: - t := m.To_InlineBotSwitchPM() + case TLConstructor_CRC32_messages_dialogs: + t := m.To_MessagesDialogs() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_dialogsSlice: + t := m.To_MessagesDialogsSlice() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_dialogsNotModified: + t := m.To_MessagesDialogsNotModified() return t.EncodeToLayer(layer) default: @@ -32262,11 +32958,19 @@ func (m *InlineBotSwitchPM) EncodeToLayer(layer int) []byte { } } -func (m *InlineBotSwitchPM) Decode(dbuf *DecodeBuf) error { +func (m *Messages_Dialogs) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inlineBotSwitchPM: - m2 := &TLInlineBotSwitchPM{Data2: &InlineBotSwitchPM_Data{}} + case TLConstructor_CRC32_messages_dialogs: + m2 := &TLMessagesDialogs{Data2: &Messages_Dialogs_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_dialogsSlice: + m2 := &TLMessagesDialogsSlice{Data2: &Messages_Dialogs_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_dialogsNotModified: + m2 := &TLMessagesDialogsNotModified{Data2: &Messages_Dialogs_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -32276,54 +32980,340 @@ func (m *InlineBotSwitchPM) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM; -func (m *InlineBotSwitchPM) To_InlineBotSwitchPM() *TLInlineBotSwitchPM { - return &TLInlineBotSwitchPM{ +// messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; +func (m *Messages_Dialogs) To_MessagesDialogs() *TLMessagesDialogs { + return &TLMessagesDialogs{ Data2: m.Data2, } } -// inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM; -func (m *TLInlineBotSwitchPM) To_InlineBotSwitchPM() *InlineBotSwitchPM { - return &InlineBotSwitchPM{ - Constructor: TLConstructor_CRC32_inlineBotSwitchPM, - Data2: m.Data2, +// messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; +func (m *Messages_Dialogs) To_MessagesDialogsSlice() *TLMessagesDialogsSlice { + return &TLMessagesDialogsSlice{ + Data2: m.Data2, } } -func (m *TLInlineBotSwitchPM) SetText(v string) { m.Data2.Text = v } -func (m *TLInlineBotSwitchPM) GetText() string { return m.Data2.Text } - -func (m *TLInlineBotSwitchPM) SetStartParam(v string) { m.Data2.StartParam = v } -func (m *TLInlineBotSwitchPM) GetStartParam() string { return m.Data2.StartParam } +// messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs; +func (m *Messages_Dialogs) To_MessagesDialogsNotModified() *TLMessagesDialogsNotModified { + return &TLMessagesDialogsNotModified{ + Data2: m.Data2, + } +} -func NewTLInlineBotSwitchPM() *TLInlineBotSwitchPM { - return &TLInlineBotSwitchPM{Data2: &InlineBotSwitchPM_Data{}} +// messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; +func (m *TLMessagesDialogs) To_Messages_Dialogs() *Messages_Dialogs { + return &Messages_Dialogs{ + Constructor: TLConstructor_CRC32_messages_dialogs, + Data2: m.Data2, + } } -func (m *TLInlineBotSwitchPM) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inlineBotSwitchPM)) +func (m *TLMessagesDialogs) SetDialogs(v []*Dialog) { m.Data2.Dialogs = v } +func (m *TLMessagesDialogs) GetDialogs() []*Dialog { return m.Data2.Dialogs } - x.String(m.GetText()) - x.String(m.GetStartParam()) +func (m *TLMessagesDialogs) SetMessages(v []*Message) { m.Data2.Messages = v } +func (m *TLMessagesDialogs) GetMessages() []*Message { return m.Data2.Messages } + +func (m *TLMessagesDialogs) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLMessagesDialogs) GetChats() []*Chat { return m.Data2.Chats } + +func (m *TLMessagesDialogs) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLMessagesDialogs) GetUsers() []*User { return m.Data2.Users } + +func NewTLMessagesDialogs() *TLMessagesDialogs { + return &TLMessagesDialogs{Data2: &Messages_Dialogs_Data{}} +} + +func (m *TLMessagesDialogs) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_dialogs)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDialogs()))) + for _, v := range m.GetDialogs() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLInlineBotSwitchPM) EncodeToLayer(layer int) []byte { +func (m *TLMessagesDialogs) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inlineBotSwitchPM)) + x.Int(int32(TLConstructor_CRC32_messages_dialogs)) - x.String(m.GetText()) - x.String(m.GetStartParam()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDialogs()))) + for _, v := range m.GetDialogs() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLInlineBotSwitchPM) Decode(dbuf *DecodeBuf) error { - m.SetText(dbuf.String()) - m.SetStartParam(dbuf.String()) +func (m *TLMessagesDialogs) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*Dialog, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Dialog{} + v1[i].Decode(dbuf) + } + m.SetDialogs(v1) + + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Message, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Message{} + v2[i].Decode(dbuf) + } + m.SetMessages(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Chat, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Chat{} + v3[i].Decode(dbuf) + } + m.SetChats(v3) + + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*User, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &User{} + v4[i].Decode(dbuf) + } + m.SetUsers(v4) + + return dbuf.err +} + +// messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; +func (m *TLMessagesDialogsSlice) To_Messages_Dialogs() *Messages_Dialogs { + return &Messages_Dialogs{ + Constructor: TLConstructor_CRC32_messages_dialogsSlice, + Data2: m.Data2, + } +} + +func (m *TLMessagesDialogsSlice) SetCount(v int32) { m.Data2.Count = v } +func (m *TLMessagesDialogsSlice) GetCount() int32 { return m.Data2.Count } + +func (m *TLMessagesDialogsSlice) SetDialogs(v []*Dialog) { m.Data2.Dialogs = v } +func (m *TLMessagesDialogsSlice) GetDialogs() []*Dialog { return m.Data2.Dialogs } + +func (m *TLMessagesDialogsSlice) SetMessages(v []*Message) { m.Data2.Messages = v } +func (m *TLMessagesDialogsSlice) GetMessages() []*Message { return m.Data2.Messages } + +func (m *TLMessagesDialogsSlice) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLMessagesDialogsSlice) GetChats() []*Chat { return m.Data2.Chats } + +func (m *TLMessagesDialogsSlice) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLMessagesDialogsSlice) GetUsers() []*User { return m.Data2.Users } + +func NewTLMessagesDialogsSlice() *TLMessagesDialogsSlice { + return &TLMessagesDialogsSlice{Data2: &Messages_Dialogs_Data{}} +} + +func (m *TLMessagesDialogsSlice) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_dialogsSlice)) + + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDialogs()))) + for _, v := range m.GetDialogs() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } + + return x.buf +} + +func (m *TLMessagesDialogsSlice) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_dialogsSlice)) + + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDialogs()))) + for _, v := range m.GetDialogs() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + + return x.buf +} + +func (m *TLMessagesDialogsSlice) Decode(dbuf *DecodeBuf) error { + m.SetCount(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Dialog, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Dialog{} + v2[i].Decode(dbuf) + } + m.SetDialogs(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Message, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Message{} + v3[i].Decode(dbuf) + } + m.SetMessages(v3) + + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*Chat, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &Chat{} + v4[i].Decode(dbuf) + } + m.SetChats(v4) + + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*User, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &User{} + v5[i].Decode(dbuf) + } + m.SetUsers(v5) + + return dbuf.err +} + +// messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs; +func (m *TLMessagesDialogsNotModified) To_Messages_Dialogs() *Messages_Dialogs { + return &Messages_Dialogs{ + Constructor: TLConstructor_CRC32_messages_dialogsNotModified, + Data2: m.Data2, + } +} + +func (m *TLMessagesDialogsNotModified) SetCount(v int32) { m.Data2.Count = v } +func (m *TLMessagesDialogsNotModified) GetCount() int32 { return m.Data2.Count } + +func NewTLMessagesDialogsNotModified() *TLMessagesDialogsNotModified { + return &TLMessagesDialogsNotModified{Data2: &Messages_Dialogs_Data{}} +} + +func (m *TLMessagesDialogsNotModified) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_dialogsNotModified)) + + x.Int(m.GetCount()) + + return x.buf +} + +func (m *TLMessagesDialogsNotModified) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_dialogsNotModified)) + + x.Int(m.GetCount()) + + return x.buf +} + +func (m *TLMessagesDialogsNotModified) Decode(dbuf *DecodeBuf) error { + m.SetCount(dbuf.Int()) return dbuf.err } @@ -32481,26 +33471,14 @@ func (m *TLGame) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// Messages_Messages <-- -// + TL_MessagesMessages -// + TL_MessagesMessagesSlice -// + TL_MessagesChannelMessages -// + TL_MessagesMessagesNotModified +// Messages_HighScores <-- +// + TL_MessagesHighScores // -func (m *Messages_Messages) Encode() []byte { +func (m *Messages_HighScores) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_messages: - t := m.To_MessagesMessages() - return t.Encode() - case TLConstructor_CRC32_messages_messagesSlice: - t := m.To_MessagesMessagesSlice() - return t.Encode() - case TLConstructor_CRC32_messages_channelMessages: - t := m.To_MessagesChannelMessages() - return t.Encode() - case TLConstructor_CRC32_messages_messagesNotModified: - t := m.To_MessagesMessagesNotModified() + case TLConstructor_CRC32_messages_highScores: + t := m.To_MessagesHighScores() return t.Encode() default: @@ -32509,20 +33487,11 @@ func (m *Messages_Messages) Encode() []byte { } } -func (m *Messages_Messages) EncodeToLayer(layer int) []byte { +func (m *Messages_HighScores) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_messages: - t := m.To_MessagesMessages() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_messagesSlice: - t := m.To_MessagesMessagesSlice() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_channelMessages: - t := m.To_MessagesChannelMessages() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_messagesNotModified: - t := m.To_MessagesMessagesNotModified() + case TLConstructor_CRC32_messages_highScores: + t := m.To_MessagesHighScores() return t.EncodeToLayer(layer) default: @@ -32531,23 +33500,11 @@ func (m *Messages_Messages) EncodeToLayer(layer int) []byte { } } -func (m *Messages_Messages) Decode(dbuf *DecodeBuf) error { +func (m *Messages_HighScores) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_messages: - m2 := &TLMessagesMessages{Data2: &Messages_Messages_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_messagesSlice: - m2 := &TLMessagesMessagesSlice{Data2: &Messages_Messages_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_channelMessages: - m2 := &TLMessagesChannelMessages{Data2: &Messages_Messages_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_messagesNotModified: - m2 := &TLMessagesMessagesNotModified{Data2: &Messages_Messages_Data{}} + case TLConstructor_CRC32_messages_highScores: + m2 := &TLMessagesHighScores{Data2: &Messages_HighScores_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -32557,67 +33514,38 @@ func (m *Messages_Messages) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages; -func (m *Messages_Messages) To_MessagesMessages() *TLMessagesMessages { - return &TLMessagesMessages{ - Data2: m.Data2, - } -} - -// messages.messagesSlice#b446ae3 count:int messages:Vector chats:Vector users:Vector = messages.Messages; -func (m *Messages_Messages) To_MessagesMessagesSlice() *TLMessagesMessagesSlice { - return &TLMessagesMessagesSlice{ - Data2: m.Data2, - } -} - -// messages.channelMessages#99262e37 flags:# pts:int count:int messages:Vector chats:Vector users:Vector = messages.Messages; -func (m *Messages_Messages) To_MessagesChannelMessages() *TLMessagesChannelMessages { - return &TLMessagesChannelMessages{ - Data2: m.Data2, - } -} - -// messages.messagesNotModified#74535f21 count:int = messages.Messages; -func (m *Messages_Messages) To_MessagesMessagesNotModified() *TLMessagesMessagesNotModified { - return &TLMessagesMessagesNotModified{ +// messages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores; +func (m *Messages_HighScores) To_MessagesHighScores() *TLMessagesHighScores { + return &TLMessagesHighScores{ Data2: m.Data2, } } -// messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages; -func (m *TLMessagesMessages) To_Messages_Messages() *Messages_Messages { - return &Messages_Messages{ - Constructor: TLConstructor_CRC32_messages_messages, +// messages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores; +func (m *TLMessagesHighScores) To_Messages_HighScores() *Messages_HighScores { + return &Messages_HighScores{ + Constructor: TLConstructor_CRC32_messages_highScores, Data2: m.Data2, } } -func (m *TLMessagesMessages) SetMessages(v []*Message) { m.Data2.Messages = v } -func (m *TLMessagesMessages) GetMessages() []*Message { return m.Data2.Messages } - -func (m *TLMessagesMessages) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLMessagesMessages) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLMessagesHighScores) SetScores(v []*HighScore) { m.Data2.Scores = v } +func (m *TLMessagesHighScores) GetScores() []*HighScore { return m.Data2.Scores } -func (m *TLMessagesMessages) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLMessagesMessages) GetUsers() []*User { return m.Data2.Users } +func (m *TLMessagesHighScores) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLMessagesHighScores) GetUsers() []*User { return m.Data2.Users } -func NewTLMessagesMessages() *TLMessagesMessages { - return &TLMessagesMessages{Data2: &Messages_Messages_Data{}} +func NewTLMessagesHighScores() *TLMessagesHighScores { + return &TLMessagesHighScores{Data2: &Messages_HighScores_Data{}} } -func (m *TLMessagesMessages) Encode() []byte { +func (m *TLMessagesHighScores) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_messages)) + x.Int(int32(TLConstructor_CRC32_messages_highScores)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { + x.Int(int32(len(m.GetScores()))) + for _, v := range m.GetScores() { x.buf = append(x.buf, (*v).Encode()...) } x.Int(int32(TLConstructor_CRC32_vector)) @@ -32629,18 +33557,13 @@ func (m *TLMessagesMessages) Encode() []byte { return x.buf } -func (m *TLMessagesMessages) EncodeToLayer(layer int) []byte { +func (m *TLMessagesHighScores) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_messages)) + x.Int(int32(TLConstructor_CRC32_messages_highScores)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { + x.Int(int32(len(m.GetScores()))) + for _, v := range m.GetScores() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } x.Int(int32(TLConstructor_CRC32_vector)) @@ -32652,19 +33575,19 @@ func (m *TLMessagesMessages) EncodeToLayer(layer int) []byte { return x.buf } -func (m *TLMessagesMessages) Decode(dbuf *DecodeBuf) error { +func (m *TLMessagesHighScores) Decode(dbuf *DecodeBuf) error { c1 := dbuf.Int() if c1 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) return dbuf.err } l1 := dbuf.Int() - v1 := make([]*Message, l1) + v1 := make([]*HighScore, l1) for i := int32(0); i < l1; i++ { - v1[i] = &Message{} + v1[i] = &HighScore{} v1[i].Decode(dbuf) } - m.SetMessages(v1) + m.SetScores(v1) c2 := dbuf.Int() if c2 != int32(TLConstructor_CRC32_vector) { @@ -32672,373 +33595,345 @@ func (m *TLMessagesMessages) Decode(dbuf *DecodeBuf) error { return dbuf.err } l2 := dbuf.Int() - v2 := make([]*Chat, l2) + v2 := make([]*User, l2) for i := int32(0); i < l2; i++ { - v2[i] = &Chat{} + v2[i] = &User{} v2[i].Decode(dbuf) } - m.SetChats(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*User, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &User{} - v3[i].Decode(dbuf) - } - m.SetUsers(v3) + m.SetUsers(v2) return dbuf.err } -// messages.messagesSlice#b446ae3 count:int messages:Vector chats:Vector users:Vector = messages.Messages; -func (m *TLMessagesMessagesSlice) To_Messages_Messages() *Messages_Messages { - return &Messages_Messages{ - Constructor: TLConstructor_CRC32_messages_messagesSlice, - Data2: m.Data2, - } -} - -func (m *TLMessagesMessagesSlice) SetCount(v int32) { m.Data2.Count = v } -func (m *TLMessagesMessagesSlice) GetCount() int32 { return m.Data2.Count } +/////////////////////////////////////////////////////////////////////////////// +// LangPackString <-- +// + TL_LangPackString +// + TL_LangPackStringPluralized +// + TL_LangPackStringDeleted +// -func (m *TLMessagesMessagesSlice) SetMessages(v []*Message) { m.Data2.Messages = v } -func (m *TLMessagesMessagesSlice) GetMessages() []*Message { return m.Data2.Messages } +func (m *LangPackString) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_langPackString: + t := m.To_LangPackString() + return t.Encode() + case TLConstructor_CRC32_langPackStringPluralized: + t := m.To_LangPackStringPluralized() + return t.Encode() + case TLConstructor_CRC32_langPackStringDeleted: + t := m.To_LangPackStringDeleted() + return t.Encode() -func (m *TLMessagesMessagesSlice) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLMessagesMessagesSlice) GetChats() []*Chat { return m.Data2.Chats } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLMessagesMessagesSlice) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLMessagesMessagesSlice) GetUsers() []*User { return m.Data2.Users } +func (m *LangPackString) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_langPackString: + t := m.To_LangPackString() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_langPackStringPluralized: + t := m.To_LangPackStringPluralized() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_langPackStringDeleted: + t := m.To_LangPackStringDeleted() + return t.EncodeToLayer(layer) -func NewTLMessagesMessagesSlice() *TLMessagesMessagesSlice { - return &TLMessagesMessagesSlice{Data2: &Messages_Messages_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessagesMessagesSlice) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_messagesSlice)) +func (m *LangPackString) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_langPackString: + m2 := &TLLangPackString{Data2: &LangPackString_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_langPackStringPluralized: + m2 := &TLLangPackStringPluralized{Data2: &LangPackString_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_langPackStringDeleted: + m2 := &TLLangPackStringDeleted{Data2: &LangPackString_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).Encode()...) + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) + return dbuf.err +} + +// langPackString#cad181f6 key:string value:string = LangPackString; +func (m *LangPackString) To_LangPackString() *TLLangPackString { + return &TLLangPackString{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) +} + +// langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString; +func (m *LangPackString) To_LangPackStringPluralized() *TLLangPackStringPluralized { + return &TLLangPackStringPluralized{ + Data2: m.Data2, } +} - return x.buf +// langPackStringDeleted#2979eeb2 key:string = LangPackString; +func (m *LangPackString) To_LangPackStringDeleted() *TLLangPackStringDeleted { + return &TLLangPackStringDeleted{ + Data2: m.Data2, + } } -func (m *TLMessagesMessagesSlice) EncodeToLayer(layer int) []byte { +// langPackString#cad181f6 key:string value:string = LangPackString; +func (m *TLLangPackString) To_LangPackString() *LangPackString { + return &LangPackString{ + Constructor: TLConstructor_CRC32_langPackString, + Data2: m.Data2, + } +} + +func (m *TLLangPackString) SetKey(v string) { m.Data2.Key = v } +func (m *TLLangPackString) GetKey() string { return m.Data2.Key } + +func (m *TLLangPackString) SetValue(v string) { m.Data2.Value = v } +func (m *TLLangPackString) GetValue() string { return m.Data2.Value } + +func NewTLLangPackString() *TLLangPackString { + return &TLLangPackString{Data2: &LangPackString_Data{}} +} + +func (m *TLLangPackString) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_messagesSlice)) + x.Int(int32(TLConstructor_CRC32_langPackString)) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.String(m.GetKey()) + x.String(m.GetValue()) return x.buf } -func (m *TLMessagesMessagesSlice) Decode(dbuf *DecodeBuf) error { - m.SetCount(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Message, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Message{} - v2[i].Decode(dbuf) - } - m.SetMessages(v2) +func (m *TLLangPackString) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_langPackString)) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Chat, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Chat{} - v3[i].Decode(dbuf) - } - m.SetChats(v3) + x.String(m.GetKey()) + x.String(m.GetValue()) - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*User, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &User{} - v4[i].Decode(dbuf) - } - m.SetUsers(v4) + return x.buf +} + +func (m *TLLangPackString) Decode(dbuf *DecodeBuf) error { + m.SetKey(dbuf.String()) + m.SetValue(dbuf.String()) return dbuf.err } -// messages.channelMessages#99262e37 flags:# pts:int count:int messages:Vector chats:Vector users:Vector = messages.Messages; -func (m *TLMessagesChannelMessages) To_Messages_Messages() *Messages_Messages { - return &Messages_Messages{ - Constructor: TLConstructor_CRC32_messages_channelMessages, +// langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString; +func (m *TLLangPackStringPluralized) To_LangPackString() *LangPackString { + return &LangPackString{ + Constructor: TLConstructor_CRC32_langPackStringPluralized, Data2: m.Data2, } } -func (m *TLMessagesChannelMessages) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLMessagesChannelMessages) GetPts() int32 { return m.Data2.Pts } +func (m *TLLangPackStringPluralized) SetKey(v string) { m.Data2.Key = v } +func (m *TLLangPackStringPluralized) GetKey() string { return m.Data2.Key } -func (m *TLMessagesChannelMessages) SetCount(v int32) { m.Data2.Count = v } -func (m *TLMessagesChannelMessages) GetCount() int32 { return m.Data2.Count } +func (m *TLLangPackStringPluralized) SetZeroValue(v string) { m.Data2.ZeroValue = v } +func (m *TLLangPackStringPluralized) GetZeroValue() string { return m.Data2.ZeroValue } -func (m *TLMessagesChannelMessages) SetMessages(v []*Message) { m.Data2.Messages = v } -func (m *TLMessagesChannelMessages) GetMessages() []*Message { return m.Data2.Messages } +func (m *TLLangPackStringPluralized) SetOneValue(v string) { m.Data2.OneValue = v } +func (m *TLLangPackStringPluralized) GetOneValue() string { return m.Data2.OneValue } -func (m *TLMessagesChannelMessages) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLMessagesChannelMessages) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLLangPackStringPluralized) SetTwoValue(v string) { m.Data2.TwoValue = v } +func (m *TLLangPackStringPluralized) GetTwoValue() string { return m.Data2.TwoValue } -func (m *TLMessagesChannelMessages) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLMessagesChannelMessages) GetUsers() []*User { return m.Data2.Users } +func (m *TLLangPackStringPluralized) SetFewValue(v string) { m.Data2.FewValue = v } +func (m *TLLangPackStringPluralized) GetFewValue() string { return m.Data2.FewValue } -func NewTLMessagesChannelMessages() *TLMessagesChannelMessages { - return &TLMessagesChannelMessages{Data2: &Messages_Messages_Data{}} +func (m *TLLangPackStringPluralized) SetManyValue(v string) { m.Data2.ManyValue = v } +func (m *TLLangPackStringPluralized) GetManyValue() string { return m.Data2.ManyValue } + +func (m *TLLangPackStringPluralized) SetOtherValue(v string) { m.Data2.OtherValue = v } +func (m *TLLangPackStringPluralized) GetOtherValue() string { return m.Data2.OtherValue } + +func NewTLLangPackStringPluralized() *TLLangPackStringPluralized { + return &TLLangPackStringPluralized{Data2: &LangPackString_Data{}} } -func (m *TLMessagesChannelMessages) Encode() []byte { +func (m *TLLangPackStringPluralized) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_channelMessages)) + x.Int(int32(TLConstructor_CRC32_langPackStringPluralized)) // flags var flags uint32 = 0 + if m.GetZeroValue() != "" { + flags |= 1 << 0 + } + if m.GetOneValue() != "" { + flags |= 1 << 1 + } + if m.GetTwoValue() != "" { + flags |= 1 << 2 + } + if m.GetFewValue() != "" { + flags |= 1 << 3 + } + if m.GetManyValue() != "" { + flags |= 1 << 4 + } x.UInt(flags) - x.Int(m.GetPts()) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).Encode()...) + x.String(m.GetKey()) + if m.GetZeroValue() != "" { + x.String(m.GetZeroValue()) } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) + if m.GetOneValue() != "" { + x.String(m.GetOneValue()) } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) + if m.GetTwoValue() != "" { + x.String(m.GetTwoValue()) + } + if m.GetFewValue() != "" { + x.String(m.GetFewValue()) + } + if m.GetManyValue() != "" { + x.String(m.GetManyValue()) } + x.String(m.GetOtherValue()) return x.buf } -func (m *TLMessagesChannelMessages) EncodeToLayer(layer int) []byte { +func (m *TLLangPackStringPluralized) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_channelMessages)) + x.Int(int32(TLConstructor_CRC32_langPackStringPluralized)) // flags var flags uint32 = 0 + if m.GetZeroValue() != "" { + flags |= 1 << 0 + } + if m.GetOneValue() != "" { + flags |= 1 << 1 + } + if m.GetTwoValue() != "" { + flags |= 1 << 2 + } + if m.GetFewValue() != "" { + flags |= 1 << 3 + } + if m.GetManyValue() != "" { + flags |= 1 << 4 + } x.UInt(flags) - x.Int(m.GetPts()) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + x.String(m.GetKey()) + if m.GetZeroValue() != "" { + x.String(m.GetZeroValue()) } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + if m.GetOneValue() != "" { + x.String(m.GetOneValue()) } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + if m.GetTwoValue() != "" { + x.String(m.GetTwoValue()) + } + if m.GetFewValue() != "" { + x.String(m.GetFewValue()) + } + if m.GetManyValue() != "" { + x.String(m.GetManyValue()) } + x.String(m.GetOtherValue()) return x.buf } -func (m *TLMessagesChannelMessages) Decode(dbuf *DecodeBuf) error { +func (m *TLLangPackStringPluralized) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m.SetPts(dbuf.Int()) - m.SetCount(dbuf.Int()) - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*Message, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &Message{} - v4[i].Decode(dbuf) + m.SetKey(dbuf.String()) + if (flags & (1 << 0)) != 0 { + m.SetZeroValue(dbuf.String()) } - m.SetMessages(v4) - - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err + if (flags & (1 << 1)) != 0 { + m.SetOneValue(dbuf.String()) } - l5 := dbuf.Int() - v5 := make([]*Chat, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &Chat{} - v5[i].Decode(dbuf) + if (flags & (1 << 2)) != 0 { + m.SetTwoValue(dbuf.String()) } - m.SetChats(v5) - - c6 := dbuf.Int() - if c6 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) - return dbuf.err + if (flags & (1 << 3)) != 0 { + m.SetFewValue(dbuf.String()) } - l6 := dbuf.Int() - v6 := make([]*User, l6) - for i := int32(0); i < l6; i++ { - v6[i] = &User{} - v6[i].Decode(dbuf) + if (flags & (1 << 4)) != 0 { + m.SetManyValue(dbuf.String()) } - m.SetUsers(v6) + m.SetOtherValue(dbuf.String()) return dbuf.err } -// messages.messagesNotModified#74535f21 count:int = messages.Messages; -func (m *TLMessagesMessagesNotModified) To_Messages_Messages() *Messages_Messages { - return &Messages_Messages{ - Constructor: TLConstructor_CRC32_messages_messagesNotModified, +// langPackStringDeleted#2979eeb2 key:string = LangPackString; +func (m *TLLangPackStringDeleted) To_LangPackString() *LangPackString { + return &LangPackString{ + Constructor: TLConstructor_CRC32_langPackStringDeleted, Data2: m.Data2, } } -func (m *TLMessagesMessagesNotModified) SetCount(v int32) { m.Data2.Count = v } -func (m *TLMessagesMessagesNotModified) GetCount() int32 { return m.Data2.Count } +func (m *TLLangPackStringDeleted) SetKey(v string) { m.Data2.Key = v } +func (m *TLLangPackStringDeleted) GetKey() string { return m.Data2.Key } -func NewTLMessagesMessagesNotModified() *TLMessagesMessagesNotModified { - return &TLMessagesMessagesNotModified{Data2: &Messages_Messages_Data{}} +func NewTLLangPackStringDeleted() *TLLangPackStringDeleted { + return &TLLangPackStringDeleted{Data2: &LangPackString_Data{}} } -func (m *TLMessagesMessagesNotModified) Encode() []byte { +func (m *TLLangPackStringDeleted) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_messagesNotModified)) + x.Int(int32(TLConstructor_CRC32_langPackStringDeleted)) - x.Int(m.GetCount()) + x.String(m.GetKey()) return x.buf } -func (m *TLMessagesMessagesNotModified) EncodeToLayer(layer int) []byte { +func (m *TLLangPackStringDeleted) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_messagesNotModified)) + x.Int(int32(TLConstructor_CRC32_langPackStringDeleted)) - x.Int(m.GetCount()) + x.String(m.GetKey()) return x.buf } -func (m *TLMessagesMessagesNotModified) Decode(dbuf *DecodeBuf) error { - m.SetCount(dbuf.Int()) +func (m *TLLangPackStringDeleted) Decode(dbuf *DecodeBuf) error { + m.SetKey(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SendMessageAction <-- -// + TL_SendMessageTypingAction -// + TL_SendMessageCancelAction -// + TL_SendMessageRecordVideoAction -// + TL_SendMessageUploadVideoAction -// + TL_SendMessageRecordAudioAction -// + TL_SendMessageUploadAudioAction -// + TL_SendMessageUploadPhotoAction -// + TL_SendMessageUploadDocumentAction -// + TL_SendMessageGeoLocationAction -// + TL_SendMessageChooseContactAction -// + TL_SendMessageGamePlayAction -// + TL_SendMessageRecordRoundAction -// + TL_SendMessageUploadRoundAction +// Help_TermsOfServiceUpdate <-- +// + TL_HelpTermsOfServiceUpdateEmpty +// + TL_HelpTermsOfServiceUpdate // -func (m *SendMessageAction) Encode() []byte { +func (m *Help_TermsOfServiceUpdate) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_sendMessageTypingAction: - t := m.To_SendMessageTypingAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageCancelAction: - t := m.To_SendMessageCancelAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageRecordVideoAction: - t := m.To_SendMessageRecordVideoAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageUploadVideoAction: - t := m.To_SendMessageUploadVideoAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageRecordAudioAction: - t := m.To_SendMessageRecordAudioAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageUploadAudioAction: - t := m.To_SendMessageUploadAudioAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageUploadPhotoAction: - t := m.To_SendMessageUploadPhotoAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageUploadDocumentAction: - t := m.To_SendMessageUploadDocumentAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageGeoLocationAction: - t := m.To_SendMessageGeoLocationAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageChooseContactAction: - t := m.To_SendMessageChooseContactAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageGamePlayAction: - t := m.To_SendMessageGamePlayAction() - return t.Encode() - case TLConstructor_CRC32_sendMessageRecordRoundAction: - t := m.To_SendMessageRecordRoundAction() + case TLConstructor_CRC32_help_termsOfServiceUpdateEmpty: + t := m.To_HelpTermsOfServiceUpdateEmpty() return t.Encode() - case TLConstructor_CRC32_sendMessageUploadRoundAction: - t := m.To_SendMessageUploadRoundAction() + case TLConstructor_CRC32_help_termsOfServiceUpdate: + t := m.To_HelpTermsOfServiceUpdate() return t.Encode() default: @@ -33047,47 +33942,14 @@ func (m *SendMessageAction) Encode() []byte { } } -func (m *SendMessageAction) EncodeToLayer(layer int) []byte { +func (m *Help_TermsOfServiceUpdate) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_sendMessageTypingAction: - t := m.To_SendMessageTypingAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageCancelAction: - t := m.To_SendMessageCancelAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageRecordVideoAction: - t := m.To_SendMessageRecordVideoAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageUploadVideoAction: - t := m.To_SendMessageUploadVideoAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageRecordAudioAction: - t := m.To_SendMessageRecordAudioAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageUploadAudioAction: - t := m.To_SendMessageUploadAudioAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageUploadPhotoAction: - t := m.To_SendMessageUploadPhotoAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageUploadDocumentAction: - t := m.To_SendMessageUploadDocumentAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageGeoLocationAction: - t := m.To_SendMessageGeoLocationAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageChooseContactAction: - t := m.To_SendMessageChooseContactAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageGamePlayAction: - t := m.To_SendMessageGamePlayAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageRecordRoundAction: - t := m.To_SendMessageRecordRoundAction() + case TLConstructor_CRC32_help_termsOfServiceUpdateEmpty: + t := m.To_HelpTermsOfServiceUpdateEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sendMessageUploadRoundAction: - t := m.To_SendMessageUploadRoundAction() + case TLConstructor_CRC32_help_termsOfServiceUpdate: + t := m.To_HelpTermsOfServiceUpdate() return t.EncodeToLayer(layer) default: @@ -33096,59 +33958,15 @@ func (m *SendMessageAction) EncodeToLayer(layer int) []byte { } } -func (m *SendMessageAction) Decode(dbuf *DecodeBuf) error { +func (m *Help_TermsOfServiceUpdate) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_sendMessageTypingAction: - m2 := &TLSendMessageTypingAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageCancelAction: - m2 := &TLSendMessageCancelAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageRecordVideoAction: - m2 := &TLSendMessageRecordVideoAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageUploadVideoAction: - m2 := &TLSendMessageUploadVideoAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageRecordAudioAction: - m2 := &TLSendMessageRecordAudioAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageUploadAudioAction: - m2 := &TLSendMessageUploadAudioAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageUploadPhotoAction: - m2 := &TLSendMessageUploadPhotoAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageUploadDocumentAction: - m2 := &TLSendMessageUploadDocumentAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageGeoLocationAction: - m2 := &TLSendMessageGeoLocationAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageChooseContactAction: - m2 := &TLSendMessageChooseContactAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageGamePlayAction: - m2 := &TLSendMessageGamePlayAction{Data2: &SendMessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageRecordRoundAction: - m2 := &TLSendMessageRecordRoundAction{Data2: &SendMessageAction_Data{}} + case TLConstructor_CRC32_help_termsOfServiceUpdateEmpty: + m2 := &TLHelpTermsOfServiceUpdateEmpty{Data2: &Help_TermsOfServiceUpdate_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_sendMessageUploadRoundAction: - m2 := &TLSendMessageUploadRoundAction{Data2: &SendMessageAction_Data{}} + case TLConstructor_CRC32_help_termsOfServiceUpdate: + m2 := &TLHelpTermsOfServiceUpdate{Data2: &Help_TermsOfServiceUpdate_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -33158,549 +33976,590 @@ func (m *SendMessageAction) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// sendMessageTypingAction#16bf744e = SendMessageAction; -func (m *SendMessageAction) To_SendMessageTypingAction() *TLSendMessageTypingAction { - return &TLSendMessageTypingAction{ +// help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate; +func (m *Help_TermsOfServiceUpdate) To_HelpTermsOfServiceUpdateEmpty() *TLHelpTermsOfServiceUpdateEmpty { + return &TLHelpTermsOfServiceUpdateEmpty{ Data2: m.Data2, } } -// sendMessageCancelAction#fd5ec8f5 = SendMessageAction; -func (m *SendMessageAction) To_SendMessageCancelAction() *TLSendMessageCancelAction { - return &TLSendMessageCancelAction{ +// help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate; +func (m *Help_TermsOfServiceUpdate) To_HelpTermsOfServiceUpdate() *TLHelpTermsOfServiceUpdate { + return &TLHelpTermsOfServiceUpdate{ Data2: m.Data2, } } -// sendMessageRecordVideoAction#a187d66f = SendMessageAction; -func (m *SendMessageAction) To_SendMessageRecordVideoAction() *TLSendMessageRecordVideoAction { - return &TLSendMessageRecordVideoAction{ - Data2: m.Data2, +// help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate; +func (m *TLHelpTermsOfServiceUpdateEmpty) To_Help_TermsOfServiceUpdate() *Help_TermsOfServiceUpdate { + return &Help_TermsOfServiceUpdate{ + Constructor: TLConstructor_CRC32_help_termsOfServiceUpdateEmpty, + Data2: m.Data2, } } -// sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction; -func (m *SendMessageAction) To_SendMessageUploadVideoAction() *TLSendMessageUploadVideoAction { - return &TLSendMessageUploadVideoAction{ - Data2: m.Data2, - } -} +func (m *TLHelpTermsOfServiceUpdateEmpty) SetExpires(v int32) { m.Data2.Expires = v } +func (m *TLHelpTermsOfServiceUpdateEmpty) GetExpires() int32 { return m.Data2.Expires } -// sendMessageRecordAudioAction#d52f73f7 = SendMessageAction; -func (m *SendMessageAction) To_SendMessageRecordAudioAction() *TLSendMessageRecordAudioAction { - return &TLSendMessageRecordAudioAction{ - Data2: m.Data2, - } +func NewTLHelpTermsOfServiceUpdateEmpty() *TLHelpTermsOfServiceUpdateEmpty { + return &TLHelpTermsOfServiceUpdateEmpty{Data2: &Help_TermsOfServiceUpdate_Data{}} } -// sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction; -func (m *SendMessageAction) To_SendMessageUploadAudioAction() *TLSendMessageUploadAudioAction { - return &TLSendMessageUploadAudioAction{ - Data2: m.Data2, - } -} +func (m *TLHelpTermsOfServiceUpdateEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_help_termsOfServiceUpdateEmpty)) -// sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction; -func (m *SendMessageAction) To_SendMessageUploadPhotoAction() *TLSendMessageUploadPhotoAction { - return &TLSendMessageUploadPhotoAction{ - Data2: m.Data2, - } -} + x.Int(m.GetExpires()) -// sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction; -func (m *SendMessageAction) To_SendMessageUploadDocumentAction() *TLSendMessageUploadDocumentAction { - return &TLSendMessageUploadDocumentAction{ - Data2: m.Data2, - } + return x.buf } -// sendMessageGeoLocationAction#176f8ba1 = SendMessageAction; -func (m *SendMessageAction) To_SendMessageGeoLocationAction() *TLSendMessageGeoLocationAction { - return &TLSendMessageGeoLocationAction{ - Data2: m.Data2, - } -} +func (m *TLHelpTermsOfServiceUpdateEmpty) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_help_termsOfServiceUpdateEmpty)) -// sendMessageChooseContactAction#628cbc6f = SendMessageAction; -func (m *SendMessageAction) To_SendMessageChooseContactAction() *TLSendMessageChooseContactAction { - return &TLSendMessageChooseContactAction{ - Data2: m.Data2, - } -} + x.Int(m.GetExpires()) -// sendMessageGamePlayAction#dd6a8f48 = SendMessageAction; -func (m *SendMessageAction) To_SendMessageGamePlayAction() *TLSendMessageGamePlayAction { - return &TLSendMessageGamePlayAction{ - Data2: m.Data2, - } + return x.buf } -// sendMessageRecordRoundAction#88f27fbc = SendMessageAction; -func (m *SendMessageAction) To_SendMessageRecordRoundAction() *TLSendMessageRecordRoundAction { - return &TLSendMessageRecordRoundAction{ - Data2: m.Data2, - } -} +func (m *TLHelpTermsOfServiceUpdateEmpty) Decode(dbuf *DecodeBuf) error { + m.SetExpires(dbuf.Int()) -// sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction; -func (m *SendMessageAction) To_SendMessageUploadRoundAction() *TLSendMessageUploadRoundAction { - return &TLSendMessageUploadRoundAction{ - Data2: m.Data2, - } + return dbuf.err } -// sendMessageTypingAction#16bf744e = SendMessageAction; -func (m *TLSendMessageTypingAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageTypingAction, +// help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate; +func (m *TLHelpTermsOfServiceUpdate) To_Help_TermsOfServiceUpdate() *Help_TermsOfServiceUpdate { + return &Help_TermsOfServiceUpdate{ + Constructor: TLConstructor_CRC32_help_termsOfServiceUpdate, Data2: m.Data2, } } -func NewTLSendMessageTypingAction() *TLSendMessageTypingAction { - return &TLSendMessageTypingAction{Data2: &SendMessageAction_Data{}} +func (m *TLHelpTermsOfServiceUpdate) SetExpires(v int32) { m.Data2.Expires = v } +func (m *TLHelpTermsOfServiceUpdate) GetExpires() int32 { return m.Data2.Expires } + +func (m *TLHelpTermsOfServiceUpdate) SetTermsOfService(v *Help_TermsOfService) { + m.Data2.TermsOfService = v +} +func (m *TLHelpTermsOfServiceUpdate) GetTermsOfService() *Help_TermsOfService { + return m.Data2.TermsOfService } -func (m *TLSendMessageTypingAction) Encode() []byte { +func NewTLHelpTermsOfServiceUpdate() *TLHelpTermsOfServiceUpdate { + return &TLHelpTermsOfServiceUpdate{Data2: &Help_TermsOfServiceUpdate_Data{}} +} + +func (m *TLHelpTermsOfServiceUpdate) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageTypingAction)) + x.Int(int32(TLConstructor_CRC32_help_termsOfServiceUpdate)) + + x.Int(m.GetExpires()) + x.Bytes(m.GetTermsOfService().Encode()) return x.buf } -func (m *TLSendMessageTypingAction) EncodeToLayer(layer int) []byte { +func (m *TLHelpTermsOfServiceUpdate) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageTypingAction)) + x.Int(int32(TLConstructor_CRC32_help_termsOfServiceUpdate)) + + x.Int(m.GetExpires()) + x.Bytes(m.GetTermsOfService().EncodeToLayer(layer)) return x.buf } -func (m *TLSendMessageTypingAction) Decode(dbuf *DecodeBuf) error { +func (m *TLHelpTermsOfServiceUpdate) Decode(dbuf *DecodeBuf) error { + m.SetExpires(dbuf.Int()) + m2 := &Help_TermsOfService{} + m2.Decode(dbuf) + m.SetTermsOfService(m2) return dbuf.err } -// sendMessageCancelAction#fd5ec8f5 = SendMessageAction; -func (m *TLSendMessageCancelAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageCancelAction, - Data2: m.Data2, - } -} - -func NewTLSendMessageCancelAction() *TLSendMessageCancelAction { - return &TLSendMessageCancelAction{Data2: &SendMessageAction_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// DataJSON <-- +// + TL_DataJSON +// -func (m *TLSendMessageCancelAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageCancelAction)) +func (m *DataJSON) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_dataJSON: + t := m.To_DataJSON() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLSendMessageCancelAction) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageCancelAction)) +func (m *DataJSON) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_dataJSON: + t := m.To_DataJSON() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLSendMessageCancelAction) Decode(dbuf *DecodeBuf) error { +func (m *DataJSON) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_dataJSON: + m2 := &TLDataJSON{Data2: &DataJSON_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// sendMessageRecordVideoAction#a187d66f = SendMessageAction; -func (m *TLSendMessageRecordVideoAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageRecordVideoAction, +// dataJSON#7d748d04 data:string = DataJSON; +func (m *DataJSON) To_DataJSON() *TLDataJSON { + return &TLDataJSON{ + Data2: m.Data2, + } +} + +// dataJSON#7d748d04 data:string = DataJSON; +func (m *TLDataJSON) To_DataJSON() *DataJSON { + return &DataJSON{ + Constructor: TLConstructor_CRC32_dataJSON, Data2: m.Data2, } } -func NewTLSendMessageRecordVideoAction() *TLSendMessageRecordVideoAction { - return &TLSendMessageRecordVideoAction{Data2: &SendMessageAction_Data{}} +func (m *TLDataJSON) SetData(v string) { m.Data2.Data = v } +func (m *TLDataJSON) GetData() string { return m.Data2.Data } + +func NewTLDataJSON() *TLDataJSON { + return &TLDataJSON{Data2: &DataJSON_Data{}} } -func (m *TLSendMessageRecordVideoAction) Encode() []byte { +func (m *TLDataJSON) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageRecordVideoAction)) + x.Int(int32(TLConstructor_CRC32_dataJSON)) + + x.String(m.GetData()) return x.buf } -func (m *TLSendMessageRecordVideoAction) EncodeToLayer(layer int) []byte { +func (m *TLDataJSON) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageRecordVideoAction)) + x.Int(int32(TLConstructor_CRC32_dataJSON)) + + x.String(m.GetData()) return x.buf } -func (m *TLSendMessageRecordVideoAction) Decode(dbuf *DecodeBuf) error { +func (m *TLDataJSON) Decode(dbuf *DecodeBuf) error { + m.SetData(dbuf.String()) return dbuf.err } -// sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction; -func (m *TLSendMessageUploadVideoAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageUploadVideoAction, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// WebAuthorization <-- +// + TL_WebAuthorization +// -func (m *TLSendMessageUploadVideoAction) SetProgress(v int32) { m.Data2.Progress = v } -func (m *TLSendMessageUploadVideoAction) GetProgress() int32 { return m.Data2.Progress } +func (m *WebAuthorization) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_webAuthorization: + t := m.To_WebAuthorization() + return t.Encode() -func NewTLSendMessageUploadVideoAction() *TLSendMessageUploadVideoAction { - return &TLSendMessageUploadVideoAction{Data2: &SendMessageAction_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLSendMessageUploadVideoAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadVideoAction)) - - x.Int(m.GetProgress()) +func (m *WebAuthorization) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_webAuthorization: + t := m.To_WebAuthorization() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLSendMessageUploadVideoAction) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadVideoAction)) - - x.Int(m.GetProgress()) +func (m *WebAuthorization) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_webAuthorization: + m2 := &TLWebAuthorization{Data2: &WebAuthorization_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLSendMessageUploadVideoAction) Decode(dbuf *DecodeBuf) error { - m.SetProgress(dbuf.Int()) - - return dbuf.err +// webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization; +func (m *WebAuthorization) To_WebAuthorization() *TLWebAuthorization { + return &TLWebAuthorization{ + Data2: m.Data2, + } } -// sendMessageRecordAudioAction#d52f73f7 = SendMessageAction; -func (m *TLSendMessageRecordAudioAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageRecordAudioAction, +// webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization; +func (m *TLWebAuthorization) To_WebAuthorization() *WebAuthorization { + return &WebAuthorization{ + Constructor: TLConstructor_CRC32_webAuthorization, Data2: m.Data2, } } -func NewTLSendMessageRecordAudioAction() *TLSendMessageRecordAudioAction { - return &TLSendMessageRecordAudioAction{Data2: &SendMessageAction_Data{}} -} +func (m *TLWebAuthorization) SetHash(v int64) { m.Data2.Hash = v } +func (m *TLWebAuthorization) GetHash() int64 { return m.Data2.Hash } -func (m *TLSendMessageRecordAudioAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageRecordAudioAction)) +func (m *TLWebAuthorization) SetBotId(v int32) { m.Data2.BotId = v } +func (m *TLWebAuthorization) GetBotId() int32 { return m.Data2.BotId } - return x.buf -} +func (m *TLWebAuthorization) SetDomain(v string) { m.Data2.Domain = v } +func (m *TLWebAuthorization) GetDomain() string { return m.Data2.Domain } -func (m *TLSendMessageRecordAudioAction) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageRecordAudioAction)) +func (m *TLWebAuthorization) SetBrowser(v string) { m.Data2.Browser = v } +func (m *TLWebAuthorization) GetBrowser() string { return m.Data2.Browser } - return x.buf -} +func (m *TLWebAuthorization) SetPlatform(v string) { m.Data2.Platform = v } +func (m *TLWebAuthorization) GetPlatform() string { return m.Data2.Platform } -func (m *TLSendMessageRecordAudioAction) Decode(dbuf *DecodeBuf) error { +func (m *TLWebAuthorization) SetDateCreated(v int32) { m.Data2.DateCreated = v } +func (m *TLWebAuthorization) GetDateCreated() int32 { return m.Data2.DateCreated } - return dbuf.err -} +func (m *TLWebAuthorization) SetDateActive(v int32) { m.Data2.DateActive = v } +func (m *TLWebAuthorization) GetDateActive() int32 { return m.Data2.DateActive } -// sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction; -func (m *TLSendMessageUploadAudioAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageUploadAudioAction, - Data2: m.Data2, - } -} +func (m *TLWebAuthorization) SetIp(v string) { m.Data2.Ip = v } +func (m *TLWebAuthorization) GetIp() string { return m.Data2.Ip } -func (m *TLSendMessageUploadAudioAction) SetProgress(v int32) { m.Data2.Progress = v } -func (m *TLSendMessageUploadAudioAction) GetProgress() int32 { return m.Data2.Progress } +func (m *TLWebAuthorization) SetRegion(v string) { m.Data2.Region = v } +func (m *TLWebAuthorization) GetRegion() string { return m.Data2.Region } -func NewTLSendMessageUploadAudioAction() *TLSendMessageUploadAudioAction { - return &TLSendMessageUploadAudioAction{Data2: &SendMessageAction_Data{}} +func NewTLWebAuthorization() *TLWebAuthorization { + return &TLWebAuthorization{Data2: &WebAuthorization_Data{}} } -func (m *TLSendMessageUploadAudioAction) Encode() []byte { +func (m *TLWebAuthorization) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadAudioAction)) + x.Int(int32(TLConstructor_CRC32_webAuthorization)) - x.Int(m.GetProgress()) + x.Long(m.GetHash()) + x.Int(m.GetBotId()) + x.String(m.GetDomain()) + x.String(m.GetBrowser()) + x.String(m.GetPlatform()) + x.Int(m.GetDateCreated()) + x.Int(m.GetDateActive()) + x.String(m.GetIp()) + x.String(m.GetRegion()) return x.buf } -func (m *TLSendMessageUploadAudioAction) EncodeToLayer(layer int) []byte { +func (m *TLWebAuthorization) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadAudioAction)) + x.Int(int32(TLConstructor_CRC32_webAuthorization)) - x.Int(m.GetProgress()) + x.Long(m.GetHash()) + x.Int(m.GetBotId()) + x.String(m.GetDomain()) + x.String(m.GetBrowser()) + x.String(m.GetPlatform()) + x.Int(m.GetDateCreated()) + x.Int(m.GetDateActive()) + x.String(m.GetIp()) + x.String(m.GetRegion()) return x.buf } -func (m *TLSendMessageUploadAudioAction) Decode(dbuf *DecodeBuf) error { - m.SetProgress(dbuf.Int()) +func (m *TLWebAuthorization) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Long()) + m.SetBotId(dbuf.Int()) + m.SetDomain(dbuf.String()) + m.SetBrowser(dbuf.String()) + m.SetPlatform(dbuf.String()) + m.SetDateCreated(dbuf.Int()) + m.SetDateActive(dbuf.Int()) + m.SetIp(dbuf.String()) + m.SetRegion(dbuf.String()) return dbuf.err } -// sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction; -func (m *TLSendMessageUploadPhotoAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageUploadPhotoAction, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// Contacts_Blocked <-- +// + TL_ContactsBlocked +// + TL_ContactsBlockedSlice +// -func (m *TLSendMessageUploadPhotoAction) SetProgress(v int32) { m.Data2.Progress = v } -func (m *TLSendMessageUploadPhotoAction) GetProgress() int32 { return m.Data2.Progress } +func (m *Contacts_Blocked) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_contacts_blocked: + t := m.To_ContactsBlocked() + return t.Encode() + case TLConstructor_CRC32_contacts_blockedSlice: + t := m.To_ContactsBlockedSlice() + return t.Encode() -func NewTLSendMessageUploadPhotoAction() *TLSendMessageUploadPhotoAction { - return &TLSendMessageUploadPhotoAction{Data2: &SendMessageAction_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLSendMessageUploadPhotoAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadPhotoAction)) - - x.Int(m.GetProgress()) +func (m *Contacts_Blocked) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_contacts_blocked: + t := m.To_ContactsBlocked() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_contacts_blockedSlice: + t := m.To_ContactsBlockedSlice() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLSendMessageUploadPhotoAction) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadPhotoAction)) - - x.Int(m.GetProgress()) +func (m *Contacts_Blocked) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_contacts_blocked: + m2 := &TLContactsBlocked{Data2: &Contacts_Blocked_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_contacts_blockedSlice: + m2 := &TLContactsBlockedSlice{Data2: &Contacts_Blocked_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLSendMessageUploadPhotoAction) Decode(dbuf *DecodeBuf) error { - m.SetProgress(dbuf.Int()) +// contacts.blocked#1c138d15 blocked:Vector users:Vector = contacts.Blocked; +func (m *Contacts_Blocked) To_ContactsBlocked() *TLContactsBlocked { + return &TLContactsBlocked{ + Data2: m.Data2, + } +} - return dbuf.err +// contacts.blockedSlice#900802a1 count:int blocked:Vector users:Vector = contacts.Blocked; +func (m *Contacts_Blocked) To_ContactsBlockedSlice() *TLContactsBlockedSlice { + return &TLContactsBlockedSlice{ + Data2: m.Data2, + } } -// sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction; -func (m *TLSendMessageUploadDocumentAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageUploadDocumentAction, +// contacts.blocked#1c138d15 blocked:Vector users:Vector = contacts.Blocked; +func (m *TLContactsBlocked) To_Contacts_Blocked() *Contacts_Blocked { + return &Contacts_Blocked{ + Constructor: TLConstructor_CRC32_contacts_blocked, Data2: m.Data2, } } -func (m *TLSendMessageUploadDocumentAction) SetProgress(v int32) { m.Data2.Progress = v } -func (m *TLSendMessageUploadDocumentAction) GetProgress() int32 { return m.Data2.Progress } +func (m *TLContactsBlocked) SetBlocked(v []*ContactBlocked) { m.Data2.Blocked = v } +func (m *TLContactsBlocked) GetBlocked() []*ContactBlocked { return m.Data2.Blocked } -func NewTLSendMessageUploadDocumentAction() *TLSendMessageUploadDocumentAction { - return &TLSendMessageUploadDocumentAction{Data2: &SendMessageAction_Data{}} +func (m *TLContactsBlocked) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLContactsBlocked) GetUsers() []*User { return m.Data2.Users } + +func NewTLContactsBlocked() *TLContactsBlocked { + return &TLContactsBlocked{Data2: &Contacts_Blocked_Data{}} } -func (m *TLSendMessageUploadDocumentAction) Encode() []byte { +func (m *TLContactsBlocked) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadDocumentAction)) + x.Int(int32(TLConstructor_CRC32_contacts_blocked)) - x.Int(m.GetProgress()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocked()))) + for _, v := range m.GetBlocked() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLSendMessageUploadDocumentAction) EncodeToLayer(layer int) []byte { +func (m *TLContactsBlocked) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadDocumentAction)) - - x.Int(m.GetProgress()) - - return x.buf -} + x.Int(int32(TLConstructor_CRC32_contacts_blocked)) -func (m *TLSendMessageUploadDocumentAction) Decode(dbuf *DecodeBuf) error { - m.SetProgress(dbuf.Int()) - - return dbuf.err -} - -// sendMessageGeoLocationAction#176f8ba1 = SendMessageAction; -func (m *TLSendMessageGeoLocationAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageGeoLocationAction, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocked()))) + for _, v := range m.GetBlocked() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } -} - -func NewTLSendMessageGeoLocationAction() *TLSendMessageGeoLocationAction { - return &TLSendMessageGeoLocationAction{Data2: &SendMessageAction_Data{}} -} - -func (m *TLSendMessageGeoLocationAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageGeoLocationAction)) - - return x.buf -} - -func (m *TLSendMessageGeoLocationAction) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageGeoLocationAction)) - - return x.buf -} - -func (m *TLSendMessageGeoLocationAction) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// sendMessageChooseContactAction#628cbc6f = SendMessageAction; -func (m *TLSendMessageChooseContactAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageChooseContactAction, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } -} - -func NewTLSendMessageChooseContactAction() *TLSendMessageChooseContactAction { - return &TLSendMessageChooseContactAction{Data2: &SendMessageAction_Data{}} -} - -func (m *TLSendMessageChooseContactAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageChooseContactAction)) return x.buf } -func (m *TLSendMessageChooseContactAction) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageChooseContactAction)) - - return x.buf -} +func (m *TLContactsBlocked) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*ContactBlocked, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &ContactBlocked{} + v1[i].Decode(dbuf) + } + m.SetBlocked(v1) -func (m *TLSendMessageChooseContactAction) Decode(dbuf *DecodeBuf) error { + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*User, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &User{} + v2[i].Decode(dbuf) + } + m.SetUsers(v2) return dbuf.err } -// sendMessageGamePlayAction#dd6a8f48 = SendMessageAction; -func (m *TLSendMessageGamePlayAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageGamePlayAction, +// contacts.blockedSlice#900802a1 count:int blocked:Vector users:Vector = contacts.Blocked; +func (m *TLContactsBlockedSlice) To_Contacts_Blocked() *Contacts_Blocked { + return &Contacts_Blocked{ + Constructor: TLConstructor_CRC32_contacts_blockedSlice, Data2: m.Data2, } } -func NewTLSendMessageGamePlayAction() *TLSendMessageGamePlayAction { - return &TLSendMessageGamePlayAction{Data2: &SendMessageAction_Data{}} -} - -func (m *TLSendMessageGamePlayAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageGamePlayAction)) +func (m *TLContactsBlockedSlice) SetCount(v int32) { m.Data2.Count = v } +func (m *TLContactsBlockedSlice) GetCount() int32 { return m.Data2.Count } - return x.buf -} +func (m *TLContactsBlockedSlice) SetBlocked(v []*ContactBlocked) { m.Data2.Blocked = v } +func (m *TLContactsBlockedSlice) GetBlocked() []*ContactBlocked { return m.Data2.Blocked } -func (m *TLSendMessageGamePlayAction) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageGamePlayAction)) +func (m *TLContactsBlockedSlice) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLContactsBlockedSlice) GetUsers() []*User { return m.Data2.Users } - return x.buf +func NewTLContactsBlockedSlice() *TLContactsBlockedSlice { + return &TLContactsBlockedSlice{Data2: &Contacts_Blocked_Data{}} } -func (m *TLSendMessageGamePlayAction) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} +func (m *TLContactsBlockedSlice) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_contacts_blockedSlice)) -// sendMessageRecordRoundAction#88f27fbc = SendMessageAction; -func (m *TLSendMessageRecordRoundAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageRecordRoundAction, - Data2: m.Data2, + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocked()))) + for _, v := range m.GetBlocked() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func NewTLSendMessageRecordRoundAction() *TLSendMessageRecordRoundAction { - return &TLSendMessageRecordRoundAction{Data2: &SendMessageAction_Data{}} -} - -func (m *TLSendMessageRecordRoundAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageRecordRoundAction)) return x.buf } -func (m *TLSendMessageRecordRoundAction) EncodeToLayer(layer int) []byte { +func (m *TLContactsBlockedSlice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageRecordRoundAction)) - - return x.buf -} - -func (m *TLSendMessageRecordRoundAction) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_contacts_blockedSlice)) -// sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction; -func (m *TLSendMessageUploadRoundAction) To_SendMessageAction() *SendMessageAction { - return &SendMessageAction{ - Constructor: TLConstructor_CRC32_sendMessageUploadRoundAction, - Data2: m.Data2, + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocked()))) + for _, v := range m.GetBlocked() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } -} - -func (m *TLSendMessageUploadRoundAction) SetProgress(v int32) { m.Data2.Progress = v } -func (m *TLSendMessageUploadRoundAction) GetProgress() int32 { return m.Data2.Progress } - -func NewTLSendMessageUploadRoundAction() *TLSendMessageUploadRoundAction { - return &TLSendMessageUploadRoundAction{Data2: &SendMessageAction_Data{}} -} - -func (m *TLSendMessageUploadRoundAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadRoundAction)) - - x.Int(m.GetProgress()) return x.buf } -func (m *TLSendMessageUploadRoundAction) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sendMessageUploadRoundAction)) - - x.Int(m.GetProgress()) - - return x.buf -} +func (m *TLContactsBlockedSlice) Decode(dbuf *DecodeBuf) error { + m.SetCount(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*ContactBlocked, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &ContactBlocked{} + v2[i].Decode(dbuf) + } + m.SetBlocked(v2) -func (m *TLSendMessageUploadRoundAction) Decode(dbuf *DecodeBuf) error { - m.SetProgress(dbuf.Int()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*User, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &User{} + v3[i].Decode(dbuf) + } + m.SetUsers(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Payments_SavedInfo <-- -// + TL_PaymentsSavedInfo +// Contacts_Found <-- +// + TL_ContactsFound // -func (m *Payments_SavedInfo) Encode() []byte { +func (m *Contacts_Found) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_payments_savedInfo: - t := m.To_PaymentsSavedInfo() + case TLConstructor_CRC32_contacts_found: + t := m.To_ContactsFound() return t.Encode() default: @@ -33709,11 +34568,11 @@ func (m *Payments_SavedInfo) Encode() []byte { } } -func (m *Payments_SavedInfo) EncodeToLayer(layer int) []byte { +func (m *Contacts_Found) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_payments_savedInfo: - t := m.To_PaymentsSavedInfo() + case TLConstructor_CRC32_contacts_found: + t := m.To_ContactsFound() return t.EncodeToLayer(layer) default: @@ -33722,11 +34581,11 @@ func (m *Payments_SavedInfo) EncodeToLayer(layer int) []byte { } } -func (m *Payments_SavedInfo) Decode(dbuf *DecodeBuf) error { +func (m *Contacts_Found) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_payments_savedInfo: - m2 := &TLPaymentsSavedInfo{Data2: &Payments_SavedInfo_Data{}} + case TLConstructor_CRC32_contacts_found: + m2 := &TLContactsFound{Data2: &Contacts_Found_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -33736,97 +34595,162 @@ func (m *Payments_SavedInfo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; -func (m *Payments_SavedInfo) To_PaymentsSavedInfo() *TLPaymentsSavedInfo { - return &TLPaymentsSavedInfo{ +// contacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found; +func (m *Contacts_Found) To_ContactsFound() *TLContactsFound { + return &TLContactsFound{ Data2: m.Data2, } } -// payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; -func (m *TLPaymentsSavedInfo) To_Payments_SavedInfo() *Payments_SavedInfo { - return &Payments_SavedInfo{ - Constructor: TLConstructor_CRC32_payments_savedInfo, +// contacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found; +func (m *TLContactsFound) To_Contacts_Found() *Contacts_Found { + return &Contacts_Found{ + Constructor: TLConstructor_CRC32_contacts_found, Data2: m.Data2, } } -func (m *TLPaymentsSavedInfo) SetHasSavedCredentials(v bool) { m.Data2.HasSavedCredentials = v } -func (m *TLPaymentsSavedInfo) GetHasSavedCredentials() bool { return m.Data2.HasSavedCredentials } +func (m *TLContactsFound) SetMyResults(v []*Peer) { m.Data2.MyResults = v } +func (m *TLContactsFound) GetMyResults() []*Peer { return m.Data2.MyResults } -func (m *TLPaymentsSavedInfo) SetSavedInfo(v *PaymentRequestedInfo) { m.Data2.SavedInfo = v } -func (m *TLPaymentsSavedInfo) GetSavedInfo() *PaymentRequestedInfo { return m.Data2.SavedInfo } +func (m *TLContactsFound) SetResults(v []*Peer) { m.Data2.Results = v } +func (m *TLContactsFound) GetResults() []*Peer { return m.Data2.Results } -func NewTLPaymentsSavedInfo() *TLPaymentsSavedInfo { - return &TLPaymentsSavedInfo{Data2: &Payments_SavedInfo_Data{}} +func (m *TLContactsFound) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLContactsFound) GetChats() []*Chat { return m.Data2.Chats } + +func (m *TLContactsFound) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLContactsFound) GetUsers() []*User { return m.Data2.Users } + +func NewTLContactsFound() *TLContactsFound { + return &TLContactsFound{Data2: &Contacts_Found_Data{}} } -func (m *TLPaymentsSavedInfo) Encode() []byte { +func (m *TLContactsFound) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_payments_savedInfo)) + x.Int(int32(TLConstructor_CRC32_contacts_found)) - // flags - var flags uint32 = 0 - if m.GetHasSavedCredentials() == true { - flags |= 1 << 1 + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMyResults()))) + for _, v := range m.GetMyResults() { + x.buf = append(x.buf, (*v).Encode()...) } - if m.GetSavedInfo() != nil { - flags |= 1 << 0 + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetResults()))) + for _, v := range m.GetResults() { + x.buf = append(x.buf, (*v).Encode()...) } - x.UInt(flags) - - if m.GetSavedInfo() != nil { - x.Bytes(m.GetSavedInfo().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLPaymentsSavedInfo) EncodeToLayer(layer int) []byte { +func (m *TLContactsFound) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_payments_savedInfo)) + x.Int(int32(TLConstructor_CRC32_contacts_found)) - // flags - var flags uint32 = 0 - if m.GetHasSavedCredentials() == true { - flags |= 1 << 1 + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetMyResults()))) + for _, v := range m.GetMyResults() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - if m.GetSavedInfo() != nil { - flags |= 1 << 0 + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetResults()))) + for _, v := range m.GetResults() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.UInt(flags) - - if m.GetSavedInfo() != nil { - x.Bytes(m.GetSavedInfo().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLPaymentsSavedInfo) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetHasSavedCredentials(true) +func (m *TLContactsFound) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } - if (flags & (1 << 0)) != 0 { - m3 := &PaymentRequestedInfo{} - m3.Decode(dbuf) - m.SetSavedInfo(m3) + l1 := dbuf.Int() + v1 := make([]*Peer, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Peer{} + v1[i].Decode(dbuf) + } + m.SetMyResults(v1) + + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Peer, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Peer{} + v2[i].Decode(dbuf) + } + m.SetResults(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Chat, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Chat{} + v3[i].Decode(dbuf) + } + m.SetChats(v3) + + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*User, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &User{} + v4[i].Decode(dbuf) } + m.SetUsers(v4) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SchemeMethod <-- -// + TL_SchemeMethod +// InputChannel <-- +// + TL_InputChannelEmpty +// + TL_InputChannel // -func (m *SchemeMethod) Encode() []byte { +func (m *InputChannel) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_schemeMethod: - t := m.To_SchemeMethod() + case TLConstructor_CRC32_inputChannelEmpty: + t := m.To_InputChannelEmpty() + return t.Encode() + case TLConstructor_CRC32_inputChannel: + t := m.To_InputChannel() return t.Encode() default: @@ -33835,11 +34759,14 @@ func (m *SchemeMethod) Encode() []byte { } } -func (m *SchemeMethod) EncodeToLayer(layer int) []byte { +func (m *InputChannel) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_schemeMethod: - t := m.To_SchemeMethod() + case TLConstructor_CRC32_inputChannelEmpty: + t := m.To_InputChannelEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputChannel: + t := m.To_InputChannel() return t.EncodeToLayer(layer) default: @@ -33848,11 +34775,15 @@ func (m *SchemeMethod) EncodeToLayer(layer int) []byte { } } -func (m *SchemeMethod) Decode(dbuf *DecodeBuf) error { +func (m *InputChannel) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_schemeMethod: - m2 := &TLSchemeMethod{Data2: &SchemeMethod_Data{}} + case TLConstructor_CRC32_inputChannelEmpty: + m2 := &TLInputChannelEmpty{Data2: &InputChannel_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputChannel: + m2 := &TLInputChannel{Data2: &InputChannel_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -33862,115 +34793,109 @@ func (m *SchemeMethod) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// schemeMethod#479357c0 id:int method:string params:Vector type:string = SchemeMethod; -func (m *SchemeMethod) To_SchemeMethod() *TLSchemeMethod { - return &TLSchemeMethod{ +// inputChannelEmpty#ee8c1e86 = InputChannel; +func (m *InputChannel) To_InputChannelEmpty() *TLInputChannelEmpty { + return &TLInputChannelEmpty{ Data2: m.Data2, } } -// schemeMethod#479357c0 id:int method:string params:Vector type:string = SchemeMethod; -func (m *TLSchemeMethod) To_SchemeMethod() *SchemeMethod { - return &SchemeMethod{ - Constructor: TLConstructor_CRC32_schemeMethod, - Data2: m.Data2, +// inputChannel#afeb712e channel_id:int access_hash:long = InputChannel; +func (m *InputChannel) To_InputChannel() *TLInputChannel { + return &TLInputChannel{ + Data2: m.Data2, } } -func (m *TLSchemeMethod) SetId(v int32) { m.Data2.Id = v } -func (m *TLSchemeMethod) GetId() int32 { return m.Data2.Id } - -func (m *TLSchemeMethod) SetMethod(v string) { m.Data2.Method = v } -func (m *TLSchemeMethod) GetMethod() string { return m.Data2.Method } +// inputChannelEmpty#ee8c1e86 = InputChannel; +func (m *TLInputChannelEmpty) To_InputChannel() *InputChannel { + return &InputChannel{ + Constructor: TLConstructor_CRC32_inputChannelEmpty, + Data2: m.Data2, + } +} -func (m *TLSchemeMethod) SetParams(v []*SchemeParam) { m.Data2.Params = v } -func (m *TLSchemeMethod) GetParams() []*SchemeParam { return m.Data2.Params } +func NewTLInputChannelEmpty() *TLInputChannelEmpty { + return &TLInputChannelEmpty{Data2: &InputChannel_Data{}} +} -func (m *TLSchemeMethod) SetType(v string) { m.Data2.Type = v } -func (m *TLSchemeMethod) GetType() string { return m.Data2.Type } +func (m *TLInputChannelEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputChannelEmpty)) -func NewTLSchemeMethod() *TLSchemeMethod { - return &TLSchemeMethod{Data2: &SchemeMethod_Data{}} + return x.buf } -func (m *TLSchemeMethod) Encode() []byte { +func (m *TLInputChannelEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_schemeMethod)) - - x.Int(m.GetId()) - x.String(m.GetMethod()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParams()))) - for _, v := range m.GetParams() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.String(m.GetType()) + x.Int(int32(TLConstructor_CRC32_inputChannelEmpty)) return x.buf } -func (m *TLSchemeMethod) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_schemeMethod)) +func (m *TLInputChannelEmpty) Decode(dbuf *DecodeBuf) error { - x.Int(m.GetId()) - x.String(m.GetMethod()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParams()))) - for _, v := range m.GetParams() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.String(m.GetType()) + return dbuf.err +} - return x.buf +// inputChannel#afeb712e channel_id:int access_hash:long = InputChannel; +func (m *TLInputChannel) To_InputChannel() *InputChannel { + return &InputChannel{ + Constructor: TLConstructor_CRC32_inputChannel, + Data2: m.Data2, + } } -func (m *TLSchemeMethod) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetMethod(dbuf.String()) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*SchemeParam, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &SchemeParam{} - v3[i].Decode(dbuf) - } - m.SetParams(v3) +func (m *TLInputChannel) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLInputChannel) GetChannelId() int32 { return m.Data2.ChannelId } - m.SetType(dbuf.String()) +func (m *TLInputChannel) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputChannel) GetAccessHash() int64 { return m.Data2.AccessHash } + +func NewTLInputChannel() *TLInputChannel { + return &TLInputChannel{Data2: &InputChannel_Data{}} +} + +func (m *TLInputChannel) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputChannel)) + + x.Int(m.GetChannelId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputChannel) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputChannel)) + + x.Int(m.GetChannelId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputChannel) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ChannelParticipant <-- -// + TL_ChannelParticipant -// + TL_ChannelParticipantSelf -// + TL_ChannelParticipantCreator -// + TL_ChannelParticipantAdmin -// + TL_ChannelParticipantBanned +// Messages_SavedGifs <-- +// + TL_MessagesSavedGifsNotModified +// + TL_MessagesSavedGifs // -func (m *ChannelParticipant) Encode() []byte { +func (m *Messages_SavedGifs) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_channelParticipant: - t := m.To_ChannelParticipant() - return t.Encode() - case TLConstructor_CRC32_channelParticipantSelf: - t := m.To_ChannelParticipantSelf() - return t.Encode() - case TLConstructor_CRC32_channelParticipantCreator: - t := m.To_ChannelParticipantCreator() - return t.Encode() - case TLConstructor_CRC32_channelParticipantAdmin: - t := m.To_ChannelParticipantAdmin() + case TLConstructor_CRC32_messages_savedGifsNotModified: + t := m.To_MessagesSavedGifsNotModified() return t.Encode() - case TLConstructor_CRC32_channelParticipantBanned: - t := m.To_ChannelParticipantBanned() + case TLConstructor_CRC32_messages_savedGifs: + t := m.To_MessagesSavedGifs() return t.Encode() default: @@ -33979,23 +34904,14 @@ func (m *ChannelParticipant) Encode() []byte { } } -func (m *ChannelParticipant) EncodeToLayer(layer int) []byte { +func (m *Messages_SavedGifs) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_channelParticipant: - t := m.To_ChannelParticipant() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelParticipantSelf: - t := m.To_ChannelParticipantSelf() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelParticipantCreator: - t := m.To_ChannelParticipantCreator() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelParticipantAdmin: - t := m.To_ChannelParticipantAdmin() + case TLConstructor_CRC32_messages_savedGifsNotModified: + t := m.To_MessagesSavedGifsNotModified() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelParticipantBanned: - t := m.To_ChannelParticipantBanned() + case TLConstructor_CRC32_messages_savedGifs: + t := m.To_MessagesSavedGifs() return t.EncodeToLayer(layer) default: @@ -34004,27 +34920,15 @@ func (m *ChannelParticipant) EncodeToLayer(layer int) []byte { } } -func (m *ChannelParticipant) Decode(dbuf *DecodeBuf) error { +func (m *Messages_SavedGifs) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_channelParticipant: - m2 := &TLChannelParticipant{Data2: &ChannelParticipant_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelParticipantSelf: - m2 := &TLChannelParticipantSelf{Data2: &ChannelParticipant_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelParticipantCreator: - m2 := &TLChannelParticipantCreator{Data2: &ChannelParticipant_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelParticipantAdmin: - m2 := &TLChannelParticipantAdmin{Data2: &ChannelParticipant_Data{}} + case TLConstructor_CRC32_messages_savedGifsNotModified: + m2 := &TLMessagesSavedGifsNotModified{Data2: &Messages_SavedGifs_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelParticipantBanned: - m2 := &TLChannelParticipantBanned{Data2: &ChannelParticipant_Data{}} + case TLConstructor_CRC32_messages_savedGifs: + m2 := &TLMessagesSavedGifs{Data2: &Messages_SavedGifs_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -34034,395 +34938,321 @@ func (m *ChannelParticipant) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant; -func (m *ChannelParticipant) To_ChannelParticipant() *TLChannelParticipant { - return &TLChannelParticipant{ - Data2: m.Data2, - } -} - -// channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant; -func (m *ChannelParticipant) To_ChannelParticipantSelf() *TLChannelParticipantSelf { - return &TLChannelParticipantSelf{ - Data2: m.Data2, - } -} - -// channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; -func (m *ChannelParticipant) To_ChannelParticipantCreator() *TLChannelParticipantCreator { - return &TLChannelParticipantCreator{ - Data2: m.Data2, - } -} - -// channelParticipantAdmin#a82fa898 flags:# can_edit:flags.0?true user_id:int inviter_id:int promoted_by:int date:int admin_rights:ChannelAdminRights = ChannelParticipant; -func (m *ChannelParticipant) To_ChannelParticipantAdmin() *TLChannelParticipantAdmin { - return &TLChannelParticipantAdmin{ +// messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs; +func (m *Messages_SavedGifs) To_MessagesSavedGifsNotModified() *TLMessagesSavedGifsNotModified { + return &TLMessagesSavedGifsNotModified{ Data2: m.Data2, } } -// channelParticipantBanned#222c1886 flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChannelBannedRights = ChannelParticipant; -func (m *ChannelParticipant) To_ChannelParticipantBanned() *TLChannelParticipantBanned { - return &TLChannelParticipantBanned{ +// messages.savedGifs#2e0709a5 hash:int gifs:Vector = messages.SavedGifs; +func (m *Messages_SavedGifs) To_MessagesSavedGifs() *TLMessagesSavedGifs { + return &TLMessagesSavedGifs{ Data2: m.Data2, } } -// channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant; -func (m *TLChannelParticipant) To_ChannelParticipant() *ChannelParticipant { - return &ChannelParticipant{ - Constructor: TLConstructor_CRC32_channelParticipant, +// messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs; +func (m *TLMessagesSavedGifsNotModified) To_Messages_SavedGifs() *Messages_SavedGifs { + return &Messages_SavedGifs{ + Constructor: TLConstructor_CRC32_messages_savedGifsNotModified, Data2: m.Data2, } } -func (m *TLChannelParticipant) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLChannelParticipant) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLChannelParticipant) SetDate(v int32) { m.Data2.Date = v } -func (m *TLChannelParticipant) GetDate() int32 { return m.Data2.Date } - -func NewTLChannelParticipant() *TLChannelParticipant { - return &TLChannelParticipant{Data2: &ChannelParticipant_Data{}} +func NewTLMessagesSavedGifsNotModified() *TLMessagesSavedGifsNotModified { + return &TLMessagesSavedGifsNotModified{Data2: &Messages_SavedGifs_Data{}} } -func (m *TLChannelParticipant) Encode() []byte { +func (m *TLMessagesSavedGifsNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipant)) - - x.Int(m.GetUserId()) - x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_messages_savedGifsNotModified)) return x.buf } -func (m *TLChannelParticipant) EncodeToLayer(layer int) []byte { +func (m *TLMessagesSavedGifsNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipant)) - - x.Int(m.GetUserId()) - x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_messages_savedGifsNotModified)) return x.buf } -func (m *TLChannelParticipant) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetDate(dbuf.Int()) +func (m *TLMessagesSavedGifsNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant; -func (m *TLChannelParticipantSelf) To_ChannelParticipant() *ChannelParticipant { - return &ChannelParticipant{ - Constructor: TLConstructor_CRC32_channelParticipantSelf, +// messages.savedGifs#2e0709a5 hash:int gifs:Vector = messages.SavedGifs; +func (m *TLMessagesSavedGifs) To_Messages_SavedGifs() *Messages_SavedGifs { + return &Messages_SavedGifs{ + Constructor: TLConstructor_CRC32_messages_savedGifs, Data2: m.Data2, } } -func (m *TLChannelParticipantSelf) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLChannelParticipantSelf) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLChannelParticipantSelf) SetInviterId(v int32) { m.Data2.InviterId = v } -func (m *TLChannelParticipantSelf) GetInviterId() int32 { return m.Data2.InviterId } +func (m *TLMessagesSavedGifs) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLMessagesSavedGifs) GetHash() int32 { return m.Data2.Hash } -func (m *TLChannelParticipantSelf) SetDate(v int32) { m.Data2.Date = v } -func (m *TLChannelParticipantSelf) GetDate() int32 { return m.Data2.Date } +func (m *TLMessagesSavedGifs) SetGifs(v []*Document) { m.Data2.Gifs = v } +func (m *TLMessagesSavedGifs) GetGifs() []*Document { return m.Data2.Gifs } -func NewTLChannelParticipantSelf() *TLChannelParticipantSelf { - return &TLChannelParticipantSelf{Data2: &ChannelParticipant_Data{}} +func NewTLMessagesSavedGifs() *TLMessagesSavedGifs { + return &TLMessagesSavedGifs{Data2: &Messages_SavedGifs_Data{}} } -func (m *TLChannelParticipantSelf) Encode() []byte { +func (m *TLMessagesSavedGifs) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantSelf)) + x.Int(int32(TLConstructor_CRC32_messages_savedGifs)) - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) - x.Int(m.GetDate()) + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetGifs()))) + for _, v := range m.GetGifs() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLChannelParticipantSelf) EncodeToLayer(layer int) []byte { +func (m *TLMessagesSavedGifs) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantSelf)) + x.Int(int32(TLConstructor_CRC32_messages_savedGifs)) - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) - x.Int(m.GetDate()) + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetGifs()))) + for _, v := range m.GetGifs() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLChannelParticipantSelf) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetInviterId(dbuf.Int()) - m.SetDate(dbuf.Int()) +func (m *TLMessagesSavedGifs) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Document, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Document{} + v2[i].Decode(dbuf) + } + m.SetGifs(v2) return dbuf.err } -// channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; -func (m *TLChannelParticipantCreator) To_ChannelParticipant() *ChannelParticipant { - return &ChannelParticipant{ - Constructor: TLConstructor_CRC32_channelParticipantCreator, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// Messages_RecentStickers <-- +// + TL_MessagesRecentStickersNotModified +// + TL_MessagesRecentStickers +// -func (m *TLChannelParticipantCreator) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLChannelParticipantCreator) GetUserId() int32 { return m.Data2.UserId } +func (m *Messages_RecentStickers) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_recentStickersNotModified: + t := m.To_MessagesRecentStickersNotModified() + return t.Encode() + case TLConstructor_CRC32_messages_recentStickers: + t := m.To_MessagesRecentStickers() + return t.Encode() -func NewTLChannelParticipantCreator() *TLChannelParticipantCreator { - return &TLChannelParticipantCreator{Data2: &ChannelParticipant_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelParticipantCreator) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantCreator)) - - x.Int(m.GetUserId()) +func (m *Messages_RecentStickers) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_recentStickersNotModified: + t := m.To_MessagesRecentStickersNotModified() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_recentStickers: + t := m.To_MessagesRecentStickers() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelParticipantCreator) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantCreator)) - - x.Int(m.GetUserId()) +func (m *Messages_RecentStickers) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_recentStickersNotModified: + m2 := &TLMessagesRecentStickersNotModified{Data2: &Messages_RecentStickers_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_recentStickers: + m2 := &TLMessagesRecentStickers{Data2: &Messages_RecentStickers_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLChannelParticipantCreator) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) +// messages.recentStickersNotModified#b17f890 = messages.RecentStickers; +func (m *Messages_RecentStickers) To_MessagesRecentStickersNotModified() *TLMessagesRecentStickersNotModified { + return &TLMessagesRecentStickersNotModified{ + Data2: m.Data2, + } +} - return dbuf.err +// messages.recentStickers#22f3afb3 hash:int packs:Vector stickers:Vector dates:Vector = messages.RecentStickers; +func (m *Messages_RecentStickers) To_MessagesRecentStickers() *TLMessagesRecentStickers { + return &TLMessagesRecentStickers{ + Data2: m.Data2, + } } -// channelParticipantAdmin#a82fa898 flags:# can_edit:flags.0?true user_id:int inviter_id:int promoted_by:int date:int admin_rights:ChannelAdminRights = ChannelParticipant; -func (m *TLChannelParticipantAdmin) To_ChannelParticipant() *ChannelParticipant { - return &ChannelParticipant{ - Constructor: TLConstructor_CRC32_channelParticipantAdmin, +// messages.recentStickersNotModified#b17f890 = messages.RecentStickers; +func (m *TLMessagesRecentStickersNotModified) To_Messages_RecentStickers() *Messages_RecentStickers { + return &Messages_RecentStickers{ + Constructor: TLConstructor_CRC32_messages_recentStickersNotModified, Data2: m.Data2, } } -func (m *TLChannelParticipantAdmin) SetCanEdit(v bool) { m.Data2.CanEdit = v } -func (m *TLChannelParticipantAdmin) GetCanEdit() bool { return m.Data2.CanEdit } - -func (m *TLChannelParticipantAdmin) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLChannelParticipantAdmin) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLChannelParticipantAdmin) SetInviterId(v int32) { m.Data2.InviterId = v } -func (m *TLChannelParticipantAdmin) GetInviterId() int32 { return m.Data2.InviterId } - -func (m *TLChannelParticipantAdmin) SetPromotedBy(v int32) { m.Data2.PromotedBy = v } -func (m *TLChannelParticipantAdmin) GetPromotedBy() int32 { return m.Data2.PromotedBy } - -func (m *TLChannelParticipantAdmin) SetDate(v int32) { m.Data2.Date = v } -func (m *TLChannelParticipantAdmin) GetDate() int32 { return m.Data2.Date } - -func (m *TLChannelParticipantAdmin) SetAdminRights(v *ChannelAdminRights) { m.Data2.AdminRights = v } -func (m *TLChannelParticipantAdmin) GetAdminRights() *ChannelAdminRights { return m.Data2.AdminRights } - -func NewTLChannelParticipantAdmin() *TLChannelParticipantAdmin { - return &TLChannelParticipantAdmin{Data2: &ChannelParticipant_Data{}} +func NewTLMessagesRecentStickersNotModified() *TLMessagesRecentStickersNotModified { + return &TLMessagesRecentStickersNotModified{Data2: &Messages_RecentStickers_Data{}} } -func (m *TLChannelParticipantAdmin) Encode() []byte { +func (m *TLMessagesRecentStickersNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantAdmin)) - - // flags - var flags uint32 = 0 - if m.GetCanEdit() == true { - flags |= 1 << 0 - } - x.UInt(flags) - - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) - x.Int(m.GetPromotedBy()) - x.Int(m.GetDate()) - x.Bytes(m.GetAdminRights().Encode()) + x.Int(int32(TLConstructor_CRC32_messages_recentStickersNotModified)) return x.buf } -func (m *TLChannelParticipantAdmin) EncodeToLayer(layer int) []byte { +func (m *TLMessagesRecentStickersNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantAdmin)) - - // flags - var flags uint32 = 0 - if m.GetCanEdit() == true { - flags |= 1 << 0 - } - x.UInt(flags) - - x.Int(m.GetUserId()) - x.Int(m.GetInviterId()) - x.Int(m.GetPromotedBy()) - x.Int(m.GetDate()) - x.Bytes(m.GetAdminRights().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_messages_recentStickersNotModified)) return x.buf } -func (m *TLChannelParticipantAdmin) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetCanEdit(true) - } - m.SetUserId(dbuf.Int()) - m.SetInviterId(dbuf.Int()) - m.SetPromotedBy(dbuf.Int()) - m.SetDate(dbuf.Int()) - m7 := &ChannelAdminRights{} - m7.Decode(dbuf) - m.SetAdminRights(m7) +func (m *TLMessagesRecentStickersNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channelParticipantBanned#222c1886 flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChannelBannedRights = ChannelParticipant; -func (m *TLChannelParticipantBanned) To_ChannelParticipant() *ChannelParticipant { - return &ChannelParticipant{ - Constructor: TLConstructor_CRC32_channelParticipantBanned, +// messages.recentStickers#22f3afb3 hash:int packs:Vector stickers:Vector dates:Vector = messages.RecentStickers; +func (m *TLMessagesRecentStickers) To_Messages_RecentStickers() *Messages_RecentStickers { + return &Messages_RecentStickers{ + Constructor: TLConstructor_CRC32_messages_recentStickers, Data2: m.Data2, } } -func (m *TLChannelParticipantBanned) SetLeft(v bool) { m.Data2.Left = v } -func (m *TLChannelParticipantBanned) GetLeft() bool { return m.Data2.Left } - -func (m *TLChannelParticipantBanned) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLChannelParticipantBanned) GetUserId() int32 { return m.Data2.UserId } +func (m *TLMessagesRecentStickers) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLMessagesRecentStickers) GetHash() int32 { return m.Data2.Hash } -func (m *TLChannelParticipantBanned) SetKickedBy(v int32) { m.Data2.KickedBy = v } -func (m *TLChannelParticipantBanned) GetKickedBy() int32 { return m.Data2.KickedBy } +func (m *TLMessagesRecentStickers) SetPacks(v []*StickerPack) { m.Data2.Packs = v } +func (m *TLMessagesRecentStickers) GetPacks() []*StickerPack { return m.Data2.Packs } -func (m *TLChannelParticipantBanned) SetDate(v int32) { m.Data2.Date = v } -func (m *TLChannelParticipantBanned) GetDate() int32 { return m.Data2.Date } +func (m *TLMessagesRecentStickers) SetStickers(v []*Document) { m.Data2.Stickers = v } +func (m *TLMessagesRecentStickers) GetStickers() []*Document { return m.Data2.Stickers } -func (m *TLChannelParticipantBanned) SetBannedRights(v *ChannelBannedRights) { m.Data2.BannedRights = v } -func (m *TLChannelParticipantBanned) GetBannedRights() *ChannelBannedRights { - return m.Data2.BannedRights -} +func (m *TLMessagesRecentStickers) SetDates(v []int32) { m.Data2.Dates = v } +func (m *TLMessagesRecentStickers) GetDates() []int32 { return m.Data2.Dates } -func NewTLChannelParticipantBanned() *TLChannelParticipantBanned { - return &TLChannelParticipantBanned{Data2: &ChannelParticipant_Data{}} +func NewTLMessagesRecentStickers() *TLMessagesRecentStickers { + return &TLMessagesRecentStickers{Data2: &Messages_RecentStickers_Data{}} } -func (m *TLChannelParticipantBanned) Encode() []byte { +func (m *TLMessagesRecentStickers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantBanned)) + x.Int(int32(TLConstructor_CRC32_messages_recentStickers)) - // flags - var flags uint32 = 0 - if m.GetLeft() == true { - flags |= 1 << 0 + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPacks()))) + for _, v := range m.GetPacks() { + x.buf = append(x.buf, (*v).Encode()...) } - x.UInt(flags) - - x.Int(m.GetUserId()) - x.Int(m.GetKickedBy()) - x.Int(m.GetDate()) - x.Bytes(m.GetBannedRights().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.VectorInt(m.GetDates()) return x.buf } -func (m *TLChannelParticipantBanned) EncodeToLayer(layer int) []byte { +func (m *TLMessagesRecentStickers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelParticipantBanned)) + x.Int(int32(TLConstructor_CRC32_messages_recentStickers)) - // flags - var flags uint32 = 0 - if m.GetLeft() == true { - flags |= 1 << 0 + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPacks()))) + for _, v := range m.GetPacks() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.UInt(flags) - - x.Int(m.GetUserId()) - x.Int(m.GetKickedBy()) - x.Int(m.GetDate()) - x.Bytes(m.GetBannedRights().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.VectorInt(m.GetDates()) return x.buf } -func (m *TLChannelParticipantBanned) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetLeft(true) +func (m *TLMessagesRecentStickers) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err } - m.SetUserId(dbuf.Int()) - m.SetKickedBy(dbuf.Int()) - m.SetDate(dbuf.Int()) - m6 := &ChannelBannedRights{} - m6.Decode(dbuf) - m.SetBannedRights(m6) - - return dbuf.err -} + l2 := dbuf.Int() + v2 := make([]*StickerPack, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &StickerPack{} + v2[i].Decode(dbuf) + } + m.SetPacks(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Document, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Document{} + v3[i].Decode(dbuf) + } + m.SetStickers(v3) + + m.SetDates(dbuf.VectorInt()) + + return dbuf.err +} /////////////////////////////////////////////////////////////////////////////// -// MessageMedia <-- -// + TL_MessageMediaEmpty -// + TL_MessageMediaPhoto -// + TL_MessageMediaGeo -// + TL_MessageMediaContact -// + TL_MessageMediaUnsupported -// + TL_MessageMediaDocument -// + TL_MessageMediaWebPage -// + TL_MessageMediaVenue -// + TL_MessageMediaGame -// + TL_MessageMediaInvoice -// + TL_MessageMediaGeoLive +// ImportedContact <-- +// + TL_ImportedContact // -func (m *MessageMedia) Encode() []byte { +func (m *ImportedContact) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messageMediaEmpty: - t := m.To_MessageMediaEmpty() - return t.Encode() - case TLConstructor_CRC32_messageMediaPhoto: - t := m.To_MessageMediaPhoto() - return t.Encode() - case TLConstructor_CRC32_messageMediaGeo: - t := m.To_MessageMediaGeo() - return t.Encode() - case TLConstructor_CRC32_messageMediaContact: - t := m.To_MessageMediaContact() - return t.Encode() - case TLConstructor_CRC32_messageMediaUnsupported: - t := m.To_MessageMediaUnsupported() - return t.Encode() - case TLConstructor_CRC32_messageMediaDocument: - t := m.To_MessageMediaDocument() - return t.Encode() - case TLConstructor_CRC32_messageMediaWebPage: - t := m.To_MessageMediaWebPage() - return t.Encode() - case TLConstructor_CRC32_messageMediaVenue: - t := m.To_MessageMediaVenue() - return t.Encode() - case TLConstructor_CRC32_messageMediaGame: - t := m.To_MessageMediaGame() - return t.Encode() - case TLConstructor_CRC32_messageMediaInvoice: - t := m.To_MessageMediaInvoice() - return t.Encode() - case TLConstructor_CRC32_messageMediaGeoLive: - t := m.To_MessageMediaGeoLive() + case TLConstructor_CRC32_importedContact: + t := m.To_ImportedContact() return t.Encode() default: @@ -34431,41 +35261,11 @@ func (m *MessageMedia) Encode() []byte { } } -func (m *MessageMedia) EncodeToLayer(layer int) []byte { +func (m *ImportedContact) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messageMediaEmpty: - t := m.To_MessageMediaEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaPhoto: - t := m.To_MessageMediaPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaGeo: - t := m.To_MessageMediaGeo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaContact: - t := m.To_MessageMediaContact() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaUnsupported: - t := m.To_MessageMediaUnsupported() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaDocument: - t := m.To_MessageMediaDocument() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaWebPage: - t := m.To_MessageMediaWebPage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaVenue: - t := m.To_MessageMediaVenue() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaGame: - t := m.To_MessageMediaGame() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaInvoice: - t := m.To_MessageMediaInvoice() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageMediaGeoLive: - t := m.To_MessageMediaGeoLive() + case TLConstructor_CRC32_importedContact: + t := m.To_ImportedContact() return t.EncodeToLayer(layer) default: @@ -34474,51 +35274,11 @@ func (m *MessageMedia) EncodeToLayer(layer int) []byte { } } -func (m *MessageMedia) Decode(dbuf *DecodeBuf) error { +func (m *ImportedContact) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messageMediaEmpty: - m2 := &TLMessageMediaEmpty{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaPhoto: - m2 := &TLMessageMediaPhoto{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaGeo: - m2 := &TLMessageMediaGeo{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaContact: - m2 := &TLMessageMediaContact{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaUnsupported: - m2 := &TLMessageMediaUnsupported{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaDocument: - m2 := &TLMessageMediaDocument{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaWebPage: - m2 := &TLMessageMediaWebPage{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaVenue: - m2 := &TLMessageMediaVenue{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaGame: - m2 := &TLMessageMediaGame{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaInvoice: - m2 := &TLMessageMediaInvoice{Data2: &MessageMedia_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageMediaGeoLive: - m2 := &TLMessageMediaGeoLive{Data2: &MessageMedia_Data{}} + case TLConstructor_CRC32_importedContact: + m2 := &TLImportedContact{Data2: &ImportedContact_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -34528,759 +35288,1049 @@ func (m *MessageMedia) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageMediaEmpty#3ded6320 = MessageMedia; -func (m *MessageMedia) To_MessageMediaEmpty() *TLMessageMediaEmpty { - return &TLMessageMediaEmpty{ +// importedContact#d0028438 user_id:int client_id:long = ImportedContact; +func (m *ImportedContact) To_ImportedContact() *TLImportedContact { + return &TLImportedContact{ Data2: m.Data2, } } -// messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; -func (m *MessageMedia) To_MessageMediaPhoto() *TLMessageMediaPhoto { - return &TLMessageMediaPhoto{ - Data2: m.Data2, +// importedContact#d0028438 user_id:int client_id:long = ImportedContact; +func (m *TLImportedContact) To_ImportedContact() *ImportedContact { + return &ImportedContact{ + Constructor: TLConstructor_CRC32_importedContact, + Data2: m.Data2, } } -// messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia; -func (m *MessageMedia) To_MessageMediaGeo() *TLMessageMediaGeo { - return &TLMessageMediaGeo{ - Data2: m.Data2, - } -} +func (m *TLImportedContact) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLImportedContact) GetUserId() int32 { return m.Data2.UserId } -// messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia; -func (m *MessageMedia) To_MessageMediaContact() *TLMessageMediaContact { - return &TLMessageMediaContact{ - Data2: m.Data2, - } +func (m *TLImportedContact) SetClientId(v int64) { m.Data2.ClientId = v } +func (m *TLImportedContact) GetClientId() int64 { return m.Data2.ClientId } + +func NewTLImportedContact() *TLImportedContact { + return &TLImportedContact{Data2: &ImportedContact_Data{}} } -// messageMediaUnsupported#9f84f49e = MessageMedia; -func (m *MessageMedia) To_MessageMediaUnsupported() *TLMessageMediaUnsupported { - return &TLMessageMediaUnsupported{ - Data2: m.Data2, - } +func (m *TLImportedContact) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_importedContact)) + + x.Int(m.GetUserId()) + x.Long(m.GetClientId()) + + return x.buf } -// messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia; -func (m *MessageMedia) To_MessageMediaDocument() *TLMessageMediaDocument { - return &TLMessageMediaDocument{ - Data2: m.Data2, - } +func (m *TLImportedContact) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_importedContact)) + + x.Int(m.GetUserId()) + x.Long(m.GetClientId()) + + return x.buf } -// messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia; -func (m *MessageMedia) To_MessageMediaWebPage() *TLMessageMediaWebPage { - return &TLMessageMediaWebPage{ - Data2: m.Data2, - } +func (m *TLImportedContact) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetClientId(dbuf.Long()) + + return dbuf.err } -// messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia; -func (m *MessageMedia) To_MessageMediaVenue() *TLMessageMediaVenue { - return &TLMessageMediaVenue{ - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// Messages_ChatFull <-- +// + TL_MessagesChatFull +// + +func (m *Messages_ChatFull) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_chatFull: + t := m.To_MessagesChatFull() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -// messageMediaGame#fdb19008 game:Game = MessageMedia; -func (m *MessageMedia) To_MessageMediaGame() *TLMessageMediaGame { - return &TLMessageMediaGame{ - Data2: m.Data2, +func (m *Messages_ChatFull) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_chatFull: + t := m.To_MessagesChatFull() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -// messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; -func (m *MessageMedia) To_MessageMediaInvoice() *TLMessageMediaInvoice { - return &TLMessageMediaInvoice{ - Data2: m.Data2, +func (m *Messages_ChatFull) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_chatFull: + m2 := &TLMessagesChatFull{Data2: &Messages_ChatFull_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } + return dbuf.err } -// messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia; -func (m *MessageMedia) To_MessageMediaGeoLive() *TLMessageMediaGeoLive { - return &TLMessageMediaGeoLive{ +// messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull; +func (m *Messages_ChatFull) To_MessagesChatFull() *TLMessagesChatFull { + return &TLMessagesChatFull{ Data2: m.Data2, } } -// messageMediaEmpty#3ded6320 = MessageMedia; -func (m *TLMessageMediaEmpty) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaEmpty, +// messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull; +func (m *TLMessagesChatFull) To_Messages_ChatFull() *Messages_ChatFull { + return &Messages_ChatFull{ + Constructor: TLConstructor_CRC32_messages_chatFull, Data2: m.Data2, } } -func NewTLMessageMediaEmpty() *TLMessageMediaEmpty { - return &TLMessageMediaEmpty{Data2: &MessageMedia_Data{}} -} +func (m *TLMessagesChatFull) SetFullChat(v *ChatFull) { m.Data2.FullChat = v } +func (m *TLMessagesChatFull) GetFullChat() *ChatFull { return m.Data2.FullChat } -func (m *TLMessageMediaEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaEmpty)) +func (m *TLMessagesChatFull) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLMessagesChatFull) GetChats() []*Chat { return m.Data2.Chats } - return x.buf +func (m *TLMessagesChatFull) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLMessagesChatFull) GetUsers() []*User { return m.Data2.Users } + +func NewTLMessagesChatFull() *TLMessagesChatFull { + return &TLMessagesChatFull{Data2: &Messages_ChatFull_Data{}} } -func (m *TLMessageMediaEmpty) EncodeToLayer(layer int) []byte { +func (m *TLMessagesChatFull) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaEmpty)) + x.Int(int32(TLConstructor_CRC32_messages_chatFull)) + + x.Bytes(m.GetFullChat().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLMessageMediaEmpty) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} +func (m *TLMessagesChatFull) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_chatFull)) -// messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; -func (m *TLMessageMediaPhoto) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaPhoto, - Data2: m.Data2, + x.Bytes(m.GetFullChat().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } -} - -func (m *TLMessageMediaPhoto) SetPhoto(v *Photo) { m.Data2.Photo_1 = v } -func (m *TLMessageMediaPhoto) GetPhoto() *Photo { return m.Data2.Photo_1 } - -func (m *TLMessageMediaPhoto) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } -func (m *TLMessageMediaPhoto) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } -func NewTLMessageMediaPhoto() *TLMessageMediaPhoto { - return &TLMessageMediaPhoto{Data2: &MessageMedia_Data{}} + return x.buf } -func (m *TLMessageMediaPhoto) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaPhoto)) - - // flags - var flags uint32 = 0 - if m.GetPhoto() != nil { - flags |= 1 << 0 +func (m *TLMessagesChatFull) Decode(dbuf *DecodeBuf) error { + m1 := &ChatFull{} + m1.Decode(dbuf) + m.SetFullChat(m1) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err } - if m.GetTtlSeconds() != 0 { - flags |= 1 << 2 + l2 := dbuf.Int() + v2 := make([]*Chat, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Chat{} + v2[i].Decode(dbuf) } - x.UInt(flags) + m.SetChats(v2) - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().Encode()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err } - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + l3 := dbuf.Int() + v3 := make([]*User, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &User{} + v3[i].Decode(dbuf) } + m.SetUsers(v3) - return x.buf + return dbuf.err } -func (m *TLMessageMediaPhoto) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaPhoto)) +/////////////////////////////////////////////////////////////////////////////// +// Help_InviteText <-- +// + TL_HelpInviteText +// - // flags - var flags uint32 = 0 - if m.GetPhoto() != nil { - flags |= 1 << 0 - } - if m.GetTtlSeconds() != 0 { - flags |= 1 << 2 - } - x.UInt(flags) +func (m *Help_InviteText) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_help_inviteText: + t := m.To_HelpInviteText() + return t.Encode() - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - } - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } +} - return x.buf +func (m *Help_InviteText) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_help_inviteText: + t := m.To_HelpInviteText() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageMediaPhoto) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m2 := &Photo{} +func (m *Help_InviteText) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_help_inviteText: + m2 := &TLHelpInviteText{Data2: &Help_InviteText_Data{}} m2.Decode(dbuf) - m.SetPhoto(m2) - } - if (flags & (1 << 2)) != 0 { - m.SetTtlSeconds(dbuf.Int()) - } + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia; -func (m *TLMessageMediaGeo) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaGeo, +// help.inviteText#18cb9f78 message:string = help.InviteText; +func (m *Help_InviteText) To_HelpInviteText() *TLHelpInviteText { + return &TLHelpInviteText{ + Data2: m.Data2, + } +} + +// help.inviteText#18cb9f78 message:string = help.InviteText; +func (m *TLHelpInviteText) To_Help_InviteText() *Help_InviteText { + return &Help_InviteText{ + Constructor: TLConstructor_CRC32_help_inviteText, Data2: m.Data2, } } -func (m *TLMessageMediaGeo) SetGeo(v *GeoPoint) { m.Data2.Geo = v } -func (m *TLMessageMediaGeo) GetGeo() *GeoPoint { return m.Data2.Geo } +func (m *TLHelpInviteText) SetMessage(v string) { m.Data2.Message = v } +func (m *TLHelpInviteText) GetMessage() string { return m.Data2.Message } -func NewTLMessageMediaGeo() *TLMessageMediaGeo { - return &TLMessageMediaGeo{Data2: &MessageMedia_Data{}} +func NewTLHelpInviteText() *TLHelpInviteText { + return &TLHelpInviteText{Data2: &Help_InviteText_Data{}} } -func (m *TLMessageMediaGeo) Encode() []byte { +func (m *TLHelpInviteText) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaGeo)) + x.Int(int32(TLConstructor_CRC32_help_inviteText)) - x.Bytes(m.GetGeo().Encode()) + x.String(m.GetMessage()) return x.buf } -func (m *TLMessageMediaGeo) EncodeToLayer(layer int) []byte { +func (m *TLHelpInviteText) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaGeo)) + x.Int(int32(TLConstructor_CRC32_help_inviteText)) - x.Bytes(m.GetGeo().EncodeToLayer(layer)) + x.String(m.GetMessage()) return x.buf } -func (m *TLMessageMediaGeo) Decode(dbuf *DecodeBuf) error { - m1 := &GeoPoint{} - m1.Decode(dbuf) - m.SetGeo(m1) +func (m *TLHelpInviteText) Decode(dbuf *DecodeBuf) error { + m.SetMessage(dbuf.String()) return dbuf.err } -// messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia; -func (m *TLMessageMediaContact) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaContact, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// InputPhoneCall <-- +// + TL_InputPhoneCall +// -func (m *TLMessageMediaContact) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } -func (m *TLMessageMediaContact) GetPhoneNumber() string { return m.Data2.PhoneNumber } +func (m *InputPhoneCall) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputPhoneCall: + t := m.To_InputPhoneCall() + return t.Encode() -func (m *TLMessageMediaContact) SetFirstName(v string) { m.Data2.FirstName = v } -func (m *TLMessageMediaContact) GetFirstName() string { return m.Data2.FirstName } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLMessageMediaContact) SetLastName(v string) { m.Data2.LastName = v } -func (m *TLMessageMediaContact) GetLastName() string { return m.Data2.LastName } +func (m *InputPhoneCall) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputPhoneCall: + t := m.To_InputPhoneCall() + return t.EncodeToLayer(layer) -func (m *TLMessageMediaContact) SetVcard(v string) { m.Data2.Vcard = v } -func (m *TLMessageMediaContact) GetVcard() string { return m.Data2.Vcard } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLMessageMediaContact) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLMessageMediaContact) GetUserId() int32 { return m.Data2.UserId } +func (m *InputPhoneCall) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputPhoneCall: + m2 := &TLInputPhoneCall{Data2: &InputPhoneCall_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func NewTLMessageMediaContact() *TLMessageMediaContact { - return &TLMessageMediaContact{Data2: &MessageMedia_Data{}} + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLMessageMediaContact) Encode() []byte { +// inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall; +func (m *InputPhoneCall) To_InputPhoneCall() *TLInputPhoneCall { + return &TLInputPhoneCall{ + Data2: m.Data2, + } +} + +// inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall; +func (m *TLInputPhoneCall) To_InputPhoneCall() *InputPhoneCall { + return &InputPhoneCall{ + Constructor: TLConstructor_CRC32_inputPhoneCall, + Data2: m.Data2, + } +} + +func (m *TLInputPhoneCall) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputPhoneCall) GetId() int64 { return m.Data2.Id } + +func (m *TLInputPhoneCall) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputPhoneCall) GetAccessHash() int64 { return m.Data2.AccessHash } + +func NewTLInputPhoneCall() *TLInputPhoneCall { + return &TLInputPhoneCall{Data2: &InputPhoneCall_Data{}} +} + +func (m *TLInputPhoneCall) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaContact)) + x.Int(int32(TLConstructor_CRC32_inputPhoneCall)) - x.String(m.GetPhoneNumber()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetVcard()) - x.Int(m.GetUserId()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLMessageMediaContact) EncodeToLayer(layer int) []byte { +func (m *TLInputPhoneCall) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaContact)) + x.Int(int32(TLConstructor_CRC32_inputPhoneCall)) - x.String(m.GetPhoneNumber()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetVcard()) - x.Int(m.GetUserId()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLMessageMediaContact) Decode(dbuf *DecodeBuf) error { - m.SetPhoneNumber(dbuf.String()) - m.SetFirstName(dbuf.String()) - m.SetLastName(dbuf.String()) - m.SetVcard(dbuf.String()) - m.SetUserId(dbuf.Int()) +func (m *TLInputPhoneCall) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } -// messageMediaUnsupported#9f84f49e = MessageMedia; -func (m *TLMessageMediaUnsupported) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaUnsupported, +/////////////////////////////////////////////////////////////////////////////// +// ChatInvite <-- +// + TL_ChatInviteAlready +// + TL_ChatInvite +// + +func (m *ChatInvite) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_chatInviteAlready: + t := m.To_ChatInviteAlready() + return t.Encode() + case TLConstructor_CRC32_chatInvite: + t := m.To_ChatInvite() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *ChatInvite) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_chatInviteAlready: + t := m.To_ChatInviteAlready() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_chatInvite: + t := m.To_ChatInvite() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *ChatInvite) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_chatInviteAlready: + m2 := &TLChatInviteAlready{Data2: &ChatInvite_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_chatInvite: + m2 := &TLChatInvite{Data2: &ChatInvite_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// chatInviteAlready#5a686d7c chat:Chat = ChatInvite; +func (m *ChatInvite) To_ChatInviteAlready() *TLChatInviteAlready { + return &TLChatInviteAlready{ + Data2: m.Data2, + } +} + +// chatInvite#db74f558 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:ChatPhoto participants_count:int participants:flags.4?Vector = ChatInvite; +func (m *ChatInvite) To_ChatInvite() *TLChatInvite { + return &TLChatInvite{ + Data2: m.Data2, + } +} + +// chatInviteAlready#5a686d7c chat:Chat = ChatInvite; +func (m *TLChatInviteAlready) To_ChatInvite() *ChatInvite { + return &ChatInvite{ + Constructor: TLConstructor_CRC32_chatInviteAlready, Data2: m.Data2, } } -func NewTLMessageMediaUnsupported() *TLMessageMediaUnsupported { - return &TLMessageMediaUnsupported{Data2: &MessageMedia_Data{}} +func (m *TLChatInviteAlready) SetChat(v *Chat) { m.Data2.Chat = v } +func (m *TLChatInviteAlready) GetChat() *Chat { return m.Data2.Chat } + +func NewTLChatInviteAlready() *TLChatInviteAlready { + return &TLChatInviteAlready{Data2: &ChatInvite_Data{}} } -func (m *TLMessageMediaUnsupported) Encode() []byte { +func (m *TLChatInviteAlready) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaUnsupported)) + x.Int(int32(TLConstructor_CRC32_chatInviteAlready)) + + x.Bytes(m.GetChat().Encode()) return x.buf } -func (m *TLMessageMediaUnsupported) EncodeToLayer(layer int) []byte { +func (m *TLChatInviteAlready) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaUnsupported)) + x.Int(int32(TLConstructor_CRC32_chatInviteAlready)) + + x.Bytes(m.GetChat().EncodeToLayer(layer)) return x.buf } -func (m *TLMessageMediaUnsupported) Decode(dbuf *DecodeBuf) error { +func (m *TLChatInviteAlready) Decode(dbuf *DecodeBuf) error { + m1 := &Chat{} + m1.Decode(dbuf) + m.SetChat(m1) return dbuf.err } -// messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia; -func (m *TLMessageMediaDocument) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaDocument, +// chatInvite#db74f558 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:ChatPhoto participants_count:int participants:flags.4?Vector = ChatInvite; +func (m *TLChatInvite) To_ChatInvite() *ChatInvite { + return &ChatInvite{ + Constructor: TLConstructor_CRC32_chatInvite, Data2: m.Data2, } } -func (m *TLMessageMediaDocument) SetDocument(v *Document) { m.Data2.Document = v } -func (m *TLMessageMediaDocument) GetDocument() *Document { return m.Data2.Document } +func (m *TLChatInvite) SetChannel(v bool) { m.Data2.Channel = v } +func (m *TLChatInvite) GetChannel() bool { return m.Data2.Channel } -func (m *TLMessageMediaDocument) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } -func (m *TLMessageMediaDocument) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } +func (m *TLChatInvite) SetBroadcast(v bool) { m.Data2.Broadcast = v } +func (m *TLChatInvite) GetBroadcast() bool { return m.Data2.Broadcast } -func NewTLMessageMediaDocument() *TLMessageMediaDocument { - return &TLMessageMediaDocument{Data2: &MessageMedia_Data{}} +func (m *TLChatInvite) SetPublic(v bool) { m.Data2.Public = v } +func (m *TLChatInvite) GetPublic() bool { return m.Data2.Public } + +func (m *TLChatInvite) SetMegagroup(v bool) { m.Data2.Megagroup = v } +func (m *TLChatInvite) GetMegagroup() bool { return m.Data2.Megagroup } + +func (m *TLChatInvite) SetTitle(v string) { m.Data2.Title = v } +func (m *TLChatInvite) GetTitle() string { return m.Data2.Title } + +func (m *TLChatInvite) SetPhoto(v *ChatPhoto) { m.Data2.Photo = v } +func (m *TLChatInvite) GetPhoto() *ChatPhoto { return m.Data2.Photo } + +func (m *TLChatInvite) SetParticipantsCount(v int32) { m.Data2.ParticipantsCount = v } +func (m *TLChatInvite) GetParticipantsCount() int32 { return m.Data2.ParticipantsCount } + +func (m *TLChatInvite) SetParticipants(v []*User) { m.Data2.Participants = v } +func (m *TLChatInvite) GetParticipants() []*User { return m.Data2.Participants } + +func NewTLChatInvite() *TLChatInvite { + return &TLChatInvite{Data2: &ChatInvite_Data{}} } -func (m *TLMessageMediaDocument) Encode() []byte { +func (m *TLChatInvite) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaDocument)) + x.Int(int32(TLConstructor_CRC32_chatInvite)) // flags var flags uint32 = 0 - if m.GetDocument() != nil { + if m.GetChannel() == true { flags |= 1 << 0 } - if m.GetTtlSeconds() != 0 { + if m.GetBroadcast() == true { + flags |= 1 << 1 + } + if m.GetPublic() == true { flags |= 1 << 2 } + if m.GetMegagroup() == true { + flags |= 1 << 3 + } + if m.GetParticipants() != nil { + flags |= 1 << 4 + } x.UInt(flags) - if m.GetDocument() != nil { - x.Bytes(m.GetDocument().Encode()) - } - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + x.String(m.GetTitle()) + x.Bytes(m.GetPhoto().Encode()) + x.Int(m.GetParticipantsCount()) + if m.GetParticipants() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParticipants()))) + for _, v := range m.GetParticipants() { + x.buf = append(x.buf, (*v).Encode()...) + } } return x.buf } -func (m *TLMessageMediaDocument) EncodeToLayer(layer int) []byte { +func (m *TLChatInvite) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaDocument)) + x.Int(int32(TLConstructor_CRC32_chatInvite)) // flags var flags uint32 = 0 - if m.GetDocument() != nil { + if m.GetChannel() == true { flags |= 1 << 0 } - if m.GetTtlSeconds() != 0 { + if m.GetBroadcast() == true { + flags |= 1 << 1 + } + if m.GetPublic() == true { flags |= 1 << 2 } + if m.GetMegagroup() == true { + flags |= 1 << 3 + } + if m.GetParticipants() != nil { + flags |= 1 << 4 + } x.UInt(flags) - if m.GetDocument() != nil { - x.Bytes(m.GetDocument().EncodeToLayer(layer)) - } - if m.GetTtlSeconds() != 0 { - x.Int(m.GetTtlSeconds()) + x.String(m.GetTitle()) + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Int(m.GetParticipantsCount()) + if m.GetParticipants() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParticipants()))) + for _, v := range m.GetParticipants() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } } return x.buf } -func (m *TLMessageMediaDocument) Decode(dbuf *DecodeBuf) error { +func (m *TLChatInvite) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags if (flags & (1 << 0)) != 0 { - m2 := &Document{} - m2.Decode(dbuf) - m.SetDocument(m2) + m.SetChannel(true) + } + if (flags & (1 << 1)) != 0 { + m.SetBroadcast(true) } if (flags & (1 << 2)) != 0 { - m.SetTtlSeconds(dbuf.Int()) + m.SetPublic(true) } - - return dbuf.err -} - -// messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia; -func (m *TLMessageMediaWebPage) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaWebPage, - Data2: m.Data2, + if (flags & (1 << 3)) != 0 { + m.SetMegagroup(true) } -} + m.SetTitle(dbuf.String()) + m7 := &ChatPhoto{} + m7.Decode(dbuf) + m.SetPhoto(m7) + m.SetParticipantsCount(dbuf.Int()) + if (flags & (1 << 4)) != 0 { + c9 := dbuf.Int() + if c9 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 9, c9) + return dbuf.err + } + l9 := dbuf.Int() + v9 := make([]*User, l9) + for i := int32(0); i < l9; i++ { + v9[i] = &User{} + v9[i].Decode(dbuf) + } + m.SetParticipants(v9) -func (m *TLMessageMediaWebPage) SetWebpage(v *WebPage) { m.Data2.Webpage = v } -func (m *TLMessageMediaWebPage) GetWebpage() *WebPage { return m.Data2.Webpage } + } -func NewTLMessageMediaWebPage() *TLMessageMediaWebPage { - return &TLMessageMediaWebPage{Data2: &MessageMedia_Data{}} + return dbuf.err } -func (m *TLMessageMediaWebPage) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaWebPage)) +/////////////////////////////////////////////////////////////////////////////// +// SecureFile <-- +// + TL_SecureFileEmpty +// + TL_SecureFile +// - x.Bytes(m.GetWebpage().Encode()) +func (m *SecureFile) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_secureFileEmpty: + t := m.To_SecureFileEmpty() + return t.Encode() + case TLConstructor_CRC32_secureFile: + t := m.To_SecureFile() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageMediaWebPage) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaWebPage)) - - x.Bytes(m.GetWebpage().EncodeToLayer(layer)) +func (m *SecureFile) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_secureFileEmpty: + t := m.To_SecureFileEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureFile: + t := m.To_SecureFile() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageMediaWebPage) Decode(dbuf *DecodeBuf) error { - m1 := &WebPage{} - m1.Decode(dbuf) - m.SetWebpage(m1) +func (m *SecureFile) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_secureFileEmpty: + m2 := &TLSecureFileEmpty{Data2: &SecureFile_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureFile: + m2 := &TLSecureFile{Data2: &SecureFile_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia; -func (m *TLMessageMediaVenue) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaVenue, - Data2: m.Data2, +// secureFileEmpty#64199744 = SecureFile; +func (m *SecureFile) To_SecureFileEmpty() *TLSecureFileEmpty { + return &TLSecureFileEmpty{ + Data2: m.Data2, } } -func (m *TLMessageMediaVenue) SetGeo(v *GeoPoint) { m.Data2.Geo = v } -func (m *TLMessageMediaVenue) GetGeo() *GeoPoint { return m.Data2.Geo } - -func (m *TLMessageMediaVenue) SetTitle(v string) { m.Data2.Title = v } -func (m *TLMessageMediaVenue) GetTitle() string { return m.Data2.Title } - -func (m *TLMessageMediaVenue) SetAddress(v string) { m.Data2.Address = v } -func (m *TLMessageMediaVenue) GetAddress() string { return m.Data2.Address } - -func (m *TLMessageMediaVenue) SetProvider(v string) { m.Data2.Provider = v } -func (m *TLMessageMediaVenue) GetProvider() string { return m.Data2.Provider } - -func (m *TLMessageMediaVenue) SetVenueId(v string) { m.Data2.VenueId = v } -func (m *TLMessageMediaVenue) GetVenueId() string { return m.Data2.VenueId } +// secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile; +func (m *SecureFile) To_SecureFile() *TLSecureFile { + return &TLSecureFile{ + Data2: m.Data2, + } +} -func (m *TLMessageMediaVenue) SetVenueType(v string) { m.Data2.VenueType = v } -func (m *TLMessageMediaVenue) GetVenueType() string { return m.Data2.VenueType } +// secureFileEmpty#64199744 = SecureFile; +func (m *TLSecureFileEmpty) To_SecureFile() *SecureFile { + return &SecureFile{ + Constructor: TLConstructor_CRC32_secureFileEmpty, + Data2: m.Data2, + } +} -func NewTLMessageMediaVenue() *TLMessageMediaVenue { - return &TLMessageMediaVenue{Data2: &MessageMedia_Data{}} +func NewTLSecureFileEmpty() *TLSecureFileEmpty { + return &TLSecureFileEmpty{Data2: &SecureFile_Data{}} } -func (m *TLMessageMediaVenue) Encode() []byte { +func (m *TLSecureFileEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaVenue)) - - x.Bytes(m.GetGeo().Encode()) - x.String(m.GetTitle()) - x.String(m.GetAddress()) - x.String(m.GetProvider()) - x.String(m.GetVenueId()) - x.String(m.GetVenueType()) + x.Int(int32(TLConstructor_CRC32_secureFileEmpty)) return x.buf } -func (m *TLMessageMediaVenue) EncodeToLayer(layer int) []byte { +func (m *TLSecureFileEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaVenue)) - - x.Bytes(m.GetGeo().EncodeToLayer(layer)) - x.String(m.GetTitle()) - x.String(m.GetAddress()) - x.String(m.GetProvider()) - x.String(m.GetVenueId()) - x.String(m.GetVenueType()) + x.Int(int32(TLConstructor_CRC32_secureFileEmpty)) return x.buf } -func (m *TLMessageMediaVenue) Decode(dbuf *DecodeBuf) error { - m1 := &GeoPoint{} - m1.Decode(dbuf) - m.SetGeo(m1) - m.SetTitle(dbuf.String()) - m.SetAddress(dbuf.String()) - m.SetProvider(dbuf.String()) - m.SetVenueId(dbuf.String()) - m.SetVenueType(dbuf.String()) +func (m *TLSecureFileEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageMediaGame#fdb19008 game:Game = MessageMedia; -func (m *TLMessageMediaGame) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaGame, +// secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile; +func (m *TLSecureFile) To_SecureFile() *SecureFile { + return &SecureFile{ + Constructor: TLConstructor_CRC32_secureFile, Data2: m.Data2, } } -func (m *TLMessageMediaGame) SetGame(v *Game) { m.Data2.Game = v } -func (m *TLMessageMediaGame) GetGame() *Game { return m.Data2.Game } +func (m *TLSecureFile) SetId(v int64) { m.Data2.Id = v } +func (m *TLSecureFile) GetId() int64 { return m.Data2.Id } -func NewTLMessageMediaGame() *TLMessageMediaGame { - return &TLMessageMediaGame{Data2: &MessageMedia_Data{}} -} +func (m *TLSecureFile) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLSecureFile) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLMessageMediaGame) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaGame)) +func (m *TLSecureFile) SetSize(v int32) { m.Data2.Size = v } +func (m *TLSecureFile) GetSize() int32 { return m.Data2.Size } - x.Bytes(m.GetGame().Encode()) +func (m *TLSecureFile) SetDcId(v int32) { m.Data2.DcId = v } +func (m *TLSecureFile) GetDcId() int32 { return m.Data2.DcId } - return x.buf -} +func (m *TLSecureFile) SetDate(v int32) { m.Data2.Date = v } +func (m *TLSecureFile) GetDate() int32 { return m.Data2.Date } -func (m *TLMessageMediaGame) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaGame)) +func (m *TLSecureFile) SetFileHash(v []byte) { m.Data2.FileHash = v } +func (m *TLSecureFile) GetFileHash() []byte { return m.Data2.FileHash } - x.Bytes(m.GetGame().EncodeToLayer(layer)) +func (m *TLSecureFile) SetSecret(v []byte) { m.Data2.Secret = v } +func (m *TLSecureFile) GetSecret() []byte { return m.Data2.Secret } - return x.buf +func NewTLSecureFile() *TLSecureFile { + return &TLSecureFile{Data2: &SecureFile_Data{}} } -func (m *TLMessageMediaGame) Decode(dbuf *DecodeBuf) error { - m1 := &Game{} - m1.Decode(dbuf) - m.SetGame(m1) +func (m *TLSecureFile) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureFile)) - return dbuf.err -} + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetSize()) + x.Int(m.GetDcId()) + x.Int(m.GetDate()) + x.StringBytes(m.GetFileHash()) + x.StringBytes(m.GetSecret()) -// messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; -func (m *TLMessageMediaInvoice) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaInvoice, - Data2: m.Data2, - } + return x.buf } -func (m *TLMessageMediaInvoice) SetShippingAddressRequested(v bool) { - m.Data2.ShippingAddressRequested = v -} -func (m *TLMessageMediaInvoice) GetShippingAddressRequested() bool { - return m.Data2.ShippingAddressRequested -} +func (m *TLSecureFile) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureFile)) -func (m *TLMessageMediaInvoice) SetTest(v bool) { m.Data2.Test = v } -func (m *TLMessageMediaInvoice) GetTest() bool { return m.Data2.Test } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetSize()) + x.Int(m.GetDcId()) + x.Int(m.GetDate()) + x.StringBytes(m.GetFileHash()) + x.StringBytes(m.GetSecret()) -func (m *TLMessageMediaInvoice) SetTitle(v string) { m.Data2.Title = v } -func (m *TLMessageMediaInvoice) GetTitle() string { return m.Data2.Title } + return x.buf +} -func (m *TLMessageMediaInvoice) SetDescription(v string) { m.Data2.Description = v } -func (m *TLMessageMediaInvoice) GetDescription() string { return m.Data2.Description } +func (m *TLSecureFile) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetSize(dbuf.Int()) + m.SetDcId(dbuf.Int()) + m.SetDate(dbuf.Int()) + m.SetFileHash(dbuf.StringBytes()) + m.SetSecret(dbuf.StringBytes()) -func (m *TLMessageMediaInvoice) SetPhoto(v *WebDocument) { m.Data2.Photo_20 = v } -func (m *TLMessageMediaInvoice) GetPhoto() *WebDocument { return m.Data2.Photo_20 } + return dbuf.err +} -func (m *TLMessageMediaInvoice) SetReceiptMsgId(v int32) { m.Data2.ReceiptMsgId = v } -func (m *TLMessageMediaInvoice) GetReceiptMsgId() int32 { return m.Data2.ReceiptMsgId } +/////////////////////////////////////////////////////////////////////////////// +// Bool <-- +// + TL_BoolFalse +// + TL_BoolTrue +// -func (m *TLMessageMediaInvoice) SetCurrency(v string) { m.Data2.Currency = v } -func (m *TLMessageMediaInvoice) GetCurrency() string { return m.Data2.Currency } +func (m *Bool) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_boolFalse: + t := m.To_BoolFalse() + return t.Encode() + case TLConstructor_CRC32_boolTrue: + t := m.To_BoolTrue() + return t.Encode() -func (m *TLMessageMediaInvoice) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } -func (m *TLMessageMediaInvoice) GetTotalAmount() int64 { return m.Data2.TotalAmount } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLMessageMediaInvoice) SetStartParam(v string) { m.Data2.StartParam = v } -func (m *TLMessageMediaInvoice) GetStartParam() string { return m.Data2.StartParam } +func (m *Bool) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_boolFalse: + t := m.To_BoolFalse() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_boolTrue: + t := m.To_BoolTrue() + return t.EncodeToLayer(layer) -func NewTLMessageMediaInvoice() *TLMessageMediaInvoice { - return &TLMessageMediaInvoice{Data2: &MessageMedia_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageMediaInvoice) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaInvoice)) +func (m *Bool) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_boolFalse: + m2 := &TLBoolFalse{Data2: &Bool_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_boolTrue: + m2 := &TLBoolTrue{Data2: &Bool_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - // flags - var flags uint32 = 0 - if m.GetShippingAddressRequested() == true { - flags |= 1 << 1 - } - if m.GetTest() == true { - flags |= 1 << 3 - } - if m.GetPhoto() != nil { - flags |= 1 << 0 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - if m.GetReceiptMsgId() != 0 { - flags |= 1 << 2 + return dbuf.err +} + +// boolFalse#bc799737 = Bool; +func (m *Bool) To_BoolFalse() *TLBoolFalse { + return &TLBoolFalse{ + Data2: m.Data2, } - x.UInt(flags) +} - x.String(m.GetTitle()) - x.String(m.GetDescription()) - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().Encode()) +// boolTrue#997275b5 = Bool; +func (m *Bool) To_BoolTrue() *TLBoolTrue { + return &TLBoolTrue{ + Data2: m.Data2, } - if m.GetReceiptMsgId() != 0 { - x.Int(m.GetReceiptMsgId()) +} + +// boolFalse#bc799737 = Bool; +func (m *TLBoolFalse) To_Bool() *Bool { + return &Bool{ + Constructor: TLConstructor_CRC32_boolFalse, + Data2: m.Data2, } - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) - x.String(m.GetStartParam()) +} - return x.buf +func NewTLBoolFalse() *TLBoolFalse { + return &TLBoolFalse{Data2: &Bool_Data{}} } -func (m *TLMessageMediaInvoice) EncodeToLayer(layer int) []byte { +func (m *TLBoolFalse) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaInvoice)) + x.Int(int32(TLConstructor_CRC32_boolFalse)) - // flags - var flags uint32 = 0 - if m.GetShippingAddressRequested() == true { - flags |= 1 << 1 - } - if m.GetTest() == true { - flags |= 1 << 3 - } - if m.GetPhoto() != nil { - flags |= 1 << 0 - } - if m.GetReceiptMsgId() != 0 { - flags |= 1 << 2 - } - x.UInt(flags) + return x.buf +} - x.String(m.GetTitle()) - x.String(m.GetDescription()) - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - } - if m.GetReceiptMsgId() != 0 { - x.Int(m.GetReceiptMsgId()) - } - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) - x.String(m.GetStartParam()) +func (m *TLBoolFalse) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_boolFalse)) return x.buf } -func (m *TLMessageMediaInvoice) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetShippingAddressRequested(true) - } - if (flags & (1 << 3)) != 0 { - m.SetTest(true) - } - m.SetTitle(dbuf.String()) - m.SetDescription(dbuf.String()) - if (flags & (1 << 0)) != 0 { - m6 := &WebDocument{} - m6.Decode(dbuf) - m.SetPhoto(m6) - } - if (flags & (1 << 2)) != 0 { - m.SetReceiptMsgId(dbuf.Int()) - } - m.SetCurrency(dbuf.String()) - m.SetTotalAmount(dbuf.Long()) - m.SetStartParam(dbuf.String()) +func (m *TLBoolFalse) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia; -func (m *TLMessageMediaGeoLive) To_MessageMedia() *MessageMedia { - return &MessageMedia{ - Constructor: TLConstructor_CRC32_messageMediaGeoLive, +// boolTrue#997275b5 = Bool; +func (m *TLBoolTrue) To_Bool() *Bool { + return &Bool{ + Constructor: TLConstructor_CRC32_boolTrue, Data2: m.Data2, } } -func (m *TLMessageMediaGeoLive) SetGeo(v *GeoPoint) { m.Data2.Geo = v } -func (m *TLMessageMediaGeoLive) GetGeo() *GeoPoint { return m.Data2.Geo } - -func (m *TLMessageMediaGeoLive) SetPeriod(v int32) { m.Data2.Period = v } -func (m *TLMessageMediaGeoLive) GetPeriod() int32 { return m.Data2.Period } - -func NewTLMessageMediaGeoLive() *TLMessageMediaGeoLive { - return &TLMessageMediaGeoLive{Data2: &MessageMedia_Data{}} +func NewTLBoolTrue() *TLBoolTrue { + return &TLBoolTrue{Data2: &Bool_Data{}} } -func (m *TLMessageMediaGeoLive) Encode() []byte { +func (m *TLBoolTrue) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaGeoLive)) - - x.Bytes(m.GetGeo().Encode()) - x.Int(m.GetPeriod()) + x.Int(int32(TLConstructor_CRC32_boolTrue)) return x.buf } -func (m *TLMessageMediaGeoLive) EncodeToLayer(layer int) []byte { +func (m *TLBoolTrue) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageMediaGeoLive)) - - x.Bytes(m.GetGeo().EncodeToLayer(layer)) - x.Int(m.GetPeriod()) + x.Int(int32(TLConstructor_CRC32_boolTrue)) return x.buf } -func (m *TLMessageMediaGeoLive) Decode(dbuf *DecodeBuf) error { - m1 := &GeoPoint{} - m1.Decode(dbuf) - m.SetGeo(m1) - m.SetPeriod(dbuf.Int()) +func (m *TLBoolTrue) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Config <-- -// + TL_Config +// PageBlock <-- +// + TL_PageBlockUnsupported +// + TL_PageBlockTitle +// + TL_PageBlockSubtitle +// + TL_PageBlockAuthorDate +// + TL_PageBlockHeader +// + TL_PageBlockSubheader +// + TL_PageBlockParagraph +// + TL_PageBlockPreformatted +// + TL_PageBlockFooter +// + TL_PageBlockDivider +// + TL_PageBlockAnchor +// + TL_PageBlockList +// + TL_PageBlockBlockquote +// + TL_PageBlockPullquote +// + TL_PageBlockPhoto +// + TL_PageBlockVideo +// + TL_PageBlockCover +// + TL_PageBlockEmbed +// + TL_PageBlockEmbedPost +// + TL_PageBlockCollage +// + TL_PageBlockSlideshow +// + TL_PageBlockChannel +// + TL_PageBlockAudio // -func (m *Config) Encode() []byte { +func (m *PageBlock) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_config: - t := m.To_Config() + case TLConstructor_CRC32_pageBlockUnsupported: + t := m.To_PageBlockUnsupported() + return t.Encode() + case TLConstructor_CRC32_pageBlockTitle: + t := m.To_PageBlockTitle() + return t.Encode() + case TLConstructor_CRC32_pageBlockSubtitle: + t := m.To_PageBlockSubtitle() + return t.Encode() + case TLConstructor_CRC32_pageBlockAuthorDate: + t := m.To_PageBlockAuthorDate() + return t.Encode() + case TLConstructor_CRC32_pageBlockHeader: + t := m.To_PageBlockHeader() + return t.Encode() + case TLConstructor_CRC32_pageBlockSubheader: + t := m.To_PageBlockSubheader() + return t.Encode() + case TLConstructor_CRC32_pageBlockParagraph: + t := m.To_PageBlockParagraph() + return t.Encode() + case TLConstructor_CRC32_pageBlockPreformatted: + t := m.To_PageBlockPreformatted() + return t.Encode() + case TLConstructor_CRC32_pageBlockFooter: + t := m.To_PageBlockFooter() + return t.Encode() + case TLConstructor_CRC32_pageBlockDivider: + t := m.To_PageBlockDivider() + return t.Encode() + case TLConstructor_CRC32_pageBlockAnchor: + t := m.To_PageBlockAnchor() + return t.Encode() + case TLConstructor_CRC32_pageBlockList: + t := m.To_PageBlockList() + return t.Encode() + case TLConstructor_CRC32_pageBlockBlockquote: + t := m.To_PageBlockBlockquote() + return t.Encode() + case TLConstructor_CRC32_pageBlockPullquote: + t := m.To_PageBlockPullquote() + return t.Encode() + case TLConstructor_CRC32_pageBlockPhoto: + t := m.To_PageBlockPhoto() + return t.Encode() + case TLConstructor_CRC32_pageBlockVideo: + t := m.To_PageBlockVideo() + return t.Encode() + case TLConstructor_CRC32_pageBlockCover: + t := m.To_PageBlockCover() + return t.Encode() + case TLConstructor_CRC32_pageBlockEmbed: + t := m.To_PageBlockEmbed() + return t.Encode() + case TLConstructor_CRC32_pageBlockEmbedPost: + t := m.To_PageBlockEmbedPost() + return t.Encode() + case TLConstructor_CRC32_pageBlockCollage: + t := m.To_PageBlockCollage() + return t.Encode() + case TLConstructor_CRC32_pageBlockSlideshow: + t := m.To_PageBlockSlideshow() + return t.Encode() + case TLConstructor_CRC32_pageBlockChannel: + t := m.To_PageBlockChannel() + return t.Encode() + case TLConstructor_CRC32_pageBlockAudio: + t := m.To_PageBlockAudio() return t.Encode() default: @@ -35289,11 +36339,77 @@ func (m *Config) Encode() []byte { } } -func (m *Config) EncodeToLayer(layer int) []byte { +func (m *PageBlock) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_config: - t := m.To_Config() + case TLConstructor_CRC32_pageBlockUnsupported: + t := m.To_PageBlockUnsupported() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockTitle: + t := m.To_PageBlockTitle() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockSubtitle: + t := m.To_PageBlockSubtitle() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockAuthorDate: + t := m.To_PageBlockAuthorDate() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockHeader: + t := m.To_PageBlockHeader() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockSubheader: + t := m.To_PageBlockSubheader() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockParagraph: + t := m.To_PageBlockParagraph() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockPreformatted: + t := m.To_PageBlockPreformatted() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockFooter: + t := m.To_PageBlockFooter() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockDivider: + t := m.To_PageBlockDivider() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockAnchor: + t := m.To_PageBlockAnchor() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockList: + t := m.To_PageBlockList() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockBlockquote: + t := m.To_PageBlockBlockquote() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockPullquote: + t := m.To_PageBlockPullquote() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockPhoto: + t := m.To_PageBlockPhoto() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockVideo: + t := m.To_PageBlockVideo() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockCover: + t := m.To_PageBlockCover() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockEmbed: + t := m.To_PageBlockEmbed() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockEmbedPost: + t := m.To_PageBlockEmbedPost() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockCollage: + t := m.To_PageBlockCollage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockSlideshow: + t := m.To_PageBlockSlideshow() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockChannel: + t := m.To_PageBlockChannel() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_pageBlockAudio: + t := m.To_PageBlockAudio() return t.EncodeToLayer(layer) default: @@ -35302,1684 +36418,1516 @@ func (m *Config) EncodeToLayer(layer int) []byte { } } -func (m *Config) Decode(dbuf *DecodeBuf) error { +func (m *PageBlock) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_config: - m2 := &TLConfig{Data2: &Config_Data{}} + case TLConstructor_CRC32_pageBlockUnsupported: + m2 := &TLPageBlockUnsupported{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockTitle: + m2 := &TLPageBlockTitle{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockSubtitle: + m2 := &TLPageBlockSubtitle{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockAuthorDate: + m2 := &TLPageBlockAuthorDate{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockHeader: + m2 := &TLPageBlockHeader{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockSubheader: + m2 := &TLPageBlockSubheader{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockParagraph: + m2 := &TLPageBlockParagraph{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockPreformatted: + m2 := &TLPageBlockPreformatted{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockFooter: + m2 := &TLPageBlockFooter{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockDivider: + m2 := &TLPageBlockDivider{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockAnchor: + m2 := &TLPageBlockAnchor{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockList: + m2 := &TLPageBlockList{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockBlockquote: + m2 := &TLPageBlockBlockquote{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockPullquote: + m2 := &TLPageBlockPullquote{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockPhoto: + m2 := &TLPageBlockPhoto{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockVideo: + m2 := &TLPageBlockVideo{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockCover: + m2 := &TLPageBlockCover{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockEmbed: + m2 := &TLPageBlockEmbed{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockEmbedPost: + m2 := &TLPageBlockEmbedPost{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockCollage: + m2 := &TLPageBlockCollage{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockSlideshow: + m2 := &TLPageBlockSlideshow{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockChannel: + m2 := &TLPageBlockChannel{Data2: &PageBlock_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_pageBlockAudio: + m2 := &TLPageBlockAudio{Data2: &PageBlock_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// config#3213dbba flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int = Config; -func (m *Config) To_Config() *TLConfig { - return &TLConfig{ - Data2: m.Data2, - } -} - -// config#3213dbba flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int = Config; -func (m *TLConfig) To_Config() *Config { - return &Config{ - Constructor: TLConstructor_CRC32_config, - Data2: m.Data2, - } -} - -func (m *TLConfig) SetPhonecallsEnabled(v bool) { m.Data2.PhonecallsEnabled = v } -func (m *TLConfig) GetPhonecallsEnabled() bool { return m.Data2.PhonecallsEnabled } - -func (m *TLConfig) SetDefaultP2PContacts(v bool) { m.Data2.DefaultP2PContacts = v } -func (m *TLConfig) GetDefaultP2PContacts() bool { return m.Data2.DefaultP2PContacts } - -func (m *TLConfig) SetPreloadFeaturedStickers(v bool) { m.Data2.PreloadFeaturedStickers = v } -func (m *TLConfig) GetPreloadFeaturedStickers() bool { return m.Data2.PreloadFeaturedStickers } - -func (m *TLConfig) SetIgnorePhoneEntities(v bool) { m.Data2.IgnorePhoneEntities = v } -func (m *TLConfig) GetIgnorePhoneEntities() bool { return m.Data2.IgnorePhoneEntities } - -func (m *TLConfig) SetRevokePmInbox(v bool) { m.Data2.RevokePmInbox = v } -func (m *TLConfig) GetRevokePmInbox() bool { return m.Data2.RevokePmInbox } - -func (m *TLConfig) SetBlockedMode(v bool) { m.Data2.BlockedMode = v } -func (m *TLConfig) GetBlockedMode() bool { return m.Data2.BlockedMode } - -func (m *TLConfig) SetDate(v int32) { m.Data2.Date = v } -func (m *TLConfig) GetDate() int32 { return m.Data2.Date } - -func (m *TLConfig) SetExpires(v int32) { m.Data2.Expires = v } -func (m *TLConfig) GetExpires() int32 { return m.Data2.Expires } - -func (m *TLConfig) SetTestMode(v *Bool) { m.Data2.TestMode = v } -func (m *TLConfig) GetTestMode() *Bool { return m.Data2.TestMode } - -func (m *TLConfig) SetThisDc(v int32) { m.Data2.ThisDc = v } -func (m *TLConfig) GetThisDc() int32 { return m.Data2.ThisDc } - -func (m *TLConfig) SetDcOptions(v []*DcOption) { m.Data2.DcOptions = v } -func (m *TLConfig) GetDcOptions() []*DcOption { return m.Data2.DcOptions } - -func (m *TLConfig) SetDcTxtDomainName(v string) { m.Data2.DcTxtDomainName = v } -func (m *TLConfig) GetDcTxtDomainName() string { return m.Data2.DcTxtDomainName } - -func (m *TLConfig) SetChatSizeMax(v int32) { m.Data2.ChatSizeMax = v } -func (m *TLConfig) GetChatSizeMax() int32 { return m.Data2.ChatSizeMax } - -func (m *TLConfig) SetMegagroupSizeMax(v int32) { m.Data2.MegagroupSizeMax = v } -func (m *TLConfig) GetMegagroupSizeMax() int32 { return m.Data2.MegagroupSizeMax } - -func (m *TLConfig) SetForwardedCountMax(v int32) { m.Data2.ForwardedCountMax = v } -func (m *TLConfig) GetForwardedCountMax() int32 { return m.Data2.ForwardedCountMax } - -func (m *TLConfig) SetOnlineUpdatePeriodMs(v int32) { m.Data2.OnlineUpdatePeriodMs = v } -func (m *TLConfig) GetOnlineUpdatePeriodMs() int32 { return m.Data2.OnlineUpdatePeriodMs } - -func (m *TLConfig) SetOfflineBlurTimeoutMs(v int32) { m.Data2.OfflineBlurTimeoutMs = v } -func (m *TLConfig) GetOfflineBlurTimeoutMs() int32 { return m.Data2.OfflineBlurTimeoutMs } - -func (m *TLConfig) SetOfflineIdleTimeoutMs(v int32) { m.Data2.OfflineIdleTimeoutMs = v } -func (m *TLConfig) GetOfflineIdleTimeoutMs() int32 { return m.Data2.OfflineIdleTimeoutMs } - -func (m *TLConfig) SetOnlineCloudTimeoutMs(v int32) { m.Data2.OnlineCloudTimeoutMs = v } -func (m *TLConfig) GetOnlineCloudTimeoutMs() int32 { return m.Data2.OnlineCloudTimeoutMs } - -func (m *TLConfig) SetNotifyCloudDelayMs(v int32) { m.Data2.NotifyCloudDelayMs = v } -func (m *TLConfig) GetNotifyCloudDelayMs() int32 { return m.Data2.NotifyCloudDelayMs } + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} -func (m *TLConfig) SetNotifyDefaultDelayMs(v int32) { m.Data2.NotifyDefaultDelayMs = v } -func (m *TLConfig) GetNotifyDefaultDelayMs() int32 { return m.Data2.NotifyDefaultDelayMs } +// pageBlockUnsupported#13567e8a = PageBlock; +func (m *PageBlock) To_PageBlockUnsupported() *TLPageBlockUnsupported { + return &TLPageBlockUnsupported{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetPushChatPeriodMs(v int32) { m.Data2.PushChatPeriodMs = v } -func (m *TLConfig) GetPushChatPeriodMs() int32 { return m.Data2.PushChatPeriodMs } +// pageBlockTitle#70abc3fd text:RichText = PageBlock; +func (m *PageBlock) To_PageBlockTitle() *TLPageBlockTitle { + return &TLPageBlockTitle{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetPushChatLimit(v int32) { m.Data2.PushChatLimit = v } -func (m *TLConfig) GetPushChatLimit() int32 { return m.Data2.PushChatLimit } +// pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock; +func (m *PageBlock) To_PageBlockSubtitle() *TLPageBlockSubtitle { + return &TLPageBlockSubtitle{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetSavedGifsLimit(v int32) { m.Data2.SavedGifsLimit = v } -func (m *TLConfig) GetSavedGifsLimit() int32 { return m.Data2.SavedGifsLimit } +// pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock; +func (m *PageBlock) To_PageBlockAuthorDate() *TLPageBlockAuthorDate { + return &TLPageBlockAuthorDate{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetEditTimeLimit(v int32) { m.Data2.EditTimeLimit = v } -func (m *TLConfig) GetEditTimeLimit() int32 { return m.Data2.EditTimeLimit } +// pageBlockHeader#bfd064ec text:RichText = PageBlock; +func (m *PageBlock) To_PageBlockHeader() *TLPageBlockHeader { + return &TLPageBlockHeader{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetRevokeTimeLimit(v int32) { m.Data2.RevokeTimeLimit = v } -func (m *TLConfig) GetRevokeTimeLimit() int32 { return m.Data2.RevokeTimeLimit } +// pageBlockSubheader#f12bb6e1 text:RichText = PageBlock; +func (m *PageBlock) To_PageBlockSubheader() *TLPageBlockSubheader { + return &TLPageBlockSubheader{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetRevokePmTimeLimit(v int32) { m.Data2.RevokePmTimeLimit = v } -func (m *TLConfig) GetRevokePmTimeLimit() int32 { return m.Data2.RevokePmTimeLimit } +// pageBlockParagraph#467a0766 text:RichText = PageBlock; +func (m *PageBlock) To_PageBlockParagraph() *TLPageBlockParagraph { + return &TLPageBlockParagraph{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetRatingEDecay(v int32) { m.Data2.RatingEDecay = v } -func (m *TLConfig) GetRatingEDecay() int32 { return m.Data2.RatingEDecay } +// pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock; +func (m *PageBlock) To_PageBlockPreformatted() *TLPageBlockPreformatted { + return &TLPageBlockPreformatted{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetStickersRecentLimit(v int32) { m.Data2.StickersRecentLimit = v } -func (m *TLConfig) GetStickersRecentLimit() int32 { return m.Data2.StickersRecentLimit } +// pageBlockFooter#48870999 text:RichText = PageBlock; +func (m *PageBlock) To_PageBlockFooter() *TLPageBlockFooter { + return &TLPageBlockFooter{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetStickersFavedLimit(v int32) { m.Data2.StickersFavedLimit = v } -func (m *TLConfig) GetStickersFavedLimit() int32 { return m.Data2.StickersFavedLimit } +// pageBlockDivider#db20b188 = PageBlock; +func (m *PageBlock) To_PageBlockDivider() *TLPageBlockDivider { + return &TLPageBlockDivider{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetChannelsReadMediaPeriod(v int32) { m.Data2.ChannelsReadMediaPeriod = v } -func (m *TLConfig) GetChannelsReadMediaPeriod() int32 { return m.Data2.ChannelsReadMediaPeriod } +// pageBlockAnchor#ce0d37b0 name:string = PageBlock; +func (m *PageBlock) To_PageBlockAnchor() *TLPageBlockAnchor { + return &TLPageBlockAnchor{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetTmpSessions(v int32) { m.Data2.TmpSessions = v } -func (m *TLConfig) GetTmpSessions() int32 { return m.Data2.TmpSessions } +// pageBlockList#3a58c7f4 ordered:Bool items:Vector = PageBlock; +func (m *PageBlock) To_PageBlockList() *TLPageBlockList { + return &TLPageBlockList{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetPinnedDialogsCountMax(v int32) { m.Data2.PinnedDialogsCountMax = v } -func (m *TLConfig) GetPinnedDialogsCountMax() int32 { return m.Data2.PinnedDialogsCountMax } +// pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock; +func (m *PageBlock) To_PageBlockBlockquote() *TLPageBlockBlockquote { + return &TLPageBlockBlockquote{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetCallReceiveTimeoutMs(v int32) { m.Data2.CallReceiveTimeoutMs = v } -func (m *TLConfig) GetCallReceiveTimeoutMs() int32 { return m.Data2.CallReceiveTimeoutMs } +// pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock; +func (m *PageBlock) To_PageBlockPullquote() *TLPageBlockPullquote { + return &TLPageBlockPullquote{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetCallRingTimeoutMs(v int32) { m.Data2.CallRingTimeoutMs = v } -func (m *TLConfig) GetCallRingTimeoutMs() int32 { return m.Data2.CallRingTimeoutMs } +// pageBlockPhoto#e9c69982 photo_id:long caption:RichText = PageBlock; +func (m *PageBlock) To_PageBlockPhoto() *TLPageBlockPhoto { + return &TLPageBlockPhoto{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetCallConnectTimeoutMs(v int32) { m.Data2.CallConnectTimeoutMs = v } -func (m *TLConfig) GetCallConnectTimeoutMs() int32 { return m.Data2.CallConnectTimeoutMs } +// pageBlockVideo#d9d71866 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:RichText = PageBlock; +func (m *PageBlock) To_PageBlockVideo() *TLPageBlockVideo { + return &TLPageBlockVideo{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetCallPacketTimeoutMs(v int32) { m.Data2.CallPacketTimeoutMs = v } -func (m *TLConfig) GetCallPacketTimeoutMs() int32 { return m.Data2.CallPacketTimeoutMs } +// pageBlockCover#39f23300 cover:PageBlock = PageBlock; +func (m *PageBlock) To_PageBlockCover() *TLPageBlockCover { + return &TLPageBlockCover{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetMeUrlPrefix(v string) { m.Data2.MeUrlPrefix = v } -func (m *TLConfig) GetMeUrlPrefix() string { return m.Data2.MeUrlPrefix } +// pageBlockEmbed#cde200d1 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:int h:int caption:RichText = PageBlock; +func (m *PageBlock) To_PageBlockEmbed() *TLPageBlockEmbed { + return &TLPageBlockEmbed{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetAutoupdateUrlPrefix(v string) { m.Data2.AutoupdateUrlPrefix = v } -func (m *TLConfig) GetAutoupdateUrlPrefix() string { return m.Data2.AutoupdateUrlPrefix } +// pageBlockEmbedPost#292c7be9 url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:RichText = PageBlock; +func (m *PageBlock) To_PageBlockEmbedPost() *TLPageBlockEmbedPost { + return &TLPageBlockEmbedPost{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetGifSearchUsername(v string) { m.Data2.GifSearchUsername = v } -func (m *TLConfig) GetGifSearchUsername() string { return m.Data2.GifSearchUsername } +// pageBlockCollage#8b31c4f items:Vector caption:RichText = PageBlock; +func (m *PageBlock) To_PageBlockCollage() *TLPageBlockCollage { + return &TLPageBlockCollage{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetVenueSearchUsername(v string) { m.Data2.VenueSearchUsername = v } -func (m *TLConfig) GetVenueSearchUsername() string { return m.Data2.VenueSearchUsername } +// pageBlockSlideshow#130c8963 items:Vector caption:RichText = PageBlock; +func (m *PageBlock) To_PageBlockSlideshow() *TLPageBlockSlideshow { + return &TLPageBlockSlideshow{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetImgSearchUsername(v string) { m.Data2.ImgSearchUsername = v } -func (m *TLConfig) GetImgSearchUsername() string { return m.Data2.ImgSearchUsername } +// pageBlockChannel#ef1751b5 channel:Chat = PageBlock; +func (m *PageBlock) To_PageBlockChannel() *TLPageBlockChannel { + return &TLPageBlockChannel{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetStaticMapsProvider(v string) { m.Data2.StaticMapsProvider = v } -func (m *TLConfig) GetStaticMapsProvider() string { return m.Data2.StaticMapsProvider } +// pageBlockAudio#31b81a7f audio_id:long caption:RichText = PageBlock; +func (m *PageBlock) To_PageBlockAudio() *TLPageBlockAudio { + return &TLPageBlockAudio{ + Data2: m.Data2, + } +} -func (m *TLConfig) SetCaptionLengthMax(v int32) { m.Data2.CaptionLengthMax = v } -func (m *TLConfig) GetCaptionLengthMax() int32 { return m.Data2.CaptionLengthMax } +// pageBlockUnsupported#13567e8a = PageBlock; +func (m *TLPageBlockUnsupported) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockUnsupported, + Data2: m.Data2, + } +} -func (m *TLConfig) SetMessageLengthMax(v int32) { m.Data2.MessageLengthMax = v } -func (m *TLConfig) GetMessageLengthMax() int32 { return m.Data2.MessageLengthMax } +func NewTLPageBlockUnsupported() *TLPageBlockUnsupported { + return &TLPageBlockUnsupported{Data2: &PageBlock_Data{}} +} -func (m *TLConfig) SetWebfileDcId(v int32) { m.Data2.WebfileDcId = v } -func (m *TLConfig) GetWebfileDcId() int32 { return m.Data2.WebfileDcId } +func (m *TLPageBlockUnsupported) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockUnsupported)) -func (m *TLConfig) SetSuggestedLangCode(v string) { m.Data2.SuggestedLangCode = v } -func (m *TLConfig) GetSuggestedLangCode() string { return m.Data2.SuggestedLangCode } + return x.buf +} -func (m *TLConfig) SetLangPackVersion(v int32) { m.Data2.LangPackVersion = v } -func (m *TLConfig) GetLangPackVersion() int32 { return m.Data2.LangPackVersion } +func (m *TLPageBlockUnsupported) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockUnsupported)) -func NewTLConfig() *TLConfig { - return &TLConfig{Data2: &Config_Data{}} + return x.buf } -func (m *TLConfig) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_config)) +func (m *TLPageBlockUnsupported) Decode(dbuf *DecodeBuf) error { - // flags - var flags uint32 = 0 - if m.GetPhonecallsEnabled() == true { - flags |= 1 << 1 - } - if m.GetDefaultP2PContacts() == true { - flags |= 1 << 3 - } - if m.GetPreloadFeaturedStickers() == true { - flags |= 1 << 4 - } - if m.GetIgnorePhoneEntities() == true { - flags |= 1 << 5 - } - if m.GetRevokePmInbox() == true { - flags |= 1 << 6 - } - if m.GetBlockedMode() == true { - flags |= 1 << 8 - } - if m.GetTmpSessions() != 0 { - flags |= 1 << 0 - } - if m.GetAutoupdateUrlPrefix() != "" { - flags |= 1 << 7 - } - if m.GetGifSearchUsername() != "" { - flags |= 1 << 9 - } - if m.GetVenueSearchUsername() != "" { - flags |= 1 << 10 - } - if m.GetImgSearchUsername() != "" { - flags |= 1 << 11 - } - if m.GetStaticMapsProvider() != "" { - flags |= 1 << 12 - } - if m.GetSuggestedLangCode() != "" { - flags |= 1 << 2 - } - if m.GetLangPackVersion() != 0 { - flags |= 1 << 2 - } - x.UInt(flags) + return dbuf.err +} - x.Int(m.GetDate()) - x.Int(m.GetExpires()) - x.Bytes(m.GetTestMode().Encode()) - x.Int(m.GetThisDc()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDcOptions()))) - for _, v := range m.GetDcOptions() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.String(m.GetDcTxtDomainName()) - x.Int(m.GetChatSizeMax()) - x.Int(m.GetMegagroupSizeMax()) - x.Int(m.GetForwardedCountMax()) - x.Int(m.GetOnlineUpdatePeriodMs()) - x.Int(m.GetOfflineBlurTimeoutMs()) - x.Int(m.GetOfflineIdleTimeoutMs()) - x.Int(m.GetOnlineCloudTimeoutMs()) - x.Int(m.GetNotifyCloudDelayMs()) - x.Int(m.GetNotifyDefaultDelayMs()) - x.Int(m.GetPushChatPeriodMs()) - x.Int(m.GetPushChatLimit()) - x.Int(m.GetSavedGifsLimit()) - x.Int(m.GetEditTimeLimit()) - x.Int(m.GetRevokeTimeLimit()) - x.Int(m.GetRevokePmTimeLimit()) - x.Int(m.GetRatingEDecay()) - x.Int(m.GetStickersRecentLimit()) - x.Int(m.GetStickersFavedLimit()) - x.Int(m.GetChannelsReadMediaPeriod()) - if m.GetTmpSessions() != 0 { - x.Int(m.GetTmpSessions()) - } - x.Int(m.GetPinnedDialogsCountMax()) - x.Int(m.GetCallReceiveTimeoutMs()) - x.Int(m.GetCallRingTimeoutMs()) - x.Int(m.GetCallConnectTimeoutMs()) - x.Int(m.GetCallPacketTimeoutMs()) - x.String(m.GetMeUrlPrefix()) - if m.GetAutoupdateUrlPrefix() != "" { - x.String(m.GetAutoupdateUrlPrefix()) - } - if m.GetGifSearchUsername() != "" { - x.String(m.GetGifSearchUsername()) - } - if m.GetVenueSearchUsername() != "" { - x.String(m.GetVenueSearchUsername()) - } - if m.GetImgSearchUsername() != "" { - x.String(m.GetImgSearchUsername()) - } - if m.GetStaticMapsProvider() != "" { - x.String(m.GetStaticMapsProvider()) - } - x.Int(m.GetCaptionLengthMax()) - x.Int(m.GetMessageLengthMax()) - x.Int(m.GetWebfileDcId()) - if m.GetSuggestedLangCode() != "" { - x.String(m.GetSuggestedLangCode()) - } - if m.GetLangPackVersion() != 0 { - x.Int(m.GetLangPackVersion()) +// pageBlockTitle#70abc3fd text:RichText = PageBlock; +func (m *TLPageBlockTitle) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockTitle, + Data2: m.Data2, } +} + +func (m *TLPageBlockTitle) SetText(v *RichText) { m.Data2.Text = v } +func (m *TLPageBlockTitle) GetText() *RichText { return m.Data2.Text } + +func NewTLPageBlockTitle() *TLPageBlockTitle { + return &TLPageBlockTitle{Data2: &PageBlock_Data{}} +} + +func (m *TLPageBlockTitle) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockTitle)) + + x.Bytes(m.GetText().Encode()) return x.buf } -func (m *TLConfig) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockTitle) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_config)) + x.Int(int32(TLConstructor_CRC32_pageBlockTitle)) - // flags - var flags uint32 = 0 - if m.GetPhonecallsEnabled() == true { - flags |= 1 << 1 - } - if m.GetDefaultP2PContacts() == true { - flags |= 1 << 3 - } - if m.GetPreloadFeaturedStickers() == true { - flags |= 1 << 4 - } - if m.GetIgnorePhoneEntities() == true { - flags |= 1 << 5 - } - if m.GetRevokePmInbox() == true { - flags |= 1 << 6 - } - if m.GetBlockedMode() == true { - flags |= 1 << 8 - } - if m.GetTmpSessions() != 0 { - flags |= 1 << 0 - } - if m.GetAutoupdateUrlPrefix() != "" { - flags |= 1 << 7 - } - if m.GetGifSearchUsername() != "" { - flags |= 1 << 9 - } - if m.GetVenueSearchUsername() != "" { - flags |= 1 << 10 - } - if m.GetImgSearchUsername() != "" { - flags |= 1 << 11 - } - if m.GetStaticMapsProvider() != "" { - flags |= 1 << 12 - } - if m.GetSuggestedLangCode() != "" { - flags |= 1 << 2 - } - if m.GetLangPackVersion() != 0 { - flags |= 1 << 2 + x.Bytes(m.GetText().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLPageBlockTitle) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) + + return dbuf.err +} + +// pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock; +func (m *TLPageBlockSubtitle) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockSubtitle, + Data2: m.Data2, } - x.UInt(flags) +} - x.Int(m.GetDate()) - x.Int(m.GetExpires()) - x.Bytes(m.GetTestMode().EncodeToLayer(layer)) - x.Int(m.GetThisDc()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDcOptions()))) - for _, v := range m.GetDcOptions() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.String(m.GetDcTxtDomainName()) - x.Int(m.GetChatSizeMax()) - x.Int(m.GetMegagroupSizeMax()) - x.Int(m.GetForwardedCountMax()) - x.Int(m.GetOnlineUpdatePeriodMs()) - x.Int(m.GetOfflineBlurTimeoutMs()) - x.Int(m.GetOfflineIdleTimeoutMs()) - x.Int(m.GetOnlineCloudTimeoutMs()) - x.Int(m.GetNotifyCloudDelayMs()) - x.Int(m.GetNotifyDefaultDelayMs()) - x.Int(m.GetPushChatPeriodMs()) - x.Int(m.GetPushChatLimit()) - x.Int(m.GetSavedGifsLimit()) - x.Int(m.GetEditTimeLimit()) - x.Int(m.GetRevokeTimeLimit()) - x.Int(m.GetRevokePmTimeLimit()) - x.Int(m.GetRatingEDecay()) - x.Int(m.GetStickersRecentLimit()) - x.Int(m.GetStickersFavedLimit()) - x.Int(m.GetChannelsReadMediaPeriod()) - if m.GetTmpSessions() != 0 { - x.Int(m.GetTmpSessions()) - } - x.Int(m.GetPinnedDialogsCountMax()) - x.Int(m.GetCallReceiveTimeoutMs()) - x.Int(m.GetCallRingTimeoutMs()) - x.Int(m.GetCallConnectTimeoutMs()) - x.Int(m.GetCallPacketTimeoutMs()) - x.String(m.GetMeUrlPrefix()) - if m.GetAutoupdateUrlPrefix() != "" { - x.String(m.GetAutoupdateUrlPrefix()) - } - if m.GetGifSearchUsername() != "" { - x.String(m.GetGifSearchUsername()) - } - if m.GetVenueSearchUsername() != "" { - x.String(m.GetVenueSearchUsername()) - } - if m.GetImgSearchUsername() != "" { - x.String(m.GetImgSearchUsername()) - } - if m.GetStaticMapsProvider() != "" { - x.String(m.GetStaticMapsProvider()) - } - x.Int(m.GetCaptionLengthMax()) - x.Int(m.GetMessageLengthMax()) - x.Int(m.GetWebfileDcId()) - if m.GetSuggestedLangCode() != "" { - x.String(m.GetSuggestedLangCode()) - } - if m.GetLangPackVersion() != 0 { - x.Int(m.GetLangPackVersion()) - } +func (m *TLPageBlockSubtitle) SetText(v *RichText) { m.Data2.Text = v } +func (m *TLPageBlockSubtitle) GetText() *RichText { return m.Data2.Text } - return x.buf +func NewTLPageBlockSubtitle() *TLPageBlockSubtitle { + return &TLPageBlockSubtitle{Data2: &PageBlock_Data{}} } -func (m *TLConfig) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetPhonecallsEnabled(true) - } - if (flags & (1 << 3)) != 0 { - m.SetDefaultP2PContacts(true) - } - if (flags & (1 << 4)) != 0 { - m.SetPreloadFeaturedStickers(true) - } - if (flags & (1 << 5)) != 0 { - m.SetIgnorePhoneEntities(true) - } - if (flags & (1 << 6)) != 0 { - m.SetRevokePmInbox(true) - } - if (flags & (1 << 8)) != 0 { - m.SetBlockedMode(true) - } - m.SetDate(dbuf.Int()) - m.SetExpires(dbuf.Int()) - m10 := &Bool{} - m10.Decode(dbuf) - m.SetTestMode(m10) - m.SetThisDc(dbuf.Int()) - c12 := dbuf.Int() - if c12 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 12, c12) - return dbuf.err - } - l12 := dbuf.Int() - v12 := make([]*DcOption, l12) - for i := int32(0); i < l12; i++ { - v12[i] = &DcOption{} - v12[i].Decode(dbuf) - } - m.SetDcOptions(v12) +func (m *TLPageBlockSubtitle) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockSubtitle)) - m.SetDcTxtDomainName(dbuf.String()) - m.SetChatSizeMax(dbuf.Int()) - m.SetMegagroupSizeMax(dbuf.Int()) - m.SetForwardedCountMax(dbuf.Int()) - m.SetOnlineUpdatePeriodMs(dbuf.Int()) - m.SetOfflineBlurTimeoutMs(dbuf.Int()) - m.SetOfflineIdleTimeoutMs(dbuf.Int()) - m.SetOnlineCloudTimeoutMs(dbuf.Int()) - m.SetNotifyCloudDelayMs(dbuf.Int()) - m.SetNotifyDefaultDelayMs(dbuf.Int()) - m.SetPushChatPeriodMs(dbuf.Int()) - m.SetPushChatLimit(dbuf.Int()) - m.SetSavedGifsLimit(dbuf.Int()) - m.SetEditTimeLimit(dbuf.Int()) - m.SetRevokeTimeLimit(dbuf.Int()) - m.SetRevokePmTimeLimit(dbuf.Int()) - m.SetRatingEDecay(dbuf.Int()) - m.SetStickersRecentLimit(dbuf.Int()) - m.SetStickersFavedLimit(dbuf.Int()) - m.SetChannelsReadMediaPeriod(dbuf.Int()) - if (flags & (1 << 0)) != 0 { - m.SetTmpSessions(dbuf.Int()) - } - m.SetPinnedDialogsCountMax(dbuf.Int()) - m.SetCallReceiveTimeoutMs(dbuf.Int()) - m.SetCallRingTimeoutMs(dbuf.Int()) - m.SetCallConnectTimeoutMs(dbuf.Int()) - m.SetCallPacketTimeoutMs(dbuf.Int()) - m.SetMeUrlPrefix(dbuf.String()) - if (flags & (1 << 7)) != 0 { - m.SetAutoupdateUrlPrefix(dbuf.String()) - } - if (flags & (1 << 9)) != 0 { - m.SetGifSearchUsername(dbuf.String()) - } - if (flags & (1 << 10)) != 0 { - m.SetVenueSearchUsername(dbuf.String()) - } - if (flags & (1 << 11)) != 0 { - m.SetImgSearchUsername(dbuf.String()) - } - if (flags & (1 << 12)) != 0 { - m.SetStaticMapsProvider(dbuf.String()) - } - m.SetCaptionLengthMax(dbuf.Int()) - m.SetMessageLengthMax(dbuf.Int()) - m.SetWebfileDcId(dbuf.Int()) - if (flags & (1 << 2)) != 0 { - m.SetSuggestedLangCode(dbuf.String()) - } - if (flags & (1 << 2)) != 0 { - m.SetLangPackVersion(dbuf.Int()) - } + x.Bytes(m.GetText().Encode()) - return dbuf.err + return x.buf } -/////////////////////////////////////////////////////////////////////////////// -// Account_TmpPassword <-- -// + TL_AccountTmpPassword -// - -func (m *Account_TmpPassword) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_account_tmpPassword: - t := m.To_AccountTmpPassword() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLPageBlockSubtitle) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockSubtitle)) -func (m *Account_TmpPassword) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_account_tmpPassword: - t := m.To_AccountTmpPassword() - return t.EncodeToLayer(layer) + x.Bytes(m.GetText().EncodeToLayer(layer)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *Account_TmpPassword) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_account_tmpPassword: - m2 := &TLAccountTmpPassword{Data2: &Account_TmpPassword_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLPageBlockSubtitle) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; -func (m *Account_TmpPassword) To_AccountTmpPassword() *TLAccountTmpPassword { - return &TLAccountTmpPassword{ - Data2: m.Data2, - } -} - -// account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; -func (m *TLAccountTmpPassword) To_Account_TmpPassword() *Account_TmpPassword { - return &Account_TmpPassword{ - Constructor: TLConstructor_CRC32_account_tmpPassword, +// pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock; +func (m *TLPageBlockAuthorDate) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockAuthorDate, Data2: m.Data2, } } -func (m *TLAccountTmpPassword) SetTmpPassword(v []byte) { m.Data2.TmpPassword = v } -func (m *TLAccountTmpPassword) GetTmpPassword() []byte { return m.Data2.TmpPassword } +func (m *TLPageBlockAuthorDate) SetAuthor(v *RichText) { m.Data2.Author_2 = v } +func (m *TLPageBlockAuthorDate) GetAuthor() *RichText { return m.Data2.Author_2 } -func (m *TLAccountTmpPassword) SetValidUntil(v int32) { m.Data2.ValidUntil = v } -func (m *TLAccountTmpPassword) GetValidUntil() int32 { return m.Data2.ValidUntil } +func (m *TLPageBlockAuthorDate) SetPublishedDate(v int32) { m.Data2.PublishedDate = v } +func (m *TLPageBlockAuthorDate) GetPublishedDate() int32 { return m.Data2.PublishedDate } -func NewTLAccountTmpPassword() *TLAccountTmpPassword { - return &TLAccountTmpPassword{Data2: &Account_TmpPassword_Data{}} +func NewTLPageBlockAuthorDate() *TLPageBlockAuthorDate { + return &TLPageBlockAuthorDate{Data2: &PageBlock_Data{}} } -func (m *TLAccountTmpPassword) Encode() []byte { +func (m *TLPageBlockAuthorDate) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_tmpPassword)) + x.Int(int32(TLConstructor_CRC32_pageBlockAuthorDate)) - x.StringBytes(m.GetTmpPassword()) - x.Int(m.GetValidUntil()) + x.Bytes(m.GetAuthor().Encode()) + x.Int(m.GetPublishedDate()) return x.buf } -func (m *TLAccountTmpPassword) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockAuthorDate) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_tmpPassword)) + x.Int(int32(TLConstructor_CRC32_pageBlockAuthorDate)) - x.StringBytes(m.GetTmpPassword()) - x.Int(m.GetValidUntil()) + x.Bytes(m.GetAuthor().EncodeToLayer(layer)) + x.Int(m.GetPublishedDate()) return x.buf } -func (m *TLAccountTmpPassword) Decode(dbuf *DecodeBuf) error { - m.SetTmpPassword(dbuf.StringBytes()) - m.SetValidUntil(dbuf.Int()) +func (m *TLPageBlockAuthorDate) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetAuthor(m1) + m.SetPublishedDate(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// DataJSON <-- -// + TL_DataJSON -// +// pageBlockHeader#bfd064ec text:RichText = PageBlock; +func (m *TLPageBlockHeader) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockHeader, + Data2: m.Data2, + } +} -func (m *DataJSON) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_dataJSON: - t := m.To_DataJSON() - return t.Encode() +func (m *TLPageBlockHeader) SetText(v *RichText) { m.Data2.Text = v } +func (m *TLPageBlockHeader) GetText() *RichText { return m.Data2.Text } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLPageBlockHeader() *TLPageBlockHeader { + return &TLPageBlockHeader{Data2: &PageBlock_Data{}} } -func (m *DataJSON) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_dataJSON: - t := m.To_DataJSON() - return t.EncodeToLayer(layer) +func (m *TLPageBlockHeader) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockHeader)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetText().Encode()) + + return x.buf } -func (m *DataJSON) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_dataJSON: - m2 := &TLDataJSON{Data2: &DataJSON_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLPageBlockHeader) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockHeader)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetText().EncodeToLayer(layer)) + + return x.buf } -// dataJSON#7d748d04 data:string = DataJSON; -func (m *DataJSON) To_DataJSON() *TLDataJSON { - return &TLDataJSON{ - Data2: m.Data2, - } +func (m *TLPageBlockHeader) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) + + return dbuf.err } -// dataJSON#7d748d04 data:string = DataJSON; -func (m *TLDataJSON) To_DataJSON() *DataJSON { - return &DataJSON{ - Constructor: TLConstructor_CRC32_dataJSON, +// pageBlockSubheader#f12bb6e1 text:RichText = PageBlock; +func (m *TLPageBlockSubheader) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockSubheader, Data2: m.Data2, } } -func (m *TLDataJSON) SetData(v string) { m.Data2.Data = v } -func (m *TLDataJSON) GetData() string { return m.Data2.Data } +func (m *TLPageBlockSubheader) SetText(v *RichText) { m.Data2.Text = v } +func (m *TLPageBlockSubheader) GetText() *RichText { return m.Data2.Text } -func NewTLDataJSON() *TLDataJSON { - return &TLDataJSON{Data2: &DataJSON_Data{}} +func NewTLPageBlockSubheader() *TLPageBlockSubheader { + return &TLPageBlockSubheader{Data2: &PageBlock_Data{}} } -func (m *TLDataJSON) Encode() []byte { +func (m *TLPageBlockSubheader) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dataJSON)) + x.Int(int32(TLConstructor_CRC32_pageBlockSubheader)) - x.String(m.GetData()) + x.Bytes(m.GetText().Encode()) return x.buf } -func (m *TLDataJSON) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockSubheader) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dataJSON)) + x.Int(int32(TLConstructor_CRC32_pageBlockSubheader)) - x.String(m.GetData()) + x.Bytes(m.GetText().EncodeToLayer(layer)) return x.buf } -func (m *TLDataJSON) Decode(dbuf *DecodeBuf) error { - m.SetData(dbuf.String()) +func (m *TLPageBlockSubheader) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// ChannelAdminLogEvent <-- -// + TL_ChannelAdminLogEvent -// +// pageBlockParagraph#467a0766 text:RichText = PageBlock; +func (m *TLPageBlockParagraph) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockParagraph, + Data2: m.Data2, + } +} -func (m *ChannelAdminLogEvent) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_channelAdminLogEvent: - t := m.To_ChannelAdminLogEvent() - return t.Encode() +func (m *TLPageBlockParagraph) SetText(v *RichText) { m.Data2.Text = v } +func (m *TLPageBlockParagraph) GetText() *RichText { return m.Data2.Text } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLPageBlockParagraph() *TLPageBlockParagraph { + return &TLPageBlockParagraph{Data2: &PageBlock_Data{}} } -func (m *ChannelAdminLogEvent) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_channelAdminLogEvent: - t := m.To_ChannelAdminLogEvent() - return t.EncodeToLayer(layer) +func (m *TLPageBlockParagraph) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockParagraph)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetText().Encode()) + + return x.buf } -func (m *ChannelAdminLogEvent) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_channelAdminLogEvent: - m2 := &TLChannelAdminLogEvent{Data2: &ChannelAdminLogEvent_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLPageBlockParagraph) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockParagraph)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetText().EncodeToLayer(layer)) + + return x.buf } -// channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent; -func (m *ChannelAdminLogEvent) To_ChannelAdminLogEvent() *TLChannelAdminLogEvent { - return &TLChannelAdminLogEvent{ - Data2: m.Data2, - } +func (m *TLPageBlockParagraph) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) + + return dbuf.err } -// channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent; -func (m *TLChannelAdminLogEvent) To_ChannelAdminLogEvent() *ChannelAdminLogEvent { - return &ChannelAdminLogEvent{ - Constructor: TLConstructor_CRC32_channelAdminLogEvent, +// pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock; +func (m *TLPageBlockPreformatted) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockPreformatted, Data2: m.Data2, } } -func (m *TLChannelAdminLogEvent) SetId(v int64) { m.Data2.Id = v } -func (m *TLChannelAdminLogEvent) GetId() int64 { return m.Data2.Id } - -func (m *TLChannelAdminLogEvent) SetDate(v int32) { m.Data2.Date = v } -func (m *TLChannelAdminLogEvent) GetDate() int32 { return m.Data2.Date } - -func (m *TLChannelAdminLogEvent) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLChannelAdminLogEvent) GetUserId() int32 { return m.Data2.UserId } +func (m *TLPageBlockPreformatted) SetText(v *RichText) { m.Data2.Text = v } +func (m *TLPageBlockPreformatted) GetText() *RichText { return m.Data2.Text } -func (m *TLChannelAdminLogEvent) SetAction(v *ChannelAdminLogEventAction) { m.Data2.Action = v } -func (m *TLChannelAdminLogEvent) GetAction() *ChannelAdminLogEventAction { return m.Data2.Action } +func (m *TLPageBlockPreformatted) SetLanguage(v string) { m.Data2.Language = v } +func (m *TLPageBlockPreformatted) GetLanguage() string { return m.Data2.Language } -func NewTLChannelAdminLogEvent() *TLChannelAdminLogEvent { - return &TLChannelAdminLogEvent{Data2: &ChannelAdminLogEvent_Data{}} +func NewTLPageBlockPreformatted() *TLPageBlockPreformatted { + return &TLPageBlockPreformatted{Data2: &PageBlock_Data{}} } -func (m *TLChannelAdminLogEvent) Encode() []byte { +func (m *TLPageBlockPreformatted) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEvent)) + x.Int(int32(TLConstructor_CRC32_pageBlockPreformatted)) - x.Long(m.GetId()) - x.Int(m.GetDate()) - x.Int(m.GetUserId()) - x.Bytes(m.GetAction().Encode()) + x.Bytes(m.GetText().Encode()) + x.String(m.GetLanguage()) return x.buf } -func (m *TLChannelAdminLogEvent) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockPreformatted) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEvent)) + x.Int(int32(TLConstructor_CRC32_pageBlockPreformatted)) - x.Long(m.GetId()) - x.Int(m.GetDate()) - x.Int(m.GetUserId()) - x.Bytes(m.GetAction().EncodeToLayer(layer)) + x.Bytes(m.GetText().EncodeToLayer(layer)) + x.String(m.GetLanguage()) return x.buf } -func (m *TLChannelAdminLogEvent) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetDate(dbuf.Int()) - m.SetUserId(dbuf.Int()) - m4 := &ChannelAdminLogEventAction{} - m4.Decode(dbuf) - m.SetAction(m4) +func (m *TLPageBlockPreformatted) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) + m.SetLanguage(dbuf.String()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Account_WebAuthorizations <-- -// + TL_AccountWebAuthorizations -// +// pageBlockFooter#48870999 text:RichText = PageBlock; +func (m *TLPageBlockFooter) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockFooter, + Data2: m.Data2, + } +} -func (m *Account_WebAuthorizations) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_account_webAuthorizations: - t := m.To_AccountWebAuthorizations() - return t.Encode() +func (m *TLPageBlockFooter) SetText(v *RichText) { m.Data2.Text = v } +func (m *TLPageBlockFooter) GetText() *RichText { return m.Data2.Text } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLPageBlockFooter() *TLPageBlockFooter { + return &TLPageBlockFooter{Data2: &PageBlock_Data{}} } -func (m *Account_WebAuthorizations) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_account_webAuthorizations: - t := m.To_AccountWebAuthorizations() - return t.EncodeToLayer(layer) +func (m *TLPageBlockFooter) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockFooter)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetText().Encode()) + + return x.buf } -func (m *Account_WebAuthorizations) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_account_webAuthorizations: - m2 := &TLAccountWebAuthorizations{Data2: &Account_WebAuthorizations_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLPageBlockFooter) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockFooter)) + + x.Bytes(m.GetText().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLPageBlockFooter) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// account.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations; -func (m *Account_WebAuthorizations) To_AccountWebAuthorizations() *TLAccountWebAuthorizations { - return &TLAccountWebAuthorizations{ - Data2: m.Data2, +// pageBlockDivider#db20b188 = PageBlock; +func (m *TLPageBlockDivider) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockDivider, + Data2: m.Data2, } } -// account.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations; -func (m *TLAccountWebAuthorizations) To_Account_WebAuthorizations() *Account_WebAuthorizations { - return &Account_WebAuthorizations{ - Constructor: TLConstructor_CRC32_account_webAuthorizations, +func NewTLPageBlockDivider() *TLPageBlockDivider { + return &TLPageBlockDivider{Data2: &PageBlock_Data{}} +} + +func (m *TLPageBlockDivider) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockDivider)) + + return x.buf +} + +func (m *TLPageBlockDivider) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockDivider)) + + return x.buf +} + +func (m *TLPageBlockDivider) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// pageBlockAnchor#ce0d37b0 name:string = PageBlock; +func (m *TLPageBlockAnchor) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockAnchor, Data2: m.Data2, } } -func (m *TLAccountWebAuthorizations) SetAuthorizations(v []*WebAuthorization) { - m.Data2.Authorizations = v -} -func (m *TLAccountWebAuthorizations) GetAuthorizations() []*WebAuthorization { - return m.Data2.Authorizations +func (m *TLPageBlockAnchor) SetName(v string) { m.Data2.Name = v } +func (m *TLPageBlockAnchor) GetName() string { return m.Data2.Name } + +func NewTLPageBlockAnchor() *TLPageBlockAnchor { + return &TLPageBlockAnchor{Data2: &PageBlock_Data{}} } -func (m *TLAccountWebAuthorizations) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLAccountWebAuthorizations) GetUsers() []*User { return m.Data2.Users } +func (m *TLPageBlockAnchor) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockAnchor)) -func NewTLAccountWebAuthorizations() *TLAccountWebAuthorizations { - return &TLAccountWebAuthorizations{Data2: &Account_WebAuthorizations_Data{}} + x.String(m.GetName()) + + return x.buf } -func (m *TLAccountWebAuthorizations) Encode() []byte { +func (m *TLPageBlockAnchor) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_webAuthorizations)) + x.Int(int32(TLConstructor_CRC32_pageBlockAnchor)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAuthorizations()))) - for _, v := range m.GetAuthorizations() { - x.buf = append(x.buf, (*v).Encode()...) + x.String(m.GetName()) + + return x.buf +} + +func (m *TLPageBlockAnchor) Decode(dbuf *DecodeBuf) error { + m.SetName(dbuf.String()) + + return dbuf.err +} + +// pageBlockList#3a58c7f4 ordered:Bool items:Vector = PageBlock; +func (m *TLPageBlockList) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockList, + Data2: m.Data2, } +} + +func (m *TLPageBlockList) SetOrdered(v *Bool) { m.Data2.Ordered = v } +func (m *TLPageBlockList) GetOrdered() *Bool { return m.Data2.Ordered } + +func (m *TLPageBlockList) SetItems(v []*RichText) { m.Data2.Items_7 = v } +func (m *TLPageBlockList) GetItems() []*RichText { return m.Data2.Items_7 } + +func NewTLPageBlockList() *TLPageBlockList { + return &TLPageBlockList{Data2: &PageBlock_Data{}} +} + +func (m *TLPageBlockList) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockList)) + + x.Bytes(m.GetOrdered().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { + x.Int(int32(len(m.GetItems()))) + for _, v := range m.GetItems() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLAccountWebAuthorizations) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockList) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_webAuthorizations)) + x.Int(int32(TLConstructor_CRC32_pageBlockList)) + x.Bytes(m.GetOrdered().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAuthorizations()))) - for _, v := range m.GetAuthorizations() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { + x.Int(int32(len(m.GetItems()))) + for _, v := range m.GetItems() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLAccountWebAuthorizations) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*WebAuthorization, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &WebAuthorization{} - v1[i].Decode(dbuf) - } - m.SetAuthorizations(v1) - +func (m *TLPageBlockList) Decode(dbuf *DecodeBuf) error { + m1 := &Bool{} + m1.Decode(dbuf) + m.SetOrdered(m1) c2 := dbuf.Int() if c2 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } l2 := dbuf.Int() - v2 := make([]*User, l2) + v2 := make([]*RichText, l2) for i := int32(0); i < l2; i++ { - v2[i] = &User{} + v2[i] = &RichText{} v2[i].Decode(dbuf) } - m.SetUsers(v2) + m.SetItems(v2) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// SecureValueHash <-- -// + TL_SecureValueHash -// +// pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock; +func (m *TLPageBlockBlockquote) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockBlockquote, + Data2: m.Data2, + } +} -func (m *SecureValueHash) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_secureValueHash: - t := m.To_SecureValueHash() - return t.Encode() +func (m *TLPageBlockBlockquote) SetText(v *RichText) { m.Data2.Text = v } +func (m *TLPageBlockBlockquote) GetText() *RichText { return m.Data2.Text } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLPageBlockBlockquote) SetCaption(v *RichText) { m.Data2.Caption = v } +func (m *TLPageBlockBlockquote) GetCaption() *RichText { return m.Data2.Caption } + +func NewTLPageBlockBlockquote() *TLPageBlockBlockquote { + return &TLPageBlockBlockquote{Data2: &PageBlock_Data{}} } -func (m *SecureValueHash) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_secureValueHash: - t := m.To_SecureValueHash() - return t.EncodeToLayer(layer) +func (m *TLPageBlockBlockquote) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockBlockquote)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetText().Encode()) + x.Bytes(m.GetCaption().Encode()) + + return x.buf } -func (m *SecureValueHash) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_secureValueHash: - m2 := &TLSecureValueHash{Data2: &SecureValueHash_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLPageBlockBlockquote) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockBlockquote)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Bytes(m.GetCaption().EncodeToLayer(layer)) + + return x.buf } -// secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash; -func (m *SecureValueHash) To_SecureValueHash() *TLSecureValueHash { - return &TLSecureValueHash{ - Data2: m.Data2, - } +func (m *TLPageBlockBlockquote) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) + m2 := &RichText{} + m2.Decode(dbuf) + m.SetCaption(m2) + + return dbuf.err } -// secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash; -func (m *TLSecureValueHash) To_SecureValueHash() *SecureValueHash { - return &SecureValueHash{ - Constructor: TLConstructor_CRC32_secureValueHash, +// pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock; +func (m *TLPageBlockPullquote) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockPullquote, Data2: m.Data2, } } -func (m *TLSecureValueHash) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValueHash) GetType() *SecureValueType { return m.Data2.Type } +func (m *TLPageBlockPullquote) SetText(v *RichText) { m.Data2.Text = v } +func (m *TLPageBlockPullquote) GetText() *RichText { return m.Data2.Text } -func (m *TLSecureValueHash) SetHash(v []byte) { m.Data2.Hash = v } -func (m *TLSecureValueHash) GetHash() []byte { return m.Data2.Hash } +func (m *TLPageBlockPullquote) SetCaption(v *RichText) { m.Data2.Caption = v } +func (m *TLPageBlockPullquote) GetCaption() *RichText { return m.Data2.Caption } -func NewTLSecureValueHash() *TLSecureValueHash { - return &TLSecureValueHash{Data2: &SecureValueHash_Data{}} +func NewTLPageBlockPullquote() *TLPageBlockPullquote { + return &TLPageBlockPullquote{Data2: &PageBlock_Data{}} } -func (m *TLSecureValueHash) Encode() []byte { +func (m *TLPageBlockPullquote) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueHash)) + x.Int(int32(TLConstructor_CRC32_pageBlockPullquote)) - x.Bytes(m.GetType().Encode()) - x.StringBytes(m.GetHash()) + x.Bytes(m.GetText().Encode()) + x.Bytes(m.GetCaption().Encode()) return x.buf } -func (m *TLSecureValueHash) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockPullquote) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValueHash)) + x.Int(int32(TLConstructor_CRC32_pageBlockPullquote)) - x.Bytes(m.GetType().EncodeToLayer(layer)) - x.StringBytes(m.GetHash()) + x.Bytes(m.GetText().EncodeToLayer(layer)) + x.Bytes(m.GetCaption().EncodeToLayer(layer)) return x.buf } -func (m *TLSecureValueHash) Decode(dbuf *DecodeBuf) error { - m1 := &SecureValueType{} +func (m *TLPageBlockPullquote) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} m1.Decode(dbuf) - m.SetType(m1) - m.SetHash(dbuf.StringBytes()) + m.SetText(m1) + m2 := &RichText{} + m2.Decode(dbuf) + m.SetCaption(m2) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// ChannelBannedRights <-- -// + TL_ChannelBannedRights -// - -func (m *ChannelBannedRights) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_channelBannedRights: - t := m.To_ChannelBannedRights() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// pageBlockPhoto#e9c69982 photo_id:long caption:RichText = PageBlock; +func (m *TLPageBlockPhoto) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockPhoto, + Data2: m.Data2, } } -func (m *ChannelBannedRights) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_channelBannedRights: - t := m.To_ChannelBannedRights() - return t.EncodeToLayer(layer) +func (m *TLPageBlockPhoto) SetPhotoId(v int64) { m.Data2.PhotoId = v } +func (m *TLPageBlockPhoto) GetPhotoId() int64 { return m.Data2.PhotoId } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLPageBlockPhoto) SetCaption(v *RichText) { m.Data2.Caption = v } +func (m *TLPageBlockPhoto) GetCaption() *RichText { return m.Data2.Caption } + +func NewTLPageBlockPhoto() *TLPageBlockPhoto { + return &TLPageBlockPhoto{Data2: &PageBlock_Data{}} } -func (m *ChannelBannedRights) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_channelBannedRights: - m2 := &TLChannelBannedRights{Data2: &ChannelBannedRights_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLPageBlockPhoto) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockPhoto)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} + x.Long(m.GetPhotoId()) + x.Bytes(m.GetCaption().Encode()) -// channelBannedRights#58cf4249 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true until_date:int = ChannelBannedRights; -func (m *ChannelBannedRights) To_ChannelBannedRights() *TLChannelBannedRights { - return &TLChannelBannedRights{ - Data2: m.Data2, - } + return x.buf } -// channelBannedRights#58cf4249 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true until_date:int = ChannelBannedRights; -func (m *TLChannelBannedRights) To_ChannelBannedRights() *ChannelBannedRights { - return &ChannelBannedRights{ - Constructor: TLConstructor_CRC32_channelBannedRights, - Data2: m.Data2, - } -} +func (m *TLPageBlockPhoto) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockPhoto)) -func (m *TLChannelBannedRights) SetViewMessages(v bool) { m.Data2.ViewMessages = v } -func (m *TLChannelBannedRights) GetViewMessages() bool { return m.Data2.ViewMessages } + x.Long(m.GetPhotoId()) + x.Bytes(m.GetCaption().EncodeToLayer(layer)) -func (m *TLChannelBannedRights) SetSendMessages(v bool) { m.Data2.SendMessages = v } -func (m *TLChannelBannedRights) GetSendMessages() bool { return m.Data2.SendMessages } + return x.buf +} -func (m *TLChannelBannedRights) SetSendMedia(v bool) { m.Data2.SendMedia = v } -func (m *TLChannelBannedRights) GetSendMedia() bool { return m.Data2.SendMedia } +func (m *TLPageBlockPhoto) Decode(dbuf *DecodeBuf) error { + m.SetPhotoId(dbuf.Long()) + m2 := &RichText{} + m2.Decode(dbuf) + m.SetCaption(m2) -func (m *TLChannelBannedRights) SetSendStickers(v bool) { m.Data2.SendStickers = v } -func (m *TLChannelBannedRights) GetSendStickers() bool { return m.Data2.SendStickers } + return dbuf.err +} -func (m *TLChannelBannedRights) SetSendGifs(v bool) { m.Data2.SendGifs = v } -func (m *TLChannelBannedRights) GetSendGifs() bool { return m.Data2.SendGifs } +// pageBlockVideo#d9d71866 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:RichText = PageBlock; +func (m *TLPageBlockVideo) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockVideo, + Data2: m.Data2, + } +} -func (m *TLChannelBannedRights) SetSendGames(v bool) { m.Data2.SendGames = v } -func (m *TLChannelBannedRights) GetSendGames() bool { return m.Data2.SendGames } +func (m *TLPageBlockVideo) SetAutoplay(v bool) { m.Data2.Autoplay = v } +func (m *TLPageBlockVideo) GetAutoplay() bool { return m.Data2.Autoplay } -func (m *TLChannelBannedRights) SetSendInline(v bool) { m.Data2.SendInline = v } -func (m *TLChannelBannedRights) GetSendInline() bool { return m.Data2.SendInline } +func (m *TLPageBlockVideo) SetLoop(v bool) { m.Data2.Loop = v } +func (m *TLPageBlockVideo) GetLoop() bool { return m.Data2.Loop } -func (m *TLChannelBannedRights) SetEmbedLinks(v bool) { m.Data2.EmbedLinks = v } -func (m *TLChannelBannedRights) GetEmbedLinks() bool { return m.Data2.EmbedLinks } +func (m *TLPageBlockVideo) SetVideoId(v int64) { m.Data2.VideoId = v } +func (m *TLPageBlockVideo) GetVideoId() int64 { return m.Data2.VideoId } -func (m *TLChannelBannedRights) SetUntilDate(v int32) { m.Data2.UntilDate = v } -func (m *TLChannelBannedRights) GetUntilDate() int32 { return m.Data2.UntilDate } +func (m *TLPageBlockVideo) SetCaption(v *RichText) { m.Data2.Caption = v } +func (m *TLPageBlockVideo) GetCaption() *RichText { return m.Data2.Caption } -func NewTLChannelBannedRights() *TLChannelBannedRights { - return &TLChannelBannedRights{Data2: &ChannelBannedRights_Data{}} +func NewTLPageBlockVideo() *TLPageBlockVideo { + return &TLPageBlockVideo{Data2: &PageBlock_Data{}} } -func (m *TLChannelBannedRights) Encode() []byte { +func (m *TLPageBlockVideo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelBannedRights)) + x.Int(int32(TLConstructor_CRC32_pageBlockVideo)) // flags var flags uint32 = 0 - if m.GetViewMessages() == true { + if m.GetAutoplay() == true { flags |= 1 << 0 } - if m.GetSendMessages() == true { + if m.GetLoop() == true { flags |= 1 << 1 } - if m.GetSendMedia() == true { - flags |= 1 << 2 - } - if m.GetSendStickers() == true { - flags |= 1 << 3 - } - if m.GetSendGifs() == true { - flags |= 1 << 4 - } - if m.GetSendGames() == true { - flags |= 1 << 5 - } - if m.GetSendInline() == true { - flags |= 1 << 6 - } - if m.GetEmbedLinks() == true { - flags |= 1 << 7 - } x.UInt(flags) - x.Int(m.GetUntilDate()) + x.Long(m.GetVideoId()) + x.Bytes(m.GetCaption().Encode()) return x.buf } -func (m *TLChannelBannedRights) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockVideo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelBannedRights)) + x.Int(int32(TLConstructor_CRC32_pageBlockVideo)) // flags var flags uint32 = 0 - if m.GetViewMessages() == true { + if m.GetAutoplay() == true { flags |= 1 << 0 } - if m.GetSendMessages() == true { + if m.GetLoop() == true { flags |= 1 << 1 } - if m.GetSendMedia() == true { - flags |= 1 << 2 - } - if m.GetSendStickers() == true { - flags |= 1 << 3 - } - if m.GetSendGifs() == true { - flags |= 1 << 4 - } - if m.GetSendGames() == true { - flags |= 1 << 5 - } - if m.GetSendInline() == true { - flags |= 1 << 6 - } - if m.GetEmbedLinks() == true { - flags |= 1 << 7 - } x.UInt(flags) - x.Int(m.GetUntilDate()) + x.Long(m.GetVideoId()) + x.Bytes(m.GetCaption().EncodeToLayer(layer)) return x.buf } -func (m *TLChannelBannedRights) Decode(dbuf *DecodeBuf) error { +func (m *TLPageBlockVideo) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags if (flags & (1 << 0)) != 0 { - m.SetViewMessages(true) + m.SetAutoplay(true) } if (flags & (1 << 1)) != 0 { - m.SetSendMessages(true) - } - if (flags & (1 << 2)) != 0 { - m.SetSendMedia(true) - } - if (flags & (1 << 3)) != 0 { - m.SetSendStickers(true) - } - if (flags & (1 << 4)) != 0 { - m.SetSendGifs(true) - } - if (flags & (1 << 5)) != 0 { - m.SetSendGames(true) - } - if (flags & (1 << 6)) != 0 { - m.SetSendInline(true) - } - if (flags & (1 << 7)) != 0 { - m.SetEmbedLinks(true) + m.SetLoop(true) } - m.SetUntilDate(dbuf.Int()) + m.SetVideoId(dbuf.Long()) + m5 := &RichText{} + m5.Decode(dbuf) + m.SetCaption(m5) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// InputPhoto <-- -// + TL_InputPhotoEmpty -// + TL_InputPhoto -// + TL_InputPhotoLayer86 -// - -func (m *InputPhoto) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputPhotoEmpty: - t := m.To_InputPhotoEmpty() - return t.Encode() - case TLConstructor_CRC32_inputPhoto: - t := m.To_InputPhoto() - return t.Encode() - case TLConstructor_CRC32_inputPhotoLayer86: - t := m.To_InputPhotoLayer86() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// pageBlockCover#39f23300 cover:PageBlock = PageBlock; +func (m *TLPageBlockCover) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockCover, + Data2: m.Data2, } } -func (m *InputPhoto) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputPhotoEmpty: - t := m.To_InputPhotoEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPhoto: - t := m.To_InputPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPhotoLayer86: - t := m.To_InputPhotoLayer86() - return t.EncodeToLayer(layer) +func (m *TLPageBlockCover) SetCover(v *PageBlock) { m.Data2.Cover = v } +func (m *TLPageBlockCover) GetCover() *PageBlock { return m.Data2.Cover } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLPageBlockCover() *TLPageBlockCover { + return &TLPageBlockCover{Data2: &PageBlock_Data{}} } -func (m *InputPhoto) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputPhotoEmpty: - m2 := &TLInputPhotoEmpty{Data2: &InputPhoto_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPhoto: - m2 := &TLInputPhoto{Data2: &InputPhoto_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPhotoLayer86: - m2 := &TLInputPhotoLayer86{Data2: &InputPhoto_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLPageBlockCover) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockCover)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} + x.Bytes(m.GetCover().Encode()) -// inputPhotoEmpty#1cd7bf0d = InputPhoto; -func (m *InputPhoto) To_InputPhotoEmpty() *TLInputPhotoEmpty { - return &TLInputPhotoEmpty{ - Data2: m.Data2, - } + return x.buf } -// inputPhoto#fb95c6c4 id:long access_hash:long = InputPhoto; -func (m *InputPhoto) To_InputPhoto() *TLInputPhoto { - return &TLInputPhoto{ - Data2: m.Data2, - } +func (m *TLPageBlockCover) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockCover)) + + x.Bytes(m.GetCover().EncodeToLayer(layer)) + + return x.buf } -// inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto; -func (m *InputPhoto) To_InputPhotoLayer86() *TLInputPhotoLayer86 { - return &TLInputPhotoLayer86{ - Data2: m.Data2, - } +func (m *TLPageBlockCover) Decode(dbuf *DecodeBuf) error { + m1 := &PageBlock{} + m1.Decode(dbuf) + m.SetCover(m1) + + return dbuf.err } -// inputPhotoEmpty#1cd7bf0d = InputPhoto; -func (m *TLInputPhotoEmpty) To_InputPhoto() *InputPhoto { - return &InputPhoto{ - Constructor: TLConstructor_CRC32_inputPhotoEmpty, +// pageBlockEmbed#cde200d1 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:int h:int caption:RichText = PageBlock; +func (m *TLPageBlockEmbed) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockEmbed, Data2: m.Data2, } } -func NewTLInputPhotoEmpty() *TLInputPhotoEmpty { - return &TLInputPhotoEmpty{Data2: &InputPhoto_Data{}} +func (m *TLPageBlockEmbed) SetFullWidth(v bool) { m.Data2.FullWidth = v } +func (m *TLPageBlockEmbed) GetFullWidth() bool { return m.Data2.FullWidth } + +func (m *TLPageBlockEmbed) SetAllowScrolling(v bool) { m.Data2.AllowScrolling = v } +func (m *TLPageBlockEmbed) GetAllowScrolling() bool { return m.Data2.AllowScrolling } + +func (m *TLPageBlockEmbed) SetUrl(v string) { m.Data2.Url = v } +func (m *TLPageBlockEmbed) GetUrl() string { return m.Data2.Url } + +func (m *TLPageBlockEmbed) SetHtml(v string) { m.Data2.Html = v } +func (m *TLPageBlockEmbed) GetHtml() string { return m.Data2.Html } + +func (m *TLPageBlockEmbed) SetPosterPhotoId(v int64) { m.Data2.PosterPhotoId = v } +func (m *TLPageBlockEmbed) GetPosterPhotoId() int64 { return m.Data2.PosterPhotoId } + +func (m *TLPageBlockEmbed) SetW(v int32) { m.Data2.W = v } +func (m *TLPageBlockEmbed) GetW() int32 { return m.Data2.W } + +func (m *TLPageBlockEmbed) SetH(v int32) { m.Data2.H = v } +func (m *TLPageBlockEmbed) GetH() int32 { return m.Data2.H } + +func (m *TLPageBlockEmbed) SetCaption(v *RichText) { m.Data2.Caption = v } +func (m *TLPageBlockEmbed) GetCaption() *RichText { return m.Data2.Caption } + +func NewTLPageBlockEmbed() *TLPageBlockEmbed { + return &TLPageBlockEmbed{Data2: &PageBlock_Data{}} } -func (m *TLInputPhotoEmpty) Encode() []byte { +func (m *TLPageBlockEmbed) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhotoEmpty)) + x.Int(int32(TLConstructor_CRC32_pageBlockEmbed)) + + // flags + var flags uint32 = 0 + if m.GetFullWidth() == true { + flags |= 1 << 0 + } + if m.GetAllowScrolling() == true { + flags |= 1 << 3 + } + if m.GetUrl() != "" { + flags |= 1 << 1 + } + if m.GetHtml() != "" { + flags |= 1 << 2 + } + if m.GetPosterPhotoId() != 0 { + flags |= 1 << 4 + } + x.UInt(flags) + + if m.GetUrl() != "" { + x.String(m.GetUrl()) + } + if m.GetHtml() != "" { + x.String(m.GetHtml()) + } + if m.GetPosterPhotoId() != 0 { + x.Long(m.GetPosterPhotoId()) + } + x.Int(m.GetW()) + x.Int(m.GetH()) + x.Bytes(m.GetCaption().Encode()) return x.buf } -func (m *TLInputPhotoEmpty) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockEmbed) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhotoEmpty)) + x.Int(int32(TLConstructor_CRC32_pageBlockEmbed)) + + // flags + var flags uint32 = 0 + if m.GetFullWidth() == true { + flags |= 1 << 0 + } + if m.GetAllowScrolling() == true { + flags |= 1 << 3 + } + if m.GetUrl() != "" { + flags |= 1 << 1 + } + if m.GetHtml() != "" { + flags |= 1 << 2 + } + if m.GetPosterPhotoId() != 0 { + flags |= 1 << 4 + } + x.UInt(flags) + + if m.GetUrl() != "" { + x.String(m.GetUrl()) + } + if m.GetHtml() != "" { + x.String(m.GetHtml()) + } + if m.GetPosterPhotoId() != 0 { + x.Long(m.GetPosterPhotoId()) + } + x.Int(m.GetW()) + x.Int(m.GetH()) + x.Bytes(m.GetCaption().EncodeToLayer(layer)) return x.buf } -func (m *TLInputPhotoEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLPageBlockEmbed) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetFullWidth(true) + } + if (flags & (1 << 3)) != 0 { + m.SetAllowScrolling(true) + } + if (flags & (1 << 1)) != 0 { + m.SetUrl(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m.SetHtml(dbuf.String()) + } + if (flags & (1 << 4)) != 0 { + m.SetPosterPhotoId(dbuf.Long()) + } + m.SetW(dbuf.Int()) + m.SetH(dbuf.Int()) + m9 := &RichText{} + m9.Decode(dbuf) + m.SetCaption(m9) return dbuf.err } -// inputPhoto#fb95c6c4 id:long access_hash:long = InputPhoto; -func (m *TLInputPhoto) To_InputPhoto() *InputPhoto { - return &InputPhoto{ - Constructor: TLConstructor_CRC32_inputPhoto, +// pageBlockEmbedPost#292c7be9 url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:RichText = PageBlock; +func (m *TLPageBlockEmbedPost) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockEmbedPost, Data2: m.Data2, } } -func (m *TLInputPhoto) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputPhoto) GetId() int64 { return m.Data2.Id } +func (m *TLPageBlockEmbedPost) SetUrl(v string) { m.Data2.Url = v } +func (m *TLPageBlockEmbedPost) GetUrl() string { return m.Data2.Url } -func (m *TLInputPhoto) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputPhoto) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLPageBlockEmbedPost) SetWebpageId(v int64) { m.Data2.WebpageId = v } +func (m *TLPageBlockEmbedPost) GetWebpageId() int64 { return m.Data2.WebpageId } -func NewTLInputPhoto() *TLInputPhoto { - return &TLInputPhoto{Data2: &InputPhoto_Data{}} +func (m *TLPageBlockEmbedPost) SetAuthorPhotoId(v int64) { m.Data2.AuthorPhotoId = v } +func (m *TLPageBlockEmbedPost) GetAuthorPhotoId() int64 { return m.Data2.AuthorPhotoId } + +func (m *TLPageBlockEmbedPost) SetAuthor(v string) { m.Data2.Author_23 = v } +func (m *TLPageBlockEmbedPost) GetAuthor() string { return m.Data2.Author_23 } + +func (m *TLPageBlockEmbedPost) SetDate(v int32) { m.Data2.Date = v } +func (m *TLPageBlockEmbedPost) GetDate() int32 { return m.Data2.Date } + +func (m *TLPageBlockEmbedPost) SetBlocks(v []*PageBlock) { m.Data2.Blocks = v } +func (m *TLPageBlockEmbedPost) GetBlocks() []*PageBlock { return m.Data2.Blocks } + +func (m *TLPageBlockEmbedPost) SetCaption(v *RichText) { m.Data2.Caption = v } +func (m *TLPageBlockEmbedPost) GetCaption() *RichText { return m.Data2.Caption } + +func NewTLPageBlockEmbedPost() *TLPageBlockEmbedPost { + return &TLPageBlockEmbedPost{Data2: &PageBlock_Data{}} } -func (m *TLInputPhoto) Encode() []byte { +func (m *TLPageBlockEmbedPost) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhoto)) + x.Int(int32(TLConstructor_CRC32_pageBlockEmbedPost)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.String(m.GetUrl()) + x.Long(m.GetWebpageId()) + x.Long(m.GetAuthorPhotoId()) + x.String(m.GetAuthor()) + x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocks()))) + for _, v := range m.GetBlocks() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Bytes(m.GetCaption().Encode()) return x.buf } -func (m *TLInputPhoto) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockEmbedPost) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhoto)) + x.Int(int32(TLConstructor_CRC32_pageBlockEmbedPost)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.String(m.GetUrl()) + x.Long(m.GetWebpageId()) + x.Long(m.GetAuthorPhotoId()) + x.String(m.GetAuthor()) + x.Int(m.GetDate()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetBlocks()))) + for _, v := range m.GetBlocks() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Bytes(m.GetCaption().EncodeToLayer(layer)) return x.buf } -func (m *TLInputPhoto) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) +func (m *TLPageBlockEmbedPost) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m.SetWebpageId(dbuf.Long()) + m.SetAuthorPhotoId(dbuf.Long()) + m.SetAuthor(dbuf.String()) + m.SetDate(dbuf.Int()) + c6 := dbuf.Int() + if c6 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) + return dbuf.err + } + l6 := dbuf.Int() + v6 := make([]*PageBlock, l6) + for i := int32(0); i < l6; i++ { + v6[i] = &PageBlock{} + v6[i].Decode(dbuf) + } + m.SetBlocks(v6) + + m7 := &RichText{} + m7.Decode(dbuf) + m.SetCaption(m7) return dbuf.err } -// inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto; -func (m *TLInputPhotoLayer86) To_InputPhoto() *InputPhoto { - return &InputPhoto{ - Constructor: TLConstructor_CRC32_inputPhotoLayer86, +// pageBlockCollage#8b31c4f items:Vector caption:RichText = PageBlock; +func (m *TLPageBlockCollage) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockCollage, Data2: m.Data2, } } -func (m *TLInputPhotoLayer86) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputPhotoLayer86) GetId() int64 { return m.Data2.Id } - -func (m *TLInputPhotoLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputPhotoLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLPageBlockCollage) SetItems(v []*PageBlock) { m.Data2.Items_26 = v } +func (m *TLPageBlockCollage) GetItems() []*PageBlock { return m.Data2.Items_26 } -func (m *TLInputPhotoLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } -func (m *TLInputPhotoLayer86) GetFileReference() []byte { return m.Data2.FileReference } +func (m *TLPageBlockCollage) SetCaption(v *RichText) { m.Data2.Caption = v } +func (m *TLPageBlockCollage) GetCaption() *RichText { return m.Data2.Caption } -func NewTLInputPhotoLayer86() *TLInputPhotoLayer86 { - return &TLInputPhotoLayer86{Data2: &InputPhoto_Data{}} +func NewTLPageBlockCollage() *TLPageBlockCollage { + return &TLPageBlockCollage{Data2: &PageBlock_Data{}} } -func (m *TLInputPhotoLayer86) Encode() []byte { +func (m *TLPageBlockCollage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhotoLayer86)) + x.Int(int32(TLConstructor_CRC32_pageBlockCollage)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetItems()))) + for _, v := range m.GetItems() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Bytes(m.GetCaption().Encode()) return x.buf } -func (m *TLInputPhotoLayer86) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockCollage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPhotoLayer86)) + x.Int(int32(TLConstructor_CRC32_pageBlockCollage)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetItems()))) + for _, v := range m.GetItems() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Bytes(m.GetCaption().EncodeToLayer(layer)) return x.buf } -func (m *TLInputPhotoLayer86) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetFileReference(dbuf.StringBytes()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// Auth_Authorization <-- -// + TL_AuthAuthorization -// - -func (m *Auth_Authorization) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_auth_authorization: - t := m.To_AuthAuthorization() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +func (m *TLPageBlockCollage) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } -} - -func (m *Auth_Authorization) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_auth_authorization: - t := m.To_AuthAuthorization() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + l1 := dbuf.Int() + v1 := make([]*PageBlock, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &PageBlock{} + v1[i].Decode(dbuf) } -} + m.SetItems(v1) -func (m *Auth_Authorization) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_auth_authorization: - m2 := &TLAuthAuthorization{Data2: &Auth_Authorization_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 + m2 := &RichText{} + m2.Decode(dbuf) + m.SetCaption(m2) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization; -func (m *Auth_Authorization) To_AuthAuthorization() *TLAuthAuthorization { - return &TLAuthAuthorization{ - Data2: m.Data2, - } -} - -// auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization; -func (m *TLAuthAuthorization) To_Auth_Authorization() *Auth_Authorization { - return &Auth_Authorization{ - Constructor: TLConstructor_CRC32_auth_authorization, +// pageBlockSlideshow#130c8963 items:Vector caption:RichText = PageBlock; +func (m *TLPageBlockSlideshow) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockSlideshow, Data2: m.Data2, } } -func (m *TLAuthAuthorization) SetTmpSessions(v int32) { m.Data2.TmpSessions = v } -func (m *TLAuthAuthorization) GetTmpSessions() int32 { return m.Data2.TmpSessions } +func (m *TLPageBlockSlideshow) SetItems(v []*PageBlock) { m.Data2.Items_26 = v } +func (m *TLPageBlockSlideshow) GetItems() []*PageBlock { return m.Data2.Items_26 } -func (m *TLAuthAuthorization) SetUser(v *User) { m.Data2.User = v } -func (m *TLAuthAuthorization) GetUser() *User { return m.Data2.User } +func (m *TLPageBlockSlideshow) SetCaption(v *RichText) { m.Data2.Caption = v } +func (m *TLPageBlockSlideshow) GetCaption() *RichText { return m.Data2.Caption } -func NewTLAuthAuthorization() *TLAuthAuthorization { - return &TLAuthAuthorization{Data2: &Auth_Authorization_Data{}} +func NewTLPageBlockSlideshow() *TLPageBlockSlideshow { + return &TLPageBlockSlideshow{Data2: &PageBlock_Data{}} } -func (m *TLAuthAuthorization) Encode() []byte { +func (m *TLPageBlockSlideshow) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_authorization)) - - // flags - var flags uint32 = 0 - if m.GetTmpSessions() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_pageBlockSlideshow)) - if m.GetTmpSessions() != 0 { - x.Int(m.GetTmpSessions()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetItems()))) + for _, v := range m.GetItems() { + x.buf = append(x.buf, (*v).Encode()...) } - x.Bytes(m.GetUser().Encode()) + x.Bytes(m.GetCaption().Encode()) return x.buf } -func (m *TLAuthAuthorization) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockSlideshow) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_authorization)) - - // flags - var flags uint32 = 0 - if m.GetTmpSessions() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_pageBlockSlideshow)) - if m.GetTmpSessions() != 0 { - x.Int(m.GetTmpSessions()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetItems()))) + for _, v := range m.GetItems() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.Bytes(m.GetUser().EncodeToLayer(layer)) + x.Bytes(m.GetCaption().EncodeToLayer(layer)) return x.buf } -func (m *TLAuthAuthorization) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetTmpSessions(dbuf.Int()) +func (m *TLPageBlockSlideshow) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } - m3 := &User{} - m3.Decode(dbuf) - m.SetUser(m3) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// ImportedContact <-- -// + TL_ImportedContact -// + l1 := dbuf.Int() + v1 := make([]*PageBlock, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &PageBlock{} + v1[i].Decode(dbuf) + } + m.SetItems(v1) -func (m *ImportedContact) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_importedContact: - t := m.To_ImportedContact() - return t.Encode() + m2 := &RichText{} + m2.Decode(dbuf) + m.SetCaption(m2) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + return dbuf.err +} + +// pageBlockChannel#ef1751b5 channel:Chat = PageBlock; +func (m *TLPageBlockChannel) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockChannel, + Data2: m.Data2, } } -func (m *ImportedContact) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_importedContact: - t := m.To_ImportedContact() - return t.EncodeToLayer(layer) +func (m *TLPageBlockChannel) SetChannel(v *Chat) { m.Data2.Channel = v } +func (m *TLPageBlockChannel) GetChannel() *Chat { return m.Data2.Channel } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLPageBlockChannel() *TLPageBlockChannel { + return &TLPageBlockChannel{Data2: &PageBlock_Data{}} } -func (m *ImportedContact) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_importedContact: - m2 := &TLImportedContact{Data2: &ImportedContact_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLPageBlockChannel) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockChannel)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetChannel().Encode()) + + return x.buf } -// importedContact#d0028438 user_id:int client_id:long = ImportedContact; -func (m *ImportedContact) To_ImportedContact() *TLImportedContact { - return &TLImportedContact{ - Data2: m.Data2, - } +func (m *TLPageBlockChannel) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_pageBlockChannel)) + + x.Bytes(m.GetChannel().EncodeToLayer(layer)) + + return x.buf } -// importedContact#d0028438 user_id:int client_id:long = ImportedContact; -func (m *TLImportedContact) To_ImportedContact() *ImportedContact { - return &ImportedContact{ - Constructor: TLConstructor_CRC32_importedContact, +func (m *TLPageBlockChannel) Decode(dbuf *DecodeBuf) error { + m1 := &Chat{} + m1.Decode(dbuf) + m.SetChannel(m1) + + return dbuf.err +} + +// pageBlockAudio#31b81a7f audio_id:long caption:RichText = PageBlock; +func (m *TLPageBlockAudio) To_PageBlock() *PageBlock { + return &PageBlock{ + Constructor: TLConstructor_CRC32_pageBlockAudio, Data2: m.Data2, } } -func (m *TLImportedContact) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLImportedContact) GetUserId() int32 { return m.Data2.UserId } +func (m *TLPageBlockAudio) SetAudioId(v int64) { m.Data2.AudioId = v } +func (m *TLPageBlockAudio) GetAudioId() int64 { return m.Data2.AudioId } -func (m *TLImportedContact) SetClientId(v int64) { m.Data2.ClientId = v } -func (m *TLImportedContact) GetClientId() int64 { return m.Data2.ClientId } +func (m *TLPageBlockAudio) SetCaption(v *RichText) { m.Data2.Caption = v } +func (m *TLPageBlockAudio) GetCaption() *RichText { return m.Data2.Caption } -func NewTLImportedContact() *TLImportedContact { - return &TLImportedContact{Data2: &ImportedContact_Data{}} +func NewTLPageBlockAudio() *TLPageBlockAudio { + return &TLPageBlockAudio{Data2: &PageBlock_Data{}} } -func (m *TLImportedContact) Encode() []byte { +func (m *TLPageBlockAudio) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_importedContact)) + x.Int(int32(TLConstructor_CRC32_pageBlockAudio)) - x.Int(m.GetUserId()) - x.Long(m.GetClientId()) + x.Long(m.GetAudioId()) + x.Bytes(m.GetCaption().Encode()) return x.buf } -func (m *TLImportedContact) EncodeToLayer(layer int) []byte { +func (m *TLPageBlockAudio) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_importedContact)) + x.Int(int32(TLConstructor_CRC32_pageBlockAudio)) - x.Int(m.GetUserId()) - x.Long(m.GetClientId()) + x.Long(m.GetAudioId()) + x.Bytes(m.GetCaption().EncodeToLayer(layer)) return x.buf } -func (m *TLImportedContact) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetClientId(dbuf.Long()) +func (m *TLPageBlockAudio) Decode(dbuf *DecodeBuf) error { + m.SetAudioId(dbuf.Long()) + m2 := &RichText{} + m2.Decode(dbuf) + m.SetCaption(m2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Upload_File <-- -// + TL_UploadFile -// + TL_UploadFileCdnRedirect +// Help_DeepLinkInfo <-- +// + TL_HelpDeepLinkInfoEmpty +// + TL_HelpDeepLinkInfo // -func (m *Upload_File) Encode() []byte { +func (m *Help_DeepLinkInfo) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_upload_file: - t := m.To_UploadFile() + case TLConstructor_CRC32_help_deepLinkInfoEmpty: + t := m.To_HelpDeepLinkInfoEmpty() return t.Encode() - case TLConstructor_CRC32_upload_fileCdnRedirect: - t := m.To_UploadFileCdnRedirect() + case TLConstructor_CRC32_help_deepLinkInfo: + t := m.To_HelpDeepLinkInfo() return t.Encode() default: @@ -36988,14 +37936,14 @@ func (m *Upload_File) Encode() []byte { } } -func (m *Upload_File) EncodeToLayer(layer int) []byte { +func (m *Help_DeepLinkInfo) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_upload_file: - t := m.To_UploadFile() + case TLConstructor_CRC32_help_deepLinkInfoEmpty: + t := m.To_HelpDeepLinkInfoEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_upload_fileCdnRedirect: - t := m.To_UploadFileCdnRedirect() + case TLConstructor_CRC32_help_deepLinkInfo: + t := m.To_HelpDeepLinkInfo() return t.EncodeToLayer(layer) default: @@ -37004,15 +37952,15 @@ func (m *Upload_File) EncodeToLayer(layer int) []byte { } } -func (m *Upload_File) Decode(dbuf *DecodeBuf) error { +func (m *Help_DeepLinkInfo) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_upload_file: - m2 := &TLUploadFile{Data2: &Upload_File_Data{}} + case TLConstructor_CRC32_help_deepLinkInfoEmpty: + m2 := &TLHelpDeepLinkInfoEmpty{Data2: &Help_DeepLinkInfo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_upload_fileCdnRedirect: - m2 := &TLUploadFileCdnRedirect{Data2: &Upload_File_Data{}} + case TLConstructor_CRC32_help_deepLinkInfo: + m2 := &TLHelpDeepLinkInfo{Data2: &Help_DeepLinkInfo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -37022,172 +37970,187 @@ func (m *Upload_File) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; -func (m *Upload_File) To_UploadFile() *TLUploadFile { - return &TLUploadFile{ +// help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo; +func (m *Help_DeepLinkInfo) To_HelpDeepLinkInfoEmpty() *TLHelpDeepLinkInfoEmpty { + return &TLHelpDeepLinkInfoEmpty{ Data2: m.Data2, } } -// upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File; -func (m *Upload_File) To_UploadFileCdnRedirect() *TLUploadFileCdnRedirect { - return &TLUploadFileCdnRedirect{ +// help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo; +func (m *Help_DeepLinkInfo) To_HelpDeepLinkInfo() *TLHelpDeepLinkInfo { + return &TLHelpDeepLinkInfo{ Data2: m.Data2, } } -// upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; -func (m *TLUploadFile) To_Upload_File() *Upload_File { - return &Upload_File{ - Constructor: TLConstructor_CRC32_upload_file, +// help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo; +func (m *TLHelpDeepLinkInfoEmpty) To_Help_DeepLinkInfo() *Help_DeepLinkInfo { + return &Help_DeepLinkInfo{ + Constructor: TLConstructor_CRC32_help_deepLinkInfoEmpty, Data2: m.Data2, } } -func (m *TLUploadFile) SetType(v *Storage_FileType) { m.Data2.Type = v } -func (m *TLUploadFile) GetType() *Storage_FileType { return m.Data2.Type } - -func (m *TLUploadFile) SetMtime(v int32) { m.Data2.Mtime = v } -func (m *TLUploadFile) GetMtime() int32 { return m.Data2.Mtime } - -func (m *TLUploadFile) SetBytes(v []byte) { m.Data2.Bytes = v } -func (m *TLUploadFile) GetBytes() []byte { return m.Data2.Bytes } - -func NewTLUploadFile() *TLUploadFile { - return &TLUploadFile{Data2: &Upload_File_Data{}} +func NewTLHelpDeepLinkInfoEmpty() *TLHelpDeepLinkInfoEmpty { + return &TLHelpDeepLinkInfoEmpty{Data2: &Help_DeepLinkInfo_Data{}} } -func (m *TLUploadFile) Encode() []byte { +func (m *TLHelpDeepLinkInfoEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_file)) - - x.Bytes(m.GetType().Encode()) - x.Int(m.GetMtime()) - x.StringBytes(m.GetBytes()) + x.Int(int32(TLConstructor_CRC32_help_deepLinkInfoEmpty)) return x.buf } -func (m *TLUploadFile) EncodeToLayer(layer int) []byte { +func (m *TLHelpDeepLinkInfoEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_file)) - - x.Bytes(m.GetType().EncodeToLayer(layer)) - x.Int(m.GetMtime()) - x.StringBytes(m.GetBytes()) + x.Int(int32(TLConstructor_CRC32_help_deepLinkInfoEmpty)) return x.buf } -func (m *TLUploadFile) Decode(dbuf *DecodeBuf) error { - m1 := &Storage_FileType{} - m1.Decode(dbuf) - m.SetType(m1) - m.SetMtime(dbuf.Int()) - m.SetBytes(dbuf.StringBytes()) +func (m *TLHelpDeepLinkInfoEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File; -func (m *TLUploadFileCdnRedirect) To_Upload_File() *Upload_File { - return &Upload_File{ - Constructor: TLConstructor_CRC32_upload_fileCdnRedirect, +// help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo; +func (m *TLHelpDeepLinkInfo) To_Help_DeepLinkInfo() *Help_DeepLinkInfo { + return &Help_DeepLinkInfo{ + Constructor: TLConstructor_CRC32_help_deepLinkInfo, Data2: m.Data2, } } -func (m *TLUploadFileCdnRedirect) SetDcId(v int32) { m.Data2.DcId = v } -func (m *TLUploadFileCdnRedirect) GetDcId() int32 { return m.Data2.DcId } - -func (m *TLUploadFileCdnRedirect) SetFileToken(v []byte) { m.Data2.FileToken = v } -func (m *TLUploadFileCdnRedirect) GetFileToken() []byte { return m.Data2.FileToken } - -func (m *TLUploadFileCdnRedirect) SetEncryptionKey(v []byte) { m.Data2.EncryptionKey = v } -func (m *TLUploadFileCdnRedirect) GetEncryptionKey() []byte { return m.Data2.EncryptionKey } +func (m *TLHelpDeepLinkInfo) SetUpdateApp(v bool) { m.Data2.UpdateApp = v } +func (m *TLHelpDeepLinkInfo) GetUpdateApp() bool { return m.Data2.UpdateApp } -func (m *TLUploadFileCdnRedirect) SetEncryptionIv(v []byte) { m.Data2.EncryptionIv = v } -func (m *TLUploadFileCdnRedirect) GetEncryptionIv() []byte { return m.Data2.EncryptionIv } +func (m *TLHelpDeepLinkInfo) SetMessage(v string) { m.Data2.Message = v } +func (m *TLHelpDeepLinkInfo) GetMessage() string { return m.Data2.Message } -func (m *TLUploadFileCdnRedirect) SetFileHashes(v []*FileHash) { m.Data2.FileHashes = v } -func (m *TLUploadFileCdnRedirect) GetFileHashes() []*FileHash { return m.Data2.FileHashes } +func (m *TLHelpDeepLinkInfo) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLHelpDeepLinkInfo) GetEntities() []*MessageEntity { return m.Data2.Entities } -func NewTLUploadFileCdnRedirect() *TLUploadFileCdnRedirect { - return &TLUploadFileCdnRedirect{Data2: &Upload_File_Data{}} +func NewTLHelpDeepLinkInfo() *TLHelpDeepLinkInfo { + return &TLHelpDeepLinkInfo{Data2: &Help_DeepLinkInfo_Data{}} } -func (m *TLUploadFileCdnRedirect) Encode() []byte { +func (m *TLHelpDeepLinkInfo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_fileCdnRedirect)) + x.Int(int32(TLConstructor_CRC32_help_deepLinkInfo)) - x.Int(m.GetDcId()) - x.StringBytes(m.GetFileToken()) - x.StringBytes(m.GetEncryptionKey()) - x.StringBytes(m.GetEncryptionIv()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetFileHashes()))) - for _, v := range m.GetFileHashes() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetUpdateApp() == true { + flags |= 1 << 0 + } + if m.GetEntities() != nil { + flags |= 1 << 1 + } + x.UInt(flags) + + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } } return x.buf } -func (m *TLUploadFileCdnRedirect) EncodeToLayer(layer int) []byte { +func (m *TLHelpDeepLinkInfo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_fileCdnRedirect)) + x.Int(int32(TLConstructor_CRC32_help_deepLinkInfo)) - x.Int(m.GetDcId()) - x.StringBytes(m.GetFileToken()) - x.StringBytes(m.GetEncryptionKey()) - x.StringBytes(m.GetEncryptionIv()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetFileHashes()))) - for _, v := range m.GetFileHashes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetUpdateApp() == true { + flags |= 1 << 0 + } + if m.GetEntities() != nil { + flags |= 1 << 1 + } + x.UInt(flags) + + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } } return x.buf } -func (m *TLUploadFileCdnRedirect) Decode(dbuf *DecodeBuf) error { - m.SetDcId(dbuf.Int()) - m.SetFileToken(dbuf.StringBytes()) - m.SetEncryptionKey(dbuf.StringBytes()) - m.SetEncryptionIv(dbuf.StringBytes()) - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err +func (m *TLHelpDeepLinkInfo) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetUpdateApp(true) } - l5 := dbuf.Int() - v5 := make([]*FileHash, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &FileHash{} - v5[i].Decode(dbuf) + m.SetMessage(dbuf.String()) + if (flags & (1 << 1)) != 0 { + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*MessageEntity, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &MessageEntity{} + v4[i].Decode(dbuf) + } + m.SetEntities(v4) + } - m.SetFileHashes(v5) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Updates_ChannelDifference <-- -// + TL_UpdatesChannelDifferenceEmpty -// + TL_UpdatesChannelDifferenceTooLong -// + TL_UpdatesChannelDifference +// InputFileLocation <-- +// + TL_InputDocumentFileLocationLayer11 +// + TL_InputFileLocation +// + TL_InputEncryptedFileLocation +// + TL_InputDocumentFileLocation +// + TL_InputSecureFileLocation +// + TL_InputTakeoutFileLocation +// + TL_InputFileLocationLayer86 +// + TL_InputDocumentFileLocationLayer86 // -func (m *Updates_ChannelDifference) Encode() []byte { +func (m *InputFileLocation) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_updates_channelDifferenceEmpty: - t := m.To_UpdatesChannelDifferenceEmpty() + case TLConstructor_CRC32_inputDocumentFileLocationLayer11: + t := m.To_InputDocumentFileLocationLayer11() return t.Encode() - case TLConstructor_CRC32_updates_channelDifferenceTooLong: - t := m.To_UpdatesChannelDifferenceTooLong() + case TLConstructor_CRC32_inputFileLocation: + t := m.To_InputFileLocation() return t.Encode() - case TLConstructor_CRC32_updates_channelDifference: - t := m.To_UpdatesChannelDifference() + case TLConstructor_CRC32_inputEncryptedFileLocation: + t := m.To_InputEncryptedFileLocation() + return t.Encode() + case TLConstructor_CRC32_inputDocumentFileLocation: + t := m.To_InputDocumentFileLocation() + return t.Encode() + case TLConstructor_CRC32_inputSecureFileLocation: + t := m.To_InputSecureFileLocation() + return t.Encode() + case TLConstructor_CRC32_inputTakeoutFileLocation: + t := m.To_InputTakeoutFileLocation() + return t.Encode() + case TLConstructor_CRC32_inputFileLocationLayer86: + t := m.To_InputFileLocationLayer86() + return t.Encode() + case TLConstructor_CRC32_inputDocumentFileLocationLayer86: + t := m.To_InputDocumentFileLocationLayer86() return t.Encode() default: @@ -37196,17 +38159,32 @@ func (m *Updates_ChannelDifference) Encode() []byte { } } -func (m *Updates_ChannelDifference) EncodeToLayer(layer int) []byte { +func (m *InputFileLocation) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_updates_channelDifferenceEmpty: - t := m.To_UpdatesChannelDifferenceEmpty() + case TLConstructor_CRC32_inputDocumentFileLocationLayer11: + t := m.To_InputDocumentFileLocationLayer11() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updates_channelDifferenceTooLong: - t := m.To_UpdatesChannelDifferenceTooLong() + case TLConstructor_CRC32_inputFileLocation: + t := m.To_InputFileLocation() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updates_channelDifference: - t := m.To_UpdatesChannelDifference() + case TLConstructor_CRC32_inputEncryptedFileLocation: + t := m.To_InputEncryptedFileLocation() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputDocumentFileLocation: + t := m.To_InputDocumentFileLocation() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputSecureFileLocation: + t := m.To_InputSecureFileLocation() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputTakeoutFileLocation: + t := m.To_InputTakeoutFileLocation() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputFileLocationLayer86: + t := m.To_InputFileLocationLayer86() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputDocumentFileLocationLayer86: + t := m.To_InputDocumentFileLocationLayer86() return t.EncodeToLayer(layer) default: @@ -37215,19 +38193,39 @@ func (m *Updates_ChannelDifference) EncodeToLayer(layer int) []byte { } } -func (m *Updates_ChannelDifference) Decode(dbuf *DecodeBuf) error { +func (m *InputFileLocation) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_updates_channelDifferenceEmpty: - m2 := &TLUpdatesChannelDifferenceEmpty{Data2: &Updates_ChannelDifference_Data{}} + case TLConstructor_CRC32_inputDocumentFileLocationLayer11: + m2 := &TLInputDocumentFileLocationLayer11{Data2: &InputFileLocation_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_updates_channelDifferenceTooLong: - m2 := &TLUpdatesChannelDifferenceTooLong{Data2: &Updates_ChannelDifference_Data{}} + case TLConstructor_CRC32_inputFileLocation: + m2 := &TLInputFileLocation{Data2: &InputFileLocation_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_updates_channelDifference: - m2 := &TLUpdatesChannelDifference{Data2: &Updates_ChannelDifference_Data{}} + case TLConstructor_CRC32_inputEncryptedFileLocation: + m2 := &TLInputEncryptedFileLocation{Data2: &InputFileLocation_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputDocumentFileLocation: + m2 := &TLInputDocumentFileLocation{Data2: &InputFileLocation_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputSecureFileLocation: + m2 := &TLInputSecureFileLocation{Data2: &InputFileLocation_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputTakeoutFileLocation: + m2 := &TLInputTakeoutFileLocation{Data2: &InputFileLocation_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputFileLocationLayer86: + m2 := &TLInputFileLocationLayer86{Data2: &InputFileLocation_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputDocumentFileLocationLayer86: + m2 := &TLInputDocumentFileLocationLayer86{Data2: &InputFileLocation_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -37237,1105 +38235,582 @@ func (m *Updates_ChannelDifference) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference; -func (m *Updates_ChannelDifference) To_UpdatesChannelDifferenceEmpty() *TLUpdatesChannelDifferenceEmpty { - return &TLUpdatesChannelDifferenceEmpty{ +// inputDocumentFileLocation#4e45abe9 id:long access_hash:long = InputFileLocation; +func (m *InputFileLocation) To_InputDocumentFileLocationLayer11() *TLInputDocumentFileLocationLayer11 { + return &TLInputDocumentFileLocationLayer11{ Data2: m.Data2, } } -// updates.channelDifferenceTooLong#6a9d7b35 flags:# final:flags.0?true pts:int timeout:flags.1?int top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int messages:Vector chats:Vector users:Vector = updates.ChannelDifference; -func (m *Updates_ChannelDifference) To_UpdatesChannelDifferenceTooLong() *TLUpdatesChannelDifferenceTooLong { - return &TLUpdatesChannelDifferenceTooLong{ +// inputFileLocation#14637196 volume_id:long local_id:int secret:long = InputFileLocation; +func (m *InputFileLocation) To_InputFileLocation() *TLInputFileLocation { + return &TLInputFileLocation{ Data2: m.Data2, } } -// updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference; -func (m *Updates_ChannelDifference) To_UpdatesChannelDifference() *TLUpdatesChannelDifference { - return &TLUpdatesChannelDifference{ +// inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation; +func (m *InputFileLocation) To_InputEncryptedFileLocation() *TLInputEncryptedFileLocation { + return &TLInputEncryptedFileLocation{ Data2: m.Data2, } } -// updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference; -func (m *TLUpdatesChannelDifferenceEmpty) To_Updates_ChannelDifference() *Updates_ChannelDifference { - return &Updates_ChannelDifference{ - Constructor: TLConstructor_CRC32_updates_channelDifferenceEmpty, - Data2: m.Data2, +// inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputFileLocation; +func (m *InputFileLocation) To_InputDocumentFileLocation() *TLInputDocumentFileLocation { + return &TLInputDocumentFileLocation{ + Data2: m.Data2, } } -func (m *TLUpdatesChannelDifferenceEmpty) SetFinal(v bool) { m.Data2.Final = v } -func (m *TLUpdatesChannelDifferenceEmpty) GetFinal() bool { return m.Data2.Final } - -func (m *TLUpdatesChannelDifferenceEmpty) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdatesChannelDifferenceEmpty) GetPts() int32 { return m.Data2.Pts } - -func (m *TLUpdatesChannelDifferenceEmpty) SetTimeout(v int32) { m.Data2.Timeout = v } -func (m *TLUpdatesChannelDifferenceEmpty) GetTimeout() int32 { return m.Data2.Timeout } - -func NewTLUpdatesChannelDifferenceEmpty() *TLUpdatesChannelDifferenceEmpty { - return &TLUpdatesChannelDifferenceEmpty{Data2: &Updates_ChannelDifference_Data{}} +// inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation; +func (m *InputFileLocation) To_InputSecureFileLocation() *TLInputSecureFileLocation { + return &TLInputSecureFileLocation{ + Data2: m.Data2, + } } -func (m *TLUpdatesChannelDifferenceEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_channelDifferenceEmpty)) - - // flags - var flags uint32 = 0 - if m.GetFinal() == true { - flags |= 1 << 0 - } - if m.GetTimeout() != 0 { - flags |= 1 << 1 +// inputTakeoutFileLocation#29be5899 = InputFileLocation; +func (m *InputFileLocation) To_InputTakeoutFileLocation() *TLInputTakeoutFileLocation { + return &TLInputTakeoutFileLocation{ + Data2: m.Data2, } - x.UInt(flags) +} - x.Int(m.GetPts()) - if m.GetTimeout() != 0 { - x.Int(m.GetTimeout()) +// inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation; +func (m *InputFileLocation) To_InputFileLocationLayer86() *TLInputFileLocationLayer86 { + return &TLInputFileLocationLayer86{ + Data2: m.Data2, } - - return x.buf } -func (m *TLUpdatesChannelDifferenceEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_channelDifferenceEmpty)) - - // flags - var flags uint32 = 0 - if m.GetFinal() == true { - flags |= 1 << 0 - } - if m.GetTimeout() != 0 { - flags |= 1 << 1 +// inputDocumentFileLocation#196683d9 id:long access_hash:long file_reference:bytes = InputFileLocation; +func (m *InputFileLocation) To_InputDocumentFileLocationLayer86() *TLInputDocumentFileLocationLayer86 { + return &TLInputDocumentFileLocationLayer86{ + Data2: m.Data2, } - x.UInt(flags) +} - x.Int(m.GetPts()) - if m.GetTimeout() != 0 { - x.Int(m.GetTimeout()) +// inputDocumentFileLocation#4e45abe9 id:long access_hash:long = InputFileLocation; +func (m *TLInputDocumentFileLocationLayer11) To_InputFileLocation() *InputFileLocation { + return &InputFileLocation{ + Constructor: TLConstructor_CRC32_inputDocumentFileLocationLayer11, + Data2: m.Data2, } +} + +func (m *TLInputDocumentFileLocationLayer11) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputDocumentFileLocationLayer11) GetId() int64 { return m.Data2.Id } + +func (m *TLInputDocumentFileLocationLayer11) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputDocumentFileLocationLayer11) GetAccessHash() int64 { return m.Data2.AccessHash } + +func NewTLInputDocumentFileLocationLayer11() *TLInputDocumentFileLocationLayer11 { + return &TLInputDocumentFileLocationLayer11{Data2: &InputFileLocation_Data{}} +} + +func (m *TLInputDocumentFileLocationLayer11) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocationLayer11)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLUpdatesChannelDifferenceEmpty) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetFinal(true) - } - m.SetPts(dbuf.Int()) - if (flags & (1 << 1)) != 0 { - m.SetTimeout(dbuf.Int()) - } +func (m *TLInputDocumentFileLocationLayer11) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocationLayer11)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + + return x.buf +} + +func (m *TLInputDocumentFileLocationLayer11) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } -// updates.channelDifferenceTooLong#6a9d7b35 flags:# final:flags.0?true pts:int timeout:flags.1?int top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int messages:Vector chats:Vector users:Vector = updates.ChannelDifference; -func (m *TLUpdatesChannelDifferenceTooLong) To_Updates_ChannelDifference() *Updates_ChannelDifference { - return &Updates_ChannelDifference{ - Constructor: TLConstructor_CRC32_updates_channelDifferenceTooLong, +// inputFileLocation#14637196 volume_id:long local_id:int secret:long = InputFileLocation; +func (m *TLInputFileLocation) To_InputFileLocation() *InputFileLocation { + return &InputFileLocation{ + Constructor: TLConstructor_CRC32_inputFileLocation, Data2: m.Data2, } } -func (m *TLUpdatesChannelDifferenceTooLong) SetFinal(v bool) { m.Data2.Final = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetFinal() bool { return m.Data2.Final } +func (m *TLInputFileLocation) SetVolumeId(v int64) { m.Data2.VolumeId = v } +func (m *TLInputFileLocation) GetVolumeId() int64 { return m.Data2.VolumeId } -func (m *TLUpdatesChannelDifferenceTooLong) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetPts() int32 { return m.Data2.Pts } +func (m *TLInputFileLocation) SetLocalId(v int32) { m.Data2.LocalId = v } +func (m *TLInputFileLocation) GetLocalId() int32 { return m.Data2.LocalId } -func (m *TLUpdatesChannelDifferenceTooLong) SetTimeout(v int32) { m.Data2.Timeout = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetTimeout() int32 { return m.Data2.Timeout } +func (m *TLInputFileLocation) SetSecret(v int64) { m.Data2.Secret = v } +func (m *TLInputFileLocation) GetSecret() int64 { return m.Data2.Secret } -func (m *TLUpdatesChannelDifferenceTooLong) SetTopMessage(v int32) { m.Data2.TopMessage = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetTopMessage() int32 { return m.Data2.TopMessage } +func NewTLInputFileLocation() *TLInputFileLocation { + return &TLInputFileLocation{Data2: &InputFileLocation_Data{}} +} -func (m *TLUpdatesChannelDifferenceTooLong) SetReadInboxMaxId(v int32) { m.Data2.ReadInboxMaxId = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetReadInboxMaxId() int32 { return m.Data2.ReadInboxMaxId } +func (m *TLInputFileLocation) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputFileLocation)) -func (m *TLUpdatesChannelDifferenceTooLong) SetReadOutboxMaxId(v int32) { m.Data2.ReadOutboxMaxId = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetReadOutboxMaxId() int32 { return m.Data2.ReadOutboxMaxId } + x.Long(m.GetVolumeId()) + x.Int(m.GetLocalId()) + x.Long(m.GetSecret()) -func (m *TLUpdatesChannelDifferenceTooLong) SetUnreadCount(v int32) { m.Data2.UnreadCount = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetUnreadCount() int32 { return m.Data2.UnreadCount } + return x.buf +} -func (m *TLUpdatesChannelDifferenceTooLong) SetUnreadMentionsCount(v int32) { - m.Data2.UnreadMentionsCount = v +func (m *TLInputFileLocation) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputFileLocation)) + + x.Long(m.GetVolumeId()) + x.Int(m.GetLocalId()) + x.Long(m.GetSecret()) + + return x.buf } -func (m *TLUpdatesChannelDifferenceTooLong) GetUnreadMentionsCount() int32 { - return m.Data2.UnreadMentionsCount + +func (m *TLInputFileLocation) Decode(dbuf *DecodeBuf) error { + m.SetVolumeId(dbuf.Long()) + m.SetLocalId(dbuf.Int()) + m.SetSecret(dbuf.Long()) + + return dbuf.err } -func (m *TLUpdatesChannelDifferenceTooLong) SetMessages(v []*Message) { m.Data2.Messages = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetMessages() []*Message { return m.Data2.Messages } +// inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation; +func (m *TLInputEncryptedFileLocation) To_InputFileLocation() *InputFileLocation { + return &InputFileLocation{ + Constructor: TLConstructor_CRC32_inputEncryptedFileLocation, + Data2: m.Data2, + } +} -func (m *TLUpdatesChannelDifferenceTooLong) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLInputEncryptedFileLocation) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputEncryptedFileLocation) GetId() int64 { return m.Data2.Id } -func (m *TLUpdatesChannelDifferenceTooLong) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLUpdatesChannelDifferenceTooLong) GetUsers() []*User { return m.Data2.Users } +func (m *TLInputEncryptedFileLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputEncryptedFileLocation) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLUpdatesChannelDifferenceTooLong() *TLUpdatesChannelDifferenceTooLong { - return &TLUpdatesChannelDifferenceTooLong{Data2: &Updates_ChannelDifference_Data{}} +func NewTLInputEncryptedFileLocation() *TLInputEncryptedFileLocation { + return &TLInputEncryptedFileLocation{Data2: &InputFileLocation_Data{}} } -func (m *TLUpdatesChannelDifferenceTooLong) Encode() []byte { +func (m *TLInputEncryptedFileLocation) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_channelDifferenceTooLong)) - - // flags - var flags uint32 = 0 - if m.GetFinal() == true { - flags |= 1 << 0 - } - if m.GetTimeout() != 0 { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFileLocation)) - x.Int(m.GetPts()) - if m.GetTimeout() != 0 { - x.Int(m.GetTimeout()) - } - x.Int(m.GetTopMessage()) - x.Int(m.GetReadInboxMaxId()) - x.Int(m.GetReadOutboxMaxId()) - x.Int(m.GetUnreadCount()) - x.Int(m.GetUnreadMentionsCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLUpdatesChannelDifferenceTooLong) EncodeToLayer(layer int) []byte { +func (m *TLInputEncryptedFileLocation) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_channelDifferenceTooLong)) - - // flags - var flags uint32 = 0 - if m.GetFinal() == true { - flags |= 1 << 0 - } - if m.GetTimeout() != 0 { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputEncryptedFileLocation)) - x.Int(m.GetPts()) - if m.GetTimeout() != 0 { - x.Int(m.GetTimeout()) - } - x.Int(m.GetTopMessage()) - x.Int(m.GetReadInboxMaxId()) - x.Int(m.GetReadOutboxMaxId()) - x.Int(m.GetUnreadCount()) - x.Int(m.GetUnreadMentionsCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLUpdatesChannelDifferenceTooLong) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetFinal(true) - } - m.SetPts(dbuf.Int()) - if (flags & (1 << 1)) != 0 { - m.SetTimeout(dbuf.Int()) - } - m.SetTopMessage(dbuf.Int()) - m.SetReadInboxMaxId(dbuf.Int()) - m.SetReadOutboxMaxId(dbuf.Int()) - m.SetUnreadCount(dbuf.Int()) - m.SetUnreadMentionsCount(dbuf.Int()) - c10 := dbuf.Int() - if c10 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 10, c10) - return dbuf.err - } - l10 := dbuf.Int() - v10 := make([]*Message, l10) - for i := int32(0); i < l10; i++ { - v10[i] = &Message{} - v10[i].Decode(dbuf) - } - m.SetMessages(v10) - - c11 := dbuf.Int() - if c11 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 11, c11) - return dbuf.err - } - l11 := dbuf.Int() - v11 := make([]*Chat, l11) - for i := int32(0); i < l11; i++ { - v11[i] = &Chat{} - v11[i].Decode(dbuf) - } - m.SetChats(v11) - - c12 := dbuf.Int() - if c12 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 12, c12) - return dbuf.err - } - l12 := dbuf.Int() - v12 := make([]*User, l12) - for i := int32(0); i < l12; i++ { - v12[i] = &User{} - v12[i].Decode(dbuf) - } - m.SetUsers(v12) +func (m *TLInputEncryptedFileLocation) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } -// updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference; -func (m *TLUpdatesChannelDifference) To_Updates_ChannelDifference() *Updates_ChannelDifference { - return &Updates_ChannelDifference{ - Constructor: TLConstructor_CRC32_updates_channelDifference, +// inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputFileLocation; +func (m *TLInputDocumentFileLocation) To_InputFileLocation() *InputFileLocation { + return &InputFileLocation{ + Constructor: TLConstructor_CRC32_inputDocumentFileLocation, Data2: m.Data2, } } -func (m *TLUpdatesChannelDifference) SetFinal(v bool) { m.Data2.Final = v } -func (m *TLUpdatesChannelDifference) GetFinal() bool { return m.Data2.Final } - -func (m *TLUpdatesChannelDifference) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdatesChannelDifference) GetPts() int32 { return m.Data2.Pts } +func (m *TLInputDocumentFileLocation) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputDocumentFileLocation) GetId() int64 { return m.Data2.Id } -func (m *TLUpdatesChannelDifference) SetTimeout(v int32) { m.Data2.Timeout = v } -func (m *TLUpdatesChannelDifference) GetTimeout() int32 { return m.Data2.Timeout } +func (m *TLInputDocumentFileLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputDocumentFileLocation) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLUpdatesChannelDifference) SetNewMessages(v []*Message) { m.Data2.NewMessages = v } -func (m *TLUpdatesChannelDifference) GetNewMessages() []*Message { return m.Data2.NewMessages } +func (m *TLInputDocumentFileLocation) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLInputDocumentFileLocation) GetVersion() int32 { return m.Data2.Version } -func (m *TLUpdatesChannelDifference) SetOtherUpdates(v []*Update) { m.Data2.OtherUpdates = v } -func (m *TLUpdatesChannelDifference) GetOtherUpdates() []*Update { return m.Data2.OtherUpdates } +func NewTLInputDocumentFileLocation() *TLInputDocumentFileLocation { + return &TLInputDocumentFileLocation{Data2: &InputFileLocation_Data{}} +} -func (m *TLUpdatesChannelDifference) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLUpdatesChannelDifference) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLInputDocumentFileLocation) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocation)) -func (m *TLUpdatesChannelDifference) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLUpdatesChannelDifference) GetUsers() []*User { return m.Data2.Users } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetVersion()) -func NewTLUpdatesChannelDifference() *TLUpdatesChannelDifference { - return &TLUpdatesChannelDifference{Data2: &Updates_ChannelDifference_Data{}} + return x.buf } -func (m *TLUpdatesChannelDifference) Encode() []byte { +func (m *TLInputDocumentFileLocation) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_channelDifference)) - - // flags - var flags uint32 = 0 - if m.GetFinal() == true { - flags |= 1 << 0 - } - if m.GetTimeout() != 0 { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocation)) - x.Int(m.GetPts()) - if m.GetTimeout() != 0 { - x.Int(m.GetTimeout()) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewMessages()))) - for _, v := range m.GetNewMessages() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetOtherUpdates()))) - for _, v := range m.GetOtherUpdates() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetVersion()) return x.buf } -func (m *TLUpdatesChannelDifference) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates_channelDifference)) +func (m *TLInputDocumentFileLocation) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetVersion(dbuf.Int()) - // flags - var flags uint32 = 0 - if m.GetFinal() == true { - flags |= 1 << 0 - } - if m.GetTimeout() != 0 { - flags |= 1 << 1 - } - x.UInt(flags) + return dbuf.err +} - x.Int(m.GetPts()) - if m.GetTimeout() != 0 { - x.Int(m.GetTimeout()) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetNewMessages()))) - for _, v := range m.GetNewMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetOtherUpdates()))) - for _, v := range m.GetOtherUpdates() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) +// inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation; +func (m *TLInputSecureFileLocation) To_InputFileLocation() *InputFileLocation { + return &InputFileLocation{ + Constructor: TLConstructor_CRC32_inputSecureFileLocation, + Data2: m.Data2, } +} + +func (m *TLInputSecureFileLocation) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputSecureFileLocation) GetId() int64 { return m.Data2.Id } + +func (m *TLInputSecureFileLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputSecureFileLocation) GetAccessHash() int64 { return m.Data2.AccessHash } + +func NewTLInputSecureFileLocation() *TLInputSecureFileLocation { + return &TLInputSecureFileLocation{Data2: &InputFileLocation_Data{}} +} + +func (m *TLInputSecureFileLocation) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputSecureFileLocation)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLUpdatesChannelDifference) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetFinal(true) - } - m.SetPts(dbuf.Int()) - if (flags & (1 << 1)) != 0 { - m.SetTimeout(dbuf.Int()) - } - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err - } - l5 := dbuf.Int() - v5 := make([]*Message, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &Message{} - v5[i].Decode(dbuf) - } - m.SetNewMessages(v5) +func (m *TLInputSecureFileLocation) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputSecureFileLocation)) - c6 := dbuf.Int() - if c6 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) - return dbuf.err - } - l6 := dbuf.Int() - v6 := make([]*Update, l6) - for i := int32(0); i < l6; i++ { - v6[i] = &Update{} - v6[i].Decode(dbuf) - } - m.SetOtherUpdates(v6) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) - c7 := dbuf.Int() - if c7 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) - return dbuf.err - } - l7 := dbuf.Int() - v7 := make([]*Chat, l7) - for i := int32(0); i < l7; i++ { - v7[i] = &Chat{} - v7[i].Decode(dbuf) - } - m.SetChats(v7) + return x.buf +} - c8 := dbuf.Int() - if c8 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) - return dbuf.err - } - l8 := dbuf.Int() - v8 := make([]*User, l8) - for i := int32(0); i < l8; i++ { - v8[i] = &User{} - v8[i].Decode(dbuf) - } - m.SetUsers(v8) +func (m *TLInputSecureFileLocation) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// BotInlineMessage <-- -// + TL_BotInlineMessageMediaAuto -// + TL_BotInlineMessageText -// + TL_BotInlineMessageMediaGeo -// + TL_BotInlineMessageMediaVenue -// + TL_BotInlineMessageMediaContact -// +// inputTakeoutFileLocation#29be5899 = InputFileLocation; +func (m *TLInputTakeoutFileLocation) To_InputFileLocation() *InputFileLocation { + return &InputFileLocation{ + Constructor: TLConstructor_CRC32_inputTakeoutFileLocation, + Data2: m.Data2, + } +} -func (m *BotInlineMessage) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_botInlineMessageMediaAuto: - t := m.To_BotInlineMessageMediaAuto() - return t.Encode() - case TLConstructor_CRC32_botInlineMessageText: - t := m.To_BotInlineMessageText() - return t.Encode() - case TLConstructor_CRC32_botInlineMessageMediaGeo: - t := m.To_BotInlineMessageMediaGeo() - return t.Encode() - case TLConstructor_CRC32_botInlineMessageMediaVenue: - t := m.To_BotInlineMessageMediaVenue() - return t.Encode() - case TLConstructor_CRC32_botInlineMessageMediaContact: - t := m.To_BotInlineMessageMediaContact() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *BotInlineMessage) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_botInlineMessageMediaAuto: - t := m.To_BotInlineMessageMediaAuto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_botInlineMessageText: - t := m.To_BotInlineMessageText() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_botInlineMessageMediaGeo: - t := m.To_BotInlineMessageMediaGeo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_botInlineMessageMediaVenue: - t := m.To_BotInlineMessageMediaVenue() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_botInlineMessageMediaContact: - t := m.To_BotInlineMessageMediaContact() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLInputTakeoutFileLocation() *TLInputTakeoutFileLocation { + return &TLInputTakeoutFileLocation{Data2: &InputFileLocation_Data{}} } -func (m *BotInlineMessage) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_botInlineMessageMediaAuto: - m2 := &TLBotInlineMessageMediaAuto{Data2: &BotInlineMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_botInlineMessageText: - m2 := &TLBotInlineMessageText{Data2: &BotInlineMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_botInlineMessageMediaGeo: - m2 := &TLBotInlineMessageMediaGeo{Data2: &BotInlineMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_botInlineMessageMediaVenue: - m2 := &TLBotInlineMessageMediaVenue{Data2: &BotInlineMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_botInlineMessageMediaContact: - m2 := &TLBotInlineMessageMediaContact{Data2: &BotInlineMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} +func (m *TLInputTakeoutFileLocation) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputTakeoutFileLocation)) -// botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *BotInlineMessage) To_BotInlineMessageMediaAuto() *TLBotInlineMessageMediaAuto { - return &TLBotInlineMessageMediaAuto{ - Data2: m.Data2, - } + return x.buf } -// botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *BotInlineMessage) To_BotInlineMessageText() *TLBotInlineMessageText { - return &TLBotInlineMessageText{ - Data2: m.Data2, - } -} +func (m *TLInputTakeoutFileLocation) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputTakeoutFileLocation)) -// botInlineMessageMediaGeo#b722de65 flags:# geo:GeoPoint period:int reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *BotInlineMessage) To_BotInlineMessageMediaGeo() *TLBotInlineMessageMediaGeo { - return &TLBotInlineMessageMediaGeo{ - Data2: m.Data2, - } + return x.buf } -// botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *BotInlineMessage) To_BotInlineMessageMediaVenue() *TLBotInlineMessageMediaVenue { - return &TLBotInlineMessageMediaVenue{ - Data2: m.Data2, - } -} +func (m *TLInputTakeoutFileLocation) Decode(dbuf *DecodeBuf) error { -// botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *BotInlineMessage) To_BotInlineMessageMediaContact() *TLBotInlineMessageMediaContact { - return &TLBotInlineMessageMediaContact{ - Data2: m.Data2, - } + return dbuf.err } -// botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *TLBotInlineMessageMediaAuto) To_BotInlineMessage() *BotInlineMessage { - return &BotInlineMessage{ - Constructor: TLConstructor_CRC32_botInlineMessageMediaAuto, +// inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation; +func (m *TLInputFileLocationLayer86) To_InputFileLocation() *InputFileLocation { + return &InputFileLocation{ + Constructor: TLConstructor_CRC32_inputFileLocationLayer86, Data2: m.Data2, } } -func (m *TLBotInlineMessageMediaAuto) SetMessage(v string) { m.Data2.Message = v } -func (m *TLBotInlineMessageMediaAuto) GetMessage() string { return m.Data2.Message } +func (m *TLInputFileLocationLayer86) SetVolumeId(v int64) { m.Data2.VolumeId = v } +func (m *TLInputFileLocationLayer86) GetVolumeId() int64 { return m.Data2.VolumeId } -func (m *TLBotInlineMessageMediaAuto) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLBotInlineMessageMediaAuto) GetEntities() []*MessageEntity { return m.Data2.Entities } +func (m *TLInputFileLocationLayer86) SetLocalId(v int32) { m.Data2.LocalId = v } +func (m *TLInputFileLocationLayer86) GetLocalId() int32 { return m.Data2.LocalId } -func (m *TLBotInlineMessageMediaAuto) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLBotInlineMessageMediaAuto) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } +func (m *TLInputFileLocationLayer86) SetSecret(v int64) { m.Data2.Secret = v } +func (m *TLInputFileLocationLayer86) GetSecret() int64 { return m.Data2.Secret } -func NewTLBotInlineMessageMediaAuto() *TLBotInlineMessageMediaAuto { - return &TLBotInlineMessageMediaAuto{Data2: &BotInlineMessage_Data{}} +func (m *TLInputFileLocationLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } +func (m *TLInputFileLocationLayer86) GetFileReference() []byte { return m.Data2.FileReference } + +func NewTLInputFileLocationLayer86() *TLInputFileLocationLayer86 { + return &TLInputFileLocationLayer86{Data2: &InputFileLocation_Data{}} } -func (m *TLBotInlineMessageMediaAuto) Encode() []byte { +func (m *TLInputFileLocationLayer86) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaAuto)) - - // flags - var flags uint32 = 0 - if m.GetEntities() != nil { - flags |= 1 << 1 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputFileLocationLayer86)) - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) - } + x.Long(m.GetVolumeId()) + x.Int(m.GetLocalId()) + x.Long(m.GetSecret()) + x.StringBytes(m.GetFileReference()) return x.buf } -func (m *TLBotInlineMessageMediaAuto) EncodeToLayer(layer int) []byte { +func (m *TLInputFileLocationLayer86) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaAuto)) - - // flags - var flags uint32 = 0 - if m.GetEntities() != nil { - flags |= 1 << 1 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputFileLocationLayer86)) - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) - } + x.Long(m.GetVolumeId()) + x.Int(m.GetLocalId()) + x.Long(m.GetSecret()) + x.StringBytes(m.GetFileReference()) return x.buf } -func (m *TLBotInlineMessageMediaAuto) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetMessage(dbuf.String()) - if (flags & (1 << 1)) != 0 { - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*MessageEntity, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &MessageEntity{} - v3[i].Decode(dbuf) - } - m.SetEntities(v3) - - } - if (flags & (1 << 2)) != 0 { - m4 := &ReplyMarkup{} - m4.Decode(dbuf) - m.SetReplyMarkup(m4) - } +func (m *TLInputFileLocationLayer86) Decode(dbuf *DecodeBuf) error { + m.SetVolumeId(dbuf.Long()) + m.SetLocalId(dbuf.Int()) + m.SetSecret(dbuf.Long()) + m.SetFileReference(dbuf.StringBytes()) return dbuf.err } -// botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *TLBotInlineMessageText) To_BotInlineMessage() *BotInlineMessage { - return &BotInlineMessage{ - Constructor: TLConstructor_CRC32_botInlineMessageText, +// inputDocumentFileLocation#196683d9 id:long access_hash:long file_reference:bytes = InputFileLocation; +func (m *TLInputDocumentFileLocationLayer86) To_InputFileLocation() *InputFileLocation { + return &InputFileLocation{ + Constructor: TLConstructor_CRC32_inputDocumentFileLocationLayer86, Data2: m.Data2, } } -func (m *TLBotInlineMessageText) SetNoWebpage(v bool) { m.Data2.NoWebpage = v } -func (m *TLBotInlineMessageText) GetNoWebpage() bool { return m.Data2.NoWebpage } - -func (m *TLBotInlineMessageText) SetMessage(v string) { m.Data2.Message = v } -func (m *TLBotInlineMessageText) GetMessage() string { return m.Data2.Message } +func (m *TLInputDocumentFileLocationLayer86) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputDocumentFileLocationLayer86) GetId() int64 { return m.Data2.Id } -func (m *TLBotInlineMessageText) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLBotInlineMessageText) GetEntities() []*MessageEntity { return m.Data2.Entities } +func (m *TLInputDocumentFileLocationLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputDocumentFileLocationLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLBotInlineMessageText) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLBotInlineMessageText) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } +func (m *TLInputDocumentFileLocationLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } +func (m *TLInputDocumentFileLocationLayer86) GetFileReference() []byte { return m.Data2.FileReference } -func NewTLBotInlineMessageText() *TLBotInlineMessageText { - return &TLBotInlineMessageText{Data2: &BotInlineMessage_Data{}} +func NewTLInputDocumentFileLocationLayer86() *TLInputDocumentFileLocationLayer86 { + return &TLInputDocumentFileLocationLayer86{Data2: &InputFileLocation_Data{}} } -func (m *TLBotInlineMessageText) Encode() []byte { +func (m *TLInputDocumentFileLocationLayer86) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageText)) - - // flags - var flags uint32 = 0 - if m.GetNoWebpage() == true { - flags |= 1 << 0 - } - if m.GetEntities() != nil { - flags |= 1 << 1 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocationLayer86)) - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) - } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) return x.buf } -func (m *TLBotInlineMessageText) EncodeToLayer(layer int) []byte { +func (m *TLInputDocumentFileLocationLayer86) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageText)) - - // flags - var flags uint32 = 0 - if m.GetNoWebpage() == true { - flags |= 1 << 0 - } - if m.GetEntities() != nil { - flags |= 1 << 1 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocationLayer86)) - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) - } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) return x.buf } -func (m *TLBotInlineMessageText) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetNoWebpage(true) - } - m.SetMessage(dbuf.String()) - if (flags & (1 << 1)) != 0 { - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*MessageEntity, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &MessageEntity{} - v4[i].Decode(dbuf) - } - m.SetEntities(v4) - - } - if (flags & (1 << 2)) != 0 { - m5 := &ReplyMarkup{} - m5.Decode(dbuf) - m.SetReplyMarkup(m5) - } +func (m *TLInputDocumentFileLocationLayer86) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetFileReference(dbuf.StringBytes()) return dbuf.err } -// botInlineMessageMediaGeo#b722de65 flags:# geo:GeoPoint period:int reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *TLBotInlineMessageMediaGeo) To_BotInlineMessage() *BotInlineMessage { - return &BotInlineMessage{ - Constructor: TLConstructor_CRC32_botInlineMessageMediaGeo, - Data2: m.Data2, - } -} - -func (m *TLBotInlineMessageMediaGeo) SetGeo(v *GeoPoint) { m.Data2.Geo = v } -func (m *TLBotInlineMessageMediaGeo) GetGeo() *GeoPoint { return m.Data2.Geo } - -func (m *TLBotInlineMessageMediaGeo) SetPeriod(v int32) { m.Data2.Period = v } -func (m *TLBotInlineMessageMediaGeo) GetPeriod() int32 { return m.Data2.Period } +/////////////////////////////////////////////////////////////////////////////// +// Account_PrivacyRules <-- +// + TL_AccountPrivacyRules +// -func (m *TLBotInlineMessageMediaGeo) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLBotInlineMessageMediaGeo) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } +func (m *Account_PrivacyRules) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_account_privacyRules: + t := m.To_AccountPrivacyRules() + return t.Encode() -func NewTLBotInlineMessageMediaGeo() *TLBotInlineMessageMediaGeo { - return &TLBotInlineMessageMediaGeo{Data2: &BotInlineMessage_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLBotInlineMessageMediaGeo) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaGeo)) - - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) +func (m *Account_PrivacyRules) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_account_privacyRules: + t := m.To_AccountPrivacyRules() + return t.EncodeToLayer(layer) - x.Bytes(m.GetGeo().Encode()) - x.Int(m.GetPeriod()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - - return x.buf } -func (m *TLBotInlineMessageMediaGeo) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaGeo)) - - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) +func (m *Account_PrivacyRules) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_account_privacyRules: + m2 := &TLAccountPrivacyRules{Data2: &Account_PrivacyRules_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - x.Bytes(m.GetGeo().EncodeToLayer(layer)) - x.Int(m.GetPeriod()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - - return x.buf + return dbuf.err } -func (m *TLBotInlineMessageMediaGeo) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m2 := &GeoPoint{} - m2.Decode(dbuf) - m.SetGeo(m2) - m.SetPeriod(dbuf.Int()) - if (flags & (1 << 2)) != 0 { - m4 := &ReplyMarkup{} - m4.Decode(dbuf) - m.SetReplyMarkup(m4) +// account.privacyRules#554abb6f rules:Vector users:Vector = account.PrivacyRules; +func (m *Account_PrivacyRules) To_AccountPrivacyRules() *TLAccountPrivacyRules { + return &TLAccountPrivacyRules{ + Data2: m.Data2, } - - return dbuf.err } -// botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *TLBotInlineMessageMediaVenue) To_BotInlineMessage() *BotInlineMessage { - return &BotInlineMessage{ - Constructor: TLConstructor_CRC32_botInlineMessageMediaVenue, +// account.privacyRules#554abb6f rules:Vector users:Vector = account.PrivacyRules; +func (m *TLAccountPrivacyRules) To_Account_PrivacyRules() *Account_PrivacyRules { + return &Account_PrivacyRules{ + Constructor: TLConstructor_CRC32_account_privacyRules, Data2: m.Data2, } } -func (m *TLBotInlineMessageMediaVenue) SetGeo(v *GeoPoint) { m.Data2.Geo = v } -func (m *TLBotInlineMessageMediaVenue) GetGeo() *GeoPoint { return m.Data2.Geo } - -func (m *TLBotInlineMessageMediaVenue) SetTitle(v string) { m.Data2.Title = v } -func (m *TLBotInlineMessageMediaVenue) GetTitle() string { return m.Data2.Title } - -func (m *TLBotInlineMessageMediaVenue) SetAddress(v string) { m.Data2.Address = v } -func (m *TLBotInlineMessageMediaVenue) GetAddress() string { return m.Data2.Address } - -func (m *TLBotInlineMessageMediaVenue) SetProvider(v string) { m.Data2.Provider = v } -func (m *TLBotInlineMessageMediaVenue) GetProvider() string { return m.Data2.Provider } - -func (m *TLBotInlineMessageMediaVenue) SetVenueId(v string) { m.Data2.VenueId = v } -func (m *TLBotInlineMessageMediaVenue) GetVenueId() string { return m.Data2.VenueId } - -func (m *TLBotInlineMessageMediaVenue) SetVenueType(v string) { m.Data2.VenueType = v } -func (m *TLBotInlineMessageMediaVenue) GetVenueType() string { return m.Data2.VenueType } +func (m *TLAccountPrivacyRules) SetRules(v []*PrivacyRule) { m.Data2.Rules = v } +func (m *TLAccountPrivacyRules) GetRules() []*PrivacyRule { return m.Data2.Rules } -func (m *TLBotInlineMessageMediaVenue) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLBotInlineMessageMediaVenue) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } +func (m *TLAccountPrivacyRules) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLAccountPrivacyRules) GetUsers() []*User { return m.Data2.Users } -func NewTLBotInlineMessageMediaVenue() *TLBotInlineMessageMediaVenue { - return &TLBotInlineMessageMediaVenue{Data2: &BotInlineMessage_Data{}} +func NewTLAccountPrivacyRules() *TLAccountPrivacyRules { + return &TLAccountPrivacyRules{Data2: &Account_PrivacyRules_Data{}} } -func (m *TLBotInlineMessageMediaVenue) Encode() []byte { +func (m *TLAccountPrivacyRules) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaVenue)) + x.Int(int32(TLConstructor_CRC32_account_privacyRules)) - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRules()))) + for _, v := range m.GetRules() { + x.buf = append(x.buf, (*v).Encode()...) } - x.UInt(flags) - - x.Bytes(m.GetGeo().Encode()) - x.String(m.GetTitle()) - x.String(m.GetAddress()) - x.String(m.GetProvider()) - x.String(m.GetVenueId()) - x.String(m.GetVenueType()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLBotInlineMessageMediaVenue) EncodeToLayer(layer int) []byte { +func (m *TLAccountPrivacyRules) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaVenue)) + x.Int(int32(TLConstructor_CRC32_account_privacyRules)) - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRules()))) + for _, v := range m.GetRules() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.UInt(flags) - - x.Bytes(m.GetGeo().EncodeToLayer(layer)) - x.String(m.GetTitle()) - x.String(m.GetAddress()) - x.String(m.GetProvider()) - x.String(m.GetVenueId()) - x.String(m.GetVenueType()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLBotInlineMessageMediaVenue) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m2 := &GeoPoint{} - m2.Decode(dbuf) - m.SetGeo(m2) - m.SetTitle(dbuf.String()) - m.SetAddress(dbuf.String()) - m.SetProvider(dbuf.String()) - m.SetVenueId(dbuf.String()) - m.SetVenueType(dbuf.String()) - if (flags & (1 << 2)) != 0 { - m8 := &ReplyMarkup{} - m8.Decode(dbuf) - m.SetReplyMarkup(m8) - } - - return dbuf.err -} - -// botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -func (m *TLBotInlineMessageMediaContact) To_BotInlineMessage() *BotInlineMessage { - return &BotInlineMessage{ - Constructor: TLConstructor_CRC32_botInlineMessageMediaContact, - Data2: m.Data2, - } -} - -func (m *TLBotInlineMessageMediaContact) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } -func (m *TLBotInlineMessageMediaContact) GetPhoneNumber() string { return m.Data2.PhoneNumber } - -func (m *TLBotInlineMessageMediaContact) SetFirstName(v string) { m.Data2.FirstName = v } -func (m *TLBotInlineMessageMediaContact) GetFirstName() string { return m.Data2.FirstName } - -func (m *TLBotInlineMessageMediaContact) SetLastName(v string) { m.Data2.LastName = v } -func (m *TLBotInlineMessageMediaContact) GetLastName() string { return m.Data2.LastName } - -func (m *TLBotInlineMessageMediaContact) SetVcard(v string) { m.Data2.Vcard = v } -func (m *TLBotInlineMessageMediaContact) GetVcard() string { return m.Data2.Vcard } - -func (m *TLBotInlineMessageMediaContact) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLBotInlineMessageMediaContact) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } - -func NewTLBotInlineMessageMediaContact() *TLBotInlineMessageMediaContact { - return &TLBotInlineMessageMediaContact{Data2: &BotInlineMessage_Data{}} -} - -func (m *TLBotInlineMessageMediaContact) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaContact)) - - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) - - x.String(m.GetPhoneNumber()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetVcard()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) +func (m *TLAccountPrivacyRules) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } - - return x.buf -} - -func (m *TLBotInlineMessageMediaContact) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaContact)) - - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 + l1 := dbuf.Int() + v1 := make([]*PrivacyRule, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &PrivacyRule{} + v1[i].Decode(dbuf) } - x.UInt(flags) + m.SetRules(v1) - x.String(m.GetPhoneNumber()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetVcard()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err } - - return x.buf -} - -func (m *TLBotInlineMessageMediaContact) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetPhoneNumber(dbuf.String()) - m.SetFirstName(dbuf.String()) - m.SetLastName(dbuf.String()) - m.SetVcard(dbuf.String()) - if (flags & (1 << 2)) != 0 { - m6 := &ReplyMarkup{} - m6.Decode(dbuf) - m.SetReplyMarkup(m6) + l2 := dbuf.Int() + v2 := make([]*User, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &User{} + v2[i].Decode(dbuf) } + m.SetUsers(v2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputWebFileLocation <-- -// + TL_InputWebFileLocation -// + TL_InputWebFileGeoPointLocation +// Account_Authorizations <-- +// + TL_AccountAuthorizations // -func (m *InputWebFileLocation) Encode() []byte { +func (m *Account_Authorizations) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputWebFileLocation: - t := m.To_InputWebFileLocation() - return t.Encode() - case TLConstructor_CRC32_inputWebFileGeoPointLocation: - t := m.To_InputWebFileGeoPointLocation() + case TLConstructor_CRC32_account_authorizations: + t := m.To_AccountAuthorizations() return t.Encode() default: @@ -38344,14 +38819,11 @@ func (m *InputWebFileLocation) Encode() []byte { } } -func (m *InputWebFileLocation) EncodeToLayer(layer int) []byte { +func (m *Account_Authorizations) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputWebFileLocation: - t := m.To_InputWebFileLocation() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputWebFileGeoPointLocation: - t := m.To_InputWebFileGeoPointLocation() + case TLConstructor_CRC32_account_authorizations: + t := m.To_AccountAuthorizations() return t.EncodeToLayer(layer) default: @@ -38360,15 +38832,11 @@ func (m *InputWebFileLocation) EncodeToLayer(layer int) []byte { } } -func (m *InputWebFileLocation) Decode(dbuf *DecodeBuf) error { +func (m *Account_Authorizations) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputWebFileLocation: - m2 := &TLInputWebFileLocation{Data2: &InputWebFileLocation_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputWebFileGeoPointLocation: - m2 := &TLInputWebFileGeoPointLocation{Data2: &InputWebFileLocation_Data{}} + case TLConstructor_CRC32_account_authorizations: + m2 := &TLAccountAuthorizations{Data2: &Account_Authorizations_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -38378,153 +38846,88 @@ func (m *InputWebFileLocation) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation; -func (m *InputWebFileLocation) To_InputWebFileLocation() *TLInputWebFileLocation { - return &TLInputWebFileLocation{ - Data2: m.Data2, - } -} - -// inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation; -func (m *InputWebFileLocation) To_InputWebFileGeoPointLocation() *TLInputWebFileGeoPointLocation { - return &TLInputWebFileGeoPointLocation{ +// account.authorizations#1250abde authorizations:Vector = account.Authorizations; +func (m *Account_Authorizations) To_AccountAuthorizations() *TLAccountAuthorizations { + return &TLAccountAuthorizations{ Data2: m.Data2, } } -// inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation; -func (m *TLInputWebFileLocation) To_InputWebFileLocation() *InputWebFileLocation { - return &InputWebFileLocation{ - Constructor: TLConstructor_CRC32_inputWebFileLocation, +// account.authorizations#1250abde authorizations:Vector = account.Authorizations; +func (m *TLAccountAuthorizations) To_Account_Authorizations() *Account_Authorizations { + return &Account_Authorizations{ + Constructor: TLConstructor_CRC32_account_authorizations, Data2: m.Data2, } } -func (m *TLInputWebFileLocation) SetUrl(v string) { m.Data2.Url = v } -func (m *TLInputWebFileLocation) GetUrl() string { return m.Data2.Url } - -func (m *TLInputWebFileLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputWebFileLocation) GetAccessHash() int64 { return m.Data2.AccessHash } - -func NewTLInputWebFileLocation() *TLInputWebFileLocation { - return &TLInputWebFileLocation{Data2: &InputWebFileLocation_Data{}} -} - -func (m *TLInputWebFileLocation) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputWebFileLocation)) - - x.String(m.GetUrl()) - x.Long(m.GetAccessHash()) +func (m *TLAccountAuthorizations) SetAuthorizations(v []*Authorization) { m.Data2.Authorizations = v } +func (m *TLAccountAuthorizations) GetAuthorizations() []*Authorization { return m.Data2.Authorizations } - return x.buf +func NewTLAccountAuthorizations() *TLAccountAuthorizations { + return &TLAccountAuthorizations{Data2: &Account_Authorizations_Data{}} } -func (m *TLInputWebFileLocation) EncodeToLayer(layer int) []byte { +func (m *TLAccountAuthorizations) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputWebFileLocation)) - - x.String(m.GetUrl()) - x.Long(m.GetAccessHash()) - - return x.buf -} - -func (m *TLInputWebFileLocation) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m.SetAccessHash(dbuf.Long()) - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_account_authorizations)) -// inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation; -func (m *TLInputWebFileGeoPointLocation) To_InputWebFileLocation() *InputWebFileLocation { - return &InputWebFileLocation{ - Constructor: TLConstructor_CRC32_inputWebFileGeoPointLocation, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAuthorizations()))) + for _, v := range m.GetAuthorizations() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func (m *TLInputWebFileGeoPointLocation) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } -func (m *TLInputWebFileGeoPointLocation) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } - -func (m *TLInputWebFileGeoPointLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputWebFileGeoPointLocation) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLInputWebFileGeoPointLocation) SetW(v int32) { m.Data2.W = v } -func (m *TLInputWebFileGeoPointLocation) GetW() int32 { return m.Data2.W } - -func (m *TLInputWebFileGeoPointLocation) SetH(v int32) { m.Data2.H = v } -func (m *TLInputWebFileGeoPointLocation) GetH() int32 { return m.Data2.H } - -func (m *TLInputWebFileGeoPointLocation) SetZoom(v int32) { m.Data2.Zoom = v } -func (m *TLInputWebFileGeoPointLocation) GetZoom() int32 { return m.Data2.Zoom } - -func (m *TLInputWebFileGeoPointLocation) SetScale(v int32) { m.Data2.Scale = v } -func (m *TLInputWebFileGeoPointLocation) GetScale() int32 { return m.Data2.Scale } - -func NewTLInputWebFileGeoPointLocation() *TLInputWebFileGeoPointLocation { - return &TLInputWebFileGeoPointLocation{Data2: &InputWebFileLocation_Data{}} -} - -func (m *TLInputWebFileGeoPointLocation) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputWebFileGeoPointLocation)) - - x.Bytes(m.GetGeoPoint().Encode()) - x.Long(m.GetAccessHash()) - x.Int(m.GetW()) - x.Int(m.GetH()) - x.Int(m.GetZoom()) - x.Int(m.GetScale()) return x.buf } -func (m *TLInputWebFileGeoPointLocation) EncodeToLayer(layer int) []byte { +func (m *TLAccountAuthorizations) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputWebFileGeoPointLocation)) + x.Int(int32(TLConstructor_CRC32_account_authorizations)) - x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) - x.Long(m.GetAccessHash()) - x.Int(m.GetW()) - x.Int(m.GetH()) - x.Int(m.GetZoom()) - x.Int(m.GetScale()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAuthorizations()))) + for _, v := range m.GetAuthorizations() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLInputWebFileGeoPointLocation) Decode(dbuf *DecodeBuf) error { - m1 := &InputGeoPoint{} - m1.Decode(dbuf) - m.SetGeoPoint(m1) - m.SetAccessHash(dbuf.Long()) - m.SetW(dbuf.Int()) - m.SetH(dbuf.Int()) - m.SetZoom(dbuf.Int()) - m.SetScale(dbuf.Int()) +func (m *TLAccountAuthorizations) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*Authorization, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Authorization{} + v1[i].Decode(dbuf) + } + m.SetAuthorizations(v1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SecurePasswordKdfAlgo <-- -// + TL_SecurePasswordKdfAlgoUnknown -// + TL_SecurePasswordKdfAlgoPBKDF2 -// + TL_SecurePasswordKdfAlgoSHA512 +// InputMessage <-- +// + TL_InputMessageID +// + TL_InputMessageReplyTo +// + TL_InputMessagePinned // -func (m *SecurePasswordKdfAlgo) Encode() []byte { +func (m *InputMessage) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_securePasswordKdfAlgoUnknown: - t := m.To_SecurePasswordKdfAlgoUnknown() + case TLConstructor_CRC32_inputMessageID: + t := m.To_InputMessageID() return t.Encode() - case TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2: - t := m.To_SecurePasswordKdfAlgoPBKDF2() + case TLConstructor_CRC32_inputMessageReplyTo: + t := m.To_InputMessageReplyTo() return t.Encode() - case TLConstructor_CRC32_securePasswordKdfAlgoSHA512: - t := m.To_SecurePasswordKdfAlgoSHA512() + case TLConstructor_CRC32_inputMessagePinned: + t := m.To_InputMessagePinned() return t.Encode() default: @@ -38533,17 +38936,17 @@ func (m *SecurePasswordKdfAlgo) Encode() []byte { } } -func (m *SecurePasswordKdfAlgo) EncodeToLayer(layer int) []byte { +func (m *InputMessage) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_securePasswordKdfAlgoUnknown: - t := m.To_SecurePasswordKdfAlgoUnknown() + case TLConstructor_CRC32_inputMessageID: + t := m.To_InputMessageID() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2: - t := m.To_SecurePasswordKdfAlgoPBKDF2() + case TLConstructor_CRC32_inputMessageReplyTo: + t := m.To_InputMessageReplyTo() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_securePasswordKdfAlgoSHA512: - t := m.To_SecurePasswordKdfAlgoSHA512() + case TLConstructor_CRC32_inputMessagePinned: + t := m.To_InputMessagePinned() return t.EncodeToLayer(layer) default: @@ -38552,19 +38955,19 @@ func (m *SecurePasswordKdfAlgo) EncodeToLayer(layer int) []byte { } } -func (m *SecurePasswordKdfAlgo) Decode(dbuf *DecodeBuf) error { +func (m *InputMessage) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_securePasswordKdfAlgoUnknown: - m2 := &TLSecurePasswordKdfAlgoUnknown{Data2: &SecurePasswordKdfAlgo_Data{}} + case TLConstructor_CRC32_inputMessageID: + m2 := &TLInputMessageID{Data2: &InputMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2: - m2 := &TLSecurePasswordKdfAlgoPBKDF2{Data2: &SecurePasswordKdfAlgo_Data{}} + case TLConstructor_CRC32_inputMessageReplyTo: + m2 := &TLInputMessageReplyTo{Data2: &InputMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_securePasswordKdfAlgoSHA512: - m2 := &TLSecurePasswordKdfAlgoSHA512{Data2: &SecurePasswordKdfAlgo_Data{}} + case TLConstructor_CRC32_inputMessagePinned: + m2 := &TLInputMessagePinned{Data2: &InputMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -38574,149 +38977,165 @@ func (m *SecurePasswordKdfAlgo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo; -func (m *SecurePasswordKdfAlgo) To_SecurePasswordKdfAlgoUnknown() *TLSecurePasswordKdfAlgoUnknown { - return &TLSecurePasswordKdfAlgoUnknown{ +// inputMessageID#a676a322 id:int = InputMessage; +func (m *InputMessage) To_InputMessageID() *TLInputMessageID { + return &TLInputMessageID{ Data2: m.Data2, } } -// securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo; -func (m *SecurePasswordKdfAlgo) To_SecurePasswordKdfAlgoPBKDF2() *TLSecurePasswordKdfAlgoPBKDF2 { - return &TLSecurePasswordKdfAlgoPBKDF2{ +// inputMessageReplyTo#bad88395 id:int = InputMessage; +func (m *InputMessage) To_InputMessageReplyTo() *TLInputMessageReplyTo { + return &TLInputMessageReplyTo{ Data2: m.Data2, } } -// securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo; -func (m *SecurePasswordKdfAlgo) To_SecurePasswordKdfAlgoSHA512() *TLSecurePasswordKdfAlgoSHA512 { - return &TLSecurePasswordKdfAlgoSHA512{ +// inputMessagePinned#86872538 = InputMessage; +func (m *InputMessage) To_InputMessagePinned() *TLInputMessagePinned { + return &TLInputMessagePinned{ Data2: m.Data2, } } -// securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo; -func (m *TLSecurePasswordKdfAlgoUnknown) To_SecurePasswordKdfAlgo() *SecurePasswordKdfAlgo { - return &SecurePasswordKdfAlgo{ - Constructor: TLConstructor_CRC32_securePasswordKdfAlgoUnknown, +// inputMessageID#a676a322 id:int = InputMessage; +func (m *TLInputMessageID) To_InputMessage() *InputMessage { + return &InputMessage{ + Constructor: TLConstructor_CRC32_inputMessageID, Data2: m.Data2, } } -func NewTLSecurePasswordKdfAlgoUnknown() *TLSecurePasswordKdfAlgoUnknown { - return &TLSecurePasswordKdfAlgoUnknown{Data2: &SecurePasswordKdfAlgo_Data{}} +func (m *TLInputMessageID) SetId(v int32) { m.Data2.Id = v } +func (m *TLInputMessageID) GetId() int32 { return m.Data2.Id } + +func NewTLInputMessageID() *TLInputMessageID { + return &TLInputMessageID{Data2: &InputMessage_Data{}} } -func (m *TLSecurePasswordKdfAlgoUnknown) Encode() []byte { +func (m *TLInputMessageID) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoUnknown)) + x.Int(int32(TLConstructor_CRC32_inputMessageID)) + + x.Int(m.GetId()) return x.buf } -func (m *TLSecurePasswordKdfAlgoUnknown) EncodeToLayer(layer int) []byte { +func (m *TLInputMessageID) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoUnknown)) + x.Int(int32(TLConstructor_CRC32_inputMessageID)) + + x.Int(m.GetId()) return x.buf } -func (m *TLSecurePasswordKdfAlgoUnknown) Decode(dbuf *DecodeBuf) error { +func (m *TLInputMessageID) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) return dbuf.err } -// securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo; -func (m *TLSecurePasswordKdfAlgoPBKDF2) To_SecurePasswordKdfAlgo() *SecurePasswordKdfAlgo { - return &SecurePasswordKdfAlgo{ - Constructor: TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2, +// inputMessageReplyTo#bad88395 id:int = InputMessage; +func (m *TLInputMessageReplyTo) To_InputMessage() *InputMessage { + return &InputMessage{ + Constructor: TLConstructor_CRC32_inputMessageReplyTo, Data2: m.Data2, } } -func (m *TLSecurePasswordKdfAlgoPBKDF2) SetSalt(v []byte) { m.Data2.Salt = v } -func (m *TLSecurePasswordKdfAlgoPBKDF2) GetSalt() []byte { return m.Data2.Salt } +func (m *TLInputMessageReplyTo) SetId(v int32) { m.Data2.Id = v } +func (m *TLInputMessageReplyTo) GetId() int32 { return m.Data2.Id } -func NewTLSecurePasswordKdfAlgoPBKDF2() *TLSecurePasswordKdfAlgoPBKDF2 { - return &TLSecurePasswordKdfAlgoPBKDF2{Data2: &SecurePasswordKdfAlgo_Data{}} +func NewTLInputMessageReplyTo() *TLInputMessageReplyTo { + return &TLInputMessageReplyTo{Data2: &InputMessage_Data{}} } -func (m *TLSecurePasswordKdfAlgoPBKDF2) Encode() []byte { +func (m *TLInputMessageReplyTo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2)) + x.Int(int32(TLConstructor_CRC32_inputMessageReplyTo)) - x.StringBytes(m.GetSalt()) + x.Int(m.GetId()) return x.buf } -func (m *TLSecurePasswordKdfAlgoPBKDF2) EncodeToLayer(layer int) []byte { +func (m *TLInputMessageReplyTo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2)) + x.Int(int32(TLConstructor_CRC32_inputMessageReplyTo)) - x.StringBytes(m.GetSalt()) + x.Int(m.GetId()) return x.buf } -func (m *TLSecurePasswordKdfAlgoPBKDF2) Decode(dbuf *DecodeBuf) error { - m.SetSalt(dbuf.StringBytes()) +func (m *TLInputMessageReplyTo) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) return dbuf.err } -// securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo; -func (m *TLSecurePasswordKdfAlgoSHA512) To_SecurePasswordKdfAlgo() *SecurePasswordKdfAlgo { - return &SecurePasswordKdfAlgo{ - Constructor: TLConstructor_CRC32_securePasswordKdfAlgoSHA512, +// inputMessagePinned#86872538 = InputMessage; +func (m *TLInputMessagePinned) To_InputMessage() *InputMessage { + return &InputMessage{ + Constructor: TLConstructor_CRC32_inputMessagePinned, Data2: m.Data2, } } -func (m *TLSecurePasswordKdfAlgoSHA512) SetSalt(v []byte) { m.Data2.Salt = v } -func (m *TLSecurePasswordKdfAlgoSHA512) GetSalt() []byte { return m.Data2.Salt } - -func NewTLSecurePasswordKdfAlgoSHA512() *TLSecurePasswordKdfAlgoSHA512 { - return &TLSecurePasswordKdfAlgoSHA512{Data2: &SecurePasswordKdfAlgo_Data{}} +func NewTLInputMessagePinned() *TLInputMessagePinned { + return &TLInputMessagePinned{Data2: &InputMessage_Data{}} } -func (m *TLSecurePasswordKdfAlgoSHA512) Encode() []byte { +func (m *TLInputMessagePinned) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoSHA512)) - - x.StringBytes(m.GetSalt()) + x.Int(int32(TLConstructor_CRC32_inputMessagePinned)) return x.buf } -func (m *TLSecurePasswordKdfAlgoSHA512) EncodeToLayer(layer int) []byte { +func (m *TLInputMessagePinned) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoSHA512)) - - x.StringBytes(m.GetSalt()) + x.Int(int32(TLConstructor_CRC32_inputMessagePinned)) return x.buf } -func (m *TLSecurePasswordKdfAlgoSHA512) Decode(dbuf *DecodeBuf) error { - m.SetSalt(dbuf.StringBytes()) +func (m *TLInputMessagePinned) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// User <-- -// + TL_UserEmpty -// + TL_User +// ChannelParticipantsFilter <-- +// + TL_ChannelParticipantsRecent +// + TL_ChannelParticipantsAdmins +// + TL_ChannelParticipantsKicked +// + TL_ChannelParticipantsBots +// + TL_ChannelParticipantsBanned +// + TL_ChannelParticipantsSearch // -func (m *User) Encode() []byte { +func (m *ChannelParticipantsFilter) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_userEmpty: - t := m.To_UserEmpty() + case TLConstructor_CRC32_channelParticipantsRecent: + t := m.To_ChannelParticipantsRecent() return t.Encode() - case TLConstructor_CRC32_user: - t := m.To_User() + case TLConstructor_CRC32_channelParticipantsAdmins: + t := m.To_ChannelParticipantsAdmins() + return t.Encode() + case TLConstructor_CRC32_channelParticipantsKicked: + t := m.To_ChannelParticipantsKicked() + return t.Encode() + case TLConstructor_CRC32_channelParticipantsBots: + t := m.To_ChannelParticipantsBots() + return t.Encode() + case TLConstructor_CRC32_channelParticipantsBanned: + t := m.To_ChannelParticipantsBanned() + return t.Encode() + case TLConstructor_CRC32_channelParticipantsSearch: + t := m.To_ChannelParticipantsSearch() return t.Encode() default: @@ -38725,14 +39144,26 @@ func (m *User) Encode() []byte { } } -func (m *User) EncodeToLayer(layer int) []byte { +func (m *ChannelParticipantsFilter) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_userEmpty: - t := m.To_UserEmpty() + case TLConstructor_CRC32_channelParticipantsRecent: + t := m.To_ChannelParticipantsRecent() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_user: - t := m.To_User() + case TLConstructor_CRC32_channelParticipantsAdmins: + t := m.To_ChannelParticipantsAdmins() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelParticipantsKicked: + t := m.To_ChannelParticipantsKicked() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelParticipantsBots: + t := m.To_ChannelParticipantsBots() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelParticipantsBanned: + t := m.To_ChannelParticipantsBanned() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelParticipantsSearch: + t := m.To_ChannelParticipantsSearch() return t.EncodeToLayer(layer) default: @@ -38741,15 +39172,31 @@ func (m *User) EncodeToLayer(layer int) []byte { } } -func (m *User) Decode(dbuf *DecodeBuf) error { +func (m *ChannelParticipantsFilter) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_userEmpty: - m2 := &TLUserEmpty{Data2: &User_Data{}} + case TLConstructor_CRC32_channelParticipantsRecent: + m2 := &TLChannelParticipantsRecent{Data2: &ChannelParticipantsFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_user: - m2 := &TLUser{Data2: &User_Data{}} + case TLConstructor_CRC32_channelParticipantsAdmins: + m2 := &TLChannelParticipantsAdmins{Data2: &ChannelParticipantsFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelParticipantsKicked: + m2 := &TLChannelParticipantsKicked{Data2: &ChannelParticipantsFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelParticipantsBots: + m2 := &TLChannelParticipantsBots{Data2: &ChannelParticipantsFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelParticipantsBanned: + m2 := &TLChannelParticipantsBanned{Data2: &ChannelParticipantsFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelParticipantsSearch: + m2 := &TLChannelParticipantsSearch{Data2: &ChannelParticipantsFilter_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -38759,451 +39206,390 @@ func (m *User) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// userEmpty#200250ba id:int = User; -func (m *User) To_UserEmpty() *TLUserEmpty { - return &TLUserEmpty{ +// channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter; +func (m *ChannelParticipantsFilter) To_ChannelParticipantsRecent() *TLChannelParticipantsRecent { + return &TLChannelParticipantsRecent{ Data2: m.Data2, } } -// user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User; -func (m *User) To_User() *TLUser { - return &TLUser{ +// channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter; +func (m *ChannelParticipantsFilter) To_ChannelParticipantsAdmins() *TLChannelParticipantsAdmins { + return &TLChannelParticipantsAdmins{ Data2: m.Data2, } } -// userEmpty#200250ba id:int = User; -func (m *TLUserEmpty) To_User() *User { - return &User{ - Constructor: TLConstructor_CRC32_userEmpty, - Data2: m.Data2, +// channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter; +func (m *ChannelParticipantsFilter) To_ChannelParticipantsKicked() *TLChannelParticipantsKicked { + return &TLChannelParticipantsKicked{ + Data2: m.Data2, } } -func (m *TLUserEmpty) SetId(v int32) { m.Data2.Id = v } -func (m *TLUserEmpty) GetId() int32 { return m.Data2.Id } +// channelParticipantsBots#b0d1865b = ChannelParticipantsFilter; +func (m *ChannelParticipantsFilter) To_ChannelParticipantsBots() *TLChannelParticipantsBots { + return &TLChannelParticipantsBots{ + Data2: m.Data2, + } +} -func NewTLUserEmpty() *TLUserEmpty { - return &TLUserEmpty{Data2: &User_Data{}} +// channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter; +func (m *ChannelParticipantsFilter) To_ChannelParticipantsBanned() *TLChannelParticipantsBanned { + return &TLChannelParticipantsBanned{ + Data2: m.Data2, + } } -func (m *TLUserEmpty) Encode() []byte { +// channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter; +func (m *ChannelParticipantsFilter) To_ChannelParticipantsSearch() *TLChannelParticipantsSearch { + return &TLChannelParticipantsSearch{ + Data2: m.Data2, + } +} + +// channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter; +func (m *TLChannelParticipantsRecent) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { + return &ChannelParticipantsFilter{ + Constructor: TLConstructor_CRC32_channelParticipantsRecent, + Data2: m.Data2, + } +} + +func NewTLChannelParticipantsRecent() *TLChannelParticipantsRecent { + return &TLChannelParticipantsRecent{Data2: &ChannelParticipantsFilter_Data{}} +} + +func (m *TLChannelParticipantsRecent) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userEmpty)) + x.Int(int32(TLConstructor_CRC32_channelParticipantsRecent)) - x.Int(m.GetId()) + return x.buf +} + +func (m *TLChannelParticipantsRecent) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantsRecent)) return x.buf } -func (m *TLUserEmpty) EncodeToLayer(layer int) []byte { +func (m *TLChannelParticipantsRecent) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter; +func (m *TLChannelParticipantsAdmins) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { + return &ChannelParticipantsFilter{ + Constructor: TLConstructor_CRC32_channelParticipantsAdmins, + Data2: m.Data2, + } +} + +func NewTLChannelParticipantsAdmins() *TLChannelParticipantsAdmins { + return &TLChannelParticipantsAdmins{Data2: &ChannelParticipantsFilter_Data{}} +} + +func (m *TLChannelParticipantsAdmins) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userEmpty)) + x.Int(int32(TLConstructor_CRC32_channelParticipantsAdmins)) - x.Int(m.GetId()) + return x.buf +} + +func (m *TLChannelParticipantsAdmins) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantsAdmins)) return x.buf } -func (m *TLUserEmpty) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) +func (m *TLChannelParticipantsAdmins) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User; -func (m *TLUser) To_User() *User { - return &User{ - Constructor: TLConstructor_CRC32_user, +// channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter; +func (m *TLChannelParticipantsKicked) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { + return &ChannelParticipantsFilter{ + Constructor: TLConstructor_CRC32_channelParticipantsKicked, Data2: m.Data2, } } -func (m *TLUser) SetSelf(v bool) { m.Data2.Self = v } -func (m *TLUser) GetSelf() bool { return m.Data2.Self } +func (m *TLChannelParticipantsKicked) SetQ(v string) { m.Data2.Q = v } +func (m *TLChannelParticipantsKicked) GetQ() string { return m.Data2.Q } -func (m *TLUser) SetContact(v bool) { m.Data2.Contact = v } -func (m *TLUser) GetContact() bool { return m.Data2.Contact } +func NewTLChannelParticipantsKicked() *TLChannelParticipantsKicked { + return &TLChannelParticipantsKicked{Data2: &ChannelParticipantsFilter_Data{}} +} -func (m *TLUser) SetMutualContact(v bool) { m.Data2.MutualContact = v } -func (m *TLUser) GetMutualContact() bool { return m.Data2.MutualContact } +func (m *TLChannelParticipantsKicked) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantsKicked)) -func (m *TLUser) SetDeleted(v bool) { m.Data2.Deleted = v } -func (m *TLUser) GetDeleted() bool { return m.Data2.Deleted } + x.String(m.GetQ()) -func (m *TLUser) SetBot(v bool) { m.Data2.Bot = v } -func (m *TLUser) GetBot() bool { return m.Data2.Bot } + return x.buf +} -func (m *TLUser) SetBotChatHistory(v bool) { m.Data2.BotChatHistory = v } -func (m *TLUser) GetBotChatHistory() bool { return m.Data2.BotChatHistory } +func (m *TLChannelParticipantsKicked) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantsKicked)) -func (m *TLUser) SetBotNochats(v bool) { m.Data2.BotNochats = v } -func (m *TLUser) GetBotNochats() bool { return m.Data2.BotNochats } + x.String(m.GetQ()) -func (m *TLUser) SetVerified(v bool) { m.Data2.Verified = v } -func (m *TLUser) GetVerified() bool { return m.Data2.Verified } + return x.buf +} -func (m *TLUser) SetRestricted(v bool) { m.Data2.Restricted = v } -func (m *TLUser) GetRestricted() bool { return m.Data2.Restricted } +func (m *TLChannelParticipantsKicked) Decode(dbuf *DecodeBuf) error { + m.SetQ(dbuf.String()) -func (m *TLUser) SetMin(v bool) { m.Data2.Min = v } -func (m *TLUser) GetMin() bool { return m.Data2.Min } + return dbuf.err +} -func (m *TLUser) SetBotInlineGeo(v bool) { m.Data2.BotInlineGeo = v } -func (m *TLUser) GetBotInlineGeo() bool { return m.Data2.BotInlineGeo } +// channelParticipantsBots#b0d1865b = ChannelParticipantsFilter; +func (m *TLChannelParticipantsBots) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { + return &ChannelParticipantsFilter{ + Constructor: TLConstructor_CRC32_channelParticipantsBots, + Data2: m.Data2, + } +} -func (m *TLUser) SetId(v int32) { m.Data2.Id = v } -func (m *TLUser) GetId() int32 { return m.Data2.Id } +func NewTLChannelParticipantsBots() *TLChannelParticipantsBots { + return &TLChannelParticipantsBots{Data2: &ChannelParticipantsFilter_Data{}} +} -func (m *TLUser) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLUser) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLChannelParticipantsBots) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantsBots)) -func (m *TLUser) SetFirstName(v string) { m.Data2.FirstName = v } -func (m *TLUser) GetFirstName() string { return m.Data2.FirstName } + return x.buf +} -func (m *TLUser) SetLastName(v string) { m.Data2.LastName = v } -func (m *TLUser) GetLastName() string { return m.Data2.LastName } +func (m *TLChannelParticipantsBots) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantsBots)) -func (m *TLUser) SetUsername(v string) { m.Data2.Username = v } -func (m *TLUser) GetUsername() string { return m.Data2.Username } + return x.buf +} -func (m *TLUser) SetPhone(v string) { m.Data2.Phone = v } -func (m *TLUser) GetPhone() string { return m.Data2.Phone } +func (m *TLChannelParticipantsBots) Decode(dbuf *DecodeBuf) error { -func (m *TLUser) SetPhoto(v *UserProfilePhoto) { m.Data2.Photo = v } -func (m *TLUser) GetPhoto() *UserProfilePhoto { return m.Data2.Photo } + return dbuf.err +} -func (m *TLUser) SetStatus(v *UserStatus) { m.Data2.Status = v } -func (m *TLUser) GetStatus() *UserStatus { return m.Data2.Status } +// channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter; +func (m *TLChannelParticipantsBanned) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { + return &ChannelParticipantsFilter{ + Constructor: TLConstructor_CRC32_channelParticipantsBanned, + Data2: m.Data2, + } +} -func (m *TLUser) SetBotInfoVersion(v int32) { m.Data2.BotInfoVersion = v } -func (m *TLUser) GetBotInfoVersion() int32 { return m.Data2.BotInfoVersion } +func (m *TLChannelParticipantsBanned) SetQ(v string) { m.Data2.Q = v } +func (m *TLChannelParticipantsBanned) GetQ() string { return m.Data2.Q } -func (m *TLUser) SetRestrictionReason(v string) { m.Data2.RestrictionReason = v } -func (m *TLUser) GetRestrictionReason() string { return m.Data2.RestrictionReason } +func NewTLChannelParticipantsBanned() *TLChannelParticipantsBanned { + return &TLChannelParticipantsBanned{Data2: &ChannelParticipantsFilter_Data{}} +} -func (m *TLUser) SetBotInlinePlaceholder(v string) { m.Data2.BotInlinePlaceholder = v } -func (m *TLUser) GetBotInlinePlaceholder() string { return m.Data2.BotInlinePlaceholder } +func (m *TLChannelParticipantsBanned) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantsBanned)) -func (m *TLUser) SetLangCode(v string) { m.Data2.LangCode = v } -func (m *TLUser) GetLangCode() string { return m.Data2.LangCode } + x.String(m.GetQ()) -func NewTLUser() *TLUser { - return &TLUser{Data2: &User_Data{}} + return x.buf } -func (m *TLUser) Encode() []byte { +func (m *TLChannelParticipantsBanned) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_user)) + x.Int(int32(TLConstructor_CRC32_channelParticipantsBanned)) - // flags - var flags uint32 = 0 - if m.GetSelf() == true { - flags |= 1 << 10 - } - if m.GetContact() == true { - flags |= 1 << 11 - } - if m.GetMutualContact() == true { - flags |= 1 << 12 - } - if m.GetDeleted() == true { - flags |= 1 << 13 - } - if m.GetBot() == true { - flags |= 1 << 14 - } - if m.GetBotChatHistory() == true { - flags |= 1 << 15 - } - if m.GetBotNochats() == true { - flags |= 1 << 16 - } - if m.GetVerified() == true { - flags |= 1 << 17 - } - if m.GetRestricted() == true { - flags |= 1 << 18 - } - if m.GetMin() == true { - flags |= 1 << 20 - } - if m.GetBotInlineGeo() == true { - flags |= 1 << 21 - } - if m.GetAccessHash() != 0 { - flags |= 1 << 0 - } - if m.GetFirstName() != "" { - flags |= 1 << 1 - } - if m.GetLastName() != "" { - flags |= 1 << 2 - } - if m.GetUsername() != "" { - flags |= 1 << 3 - } - if m.GetPhone() != "" { - flags |= 1 << 4 - } - if m.GetPhoto() != nil { - flags |= 1 << 5 - } - if m.GetStatus() != nil { - flags |= 1 << 6 - } - if m.GetBotInfoVersion() != 0 { - flags |= 1 << 14 - } - if m.GetRestrictionReason() != "" { - flags |= 1 << 18 - } - if m.GetBotInlinePlaceholder() != "" { - flags |= 1 << 19 - } - if m.GetLangCode() != "" { - flags |= 1 << 22 - } - x.UInt(flags) + x.String(m.GetQ()) - x.Int(m.GetId()) - if m.GetAccessHash() != 0 { - x.Long(m.GetAccessHash()) - } - if m.GetFirstName() != "" { - x.String(m.GetFirstName()) - } - if m.GetLastName() != "" { - x.String(m.GetLastName()) - } - if m.GetUsername() != "" { - x.String(m.GetUsername()) - } - if m.GetPhone() != "" { - x.String(m.GetPhone()) + return x.buf +} + +func (m *TLChannelParticipantsBanned) Decode(dbuf *DecodeBuf) error { + m.SetQ(dbuf.String()) + + return dbuf.err +} + +// channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter; +func (m *TLChannelParticipantsSearch) To_ChannelParticipantsFilter() *ChannelParticipantsFilter { + return &ChannelParticipantsFilter{ + Constructor: TLConstructor_CRC32_channelParticipantsSearch, + Data2: m.Data2, } - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().Encode()) +} + +func (m *TLChannelParticipantsSearch) SetQ(v string) { m.Data2.Q = v } +func (m *TLChannelParticipantsSearch) GetQ() string { return m.Data2.Q } + +func NewTLChannelParticipantsSearch() *TLChannelParticipantsSearch { + return &TLChannelParticipantsSearch{Data2: &ChannelParticipantsFilter_Data{}} +} + +func (m *TLChannelParticipantsSearch) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantsSearch)) + + x.String(m.GetQ()) + + return x.buf +} + +func (m *TLChannelParticipantsSearch) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantsSearch)) + + x.String(m.GetQ()) + + return x.buf +} + +func (m *TLChannelParticipantsSearch) Decode(dbuf *DecodeBuf) error { + m.SetQ(dbuf.String()) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// TopPeerCategoryPeers <-- +// + TL_TopPeerCategoryPeers +// + +func (m *TopPeerCategoryPeers) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_topPeerCategoryPeers: + t := m.To_TopPeerCategoryPeers() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - if m.GetStatus() != nil { - x.Bytes(m.GetStatus().Encode()) +} + +func (m *TopPeerCategoryPeers) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_topPeerCategoryPeers: + t := m.To_TopPeerCategoryPeers() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - if m.GetBotInfoVersion() != 0 { - x.Int(m.GetBotInfoVersion()) +} + +func (m *TopPeerCategoryPeers) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_topPeerCategoryPeers: + m2 := &TLTopPeerCategoryPeers{Data2: &TopPeerCategoryPeers_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - if m.GetRestrictionReason() != "" { - x.String(m.GetRestrictionReason()) + return dbuf.err +} + +// topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers; +func (m *TopPeerCategoryPeers) To_TopPeerCategoryPeers() *TLTopPeerCategoryPeers { + return &TLTopPeerCategoryPeers{ + Data2: m.Data2, } - if m.GetBotInlinePlaceholder() != "" { - x.String(m.GetBotInlinePlaceholder()) +} + +// topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers; +func (m *TLTopPeerCategoryPeers) To_TopPeerCategoryPeers() *TopPeerCategoryPeers { + return &TopPeerCategoryPeers{ + Constructor: TLConstructor_CRC32_topPeerCategoryPeers, + Data2: m.Data2, } - if m.GetLangCode() != "" { - x.String(m.GetLangCode()) +} + +func (m *TLTopPeerCategoryPeers) SetCategory(v *TopPeerCategory) { m.Data2.Category = v } +func (m *TLTopPeerCategoryPeers) GetCategory() *TopPeerCategory { return m.Data2.Category } + +func (m *TLTopPeerCategoryPeers) SetCount(v int32) { m.Data2.Count = v } +func (m *TLTopPeerCategoryPeers) GetCount() int32 { return m.Data2.Count } + +func (m *TLTopPeerCategoryPeers) SetPeers(v []*TopPeer) { m.Data2.Peers = v } +func (m *TLTopPeerCategoryPeers) GetPeers() []*TopPeer { return m.Data2.Peers } + +func NewTLTopPeerCategoryPeers() *TLTopPeerCategoryPeers { + return &TLTopPeerCategoryPeers{Data2: &TopPeerCategoryPeers_Data{}} +} + +func (m *TLTopPeerCategoryPeers) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryPeers)) + + x.Bytes(m.GetCategory().Encode()) + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPeers()))) + for _, v := range m.GetPeers() { + x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLUser) EncodeToLayer(layer int) []byte { +func (m *TLTopPeerCategoryPeers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_user)) + x.Int(int32(TLConstructor_CRC32_topPeerCategoryPeers)) - // flags - var flags uint32 = 0 - if m.GetSelf() == true { - flags |= 1 << 10 - } - if m.GetContact() == true { - flags |= 1 << 11 + x.Bytes(m.GetCategory().EncodeToLayer(layer)) + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPeers()))) + for _, v := range m.GetPeers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - if m.GetMutualContact() == true { - flags |= 1 << 12 + + return x.buf +} + +func (m *TLTopPeerCategoryPeers) Decode(dbuf *DecodeBuf) error { + m1 := &TopPeerCategory{} + m1.Decode(dbuf) + m.SetCategory(m1) + m.SetCount(dbuf.Int()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err } - if m.GetDeleted() == true { - flags |= 1 << 13 - } - if m.GetBot() == true { - flags |= 1 << 14 - } - if m.GetBotChatHistory() == true { - flags |= 1 << 15 - } - if m.GetBotNochats() == true { - flags |= 1 << 16 - } - if m.GetVerified() == true { - flags |= 1 << 17 - } - if m.GetRestricted() == true { - flags |= 1 << 18 - } - if m.GetMin() == true { - flags |= 1 << 20 - } - if m.GetBotInlineGeo() == true { - flags |= 1 << 21 - } - if m.GetAccessHash() != 0 { - flags |= 1 << 0 - } - if m.GetFirstName() != "" { - flags |= 1 << 1 - } - if m.GetLastName() != "" { - flags |= 1 << 2 - } - if m.GetUsername() != "" { - flags |= 1 << 3 - } - if m.GetPhone() != "" { - flags |= 1 << 4 - } - if m.GetPhoto() != nil { - flags |= 1 << 5 - } - if m.GetStatus() != nil { - flags |= 1 << 6 - } - if m.GetBotInfoVersion() != 0 { - flags |= 1 << 14 - } - if m.GetRestrictionReason() != "" { - flags |= 1 << 18 - } - if m.GetBotInlinePlaceholder() != "" { - flags |= 1 << 19 - } - if m.GetLangCode() != "" { - flags |= 1 << 22 - } - x.UInt(flags) - - x.Int(m.GetId()) - if m.GetAccessHash() != 0 { - x.Long(m.GetAccessHash()) - } - if m.GetFirstName() != "" { - x.String(m.GetFirstName()) - } - if m.GetLastName() != "" { - x.String(m.GetLastName()) - } - if m.GetUsername() != "" { - x.String(m.GetUsername()) - } - if m.GetPhone() != "" { - x.String(m.GetPhone()) - } - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - } - if m.GetStatus() != nil { - x.Bytes(m.GetStatus().EncodeToLayer(layer)) - } - if m.GetBotInfoVersion() != 0 { - x.Int(m.GetBotInfoVersion()) - } - if m.GetRestrictionReason() != "" { - x.String(m.GetRestrictionReason()) - } - if m.GetBotInlinePlaceholder() != "" { - x.String(m.GetBotInlinePlaceholder()) - } - if m.GetLangCode() != "" { - x.String(m.GetLangCode()) - } - - return x.buf -} - -func (m *TLUser) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 10)) != 0 { - m.SetSelf(true) - } - if (flags & (1 << 11)) != 0 { - m.SetContact(true) - } - if (flags & (1 << 12)) != 0 { - m.SetMutualContact(true) - } - if (flags & (1 << 13)) != 0 { - m.SetDeleted(true) - } - if (flags & (1 << 14)) != 0 { - m.SetBot(true) - } - if (flags & (1 << 15)) != 0 { - m.SetBotChatHistory(true) - } - if (flags & (1 << 16)) != 0 { - m.SetBotNochats(true) - } - if (flags & (1 << 17)) != 0 { - m.SetVerified(true) - } - if (flags & (1 << 18)) != 0 { - m.SetRestricted(true) - } - if (flags & (1 << 20)) != 0 { - m.SetMin(true) - } - if (flags & (1 << 21)) != 0 { - m.SetBotInlineGeo(true) - } - m.SetId(dbuf.Int()) - if (flags & (1 << 0)) != 0 { - m.SetAccessHash(dbuf.Long()) - } - if (flags & (1 << 1)) != 0 { - m.SetFirstName(dbuf.String()) - } - if (flags & (1 << 2)) != 0 { - m.SetLastName(dbuf.String()) - } - if (flags & (1 << 3)) != 0 { - m.SetUsername(dbuf.String()) - } - if (flags & (1 << 4)) != 0 { - m.SetPhone(dbuf.String()) - } - if (flags & (1 << 5)) != 0 { - m19 := &UserProfilePhoto{} - m19.Decode(dbuf) - m.SetPhoto(m19) - } - if (flags & (1 << 6)) != 0 { - m20 := &UserStatus{} - m20.Decode(dbuf) - m.SetStatus(m20) - } - if (flags & (1 << 14)) != 0 { - m.SetBotInfoVersion(dbuf.Int()) - } - if (flags & (1 << 18)) != 0 { - m.SetRestrictionReason(dbuf.String()) - } - if (flags & (1 << 19)) != 0 { - m.SetBotInlinePlaceholder(dbuf.String()) - } - if (flags & (1 << 22)) != 0 { - m.SetLangCode(dbuf.String()) + l3 := dbuf.Int() + v3 := make([]*TopPeer, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &TopPeer{} + v3[i].Decode(dbuf) } + m.SetPeers(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Help_Support <-- -// + TL_HelpSupport +// PostAddress <-- +// + TL_PostAddress // -func (m *Help_Support) Encode() []byte { +func (m *PostAddress) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_help_support: - t := m.To_HelpSupport() + case TLConstructor_CRC32_postAddress: + t := m.To_PostAddress() return t.Encode() default: @@ -39212,11 +39598,11 @@ func (m *Help_Support) Encode() []byte { } } -func (m *Help_Support) EncodeToLayer(layer int) []byte { +func (m *PostAddress) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_help_support: - t := m.To_HelpSupport() + case TLConstructor_CRC32_postAddress: + t := m.To_PostAddress() return t.EncodeToLayer(layer) default: @@ -39225,11 +39611,11 @@ func (m *Help_Support) EncodeToLayer(layer int) []byte { } } -func (m *Help_Support) Decode(dbuf *DecodeBuf) error { +func (m *PostAddress) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_help_support: - m2 := &TLHelpSupport{Data2: &Help_Support_Data{}} + case TLConstructor_CRC32_postAddress: + m2 := &TLPostAddress{Data2: &PostAddress_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -39239,69 +39625,123 @@ func (m *Help_Support) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// help.support#17c6b5f6 phone_number:string user:User = help.Support; -func (m *Help_Support) To_HelpSupport() *TLHelpSupport { - return &TLHelpSupport{ +// postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress; +func (m *PostAddress) To_PostAddress() *TLPostAddress { + return &TLPostAddress{ Data2: m.Data2, } } -// help.support#17c6b5f6 phone_number:string user:User = help.Support; -func (m *TLHelpSupport) To_Help_Support() *Help_Support { - return &Help_Support{ - Constructor: TLConstructor_CRC32_help_support, +// postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress; +func (m *TLPostAddress) To_PostAddress() *PostAddress { + return &PostAddress{ + Constructor: TLConstructor_CRC32_postAddress, Data2: m.Data2, } } -func (m *TLHelpSupport) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } -func (m *TLHelpSupport) GetPhoneNumber() string { return m.Data2.PhoneNumber } +func (m *TLPostAddress) SetStreetLine1(v string) { m.Data2.StreetLine1 = v } +func (m *TLPostAddress) GetStreetLine1() string { return m.Data2.StreetLine1 } -func (m *TLHelpSupport) SetUser(v *User) { m.Data2.User = v } -func (m *TLHelpSupport) GetUser() *User { return m.Data2.User } +func (m *TLPostAddress) SetStreetLine2(v string) { m.Data2.StreetLine2 = v } +func (m *TLPostAddress) GetStreetLine2() string { return m.Data2.StreetLine2 } -func NewTLHelpSupport() *TLHelpSupport { - return &TLHelpSupport{Data2: &Help_Support_Data{}} +func (m *TLPostAddress) SetCity(v string) { m.Data2.City = v } +func (m *TLPostAddress) GetCity() string { return m.Data2.City } + +func (m *TLPostAddress) SetState(v string) { m.Data2.State = v } +func (m *TLPostAddress) GetState() string { return m.Data2.State } + +func (m *TLPostAddress) SetCountryIso2(v string) { m.Data2.CountryIso2 = v } +func (m *TLPostAddress) GetCountryIso2() string { return m.Data2.CountryIso2 } + +func (m *TLPostAddress) SetPostCode(v string) { m.Data2.PostCode = v } +func (m *TLPostAddress) GetPostCode() string { return m.Data2.PostCode } + +func NewTLPostAddress() *TLPostAddress { + return &TLPostAddress{Data2: &PostAddress_Data{}} } -func (m *TLHelpSupport) Encode() []byte { +func (m *TLPostAddress) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_support)) + x.Int(int32(TLConstructor_CRC32_postAddress)) - x.String(m.GetPhoneNumber()) - x.Bytes(m.GetUser().Encode()) + x.String(m.GetStreetLine1()) + x.String(m.GetStreetLine2()) + x.String(m.GetCity()) + x.String(m.GetState()) + x.String(m.GetCountryIso2()) + x.String(m.GetPostCode()) return x.buf } -func (m *TLHelpSupport) EncodeToLayer(layer int) []byte { +func (m *TLPostAddress) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_support)) + x.Int(int32(TLConstructor_CRC32_postAddress)) - x.String(m.GetPhoneNumber()) - x.Bytes(m.GetUser().EncodeToLayer(layer)) + x.String(m.GetStreetLine1()) + x.String(m.GetStreetLine2()) + x.String(m.GetCity()) + x.String(m.GetState()) + x.String(m.GetCountryIso2()) + x.String(m.GetPostCode()) return x.buf } -func (m *TLHelpSupport) Decode(dbuf *DecodeBuf) error { - m.SetPhoneNumber(dbuf.String()) - m2 := &User{} - m2.Decode(dbuf) - m.SetUser(m2) +func (m *TLPostAddress) Decode(dbuf *DecodeBuf) error { + m.SetStreetLine1(dbuf.String()) + m.SetStreetLine2(dbuf.String()) + m.SetCity(dbuf.String()) + m.SetState(dbuf.String()) + m.SetCountryIso2(dbuf.String()) + m.SetPostCode(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Account_AuthorizationForm <-- -// + TL_AccountAuthorizationForm +// SecureValueError <-- +// + TL_SecureValueErrorData +// + TL_SecureValueErrorFrontSide +// + TL_SecureValueErrorReverseSide +// + TL_SecureValueErrorSelfie +// + TL_SecureValueErrorFile +// + TL_SecureValueErrorFiles +// + TL_SecureValueError +// + TL_SecureValueErrorTranslationFile +// + TL_SecureValueErrorTranslationFiles // -func (m *Account_AuthorizationForm) Encode() []byte { +func (m *SecureValueError) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_account_authorizationForm: - t := m.To_AccountAuthorizationForm() + case TLConstructor_CRC32_secureValueErrorData: + t := m.To_SecureValueErrorData() + return t.Encode() + case TLConstructor_CRC32_secureValueErrorFrontSide: + t := m.To_SecureValueErrorFrontSide() + return t.Encode() + case TLConstructor_CRC32_secureValueErrorReverseSide: + t := m.To_SecureValueErrorReverseSide() + return t.Encode() + case TLConstructor_CRC32_secureValueErrorSelfie: + t := m.To_SecureValueErrorSelfie() + return t.Encode() + case TLConstructor_CRC32_secureValueErrorFile: + t := m.To_SecureValueErrorFile() + return t.Encode() + case TLConstructor_CRC32_secureValueErrorFiles: + t := m.To_SecureValueErrorFiles() + return t.Encode() + case TLConstructor_CRC32_secureValueError: + t := m.To_SecureValueError() + return t.Encode() + case TLConstructor_CRC32_secureValueErrorTranslationFile: + t := m.To_SecureValueErrorTranslationFile() + return t.Encode() + case TLConstructor_CRC32_secureValueErrorTranslationFiles: + t := m.To_SecureValueErrorTranslationFiles() return t.Encode() default: @@ -39310,11 +39750,35 @@ func (m *Account_AuthorizationForm) Encode() []byte { } } -func (m *Account_AuthorizationForm) EncodeToLayer(layer int) []byte { +func (m *SecureValueError) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_account_authorizationForm: - t := m.To_AccountAuthorizationForm() + case TLConstructor_CRC32_secureValueErrorData: + t := m.To_SecureValueErrorData() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueErrorFrontSide: + t := m.To_SecureValueErrorFrontSide() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueErrorReverseSide: + t := m.To_SecureValueErrorReverseSide() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueErrorSelfie: + t := m.To_SecureValueErrorSelfie() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueErrorFile: + t := m.To_SecureValueErrorFile() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueErrorFiles: + t := m.To_SecureValueErrorFiles() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueError: + t := m.To_SecureValueError() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueErrorTranslationFile: + t := m.To_SecureValueErrorTranslationFile() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueErrorTranslationFiles: + t := m.To_SecureValueErrorTranslationFiles() return t.EncodeToLayer(layer) default: @@ -39323,11 +39787,43 @@ func (m *Account_AuthorizationForm) EncodeToLayer(layer int) []byte { } } -func (m *Account_AuthorizationForm) Decode(dbuf *DecodeBuf) error { +func (m *SecureValueError) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_account_authorizationForm: - m2 := &TLAccountAuthorizationForm{Data2: &Account_AuthorizationForm_Data{}} + case TLConstructor_CRC32_secureValueErrorData: + m2 := &TLSecureValueErrorData{Data2: &SecureValueError_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueErrorFrontSide: + m2 := &TLSecureValueErrorFrontSide{Data2: &SecureValueError_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueErrorReverseSide: + m2 := &TLSecureValueErrorReverseSide{Data2: &SecureValueError_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueErrorSelfie: + m2 := &TLSecureValueErrorSelfie{Data2: &SecureValueError_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueErrorFile: + m2 := &TLSecureValueErrorFile{Data2: &SecureValueError_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueErrorFiles: + m2 := &TLSecureValueErrorFiles{Data2: &SecureValueError_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueError: + m2 := &TLSecureValueError{Data2: &SecureValueError_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueErrorTranslationFile: + m2 := &TLSecureValueErrorTranslationFile{Data2: &SecureValueError_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueErrorTranslationFiles: + m2 := &TLSecureValueErrorTranslationFiles{Data2: &SecureValueError_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -39337,952 +39833,565 @@ func (m *Account_AuthorizationForm) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// account.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm; -func (m *Account_AuthorizationForm) To_AccountAuthorizationForm() *TLAccountAuthorizationForm { - return &TLAccountAuthorizationForm{ +// secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError; +func (m *SecureValueError) To_SecureValueErrorData() *TLSecureValueErrorData { + return &TLSecureValueErrorData{ Data2: m.Data2, } } -// account.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm; -func (m *TLAccountAuthorizationForm) To_Account_AuthorizationForm() *Account_AuthorizationForm { - return &Account_AuthorizationForm{ - Constructor: TLConstructor_CRC32_account_authorizationForm, - Data2: m.Data2, +// secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *SecureValueError) To_SecureValueErrorFrontSide() *TLSecureValueErrorFrontSide { + return &TLSecureValueErrorFrontSide{ + Data2: m.Data2, } } -func (m *TLAccountAuthorizationForm) SetRequiredTypes(v []*SecureRequiredType) { - m.Data2.RequiredTypes = v -} -func (m *TLAccountAuthorizationForm) GetRequiredTypes() []*SecureRequiredType { - return m.Data2.RequiredTypes +// secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *SecureValueError) To_SecureValueErrorReverseSide() *TLSecureValueErrorReverseSide { + return &TLSecureValueErrorReverseSide{ + Data2: m.Data2, + } } -func (m *TLAccountAuthorizationForm) SetValues(v []*SecureValue) { m.Data2.Values = v } -func (m *TLAccountAuthorizationForm) GetValues() []*SecureValue { return m.Data2.Values } - -func (m *TLAccountAuthorizationForm) SetErrors(v []*SecureValueError) { m.Data2.Errors = v } -func (m *TLAccountAuthorizationForm) GetErrors() []*SecureValueError { return m.Data2.Errors } - -func (m *TLAccountAuthorizationForm) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLAccountAuthorizationForm) GetUsers() []*User { return m.Data2.Users } - -func (m *TLAccountAuthorizationForm) SetPrivacyPolicyUrl(v string) { m.Data2.PrivacyPolicyUrl = v } -func (m *TLAccountAuthorizationForm) GetPrivacyPolicyUrl() string { return m.Data2.PrivacyPolicyUrl } - -func NewTLAccountAuthorizationForm() *TLAccountAuthorizationForm { - return &TLAccountAuthorizationForm{Data2: &Account_AuthorizationForm_Data{}} +// secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *SecureValueError) To_SecureValueErrorSelfie() *TLSecureValueErrorSelfie { + return &TLSecureValueErrorSelfie{ + Data2: m.Data2, + } } -func (m *TLAccountAuthorizationForm) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_authorizationForm)) - - // flags - var flags uint32 = 0 - if m.GetPrivacyPolicyUrl() != "" { - flags |= 1 << 0 +// secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *SecureValueError) To_SecureValueErrorFile() *TLSecureValueErrorFile { + return &TLSecureValueErrorFile{ + Data2: m.Data2, } - x.UInt(flags) +} - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRequiredTypes()))) - for _, v := range m.GetRequiredTypes() { - x.buf = append(x.buf, (*v).Encode()...) +// secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError; +func (m *SecureValueError) To_SecureValueErrorFiles() *TLSecureValueErrorFiles { + return &TLSecureValueErrorFiles{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetValues()))) - for _, v := range m.GetValues() { - x.buf = append(x.buf, (*v).Encode()...) +} + +// secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError; +func (m *SecureValueError) To_SecureValueError() *TLSecureValueError { + return &TLSecureValueError{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetErrors()))) - for _, v := range m.GetErrors() { - x.buf = append(x.buf, (*v).Encode()...) +} + +// secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *SecureValueError) To_SecureValueErrorTranslationFile() *TLSecureValueErrorTranslationFile { + return &TLSecureValueErrorTranslationFile{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) +} + +// secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError; +func (m *SecureValueError) To_SecureValueErrorTranslationFiles() *TLSecureValueErrorTranslationFiles { + return &TLSecureValueErrorTranslationFiles{ + Data2: m.Data2, } - if m.GetPrivacyPolicyUrl() != "" { - x.String(m.GetPrivacyPolicyUrl()) +} + +// secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError; +func (m *TLSecureValueErrorData) To_SecureValueError() *SecureValueError { + return &SecureValueError{ + Constructor: TLConstructor_CRC32_secureValueErrorData, + Data2: m.Data2, } +} - return x.buf +func (m *TLSecureValueErrorData) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueErrorData) GetType() *SecureValueType { return m.Data2.Type } + +func (m *TLSecureValueErrorData) SetDataHash(v []byte) { m.Data2.DataHash = v } +func (m *TLSecureValueErrorData) GetDataHash() []byte { return m.Data2.DataHash } + +func (m *TLSecureValueErrorData) SetField(v string) { m.Data2.Field = v } +func (m *TLSecureValueErrorData) GetField() string { return m.Data2.Field } + +func (m *TLSecureValueErrorData) SetText(v string) { m.Data2.Text = v } +func (m *TLSecureValueErrorData) GetText() string { return m.Data2.Text } + +func NewTLSecureValueErrorData() *TLSecureValueErrorData { + return &TLSecureValueErrorData{Data2: &SecureValueError_Data{}} } -func (m *TLAccountAuthorizationForm) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueErrorData) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_authorizationForm)) + x.Int(int32(TLConstructor_CRC32_secureValueErrorData)) - // flags - var flags uint32 = 0 - if m.GetPrivacyPolicyUrl() != "" { - flags |= 1 << 0 - } - x.UInt(flags) + x.Bytes(m.GetType().Encode()) + x.StringBytes(m.GetDataHash()) + x.String(m.GetField()) + x.String(m.GetText()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRequiredTypes()))) - for _, v := range m.GetRequiredTypes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetValues()))) - for _, v := range m.GetValues() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetErrors()))) - for _, v := range m.GetErrors() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - if m.GetPrivacyPolicyUrl() != "" { - x.String(m.GetPrivacyPolicyUrl()) - } + return x.buf +} + +func (m *TLSecureValueErrorData) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueErrorData)) + + x.Bytes(m.GetType().EncodeToLayer(layer)) + x.StringBytes(m.GetDataHash()) + x.String(m.GetField()) + x.String(m.GetText()) return x.buf } -func (m *TLAccountAuthorizationForm) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*SecureRequiredType, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &SecureRequiredType{} - v2[i].Decode(dbuf) - } - m.SetRequiredTypes(v2) +func (m *TLSecureValueErrorData) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + m.SetDataHash(dbuf.StringBytes()) + m.SetField(dbuf.String()) + m.SetText(dbuf.String()) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*SecureValue, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &SecureValue{} - v3[i].Decode(dbuf) - } - m.SetValues(v3) + return dbuf.err +} - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*SecureValueError, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &SecureValueError{} - v4[i].Decode(dbuf) +// secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *TLSecureValueErrorFrontSide) To_SecureValueError() *SecureValueError { + return &SecureValueError{ + Constructor: TLConstructor_CRC32_secureValueErrorFrontSide, + Data2: m.Data2, } - m.SetErrors(v4) +} - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err - } - l5 := dbuf.Int() - v5 := make([]*User, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &User{} - v5[i].Decode(dbuf) - } - m.SetUsers(v5) +func (m *TLSecureValueErrorFrontSide) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueErrorFrontSide) GetType() *SecureValueType { return m.Data2.Type } - if (flags & (1 << 0)) != 0 { - m.SetPrivacyPolicyUrl(dbuf.String()) - } +func (m *TLSecureValueErrorFrontSide) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } +func (m *TLSecureValueErrorFrontSide) GetFileHash() []byte { return m.Data2.FileHash_5 } - return dbuf.err +func (m *TLSecureValueErrorFrontSide) SetText(v string) { m.Data2.Text = v } +func (m *TLSecureValueErrorFrontSide) GetText() string { return m.Data2.Text } + +func NewTLSecureValueErrorFrontSide() *TLSecureValueErrorFrontSide { + return &TLSecureValueErrorFrontSide{Data2: &SecureValueError_Data{}} } -/////////////////////////////////////////////////////////////////////////////// -// Auth_SentCode <-- -// + TL_AuthSentCode -// +func (m *TLSecureValueErrorFrontSide) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueErrorFrontSide)) -func (m *Auth_SentCode) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_auth_sentCode: - t := m.To_AuthSentCode() - return t.Encode() + x.Bytes(m.GetType().Encode()) + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *Auth_SentCode) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_auth_sentCode: - t := m.To_AuthSentCode() - return t.EncodeToLayer(layer) +func (m *TLSecureValueErrorFrontSide) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueErrorFrontSide)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetType().EncodeToLayer(layer)) + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) + + return x.buf } -func (m *Auth_SentCode) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_auth_sentCode: - m2 := &TLAuthSentCode{Data2: &Auth_SentCode_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLSecureValueErrorFrontSide) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + m.SetFileHash(dbuf.StringBytes()) + m.SetText(dbuf.String()) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// auth.sentCode#38faab5f flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int terms_of_service:flags.3?help.TermsOfService = auth.SentCode; -func (m *Auth_SentCode) To_AuthSentCode() *TLAuthSentCode { - return &TLAuthSentCode{ - Data2: m.Data2, - } -} - -// auth.sentCode#38faab5f flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int terms_of_service:flags.3?help.TermsOfService = auth.SentCode; -func (m *TLAuthSentCode) To_Auth_SentCode() *Auth_SentCode { - return &Auth_SentCode{ - Constructor: TLConstructor_CRC32_auth_sentCode, +// secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *TLSecureValueErrorReverseSide) To_SecureValueError() *SecureValueError { + return &SecureValueError{ + Constructor: TLConstructor_CRC32_secureValueErrorReverseSide, Data2: m.Data2, } } -func (m *TLAuthSentCode) SetPhoneRegistered(v bool) { m.Data2.PhoneRegistered = v } -func (m *TLAuthSentCode) GetPhoneRegistered() bool { return m.Data2.PhoneRegistered } - -func (m *TLAuthSentCode) SetType(v *Auth_SentCodeType) { m.Data2.Type = v } -func (m *TLAuthSentCode) GetType() *Auth_SentCodeType { return m.Data2.Type } - -func (m *TLAuthSentCode) SetPhoneCodeHash(v string) { m.Data2.PhoneCodeHash = v } -func (m *TLAuthSentCode) GetPhoneCodeHash() string { return m.Data2.PhoneCodeHash } - -func (m *TLAuthSentCode) SetNextType(v *Auth_CodeType) { m.Data2.NextType = v } -func (m *TLAuthSentCode) GetNextType() *Auth_CodeType { return m.Data2.NextType } +func (m *TLSecureValueErrorReverseSide) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueErrorReverseSide) GetType() *SecureValueType { return m.Data2.Type } -func (m *TLAuthSentCode) SetTimeout(v int32) { m.Data2.Timeout = v } -func (m *TLAuthSentCode) GetTimeout() int32 { return m.Data2.Timeout } +func (m *TLSecureValueErrorReverseSide) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } +func (m *TLSecureValueErrorReverseSide) GetFileHash() []byte { return m.Data2.FileHash_5 } -func (m *TLAuthSentCode) SetTermsOfService(v *Help_TermsOfService) { m.Data2.TermsOfService = v } -func (m *TLAuthSentCode) GetTermsOfService() *Help_TermsOfService { return m.Data2.TermsOfService } +func (m *TLSecureValueErrorReverseSide) SetText(v string) { m.Data2.Text = v } +func (m *TLSecureValueErrorReverseSide) GetText() string { return m.Data2.Text } -func NewTLAuthSentCode() *TLAuthSentCode { - return &TLAuthSentCode{Data2: &Auth_SentCode_Data{}} +func NewTLSecureValueErrorReverseSide() *TLSecureValueErrorReverseSide { + return &TLSecureValueErrorReverseSide{Data2: &SecureValueError_Data{}} } -func (m *TLAuthSentCode) Encode() []byte { +func (m *TLSecureValueErrorReverseSide) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCode)) - - // flags - var flags uint32 = 0 - if m.GetPhoneRegistered() == true { - flags |= 1 << 0 - } - if m.GetNextType() != nil { - flags |= 1 << 1 - } - if m.GetTimeout() != 0 { - flags |= 1 << 2 - } - if m.GetTermsOfService() != nil { - flags |= 1 << 3 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_secureValueErrorReverseSide)) x.Bytes(m.GetType().Encode()) - x.String(m.GetPhoneCodeHash()) - if m.GetNextType() != nil { - x.Bytes(m.GetNextType().Encode()) - } - if m.GetTimeout() != 0 { - x.Int(m.GetTimeout()) - } - if m.GetTermsOfService() != nil { - x.Bytes(m.GetTermsOfService().Encode()) - } + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) return x.buf } -func (m *TLAuthSentCode) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueErrorReverseSide) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_sentCode)) - - // flags - var flags uint32 = 0 - if m.GetPhoneRegistered() == true { - flags |= 1 << 0 - } - if m.GetNextType() != nil { - flags |= 1 << 1 - } - if m.GetTimeout() != 0 { - flags |= 1 << 2 - } - if m.GetTermsOfService() != nil { - flags |= 1 << 3 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_secureValueErrorReverseSide)) x.Bytes(m.GetType().EncodeToLayer(layer)) - x.String(m.GetPhoneCodeHash()) - if m.GetNextType() != nil { - x.Bytes(m.GetNextType().EncodeToLayer(layer)) - } - if m.GetTimeout() != 0 { - x.Int(m.GetTimeout()) - } - if m.GetTermsOfService() != nil { - x.Bytes(m.GetTermsOfService().EncodeToLayer(layer)) - } + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) return x.buf } -func (m *TLAuthSentCode) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetPhoneRegistered(true) - } - m3 := &Auth_SentCodeType{} - m3.Decode(dbuf) - m.SetType(m3) - m.SetPhoneCodeHash(dbuf.String()) - if (flags & (1 << 1)) != 0 { - m5 := &Auth_CodeType{} - m5.Decode(dbuf) - m.SetNextType(m5) - } - if (flags & (1 << 2)) != 0 { - m.SetTimeout(dbuf.Int()) - } - if (flags & (1 << 3)) != 0 { - m7 := &Help_TermsOfService{} - m7.Decode(dbuf) - m.SetTermsOfService(m7) - } +func (m *TLSecureValueErrorReverseSide) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + m.SetFileHash(dbuf.StringBytes()) + m.SetText(dbuf.String()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Auth_PasswordRecovery <-- -// + TL_AuthPasswordRecovery -// +// secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *TLSecureValueErrorSelfie) To_SecureValueError() *SecureValueError { + return &SecureValueError{ + Constructor: TLConstructor_CRC32_secureValueErrorSelfie, + Data2: m.Data2, + } +} -func (m *Auth_PasswordRecovery) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_auth_passwordRecovery: - t := m.To_AuthPasswordRecovery() - return t.Encode() +func (m *TLSecureValueErrorSelfie) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueErrorSelfie) GetType() *SecureValueType { return m.Data2.Type } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLSecureValueErrorSelfie) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } +func (m *TLSecureValueErrorSelfie) GetFileHash() []byte { return m.Data2.FileHash_5 } + +func (m *TLSecureValueErrorSelfie) SetText(v string) { m.Data2.Text = v } +func (m *TLSecureValueErrorSelfie) GetText() string { return m.Data2.Text } + +func NewTLSecureValueErrorSelfie() *TLSecureValueErrorSelfie { + return &TLSecureValueErrorSelfie{Data2: &SecureValueError_Data{}} } -func (m *Auth_PasswordRecovery) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_auth_passwordRecovery: - t := m.To_AuthPasswordRecovery() - return t.EncodeToLayer(layer) +func (m *TLSecureValueErrorSelfie) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueErrorSelfie)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetType().Encode()) + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) + + return x.buf } -func (m *Auth_PasswordRecovery) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_auth_passwordRecovery: - m2 := &TLAuthPasswordRecovery{Data2: &Auth_PasswordRecovery_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLSecureValueErrorSelfie) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueErrorSelfie)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetType().EncodeToLayer(layer)) + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) + + return x.buf } -// auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; -func (m *Auth_PasswordRecovery) To_AuthPasswordRecovery() *TLAuthPasswordRecovery { - return &TLAuthPasswordRecovery{ - Data2: m.Data2, - } +func (m *TLSecureValueErrorSelfie) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + m.SetFileHash(dbuf.StringBytes()) + m.SetText(dbuf.String()) + + return dbuf.err } -// auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; -func (m *TLAuthPasswordRecovery) To_Auth_PasswordRecovery() *Auth_PasswordRecovery { - return &Auth_PasswordRecovery{ - Constructor: TLConstructor_CRC32_auth_passwordRecovery, +// secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *TLSecureValueErrorFile) To_SecureValueError() *SecureValueError { + return &SecureValueError{ + Constructor: TLConstructor_CRC32_secureValueErrorFile, Data2: m.Data2, } } -func (m *TLAuthPasswordRecovery) SetEmailPattern(v string) { m.Data2.EmailPattern = v } -func (m *TLAuthPasswordRecovery) GetEmailPattern() string { return m.Data2.EmailPattern } +func (m *TLSecureValueErrorFile) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueErrorFile) GetType() *SecureValueType { return m.Data2.Type } -func NewTLAuthPasswordRecovery() *TLAuthPasswordRecovery { - return &TLAuthPasswordRecovery{Data2: &Auth_PasswordRecovery_Data{}} +func (m *TLSecureValueErrorFile) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } +func (m *TLSecureValueErrorFile) GetFileHash() []byte { return m.Data2.FileHash_5 } + +func (m *TLSecureValueErrorFile) SetText(v string) { m.Data2.Text = v } +func (m *TLSecureValueErrorFile) GetText() string { return m.Data2.Text } + +func NewTLSecureValueErrorFile() *TLSecureValueErrorFile { + return &TLSecureValueErrorFile{Data2: &SecureValueError_Data{}} } -func (m *TLAuthPasswordRecovery) Encode() []byte { +func (m *TLSecureValueErrorFile) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_passwordRecovery)) + x.Int(int32(TLConstructor_CRC32_secureValueErrorFile)) - x.String(m.GetEmailPattern()) + x.Bytes(m.GetType().Encode()) + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) return x.buf } -func (m *TLAuthPasswordRecovery) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueErrorFile) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_passwordRecovery)) + x.Int(int32(TLConstructor_CRC32_secureValueErrorFile)) - x.String(m.GetEmailPattern()) + x.Bytes(m.GetType().EncodeToLayer(layer)) + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) return x.buf } -func (m *TLAuthPasswordRecovery) Decode(dbuf *DecodeBuf) error { - m.SetEmailPattern(dbuf.String()) +func (m *TLSecureValueErrorFile) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + m.SetFileHash(dbuf.StringBytes()) + m.SetText(dbuf.String()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// InputBotInlineResult <-- -// + TL_InputBotInlineResult -// + TL_InputBotInlineResultPhoto -// + TL_InputBotInlineResultDocument -// + TL_InputBotInlineResultGame -// - -func (m *InputBotInlineResult) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputBotInlineResult: - t := m.To_InputBotInlineResult() - return t.Encode() - case TLConstructor_CRC32_inputBotInlineResultPhoto: - t := m.To_InputBotInlineResultPhoto() - return t.Encode() - case TLConstructor_CRC32_inputBotInlineResultDocument: - t := m.To_InputBotInlineResultDocument() - return t.Encode() - case TLConstructor_CRC32_inputBotInlineResultGame: - t := m.To_InputBotInlineResultGame() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError; +func (m *TLSecureValueErrorFiles) To_SecureValueError() *SecureValueError { + return &SecureValueError{ + Constructor: TLConstructor_CRC32_secureValueErrorFiles, + Data2: m.Data2, } } -func (m *InputBotInlineResult) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputBotInlineResult: - t := m.To_InputBotInlineResult() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputBotInlineResultPhoto: - t := m.To_InputBotInlineResultPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputBotInlineResultDocument: - t := m.To_InputBotInlineResultDocument() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputBotInlineResultGame: - t := m.To_InputBotInlineResultGame() - return t.EncodeToLayer(layer) +func (m *TLSecureValueErrorFiles) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueErrorFiles) GetType() *SecureValueType { return m.Data2.Type } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLSecureValueErrorFiles) SetFileHash(v [][]byte) { m.Data2.FileHash_6 = v } +func (m *TLSecureValueErrorFiles) GetFileHash() [][]byte { return m.Data2.FileHash_6 } -func (m *InputBotInlineResult) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputBotInlineResult: - m2 := &TLInputBotInlineResult{Data2: &InputBotInlineResult_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputBotInlineResultPhoto: - m2 := &TLInputBotInlineResultPhoto{Data2: &InputBotInlineResult_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputBotInlineResultDocument: - m2 := &TLInputBotInlineResultDocument{Data2: &InputBotInlineResult_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputBotInlineResultGame: - m2 := &TLInputBotInlineResultGame{Data2: &InputBotInlineResult_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLSecureValueErrorFiles) SetText(v string) { m.Data2.Text = v } +func (m *TLSecureValueErrorFiles) GetText() string { return m.Data2.Text } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err +func NewTLSecureValueErrorFiles() *TLSecureValueErrorFiles { + return &TLSecureValueErrorFiles{Data2: &SecureValueError_Data{}} } -// inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult; -func (m *InputBotInlineResult) To_InputBotInlineResult() *TLInputBotInlineResult { - return &TLInputBotInlineResult{ - Data2: m.Data2, - } -} - -// inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult; -func (m *InputBotInlineResult) To_InputBotInlineResultPhoto() *TLInputBotInlineResultPhoto { - return &TLInputBotInlineResultPhoto{ - Data2: m.Data2, - } -} - -// inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult; -func (m *InputBotInlineResult) To_InputBotInlineResultDocument() *TLInputBotInlineResultDocument { - return &TLInputBotInlineResultDocument{ - Data2: m.Data2, - } -} - -// inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult; -func (m *InputBotInlineResult) To_InputBotInlineResultGame() *TLInputBotInlineResultGame { - return &TLInputBotInlineResultGame{ - Data2: m.Data2, - } -} - -// inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult; -func (m *TLInputBotInlineResult) To_InputBotInlineResult() *InputBotInlineResult { - return &InputBotInlineResult{ - Constructor: TLConstructor_CRC32_inputBotInlineResult, - Data2: m.Data2, - } -} - -func (m *TLInputBotInlineResult) SetId(v string) { m.Data2.Id = v } -func (m *TLInputBotInlineResult) GetId() string { return m.Data2.Id } - -func (m *TLInputBotInlineResult) SetType(v string) { m.Data2.Type = v } -func (m *TLInputBotInlineResult) GetType() string { return m.Data2.Type } - -func (m *TLInputBotInlineResult) SetTitle(v string) { m.Data2.Title = v } -func (m *TLInputBotInlineResult) GetTitle() string { return m.Data2.Title } - -func (m *TLInputBotInlineResult) SetDescription(v string) { m.Data2.Description = v } -func (m *TLInputBotInlineResult) GetDescription() string { return m.Data2.Description } - -func (m *TLInputBotInlineResult) SetUrl(v string) { m.Data2.Url = v } -func (m *TLInputBotInlineResult) GetUrl() string { return m.Data2.Url } - -func (m *TLInputBotInlineResult) SetThumb(v *InputWebDocument) { m.Data2.Thumb = v } -func (m *TLInputBotInlineResult) GetThumb() *InputWebDocument { return m.Data2.Thumb } - -func (m *TLInputBotInlineResult) SetContent(v *InputWebDocument) { m.Data2.Content = v } -func (m *TLInputBotInlineResult) GetContent() *InputWebDocument { return m.Data2.Content } - -func (m *TLInputBotInlineResult) SetSendMessage(v *InputBotInlineMessage) { m.Data2.SendMessage = v } -func (m *TLInputBotInlineResult) GetSendMessage() *InputBotInlineMessage { return m.Data2.SendMessage } - -func NewTLInputBotInlineResult() *TLInputBotInlineResult { - return &TLInputBotInlineResult{Data2: &InputBotInlineResult_Data{}} -} - -func (m *TLInputBotInlineResult) Encode() []byte { +func (m *TLSecureValueErrorFiles) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineResult)) + x.Int(int32(TLConstructor_CRC32_secureValueErrorFiles)) - // flags - var flags uint32 = 0 - if m.GetTitle() != "" { - flags |= 1 << 1 - } - if m.GetDescription() != "" { - flags |= 1 << 2 - } - if m.GetUrl() != "" { - flags |= 1 << 3 - } - if m.GetThumb() != nil { - flags |= 1 << 4 - } - if m.GetContent() != nil { - flags |= 1 << 5 - } - x.UInt(flags) + x.Bytes(m.GetType().Encode()) - x.String(m.GetId()) - x.String(m.GetType()) - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetDescription() != "" { - x.String(m.GetDescription()) - } - if m.GetUrl() != "" { - x.String(m.GetUrl()) - } - if m.GetThumb() != nil { - x.Bytes(m.GetThumb().Encode()) - } - if m.GetContent() != nil { - x.Bytes(m.GetContent().Encode()) - } - x.Bytes(m.GetSendMessage().Encode()) + x.String(m.GetText()) return x.buf } -func (m *TLInputBotInlineResult) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueErrorFiles) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineResult)) + x.Int(int32(TLConstructor_CRC32_secureValueErrorFiles)) - // flags - var flags uint32 = 0 - if m.GetTitle() != "" { - flags |= 1 << 1 - } - if m.GetDescription() != "" { - flags |= 1 << 2 - } - if m.GetUrl() != "" { - flags |= 1 << 3 - } - if m.GetThumb() != nil { - flags |= 1 << 4 - } - if m.GetContent() != nil { - flags |= 1 << 5 - } - x.UInt(flags) + x.Bytes(m.GetType().EncodeToLayer(layer)) - x.String(m.GetId()) - x.String(m.GetType()) - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetDescription() != "" { - x.String(m.GetDescription()) - } - if m.GetUrl() != "" { - x.String(m.GetUrl()) - } - if m.GetThumb() != nil { - x.Bytes(m.GetThumb().EncodeToLayer(layer)) - } - if m.GetContent() != nil { - x.Bytes(m.GetContent().EncodeToLayer(layer)) - } - x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) + x.String(m.GetText()) return x.buf } -func (m *TLInputBotInlineResult) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetId(dbuf.String()) - m.SetType(dbuf.String()) - if (flags & (1 << 1)) != 0 { - m.SetTitle(dbuf.String()) - } - if (flags & (1 << 2)) != 0 { - m.SetDescription(dbuf.String()) - } - if (flags & (1 << 3)) != 0 { - m.SetUrl(dbuf.String()) - } - if (flags & (1 << 4)) != 0 { - m7 := &InputWebDocument{} - m7.Decode(dbuf) - m.SetThumb(m7) - } - if (flags & (1 << 5)) != 0 { - m8 := &InputWebDocument{} - m8.Decode(dbuf) - m.SetContent(m8) - } - m9 := &InputBotInlineMessage{} - m9.Decode(dbuf) - m.SetSendMessage(m9) +func (m *TLSecureValueErrorFiles) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + + m.SetText(dbuf.String()) return dbuf.err } -// inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult; -func (m *TLInputBotInlineResultPhoto) To_InputBotInlineResult() *InputBotInlineResult { - return &InputBotInlineResult{ - Constructor: TLConstructor_CRC32_inputBotInlineResultPhoto, +// secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError; +func (m *TLSecureValueError) To_SecureValueError() *SecureValueError { + return &SecureValueError{ + Constructor: TLConstructor_CRC32_secureValueError, Data2: m.Data2, } } -func (m *TLInputBotInlineResultPhoto) SetId(v string) { m.Data2.Id = v } -func (m *TLInputBotInlineResultPhoto) GetId() string { return m.Data2.Id } - -func (m *TLInputBotInlineResultPhoto) SetType(v string) { m.Data2.Type = v } -func (m *TLInputBotInlineResultPhoto) GetType() string { return m.Data2.Type } +func (m *TLSecureValueError) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueError) GetType() *SecureValueType { return m.Data2.Type } -func (m *TLInputBotInlineResultPhoto) SetPhoto(v *InputPhoto) { m.Data2.Photo = v } -func (m *TLInputBotInlineResultPhoto) GetPhoto() *InputPhoto { return m.Data2.Photo } +func (m *TLSecureValueError) SetHash(v []byte) { m.Data2.Hash = v } +func (m *TLSecureValueError) GetHash() []byte { return m.Data2.Hash } -func (m *TLInputBotInlineResultPhoto) SetSendMessage(v *InputBotInlineMessage) { - m.Data2.SendMessage = v -} -func (m *TLInputBotInlineResultPhoto) GetSendMessage() *InputBotInlineMessage { - return m.Data2.SendMessage -} +func (m *TLSecureValueError) SetText(v string) { m.Data2.Text = v } +func (m *TLSecureValueError) GetText() string { return m.Data2.Text } -func NewTLInputBotInlineResultPhoto() *TLInputBotInlineResultPhoto { - return &TLInputBotInlineResultPhoto{Data2: &InputBotInlineResult_Data{}} +func NewTLSecureValueError() *TLSecureValueError { + return &TLSecureValueError{Data2: &SecureValueError_Data{}} } -func (m *TLInputBotInlineResultPhoto) Encode() []byte { +func (m *TLSecureValueError) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineResultPhoto)) + x.Int(int32(TLConstructor_CRC32_secureValueError)) - x.String(m.GetId()) - x.String(m.GetType()) - x.Bytes(m.GetPhoto().Encode()) - x.Bytes(m.GetSendMessage().Encode()) + x.Bytes(m.GetType().Encode()) + x.StringBytes(m.GetHash()) + x.String(m.GetText()) return x.buf } -func (m *TLInputBotInlineResultPhoto) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueError) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineResultPhoto)) + x.Int(int32(TLConstructor_CRC32_secureValueError)) - x.String(m.GetId()) - x.String(m.GetType()) - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) + x.Bytes(m.GetType().EncodeToLayer(layer)) + x.StringBytes(m.GetHash()) + x.String(m.GetText()) return x.buf } -func (m *TLInputBotInlineResultPhoto) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.String()) - m.SetType(dbuf.String()) - m3 := &InputPhoto{} - m3.Decode(dbuf) - m.SetPhoto(m3) - m4 := &InputBotInlineMessage{} - m4.Decode(dbuf) - m.SetSendMessage(m4) +func (m *TLSecureValueError) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + m.SetHash(dbuf.StringBytes()) + m.SetText(dbuf.String()) return dbuf.err } -// inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult; -func (m *TLInputBotInlineResultDocument) To_InputBotInlineResult() *InputBotInlineResult { - return &InputBotInlineResult{ - Constructor: TLConstructor_CRC32_inputBotInlineResultDocument, +// secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError; +func (m *TLSecureValueErrorTranslationFile) To_SecureValueError() *SecureValueError { + return &SecureValueError{ + Constructor: TLConstructor_CRC32_secureValueErrorTranslationFile, Data2: m.Data2, } } -func (m *TLInputBotInlineResultDocument) SetId(v string) { m.Data2.Id = v } -func (m *TLInputBotInlineResultDocument) GetId() string { return m.Data2.Id } - -func (m *TLInputBotInlineResultDocument) SetType(v string) { m.Data2.Type = v } -func (m *TLInputBotInlineResultDocument) GetType() string { return m.Data2.Type } - -func (m *TLInputBotInlineResultDocument) SetTitle(v string) { m.Data2.Title = v } -func (m *TLInputBotInlineResultDocument) GetTitle() string { return m.Data2.Title } - -func (m *TLInputBotInlineResultDocument) SetDescription(v string) { m.Data2.Description = v } -func (m *TLInputBotInlineResultDocument) GetDescription() string { return m.Data2.Description } +func (m *TLSecureValueErrorTranslationFile) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueErrorTranslationFile) GetType() *SecureValueType { return m.Data2.Type } -func (m *TLInputBotInlineResultDocument) SetDocument(v *InputDocument) { m.Data2.Document = v } -func (m *TLInputBotInlineResultDocument) GetDocument() *InputDocument { return m.Data2.Document } +func (m *TLSecureValueErrorTranslationFile) SetFileHash(v []byte) { m.Data2.FileHash_5 = v } +func (m *TLSecureValueErrorTranslationFile) GetFileHash() []byte { return m.Data2.FileHash_5 } -func (m *TLInputBotInlineResultDocument) SetSendMessage(v *InputBotInlineMessage) { - m.Data2.SendMessage = v -} -func (m *TLInputBotInlineResultDocument) GetSendMessage() *InputBotInlineMessage { - return m.Data2.SendMessage -} +func (m *TLSecureValueErrorTranslationFile) SetText(v string) { m.Data2.Text = v } +func (m *TLSecureValueErrorTranslationFile) GetText() string { return m.Data2.Text } -func NewTLInputBotInlineResultDocument() *TLInputBotInlineResultDocument { - return &TLInputBotInlineResultDocument{Data2: &InputBotInlineResult_Data{}} +func NewTLSecureValueErrorTranslationFile() *TLSecureValueErrorTranslationFile { + return &TLSecureValueErrorTranslationFile{Data2: &SecureValueError_Data{}} } -func (m *TLInputBotInlineResultDocument) Encode() []byte { +func (m *TLSecureValueErrorTranslationFile) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineResultDocument)) - - // flags - var flags uint32 = 0 - if m.GetTitle() != "" { - flags |= 1 << 1 - } - if m.GetDescription() != "" { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_secureValueErrorTranslationFile)) - x.String(m.GetId()) - x.String(m.GetType()) - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetDescription() != "" { - x.String(m.GetDescription()) - } - x.Bytes(m.GetDocument().Encode()) - x.Bytes(m.GetSendMessage().Encode()) + x.Bytes(m.GetType().Encode()) + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) return x.buf } -func (m *TLInputBotInlineResultDocument) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueErrorTranslationFile) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineResultDocument)) - - // flags - var flags uint32 = 0 - if m.GetTitle() != "" { - flags |= 1 << 1 - } - if m.GetDescription() != "" { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_secureValueErrorTranslationFile)) - x.String(m.GetId()) - x.String(m.GetType()) - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetDescription() != "" { - x.String(m.GetDescription()) - } - x.Bytes(m.GetDocument().EncodeToLayer(layer)) - x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) + x.Bytes(m.GetType().EncodeToLayer(layer)) + x.StringBytes(m.GetFileHash()) + x.String(m.GetText()) return x.buf } -func (m *TLInputBotInlineResultDocument) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetId(dbuf.String()) - m.SetType(dbuf.String()) - if (flags & (1 << 1)) != 0 { - m.SetTitle(dbuf.String()) - } - if (flags & (1 << 2)) != 0 { - m.SetDescription(dbuf.String()) - } - m6 := &InputDocument{} - m6.Decode(dbuf) - m.SetDocument(m6) - m7 := &InputBotInlineMessage{} - m7.Decode(dbuf) - m.SetSendMessage(m7) +func (m *TLSecureValueErrorTranslationFile) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + m.SetFileHash(dbuf.StringBytes()) + m.SetText(dbuf.String()) return dbuf.err } -// inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult; -func (m *TLInputBotInlineResultGame) To_InputBotInlineResult() *InputBotInlineResult { - return &InputBotInlineResult{ - Constructor: TLConstructor_CRC32_inputBotInlineResultGame, +// secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError; +func (m *TLSecureValueErrorTranslationFiles) To_SecureValueError() *SecureValueError { + return &SecureValueError{ + Constructor: TLConstructor_CRC32_secureValueErrorTranslationFiles, Data2: m.Data2, } } -func (m *TLInputBotInlineResultGame) SetId(v string) { m.Data2.Id = v } -func (m *TLInputBotInlineResultGame) GetId() string { return m.Data2.Id } +func (m *TLSecureValueErrorTranslationFiles) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureValueErrorTranslationFiles) GetType() *SecureValueType { return m.Data2.Type } -func (m *TLInputBotInlineResultGame) SetShortName(v string) { m.Data2.ShortName = v } -func (m *TLInputBotInlineResultGame) GetShortName() string { return m.Data2.ShortName } +func (m *TLSecureValueErrorTranslationFiles) SetFileHash(v [][]byte) { m.Data2.FileHash_6 = v } +func (m *TLSecureValueErrorTranslationFiles) GetFileHash() [][]byte { return m.Data2.FileHash_6 } -func (m *TLInputBotInlineResultGame) SetSendMessage(v *InputBotInlineMessage) { m.Data2.SendMessage = v } -func (m *TLInputBotInlineResultGame) GetSendMessage() *InputBotInlineMessage { - return m.Data2.SendMessage -} +func (m *TLSecureValueErrorTranslationFiles) SetText(v string) { m.Data2.Text = v } +func (m *TLSecureValueErrorTranslationFiles) GetText() string { return m.Data2.Text } -func NewTLInputBotInlineResultGame() *TLInputBotInlineResultGame { - return &TLInputBotInlineResultGame{Data2: &InputBotInlineResult_Data{}} +func NewTLSecureValueErrorTranslationFiles() *TLSecureValueErrorTranslationFiles { + return &TLSecureValueErrorTranslationFiles{Data2: &SecureValueError_Data{}} } -func (m *TLInputBotInlineResultGame) Encode() []byte { +func (m *TLSecureValueErrorTranslationFiles) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineResultGame)) + x.Int(int32(TLConstructor_CRC32_secureValueErrorTranslationFiles)) - x.String(m.GetId()) - x.String(m.GetShortName()) - x.Bytes(m.GetSendMessage().Encode()) + x.Bytes(m.GetType().Encode()) + + x.String(m.GetText()) return x.buf } -func (m *TLInputBotInlineResultGame) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueErrorTranslationFiles) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineResultGame)) + x.Int(int32(TLConstructor_CRC32_secureValueErrorTranslationFiles)) - x.String(m.GetId()) - x.String(m.GetShortName()) - x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) + x.Bytes(m.GetType().EncodeToLayer(layer)) + + x.String(m.GetText()) return x.buf } -func (m *TLInputBotInlineResultGame) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.String()) - m.SetShortName(dbuf.String()) - m3 := &InputBotInlineMessage{} - m3.Decode(dbuf) - m.SetSendMessage(m3) +func (m *TLSecureValueErrorTranslationFiles) Decode(dbuf *DecodeBuf) error { + m1 := &SecureValueType{} + m1.Decode(dbuf) + m.SetType(m1) + + m.SetText(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Invoice <-- -// + TL_Invoice +// InputGame <-- +// + TL_InputGameID +// + TL_InputGameShortName // -func (m *Invoice) Encode() []byte { +func (m *InputGame) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_invoice: - t := m.To_Invoice() + case TLConstructor_CRC32_inputGameID: + t := m.To_InputGameID() + return t.Encode() + case TLConstructor_CRC32_inputGameShortName: + t := m.To_InputGameShortName() return t.Encode() default: @@ -40291,11 +40400,14 @@ func (m *Invoice) Encode() []byte { } } -func (m *Invoice) EncodeToLayer(layer int) []byte { +func (m *InputGame) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_invoice: - t := m.To_Invoice() + case TLConstructor_CRC32_inputGameID: + t := m.To_InputGameID() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputGameShortName: + t := m.To_InputGameShortName() return t.EncodeToLayer(layer) default: @@ -40304,11 +40416,15 @@ func (m *Invoice) EncodeToLayer(layer int) []byte { } } -func (m *Invoice) Decode(dbuf *DecodeBuf) error { +func (m *InputGame) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_invoice: - m2 := &TLInvoice{Data2: &Invoice_Data{}} + case TLConstructor_CRC32_inputGameID: + m2 := &TLInputGameID{Data2: &InputGame_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputGameShortName: + m2 := &TLInputGameShortName{Data2: &InputGame_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -40318,200 +40434,125 @@ func (m *Invoice) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector = Invoice; -func (m *Invoice) To_Invoice() *TLInvoice { - return &TLInvoice{ +// inputGameID#32c3e77 id:long access_hash:long = InputGame; +func (m *InputGame) To_InputGameID() *TLInputGameID { + return &TLInputGameID{ Data2: m.Data2, } } -// invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector = Invoice; -func (m *TLInvoice) To_Invoice() *Invoice { - return &Invoice{ - Constructor: TLConstructor_CRC32_invoice, - Data2: m.Data2, +// inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame; +func (m *InputGame) To_InputGameShortName() *TLInputGameShortName { + return &TLInputGameShortName{ + Data2: m.Data2, } } -func (m *TLInvoice) SetTest(v bool) { m.Data2.Test = v } -func (m *TLInvoice) GetTest() bool { return m.Data2.Test } +// inputGameID#32c3e77 id:long access_hash:long = InputGame; +func (m *TLInputGameID) To_InputGame() *InputGame { + return &InputGame{ + Constructor: TLConstructor_CRC32_inputGameID, + Data2: m.Data2, + } +} -func (m *TLInvoice) SetNameRequested(v bool) { m.Data2.NameRequested = v } -func (m *TLInvoice) GetNameRequested() bool { return m.Data2.NameRequested } +func (m *TLInputGameID) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputGameID) GetId() int64 { return m.Data2.Id } -func (m *TLInvoice) SetPhoneRequested(v bool) { m.Data2.PhoneRequested = v } -func (m *TLInvoice) GetPhoneRequested() bool { return m.Data2.PhoneRequested } +func (m *TLInputGameID) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputGameID) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLInvoice) SetEmailRequested(v bool) { m.Data2.EmailRequested = v } -func (m *TLInvoice) GetEmailRequested() bool { return m.Data2.EmailRequested } +func NewTLInputGameID() *TLInputGameID { + return &TLInputGameID{Data2: &InputGame_Data{}} +} -func (m *TLInvoice) SetShippingAddressRequested(v bool) { m.Data2.ShippingAddressRequested = v } -func (m *TLInvoice) GetShippingAddressRequested() bool { return m.Data2.ShippingAddressRequested } +func (m *TLInputGameID) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputGameID)) -func (m *TLInvoice) SetFlexible(v bool) { m.Data2.Flexible = v } -func (m *TLInvoice) GetFlexible() bool { return m.Data2.Flexible } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) -func (m *TLInvoice) SetPhoneToProvider(v bool) { m.Data2.PhoneToProvider = v } -func (m *TLInvoice) GetPhoneToProvider() bool { return m.Data2.PhoneToProvider } + return x.buf +} -func (m *TLInvoice) SetEmailToProvider(v bool) { m.Data2.EmailToProvider = v } -func (m *TLInvoice) GetEmailToProvider() bool { return m.Data2.EmailToProvider } +func (m *TLInputGameID) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputGameID)) -func (m *TLInvoice) SetCurrency(v string) { m.Data2.Currency = v } -func (m *TLInvoice) GetCurrency() string { return m.Data2.Currency } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) -func (m *TLInvoice) SetPrices(v []*LabeledPrice) { m.Data2.Prices = v } -func (m *TLInvoice) GetPrices() []*LabeledPrice { return m.Data2.Prices } - -func NewTLInvoice() *TLInvoice { - return &TLInvoice{Data2: &Invoice_Data{}} + return x.buf } -func (m *TLInvoice) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_invoice)) +func (m *TLInputGameID) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) - // flags - var flags uint32 = 0 - if m.GetTest() == true { - flags |= 1 << 0 - } - if m.GetNameRequested() == true { - flags |= 1 << 1 - } - if m.GetPhoneRequested() == true { - flags |= 1 << 2 - } - if m.GetEmailRequested() == true { - flags |= 1 << 3 - } - if m.GetShippingAddressRequested() == true { - flags |= 1 << 4 - } - if m.GetFlexible() == true { - flags |= 1 << 5 - } - if m.GetPhoneToProvider() == true { - flags |= 1 << 6 - } - if m.GetEmailToProvider() == true { - flags |= 1 << 7 - } - x.UInt(flags) + return dbuf.err +} - x.String(m.GetCurrency()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPrices()))) - for _, v := range m.GetPrices() { - x.buf = append(x.buf, (*v).Encode()...) +// inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame; +func (m *TLInputGameShortName) To_InputGame() *InputGame { + return &InputGame{ + Constructor: TLConstructor_CRC32_inputGameShortName, + Data2: m.Data2, } +} - return x.buf +func (m *TLInputGameShortName) SetBotId(v *InputUser) { m.Data2.BotId = v } +func (m *TLInputGameShortName) GetBotId() *InputUser { return m.Data2.BotId } + +func (m *TLInputGameShortName) SetShortName(v string) { m.Data2.ShortName = v } +func (m *TLInputGameShortName) GetShortName() string { return m.Data2.ShortName } + +func NewTLInputGameShortName() *TLInputGameShortName { + return &TLInputGameShortName{Data2: &InputGame_Data{}} } -func (m *TLInvoice) EncodeToLayer(layer int) []byte { +func (m *TLInputGameShortName) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_invoice)) + x.Int(int32(TLConstructor_CRC32_inputGameShortName)) - // flags - var flags uint32 = 0 - if m.GetTest() == true { - flags |= 1 << 0 - } - if m.GetNameRequested() == true { - flags |= 1 << 1 - } - if m.GetPhoneRequested() == true { - flags |= 1 << 2 - } - if m.GetEmailRequested() == true { - flags |= 1 << 3 - } - if m.GetShippingAddressRequested() == true { - flags |= 1 << 4 - } - if m.GetFlexible() == true { - flags |= 1 << 5 - } - if m.GetPhoneToProvider() == true { - flags |= 1 << 6 - } - if m.GetEmailToProvider() == true { - flags |= 1 << 7 - } - x.UInt(flags) + x.Bytes(m.GetBotId().Encode()) + x.String(m.GetShortName()) - x.String(m.GetCurrency()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPrices()))) - for _, v := range m.GetPrices() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + return x.buf +} + +func (m *TLInputGameShortName) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputGameShortName)) + + x.Bytes(m.GetBotId().EncodeToLayer(layer)) + x.String(m.GetShortName()) return x.buf } -func (m *TLInvoice) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetTest(true) - } - if (flags & (1 << 1)) != 0 { - m.SetNameRequested(true) - } - if (flags & (1 << 2)) != 0 { - m.SetPhoneRequested(true) - } - if (flags & (1 << 3)) != 0 { - m.SetEmailRequested(true) - } - if (flags & (1 << 4)) != 0 { - m.SetShippingAddressRequested(true) - } - if (flags & (1 << 5)) != 0 { - m.SetFlexible(true) - } - if (flags & (1 << 6)) != 0 { - m.SetPhoneToProvider(true) - } - if (flags & (1 << 7)) != 0 { - m.SetEmailToProvider(true) - } - m.SetCurrency(dbuf.String()) - c11 := dbuf.Int() - if c11 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 11, c11) - return dbuf.err - } - l11 := dbuf.Int() - v11 := make([]*LabeledPrice, l11) - for i := int32(0); i < l11; i++ { - v11[i] = &LabeledPrice{} - v11[i].Decode(dbuf) - } - m.SetPrices(v11) +func (m *TLInputGameShortName) Decode(dbuf *DecodeBuf) error { + m1 := &InputUser{} + m1.Decode(dbuf) + m.SetBotId(m1) + m.SetShortName(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Photo <-- -// + TL_PhotoEmpty -// + TL_Photo -// + TL_PhotoLayer86 +// InputSecureFile <-- +// + TL_InputSecureFileUploaded +// + TL_InputSecureFile // -func (m *Photo) Encode() []byte { +func (m *InputSecureFile) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_photoEmpty: - t := m.To_PhotoEmpty() - return t.Encode() - case TLConstructor_CRC32_photo: - t := m.To_Photo() + case TLConstructor_CRC32_inputSecureFileUploaded: + t := m.To_InputSecureFileUploaded() return t.Encode() - case TLConstructor_CRC32_photoLayer86: - t := m.To_PhotoLayer86() + case TLConstructor_CRC32_inputSecureFile: + t := m.To_InputSecureFile() return t.Encode() default: @@ -40520,17 +40561,14 @@ func (m *Photo) Encode() []byte { } } -func (m *Photo) EncodeToLayer(layer int) []byte { +func (m *InputSecureFile) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_photoEmpty: - t := m.To_PhotoEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_photo: - t := m.To_Photo() + case TLConstructor_CRC32_inputSecureFileUploaded: + t := m.To_InputSecureFileUploaded() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_photoLayer86: - t := m.To_PhotoLayer86() + case TLConstructor_CRC32_inputSecureFile: + t := m.To_InputSecureFile() return t.EncodeToLayer(layer) default: @@ -40539,19 +40577,15 @@ func (m *Photo) EncodeToLayer(layer int) []byte { } } -func (m *Photo) Decode(dbuf *DecodeBuf) error { +func (m *InputSecureFile) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_photoEmpty: - m2 := &TLPhotoEmpty{Data2: &Photo_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_photo: - m2 := &TLPhoto{Data2: &Photo_Data{}} + case TLConstructor_CRC32_inputSecureFileUploaded: + m2 := &TLInputSecureFileUploaded{Data2: &InputSecureFile_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_photoLayer86: - m2 := &TLPhotoLayer86{Data2: &Photo_Data{}} + case TLConstructor_CRC32_inputSecureFile: + m2 := &TLInputSecureFile{Data2: &InputSecureFile_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -40561,277 +40595,137 @@ func (m *Photo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// photoEmpty#2331b22d id:long = Photo; -func (m *Photo) To_PhotoEmpty() *TLPhotoEmpty { - return &TLPhotoEmpty{ - Data2: m.Data2, - } -} - -// photo#9288dd29 flags:# has_stickers:flags.0?true id:long access_hash:long date:int sizes:Vector = Photo; -func (m *Photo) To_Photo() *TLPhoto { - return &TLPhoto{ +// inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile; +func (m *InputSecureFile) To_InputSecureFileUploaded() *TLInputSecureFileUploaded { + return &TLInputSecureFileUploaded{ Data2: m.Data2, } } -// photo#9c477dd8 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector = Photo; -func (m *Photo) To_PhotoLayer86() *TLPhotoLayer86 { - return &TLPhotoLayer86{ +// inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile; +func (m *InputSecureFile) To_InputSecureFile() *TLInputSecureFile { + return &TLInputSecureFile{ Data2: m.Data2, } } -// photoEmpty#2331b22d id:long = Photo; -func (m *TLPhotoEmpty) To_Photo() *Photo { - return &Photo{ - Constructor: TLConstructor_CRC32_photoEmpty, - Data2: m.Data2, - } -} - -func (m *TLPhotoEmpty) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhotoEmpty) GetId() int64 { return m.Data2.Id } - -func NewTLPhotoEmpty() *TLPhotoEmpty { - return &TLPhotoEmpty{Data2: &Photo_Data{}} -} - -func (m *TLPhotoEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoEmpty)) - - x.Long(m.GetId()) - - return x.buf -} - -func (m *TLPhotoEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoEmpty)) - - x.Long(m.GetId()) - - return x.buf -} - -func (m *TLPhotoEmpty) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - - return dbuf.err -} - -// photo#9288dd29 flags:# has_stickers:flags.0?true id:long access_hash:long date:int sizes:Vector = Photo; -func (m *TLPhoto) To_Photo() *Photo { - return &Photo{ - Constructor: TLConstructor_CRC32_photo, +// inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile; +func (m *TLInputSecureFileUploaded) To_InputSecureFile() *InputSecureFile { + return &InputSecureFile{ + Constructor: TLConstructor_CRC32_inputSecureFileUploaded, Data2: m.Data2, } } -func (m *TLPhoto) SetHasStickers(v bool) { m.Data2.HasStickers = v } -func (m *TLPhoto) GetHasStickers() bool { return m.Data2.HasStickers } +func (m *TLInputSecureFileUploaded) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputSecureFileUploaded) GetId() int64 { return m.Data2.Id } -func (m *TLPhoto) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhoto) GetId() int64 { return m.Data2.Id } +func (m *TLInputSecureFileUploaded) SetParts(v int32) { m.Data2.Parts = v } +func (m *TLInputSecureFileUploaded) GetParts() int32 { return m.Data2.Parts } -func (m *TLPhoto) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLPhoto) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLInputSecureFileUploaded) SetMd5Checksum(v string) { m.Data2.Md5Checksum = v } +func (m *TLInputSecureFileUploaded) GetMd5Checksum() string { return m.Data2.Md5Checksum } -func (m *TLPhoto) SetDate(v int32) { m.Data2.Date = v } -func (m *TLPhoto) GetDate() int32 { return m.Data2.Date } +func (m *TLInputSecureFileUploaded) SetFileHash(v []byte) { m.Data2.FileHash = v } +func (m *TLInputSecureFileUploaded) GetFileHash() []byte { return m.Data2.FileHash } -func (m *TLPhoto) SetSizes(v []*PhotoSize) { m.Data2.Sizes = v } -func (m *TLPhoto) GetSizes() []*PhotoSize { return m.Data2.Sizes } +func (m *TLInputSecureFileUploaded) SetSecret(v []byte) { m.Data2.Secret = v } +func (m *TLInputSecureFileUploaded) GetSecret() []byte { return m.Data2.Secret } -func NewTLPhoto() *TLPhoto { - return &TLPhoto{Data2: &Photo_Data{}} +func NewTLInputSecureFileUploaded() *TLInputSecureFileUploaded { + return &TLInputSecureFileUploaded{Data2: &InputSecureFile_Data{}} } -func (m *TLPhoto) Encode() []byte { +func (m *TLInputSecureFileUploaded) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photo)) - - // flags - var flags uint32 = 0 - if m.GetHasStickers() == true { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputSecureFileUploaded)) x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSizes()))) - for _, v := range m.GetSizes() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(m.GetParts()) + x.String(m.GetMd5Checksum()) + x.StringBytes(m.GetFileHash()) + x.StringBytes(m.GetSecret()) return x.buf } -func (m *TLPhoto) EncodeToLayer(layer int) []byte { +func (m *TLInputSecureFileUploaded) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photo)) - - // flags - var flags uint32 = 0 - if m.GetHasStickers() == true { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputSecureFileUploaded)) x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSizes()))) - for _, v := range m.GetSizes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetParts()) + x.String(m.GetMd5Checksum()) + x.StringBytes(m.GetFileHash()) + x.StringBytes(m.GetSecret()) return x.buf } -func (m *TLPhoto) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetHasStickers(true) - } +func (m *TLInputSecureFileUploaded) Decode(dbuf *DecodeBuf) error { m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetDate(dbuf.Int()) - c6 := dbuf.Int() - if c6 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) - return dbuf.err - } - l6 := dbuf.Int() - v6 := make([]*PhotoSize, l6) - for i := int32(0); i < l6; i++ { - v6[i] = &PhotoSize{} - v6[i].Decode(dbuf) - } - m.SetSizes(v6) + m.SetParts(dbuf.Int()) + m.SetMd5Checksum(dbuf.String()) + m.SetFileHash(dbuf.StringBytes()) + m.SetSecret(dbuf.StringBytes()) return dbuf.err } -// photo#9c477dd8 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector = Photo; -func (m *TLPhotoLayer86) To_Photo() *Photo { - return &Photo{ - Constructor: TLConstructor_CRC32_photoLayer86, +// inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile; +func (m *TLInputSecureFile) To_InputSecureFile() *InputSecureFile { + return &InputSecureFile{ + Constructor: TLConstructor_CRC32_inputSecureFile, Data2: m.Data2, } } -func (m *TLPhotoLayer86) SetHasStickers(v bool) { m.Data2.HasStickers = v } -func (m *TLPhotoLayer86) GetHasStickers() bool { return m.Data2.HasStickers } - -func (m *TLPhotoLayer86) SetId(v int64) { m.Data2.Id = v } -func (m *TLPhotoLayer86) GetId() int64 { return m.Data2.Id } - -func (m *TLPhotoLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLPhotoLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLPhotoLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } -func (m *TLPhotoLayer86) GetFileReference() []byte { return m.Data2.FileReference } - -func (m *TLPhotoLayer86) SetDate(v int32) { m.Data2.Date = v } -func (m *TLPhotoLayer86) GetDate() int32 { return m.Data2.Date } +func (m *TLInputSecureFile) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputSecureFile) GetId() int64 { return m.Data2.Id } -func (m *TLPhotoLayer86) SetSizes(v []*PhotoSize) { m.Data2.Sizes = v } -func (m *TLPhotoLayer86) GetSizes() []*PhotoSize { return m.Data2.Sizes } +func (m *TLInputSecureFile) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputSecureFile) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLPhotoLayer86() *TLPhotoLayer86 { - return &TLPhotoLayer86{Data2: &Photo_Data{}} +func NewTLInputSecureFile() *TLInputSecureFile { + return &TLInputSecureFile{Data2: &InputSecureFile_Data{}} } -func (m *TLPhotoLayer86) Encode() []byte { +func (m *TLInputSecureFile) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoLayer86)) - - // flags - var flags uint32 = 0 - if m.GetHasStickers() == true { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputSecureFile)) x.Long(m.GetId()) x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) - x.Int(m.GetDate()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSizes()))) - for _, v := range m.GetSizes() { - x.buf = append(x.buf, (*v).Encode()...) - } return x.buf } -func (m *TLPhotoLayer86) EncodeToLayer(layer int) []byte { +func (m *TLInputSecureFile) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photoLayer86)) - - // flags - var flags uint32 = 0 - if m.GetHasStickers() == true { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputSecureFile)) x.Long(m.GetId()) x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) - x.Int(m.GetDate()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSizes()))) - for _, v := range m.GetSizes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } return x.buf } -func (m *TLPhotoLayer86) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetHasStickers(true) - } +func (m *TLInputSecureFile) Decode(dbuf *DecodeBuf) error { m.SetId(dbuf.Long()) m.SetAccessHash(dbuf.Long()) - m.SetFileReference(dbuf.StringBytes()) - m.SetDate(dbuf.Int()) - c7 := dbuf.Int() - if c7 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) - return dbuf.err - } - l7 := dbuf.Int() - v7 := make([]*PhotoSize, l7) - for i := int32(0); i < l7; i++ { - v7[i] = &PhotoSize{} - v7[i].Decode(dbuf) - } - m.SetSizes(v7) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_ChatFull <-- -// + TL_MessagesChatFull +// Contacts_Link <-- +// + TL_ContactsLink // -func (m *Messages_ChatFull) Encode() []byte { +func (m *Contacts_Link) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_chatFull: - t := m.To_MessagesChatFull() + case TLConstructor_CRC32_contacts_link: + t := m.To_ContactsLink() return t.Encode() default: @@ -40840,11 +40734,11 @@ func (m *Messages_ChatFull) Encode() []byte { } } -func (m *Messages_ChatFull) EncodeToLayer(layer int) []byte { +func (m *Contacts_Link) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_chatFull: - t := m.To_MessagesChatFull() + case TLConstructor_CRC32_contacts_link: + t := m.To_ContactsLink() return t.EncodeToLayer(layer) default: @@ -40853,11 +40747,11 @@ func (m *Messages_ChatFull) EncodeToLayer(layer int) []byte { } } -func (m *Messages_ChatFull) Decode(dbuf *DecodeBuf) error { +func (m *Contacts_Link) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_chatFull: - m2 := &TLMessagesChatFull{Data2: &Messages_ChatFull_Data{}} + case TLConstructor_CRC32_contacts_link: + m2 := &TLContactsLink{Data2: &Contacts_Link_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -40867,45 +40761,202 @@ func (m *Messages_ChatFull) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull; -func (m *Messages_ChatFull) To_MessagesChatFull() *TLMessagesChatFull { - return &TLMessagesChatFull{ +// contacts.link#3ace484c my_link:ContactLink foreign_link:ContactLink user:User = contacts.Link; +func (m *Contacts_Link) To_ContactsLink() *TLContactsLink { + return &TLContactsLink{ Data2: m.Data2, } } -// messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull; -func (m *TLMessagesChatFull) To_Messages_ChatFull() *Messages_ChatFull { - return &Messages_ChatFull{ - Constructor: TLConstructor_CRC32_messages_chatFull, +// contacts.link#3ace484c my_link:ContactLink foreign_link:ContactLink user:User = contacts.Link; +func (m *TLContactsLink) To_Contacts_Link() *Contacts_Link { + return &Contacts_Link{ + Constructor: TLConstructor_CRC32_contacts_link, Data2: m.Data2, } } -func (m *TLMessagesChatFull) SetFullChat(v *ChatFull) { m.Data2.FullChat = v } -func (m *TLMessagesChatFull) GetFullChat() *ChatFull { return m.Data2.FullChat } +func (m *TLContactsLink) SetMyLink(v *ContactLink) { m.Data2.MyLink = v } +func (m *TLContactsLink) GetMyLink() *ContactLink { return m.Data2.MyLink } -func (m *TLMessagesChatFull) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLMessagesChatFull) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLContactsLink) SetForeignLink(v *ContactLink) { m.Data2.ForeignLink = v } +func (m *TLContactsLink) GetForeignLink() *ContactLink { return m.Data2.ForeignLink } -func (m *TLMessagesChatFull) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLMessagesChatFull) GetUsers() []*User { return m.Data2.Users } +func (m *TLContactsLink) SetUser(v *User) { m.Data2.User = v } +func (m *TLContactsLink) GetUser() *User { return m.Data2.User } -func NewTLMessagesChatFull() *TLMessagesChatFull { - return &TLMessagesChatFull{Data2: &Messages_ChatFull_Data{}} +func NewTLContactsLink() *TLContactsLink { + return &TLContactsLink{Data2: &Contacts_Link_Data{}} } -func (m *TLMessagesChatFull) Encode() []byte { +func (m *TLContactsLink) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_chatFull)) + x.Int(int32(TLConstructor_CRC32_contacts_link)) - x.Bytes(m.GetFullChat().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) + x.Bytes(m.GetMyLink().Encode()) + x.Bytes(m.GetForeignLink().Encode()) + x.Bytes(m.GetUser().Encode()) + + return x.buf +} + +func (m *TLContactsLink) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_contacts_link)) + + x.Bytes(m.GetMyLink().EncodeToLayer(layer)) + x.Bytes(m.GetForeignLink().EncodeToLayer(layer)) + x.Bytes(m.GetUser().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLContactsLink) Decode(dbuf *DecodeBuf) error { + m1 := &ContactLink{} + m1.Decode(dbuf) + m.SetMyLink(m1) + m2 := &ContactLink{} + m2.Decode(dbuf) + m.SetForeignLink(m2) + m3 := &User{} + m3.Decode(dbuf) + m.SetUser(m3) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// Contacts_Contacts <-- +// + TL_ContactsContactsNotModified +// + TL_ContactsContacts +// + +func (m *Contacts_Contacts) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_contacts_contactsNotModified: + t := m.To_ContactsContactsNotModified() + return t.Encode() + case TLConstructor_CRC32_contacts_contacts: + t := m.To_ContactsContacts() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *Contacts_Contacts) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_contacts_contactsNotModified: + t := m.To_ContactsContactsNotModified() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_contacts_contacts: + t := m.To_ContactsContacts() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *Contacts_Contacts) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_contacts_contactsNotModified: + m2 := &TLContactsContactsNotModified{Data2: &Contacts_Contacts_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_contacts_contacts: + m2 := &TLContactsContacts{Data2: &Contacts_Contacts_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// contacts.contactsNotModified#b74ba9d2 = contacts.Contacts; +func (m *Contacts_Contacts) To_ContactsContactsNotModified() *TLContactsContactsNotModified { + return &TLContactsContactsNotModified{ + Data2: m.Data2, + } +} + +// contacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts; +func (m *Contacts_Contacts) To_ContactsContacts() *TLContactsContacts { + return &TLContactsContacts{ + Data2: m.Data2, + } +} + +// contacts.contactsNotModified#b74ba9d2 = contacts.Contacts; +func (m *TLContactsContactsNotModified) To_Contacts_Contacts() *Contacts_Contacts { + return &Contacts_Contacts{ + Constructor: TLConstructor_CRC32_contacts_contactsNotModified, + Data2: m.Data2, + } +} + +func NewTLContactsContactsNotModified() *TLContactsContactsNotModified { + return &TLContactsContactsNotModified{Data2: &Contacts_Contacts_Data{}} +} + +func (m *TLContactsContactsNotModified) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_contacts_contactsNotModified)) + + return x.buf +} + +func (m *TLContactsContactsNotModified) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_contacts_contactsNotModified)) + + return x.buf +} + +func (m *TLContactsContactsNotModified) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// contacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts; +func (m *TLContactsContacts) To_Contacts_Contacts() *Contacts_Contacts { + return &Contacts_Contacts{ + Constructor: TLConstructor_CRC32_contacts_contacts, + Data2: m.Data2, + } +} + +func (m *TLContactsContacts) SetContacts(v []*Contact) { m.Data2.Contacts = v } +func (m *TLContactsContacts) GetContacts() []*Contact { return m.Data2.Contacts } + +func (m *TLContactsContacts) SetSavedCount(v int32) { m.Data2.SavedCount = v } +func (m *TLContactsContacts) GetSavedCount() int32 { return m.Data2.SavedCount } + +func (m *TLContactsContacts) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLContactsContacts) GetUsers() []*User { return m.Data2.Users } + +func NewTLContactsContacts() *TLContactsContacts { + return &TLContactsContacts{Data2: &Contacts_Contacts_Data{}} +} + +func (m *TLContactsContacts) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_contacts_contacts)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetContacts()))) + for _, v := range m.GetContacts() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(m.GetSavedCount()) + x.Int(int32(TLConstructor_CRC32_vector)) x.Int(int32(len(m.GetUsers()))) for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).Encode()...) @@ -40914,16 +40965,16 @@ func (m *TLMessagesChatFull) Encode() []byte { return x.buf } -func (m *TLMessagesChatFull) EncodeToLayer(layer int) []byte { +func (m *TLContactsContacts) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_chatFull)) + x.Int(int32(TLConstructor_CRC32_contacts_contacts)) - x.Bytes(m.GetFullChat().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { + x.Int(int32(len(m.GetContacts()))) + for _, v := range m.GetContacts() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } + x.Int(m.GetSavedCount()) x.Int(int32(TLConstructor_CRC32_vector)) x.Int(int32(len(m.GetUsers()))) for _, v := range m.GetUsers() { @@ -40933,23 +40984,21 @@ func (m *TLMessagesChatFull) EncodeToLayer(layer int) []byte { return x.buf } -func (m *TLMessagesChatFull) Decode(dbuf *DecodeBuf) error { - m1 := &ChatFull{} - m1.Decode(dbuf) - m.SetFullChat(m1) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) +func (m *TLContactsContacts) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) return dbuf.err } - l2 := dbuf.Int() - v2 := make([]*Chat, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Chat{} - v2[i].Decode(dbuf) + l1 := dbuf.Int() + v1 := make([]*Contact, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Contact{} + v1[i].Decode(dbuf) } - m.SetChats(v2) + m.SetContacts(v1) + m.SetSavedCount(dbuf.Int()) c3 := dbuf.Int() if c3 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) @@ -41204,14 +41253,14 @@ func (m *TLHelpNoAppUpdate) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// MessageRange <-- -// + TL_MessageRange +// Account_TmpPassword <-- +// + TL_AccountTmpPassword // -func (m *MessageRange) Encode() []byte { +func (m *Account_TmpPassword) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messageRange: - t := m.To_MessageRange() + case TLConstructor_CRC32_account_tmpPassword: + t := m.To_AccountTmpPassword() return t.Encode() default: @@ -41220,11 +41269,11 @@ func (m *MessageRange) Encode() []byte { } } -func (m *MessageRange) EncodeToLayer(layer int) []byte { +func (m *Account_TmpPassword) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messageRange: - t := m.To_MessageRange() + case TLConstructor_CRC32_account_tmpPassword: + t := m.To_AccountTmpPassword() return t.EncodeToLayer(layer) default: @@ -41233,11 +41282,11 @@ func (m *MessageRange) EncodeToLayer(layer int) []byte { } } -func (m *MessageRange) Decode(dbuf *DecodeBuf) error { +func (m *Account_TmpPassword) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messageRange: - m2 := &TLMessageRange{Data2: &MessageRange_Data{}} + case TLConstructor_CRC32_account_tmpPassword: + m2 := &TLAccountTmpPassword{Data2: &Account_TmpPassword_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -41247,67 +41296,67 @@ func (m *MessageRange) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageRange#ae30253 min_id:int max_id:int = MessageRange; -func (m *MessageRange) To_MessageRange() *TLMessageRange { - return &TLMessageRange{ +// account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; +func (m *Account_TmpPassword) To_AccountTmpPassword() *TLAccountTmpPassword { + return &TLAccountTmpPassword{ Data2: m.Data2, } } -// messageRange#ae30253 min_id:int max_id:int = MessageRange; -func (m *TLMessageRange) To_MessageRange() *MessageRange { - return &MessageRange{ - Constructor: TLConstructor_CRC32_messageRange, +// account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; +func (m *TLAccountTmpPassword) To_Account_TmpPassword() *Account_TmpPassword { + return &Account_TmpPassword{ + Constructor: TLConstructor_CRC32_account_tmpPassword, Data2: m.Data2, } } -func (m *TLMessageRange) SetMinId(v int32) { m.Data2.MinId = v } -func (m *TLMessageRange) GetMinId() int32 { return m.Data2.MinId } +func (m *TLAccountTmpPassword) SetTmpPassword(v []byte) { m.Data2.TmpPassword = v } +func (m *TLAccountTmpPassword) GetTmpPassword() []byte { return m.Data2.TmpPassword } -func (m *TLMessageRange) SetMaxId(v int32) { m.Data2.MaxId = v } -func (m *TLMessageRange) GetMaxId() int32 { return m.Data2.MaxId } +func (m *TLAccountTmpPassword) SetValidUntil(v int32) { m.Data2.ValidUntil = v } +func (m *TLAccountTmpPassword) GetValidUntil() int32 { return m.Data2.ValidUntil } -func NewTLMessageRange() *TLMessageRange { - return &TLMessageRange{Data2: &MessageRange_Data{}} +func NewTLAccountTmpPassword() *TLAccountTmpPassword { + return &TLAccountTmpPassword{Data2: &Account_TmpPassword_Data{}} } -func (m *TLMessageRange) Encode() []byte { +func (m *TLAccountTmpPassword) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageRange)) + x.Int(int32(TLConstructor_CRC32_account_tmpPassword)) - x.Int(m.GetMinId()) - x.Int(m.GetMaxId()) + x.StringBytes(m.GetTmpPassword()) + x.Int(m.GetValidUntil()) return x.buf } -func (m *TLMessageRange) EncodeToLayer(layer int) []byte { +func (m *TLAccountTmpPassword) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageRange)) + x.Int(int32(TLConstructor_CRC32_account_tmpPassword)) - x.Int(m.GetMinId()) - x.Int(m.GetMaxId()) + x.StringBytes(m.GetTmpPassword()) + x.Int(m.GetValidUntil()) return x.buf } -func (m *TLMessageRange) Decode(dbuf *DecodeBuf) error { - m.SetMinId(dbuf.Int()) - m.SetMaxId(dbuf.Int()) +func (m *TLAccountTmpPassword) Decode(dbuf *DecodeBuf) error { + m.SetTmpPassword(dbuf.StringBytes()) + m.SetValidUntil(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// TopPeerCategoryPeers <-- -// + TL_TopPeerCategoryPeers +// Phone_PhoneCall <-- +// + TL_PhonePhoneCall // -func (m *TopPeerCategoryPeers) Encode() []byte { +func (m *Phone_PhoneCall) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_topPeerCategoryPeers: - t := m.To_TopPeerCategoryPeers() + case TLConstructor_CRC32_phone_phoneCall: + t := m.To_PhonePhoneCall() return t.Encode() default: @@ -41316,11 +41365,11 @@ func (m *TopPeerCategoryPeers) Encode() []byte { } } -func (m *TopPeerCategoryPeers) EncodeToLayer(layer int) []byte { +func (m *Phone_PhoneCall) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_topPeerCategoryPeers: - t := m.To_TopPeerCategoryPeers() + case TLConstructor_CRC32_phone_phoneCall: + t := m.To_PhonePhoneCall() return t.EncodeToLayer(layer) default: @@ -41329,11 +41378,11 @@ func (m *TopPeerCategoryPeers) EncodeToLayer(layer int) []byte { } } -func (m *TopPeerCategoryPeers) Decode(dbuf *DecodeBuf) error { +func (m *Phone_PhoneCall) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_topPeerCategoryPeers: - m2 := &TLTopPeerCategoryPeers{Data2: &TopPeerCategoryPeers_Data{}} + case TLConstructor_CRC32_phone_phoneCall: + m2 := &TLPhonePhoneCall{Data2: &Phone_PhoneCall_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -41343,98 +41392,96 @@ func (m *TopPeerCategoryPeers) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers; -func (m *TopPeerCategoryPeers) To_TopPeerCategoryPeers() *TLTopPeerCategoryPeers { - return &TLTopPeerCategoryPeers{ +// phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall; +func (m *Phone_PhoneCall) To_PhonePhoneCall() *TLPhonePhoneCall { + return &TLPhonePhoneCall{ Data2: m.Data2, } } -// topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers; -func (m *TLTopPeerCategoryPeers) To_TopPeerCategoryPeers() *TopPeerCategoryPeers { - return &TopPeerCategoryPeers{ - Constructor: TLConstructor_CRC32_topPeerCategoryPeers, +// phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall; +func (m *TLPhonePhoneCall) To_Phone_PhoneCall() *Phone_PhoneCall { + return &Phone_PhoneCall{ + Constructor: TLConstructor_CRC32_phone_phoneCall, Data2: m.Data2, } } -func (m *TLTopPeerCategoryPeers) SetCategory(v *TopPeerCategory) { m.Data2.Category = v } -func (m *TLTopPeerCategoryPeers) GetCategory() *TopPeerCategory { return m.Data2.Category } - -func (m *TLTopPeerCategoryPeers) SetCount(v int32) { m.Data2.Count = v } -func (m *TLTopPeerCategoryPeers) GetCount() int32 { return m.Data2.Count } +func (m *TLPhonePhoneCall) SetPhoneCall(v *PhoneCall) { m.Data2.PhoneCall = v } +func (m *TLPhonePhoneCall) GetPhoneCall() *PhoneCall { return m.Data2.PhoneCall } -func (m *TLTopPeerCategoryPeers) SetPeers(v []*TopPeer) { m.Data2.Peers = v } -func (m *TLTopPeerCategoryPeers) GetPeers() []*TopPeer { return m.Data2.Peers } +func (m *TLPhonePhoneCall) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLPhonePhoneCall) GetUsers() []*User { return m.Data2.Users } -func NewTLTopPeerCategoryPeers() *TLTopPeerCategoryPeers { - return &TLTopPeerCategoryPeers{Data2: &TopPeerCategoryPeers_Data{}} +func NewTLPhonePhoneCall() *TLPhonePhoneCall { + return &TLPhonePhoneCall{Data2: &Phone_PhoneCall_Data{}} } -func (m *TLTopPeerCategoryPeers) Encode() []byte { +func (m *TLPhonePhoneCall) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryPeers)) + x.Int(int32(TLConstructor_CRC32_phone_phoneCall)) - x.Bytes(m.GetCategory().Encode()) - x.Int(m.GetCount()) + x.Bytes(m.GetPhoneCall().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPeers()))) - for _, v := range m.GetPeers() { + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLTopPeerCategoryPeers) EncodeToLayer(layer int) []byte { +func (m *TLPhonePhoneCall) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryPeers)) + x.Int(int32(TLConstructor_CRC32_phone_phoneCall)) - x.Bytes(m.GetCategory().EncodeToLayer(layer)) - x.Int(m.GetCount()) + x.Bytes(m.GetPhoneCall().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPeers()))) - for _, v := range m.GetPeers() { + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLTopPeerCategoryPeers) Decode(dbuf *DecodeBuf) error { - m1 := &TopPeerCategory{} +func (m *TLPhonePhoneCall) Decode(dbuf *DecodeBuf) error { + m1 := &PhoneCall{} m1.Decode(dbuf) - m.SetCategory(m1) - m.SetCount(dbuf.Int()) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + m.SetPhoneCall(m1) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } - l3 := dbuf.Int() - v3 := make([]*TopPeer, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &TopPeer{} - v3[i].Decode(dbuf) + l2 := dbuf.Int() + v2 := make([]*User, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &User{} + v2[i].Decode(dbuf) } - m.SetPeers(v3) + m.SetUsers(v2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_FavedStickers <-- -// + TL_MessagesFavedStickersNotModified -// + TL_MessagesFavedStickers +// Updates_ChannelDifference <-- +// + TL_UpdatesChannelDifferenceEmpty +// + TL_UpdatesChannelDifferenceTooLong +// + TL_UpdatesChannelDifference // -func (m *Messages_FavedStickers) Encode() []byte { +func (m *Updates_ChannelDifference) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_favedStickersNotModified: - t := m.To_MessagesFavedStickersNotModified() + case TLConstructor_CRC32_updates_channelDifferenceEmpty: + t := m.To_UpdatesChannelDifferenceEmpty() return t.Encode() - case TLConstructor_CRC32_messages_favedStickers: - t := m.To_MessagesFavedStickers() + case TLConstructor_CRC32_updates_channelDifferenceTooLong: + t := m.To_UpdatesChannelDifferenceTooLong() + return t.Encode() + case TLConstructor_CRC32_updates_channelDifference: + t := m.To_UpdatesChannelDifference() return t.Encode() default: @@ -41443,14 +41490,17 @@ func (m *Messages_FavedStickers) Encode() []byte { } } -func (m *Messages_FavedStickers) EncodeToLayer(layer int) []byte { +func (m *Updates_ChannelDifference) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_favedStickersNotModified: - t := m.To_MessagesFavedStickersNotModified() + case TLConstructor_CRC32_updates_channelDifferenceEmpty: + t := m.To_UpdatesChannelDifferenceEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_favedStickers: - t := m.To_MessagesFavedStickers() + case TLConstructor_CRC32_updates_channelDifferenceTooLong: + t := m.To_UpdatesChannelDifferenceTooLong() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updates_channelDifference: + t := m.To_UpdatesChannelDifference() return t.EncodeToLayer(layer) default: @@ -41459,15 +41509,19 @@ func (m *Messages_FavedStickers) EncodeToLayer(layer int) []byte { } } -func (m *Messages_FavedStickers) Decode(dbuf *DecodeBuf) error { +func (m *Updates_ChannelDifference) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_favedStickersNotModified: - m2 := &TLMessagesFavedStickersNotModified{Data2: &Messages_FavedStickers_Data{}} + case TLConstructor_CRC32_updates_channelDifferenceEmpty: + m2 := &TLUpdatesChannelDifferenceEmpty{Data2: &Updates_ChannelDifference_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_favedStickers: - m2 := &TLMessagesFavedStickers{Data2: &Messages_FavedStickers_Data{}} + case TLConstructor_CRC32_updates_channelDifferenceTooLong: + m2 := &TLUpdatesChannelDifferenceTooLong{Data2: &Updates_ChannelDifference_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updates_channelDifference: + m2 := &TLUpdatesChannelDifference{Data2: &Updates_ChannelDifference_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -41477,154 +41531,491 @@ func (m *Messages_FavedStickers) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers; -func (m *Messages_FavedStickers) To_MessagesFavedStickersNotModified() *TLMessagesFavedStickersNotModified { - return &TLMessagesFavedStickersNotModified{ +// updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference; +func (m *Updates_ChannelDifference) To_UpdatesChannelDifferenceEmpty() *TLUpdatesChannelDifferenceEmpty { + return &TLUpdatesChannelDifferenceEmpty{ Data2: m.Data2, } } -// messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers; -func (m *Messages_FavedStickers) To_MessagesFavedStickers() *TLMessagesFavedStickers { - return &TLMessagesFavedStickers{ +// updates.channelDifferenceTooLong#6a9d7b35 flags:# final:flags.0?true pts:int timeout:flags.1?int top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int messages:Vector chats:Vector users:Vector = updates.ChannelDifference; +func (m *Updates_ChannelDifference) To_UpdatesChannelDifferenceTooLong() *TLUpdatesChannelDifferenceTooLong { + return &TLUpdatesChannelDifferenceTooLong{ Data2: m.Data2, } } -// messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers; -func (m *TLMessagesFavedStickersNotModified) To_Messages_FavedStickers() *Messages_FavedStickers { - return &Messages_FavedStickers{ - Constructor: TLConstructor_CRC32_messages_favedStickersNotModified, +// updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference; +func (m *Updates_ChannelDifference) To_UpdatesChannelDifference() *TLUpdatesChannelDifference { + return &TLUpdatesChannelDifference{ + Data2: m.Data2, + } +} + +// updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference; +func (m *TLUpdatesChannelDifferenceEmpty) To_Updates_ChannelDifference() *Updates_ChannelDifference { + return &Updates_ChannelDifference{ + Constructor: TLConstructor_CRC32_updates_channelDifferenceEmpty, Data2: m.Data2, } } -func NewTLMessagesFavedStickersNotModified() *TLMessagesFavedStickersNotModified { - return &TLMessagesFavedStickersNotModified{Data2: &Messages_FavedStickers_Data{}} +func (m *TLUpdatesChannelDifferenceEmpty) SetFinal(v bool) { m.Data2.Final = v } +func (m *TLUpdatesChannelDifferenceEmpty) GetFinal() bool { return m.Data2.Final } + +func (m *TLUpdatesChannelDifferenceEmpty) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdatesChannelDifferenceEmpty) GetPts() int32 { return m.Data2.Pts } + +func (m *TLUpdatesChannelDifferenceEmpty) SetTimeout(v int32) { m.Data2.Timeout = v } +func (m *TLUpdatesChannelDifferenceEmpty) GetTimeout() int32 { return m.Data2.Timeout } + +func NewTLUpdatesChannelDifferenceEmpty() *TLUpdatesChannelDifferenceEmpty { + return &TLUpdatesChannelDifferenceEmpty{Data2: &Updates_ChannelDifference_Data{}} } -func (m *TLMessagesFavedStickersNotModified) Encode() []byte { +func (m *TLUpdatesChannelDifferenceEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_favedStickersNotModified)) + x.Int(int32(TLConstructor_CRC32_updates_channelDifferenceEmpty)) + + // flags + var flags uint32 = 0 + if m.GetFinal() == true { + flags |= 1 << 0 + } + if m.GetTimeout() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetPts()) + if m.GetTimeout() != 0 { + x.Int(m.GetTimeout()) + } return x.buf } -func (m *TLMessagesFavedStickersNotModified) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesChannelDifferenceEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_favedStickersNotModified)) + x.Int(int32(TLConstructor_CRC32_updates_channelDifferenceEmpty)) + + // flags + var flags uint32 = 0 + if m.GetFinal() == true { + flags |= 1 << 0 + } + if m.GetTimeout() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetPts()) + if m.GetTimeout() != 0 { + x.Int(m.GetTimeout()) + } return x.buf } -func (m *TLMessagesFavedStickersNotModified) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdatesChannelDifferenceEmpty) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetFinal(true) + } + m.SetPts(dbuf.Int()) + if (flags & (1 << 1)) != 0 { + m.SetTimeout(dbuf.Int()) + } return dbuf.err } -// messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers; -func (m *TLMessagesFavedStickers) To_Messages_FavedStickers() *Messages_FavedStickers { - return &Messages_FavedStickers{ - Constructor: TLConstructor_CRC32_messages_favedStickers, +// updates.channelDifferenceTooLong#6a9d7b35 flags:# final:flags.0?true pts:int timeout:flags.1?int top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int messages:Vector chats:Vector users:Vector = updates.ChannelDifference; +func (m *TLUpdatesChannelDifferenceTooLong) To_Updates_ChannelDifference() *Updates_ChannelDifference { + return &Updates_ChannelDifference{ + Constructor: TLConstructor_CRC32_updates_channelDifferenceTooLong, Data2: m.Data2, } } -func (m *TLMessagesFavedStickers) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLMessagesFavedStickers) GetHash() int32 { return m.Data2.Hash } +func (m *TLUpdatesChannelDifferenceTooLong) SetFinal(v bool) { m.Data2.Final = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetFinal() bool { return m.Data2.Final } -func (m *TLMessagesFavedStickers) SetPacks(v []*StickerPack) { m.Data2.Packs = v } -func (m *TLMessagesFavedStickers) GetPacks() []*StickerPack { return m.Data2.Packs } +func (m *TLUpdatesChannelDifferenceTooLong) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetPts() int32 { return m.Data2.Pts } -func (m *TLMessagesFavedStickers) SetStickers(v []*Document) { m.Data2.Stickers = v } -func (m *TLMessagesFavedStickers) GetStickers() []*Document { return m.Data2.Stickers } +func (m *TLUpdatesChannelDifferenceTooLong) SetTimeout(v int32) { m.Data2.Timeout = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetTimeout() int32 { return m.Data2.Timeout } -func NewTLMessagesFavedStickers() *TLMessagesFavedStickers { - return &TLMessagesFavedStickers{Data2: &Messages_FavedStickers_Data{}} +func (m *TLUpdatesChannelDifferenceTooLong) SetTopMessage(v int32) { m.Data2.TopMessage = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetTopMessage() int32 { return m.Data2.TopMessage } + +func (m *TLUpdatesChannelDifferenceTooLong) SetReadInboxMaxId(v int32) { m.Data2.ReadInboxMaxId = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetReadInboxMaxId() int32 { return m.Data2.ReadInboxMaxId } + +func (m *TLUpdatesChannelDifferenceTooLong) SetReadOutboxMaxId(v int32) { m.Data2.ReadOutboxMaxId = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetReadOutboxMaxId() int32 { return m.Data2.ReadOutboxMaxId } + +func (m *TLUpdatesChannelDifferenceTooLong) SetUnreadCount(v int32) { m.Data2.UnreadCount = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetUnreadCount() int32 { return m.Data2.UnreadCount } + +func (m *TLUpdatesChannelDifferenceTooLong) SetUnreadMentionsCount(v int32) { + m.Data2.UnreadMentionsCount = v +} +func (m *TLUpdatesChannelDifferenceTooLong) GetUnreadMentionsCount() int32 { + return m.Data2.UnreadMentionsCount } -func (m *TLMessagesFavedStickers) Encode() []byte { +func (m *TLUpdatesChannelDifferenceTooLong) SetMessages(v []*Message) { m.Data2.Messages = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetMessages() []*Message { return m.Data2.Messages } + +func (m *TLUpdatesChannelDifferenceTooLong) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetChats() []*Chat { return m.Data2.Chats } + +func (m *TLUpdatesChannelDifferenceTooLong) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLUpdatesChannelDifferenceTooLong) GetUsers() []*User { return m.Data2.Users } + +func NewTLUpdatesChannelDifferenceTooLong() *TLUpdatesChannelDifferenceTooLong { + return &TLUpdatesChannelDifferenceTooLong{Data2: &Updates_ChannelDifference_Data{}} +} + +func (m *TLUpdatesChannelDifferenceTooLong) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_favedStickers)) + x.Int(int32(TLConstructor_CRC32_updates_channelDifferenceTooLong)) - x.Int(m.GetHash()) + // flags + var flags uint32 = 0 + if m.GetFinal() == true { + flags |= 1 << 0 + } + if m.GetTimeout() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetPts()) + if m.GetTimeout() != 0 { + x.Int(m.GetTimeout()) + } + x.Int(m.GetTopMessage()) + x.Int(m.GetReadInboxMaxId()) + x.Int(m.GetReadOutboxMaxId()) + x.Int(m.GetUnreadCount()) + x.Int(m.GetUnreadMentionsCount()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPacks()))) - for _, v := range m.GetPacks() { + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { x.buf = append(x.buf, (*v).Encode()...) } x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLMessagesFavedStickers) EncodeToLayer(layer int) []byte { +func (m *TLUpdatesChannelDifferenceTooLong) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_favedStickers)) + x.Int(int32(TLConstructor_CRC32_updates_channelDifferenceTooLong)) - x.Int(m.GetHash()) + // flags + var flags uint32 = 0 + if m.GetFinal() == true { + flags |= 1 << 0 + } + if m.GetTimeout() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetPts()) + if m.GetTimeout() != 0 { + x.Int(m.GetTimeout()) + } + x.Int(m.GetTopMessage()) + x.Int(m.GetReadInboxMaxId()) + x.Int(m.GetReadOutboxMaxId()) + x.Int(m.GetUnreadCount()) + x.Int(m.GetUnreadMentionsCount()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPacks()))) - for _, v := range m.GetPacks() { + x.Int(int32(len(m.GetMessages()))) + for _, v := range m.GetMessages() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLMessagesFavedStickers) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) +func (m *TLUpdatesChannelDifferenceTooLong) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetFinal(true) + } + m.SetPts(dbuf.Int()) + if (flags & (1 << 1)) != 0 { + m.SetTimeout(dbuf.Int()) + } + m.SetTopMessage(dbuf.Int()) + m.SetReadInboxMaxId(dbuf.Int()) + m.SetReadOutboxMaxId(dbuf.Int()) + m.SetUnreadCount(dbuf.Int()) + m.SetUnreadMentionsCount(dbuf.Int()) + c10 := dbuf.Int() + if c10 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 10, c10) return dbuf.err } - l2 := dbuf.Int() - v2 := make([]*StickerPack, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &StickerPack{} - v2[i].Decode(dbuf) + l10 := dbuf.Int() + v10 := make([]*Message, l10) + for i := int32(0); i < l10; i++ { + v10[i] = &Message{} + v10[i].Decode(dbuf) } - m.SetPacks(v2) + m.SetMessages(v10) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + c11 := dbuf.Int() + if c11 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 11, c11) return dbuf.err } - l3 := dbuf.Int() - v3 := make([]*Document, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Document{} - v3[i].Decode(dbuf) + l11 := dbuf.Int() + v11 := make([]*Chat, l11) + for i := int32(0); i < l11; i++ { + v11[i] = &Chat{} + v11[i].Decode(dbuf) } - m.SetStickers(v3) + m.SetChats(v11) + + c12 := dbuf.Int() + if c12 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 12, c12) + return dbuf.err + } + l12 := dbuf.Int() + v12 := make([]*User, l12) + for i := int32(0); i < l12; i++ { + v12[i] = &User{} + v12[i].Decode(dbuf) + } + m.SetUsers(v12) + + return dbuf.err +} + +// updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference; +func (m *TLUpdatesChannelDifference) To_Updates_ChannelDifference() *Updates_ChannelDifference { + return &Updates_ChannelDifference{ + Constructor: TLConstructor_CRC32_updates_channelDifference, + Data2: m.Data2, + } +} + +func (m *TLUpdatesChannelDifference) SetFinal(v bool) { m.Data2.Final = v } +func (m *TLUpdatesChannelDifference) GetFinal() bool { return m.Data2.Final } + +func (m *TLUpdatesChannelDifference) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdatesChannelDifference) GetPts() int32 { return m.Data2.Pts } + +func (m *TLUpdatesChannelDifference) SetTimeout(v int32) { m.Data2.Timeout = v } +func (m *TLUpdatesChannelDifference) GetTimeout() int32 { return m.Data2.Timeout } + +func (m *TLUpdatesChannelDifference) SetNewMessages(v []*Message) { m.Data2.NewMessages = v } +func (m *TLUpdatesChannelDifference) GetNewMessages() []*Message { return m.Data2.NewMessages } + +func (m *TLUpdatesChannelDifference) SetOtherUpdates(v []*Update) { m.Data2.OtherUpdates = v } +func (m *TLUpdatesChannelDifference) GetOtherUpdates() []*Update { return m.Data2.OtherUpdates } + +func (m *TLUpdatesChannelDifference) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLUpdatesChannelDifference) GetChats() []*Chat { return m.Data2.Chats } + +func (m *TLUpdatesChannelDifference) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLUpdatesChannelDifference) GetUsers() []*User { return m.Data2.Users } + +func NewTLUpdatesChannelDifference() *TLUpdatesChannelDifference { + return &TLUpdatesChannelDifference{Data2: &Updates_ChannelDifference_Data{}} +} + +func (m *TLUpdatesChannelDifference) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updates_channelDifference)) + + // flags + var flags uint32 = 0 + if m.GetFinal() == true { + flags |= 1 << 0 + } + if m.GetTimeout() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetPts()) + if m.GetTimeout() != 0 { + x.Int(m.GetTimeout()) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetNewMessages()))) + for _, v := range m.GetNewMessages() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetOtherUpdates()))) + for _, v := range m.GetOtherUpdates() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } + + return x.buf +} + +func (m *TLUpdatesChannelDifference) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updates_channelDifference)) + + // flags + var flags uint32 = 0 + if m.GetFinal() == true { + flags |= 1 << 0 + } + if m.GetTimeout() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetPts()) + if m.GetTimeout() != 0 { + x.Int(m.GetTimeout()) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetNewMessages()))) + for _, v := range m.GetNewMessages() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetOtherUpdates()))) + for _, v := range m.GetOtherUpdates() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + + return x.buf +} + +func (m *TLUpdatesChannelDifference) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetFinal(true) + } + m.SetPts(dbuf.Int()) + if (flags & (1 << 1)) != 0 { + m.SetTimeout(dbuf.Int()) + } + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*Message, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &Message{} + v5[i].Decode(dbuf) + } + m.SetNewMessages(v5) + + c6 := dbuf.Int() + if c6 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) + return dbuf.err + } + l6 := dbuf.Int() + v6 := make([]*Update, l6) + for i := int32(0); i < l6; i++ { + v6[i] = &Update{} + v6[i].Decode(dbuf) + } + m.SetOtherUpdates(v6) + + c7 := dbuf.Int() + if c7 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) + return dbuf.err + } + l7 := dbuf.Int() + v7 := make([]*Chat, l7) + for i := int32(0); i < l7; i++ { + v7[i] = &Chat{} + v7[i].Decode(dbuf) + } + m.SetChats(v7) + + c8 := dbuf.Int() + if c8 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) + return dbuf.err + } + l8 := dbuf.Int() + v8 := make([]*User, l8) + for i := int32(0); i < l8; i++ { + v8[i] = &User{} + v8[i].Decode(dbuf) + } + m.SetUsers(v8) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputFile <-- -// + TL_InputFile -// + TL_InputFileBig +// InputWebFileLocation <-- +// + TL_InputWebFileLocation +// + TL_InputWebFileGeoPointLocation // -func (m *InputFile) Encode() []byte { +func (m *InputWebFileLocation) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputFile: - t := m.To_InputFile() + case TLConstructor_CRC32_inputWebFileLocation: + t := m.To_InputWebFileLocation() return t.Encode() - case TLConstructor_CRC32_inputFileBig: - t := m.To_InputFileBig() + case TLConstructor_CRC32_inputWebFileGeoPointLocation: + t := m.To_InputWebFileGeoPointLocation() return t.Encode() default: @@ -41633,14 +42024,14 @@ func (m *InputFile) Encode() []byte { } } -func (m *InputFile) EncodeToLayer(layer int) []byte { +func (m *InputWebFileLocation) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputFile: - t := m.To_InputFile() + case TLConstructor_CRC32_inputWebFileLocation: + t := m.To_InputWebFileLocation() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputFileBig: - t := m.To_InputFileBig() + case TLConstructor_CRC32_inputWebFileGeoPointLocation: + t := m.To_InputWebFileGeoPointLocation() return t.EncodeToLayer(layer) default: @@ -41649,15 +42040,15 @@ func (m *InputFile) EncodeToLayer(layer int) []byte { } } -func (m *InputFile) Decode(dbuf *DecodeBuf) error { +func (m *InputWebFileLocation) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputFile: - m2 := &TLInputFile{Data2: &InputFile_Data{}} + case TLConstructor_CRC32_inputWebFileLocation: + m2 := &TLInputWebFileLocation{Data2: &InputWebFileLocation_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputFileBig: - m2 := &TLInputFileBig{Data2: &InputFile_Data{}} + case TLConstructor_CRC32_inputWebFileGeoPointLocation: + m2 := &TLInputWebFileGeoPointLocation{Data2: &InputWebFileLocation_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -41667,157 +42058,153 @@ func (m *InputFile) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile; -func (m *InputFile) To_InputFile() *TLInputFile { - return &TLInputFile{ +// inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation; +func (m *InputWebFileLocation) To_InputWebFileLocation() *TLInputWebFileLocation { + return &TLInputWebFileLocation{ Data2: m.Data2, } } -// inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile; -func (m *InputFile) To_InputFileBig() *TLInputFileBig { - return &TLInputFileBig{ +// inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation; +func (m *InputWebFileLocation) To_InputWebFileGeoPointLocation() *TLInputWebFileGeoPointLocation { + return &TLInputWebFileGeoPointLocation{ Data2: m.Data2, } } -// inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile; -func (m *TLInputFile) To_InputFile() *InputFile { - return &InputFile{ - Constructor: TLConstructor_CRC32_inputFile, +// inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation; +func (m *TLInputWebFileLocation) To_InputWebFileLocation() *InputWebFileLocation { + return &InputWebFileLocation{ + Constructor: TLConstructor_CRC32_inputWebFileLocation, Data2: m.Data2, } } -func (m *TLInputFile) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputFile) GetId() int64 { return m.Data2.Id } - -func (m *TLInputFile) SetParts(v int32) { m.Data2.Parts = v } -func (m *TLInputFile) GetParts() int32 { return m.Data2.Parts } - -func (m *TLInputFile) SetName(v string) { m.Data2.Name = v } -func (m *TLInputFile) GetName() string { return m.Data2.Name } +func (m *TLInputWebFileLocation) SetUrl(v string) { m.Data2.Url = v } +func (m *TLInputWebFileLocation) GetUrl() string { return m.Data2.Url } -func (m *TLInputFile) SetMd5Checksum(v string) { m.Data2.Md5Checksum = v } -func (m *TLInputFile) GetMd5Checksum() string { return m.Data2.Md5Checksum } +func (m *TLInputWebFileLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputWebFileLocation) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLInputFile() *TLInputFile { - return &TLInputFile{Data2: &InputFile_Data{}} +func NewTLInputWebFileLocation() *TLInputWebFileLocation { + return &TLInputWebFileLocation{Data2: &InputWebFileLocation_Data{}} } -func (m *TLInputFile) Encode() []byte { +func (m *TLInputWebFileLocation) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputFile)) + x.Int(int32(TLConstructor_CRC32_inputWebFileLocation)) - x.Long(m.GetId()) - x.Int(m.GetParts()) - x.String(m.GetName()) - x.String(m.GetMd5Checksum()) + x.String(m.GetUrl()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLInputFile) EncodeToLayer(layer int) []byte { +func (m *TLInputWebFileLocation) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputFile)) + x.Int(int32(TLConstructor_CRC32_inputWebFileLocation)) - x.Long(m.GetId()) - x.Int(m.GetParts()) - x.String(m.GetName()) - x.String(m.GetMd5Checksum()) + x.String(m.GetUrl()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLInputFile) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetParts(dbuf.Int()) - m.SetName(dbuf.String()) - m.SetMd5Checksum(dbuf.String()) +func (m *TLInputWebFileLocation) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } -// inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile; -func (m *TLInputFileBig) To_InputFile() *InputFile { - return &InputFile{ - Constructor: TLConstructor_CRC32_inputFileBig, +// inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation; +func (m *TLInputWebFileGeoPointLocation) To_InputWebFileLocation() *InputWebFileLocation { + return &InputWebFileLocation{ + Constructor: TLConstructor_CRC32_inputWebFileGeoPointLocation, Data2: m.Data2, } } -func (m *TLInputFileBig) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputFileBig) GetId() int64 { return m.Data2.Id } +func (m *TLInputWebFileGeoPointLocation) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } +func (m *TLInputWebFileGeoPointLocation) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } -func (m *TLInputFileBig) SetParts(v int32) { m.Data2.Parts = v } -func (m *TLInputFileBig) GetParts() int32 { return m.Data2.Parts } +func (m *TLInputWebFileGeoPointLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputWebFileGeoPointLocation) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *TLInputFileBig) SetName(v string) { m.Data2.Name = v } -func (m *TLInputFileBig) GetName() string { return m.Data2.Name } +func (m *TLInputWebFileGeoPointLocation) SetW(v int32) { m.Data2.W = v } +func (m *TLInputWebFileGeoPointLocation) GetW() int32 { return m.Data2.W } -func NewTLInputFileBig() *TLInputFileBig { - return &TLInputFileBig{Data2: &InputFile_Data{}} +func (m *TLInputWebFileGeoPointLocation) SetH(v int32) { m.Data2.H = v } +func (m *TLInputWebFileGeoPointLocation) GetH() int32 { return m.Data2.H } + +func (m *TLInputWebFileGeoPointLocation) SetZoom(v int32) { m.Data2.Zoom = v } +func (m *TLInputWebFileGeoPointLocation) GetZoom() int32 { return m.Data2.Zoom } + +func (m *TLInputWebFileGeoPointLocation) SetScale(v int32) { m.Data2.Scale = v } +func (m *TLInputWebFileGeoPointLocation) GetScale() int32 { return m.Data2.Scale } + +func NewTLInputWebFileGeoPointLocation() *TLInputWebFileGeoPointLocation { + return &TLInputWebFileGeoPointLocation{Data2: &InputWebFileLocation_Data{}} } -func (m *TLInputFileBig) Encode() []byte { +func (m *TLInputWebFileGeoPointLocation) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputFileBig)) + x.Int(int32(TLConstructor_CRC32_inputWebFileGeoPointLocation)) - x.Long(m.GetId()) - x.Int(m.GetParts()) - x.String(m.GetName()) + x.Bytes(m.GetGeoPoint().Encode()) + x.Long(m.GetAccessHash()) + x.Int(m.GetW()) + x.Int(m.GetH()) + x.Int(m.GetZoom()) + x.Int(m.GetScale()) return x.buf } -func (m *TLInputFileBig) EncodeToLayer(layer int) []byte { +func (m *TLInputWebFileGeoPointLocation) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputFileBig)) + x.Int(int32(TLConstructor_CRC32_inputWebFileGeoPointLocation)) - x.Long(m.GetId()) - x.Int(m.GetParts()) - x.String(m.GetName()) + x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) + x.Long(m.GetAccessHash()) + x.Int(m.GetW()) + x.Int(m.GetH()) + x.Int(m.GetZoom()) + x.Int(m.GetScale()) return x.buf } -func (m *TLInputFileBig) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetParts(dbuf.Int()) - m.SetName(dbuf.String()) +func (m *TLInputWebFileGeoPointLocation) Decode(dbuf *DecodeBuf) error { + m1 := &InputGeoPoint{} + m1.Decode(dbuf) + m.SetGeoPoint(m1) + m.SetAccessHash(dbuf.Long()) + m.SetW(dbuf.Int()) + m.SetH(dbuf.Int()) + m.SetZoom(dbuf.Int()) + m.SetScale(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PrivacyRule <-- -// + TL_PrivacyValueAllowContacts -// + TL_PrivacyValueAllowAll -// + TL_PrivacyValueAllowUsers -// + TL_PrivacyValueDisallowContacts -// + TL_PrivacyValueDisallowAll -// + TL_PrivacyValueDisallowUsers +// Message <-- +// + TL_MessageEmpty +// + TL_Message +// + TL_MessageService // -func (m *PrivacyRule) Encode() []byte { +func (m *Message) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_privacyValueAllowContacts: - t := m.To_PrivacyValueAllowContacts() - return t.Encode() - case TLConstructor_CRC32_privacyValueAllowAll: - t := m.To_PrivacyValueAllowAll() - return t.Encode() - case TLConstructor_CRC32_privacyValueAllowUsers: - t := m.To_PrivacyValueAllowUsers() - return t.Encode() - case TLConstructor_CRC32_privacyValueDisallowContacts: - t := m.To_PrivacyValueDisallowContacts() + case TLConstructor_CRC32_messageEmpty: + t := m.To_MessageEmpty() return t.Encode() - case TLConstructor_CRC32_privacyValueDisallowAll: - t := m.To_PrivacyValueDisallowAll() + case TLConstructor_CRC32_message: + t := m.To_Message() return t.Encode() - case TLConstructor_CRC32_privacyValueDisallowUsers: - t := m.To_PrivacyValueDisallowUsers() + case TLConstructor_CRC32_messageService: + t := m.To_MessageService() return t.Encode() default: @@ -41826,26 +42213,17 @@ func (m *PrivacyRule) Encode() []byte { } } -func (m *PrivacyRule) EncodeToLayer(layer int) []byte { +func (m *Message) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_privacyValueAllowContacts: - t := m.To_PrivacyValueAllowContacts() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_privacyValueAllowAll: - t := m.To_PrivacyValueAllowAll() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_privacyValueAllowUsers: - t := m.To_PrivacyValueAllowUsers() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_privacyValueDisallowContacts: - t := m.To_PrivacyValueDisallowContacts() + case TLConstructor_CRC32_messageEmpty: + t := m.To_MessageEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_privacyValueDisallowAll: - t := m.To_PrivacyValueDisallowAll() + case TLConstructor_CRC32_message: + t := m.To_Message() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_privacyValueDisallowUsers: - t := m.To_PrivacyValueDisallowUsers() + case TLConstructor_CRC32_messageService: + t := m.To_MessageService() return t.EncodeToLayer(layer) default: @@ -41854,31 +42232,19 @@ func (m *PrivacyRule) EncodeToLayer(layer int) []byte { } } -func (m *PrivacyRule) Decode(dbuf *DecodeBuf) error { +func (m *Message) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_privacyValueAllowContacts: - m2 := &TLPrivacyValueAllowContacts{Data2: &PrivacyRule_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_privacyValueAllowAll: - m2 := &TLPrivacyValueAllowAll{Data2: &PrivacyRule_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_privacyValueAllowUsers: - m2 := &TLPrivacyValueAllowUsers{Data2: &PrivacyRule_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_privacyValueDisallowContacts: - m2 := &TLPrivacyValueDisallowContacts{Data2: &PrivacyRule_Data{}} + case TLConstructor_CRC32_messageEmpty: + m2 := &TLMessageEmpty{Data2: &Message_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_privacyValueDisallowAll: - m2 := &TLPrivacyValueDisallowAll{Data2: &PrivacyRule_Data{}} + case TLConstructor_CRC32_message: + m2 := &TLMessage{Data2: &Message_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_privacyValueDisallowUsers: - m2 := &TLPrivacyValueDisallowUsers{Data2: &PrivacyRule_Data{}} + case TLConstructor_CRC32_messageService: + m2 := &TLMessageService{Data2: &Message_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -41888,571 +42254,603 @@ func (m *PrivacyRule) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// privacyValueAllowContacts#fffe1bac = PrivacyRule; -func (m *PrivacyRule) To_PrivacyValueAllowContacts() *TLPrivacyValueAllowContacts { - return &TLPrivacyValueAllowContacts{ - Data2: m.Data2, - } -} - -// privacyValueAllowAll#65427b82 = PrivacyRule; -func (m *PrivacyRule) To_PrivacyValueAllowAll() *TLPrivacyValueAllowAll { - return &TLPrivacyValueAllowAll{ - Data2: m.Data2, - } -} - -// privacyValueAllowUsers#4d5bbe0c users:Vector = PrivacyRule; -func (m *PrivacyRule) To_PrivacyValueAllowUsers() *TLPrivacyValueAllowUsers { - return &TLPrivacyValueAllowUsers{ - Data2: m.Data2, - } -} - -// privacyValueDisallowContacts#f888fa1a = PrivacyRule; -func (m *PrivacyRule) To_PrivacyValueDisallowContacts() *TLPrivacyValueDisallowContacts { - return &TLPrivacyValueDisallowContacts{ +// messageEmpty#83e5de54 id:int = Message; +func (m *Message) To_MessageEmpty() *TLMessageEmpty { + return &TLMessageEmpty{ Data2: m.Data2, } } -// privacyValueDisallowAll#8b73e763 = PrivacyRule; -func (m *PrivacyRule) To_PrivacyValueDisallowAll() *TLPrivacyValueDisallowAll { - return &TLPrivacyValueDisallowAll{ +// message#44f9b43d flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long = Message; +func (m *Message) To_Message() *TLMessage { + return &TLMessage{ Data2: m.Data2, } } -// privacyValueDisallowUsers#c7f49b7 users:Vector = PrivacyRule; -func (m *PrivacyRule) To_PrivacyValueDisallowUsers() *TLPrivacyValueDisallowUsers { - return &TLPrivacyValueDisallowUsers{ +// messageService#9e19a1f6 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer reply_to_msg_id:flags.3?int date:int action:MessageAction = Message; +func (m *Message) To_MessageService() *TLMessageService { + return &TLMessageService{ Data2: m.Data2, } } -// privacyValueAllowContacts#fffe1bac = PrivacyRule; -func (m *TLPrivacyValueAllowContacts) To_PrivacyRule() *PrivacyRule { - return &PrivacyRule{ - Constructor: TLConstructor_CRC32_privacyValueAllowContacts, +// messageEmpty#83e5de54 id:int = Message; +func (m *TLMessageEmpty) To_Message() *Message { + return &Message{ + Constructor: TLConstructor_CRC32_messageEmpty, Data2: m.Data2, } } -func NewTLPrivacyValueAllowContacts() *TLPrivacyValueAllowContacts { - return &TLPrivacyValueAllowContacts{Data2: &PrivacyRule_Data{}} -} - -func (m *TLPrivacyValueAllowContacts) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueAllowContacts)) +func (m *TLMessageEmpty) SetId(v int32) { m.Data2.Id = v } +func (m *TLMessageEmpty) GetId() int32 { return m.Data2.Id } - return x.buf +func NewTLMessageEmpty() *TLMessageEmpty { + return &TLMessageEmpty{Data2: &Message_Data{}} } -func (m *TLPrivacyValueAllowContacts) EncodeToLayer(layer int) []byte { +func (m *TLMessageEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueAllowContacts)) - - return x.buf -} - -func (m *TLPrivacyValueAllowContacts) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// privacyValueAllowAll#65427b82 = PrivacyRule; -func (m *TLPrivacyValueAllowAll) To_PrivacyRule() *PrivacyRule { - return &PrivacyRule{ - Constructor: TLConstructor_CRC32_privacyValueAllowAll, - Data2: m.Data2, - } -} - -func NewTLPrivacyValueAllowAll() *TLPrivacyValueAllowAll { - return &TLPrivacyValueAllowAll{Data2: &PrivacyRule_Data{}} -} + x.Int(int32(TLConstructor_CRC32_messageEmpty)) -func (m *TLPrivacyValueAllowAll) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueAllowAll)) + x.Int(m.GetId()) return x.buf } -func (m *TLPrivacyValueAllowAll) EncodeToLayer(layer int) []byte { +func (m *TLMessageEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueAllowAll)) + x.Int(int32(TLConstructor_CRC32_messageEmpty)) + + x.Int(m.GetId()) return x.buf } -func (m *TLPrivacyValueAllowAll) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageEmpty) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) return dbuf.err } -// privacyValueAllowUsers#4d5bbe0c users:Vector = PrivacyRule; -func (m *TLPrivacyValueAllowUsers) To_PrivacyRule() *PrivacyRule { - return &PrivacyRule{ - Constructor: TLConstructor_CRC32_privacyValueAllowUsers, +// message#44f9b43d flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long = Message; +func (m *TLMessage) To_Message() *Message { + return &Message{ + Constructor: TLConstructor_CRC32_message, Data2: m.Data2, } } -func (m *TLPrivacyValueAllowUsers) SetUsers(v []int32) { m.Data2.Users = v } -func (m *TLPrivacyValueAllowUsers) GetUsers() []int32 { return m.Data2.Users } - -func NewTLPrivacyValueAllowUsers() *TLPrivacyValueAllowUsers { - return &TLPrivacyValueAllowUsers{Data2: &PrivacyRule_Data{}} -} +func (m *TLMessage) SetOut(v bool) { m.Data2.Out = v } +func (m *TLMessage) GetOut() bool { return m.Data2.Out } -func (m *TLPrivacyValueAllowUsers) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueAllowUsers)) +func (m *TLMessage) SetMentioned(v bool) { m.Data2.Mentioned = v } +func (m *TLMessage) GetMentioned() bool { return m.Data2.Mentioned } - x.VectorInt(m.GetUsers()) +func (m *TLMessage) SetMediaUnread(v bool) { m.Data2.MediaUnread = v } +func (m *TLMessage) GetMediaUnread() bool { return m.Data2.MediaUnread } - return x.buf -} +func (m *TLMessage) SetSilent(v bool) { m.Data2.Silent = v } +func (m *TLMessage) GetSilent() bool { return m.Data2.Silent } -func (m *TLPrivacyValueAllowUsers) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueAllowUsers)) +func (m *TLMessage) SetPost(v bool) { m.Data2.Post = v } +func (m *TLMessage) GetPost() bool { return m.Data2.Post } - x.VectorInt(m.GetUsers()) +func (m *TLMessage) SetId(v int32) { m.Data2.Id = v } +func (m *TLMessage) GetId() int32 { return m.Data2.Id } - return x.buf -} +func (m *TLMessage) SetFromId(v int32) { m.Data2.FromId = v } +func (m *TLMessage) GetFromId() int32 { return m.Data2.FromId } -func (m *TLPrivacyValueAllowUsers) Decode(dbuf *DecodeBuf) error { - m.SetUsers(dbuf.VectorInt()) +func (m *TLMessage) SetToId(v *Peer) { m.Data2.ToId = v } +func (m *TLMessage) GetToId() *Peer { return m.Data2.ToId } - return dbuf.err -} +func (m *TLMessage) SetFwdFrom(v *MessageFwdHeader) { m.Data2.FwdFrom = v } +func (m *TLMessage) GetFwdFrom() *MessageFwdHeader { return m.Data2.FwdFrom } -// privacyValueDisallowContacts#f888fa1a = PrivacyRule; -func (m *TLPrivacyValueDisallowContacts) To_PrivacyRule() *PrivacyRule { - return &PrivacyRule{ - Constructor: TLConstructor_CRC32_privacyValueDisallowContacts, - Data2: m.Data2, - } -} +func (m *TLMessage) SetViaBotId(v int32) { m.Data2.ViaBotId = v } +func (m *TLMessage) GetViaBotId() int32 { return m.Data2.ViaBotId } -func NewTLPrivacyValueDisallowContacts() *TLPrivacyValueDisallowContacts { - return &TLPrivacyValueDisallowContacts{Data2: &PrivacyRule_Data{}} -} +func (m *TLMessage) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } +func (m *TLMessage) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } -func (m *TLPrivacyValueDisallowContacts) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueDisallowContacts)) +func (m *TLMessage) SetDate(v int32) { m.Data2.Date = v } +func (m *TLMessage) GetDate() int32 { return m.Data2.Date } - return x.buf -} +func (m *TLMessage) SetMessage(v string) { m.Data2.Message = v } +func (m *TLMessage) GetMessage() string { return m.Data2.Message } -func (m *TLPrivacyValueDisallowContacts) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueDisallowContacts)) +func (m *TLMessage) SetMedia(v *MessageMedia) { m.Data2.Media = v } +func (m *TLMessage) GetMedia() *MessageMedia { return m.Data2.Media } - return x.buf -} +func (m *TLMessage) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLMessage) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } -func (m *TLPrivacyValueDisallowContacts) Decode(dbuf *DecodeBuf) error { +func (m *TLMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } - return dbuf.err -} +func (m *TLMessage) SetViews(v int32) { m.Data2.Views = v } +func (m *TLMessage) GetViews() int32 { return m.Data2.Views } -// privacyValueDisallowAll#8b73e763 = PrivacyRule; -func (m *TLPrivacyValueDisallowAll) To_PrivacyRule() *PrivacyRule { - return &PrivacyRule{ - Constructor: TLConstructor_CRC32_privacyValueDisallowAll, - Data2: m.Data2, - } -} +func (m *TLMessage) SetEditDate(v int32) { m.Data2.EditDate = v } +func (m *TLMessage) GetEditDate() int32 { return m.Data2.EditDate } -func NewTLPrivacyValueDisallowAll() *TLPrivacyValueDisallowAll { - return &TLPrivacyValueDisallowAll{Data2: &PrivacyRule_Data{}} -} +func (m *TLMessage) SetPostAuthor(v string) { m.Data2.PostAuthor = v } +func (m *TLMessage) GetPostAuthor() string { return m.Data2.PostAuthor } -func (m *TLPrivacyValueDisallowAll) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueDisallowAll)) +func (m *TLMessage) SetGroupedId(v int64) { m.Data2.GroupedId = v } +func (m *TLMessage) GetGroupedId() int64 { return m.Data2.GroupedId } - return x.buf +func NewTLMessage() *TLMessage { + return &TLMessage{Data2: &Message_Data{}} } -func (m *TLPrivacyValueDisallowAll) EncodeToLayer(layer int) []byte { +func (m *TLMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueDisallowAll)) - - return x.buf -} - -func (m *TLPrivacyValueDisallowAll) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_message)) -// privacyValueDisallowUsers#c7f49b7 users:Vector = PrivacyRule; -func (m *TLPrivacyValueDisallowUsers) To_PrivacyRule() *PrivacyRule { - return &PrivacyRule{ - Constructor: TLConstructor_CRC32_privacyValueDisallowUsers, - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetOut() == true { + flags |= 1 << 1 } -} - -func (m *TLPrivacyValueDisallowUsers) SetUsers(v []int32) { m.Data2.Users = v } -func (m *TLPrivacyValueDisallowUsers) GetUsers() []int32 { return m.Data2.Users } - -func NewTLPrivacyValueDisallowUsers() *TLPrivacyValueDisallowUsers { - return &TLPrivacyValueDisallowUsers{Data2: &PrivacyRule_Data{}} -} - -func (m *TLPrivacyValueDisallowUsers) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueDisallowUsers)) + if m.GetMentioned() == true { + flags |= 1 << 4 + } + if m.GetMediaUnread() == true { + flags |= 1 << 5 + } + if m.GetSilent() == true { + flags |= 1 << 13 + } + if m.GetPost() == true { + flags |= 1 << 14 + } + if m.GetFromId() != 0 { + flags |= 1 << 8 + } + if m.GetFwdFrom() != nil { + flags |= 1 << 2 + } + if m.GetViaBotId() != 0 { + flags |= 1 << 11 + } + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 3 + } + if m.GetMedia() != nil { + flags |= 1 << 9 + } + if m.GetReplyMarkup() != nil { + flags |= 1 << 6 + } + if m.GetEntities() != nil { + flags |= 1 << 7 + } + if m.GetViews() != 0 { + flags |= 1 << 10 + } + if m.GetEditDate() != 0 { + flags |= 1 << 15 + } + if m.GetPostAuthor() != "" { + flags |= 1 << 16 + } + if m.GetGroupedId() != 0 { + flags |= 1 << 17 + } + x.UInt(flags) - x.VectorInt(m.GetUsers()) + x.Int(m.GetId()) + if m.GetFromId() != 0 { + x.Int(m.GetFromId()) + } + x.Bytes(m.GetToId().Encode()) + if m.GetFwdFrom() != nil { + x.Bytes(m.GetFwdFrom().Encode()) + } + if m.GetViaBotId() != 0 { + x.Int(m.GetViaBotId()) + } + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + x.Int(m.GetDate()) + x.String(m.GetMessage()) + if m.GetMedia() != nil { + x.Bytes(m.GetMedia().Encode()) + } + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetViews() != 0 { + x.Int(m.GetViews()) + } + if m.GetEditDate() != 0 { + x.Int(m.GetEditDate()) + } + if m.GetPostAuthor() != "" { + x.String(m.GetPostAuthor()) + } + if m.GetGroupedId() != 0 { + x.Long(m.GetGroupedId()) + } return x.buf } -func (m *TLPrivacyValueDisallowUsers) EncodeToLayer(layer int) []byte { +func (m *TLMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyValueDisallowUsers)) - - x.VectorInt(m.GetUsers()) - - return x.buf -} - -func (m *TLPrivacyValueDisallowUsers) Decode(dbuf *DecodeBuf) error { - m.SetUsers(dbuf.VectorInt()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// BotCommand <-- -// + TL_BotCommand -// - -func (m *BotCommand) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_botCommand: - t := m.To_BotCommand() - return t.Encode() + x.Int(int32(TLConstructor_CRC32_message)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetOut() == true { + flags |= 1 << 1 } -} - -func (m *BotCommand) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_botCommand: - t := m.To_BotCommand() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + if m.GetMentioned() == true { + flags |= 1 << 4 } -} - -func (m *BotCommand) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_botCommand: - m2 := &TLBotCommand{Data2: &BotCommand_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + if m.GetMediaUnread() == true { + flags |= 1 << 5 } - return dbuf.err -} - -// botCommand#c27ac8c7 command:string description:string = BotCommand; -func (m *BotCommand) To_BotCommand() *TLBotCommand { - return &TLBotCommand{ - Data2: m.Data2, + if m.GetSilent() == true { + flags |= 1 << 13 } -} - -// botCommand#c27ac8c7 command:string description:string = BotCommand; -func (m *TLBotCommand) To_BotCommand() *BotCommand { - return &BotCommand{ - Constructor: TLConstructor_CRC32_botCommand, - Data2: m.Data2, + if m.GetPost() == true { + flags |= 1 << 14 } -} - -func (m *TLBotCommand) SetCommand(v string) { m.Data2.Command = v } -func (m *TLBotCommand) GetCommand() string { return m.Data2.Command } - -func (m *TLBotCommand) SetDescription(v string) { m.Data2.Description = v } -func (m *TLBotCommand) GetDescription() string { return m.Data2.Description } - -func NewTLBotCommand() *TLBotCommand { - return &TLBotCommand{Data2: &BotCommand_Data{}} -} - -func (m *TLBotCommand) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botCommand)) - - x.String(m.GetCommand()) - x.String(m.GetDescription()) - - return x.buf -} - -func (m *TLBotCommand) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botCommand)) + if m.GetFromId() != 0 { + flags |= 1 << 8 + } + if m.GetFwdFrom() != nil { + flags |= 1 << 2 + } + if m.GetViaBotId() != 0 { + flags |= 1 << 11 + } + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 3 + } + if m.GetMedia() != nil { + flags |= 1 << 9 + } + if m.GetReplyMarkup() != nil { + flags |= 1 << 6 + } + if m.GetEntities() != nil { + flags |= 1 << 7 + } + if m.GetViews() != 0 { + flags |= 1 << 10 + } + if m.GetEditDate() != 0 { + flags |= 1 << 15 + } + if m.GetPostAuthor() != "" { + flags |= 1 << 16 + } + if m.GetGroupedId() != 0 { + flags |= 1 << 17 + } + x.UInt(flags) - x.String(m.GetCommand()) - x.String(m.GetDescription()) + x.Int(m.GetId()) + if m.GetFromId() != 0 { + x.Int(m.GetFromId()) + } + x.Bytes(m.GetToId().EncodeToLayer(layer)) + if m.GetFwdFrom() != nil { + x.Bytes(m.GetFwdFrom().EncodeToLayer(layer)) + } + if m.GetViaBotId() != 0 { + x.Int(m.GetViaBotId()) + } + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + x.Int(m.GetDate()) + x.String(m.GetMessage()) + if m.GetMedia() != nil { + x.Bytes(m.GetMedia().EncodeToLayer(layer)) + } + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetViews() != 0 { + x.Int(m.GetViews()) + } + if m.GetEditDate() != 0 { + x.Int(m.GetEditDate()) + } + if m.GetPostAuthor() != "" { + x.String(m.GetPostAuthor()) + } + if m.GetGroupedId() != 0 { + x.Long(m.GetGroupedId()) + } return x.buf } -func (m *TLBotCommand) Decode(dbuf *DecodeBuf) error { - m.SetCommand(dbuf.String()) - m.SetDescription(dbuf.String()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// ChannelAdminRights <-- -// + TL_ChannelAdminRights -// - -func (m *ChannelAdminRights) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_channelAdminRights: - t := m.To_ChannelAdminRights() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +func (m *TLMessage) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetOut(true) } -} - -func (m *ChannelAdminRights) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_channelAdminRights: - t := m.To_ChannelAdminRights() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + if (flags & (1 << 4)) != 0 { + m.SetMentioned(true) } -} - -func (m *ChannelAdminRights) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_channelAdminRights: - m2 := &TLChannelAdminRights{Data2: &ChannelAdminRights_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + if (flags & (1 << 5)) != 0 { + m.SetMediaUnread(true) } - return dbuf.err -} + if (flags & (1 << 13)) != 0 { + m.SetSilent(true) + } + if (flags & (1 << 14)) != 0 { + m.SetPost(true) + } + m.SetId(dbuf.Int()) + if (flags & (1 << 8)) != 0 { + m.SetFromId(dbuf.Int()) + } + m9 := &Peer{} + m9.Decode(dbuf) + m.SetToId(m9) + if (flags & (1 << 2)) != 0 { + m10 := &MessageFwdHeader{} + m10.Decode(dbuf) + m.SetFwdFrom(m10) + } + if (flags & (1 << 11)) != 0 { + m.SetViaBotId(dbuf.Int()) + } + if (flags & (1 << 3)) != 0 { + m.SetReplyToMsgId(dbuf.Int()) + } + m.SetDate(dbuf.Int()) + m.SetMessage(dbuf.String()) + if (flags & (1 << 9)) != 0 { + m15 := &MessageMedia{} + m15.Decode(dbuf) + m.SetMedia(m15) + } + if (flags & (1 << 6)) != 0 { + m16 := &ReplyMarkup{} + m16.Decode(dbuf) + m.SetReplyMarkup(m16) + } + if (flags & (1 << 7)) != 0 { + c17 := dbuf.Int() + if c17 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 17, c17) + return dbuf.err + } + l17 := dbuf.Int() + v17 := make([]*MessageEntity, l17) + for i := int32(0); i < l17; i++ { + v17[i] = &MessageEntity{} + v17[i].Decode(dbuf) + } + m.SetEntities(v17) -// channelAdminRights#5d7ceba5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true invite_link:flags.6?true pin_messages:flags.7?true add_admins:flags.9?true manage_call:flags.10?true = ChannelAdminRights; -func (m *ChannelAdminRights) To_ChannelAdminRights() *TLChannelAdminRights { - return &TLChannelAdminRights{ - Data2: m.Data2, } + if (flags & (1 << 10)) != 0 { + m.SetViews(dbuf.Int()) + } + if (flags & (1 << 15)) != 0 { + m.SetEditDate(dbuf.Int()) + } + if (flags & (1 << 16)) != 0 { + m.SetPostAuthor(dbuf.String()) + } + if (flags & (1 << 17)) != 0 { + m.SetGroupedId(dbuf.Long()) + } + + return dbuf.err } -// channelAdminRights#5d7ceba5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true invite_link:flags.6?true pin_messages:flags.7?true add_admins:flags.9?true manage_call:flags.10?true = ChannelAdminRights; -func (m *TLChannelAdminRights) To_ChannelAdminRights() *ChannelAdminRights { - return &ChannelAdminRights{ - Constructor: TLConstructor_CRC32_channelAdminRights, +// messageService#9e19a1f6 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer reply_to_msg_id:flags.3?int date:int action:MessageAction = Message; +func (m *TLMessageService) To_Message() *Message { + return &Message{ + Constructor: TLConstructor_CRC32_messageService, Data2: m.Data2, } } -func (m *TLChannelAdminRights) SetChangeInfo(v bool) { m.Data2.ChangeInfo = v } -func (m *TLChannelAdminRights) GetChangeInfo() bool { return m.Data2.ChangeInfo } +func (m *TLMessageService) SetOut(v bool) { m.Data2.Out = v } +func (m *TLMessageService) GetOut() bool { return m.Data2.Out } -func (m *TLChannelAdminRights) SetPostMessages(v bool) { m.Data2.PostMessages = v } -func (m *TLChannelAdminRights) GetPostMessages() bool { return m.Data2.PostMessages } +func (m *TLMessageService) SetMentioned(v bool) { m.Data2.Mentioned = v } +func (m *TLMessageService) GetMentioned() bool { return m.Data2.Mentioned } -func (m *TLChannelAdminRights) SetEditMessages(v bool) { m.Data2.EditMessages = v } -func (m *TLChannelAdminRights) GetEditMessages() bool { return m.Data2.EditMessages } +func (m *TLMessageService) SetMediaUnread(v bool) { m.Data2.MediaUnread = v } +func (m *TLMessageService) GetMediaUnread() bool { return m.Data2.MediaUnread } -func (m *TLChannelAdminRights) SetDeleteMessages(v bool) { m.Data2.DeleteMessages = v } -func (m *TLChannelAdminRights) GetDeleteMessages() bool { return m.Data2.DeleteMessages } +func (m *TLMessageService) SetSilent(v bool) { m.Data2.Silent = v } +func (m *TLMessageService) GetSilent() bool { return m.Data2.Silent } -func (m *TLChannelAdminRights) SetBanUsers(v bool) { m.Data2.BanUsers = v } -func (m *TLChannelAdminRights) GetBanUsers() bool { return m.Data2.BanUsers } +func (m *TLMessageService) SetPost(v bool) { m.Data2.Post = v } +func (m *TLMessageService) GetPost() bool { return m.Data2.Post } -func (m *TLChannelAdminRights) SetInviteUsers(v bool) { m.Data2.InviteUsers = v } -func (m *TLChannelAdminRights) GetInviteUsers() bool { return m.Data2.InviteUsers } +func (m *TLMessageService) SetId(v int32) { m.Data2.Id = v } +func (m *TLMessageService) GetId() int32 { return m.Data2.Id } -func (m *TLChannelAdminRights) SetInviteLink(v bool) { m.Data2.InviteLink = v } -func (m *TLChannelAdminRights) GetInviteLink() bool { return m.Data2.InviteLink } +func (m *TLMessageService) SetFromId(v int32) { m.Data2.FromId = v } +func (m *TLMessageService) GetFromId() int32 { return m.Data2.FromId } -func (m *TLChannelAdminRights) SetPinMessages(v bool) { m.Data2.PinMessages = v } -func (m *TLChannelAdminRights) GetPinMessages() bool { return m.Data2.PinMessages } +func (m *TLMessageService) SetToId(v *Peer) { m.Data2.ToId = v } +func (m *TLMessageService) GetToId() *Peer { return m.Data2.ToId } -func (m *TLChannelAdminRights) SetAddAdmins(v bool) { m.Data2.AddAdmins = v } -func (m *TLChannelAdminRights) GetAddAdmins() bool { return m.Data2.AddAdmins } +func (m *TLMessageService) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } +func (m *TLMessageService) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } -func (m *TLChannelAdminRights) SetManageCall(v bool) { m.Data2.ManageCall = v } -func (m *TLChannelAdminRights) GetManageCall() bool { return m.Data2.ManageCall } +func (m *TLMessageService) SetDate(v int32) { m.Data2.Date = v } +func (m *TLMessageService) GetDate() int32 { return m.Data2.Date } -func NewTLChannelAdminRights() *TLChannelAdminRights { - return &TLChannelAdminRights{Data2: &ChannelAdminRights_Data{}} +func (m *TLMessageService) SetAction(v *MessageAction) { m.Data2.Action = v } +func (m *TLMessageService) GetAction() *MessageAction { return m.Data2.Action } + +func NewTLMessageService() *TLMessageService { + return &TLMessageService{Data2: &Message_Data{}} } -func (m *TLChannelAdminRights) Encode() []byte { +func (m *TLMessageService) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminRights)) + x.Int(int32(TLConstructor_CRC32_messageService)) // flags var flags uint32 = 0 - if m.GetChangeInfo() == true { - flags |= 1 << 0 - } - if m.GetPostMessages() == true { + if m.GetOut() == true { flags |= 1 << 1 } - if m.GetEditMessages() == true { - flags |= 1 << 2 - } - if m.GetDeleteMessages() == true { - flags |= 1 << 3 - } - if m.GetBanUsers() == true { + if m.GetMentioned() == true { flags |= 1 << 4 } - if m.GetInviteUsers() == true { + if m.GetMediaUnread() == true { flags |= 1 << 5 } - if m.GetInviteLink() == true { - flags |= 1 << 6 + if m.GetSilent() == true { + flags |= 1 << 13 } - if m.GetPinMessages() == true { - flags |= 1 << 7 + if m.GetPost() == true { + flags |= 1 << 14 } - if m.GetAddAdmins() == true { - flags |= 1 << 9 + if m.GetFromId() != 0 { + flags |= 1 << 8 } - if m.GetManageCall() == true { - flags |= 1 << 10 + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 3 } x.UInt(flags) + x.Int(m.GetId()) + if m.GetFromId() != 0 { + x.Int(m.GetFromId()) + } + x.Bytes(m.GetToId().Encode()) + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + x.Int(m.GetDate()) + x.Bytes(m.GetAction().Encode()) + return x.buf } -func (m *TLChannelAdminRights) EncodeToLayer(layer int) []byte { +func (m *TLMessageService) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminRights)) + x.Int(int32(TLConstructor_CRC32_messageService)) // flags var flags uint32 = 0 - if m.GetChangeInfo() == true { - flags |= 1 << 0 - } - if m.GetPostMessages() == true { + if m.GetOut() == true { flags |= 1 << 1 } - if m.GetEditMessages() == true { - flags |= 1 << 2 - } - if m.GetDeleteMessages() == true { - flags |= 1 << 3 - } - if m.GetBanUsers() == true { + if m.GetMentioned() == true { flags |= 1 << 4 } - if m.GetInviteUsers() == true { + if m.GetMediaUnread() == true { flags |= 1 << 5 } - if m.GetInviteLink() == true { - flags |= 1 << 6 + if m.GetSilent() == true { + flags |= 1 << 13 } - if m.GetPinMessages() == true { - flags |= 1 << 7 + if m.GetPost() == true { + flags |= 1 << 14 } - if m.GetAddAdmins() == true { - flags |= 1 << 9 + if m.GetFromId() != 0 { + flags |= 1 << 8 } - if m.GetManageCall() == true { - flags |= 1 << 10 + if m.GetReplyToMsgId() != 0 { + flags |= 1 << 3 } x.UInt(flags) + x.Int(m.GetId()) + if m.GetFromId() != 0 { + x.Int(m.GetFromId()) + } + x.Bytes(m.GetToId().EncodeToLayer(layer)) + if m.GetReplyToMsgId() != 0 { + x.Int(m.GetReplyToMsgId()) + } + x.Int(m.GetDate()) + x.Bytes(m.GetAction().EncodeToLayer(layer)) + return x.buf } -func (m *TLChannelAdminRights) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageService) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - if (flags & (1 << 0)) != 0 { - m.SetChangeInfo(true) - } if (flags & (1 << 1)) != 0 { - m.SetPostMessages(true) - } - if (flags & (1 << 2)) != 0 { - m.SetEditMessages(true) - } - if (flags & (1 << 3)) != 0 { - m.SetDeleteMessages(true) + m.SetOut(true) } if (flags & (1 << 4)) != 0 { - m.SetBanUsers(true) + m.SetMentioned(true) } if (flags & (1 << 5)) != 0 { - m.SetInviteUsers(true) + m.SetMediaUnread(true) } - if (flags & (1 << 6)) != 0 { - m.SetInviteLink(true) + if (flags & (1 << 13)) != 0 { + m.SetSilent(true) } - if (flags & (1 << 7)) != 0 { - m.SetPinMessages(true) + if (flags & (1 << 14)) != 0 { + m.SetPost(true) } - if (flags & (1 << 9)) != 0 { - m.SetAddAdmins(true) + m.SetId(dbuf.Int()) + if (flags & (1 << 8)) != 0 { + m.SetFromId(dbuf.Int()) } - if (flags & (1 << 10)) != 0 { - m.SetManageCall(true) + m9 := &Peer{} + m9.Decode(dbuf) + m.SetToId(m9) + if (flags & (1 << 3)) != 0 { + m.SetReplyToMsgId(dbuf.Int()) } + m.SetDate(dbuf.Int()) + m12 := &MessageAction{} + m12.Decode(dbuf) + m.SetAction(m12) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_FoundStickerSets <-- -// + TL_MessagesFoundStickerSetsNotModified -// + TL_MessagesFoundStickerSets +// Contacts_TopPeers <-- +// + TL_ContactsTopPeersNotModified +// + TL_ContactsTopPeers +// + TL_ContactsTopPeersDisabled // -func (m *Messages_FoundStickerSets) Encode() []byte { +func (m *Contacts_TopPeers) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_foundStickerSetsNotModified: - t := m.To_MessagesFoundStickerSetsNotModified() + case TLConstructor_CRC32_contacts_topPeersNotModified: + t := m.To_ContactsTopPeersNotModified() return t.Encode() - case TLConstructor_CRC32_messages_foundStickerSets: - t := m.To_MessagesFoundStickerSets() + case TLConstructor_CRC32_contacts_topPeers: + t := m.To_ContactsTopPeers() + return t.Encode() + case TLConstructor_CRC32_contacts_topPeersDisabled: + t := m.To_ContactsTopPeersDisabled() return t.Encode() default: @@ -42461,14 +42859,17 @@ func (m *Messages_FoundStickerSets) Encode() []byte { } } -func (m *Messages_FoundStickerSets) EncodeToLayer(layer int) []byte { +func (m *Contacts_TopPeers) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_foundStickerSetsNotModified: - t := m.To_MessagesFoundStickerSetsNotModified() + case TLConstructor_CRC32_contacts_topPeersNotModified: + t := m.To_ContactsTopPeersNotModified() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_foundStickerSets: - t := m.To_MessagesFoundStickerSets() + case TLConstructor_CRC32_contacts_topPeers: + t := m.To_ContactsTopPeers() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_contacts_topPeersDisabled: + t := m.To_ContactsTopPeersDisabled() return t.EncodeToLayer(layer) default: @@ -42477,15 +42878,19 @@ func (m *Messages_FoundStickerSets) EncodeToLayer(layer int) []byte { } } -func (m *Messages_FoundStickerSets) Decode(dbuf *DecodeBuf) error { +func (m *Contacts_TopPeers) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_foundStickerSetsNotModified: - m2 := &TLMessagesFoundStickerSetsNotModified{Data2: &Messages_FoundStickerSets_Data{}} + case TLConstructor_CRC32_contacts_topPeersNotModified: + m2 := &TLContactsTopPeersNotModified{Data2: &Contacts_TopPeers_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_foundStickerSets: - m2 := &TLMessagesFoundStickerSets{Data2: &Messages_FoundStickerSets_Data{}} + case TLConstructor_CRC32_contacts_topPeers: + m2 := &TLContactsTopPeers{Data2: &Contacts_TopPeers_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_contacts_topPeersDisabled: + m2 := &TLContactsTopPeersDisabled{Data2: &Contacts_TopPeers_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -42495,124 +42900,208 @@ func (m *Messages_FoundStickerSets) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets; -func (m *Messages_FoundStickerSets) To_MessagesFoundStickerSetsNotModified() *TLMessagesFoundStickerSetsNotModified { - return &TLMessagesFoundStickerSetsNotModified{ +// contacts.topPeersNotModified#de266ef5 = contacts.TopPeers; +func (m *Contacts_TopPeers) To_ContactsTopPeersNotModified() *TLContactsTopPeersNotModified { + return &TLContactsTopPeersNotModified{ Data2: m.Data2, } } -// messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets; -func (m *Messages_FoundStickerSets) To_MessagesFoundStickerSets() *TLMessagesFoundStickerSets { - return &TLMessagesFoundStickerSets{ +// contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers; +func (m *Contacts_TopPeers) To_ContactsTopPeers() *TLContactsTopPeers { + return &TLContactsTopPeers{ Data2: m.Data2, } } -// messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets; -func (m *TLMessagesFoundStickerSetsNotModified) To_Messages_FoundStickerSets() *Messages_FoundStickerSets { - return &Messages_FoundStickerSets{ - Constructor: TLConstructor_CRC32_messages_foundStickerSetsNotModified, +// contacts.topPeersDisabled#b52c939d = contacts.TopPeers; +func (m *Contacts_TopPeers) To_ContactsTopPeersDisabled() *TLContactsTopPeersDisabled { + return &TLContactsTopPeersDisabled{ + Data2: m.Data2, + } +} + +// contacts.topPeersNotModified#de266ef5 = contacts.TopPeers; +func (m *TLContactsTopPeersNotModified) To_Contacts_TopPeers() *Contacts_TopPeers { + return &Contacts_TopPeers{ + Constructor: TLConstructor_CRC32_contacts_topPeersNotModified, Data2: m.Data2, } } -func NewTLMessagesFoundStickerSetsNotModified() *TLMessagesFoundStickerSetsNotModified { - return &TLMessagesFoundStickerSetsNotModified{Data2: &Messages_FoundStickerSets_Data{}} +func NewTLContactsTopPeersNotModified() *TLContactsTopPeersNotModified { + return &TLContactsTopPeersNotModified{Data2: &Contacts_TopPeers_Data{}} } -func (m *TLMessagesFoundStickerSetsNotModified) Encode() []byte { +func (m *TLContactsTopPeersNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_foundStickerSetsNotModified)) + x.Int(int32(TLConstructor_CRC32_contacts_topPeersNotModified)) return x.buf } -func (m *TLMessagesFoundStickerSetsNotModified) EncodeToLayer(layer int) []byte { +func (m *TLContactsTopPeersNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_foundStickerSetsNotModified)) + x.Int(int32(TLConstructor_CRC32_contacts_topPeersNotModified)) return x.buf } -func (m *TLMessagesFoundStickerSetsNotModified) Decode(dbuf *DecodeBuf) error { +func (m *TLContactsTopPeersNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets; -func (m *TLMessagesFoundStickerSets) To_Messages_FoundStickerSets() *Messages_FoundStickerSets { - return &Messages_FoundStickerSets{ - Constructor: TLConstructor_CRC32_messages_foundStickerSets, +// contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers; +func (m *TLContactsTopPeers) To_Contacts_TopPeers() *Contacts_TopPeers { + return &Contacts_TopPeers{ + Constructor: TLConstructor_CRC32_contacts_topPeers, Data2: m.Data2, } } -func (m *TLMessagesFoundStickerSets) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLMessagesFoundStickerSets) GetHash() int32 { return m.Data2.Hash } +func (m *TLContactsTopPeers) SetCategories(v []*TopPeerCategoryPeers) { m.Data2.Categories = v } +func (m *TLContactsTopPeers) GetCategories() []*TopPeerCategoryPeers { return m.Data2.Categories } -func (m *TLMessagesFoundStickerSets) SetSets(v []*StickerSetCovered) { m.Data2.Sets = v } -func (m *TLMessagesFoundStickerSets) GetSets() []*StickerSetCovered { return m.Data2.Sets } +func (m *TLContactsTopPeers) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLContactsTopPeers) GetChats() []*Chat { return m.Data2.Chats } -func NewTLMessagesFoundStickerSets() *TLMessagesFoundStickerSets { - return &TLMessagesFoundStickerSets{Data2: &Messages_FoundStickerSets_Data{}} +func (m *TLContactsTopPeers) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLContactsTopPeers) GetUsers() []*User { return m.Data2.Users } + +func NewTLContactsTopPeers() *TLContactsTopPeers { + return &TLContactsTopPeers{Data2: &Contacts_TopPeers_Data{}} } -func (m *TLMessagesFoundStickerSets) Encode() []byte { +func (m *TLContactsTopPeers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_foundStickerSets)) + x.Int(int32(TLConstructor_CRC32_contacts_topPeers)) - x.Int(m.GetHash()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { + x.Int(int32(len(m.GetCategories()))) + for _, v := range m.GetCategories() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLMessagesFoundStickerSets) EncodeToLayer(layer int) []byte { +func (m *TLContactsTopPeers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_foundStickerSets)) + x.Int(int32(TLConstructor_CRC32_contacts_topPeers)) - x.Int(m.GetHash()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { + x.Int(int32(len(m.GetCategories()))) + for _, v := range m.GetCategories() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLMessagesFoundStickerSets) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Int()) +func (m *TLContactsTopPeers) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*TopPeerCategoryPeers, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &TopPeerCategoryPeers{} + v1[i].Decode(dbuf) + } + m.SetCategories(v1) + c2 := dbuf.Int() if c2 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } l2 := dbuf.Int() - v2 := make([]*StickerSetCovered, l2) + v2 := make([]*Chat, l2) for i := int32(0); i < l2; i++ { - v2[i] = &StickerSetCovered{} + v2[i] = &Chat{} v2[i].Decode(dbuf) } - m.SetSets(v2) + m.SetChats(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*User, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &User{} + v3[i].Decode(dbuf) + } + m.SetUsers(v3) + + return dbuf.err +} + +// contacts.topPeersDisabled#b52c939d = contacts.TopPeers; +func (m *TLContactsTopPeersDisabled) To_Contacts_TopPeers() *Contacts_TopPeers { + return &Contacts_TopPeers{ + Constructor: TLConstructor_CRC32_contacts_topPeersDisabled, + Data2: m.Data2, + } +} + +func NewTLContactsTopPeersDisabled() *TLContactsTopPeersDisabled { + return &TLContactsTopPeersDisabled{Data2: &Contacts_TopPeers_Data{}} +} + +func (m *TLContactsTopPeersDisabled) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_contacts_topPeersDisabled)) + + return x.buf +} + +func (m *TLContactsTopPeersDisabled) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_contacts_topPeersDisabled)) + + return x.buf +} + +func (m *TLContactsTopPeersDisabled) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// MessageFwdHeader <-- -// + TL_MessageFwdHeader +// SecureCredentialsEncrypted <-- +// + TL_SecureCredentialsEncrypted // -func (m *MessageFwdHeader) Encode() []byte { +func (m *SecureCredentialsEncrypted) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messageFwdHeader: - t := m.To_MessageFwdHeader() + case TLConstructor_CRC32_secureCredentialsEncrypted: + t := m.To_SecureCredentialsEncrypted() return t.Encode() default: @@ -42621,11 +43110,11 @@ func (m *MessageFwdHeader) Encode() []byte { } } -func (m *MessageFwdHeader) EncodeToLayer(layer int) []byte { +func (m *SecureCredentialsEncrypted) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messageFwdHeader: - t := m.To_MessageFwdHeader() + case TLConstructor_CRC32_secureCredentialsEncrypted: + t := m.To_SecureCredentialsEncrypted() return t.EncodeToLayer(layer) default: @@ -42634,11 +43123,11 @@ func (m *MessageFwdHeader) EncodeToLayer(layer int) []byte { } } -func (m *MessageFwdHeader) Decode(dbuf *DecodeBuf) error { +func (m *SecureCredentialsEncrypted) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messageFwdHeader: - m2 := &TLMessageFwdHeader{Data2: &MessageFwdHeader_Data{}} + case TLConstructor_CRC32_secureCredentialsEncrypted: + m2 := &TLSecureCredentialsEncrypted{Data2: &SecureCredentialsEncrypted_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -42648,185 +43137,81 @@ func (m *MessageFwdHeader) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageFwdHeader#559ebe6d flags:# from_id:flags.0?int date:int channel_id:flags.1?int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int = MessageFwdHeader; -func (m *MessageFwdHeader) To_MessageFwdHeader() *TLMessageFwdHeader { - return &TLMessageFwdHeader{ +// secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted; +func (m *SecureCredentialsEncrypted) To_SecureCredentialsEncrypted() *TLSecureCredentialsEncrypted { + return &TLSecureCredentialsEncrypted{ Data2: m.Data2, } } -// messageFwdHeader#559ebe6d flags:# from_id:flags.0?int date:int channel_id:flags.1?int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int = MessageFwdHeader; -func (m *TLMessageFwdHeader) To_MessageFwdHeader() *MessageFwdHeader { - return &MessageFwdHeader{ - Constructor: TLConstructor_CRC32_messageFwdHeader, +// secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted; +func (m *TLSecureCredentialsEncrypted) To_SecureCredentialsEncrypted() *SecureCredentialsEncrypted { + return &SecureCredentialsEncrypted{ + Constructor: TLConstructor_CRC32_secureCredentialsEncrypted, Data2: m.Data2, } } -func (m *TLMessageFwdHeader) SetFromId(v int32) { m.Data2.FromId = v } -func (m *TLMessageFwdHeader) GetFromId() int32 { return m.Data2.FromId } - -func (m *TLMessageFwdHeader) SetDate(v int32) { m.Data2.Date = v } -func (m *TLMessageFwdHeader) GetDate() int32 { return m.Data2.Date } - -func (m *TLMessageFwdHeader) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLMessageFwdHeader) GetChannelId() int32 { return m.Data2.ChannelId } - -func (m *TLMessageFwdHeader) SetChannelPost(v int32) { m.Data2.ChannelPost = v } -func (m *TLMessageFwdHeader) GetChannelPost() int32 { return m.Data2.ChannelPost } - -func (m *TLMessageFwdHeader) SetPostAuthor(v string) { m.Data2.PostAuthor = v } -func (m *TLMessageFwdHeader) GetPostAuthor() string { return m.Data2.PostAuthor } +func (m *TLSecureCredentialsEncrypted) SetData(v []byte) { m.Data2.Data = v } +func (m *TLSecureCredentialsEncrypted) GetData() []byte { return m.Data2.Data } -func (m *TLMessageFwdHeader) SetSavedFromPeer(v *Peer) { m.Data2.SavedFromPeer = v } -func (m *TLMessageFwdHeader) GetSavedFromPeer() *Peer { return m.Data2.SavedFromPeer } +func (m *TLSecureCredentialsEncrypted) SetHash(v []byte) { m.Data2.Hash = v } +func (m *TLSecureCredentialsEncrypted) GetHash() []byte { return m.Data2.Hash } -func (m *TLMessageFwdHeader) SetSavedFromMsgId(v int32) { m.Data2.SavedFromMsgId = v } -func (m *TLMessageFwdHeader) GetSavedFromMsgId() int32 { return m.Data2.SavedFromMsgId } +func (m *TLSecureCredentialsEncrypted) SetSecret(v []byte) { m.Data2.Secret = v } +func (m *TLSecureCredentialsEncrypted) GetSecret() []byte { return m.Data2.Secret } -func NewTLMessageFwdHeader() *TLMessageFwdHeader { - return &TLMessageFwdHeader{Data2: &MessageFwdHeader_Data{}} +func NewTLSecureCredentialsEncrypted() *TLSecureCredentialsEncrypted { + return &TLSecureCredentialsEncrypted{Data2: &SecureCredentialsEncrypted_Data{}} } -func (m *TLMessageFwdHeader) Encode() []byte { +func (m *TLSecureCredentialsEncrypted) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageFwdHeader)) - - // flags - var flags uint32 = 0 - if m.GetFromId() != 0 { - flags |= 1 << 0 - } - if m.GetChannelId() != 0 { - flags |= 1 << 1 - } - if m.GetChannelPost() != 0 { - flags |= 1 << 2 - } - if m.GetPostAuthor() != "" { - flags |= 1 << 3 - } - if m.GetSavedFromPeer() != nil { - flags |= 1 << 4 - } - if m.GetSavedFromMsgId() != 0 { - flags |= 1 << 4 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_secureCredentialsEncrypted)) - if m.GetFromId() != 0 { - x.Int(m.GetFromId()) - } - x.Int(m.GetDate()) - if m.GetChannelId() != 0 { - x.Int(m.GetChannelId()) - } - if m.GetChannelPost() != 0 { - x.Int(m.GetChannelPost()) - } - if m.GetPostAuthor() != "" { - x.String(m.GetPostAuthor()) - } - if m.GetSavedFromPeer() != nil { - x.Bytes(m.GetSavedFromPeer().Encode()) - } - if m.GetSavedFromMsgId() != 0 { - x.Int(m.GetSavedFromMsgId()) - } + x.StringBytes(m.GetData()) + x.StringBytes(m.GetHash()) + x.StringBytes(m.GetSecret()) return x.buf } -func (m *TLMessageFwdHeader) EncodeToLayer(layer int) []byte { +func (m *TLSecureCredentialsEncrypted) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageFwdHeader)) - - // flags - var flags uint32 = 0 - if m.GetFromId() != 0 { - flags |= 1 << 0 - } - if m.GetChannelId() != 0 { - flags |= 1 << 1 - } - if m.GetChannelPost() != 0 { - flags |= 1 << 2 - } - if m.GetPostAuthor() != "" { - flags |= 1 << 3 - } - if m.GetSavedFromPeer() != nil { - flags |= 1 << 4 - } - if m.GetSavedFromMsgId() != 0 { - flags |= 1 << 4 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_secureCredentialsEncrypted)) - if m.GetFromId() != 0 { - x.Int(m.GetFromId()) - } - x.Int(m.GetDate()) - if m.GetChannelId() != 0 { - x.Int(m.GetChannelId()) - } - if m.GetChannelPost() != 0 { - x.Int(m.GetChannelPost()) - } - if m.GetPostAuthor() != "" { - x.String(m.GetPostAuthor()) - } - if m.GetSavedFromPeer() != nil { - x.Bytes(m.GetSavedFromPeer().EncodeToLayer(layer)) - } - if m.GetSavedFromMsgId() != 0 { - x.Int(m.GetSavedFromMsgId()) - } + x.StringBytes(m.GetData()) + x.StringBytes(m.GetHash()) + x.StringBytes(m.GetSecret()) return x.buf } -func (m *TLMessageFwdHeader) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetFromId(dbuf.Int()) - } - m.SetDate(dbuf.Int()) - if (flags & (1 << 1)) != 0 { - m.SetChannelId(dbuf.Int()) - } - if (flags & (1 << 2)) != 0 { - m.SetChannelPost(dbuf.Int()) - } - if (flags & (1 << 3)) != 0 { - m.SetPostAuthor(dbuf.String()) - } - if (flags & (1 << 4)) != 0 { - m7 := &Peer{} - m7.Decode(dbuf) - m.SetSavedFromPeer(m7) - } - if (flags & (1 << 4)) != 0 { - m.SetSavedFromMsgId(dbuf.Int()) - } +func (m *TLSecureCredentialsEncrypted) Decode(dbuf *DecodeBuf) error { + m.SetData(dbuf.StringBytes()) + m.SetHash(dbuf.StringBytes()) + m.SetSecret(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputGame <-- -// + TL_InputGameID -// + TL_InputGameShortName +// Document <-- +// + TL_DocumentEmpty +// + TL_Document +// + TL_DocumentLayer86 // -func (m *InputGame) Encode() []byte { +func (m *Document) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputGameID: - t := m.To_InputGameID() + case TLConstructor_CRC32_documentEmpty: + t := m.To_DocumentEmpty() return t.Encode() - case TLConstructor_CRC32_inputGameShortName: - t := m.To_InputGameShortName() + case TLConstructor_CRC32_document: + t := m.To_Document() + return t.Encode() + case TLConstructor_CRC32_documentLayer86: + t := m.To_DocumentLayer86() return t.Encode() default: @@ -42835,14 +43220,17 @@ func (m *InputGame) Encode() []byte { } } -func (m *InputGame) EncodeToLayer(layer int) []byte { +func (m *Document) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputGameID: - t := m.To_InputGameID() + case TLConstructor_CRC32_documentEmpty: + t := m.To_DocumentEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputGameShortName: - t := m.To_InputGameShortName() + case TLConstructor_CRC32_document: + t := m.To_Document() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_documentLayer86: + t := m.To_DocumentLayer86() return t.EncodeToLayer(layer) default: @@ -42851,15 +43239,19 @@ func (m *InputGame) EncodeToLayer(layer int) []byte { } } -func (m *InputGame) Decode(dbuf *DecodeBuf) error { +func (m *Document) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputGameID: - m2 := &TLInputGameID{Data2: &InputGame_Data{}} + case TLConstructor_CRC32_documentEmpty: + m2 := &TLDocumentEmpty{Data2: &Document_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputGameShortName: - m2 := &TLInputGameShortName{Data2: &InputGame_Data{}} + case TLConstructor_CRC32_document: + m2 := &TLDocument{Data2: &Document_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_documentLayer86: + m2 := &TLDocumentLayer86{Data2: &Document_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -42869,221 +43261,291 @@ func (m *InputGame) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputGameID#32c3e77 id:long access_hash:long = InputGame; -func (m *InputGame) To_InputGameID() *TLInputGameID { - return &TLInputGameID{ +// documentEmpty#36f8c871 id:long = Document; +func (m *Document) To_DocumentEmpty() *TLDocumentEmpty { + return &TLDocumentEmpty{ Data2: m.Data2, } } -// inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame; -func (m *InputGame) To_InputGameShortName() *TLInputGameShortName { - return &TLInputGameShortName{ +// document#87232bc7 id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int version:int attributes:Vector = Document; +func (m *Document) To_Document() *TLDocument { + return &TLDocument{ Data2: m.Data2, } } -// inputGameID#32c3e77 id:long access_hash:long = InputGame; -func (m *TLInputGameID) To_InputGame() *InputGame { - return &InputGame{ - Constructor: TLConstructor_CRC32_inputGameID, - Data2: m.Data2, +// document#59534e4c id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = Document; +func (m *Document) To_DocumentLayer86() *TLDocumentLayer86 { + return &TLDocumentLayer86{ + Data2: m.Data2, } } -func (m *TLInputGameID) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputGameID) GetId() int64 { return m.Data2.Id } +// documentEmpty#36f8c871 id:long = Document; +func (m *TLDocumentEmpty) To_Document() *Document { + return &Document{ + Constructor: TLConstructor_CRC32_documentEmpty, + Data2: m.Data2, + } +} -func (m *TLInputGameID) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputGameID) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLDocumentEmpty) SetId(v int64) { m.Data2.Id = v } +func (m *TLDocumentEmpty) GetId() int64 { return m.Data2.Id } -func NewTLInputGameID() *TLInputGameID { - return &TLInputGameID{Data2: &InputGame_Data{}} +func NewTLDocumentEmpty() *TLDocumentEmpty { + return &TLDocumentEmpty{Data2: &Document_Data{}} } -func (m *TLInputGameID) Encode() []byte { +func (m *TLDocumentEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputGameID)) + x.Int(int32(TLConstructor_CRC32_documentEmpty)) x.Long(m.GetId()) - x.Long(m.GetAccessHash()) return x.buf } -func (m *TLInputGameID) EncodeToLayer(layer int) []byte { +func (m *TLDocumentEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputGameID)) + x.Int(int32(TLConstructor_CRC32_documentEmpty)) x.Long(m.GetId()) - x.Long(m.GetAccessHash()) return x.buf } -func (m *TLInputGameID) Decode(dbuf *DecodeBuf) error { +func (m *TLDocumentEmpty) Decode(dbuf *DecodeBuf) error { m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) return dbuf.err } -// inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame; -func (m *TLInputGameShortName) To_InputGame() *InputGame { - return &InputGame{ - Constructor: TLConstructor_CRC32_inputGameShortName, +// document#87232bc7 id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int version:int attributes:Vector = Document; +func (m *TLDocument) To_Document() *Document { + return &Document{ + Constructor: TLConstructor_CRC32_document, Data2: m.Data2, } } -func (m *TLInputGameShortName) SetBotId(v *InputUser) { m.Data2.BotId = v } -func (m *TLInputGameShortName) GetBotId() *InputUser { return m.Data2.BotId } +func (m *TLDocument) SetId(v int64) { m.Data2.Id = v } +func (m *TLDocument) GetId() int64 { return m.Data2.Id } -func (m *TLInputGameShortName) SetShortName(v string) { m.Data2.ShortName = v } -func (m *TLInputGameShortName) GetShortName() string { return m.Data2.ShortName } +func (m *TLDocument) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLDocument) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLInputGameShortName() *TLInputGameShortName { - return &TLInputGameShortName{Data2: &InputGame_Data{}} +func (m *TLDocument) SetDate(v int32) { m.Data2.Date = v } +func (m *TLDocument) GetDate() int32 { return m.Data2.Date } + +func (m *TLDocument) SetMimeType(v string) { m.Data2.MimeType = v } +func (m *TLDocument) GetMimeType() string { return m.Data2.MimeType } + +func (m *TLDocument) SetSize(v int32) { m.Data2.Size = v } +func (m *TLDocument) GetSize() int32 { return m.Data2.Size } + +func (m *TLDocument) SetThumb(v *PhotoSize) { m.Data2.Thumb = v } +func (m *TLDocument) GetThumb() *PhotoSize { return m.Data2.Thumb } + +func (m *TLDocument) SetDcId(v int32) { m.Data2.DcId = v } +func (m *TLDocument) GetDcId() int32 { return m.Data2.DcId } + +func (m *TLDocument) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLDocument) GetVersion() int32 { return m.Data2.Version } + +func (m *TLDocument) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } +func (m *TLDocument) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } + +func NewTLDocument() *TLDocument { + return &TLDocument{Data2: &Document_Data{}} } -func (m *TLInputGameShortName) Encode() []byte { +func (m *TLDocument) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputGameShortName)) + x.Int(int32(TLConstructor_CRC32_document)) - x.Bytes(m.GetBotId().Encode()) - x.String(m.GetShortName()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.String(m.GetMimeType()) + x.Int(m.GetSize()) + x.Bytes(m.GetThumb().Encode()) + x.Int(m.GetDcId()) + x.Int(m.GetVersion()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLInputGameShortName) EncodeToLayer(layer int) []byte { +func (m *TLDocument) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputGameShortName)) + x.Int(int32(TLConstructor_CRC32_document)) - x.Bytes(m.GetBotId().EncodeToLayer(layer)) - x.String(m.GetShortName()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetDate()) + x.String(m.GetMimeType()) + x.Int(m.GetSize()) + x.Bytes(m.GetThumb().EncodeToLayer(layer)) + x.Int(m.GetDcId()) + x.Int(m.GetVersion()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLInputGameShortName) Decode(dbuf *DecodeBuf) error { - m1 := &InputUser{} - m1.Decode(dbuf) - m.SetBotId(m1) - m.SetShortName(dbuf.String()) +func (m *TLDocument) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetDate(dbuf.Int()) + m.SetMimeType(dbuf.String()) + m.SetSize(dbuf.Int()) + m6 := &PhotoSize{} + m6.Decode(dbuf) + m.SetThumb(m6) + m.SetDcId(dbuf.Int()) + m.SetVersion(dbuf.Int()) + c9 := dbuf.Int() + if c9 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 9, c9) + return dbuf.err + } + l9 := dbuf.Int() + v9 := make([]*DocumentAttribute, l9) + for i := int32(0); i < l9; i++ { + v9[i] = &DocumentAttribute{} + v9[i].Decode(dbuf) + } + m.SetAttributes(v9) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Error <-- -// + TL_Error -// - -func (m *Error) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_error: - t := m.To_Error() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// document#59534e4c id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = Document; +func (m *TLDocumentLayer86) To_Document() *Document { + return &Document{ + Constructor: TLConstructor_CRC32_documentLayer86, + Data2: m.Data2, } } -func (m *Error) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_error: - t := m.To_Error() - return t.EncodeToLayer(layer) +func (m *TLDocumentLayer86) SetId(v int64) { m.Data2.Id = v } +func (m *TLDocumentLayer86) GetId() int64 { return m.Data2.Id } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLDocumentLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLDocumentLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } -func (m *Error) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_error: - m2 := &TLError{Data2: &Error_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLDocumentLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } +func (m *TLDocumentLayer86) GetFileReference() []byte { return m.Data2.FileReference } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} +func (m *TLDocumentLayer86) SetDate(v int32) { m.Data2.Date = v } +func (m *TLDocumentLayer86) GetDate() int32 { return m.Data2.Date } -// error#c4b9f9bb code:int text:string = Error; -func (m *Error) To_Error() *TLError { - return &TLError{ - Data2: m.Data2, - } -} +func (m *TLDocumentLayer86) SetMimeType(v string) { m.Data2.MimeType = v } +func (m *TLDocumentLayer86) GetMimeType() string { return m.Data2.MimeType } -// error#c4b9f9bb code:int text:string = Error; -func (m *TLError) To_Error() *Error { - return &Error{ - Constructor: TLConstructor_CRC32_error, - Data2: m.Data2, - } -} +func (m *TLDocumentLayer86) SetSize(v int32) { m.Data2.Size = v } +func (m *TLDocumentLayer86) GetSize() int32 { return m.Data2.Size } -func (m *TLError) SetCode(v int32) { m.Data2.Code = v } -func (m *TLError) GetCode() int32 { return m.Data2.Code } +func (m *TLDocumentLayer86) SetThumb(v *PhotoSize) { m.Data2.Thumb = v } +func (m *TLDocumentLayer86) GetThumb() *PhotoSize { return m.Data2.Thumb } -func (m *TLError) SetText(v string) { m.Data2.Text = v } -func (m *TLError) GetText() string { return m.Data2.Text } +func (m *TLDocumentLayer86) SetDcId(v int32) { m.Data2.DcId = v } +func (m *TLDocumentLayer86) GetDcId() int32 { return m.Data2.DcId } -func NewTLError() *TLError { - return &TLError{Data2: &Error_Data{}} +func (m *TLDocumentLayer86) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } +func (m *TLDocumentLayer86) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } + +func NewTLDocumentLayer86() *TLDocumentLayer86 { + return &TLDocumentLayer86{Data2: &Document_Data{}} } -func (m *TLError) Encode() []byte { +func (m *TLDocumentLayer86) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_error)) + x.Int(int32(TLConstructor_CRC32_documentLayer86)) - x.Int(m.GetCode()) - x.String(m.GetText()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) + x.Int(m.GetDate()) + x.String(m.GetMimeType()) + x.Int(m.GetSize()) + x.Bytes(m.GetThumb().Encode()) + x.Int(m.GetDcId()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLError) EncodeToLayer(layer int) []byte { +func (m *TLDocumentLayer86) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_error)) + x.Int(int32(TLConstructor_CRC32_documentLayer86)) - x.Int(m.GetCode()) - x.String(m.GetText()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) + x.Int(m.GetDate()) + x.String(m.GetMimeType()) + x.Int(m.GetSize()) + x.Bytes(m.GetThumb().EncodeToLayer(layer)) + x.Int(m.GetDcId()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLError) Decode(dbuf *DecodeBuf) error { - m.SetCode(dbuf.Int()) - m.SetText(dbuf.String()) +func (m *TLDocumentLayer86) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetFileReference(dbuf.StringBytes()) + m.SetDate(dbuf.Int()) + m.SetMimeType(dbuf.String()) + m.SetSize(dbuf.Int()) + m7 := &PhotoSize{} + m7.Decode(dbuf) + m.SetThumb(m7) + m.SetDcId(dbuf.Int()) + c9 := dbuf.Int() + if c9 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 9, c9) + return dbuf.err + } + l9 := dbuf.Int() + v9 := make([]*DocumentAttribute, l9) + for i := int32(0); i < l9; i++ { + v9[i] = &DocumentAttribute{} + v9[i].Decode(dbuf) + } + m.SetAttributes(v9) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// WallPaper <-- -// + TL_WallPaper -// + TL_WallPaperSolid +// Contacts_ResolvedPeer <-- +// + TL_ContactsResolvedPeer // -func (m *WallPaper) Encode() []byte { +func (m *Contacts_ResolvedPeer) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_wallPaper: - t := m.To_WallPaper() - return t.Encode() - case TLConstructor_CRC32_wallPaperSolid: - t := m.To_WallPaperSolid() + case TLConstructor_CRC32_contacts_resolvedPeer: + t := m.To_ContactsResolvedPeer() return t.Encode() default: @@ -43092,14 +43554,11 @@ func (m *WallPaper) Encode() []byte { } } -func (m *WallPaper) EncodeToLayer(layer int) []byte { +func (m *Contacts_ResolvedPeer) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_wallPaper: - t := m.To_WallPaper() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_wallPaperSolid: - t := m.To_WallPaperSolid() + case TLConstructor_CRC32_contacts_resolvedPeer: + t := m.To_ContactsResolvedPeer() return t.EncodeToLayer(layer) default: @@ -43108,15 +43567,11 @@ func (m *WallPaper) EncodeToLayer(layer int) []byte { } } -func (m *WallPaper) Decode(dbuf *DecodeBuf) error { +func (m *Contacts_ResolvedPeer) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_wallPaper: - m2 := &TLWallPaper{Data2: &WallPaper_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_wallPaperSolid: - m2 := &TLWallPaperSolid{Data2: &WallPaper_Data{}} + case TLConstructor_CRC32_contacts_resolvedPeer: + m2 := &TLContactsResolvedPeer{Data2: &Contacts_ResolvedPeer_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -43126,163 +43581,232 @@ func (m *WallPaper) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// wallPaper#ccb03657 id:int title:string sizes:Vector color:int = WallPaper; -func (m *WallPaper) To_WallPaper() *TLWallPaper { - return &TLWallPaper{ - Data2: m.Data2, - } -} - -// wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper; -func (m *WallPaper) To_WallPaperSolid() *TLWallPaperSolid { - return &TLWallPaperSolid{ +// contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer; +func (m *Contacts_ResolvedPeer) To_ContactsResolvedPeer() *TLContactsResolvedPeer { + return &TLContactsResolvedPeer{ Data2: m.Data2, } } -// wallPaper#ccb03657 id:int title:string sizes:Vector color:int = WallPaper; -func (m *TLWallPaper) To_WallPaper() *WallPaper { - return &WallPaper{ - Constructor: TLConstructor_CRC32_wallPaper, +// contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer; +func (m *TLContactsResolvedPeer) To_Contacts_ResolvedPeer() *Contacts_ResolvedPeer { + return &Contacts_ResolvedPeer{ + Constructor: TLConstructor_CRC32_contacts_resolvedPeer, Data2: m.Data2, } } -func (m *TLWallPaper) SetId(v int32) { m.Data2.Id = v } -func (m *TLWallPaper) GetId() int32 { return m.Data2.Id } - -func (m *TLWallPaper) SetTitle(v string) { m.Data2.Title = v } -func (m *TLWallPaper) GetTitle() string { return m.Data2.Title } +func (m *TLContactsResolvedPeer) SetPeer(v *Peer) { m.Data2.Peer = v } +func (m *TLContactsResolvedPeer) GetPeer() *Peer { return m.Data2.Peer } -func (m *TLWallPaper) SetSizes(v []*PhotoSize) { m.Data2.Sizes = v } -func (m *TLWallPaper) GetSizes() []*PhotoSize { return m.Data2.Sizes } +func (m *TLContactsResolvedPeer) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLContactsResolvedPeer) GetChats() []*Chat { return m.Data2.Chats } -func (m *TLWallPaper) SetColor(v int32) { m.Data2.Color = v } -func (m *TLWallPaper) GetColor() int32 { return m.Data2.Color } +func (m *TLContactsResolvedPeer) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLContactsResolvedPeer) GetUsers() []*User { return m.Data2.Users } -func NewTLWallPaper() *TLWallPaper { - return &TLWallPaper{Data2: &WallPaper_Data{}} +func NewTLContactsResolvedPeer() *TLContactsResolvedPeer { + return &TLContactsResolvedPeer{Data2: &Contacts_ResolvedPeer_Data{}} } -func (m *TLWallPaper) Encode() []byte { +func (m *TLContactsResolvedPeer) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_wallPaper)) + x.Int(int32(TLConstructor_CRC32_contacts_resolvedPeer)) - x.Int(m.GetId()) - x.String(m.GetTitle()) + x.Bytes(m.GetPeer().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSizes()))) - for _, v := range m.GetSizes() { + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).Encode()...) } - x.Int(m.GetColor()) return x.buf } -func (m *TLWallPaper) EncodeToLayer(layer int) []byte { +func (m *TLContactsResolvedPeer) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_wallPaper)) + x.Int(int32(TLConstructor_CRC32_contacts_resolvedPeer)) - x.Int(m.GetId()) - x.String(m.GetTitle()) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSizes()))) - for _, v := range m.GetSizes() { + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.Int(m.GetColor()) return x.buf } -func (m *TLWallPaper) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetTitle(dbuf.String()) +func (m *TLContactsResolvedPeer) Decode(dbuf *DecodeBuf) error { + m1 := &Peer{} + m1.Decode(dbuf) + m.SetPeer(m1) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Chat, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Chat{} + v2[i].Decode(dbuf) + } + m.SetChats(v2) + c3 := dbuf.Int() if c3 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) return dbuf.err } l3 := dbuf.Int() - v3 := make([]*PhotoSize, l3) + v3 := make([]*User, l3) for i := int32(0); i < l3; i++ { - v3[i] = &PhotoSize{} + v3[i] = &User{} v3[i].Decode(dbuf) } - m.SetSizes(v3) + m.SetUsers(v3) - m.SetColor(dbuf.Int()) + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// PhoneConnection <-- +// + TL_PhoneConnection +// + +func (m *PhoneConnection) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_phoneConnection: + t := m.To_PhoneConnection() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *PhoneConnection) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_phoneConnection: + t := m.To_PhoneConnection() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *PhoneConnection) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_phoneConnection: + m2 := &TLPhoneConnection{Data2: &PhoneConnection_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper; -func (m *TLWallPaperSolid) To_WallPaper() *WallPaper { - return &WallPaper{ - Constructor: TLConstructor_CRC32_wallPaperSolid, +// phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; +func (m *PhoneConnection) To_PhoneConnection() *TLPhoneConnection { + return &TLPhoneConnection{ + Data2: m.Data2, + } +} + +// phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; +func (m *TLPhoneConnection) To_PhoneConnection() *PhoneConnection { + return &PhoneConnection{ + Constructor: TLConstructor_CRC32_phoneConnection, Data2: m.Data2, } } -func (m *TLWallPaperSolid) SetId(v int32) { m.Data2.Id = v } -func (m *TLWallPaperSolid) GetId() int32 { return m.Data2.Id } +func (m *TLPhoneConnection) SetId(v int64) { m.Data2.Id = v } +func (m *TLPhoneConnection) GetId() int64 { return m.Data2.Id } -func (m *TLWallPaperSolid) SetTitle(v string) { m.Data2.Title = v } -func (m *TLWallPaperSolid) GetTitle() string { return m.Data2.Title } +func (m *TLPhoneConnection) SetIp(v string) { m.Data2.Ip = v } +func (m *TLPhoneConnection) GetIp() string { return m.Data2.Ip } -func (m *TLWallPaperSolid) SetBgColor(v int32) { m.Data2.BgColor = v } -func (m *TLWallPaperSolid) GetBgColor() int32 { return m.Data2.BgColor } +func (m *TLPhoneConnection) SetIpv6(v string) { m.Data2.Ipv6 = v } +func (m *TLPhoneConnection) GetIpv6() string { return m.Data2.Ipv6 } -func (m *TLWallPaperSolid) SetColor(v int32) { m.Data2.Color = v } -func (m *TLWallPaperSolid) GetColor() int32 { return m.Data2.Color } +func (m *TLPhoneConnection) SetPort(v int32) { m.Data2.Port = v } +func (m *TLPhoneConnection) GetPort() int32 { return m.Data2.Port } -func NewTLWallPaperSolid() *TLWallPaperSolid { - return &TLWallPaperSolid{Data2: &WallPaper_Data{}} +func (m *TLPhoneConnection) SetPeerTag(v []byte) { m.Data2.PeerTag = v } +func (m *TLPhoneConnection) GetPeerTag() []byte { return m.Data2.PeerTag } + +func NewTLPhoneConnection() *TLPhoneConnection { + return &TLPhoneConnection{Data2: &PhoneConnection_Data{}} } -func (m *TLWallPaperSolid) Encode() []byte { +func (m *TLPhoneConnection) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_wallPaperSolid)) + x.Int(int32(TLConstructor_CRC32_phoneConnection)) - x.Int(m.GetId()) - x.String(m.GetTitle()) - x.Int(m.GetBgColor()) - x.Int(m.GetColor()) + x.Long(m.GetId()) + x.String(m.GetIp()) + x.String(m.GetIpv6()) + x.Int(m.GetPort()) + x.StringBytes(m.GetPeerTag()) return x.buf } -func (m *TLWallPaperSolid) EncodeToLayer(layer int) []byte { +func (m *TLPhoneConnection) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_wallPaperSolid)) + x.Int(int32(TLConstructor_CRC32_phoneConnection)) - x.Int(m.GetId()) - x.String(m.GetTitle()) - x.Int(m.GetBgColor()) - x.Int(m.GetColor()) + x.Long(m.GetId()) + x.String(m.GetIp()) + x.String(m.GetIpv6()) + x.Int(m.GetPort()) + x.StringBytes(m.GetPeerTag()) return x.buf } -func (m *TLWallPaperSolid) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetTitle(dbuf.String()) - m.SetBgColor(dbuf.Int()) - m.SetColor(dbuf.Int()) +func (m *TLPhoneConnection) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetIp(dbuf.String()) + m.SetIpv6(dbuf.String()) + m.SetPort(dbuf.Int()) + m.SetPeerTag(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// StickerSet <-- -// + TL_StickerSet +// Messages_FoundStickerSets <-- +// + TL_MessagesFoundStickerSetsNotModified +// + TL_MessagesFoundStickerSets // -func (m *StickerSet) Encode() []byte { +func (m *Messages_FoundStickerSets) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_stickerSet: - t := m.To_StickerSet() + case TLConstructor_CRC32_messages_foundStickerSetsNotModified: + t := m.To_MessagesFoundStickerSetsNotModified() + return t.Encode() + case TLConstructor_CRC32_messages_foundStickerSets: + t := m.To_MessagesFoundStickerSets() return t.Encode() default: @@ -43291,11 +43815,14 @@ func (m *StickerSet) Encode() []byte { } } -func (m *StickerSet) EncodeToLayer(layer int) []byte { +func (m *Messages_FoundStickerSets) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_stickerSet: - t := m.To_StickerSet() + case TLConstructor_CRC32_messages_foundStickerSetsNotModified: + t := m.To_MessagesFoundStickerSetsNotModified() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_foundStickerSets: + t := m.To_MessagesFoundStickerSets() return t.EncodeToLayer(layer) default: @@ -43304,11 +43831,15 @@ func (m *StickerSet) EncodeToLayer(layer int) []byte { } } -func (m *StickerSet) Decode(dbuf *DecodeBuf) error { +func (m *Messages_FoundStickerSets) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_stickerSet: - m2 := &TLStickerSet{Data2: &StickerSet_Data{}} + case TLConstructor_CRC32_messages_foundStickerSetsNotModified: + m2 := &TLMessagesFoundStickerSetsNotModified{Data2: &Messages_FoundStickerSets_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_foundStickerSets: + m2 := &TLMessagesFoundStickerSets{Data2: &Messages_FoundStickerSets_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -43318,155 +43849,128 @@ func (m *StickerSet) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// stickerSet#5585a139 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet; -func (m *StickerSet) To_StickerSet() *TLStickerSet { - return &TLStickerSet{ +// messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets; +func (m *Messages_FoundStickerSets) To_MessagesFoundStickerSetsNotModified() *TLMessagesFoundStickerSetsNotModified { + return &TLMessagesFoundStickerSetsNotModified{ Data2: m.Data2, } } -// stickerSet#5585a139 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet; -func (m *TLStickerSet) To_StickerSet() *StickerSet { - return &StickerSet{ - Constructor: TLConstructor_CRC32_stickerSet, +// messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets; +func (m *Messages_FoundStickerSets) To_MessagesFoundStickerSets() *TLMessagesFoundStickerSets { + return &TLMessagesFoundStickerSets{ + Data2: m.Data2, + } +} + +// messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets; +func (m *TLMessagesFoundStickerSetsNotModified) To_Messages_FoundStickerSets() *Messages_FoundStickerSets { + return &Messages_FoundStickerSets{ + Constructor: TLConstructor_CRC32_messages_foundStickerSetsNotModified, Data2: m.Data2, } } -func (m *TLStickerSet) SetArchived(v bool) { m.Data2.Archived = v } -func (m *TLStickerSet) GetArchived() bool { return m.Data2.Archived } +func NewTLMessagesFoundStickerSetsNotModified() *TLMessagesFoundStickerSetsNotModified { + return &TLMessagesFoundStickerSetsNotModified{Data2: &Messages_FoundStickerSets_Data{}} +} -func (m *TLStickerSet) SetOfficial(v bool) { m.Data2.Official = v } -func (m *TLStickerSet) GetOfficial() bool { return m.Data2.Official } +func (m *TLMessagesFoundStickerSetsNotModified) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_foundStickerSetsNotModified)) -func (m *TLStickerSet) SetMasks(v bool) { m.Data2.Masks = v } -func (m *TLStickerSet) GetMasks() bool { return m.Data2.Masks } + return x.buf +} -func (m *TLStickerSet) SetInstalledDate(v int32) { m.Data2.InstalledDate = v } -func (m *TLStickerSet) GetInstalledDate() int32 { return m.Data2.InstalledDate } +func (m *TLMessagesFoundStickerSetsNotModified) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_foundStickerSetsNotModified)) -func (m *TLStickerSet) SetId(v int64) { m.Data2.Id = v } -func (m *TLStickerSet) GetId() int64 { return m.Data2.Id } + return x.buf +} -func (m *TLStickerSet) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLStickerSet) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLMessagesFoundStickerSetsNotModified) Decode(dbuf *DecodeBuf) error { -func (m *TLStickerSet) SetTitle(v string) { m.Data2.Title = v } -func (m *TLStickerSet) GetTitle() string { return m.Data2.Title } + return dbuf.err +} -func (m *TLStickerSet) SetShortName(v string) { m.Data2.ShortName = v } -func (m *TLStickerSet) GetShortName() string { return m.Data2.ShortName } +// messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets; +func (m *TLMessagesFoundStickerSets) To_Messages_FoundStickerSets() *Messages_FoundStickerSets { + return &Messages_FoundStickerSets{ + Constructor: TLConstructor_CRC32_messages_foundStickerSets, + Data2: m.Data2, + } +} -func (m *TLStickerSet) SetCount(v int32) { m.Data2.Count = v } -func (m *TLStickerSet) GetCount() int32 { return m.Data2.Count } +func (m *TLMessagesFoundStickerSets) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLMessagesFoundStickerSets) GetHash() int32 { return m.Data2.Hash } -func (m *TLStickerSet) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLStickerSet) GetHash() int32 { return m.Data2.Hash } +func (m *TLMessagesFoundStickerSets) SetSets(v []*StickerSetCovered) { m.Data2.Sets = v } +func (m *TLMessagesFoundStickerSets) GetSets() []*StickerSetCovered { return m.Data2.Sets } -func NewTLStickerSet() *TLStickerSet { - return &TLStickerSet{Data2: &StickerSet_Data{}} +func NewTLMessagesFoundStickerSets() *TLMessagesFoundStickerSets { + return &TLMessagesFoundStickerSets{Data2: &Messages_FoundStickerSets_Data{}} } -func (m *TLStickerSet) Encode() []byte { +func (m *TLMessagesFoundStickerSets) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_stickerSet)) + x.Int(int32(TLConstructor_CRC32_messages_foundStickerSets)) - // flags - var flags uint32 = 0 - if m.GetArchived() == true { - flags |= 1 << 1 - } - if m.GetOfficial() == true { - flags |= 1 << 2 - } - if m.GetMasks() == true { - flags |= 1 << 3 - } - if m.GetInstalledDate() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) - - if m.GetInstalledDate() != 0 { - x.Int(m.GetInstalledDate()) - } - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.String(m.GetTitle()) - x.String(m.GetShortName()) - x.Int(m.GetCount()) x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLStickerSet) EncodeToLayer(layer int) []byte { +func (m *TLMessagesFoundStickerSets) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_stickerSet)) - - // flags - var flags uint32 = 0 - if m.GetArchived() == true { - flags |= 1 << 1 - } - if m.GetOfficial() == true { - flags |= 1 << 2 - } - if m.GetMasks() == true { - flags |= 1 << 3 - } - if m.GetInstalledDate() != 0 { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_messages_foundStickerSets)) - if m.GetInstalledDate() != 0 { - x.Int(m.GetInstalledDate()) - } - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.String(m.GetTitle()) - x.String(m.GetShortName()) - x.Int(m.GetCount()) x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLStickerSet) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetArchived(true) - } - if (flags & (1 << 2)) != 0 { - m.SetOfficial(true) - } - if (flags & (1 << 3)) != 0 { - m.SetMasks(true) +func (m *TLMessagesFoundStickerSets) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err } - if (flags & (1 << 0)) != 0 { - m.SetInstalledDate(dbuf.Int()) + l2 := dbuf.Int() + v2 := make([]*StickerSetCovered, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &StickerSetCovered{} + v2[i].Decode(dbuf) } - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetTitle(dbuf.String()) - m.SetShortName(dbuf.String()) - m.SetCount(dbuf.Int()) - m.SetHash(dbuf.Int()) + m.SetSets(v2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputBotInlineMessageID <-- -// + TL_InputBotInlineMessageID +// Messages_StickerSetInstallResult <-- +// + TL_MessagesStickerSetInstallResultSuccess +// + TL_MessagesStickerSetInstallResultArchive // -func (m *InputBotInlineMessageID) Encode() []byte { +func (m *Messages_StickerSetInstallResult) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputBotInlineMessageID: - t := m.To_InputBotInlineMessageID() + case TLConstructor_CRC32_messages_stickerSetInstallResultSuccess: + t := m.To_MessagesStickerSetInstallResultSuccess() + return t.Encode() + case TLConstructor_CRC32_messages_stickerSetInstallResultArchive: + t := m.To_MessagesStickerSetInstallResultArchive() return t.Encode() default: @@ -43475,11 +43979,14 @@ func (m *InputBotInlineMessageID) Encode() []byte { } } -func (m *InputBotInlineMessageID) EncodeToLayer(layer int) []byte { +func (m *Messages_StickerSetInstallResult) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputBotInlineMessageID: - t := m.To_InputBotInlineMessageID() + case TLConstructor_CRC32_messages_stickerSetInstallResultSuccess: + t := m.To_MessagesStickerSetInstallResultSuccess() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_stickerSetInstallResultArchive: + t := m.To_MessagesStickerSetInstallResultArchive() return t.EncodeToLayer(layer) default: @@ -43488,11 +43995,15 @@ func (m *InputBotInlineMessageID) EncodeToLayer(layer int) []byte { } } -func (m *InputBotInlineMessageID) Decode(dbuf *DecodeBuf) error { +func (m *Messages_StickerSetInstallResult) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputBotInlineMessageID: - m2 := &TLInputBotInlineMessageID{Data2: &InputBotInlineMessageID_Data{}} + case TLConstructor_CRC32_messages_stickerSetInstallResultSuccess: + m2 := &TLMessagesStickerSetInstallResultSuccess{Data2: &Messages_StickerSetInstallResult_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_stickerSetInstallResultArchive: + m2 := &TLMessagesStickerSetInstallResultArchive{Data2: &Messages_StickerSetInstallResult_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -43502,73 +44013,122 @@ func (m *InputBotInlineMessageID) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID; -func (m *InputBotInlineMessageID) To_InputBotInlineMessageID() *TLInputBotInlineMessageID { - return &TLInputBotInlineMessageID{ +// messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult; +func (m *Messages_StickerSetInstallResult) To_MessagesStickerSetInstallResultSuccess() *TLMessagesStickerSetInstallResultSuccess { + return &TLMessagesStickerSetInstallResultSuccess{ Data2: m.Data2, } } -// inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID; -func (m *TLInputBotInlineMessageID) To_InputBotInlineMessageID() *InputBotInlineMessageID { - return &InputBotInlineMessageID{ - Constructor: TLConstructor_CRC32_inputBotInlineMessageID, +// messages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult; +func (m *Messages_StickerSetInstallResult) To_MessagesStickerSetInstallResultArchive() *TLMessagesStickerSetInstallResultArchive { + return &TLMessagesStickerSetInstallResultArchive{ + Data2: m.Data2, + } +} + +// messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult; +func (m *TLMessagesStickerSetInstallResultSuccess) To_Messages_StickerSetInstallResult() *Messages_StickerSetInstallResult { + return &Messages_StickerSetInstallResult{ + Constructor: TLConstructor_CRC32_messages_stickerSetInstallResultSuccess, Data2: m.Data2, } } -func (m *TLInputBotInlineMessageID) SetDcId(v int32) { m.Data2.DcId = v } -func (m *TLInputBotInlineMessageID) GetDcId() int32 { return m.Data2.DcId } +func NewTLMessagesStickerSetInstallResultSuccess() *TLMessagesStickerSetInstallResultSuccess { + return &TLMessagesStickerSetInstallResultSuccess{Data2: &Messages_StickerSetInstallResult_Data{}} +} -func (m *TLInputBotInlineMessageID) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputBotInlineMessageID) GetId() int64 { return m.Data2.Id } +func (m *TLMessagesStickerSetInstallResultSuccess) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_stickerSetInstallResultSuccess)) -func (m *TLInputBotInlineMessageID) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputBotInlineMessageID) GetAccessHash() int64 { return m.Data2.AccessHash } + return x.buf +} -func NewTLInputBotInlineMessageID() *TLInputBotInlineMessageID { - return &TLInputBotInlineMessageID{Data2: &InputBotInlineMessageID_Data{}} +func (m *TLMessagesStickerSetInstallResultSuccess) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_stickerSetInstallResultSuccess)) + + return x.buf } -func (m *TLInputBotInlineMessageID) Encode() []byte { +func (m *TLMessagesStickerSetInstallResultSuccess) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// messages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult; +func (m *TLMessagesStickerSetInstallResultArchive) To_Messages_StickerSetInstallResult() *Messages_StickerSetInstallResult { + return &Messages_StickerSetInstallResult{ + Constructor: TLConstructor_CRC32_messages_stickerSetInstallResultArchive, + Data2: m.Data2, + } +} + +func (m *TLMessagesStickerSetInstallResultArchive) SetSets(v []*StickerSetCovered) { m.Data2.Sets = v } +func (m *TLMessagesStickerSetInstallResultArchive) GetSets() []*StickerSetCovered { return m.Data2.Sets } + +func NewTLMessagesStickerSetInstallResultArchive() *TLMessagesStickerSetInstallResultArchive { + return &TLMessagesStickerSetInstallResultArchive{Data2: &Messages_StickerSetInstallResult_Data{}} +} + +func (m *TLMessagesStickerSetInstallResultArchive) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageID)) + x.Int(int32(TLConstructor_CRC32_messages_stickerSetInstallResultArchive)) - x.Int(m.GetDcId()) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLInputBotInlineMessageID) EncodeToLayer(layer int) []byte { +func (m *TLMessagesStickerSetInstallResultArchive) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageID)) + x.Int(int32(TLConstructor_CRC32_messages_stickerSetInstallResultArchive)) - x.Int(m.GetDcId()) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLInputBotInlineMessageID) Decode(dbuf *DecodeBuf) error { - m.SetDcId(dbuf.Int()) - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) +func (m *TLMessagesStickerSetInstallResultArchive) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*StickerSetCovered, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &StickerSetCovered{} + v1[i].Decode(dbuf) + } + m.SetSets(v1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PaymentCharge <-- -// + TL_PaymentCharge +// Messages_AllStickers <-- +// + TL_MessagesAllStickersNotModified +// + TL_MessagesAllStickers // -func (m *PaymentCharge) Encode() []byte { +func (m *Messages_AllStickers) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_paymentCharge: - t := m.To_PaymentCharge() + case TLConstructor_CRC32_messages_allStickersNotModified: + t := m.To_MessagesAllStickersNotModified() + return t.Encode() + case TLConstructor_CRC32_messages_allStickers: + t := m.To_MessagesAllStickers() return t.Encode() default: @@ -43577,11 +44137,14 @@ func (m *PaymentCharge) Encode() []byte { } } -func (m *PaymentCharge) EncodeToLayer(layer int) []byte { +func (m *Messages_AllStickers) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_paymentCharge: - t := m.To_PaymentCharge() + case TLConstructor_CRC32_messages_allStickersNotModified: + t := m.To_MessagesAllStickersNotModified() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_allStickers: + t := m.To_MessagesAllStickers() return t.EncodeToLayer(layer) default: @@ -43590,11 +44153,15 @@ func (m *PaymentCharge) EncodeToLayer(layer int) []byte { } } -func (m *PaymentCharge) Decode(dbuf *DecodeBuf) error { +func (m *Messages_AllStickers) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_paymentCharge: - m2 := &TLPaymentCharge{Data2: &PaymentCharge_Data{}} + case TLConstructor_CRC32_messages_allStickersNotModified: + m2 := &TLMessagesAllStickersNotModified{Data2: &Messages_AllStickers_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_allStickers: + m2 := &TLMessagesAllStickers{Data2: &Messages_AllStickers_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -43604,75 +44171,140 @@ func (m *PaymentCharge) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; -func (m *PaymentCharge) To_PaymentCharge() *TLPaymentCharge { - return &TLPaymentCharge{ +// messages.allStickersNotModified#e86602c3 = messages.AllStickers; +func (m *Messages_AllStickers) To_MessagesAllStickersNotModified() *TLMessagesAllStickersNotModified { + return &TLMessagesAllStickersNotModified{ Data2: m.Data2, } } -// paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; -func (m *TLPaymentCharge) To_PaymentCharge() *PaymentCharge { - return &PaymentCharge{ - Constructor: TLConstructor_CRC32_paymentCharge, +// messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers; +func (m *Messages_AllStickers) To_MessagesAllStickers() *TLMessagesAllStickers { + return &TLMessagesAllStickers{ + Data2: m.Data2, + } +} + +// messages.allStickersNotModified#e86602c3 = messages.AllStickers; +func (m *TLMessagesAllStickersNotModified) To_Messages_AllStickers() *Messages_AllStickers { + return &Messages_AllStickers{ + Constructor: TLConstructor_CRC32_messages_allStickersNotModified, Data2: m.Data2, } } -func (m *TLPaymentCharge) SetId(v string) { m.Data2.Id = v } -func (m *TLPaymentCharge) GetId() string { return m.Data2.Id } +func NewTLMessagesAllStickersNotModified() *TLMessagesAllStickersNotModified { + return &TLMessagesAllStickersNotModified{Data2: &Messages_AllStickers_Data{}} +} -func (m *TLPaymentCharge) SetProviderChargeId(v string) { m.Data2.ProviderChargeId = v } -func (m *TLPaymentCharge) GetProviderChargeId() string { return m.Data2.ProviderChargeId } +func (m *TLMessagesAllStickersNotModified) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_allStickersNotModified)) -func NewTLPaymentCharge() *TLPaymentCharge { - return &TLPaymentCharge{Data2: &PaymentCharge_Data{}} + return x.buf } -func (m *TLPaymentCharge) Encode() []byte { +func (m *TLMessagesAllStickersNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_paymentCharge)) + x.Int(int32(TLConstructor_CRC32_messages_allStickersNotModified)) - x.String(m.GetId()) - x.String(m.GetProviderChargeId()) + return x.buf +} + +func (m *TLMessagesAllStickersNotModified) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers; +func (m *TLMessagesAllStickers) To_Messages_AllStickers() *Messages_AllStickers { + return &Messages_AllStickers{ + Constructor: TLConstructor_CRC32_messages_allStickers, + Data2: m.Data2, + } +} + +func (m *TLMessagesAllStickers) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLMessagesAllStickers) GetHash() int32 { return m.Data2.Hash } + +func (m *TLMessagesAllStickers) SetSets(v []*StickerSet) { m.Data2.Sets = v } +func (m *TLMessagesAllStickers) GetSets() []*StickerSet { return m.Data2.Sets } + +func NewTLMessagesAllStickers() *TLMessagesAllStickers { + return &TLMessagesAllStickers{Data2: &Messages_AllStickers_Data{}} +} + +func (m *TLMessagesAllStickers) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_allStickers)) + + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLPaymentCharge) EncodeToLayer(layer int) []byte { +func (m *TLMessagesAllStickers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_paymentCharge)) + x.Int(int32(TLConstructor_CRC32_messages_allStickers)) - x.String(m.GetId()) - x.String(m.GetProviderChargeId()) + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSets()))) + for _, v := range m.GetSets() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLPaymentCharge) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.String()) - m.SetProviderChargeId(dbuf.String()) +func (m *TLMessagesAllStickers) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*StickerSet, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &StickerSet{} + v2[i].Decode(dbuf) + } + m.SetSets(v2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Peer <-- -// + TL_PeerUser -// + TL_PeerChat -// + TL_PeerChannel +// ChannelParticipant <-- +// + TL_ChannelParticipant +// + TL_ChannelParticipantSelf +// + TL_ChannelParticipantCreator +// + TL_ChannelParticipantAdmin +// + TL_ChannelParticipantBanned // -func (m *Peer) Encode() []byte { +func (m *ChannelParticipant) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_peerUser: - t := m.To_PeerUser() + case TLConstructor_CRC32_channelParticipant: + t := m.To_ChannelParticipant() return t.Encode() - case TLConstructor_CRC32_peerChat: - t := m.To_PeerChat() + case TLConstructor_CRC32_channelParticipantSelf: + t := m.To_ChannelParticipantSelf() return t.Encode() - case TLConstructor_CRC32_peerChannel: - t := m.To_PeerChannel() + case TLConstructor_CRC32_channelParticipantCreator: + t := m.To_ChannelParticipantCreator() + return t.Encode() + case TLConstructor_CRC32_channelParticipantAdmin: + t := m.To_ChannelParticipantAdmin() + return t.Encode() + case TLConstructor_CRC32_channelParticipantBanned: + t := m.To_ChannelParticipantBanned() return t.Encode() default: @@ -43681,17 +44313,23 @@ func (m *Peer) Encode() []byte { } } -func (m *Peer) EncodeToLayer(layer int) []byte { +func (m *ChannelParticipant) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_peerUser: - t := m.To_PeerUser() + case TLConstructor_CRC32_channelParticipant: + t := m.To_ChannelParticipant() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_peerChat: - t := m.To_PeerChat() + case TLConstructor_CRC32_channelParticipantSelf: + t := m.To_ChannelParticipantSelf() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_peerChannel: - t := m.To_PeerChannel() + case TLConstructor_CRC32_channelParticipantCreator: + t := m.To_ChannelParticipantCreator() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelParticipantAdmin: + t := m.To_ChannelParticipantAdmin() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelParticipantBanned: + t := m.To_ChannelParticipantBanned() return t.EncodeToLayer(layer) default: @@ -43700,19 +44338,27 @@ func (m *Peer) EncodeToLayer(layer int) []byte { } } -func (m *Peer) Decode(dbuf *DecodeBuf) error { +func (m *ChannelParticipant) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_peerUser: - m2 := &TLPeerUser{Data2: &Peer_Data{}} + case TLConstructor_CRC32_channelParticipant: + m2 := &TLChannelParticipant{Data2: &ChannelParticipant_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_peerChat: - m2 := &TLPeerChat{Data2: &Peer_Data{}} + case TLConstructor_CRC32_channelParticipantSelf: + m2 := &TLChannelParticipantSelf{Data2: &ChannelParticipant_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_peerChannel: - m2 := &TLPeerChannel{Data2: &Peer_Data{}} + case TLConstructor_CRC32_channelParticipantCreator: + m2 := &TLChannelParticipantCreator{Data2: &ChannelParticipant_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelParticipantAdmin: + m2 := &TLChannelParticipantAdmin{Data2: &ChannelParticipant_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelParticipantBanned: + m2 := &TLChannelParticipantBanned{Data2: &ChannelParticipant_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -43722,213 +44368,371 @@ func (m *Peer) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// peerUser#9db1bc6d user_id:int = Peer; -func (m *Peer) To_PeerUser() *TLPeerUser { - return &TLPeerUser{ +// channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant; +func (m *ChannelParticipant) To_ChannelParticipant() *TLChannelParticipant { + return &TLChannelParticipant{ Data2: m.Data2, } } -// peerChat#bad0e5bb chat_id:int = Peer; -func (m *Peer) To_PeerChat() *TLPeerChat { - return &TLPeerChat{ +// channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant; +func (m *ChannelParticipant) To_ChannelParticipantSelf() *TLChannelParticipantSelf { + return &TLChannelParticipantSelf{ Data2: m.Data2, } } -// peerChannel#bddde532 channel_id:int = Peer; -func (m *Peer) To_PeerChannel() *TLPeerChannel { - return &TLPeerChannel{ +// channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; +func (m *ChannelParticipant) To_ChannelParticipantCreator() *TLChannelParticipantCreator { + return &TLChannelParticipantCreator{ Data2: m.Data2, } } -// peerUser#9db1bc6d user_id:int = Peer; -func (m *TLPeerUser) To_Peer() *Peer { - return &Peer{ - Constructor: TLConstructor_CRC32_peerUser, +// channelParticipantAdmin#a82fa898 flags:# can_edit:flags.0?true user_id:int inviter_id:int promoted_by:int date:int admin_rights:ChannelAdminRights = ChannelParticipant; +func (m *ChannelParticipant) To_ChannelParticipantAdmin() *TLChannelParticipantAdmin { + return &TLChannelParticipantAdmin{ + Data2: m.Data2, + } +} + +// channelParticipantBanned#222c1886 flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChannelBannedRights = ChannelParticipant; +func (m *ChannelParticipant) To_ChannelParticipantBanned() *TLChannelParticipantBanned { + return &TLChannelParticipantBanned{ + Data2: m.Data2, + } +} + +// channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant; +func (m *TLChannelParticipant) To_ChannelParticipant() *ChannelParticipant { + return &ChannelParticipant{ + Constructor: TLConstructor_CRC32_channelParticipant, Data2: m.Data2, } } -func (m *TLPeerUser) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLPeerUser) GetUserId() int32 { return m.Data2.UserId } +func (m *TLChannelParticipant) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLChannelParticipant) GetUserId() int32 { return m.Data2.UserId } -func NewTLPeerUser() *TLPeerUser { - return &TLPeerUser{Data2: &Peer_Data{}} +func (m *TLChannelParticipant) SetDate(v int32) { m.Data2.Date = v } +func (m *TLChannelParticipant) GetDate() int32 { return m.Data2.Date } + +func NewTLChannelParticipant() *TLChannelParticipant { + return &TLChannelParticipant{Data2: &ChannelParticipant_Data{}} } -func (m *TLPeerUser) Encode() []byte { +func (m *TLChannelParticipant) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerUser)) + x.Int(int32(TLConstructor_CRC32_channelParticipant)) x.Int(m.GetUserId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLPeerUser) EncodeToLayer(layer int) []byte { +func (m *TLChannelParticipant) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerUser)) + x.Int(int32(TLConstructor_CRC32_channelParticipant)) x.Int(m.GetUserId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLPeerUser) Decode(dbuf *DecodeBuf) error { +func (m *TLChannelParticipant) Decode(dbuf *DecodeBuf) error { m.SetUserId(dbuf.Int()) + m.SetDate(dbuf.Int()) return dbuf.err } -// peerChat#bad0e5bb chat_id:int = Peer; -func (m *TLPeerChat) To_Peer() *Peer { - return &Peer{ - Constructor: TLConstructor_CRC32_peerChat, +// channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant; +func (m *TLChannelParticipantSelf) To_ChannelParticipant() *ChannelParticipant { + return &ChannelParticipant{ + Constructor: TLConstructor_CRC32_channelParticipantSelf, Data2: m.Data2, } } -func (m *TLPeerChat) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLPeerChat) GetChatId() int32 { return m.Data2.ChatId } +func (m *TLChannelParticipantSelf) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLChannelParticipantSelf) GetUserId() int32 { return m.Data2.UserId } -func NewTLPeerChat() *TLPeerChat { - return &TLPeerChat{Data2: &Peer_Data{}} -} +func (m *TLChannelParticipantSelf) SetInviterId(v int32) { m.Data2.InviterId = v } +func (m *TLChannelParticipantSelf) GetInviterId() int32 { return m.Data2.InviterId } -func (m *TLPeerChat) Encode() []byte { +func (m *TLChannelParticipantSelf) SetDate(v int32) { m.Data2.Date = v } +func (m *TLChannelParticipantSelf) GetDate() int32 { return m.Data2.Date } + +func NewTLChannelParticipantSelf() *TLChannelParticipantSelf { + return &TLChannelParticipantSelf{Data2: &ChannelParticipant_Data{}} +} + +func (m *TLChannelParticipantSelf) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerChat)) + x.Int(int32(TLConstructor_CRC32_channelParticipantSelf)) - x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLPeerChat) EncodeToLayer(layer int) []byte { +func (m *TLChannelParticipantSelf) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerChat)) + x.Int(int32(TLConstructor_CRC32_channelParticipantSelf)) - x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLPeerChat) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) +func (m *TLChannelParticipantSelf) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetInviterId(dbuf.Int()) + m.SetDate(dbuf.Int()) return dbuf.err } -// peerChannel#bddde532 channel_id:int = Peer; -func (m *TLPeerChannel) To_Peer() *Peer { - return &Peer{ - Constructor: TLConstructor_CRC32_peerChannel, +// channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; +func (m *TLChannelParticipantCreator) To_ChannelParticipant() *ChannelParticipant { + return &ChannelParticipant{ + Constructor: TLConstructor_CRC32_channelParticipantCreator, Data2: m.Data2, } } -func (m *TLPeerChannel) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLPeerChannel) GetChannelId() int32 { return m.Data2.ChannelId } +func (m *TLChannelParticipantCreator) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLChannelParticipantCreator) GetUserId() int32 { return m.Data2.UserId } -func NewTLPeerChannel() *TLPeerChannel { - return &TLPeerChannel{Data2: &Peer_Data{}} +func NewTLChannelParticipantCreator() *TLChannelParticipantCreator { + return &TLChannelParticipantCreator{Data2: &ChannelParticipant_Data{}} } -func (m *TLPeerChannel) Encode() []byte { +func (m *TLChannelParticipantCreator) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerChannel)) + x.Int(int32(TLConstructor_CRC32_channelParticipantCreator)) - x.Int(m.GetChannelId()) + x.Int(m.GetUserId()) return x.buf } -func (m *TLPeerChannel) EncodeToLayer(layer int) []byte { +func (m *TLChannelParticipantCreator) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerChannel)) + x.Int(int32(TLConstructor_CRC32_channelParticipantCreator)) - x.Int(m.GetChannelId()) + x.Int(m.GetUserId()) return x.buf } -func (m *TLPeerChannel) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) +func (m *TLChannelParticipantCreator) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + + return dbuf.err +} + +// channelParticipantAdmin#a82fa898 flags:# can_edit:flags.0?true user_id:int inviter_id:int promoted_by:int date:int admin_rights:ChannelAdminRights = ChannelParticipant; +func (m *TLChannelParticipantAdmin) To_ChannelParticipant() *ChannelParticipant { + return &ChannelParticipant{ + Constructor: TLConstructor_CRC32_channelParticipantAdmin, + Data2: m.Data2, + } +} + +func (m *TLChannelParticipantAdmin) SetCanEdit(v bool) { m.Data2.CanEdit = v } +func (m *TLChannelParticipantAdmin) GetCanEdit() bool { return m.Data2.CanEdit } + +func (m *TLChannelParticipantAdmin) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLChannelParticipantAdmin) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLChannelParticipantAdmin) SetInviterId(v int32) { m.Data2.InviterId = v } +func (m *TLChannelParticipantAdmin) GetInviterId() int32 { return m.Data2.InviterId } + +func (m *TLChannelParticipantAdmin) SetPromotedBy(v int32) { m.Data2.PromotedBy = v } +func (m *TLChannelParticipantAdmin) GetPromotedBy() int32 { return m.Data2.PromotedBy } + +func (m *TLChannelParticipantAdmin) SetDate(v int32) { m.Data2.Date = v } +func (m *TLChannelParticipantAdmin) GetDate() int32 { return m.Data2.Date } + +func (m *TLChannelParticipantAdmin) SetAdminRights(v *ChannelAdminRights) { m.Data2.AdminRights = v } +func (m *TLChannelParticipantAdmin) GetAdminRights() *ChannelAdminRights { return m.Data2.AdminRights } + +func NewTLChannelParticipantAdmin() *TLChannelParticipantAdmin { + return &TLChannelParticipantAdmin{Data2: &ChannelParticipant_Data{}} +} + +func (m *TLChannelParticipantAdmin) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantAdmin)) + + // flags + var flags uint32 = 0 + if m.GetCanEdit() == true { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetPromotedBy()) + x.Int(m.GetDate()) + x.Bytes(m.GetAdminRights().Encode()) + + return x.buf +} + +func (m *TLChannelParticipantAdmin) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantAdmin)) + + // flags + var flags uint32 = 0 + if m.GetCanEdit() == true { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetPromotedBy()) + x.Int(m.GetDate()) + x.Bytes(m.GetAdminRights().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLChannelParticipantAdmin) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetCanEdit(true) + } + m.SetUserId(dbuf.Int()) + m.SetInviterId(dbuf.Int()) + m.SetPromotedBy(dbuf.Int()) + m.SetDate(dbuf.Int()) + m7 := &ChannelAdminRights{} + m7.Decode(dbuf) + m.SetAdminRights(m7) + + return dbuf.err +} + +// channelParticipantBanned#222c1886 flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChannelBannedRights = ChannelParticipant; +func (m *TLChannelParticipantBanned) To_ChannelParticipant() *ChannelParticipant { + return &ChannelParticipant{ + Constructor: TLConstructor_CRC32_channelParticipantBanned, + Data2: m.Data2, + } +} + +func (m *TLChannelParticipantBanned) SetLeft(v bool) { m.Data2.Left = v } +func (m *TLChannelParticipantBanned) GetLeft() bool { return m.Data2.Left } + +func (m *TLChannelParticipantBanned) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLChannelParticipantBanned) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLChannelParticipantBanned) SetKickedBy(v int32) { m.Data2.KickedBy = v } +func (m *TLChannelParticipantBanned) GetKickedBy() int32 { return m.Data2.KickedBy } + +func (m *TLChannelParticipantBanned) SetDate(v int32) { m.Data2.Date = v } +func (m *TLChannelParticipantBanned) GetDate() int32 { return m.Data2.Date } + +func (m *TLChannelParticipantBanned) SetBannedRights(v *ChannelBannedRights) { m.Data2.BannedRights = v } +func (m *TLChannelParticipantBanned) GetBannedRights() *ChannelBannedRights { + return m.Data2.BannedRights +} + +func NewTLChannelParticipantBanned() *TLChannelParticipantBanned { + return &TLChannelParticipantBanned{Data2: &ChannelParticipant_Data{}} +} + +func (m *TLChannelParticipantBanned) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantBanned)) + + // flags + var flags uint32 = 0 + if m.GetLeft() == true { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Int(m.GetUserId()) + x.Int(m.GetKickedBy()) + x.Int(m.GetDate()) + x.Bytes(m.GetBannedRights().Encode()) + + return x.buf +} + +func (m *TLChannelParticipantBanned) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelParticipantBanned)) + + // flags + var flags uint32 = 0 + if m.GetLeft() == true { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Int(m.GetUserId()) + x.Int(m.GetKickedBy()) + x.Int(m.GetDate()) + x.Bytes(m.GetBannedRights().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLChannelParticipantBanned) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetLeft(true) + } + m.SetUserId(dbuf.Int()) + m.SetKickedBy(dbuf.Int()) + m.SetDate(dbuf.Int()) + m6 := &ChannelBannedRights{} + m6.Decode(dbuf) + m.SetBannedRights(m6) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ChannelAdminLogEventAction <-- -// + TL_ChannelAdminLogEventActionChangeTitle -// + TL_ChannelAdminLogEventActionChangeAbout -// + TL_ChannelAdminLogEventActionChangeUsername -// + TL_ChannelAdminLogEventActionChangePhoto -// + TL_ChannelAdminLogEventActionToggleInvites -// + TL_ChannelAdminLogEventActionToggleSignatures -// + TL_ChannelAdminLogEventActionUpdatePinned -// + TL_ChannelAdminLogEventActionEditMessage -// + TL_ChannelAdminLogEventActionDeleteMessage -// + TL_ChannelAdminLogEventActionParticipantJoin -// + TL_ChannelAdminLogEventActionParticipantLeave -// + TL_ChannelAdminLogEventActionParticipantInvite -// + TL_ChannelAdminLogEventActionParticipantToggleBan -// + TL_ChannelAdminLogEventActionParticipantToggleAdmin -// + TL_ChannelAdminLogEventActionChangeStickerSet -// + TL_ChannelAdminLogEventActionTogglePreHistoryHidden +// BotInlineMessage <-- +// + TL_BotInlineMessageMediaAuto +// + TL_BotInlineMessageText +// + TL_BotInlineMessageMediaGeo +// + TL_BotInlineMessageMediaVenue +// + TL_BotInlineMessageMediaContact // -func (m *ChannelAdminLogEventAction) Encode() []byte { +func (m *BotInlineMessage) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_channelAdminLogEventActionChangeTitle: - t := m.To_ChannelAdminLogEventActionChangeTitle() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionChangeAbout: - t := m.To_ChannelAdminLogEventActionChangeAbout() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionChangeUsername: - t := m.To_ChannelAdminLogEventActionChangeUsername() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionChangePhoto: - t := m.To_ChannelAdminLogEventActionChangePhoto() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionToggleInvites: - t := m.To_ChannelAdminLogEventActionToggleInvites() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures: - t := m.To_ChannelAdminLogEventActionToggleSignatures() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned: - t := m.To_ChannelAdminLogEventActionUpdatePinned() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionEditMessage: - t := m.To_ChannelAdminLogEventActionEditMessage() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage: - t := m.To_ChannelAdminLogEventActionDeleteMessage() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin: - t := m.To_ChannelAdminLogEventActionParticipantJoin() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave: - t := m.To_ChannelAdminLogEventActionParticipantLeave() - return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite: - t := m.To_ChannelAdminLogEventActionParticipantInvite() + case TLConstructor_CRC32_botInlineMessageMediaAuto: + t := m.To_BotInlineMessageMediaAuto() return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan: - t := m.To_ChannelAdminLogEventActionParticipantToggleBan() + case TLConstructor_CRC32_botInlineMessageText: + t := m.To_BotInlineMessageText() return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin: - t := m.To_ChannelAdminLogEventActionParticipantToggleAdmin() + case TLConstructor_CRC32_botInlineMessageMediaGeo: + t := m.To_BotInlineMessageMediaGeo() return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet: - t := m.To_ChannelAdminLogEventActionChangeStickerSet() + case TLConstructor_CRC32_botInlineMessageMediaVenue: + t := m.To_BotInlineMessageMediaVenue() return t.Encode() - case TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden: - t := m.To_ChannelAdminLogEventActionTogglePreHistoryHidden() + case TLConstructor_CRC32_botInlineMessageMediaContact: + t := m.To_BotInlineMessageMediaContact() return t.Encode() default: @@ -43937,56 +44741,23 @@ func (m *ChannelAdminLogEventAction) Encode() []byte { } } -func (m *ChannelAdminLogEventAction) EncodeToLayer(layer int) []byte { +func (m *BotInlineMessage) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_channelAdminLogEventActionChangeTitle: - t := m.To_ChannelAdminLogEventActionChangeTitle() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionChangeAbout: - t := m.To_ChannelAdminLogEventActionChangeAbout() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionChangeUsername: - t := m.To_ChannelAdminLogEventActionChangeUsername() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionChangePhoto: - t := m.To_ChannelAdminLogEventActionChangePhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionToggleInvites: - t := m.To_ChannelAdminLogEventActionToggleInvites() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures: - t := m.To_ChannelAdminLogEventActionToggleSignatures() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned: - t := m.To_ChannelAdminLogEventActionUpdatePinned() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionEditMessage: - t := m.To_ChannelAdminLogEventActionEditMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage: - t := m.To_ChannelAdminLogEventActionDeleteMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin: - t := m.To_ChannelAdminLogEventActionParticipantJoin() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave: - t := m.To_ChannelAdminLogEventActionParticipantLeave() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite: - t := m.To_ChannelAdminLogEventActionParticipantInvite() + case TLConstructor_CRC32_botInlineMessageMediaAuto: + t := m.To_BotInlineMessageMediaAuto() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan: - t := m.To_ChannelAdminLogEventActionParticipantToggleBan() + case TLConstructor_CRC32_botInlineMessageText: + t := m.To_BotInlineMessageText() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin: - t := m.To_ChannelAdminLogEventActionParticipantToggleAdmin() + case TLConstructor_CRC32_botInlineMessageMediaGeo: + t := m.To_BotInlineMessageMediaGeo() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet: - t := m.To_ChannelAdminLogEventActionChangeStickerSet() + case TLConstructor_CRC32_botInlineMessageMediaVenue: + t := m.To_BotInlineMessageMediaVenue() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden: - t := m.To_ChannelAdminLogEventActionTogglePreHistoryHidden() + case TLConstructor_CRC32_botInlineMessageMediaContact: + t := m.To_BotInlineMessageMediaContact() return t.EncodeToLayer(layer) default: @@ -43995,71 +44766,27 @@ func (m *ChannelAdminLogEventAction) EncodeToLayer(layer int) []byte { } } -func (m *ChannelAdminLogEventAction) Decode(dbuf *DecodeBuf) error { +func (m *BotInlineMessage) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_channelAdminLogEventActionChangeTitle: - m2 := &TLChannelAdminLogEventActionChangeTitle{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionChangeAbout: - m2 := &TLChannelAdminLogEventActionChangeAbout{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionChangeUsername: - m2 := &TLChannelAdminLogEventActionChangeUsername{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionChangePhoto: - m2 := &TLChannelAdminLogEventActionChangePhoto{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionToggleInvites: - m2 := &TLChannelAdminLogEventActionToggleInvites{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures: - m2 := &TLChannelAdminLogEventActionToggleSignatures{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned: - m2 := &TLChannelAdminLogEventActionUpdatePinned{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionEditMessage: - m2 := &TLChannelAdminLogEventActionEditMessage{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage: - m2 := &TLChannelAdminLogEventActionDeleteMessage{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin: - m2 := &TLChannelAdminLogEventActionParticipantJoin{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave: - m2 := &TLChannelAdminLogEventActionParticipantLeave{Data2: &ChannelAdminLogEventAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite: - m2 := &TLChannelAdminLogEventActionParticipantInvite{Data2: &ChannelAdminLogEventAction_Data{}} + case TLConstructor_CRC32_botInlineMessageMediaAuto: + m2 := &TLBotInlineMessageMediaAuto{Data2: &BotInlineMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan: - m2 := &TLChannelAdminLogEventActionParticipantToggleBan{Data2: &ChannelAdminLogEventAction_Data{}} + case TLConstructor_CRC32_botInlineMessageText: + m2 := &TLBotInlineMessageText{Data2: &BotInlineMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin: - m2 := &TLChannelAdminLogEventActionParticipantToggleAdmin{Data2: &ChannelAdminLogEventAction_Data{}} + case TLConstructor_CRC32_botInlineMessageMediaGeo: + m2 := &TLBotInlineMessageMediaGeo{Data2: &BotInlineMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet: - m2 := &TLChannelAdminLogEventActionChangeStickerSet{Data2: &ChannelAdminLogEventAction_Data{}} + case TLConstructor_CRC32_botInlineMessageMediaVenue: + m2 := &TLBotInlineMessageMediaVenue{Data2: &BotInlineMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden: - m2 := &TLChannelAdminLogEventActionTogglePreHistoryHidden{Data2: &ChannelAdminLogEventAction_Data{}} + case TLConstructor_CRC32_botInlineMessageMediaContact: + m2 := &TLBotInlineMessageMediaContact{Data2: &BotInlineMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -44069,853 +44796,1148 @@ func (m *ChannelAdminLogEventAction) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangeTitle() *TLChannelAdminLogEventActionChangeTitle { - return &TLChannelAdminLogEventActionChangeTitle{ +// botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *BotInlineMessage) To_BotInlineMessageMediaAuto() *TLBotInlineMessageMediaAuto { + return &TLBotInlineMessageMediaAuto{ Data2: m.Data2, } } -// channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangeAbout() *TLChannelAdminLogEventActionChangeAbout { - return &TLChannelAdminLogEventActionChangeAbout{ +// botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *BotInlineMessage) To_BotInlineMessageText() *TLBotInlineMessageText { + return &TLBotInlineMessageText{ Data2: m.Data2, } } -// channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangeUsername() *TLChannelAdminLogEventActionChangeUsername { - return &TLChannelAdminLogEventActionChangeUsername{ +// botInlineMessageMediaGeo#b722de65 flags:# geo:GeoPoint period:int reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *BotInlineMessage) To_BotInlineMessageMediaGeo() *TLBotInlineMessageMediaGeo { + return &TLBotInlineMessageMediaGeo{ Data2: m.Data2, } } -// channelAdminLogEventActionChangePhoto#b82f55c3 prev_photo:ChatPhoto new_photo:ChatPhoto = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangePhoto() *TLChannelAdminLogEventActionChangePhoto { - return &TLChannelAdminLogEventActionChangePhoto{ +// botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *BotInlineMessage) To_BotInlineMessageMediaVenue() *TLBotInlineMessageMediaVenue { + return &TLBotInlineMessageMediaVenue{ Data2: m.Data2, } } -// channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionToggleInvites() *TLChannelAdminLogEventActionToggleInvites { - return &TLChannelAdminLogEventActionToggleInvites{ +// botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *BotInlineMessage) To_BotInlineMessageMediaContact() *TLBotInlineMessageMediaContact { + return &TLBotInlineMessageMediaContact{ Data2: m.Data2, } } -// channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionToggleSignatures() *TLChannelAdminLogEventActionToggleSignatures { - return &TLChannelAdminLogEventActionToggleSignatures{ - Data2: m.Data2, +// botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *TLBotInlineMessageMediaAuto) To_BotInlineMessage() *BotInlineMessage { + return &BotInlineMessage{ + Constructor: TLConstructor_CRC32_botInlineMessageMediaAuto, + Data2: m.Data2, } } -// channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionUpdatePinned() *TLChannelAdminLogEventActionUpdatePinned { - return &TLChannelAdminLogEventActionUpdatePinned{ - Data2: m.Data2, - } -} +func (m *TLBotInlineMessageMediaAuto) SetMessage(v string) { m.Data2.Message = v } +func (m *TLBotInlineMessageMediaAuto) GetMessage() string { return m.Data2.Message } -// channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionEditMessage() *TLChannelAdminLogEventActionEditMessage { - return &TLChannelAdminLogEventActionEditMessage{ - Data2: m.Data2, - } -} +func (m *TLBotInlineMessageMediaAuto) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLBotInlineMessageMediaAuto) GetEntities() []*MessageEntity { return m.Data2.Entities } -// channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionDeleteMessage() *TLChannelAdminLogEventActionDeleteMessage { - return &TLChannelAdminLogEventActionDeleteMessage{ - Data2: m.Data2, - } -} +func (m *TLBotInlineMessageMediaAuto) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLBotInlineMessageMediaAuto) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } -// channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantJoin() *TLChannelAdminLogEventActionParticipantJoin { - return &TLChannelAdminLogEventActionParticipantJoin{ - Data2: m.Data2, - } +func NewTLBotInlineMessageMediaAuto() *TLBotInlineMessageMediaAuto { + return &TLBotInlineMessageMediaAuto{Data2: &BotInlineMessage_Data{}} } -// channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantLeave() *TLChannelAdminLogEventActionParticipantLeave { - return &TLChannelAdminLogEventActionParticipantLeave{ - Data2: m.Data2, - } -} +func (m *TLBotInlineMessageMediaAuto) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaAuto)) -// channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantInvite() *TLChannelAdminLogEventActionParticipantInvite { - return &TLChannelAdminLogEventActionParticipantInvite{ - Data2: m.Data2, - } -} - -// channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantToggleBan() *TLChannelAdminLogEventActionParticipantToggleBan { - return &TLChannelAdminLogEventActionParticipantToggleBan{ - Data2: m.Data2, - } -} - -// channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantToggleAdmin() *TLChannelAdminLogEventActionParticipantToggleAdmin { - return &TLChannelAdminLogEventActionParticipantToggleAdmin{ - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetEntities() != nil { + flags |= 1 << 1 } -} - -// channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangeStickerSet() *TLChannelAdminLogEventActionChangeStickerSet { - return &TLChannelAdminLogEventActionChangeStickerSet{ - Data2: m.Data2, + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 } -} + x.UInt(flags) -// channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction; -func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionTogglePreHistoryHidden() *TLChannelAdminLogEventActionTogglePreHistoryHidden { - return &TLChannelAdminLogEventActionTogglePreHistoryHidden{ - Data2: m.Data2, + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } } -} - -// channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionChangeTitle) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangeTitle, - Data2: m.Data2, + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) } -} - -func (m *TLChannelAdminLogEventActionChangeTitle) SetPrevValue(v string) { m.Data2.PrevValue = v } -func (m *TLChannelAdminLogEventActionChangeTitle) GetPrevValue() string { return m.Data2.PrevValue } - -func (m *TLChannelAdminLogEventActionChangeTitle) SetNewValue(v string) { m.Data2.NewValue_2 = v } -func (m *TLChannelAdminLogEventActionChangeTitle) GetNewValue() string { return m.Data2.NewValue_2 } - -func NewTLChannelAdminLogEventActionChangeTitle() *TLChannelAdminLogEventActionChangeTitle { - return &TLChannelAdminLogEventActionChangeTitle{Data2: &ChannelAdminLogEventAction_Data{}} -} - -func (m *TLChannelAdminLogEventActionChangeTitle) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeTitle)) - - x.String(m.GetPrevValue()) - x.String(m.GetNewValue()) return x.buf } -func (m *TLChannelAdminLogEventActionChangeTitle) EncodeToLayer(layer int) []byte { +func (m *TLBotInlineMessageMediaAuto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeTitle)) + x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaAuto)) - x.String(m.GetPrevValue()) - x.String(m.GetNewValue()) + // flags + var flags uint32 = 0 + if m.GetEntities() != nil { + flags |= 1 << 1 + } + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLChannelAdminLogEventActionChangeTitle) Decode(dbuf *DecodeBuf) error { - m.SetPrevValue(dbuf.String()) - m.SetNewValue(dbuf.String()) +func (m *TLBotInlineMessageMediaAuto) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetMessage(dbuf.String()) + if (flags & (1 << 1)) != 0 { + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*MessageEntity, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &MessageEntity{} + v3[i].Decode(dbuf) + } + m.SetEntities(v3) + + } + if (flags & (1 << 2)) != 0 { + m4 := &ReplyMarkup{} + m4.Decode(dbuf) + m.SetReplyMarkup(m4) + } return dbuf.err } -// channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionChangeAbout) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangeAbout, +// botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *TLBotInlineMessageText) To_BotInlineMessage() *BotInlineMessage { + return &BotInlineMessage{ + Constructor: TLConstructor_CRC32_botInlineMessageText, Data2: m.Data2, } } -func (m *TLChannelAdminLogEventActionChangeAbout) SetPrevValue(v string) { m.Data2.PrevValue = v } -func (m *TLChannelAdminLogEventActionChangeAbout) GetPrevValue() string { return m.Data2.PrevValue } +func (m *TLBotInlineMessageText) SetNoWebpage(v bool) { m.Data2.NoWebpage = v } +func (m *TLBotInlineMessageText) GetNoWebpage() bool { return m.Data2.NoWebpage } -func (m *TLChannelAdminLogEventActionChangeAbout) SetNewValue(v string) { m.Data2.NewValue_2 = v } -func (m *TLChannelAdminLogEventActionChangeAbout) GetNewValue() string { return m.Data2.NewValue_2 } +func (m *TLBotInlineMessageText) SetMessage(v string) { m.Data2.Message = v } +func (m *TLBotInlineMessageText) GetMessage() string { return m.Data2.Message } -func NewTLChannelAdminLogEventActionChangeAbout() *TLChannelAdminLogEventActionChangeAbout { - return &TLChannelAdminLogEventActionChangeAbout{Data2: &ChannelAdminLogEventAction_Data{}} +func (m *TLBotInlineMessageText) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLBotInlineMessageText) GetEntities() []*MessageEntity { return m.Data2.Entities } + +func (m *TLBotInlineMessageText) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLBotInlineMessageText) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } + +func NewTLBotInlineMessageText() *TLBotInlineMessageText { + return &TLBotInlineMessageText{Data2: &BotInlineMessage_Data{}} } -func (m *TLChannelAdminLogEventActionChangeAbout) Encode() []byte { +func (m *TLBotInlineMessageText) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeAbout)) + x.Int(int32(TLConstructor_CRC32_botInlineMessageText)) - x.String(m.GetPrevValue()) - x.String(m.GetNewValue()) + // flags + var flags uint32 = 0 + if m.GetNoWebpage() == true { + flags |= 1 << 0 + } + if m.GetEntities() != nil { + flags |= 1 << 1 + } + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } return x.buf } -func (m *TLChannelAdminLogEventActionChangeAbout) EncodeToLayer(layer int) []byte { +func (m *TLBotInlineMessageText) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeAbout)) + x.Int(int32(TLConstructor_CRC32_botInlineMessageText)) - x.String(m.GetPrevValue()) - x.String(m.GetNewValue()) + // flags + var flags uint32 = 0 + if m.GetNoWebpage() == true { + flags |= 1 << 0 + } + if m.GetEntities() != nil { + flags |= 1 << 1 + } + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLChannelAdminLogEventActionChangeAbout) Decode(dbuf *DecodeBuf) error { - m.SetPrevValue(dbuf.String()) - m.SetNewValue(dbuf.String()) +func (m *TLBotInlineMessageText) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetNoWebpage(true) + } + m.SetMessage(dbuf.String()) + if (flags & (1 << 1)) != 0 { + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*MessageEntity, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &MessageEntity{} + v4[i].Decode(dbuf) + } + m.SetEntities(v4) + + } + if (flags & (1 << 2)) != 0 { + m5 := &ReplyMarkup{} + m5.Decode(dbuf) + m.SetReplyMarkup(m5) + } return dbuf.err } -// channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionChangeUsername) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangeUsername, +// botInlineMessageMediaGeo#b722de65 flags:# geo:GeoPoint period:int reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *TLBotInlineMessageMediaGeo) To_BotInlineMessage() *BotInlineMessage { + return &BotInlineMessage{ + Constructor: TLConstructor_CRC32_botInlineMessageMediaGeo, Data2: m.Data2, } } -func (m *TLChannelAdminLogEventActionChangeUsername) SetPrevValue(v string) { m.Data2.PrevValue = v } -func (m *TLChannelAdminLogEventActionChangeUsername) GetPrevValue() string { return m.Data2.PrevValue } +func (m *TLBotInlineMessageMediaGeo) SetGeo(v *GeoPoint) { m.Data2.Geo = v } +func (m *TLBotInlineMessageMediaGeo) GetGeo() *GeoPoint { return m.Data2.Geo } -func (m *TLChannelAdminLogEventActionChangeUsername) SetNewValue(v string) { m.Data2.NewValue_2 = v } -func (m *TLChannelAdminLogEventActionChangeUsername) GetNewValue() string { return m.Data2.NewValue_2 } +func (m *TLBotInlineMessageMediaGeo) SetPeriod(v int32) { m.Data2.Period = v } +func (m *TLBotInlineMessageMediaGeo) GetPeriod() int32 { return m.Data2.Period } -func NewTLChannelAdminLogEventActionChangeUsername() *TLChannelAdminLogEventActionChangeUsername { - return &TLChannelAdminLogEventActionChangeUsername{Data2: &ChannelAdminLogEventAction_Data{}} +func (m *TLBotInlineMessageMediaGeo) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLBotInlineMessageMediaGeo) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } + +func NewTLBotInlineMessageMediaGeo() *TLBotInlineMessageMediaGeo { + return &TLBotInlineMessageMediaGeo{Data2: &BotInlineMessage_Data{}} } -func (m *TLChannelAdminLogEventActionChangeUsername) Encode() []byte { +func (m *TLBotInlineMessageMediaGeo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeUsername)) + x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaGeo)) - x.String(m.GetPrevValue()) - x.String(m.GetNewValue()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Bytes(m.GetGeo().Encode()) + x.Int(m.GetPeriod()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } return x.buf } -func (m *TLChannelAdminLogEventActionChangeUsername) EncodeToLayer(layer int) []byte { +func (m *TLBotInlineMessageMediaGeo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeUsername)) + x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaGeo)) - x.String(m.GetPrevValue()) - x.String(m.GetNewValue()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Bytes(m.GetGeo().EncodeToLayer(layer)) + x.Int(m.GetPeriod()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLChannelAdminLogEventActionChangeUsername) Decode(dbuf *DecodeBuf) error { - m.SetPrevValue(dbuf.String()) - m.SetNewValue(dbuf.String()) +func (m *TLBotInlineMessageMediaGeo) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &GeoPoint{} + m2.Decode(dbuf) + m.SetGeo(m2) + m.SetPeriod(dbuf.Int()) + if (flags & (1 << 2)) != 0 { + m4 := &ReplyMarkup{} + m4.Decode(dbuf) + m.SetReplyMarkup(m4) + } return dbuf.err } -// channelAdminLogEventActionChangePhoto#b82f55c3 prev_photo:ChatPhoto new_photo:ChatPhoto = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionChangePhoto) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangePhoto, +// botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *TLBotInlineMessageMediaVenue) To_BotInlineMessage() *BotInlineMessage { + return &BotInlineMessage{ + Constructor: TLConstructor_CRC32_botInlineMessageMediaVenue, Data2: m.Data2, } } -func (m *TLChannelAdminLogEventActionChangePhoto) SetPrevPhoto(v *ChatPhoto) { m.Data2.PrevPhoto = v } -func (m *TLChannelAdminLogEventActionChangePhoto) GetPrevPhoto() *ChatPhoto { return m.Data2.PrevPhoto } - -func (m *TLChannelAdminLogEventActionChangePhoto) SetNewPhoto(v *ChatPhoto) { m.Data2.NewPhoto = v } -func (m *TLChannelAdminLogEventActionChangePhoto) GetNewPhoto() *ChatPhoto { return m.Data2.NewPhoto } +func (m *TLBotInlineMessageMediaVenue) SetGeo(v *GeoPoint) { m.Data2.Geo = v } +func (m *TLBotInlineMessageMediaVenue) GetGeo() *GeoPoint { return m.Data2.Geo } -func NewTLChannelAdminLogEventActionChangePhoto() *TLChannelAdminLogEventActionChangePhoto { - return &TLChannelAdminLogEventActionChangePhoto{Data2: &ChannelAdminLogEventAction_Data{}} -} +func (m *TLBotInlineMessageMediaVenue) SetTitle(v string) { m.Data2.Title = v } +func (m *TLBotInlineMessageMediaVenue) GetTitle() string { return m.Data2.Title } -func (m *TLChannelAdminLogEventActionChangePhoto) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangePhoto)) +func (m *TLBotInlineMessageMediaVenue) SetAddress(v string) { m.Data2.Address = v } +func (m *TLBotInlineMessageMediaVenue) GetAddress() string { return m.Data2.Address } - x.Bytes(m.GetPrevPhoto().Encode()) - x.Bytes(m.GetNewPhoto().Encode()) +func (m *TLBotInlineMessageMediaVenue) SetProvider(v string) { m.Data2.Provider = v } +func (m *TLBotInlineMessageMediaVenue) GetProvider() string { return m.Data2.Provider } - return x.buf -} +func (m *TLBotInlineMessageMediaVenue) SetVenueId(v string) { m.Data2.VenueId = v } +func (m *TLBotInlineMessageMediaVenue) GetVenueId() string { return m.Data2.VenueId } -func (m *TLChannelAdminLogEventActionChangePhoto) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangePhoto)) +func (m *TLBotInlineMessageMediaVenue) SetVenueType(v string) { m.Data2.VenueType = v } +func (m *TLBotInlineMessageMediaVenue) GetVenueType() string { return m.Data2.VenueType } - x.Bytes(m.GetPrevPhoto().EncodeToLayer(layer)) - x.Bytes(m.GetNewPhoto().EncodeToLayer(layer)) +func (m *TLBotInlineMessageMediaVenue) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLBotInlineMessageMediaVenue) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } - return x.buf +func NewTLBotInlineMessageMediaVenue() *TLBotInlineMessageMediaVenue { + return &TLBotInlineMessageMediaVenue{Data2: &BotInlineMessage_Data{}} } -func (m *TLChannelAdminLogEventActionChangePhoto) Decode(dbuf *DecodeBuf) error { - m1 := &ChatPhoto{} - m1.Decode(dbuf) - m.SetPrevPhoto(m1) - m2 := &ChatPhoto{} - m2.Decode(dbuf) - m.SetNewPhoto(m2) - - return dbuf.err -} +func (m *TLBotInlineMessageMediaVenue) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaVenue)) -// channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionToggleInvites) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionToggleInvites, - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 } -} - -func (m *TLChannelAdminLogEventActionToggleInvites) SetNewValue(v *Bool) { m.Data2.NewValue_5 = v } -func (m *TLChannelAdminLogEventActionToggleInvites) GetNewValue() *Bool { return m.Data2.NewValue_5 } - -func NewTLChannelAdminLogEventActionToggleInvites() *TLChannelAdminLogEventActionToggleInvites { - return &TLChannelAdminLogEventActionToggleInvites{Data2: &ChannelAdminLogEventAction_Data{}} -} - -func (m *TLChannelAdminLogEventActionToggleInvites) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionToggleInvites)) + x.UInt(flags) - x.Bytes(m.GetNewValue().Encode()) + x.Bytes(m.GetGeo().Encode()) + x.String(m.GetTitle()) + x.String(m.GetAddress()) + x.String(m.GetProvider()) + x.String(m.GetVenueId()) + x.String(m.GetVenueType()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } return x.buf } -func (m *TLChannelAdminLogEventActionToggleInvites) EncodeToLayer(layer int) []byte { +func (m *TLBotInlineMessageMediaVenue) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionToggleInvites)) + x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaVenue)) - x.Bytes(m.GetNewValue().EncodeToLayer(layer)) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Bytes(m.GetGeo().EncodeToLayer(layer)) + x.String(m.GetTitle()) + x.String(m.GetAddress()) + x.String(m.GetProvider()) + x.String(m.GetVenueId()) + x.String(m.GetVenueType()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLChannelAdminLogEventActionToggleInvites) Decode(dbuf *DecodeBuf) error { - m1 := &Bool{} - m1.Decode(dbuf) - m.SetNewValue(m1) +func (m *TLBotInlineMessageMediaVenue) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &GeoPoint{} + m2.Decode(dbuf) + m.SetGeo(m2) + m.SetTitle(dbuf.String()) + m.SetAddress(dbuf.String()) + m.SetProvider(dbuf.String()) + m.SetVenueId(dbuf.String()) + m.SetVenueType(dbuf.String()) + if (flags & (1 << 2)) != 0 { + m8 := &ReplyMarkup{} + m8.Decode(dbuf) + m.SetReplyMarkup(m8) + } return dbuf.err } -// channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionToggleSignatures) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures, +// botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +func (m *TLBotInlineMessageMediaContact) To_BotInlineMessage() *BotInlineMessage { + return &BotInlineMessage{ + Constructor: TLConstructor_CRC32_botInlineMessageMediaContact, Data2: m.Data2, } } -func (m *TLChannelAdminLogEventActionToggleSignatures) SetNewValue(v *Bool) { m.Data2.NewValue_5 = v } -func (m *TLChannelAdminLogEventActionToggleSignatures) GetNewValue() *Bool { return m.Data2.NewValue_5 } +func (m *TLBotInlineMessageMediaContact) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } +func (m *TLBotInlineMessageMediaContact) GetPhoneNumber() string { return m.Data2.PhoneNumber } -func NewTLChannelAdminLogEventActionToggleSignatures() *TLChannelAdminLogEventActionToggleSignatures { - return &TLChannelAdminLogEventActionToggleSignatures{Data2: &ChannelAdminLogEventAction_Data{}} +func (m *TLBotInlineMessageMediaContact) SetFirstName(v string) { m.Data2.FirstName = v } +func (m *TLBotInlineMessageMediaContact) GetFirstName() string { return m.Data2.FirstName } + +func (m *TLBotInlineMessageMediaContact) SetLastName(v string) { m.Data2.LastName = v } +func (m *TLBotInlineMessageMediaContact) GetLastName() string { return m.Data2.LastName } + +func (m *TLBotInlineMessageMediaContact) SetVcard(v string) { m.Data2.Vcard = v } +func (m *TLBotInlineMessageMediaContact) GetVcard() string { return m.Data2.Vcard } + +func (m *TLBotInlineMessageMediaContact) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } +func (m *TLBotInlineMessageMediaContact) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } + +func NewTLBotInlineMessageMediaContact() *TLBotInlineMessageMediaContact { + return &TLBotInlineMessageMediaContact{Data2: &BotInlineMessage_Data{}} } -func (m *TLChannelAdminLogEventActionToggleSignatures) Encode() []byte { +func (m *TLBotInlineMessageMediaContact) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures)) + x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaContact)) - x.Bytes(m.GetNewValue().Encode()) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.String(m.GetPhoneNumber()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetVcard()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().Encode()) + } return x.buf } -func (m *TLChannelAdminLogEventActionToggleSignatures) EncodeToLayer(layer int) []byte { +func (m *TLBotInlineMessageMediaContact) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures)) + x.Int(int32(TLConstructor_CRC32_botInlineMessageMediaContact)) - x.Bytes(m.GetNewValue().EncodeToLayer(layer)) + // flags + var flags uint32 = 0 + if m.GetReplyMarkup() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.String(m.GetPhoneNumber()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetVcard()) + if m.GetReplyMarkup() != nil { + x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + } return x.buf } -func (m *TLChannelAdminLogEventActionToggleSignatures) Decode(dbuf *DecodeBuf) error { - m1 := &Bool{} - m1.Decode(dbuf) - m.SetNewValue(m1) +func (m *TLBotInlineMessageMediaContact) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetPhoneNumber(dbuf.String()) + m.SetFirstName(dbuf.String()) + m.SetLastName(dbuf.String()) + m.SetVcard(dbuf.String()) + if (flags & (1 << 2)) != 0 { + m6 := &ReplyMarkup{} + m6.Decode(dbuf) + m.SetReplyMarkup(m6) + } return dbuf.err } -// channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionUpdatePinned) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// Messages_BotResults <-- +// + TL_MessagesBotResults +// -func (m *TLChannelAdminLogEventActionUpdatePinned) SetMessage(v *Message) { m.Data2.Message = v } -func (m *TLChannelAdminLogEventActionUpdatePinned) GetMessage() *Message { return m.Data2.Message } +func (m *Messages_BotResults) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_botResults: + t := m.To_MessagesBotResults() + return t.Encode() -func NewTLChannelAdminLogEventActionUpdatePinned() *TLChannelAdminLogEventActionUpdatePinned { - return &TLChannelAdminLogEventActionUpdatePinned{Data2: &ChannelAdminLogEventAction_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelAdminLogEventActionUpdatePinned) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned)) - - x.Bytes(m.GetMessage().Encode()) +func (m *Messages_BotResults) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_botResults: + t := m.To_MessagesBotResults() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelAdminLogEventActionUpdatePinned) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned)) - - x.Bytes(m.GetMessage().EncodeToLayer(layer)) +func (m *Messages_BotResults) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_botResults: + m2 := &TLMessagesBotResults{Data2: &Messages_BotResults_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLChannelAdminLogEventActionUpdatePinned) Decode(dbuf *DecodeBuf) error { - m1 := &Message{} - m1.Decode(dbuf) - m.SetMessage(m1) - - return dbuf.err +// messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector cache_time:int users:Vector = messages.BotResults; +func (m *Messages_BotResults) To_MessagesBotResults() *TLMessagesBotResults { + return &TLMessagesBotResults{ + Data2: m.Data2, + } } -// channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionEditMessage) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionEditMessage, +// messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector cache_time:int users:Vector = messages.BotResults; +func (m *TLMessagesBotResults) To_Messages_BotResults() *Messages_BotResults { + return &Messages_BotResults{ + Constructor: TLConstructor_CRC32_messages_botResults, Data2: m.Data2, } } -func (m *TLChannelAdminLogEventActionEditMessage) SetPrevMessage(v *Message) { m.Data2.PrevMessage = v } -func (m *TLChannelAdminLogEventActionEditMessage) GetPrevMessage() *Message { - return m.Data2.PrevMessage -} +func (m *TLMessagesBotResults) SetGallery(v bool) { m.Data2.Gallery = v } +func (m *TLMessagesBotResults) GetGallery() bool { return m.Data2.Gallery } -func (m *TLChannelAdminLogEventActionEditMessage) SetNewMessage(v *Message) { m.Data2.NewMessage = v } -func (m *TLChannelAdminLogEventActionEditMessage) GetNewMessage() *Message { return m.Data2.NewMessage } +func (m *TLMessagesBotResults) SetQueryId(v int64) { m.Data2.QueryId = v } +func (m *TLMessagesBotResults) GetQueryId() int64 { return m.Data2.QueryId } -func NewTLChannelAdminLogEventActionEditMessage() *TLChannelAdminLogEventActionEditMessage { - return &TLChannelAdminLogEventActionEditMessage{Data2: &ChannelAdminLogEventAction_Data{}} -} +func (m *TLMessagesBotResults) SetNextOffset(v string) { m.Data2.NextOffset = v } +func (m *TLMessagesBotResults) GetNextOffset() string { return m.Data2.NextOffset } -func (m *TLChannelAdminLogEventActionEditMessage) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionEditMessage)) +func (m *TLMessagesBotResults) SetSwitchPm(v *InlineBotSwitchPM) { m.Data2.SwitchPm = v } +func (m *TLMessagesBotResults) GetSwitchPm() *InlineBotSwitchPM { return m.Data2.SwitchPm } - x.Bytes(m.GetPrevMessage().Encode()) - x.Bytes(m.GetNewMessage().Encode()) +func (m *TLMessagesBotResults) SetResults(v []*BotInlineResult) { m.Data2.Results = v } +func (m *TLMessagesBotResults) GetResults() []*BotInlineResult { return m.Data2.Results } - return x.buf +func (m *TLMessagesBotResults) SetCacheTime(v int32) { m.Data2.CacheTime = v } +func (m *TLMessagesBotResults) GetCacheTime() int32 { return m.Data2.CacheTime } + +func (m *TLMessagesBotResults) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLMessagesBotResults) GetUsers() []*User { return m.Data2.Users } + +func NewTLMessagesBotResults() *TLMessagesBotResults { + return &TLMessagesBotResults{Data2: &Messages_BotResults_Data{}} } -func (m *TLChannelAdminLogEventActionEditMessage) EncodeToLayer(layer int) []byte { +func (m *TLMessagesBotResults) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionEditMessage)) + x.Int(int32(TLConstructor_CRC32_messages_botResults)) - x.Bytes(m.GetPrevMessage().EncodeToLayer(layer)) - x.Bytes(m.GetNewMessage().EncodeToLayer(layer)) + // flags + var flags uint32 = 0 + if m.GetGallery() == true { + flags |= 1 << 0 + } + if m.GetNextOffset() != "" { + flags |= 1 << 1 + } + if m.GetSwitchPm() != nil { + flags |= 1 << 2 + } + x.UInt(flags) + + x.Long(m.GetQueryId()) + if m.GetNextOffset() != "" { + x.String(m.GetNextOffset()) + } + if m.GetSwitchPm() != nil { + x.Bytes(m.GetSwitchPm().Encode()) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetResults()))) + for _, v := range m.GetResults() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(m.GetCacheTime()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLChannelAdminLogEventActionEditMessage) Decode(dbuf *DecodeBuf) error { - m1 := &Message{} - m1.Decode(dbuf) - m.SetPrevMessage(m1) - m2 := &Message{} - m2.Decode(dbuf) - m.SetNewMessage(m2) +func (m *TLMessagesBotResults) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_botResults)) - return dbuf.err -} + // flags + var flags uint32 = 0 + if m.GetGallery() == true { + flags |= 1 << 0 + } + if m.GetNextOffset() != "" { + flags |= 1 << 1 + } + if m.GetSwitchPm() != nil { + flags |= 1 << 2 + } + x.UInt(flags) -// channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionDeleteMessage) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage, - Data2: m.Data2, + x.Long(m.GetQueryId()) + if m.GetNextOffset() != "" { + x.String(m.GetNextOffset()) } + if m.GetSwitchPm() != nil { + x.Bytes(m.GetSwitchPm().EncodeToLayer(layer)) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetResults()))) + for _, v := range m.GetResults() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(m.GetCacheTime()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + + return x.buf } -func (m *TLChannelAdminLogEventActionDeleteMessage) SetMessage(v *Message) { m.Data2.Message = v } -func (m *TLChannelAdminLogEventActionDeleteMessage) GetMessage() *Message { return m.Data2.Message } +func (m *TLMessagesBotResults) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetGallery(true) + } + m.SetQueryId(dbuf.Long()) + if (flags & (1 << 1)) != 0 { + m.SetNextOffset(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m5 := &InlineBotSwitchPM{} + m5.Decode(dbuf) + m.SetSwitchPm(m5) + } + c6 := dbuf.Int() + if c6 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) + return dbuf.err + } + l6 := dbuf.Int() + v6 := make([]*BotInlineResult, l6) + for i := int32(0); i < l6; i++ { + v6[i] = &BotInlineResult{} + v6[i].Decode(dbuf) + } + m.SetResults(v6) -func NewTLChannelAdminLogEventActionDeleteMessage() *TLChannelAdminLogEventActionDeleteMessage { - return &TLChannelAdminLogEventActionDeleteMessage{Data2: &ChannelAdminLogEventAction_Data{}} + m.SetCacheTime(dbuf.Int()) + c8 := dbuf.Int() + if c8 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) + return dbuf.err + } + l8 := dbuf.Int() + v8 := make([]*User, l8) + for i := int32(0); i < l8; i++ { + v8[i] = &User{} + v8[i].Decode(dbuf) + } + m.SetUsers(v8) + + return dbuf.err } -func (m *TLChannelAdminLogEventActionDeleteMessage) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage)) +/////////////////////////////////////////////////////////////////////////////// +// Messages_MessageEditData <-- +// + TL_MessagesMessageEditData +// - x.Bytes(m.GetMessage().Encode()) +func (m *Messages_MessageEditData) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_messageEditData: + t := m.To_MessagesMessageEditData() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelAdminLogEventActionDeleteMessage) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage)) - - x.Bytes(m.GetMessage().EncodeToLayer(layer)) +func (m *Messages_MessageEditData) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_messageEditData: + t := m.To_MessagesMessageEditData() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelAdminLogEventActionDeleteMessage) Decode(dbuf *DecodeBuf) error { - m1 := &Message{} - m1.Decode(dbuf) - m.SetMessage(m1) +func (m *Messages_MessageEditData) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_messageEditData: + m2 := &TLMessagesMessageEditData{Data2: &Messages_MessageEditData_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionParticipantJoin) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin, +// messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData; +func (m *Messages_MessageEditData) To_MessagesMessageEditData() *TLMessagesMessageEditData { + return &TLMessagesMessageEditData{ + Data2: m.Data2, + } +} + +// messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData; +func (m *TLMessagesMessageEditData) To_Messages_MessageEditData() *Messages_MessageEditData { + return &Messages_MessageEditData{ + Constructor: TLConstructor_CRC32_messages_messageEditData, Data2: m.Data2, } } -func NewTLChannelAdminLogEventActionParticipantJoin() *TLChannelAdminLogEventActionParticipantJoin { - return &TLChannelAdminLogEventActionParticipantJoin{Data2: &ChannelAdminLogEventAction_Data{}} +func (m *TLMessagesMessageEditData) SetCaption(v bool) { m.Data2.Caption = v } +func (m *TLMessagesMessageEditData) GetCaption() bool { return m.Data2.Caption } + +func NewTLMessagesMessageEditData() *TLMessagesMessageEditData { + return &TLMessagesMessageEditData{Data2: &Messages_MessageEditData_Data{}} } -func (m *TLChannelAdminLogEventActionParticipantJoin) Encode() []byte { +func (m *TLMessagesMessageEditData) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin)) + x.Int(int32(TLConstructor_CRC32_messages_messageEditData)) + + // flags + var flags uint32 = 0 + if m.GetCaption() == true { + flags |= 1 << 0 + } + x.UInt(flags) return x.buf } -func (m *TLChannelAdminLogEventActionParticipantJoin) EncodeToLayer(layer int) []byte { +func (m *TLMessagesMessageEditData) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin)) + x.Int(int32(TLConstructor_CRC32_messages_messageEditData)) + + // flags + var flags uint32 = 0 + if m.GetCaption() == true { + flags |= 1 << 0 + } + x.UInt(flags) return x.buf } -func (m *TLChannelAdminLogEventActionParticipantJoin) Decode(dbuf *DecodeBuf) error { +func (m *TLMessagesMessageEditData) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetCaption(true) + } return dbuf.err } -// channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionParticipantLeave) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave, - Data2: m.Data2, - } -} - -func NewTLChannelAdminLogEventActionParticipantLeave() *TLChannelAdminLogEventActionParticipantLeave { - return &TLChannelAdminLogEventActionParticipantLeave{Data2: &ChannelAdminLogEventAction_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// Auth_PasswordRecovery <-- +// + TL_AuthPasswordRecovery +// -func (m *TLChannelAdminLogEventActionParticipantLeave) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave)) +func (m *Auth_PasswordRecovery) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_auth_passwordRecovery: + t := m.To_AuthPasswordRecovery() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelAdminLogEventActionParticipantLeave) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave)) +func (m *Auth_PasswordRecovery) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_auth_passwordRecovery: + t := m.To_AuthPasswordRecovery() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelAdminLogEventActionParticipantLeave) Decode(dbuf *DecodeBuf) error { +func (m *Auth_PasswordRecovery) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_auth_passwordRecovery: + m2 := &TLAuthPasswordRecovery{Data2: &Auth_PasswordRecovery_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionParticipantInvite) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite, - Data2: m.Data2, +// auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; +func (m *Auth_PasswordRecovery) To_AuthPasswordRecovery() *TLAuthPasswordRecovery { + return &TLAuthPasswordRecovery{ + Data2: m.Data2, } } -func (m *TLChannelAdminLogEventActionParticipantInvite) SetParticipant(v *ChannelParticipant) { - m.Data2.Participant = v -} -func (m *TLChannelAdminLogEventActionParticipantInvite) GetParticipant() *ChannelParticipant { - return m.Data2.Participant +// auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; +func (m *TLAuthPasswordRecovery) To_Auth_PasswordRecovery() *Auth_PasswordRecovery { + return &Auth_PasswordRecovery{ + Constructor: TLConstructor_CRC32_auth_passwordRecovery, + Data2: m.Data2, + } } -func NewTLChannelAdminLogEventActionParticipantInvite() *TLChannelAdminLogEventActionParticipantInvite { - return &TLChannelAdminLogEventActionParticipantInvite{Data2: &ChannelAdminLogEventAction_Data{}} +func (m *TLAuthPasswordRecovery) SetEmailPattern(v string) { m.Data2.EmailPattern = v } +func (m *TLAuthPasswordRecovery) GetEmailPattern() string { return m.Data2.EmailPattern } + +func NewTLAuthPasswordRecovery() *TLAuthPasswordRecovery { + return &TLAuthPasswordRecovery{Data2: &Auth_PasswordRecovery_Data{}} } -func (m *TLChannelAdminLogEventActionParticipantInvite) Encode() []byte { +func (m *TLAuthPasswordRecovery) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite)) + x.Int(int32(TLConstructor_CRC32_auth_passwordRecovery)) - x.Bytes(m.GetParticipant().Encode()) + x.String(m.GetEmailPattern()) return x.buf } -func (m *TLChannelAdminLogEventActionParticipantInvite) EncodeToLayer(layer int) []byte { +func (m *TLAuthPasswordRecovery) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite)) + x.Int(int32(TLConstructor_CRC32_auth_passwordRecovery)) - x.Bytes(m.GetParticipant().EncodeToLayer(layer)) + x.String(m.GetEmailPattern()) return x.buf } -func (m *TLChannelAdminLogEventActionParticipantInvite) Decode(dbuf *DecodeBuf) error { - m1 := &ChannelParticipant{} - m1.Decode(dbuf) - m.SetParticipant(m1) +func (m *TLAuthPasswordRecovery) Decode(dbuf *DecodeBuf) error { + m.SetEmailPattern(dbuf.String()) return dbuf.err } -// channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionParticipantToggleBan) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// Messages_AffectedMessages <-- +// + TL_MessagesAffectedMessages +// + +func (m *Messages_AffectedMessages) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_affectedMessages: + t := m.To_MessagesAffectedMessages() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLChannelAdminLogEventActionParticipantToggleBan) SetPrevParticipant(v *ChannelParticipant) { - m.Data2.PrevParticipant = v -} -func (m *TLChannelAdminLogEventActionParticipantToggleBan) GetPrevParticipant() *ChannelParticipant { - return m.Data2.PrevParticipant -} +func (m *Messages_AffectedMessages) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_affectedMessages: + t := m.To_MessagesAffectedMessages() + return t.EncodeToLayer(layer) -func (m *TLChannelAdminLogEventActionParticipantToggleBan) SetNewParticipant(v *ChannelParticipant) { - m.Data2.NewParticipant = v + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelAdminLogEventActionParticipantToggleBan) GetNewParticipant() *ChannelParticipant { - return m.Data2.NewParticipant + +func (m *Messages_AffectedMessages) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_affectedMessages: + m2 := &TLMessagesAffectedMessages{Data2: &Messages_AffectedMessages_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func NewTLChannelAdminLogEventActionParticipantToggleBan() *TLChannelAdminLogEventActionParticipantToggleBan { - return &TLChannelAdminLogEventActionParticipantToggleBan{Data2: &ChannelAdminLogEventAction_Data{}} +// messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages; +func (m *Messages_AffectedMessages) To_MessagesAffectedMessages() *TLMessagesAffectedMessages { + return &TLMessagesAffectedMessages{ + Data2: m.Data2, + } } -func (m *TLChannelAdminLogEventActionParticipantToggleBan) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan)) - - x.Bytes(m.GetPrevParticipant().Encode()) - x.Bytes(m.GetNewParticipant().Encode()) - - return x.buf -} - -func (m *TLChannelAdminLogEventActionParticipantToggleBan) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan)) - - x.Bytes(m.GetPrevParticipant().EncodeToLayer(layer)) - x.Bytes(m.GetNewParticipant().EncodeToLayer(layer)) - - return x.buf -} - -func (m *TLChannelAdminLogEventActionParticipantToggleBan) Decode(dbuf *DecodeBuf) error { - m1 := &ChannelParticipant{} - m1.Decode(dbuf) - m.SetPrevParticipant(m1) - m2 := &ChannelParticipant{} - m2.Decode(dbuf) - m.SetNewParticipant(m2) - - return dbuf.err -} - -// channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin, +// messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages; +func (m *TLMessagesAffectedMessages) To_Messages_AffectedMessages() *Messages_AffectedMessages { + return &Messages_AffectedMessages{ + Constructor: TLConstructor_CRC32_messages_affectedMessages, Data2: m.Data2, } } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) SetPrevParticipant(v *ChannelParticipant) { - m.Data2.PrevParticipant = v -} -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) GetPrevParticipant() *ChannelParticipant { - return m.Data2.PrevParticipant -} +func (m *TLMessagesAffectedMessages) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLMessagesAffectedMessages) GetPts() int32 { return m.Data2.Pts } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) SetNewParticipant(v *ChannelParticipant) { - m.Data2.NewParticipant = v -} -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) GetNewParticipant() *ChannelParticipant { - return m.Data2.NewParticipant -} +func (m *TLMessagesAffectedMessages) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLMessagesAffectedMessages) GetPtsCount() int32 { return m.Data2.PtsCount } -func NewTLChannelAdminLogEventActionParticipantToggleAdmin() *TLChannelAdminLogEventActionParticipantToggleAdmin { - return &TLChannelAdminLogEventActionParticipantToggleAdmin{Data2: &ChannelAdminLogEventAction_Data{}} +func NewTLMessagesAffectedMessages() *TLMessagesAffectedMessages { + return &TLMessagesAffectedMessages{Data2: &Messages_AffectedMessages_Data{}} } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) Encode() []byte { +func (m *TLMessagesAffectedMessages) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin)) + x.Int(int32(TLConstructor_CRC32_messages_affectedMessages)) - x.Bytes(m.GetPrevParticipant().Encode()) - x.Bytes(m.GetNewParticipant().Encode()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) EncodeToLayer(layer int) []byte { +func (m *TLMessagesAffectedMessages) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin)) + x.Int(int32(TLConstructor_CRC32_messages_affectedMessages)) - x.Bytes(m.GetPrevParticipant().EncodeToLayer(layer)) - x.Bytes(m.GetNewParticipant().EncodeToLayer(layer)) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) Decode(dbuf *DecodeBuf) error { - m1 := &ChannelParticipant{} - m1.Decode(dbuf) - m.SetPrevParticipant(m1) - m2 := &ChannelParticipant{} - m2.Decode(dbuf) - m.SetNewParticipant(m2) +func (m *TLMessagesAffectedMessages) Decode(dbuf *DecodeBuf) error { + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -// channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionChangeStickerSet) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet, - Data2: m.Data2, - } -} - -func (m *TLChannelAdminLogEventActionChangeStickerSet) SetPrevStickerset(v *InputStickerSet) { - m.Data2.PrevStickerset = v -} -func (m *TLChannelAdminLogEventActionChangeStickerSet) GetPrevStickerset() *InputStickerSet { - return m.Data2.PrevStickerset -} +/////////////////////////////////////////////////////////////////////////////// +// TopPeer <-- +// + TL_TopPeer +// -func (m *TLChannelAdminLogEventActionChangeStickerSet) SetNewStickerset(v *InputStickerSet) { - m.Data2.NewStickerset = v -} -func (m *TLChannelAdminLogEventActionChangeStickerSet) GetNewStickerset() *InputStickerSet { - return m.Data2.NewStickerset -} +func (m *TopPeer) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_topPeer: + t := m.To_TopPeer() + return t.Encode() -func NewTLChannelAdminLogEventActionChangeStickerSet() *TLChannelAdminLogEventActionChangeStickerSet { - return &TLChannelAdminLogEventActionChangeStickerSet{Data2: &ChannelAdminLogEventAction_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelAdminLogEventActionChangeStickerSet) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet)) - - x.Bytes(m.GetPrevStickerset().Encode()) - x.Bytes(m.GetNewStickerset().Encode()) +func (m *TopPeer) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_topPeer: + t := m.To_TopPeer() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLChannelAdminLogEventActionChangeStickerSet) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet)) - - x.Bytes(m.GetPrevStickerset().EncodeToLayer(layer)) - x.Bytes(m.GetNewStickerset().EncodeToLayer(layer)) +func (m *TopPeer) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_topPeer: + m2 := &TLTopPeer{Data2: &TopPeer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLChannelAdminLogEventActionChangeStickerSet) Decode(dbuf *DecodeBuf) error { - m1 := &InputStickerSet{} - m1.Decode(dbuf) - m.SetPrevStickerset(m1) - m2 := &InputStickerSet{} - m2.Decode(dbuf) - m.SetNewStickerset(m2) - - return dbuf.err +// topPeer#edcdc05b peer:Peer rating:double = TopPeer; +func (m *TopPeer) To_TopPeer() *TLTopPeer { + return &TLTopPeer{ + Data2: m.Data2, + } } -// channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction; -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { - return &ChannelAdminLogEventAction{ - Constructor: TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden, +// topPeer#edcdc05b peer:Peer rating:double = TopPeer; +func (m *TLTopPeer) To_TopPeer() *TopPeer { + return &TopPeer{ + Constructor: TLConstructor_CRC32_topPeer, Data2: m.Data2, } } -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) SetNewValue(v *Bool) { - m.Data2.NewValue_5 = v -} -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) GetNewValue() *Bool { - return m.Data2.NewValue_5 -} +func (m *TLTopPeer) SetPeer(v *Peer) { m.Data2.Peer = v } +func (m *TLTopPeer) GetPeer() *Peer { return m.Data2.Peer } -func NewTLChannelAdminLogEventActionTogglePreHistoryHidden() *TLChannelAdminLogEventActionTogglePreHistoryHidden { - return &TLChannelAdminLogEventActionTogglePreHistoryHidden{Data2: &ChannelAdminLogEventAction_Data{}} +func (m *TLTopPeer) SetRating(v float64) { m.Data2.Rating = v } +func (m *TLTopPeer) GetRating() float64 { return m.Data2.Rating } + +func NewTLTopPeer() *TLTopPeer { + return &TLTopPeer{Data2: &TopPeer_Data{}} } -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) Encode() []byte { +func (m *TLTopPeer) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden)) + x.Int(int32(TLConstructor_CRC32_topPeer)) - x.Bytes(m.GetNewValue().Encode()) + x.Bytes(m.GetPeer().Encode()) + x.Double(m.GetRating()) return x.buf } -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) EncodeToLayer(layer int) []byte { +func (m *TLTopPeer) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden)) + x.Int(int32(TLConstructor_CRC32_topPeer)) - x.Bytes(m.GetNewValue().EncodeToLayer(layer)) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.Double(m.GetRating()) return x.buf } -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) Decode(dbuf *DecodeBuf) error { - m1 := &Bool{} +func (m *TLTopPeer) Decode(dbuf *DecodeBuf) error { + m1 := &Peer{} m1.Decode(dbuf) - m.SetNewValue(m1) + m.SetPeer(m1) + m.SetRating(dbuf.Double()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_DhConfig <-- -// + TL_MessagesDhConfigNotModified -// + TL_MessagesDhConfig +// InputPaymentCredentials <-- +// + TL_InputPaymentCredentialsSaved +// + TL_InputPaymentCredentials +// + TL_InputPaymentCredentialsApplePay +// + TL_InputPaymentCredentialsAndroidPay // -func (m *Messages_DhConfig) Encode() []byte { +func (m *InputPaymentCredentials) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_dhConfigNotModified: - t := m.To_MessagesDhConfigNotModified() + case TLConstructor_CRC32_inputPaymentCredentialsSaved: + t := m.To_InputPaymentCredentialsSaved() return t.Encode() - case TLConstructor_CRC32_messages_dhConfig: - t := m.To_MessagesDhConfig() + case TLConstructor_CRC32_inputPaymentCredentials: + t := m.To_InputPaymentCredentials() + return t.Encode() + case TLConstructor_CRC32_inputPaymentCredentialsApplePay: + t := m.To_InputPaymentCredentialsApplePay() + return t.Encode() + case TLConstructor_CRC32_inputPaymentCredentialsAndroidPay: + t := m.To_InputPaymentCredentialsAndroidPay() return t.Encode() default: @@ -44924,14 +45946,20 @@ func (m *Messages_DhConfig) Encode() []byte { } } -func (m *Messages_DhConfig) EncodeToLayer(layer int) []byte { +func (m *InputPaymentCredentials) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_dhConfigNotModified: - t := m.To_MessagesDhConfigNotModified() + case TLConstructor_CRC32_inputPaymentCredentialsSaved: + t := m.To_InputPaymentCredentialsSaved() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_dhConfig: - t := m.To_MessagesDhConfig() + case TLConstructor_CRC32_inputPaymentCredentials: + t := m.To_InputPaymentCredentials() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPaymentCredentialsApplePay: + t := m.To_InputPaymentCredentialsApplePay() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputPaymentCredentialsAndroidPay: + t := m.To_InputPaymentCredentialsAndroidPay() return t.EncodeToLayer(layer) default: @@ -44940,15 +45968,23 @@ func (m *Messages_DhConfig) EncodeToLayer(layer int) []byte { } } -func (m *Messages_DhConfig) Decode(dbuf *DecodeBuf) error { +func (m *InputPaymentCredentials) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_dhConfigNotModified: - m2 := &TLMessagesDhConfigNotModified{Data2: &Messages_DhConfig_Data{}} + case TLConstructor_CRC32_inputPaymentCredentialsSaved: + m2 := &TLInputPaymentCredentialsSaved{Data2: &InputPaymentCredentials_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_dhConfig: - m2 := &TLMessagesDhConfig{Data2: &Messages_DhConfig_Data{}} + case TLConstructor_CRC32_inputPaymentCredentials: + m2 := &TLInputPaymentCredentials{Data2: &InputPaymentCredentials_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPaymentCredentialsApplePay: + m2 := &TLInputPaymentCredentialsApplePay{Data2: &InputPaymentCredentials_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputPaymentCredentialsAndroidPay: + m2 := &TLInputPaymentCredentialsAndroidPay{Data2: &InputPaymentCredentials_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -44958,238 +45994,303 @@ func (m *Messages_DhConfig) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig; -func (m *Messages_DhConfig) To_MessagesDhConfigNotModified() *TLMessagesDhConfigNotModified { - return &TLMessagesDhConfigNotModified{ +// inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; +func (m *InputPaymentCredentials) To_InputPaymentCredentialsSaved() *TLInputPaymentCredentialsSaved { + return &TLInputPaymentCredentialsSaved{ Data2: m.Data2, } } -// messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig; -func (m *Messages_DhConfig) To_MessagesDhConfig() *TLMessagesDhConfig { - return &TLMessagesDhConfig{ +// inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; +func (m *InputPaymentCredentials) To_InputPaymentCredentials() *TLInputPaymentCredentials { + return &TLInputPaymentCredentials{ Data2: m.Data2, } } -// messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig; -func (m *TLMessagesDhConfigNotModified) To_Messages_DhConfig() *Messages_DhConfig { - return &Messages_DhConfig{ - Constructor: TLConstructor_CRC32_messages_dhConfigNotModified, +// inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials; +func (m *InputPaymentCredentials) To_InputPaymentCredentialsApplePay() *TLInputPaymentCredentialsApplePay { + return &TLInputPaymentCredentialsApplePay{ + Data2: m.Data2, + } +} + +// inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials; +func (m *InputPaymentCredentials) To_InputPaymentCredentialsAndroidPay() *TLInputPaymentCredentialsAndroidPay { + return &TLInputPaymentCredentialsAndroidPay{ + Data2: m.Data2, + } +} + +// inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; +func (m *TLInputPaymentCredentialsSaved) To_InputPaymentCredentials() *InputPaymentCredentials { + return &InputPaymentCredentials{ + Constructor: TLConstructor_CRC32_inputPaymentCredentialsSaved, Data2: m.Data2, } } -func (m *TLMessagesDhConfigNotModified) SetRandom(v []byte) { m.Data2.Random = v } -func (m *TLMessagesDhConfigNotModified) GetRandom() []byte { return m.Data2.Random } +func (m *TLInputPaymentCredentialsSaved) SetId(v string) { m.Data2.Id = v } +func (m *TLInputPaymentCredentialsSaved) GetId() string { return m.Data2.Id } -func NewTLMessagesDhConfigNotModified() *TLMessagesDhConfigNotModified { - return &TLMessagesDhConfigNotModified{Data2: &Messages_DhConfig_Data{}} +func (m *TLInputPaymentCredentialsSaved) SetTmpPassword(v []byte) { m.Data2.TmpPassword = v } +func (m *TLInputPaymentCredentialsSaved) GetTmpPassword() []byte { return m.Data2.TmpPassword } + +func NewTLInputPaymentCredentialsSaved() *TLInputPaymentCredentialsSaved { + return &TLInputPaymentCredentialsSaved{Data2: &InputPaymentCredentials_Data{}} } -func (m *TLMessagesDhConfigNotModified) Encode() []byte { +func (m *TLInputPaymentCredentialsSaved) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dhConfigNotModified)) + x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsSaved)) - x.StringBytes(m.GetRandom()) + x.String(m.GetId()) + x.StringBytes(m.GetTmpPassword()) return x.buf } -func (m *TLMessagesDhConfigNotModified) EncodeToLayer(layer int) []byte { +func (m *TLInputPaymentCredentialsSaved) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dhConfigNotModified)) + x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsSaved)) - x.StringBytes(m.GetRandom()) + x.String(m.GetId()) + x.StringBytes(m.GetTmpPassword()) return x.buf } -func (m *TLMessagesDhConfigNotModified) Decode(dbuf *DecodeBuf) error { - m.SetRandom(dbuf.StringBytes()) +func (m *TLInputPaymentCredentialsSaved) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.String()) + m.SetTmpPassword(dbuf.StringBytes()) return dbuf.err } -// messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig; -func (m *TLMessagesDhConfig) To_Messages_DhConfig() *Messages_DhConfig { - return &Messages_DhConfig{ - Constructor: TLConstructor_CRC32_messages_dhConfig, +// inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; +func (m *TLInputPaymentCredentials) To_InputPaymentCredentials() *InputPaymentCredentials { + return &InputPaymentCredentials{ + Constructor: TLConstructor_CRC32_inputPaymentCredentials, Data2: m.Data2, } } -func (m *TLMessagesDhConfig) SetG(v int32) { m.Data2.G = v } -func (m *TLMessagesDhConfig) GetG() int32 { return m.Data2.G } - -func (m *TLMessagesDhConfig) SetP(v []byte) { m.Data2.P = v } -func (m *TLMessagesDhConfig) GetP() []byte { return m.Data2.P } - -func (m *TLMessagesDhConfig) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLMessagesDhConfig) GetVersion() int32 { return m.Data2.Version } +func (m *TLInputPaymentCredentials) SetSave(v bool) { m.Data2.Save = v } +func (m *TLInputPaymentCredentials) GetSave() bool { return m.Data2.Save } -func (m *TLMessagesDhConfig) SetRandom(v []byte) { m.Data2.Random = v } -func (m *TLMessagesDhConfig) GetRandom() []byte { return m.Data2.Random } +func (m *TLInputPaymentCredentials) SetData(v *DataJSON) { m.Data2.Data = v } +func (m *TLInputPaymentCredentials) GetData() *DataJSON { return m.Data2.Data } -func NewTLMessagesDhConfig() *TLMessagesDhConfig { - return &TLMessagesDhConfig{Data2: &Messages_DhConfig_Data{}} +func NewTLInputPaymentCredentials() *TLInputPaymentCredentials { + return &TLInputPaymentCredentials{Data2: &InputPaymentCredentials_Data{}} } -func (m *TLMessagesDhConfig) Encode() []byte { +func (m *TLInputPaymentCredentials) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dhConfig)) + x.Int(int32(TLConstructor_CRC32_inputPaymentCredentials)) - x.Int(m.GetG()) - x.StringBytes(m.GetP()) - x.Int(m.GetVersion()) - x.StringBytes(m.GetRandom()) + // flags + var flags uint32 = 0 + if m.GetSave() == true { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Bytes(m.GetData().Encode()) return x.buf } -func (m *TLMessagesDhConfig) EncodeToLayer(layer int) []byte { +func (m *TLInputPaymentCredentials) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dhConfig)) + x.Int(int32(TLConstructor_CRC32_inputPaymentCredentials)) - x.Int(m.GetG()) - x.StringBytes(m.GetP()) - x.Int(m.GetVersion()) - x.StringBytes(m.GetRandom()) + // flags + var flags uint32 = 0 + if m.GetSave() == true { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Bytes(m.GetData().EncodeToLayer(layer)) return x.buf } -func (m *TLMessagesDhConfig) Decode(dbuf *DecodeBuf) error { - m.SetG(dbuf.Int()) - m.SetP(dbuf.StringBytes()) - m.SetVersion(dbuf.Int()) - m.SetRandom(dbuf.StringBytes()) +func (m *TLInputPaymentCredentials) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetSave(true) + } + m3 := &DataJSON{} + m3.Decode(dbuf) + m.SetData(m3) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Account_Authorizations <-- -// + TL_AccountAuthorizations -// +// inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials; +func (m *TLInputPaymentCredentialsApplePay) To_InputPaymentCredentials() *InputPaymentCredentials { + return &InputPaymentCredentials{ + Constructor: TLConstructor_CRC32_inputPaymentCredentialsApplePay, + Data2: m.Data2, + } +} -func (m *Account_Authorizations) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_account_authorizations: - t := m.To_AccountAuthorizations() - return t.Encode() +func (m *TLInputPaymentCredentialsApplePay) SetPaymentData(v *DataJSON) { m.Data2.PaymentData = v } +func (m *TLInputPaymentCredentialsApplePay) GetPaymentData() *DataJSON { return m.Data2.PaymentData } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLInputPaymentCredentialsApplePay() *TLInputPaymentCredentialsApplePay { + return &TLInputPaymentCredentialsApplePay{Data2: &InputPaymentCredentials_Data{}} } -func (m *Account_Authorizations) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_account_authorizations: - t := m.To_AccountAuthorizations() - return t.EncodeToLayer(layer) +func (m *TLInputPaymentCredentialsApplePay) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsApplePay)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetPaymentData().Encode()) + + return x.buf } -func (m *Account_Authorizations) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_account_authorizations: - m2 := &TLAccountAuthorizations{Data2: &Account_Authorizations_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputPaymentCredentialsApplePay) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsApplePay)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetPaymentData().EncodeToLayer(layer)) + + return x.buf } -// account.authorizations#1250abde authorizations:Vector = account.Authorizations; -func (m *Account_Authorizations) To_AccountAuthorizations() *TLAccountAuthorizations { - return &TLAccountAuthorizations{ - Data2: m.Data2, - } +func (m *TLInputPaymentCredentialsApplePay) Decode(dbuf *DecodeBuf) error { + m1 := &DataJSON{} + m1.Decode(dbuf) + m.SetPaymentData(m1) + + return dbuf.err } -// account.authorizations#1250abde authorizations:Vector = account.Authorizations; -func (m *TLAccountAuthorizations) To_Account_Authorizations() *Account_Authorizations { - return &Account_Authorizations{ - Constructor: TLConstructor_CRC32_account_authorizations, +// inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials; +func (m *TLInputPaymentCredentialsAndroidPay) To_InputPaymentCredentials() *InputPaymentCredentials { + return &InputPaymentCredentials{ + Constructor: TLConstructor_CRC32_inputPaymentCredentialsAndroidPay, Data2: m.Data2, } } -func (m *TLAccountAuthorizations) SetAuthorizations(v []*Authorization) { m.Data2.Authorizations = v } -func (m *TLAccountAuthorizations) GetAuthorizations() []*Authorization { return m.Data2.Authorizations } +func (m *TLInputPaymentCredentialsAndroidPay) SetPaymentToken(v *DataJSON) { m.Data2.PaymentToken = v } +func (m *TLInputPaymentCredentialsAndroidPay) GetPaymentToken() *DataJSON { return m.Data2.PaymentToken } -func NewTLAccountAuthorizations() *TLAccountAuthorizations { - return &TLAccountAuthorizations{Data2: &Account_Authorizations_Data{}} +func (m *TLInputPaymentCredentialsAndroidPay) SetGoogleTransactionId(v string) { + m.Data2.GoogleTransactionId = v +} +func (m *TLInputPaymentCredentialsAndroidPay) GetGoogleTransactionId() string { + return m.Data2.GoogleTransactionId } -func (m *TLAccountAuthorizations) Encode() []byte { +func NewTLInputPaymentCredentialsAndroidPay() *TLInputPaymentCredentialsAndroidPay { + return &TLInputPaymentCredentialsAndroidPay{Data2: &InputPaymentCredentials_Data{}} +} + +func (m *TLInputPaymentCredentialsAndroidPay) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_authorizations)) + x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsAndroidPay)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAuthorizations()))) - for _, v := range m.GetAuthorizations() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetPaymentToken().Encode()) + x.String(m.GetGoogleTransactionId()) return x.buf } -func (m *TLAccountAuthorizations) EncodeToLayer(layer int) []byte { +func (m *TLInputPaymentCredentialsAndroidPay) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_authorizations)) + x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsAndroidPay)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAuthorizations()))) - for _, v := range m.GetAuthorizations() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetPaymentToken().EncodeToLayer(layer)) + x.String(m.GetGoogleTransactionId()) return x.buf } -func (m *TLAccountAuthorizations) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Authorization, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Authorization{} - v1[i].Decode(dbuf) - } - m.SetAuthorizations(v1) +func (m *TLInputPaymentCredentialsAndroidPay) Decode(dbuf *DecodeBuf) error { + m1 := &DataJSON{} + m1.Decode(dbuf) + m.SetPaymentToken(m1) + m.SetGoogleTransactionId(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Help_PassportConfig <-- -// + TL_HelpPassportConfigNotModified -// + TL_HelpPassportConfig +// ChannelAdminLogEventAction <-- +// + TL_ChannelAdminLogEventActionChangeTitle +// + TL_ChannelAdminLogEventActionChangeAbout +// + TL_ChannelAdminLogEventActionChangeUsername +// + TL_ChannelAdminLogEventActionChangePhoto +// + TL_ChannelAdminLogEventActionToggleInvites +// + TL_ChannelAdminLogEventActionToggleSignatures +// + TL_ChannelAdminLogEventActionUpdatePinned +// + TL_ChannelAdminLogEventActionEditMessage +// + TL_ChannelAdminLogEventActionDeleteMessage +// + TL_ChannelAdminLogEventActionParticipantJoin +// + TL_ChannelAdminLogEventActionParticipantLeave +// + TL_ChannelAdminLogEventActionParticipantInvite +// + TL_ChannelAdminLogEventActionParticipantToggleBan +// + TL_ChannelAdminLogEventActionParticipantToggleAdmin +// + TL_ChannelAdminLogEventActionChangeStickerSet +// + TL_ChannelAdminLogEventActionTogglePreHistoryHidden // -func (m *Help_PassportConfig) Encode() []byte { +func (m *ChannelAdminLogEventAction) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_help_passportConfigNotModified: - t := m.To_HelpPassportConfigNotModified() + case TLConstructor_CRC32_channelAdminLogEventActionChangeTitle: + t := m.To_ChannelAdminLogEventActionChangeTitle() return t.Encode() - case TLConstructor_CRC32_help_passportConfig: - t := m.To_HelpPassportConfig() + case TLConstructor_CRC32_channelAdminLogEventActionChangeAbout: + t := m.To_ChannelAdminLogEventActionChangeAbout() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionChangeUsername: + t := m.To_ChannelAdminLogEventActionChangeUsername() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionChangePhoto: + t := m.To_ChannelAdminLogEventActionChangePhoto() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionToggleInvites: + t := m.To_ChannelAdminLogEventActionToggleInvites() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures: + t := m.To_ChannelAdminLogEventActionToggleSignatures() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned: + t := m.To_ChannelAdminLogEventActionUpdatePinned() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionEditMessage: + t := m.To_ChannelAdminLogEventActionEditMessage() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage: + t := m.To_ChannelAdminLogEventActionDeleteMessage() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin: + t := m.To_ChannelAdminLogEventActionParticipantJoin() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave: + t := m.To_ChannelAdminLogEventActionParticipantLeave() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite: + t := m.To_ChannelAdminLogEventActionParticipantInvite() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan: + t := m.To_ChannelAdminLogEventActionParticipantToggleBan() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin: + t := m.To_ChannelAdminLogEventActionParticipantToggleAdmin() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet: + t := m.To_ChannelAdminLogEventActionChangeStickerSet() + return t.Encode() + case TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden: + t := m.To_ChannelAdminLogEventActionTogglePreHistoryHidden() return t.Encode() default: @@ -45198,14 +46299,56 @@ func (m *Help_PassportConfig) Encode() []byte { } } -func (m *Help_PassportConfig) EncodeToLayer(layer int) []byte { +func (m *ChannelAdminLogEventAction) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_help_passportConfigNotModified: - t := m.To_HelpPassportConfigNotModified() + case TLConstructor_CRC32_channelAdminLogEventActionChangeTitle: + t := m.To_ChannelAdminLogEventActionChangeTitle() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_help_passportConfig: - t := m.To_HelpPassportConfig() + case TLConstructor_CRC32_channelAdminLogEventActionChangeAbout: + t := m.To_ChannelAdminLogEventActionChangeAbout() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionChangeUsername: + t := m.To_ChannelAdminLogEventActionChangeUsername() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionChangePhoto: + t := m.To_ChannelAdminLogEventActionChangePhoto() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionToggleInvites: + t := m.To_ChannelAdminLogEventActionToggleInvites() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures: + t := m.To_ChannelAdminLogEventActionToggleSignatures() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned: + t := m.To_ChannelAdminLogEventActionUpdatePinned() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionEditMessage: + t := m.To_ChannelAdminLogEventActionEditMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage: + t := m.To_ChannelAdminLogEventActionDeleteMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin: + t := m.To_ChannelAdminLogEventActionParticipantJoin() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave: + t := m.To_ChannelAdminLogEventActionParticipantLeave() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite: + t := m.To_ChannelAdminLogEventActionParticipantInvite() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan: + t := m.To_ChannelAdminLogEventActionParticipantToggleBan() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin: + t := m.To_ChannelAdminLogEventActionParticipantToggleAdmin() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet: + t := m.To_ChannelAdminLogEventActionChangeStickerSet() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden: + t := m.To_ChannelAdminLogEventActionTogglePreHistoryHidden() return t.EncodeToLayer(layer) default: @@ -45214,15 +46357,71 @@ func (m *Help_PassportConfig) EncodeToLayer(layer int) []byte { } } -func (m *Help_PassportConfig) Decode(dbuf *DecodeBuf) error { +func (m *ChannelAdminLogEventAction) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_help_passportConfigNotModified: - m2 := &TLHelpPassportConfigNotModified{Data2: &Help_PassportConfig_Data{}} + case TLConstructor_CRC32_channelAdminLogEventActionChangeTitle: + m2 := &TLChannelAdminLogEventActionChangeTitle{Data2: &ChannelAdminLogEventAction_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_help_passportConfig: - m2 := &TLHelpPassportConfig{Data2: &Help_PassportConfig_Data{}} + case TLConstructor_CRC32_channelAdminLogEventActionChangeAbout: + m2 := &TLChannelAdminLogEventActionChangeAbout{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionChangeUsername: + m2 := &TLChannelAdminLogEventActionChangeUsername{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionChangePhoto: + m2 := &TLChannelAdminLogEventActionChangePhoto{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionToggleInvites: + m2 := &TLChannelAdminLogEventActionToggleInvites{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures: + m2 := &TLChannelAdminLogEventActionToggleSignatures{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned: + m2 := &TLChannelAdminLogEventActionUpdatePinned{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionEditMessage: + m2 := &TLChannelAdminLogEventActionEditMessage{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage: + m2 := &TLChannelAdminLogEventActionDeleteMessage{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin: + m2 := &TLChannelAdminLogEventActionParticipantJoin{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave: + m2 := &TLChannelAdminLogEventActionParticipantLeave{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite: + m2 := &TLChannelAdminLogEventActionParticipantInvite{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan: + m2 := &TLChannelAdminLogEventActionParticipantToggleBan{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin: + m2 := &TLChannelAdminLogEventActionParticipantToggleAdmin{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet: + m2 := &TLChannelAdminLogEventActionChangeStickerSet{Data2: &ChannelAdminLogEventAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden: + m2 := &TLChannelAdminLogEventActionTogglePreHistoryHidden{Data2: &ChannelAdminLogEventAction_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -45232,1282 +46431,897 @@ func (m *Help_PassportConfig) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// help.passportConfigNotModified#bfb9f457 = help.PassportConfig; -func (m *Help_PassportConfig) To_HelpPassportConfigNotModified() *TLHelpPassportConfigNotModified { - return &TLHelpPassportConfigNotModified{ +// channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangeTitle() *TLChannelAdminLogEventActionChangeTitle { + return &TLChannelAdminLogEventActionChangeTitle{ Data2: m.Data2, } } -// help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig; -func (m *Help_PassportConfig) To_HelpPassportConfig() *TLHelpPassportConfig { - return &TLHelpPassportConfig{ +// channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangeAbout() *TLChannelAdminLogEventActionChangeAbout { + return &TLChannelAdminLogEventActionChangeAbout{ Data2: m.Data2, } } -// help.passportConfigNotModified#bfb9f457 = help.PassportConfig; -func (m *TLHelpPassportConfigNotModified) To_Help_PassportConfig() *Help_PassportConfig { - return &Help_PassportConfig{ - Constructor: TLConstructor_CRC32_help_passportConfigNotModified, - Data2: m.Data2, +// channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangeUsername() *TLChannelAdminLogEventActionChangeUsername { + return &TLChannelAdminLogEventActionChangeUsername{ + Data2: m.Data2, } } -func NewTLHelpPassportConfigNotModified() *TLHelpPassportConfigNotModified { - return &TLHelpPassportConfigNotModified{Data2: &Help_PassportConfig_Data{}} +// channelAdminLogEventActionChangePhoto#b82f55c3 prev_photo:ChatPhoto new_photo:ChatPhoto = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangePhoto() *TLChannelAdminLogEventActionChangePhoto { + return &TLChannelAdminLogEventActionChangePhoto{ + Data2: m.Data2, + } } -func (m *TLHelpPassportConfigNotModified) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_passportConfigNotModified)) +// channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionToggleInvites() *TLChannelAdminLogEventActionToggleInvites { + return &TLChannelAdminLogEventActionToggleInvites{ + Data2: m.Data2, + } +} - return x.buf +// channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionToggleSignatures() *TLChannelAdminLogEventActionToggleSignatures { + return &TLChannelAdminLogEventActionToggleSignatures{ + Data2: m.Data2, + } } -func (m *TLHelpPassportConfigNotModified) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_passportConfigNotModified)) +// channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionUpdatePinned() *TLChannelAdminLogEventActionUpdatePinned { + return &TLChannelAdminLogEventActionUpdatePinned{ + Data2: m.Data2, + } +} - return x.buf +// channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionEditMessage() *TLChannelAdminLogEventActionEditMessage { + return &TLChannelAdminLogEventActionEditMessage{ + Data2: m.Data2, + } } -func (m *TLHelpPassportConfigNotModified) Decode(dbuf *DecodeBuf) error { +// channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionDeleteMessage() *TLChannelAdminLogEventActionDeleteMessage { + return &TLChannelAdminLogEventActionDeleteMessage{ + Data2: m.Data2, + } +} - return dbuf.err +// channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantJoin() *TLChannelAdminLogEventActionParticipantJoin { + return &TLChannelAdminLogEventActionParticipantJoin{ + Data2: m.Data2, + } } -// help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig; -func (m *TLHelpPassportConfig) To_Help_PassportConfig() *Help_PassportConfig { - return &Help_PassportConfig{ - Constructor: TLConstructor_CRC32_help_passportConfig, +// channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantLeave() *TLChannelAdminLogEventActionParticipantLeave { + return &TLChannelAdminLogEventActionParticipantLeave{ + Data2: m.Data2, + } +} + +// channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantInvite() *TLChannelAdminLogEventActionParticipantInvite { + return &TLChannelAdminLogEventActionParticipantInvite{ + Data2: m.Data2, + } +} + +// channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantToggleBan() *TLChannelAdminLogEventActionParticipantToggleBan { + return &TLChannelAdminLogEventActionParticipantToggleBan{ + Data2: m.Data2, + } +} + +// channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionParticipantToggleAdmin() *TLChannelAdminLogEventActionParticipantToggleAdmin { + return &TLChannelAdminLogEventActionParticipantToggleAdmin{ + Data2: m.Data2, + } +} + +// channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionChangeStickerSet() *TLChannelAdminLogEventActionChangeStickerSet { + return &TLChannelAdminLogEventActionChangeStickerSet{ + Data2: m.Data2, + } +} + +// channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction; +func (m *ChannelAdminLogEventAction) To_ChannelAdminLogEventActionTogglePreHistoryHidden() *TLChannelAdminLogEventActionTogglePreHistoryHidden { + return &TLChannelAdminLogEventActionTogglePreHistoryHidden{ + Data2: m.Data2, + } +} + +// channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionChangeTitle) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangeTitle, Data2: m.Data2, } } -func (m *TLHelpPassportConfig) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLHelpPassportConfig) GetHash() int32 { return m.Data2.Hash } +func (m *TLChannelAdminLogEventActionChangeTitle) SetPrevValue(v string) { m.Data2.PrevValue = v } +func (m *TLChannelAdminLogEventActionChangeTitle) GetPrevValue() string { return m.Data2.PrevValue } -func (m *TLHelpPassportConfig) SetCountriesLangs(v *DataJSON) { m.Data2.CountriesLangs = v } -func (m *TLHelpPassportConfig) GetCountriesLangs() *DataJSON { return m.Data2.CountriesLangs } +func (m *TLChannelAdminLogEventActionChangeTitle) SetNewValue(v string) { m.Data2.NewValue_2 = v } +func (m *TLChannelAdminLogEventActionChangeTitle) GetNewValue() string { return m.Data2.NewValue_2 } -func NewTLHelpPassportConfig() *TLHelpPassportConfig { - return &TLHelpPassportConfig{Data2: &Help_PassportConfig_Data{}} +func NewTLChannelAdminLogEventActionChangeTitle() *TLChannelAdminLogEventActionChangeTitle { + return &TLChannelAdminLogEventActionChangeTitle{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLHelpPassportConfig) Encode() []byte { +func (m *TLChannelAdminLogEventActionChangeTitle) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_passportConfig)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeTitle)) - x.Int(m.GetHash()) - x.Bytes(m.GetCountriesLangs().Encode()) + x.String(m.GetPrevValue()) + x.String(m.GetNewValue()) return x.buf } -func (m *TLHelpPassportConfig) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminLogEventActionChangeTitle) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_passportConfig)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeTitle)) - x.Int(m.GetHash()) - x.Bytes(m.GetCountriesLangs().EncodeToLayer(layer)) + x.String(m.GetPrevValue()) + x.String(m.GetNewValue()) return x.buf } -func (m *TLHelpPassportConfig) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Int()) - m2 := &DataJSON{} - m2.Decode(dbuf) - m.SetCountriesLangs(m2) +func (m *TLChannelAdminLogEventActionChangeTitle) Decode(dbuf *DecodeBuf) error { + m.SetPrevValue(dbuf.String()) + m.SetNewValue(dbuf.String()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// NearestDc <-- -// + TL_NearestDc -// +// channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionChangeAbout) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangeAbout, + Data2: m.Data2, + } +} -func (m *NearestDc) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_nearestDc: - t := m.To_NearestDc() - return t.Encode() +func (m *TLChannelAdminLogEventActionChangeAbout) SetPrevValue(v string) { m.Data2.PrevValue = v } +func (m *TLChannelAdminLogEventActionChangeAbout) GetPrevValue() string { return m.Data2.PrevValue } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLChannelAdminLogEventActionChangeAbout) SetNewValue(v string) { m.Data2.NewValue_2 = v } +func (m *TLChannelAdminLogEventActionChangeAbout) GetNewValue() string { return m.Data2.NewValue_2 } + +func NewTLChannelAdminLogEventActionChangeAbout() *TLChannelAdminLogEventActionChangeAbout { + return &TLChannelAdminLogEventActionChangeAbout{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *NearestDc) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_nearestDc: - t := m.To_NearestDc() - return t.EncodeToLayer(layer) +func (m *TLChannelAdminLogEventActionChangeAbout) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeAbout)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.String(m.GetPrevValue()) + x.String(m.GetNewValue()) + + return x.buf } -func (m *NearestDc) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_nearestDc: - m2 := &TLNearestDc{Data2: &NearestDc_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLChannelAdminLogEventActionChangeAbout) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeAbout)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.String(m.GetPrevValue()) + x.String(m.GetNewValue()) + + return x.buf } -// nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc; -func (m *NearestDc) To_NearestDc() *TLNearestDc { - return &TLNearestDc{ - Data2: m.Data2, - } +func (m *TLChannelAdminLogEventActionChangeAbout) Decode(dbuf *DecodeBuf) error { + m.SetPrevValue(dbuf.String()) + m.SetNewValue(dbuf.String()) + + return dbuf.err } -// nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc; -func (m *TLNearestDc) To_NearestDc() *NearestDc { - return &NearestDc{ - Constructor: TLConstructor_CRC32_nearestDc, +// channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionChangeUsername) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangeUsername, Data2: m.Data2, } } -func (m *TLNearestDc) SetCountry(v string) { m.Data2.Country = v } -func (m *TLNearestDc) GetCountry() string { return m.Data2.Country } - -func (m *TLNearestDc) SetThisDc(v int32) { m.Data2.ThisDc = v } -func (m *TLNearestDc) GetThisDc() int32 { return m.Data2.ThisDc } +func (m *TLChannelAdminLogEventActionChangeUsername) SetPrevValue(v string) { m.Data2.PrevValue = v } +func (m *TLChannelAdminLogEventActionChangeUsername) GetPrevValue() string { return m.Data2.PrevValue } -func (m *TLNearestDc) SetNearestDc(v int32) { m.Data2.NearestDc = v } -func (m *TLNearestDc) GetNearestDc() int32 { return m.Data2.NearestDc } +func (m *TLChannelAdminLogEventActionChangeUsername) SetNewValue(v string) { m.Data2.NewValue_2 = v } +func (m *TLChannelAdminLogEventActionChangeUsername) GetNewValue() string { return m.Data2.NewValue_2 } -func NewTLNearestDc() *TLNearestDc { - return &TLNearestDc{Data2: &NearestDc_Data{}} +func NewTLChannelAdminLogEventActionChangeUsername() *TLChannelAdminLogEventActionChangeUsername { + return &TLChannelAdminLogEventActionChangeUsername{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLNearestDc) Encode() []byte { +func (m *TLChannelAdminLogEventActionChangeUsername) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_nearestDc)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeUsername)) - x.String(m.GetCountry()) - x.Int(m.GetThisDc()) - x.Int(m.GetNearestDc()) + x.String(m.GetPrevValue()) + x.String(m.GetNewValue()) return x.buf } -func (m *TLNearestDc) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminLogEventActionChangeUsername) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_nearestDc)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeUsername)) - x.String(m.GetCountry()) - x.Int(m.GetThisDc()) - x.Int(m.GetNearestDc()) + x.String(m.GetPrevValue()) + x.String(m.GetNewValue()) return x.buf } -func (m *TLNearestDc) Decode(dbuf *DecodeBuf) error { - m.SetCountry(dbuf.String()) - m.SetThisDc(dbuf.Int()) - m.SetNearestDc(dbuf.Int()) +func (m *TLChannelAdminLogEventActionChangeUsername) Decode(dbuf *DecodeBuf) error { + m.SetPrevValue(dbuf.String()) + m.SetNewValue(dbuf.String()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// KeyboardButtonRow <-- -// + TL_KeyboardButtonRow -// - -func (m *KeyboardButtonRow) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_keyboardButtonRow: - t := m.To_KeyboardButtonRow() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// channelAdminLogEventActionChangePhoto#b82f55c3 prev_photo:ChatPhoto new_photo:ChatPhoto = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionChangePhoto) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangePhoto, + Data2: m.Data2, } } -func (m *KeyboardButtonRow) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_keyboardButtonRow: - t := m.To_KeyboardButtonRow() - return t.EncodeToLayer(layer) +func (m *TLChannelAdminLogEventActionChangePhoto) SetPrevPhoto(v *ChatPhoto) { m.Data2.PrevPhoto = v } +func (m *TLChannelAdminLogEventActionChangePhoto) GetPrevPhoto() *ChatPhoto { return m.Data2.PrevPhoto } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLChannelAdminLogEventActionChangePhoto) SetNewPhoto(v *ChatPhoto) { m.Data2.NewPhoto = v } +func (m *TLChannelAdminLogEventActionChangePhoto) GetNewPhoto() *ChatPhoto { return m.Data2.NewPhoto } + +func NewTLChannelAdminLogEventActionChangePhoto() *TLChannelAdminLogEventActionChangePhoto { + return &TLChannelAdminLogEventActionChangePhoto{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *KeyboardButtonRow) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_keyboardButtonRow: - m2 := &TLKeyboardButtonRow{Data2: &KeyboardButtonRow_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLChannelAdminLogEventActionChangePhoto) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangePhoto)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetPrevPhoto().Encode()) + x.Bytes(m.GetNewPhoto().Encode()) + + return x.buf } -// keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; -func (m *KeyboardButtonRow) To_KeyboardButtonRow() *TLKeyboardButtonRow { - return &TLKeyboardButtonRow{ - Data2: m.Data2, - } +func (m *TLChannelAdminLogEventActionChangePhoto) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangePhoto)) + + x.Bytes(m.GetPrevPhoto().EncodeToLayer(layer)) + x.Bytes(m.GetNewPhoto().EncodeToLayer(layer)) + + return x.buf } -// keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; -func (m *TLKeyboardButtonRow) To_KeyboardButtonRow() *KeyboardButtonRow { - return &KeyboardButtonRow{ - Constructor: TLConstructor_CRC32_keyboardButtonRow, +func (m *TLChannelAdminLogEventActionChangePhoto) Decode(dbuf *DecodeBuf) error { + m1 := &ChatPhoto{} + m1.Decode(dbuf) + m.SetPrevPhoto(m1) + m2 := &ChatPhoto{} + m2.Decode(dbuf) + m.SetNewPhoto(m2) + + return dbuf.err +} + +// channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionToggleInvites) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionToggleInvites, Data2: m.Data2, } } -func (m *TLKeyboardButtonRow) SetButtons(v []*KeyboardButton) { m.Data2.Buttons = v } -func (m *TLKeyboardButtonRow) GetButtons() []*KeyboardButton { return m.Data2.Buttons } +func (m *TLChannelAdminLogEventActionToggleInvites) SetNewValue(v *Bool) { m.Data2.NewValue_5 = v } +func (m *TLChannelAdminLogEventActionToggleInvites) GetNewValue() *Bool { return m.Data2.NewValue_5 } -func NewTLKeyboardButtonRow() *TLKeyboardButtonRow { - return &TLKeyboardButtonRow{Data2: &KeyboardButtonRow_Data{}} +func NewTLChannelAdminLogEventActionToggleInvites() *TLChannelAdminLogEventActionToggleInvites { + return &TLChannelAdminLogEventActionToggleInvites{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLKeyboardButtonRow) Encode() []byte { +func (m *TLChannelAdminLogEventActionToggleInvites) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonRow)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionToggleInvites)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetButtons()))) - for _, v := range m.GetButtons() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetNewValue().Encode()) return x.buf } -func (m *TLKeyboardButtonRow) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminLogEventActionToggleInvites) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_keyboardButtonRow)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionToggleInvites)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetButtons()))) - for _, v := range m.GetButtons() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetNewValue().EncodeToLayer(layer)) return x.buf } -func (m *TLKeyboardButtonRow) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*KeyboardButton, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &KeyboardButton{} - v1[i].Decode(dbuf) - } - m.SetButtons(v1) +func (m *TLChannelAdminLogEventActionToggleInvites) Decode(dbuf *DecodeBuf) error { + m1 := &Bool{} + m1.Decode(dbuf) + m.SetNewValue(m1) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Messages_FeaturedStickers <-- -// + TL_MessagesFeaturedStickersNotModified -// + TL_MessagesFeaturedStickers -// - -func (m *Messages_FeaturedStickers) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_featuredStickersNotModified: - t := m.To_MessagesFeaturedStickersNotModified() - return t.Encode() - case TLConstructor_CRC32_messages_featuredStickers: - t := m.To_MessagesFeaturedStickers() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionToggleSignatures) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures, + Data2: m.Data2, } } -func (m *Messages_FeaturedStickers) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_featuredStickersNotModified: - t := m.To_MessagesFeaturedStickersNotModified() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_featuredStickers: - t := m.To_MessagesFeaturedStickers() - return t.EncodeToLayer(layer) +func (m *TLChannelAdminLogEventActionToggleSignatures) SetNewValue(v *Bool) { m.Data2.NewValue_5 = v } +func (m *TLChannelAdminLogEventActionToggleSignatures) GetNewValue() *Bool { return m.Data2.NewValue_5 } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLChannelAdminLogEventActionToggleSignatures() *TLChannelAdminLogEventActionToggleSignatures { + return &TLChannelAdminLogEventActionToggleSignatures{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *Messages_FeaturedStickers) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_featuredStickersNotModified: - m2 := &TLMessagesFeaturedStickersNotModified{Data2: &Messages_FeaturedStickers_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_featuredStickers: - m2 := &TLMessagesFeaturedStickers{Data2: &Messages_FeaturedStickers_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLChannelAdminLogEventActionToggleSignatures) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetNewValue().Encode()) + + return x.buf } -// messages.featuredStickersNotModified#4ede3cf = messages.FeaturedStickers; -func (m *Messages_FeaturedStickers) To_MessagesFeaturedStickersNotModified() *TLMessagesFeaturedStickersNotModified { - return &TLMessagesFeaturedStickersNotModified{ - Data2: m.Data2, - } +func (m *TLChannelAdminLogEventActionToggleSignatures) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionToggleSignatures)) + + x.Bytes(m.GetNewValue().EncodeToLayer(layer)) + + return x.buf } -// messages.featuredStickers#f89d88e5 hash:int sets:Vector unread:Vector = messages.FeaturedStickers; -func (m *Messages_FeaturedStickers) To_MessagesFeaturedStickers() *TLMessagesFeaturedStickers { - return &TLMessagesFeaturedStickers{ - Data2: m.Data2, - } +func (m *TLChannelAdminLogEventActionToggleSignatures) Decode(dbuf *DecodeBuf) error { + m1 := &Bool{} + m1.Decode(dbuf) + m.SetNewValue(m1) + + return dbuf.err } -// messages.featuredStickersNotModified#4ede3cf = messages.FeaturedStickers; -func (m *TLMessagesFeaturedStickersNotModified) To_Messages_FeaturedStickers() *Messages_FeaturedStickers { - return &Messages_FeaturedStickers{ - Constructor: TLConstructor_CRC32_messages_featuredStickersNotModified, +// channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionUpdatePinned) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned, Data2: m.Data2, } } -func NewTLMessagesFeaturedStickersNotModified() *TLMessagesFeaturedStickersNotModified { - return &TLMessagesFeaturedStickersNotModified{Data2: &Messages_FeaturedStickers_Data{}} +func (m *TLChannelAdminLogEventActionUpdatePinned) SetMessage(v *Message) { m.Data2.Message = v } +func (m *TLChannelAdminLogEventActionUpdatePinned) GetMessage() *Message { return m.Data2.Message } + +func NewTLChannelAdminLogEventActionUpdatePinned() *TLChannelAdminLogEventActionUpdatePinned { + return &TLChannelAdminLogEventActionUpdatePinned{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLMessagesFeaturedStickersNotModified) Encode() []byte { +func (m *TLChannelAdminLogEventActionUpdatePinned) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_featuredStickersNotModified)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned)) + + x.Bytes(m.GetMessage().Encode()) return x.buf } -func (m *TLMessagesFeaturedStickersNotModified) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminLogEventActionUpdatePinned) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_featuredStickersNotModified)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionUpdatePinned)) + + x.Bytes(m.GetMessage().EncodeToLayer(layer)) return x.buf } -func (m *TLMessagesFeaturedStickersNotModified) Decode(dbuf *DecodeBuf) error { +func (m *TLChannelAdminLogEventActionUpdatePinned) Decode(dbuf *DecodeBuf) error { + m1 := &Message{} + m1.Decode(dbuf) + m.SetMessage(m1) return dbuf.err } -// messages.featuredStickers#f89d88e5 hash:int sets:Vector unread:Vector = messages.FeaturedStickers; -func (m *TLMessagesFeaturedStickers) To_Messages_FeaturedStickers() *Messages_FeaturedStickers { - return &Messages_FeaturedStickers{ - Constructor: TLConstructor_CRC32_messages_featuredStickers, +// channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionEditMessage) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionEditMessage, Data2: m.Data2, } } -func (m *TLMessagesFeaturedStickers) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLMessagesFeaturedStickers) GetHash() int32 { return m.Data2.Hash } - -func (m *TLMessagesFeaturedStickers) SetSets(v []*StickerSetCovered) { m.Data2.Sets = v } -func (m *TLMessagesFeaturedStickers) GetSets() []*StickerSetCovered { return m.Data2.Sets } +func (m *TLChannelAdminLogEventActionEditMessage) SetPrevMessage(v *Message) { m.Data2.PrevMessage = v } +func (m *TLChannelAdminLogEventActionEditMessage) GetPrevMessage() *Message { + return m.Data2.PrevMessage +} -func (m *TLMessagesFeaturedStickers) SetUnread(v []int64) { m.Data2.Unread = v } -func (m *TLMessagesFeaturedStickers) GetUnread() []int64 { return m.Data2.Unread } +func (m *TLChannelAdminLogEventActionEditMessage) SetNewMessage(v *Message) { m.Data2.NewMessage = v } +func (m *TLChannelAdminLogEventActionEditMessage) GetNewMessage() *Message { return m.Data2.NewMessage } -func NewTLMessagesFeaturedStickers() *TLMessagesFeaturedStickers { - return &TLMessagesFeaturedStickers{Data2: &Messages_FeaturedStickers_Data{}} +func NewTLChannelAdminLogEventActionEditMessage() *TLChannelAdminLogEventActionEditMessage { + return &TLChannelAdminLogEventActionEditMessage{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLMessagesFeaturedStickers) Encode() []byte { +func (m *TLChannelAdminLogEventActionEditMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_featuredStickers)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionEditMessage)) - x.Int(m.GetHash()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.VectorLong(m.GetUnread()) + x.Bytes(m.GetPrevMessage().Encode()) + x.Bytes(m.GetNewMessage().Encode()) return x.buf } -func (m *TLMessagesFeaturedStickers) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminLogEventActionEditMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_featuredStickers)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionEditMessage)) - x.Int(m.GetHash()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.VectorLong(m.GetUnread()) + x.Bytes(m.GetPrevMessage().EncodeToLayer(layer)) + x.Bytes(m.GetNewMessage().EncodeToLayer(layer)) return x.buf } -func (m *TLMessagesFeaturedStickers) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*StickerSetCovered, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &StickerSetCovered{} - v2[i].Decode(dbuf) +func (m *TLChannelAdminLogEventActionEditMessage) Decode(dbuf *DecodeBuf) error { + m1 := &Message{} + m1.Decode(dbuf) + m.SetPrevMessage(m1) + m2 := &Message{} + m2.Decode(dbuf) + m.SetNewMessage(m2) + + return dbuf.err +} + +// channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionDeleteMessage) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage, + Data2: m.Data2, } - m.SetSets(v2) +} - m.SetUnread(dbuf.VectorLong()) +func (m *TLChannelAdminLogEventActionDeleteMessage) SetMessage(v *Message) { m.Data2.Message = v } +func (m *TLChannelAdminLogEventActionDeleteMessage) GetMessage() *Message { return m.Data2.Message } - return dbuf.err +func NewTLChannelAdminLogEventActionDeleteMessage() *TLChannelAdminLogEventActionDeleteMessage { + return &TLChannelAdminLogEventActionDeleteMessage{Data2: &ChannelAdminLogEventAction_Data{}} } -/////////////////////////////////////////////////////////////////////////////// -// Messages_BotResults <-- -// + TL_MessagesBotResults -// +func (m *TLChannelAdminLogEventActionDeleteMessage) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage)) -func (m *Messages_BotResults) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_botResults: - t := m.To_MessagesBotResults() - return t.Encode() + x.Bytes(m.GetMessage().Encode()) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *Messages_BotResults) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_botResults: - t := m.To_MessagesBotResults() - return t.EncodeToLayer(layer) +func (m *TLChannelAdminLogEventActionDeleteMessage) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionDeleteMessage)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetMessage().EncodeToLayer(layer)) + + return x.buf } -func (m *Messages_BotResults) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_botResults: - m2 := &TLMessagesBotResults{Data2: &Messages_BotResults_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLChannelAdminLogEventActionDeleteMessage) Decode(dbuf *DecodeBuf) error { + m1 := &Message{} + m1.Decode(dbuf) + m.SetMessage(m1) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector cache_time:int users:Vector = messages.BotResults; -func (m *Messages_BotResults) To_MessagesBotResults() *TLMessagesBotResults { - return &TLMessagesBotResults{ - Data2: m.Data2, +// channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionParticipantJoin) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin, + Data2: m.Data2, } } -// messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector cache_time:int users:Vector = messages.BotResults; -func (m *TLMessagesBotResults) To_Messages_BotResults() *Messages_BotResults { - return &Messages_BotResults{ - Constructor: TLConstructor_CRC32_messages_botResults, - Data2: m.Data2, - } +func NewTLChannelAdminLogEventActionParticipantJoin() *TLChannelAdminLogEventActionParticipantJoin { + return &TLChannelAdminLogEventActionParticipantJoin{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLMessagesBotResults) SetGallery(v bool) { m.Data2.Gallery = v } -func (m *TLMessagesBotResults) GetGallery() bool { return m.Data2.Gallery } +func (m *TLChannelAdminLogEventActionParticipantJoin) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin)) -func (m *TLMessagesBotResults) SetQueryId(v int64) { m.Data2.QueryId = v } -func (m *TLMessagesBotResults) GetQueryId() int64 { return m.Data2.QueryId } + return x.buf +} -func (m *TLMessagesBotResults) SetNextOffset(v string) { m.Data2.NextOffset = v } -func (m *TLMessagesBotResults) GetNextOffset() string { return m.Data2.NextOffset } +func (m *TLChannelAdminLogEventActionParticipantJoin) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantJoin)) -func (m *TLMessagesBotResults) SetSwitchPm(v *InlineBotSwitchPM) { m.Data2.SwitchPm = v } -func (m *TLMessagesBotResults) GetSwitchPm() *InlineBotSwitchPM { return m.Data2.SwitchPm } + return x.buf +} -func (m *TLMessagesBotResults) SetResults(v []*BotInlineResult) { m.Data2.Results = v } -func (m *TLMessagesBotResults) GetResults() []*BotInlineResult { return m.Data2.Results } +func (m *TLChannelAdminLogEventActionParticipantJoin) Decode(dbuf *DecodeBuf) error { -func (m *TLMessagesBotResults) SetCacheTime(v int32) { m.Data2.CacheTime = v } -func (m *TLMessagesBotResults) GetCacheTime() int32 { return m.Data2.CacheTime } + return dbuf.err +} -func (m *TLMessagesBotResults) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLMessagesBotResults) GetUsers() []*User { return m.Data2.Users } +// channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionParticipantLeave) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave, + Data2: m.Data2, + } +} -func NewTLMessagesBotResults() *TLMessagesBotResults { - return &TLMessagesBotResults{Data2: &Messages_BotResults_Data{}} +func NewTLChannelAdminLogEventActionParticipantLeave() *TLChannelAdminLogEventActionParticipantLeave { + return &TLChannelAdminLogEventActionParticipantLeave{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLMessagesBotResults) Encode() []byte { +func (m *TLChannelAdminLogEventActionParticipantLeave) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_botResults)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave)) - // flags - var flags uint32 = 0 - if m.GetGallery() == true { - flags |= 1 << 0 - } - if m.GetNextOffset() != "" { - flags |= 1 << 1 - } - if m.GetSwitchPm() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + return x.buf +} - x.Long(m.GetQueryId()) - if m.GetNextOffset() != "" { - x.String(m.GetNextOffset()) - } - if m.GetSwitchPm() != nil { - x.Bytes(m.GetSwitchPm().Encode()) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetResults()))) - for _, v := range m.GetResults() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(m.GetCacheTime()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } +func (m *TLChannelAdminLogEventActionParticipantLeave) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantLeave)) return x.buf } -func (m *TLMessagesBotResults) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_botResults)) +func (m *TLChannelAdminLogEventActionParticipantLeave) Decode(dbuf *DecodeBuf) error { - // flags - var flags uint32 = 0 - if m.GetGallery() == true { - flags |= 1 << 0 - } - if m.GetNextOffset() != "" { - flags |= 1 << 1 - } - if m.GetSwitchPm() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + return dbuf.err +} - x.Long(m.GetQueryId()) - if m.GetNextOffset() != "" { - x.String(m.GetNextOffset()) - } - if m.GetSwitchPm() != nil { - x.Bytes(m.GetSwitchPm().EncodeToLayer(layer)) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetResults()))) - for _, v := range m.GetResults() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(m.GetCacheTime()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) +// channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionParticipantInvite) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite, + Data2: m.Data2, } +} - return x.buf +func (m *TLChannelAdminLogEventActionParticipantInvite) SetParticipant(v *ChannelParticipant) { + m.Data2.Participant = v +} +func (m *TLChannelAdminLogEventActionParticipantInvite) GetParticipant() *ChannelParticipant { + return m.Data2.Participant } -func (m *TLMessagesBotResults) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetGallery(true) - } - m.SetQueryId(dbuf.Long()) - if (flags & (1 << 1)) != 0 { - m.SetNextOffset(dbuf.String()) - } - if (flags & (1 << 2)) != 0 { - m5 := &InlineBotSwitchPM{} - m5.Decode(dbuf) - m.SetSwitchPm(m5) - } - c6 := dbuf.Int() - if c6 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) - return dbuf.err - } - l6 := dbuf.Int() - v6 := make([]*BotInlineResult, l6) - for i := int32(0); i < l6; i++ { - v6[i] = &BotInlineResult{} - v6[i].Decode(dbuf) - } - m.SetResults(v6) - - m.SetCacheTime(dbuf.Int()) - c8 := dbuf.Int() - if c8 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) - return dbuf.err - } - l8 := dbuf.Int() - v8 := make([]*User, l8) - for i := int32(0); i < l8; i++ { - v8[i] = &User{} - v8[i].Decode(dbuf) - } - m.SetUsers(v8) - - return dbuf.err +func NewTLChannelAdminLogEventActionParticipantInvite() *TLChannelAdminLogEventActionParticipantInvite { + return &TLChannelAdminLogEventActionParticipantInvite{Data2: &ChannelAdminLogEventAction_Data{}} } -/////////////////////////////////////////////////////////////////////////////// -// Payments_ValidatedRequestedInfo <-- -// + TL_PaymentsValidatedRequestedInfo -// +func (m *TLChannelAdminLogEventActionParticipantInvite) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite)) -func (m *Payments_ValidatedRequestedInfo) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_payments_validatedRequestedInfo: - t := m.To_PaymentsValidatedRequestedInfo() - return t.Encode() + x.Bytes(m.GetParticipant().Encode()) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *Payments_ValidatedRequestedInfo) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_payments_validatedRequestedInfo: - t := m.To_PaymentsValidatedRequestedInfo() - return t.EncodeToLayer(layer) +func (m *TLChannelAdminLogEventActionParticipantInvite) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantInvite)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetParticipant().EncodeToLayer(layer)) + + return x.buf } -func (m *Payments_ValidatedRequestedInfo) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_payments_validatedRequestedInfo: - m2 := &TLPaymentsValidatedRequestedInfo{Data2: &Payments_ValidatedRequestedInfo_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLChannelAdminLogEventActionParticipantInvite) Decode(dbuf *DecodeBuf) error { + m1 := &ChannelParticipant{} + m1.Decode(dbuf) + m.SetParticipant(m1) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; -func (m *Payments_ValidatedRequestedInfo) To_PaymentsValidatedRequestedInfo() *TLPaymentsValidatedRequestedInfo { - return &TLPaymentsValidatedRequestedInfo{ - Data2: m.Data2, - } -} - -// payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; -func (m *TLPaymentsValidatedRequestedInfo) To_Payments_ValidatedRequestedInfo() *Payments_ValidatedRequestedInfo { - return &Payments_ValidatedRequestedInfo{ - Constructor: TLConstructor_CRC32_payments_validatedRequestedInfo, +// channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionParticipantToggleBan) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan, Data2: m.Data2, } } -func (m *TLPaymentsValidatedRequestedInfo) SetId(v string) { m.Data2.Id = v } -func (m *TLPaymentsValidatedRequestedInfo) GetId() string { return m.Data2.Id } +func (m *TLChannelAdminLogEventActionParticipantToggleBan) SetPrevParticipant(v *ChannelParticipant) { + m.Data2.PrevParticipant = v +} +func (m *TLChannelAdminLogEventActionParticipantToggleBan) GetPrevParticipant() *ChannelParticipant { + return m.Data2.PrevParticipant +} -func (m *TLPaymentsValidatedRequestedInfo) SetShippingOptions(v []*ShippingOption) { - m.Data2.ShippingOptions = v +func (m *TLChannelAdminLogEventActionParticipantToggleBan) SetNewParticipant(v *ChannelParticipant) { + m.Data2.NewParticipant = v } -func (m *TLPaymentsValidatedRequestedInfo) GetShippingOptions() []*ShippingOption { - return m.Data2.ShippingOptions +func (m *TLChannelAdminLogEventActionParticipantToggleBan) GetNewParticipant() *ChannelParticipant { + return m.Data2.NewParticipant } -func NewTLPaymentsValidatedRequestedInfo() *TLPaymentsValidatedRequestedInfo { - return &TLPaymentsValidatedRequestedInfo{Data2: &Payments_ValidatedRequestedInfo_Data{}} +func NewTLChannelAdminLogEventActionParticipantToggleBan() *TLChannelAdminLogEventActionParticipantToggleBan { + return &TLChannelAdminLogEventActionParticipantToggleBan{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLPaymentsValidatedRequestedInfo) Encode() []byte { +func (m *TLChannelAdminLogEventActionParticipantToggleBan) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_payments_validatedRequestedInfo)) - - // flags - var flags uint32 = 0 - if m.GetId() != "" { - flags |= 1 << 0 - } - if m.GetShippingOptions() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan)) - if m.GetId() != "" { - x.String(m.GetId()) - } - if m.GetShippingOptions() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetShippingOptions()))) - for _, v := range m.GetShippingOptions() { - x.buf = append(x.buf, (*v).Encode()...) - } - } + x.Bytes(m.GetPrevParticipant().Encode()) + x.Bytes(m.GetNewParticipant().Encode()) return x.buf } -func (m *TLPaymentsValidatedRequestedInfo) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminLogEventActionParticipantToggleBan) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_payments_validatedRequestedInfo)) - - // flags - var flags uint32 = 0 - if m.GetId() != "" { - flags |= 1 << 0 - } - if m.GetShippingOptions() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleBan)) - if m.GetId() != "" { - x.String(m.GetId()) - } - if m.GetShippingOptions() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetShippingOptions()))) - for _, v := range m.GetShippingOptions() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } + x.Bytes(m.GetPrevParticipant().EncodeToLayer(layer)) + x.Bytes(m.GetNewParticipant().EncodeToLayer(layer)) return x.buf } -func (m *TLPaymentsValidatedRequestedInfo) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetId(dbuf.String()) - } - if (flags & (1 << 1)) != 0 { - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*ShippingOption, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &ShippingOption{} - v3[i].Decode(dbuf) - } - m.SetShippingOptions(v3) - - } +func (m *TLChannelAdminLogEventActionParticipantToggleBan) Decode(dbuf *DecodeBuf) error { + m1 := &ChannelParticipant{} + m1.Decode(dbuf) + m.SetPrevParticipant(m1) + m2 := &ChannelParticipant{} + m2.Decode(dbuf) + m.SetNewParticipant(m2) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// InputStickerSetItem <-- -// + TL_InputStickerSetItem -// - -func (m *InputStickerSetItem) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputStickerSetItem: - t := m.To_InputStickerSetItem() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin, + Data2: m.Data2, } } -func (m *InputStickerSetItem) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputStickerSetItem: - t := m.To_InputStickerSetItem() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) SetPrevParticipant(v *ChannelParticipant) { + m.Data2.PrevParticipant = v } - -func (m *InputStickerSetItem) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputStickerSetItem: - m2 := &TLInputStickerSetItem{Data2: &InputStickerSetItem_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) GetPrevParticipant() *ChannelParticipant { + return m.Data2.PrevParticipant } -// inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem; -func (m *InputStickerSetItem) To_InputStickerSetItem() *TLInputStickerSetItem { - return &TLInputStickerSetItem{ - Data2: m.Data2, - } +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) SetNewParticipant(v *ChannelParticipant) { + m.Data2.NewParticipant = v } - -// inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem; -func (m *TLInputStickerSetItem) To_InputStickerSetItem() *InputStickerSetItem { - return &InputStickerSetItem{ - Constructor: TLConstructor_CRC32_inputStickerSetItem, - Data2: m.Data2, - } +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) GetNewParticipant() *ChannelParticipant { + return m.Data2.NewParticipant } -func (m *TLInputStickerSetItem) SetDocument(v *InputDocument) { m.Data2.Document = v } -func (m *TLInputStickerSetItem) GetDocument() *InputDocument { return m.Data2.Document } - -func (m *TLInputStickerSetItem) SetEmoji(v string) { m.Data2.Emoji = v } -func (m *TLInputStickerSetItem) GetEmoji() string { return m.Data2.Emoji } - -func (m *TLInputStickerSetItem) SetMaskCoords(v *MaskCoords) { m.Data2.MaskCoords = v } -func (m *TLInputStickerSetItem) GetMaskCoords() *MaskCoords { return m.Data2.MaskCoords } - -func NewTLInputStickerSetItem() *TLInputStickerSetItem { - return &TLInputStickerSetItem{Data2: &InputStickerSetItem_Data{}} +func NewTLChannelAdminLogEventActionParticipantToggleAdmin() *TLChannelAdminLogEventActionParticipantToggleAdmin { + return &TLChannelAdminLogEventActionParticipantToggleAdmin{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLInputStickerSetItem) Encode() []byte { +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickerSetItem)) - - // flags - var flags uint32 = 0 - if m.GetMaskCoords() != nil { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin)) - x.Bytes(m.GetDocument().Encode()) - x.String(m.GetEmoji()) - if m.GetMaskCoords() != nil { - x.Bytes(m.GetMaskCoords().Encode()) - } + x.Bytes(m.GetPrevParticipant().Encode()) + x.Bytes(m.GetNewParticipant().Encode()) return x.buf } -func (m *TLInputStickerSetItem) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputStickerSetItem)) - - // flags - var flags uint32 = 0 - if m.GetMaskCoords() != nil { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionParticipantToggleAdmin)) - x.Bytes(m.GetDocument().EncodeToLayer(layer)) - x.String(m.GetEmoji()) - if m.GetMaskCoords() != nil { - x.Bytes(m.GetMaskCoords().EncodeToLayer(layer)) - } + x.Bytes(m.GetPrevParticipant().EncodeToLayer(layer)) + x.Bytes(m.GetNewParticipant().EncodeToLayer(layer)) return x.buf } -func (m *TLInputStickerSetItem) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m2 := &InputDocument{} +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) Decode(dbuf *DecodeBuf) error { + m1 := &ChannelParticipant{} + m1.Decode(dbuf) + m.SetPrevParticipant(m1) + m2 := &ChannelParticipant{} m2.Decode(dbuf) - m.SetDocument(m2) - m.SetEmoji(dbuf.String()) - if (flags & (1 << 0)) != 0 { - m4 := &MaskCoords{} - m4.Decode(dbuf) - m.SetMaskCoords(m4) - } + m.SetNewParticipant(m2) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// CdnPublicKey <-- -// + TL_CdnPublicKey -// +// channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionChangeStickerSet) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet, + Data2: m.Data2, + } +} -func (m *CdnPublicKey) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_cdnPublicKey: - t := m.To_CdnPublicKey() - return t.Encode() +func (m *TLChannelAdminLogEventActionChangeStickerSet) SetPrevStickerset(v *InputStickerSet) { + m.Data2.PrevStickerset = v +} +func (m *TLChannelAdminLogEventActionChangeStickerSet) GetPrevStickerset() *InputStickerSet { + return m.Data2.PrevStickerset +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLChannelAdminLogEventActionChangeStickerSet) SetNewStickerset(v *InputStickerSet) { + m.Data2.NewStickerset = v +} +func (m *TLChannelAdminLogEventActionChangeStickerSet) GetNewStickerset() *InputStickerSet { + return m.Data2.NewStickerset } -func (m *CdnPublicKey) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_cdnPublicKey: - t := m.To_CdnPublicKey() - return t.EncodeToLayer(layer) +func NewTLChannelAdminLogEventActionChangeStickerSet() *TLChannelAdminLogEventActionChangeStickerSet { + return &TLChannelAdminLogEventActionChangeStickerSet{Data2: &ChannelAdminLogEventAction_Data{}} +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLChannelAdminLogEventActionChangeStickerSet) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet)) + + x.Bytes(m.GetPrevStickerset().Encode()) + x.Bytes(m.GetNewStickerset().Encode()) + + return x.buf } -func (m *CdnPublicKey) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_cdnPublicKey: - m2 := &TLCdnPublicKey{Data2: &CdnPublicKey_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLChannelAdminLogEventActionChangeStickerSet) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionChangeStickerSet)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetPrevStickerset().EncodeToLayer(layer)) + x.Bytes(m.GetNewStickerset().EncodeToLayer(layer)) + + return x.buf } -// cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey; -func (m *CdnPublicKey) To_CdnPublicKey() *TLCdnPublicKey { - return &TLCdnPublicKey{ - Data2: m.Data2, - } +func (m *TLChannelAdminLogEventActionChangeStickerSet) Decode(dbuf *DecodeBuf) error { + m1 := &InputStickerSet{} + m1.Decode(dbuf) + m.SetPrevStickerset(m1) + m2 := &InputStickerSet{} + m2.Decode(dbuf) + m.SetNewStickerset(m2) + + return dbuf.err } -// cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey; -func (m *TLCdnPublicKey) To_CdnPublicKey() *CdnPublicKey { - return &CdnPublicKey{ - Constructor: TLConstructor_CRC32_cdnPublicKey, +// channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction; +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) To_ChannelAdminLogEventAction() *ChannelAdminLogEventAction { + return &ChannelAdminLogEventAction{ + Constructor: TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden, Data2: m.Data2, } } -func (m *TLCdnPublicKey) SetDcId(v int32) { m.Data2.DcId = v } -func (m *TLCdnPublicKey) GetDcId() int32 { return m.Data2.DcId } - -func (m *TLCdnPublicKey) SetPublicKey(v string) { m.Data2.PublicKey = v } -func (m *TLCdnPublicKey) GetPublicKey() string { return m.Data2.PublicKey } +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) SetNewValue(v *Bool) { + m.Data2.NewValue_5 = v +} +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) GetNewValue() *Bool { + return m.Data2.NewValue_5 +} -func NewTLCdnPublicKey() *TLCdnPublicKey { - return &TLCdnPublicKey{Data2: &CdnPublicKey_Data{}} +func NewTLChannelAdminLogEventActionTogglePreHistoryHidden() *TLChannelAdminLogEventActionTogglePreHistoryHidden { + return &TLChannelAdminLogEventActionTogglePreHistoryHidden{Data2: &ChannelAdminLogEventAction_Data{}} } -func (m *TLCdnPublicKey) Encode() []byte { +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_cdnPublicKey)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden)) - x.Int(m.GetDcId()) - x.String(m.GetPublicKey()) + x.Bytes(m.GetNewValue().Encode()) return x.buf } -func (m *TLCdnPublicKey) EncodeToLayer(layer int) []byte { +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_cdnPublicKey)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEventActionTogglePreHistoryHidden)) - x.Int(m.GetDcId()) - x.String(m.GetPublicKey()) + x.Bytes(m.GetNewValue().EncodeToLayer(layer)) return x.buf } -func (m *TLCdnPublicKey) Decode(dbuf *DecodeBuf) error { - m.SetDcId(dbuf.Int()) - m.SetPublicKey(dbuf.String()) +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) Decode(dbuf *DecodeBuf) error { + m1 := &Bool{} + m1.Decode(dbuf) + m.SetNewValue(m1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ChannelMessagesFilter <-- -// + TL_ChannelMessagesFilterEmpty -// + TL_ChannelMessagesFilter +// SecureValueType <-- +// + TL_SecureValueTypePersonalDetails +// + TL_SecureValueTypePassport +// + TL_SecureValueTypeDriverLicense +// + TL_SecureValueTypeIdentityCard +// + TL_SecureValueTypeInternalPassport +// + TL_SecureValueTypeAddress +// + TL_SecureValueTypeUtilityBill +// + TL_SecureValueTypeBankStatement +// + TL_SecureValueTypeRentalAgreement +// + TL_SecureValueTypePassportRegistration +// + TL_SecureValueTypeTemporaryRegistration +// + TL_SecureValueTypePhone +// + TL_SecureValueTypeEmail // -func (m *ChannelMessagesFilter) Encode() []byte { +func (m *SecureValueType) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_channelMessagesFilterEmpty: - t := m.To_ChannelMessagesFilterEmpty() + case TLConstructor_CRC32_secureValueTypePersonalDetails: + t := m.To_SecureValueTypePersonalDetails() return t.Encode() - case TLConstructor_CRC32_channelMessagesFilter: - t := m.To_ChannelMessagesFilter() + case TLConstructor_CRC32_secureValueTypePassport: + t := m.To_SecureValueTypePassport() return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *ChannelMessagesFilter) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_channelMessagesFilterEmpty: - t := m.To_ChannelMessagesFilterEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelMessagesFilter: - t := m.To_ChannelMessagesFilter() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *ChannelMessagesFilter) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_channelMessagesFilterEmpty: - m2 := &TLChannelMessagesFilterEmpty{Data2: &ChannelMessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelMessagesFilter: - m2 := &TLChannelMessagesFilter{Data2: &ChannelMessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter; -func (m *ChannelMessagesFilter) To_ChannelMessagesFilterEmpty() *TLChannelMessagesFilterEmpty { - return &TLChannelMessagesFilterEmpty{ - Data2: m.Data2, - } -} - -// channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter; -func (m *ChannelMessagesFilter) To_ChannelMessagesFilter() *TLChannelMessagesFilter { - return &TLChannelMessagesFilter{ - Data2: m.Data2, - } -} - -// channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter; -func (m *TLChannelMessagesFilterEmpty) To_ChannelMessagesFilter() *ChannelMessagesFilter { - return &ChannelMessagesFilter{ - Constructor: TLConstructor_CRC32_channelMessagesFilterEmpty, - Data2: m.Data2, - } -} - -func NewTLChannelMessagesFilterEmpty() *TLChannelMessagesFilterEmpty { - return &TLChannelMessagesFilterEmpty{Data2: &ChannelMessagesFilter_Data{}} -} - -func (m *TLChannelMessagesFilterEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelMessagesFilterEmpty)) - - return x.buf -} - -func (m *TLChannelMessagesFilterEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelMessagesFilterEmpty)) - - return x.buf -} - -func (m *TLChannelMessagesFilterEmpty) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter; -func (m *TLChannelMessagesFilter) To_ChannelMessagesFilter() *ChannelMessagesFilter { - return &ChannelMessagesFilter{ - Constructor: TLConstructor_CRC32_channelMessagesFilter, - Data2: m.Data2, - } -} - -func (m *TLChannelMessagesFilter) SetExcludeNewMessages(v bool) { m.Data2.ExcludeNewMessages = v } -func (m *TLChannelMessagesFilter) GetExcludeNewMessages() bool { return m.Data2.ExcludeNewMessages } - -func (m *TLChannelMessagesFilter) SetRanges(v []*MessageRange) { m.Data2.Ranges = v } -func (m *TLChannelMessagesFilter) GetRanges() []*MessageRange { return m.Data2.Ranges } - -func NewTLChannelMessagesFilter() *TLChannelMessagesFilter { - return &TLChannelMessagesFilter{Data2: &ChannelMessagesFilter_Data{}} -} - -func (m *TLChannelMessagesFilter) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelMessagesFilter)) - - // flags - var flags uint32 = 0 - if m.GetExcludeNewMessages() == true { - flags |= 1 << 1 - } - x.UInt(flags) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRanges()))) - for _, v := range m.GetRanges() { - x.buf = append(x.buf, (*v).Encode()...) - } - - return x.buf -} - -func (m *TLChannelMessagesFilter) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelMessagesFilter)) - - // flags - var flags uint32 = 0 - if m.GetExcludeNewMessages() == true { - flags |= 1 << 1 - } - x.UInt(flags) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRanges()))) - for _, v := range m.GetRanges() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - - return x.buf -} - -func (m *TLChannelMessagesFilter) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetExcludeNewMessages(true) - } - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*MessageRange, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &MessageRange{} - v3[i].Decode(dbuf) - } - m.SetRanges(v3) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// InputFileLocation <-- -// + TL_InputDocumentFileLocationLayer11 -// + TL_InputFileLocation -// + TL_InputEncryptedFileLocation -// + TL_InputDocumentFileLocation -// + TL_InputSecureFileLocation -// + TL_InputTakeoutFileLocation -// + TL_InputFileLocationLayer86 -// + TL_InputDocumentFileLocationLayer86 -// - -func (m *InputFileLocation) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputDocumentFileLocationLayer11: - t := m.To_InputDocumentFileLocationLayer11() + case TLConstructor_CRC32_secureValueTypeDriverLicense: + t := m.To_SecureValueTypeDriverLicense() return t.Encode() - case TLConstructor_CRC32_inputFileLocation: - t := m.To_InputFileLocation() + case TLConstructor_CRC32_secureValueTypeIdentityCard: + t := m.To_SecureValueTypeIdentityCard() return t.Encode() - case TLConstructor_CRC32_inputEncryptedFileLocation: - t := m.To_InputEncryptedFileLocation() + case TLConstructor_CRC32_secureValueTypeInternalPassport: + t := m.To_SecureValueTypeInternalPassport() return t.Encode() - case TLConstructor_CRC32_inputDocumentFileLocation: - t := m.To_InputDocumentFileLocation() + case TLConstructor_CRC32_secureValueTypeAddress: + t := m.To_SecureValueTypeAddress() return t.Encode() - case TLConstructor_CRC32_inputSecureFileLocation: - t := m.To_InputSecureFileLocation() + case TLConstructor_CRC32_secureValueTypeUtilityBill: + t := m.To_SecureValueTypeUtilityBill() return t.Encode() - case TLConstructor_CRC32_inputTakeoutFileLocation: - t := m.To_InputTakeoutFileLocation() + case TLConstructor_CRC32_secureValueTypeBankStatement: + t := m.To_SecureValueTypeBankStatement() return t.Encode() - case TLConstructor_CRC32_inputFileLocationLayer86: - t := m.To_InputFileLocationLayer86() + case TLConstructor_CRC32_secureValueTypeRentalAgreement: + t := m.To_SecureValueTypeRentalAgreement() return t.Encode() - case TLConstructor_CRC32_inputDocumentFileLocationLayer86: - t := m.To_InputDocumentFileLocationLayer86() + case TLConstructor_CRC32_secureValueTypePassportRegistration: + t := m.To_SecureValueTypePassportRegistration() + return t.Encode() + case TLConstructor_CRC32_secureValueTypeTemporaryRegistration: + t := m.To_SecureValueTypeTemporaryRegistration() + return t.Encode() + case TLConstructor_CRC32_secureValueTypePhone: + t := m.To_SecureValueTypePhone() + return t.Encode() + case TLConstructor_CRC32_secureValueTypeEmail: + t := m.To_SecureValueTypeEmail() return t.Encode() default: @@ -46516,32 +47330,47 @@ func (m *InputFileLocation) Encode() []byte { } } -func (m *InputFileLocation) EncodeToLayer(layer int) []byte { +func (m *SecureValueType) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputDocumentFileLocationLayer11: - t := m.To_InputDocumentFileLocationLayer11() + case TLConstructor_CRC32_secureValueTypePersonalDetails: + t := m.To_SecureValueTypePersonalDetails() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputFileLocation: - t := m.To_InputFileLocation() + case TLConstructor_CRC32_secureValueTypePassport: + t := m.To_SecureValueTypePassport() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputEncryptedFileLocation: - t := m.To_InputEncryptedFileLocation() + case TLConstructor_CRC32_secureValueTypeDriverLicense: + t := m.To_SecureValueTypeDriverLicense() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputDocumentFileLocation: - t := m.To_InputDocumentFileLocation() + case TLConstructor_CRC32_secureValueTypeIdentityCard: + t := m.To_SecureValueTypeIdentityCard() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputSecureFileLocation: - t := m.To_InputSecureFileLocation() + case TLConstructor_CRC32_secureValueTypeInternalPassport: + t := m.To_SecureValueTypeInternalPassport() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputTakeoutFileLocation: - t := m.To_InputTakeoutFileLocation() + case TLConstructor_CRC32_secureValueTypeAddress: + t := m.To_SecureValueTypeAddress() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputFileLocationLayer86: - t := m.To_InputFileLocationLayer86() + case TLConstructor_CRC32_secureValueTypeUtilityBill: + t := m.To_SecureValueTypeUtilityBill() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputDocumentFileLocationLayer86: - t := m.To_InputDocumentFileLocationLayer86() + case TLConstructor_CRC32_secureValueTypeBankStatement: + t := m.To_SecureValueTypeBankStatement() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueTypeRentalAgreement: + t := m.To_SecureValueTypeRentalAgreement() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueTypePassportRegistration: + t := m.To_SecureValueTypePassportRegistration() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueTypeTemporaryRegistration: + t := m.To_SecureValueTypeTemporaryRegistration() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueTypePhone: + t := m.To_SecureValueTypePhone() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureValueTypeEmail: + t := m.To_SecureValueTypeEmail() return t.EncodeToLayer(layer) default: @@ -46550,39 +47379,59 @@ func (m *InputFileLocation) EncodeToLayer(layer int) []byte { } } -func (m *InputFileLocation) Decode(dbuf *DecodeBuf) error { +func (m *SecureValueType) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputDocumentFileLocationLayer11: - m2 := &TLInputDocumentFileLocationLayer11{Data2: &InputFileLocation_Data{}} + case TLConstructor_CRC32_secureValueTypePersonalDetails: + m2 := &TLSecureValueTypePersonalDetails{Data2: &SecureValueType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputFileLocation: - m2 := &TLInputFileLocation{Data2: &InputFileLocation_Data{}} + case TLConstructor_CRC32_secureValueTypePassport: + m2 := &TLSecureValueTypePassport{Data2: &SecureValueType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputEncryptedFileLocation: - m2 := &TLInputEncryptedFileLocation{Data2: &InputFileLocation_Data{}} + case TLConstructor_CRC32_secureValueTypeDriverLicense: + m2 := &TLSecureValueTypeDriverLicense{Data2: &SecureValueType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputDocumentFileLocation: - m2 := &TLInputDocumentFileLocation{Data2: &InputFileLocation_Data{}} + case TLConstructor_CRC32_secureValueTypeIdentityCard: + m2 := &TLSecureValueTypeIdentityCard{Data2: &SecureValueType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputSecureFileLocation: - m2 := &TLInputSecureFileLocation{Data2: &InputFileLocation_Data{}} + case TLConstructor_CRC32_secureValueTypeInternalPassport: + m2 := &TLSecureValueTypeInternalPassport{Data2: &SecureValueType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputTakeoutFileLocation: - m2 := &TLInputTakeoutFileLocation{Data2: &InputFileLocation_Data{}} + case TLConstructor_CRC32_secureValueTypeAddress: + m2 := &TLSecureValueTypeAddress{Data2: &SecureValueType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputFileLocationLayer86: - m2 := &TLInputFileLocationLayer86{Data2: &InputFileLocation_Data{}} + case TLConstructor_CRC32_secureValueTypeUtilityBill: + m2 := &TLSecureValueTypeUtilityBill{Data2: &SecureValueType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputDocumentFileLocationLayer86: - m2 := &TLInputDocumentFileLocationLayer86{Data2: &InputFileLocation_Data{}} + case TLConstructor_CRC32_secureValueTypeBankStatement: + m2 := &TLSecureValueTypeBankStatement{Data2: &SecureValueType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueTypeRentalAgreement: + m2 := &TLSecureValueTypeRentalAgreement{Data2: &SecureValueType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueTypePassportRegistration: + m2 := &TLSecureValueTypePassportRegistration{Data2: &SecureValueType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueTypeTemporaryRegistration: + m2 := &TLSecureValueTypeTemporaryRegistration{Data2: &SecureValueType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueTypePhone: + m2 := &TLSecureValueTypePhone{Data2: &SecureValueType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureValueTypeEmail: + m2 := &TLSecureValueTypeEmail{Data2: &SecureValueType_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -46592,451 +47441,509 @@ func (m *InputFileLocation) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputDocumentFileLocation#4e45abe9 id:long access_hash:long = InputFileLocation; -func (m *InputFileLocation) To_InputDocumentFileLocationLayer11() *TLInputDocumentFileLocationLayer11 { - return &TLInputDocumentFileLocationLayer11{ +// secureValueTypePersonalDetails#9d2a81e3 = SecureValueType; +func (m *SecureValueType) To_SecureValueTypePersonalDetails() *TLSecureValueTypePersonalDetails { + return &TLSecureValueTypePersonalDetails{ Data2: m.Data2, } } -// inputFileLocation#14637196 volume_id:long local_id:int secret:long = InputFileLocation; -func (m *InputFileLocation) To_InputFileLocation() *TLInputFileLocation { - return &TLInputFileLocation{ +// secureValueTypePassport#3dac6a00 = SecureValueType; +func (m *SecureValueType) To_SecureValueTypePassport() *TLSecureValueTypePassport { + return &TLSecureValueTypePassport{ Data2: m.Data2, } } -// inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation; -func (m *InputFileLocation) To_InputEncryptedFileLocation() *TLInputEncryptedFileLocation { - return &TLInputEncryptedFileLocation{ +// secureValueTypeDriverLicense#6e425c4 = SecureValueType; +func (m *SecureValueType) To_SecureValueTypeDriverLicense() *TLSecureValueTypeDriverLicense { + return &TLSecureValueTypeDriverLicense{ Data2: m.Data2, } } -// inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputFileLocation; -func (m *InputFileLocation) To_InputDocumentFileLocation() *TLInputDocumentFileLocation { - return &TLInputDocumentFileLocation{ +// secureValueTypeIdentityCard#a0d0744b = SecureValueType; +func (m *SecureValueType) To_SecureValueTypeIdentityCard() *TLSecureValueTypeIdentityCard { + return &TLSecureValueTypeIdentityCard{ Data2: m.Data2, } } -// inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation; -func (m *InputFileLocation) To_InputSecureFileLocation() *TLInputSecureFileLocation { - return &TLInputSecureFileLocation{ +// secureValueTypeInternalPassport#99a48f23 = SecureValueType; +func (m *SecureValueType) To_SecureValueTypeInternalPassport() *TLSecureValueTypeInternalPassport { + return &TLSecureValueTypeInternalPassport{ Data2: m.Data2, } } -// inputTakeoutFileLocation#29be5899 = InputFileLocation; -func (m *InputFileLocation) To_InputTakeoutFileLocation() *TLInputTakeoutFileLocation { - return &TLInputTakeoutFileLocation{ +// secureValueTypeAddress#cbe31e26 = SecureValueType; +func (m *SecureValueType) To_SecureValueTypeAddress() *TLSecureValueTypeAddress { + return &TLSecureValueTypeAddress{ Data2: m.Data2, } } -// inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation; -func (m *InputFileLocation) To_InputFileLocationLayer86() *TLInputFileLocationLayer86 { - return &TLInputFileLocationLayer86{ +// secureValueTypeUtilityBill#fc36954e = SecureValueType; +func (m *SecureValueType) To_SecureValueTypeUtilityBill() *TLSecureValueTypeUtilityBill { + return &TLSecureValueTypeUtilityBill{ Data2: m.Data2, } } -// inputDocumentFileLocation#196683d9 id:long access_hash:long file_reference:bytes = InputFileLocation; -func (m *InputFileLocation) To_InputDocumentFileLocationLayer86() *TLInputDocumentFileLocationLayer86 { - return &TLInputDocumentFileLocationLayer86{ +// secureValueTypeBankStatement#89137c0d = SecureValueType; +func (m *SecureValueType) To_SecureValueTypeBankStatement() *TLSecureValueTypeBankStatement { + return &TLSecureValueTypeBankStatement{ Data2: m.Data2, } } -// inputDocumentFileLocation#4e45abe9 id:long access_hash:long = InputFileLocation; -func (m *TLInputDocumentFileLocationLayer11) To_InputFileLocation() *InputFileLocation { - return &InputFileLocation{ - Constructor: TLConstructor_CRC32_inputDocumentFileLocationLayer11, - Data2: m.Data2, +// secureValueTypeRentalAgreement#8b883488 = SecureValueType; +func (m *SecureValueType) To_SecureValueTypeRentalAgreement() *TLSecureValueTypeRentalAgreement { + return &TLSecureValueTypeRentalAgreement{ + Data2: m.Data2, } } -func (m *TLInputDocumentFileLocationLayer11) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputDocumentFileLocationLayer11) GetId() int64 { return m.Data2.Id } +// secureValueTypePassportRegistration#99e3806a = SecureValueType; +func (m *SecureValueType) To_SecureValueTypePassportRegistration() *TLSecureValueTypePassportRegistration { + return &TLSecureValueTypePassportRegistration{ + Data2: m.Data2, + } +} -func (m *TLInputDocumentFileLocationLayer11) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputDocumentFileLocationLayer11) GetAccessHash() int64 { return m.Data2.AccessHash } +// secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType; +func (m *SecureValueType) To_SecureValueTypeTemporaryRegistration() *TLSecureValueTypeTemporaryRegistration { + return &TLSecureValueTypeTemporaryRegistration{ + Data2: m.Data2, + } +} -func NewTLInputDocumentFileLocationLayer11() *TLInputDocumentFileLocationLayer11 { - return &TLInputDocumentFileLocationLayer11{Data2: &InputFileLocation_Data{}} +// secureValueTypePhone#b320aadb = SecureValueType; +func (m *SecureValueType) To_SecureValueTypePhone() *TLSecureValueTypePhone { + return &TLSecureValueTypePhone{ + Data2: m.Data2, + } } -func (m *TLInputDocumentFileLocationLayer11) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocationLayer11)) +// secureValueTypeEmail#8e3ca7ee = SecureValueType; +func (m *SecureValueType) To_SecureValueTypeEmail() *TLSecureValueTypeEmail { + return &TLSecureValueTypeEmail{ + Data2: m.Data2, + } +} - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) +// secureValueTypePersonalDetails#9d2a81e3 = SecureValueType; +func (m *TLSecureValueTypePersonalDetails) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypePersonalDetails, + Data2: m.Data2, + } +} - return x.buf +func NewTLSecureValueTypePersonalDetails() *TLSecureValueTypePersonalDetails { + return &TLSecureValueTypePersonalDetails{Data2: &SecureValueType_Data{}} } -func (m *TLInputDocumentFileLocationLayer11) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueTypePersonalDetails) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocationLayer11)) + x.Int(int32(TLConstructor_CRC32_secureValueTypePersonalDetails)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + return x.buf +} + +func (m *TLSecureValueTypePersonalDetails) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypePersonalDetails)) return x.buf } -func (m *TLInputDocumentFileLocationLayer11) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) +func (m *TLSecureValueTypePersonalDetails) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputFileLocation#14637196 volume_id:long local_id:int secret:long = InputFileLocation; -func (m *TLInputFileLocation) To_InputFileLocation() *InputFileLocation { - return &InputFileLocation{ - Constructor: TLConstructor_CRC32_inputFileLocation, +// secureValueTypePassport#3dac6a00 = SecureValueType; +func (m *TLSecureValueTypePassport) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypePassport, Data2: m.Data2, } } -func (m *TLInputFileLocation) SetVolumeId(v int64) { m.Data2.VolumeId = v } -func (m *TLInputFileLocation) GetVolumeId() int64 { return m.Data2.VolumeId } - -func (m *TLInputFileLocation) SetLocalId(v int32) { m.Data2.LocalId = v } -func (m *TLInputFileLocation) GetLocalId() int32 { return m.Data2.LocalId } - -func (m *TLInputFileLocation) SetSecret(v int64) { m.Data2.Secret = v } -func (m *TLInputFileLocation) GetSecret() int64 { return m.Data2.Secret } - -func NewTLInputFileLocation() *TLInputFileLocation { - return &TLInputFileLocation{Data2: &InputFileLocation_Data{}} +func NewTLSecureValueTypePassport() *TLSecureValueTypePassport { + return &TLSecureValueTypePassport{Data2: &SecureValueType_Data{}} } -func (m *TLInputFileLocation) Encode() []byte { +func (m *TLSecureValueTypePassport) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputFileLocation)) - - x.Long(m.GetVolumeId()) - x.Int(m.GetLocalId()) - x.Long(m.GetSecret()) + x.Int(int32(TLConstructor_CRC32_secureValueTypePassport)) return x.buf } -func (m *TLInputFileLocation) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueTypePassport) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputFileLocation)) - - x.Long(m.GetVolumeId()) - x.Int(m.GetLocalId()) - x.Long(m.GetSecret()) + x.Int(int32(TLConstructor_CRC32_secureValueTypePassport)) return x.buf } -func (m *TLInputFileLocation) Decode(dbuf *DecodeBuf) error { - m.SetVolumeId(dbuf.Long()) - m.SetLocalId(dbuf.Int()) - m.SetSecret(dbuf.Long()) +func (m *TLSecureValueTypePassport) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation; -func (m *TLInputEncryptedFileLocation) To_InputFileLocation() *InputFileLocation { - return &InputFileLocation{ - Constructor: TLConstructor_CRC32_inputEncryptedFileLocation, +// secureValueTypeDriverLicense#6e425c4 = SecureValueType; +func (m *TLSecureValueTypeDriverLicense) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypeDriverLicense, Data2: m.Data2, } } -func (m *TLInputEncryptedFileLocation) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputEncryptedFileLocation) GetId() int64 { return m.Data2.Id } - -func (m *TLInputEncryptedFileLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputEncryptedFileLocation) GetAccessHash() int64 { return m.Data2.AccessHash } - -func NewTLInputEncryptedFileLocation() *TLInputEncryptedFileLocation { - return &TLInputEncryptedFileLocation{Data2: &InputFileLocation_Data{}} +func NewTLSecureValueTypeDriverLicense() *TLSecureValueTypeDriverLicense { + return &TLSecureValueTypeDriverLicense{Data2: &SecureValueType_Data{}} } -func (m *TLInputEncryptedFileLocation) Encode() []byte { +func (m *TLSecureValueTypeDriverLicense) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFileLocation)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_secureValueTypeDriverLicense)) return x.buf } -func (m *TLInputEncryptedFileLocation) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueTypeDriverLicense) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputEncryptedFileLocation)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_secureValueTypeDriverLicense)) return x.buf } -func (m *TLInputEncryptedFileLocation) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) +func (m *TLSecureValueTypeDriverLicense) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputFileLocation; -func (m *TLInputDocumentFileLocation) To_InputFileLocation() *InputFileLocation { - return &InputFileLocation{ - Constructor: TLConstructor_CRC32_inputDocumentFileLocation, +// secureValueTypeIdentityCard#a0d0744b = SecureValueType; +func (m *TLSecureValueTypeIdentityCard) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypeIdentityCard, Data2: m.Data2, } } -func (m *TLInputDocumentFileLocation) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputDocumentFileLocation) GetId() int64 { return m.Data2.Id } - -func (m *TLInputDocumentFileLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputDocumentFileLocation) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLInputDocumentFileLocation) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLInputDocumentFileLocation) GetVersion() int32 { return m.Data2.Version } - -func NewTLInputDocumentFileLocation() *TLInputDocumentFileLocation { - return &TLInputDocumentFileLocation{Data2: &InputFileLocation_Data{}} +func NewTLSecureValueTypeIdentityCard() *TLSecureValueTypeIdentityCard { + return &TLSecureValueTypeIdentityCard{Data2: &SecureValueType_Data{}} } -func (m *TLInputDocumentFileLocation) Encode() []byte { +func (m *TLSecureValueTypeIdentityCard) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocation)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetVersion()) + x.Int(int32(TLConstructor_CRC32_secureValueTypeIdentityCard)) return x.buf } -func (m *TLInputDocumentFileLocation) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueTypeIdentityCard) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocation)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetVersion()) + x.Int(int32(TLConstructor_CRC32_secureValueTypeIdentityCard)) return x.buf } -func (m *TLInputDocumentFileLocation) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetVersion(dbuf.Int()) +func (m *TLSecureValueTypeIdentityCard) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation; -func (m *TLInputSecureFileLocation) To_InputFileLocation() *InputFileLocation { - return &InputFileLocation{ - Constructor: TLConstructor_CRC32_inputSecureFileLocation, +// secureValueTypeInternalPassport#99a48f23 = SecureValueType; +func (m *TLSecureValueTypeInternalPassport) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypeInternalPassport, Data2: m.Data2, } } -func (m *TLInputSecureFileLocation) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputSecureFileLocation) GetId() int64 { return m.Data2.Id } +func NewTLSecureValueTypeInternalPassport() *TLSecureValueTypeInternalPassport { + return &TLSecureValueTypeInternalPassport{Data2: &SecureValueType_Data{}} +} -func (m *TLInputSecureFileLocation) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputSecureFileLocation) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLSecureValueTypeInternalPassport) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypeInternalPassport)) -func NewTLInputSecureFileLocation() *TLInputSecureFileLocation { - return &TLInputSecureFileLocation{Data2: &InputFileLocation_Data{}} + return x.buf } -func (m *TLInputSecureFileLocation) Encode() []byte { +func (m *TLSecureValueTypeInternalPassport) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSecureFileLocation)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_secureValueTypeInternalPassport)) return x.buf } -func (m *TLInputSecureFileLocation) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueTypeInternalPassport) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// secureValueTypeAddress#cbe31e26 = SecureValueType; +func (m *TLSecureValueTypeAddress) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypeAddress, + Data2: m.Data2, + } +} + +func NewTLSecureValueTypeAddress() *TLSecureValueTypeAddress { + return &TLSecureValueTypeAddress{Data2: &SecureValueType_Data{}} +} + +func (m *TLSecureValueTypeAddress) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputSecureFileLocation)) + x.Int(int32(TLConstructor_CRC32_secureValueTypeAddress)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + return x.buf +} + +func (m *TLSecureValueTypeAddress) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypeAddress)) return x.buf } -func (m *TLInputSecureFileLocation) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) +func (m *TLSecureValueTypeAddress) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputTakeoutFileLocation#29be5899 = InputFileLocation; -func (m *TLInputTakeoutFileLocation) To_InputFileLocation() *InputFileLocation { - return &InputFileLocation{ - Constructor: TLConstructor_CRC32_inputTakeoutFileLocation, +// secureValueTypeUtilityBill#fc36954e = SecureValueType; +func (m *TLSecureValueTypeUtilityBill) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypeUtilityBill, Data2: m.Data2, } } -func NewTLInputTakeoutFileLocation() *TLInputTakeoutFileLocation { - return &TLInputTakeoutFileLocation{Data2: &InputFileLocation_Data{}} +func NewTLSecureValueTypeUtilityBill() *TLSecureValueTypeUtilityBill { + return &TLSecureValueTypeUtilityBill{Data2: &SecureValueType_Data{}} } -func (m *TLInputTakeoutFileLocation) Encode() []byte { +func (m *TLSecureValueTypeUtilityBill) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputTakeoutFileLocation)) + x.Int(int32(TLConstructor_CRC32_secureValueTypeUtilityBill)) return x.buf } -func (m *TLInputTakeoutFileLocation) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueTypeUtilityBill) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputTakeoutFileLocation)) + x.Int(int32(TLConstructor_CRC32_secureValueTypeUtilityBill)) return x.buf } -func (m *TLInputTakeoutFileLocation) Decode(dbuf *DecodeBuf) error { +func (m *TLSecureValueTypeUtilityBill) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation; -func (m *TLInputFileLocationLayer86) To_InputFileLocation() *InputFileLocation { - return &InputFileLocation{ - Constructor: TLConstructor_CRC32_inputFileLocationLayer86, +// secureValueTypeBankStatement#89137c0d = SecureValueType; +func (m *TLSecureValueTypeBankStatement) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypeBankStatement, Data2: m.Data2, } } -func (m *TLInputFileLocationLayer86) SetVolumeId(v int64) { m.Data2.VolumeId = v } -func (m *TLInputFileLocationLayer86) GetVolumeId() int64 { return m.Data2.VolumeId } +func NewTLSecureValueTypeBankStatement() *TLSecureValueTypeBankStatement { + return &TLSecureValueTypeBankStatement{Data2: &SecureValueType_Data{}} +} -func (m *TLInputFileLocationLayer86) SetLocalId(v int32) { m.Data2.LocalId = v } -func (m *TLInputFileLocationLayer86) GetLocalId() int32 { return m.Data2.LocalId } +func (m *TLSecureValueTypeBankStatement) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypeBankStatement)) -func (m *TLInputFileLocationLayer86) SetSecret(v int64) { m.Data2.Secret = v } -func (m *TLInputFileLocationLayer86) GetSecret() int64 { return m.Data2.Secret } + return x.buf +} -func (m *TLInputFileLocationLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } -func (m *TLInputFileLocationLayer86) GetFileReference() []byte { return m.Data2.FileReference } +func (m *TLSecureValueTypeBankStatement) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypeBankStatement)) -func NewTLInputFileLocationLayer86() *TLInputFileLocationLayer86 { - return &TLInputFileLocationLayer86{Data2: &InputFileLocation_Data{}} + return x.buf } -func (m *TLInputFileLocationLayer86) Encode() []byte { +func (m *TLSecureValueTypeBankStatement) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// secureValueTypeRentalAgreement#8b883488 = SecureValueType; +func (m *TLSecureValueTypeRentalAgreement) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypeRentalAgreement, + Data2: m.Data2, + } +} + +func NewTLSecureValueTypeRentalAgreement() *TLSecureValueTypeRentalAgreement { + return &TLSecureValueTypeRentalAgreement{Data2: &SecureValueType_Data{}} +} + +func (m *TLSecureValueTypeRentalAgreement) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputFileLocationLayer86)) + x.Int(int32(TLConstructor_CRC32_secureValueTypeRentalAgreement)) - x.Long(m.GetVolumeId()) - x.Int(m.GetLocalId()) - x.Long(m.GetSecret()) - x.StringBytes(m.GetFileReference()) + return x.buf +} + +func (m *TLSecureValueTypeRentalAgreement) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypeRentalAgreement)) return x.buf } -func (m *TLInputFileLocationLayer86) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueTypeRentalAgreement) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// secureValueTypePassportRegistration#99e3806a = SecureValueType; +func (m *TLSecureValueTypePassportRegistration) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypePassportRegistration, + Data2: m.Data2, + } +} + +func NewTLSecureValueTypePassportRegistration() *TLSecureValueTypePassportRegistration { + return &TLSecureValueTypePassportRegistration{Data2: &SecureValueType_Data{}} +} + +func (m *TLSecureValueTypePassportRegistration) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputFileLocationLayer86)) + x.Int(int32(TLConstructor_CRC32_secureValueTypePassportRegistration)) - x.Long(m.GetVolumeId()) - x.Int(m.GetLocalId()) - x.Long(m.GetSecret()) - x.StringBytes(m.GetFileReference()) + return x.buf +} + +func (m *TLSecureValueTypePassportRegistration) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypePassportRegistration)) return x.buf } -func (m *TLInputFileLocationLayer86) Decode(dbuf *DecodeBuf) error { - m.SetVolumeId(dbuf.Long()) - m.SetLocalId(dbuf.Int()) - m.SetSecret(dbuf.Long()) - m.SetFileReference(dbuf.StringBytes()) +func (m *TLSecureValueTypePassportRegistration) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputDocumentFileLocation#196683d9 id:long access_hash:long file_reference:bytes = InputFileLocation; -func (m *TLInputDocumentFileLocationLayer86) To_InputFileLocation() *InputFileLocation { - return &InputFileLocation{ - Constructor: TLConstructor_CRC32_inputDocumentFileLocationLayer86, +// secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType; +func (m *TLSecureValueTypeTemporaryRegistration) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypeTemporaryRegistration, Data2: m.Data2, } } -func (m *TLInputDocumentFileLocationLayer86) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputDocumentFileLocationLayer86) GetId() int64 { return m.Data2.Id } +func NewTLSecureValueTypeTemporaryRegistration() *TLSecureValueTypeTemporaryRegistration { + return &TLSecureValueTypeTemporaryRegistration{Data2: &SecureValueType_Data{}} +} -func (m *TLInputDocumentFileLocationLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputDocumentFileLocationLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLSecureValueTypeTemporaryRegistration) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypeTemporaryRegistration)) -func (m *TLInputDocumentFileLocationLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } -func (m *TLInputDocumentFileLocationLayer86) GetFileReference() []byte { return m.Data2.FileReference } + return x.buf +} -func NewTLInputDocumentFileLocationLayer86() *TLInputDocumentFileLocationLayer86 { - return &TLInputDocumentFileLocationLayer86{Data2: &InputFileLocation_Data{}} +func (m *TLSecureValueTypeTemporaryRegistration) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypeTemporaryRegistration)) + + return x.buf } -func (m *TLInputDocumentFileLocationLayer86) Encode() []byte { +func (m *TLSecureValueTypeTemporaryRegistration) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// secureValueTypePhone#b320aadb = SecureValueType; +func (m *TLSecureValueTypePhone) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypePhone, + Data2: m.Data2, + } +} + +func NewTLSecureValueTypePhone() *TLSecureValueTypePhone { + return &TLSecureValueTypePhone{Data2: &SecureValueType_Data{}} +} + +func (m *TLSecureValueTypePhone) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocationLayer86)) + x.Int(int32(TLConstructor_CRC32_secureValueTypePhone)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) + return x.buf +} + +func (m *TLSecureValueTypePhone) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypePhone)) return x.buf } -func (m *TLInputDocumentFileLocationLayer86) EncodeToLayer(layer int) []byte { +func (m *TLSecureValueTypePhone) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// secureValueTypeEmail#8e3ca7ee = SecureValueType; +func (m *TLSecureValueTypeEmail) To_SecureValueType() *SecureValueType { + return &SecureValueType{ + Constructor: TLConstructor_CRC32_secureValueTypeEmail, + Data2: m.Data2, + } +} + +func NewTLSecureValueTypeEmail() *TLSecureValueTypeEmail { + return &TLSecureValueTypeEmail{Data2: &SecureValueType_Data{}} +} + +func (m *TLSecureValueTypeEmail) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentFileLocationLayer86)) + x.Int(int32(TLConstructor_CRC32_secureValueTypeEmail)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) + return x.buf +} + +func (m *TLSecureValueTypeEmail) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_secureValueTypeEmail)) return x.buf } -func (m *TLInputDocumentFileLocationLayer86) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetFileReference(dbuf.StringBytes()) +func (m *TLSecureValueTypeEmail) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ChatParticipants <-- -// + TL_ChatParticipantsForbidden -// + TL_ChatParticipants +// Account_PasswordSettings <-- +// + TL_AccountPasswordSettings // -func (m *ChatParticipants) Encode() []byte { +func (m *Account_PasswordSettings) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_chatParticipantsForbidden: - t := m.To_ChatParticipantsForbidden() - return t.Encode() - case TLConstructor_CRC32_chatParticipants: - t := m.To_ChatParticipants() + case TLConstructor_CRC32_account_passwordSettings: + t := m.To_AccountPasswordSettings() return t.Encode() default: @@ -47045,14 +47952,11 @@ func (m *ChatParticipants) Encode() []byte { } } -func (m *ChatParticipants) EncodeToLayer(layer int) []byte { +func (m *Account_PasswordSettings) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_chatParticipantsForbidden: - t := m.To_ChatParticipantsForbidden() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_chatParticipants: - t := m.To_ChatParticipants() + case TLConstructor_CRC32_account_passwordSettings: + t := m.To_AccountPasswordSettings() return t.EncodeToLayer(layer) default: @@ -47061,15 +47965,11 @@ func (m *ChatParticipants) EncodeToLayer(layer int) []byte { } } -func (m *ChatParticipants) Decode(dbuf *DecodeBuf) error { +func (m *Account_PasswordSettings) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_chatParticipantsForbidden: - m2 := &TLChatParticipantsForbidden{Data2: &ChatParticipants_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_chatParticipants: - m2 := &TLChatParticipants{Data2: &ChatParticipants_Data{}} + case TLConstructor_CRC32_account_passwordSettings: + m2 := &TLAccountPasswordSettings{Data2: &Account_PasswordSettings_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -47079,181 +47979,111 @@ func (m *ChatParticipants) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants; -func (m *ChatParticipants) To_ChatParticipantsForbidden() *TLChatParticipantsForbidden { - return &TLChatParticipantsForbidden{ - Data2: m.Data2, - } -} - -// chatParticipants#3f460fed chat_id:int participants:Vector version:int = ChatParticipants; -func (m *ChatParticipants) To_ChatParticipants() *TLChatParticipants { - return &TLChatParticipants{ +// account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings; +func (m *Account_PasswordSettings) To_AccountPasswordSettings() *TLAccountPasswordSettings { + return &TLAccountPasswordSettings{ Data2: m.Data2, } } -// chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants; -func (m *TLChatParticipantsForbidden) To_ChatParticipants() *ChatParticipants { - return &ChatParticipants{ - Constructor: TLConstructor_CRC32_chatParticipantsForbidden, +// account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings; +func (m *TLAccountPasswordSettings) To_Account_PasswordSettings() *Account_PasswordSettings { + return &Account_PasswordSettings{ + Constructor: TLConstructor_CRC32_account_passwordSettings, Data2: m.Data2, } } -func (m *TLChatParticipantsForbidden) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLChatParticipantsForbidden) GetChatId() int32 { return m.Data2.ChatId } +func (m *TLAccountPasswordSettings) SetEmail(v string) { m.Data2.Email = v } +func (m *TLAccountPasswordSettings) GetEmail() string { return m.Data2.Email } -func (m *TLChatParticipantsForbidden) SetSelfParticipant(v *ChatParticipant) { - m.Data2.SelfParticipant = v +func (m *TLAccountPasswordSettings) SetSecureSettings(v *SecureSecretSettings) { + m.Data2.SecureSettings = v } -func (m *TLChatParticipantsForbidden) GetSelfParticipant() *ChatParticipant { - return m.Data2.SelfParticipant +func (m *TLAccountPasswordSettings) GetSecureSettings() *SecureSecretSettings { + return m.Data2.SecureSettings } -func NewTLChatParticipantsForbidden() *TLChatParticipantsForbidden { - return &TLChatParticipantsForbidden{Data2: &ChatParticipants_Data{}} +func NewTLAccountPasswordSettings() *TLAccountPasswordSettings { + return &TLAccountPasswordSettings{Data2: &Account_PasswordSettings_Data{}} } -func (m *TLChatParticipantsForbidden) Encode() []byte { +func (m *TLAccountPasswordSettings) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipantsForbidden)) + x.Int(int32(TLConstructor_CRC32_account_passwordSettings)) // flags var flags uint32 = 0 - if m.GetSelfParticipant() != nil { + if m.GetEmail() != "" { flags |= 1 << 0 } + if m.GetSecureSettings() != nil { + flags |= 1 << 1 + } x.UInt(flags) - x.Int(m.GetChatId()) - if m.GetSelfParticipant() != nil { - x.Bytes(m.GetSelfParticipant().Encode()) + if m.GetEmail() != "" { + x.String(m.GetEmail()) + } + if m.GetSecureSettings() != nil { + x.Bytes(m.GetSecureSettings().Encode()) } return x.buf } -func (m *TLChatParticipantsForbidden) EncodeToLayer(layer int) []byte { +func (m *TLAccountPasswordSettings) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipantsForbidden)) + x.Int(int32(TLConstructor_CRC32_account_passwordSettings)) // flags var flags uint32 = 0 - if m.GetSelfParticipant() != nil { + if m.GetEmail() != "" { flags |= 1 << 0 } + if m.GetSecureSettings() != nil { + flags |= 1 << 1 + } x.UInt(flags) - x.Int(m.GetChatId()) - if m.GetSelfParticipant() != nil { - x.Bytes(m.GetSelfParticipant().EncodeToLayer(layer)) + if m.GetEmail() != "" { + x.String(m.GetEmail()) + } + if m.GetSecureSettings() != nil { + x.Bytes(m.GetSecureSettings().EncodeToLayer(layer)) } return x.buf } -func (m *TLChatParticipantsForbidden) Decode(dbuf *DecodeBuf) error { +func (m *TLAccountPasswordSettings) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m.SetChatId(dbuf.Int()) if (flags & (1 << 0)) != 0 { - m3 := &ChatParticipant{} - m3.Decode(dbuf) - m.SetSelfParticipant(m3) - } - - return dbuf.err -} - -// chatParticipants#3f460fed chat_id:int participants:Vector version:int = ChatParticipants; -func (m *TLChatParticipants) To_ChatParticipants() *ChatParticipants { - return &ChatParticipants{ - Constructor: TLConstructor_CRC32_chatParticipants, - Data2: m.Data2, - } -} - -func (m *TLChatParticipants) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLChatParticipants) GetChatId() int32 { return m.Data2.ChatId } - -func (m *TLChatParticipants) SetParticipants(v []*ChatParticipant) { m.Data2.Participants = v } -func (m *TLChatParticipants) GetParticipants() []*ChatParticipant { return m.Data2.Participants } - -func (m *TLChatParticipants) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLChatParticipants) GetVersion() int32 { return m.Data2.Version } - -func NewTLChatParticipants() *TLChatParticipants { - return &TLChatParticipants{Data2: &ChatParticipants_Data{}} -} - -func (m *TLChatParticipants) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipants)) - - x.Int(m.GetChatId()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParticipants()))) - for _, v := range m.GetParticipants() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(m.GetVersion()) - - return x.buf -} - -func (m *TLChatParticipants) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatParticipants)) - - x.Int(m.GetChatId()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParticipants()))) - for _, v := range m.GetParticipants() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(m.GetVersion()) - - return x.buf -} - -func (m *TLChatParticipants) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err + m.SetEmail(dbuf.String()) } - l2 := dbuf.Int() - v2 := make([]*ChatParticipant, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &ChatParticipant{} - v2[i].Decode(dbuf) + if (flags & (1 << 1)) != 0 { + m3 := &SecureSecretSettings{} + m3.Decode(dbuf) + m.SetSecureSettings(m3) } - m.SetParticipants(v2) - - m.SetVersion(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputDocument <-- -// + TL_InputDocumentEmpty -// + TL_InputDocument -// + TL_InputDocumentLayer86 +// Channels_ChannelParticipants <-- +// + TL_ChannelsChannelParticipants +// + TL_ChannelsChannelParticipantsNotModified // -func (m *InputDocument) Encode() []byte { +func (m *Channels_ChannelParticipants) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputDocumentEmpty: - t := m.To_InputDocumentEmpty() - return t.Encode() - case TLConstructor_CRC32_inputDocument: - t := m.To_InputDocument() + case TLConstructor_CRC32_channels_channelParticipants: + t := m.To_ChannelsChannelParticipants() return t.Encode() - case TLConstructor_CRC32_inputDocumentLayer86: - t := m.To_InputDocumentLayer86() + case TLConstructor_CRC32_channels_channelParticipantsNotModified: + t := m.To_ChannelsChannelParticipantsNotModified() return t.Encode() default: @@ -47262,17 +48092,14 @@ func (m *InputDocument) Encode() []byte { } } -func (m *InputDocument) EncodeToLayer(layer int) []byte { +func (m *Channels_ChannelParticipants) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputDocumentEmpty: - t := m.To_InputDocumentEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputDocument: - t := m.To_InputDocument() + case TLConstructor_CRC32_channels_channelParticipants: + t := m.To_ChannelsChannelParticipants() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputDocumentLayer86: - t := m.To_InputDocumentLayer86() + case TLConstructor_CRC32_channels_channelParticipantsNotModified: + t := m.To_ChannelsChannelParticipantsNotModified() return t.EncodeToLayer(layer) default: @@ -47281,19 +48108,15 @@ func (m *InputDocument) EncodeToLayer(layer int) []byte { } } -func (m *InputDocument) Decode(dbuf *DecodeBuf) error { +func (m *Channels_ChannelParticipants) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputDocumentEmpty: - m2 := &TLInputDocumentEmpty{Data2: &InputDocument_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputDocument: - m2 := &TLInputDocument{Data2: &InputDocument_Data{}} + case TLConstructor_CRC32_channels_channelParticipants: + m2 := &TLChannelsChannelParticipants{Data2: &Channels_ChannelParticipants_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputDocumentLayer86: - m2 := &TLInputDocumentLayer86{Data2: &InputDocument_Data{}} + case TLConstructor_CRC32_channels_channelParticipantsNotModified: + m2 := &TLChannelsChannelParticipantsNotModified{Data2: &Channels_ChannelParticipants_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -47303,183 +48126,154 @@ func (m *InputDocument) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputDocumentEmpty#72f0eaae = InputDocument; -func (m *InputDocument) To_InputDocumentEmpty() *TLInputDocumentEmpty { - return &TLInputDocumentEmpty{ - Data2: m.Data2, - } -} - -// inputDocument#18798952 id:long access_hash:long = InputDocument; -func (m *InputDocument) To_InputDocument() *TLInputDocument { - return &TLInputDocument{ +// channels.channelParticipants#f56ee2a8 count:int participants:Vector users:Vector = channels.ChannelParticipants; +func (m *Channels_ChannelParticipants) To_ChannelsChannelParticipants() *TLChannelsChannelParticipants { + return &TLChannelsChannelParticipants{ Data2: m.Data2, } } -// inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument; -func (m *InputDocument) To_InputDocumentLayer86() *TLInputDocumentLayer86 { - return &TLInputDocumentLayer86{ +// channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants; +func (m *Channels_ChannelParticipants) To_ChannelsChannelParticipantsNotModified() *TLChannelsChannelParticipantsNotModified { + return &TLChannelsChannelParticipantsNotModified{ Data2: m.Data2, } } -// inputDocumentEmpty#72f0eaae = InputDocument; -func (m *TLInputDocumentEmpty) To_InputDocument() *InputDocument { - return &InputDocument{ - Constructor: TLConstructor_CRC32_inputDocumentEmpty, +// channels.channelParticipants#f56ee2a8 count:int participants:Vector users:Vector = channels.ChannelParticipants; +func (m *TLChannelsChannelParticipants) To_Channels_ChannelParticipants() *Channels_ChannelParticipants { + return &Channels_ChannelParticipants{ + Constructor: TLConstructor_CRC32_channels_channelParticipants, Data2: m.Data2, } } -func NewTLInputDocumentEmpty() *TLInputDocumentEmpty { - return &TLInputDocumentEmpty{Data2: &InputDocument_Data{}} -} - -func (m *TLInputDocumentEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentEmpty)) - - return x.buf -} - -func (m *TLInputDocumentEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentEmpty)) - - return x.buf -} - -func (m *TLInputDocumentEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLChannelsChannelParticipants) SetCount(v int32) { m.Data2.Count = v } +func (m *TLChannelsChannelParticipants) GetCount() int32 { return m.Data2.Count } - return dbuf.err +func (m *TLChannelsChannelParticipants) SetParticipants(v []*ChannelParticipant) { + m.Data2.Participants = v } - -// inputDocument#18798952 id:long access_hash:long = InputDocument; -func (m *TLInputDocument) To_InputDocument() *InputDocument { - return &InputDocument{ - Constructor: TLConstructor_CRC32_inputDocument, - Data2: m.Data2, - } +func (m *TLChannelsChannelParticipants) GetParticipants() []*ChannelParticipant { + return m.Data2.Participants } -func (m *TLInputDocument) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputDocument) GetId() int64 { return m.Data2.Id } - -func (m *TLInputDocument) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputDocument) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLChannelsChannelParticipants) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLChannelsChannelParticipants) GetUsers() []*User { return m.Data2.Users } -func NewTLInputDocument() *TLInputDocument { - return &TLInputDocument{Data2: &InputDocument_Data{}} +func NewTLChannelsChannelParticipants() *TLChannelsChannelParticipants { + return &TLChannelsChannelParticipants{Data2: &Channels_ChannelParticipants_Data{}} } -func (m *TLInputDocument) Encode() []byte { +func (m *TLChannelsChannelParticipants) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocument)) + x.Int(int32(TLConstructor_CRC32_channels_channelParticipants)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParticipants()))) + for _, v := range m.GetParticipants() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLInputDocument) EncodeToLayer(layer int) []byte { +func (m *TLChannelsChannelParticipants) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocument)) + x.Int(int32(TLConstructor_CRC32_channels_channelParticipants)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParticipants()))) + for _, v := range m.GetParticipants() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLInputDocument) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) +func (m *TLChannelsChannelParticipants) Decode(dbuf *DecodeBuf) error { + m.SetCount(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*ChannelParticipant, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &ChannelParticipant{} + v2[i].Decode(dbuf) + } + m.SetParticipants(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*User, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &User{} + v3[i].Decode(dbuf) + } + m.SetUsers(v3) return dbuf.err } -// inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument; -func (m *TLInputDocumentLayer86) To_InputDocument() *InputDocument { - return &InputDocument{ - Constructor: TLConstructor_CRC32_inputDocumentLayer86, +// channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants; +func (m *TLChannelsChannelParticipantsNotModified) To_Channels_ChannelParticipants() *Channels_ChannelParticipants { + return &Channels_ChannelParticipants{ + Constructor: TLConstructor_CRC32_channels_channelParticipantsNotModified, Data2: m.Data2, } } -func (m *TLInputDocumentLayer86) SetId(v int64) { m.Data2.Id = v } -func (m *TLInputDocumentLayer86) GetId() int64 { return m.Data2.Id } - -func (m *TLInputDocumentLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputDocumentLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLInputDocumentLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } -func (m *TLInputDocumentLayer86) GetFileReference() []byte { return m.Data2.FileReference } - -func NewTLInputDocumentLayer86() *TLInputDocumentLayer86 { - return &TLInputDocumentLayer86{Data2: &InputDocument_Data{}} +func NewTLChannelsChannelParticipantsNotModified() *TLChannelsChannelParticipantsNotModified { + return &TLChannelsChannelParticipantsNotModified{Data2: &Channels_ChannelParticipants_Data{}} } -func (m *TLInputDocumentLayer86) Encode() []byte { +func (m *TLChannelsChannelParticipantsNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentLayer86)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) + x.Int(int32(TLConstructor_CRC32_channels_channelParticipantsNotModified)) return x.buf } -func (m *TLInputDocumentLayer86) EncodeToLayer(layer int) []byte { +func (m *TLChannelsChannelParticipantsNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputDocumentLayer86)) - - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) + x.Int(int32(TLConstructor_CRC32_channels_channelParticipantsNotModified)) return x.buf } -func (m *TLInputDocumentLayer86) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetFileReference(dbuf.StringBytes()) +func (m *TLChannelsChannelParticipantsNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputPrivacyRule <-- -// + TL_InputPrivacyValueAllowContacts -// + TL_InputPrivacyValueAllowAll -// + TL_InputPrivacyValueAllowUsers -// + TL_InputPrivacyValueDisallowContacts -// + TL_InputPrivacyValueDisallowAll -// + TL_InputPrivacyValueDisallowUsers +// HighScore <-- +// + TL_HighScore // -func (m *InputPrivacyRule) Encode() []byte { +func (m *HighScore) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputPrivacyValueAllowContacts: - t := m.To_InputPrivacyValueAllowContacts() - return t.Encode() - case TLConstructor_CRC32_inputPrivacyValueAllowAll: - t := m.To_InputPrivacyValueAllowAll() - return t.Encode() - case TLConstructor_CRC32_inputPrivacyValueAllowUsers: - t := m.To_InputPrivacyValueAllowUsers() - return t.Encode() - case TLConstructor_CRC32_inputPrivacyValueDisallowContacts: - t := m.To_InputPrivacyValueDisallowContacts() - return t.Encode() - case TLConstructor_CRC32_inputPrivacyValueDisallowAll: - t := m.To_InputPrivacyValueDisallowAll() - return t.Encode() - case TLConstructor_CRC32_inputPrivacyValueDisallowUsers: - t := m.To_InputPrivacyValueDisallowUsers() + case TLConstructor_CRC32_highScore: + t := m.To_HighScore() return t.Encode() default: @@ -47488,26 +48282,11 @@ func (m *InputPrivacyRule) Encode() []byte { } } -func (m *InputPrivacyRule) EncodeToLayer(layer int) []byte { +func (m *HighScore) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputPrivacyValueAllowContacts: - t := m.To_InputPrivacyValueAllowContacts() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPrivacyValueAllowAll: - t := m.To_InputPrivacyValueAllowAll() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPrivacyValueAllowUsers: - t := m.To_InputPrivacyValueAllowUsers() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPrivacyValueDisallowContacts: - t := m.To_InputPrivacyValueDisallowContacts() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPrivacyValueDisallowAll: - t := m.To_InputPrivacyValueDisallowAll() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPrivacyValueDisallowUsers: - t := m.To_InputPrivacyValueDisallowUsers() + case TLConstructor_CRC32_highScore: + t := m.To_HighScore() return t.EncodeToLayer(layer) default: @@ -47516,31 +48295,11 @@ func (m *InputPrivacyRule) EncodeToLayer(layer int) []byte { } } -func (m *InputPrivacyRule) Decode(dbuf *DecodeBuf) error { +func (m *HighScore) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputPrivacyValueAllowContacts: - m2 := &TLInputPrivacyValueAllowContacts{Data2: &InputPrivacyRule_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPrivacyValueAllowAll: - m2 := &TLInputPrivacyValueAllowAll{Data2: &InputPrivacyRule_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPrivacyValueAllowUsers: - m2 := &TLInputPrivacyValueAllowUsers{Data2: &InputPrivacyRule_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPrivacyValueDisallowContacts: - m2 := &TLInputPrivacyValueDisallowContacts{Data2: &InputPrivacyRule_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPrivacyValueDisallowAll: - m2 := &TLInputPrivacyValueDisallowAll{Data2: &InputPrivacyRule_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPrivacyValueDisallowUsers: - m2 := &TLInputPrivacyValueDisallowUsers{Data2: &InputPrivacyRule_Data{}} + case TLConstructor_CRC32_highScore: + m2 := &TLHighScore{Data2: &HighScore_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -47550,301 +48309,397 @@ func (m *InputPrivacyRule) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; -func (m *InputPrivacyRule) To_InputPrivacyValueAllowContacts() *TLInputPrivacyValueAllowContacts { - return &TLInputPrivacyValueAllowContacts{ - Data2: m.Data2, - } -} - -// inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; -func (m *InputPrivacyRule) To_InputPrivacyValueAllowAll() *TLInputPrivacyValueAllowAll { - return &TLInputPrivacyValueAllowAll{ - Data2: m.Data2, - } -} - -// inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; -func (m *InputPrivacyRule) To_InputPrivacyValueAllowUsers() *TLInputPrivacyValueAllowUsers { - return &TLInputPrivacyValueAllowUsers{ +// highScore#58fffcd0 pos:int user_id:int score:int = HighScore; +func (m *HighScore) To_HighScore() *TLHighScore { + return &TLHighScore{ Data2: m.Data2, } } -// inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule; -func (m *InputPrivacyRule) To_InputPrivacyValueDisallowContacts() *TLInputPrivacyValueDisallowContacts { - return &TLInputPrivacyValueDisallowContacts{ - Data2: m.Data2, +// highScore#58fffcd0 pos:int user_id:int score:int = HighScore; +func (m *TLHighScore) To_HighScore() *HighScore { + return &HighScore{ + Constructor: TLConstructor_CRC32_highScore, + Data2: m.Data2, } } -// inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule; -func (m *InputPrivacyRule) To_InputPrivacyValueDisallowAll() *TLInputPrivacyValueDisallowAll { - return &TLInputPrivacyValueDisallowAll{ - Data2: m.Data2, - } -} +func (m *TLHighScore) SetPos(v int32) { m.Data2.Pos = v } +func (m *TLHighScore) GetPos() int32 { return m.Data2.Pos } -// inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule; -func (m *InputPrivacyRule) To_InputPrivacyValueDisallowUsers() *TLInputPrivacyValueDisallowUsers { - return &TLInputPrivacyValueDisallowUsers{ - Data2: m.Data2, - } -} +func (m *TLHighScore) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLHighScore) GetUserId() int32 { return m.Data2.UserId } -// inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; -func (m *TLInputPrivacyValueAllowContacts) To_InputPrivacyRule() *InputPrivacyRule { - return &InputPrivacyRule{ - Constructor: TLConstructor_CRC32_inputPrivacyValueAllowContacts, - Data2: m.Data2, - } -} +func (m *TLHighScore) SetScore(v int32) { m.Data2.Score = v } +func (m *TLHighScore) GetScore() int32 { return m.Data2.Score } -func NewTLInputPrivacyValueAllowContacts() *TLInputPrivacyValueAllowContacts { - return &TLInputPrivacyValueAllowContacts{Data2: &InputPrivacyRule_Data{}} +func NewTLHighScore() *TLHighScore { + return &TLHighScore{Data2: &HighScore_Data{}} } -func (m *TLInputPrivacyValueAllowContacts) Encode() []byte { +func (m *TLHighScore) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowContacts)) + x.Int(int32(TLConstructor_CRC32_highScore)) + + x.Int(m.GetPos()) + x.Int(m.GetUserId()) + x.Int(m.GetScore()) return x.buf } -func (m *TLInputPrivacyValueAllowContacts) EncodeToLayer(layer int) []byte { +func (m *TLHighScore) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowContacts)) + x.Int(int32(TLConstructor_CRC32_highScore)) + + x.Int(m.GetPos()) + x.Int(m.GetUserId()) + x.Int(m.GetScore()) return x.buf } -func (m *TLInputPrivacyValueAllowContacts) Decode(dbuf *DecodeBuf) error { +func (m *TLHighScore) Decode(dbuf *DecodeBuf) error { + m.SetPos(dbuf.Int()) + m.SetUserId(dbuf.Int()) + m.SetScore(dbuf.Int()) return dbuf.err } -// inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; -func (m *TLInputPrivacyValueAllowAll) To_InputPrivacyRule() *InputPrivacyRule { - return &InputPrivacyRule{ - Constructor: TLConstructor_CRC32_inputPrivacyValueAllowAll, - Data2: m.Data2, - } -} - -func NewTLInputPrivacyValueAllowAll() *TLInputPrivacyValueAllowAll { - return &TLInputPrivacyValueAllowAll{Data2: &InputPrivacyRule_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// InputStickerSetItem <-- +// + TL_InputStickerSetItem +// -func (m *TLInputPrivacyValueAllowAll) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowAll)) +func (m *InputStickerSetItem) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputStickerSetItem: + t := m.To_InputStickerSetItem() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputPrivacyValueAllowAll) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowAll)) +func (m *InputStickerSetItem) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputStickerSetItem: + t := m.To_InputStickerSetItem() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputPrivacyValueAllowAll) Decode(dbuf *DecodeBuf) error { +func (m *InputStickerSetItem) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputStickerSetItem: + m2 := &TLInputStickerSetItem{Data2: &InputStickerSetItem_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; -func (m *TLInputPrivacyValueAllowUsers) To_InputPrivacyRule() *InputPrivacyRule { - return &InputPrivacyRule{ - Constructor: TLConstructor_CRC32_inputPrivacyValueAllowUsers, +// inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem; +func (m *InputStickerSetItem) To_InputStickerSetItem() *TLInputStickerSetItem { + return &TLInputStickerSetItem{ + Data2: m.Data2, + } +} + +// inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem; +func (m *TLInputStickerSetItem) To_InputStickerSetItem() *InputStickerSetItem { + return &InputStickerSetItem{ + Constructor: TLConstructor_CRC32_inputStickerSetItem, Data2: m.Data2, } } -func (m *TLInputPrivacyValueAllowUsers) SetUsers(v []*InputUser) { m.Data2.Users = v } -func (m *TLInputPrivacyValueAllowUsers) GetUsers() []*InputUser { return m.Data2.Users } +func (m *TLInputStickerSetItem) SetDocument(v *InputDocument) { m.Data2.Document = v } +func (m *TLInputStickerSetItem) GetDocument() *InputDocument { return m.Data2.Document } -func NewTLInputPrivacyValueAllowUsers() *TLInputPrivacyValueAllowUsers { - return &TLInputPrivacyValueAllowUsers{Data2: &InputPrivacyRule_Data{}} +func (m *TLInputStickerSetItem) SetEmoji(v string) { m.Data2.Emoji = v } +func (m *TLInputStickerSetItem) GetEmoji() string { return m.Data2.Emoji } + +func (m *TLInputStickerSetItem) SetMaskCoords(v *MaskCoords) { m.Data2.MaskCoords = v } +func (m *TLInputStickerSetItem) GetMaskCoords() *MaskCoords { return m.Data2.MaskCoords } + +func NewTLInputStickerSetItem() *TLInputStickerSetItem { + return &TLInputStickerSetItem{Data2: &InputStickerSetItem_Data{}} } -func (m *TLInputPrivacyValueAllowUsers) Encode() []byte { +func (m *TLInputStickerSetItem) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowUsers)) + x.Int(int32(TLConstructor_CRC32_inputStickerSetItem)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetMaskCoords() != nil { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Bytes(m.GetDocument().Encode()) + x.String(m.GetEmoji()) + if m.GetMaskCoords() != nil { + x.Bytes(m.GetMaskCoords().Encode()) } return x.buf } -func (m *TLInputPrivacyValueAllowUsers) EncodeToLayer(layer int) []byte { +func (m *TLInputStickerSetItem) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueAllowUsers)) + x.Int(int32(TLConstructor_CRC32_inputStickerSetItem)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetMaskCoords() != nil { + flags |= 1 << 0 } + x.UInt(flags) - return x.buf -} - -func (m *TLInputPrivacyValueAllowUsers) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*InputUser, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &InputUser{} - v1[i].Decode(dbuf) + x.Bytes(m.GetDocument().EncodeToLayer(layer)) + x.String(m.GetEmoji()) + if m.GetMaskCoords() != nil { + x.Bytes(m.GetMaskCoords().EncodeToLayer(layer)) } - m.SetUsers(v1) - return dbuf.err + return x.buf } -// inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule; -func (m *TLInputPrivacyValueDisallowContacts) To_InputPrivacyRule() *InputPrivacyRule { - return &InputPrivacyRule{ - Constructor: TLConstructor_CRC32_inputPrivacyValueDisallowContacts, - Data2: m.Data2, +func (m *TLInputStickerSetItem) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &InputDocument{} + m2.Decode(dbuf) + m.SetDocument(m2) + m.SetEmoji(dbuf.String()) + if (flags & (1 << 0)) != 0 { + m4 := &MaskCoords{} + m4.Decode(dbuf) + m.SetMaskCoords(m4) } -} -func NewTLInputPrivacyValueDisallowContacts() *TLInputPrivacyValueDisallowContacts { - return &TLInputPrivacyValueDisallowContacts{Data2: &InputPrivacyRule_Data{}} + return dbuf.err } -func (m *TLInputPrivacyValueDisallowContacts) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowContacts)) +/////////////////////////////////////////////////////////////////////////////// +// SecurePasswordKdfAlgo <-- +// + TL_SecurePasswordKdfAlgoUnknown +// + TL_SecurePasswordKdfAlgoPBKDF2 +// + TL_SecurePasswordKdfAlgoSHA512 +// - return x.buf +func (m *SecurePasswordKdfAlgo) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_securePasswordKdfAlgoUnknown: + t := m.To_SecurePasswordKdfAlgoUnknown() + return t.Encode() + case TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2: + t := m.To_SecurePasswordKdfAlgoPBKDF2() + return t.Encode() + case TLConstructor_CRC32_securePasswordKdfAlgoSHA512: + t := m.To_SecurePasswordKdfAlgoSHA512() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputPrivacyValueDisallowContacts) EncodeToLayer(layer int) []byte { +func (m *SecurePasswordKdfAlgo) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_securePasswordKdfAlgoUnknown: + t := m.To_SecurePasswordKdfAlgoUnknown() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2: + t := m.To_SecurePasswordKdfAlgoPBKDF2() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_securePasswordKdfAlgoSHA512: + t := m.To_SecurePasswordKdfAlgoSHA512() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *SecurePasswordKdfAlgo) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_securePasswordKdfAlgoUnknown: + m2 := &TLSecurePasswordKdfAlgoUnknown{Data2: &SecurePasswordKdfAlgo_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2: + m2 := &TLSecurePasswordKdfAlgoPBKDF2{Data2: &SecurePasswordKdfAlgo_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_securePasswordKdfAlgoSHA512: + m2 := &TLSecurePasswordKdfAlgoSHA512{Data2: &SecurePasswordKdfAlgo_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo; +func (m *SecurePasswordKdfAlgo) To_SecurePasswordKdfAlgoUnknown() *TLSecurePasswordKdfAlgoUnknown { + return &TLSecurePasswordKdfAlgoUnknown{ + Data2: m.Data2, + } +} + +// securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo; +func (m *SecurePasswordKdfAlgo) To_SecurePasswordKdfAlgoPBKDF2() *TLSecurePasswordKdfAlgoPBKDF2 { + return &TLSecurePasswordKdfAlgoPBKDF2{ + Data2: m.Data2, + } +} + +// securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo; +func (m *SecurePasswordKdfAlgo) To_SecurePasswordKdfAlgoSHA512() *TLSecurePasswordKdfAlgoSHA512 { + return &TLSecurePasswordKdfAlgoSHA512{ + Data2: m.Data2, + } +} + +// securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo; +func (m *TLSecurePasswordKdfAlgoUnknown) To_SecurePasswordKdfAlgo() *SecurePasswordKdfAlgo { + return &SecurePasswordKdfAlgo{ + Constructor: TLConstructor_CRC32_securePasswordKdfAlgoUnknown, + Data2: m.Data2, + } +} + +func NewTLSecurePasswordKdfAlgoUnknown() *TLSecurePasswordKdfAlgoUnknown { + return &TLSecurePasswordKdfAlgoUnknown{Data2: &SecurePasswordKdfAlgo_Data{}} +} + +func (m *TLSecurePasswordKdfAlgoUnknown) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowContacts)) + x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoUnknown)) return x.buf } -func (m *TLInputPrivacyValueDisallowContacts) Decode(dbuf *DecodeBuf) error { +func (m *TLSecurePasswordKdfAlgoUnknown) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoUnknown)) + + return x.buf +} + +func (m *TLSecurePasswordKdfAlgoUnknown) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule; -func (m *TLInputPrivacyValueDisallowAll) To_InputPrivacyRule() *InputPrivacyRule { - return &InputPrivacyRule{ - Constructor: TLConstructor_CRC32_inputPrivacyValueDisallowAll, +// securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo; +func (m *TLSecurePasswordKdfAlgoPBKDF2) To_SecurePasswordKdfAlgo() *SecurePasswordKdfAlgo { + return &SecurePasswordKdfAlgo{ + Constructor: TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2, Data2: m.Data2, } } -func NewTLInputPrivacyValueDisallowAll() *TLInputPrivacyValueDisallowAll { - return &TLInputPrivacyValueDisallowAll{Data2: &InputPrivacyRule_Data{}} +func (m *TLSecurePasswordKdfAlgoPBKDF2) SetSalt(v []byte) { m.Data2.Salt = v } +func (m *TLSecurePasswordKdfAlgoPBKDF2) GetSalt() []byte { return m.Data2.Salt } + +func NewTLSecurePasswordKdfAlgoPBKDF2() *TLSecurePasswordKdfAlgoPBKDF2 { + return &TLSecurePasswordKdfAlgoPBKDF2{Data2: &SecurePasswordKdfAlgo_Data{}} } -func (m *TLInputPrivacyValueDisallowAll) Encode() []byte { +func (m *TLSecurePasswordKdfAlgoPBKDF2) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowAll)) + x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2)) + + x.StringBytes(m.GetSalt()) return x.buf } -func (m *TLInputPrivacyValueDisallowAll) EncodeToLayer(layer int) []byte { +func (m *TLSecurePasswordKdfAlgoPBKDF2) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowAll)) + x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoPBKDF2)) + + x.StringBytes(m.GetSalt()) return x.buf } -func (m *TLInputPrivacyValueDisallowAll) Decode(dbuf *DecodeBuf) error { +func (m *TLSecurePasswordKdfAlgoPBKDF2) Decode(dbuf *DecodeBuf) error { + m.SetSalt(dbuf.StringBytes()) return dbuf.err } -// inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule; -func (m *TLInputPrivacyValueDisallowUsers) To_InputPrivacyRule() *InputPrivacyRule { - return &InputPrivacyRule{ - Constructor: TLConstructor_CRC32_inputPrivacyValueDisallowUsers, +// securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo; +func (m *TLSecurePasswordKdfAlgoSHA512) To_SecurePasswordKdfAlgo() *SecurePasswordKdfAlgo { + return &SecurePasswordKdfAlgo{ + Constructor: TLConstructor_CRC32_securePasswordKdfAlgoSHA512, Data2: m.Data2, } } -func (m *TLInputPrivacyValueDisallowUsers) SetUsers(v []*InputUser) { m.Data2.Users = v } -func (m *TLInputPrivacyValueDisallowUsers) GetUsers() []*InputUser { return m.Data2.Users } +func (m *TLSecurePasswordKdfAlgoSHA512) SetSalt(v []byte) { m.Data2.Salt = v } +func (m *TLSecurePasswordKdfAlgoSHA512) GetSalt() []byte { return m.Data2.Salt } -func NewTLInputPrivacyValueDisallowUsers() *TLInputPrivacyValueDisallowUsers { - return &TLInputPrivacyValueDisallowUsers{Data2: &InputPrivacyRule_Data{}} +func NewTLSecurePasswordKdfAlgoSHA512() *TLSecurePasswordKdfAlgoSHA512 { + return &TLSecurePasswordKdfAlgoSHA512{Data2: &SecurePasswordKdfAlgo_Data{}} } -func (m *TLInputPrivacyValueDisallowUsers) Encode() []byte { +func (m *TLSecurePasswordKdfAlgoSHA512) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowUsers)) + x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoSHA512)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.StringBytes(m.GetSalt()) return x.buf } -func (m *TLInputPrivacyValueDisallowUsers) EncodeToLayer(layer int) []byte { +func (m *TLSecurePasswordKdfAlgoSHA512) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPrivacyValueDisallowUsers)) + x.Int(int32(TLConstructor_CRC32_securePasswordKdfAlgoSHA512)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.StringBytes(m.GetSalt()) return x.buf } -func (m *TLInputPrivacyValueDisallowUsers) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*InputUser, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &InputUser{} - v1[i].Decode(dbuf) - } - m.SetUsers(v1) +func (m *TLSecurePasswordKdfAlgoSHA512) Decode(dbuf *DecodeBuf) error { + m.SetSalt(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_RecentStickers <-- -// + TL_MessagesRecentStickersNotModified -// + TL_MessagesRecentStickers +// StickerPack <-- +// + TL_StickerPack // -func (m *Messages_RecentStickers) Encode() []byte { +func (m *StickerPack) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_recentStickersNotModified: - t := m.To_MessagesRecentStickersNotModified() - return t.Encode() - case TLConstructor_CRC32_messages_recentStickers: - t := m.To_MessagesRecentStickers() + case TLConstructor_CRC32_stickerPack: + t := m.To_StickerPack() return t.Encode() default: @@ -47853,14 +48708,11 @@ func (m *Messages_RecentStickers) Encode() []byte { } } -func (m *Messages_RecentStickers) EncodeToLayer(layer int) []byte { +func (m *StickerPack) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_recentStickersNotModified: - t := m.To_MessagesRecentStickersNotModified() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_recentStickers: - t := m.To_MessagesRecentStickers() + case TLConstructor_CRC32_stickerPack: + t := m.To_StickerPack() return t.EncodeToLayer(layer) default: @@ -47869,15 +48721,11 @@ func (m *Messages_RecentStickers) EncodeToLayer(layer int) []byte { } } -func (m *Messages_RecentStickers) Decode(dbuf *DecodeBuf) error { +func (m *StickerPack) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_recentStickersNotModified: - m2 := &TLMessagesRecentStickersNotModified{Data2: &Messages_RecentStickers_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_recentStickers: - m2 := &TLMessagesRecentStickers{Data2: &Messages_RecentStickers_Data{}} + case TLConstructor_CRC32_stickerPack: + m2 := &TLStickerPack{Data2: &StickerPack_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -47887,173 +48735,123 @@ func (m *Messages_RecentStickers) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.recentStickersNotModified#b17f890 = messages.RecentStickers; -func (m *Messages_RecentStickers) To_MessagesRecentStickersNotModified() *TLMessagesRecentStickersNotModified { - return &TLMessagesRecentStickersNotModified{ - Data2: m.Data2, - } -} - -// messages.recentStickers#22f3afb3 hash:int packs:Vector stickers:Vector dates:Vector = messages.RecentStickers; -func (m *Messages_RecentStickers) To_MessagesRecentStickers() *TLMessagesRecentStickers { - return &TLMessagesRecentStickers{ +// stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack; +func (m *StickerPack) To_StickerPack() *TLStickerPack { + return &TLStickerPack{ Data2: m.Data2, } } -// messages.recentStickersNotModified#b17f890 = messages.RecentStickers; -func (m *TLMessagesRecentStickersNotModified) To_Messages_RecentStickers() *Messages_RecentStickers { - return &Messages_RecentStickers{ - Constructor: TLConstructor_CRC32_messages_recentStickersNotModified, - Data2: m.Data2, - } -} - -func NewTLMessagesRecentStickersNotModified() *TLMessagesRecentStickersNotModified { - return &TLMessagesRecentStickersNotModified{Data2: &Messages_RecentStickers_Data{}} -} - -func (m *TLMessagesRecentStickersNotModified) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_recentStickersNotModified)) - - return x.buf -} - -func (m *TLMessagesRecentStickersNotModified) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_recentStickersNotModified)) - - return x.buf -} - -func (m *TLMessagesRecentStickersNotModified) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// messages.recentStickers#22f3afb3 hash:int packs:Vector stickers:Vector dates:Vector = messages.RecentStickers; -func (m *TLMessagesRecentStickers) To_Messages_RecentStickers() *Messages_RecentStickers { - return &Messages_RecentStickers{ - Constructor: TLConstructor_CRC32_messages_recentStickers, +// stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack; +func (m *TLStickerPack) To_StickerPack() *StickerPack { + return &StickerPack{ + Constructor: TLConstructor_CRC32_stickerPack, Data2: m.Data2, } } -func (m *TLMessagesRecentStickers) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLMessagesRecentStickers) GetHash() int32 { return m.Data2.Hash } - -func (m *TLMessagesRecentStickers) SetPacks(v []*StickerPack) { m.Data2.Packs = v } -func (m *TLMessagesRecentStickers) GetPacks() []*StickerPack { return m.Data2.Packs } - -func (m *TLMessagesRecentStickers) SetStickers(v []*Document) { m.Data2.Stickers = v } -func (m *TLMessagesRecentStickers) GetStickers() []*Document { return m.Data2.Stickers } +func (m *TLStickerPack) SetEmoticon(v string) { m.Data2.Emoticon = v } +func (m *TLStickerPack) GetEmoticon() string { return m.Data2.Emoticon } -func (m *TLMessagesRecentStickers) SetDates(v []int32) { m.Data2.Dates = v } -func (m *TLMessagesRecentStickers) GetDates() []int32 { return m.Data2.Dates } +func (m *TLStickerPack) SetDocuments(v []int64) { m.Data2.Documents = v } +func (m *TLStickerPack) GetDocuments() []int64 { return m.Data2.Documents } -func NewTLMessagesRecentStickers() *TLMessagesRecentStickers { - return &TLMessagesRecentStickers{Data2: &Messages_RecentStickers_Data{}} +func NewTLStickerPack() *TLStickerPack { + return &TLStickerPack{Data2: &StickerPack_Data{}} } -func (m *TLMessagesRecentStickers) Encode() []byte { +func (m *TLStickerPack) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_recentStickers)) + x.Int(int32(TLConstructor_CRC32_stickerPack)) - x.Int(m.GetHash()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPacks()))) - for _, v := range m.GetPacks() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.VectorInt(m.GetDates()) + x.String(m.GetEmoticon()) + x.VectorLong(m.GetDocuments()) return x.buf } -func (m *TLMessagesRecentStickers) EncodeToLayer(layer int) []byte { +func (m *TLStickerPack) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_recentStickers)) + x.Int(int32(TLConstructor_CRC32_stickerPack)) - x.Int(m.GetHash()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPacks()))) - for _, v := range m.GetPacks() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStickers()))) - for _, v := range m.GetStickers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.VectorInt(m.GetDates()) + x.String(m.GetEmoticon()) + x.VectorLong(m.GetDocuments()) return x.buf } -func (m *TLMessagesRecentStickers) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*StickerPack, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &StickerPack{} - v2[i].Decode(dbuf) - } - m.SetPacks(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Document, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Document{} - v3[i].Decode(dbuf) - } - m.SetStickers(v3) - - m.SetDates(dbuf.VectorInt()) +func (m *TLStickerPack) Decode(dbuf *DecodeBuf) error { + m.SetEmoticon(dbuf.String()) + m.SetDocuments(dbuf.VectorLong()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputPeer <-- -// + TL_InputPeerEmpty -// + TL_InputPeerSelf -// + TL_InputPeerChat -// + TL_InputPeerUser -// + TL_InputPeerChannel +// InputMedia <-- +// + TL_InputMediaPhotoLayer46 +// + TL_InputMediaEmpty +// + TL_InputMediaUploadedPhoto +// + TL_InputMediaPhoto +// + TL_InputMediaGeoPoint +// + TL_InputMediaContact +// + TL_InputMediaUploadedDocument +// + TL_InputMediaDocument +// + TL_InputMediaVenue +// + TL_InputMediaGifExternal +// + TL_InputMediaPhotoExternal +// + TL_InputMediaDocumentExternal +// + TL_InputMediaGame +// + TL_InputMediaInvoice +// + TL_InputMediaGeoLive // -func (m *InputPeer) Encode() []byte { +func (m *InputMedia) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputPeerEmpty: - t := m.To_InputPeerEmpty() + case TLConstructor_CRC32_inputMediaPhotoLayer46: + t := m.To_InputMediaPhotoLayer46() return t.Encode() - case TLConstructor_CRC32_inputPeerSelf: - t := m.To_InputPeerSelf() + case TLConstructor_CRC32_inputMediaEmpty: + t := m.To_InputMediaEmpty() return t.Encode() - case TLConstructor_CRC32_inputPeerChat: - t := m.To_InputPeerChat() + case TLConstructor_CRC32_inputMediaUploadedPhoto: + t := m.To_InputMediaUploadedPhoto() return t.Encode() - case TLConstructor_CRC32_inputPeerUser: - t := m.To_InputPeerUser() + case TLConstructor_CRC32_inputMediaPhoto: + t := m.To_InputMediaPhoto() return t.Encode() - case TLConstructor_CRC32_inputPeerChannel: - t := m.To_InputPeerChannel() + case TLConstructor_CRC32_inputMediaGeoPoint: + t := m.To_InputMediaGeoPoint() + return t.Encode() + case TLConstructor_CRC32_inputMediaContact: + t := m.To_InputMediaContact() + return t.Encode() + case TLConstructor_CRC32_inputMediaUploadedDocument: + t := m.To_InputMediaUploadedDocument() + return t.Encode() + case TLConstructor_CRC32_inputMediaDocument: + t := m.To_InputMediaDocument() + return t.Encode() + case TLConstructor_CRC32_inputMediaVenue: + t := m.To_InputMediaVenue() + return t.Encode() + case TLConstructor_CRC32_inputMediaGifExternal: + t := m.To_InputMediaGifExternal() + return t.Encode() + case TLConstructor_CRC32_inputMediaPhotoExternal: + t := m.To_InputMediaPhotoExternal() + return t.Encode() + case TLConstructor_CRC32_inputMediaDocumentExternal: + t := m.To_InputMediaDocumentExternal() + return t.Encode() + case TLConstructor_CRC32_inputMediaGame: + t := m.To_InputMediaGame() + return t.Encode() + case TLConstructor_CRC32_inputMediaInvoice: + t := m.To_InputMediaInvoice() + return t.Encode() + case TLConstructor_CRC32_inputMediaGeoLive: + t := m.To_InputMediaGeoLive() return t.Encode() default: @@ -48062,23 +48860,53 @@ func (m *InputPeer) Encode() []byte { } } -func (m *InputPeer) EncodeToLayer(layer int) []byte { +func (m *InputMedia) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputPeerEmpty: - t := m.To_InputPeerEmpty() + case TLConstructor_CRC32_inputMediaPhotoLayer46: + t := m.To_InputMediaPhotoLayer46() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPeerSelf: - t := m.To_InputPeerSelf() + case TLConstructor_CRC32_inputMediaEmpty: + t := m.To_InputMediaEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPeerChat: - t := m.To_InputPeerChat() + case TLConstructor_CRC32_inputMediaUploadedPhoto: + t := m.To_InputMediaUploadedPhoto() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPeerUser: - t := m.To_InputPeerUser() + case TLConstructor_CRC32_inputMediaPhoto: + t := m.To_InputMediaPhoto() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPeerChannel: - t := m.To_InputPeerChannel() + case TLConstructor_CRC32_inputMediaGeoPoint: + t := m.To_InputMediaGeoPoint() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaContact: + t := m.To_InputMediaContact() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaUploadedDocument: + t := m.To_InputMediaUploadedDocument() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaDocument: + t := m.To_InputMediaDocument() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaVenue: + t := m.To_InputMediaVenue() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaGifExternal: + t := m.To_InputMediaGifExternal() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaPhotoExternal: + t := m.To_InputMediaPhotoExternal() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaDocumentExternal: + t := m.To_InputMediaDocumentExternal() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaGame: + t := m.To_InputMediaGame() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaInvoice: + t := m.To_InputMediaInvoice() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMediaGeoLive: + t := m.To_InputMediaGeoLive() return t.EncodeToLayer(layer) default: @@ -48087,947 +48915,1229 @@ func (m *InputPeer) EncodeToLayer(layer int) []byte { } } -func (m *InputPeer) Decode(dbuf *DecodeBuf) error { +func (m *InputMedia) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputPeerEmpty: - m2 := &TLInputPeerEmpty{Data2: &InputPeer_Data{}} + case TLConstructor_CRC32_inputMediaPhotoLayer46: + m2 := &TLInputMediaPhotoLayer46{Data2: &InputMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPeerSelf: - m2 := &TLInputPeerSelf{Data2: &InputPeer_Data{}} + case TLConstructor_CRC32_inputMediaEmpty: + m2 := &TLInputMediaEmpty{Data2: &InputMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPeerChat: - m2 := &TLInputPeerChat{Data2: &InputPeer_Data{}} + case TLConstructor_CRC32_inputMediaUploadedPhoto: + m2 := &TLInputMediaUploadedPhoto{Data2: &InputMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPeerUser: - m2 := &TLInputPeerUser{Data2: &InputPeer_Data{}} + case TLConstructor_CRC32_inputMediaPhoto: + m2 := &TLInputMediaPhoto{Data2: &InputMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPeerChannel: - m2 := &TLInputPeerChannel{Data2: &InputPeer_Data{}} + case TLConstructor_CRC32_inputMediaGeoPoint: + m2 := &TLInputMediaGeoPoint{Data2: &InputMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// inputPeerEmpty#7f3b18ea = InputPeer; -func (m *InputPeer) To_InputPeerEmpty() *TLInputPeerEmpty { - return &TLInputPeerEmpty{ - Data2: m.Data2, + case TLConstructor_CRC32_inputMediaContact: + m2 := &TLInputMediaContact{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMediaUploadedDocument: + m2 := &TLInputMediaUploadedDocument{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMediaDocument: + m2 := &TLInputMediaDocument{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMediaVenue: + m2 := &TLInputMediaVenue{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMediaGifExternal: + m2 := &TLInputMediaGifExternal{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMediaPhotoExternal: + m2 := &TLInputMediaPhotoExternal{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMediaDocumentExternal: + m2 := &TLInputMediaDocumentExternal{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMediaGame: + m2 := &TLInputMediaGame{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMediaInvoice: + m2 := &TLInputMediaInvoice{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMediaGeoLive: + m2 := &TLInputMediaGeoLive{Data2: &InputMedia_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } + return dbuf.err } -// inputPeerSelf#7da07ec9 = InputPeer; -func (m *InputPeer) To_InputPeerSelf() *TLInputPeerSelf { - return &TLInputPeerSelf{ +// inputMediaPhoto#e9bfb4f3 id:InputPhoto caption:string = InputMedia; +func (m *InputMedia) To_InputMediaPhotoLayer46() *TLInputMediaPhotoLayer46 { + return &TLInputMediaPhotoLayer46{ Data2: m.Data2, } } -// inputPeerChat#179be863 chat_id:int = InputPeer; -func (m *InputPeer) To_InputPeerChat() *TLInputPeerChat { - return &TLInputPeerChat{ +// inputMediaEmpty#9664f57f = InputMedia; +func (m *InputMedia) To_InputMediaEmpty() *TLInputMediaEmpty { + return &TLInputMediaEmpty{ Data2: m.Data2, } } -// inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer; -func (m *InputPeer) To_InputPeerUser() *TLInputPeerUser { - return &TLInputPeerUser{ +// inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; +func (m *InputMedia) To_InputMediaUploadedPhoto() *TLInputMediaUploadedPhoto { + return &TLInputMediaUploadedPhoto{ Data2: m.Data2, } } -// inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer; -func (m *InputPeer) To_InputPeerChannel() *TLInputPeerChannel { - return &TLInputPeerChannel{ +// inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia; +func (m *InputMedia) To_InputMediaPhoto() *TLInputMediaPhoto { + return &TLInputMediaPhoto{ Data2: m.Data2, } } -// inputPeerEmpty#7f3b18ea = InputPeer; -func (m *TLInputPeerEmpty) To_InputPeer() *InputPeer { - return &InputPeer{ - Constructor: TLConstructor_CRC32_inputPeerEmpty, - Data2: m.Data2, +// inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia; +func (m *InputMedia) To_InputMediaGeoPoint() *TLInputMediaGeoPoint { + return &TLInputMediaGeoPoint{ + Data2: m.Data2, } } -func NewTLInputPeerEmpty() *TLInputPeerEmpty { - return &TLInputPeerEmpty{Data2: &InputPeer_Data{}} +// inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia; +func (m *InputMedia) To_InputMediaContact() *TLInputMediaContact { + return &TLInputMediaContact{ + Data2: m.Data2, + } } -func (m *TLInputPeerEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerEmpty)) - - return x.buf +// inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; +func (m *InputMedia) To_InputMediaUploadedDocument() *TLInputMediaUploadedDocument { + return &TLInputMediaUploadedDocument{ + Data2: m.Data2, + } } -func (m *TLInputPeerEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerEmpty)) - - return x.buf +// inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia; +func (m *InputMedia) To_InputMediaDocument() *TLInputMediaDocument { + return &TLInputMediaDocument{ + Data2: m.Data2, + } } -func (m *TLInputPeerEmpty) Decode(dbuf *DecodeBuf) error { - - return dbuf.err +// inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia; +func (m *InputMedia) To_InputMediaVenue() *TLInputMediaVenue { + return &TLInputMediaVenue{ + Data2: m.Data2, + } } -// inputPeerSelf#7da07ec9 = InputPeer; -func (m *TLInputPeerSelf) To_InputPeer() *InputPeer { - return &InputPeer{ - Constructor: TLConstructor_CRC32_inputPeerSelf, - Data2: m.Data2, +// inputMediaGifExternal#4843b0fd url:string q:string = InputMedia; +func (m *InputMedia) To_InputMediaGifExternal() *TLInputMediaGifExternal { + return &TLInputMediaGifExternal{ + Data2: m.Data2, } } -func NewTLInputPeerSelf() *TLInputPeerSelf { - return &TLInputPeerSelf{Data2: &InputPeer_Data{}} +// inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia; +func (m *InputMedia) To_InputMediaPhotoExternal() *TLInputMediaPhotoExternal { + return &TLInputMediaPhotoExternal{ + Data2: m.Data2, + } } -func (m *TLInputPeerSelf) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerSelf)) - - return x.buf +// inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia; +func (m *InputMedia) To_InputMediaDocumentExternal() *TLInputMediaDocumentExternal { + return &TLInputMediaDocumentExternal{ + Data2: m.Data2, + } } -func (m *TLInputPeerSelf) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerSelf)) - - return x.buf +// inputMediaGame#d33f43f3 id:InputGame = InputMedia; +func (m *InputMedia) To_InputMediaGame() *TLInputMediaGame { + return &TLInputMediaGame{ + Data2: m.Data2, + } } -func (m *TLInputPeerSelf) Decode(dbuf *DecodeBuf) error { +// inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia; +func (m *InputMedia) To_InputMediaInvoice() *TLInputMediaInvoice { + return &TLInputMediaInvoice{ + Data2: m.Data2, + } +} - return dbuf.err +// inputMediaGeoLive#7b1a118f geo_point:InputGeoPoint period:int = InputMedia; +func (m *InputMedia) To_InputMediaGeoLive() *TLInputMediaGeoLive { + return &TLInputMediaGeoLive{ + Data2: m.Data2, + } } -// inputPeerChat#179be863 chat_id:int = InputPeer; -func (m *TLInputPeerChat) To_InputPeer() *InputPeer { - return &InputPeer{ - Constructor: TLConstructor_CRC32_inputPeerChat, +// inputMediaPhoto#e9bfb4f3 id:InputPhoto caption:string = InputMedia; +func (m *TLInputMediaPhotoLayer46) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaPhotoLayer46, Data2: m.Data2, } } -func (m *TLInputPeerChat) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLInputPeerChat) GetChatId() int32 { return m.Data2.ChatId } +func (m *TLInputMediaPhotoLayer46) SetId(v *InputPhoto) { m.Data2.Id_1 = v } +func (m *TLInputMediaPhotoLayer46) GetId() *InputPhoto { return m.Data2.Id_1 } -func NewTLInputPeerChat() *TLInputPeerChat { - return &TLInputPeerChat{Data2: &InputPeer_Data{}} +func (m *TLInputMediaPhotoLayer46) SetCaption(v string) { m.Data2.Caption = v } +func (m *TLInputMediaPhotoLayer46) GetCaption() string { return m.Data2.Caption } + +func NewTLInputMediaPhotoLayer46() *TLInputMediaPhotoLayer46 { + return &TLInputMediaPhotoLayer46{Data2: &InputMedia_Data{}} } -func (m *TLInputPeerChat) Encode() []byte { +func (m *TLInputMediaPhotoLayer46) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerChat)) + x.Int(int32(TLConstructor_CRC32_inputMediaPhotoLayer46)) - x.Int(m.GetChatId()) + x.Bytes(m.GetId().Encode()) + x.String(m.GetCaption()) return x.buf } -func (m *TLInputPeerChat) EncodeToLayer(layer int) []byte { +func (m *TLInputMediaPhotoLayer46) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerChat)) + x.Int(int32(TLConstructor_CRC32_inputMediaPhotoLayer46)) - x.Int(m.GetChatId()) + x.Bytes(m.GetId().EncodeToLayer(layer)) + x.String(m.GetCaption()) return x.buf } -func (m *TLInputPeerChat) Decode(dbuf *DecodeBuf) error { - m.SetChatId(dbuf.Int()) +func (m *TLInputMediaPhotoLayer46) Decode(dbuf *DecodeBuf) error { + m1 := &InputPhoto{} + m1.Decode(dbuf) + m.SetId(m1) + m.SetCaption(dbuf.String()) return dbuf.err } -// inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer; -func (m *TLInputPeerUser) To_InputPeer() *InputPeer { - return &InputPeer{ - Constructor: TLConstructor_CRC32_inputPeerUser, +// inputMediaEmpty#9664f57f = InputMedia; +func (m *TLInputMediaEmpty) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaEmpty, Data2: m.Data2, } } -func (m *TLInputPeerUser) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLInputPeerUser) GetUserId() int32 { return m.Data2.UserId } - -func (m *TLInputPeerUser) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputPeerUser) GetAccessHash() int64 { return m.Data2.AccessHash } - -func NewTLInputPeerUser() *TLInputPeerUser { - return &TLInputPeerUser{Data2: &InputPeer_Data{}} +func NewTLInputMediaEmpty() *TLInputMediaEmpty { + return &TLInputMediaEmpty{Data2: &InputMedia_Data{}} } -func (m *TLInputPeerUser) Encode() []byte { +func (m *TLInputMediaEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerUser)) - - x.Int(m.GetUserId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_inputMediaEmpty)) return x.buf } -func (m *TLInputPeerUser) EncodeToLayer(layer int) []byte { +func (m *TLInputMediaEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerUser)) - - x.Int(m.GetUserId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_inputMediaEmpty)) return x.buf } -func (m *TLInputPeerUser) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetAccessHash(dbuf.Long()) +func (m *TLInputMediaEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer; -func (m *TLInputPeerChannel) To_InputPeer() *InputPeer { - return &InputPeer{ - Constructor: TLConstructor_CRC32_inputPeerChannel, +// inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; +func (m *TLInputMediaUploadedPhoto) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaUploadedPhoto, Data2: m.Data2, } } -func (m *TLInputPeerChannel) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLInputPeerChannel) GetChannelId() int32 { return m.Data2.ChannelId } +func (m *TLInputMediaUploadedPhoto) SetFile(v *InputFile) { m.Data2.File = v } +func (m *TLInputMediaUploadedPhoto) GetFile() *InputFile { return m.Data2.File } -func (m *TLInputPeerChannel) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLInputPeerChannel) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLInputMediaUploadedPhoto) SetStickers(v []*InputDocument) { m.Data2.Stickers = v } +func (m *TLInputMediaUploadedPhoto) GetStickers() []*InputDocument { return m.Data2.Stickers } -func NewTLInputPeerChannel() *TLInputPeerChannel { - return &TLInputPeerChannel{Data2: &InputPeer_Data{}} +func (m *TLInputMediaUploadedPhoto) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } +func (m *TLInputMediaUploadedPhoto) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } + +func NewTLInputMediaUploadedPhoto() *TLInputMediaUploadedPhoto { + return &TLInputMediaUploadedPhoto{Data2: &InputMedia_Data{}} } -func (m *TLInputPeerChannel) Encode() []byte { +func (m *TLInputMediaUploadedPhoto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerChannel)) + x.Int(int32(TLConstructor_CRC32_inputMediaUploadedPhoto)) - x.Int(m.GetChannelId()) - x.Long(m.GetAccessHash()) + // flags + var flags uint32 = 0 + if m.GetStickers() != nil { + flags |= 1 << 0 + } + if m.GetTtlSeconds() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Bytes(m.GetFile().Encode()) + if m.GetStickers() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) + } return x.buf } -func (m *TLInputPeerChannel) EncodeToLayer(layer int) []byte { +func (m *TLInputMediaUploadedPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerChannel)) - - x.Int(m.GetChannelId()) - x.Long(m.GetAccessHash()) + x.Int(int32(TLConstructor_CRC32_inputMediaUploadedPhoto)) - return x.buf -} + // flags + var flags uint32 = 0 + if m.GetStickers() != nil { + flags |= 1 << 0 + } + if m.GetTtlSeconds() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) -func (m *TLInputPeerChannel) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) - m.SetAccessHash(dbuf.Long()) + x.Bytes(m.GetFile().EncodeToLayer(layer)) + if m.GetStickers() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) + } - return dbuf.err + return x.buf } -/////////////////////////////////////////////////////////////////////////////// -// PrivacyKey <-- -// + TL_PrivacyKeyStatusTimestamp -// + TL_PrivacyKeyChatInvite -// + TL_PrivacyKeyPhoneCall -// - -func (m *PrivacyKey) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_privacyKeyStatusTimestamp: - t := m.To_PrivacyKeyStatusTimestamp() - return t.Encode() - case TLConstructor_CRC32_privacyKeyChatInvite: - t := m.To_PrivacyKeyChatInvite() - return t.Encode() - case TLConstructor_CRC32_privacyKeyPhoneCall: - t := m.To_PrivacyKeyPhoneCall() - return t.Encode() +func (m *TLInputMediaUploadedPhoto) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &InputFile{} + m2.Decode(dbuf) + m.SetFile(m2) + if (flags & (1 << 0)) != 0 { + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*InputDocument, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &InputDocument{} + v3[i].Decode(dbuf) + } + m.SetStickers(v3) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil } -} - -func (m *PrivacyKey) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_privacyKeyStatusTimestamp: - t := m.To_PrivacyKeyStatusTimestamp() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_privacyKeyChatInvite: - t := m.To_PrivacyKeyChatInvite() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_privacyKeyPhoneCall: - t := m.To_PrivacyKeyPhoneCall() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + if (flags & (1 << 1)) != 0 { + m.SetTtlSeconds(dbuf.Int()) } -} -func (m *PrivacyKey) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_privacyKeyStatusTimestamp: - m2 := &TLPrivacyKeyStatusTimestamp{Data2: &PrivacyKey_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_privacyKeyChatInvite: - m2 := &TLPrivacyKeyChatInvite{Data2: &PrivacyKey_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_privacyKeyPhoneCall: - m2 := &TLPrivacyKeyPhoneCall{Data2: &PrivacyKey_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; -func (m *PrivacyKey) To_PrivacyKeyStatusTimestamp() *TLPrivacyKeyStatusTimestamp { - return &TLPrivacyKeyStatusTimestamp{ - Data2: m.Data2, +// inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia; +func (m *TLInputMediaPhoto) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaPhoto, + Data2: m.Data2, } } -// privacyKeyChatInvite#500e6dfa = PrivacyKey; -func (m *PrivacyKey) To_PrivacyKeyChatInvite() *TLPrivacyKeyChatInvite { - return &TLPrivacyKeyChatInvite{ - Data2: m.Data2, - } +func (m *TLInputMediaPhoto) SetId(v *InputPhoto) { m.Data2.Id_1 = v } +func (m *TLInputMediaPhoto) GetId() *InputPhoto { return m.Data2.Id_1 } + +func (m *TLInputMediaPhoto) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } +func (m *TLInputMediaPhoto) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } + +func NewTLInputMediaPhoto() *TLInputMediaPhoto { + return &TLInputMediaPhoto{Data2: &InputMedia_Data{}} } -// privacyKeyPhoneCall#3d662b7b = PrivacyKey; -func (m *PrivacyKey) To_PrivacyKeyPhoneCall() *TLPrivacyKeyPhoneCall { - return &TLPrivacyKeyPhoneCall{ - Data2: m.Data2, +func (m *TLInputMediaPhoto) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaPhoto)) + + // flags + var flags uint32 = 0 + if m.GetTtlSeconds() != 0 { + flags |= 1 << 0 } -} + x.UInt(flags) -// privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; -func (m *TLPrivacyKeyStatusTimestamp) To_PrivacyKey() *PrivacyKey { - return &PrivacyKey{ - Constructor: TLConstructor_CRC32_privacyKeyStatusTimestamp, - Data2: m.Data2, + x.Bytes(m.GetId().Encode()) + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) } -} -func NewTLPrivacyKeyStatusTimestamp() *TLPrivacyKeyStatusTimestamp { - return &TLPrivacyKeyStatusTimestamp{Data2: &PrivacyKey_Data{}} + return x.buf } -func (m *TLPrivacyKeyStatusTimestamp) Encode() []byte { +func (m *TLInputMediaPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyKeyStatusTimestamp)) + x.Int(int32(TLConstructor_CRC32_inputMediaPhoto)) - return x.buf -} + // flags + var flags uint32 = 0 + if m.GetTtlSeconds() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) -func (m *TLPrivacyKeyStatusTimestamp) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyKeyStatusTimestamp)) + x.Bytes(m.GetId().EncodeToLayer(layer)) + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) + } return x.buf } -func (m *TLPrivacyKeyStatusTimestamp) Decode(dbuf *DecodeBuf) error { +func (m *TLInputMediaPhoto) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &InputPhoto{} + m2.Decode(dbuf) + m.SetId(m2) + if (flags & (1 << 0)) != 0 { + m.SetTtlSeconds(dbuf.Int()) + } return dbuf.err } -// privacyKeyChatInvite#500e6dfa = PrivacyKey; -func (m *TLPrivacyKeyChatInvite) To_PrivacyKey() *PrivacyKey { - return &PrivacyKey{ - Constructor: TLConstructor_CRC32_privacyKeyChatInvite, +// inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia; +func (m *TLInputMediaGeoPoint) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaGeoPoint, Data2: m.Data2, } } -func NewTLPrivacyKeyChatInvite() *TLPrivacyKeyChatInvite { - return &TLPrivacyKeyChatInvite{Data2: &PrivacyKey_Data{}} +func (m *TLInputMediaGeoPoint) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } +func (m *TLInputMediaGeoPoint) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } + +func NewTLInputMediaGeoPoint() *TLInputMediaGeoPoint { + return &TLInputMediaGeoPoint{Data2: &InputMedia_Data{}} } -func (m *TLPrivacyKeyChatInvite) Encode() []byte { +func (m *TLInputMediaGeoPoint) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyKeyChatInvite)) + x.Int(int32(TLConstructor_CRC32_inputMediaGeoPoint)) + + x.Bytes(m.GetGeoPoint().Encode()) return x.buf } -func (m *TLPrivacyKeyChatInvite) EncodeToLayer(layer int) []byte { +func (m *TLInputMediaGeoPoint) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyKeyChatInvite)) + x.Int(int32(TLConstructor_CRC32_inputMediaGeoPoint)) + + x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) return x.buf } -func (m *TLPrivacyKeyChatInvite) Decode(dbuf *DecodeBuf) error { +func (m *TLInputMediaGeoPoint) Decode(dbuf *DecodeBuf) error { + m1 := &InputGeoPoint{} + m1.Decode(dbuf) + m.SetGeoPoint(m1) return dbuf.err } -// privacyKeyPhoneCall#3d662b7b = PrivacyKey; -func (m *TLPrivacyKeyPhoneCall) To_PrivacyKey() *PrivacyKey { - return &PrivacyKey{ - Constructor: TLConstructor_CRC32_privacyKeyPhoneCall, +// inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia; +func (m *TLInputMediaContact) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaContact, Data2: m.Data2, } } -func NewTLPrivacyKeyPhoneCall() *TLPrivacyKeyPhoneCall { - return &TLPrivacyKeyPhoneCall{Data2: &PrivacyKey_Data{}} +func (m *TLInputMediaContact) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } +func (m *TLInputMediaContact) GetPhoneNumber() string { return m.Data2.PhoneNumber } + +func (m *TLInputMediaContact) SetFirstName(v string) { m.Data2.FirstName = v } +func (m *TLInputMediaContact) GetFirstName() string { return m.Data2.FirstName } + +func (m *TLInputMediaContact) SetLastName(v string) { m.Data2.LastName = v } +func (m *TLInputMediaContact) GetLastName() string { return m.Data2.LastName } + +func (m *TLInputMediaContact) SetVcard(v string) { m.Data2.Vcard = v } +func (m *TLInputMediaContact) GetVcard() string { return m.Data2.Vcard } + +func NewTLInputMediaContact() *TLInputMediaContact { + return &TLInputMediaContact{Data2: &InputMedia_Data{}} } -func (m *TLPrivacyKeyPhoneCall) Encode() []byte { +func (m *TLInputMediaContact) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyKeyPhoneCall)) + x.Int(int32(TLConstructor_CRC32_inputMediaContact)) + + x.String(m.GetPhoneNumber()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetVcard()) return x.buf } -func (m *TLPrivacyKeyPhoneCall) EncodeToLayer(layer int) []byte { +func (m *TLInputMediaContact) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_privacyKeyPhoneCall)) + x.Int(int32(TLConstructor_CRC32_inputMediaContact)) + + x.String(m.GetPhoneNumber()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetVcard()) return x.buf } -func (m *TLPrivacyKeyPhoneCall) Decode(dbuf *DecodeBuf) error { +func (m *TLInputMediaContact) Decode(dbuf *DecodeBuf) error { + m.SetPhoneNumber(dbuf.String()) + m.SetFirstName(dbuf.String()) + m.SetLastName(dbuf.String()) + m.SetVcard(dbuf.String()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// ExportedMessageLink <-- -// + TL_ExportedMessageLink -// +// inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; +func (m *TLInputMediaUploadedDocument) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaUploadedDocument, + Data2: m.Data2, + } +} -func (m *ExportedMessageLink) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_exportedMessageLink: - t := m.To_ExportedMessageLink() - return t.Encode() +func (m *TLInputMediaUploadedDocument) SetNosoundVideo(v bool) { m.Data2.NosoundVideo = v } +func (m *TLInputMediaUploadedDocument) GetNosoundVideo() bool { return m.Data2.NosoundVideo } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLInputMediaUploadedDocument) SetFile(v *InputFile) { m.Data2.File = v } +func (m *TLInputMediaUploadedDocument) GetFile() *InputFile { return m.Data2.File } + +func (m *TLInputMediaUploadedDocument) SetThumb(v *InputFile) { m.Data2.Thumb = v } +func (m *TLInputMediaUploadedDocument) GetThumb() *InputFile { return m.Data2.Thumb } + +func (m *TLInputMediaUploadedDocument) SetMimeType(v string) { m.Data2.MimeType = v } +func (m *TLInputMediaUploadedDocument) GetMimeType() string { return m.Data2.MimeType } + +func (m *TLInputMediaUploadedDocument) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } +func (m *TLInputMediaUploadedDocument) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } + +func (m *TLInputMediaUploadedDocument) SetStickers(v []*InputDocument) { m.Data2.Stickers = v } +func (m *TLInputMediaUploadedDocument) GetStickers() []*InputDocument { return m.Data2.Stickers } + +func (m *TLInputMediaUploadedDocument) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } +func (m *TLInputMediaUploadedDocument) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } + +func NewTLInputMediaUploadedDocument() *TLInputMediaUploadedDocument { + return &TLInputMediaUploadedDocument{Data2: &InputMedia_Data{}} } -func (m *ExportedMessageLink) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_exportedMessageLink: - t := m.To_ExportedMessageLink() - return t.EncodeToLayer(layer) +func (m *TLInputMediaUploadedDocument) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaUploadedDocument)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetNosoundVideo() == true { + flags |= 1 << 3 + } + if m.GetThumb() != nil { + flags |= 1 << 2 + } + if m.GetStickers() != nil { + flags |= 1 << 0 + } + if m.GetTtlSeconds() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Bytes(m.GetFile().Encode()) + if m.GetThumb() != nil { + x.Bytes(m.GetThumb().Encode()) + } + x.String(m.GetMimeType()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).Encode()...) + } + if m.GetStickers() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).Encode()...) + } + } + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) } + + return x.buf } -func (m *ExportedMessageLink) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_exportedMessageLink: - m2 := &TLExportedMessageLink{Data2: &ExportedMessageLink_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputMediaUploadedDocument) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaUploadedDocument)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + // flags + var flags uint32 = 0 + if m.GetNosoundVideo() == true { + flags |= 1 << 3 } - return dbuf.err + if m.GetThumb() != nil { + flags |= 1 << 2 + } + if m.GetStickers() != nil { + flags |= 1 << 0 + } + if m.GetTtlSeconds() != 0 { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Bytes(m.GetFile().EncodeToLayer(layer)) + if m.GetThumb() != nil { + x.Bytes(m.GetThumb().EncodeToLayer(layer)) + } + x.String(m.GetMimeType()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAttributes()))) + for _, v := range m.GetAttributes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + if m.GetStickers() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + } + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) + } + + return x.buf } -// exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink; -func (m *ExportedMessageLink) To_ExportedMessageLink() *TLExportedMessageLink { - return &TLExportedMessageLink{ - Data2: m.Data2, +func (m *TLInputMediaUploadedDocument) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 3)) != 0 { + m.SetNosoundVideo(true) + } + m3 := &InputFile{} + m3.Decode(dbuf) + m.SetFile(m3) + if (flags & (1 << 2)) != 0 { + m4 := &InputFile{} + m4.Decode(dbuf) + m.SetThumb(m4) + } + m.SetMimeType(dbuf.String()) + c6 := dbuf.Int() + if c6 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 6, c6) + return dbuf.err + } + l6 := dbuf.Int() + v6 := make([]*DocumentAttribute, l6) + for i := int32(0); i < l6; i++ { + v6[i] = &DocumentAttribute{} + v6[i].Decode(dbuf) + } + m.SetAttributes(v6) + + if (flags & (1 << 0)) != 0 { + c7 := dbuf.Int() + if c7 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) + return dbuf.err + } + l7 := dbuf.Int() + v7 := make([]*InputDocument, l7) + for i := int32(0); i < l7; i++ { + v7[i] = &InputDocument{} + v7[i].Decode(dbuf) + } + m.SetStickers(v7) + + } + if (flags & (1 << 1)) != 0 { + m.SetTtlSeconds(dbuf.Int()) } + + return dbuf.err } -// exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink; -func (m *TLExportedMessageLink) To_ExportedMessageLink() *ExportedMessageLink { - return &ExportedMessageLink{ - Constructor: TLConstructor_CRC32_exportedMessageLink, +// inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia; +func (m *TLInputMediaDocument) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaDocument, Data2: m.Data2, } } -func (m *TLExportedMessageLink) SetLink(v string) { m.Data2.Link = v } -func (m *TLExportedMessageLink) GetLink() string { return m.Data2.Link } +func (m *TLInputMediaDocument) SetId(v *InputDocument) { m.Data2.Id_15 = v } +func (m *TLInputMediaDocument) GetId() *InputDocument { return m.Data2.Id_15 } -func (m *TLExportedMessageLink) SetHtml(v string) { m.Data2.Html = v } -func (m *TLExportedMessageLink) GetHtml() string { return m.Data2.Html } +func (m *TLInputMediaDocument) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } +func (m *TLInputMediaDocument) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } -func NewTLExportedMessageLink() *TLExportedMessageLink { - return &TLExportedMessageLink{Data2: &ExportedMessageLink_Data{}} +func NewTLInputMediaDocument() *TLInputMediaDocument { + return &TLInputMediaDocument{Data2: &InputMedia_Data{}} } -func (m *TLExportedMessageLink) Encode() []byte { +func (m *TLInputMediaDocument) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_exportedMessageLink)) + x.Int(int32(TLConstructor_CRC32_inputMediaDocument)) - x.String(m.GetLink()) - x.String(m.GetHtml()) + // flags + var flags uint32 = 0 + if m.GetTtlSeconds() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Bytes(m.GetId().Encode()) + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) + } return x.buf } -func (m *TLExportedMessageLink) EncodeToLayer(layer int) []byte { +func (m *TLInputMediaDocument) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_exportedMessageLink)) + x.Int(int32(TLConstructor_CRC32_inputMediaDocument)) - x.String(m.GetLink()) - x.String(m.GetHtml()) + // flags + var flags uint32 = 0 + if m.GetTtlSeconds() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Bytes(m.GetId().EncodeToLayer(layer)) + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) + } return x.buf } -func (m *TLExportedMessageLink) Decode(dbuf *DecodeBuf) error { - m.SetLink(dbuf.String()) - m.SetHtml(dbuf.String()) +func (m *TLInputMediaDocument) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &InputDocument{} + m2.Decode(dbuf) + m.SetId(m2) + if (flags & (1 << 0)) != 0 { + m.SetTtlSeconds(dbuf.Int()) + } return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Help_ProxyData <-- -// + TL_HelpProxyDataEmpty -// + TL_HelpProxyDataPromo -// - -func (m *Help_ProxyData) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_help_proxyDataEmpty: - t := m.To_HelpProxyDataEmpty() - return t.Encode() - case TLConstructor_CRC32_help_proxyDataPromo: - t := m.To_HelpProxyDataPromo() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia; +func (m *TLInputMediaVenue) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaVenue, + Data2: m.Data2, } } -func (m *Help_ProxyData) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_help_proxyDataEmpty: - t := m.To_HelpProxyDataEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_help_proxyDataPromo: - t := m.To_HelpProxyDataPromo() - return t.EncodeToLayer(layer) +func (m *TLInputMediaVenue) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } +func (m *TLInputMediaVenue) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLInputMediaVenue) SetTitle(v string) { m.Data2.Title = v } +func (m *TLInputMediaVenue) GetTitle() string { return m.Data2.Title } + +func (m *TLInputMediaVenue) SetAddress(v string) { m.Data2.Address = v } +func (m *TLInputMediaVenue) GetAddress() string { return m.Data2.Address } + +func (m *TLInputMediaVenue) SetProvider(v string) { m.Data2.Provider = v } +func (m *TLInputMediaVenue) GetProvider() string { return m.Data2.Provider } + +func (m *TLInputMediaVenue) SetVenueId(v string) { m.Data2.VenueId = v } +func (m *TLInputMediaVenue) GetVenueId() string { return m.Data2.VenueId } + +func (m *TLInputMediaVenue) SetVenueType(v string) { m.Data2.VenueType = v } +func (m *TLInputMediaVenue) GetVenueType() string { return m.Data2.VenueType } + +func NewTLInputMediaVenue() *TLInputMediaVenue { + return &TLInputMediaVenue{Data2: &InputMedia_Data{}} } -func (m *Help_ProxyData) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_help_proxyDataEmpty: - m2 := &TLHelpProxyDataEmpty{Data2: &Help_ProxyData_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_help_proxyDataPromo: - m2 := &TLHelpProxyDataPromo{Data2: &Help_ProxyData_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputMediaVenue) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaVenue)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetGeoPoint().Encode()) + x.String(m.GetTitle()) + x.String(m.GetAddress()) + x.String(m.GetProvider()) + x.String(m.GetVenueId()) + x.String(m.GetVenueType()) + + return x.buf } -// help.proxyDataEmpty#e09e1fb8 expires:int = help.ProxyData; -func (m *Help_ProxyData) To_HelpProxyDataEmpty() *TLHelpProxyDataEmpty { - return &TLHelpProxyDataEmpty{ - Data2: m.Data2, - } +func (m *TLInputMediaVenue) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaVenue)) + + x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) + x.String(m.GetTitle()) + x.String(m.GetAddress()) + x.String(m.GetProvider()) + x.String(m.GetVenueId()) + x.String(m.GetVenueType()) + + return x.buf } -// help.proxyDataPromo#2bf7ee23 expires:int peer:Peer chats:Vector users:Vector = help.ProxyData; -func (m *Help_ProxyData) To_HelpProxyDataPromo() *TLHelpProxyDataPromo { - return &TLHelpProxyDataPromo{ - Data2: m.Data2, - } +func (m *TLInputMediaVenue) Decode(dbuf *DecodeBuf) error { + m1 := &InputGeoPoint{} + m1.Decode(dbuf) + m.SetGeoPoint(m1) + m.SetTitle(dbuf.String()) + m.SetAddress(dbuf.String()) + m.SetProvider(dbuf.String()) + m.SetVenueId(dbuf.String()) + m.SetVenueType(dbuf.String()) + + return dbuf.err } -// help.proxyDataEmpty#e09e1fb8 expires:int = help.ProxyData; -func (m *TLHelpProxyDataEmpty) To_Help_ProxyData() *Help_ProxyData { - return &Help_ProxyData{ - Constructor: TLConstructor_CRC32_help_proxyDataEmpty, +// inputMediaGifExternal#4843b0fd url:string q:string = InputMedia; +func (m *TLInputMediaGifExternal) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaGifExternal, Data2: m.Data2, } } -func (m *TLHelpProxyDataEmpty) SetExpires(v int32) { m.Data2.Expires = v } -func (m *TLHelpProxyDataEmpty) GetExpires() int32 { return m.Data2.Expires } +func (m *TLInputMediaGifExternal) SetUrl(v string) { m.Data2.Url = v } +func (m *TLInputMediaGifExternal) GetUrl() string { return m.Data2.Url } -func NewTLHelpProxyDataEmpty() *TLHelpProxyDataEmpty { - return &TLHelpProxyDataEmpty{Data2: &Help_ProxyData_Data{}} +func (m *TLInputMediaGifExternal) SetQ(v string) { m.Data2.Q = v } +func (m *TLInputMediaGifExternal) GetQ() string { return m.Data2.Q } + +func NewTLInputMediaGifExternal() *TLInputMediaGifExternal { + return &TLInputMediaGifExternal{Data2: &InputMedia_Data{}} } -func (m *TLHelpProxyDataEmpty) Encode() []byte { +func (m *TLInputMediaGifExternal) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_proxyDataEmpty)) + x.Int(int32(TLConstructor_CRC32_inputMediaGifExternal)) - x.Int(m.GetExpires()) + x.String(m.GetUrl()) + x.String(m.GetQ()) return x.buf } -func (m *TLHelpProxyDataEmpty) EncodeToLayer(layer int) []byte { +func (m *TLInputMediaGifExternal) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_proxyDataEmpty)) + x.Int(int32(TLConstructor_CRC32_inputMediaGifExternal)) - x.Int(m.GetExpires()) + x.String(m.GetUrl()) + x.String(m.GetQ()) return x.buf } -func (m *TLHelpProxyDataEmpty) Decode(dbuf *DecodeBuf) error { - m.SetExpires(dbuf.Int()) +func (m *TLInputMediaGifExternal) Decode(dbuf *DecodeBuf) error { + m.SetUrl(dbuf.String()) + m.SetQ(dbuf.String()) return dbuf.err } -// help.proxyDataPromo#2bf7ee23 expires:int peer:Peer chats:Vector users:Vector = help.ProxyData; -func (m *TLHelpProxyDataPromo) To_Help_ProxyData() *Help_ProxyData { - return &Help_ProxyData{ - Constructor: TLConstructor_CRC32_help_proxyDataPromo, +// inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia; +func (m *TLInputMediaPhotoExternal) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaPhotoExternal, Data2: m.Data2, } } -func (m *TLHelpProxyDataPromo) SetExpires(v int32) { m.Data2.Expires = v } -func (m *TLHelpProxyDataPromo) GetExpires() int32 { return m.Data2.Expires } - -func (m *TLHelpProxyDataPromo) SetPeer(v *Peer) { m.Data2.Peer = v } -func (m *TLHelpProxyDataPromo) GetPeer() *Peer { return m.Data2.Peer } - -func (m *TLHelpProxyDataPromo) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLHelpProxyDataPromo) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLInputMediaPhotoExternal) SetUrl(v string) { m.Data2.Url = v } +func (m *TLInputMediaPhotoExternal) GetUrl() string { return m.Data2.Url } -func (m *TLHelpProxyDataPromo) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLHelpProxyDataPromo) GetUsers() []*User { return m.Data2.Users } +func (m *TLInputMediaPhotoExternal) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } +func (m *TLInputMediaPhotoExternal) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } -func NewTLHelpProxyDataPromo() *TLHelpProxyDataPromo { - return &TLHelpProxyDataPromo{Data2: &Help_ProxyData_Data{}} +func NewTLInputMediaPhotoExternal() *TLInputMediaPhotoExternal { + return &TLInputMediaPhotoExternal{Data2: &InputMedia_Data{}} } -func (m *TLHelpProxyDataPromo) Encode() []byte { +func (m *TLInputMediaPhotoExternal) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_proxyDataPromo)) + x.Int(int32(TLConstructor_CRC32_inputMediaPhotoExternal)) - x.Int(m.GetExpires()) - x.Bytes(m.GetPeer().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetTtlSeconds() != 0 { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) + x.UInt(flags) + + x.String(m.GetUrl()) + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) } return x.buf } -func (m *TLHelpProxyDataPromo) EncodeToLayer(layer int) []byte { +func (m *TLInputMediaPhotoExternal) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_proxyDataPromo)) + x.Int(int32(TLConstructor_CRC32_inputMediaPhotoExternal)) - x.Int(m.GetExpires()) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetTtlSeconds() != 0 { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + x.UInt(flags) + + x.String(m.GetUrl()) + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) } return x.buf } -func (m *TLHelpProxyDataPromo) Decode(dbuf *DecodeBuf) error { - m.SetExpires(dbuf.Int()) - m2 := &Peer{} - m2.Decode(dbuf) - m.SetPeer(m2) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Chat, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Chat{} - v3[i].Decode(dbuf) +func (m *TLInputMediaPhotoExternal) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetUrl(dbuf.String()) + if (flags & (1 << 0)) != 0 { + m.SetTtlSeconds(dbuf.Int()) } - m.SetChats(v3) - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*User, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &User{} - v4[i].Decode(dbuf) + return dbuf.err +} + +// inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia; +func (m *TLInputMediaDocumentExternal) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaDocumentExternal, + Data2: m.Data2, } - m.SetUsers(v4) +} - return dbuf.err +func (m *TLInputMediaDocumentExternal) SetUrl(v string) { m.Data2.Url = v } +func (m *TLInputMediaDocumentExternal) GetUrl() string { return m.Data2.Url } + +func (m *TLInputMediaDocumentExternal) SetTtlSeconds(v int32) { m.Data2.TtlSeconds = v } +func (m *TLInputMediaDocumentExternal) GetTtlSeconds() int32 { return m.Data2.TtlSeconds } + +func NewTLInputMediaDocumentExternal() *TLInputMediaDocumentExternal { + return &TLInputMediaDocumentExternal{Data2: &InputMedia_Data{}} } -/////////////////////////////////////////////////////////////////////////////// -// DcOption <-- -// + TL_DcOption -// +func (m *TLInputMediaDocumentExternal) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaDocumentExternal)) -func (m *DcOption) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_dcOption: - t := m.To_DcOption() - return t.Encode() + // flags + var flags uint32 = 0 + if m.GetTtlSeconds() != 0 { + flags |= 1 << 0 + } + x.UInt(flags) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + x.String(m.GetUrl()) + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) } + + return x.buf } -func (m *DcOption) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_dcOption: - t := m.To_DcOption() - return t.EncodeToLayer(layer) +func (m *TLInputMediaDocumentExternal) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaDocumentExternal)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetTtlSeconds() != 0 { + flags |= 1 << 0 } -} + x.UInt(flags) -func (m *DcOption) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_dcOption: - m2 := &TLDcOption{Data2: &DcOption_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 + x.String(m.GetUrl()) + if m.GetTtlSeconds() != 0 { + x.Int(m.GetTtlSeconds()) + } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + return x.buf +} + +func (m *TLInputMediaDocumentExternal) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetUrl(dbuf.String()) + if (flags & (1 << 0)) != 0 { + m.SetTtlSeconds(dbuf.Int()) } + return dbuf.err } -// dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption; -func (m *DcOption) To_DcOption() *TLDcOption { - return &TLDcOption{ - Data2: m.Data2, +// inputMediaGame#d33f43f3 id:InputGame = InputMedia; +func (m *TLInputMediaGame) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaGame, + Data2: m.Data2, } } -// dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption; -func (m *TLDcOption) To_DcOption() *DcOption { - return &DcOption{ - Constructor: TLConstructor_CRC32_dcOption, +func (m *TLInputMediaGame) SetId(v *InputGame) { m.Data2.Id_23 = v } +func (m *TLInputMediaGame) GetId() *InputGame { return m.Data2.Id_23 } + +func NewTLInputMediaGame() *TLInputMediaGame { + return &TLInputMediaGame{Data2: &InputMedia_Data{}} +} + +func (m *TLInputMediaGame) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaGame)) + + x.Bytes(m.GetId().Encode()) + + return x.buf +} + +func (m *TLInputMediaGame) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaGame)) + + x.Bytes(m.GetId().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLInputMediaGame) Decode(dbuf *DecodeBuf) error { + m1 := &InputGame{} + m1.Decode(dbuf) + m.SetId(m1) + + return dbuf.err +} + +// inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia; +func (m *TLInputMediaInvoice) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaInvoice, Data2: m.Data2, } } -func (m *TLDcOption) SetIpv6(v bool) { m.Data2.Ipv6 = v } -func (m *TLDcOption) GetIpv6() bool { return m.Data2.Ipv6 } - -func (m *TLDcOption) SetMediaOnly(v bool) { m.Data2.MediaOnly = v } -func (m *TLDcOption) GetMediaOnly() bool { return m.Data2.MediaOnly } +func (m *TLInputMediaInvoice) SetTitle(v string) { m.Data2.Title = v } +func (m *TLInputMediaInvoice) GetTitle() string { return m.Data2.Title } -func (m *TLDcOption) SetTcpoOnly(v bool) { m.Data2.TcpoOnly = v } -func (m *TLDcOption) GetTcpoOnly() bool { return m.Data2.TcpoOnly } +func (m *TLInputMediaInvoice) SetDescription(v string) { m.Data2.Description = v } +func (m *TLInputMediaInvoice) GetDescription() string { return m.Data2.Description } -func (m *TLDcOption) SetCdn(v bool) { m.Data2.Cdn = v } -func (m *TLDcOption) GetCdn() bool { return m.Data2.Cdn } +func (m *TLInputMediaInvoice) SetPhoto(v *InputWebDocument) { m.Data2.Photo = v } +func (m *TLInputMediaInvoice) GetPhoto() *InputWebDocument { return m.Data2.Photo } -func (m *TLDcOption) SetStatic(v bool) { m.Data2.Static = v } -func (m *TLDcOption) GetStatic() bool { return m.Data2.Static } +func (m *TLInputMediaInvoice) SetInvoice(v *Invoice) { m.Data2.Invoice = v } +func (m *TLInputMediaInvoice) GetInvoice() *Invoice { return m.Data2.Invoice } -func (m *TLDcOption) SetId(v int32) { m.Data2.Id = v } -func (m *TLDcOption) GetId() int32 { return m.Data2.Id } +func (m *TLInputMediaInvoice) SetPayload(v []byte) { m.Data2.Payload = v } +func (m *TLInputMediaInvoice) GetPayload() []byte { return m.Data2.Payload } -func (m *TLDcOption) SetIpAddress(v string) { m.Data2.IpAddress = v } -func (m *TLDcOption) GetIpAddress() string { return m.Data2.IpAddress } +func (m *TLInputMediaInvoice) SetProvider(v string) { m.Data2.Provider = v } +func (m *TLInputMediaInvoice) GetProvider() string { return m.Data2.Provider } -func (m *TLDcOption) SetPort(v int32) { m.Data2.Port = v } -func (m *TLDcOption) GetPort() int32 { return m.Data2.Port } +func (m *TLInputMediaInvoice) SetProviderData(v *DataJSON) { m.Data2.ProviderData = v } +func (m *TLInputMediaInvoice) GetProviderData() *DataJSON { return m.Data2.ProviderData } -func (m *TLDcOption) SetSecret(v []byte) { m.Data2.Secret = v } -func (m *TLDcOption) GetSecret() []byte { return m.Data2.Secret } +func (m *TLInputMediaInvoice) SetStartParam(v string) { m.Data2.StartParam = v } +func (m *TLInputMediaInvoice) GetStartParam() string { return m.Data2.StartParam } -func NewTLDcOption() *TLDcOption { - return &TLDcOption{Data2: &DcOption_Data{}} +func NewTLInputMediaInvoice() *TLInputMediaInvoice { + return &TLInputMediaInvoice{Data2: &InputMedia_Data{}} } -func (m *TLDcOption) Encode() []byte { +func (m *TLInputMediaInvoice) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dcOption)) + x.Int(int32(TLConstructor_CRC32_inputMediaInvoice)) // flags var flags uint32 = 0 - if m.GetIpv6() == true { + if m.GetPhoto() != nil { flags |= 1 << 0 } - if m.GetMediaOnly() == true { - flags |= 1 << 1 - } - if m.GetTcpoOnly() == true { - flags |= 1 << 2 - } - if m.GetCdn() == true { - flags |= 1 << 3 - } - if m.GetStatic() == true { - flags |= 1 << 4 - } - if m.GetSecret() != nil { - flags |= 1 << 10 - } x.UInt(flags) - x.Int(m.GetId()) - x.String(m.GetIpAddress()) - x.Int(m.GetPort()) - if m.GetSecret() != nil { - x.StringBytes(m.GetSecret()) + x.String(m.GetTitle()) + x.String(m.GetDescription()) + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().Encode()) } + x.Bytes(m.GetInvoice().Encode()) + x.StringBytes(m.GetPayload()) + x.String(m.GetProvider()) + x.Bytes(m.GetProviderData().Encode()) + x.String(m.GetStartParam()) return x.buf } -func (m *TLDcOption) EncodeToLayer(layer int) []byte { +func (m *TLInputMediaInvoice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dcOption)) + x.Int(int32(TLConstructor_CRC32_inputMediaInvoice)) // flags var flags uint32 = 0 - if m.GetIpv6() == true { + if m.GetPhoto() != nil { flags |= 1 << 0 } - if m.GetMediaOnly() == true { - flags |= 1 << 1 - } - if m.GetTcpoOnly() == true { - flags |= 1 << 2 - } - if m.GetCdn() == true { - flags |= 1 << 3 - } - if m.GetStatic() == true { - flags |= 1 << 4 - } - if m.GetSecret() != nil { - flags |= 1 << 10 - } x.UInt(flags) - x.Int(m.GetId()) - x.String(m.GetIpAddress()) - x.Int(m.GetPort()) - if m.GetSecret() != nil { - x.StringBytes(m.GetSecret()) + x.String(m.GetTitle()) + x.String(m.GetDescription()) + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) } + x.Bytes(m.GetInvoice().EncodeToLayer(layer)) + x.StringBytes(m.GetPayload()) + x.String(m.GetProvider()) + x.Bytes(m.GetProviderData().EncodeToLayer(layer)) + x.String(m.GetStartParam()) return x.buf } -func (m *TLDcOption) Decode(dbuf *DecodeBuf) error { +func (m *TLInputMediaInvoice) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags + m.SetTitle(dbuf.String()) + m.SetDescription(dbuf.String()) if (flags & (1 << 0)) != 0 { - m.SetIpv6(true) - } - if (flags & (1 << 1)) != 0 { - m.SetMediaOnly(true) - } - if (flags & (1 << 2)) != 0 { - m.SetTcpoOnly(true) - } - if (flags & (1 << 3)) != 0 { - m.SetCdn(true) - } - if (flags & (1 << 4)) != 0 { - m.SetStatic(true) + m4 := &InputWebDocument{} + m4.Decode(dbuf) + m.SetPhoto(m4) } - m.SetId(dbuf.Int()) - m.SetIpAddress(dbuf.String()) - m.SetPort(dbuf.Int()) - if (flags & (1 << 10)) != 0 { - m.SetSecret(dbuf.StringBytes()) + m5 := &Invoice{} + m5.Decode(dbuf) + m.SetInvoice(m5) + m.SetPayload(dbuf.StringBytes()) + m.SetProvider(dbuf.String()) + m8 := &DataJSON{} + m8.Decode(dbuf) + m.SetProviderData(m8) + m.SetStartParam(dbuf.String()) + + return dbuf.err +} + +// inputMediaGeoLive#7b1a118f geo_point:InputGeoPoint period:int = InputMedia; +func (m *TLInputMediaGeoLive) To_InputMedia() *InputMedia { + return &InputMedia{ + Constructor: TLConstructor_CRC32_inputMediaGeoLive, + Data2: m.Data2, } +} + +func (m *TLInputMediaGeoLive) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } +func (m *TLInputMediaGeoLive) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } + +func (m *TLInputMediaGeoLive) SetPeriod(v int32) { m.Data2.Period = v } +func (m *TLInputMediaGeoLive) GetPeriod() int32 { return m.Data2.Period } + +func NewTLInputMediaGeoLive() *TLInputMediaGeoLive { + return &TLInputMediaGeoLive{Data2: &InputMedia_Data{}} +} + +func (m *TLInputMediaGeoLive) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaGeoLive)) + + x.Bytes(m.GetGeoPoint().Encode()) + x.Int(m.GetPeriod()) + + return x.buf +} + +func (m *TLInputMediaGeoLive) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputMediaGeoLive)) + + x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) + x.Int(m.GetPeriod()) + + return x.buf +} + +func (m *TLInputMediaGeoLive) Decode(dbuf *DecodeBuf) error { + m1 := &InputGeoPoint{} + m1.Decode(dbuf) + m.SetGeoPoint(m1) + m.SetPeriod(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// ChatInvite <-- -// + TL_ChatInviteAlready -// + TL_ChatInvite +// InputAppEvent <-- +// + TL_InputAppEvent // -func (m *ChatInvite) Encode() []byte { +func (m *InputAppEvent) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_chatInviteAlready: - t := m.To_ChatInviteAlready() - return t.Encode() - case TLConstructor_CRC32_chatInvite: - t := m.To_ChatInvite() + case TLConstructor_CRC32_inputAppEvent: + t := m.To_InputAppEvent() return t.Encode() default: @@ -49036,14 +50146,11 @@ func (m *ChatInvite) Encode() []byte { } } -func (m *ChatInvite) EncodeToLayer(layer int) []byte { +func (m *InputAppEvent) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_chatInviteAlready: - t := m.To_ChatInviteAlready() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_chatInvite: - t := m.To_ChatInvite() + case TLConstructor_CRC32_inputAppEvent: + t := m.To_InputAppEvent() return t.EncodeToLayer(layer) default: @@ -49052,15 +50159,11 @@ func (m *ChatInvite) EncodeToLayer(layer int) []byte { } } -func (m *ChatInvite) Decode(dbuf *DecodeBuf) error { +func (m *InputAppEvent) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_chatInviteAlready: - m2 := &TLChatInviteAlready{Data2: &ChatInvite_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_chatInvite: - m2 := &TLChatInvite{Data2: &ChatInvite_Data{}} + case TLConstructor_CRC32_inputAppEvent: + m2 := &TLInputAppEvent{Data2: &InputAppEvent_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -49070,245 +50173,105 @@ func (m *ChatInvite) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// chatInviteAlready#5a686d7c chat:Chat = ChatInvite; -func (m *ChatInvite) To_ChatInviteAlready() *TLChatInviteAlready { - return &TLChatInviteAlready{ - Data2: m.Data2, - } -} - -// chatInvite#db74f558 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:ChatPhoto participants_count:int participants:flags.4?Vector = ChatInvite; -func (m *ChatInvite) To_ChatInvite() *TLChatInvite { - return &TLChatInvite{ +// inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent; +func (m *InputAppEvent) To_InputAppEvent() *TLInputAppEvent { + return &TLInputAppEvent{ Data2: m.Data2, } } -// chatInviteAlready#5a686d7c chat:Chat = ChatInvite; -func (m *TLChatInviteAlready) To_ChatInvite() *ChatInvite { - return &ChatInvite{ - Constructor: TLConstructor_CRC32_chatInviteAlready, +// inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent; +func (m *TLInputAppEvent) To_InputAppEvent() *InputAppEvent { + return &InputAppEvent{ + Constructor: TLConstructor_CRC32_inputAppEvent, Data2: m.Data2, } } -func (m *TLChatInviteAlready) SetChat(v *Chat) { m.Data2.Chat = v } -func (m *TLChatInviteAlready) GetChat() *Chat { return m.Data2.Chat } +func (m *TLInputAppEvent) SetTime(v float64) { m.Data2.Time = v } +func (m *TLInputAppEvent) GetTime() float64 { return m.Data2.Time } -func NewTLChatInviteAlready() *TLChatInviteAlready { - return &TLChatInviteAlready{Data2: &ChatInvite_Data{}} +func (m *TLInputAppEvent) SetType(v string) { m.Data2.Type = v } +func (m *TLInputAppEvent) GetType() string { return m.Data2.Type } + +func (m *TLInputAppEvent) SetPeer(v int64) { m.Data2.Peer = v } +func (m *TLInputAppEvent) GetPeer() int64 { return m.Data2.Peer } + +func (m *TLInputAppEvent) SetData(v string) { m.Data2.Data = v } +func (m *TLInputAppEvent) GetData() string { return m.Data2.Data } + +func NewTLInputAppEvent() *TLInputAppEvent { + return &TLInputAppEvent{Data2: &InputAppEvent_Data{}} } -func (m *TLChatInviteAlready) Encode() []byte { +func (m *TLInputAppEvent) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatInviteAlready)) + x.Int(int32(TLConstructor_CRC32_inputAppEvent)) - x.Bytes(m.GetChat().Encode()) + x.Double(m.GetTime()) + x.String(m.GetType()) + x.Long(m.GetPeer()) + x.String(m.GetData()) return x.buf } -func (m *TLChatInviteAlready) EncodeToLayer(layer int) []byte { +func (m *TLInputAppEvent) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatInviteAlready)) + x.Int(int32(TLConstructor_CRC32_inputAppEvent)) - x.Bytes(m.GetChat().EncodeToLayer(layer)) + x.Double(m.GetTime()) + x.String(m.GetType()) + x.Long(m.GetPeer()) + x.String(m.GetData()) return x.buf } -func (m *TLChatInviteAlready) Decode(dbuf *DecodeBuf) error { - m1 := &Chat{} - m1.Decode(dbuf) - m.SetChat(m1) +func (m *TLInputAppEvent) Decode(dbuf *DecodeBuf) error { + m.SetTime(dbuf.Double()) + m.SetType(dbuf.String()) + m.SetPeer(dbuf.Long()) + m.SetData(dbuf.String()) return dbuf.err } -// chatInvite#db74f558 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:ChatPhoto participants_count:int participants:flags.4?Vector = ChatInvite; -func (m *TLChatInvite) To_ChatInvite() *ChatInvite { - return &ChatInvite{ - Constructor: TLConstructor_CRC32_chatInvite, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// Config <-- +// + TL_Config +// + +func (m *Config) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_config: + t := m.To_Config() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLChatInvite) SetChannel(v bool) { m.Data2.Channel = v } -func (m *TLChatInvite) GetChannel() bool { return m.Data2.Channel } - -func (m *TLChatInvite) SetBroadcast(v bool) { m.Data2.Broadcast = v } -func (m *TLChatInvite) GetBroadcast() bool { return m.Data2.Broadcast } +func (m *Config) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_config: + t := m.To_Config() + return t.EncodeToLayer(layer) -func (m *TLChatInvite) SetPublic(v bool) { m.Data2.Public = v } -func (m *TLChatInvite) GetPublic() bool { return m.Data2.Public } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLChatInvite) SetMegagroup(v bool) { m.Data2.Megagroup = v } -func (m *TLChatInvite) GetMegagroup() bool { return m.Data2.Megagroup } - -func (m *TLChatInvite) SetTitle(v string) { m.Data2.Title = v } -func (m *TLChatInvite) GetTitle() string { return m.Data2.Title } - -func (m *TLChatInvite) SetPhoto(v *ChatPhoto) { m.Data2.Photo = v } -func (m *TLChatInvite) GetPhoto() *ChatPhoto { return m.Data2.Photo } - -func (m *TLChatInvite) SetParticipantsCount(v int32) { m.Data2.ParticipantsCount = v } -func (m *TLChatInvite) GetParticipantsCount() int32 { return m.Data2.ParticipantsCount } - -func (m *TLChatInvite) SetParticipants(v []*User) { m.Data2.Participants = v } -func (m *TLChatInvite) GetParticipants() []*User { return m.Data2.Participants } - -func NewTLChatInvite() *TLChatInvite { - return &TLChatInvite{Data2: &ChatInvite_Data{}} -} - -func (m *TLChatInvite) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatInvite)) - - // flags - var flags uint32 = 0 - if m.GetChannel() == true { - flags |= 1 << 0 - } - if m.GetBroadcast() == true { - flags |= 1 << 1 - } - if m.GetPublic() == true { - flags |= 1 << 2 - } - if m.GetMegagroup() == true { - flags |= 1 << 3 - } - if m.GetParticipants() != nil { - flags |= 1 << 4 - } - x.UInt(flags) - - x.String(m.GetTitle()) - x.Bytes(m.GetPhoto().Encode()) - x.Int(m.GetParticipantsCount()) - if m.GetParticipants() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParticipants()))) - for _, v := range m.GetParticipants() { - x.buf = append(x.buf, (*v).Encode()...) - } - } - - return x.buf -} - -func (m *TLChatInvite) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatInvite)) - - // flags - var flags uint32 = 0 - if m.GetChannel() == true { - flags |= 1 << 0 - } - if m.GetBroadcast() == true { - flags |= 1 << 1 - } - if m.GetPublic() == true { - flags |= 1 << 2 - } - if m.GetMegagroup() == true { - flags |= 1 << 3 - } - if m.GetParticipants() != nil { - flags |= 1 << 4 - } - x.UInt(flags) - - x.String(m.GetTitle()) - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - x.Int(m.GetParticipantsCount()) - if m.GetParticipants() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParticipants()))) - for _, v := range m.GetParticipants() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } - - return x.buf -} - -func (m *TLChatInvite) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetChannel(true) - } - if (flags & (1 << 1)) != 0 { - m.SetBroadcast(true) - } - if (flags & (1 << 2)) != 0 { - m.SetPublic(true) - } - if (flags & (1 << 3)) != 0 { - m.SetMegagroup(true) - } - m.SetTitle(dbuf.String()) - m7 := &ChatPhoto{} - m7.Decode(dbuf) - m.SetPhoto(m7) - m.SetParticipantsCount(dbuf.Int()) - if (flags & (1 << 4)) != 0 { - c9 := dbuf.Int() - if c9 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 9, c9) - return dbuf.err - } - l9 := dbuf.Int() - v9 := make([]*User, l9) - for i := int32(0); i < l9; i++ { - v9[i] = &User{} - v9[i].Decode(dbuf) - } - m.SetParticipants(v9) - - } - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// InputClientProxy <-- -// + TL_InputClientProxy -// - -func (m *InputClientProxy) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputClientProxy: - t := m.To_InputClientProxy() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *InputClientProxy) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputClientProxy: - t := m.To_InputClientProxy() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *InputClientProxy) Decode(dbuf *DecodeBuf) error { +func (m *Config) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputClientProxy: - m2 := &TLInputClientProxy{Data2: &InputClientProxy_Data{}} + case TLConstructor_CRC32_config: + m2 := &TLConfig{Data2: &Config_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -49318,453 +50281,511 @@ func (m *InputClientProxy) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputClientProxy#75588b3f address:string port:int = InputClientProxy; -func (m *InputClientProxy) To_InputClientProxy() *TLInputClientProxy { - return &TLInputClientProxy{ +// config#3213dbba flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int = Config; +func (m *Config) To_Config() *TLConfig { + return &TLConfig{ Data2: m.Data2, } } -// inputClientProxy#75588b3f address:string port:int = InputClientProxy; -func (m *TLInputClientProxy) To_InputClientProxy() *InputClientProxy { - return &InputClientProxy{ - Constructor: TLConstructor_CRC32_inputClientProxy, +// config#3213dbba flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int = Config; +func (m *TLConfig) To_Config() *Config { + return &Config{ + Constructor: TLConstructor_CRC32_config, Data2: m.Data2, } } -func (m *TLInputClientProxy) SetAddress(v string) { m.Data2.Address = v } -func (m *TLInputClientProxy) GetAddress() string { return m.Data2.Address } - -func (m *TLInputClientProxy) SetPort(v int32) { m.Data2.Port = v } -func (m *TLInputClientProxy) GetPort() int32 { return m.Data2.Port } +func (m *TLConfig) SetPhonecallsEnabled(v bool) { m.Data2.PhonecallsEnabled = v } +func (m *TLConfig) GetPhonecallsEnabled() bool { return m.Data2.PhonecallsEnabled } -func NewTLInputClientProxy() *TLInputClientProxy { - return &TLInputClientProxy{Data2: &InputClientProxy_Data{}} -} +func (m *TLConfig) SetDefaultP2PContacts(v bool) { m.Data2.DefaultP2PContacts = v } +func (m *TLConfig) GetDefaultP2PContacts() bool { return m.Data2.DefaultP2PContacts } -func (m *TLInputClientProxy) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputClientProxy)) +func (m *TLConfig) SetPreloadFeaturedStickers(v bool) { m.Data2.PreloadFeaturedStickers = v } +func (m *TLConfig) GetPreloadFeaturedStickers() bool { return m.Data2.PreloadFeaturedStickers } - x.String(m.GetAddress()) - x.Int(m.GetPort()) +func (m *TLConfig) SetIgnorePhoneEntities(v bool) { m.Data2.IgnorePhoneEntities = v } +func (m *TLConfig) GetIgnorePhoneEntities() bool { return m.Data2.IgnorePhoneEntities } - return x.buf -} +func (m *TLConfig) SetRevokePmInbox(v bool) { m.Data2.RevokePmInbox = v } +func (m *TLConfig) GetRevokePmInbox() bool { return m.Data2.RevokePmInbox } -func (m *TLInputClientProxy) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputClientProxy)) +func (m *TLConfig) SetBlockedMode(v bool) { m.Data2.BlockedMode = v } +func (m *TLConfig) GetBlockedMode() bool { return m.Data2.BlockedMode } - x.String(m.GetAddress()) - x.Int(m.GetPort()) +func (m *TLConfig) SetDate(v int32) { m.Data2.Date = v } +func (m *TLConfig) GetDate() int32 { return m.Data2.Date } - return x.buf -} +func (m *TLConfig) SetExpires(v int32) { m.Data2.Expires = v } +func (m *TLConfig) GetExpires() int32 { return m.Data2.Expires } -func (m *TLInputClientProxy) Decode(dbuf *DecodeBuf) error { - m.SetAddress(dbuf.String()) - m.SetPort(dbuf.Int()) +func (m *TLConfig) SetTestMode(v *Bool) { m.Data2.TestMode = v } +func (m *TLConfig) GetTestMode() *Bool { return m.Data2.TestMode } - return dbuf.err -} +func (m *TLConfig) SetThisDc(v int32) { m.Data2.ThisDc = v } +func (m *TLConfig) GetThisDc() int32 { return m.Data2.ThisDc } -/////////////////////////////////////////////////////////////////////////////// -// True <-- -// + TL_True -// +func (m *TLConfig) SetDcOptions(v []*DcOption) { m.Data2.DcOptions = v } +func (m *TLConfig) GetDcOptions() []*DcOption { return m.Data2.DcOptions } -func (m *True) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_true: - t := m.To_True() - return t.Encode() +func (m *TLConfig) SetDcTxtDomainName(v string) { m.Data2.DcTxtDomainName = v } +func (m *TLConfig) GetDcTxtDomainName() string { return m.Data2.DcTxtDomainName } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLConfig) SetChatSizeMax(v int32) { m.Data2.ChatSizeMax = v } +func (m *TLConfig) GetChatSizeMax() int32 { return m.Data2.ChatSizeMax } -func (m *True) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_true: - t := m.To_True() - return t.EncodeToLayer(layer) +func (m *TLConfig) SetMegagroupSizeMax(v int32) { m.Data2.MegagroupSizeMax = v } +func (m *TLConfig) GetMegagroupSizeMax() int32 { return m.Data2.MegagroupSizeMax } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLConfig) SetForwardedCountMax(v int32) { m.Data2.ForwardedCountMax = v } +func (m *TLConfig) GetForwardedCountMax() int32 { return m.Data2.ForwardedCountMax } -func (m *True) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_true: - m2 := &TLTrue{Data2: &True_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLConfig) SetOnlineUpdatePeriodMs(v int32) { m.Data2.OnlineUpdatePeriodMs = v } +func (m *TLConfig) GetOnlineUpdatePeriodMs() int32 { return m.Data2.OnlineUpdatePeriodMs } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} +func (m *TLConfig) SetOfflineBlurTimeoutMs(v int32) { m.Data2.OfflineBlurTimeoutMs = v } +func (m *TLConfig) GetOfflineBlurTimeoutMs() int32 { return m.Data2.OfflineBlurTimeoutMs } -// true#3fedd339 = True; -func (m *True) To_True() *TLTrue { - return &TLTrue{ - Data2: m.Data2, - } -} +func (m *TLConfig) SetOfflineIdleTimeoutMs(v int32) { m.Data2.OfflineIdleTimeoutMs = v } +func (m *TLConfig) GetOfflineIdleTimeoutMs() int32 { return m.Data2.OfflineIdleTimeoutMs } -// true#3fedd339 = True; -func (m *TLTrue) To_True() *True { - return &True{ - Constructor: TLConstructor_CRC32_true, - Data2: m.Data2, - } -} +func (m *TLConfig) SetOnlineCloudTimeoutMs(v int32) { m.Data2.OnlineCloudTimeoutMs = v } +func (m *TLConfig) GetOnlineCloudTimeoutMs() int32 { return m.Data2.OnlineCloudTimeoutMs } -func NewTLTrue() *TLTrue { - return &TLTrue{Data2: &True_Data{}} -} +func (m *TLConfig) SetNotifyCloudDelayMs(v int32) { m.Data2.NotifyCloudDelayMs = v } +func (m *TLConfig) GetNotifyCloudDelayMs() int32 { return m.Data2.NotifyCloudDelayMs } -func (m *TLTrue) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_true)) +func (m *TLConfig) SetNotifyDefaultDelayMs(v int32) { m.Data2.NotifyDefaultDelayMs = v } +func (m *TLConfig) GetNotifyDefaultDelayMs() int32 { return m.Data2.NotifyDefaultDelayMs } - return x.buf -} +func (m *TLConfig) SetPushChatPeriodMs(v int32) { m.Data2.PushChatPeriodMs = v } +func (m *TLConfig) GetPushChatPeriodMs() int32 { return m.Data2.PushChatPeriodMs } -func (m *TLTrue) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_true)) +func (m *TLConfig) SetPushChatLimit(v int32) { m.Data2.PushChatLimit = v } +func (m *TLConfig) GetPushChatLimit() int32 { return m.Data2.PushChatLimit } - return x.buf -} +func (m *TLConfig) SetSavedGifsLimit(v int32) { m.Data2.SavedGifsLimit = v } +func (m *TLConfig) GetSavedGifsLimit() int32 { return m.Data2.SavedGifsLimit } -func (m *TLTrue) Decode(dbuf *DecodeBuf) error { +func (m *TLConfig) SetEditTimeLimit(v int32) { m.Data2.EditTimeLimit = v } +func (m *TLConfig) GetEditTimeLimit() int32 { return m.Data2.EditTimeLimit } - return dbuf.err -} +func (m *TLConfig) SetRevokeTimeLimit(v int32) { m.Data2.RevokeTimeLimit = v } +func (m *TLConfig) GetRevokeTimeLimit() int32 { return m.Data2.RevokeTimeLimit } -/////////////////////////////////////////////////////////////////////////////// -// ContactBlocked <-- -// + TL_ContactBlocked -// +func (m *TLConfig) SetRevokePmTimeLimit(v int32) { m.Data2.RevokePmTimeLimit = v } +func (m *TLConfig) GetRevokePmTimeLimit() int32 { return m.Data2.RevokePmTimeLimit } -func (m *ContactBlocked) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_contactBlocked: - t := m.To_ContactBlocked() - return t.Encode() +func (m *TLConfig) SetRatingEDecay(v int32) { m.Data2.RatingEDecay = v } +func (m *TLConfig) GetRatingEDecay() int32 { return m.Data2.RatingEDecay } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLConfig) SetStickersRecentLimit(v int32) { m.Data2.StickersRecentLimit = v } +func (m *TLConfig) GetStickersRecentLimit() int32 { return m.Data2.StickersRecentLimit } -func (m *ContactBlocked) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_contactBlocked: - t := m.To_ContactBlocked() - return t.EncodeToLayer(layer) +func (m *TLConfig) SetStickersFavedLimit(v int32) { m.Data2.StickersFavedLimit = v } +func (m *TLConfig) GetStickersFavedLimit() int32 { return m.Data2.StickersFavedLimit } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLConfig) SetChannelsReadMediaPeriod(v int32) { m.Data2.ChannelsReadMediaPeriod = v } +func (m *TLConfig) GetChannelsReadMediaPeriod() int32 { return m.Data2.ChannelsReadMediaPeriod } -func (m *ContactBlocked) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_contactBlocked: - m2 := &TLContactBlocked{Data2: &ContactBlocked_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLConfig) SetTmpSessions(v int32) { m.Data2.TmpSessions = v } +func (m *TLConfig) GetTmpSessions() int32 { return m.Data2.TmpSessions } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} +func (m *TLConfig) SetPinnedDialogsCountMax(v int32) { m.Data2.PinnedDialogsCountMax = v } +func (m *TLConfig) GetPinnedDialogsCountMax() int32 { return m.Data2.PinnedDialogsCountMax } -// contactBlocked#561bc879 user_id:int date:int = ContactBlocked; -func (m *ContactBlocked) To_ContactBlocked() *TLContactBlocked { - return &TLContactBlocked{ - Data2: m.Data2, - } -} +func (m *TLConfig) SetCallReceiveTimeoutMs(v int32) { m.Data2.CallReceiveTimeoutMs = v } +func (m *TLConfig) GetCallReceiveTimeoutMs() int32 { return m.Data2.CallReceiveTimeoutMs } -// contactBlocked#561bc879 user_id:int date:int = ContactBlocked; -func (m *TLContactBlocked) To_ContactBlocked() *ContactBlocked { - return &ContactBlocked{ - Constructor: TLConstructor_CRC32_contactBlocked, - Data2: m.Data2, - } -} +func (m *TLConfig) SetCallRingTimeoutMs(v int32) { m.Data2.CallRingTimeoutMs = v } +func (m *TLConfig) GetCallRingTimeoutMs() int32 { return m.Data2.CallRingTimeoutMs } -func (m *TLContactBlocked) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLContactBlocked) GetUserId() int32 { return m.Data2.UserId } +func (m *TLConfig) SetCallConnectTimeoutMs(v int32) { m.Data2.CallConnectTimeoutMs = v } +func (m *TLConfig) GetCallConnectTimeoutMs() int32 { return m.Data2.CallConnectTimeoutMs } -func (m *TLContactBlocked) SetDate(v int32) { m.Data2.Date = v } -func (m *TLContactBlocked) GetDate() int32 { return m.Data2.Date } +func (m *TLConfig) SetCallPacketTimeoutMs(v int32) { m.Data2.CallPacketTimeoutMs = v } +func (m *TLConfig) GetCallPacketTimeoutMs() int32 { return m.Data2.CallPacketTimeoutMs } -func NewTLContactBlocked() *TLContactBlocked { - return &TLContactBlocked{Data2: &ContactBlocked_Data{}} -} +func (m *TLConfig) SetMeUrlPrefix(v string) { m.Data2.MeUrlPrefix = v } +func (m *TLConfig) GetMeUrlPrefix() string { return m.Data2.MeUrlPrefix } -func (m *TLContactBlocked) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactBlocked)) +func (m *TLConfig) SetAutoupdateUrlPrefix(v string) { m.Data2.AutoupdateUrlPrefix = v } +func (m *TLConfig) GetAutoupdateUrlPrefix() string { return m.Data2.AutoupdateUrlPrefix } - x.Int(m.GetUserId()) - x.Int(m.GetDate()) +func (m *TLConfig) SetGifSearchUsername(v string) { m.Data2.GifSearchUsername = v } +func (m *TLConfig) GetGifSearchUsername() string { return m.Data2.GifSearchUsername } - return x.buf -} +func (m *TLConfig) SetVenueSearchUsername(v string) { m.Data2.VenueSearchUsername = v } +func (m *TLConfig) GetVenueSearchUsername() string { return m.Data2.VenueSearchUsername } -func (m *TLContactBlocked) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contactBlocked)) +func (m *TLConfig) SetImgSearchUsername(v string) { m.Data2.ImgSearchUsername = v } +func (m *TLConfig) GetImgSearchUsername() string { return m.Data2.ImgSearchUsername } - x.Int(m.GetUserId()) - x.Int(m.GetDate()) +func (m *TLConfig) SetStaticMapsProvider(v string) { m.Data2.StaticMapsProvider = v } +func (m *TLConfig) GetStaticMapsProvider() string { return m.Data2.StaticMapsProvider } - return x.buf -} +func (m *TLConfig) SetCaptionLengthMax(v int32) { m.Data2.CaptionLengthMax = v } +func (m *TLConfig) GetCaptionLengthMax() int32 { return m.Data2.CaptionLengthMax } -func (m *TLContactBlocked) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetDate(dbuf.Int()) +func (m *TLConfig) SetMessageLengthMax(v int32) { m.Data2.MessageLengthMax = v } +func (m *TLConfig) GetMessageLengthMax() int32 { return m.Data2.MessageLengthMax } - return dbuf.err -} +func (m *TLConfig) SetWebfileDcId(v int32) { m.Data2.WebfileDcId = v } +func (m *TLConfig) GetWebfileDcId() int32 { return m.Data2.WebfileDcId } -/////////////////////////////////////////////////////////////////////////////// -// Auth_CodeType <-- -// + TL_AuthCodeTypeSms -// + TL_AuthCodeTypeCall -// + TL_AuthCodeTypeFlashCall -// +func (m *TLConfig) SetSuggestedLangCode(v string) { m.Data2.SuggestedLangCode = v } +func (m *TLConfig) GetSuggestedLangCode() string { return m.Data2.SuggestedLangCode } -func (m *Auth_CodeType) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_auth_codeTypeSms: - t := m.To_AuthCodeTypeSms() - return t.Encode() - case TLConstructor_CRC32_auth_codeTypeCall: - t := m.To_AuthCodeTypeCall() - return t.Encode() - case TLConstructor_CRC32_auth_codeTypeFlashCall: - t := m.To_AuthCodeTypeFlashCall() - return t.Encode() +func (m *TLConfig) SetLangPackVersion(v int32) { m.Data2.LangPackVersion = v } +func (m *TLConfig) GetLangPackVersion() int32 { return m.Data2.LangPackVersion } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLConfig() *TLConfig { + return &TLConfig{Data2: &Config_Data{}} } -func (m *Auth_CodeType) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_auth_codeTypeSms: - t := m.To_AuthCodeTypeSms() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_auth_codeTypeCall: - t := m.To_AuthCodeTypeCall() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_auth_codeTypeFlashCall: - t := m.To_AuthCodeTypeFlashCall() - return t.EncodeToLayer(layer) +func (m *TLConfig) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_config)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetPhonecallsEnabled() == true { + flags |= 1 << 1 } -} - -func (m *Auth_CodeType) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_auth_codeTypeSms: - m2 := &TLAuthCodeTypeSms{Data2: &Auth_CodeType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_auth_codeTypeCall: - m2 := &TLAuthCodeTypeCall{Data2: &Auth_CodeType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_auth_codeTypeFlashCall: - m2 := &TLAuthCodeTypeFlashCall{Data2: &Auth_CodeType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + if m.GetDefaultP2PContacts() == true { + flags |= 1 << 3 } - return dbuf.err -} - -// auth.codeTypeSms#72a3158c = auth.CodeType; -func (m *Auth_CodeType) To_AuthCodeTypeSms() *TLAuthCodeTypeSms { - return &TLAuthCodeTypeSms{ - Data2: m.Data2, + if m.GetPreloadFeaturedStickers() == true { + flags |= 1 << 4 } -} - -// auth.codeTypeCall#741cd3e3 = auth.CodeType; -func (m *Auth_CodeType) To_AuthCodeTypeCall() *TLAuthCodeTypeCall { - return &TLAuthCodeTypeCall{ - Data2: m.Data2, + if m.GetIgnorePhoneEntities() == true { + flags |= 1 << 5 } -} - -// auth.codeTypeFlashCall#226ccefb = auth.CodeType; -func (m *Auth_CodeType) To_AuthCodeTypeFlashCall() *TLAuthCodeTypeFlashCall { - return &TLAuthCodeTypeFlashCall{ - Data2: m.Data2, + if m.GetRevokePmInbox() == true { + flags |= 1 << 6 } -} - -// auth.codeTypeSms#72a3158c = auth.CodeType; -func (m *TLAuthCodeTypeSms) To_Auth_CodeType() *Auth_CodeType { - return &Auth_CodeType{ - Constructor: TLConstructor_CRC32_auth_codeTypeSms, - Data2: m.Data2, + if m.GetBlockedMode() == true { + flags |= 1 << 8 } -} - -func NewTLAuthCodeTypeSms() *TLAuthCodeTypeSms { - return &TLAuthCodeTypeSms{Data2: &Auth_CodeType_Data{}} -} - -func (m *TLAuthCodeTypeSms) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_codeTypeSms)) - - return x.buf -} - -func (m *TLAuthCodeTypeSms) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_codeTypeSms)) - - return x.buf -} - -func (m *TLAuthCodeTypeSms) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// auth.codeTypeCall#741cd3e3 = auth.CodeType; -func (m *TLAuthCodeTypeCall) To_Auth_CodeType() *Auth_CodeType { - return &Auth_CodeType{ - Constructor: TLConstructor_CRC32_auth_codeTypeCall, - Data2: m.Data2, + if m.GetTmpSessions() != 0 { + flags |= 1 << 0 } -} - -func NewTLAuthCodeTypeCall() *TLAuthCodeTypeCall { - return &TLAuthCodeTypeCall{Data2: &Auth_CodeType_Data{}} -} + if m.GetAutoupdateUrlPrefix() != "" { + flags |= 1 << 7 + } + if m.GetGifSearchUsername() != "" { + flags |= 1 << 9 + } + if m.GetVenueSearchUsername() != "" { + flags |= 1 << 10 + } + if m.GetImgSearchUsername() != "" { + flags |= 1 << 11 + } + if m.GetStaticMapsProvider() != "" { + flags |= 1 << 12 + } + if m.GetSuggestedLangCode() != "" { + flags |= 1 << 2 + } + if m.GetLangPackVersion() != 0 { + flags |= 1 << 2 + } + x.UInt(flags) -func (m *TLAuthCodeTypeCall) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_codeTypeCall)) + x.Int(m.GetDate()) + x.Int(m.GetExpires()) + x.Bytes(m.GetTestMode().Encode()) + x.Int(m.GetThisDc()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDcOptions()))) + for _, v := range m.GetDcOptions() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.String(m.GetDcTxtDomainName()) + x.Int(m.GetChatSizeMax()) + x.Int(m.GetMegagroupSizeMax()) + x.Int(m.GetForwardedCountMax()) + x.Int(m.GetOnlineUpdatePeriodMs()) + x.Int(m.GetOfflineBlurTimeoutMs()) + x.Int(m.GetOfflineIdleTimeoutMs()) + x.Int(m.GetOnlineCloudTimeoutMs()) + x.Int(m.GetNotifyCloudDelayMs()) + x.Int(m.GetNotifyDefaultDelayMs()) + x.Int(m.GetPushChatPeriodMs()) + x.Int(m.GetPushChatLimit()) + x.Int(m.GetSavedGifsLimit()) + x.Int(m.GetEditTimeLimit()) + x.Int(m.GetRevokeTimeLimit()) + x.Int(m.GetRevokePmTimeLimit()) + x.Int(m.GetRatingEDecay()) + x.Int(m.GetStickersRecentLimit()) + x.Int(m.GetStickersFavedLimit()) + x.Int(m.GetChannelsReadMediaPeriod()) + if m.GetTmpSessions() != 0 { + x.Int(m.GetTmpSessions()) + } + x.Int(m.GetPinnedDialogsCountMax()) + x.Int(m.GetCallReceiveTimeoutMs()) + x.Int(m.GetCallRingTimeoutMs()) + x.Int(m.GetCallConnectTimeoutMs()) + x.Int(m.GetCallPacketTimeoutMs()) + x.String(m.GetMeUrlPrefix()) + if m.GetAutoupdateUrlPrefix() != "" { + x.String(m.GetAutoupdateUrlPrefix()) + } + if m.GetGifSearchUsername() != "" { + x.String(m.GetGifSearchUsername()) + } + if m.GetVenueSearchUsername() != "" { + x.String(m.GetVenueSearchUsername()) + } + if m.GetImgSearchUsername() != "" { + x.String(m.GetImgSearchUsername()) + } + if m.GetStaticMapsProvider() != "" { + x.String(m.GetStaticMapsProvider()) + } + x.Int(m.GetCaptionLengthMax()) + x.Int(m.GetMessageLengthMax()) + x.Int(m.GetWebfileDcId()) + if m.GetSuggestedLangCode() != "" { + x.String(m.GetSuggestedLangCode()) + } + if m.GetLangPackVersion() != 0 { + x.Int(m.GetLangPackVersion()) + } return x.buf } -func (m *TLAuthCodeTypeCall) EncodeToLayer(layer int) []byte { +func (m *TLConfig) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_codeTypeCall)) - - return x.buf -} - -func (m *TLAuthCodeTypeCall) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_config)) -// auth.codeTypeFlashCall#226ccefb = auth.CodeType; -func (m *TLAuthCodeTypeFlashCall) To_Auth_CodeType() *Auth_CodeType { - return &Auth_CodeType{ - Constructor: TLConstructor_CRC32_auth_codeTypeFlashCall, - Data2: m.Data2, + // flags + var flags uint32 = 0 + if m.GetPhonecallsEnabled() == true { + flags |= 1 << 1 } -} - -func NewTLAuthCodeTypeFlashCall() *TLAuthCodeTypeFlashCall { - return &TLAuthCodeTypeFlashCall{Data2: &Auth_CodeType_Data{}} -} + if m.GetDefaultP2PContacts() == true { + flags |= 1 << 3 + } + if m.GetPreloadFeaturedStickers() == true { + flags |= 1 << 4 + } + if m.GetIgnorePhoneEntities() == true { + flags |= 1 << 5 + } + if m.GetRevokePmInbox() == true { + flags |= 1 << 6 + } + if m.GetBlockedMode() == true { + flags |= 1 << 8 + } + if m.GetTmpSessions() != 0 { + flags |= 1 << 0 + } + if m.GetAutoupdateUrlPrefix() != "" { + flags |= 1 << 7 + } + if m.GetGifSearchUsername() != "" { + flags |= 1 << 9 + } + if m.GetVenueSearchUsername() != "" { + flags |= 1 << 10 + } + if m.GetImgSearchUsername() != "" { + flags |= 1 << 11 + } + if m.GetStaticMapsProvider() != "" { + flags |= 1 << 12 + } + if m.GetSuggestedLangCode() != "" { + flags |= 1 << 2 + } + if m.GetLangPackVersion() != 0 { + flags |= 1 << 2 + } + x.UInt(flags) -func (m *TLAuthCodeTypeFlashCall) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_codeTypeFlashCall)) + x.Int(m.GetDate()) + x.Int(m.GetExpires()) + x.Bytes(m.GetTestMode().EncodeToLayer(layer)) + x.Int(m.GetThisDc()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDcOptions()))) + for _, v := range m.GetDcOptions() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.String(m.GetDcTxtDomainName()) + x.Int(m.GetChatSizeMax()) + x.Int(m.GetMegagroupSizeMax()) + x.Int(m.GetForwardedCountMax()) + x.Int(m.GetOnlineUpdatePeriodMs()) + x.Int(m.GetOfflineBlurTimeoutMs()) + x.Int(m.GetOfflineIdleTimeoutMs()) + x.Int(m.GetOnlineCloudTimeoutMs()) + x.Int(m.GetNotifyCloudDelayMs()) + x.Int(m.GetNotifyDefaultDelayMs()) + x.Int(m.GetPushChatPeriodMs()) + x.Int(m.GetPushChatLimit()) + x.Int(m.GetSavedGifsLimit()) + x.Int(m.GetEditTimeLimit()) + x.Int(m.GetRevokeTimeLimit()) + x.Int(m.GetRevokePmTimeLimit()) + x.Int(m.GetRatingEDecay()) + x.Int(m.GetStickersRecentLimit()) + x.Int(m.GetStickersFavedLimit()) + x.Int(m.GetChannelsReadMediaPeriod()) + if m.GetTmpSessions() != 0 { + x.Int(m.GetTmpSessions()) + } + x.Int(m.GetPinnedDialogsCountMax()) + x.Int(m.GetCallReceiveTimeoutMs()) + x.Int(m.GetCallRingTimeoutMs()) + x.Int(m.GetCallConnectTimeoutMs()) + x.Int(m.GetCallPacketTimeoutMs()) + x.String(m.GetMeUrlPrefix()) + if m.GetAutoupdateUrlPrefix() != "" { + x.String(m.GetAutoupdateUrlPrefix()) + } + if m.GetGifSearchUsername() != "" { + x.String(m.GetGifSearchUsername()) + } + if m.GetVenueSearchUsername() != "" { + x.String(m.GetVenueSearchUsername()) + } + if m.GetImgSearchUsername() != "" { + x.String(m.GetImgSearchUsername()) + } + if m.GetStaticMapsProvider() != "" { + x.String(m.GetStaticMapsProvider()) + } + x.Int(m.GetCaptionLengthMax()) + x.Int(m.GetMessageLengthMax()) + x.Int(m.GetWebfileDcId()) + if m.GetSuggestedLangCode() != "" { + x.String(m.GetSuggestedLangCode()) + } + if m.GetLangPackVersion() != 0 { + x.Int(m.GetLangPackVersion()) + } return x.buf } -func (m *TLAuthCodeTypeFlashCall) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_auth_codeTypeFlashCall)) - - return x.buf -} +func (m *TLConfig) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetPhonecallsEnabled(true) + } + if (flags & (1 << 3)) != 0 { + m.SetDefaultP2PContacts(true) + } + if (flags & (1 << 4)) != 0 { + m.SetPreloadFeaturedStickers(true) + } + if (flags & (1 << 5)) != 0 { + m.SetIgnorePhoneEntities(true) + } + if (flags & (1 << 6)) != 0 { + m.SetRevokePmInbox(true) + } + if (flags & (1 << 8)) != 0 { + m.SetBlockedMode(true) + } + m.SetDate(dbuf.Int()) + m.SetExpires(dbuf.Int()) + m10 := &Bool{} + m10.Decode(dbuf) + m.SetTestMode(m10) + m.SetThisDc(dbuf.Int()) + c12 := dbuf.Int() + if c12 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 12, c12) + return dbuf.err + } + l12 := dbuf.Int() + v12 := make([]*DcOption, l12) + for i := int32(0); i < l12; i++ { + v12[i] = &DcOption{} + v12[i].Decode(dbuf) + } + m.SetDcOptions(v12) -func (m *TLAuthCodeTypeFlashCall) Decode(dbuf *DecodeBuf) error { + m.SetDcTxtDomainName(dbuf.String()) + m.SetChatSizeMax(dbuf.Int()) + m.SetMegagroupSizeMax(dbuf.Int()) + m.SetForwardedCountMax(dbuf.Int()) + m.SetOnlineUpdatePeriodMs(dbuf.Int()) + m.SetOfflineBlurTimeoutMs(dbuf.Int()) + m.SetOfflineIdleTimeoutMs(dbuf.Int()) + m.SetOnlineCloudTimeoutMs(dbuf.Int()) + m.SetNotifyCloudDelayMs(dbuf.Int()) + m.SetNotifyDefaultDelayMs(dbuf.Int()) + m.SetPushChatPeriodMs(dbuf.Int()) + m.SetPushChatLimit(dbuf.Int()) + m.SetSavedGifsLimit(dbuf.Int()) + m.SetEditTimeLimit(dbuf.Int()) + m.SetRevokeTimeLimit(dbuf.Int()) + m.SetRevokePmTimeLimit(dbuf.Int()) + m.SetRatingEDecay(dbuf.Int()) + m.SetStickersRecentLimit(dbuf.Int()) + m.SetStickersFavedLimit(dbuf.Int()) + m.SetChannelsReadMediaPeriod(dbuf.Int()) + if (flags & (1 << 0)) != 0 { + m.SetTmpSessions(dbuf.Int()) + } + m.SetPinnedDialogsCountMax(dbuf.Int()) + m.SetCallReceiveTimeoutMs(dbuf.Int()) + m.SetCallRingTimeoutMs(dbuf.Int()) + m.SetCallConnectTimeoutMs(dbuf.Int()) + m.SetCallPacketTimeoutMs(dbuf.Int()) + m.SetMeUrlPrefix(dbuf.String()) + if (flags & (1 << 7)) != 0 { + m.SetAutoupdateUrlPrefix(dbuf.String()) + } + if (flags & (1 << 9)) != 0 { + m.SetGifSearchUsername(dbuf.String()) + } + if (flags & (1 << 10)) != 0 { + m.SetVenueSearchUsername(dbuf.String()) + } + if (flags & (1 << 11)) != 0 { + m.SetImgSearchUsername(dbuf.String()) + } + if (flags & (1 << 12)) != 0 { + m.SetStaticMapsProvider(dbuf.String()) + } + m.SetCaptionLengthMax(dbuf.Int()) + m.SetMessageLengthMax(dbuf.Int()) + m.SetWebfileDcId(dbuf.Int()) + if (flags & (1 << 2)) != 0 { + m.SetSuggestedLangCode(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m.SetLangPackVersion(dbuf.Int()) + } return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Updates <-- -// + TL_UpdateAccountResetAuthorization -// + TL_UpdatesTooLong -// + TL_UpdateShortMessage -// + TL_UpdateShortChatMessage -// + TL_UpdateShort -// + TL_UpdatesCombined -// + TL_Updates -// + TL_UpdateShortSentMessage +// EncryptedMessage <-- +// + TL_EncryptedMessage +// + TL_EncryptedMessageService // -func (m *Updates) Encode() []byte { +func (m *EncryptedMessage) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_updateAccountResetAuthorization: - t := m.To_UpdateAccountResetAuthorization() - return t.Encode() - case TLConstructor_CRC32_updatesTooLong: - t := m.To_UpdatesTooLong() - return t.Encode() - case TLConstructor_CRC32_updateShortMessage: - t := m.To_UpdateShortMessage() - return t.Encode() - case TLConstructor_CRC32_updateShortChatMessage: - t := m.To_UpdateShortChatMessage() - return t.Encode() - case TLConstructor_CRC32_updateShort: - t := m.To_UpdateShort() - return t.Encode() - case TLConstructor_CRC32_updatesCombined: - t := m.To_UpdatesCombined() - return t.Encode() - case TLConstructor_CRC32_updates: - t := m.To_Updates() + case TLConstructor_CRC32_encryptedMessage: + t := m.To_EncryptedMessage() return t.Encode() - case TLConstructor_CRC32_updateShortSentMessage: - t := m.To_UpdateShortSentMessage() + case TLConstructor_CRC32_encryptedMessageService: + t := m.To_EncryptedMessageService() return t.Encode() default: @@ -49773,32 +50794,14 @@ func (m *Updates) Encode() []byte { } } -func (m *Updates) EncodeToLayer(layer int) []byte { +func (m *EncryptedMessage) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_updateAccountResetAuthorization: - t := m.To_UpdateAccountResetAuthorization() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updatesTooLong: - t := m.To_UpdatesTooLong() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateShortMessage: - t := m.To_UpdateShortMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateShortChatMessage: - t := m.To_UpdateShortChatMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateShort: - t := m.To_UpdateShort() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updatesCombined: - t := m.To_UpdatesCombined() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updates: - t := m.To_Updates() + case TLConstructor_CRC32_encryptedMessage: + t := m.To_EncryptedMessage() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_updateShortSentMessage: - t := m.To_UpdateShortSentMessage() + case TLConstructor_CRC32_encryptedMessageService: + t := m.To_EncryptedMessageService() return t.EncodeToLayer(layer) default: @@ -49807,39 +50810,15 @@ func (m *Updates) EncodeToLayer(layer int) []byte { } } -func (m *Updates) Decode(dbuf *DecodeBuf) error { +func (m *EncryptedMessage) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_updateAccountResetAuthorization: - m2 := &TLUpdateAccountResetAuthorization{Data2: &Updates_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updatesTooLong: - m2 := &TLUpdatesTooLong{Data2: &Updates_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateShortMessage: - m2 := &TLUpdateShortMessage{Data2: &Updates_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateShortChatMessage: - m2 := &TLUpdateShortChatMessage{Data2: &Updates_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateShort: - m2 := &TLUpdateShort{Data2: &Updates_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updatesCombined: - m2 := &TLUpdatesCombined{Data2: &Updates_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_updates: - m2 := &TLUpdates{Data2: &Updates_Data{}} + case TLConstructor_CRC32_encryptedMessage: + m2 := &TLEncryptedMessage{Data2: &EncryptedMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_updateShortSentMessage: - m2 := &TLUpdateShortSentMessage{Data2: &Updates_Data{}} + case TLConstructor_CRC32_encryptedMessageService: + m2 := &TLEncryptedMessageService{Data2: &EncryptedMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -49849,243 +50828,236 @@ func (m *Updates) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updateAccountResetAuthorization user_id:int auth_key_id:long = Updates; -func (m *Updates) To_UpdateAccountResetAuthorization() *TLUpdateAccountResetAuthorization { - return &TLUpdateAccountResetAuthorization{ +// encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage; +func (m *EncryptedMessage) To_EncryptedMessage() *TLEncryptedMessage { + return &TLEncryptedMessage{ Data2: m.Data2, } } -// updatesTooLong#e317af7e = Updates; -func (m *Updates) To_UpdatesTooLong() *TLUpdatesTooLong { - return &TLUpdatesTooLong{ +// encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage; +func (m *EncryptedMessage) To_EncryptedMessageService() *TLEncryptedMessageService { + return &TLEncryptedMessageService{ Data2: m.Data2, } } -// updateShortMessage#914fbf11 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; -func (m *Updates) To_UpdateShortMessage() *TLUpdateShortMessage { - return &TLUpdateShortMessage{ - Data2: m.Data2, +// encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage; +func (m *TLEncryptedMessage) To_EncryptedMessage() *EncryptedMessage { + return &EncryptedMessage{ + Constructor: TLConstructor_CRC32_encryptedMessage, + Data2: m.Data2, } } -// updateShortChatMessage#16812688 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; -func (m *Updates) To_UpdateShortChatMessage() *TLUpdateShortChatMessage { - return &TLUpdateShortChatMessage{ - Data2: m.Data2, - } -} - -// updateShort#78d4dec1 update:Update date:int = Updates; -func (m *Updates) To_UpdateShort() *TLUpdateShort { - return &TLUpdateShort{ - Data2: m.Data2, - } -} - -// updatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates; -func (m *Updates) To_UpdatesCombined() *TLUpdatesCombined { - return &TLUpdatesCombined{ - Data2: m.Data2, - } -} - -// updates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates; -func (m *Updates) To_Updates() *TLUpdates { - return &TLUpdates{ - Data2: m.Data2, - } -} +func (m *TLEncryptedMessage) SetRandomId(v int64) { m.Data2.RandomId = v } +func (m *TLEncryptedMessage) GetRandomId() int64 { return m.Data2.RandomId } -// updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates; -func (m *Updates) To_UpdateShortSentMessage() *TLUpdateShortSentMessage { - return &TLUpdateShortSentMessage{ - Data2: m.Data2, - } -} +func (m *TLEncryptedMessage) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLEncryptedMessage) GetChatId() int32 { return m.Data2.ChatId } -// updateAccountResetAuthorization user_id:int auth_key_id:long = Updates; -func (m *TLUpdateAccountResetAuthorization) To_Updates() *Updates { - return &Updates{ - Constructor: TLConstructor_CRC32_updateAccountResetAuthorization, - Data2: m.Data2, - } -} +func (m *TLEncryptedMessage) SetDate(v int32) { m.Data2.Date = v } +func (m *TLEncryptedMessage) GetDate() int32 { return m.Data2.Date } -func (m *TLUpdateAccountResetAuthorization) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateAccountResetAuthorization) GetUserId() int32 { return m.Data2.UserId } +func (m *TLEncryptedMessage) SetBytes(v []byte) { m.Data2.Bytes = v } +func (m *TLEncryptedMessage) GetBytes() []byte { return m.Data2.Bytes } -func (m *TLUpdateAccountResetAuthorization) SetAuthKeyId(v int64) { m.Data2.AuthKeyId = v } -func (m *TLUpdateAccountResetAuthorization) GetAuthKeyId() int64 { return m.Data2.AuthKeyId } +func (m *TLEncryptedMessage) SetFile(v *EncryptedFile) { m.Data2.File = v } +func (m *TLEncryptedMessage) GetFile() *EncryptedFile { return m.Data2.File } -func NewTLUpdateAccountResetAuthorization() *TLUpdateAccountResetAuthorization { - return &TLUpdateAccountResetAuthorization{Data2: &Updates_Data{}} +func NewTLEncryptedMessage() *TLEncryptedMessage { + return &TLEncryptedMessage{Data2: &EncryptedMessage_Data{}} } -func (m *TLUpdateAccountResetAuthorization) Encode() []byte { +func (m *TLEncryptedMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateAccountResetAuthorization)) + x.Int(int32(TLConstructor_CRC32_encryptedMessage)) - x.Int(m.GetUserId()) - x.Long(m.GetAuthKeyId()) + x.Long(m.GetRandomId()) + x.Int(m.GetChatId()) + x.Int(m.GetDate()) + x.StringBytes(m.GetBytes()) + x.Bytes(m.GetFile().Encode()) return x.buf } -func (m *TLUpdateAccountResetAuthorization) EncodeToLayer(layer int) []byte { +func (m *TLEncryptedMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateAccountResetAuthorization)) + x.Int(int32(TLConstructor_CRC32_encryptedMessage)) - x.Int(m.GetUserId()) - x.Long(m.GetAuthKeyId()) + x.Long(m.GetRandomId()) + x.Int(m.GetChatId()) + x.Int(m.GetDate()) + x.StringBytes(m.GetBytes()) + x.Bytes(m.GetFile().EncodeToLayer(layer)) return x.buf } -func (m *TLUpdateAccountResetAuthorization) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m.SetAuthKeyId(dbuf.Long()) +func (m *TLEncryptedMessage) Decode(dbuf *DecodeBuf) error { + m.SetRandomId(dbuf.Long()) + m.SetChatId(dbuf.Int()) + m.SetDate(dbuf.Int()) + m.SetBytes(dbuf.StringBytes()) + m5 := &EncryptedFile{} + m5.Decode(dbuf) + m.SetFile(m5) return dbuf.err } -// updatesTooLong#e317af7e = Updates; -func (m *TLUpdatesTooLong) To_Updates() *Updates { - return &Updates{ - Constructor: TLConstructor_CRC32_updatesTooLong, +// encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage; +func (m *TLEncryptedMessageService) To_EncryptedMessage() *EncryptedMessage { + return &EncryptedMessage{ + Constructor: TLConstructor_CRC32_encryptedMessageService, Data2: m.Data2, } } -func NewTLUpdatesTooLong() *TLUpdatesTooLong { - return &TLUpdatesTooLong{Data2: &Updates_Data{}} +func (m *TLEncryptedMessageService) SetRandomId(v int64) { m.Data2.RandomId = v } +func (m *TLEncryptedMessageService) GetRandomId() int64 { return m.Data2.RandomId } + +func (m *TLEncryptedMessageService) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLEncryptedMessageService) GetChatId() int32 { return m.Data2.ChatId } + +func (m *TLEncryptedMessageService) SetDate(v int32) { m.Data2.Date = v } +func (m *TLEncryptedMessageService) GetDate() int32 { return m.Data2.Date } + +func (m *TLEncryptedMessageService) SetBytes(v []byte) { m.Data2.Bytes = v } +func (m *TLEncryptedMessageService) GetBytes() []byte { return m.Data2.Bytes } + +func NewTLEncryptedMessageService() *TLEncryptedMessageService { + return &TLEncryptedMessageService{Data2: &EncryptedMessage_Data{}} } -func (m *TLUpdatesTooLong) Encode() []byte { +func (m *TLEncryptedMessageService) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatesTooLong)) + x.Int(int32(TLConstructor_CRC32_encryptedMessageService)) + + x.Long(m.GetRandomId()) + x.Int(m.GetChatId()) + x.Int(m.GetDate()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLUpdatesTooLong) EncodeToLayer(layer int) []byte { +func (m *TLEncryptedMessageService) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatesTooLong)) + x.Int(int32(TLConstructor_CRC32_encryptedMessageService)) + + x.Long(m.GetRandomId()) + x.Int(m.GetChatId()) + x.Int(m.GetDate()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLUpdatesTooLong) Decode(dbuf *DecodeBuf) error { +func (m *TLEncryptedMessageService) Decode(dbuf *DecodeBuf) error { + m.SetRandomId(dbuf.Long()) + m.SetChatId(dbuf.Int()) + m.SetDate(dbuf.Int()) + m.SetBytes(dbuf.StringBytes()) return dbuf.err } -// updateShortMessage#914fbf11 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; -func (m *TLUpdateShortMessage) To_Updates() *Updates { - return &Updates{ - Constructor: TLConstructor_CRC32_updateShortMessage, - Data2: m.Data2, - } -} - -func (m *TLUpdateShortMessage) SetOut(v bool) { m.Data2.Out = v } -func (m *TLUpdateShortMessage) GetOut() bool { return m.Data2.Out } - -func (m *TLUpdateShortMessage) SetMentioned(v bool) { m.Data2.Mentioned = v } -func (m *TLUpdateShortMessage) GetMentioned() bool { return m.Data2.Mentioned } - -func (m *TLUpdateShortMessage) SetMediaUnread(v bool) { m.Data2.MediaUnread = v } -func (m *TLUpdateShortMessage) GetMediaUnread() bool { return m.Data2.MediaUnread } - -func (m *TLUpdateShortMessage) SetSilent(v bool) { m.Data2.Silent = v } -func (m *TLUpdateShortMessage) GetSilent() bool { return m.Data2.Silent } +/////////////////////////////////////////////////////////////////////////////// +// Payments_ValidatedRequestedInfo <-- +// + TL_PaymentsValidatedRequestedInfo +// -func (m *TLUpdateShortMessage) SetId(v int32) { m.Data2.Id = v } -func (m *TLUpdateShortMessage) GetId() int32 { return m.Data2.Id } +func (m *Payments_ValidatedRequestedInfo) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_payments_validatedRequestedInfo: + t := m.To_PaymentsValidatedRequestedInfo() + return t.Encode() -func (m *TLUpdateShortMessage) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLUpdateShortMessage) GetUserId() int32 { return m.Data2.UserId } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdateShortMessage) SetMessage(v string) { m.Data2.Message = v } -func (m *TLUpdateShortMessage) GetMessage() string { return m.Data2.Message } +func (m *Payments_ValidatedRequestedInfo) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_payments_validatedRequestedInfo: + t := m.To_PaymentsValidatedRequestedInfo() + return t.EncodeToLayer(layer) -func (m *TLUpdateShortMessage) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateShortMessage) GetPts() int32 { return m.Data2.Pts } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdateShortMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateShortMessage) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *Payments_ValidatedRequestedInfo) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_payments_validatedRequestedInfo: + m2 := &TLPaymentsValidatedRequestedInfo{Data2: &Payments_ValidatedRequestedInfo_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func (m *TLUpdateShortMessage) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdateShortMessage) GetDate() int32 { return m.Data2.Date } + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} -func (m *TLUpdateShortMessage) SetFwdFrom(v *MessageFwdHeader) { m.Data2.FwdFrom = v } -func (m *TLUpdateShortMessage) GetFwdFrom() *MessageFwdHeader { return m.Data2.FwdFrom } +// payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; +func (m *Payments_ValidatedRequestedInfo) To_PaymentsValidatedRequestedInfo() *TLPaymentsValidatedRequestedInfo { + return &TLPaymentsValidatedRequestedInfo{ + Data2: m.Data2, + } +} -func (m *TLUpdateShortMessage) SetViaBotId(v int32) { m.Data2.ViaBotId = v } -func (m *TLUpdateShortMessage) GetViaBotId() int32 { return m.Data2.ViaBotId } +// payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; +func (m *TLPaymentsValidatedRequestedInfo) To_Payments_ValidatedRequestedInfo() *Payments_ValidatedRequestedInfo { + return &Payments_ValidatedRequestedInfo{ + Constructor: TLConstructor_CRC32_payments_validatedRequestedInfo, + Data2: m.Data2, + } +} -func (m *TLUpdateShortMessage) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } -func (m *TLUpdateShortMessage) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } +func (m *TLPaymentsValidatedRequestedInfo) SetId(v string) { m.Data2.Id = v } +func (m *TLPaymentsValidatedRequestedInfo) GetId() string { return m.Data2.Id } -func (m *TLUpdateShortMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLUpdateShortMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } +func (m *TLPaymentsValidatedRequestedInfo) SetShippingOptions(v []*ShippingOption) { + m.Data2.ShippingOptions = v +} +func (m *TLPaymentsValidatedRequestedInfo) GetShippingOptions() []*ShippingOption { + return m.Data2.ShippingOptions +} -func NewTLUpdateShortMessage() *TLUpdateShortMessage { - return &TLUpdateShortMessage{Data2: &Updates_Data{}} +func NewTLPaymentsValidatedRequestedInfo() *TLPaymentsValidatedRequestedInfo { + return &TLPaymentsValidatedRequestedInfo{Data2: &Payments_ValidatedRequestedInfo_Data{}} } -func (m *TLUpdateShortMessage) Encode() []byte { +func (m *TLPaymentsValidatedRequestedInfo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateShortMessage)) + x.Int(int32(TLConstructor_CRC32_payments_validatedRequestedInfo)) // flags var flags uint32 = 0 - if m.GetOut() == true { - flags |= 1 << 1 - } - if m.GetMentioned() == true { - flags |= 1 << 4 - } - if m.GetMediaUnread() == true { - flags |= 1 << 5 - } - if m.GetSilent() == true { - flags |= 1 << 13 - } - if m.GetFwdFrom() != nil { - flags |= 1 << 2 - } - if m.GetViaBotId() != 0 { - flags |= 1 << 11 - } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 3 + if m.GetId() != "" { + flags |= 1 << 0 } - if m.GetEntities() != nil { - flags |= 1 << 7 + if m.GetShippingOptions() != nil { + flags |= 1 << 1 } x.UInt(flags) - x.Int(m.GetId()) - x.Int(m.GetUserId()) - x.String(m.GetMessage()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) - x.Int(m.GetDate()) - if m.GetFwdFrom() != nil { - x.Bytes(m.GetFwdFrom().Encode()) - } - if m.GetViaBotId() != 0 { - x.Int(m.GetViaBotId()) - } - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) + if m.GetId() != "" { + x.String(m.GetId()) } - if m.GetEntities() != nil { + if m.GetShippingOptions() != nil { x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { + x.Int(int32(len(m.GetShippingOptions()))) + for _, v := range m.GetShippingOptions() { x.buf = append(x.buf, (*v).Encode()...) } } @@ -50093,57 +51065,27 @@ func (m *TLUpdateShortMessage) Encode() []byte { return x.buf } -func (m *TLUpdateShortMessage) EncodeToLayer(layer int) []byte { +func (m *TLPaymentsValidatedRequestedInfo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateShortMessage)) + x.Int(int32(TLConstructor_CRC32_payments_validatedRequestedInfo)) // flags var flags uint32 = 0 - if m.GetOut() == true { - flags |= 1 << 1 - } - if m.GetMentioned() == true { - flags |= 1 << 4 - } - if m.GetMediaUnread() == true { - flags |= 1 << 5 - } - if m.GetSilent() == true { - flags |= 1 << 13 - } - if m.GetFwdFrom() != nil { - flags |= 1 << 2 - } - if m.GetViaBotId() != 0 { - flags |= 1 << 11 - } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 3 + if m.GetId() != "" { + flags |= 1 << 0 } - if m.GetEntities() != nil { - flags |= 1 << 7 + if m.GetShippingOptions() != nil { + flags |= 1 << 1 } x.UInt(flags) - x.Int(m.GetId()) - x.Int(m.GetUserId()) - x.String(m.GetMessage()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) - x.Int(m.GetDate()) - if m.GetFwdFrom() != nil { - x.Bytes(m.GetFwdFrom().EncodeToLayer(layer)) - } - if m.GetViaBotId() != 0 { - x.Int(m.GetViaBotId()) - } - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) + if m.GetId() != "" { + x.String(m.GetId()) } - if m.GetEntities() != nil { + if m.GetShippingOptions() != nil { x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { + x.Int(int32(len(m.GetShippingOptions()))) + for _, v := range m.GetShippingOptions() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } } @@ -50151,891 +51093,902 @@ func (m *TLUpdateShortMessage) EncodeToLayer(layer int) []byte { return x.buf } -func (m *TLUpdateShortMessage) Decode(dbuf *DecodeBuf) error { +func (m *TLPaymentsValidatedRequestedInfo) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - if (flags & (1 << 1)) != 0 { - m.SetOut(true) - } - if (flags & (1 << 4)) != 0 { - m.SetMentioned(true) - } - if (flags & (1 << 5)) != 0 { - m.SetMediaUnread(true) - } - if (flags & (1 << 13)) != 0 { - m.SetSilent(true) - } - m.SetId(dbuf.Int()) - m.SetUserId(dbuf.Int()) - m.SetMessage(dbuf.String()) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) - m.SetDate(dbuf.Int()) - if (flags & (1 << 2)) != 0 { - m12 := &MessageFwdHeader{} - m12.Decode(dbuf) - m.SetFwdFrom(m12) - } - if (flags & (1 << 11)) != 0 { - m.SetViaBotId(dbuf.Int()) - } - if (flags & (1 << 3)) != 0 { - m.SetReplyToMsgId(dbuf.Int()) + if (flags & (1 << 0)) != 0 { + m.SetId(dbuf.String()) } - if (flags & (1 << 7)) != 0 { - c15 := dbuf.Int() - if c15 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 15, c15) + if (flags & (1 << 1)) != 0 { + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) return dbuf.err } - l15 := dbuf.Int() - v15 := make([]*MessageEntity, l15) - for i := int32(0); i < l15; i++ { - v15[i] = &MessageEntity{} - v15[i].Decode(dbuf) + l3 := dbuf.Int() + v3 := make([]*ShippingOption, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &ShippingOption{} + v3[i].Decode(dbuf) } - m.SetEntities(v15) + m.SetShippingOptions(v3) } return dbuf.err } -// updateShortChatMessage#16812688 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; -func (m *TLUpdateShortChatMessage) To_Updates() *Updates { - return &Updates{ - Constructor: TLConstructor_CRC32_updateShortChatMessage, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// ChannelAdminLogEvent <-- +// + TL_ChannelAdminLogEvent +// -func (m *TLUpdateShortChatMessage) SetOut(v bool) { m.Data2.Out = v } -func (m *TLUpdateShortChatMessage) GetOut() bool { return m.Data2.Out } +func (m *ChannelAdminLogEvent) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_channelAdminLogEvent: + t := m.To_ChannelAdminLogEvent() + return t.Encode() -func (m *TLUpdateShortChatMessage) SetMentioned(v bool) { m.Data2.Mentioned = v } -func (m *TLUpdateShortChatMessage) GetMentioned() bool { return m.Data2.Mentioned } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdateShortChatMessage) SetMediaUnread(v bool) { m.Data2.MediaUnread = v } -func (m *TLUpdateShortChatMessage) GetMediaUnread() bool { return m.Data2.MediaUnread } +func (m *ChannelAdminLogEvent) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_channelAdminLogEvent: + t := m.To_ChannelAdminLogEvent() + return t.EncodeToLayer(layer) -func (m *TLUpdateShortChatMessage) SetSilent(v bool) { m.Data2.Silent = v } -func (m *TLUpdateShortChatMessage) GetSilent() bool { return m.Data2.Silent } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdateShortChatMessage) SetId(v int32) { m.Data2.Id = v } -func (m *TLUpdateShortChatMessage) GetId() int32 { return m.Data2.Id } +func (m *ChannelAdminLogEvent) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_channelAdminLogEvent: + m2 := &TLChannelAdminLogEvent{Data2: &ChannelAdminLogEvent_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func (m *TLUpdateShortChatMessage) SetFromId(v int32) { m.Data2.FromId = v } -func (m *TLUpdateShortChatMessage) GetFromId() int32 { return m.Data2.FromId } + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} -func (m *TLUpdateShortChatMessage) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLUpdateShortChatMessage) GetChatId() int32 { return m.Data2.ChatId } +// channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent; +func (m *ChannelAdminLogEvent) To_ChannelAdminLogEvent() *TLChannelAdminLogEvent { + return &TLChannelAdminLogEvent{ + Data2: m.Data2, + } +} -func (m *TLUpdateShortChatMessage) SetMessage(v string) { m.Data2.Message = v } -func (m *TLUpdateShortChatMessage) GetMessage() string { return m.Data2.Message } +// channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent; +func (m *TLChannelAdminLogEvent) To_ChannelAdminLogEvent() *ChannelAdminLogEvent { + return &ChannelAdminLogEvent{ + Constructor: TLConstructor_CRC32_channelAdminLogEvent, + Data2: m.Data2, + } +} -func (m *TLUpdateShortChatMessage) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateShortChatMessage) GetPts() int32 { return m.Data2.Pts } +func (m *TLChannelAdminLogEvent) SetId(v int64) { m.Data2.Id = v } +func (m *TLChannelAdminLogEvent) GetId() int64 { return m.Data2.Id } -func (m *TLUpdateShortChatMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateShortChatMessage) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLChannelAdminLogEvent) SetDate(v int32) { m.Data2.Date = v } +func (m *TLChannelAdminLogEvent) GetDate() int32 { return m.Data2.Date } -func (m *TLUpdateShortChatMessage) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdateShortChatMessage) GetDate() int32 { return m.Data2.Date } +func (m *TLChannelAdminLogEvent) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLChannelAdminLogEvent) GetUserId() int32 { return m.Data2.UserId } -func (m *TLUpdateShortChatMessage) SetFwdFrom(v *MessageFwdHeader) { m.Data2.FwdFrom = v } -func (m *TLUpdateShortChatMessage) GetFwdFrom() *MessageFwdHeader { return m.Data2.FwdFrom } +func (m *TLChannelAdminLogEvent) SetAction(v *ChannelAdminLogEventAction) { m.Data2.Action = v } +func (m *TLChannelAdminLogEvent) GetAction() *ChannelAdminLogEventAction { return m.Data2.Action } -func (m *TLUpdateShortChatMessage) SetViaBotId(v int32) { m.Data2.ViaBotId = v } -func (m *TLUpdateShortChatMessage) GetViaBotId() int32 { return m.Data2.ViaBotId } +func NewTLChannelAdminLogEvent() *TLChannelAdminLogEvent { + return &TLChannelAdminLogEvent{Data2: &ChannelAdminLogEvent_Data{}} +} -func (m *TLUpdateShortChatMessage) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } -func (m *TLUpdateShortChatMessage) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } +func (m *TLChannelAdminLogEvent) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEvent)) -func (m *TLUpdateShortChatMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLUpdateShortChatMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } + x.Long(m.GetId()) + x.Int(m.GetDate()) + x.Int(m.GetUserId()) + x.Bytes(m.GetAction().Encode()) -func NewTLUpdateShortChatMessage() *TLUpdateShortChatMessage { - return &TLUpdateShortChatMessage{Data2: &Updates_Data{}} + return x.buf } -func (m *TLUpdateShortChatMessage) Encode() []byte { +func (m *TLChannelAdminLogEvent) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateShortChatMessage)) + x.Int(int32(TLConstructor_CRC32_channelAdminLogEvent)) - // flags - var flags uint32 = 0 - if m.GetOut() == true { - flags |= 1 << 1 - } - if m.GetMentioned() == true { - flags |= 1 << 4 - } - if m.GetMediaUnread() == true { - flags |= 1 << 5 - } - if m.GetSilent() == true { - flags |= 1 << 13 - } - if m.GetFwdFrom() != nil { - flags |= 1 << 2 - } - if m.GetViaBotId() != 0 { - flags |= 1 << 11 - } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 3 - } - if m.GetEntities() != nil { - flags |= 1 << 7 - } - x.UInt(flags) - - x.Int(m.GetId()) - x.Int(m.GetFromId()) - x.Int(m.GetChatId()) - x.String(m.GetMessage()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Long(m.GetId()) x.Int(m.GetDate()) - if m.GetFwdFrom() != nil { - x.Bytes(m.GetFwdFrom().Encode()) - } - if m.GetViaBotId() != 0 { - x.Int(m.GetViaBotId()) - } - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) - } - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } - } + x.Int(m.GetUserId()) + x.Bytes(m.GetAction().EncodeToLayer(layer)) return x.buf } -func (m *TLUpdateShortChatMessage) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateShortChatMessage)) +func (m *TLChannelAdminLogEvent) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetDate(dbuf.Int()) + m.SetUserId(dbuf.Int()) + m4 := &ChannelAdminLogEventAction{} + m4.Decode(dbuf) + m.SetAction(m4) - // flags - var flags uint32 = 0 - if m.GetOut() == true { - flags |= 1 << 1 - } - if m.GetMentioned() == true { - flags |= 1 << 4 - } - if m.GetMediaUnread() == true { - flags |= 1 << 5 - } - if m.GetSilent() == true { - flags |= 1 << 13 - } - if m.GetFwdFrom() != nil { - flags |= 1 << 2 - } - if m.GetViaBotId() != 0 { - flags |= 1 << 11 - } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 3 - } - if m.GetEntities() != nil { - flags |= 1 << 7 - } - x.UInt(flags) + return dbuf.err +} - x.Int(m.GetId()) - x.Int(m.GetFromId()) - x.Int(m.GetChatId()) - x.String(m.GetMessage()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) - x.Int(m.GetDate()) - if m.GetFwdFrom() != nil { - x.Bytes(m.GetFwdFrom().EncodeToLayer(layer)) - } - if m.GetViaBotId() != 0 { - x.Int(m.GetViaBotId()) - } - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) - } - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } +/////////////////////////////////////////////////////////////////////////////// +// ContactStatus <-- +// + TL_ContactStatus +// - return x.buf -} +func (m *ContactStatus) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_contactStatus: + t := m.To_ContactStatus() + return t.Encode() -func (m *TLUpdateShortChatMessage) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetOut(true) - } - if (flags & (1 << 4)) != 0 { - m.SetMentioned(true) - } - if (flags & (1 << 5)) != 0 { - m.SetMediaUnread(true) - } - if (flags & (1 << 13)) != 0 { - m.SetSilent(true) - } - m.SetId(dbuf.Int()) - m.SetFromId(dbuf.Int()) - m.SetChatId(dbuf.Int()) - m.SetMessage(dbuf.String()) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) - m.SetDate(dbuf.Int()) - if (flags & (1 << 2)) != 0 { - m13 := &MessageFwdHeader{} - m13.Decode(dbuf) - m.SetFwdFrom(m13) - } - if (flags & (1 << 11)) != 0 { - m.SetViaBotId(dbuf.Int()) - } - if (flags & (1 << 3)) != 0 { - m.SetReplyToMsgId(dbuf.Int()) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - if (flags & (1 << 7)) != 0 { - c16 := dbuf.Int() - if c16 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 16, c16) - return dbuf.err - } - l16 := dbuf.Int() - v16 := make([]*MessageEntity, l16) - for i := int32(0); i < l16; i++ { - v16[i] = &MessageEntity{} - v16[i].Decode(dbuf) - } - m.SetEntities(v16) +} + +func (m *ContactStatus) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_contactStatus: + t := m.To_ContactStatus() + return t.EncodeToLayer(layer) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } +} + +func (m *ContactStatus) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_contactStatus: + m2 := &TLContactStatus{Data2: &ContactStatus_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// updateShort#78d4dec1 update:Update date:int = Updates; -func (m *TLUpdateShort) To_Updates() *Updates { - return &Updates{ - Constructor: TLConstructor_CRC32_updateShort, +// contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus; +func (m *ContactStatus) To_ContactStatus() *TLContactStatus { + return &TLContactStatus{ + Data2: m.Data2, + } +} + +// contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus; +func (m *TLContactStatus) To_ContactStatus() *ContactStatus { + return &ContactStatus{ + Constructor: TLConstructor_CRC32_contactStatus, Data2: m.Data2, } } -func (m *TLUpdateShort) SetUpdate(v *Update) { m.Data2.Update = v } -func (m *TLUpdateShort) GetUpdate() *Update { return m.Data2.Update } +func (m *TLContactStatus) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLContactStatus) GetUserId() int32 { return m.Data2.UserId } -func (m *TLUpdateShort) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdateShort) GetDate() int32 { return m.Data2.Date } +func (m *TLContactStatus) SetStatus(v *UserStatus) { m.Data2.Status = v } +func (m *TLContactStatus) GetStatus() *UserStatus { return m.Data2.Status } -func NewTLUpdateShort() *TLUpdateShort { - return &TLUpdateShort{Data2: &Updates_Data{}} +func NewTLContactStatus() *TLContactStatus { + return &TLContactStatus{Data2: &ContactStatus_Data{}} } -func (m *TLUpdateShort) Encode() []byte { +func (m *TLContactStatus) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateShort)) + x.Int(int32(TLConstructor_CRC32_contactStatus)) - x.Bytes(m.GetUpdate().Encode()) - x.Int(m.GetDate()) + x.Int(m.GetUserId()) + x.Bytes(m.GetStatus().Encode()) return x.buf } -func (m *TLUpdateShort) EncodeToLayer(layer int) []byte { +func (m *TLContactStatus) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateShort)) + x.Int(int32(TLConstructor_CRC32_contactStatus)) - x.Bytes(m.GetUpdate().EncodeToLayer(layer)) - x.Int(m.GetDate()) + x.Int(m.GetUserId()) + x.Bytes(m.GetStatus().EncodeToLayer(layer)) return x.buf } -func (m *TLUpdateShort) Decode(dbuf *DecodeBuf) error { - m1 := &Update{} - m1.Decode(dbuf) - m.SetUpdate(m1) - m.SetDate(dbuf.Int()) +func (m *TLContactStatus) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m2 := &UserStatus{} + m2.Decode(dbuf) + m.SetStatus(m2) return dbuf.err } -// updatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates; -func (m *TLUpdatesCombined) To_Updates() *Updates { - return &Updates{ - Constructor: TLConstructor_CRC32_updatesCombined, - Data2: m.Data2, - } -} - -func (m *TLUpdatesCombined) SetUpdates(v []*Update) { m.Data2.Updates = v } -func (m *TLUpdatesCombined) GetUpdates() []*Update { return m.Data2.Updates } +/////////////////////////////////////////////////////////////////////////////// +// PasswordKdfAlgo <-- +// + TL_PasswordKdfAlgoUnknown +// + TL_PasswordKdfAlgoModPow +// -func (m *TLUpdatesCombined) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLUpdatesCombined) GetUsers() []*User { return m.Data2.Users } +func (m *PasswordKdfAlgo) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_passwordKdfAlgoUnknown: + t := m.To_PasswordKdfAlgoUnknown() + return t.Encode() + case TLConstructor_CRC32_passwordKdfAlgoModPow: + t := m.To_PasswordKdfAlgoModPow() + return t.Encode() -func (m *TLUpdatesCombined) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLUpdatesCombined) GetChats() []*Chat { return m.Data2.Chats } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdatesCombined) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdatesCombined) GetDate() int32 { return m.Data2.Date } +func (m *PasswordKdfAlgo) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_passwordKdfAlgoUnknown: + t := m.To_PasswordKdfAlgoUnknown() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_passwordKdfAlgoModPow: + t := m.To_PasswordKdfAlgoModPow() + return t.EncodeToLayer(layer) -func (m *TLUpdatesCombined) SetSeqStart(v int32) { m.Data2.SeqStart = v } -func (m *TLUpdatesCombined) GetSeqStart() int32 { return m.Data2.SeqStart } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLUpdatesCombined) SetSeq(v int32) { m.Data2.Seq = v } -func (m *TLUpdatesCombined) GetSeq() int32 { return m.Data2.Seq } +func (m *PasswordKdfAlgo) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_passwordKdfAlgoUnknown: + m2 := &TLPasswordKdfAlgoUnknown{Data2: &PasswordKdfAlgo_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_passwordKdfAlgoModPow: + m2 := &TLPasswordKdfAlgoModPow{Data2: &PasswordKdfAlgo_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func NewTLUpdatesCombined() *TLUpdatesCombined { - return &TLUpdatesCombined{Data2: &Updates_Data{}} + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLUpdatesCombined) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatesCombined)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUpdates()))) - for _, v := range m.GetUpdates() { - x.buf = append(x.buf, (*v).Encode()...) +// passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo; +func (m *PasswordKdfAlgo) To_PasswordKdfAlgoUnknown() *TLPasswordKdfAlgoUnknown { + return &TLPasswordKdfAlgoUnknown{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) +} + +// passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo; +func (m *PasswordKdfAlgo) To_PasswordKdfAlgoModPow() *TLPasswordKdfAlgoModPow { + return &TLPasswordKdfAlgoModPow{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) +} + +// passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo; +func (m *TLPasswordKdfAlgoUnknown) To_PasswordKdfAlgo() *PasswordKdfAlgo { + return &PasswordKdfAlgo{ + Constructor: TLConstructor_CRC32_passwordKdfAlgoUnknown, + Data2: m.Data2, } - x.Int(m.GetDate()) - x.Int(m.GetSeqStart()) - x.Int(m.GetSeq()) +} - return x.buf +func NewTLPasswordKdfAlgoUnknown() *TLPasswordKdfAlgoUnknown { + return &TLPasswordKdfAlgoUnknown{Data2: &PasswordKdfAlgo_Data{}} } -func (m *TLUpdatesCombined) EncodeToLayer(layer int) []byte { +func (m *TLPasswordKdfAlgoUnknown) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updatesCombined)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUpdates()))) - for _, v := range m.GetUpdates() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(m.GetDate()) - x.Int(m.GetSeqStart()) - x.Int(m.GetSeq()) + x.Int(int32(TLConstructor_CRC32_passwordKdfAlgoUnknown)) return x.buf } -func (m *TLUpdatesCombined) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Update, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Update{} - v1[i].Decode(dbuf) - } - m.SetUpdates(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*User, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &User{} - v2[i].Decode(dbuf) - } - m.SetUsers(v2) +func (m *TLPasswordKdfAlgoUnknown) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_passwordKdfAlgoUnknown)) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Chat, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Chat{} - v3[i].Decode(dbuf) - } - m.SetChats(v3) + return x.buf +} - m.SetDate(dbuf.Int()) - m.SetSeqStart(dbuf.Int()) - m.SetSeq(dbuf.Int()) +func (m *TLPasswordKdfAlgoUnknown) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// updates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates; -func (m *TLUpdates) To_Updates() *Updates { - return &Updates{ - Constructor: TLConstructor_CRC32_updates, +// passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo; +func (m *TLPasswordKdfAlgoModPow) To_PasswordKdfAlgo() *PasswordKdfAlgo { + return &PasswordKdfAlgo{ + Constructor: TLConstructor_CRC32_passwordKdfAlgoModPow, Data2: m.Data2, } } -func (m *TLUpdates) SetUpdates(v []*Update) { m.Data2.Updates = v } -func (m *TLUpdates) GetUpdates() []*Update { return m.Data2.Updates } - -func (m *TLUpdates) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLUpdates) GetUsers() []*User { return m.Data2.Users } +func (m *TLPasswordKdfAlgoModPow) SetSalt1(v []byte) { m.Data2.Salt1 = v } +func (m *TLPasswordKdfAlgoModPow) GetSalt1() []byte { return m.Data2.Salt1 } -func (m *TLUpdates) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLUpdates) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLPasswordKdfAlgoModPow) SetSalt2(v []byte) { m.Data2.Salt2 = v } +func (m *TLPasswordKdfAlgoModPow) GetSalt2() []byte { return m.Data2.Salt2 } -func (m *TLUpdates) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdates) GetDate() int32 { return m.Data2.Date } +func (m *TLPasswordKdfAlgoModPow) SetG(v int32) { m.Data2.G = v } +func (m *TLPasswordKdfAlgoModPow) GetG() int32 { return m.Data2.G } -func (m *TLUpdates) SetSeq(v int32) { m.Data2.Seq = v } -func (m *TLUpdates) GetSeq() int32 { return m.Data2.Seq } +func (m *TLPasswordKdfAlgoModPow) SetP(v []byte) { m.Data2.P = v } +func (m *TLPasswordKdfAlgoModPow) GetP() []byte { return m.Data2.P } -func NewTLUpdates() *TLUpdates { - return &TLUpdates{Data2: &Updates_Data{}} +func NewTLPasswordKdfAlgoModPow() *TLPasswordKdfAlgoModPow { + return &TLPasswordKdfAlgoModPow{Data2: &PasswordKdfAlgo_Data{}} } -func (m *TLUpdates) Encode() []byte { +func (m *TLPasswordKdfAlgoModPow) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates)) + x.Int(int32(TLConstructor_CRC32_passwordKdfAlgoModPow)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUpdates()))) - for _, v := range m.GetUpdates() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(m.GetDate()) - x.Int(m.GetSeq()) + x.StringBytes(m.GetSalt1()) + x.StringBytes(m.GetSalt2()) + x.Int(m.GetG()) + x.StringBytes(m.GetP()) return x.buf } -func (m *TLUpdates) EncodeToLayer(layer int) []byte { +func (m *TLPasswordKdfAlgoModPow) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updates)) + x.Int(int32(TLConstructor_CRC32_passwordKdfAlgoModPow)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUpdates()))) - for _, v := range m.GetUpdates() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(m.GetDate()) - x.Int(m.GetSeq()) + x.StringBytes(m.GetSalt1()) + x.StringBytes(m.GetSalt2()) + x.Int(m.GetG()) + x.StringBytes(m.GetP()) return x.buf } -func (m *TLUpdates) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Update, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Update{} - v1[i].Decode(dbuf) +func (m *TLPasswordKdfAlgoModPow) Decode(dbuf *DecodeBuf) error { + m.SetSalt1(dbuf.StringBytes()) + m.SetSalt2(dbuf.StringBytes()) + m.SetG(dbuf.Int()) + m.SetP(dbuf.StringBytes()) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// InputBotInlineResult <-- +// + TL_InputBotInlineResult +// + TL_InputBotInlineResultPhoto +// + TL_InputBotInlineResultDocument +// + TL_InputBotInlineResultGame +// + +func (m *InputBotInlineResult) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputBotInlineResult: + t := m.To_InputBotInlineResult() + return t.Encode() + case TLConstructor_CRC32_inputBotInlineResultPhoto: + t := m.To_InputBotInlineResultPhoto() + return t.Encode() + case TLConstructor_CRC32_inputBotInlineResultDocument: + t := m.To_InputBotInlineResultDocument() + return t.Encode() + case TLConstructor_CRC32_inputBotInlineResultGame: + t := m.To_InputBotInlineResultGame() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - m.SetUpdates(v1) +} - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err +func (m *InputBotInlineResult) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputBotInlineResult: + t := m.To_InputBotInlineResult() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputBotInlineResultPhoto: + t := m.To_InputBotInlineResultPhoto() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputBotInlineResultDocument: + t := m.To_InputBotInlineResultDocument() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputBotInlineResultGame: + t := m.To_InputBotInlineResultGame() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - l2 := dbuf.Int() - v2 := make([]*User, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &User{} - v2[i].Decode(dbuf) +} + +func (m *InputBotInlineResult) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputBotInlineResult: + m2 := &TLInputBotInlineResult{Data2: &InputBotInlineResult_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputBotInlineResultPhoto: + m2 := &TLInputBotInlineResultPhoto{Data2: &InputBotInlineResult_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputBotInlineResultDocument: + m2 := &TLInputBotInlineResultDocument{Data2: &InputBotInlineResult_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputBotInlineResultGame: + m2 := &TLInputBotInlineResultGame{Data2: &InputBotInlineResult_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - m.SetUsers(v2) + return dbuf.err +} - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err +// inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult; +func (m *InputBotInlineResult) To_InputBotInlineResult() *TLInputBotInlineResult { + return &TLInputBotInlineResult{ + Data2: m.Data2, } - l3 := dbuf.Int() - v3 := make([]*Chat, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Chat{} - v3[i].Decode(dbuf) +} + +// inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult; +func (m *InputBotInlineResult) To_InputBotInlineResultPhoto() *TLInputBotInlineResultPhoto { + return &TLInputBotInlineResultPhoto{ + Data2: m.Data2, } - m.SetChats(v3) +} - m.SetDate(dbuf.Int()) - m.SetSeq(dbuf.Int()) +// inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult; +func (m *InputBotInlineResult) To_InputBotInlineResultDocument() *TLInputBotInlineResultDocument { + return &TLInputBotInlineResultDocument{ + Data2: m.Data2, + } +} - return dbuf.err +// inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult; +func (m *InputBotInlineResult) To_InputBotInlineResultGame() *TLInputBotInlineResultGame { + return &TLInputBotInlineResultGame{ + Data2: m.Data2, + } } -// updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates; -func (m *TLUpdateShortSentMessage) To_Updates() *Updates { - return &Updates{ - Constructor: TLConstructor_CRC32_updateShortSentMessage, +// inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult; +func (m *TLInputBotInlineResult) To_InputBotInlineResult() *InputBotInlineResult { + return &InputBotInlineResult{ + Constructor: TLConstructor_CRC32_inputBotInlineResult, Data2: m.Data2, } } -func (m *TLUpdateShortSentMessage) SetOut(v bool) { m.Data2.Out = v } -func (m *TLUpdateShortSentMessage) GetOut() bool { return m.Data2.Out } +func (m *TLInputBotInlineResult) SetId(v string) { m.Data2.Id = v } +func (m *TLInputBotInlineResult) GetId() string { return m.Data2.Id } -func (m *TLUpdateShortSentMessage) SetId(v int32) { m.Data2.Id = v } -func (m *TLUpdateShortSentMessage) GetId() int32 { return m.Data2.Id } +func (m *TLInputBotInlineResult) SetType(v string) { m.Data2.Type = v } +func (m *TLInputBotInlineResult) GetType() string { return m.Data2.Type } -func (m *TLUpdateShortSentMessage) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLUpdateShortSentMessage) GetPts() int32 { return m.Data2.Pts } +func (m *TLInputBotInlineResult) SetTitle(v string) { m.Data2.Title = v } +func (m *TLInputBotInlineResult) GetTitle() string { return m.Data2.Title } -func (m *TLUpdateShortSentMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLUpdateShortSentMessage) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLInputBotInlineResult) SetDescription(v string) { m.Data2.Description = v } +func (m *TLInputBotInlineResult) GetDescription() string { return m.Data2.Description } -func (m *TLUpdateShortSentMessage) SetDate(v int32) { m.Data2.Date = v } -func (m *TLUpdateShortSentMessage) GetDate() int32 { return m.Data2.Date } +func (m *TLInputBotInlineResult) SetUrl(v string) { m.Data2.Url = v } +func (m *TLInputBotInlineResult) GetUrl() string { return m.Data2.Url } -func (m *TLUpdateShortSentMessage) SetMedia(v *MessageMedia) { m.Data2.Media = v } -func (m *TLUpdateShortSentMessage) GetMedia() *MessageMedia { return m.Data2.Media } +func (m *TLInputBotInlineResult) SetThumb(v *InputWebDocument) { m.Data2.Thumb = v } +func (m *TLInputBotInlineResult) GetThumb() *InputWebDocument { return m.Data2.Thumb } -func (m *TLUpdateShortSentMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLUpdateShortSentMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } +func (m *TLInputBotInlineResult) SetContent(v *InputWebDocument) { m.Data2.Content = v } +func (m *TLInputBotInlineResult) GetContent() *InputWebDocument { return m.Data2.Content } -func NewTLUpdateShortSentMessage() *TLUpdateShortSentMessage { - return &TLUpdateShortSentMessage{Data2: &Updates_Data{}} +func (m *TLInputBotInlineResult) SetSendMessage(v *InputBotInlineMessage) { m.Data2.SendMessage = v } +func (m *TLInputBotInlineResult) GetSendMessage() *InputBotInlineMessage { return m.Data2.SendMessage } + +func NewTLInputBotInlineResult() *TLInputBotInlineResult { + return &TLInputBotInlineResult{Data2: &InputBotInlineResult_Data{}} } -func (m *TLUpdateShortSentMessage) Encode() []byte { +func (m *TLInputBotInlineResult) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateShortSentMessage)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineResult)) // flags var flags uint32 = 0 - if m.GetOut() == true { + if m.GetTitle() != "" { flags |= 1 << 1 } - if m.GetMedia() != nil { - flags |= 1 << 9 + if m.GetDescription() != "" { + flags |= 1 << 2 } - if m.GetEntities() != nil { - flags |= 1 << 7 + if m.GetUrl() != "" { + flags |= 1 << 3 + } + if m.GetThumb() != nil { + flags |= 1 << 4 + } + if m.GetContent() != nil { + flags |= 1 << 5 } x.UInt(flags) - x.Int(m.GetId()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) - x.Int(m.GetDate()) - if m.GetMedia() != nil { - x.Bytes(m.GetMedia().Encode()) + x.String(m.GetId()) + x.String(m.GetType()) + if m.GetTitle() != "" { + x.String(m.GetTitle()) } - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + if m.GetUrl() != "" { + x.String(m.GetUrl()) + } + if m.GetThumb() != nil { + x.Bytes(m.GetThumb().Encode()) + } + if m.GetContent() != nil { + x.Bytes(m.GetContent().Encode()) } + x.Bytes(m.GetSendMessage().Encode()) return x.buf } -func (m *TLUpdateShortSentMessage) EncodeToLayer(layer int) []byte { +func (m *TLInputBotInlineResult) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_updateShortSentMessage)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineResult)) // flags var flags uint32 = 0 - if m.GetOut() == true { + if m.GetTitle() != "" { flags |= 1 << 1 } - if m.GetMedia() != nil { - flags |= 1 << 9 + if m.GetDescription() != "" { + flags |= 1 << 2 } - if m.GetEntities() != nil { - flags |= 1 << 7 + if m.GetUrl() != "" { + flags |= 1 << 3 + } + if m.GetThumb() != nil { + flags |= 1 << 4 + } + if m.GetContent() != nil { + flags |= 1 << 5 } x.UInt(flags) - x.Int(m.GetId()) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) - x.Int(m.GetDate()) - if m.GetMedia() != nil { - x.Bytes(m.GetMedia().EncodeToLayer(layer)) + x.String(m.GetId()) + x.String(m.GetType()) + if m.GetTitle() != "" { + x.String(m.GetTitle()) } - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + if m.GetUrl() != "" { + x.String(m.GetUrl()) + } + if m.GetThumb() != nil { + x.Bytes(m.GetThumb().EncodeToLayer(layer)) + } + if m.GetContent() != nil { + x.Bytes(m.GetContent().EncodeToLayer(layer)) } + x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) return x.buf } -func (m *TLUpdateShortSentMessage) Decode(dbuf *DecodeBuf) error { +func (m *TLInputBotInlineResult) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags + m.SetId(dbuf.String()) + m.SetType(dbuf.String()) if (flags & (1 << 1)) != 0 { - m.SetOut(true) + m.SetTitle(dbuf.String()) } - m.SetId(dbuf.Int()) - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) - m.SetDate(dbuf.Int()) - if (flags & (1 << 9)) != 0 { - m7 := &MessageMedia{} + if (flags & (1 << 2)) != 0 { + m.SetDescription(dbuf.String()) + } + if (flags & (1 << 3)) != 0 { + m.SetUrl(dbuf.String()) + } + if (flags & (1 << 4)) != 0 { + m7 := &InputWebDocument{} m7.Decode(dbuf) - m.SetMedia(m7) + m.SetThumb(m7) } - if (flags & (1 << 7)) != 0 { - c8 := dbuf.Int() - if c8 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) - return dbuf.err - } - l8 := dbuf.Int() - v8 := make([]*MessageEntity, l8) - for i := int32(0); i < l8; i++ { - v8[i] = &MessageEntity{} - v8[i].Decode(dbuf) - } - m.SetEntities(v8) - + if (flags & (1 << 5)) != 0 { + m8 := &InputWebDocument{} + m8.Decode(dbuf) + m.SetContent(m8) } + m9 := &InputBotInlineMessage{} + m9.Decode(dbuf) + m.SetSendMessage(m9) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Authorization <-- -// + TL_Authorization -// - -func (m *Authorization) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_authorization: - t := m.To_Authorization() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult; +func (m *TLInputBotInlineResultPhoto) To_InputBotInlineResult() *InputBotInlineResult { + return &InputBotInlineResult{ + Constructor: TLConstructor_CRC32_inputBotInlineResultPhoto, + Data2: m.Data2, } } -func (m *Authorization) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_authorization: - t := m.To_Authorization() - return t.EncodeToLayer(layer) +func (m *TLInputBotInlineResultPhoto) SetId(v string) { m.Data2.Id = v } +func (m *TLInputBotInlineResultPhoto) GetId() string { return m.Data2.Id } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLInputBotInlineResultPhoto) SetType(v string) { m.Data2.Type = v } +func (m *TLInputBotInlineResultPhoto) GetType() string { return m.Data2.Type } -func (m *Authorization) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_authorization: - m2 := &TLAuthorization{Data2: &Authorization_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputBotInlineResultPhoto) SetPhoto(v *InputPhoto) { m.Data2.Photo = v } +func (m *TLInputBotInlineResultPhoto) GetPhoto() *InputPhoto { return m.Data2.Photo } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err +func (m *TLInputBotInlineResultPhoto) SetSendMessage(v *InputBotInlineMessage) { + m.Data2.SendMessage = v } - -// authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization; -func (m *Authorization) To_Authorization() *TLAuthorization { - return &TLAuthorization{ - Data2: m.Data2, - } +func (m *TLInputBotInlineResultPhoto) GetSendMessage() *InputBotInlineMessage { + return m.Data2.SendMessage } -// authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization; -func (m *TLAuthorization) To_Authorization() *Authorization { - return &Authorization{ - Constructor: TLConstructor_CRC32_authorization, - Data2: m.Data2, - } +func NewTLInputBotInlineResultPhoto() *TLInputBotInlineResultPhoto { + return &TLInputBotInlineResultPhoto{Data2: &InputBotInlineResult_Data{}} } -func (m *TLAuthorization) SetHash(v int64) { m.Data2.Hash = v } -func (m *TLAuthorization) GetHash() int64 { return m.Data2.Hash } +func (m *TLInputBotInlineResultPhoto) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputBotInlineResultPhoto)) -func (m *TLAuthorization) SetFlags(v int32) { m.Data2.Flags = v } -func (m *TLAuthorization) GetFlags() int32 { return m.Data2.Flags } + x.String(m.GetId()) + x.String(m.GetType()) + x.Bytes(m.GetPhoto().Encode()) + x.Bytes(m.GetSendMessage().Encode()) -func (m *TLAuthorization) SetDeviceModel(v string) { m.Data2.DeviceModel = v } -func (m *TLAuthorization) GetDeviceModel() string { return m.Data2.DeviceModel } + return x.buf +} -func (m *TLAuthorization) SetPlatform(v string) { m.Data2.Platform = v } -func (m *TLAuthorization) GetPlatform() string { return m.Data2.Platform } +func (m *TLInputBotInlineResultPhoto) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputBotInlineResultPhoto)) -func (m *TLAuthorization) SetSystemVersion(v string) { m.Data2.SystemVersion = v } -func (m *TLAuthorization) GetSystemVersion() string { return m.Data2.SystemVersion } + x.String(m.GetId()) + x.String(m.GetType()) + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) -func (m *TLAuthorization) SetApiId(v int32) { m.Data2.ApiId = v } -func (m *TLAuthorization) GetApiId() int32 { return m.Data2.ApiId } + return x.buf +} -func (m *TLAuthorization) SetAppName(v string) { m.Data2.AppName = v } -func (m *TLAuthorization) GetAppName() string { return m.Data2.AppName } +func (m *TLInputBotInlineResultPhoto) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.String()) + m.SetType(dbuf.String()) + m3 := &InputPhoto{} + m3.Decode(dbuf) + m.SetPhoto(m3) + m4 := &InputBotInlineMessage{} + m4.Decode(dbuf) + m.SetSendMessage(m4) -func (m *TLAuthorization) SetAppVersion(v string) { m.Data2.AppVersion = v } -func (m *TLAuthorization) GetAppVersion() string { return m.Data2.AppVersion } + return dbuf.err +} -func (m *TLAuthorization) SetDateCreated(v int32) { m.Data2.DateCreated = v } -func (m *TLAuthorization) GetDateCreated() int32 { return m.Data2.DateCreated } +// inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult; +func (m *TLInputBotInlineResultDocument) To_InputBotInlineResult() *InputBotInlineResult { + return &InputBotInlineResult{ + Constructor: TLConstructor_CRC32_inputBotInlineResultDocument, + Data2: m.Data2, + } +} -func (m *TLAuthorization) SetDateActive(v int32) { m.Data2.DateActive = v } -func (m *TLAuthorization) GetDateActive() int32 { return m.Data2.DateActive } +func (m *TLInputBotInlineResultDocument) SetId(v string) { m.Data2.Id = v } +func (m *TLInputBotInlineResultDocument) GetId() string { return m.Data2.Id } -func (m *TLAuthorization) SetIp(v string) { m.Data2.Ip = v } -func (m *TLAuthorization) GetIp() string { return m.Data2.Ip } +func (m *TLInputBotInlineResultDocument) SetType(v string) { m.Data2.Type = v } +func (m *TLInputBotInlineResultDocument) GetType() string { return m.Data2.Type } -func (m *TLAuthorization) SetCountry(v string) { m.Data2.Country = v } -func (m *TLAuthorization) GetCountry() string { return m.Data2.Country } +func (m *TLInputBotInlineResultDocument) SetTitle(v string) { m.Data2.Title = v } +func (m *TLInputBotInlineResultDocument) GetTitle() string { return m.Data2.Title } -func (m *TLAuthorization) SetRegion(v string) { m.Data2.Region = v } -func (m *TLAuthorization) GetRegion() string { return m.Data2.Region } +func (m *TLInputBotInlineResultDocument) SetDescription(v string) { m.Data2.Description = v } +func (m *TLInputBotInlineResultDocument) GetDescription() string { return m.Data2.Description } -func NewTLAuthorization() *TLAuthorization { - return &TLAuthorization{Data2: &Authorization_Data{}} +func (m *TLInputBotInlineResultDocument) SetDocument(v *InputDocument) { m.Data2.Document = v } +func (m *TLInputBotInlineResultDocument) GetDocument() *InputDocument { return m.Data2.Document } + +func (m *TLInputBotInlineResultDocument) SetSendMessage(v *InputBotInlineMessage) { + m.Data2.SendMessage = v +} +func (m *TLInputBotInlineResultDocument) GetSendMessage() *InputBotInlineMessage { + return m.Data2.SendMessage } -func (m *TLAuthorization) Encode() []byte { +func NewTLInputBotInlineResultDocument() *TLInputBotInlineResultDocument { + return &TLInputBotInlineResultDocument{Data2: &InputBotInlineResult_Data{}} +} + +func (m *TLInputBotInlineResultDocument) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_authorization)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineResultDocument)) - x.Long(m.GetHash()) - x.Int(m.GetFlags()) - x.String(m.GetDeviceModel()) - x.String(m.GetPlatform()) - x.String(m.GetSystemVersion()) - x.Int(m.GetApiId()) - x.String(m.GetAppName()) - x.String(m.GetAppVersion()) - x.Int(m.GetDateCreated()) - x.Int(m.GetDateActive()) - x.String(m.GetIp()) - x.String(m.GetCountry()) - x.String(m.GetRegion()) + // flags + var flags uint32 = 0 + if m.GetTitle() != "" { + flags |= 1 << 1 + } + if m.GetDescription() != "" { + flags |= 1 << 2 + } + x.UInt(flags) + + x.String(m.GetId()) + x.String(m.GetType()) + if m.GetTitle() != "" { + x.String(m.GetTitle()) + } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + x.Bytes(m.GetDocument().Encode()) + x.Bytes(m.GetSendMessage().Encode()) return x.buf } -func (m *TLAuthorization) EncodeToLayer(layer int) []byte { +func (m *TLInputBotInlineResultDocument) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_authorization)) + x.Int(int32(TLConstructor_CRC32_inputBotInlineResultDocument)) - x.Long(m.GetHash()) - x.Int(m.GetFlags()) - x.String(m.GetDeviceModel()) - x.String(m.GetPlatform()) - x.String(m.GetSystemVersion()) - x.Int(m.GetApiId()) - x.String(m.GetAppName()) - x.String(m.GetAppVersion()) - x.Int(m.GetDateCreated()) - x.Int(m.GetDateActive()) - x.String(m.GetIp()) - x.String(m.GetCountry()) - x.String(m.GetRegion()) + // flags + var flags uint32 = 0 + if m.GetTitle() != "" { + flags |= 1 << 1 + } + if m.GetDescription() != "" { + flags |= 1 << 2 + } + x.UInt(flags) + + x.String(m.GetId()) + x.String(m.GetType()) + if m.GetTitle() != "" { + x.String(m.GetTitle()) + } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + x.Bytes(m.GetDocument().EncodeToLayer(layer)) + x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) return x.buf } -func (m *TLAuthorization) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Long()) - m.SetFlags(dbuf.Int()) - m.SetDeviceModel(dbuf.String()) - m.SetPlatform(dbuf.String()) - m.SetSystemVersion(dbuf.String()) - m.SetApiId(dbuf.Int()) - m.SetAppName(dbuf.String()) - m.SetAppVersion(dbuf.String()) - m.SetDateCreated(dbuf.Int()) - m.SetDateActive(dbuf.Int()) - m.SetIp(dbuf.String()) - m.SetCountry(dbuf.String()) - m.SetRegion(dbuf.String()) +func (m *TLInputBotInlineResultDocument) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetId(dbuf.String()) + m.SetType(dbuf.String()) + if (flags & (1 << 1)) != 0 { + m.SetTitle(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m.SetDescription(dbuf.String()) + } + m6 := &InputDocument{} + m6.Decode(dbuf) + m.SetDocument(m6) + m7 := &InputBotInlineMessage{} + m7.Decode(dbuf) + m.SetSendMessage(m7) + + return dbuf.err +} + +// inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult; +func (m *TLInputBotInlineResultGame) To_InputBotInlineResult() *InputBotInlineResult { + return &InputBotInlineResult{ + Constructor: TLConstructor_CRC32_inputBotInlineResultGame, + Data2: m.Data2, + } +} + +func (m *TLInputBotInlineResultGame) SetId(v string) { m.Data2.Id = v } +func (m *TLInputBotInlineResultGame) GetId() string { return m.Data2.Id } + +func (m *TLInputBotInlineResultGame) SetShortName(v string) { m.Data2.ShortName = v } +func (m *TLInputBotInlineResultGame) GetShortName() string { return m.Data2.ShortName } + +func (m *TLInputBotInlineResultGame) SetSendMessage(v *InputBotInlineMessage) { m.Data2.SendMessage = v } +func (m *TLInputBotInlineResultGame) GetSendMessage() *InputBotInlineMessage { + return m.Data2.SendMessage +} + +func NewTLInputBotInlineResultGame() *TLInputBotInlineResultGame { + return &TLInputBotInlineResultGame{Data2: &InputBotInlineResult_Data{}} +} + +func (m *TLInputBotInlineResultGame) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputBotInlineResultGame)) + + x.String(m.GetId()) + x.String(m.GetShortName()) + x.Bytes(m.GetSendMessage().Encode()) + + return x.buf +} + +func (m *TLInputBotInlineResultGame) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputBotInlineResultGame)) + + x.String(m.GetId()) + x.String(m.GetShortName()) + x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLInputBotInlineResultGame) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.String()) + m.SetShortName(dbuf.String()) + m3 := &InputBotInlineMessage{} + m3.Decode(dbuf) + m.SetSendMessage(m3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SecureData <-- -// + TL_SecureData +// WallPaper <-- +// + TL_WallPaper +// + TL_WallPaperSolid // -func (m *SecureData) Encode() []byte { +func (m *WallPaper) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_secureData: - t := m.To_SecureData() + case TLConstructor_CRC32_wallPaper: + t := m.To_WallPaper() + return t.Encode() + case TLConstructor_CRC32_wallPaperSolid: + t := m.To_WallPaperSolid() return t.Encode() default: @@ -51044,11 +51997,14 @@ func (m *SecureData) Encode() []byte { } } -func (m *SecureData) EncodeToLayer(layer int) []byte { +func (m *WallPaper) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_secureData: - t := m.To_SecureData() + case TLConstructor_CRC32_wallPaper: + t := m.To_WallPaper() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_wallPaperSolid: + t := m.To_WallPaperSolid() return t.EncodeToLayer(layer) default: @@ -51057,11 +52013,15 @@ func (m *SecureData) EncodeToLayer(layer int) []byte { } } -func (m *SecureData) Decode(dbuf *DecodeBuf) error { +func (m *WallPaper) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_secureData: - m2 := &TLSecureData{Data2: &SecureData_Data{}} + case TLConstructor_CRC32_wallPaper: + m2 := &TLWallPaper{Data2: &WallPaper_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_wallPaperSolid: + m2 := &TLWallPaperSolid{Data2: &WallPaper_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -51071,73 +52031,163 @@ func (m *SecureData) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData; -func (m *SecureData) To_SecureData() *TLSecureData { - return &TLSecureData{ +// wallPaper#ccb03657 id:int title:string sizes:Vector color:int = WallPaper; +func (m *WallPaper) To_WallPaper() *TLWallPaper { + return &TLWallPaper{ Data2: m.Data2, } } -// secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData; -func (m *TLSecureData) To_SecureData() *SecureData { - return &SecureData{ - Constructor: TLConstructor_CRC32_secureData, +// wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper; +func (m *WallPaper) To_WallPaperSolid() *TLWallPaperSolid { + return &TLWallPaperSolid{ + Data2: m.Data2, + } +} + +// wallPaper#ccb03657 id:int title:string sizes:Vector color:int = WallPaper; +func (m *TLWallPaper) To_WallPaper() *WallPaper { + return &WallPaper{ + Constructor: TLConstructor_CRC32_wallPaper, Data2: m.Data2, } } -func (m *TLSecureData) SetData(v []byte) { m.Data2.Data = v } -func (m *TLSecureData) GetData() []byte { return m.Data2.Data } +func (m *TLWallPaper) SetId(v int32) { m.Data2.Id = v } +func (m *TLWallPaper) GetId() int32 { return m.Data2.Id } -func (m *TLSecureData) SetDataHash(v []byte) { m.Data2.DataHash = v } -func (m *TLSecureData) GetDataHash() []byte { return m.Data2.DataHash } +func (m *TLWallPaper) SetTitle(v string) { m.Data2.Title = v } +func (m *TLWallPaper) GetTitle() string { return m.Data2.Title } -func (m *TLSecureData) SetSecret(v []byte) { m.Data2.Secret = v } -func (m *TLSecureData) GetSecret() []byte { return m.Data2.Secret } +func (m *TLWallPaper) SetSizes(v []*PhotoSize) { m.Data2.Sizes = v } +func (m *TLWallPaper) GetSizes() []*PhotoSize { return m.Data2.Sizes } -func NewTLSecureData() *TLSecureData { - return &TLSecureData{Data2: &SecureData_Data{}} +func (m *TLWallPaper) SetColor(v int32) { m.Data2.Color = v } +func (m *TLWallPaper) GetColor() int32 { return m.Data2.Color } + +func NewTLWallPaper() *TLWallPaper { + return &TLWallPaper{Data2: &WallPaper_Data{}} } -func (m *TLSecureData) Encode() []byte { +func (m *TLWallPaper) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureData)) + x.Int(int32(TLConstructor_CRC32_wallPaper)) - x.StringBytes(m.GetData()) - x.StringBytes(m.GetDataHash()) - x.StringBytes(m.GetSecret()) + x.Int(m.GetId()) + x.String(m.GetTitle()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSizes()))) + for _, v := range m.GetSizes() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(m.GetColor()) return x.buf } -func (m *TLSecureData) EncodeToLayer(layer int) []byte { +func (m *TLWallPaper) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureData)) + x.Int(int32(TLConstructor_CRC32_wallPaper)) - x.StringBytes(m.GetData()) - x.StringBytes(m.GetDataHash()) - x.StringBytes(m.GetSecret()) + x.Int(m.GetId()) + x.String(m.GetTitle()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetSizes()))) + for _, v := range m.GetSizes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(m.GetColor()) return x.buf } -func (m *TLSecureData) Decode(dbuf *DecodeBuf) error { - m.SetData(dbuf.StringBytes()) - m.SetDataHash(dbuf.StringBytes()) - m.SetSecret(dbuf.StringBytes()) +func (m *TLWallPaper) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetTitle(dbuf.String()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*PhotoSize, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &PhotoSize{} + v3[i].Decode(dbuf) + } + m.SetSizes(v3) + + m.SetColor(dbuf.Int()) + + return dbuf.err +} + +// wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper; +func (m *TLWallPaperSolid) To_WallPaper() *WallPaper { + return &WallPaper{ + Constructor: TLConstructor_CRC32_wallPaperSolid, + Data2: m.Data2, + } +} + +func (m *TLWallPaperSolid) SetId(v int32) { m.Data2.Id = v } +func (m *TLWallPaperSolid) GetId() int32 { return m.Data2.Id } + +func (m *TLWallPaperSolid) SetTitle(v string) { m.Data2.Title = v } +func (m *TLWallPaperSolid) GetTitle() string { return m.Data2.Title } + +func (m *TLWallPaperSolid) SetBgColor(v int32) { m.Data2.BgColor = v } +func (m *TLWallPaperSolid) GetBgColor() int32 { return m.Data2.BgColor } + +func (m *TLWallPaperSolid) SetColor(v int32) { m.Data2.Color = v } +func (m *TLWallPaperSolid) GetColor() int32 { return m.Data2.Color } + +func NewTLWallPaperSolid() *TLWallPaperSolid { + return &TLWallPaperSolid{Data2: &WallPaper_Data{}} +} + +func (m *TLWallPaperSolid) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_wallPaperSolid)) + + x.Int(m.GetId()) + x.String(m.GetTitle()) + x.Int(m.GetBgColor()) + x.Int(m.GetColor()) + + return x.buf +} + +func (m *TLWallPaperSolid) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_wallPaperSolid)) + + x.Int(m.GetId()) + x.String(m.GetTitle()) + x.Int(m.GetBgColor()) + x.Int(m.GetColor()) + + return x.buf +} + +func (m *TLWallPaperSolid) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetTitle(dbuf.String()) + m.SetBgColor(dbuf.Int()) + m.SetColor(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Account_PasswordSettings <-- -// + TL_AccountPasswordSettings +// Photos_Photo <-- +// + TL_PhotosPhoto // -func (m *Account_PasswordSettings) Encode() []byte { +func (m *Photos_Photo) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_account_passwordSettings: - t := m.To_AccountPasswordSettings() + case TLConstructor_CRC32_photos_photo: + t := m.To_PhotosPhoto() return t.Encode() default: @@ -51146,11 +52196,11 @@ func (m *Account_PasswordSettings) Encode() []byte { } } -func (m *Account_PasswordSettings) EncodeToLayer(layer int) []byte { +func (m *Photos_Photo) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_account_passwordSettings: - t := m.To_AccountPasswordSettings() + case TLConstructor_CRC32_photos_photo: + t := m.To_PhotosPhoto() return t.EncodeToLayer(layer) default: @@ -51159,11 +52209,11 @@ func (m *Account_PasswordSettings) EncodeToLayer(layer int) []byte { } } -func (m *Account_PasswordSettings) Decode(dbuf *DecodeBuf) error { +func (m *Photos_Photo) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_account_passwordSettings: - m2 := &TLAccountPasswordSettings{Data2: &Account_PasswordSettings_Data{}} + case TLConstructor_CRC32_photos_photo: + m2 := &TLPhotosPhoto{Data2: &Photos_Photo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -51173,107 +52223,88 @@ func (m *Account_PasswordSettings) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings; -func (m *Account_PasswordSettings) To_AccountPasswordSettings() *TLAccountPasswordSettings { - return &TLAccountPasswordSettings{ +// photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; +func (m *Photos_Photo) To_PhotosPhoto() *TLPhotosPhoto { + return &TLPhotosPhoto{ Data2: m.Data2, } } -// account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings; -func (m *TLAccountPasswordSettings) To_Account_PasswordSettings() *Account_PasswordSettings { - return &Account_PasswordSettings{ - Constructor: TLConstructor_CRC32_account_passwordSettings, +// photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; +func (m *TLPhotosPhoto) To_Photos_Photo() *Photos_Photo { + return &Photos_Photo{ + Constructor: TLConstructor_CRC32_photos_photo, Data2: m.Data2, } } -func (m *TLAccountPasswordSettings) SetEmail(v string) { m.Data2.Email = v } -func (m *TLAccountPasswordSettings) GetEmail() string { return m.Data2.Email } +func (m *TLPhotosPhoto) SetPhoto(v *Photo) { m.Data2.Photo = v } +func (m *TLPhotosPhoto) GetPhoto() *Photo { return m.Data2.Photo } -func (m *TLAccountPasswordSettings) SetSecureSettings(v *SecureSecretSettings) { - m.Data2.SecureSettings = v -} -func (m *TLAccountPasswordSettings) GetSecureSettings() *SecureSecretSettings { - return m.Data2.SecureSettings -} +func (m *TLPhotosPhoto) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLPhotosPhoto) GetUsers() []*User { return m.Data2.Users } -func NewTLAccountPasswordSettings() *TLAccountPasswordSettings { - return &TLAccountPasswordSettings{Data2: &Account_PasswordSettings_Data{}} +func NewTLPhotosPhoto() *TLPhotosPhoto { + return &TLPhotosPhoto{Data2: &Photos_Photo_Data{}} } -func (m *TLAccountPasswordSettings) Encode() []byte { +func (m *TLPhotosPhoto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_passwordSettings)) - - // flags - var flags uint32 = 0 - if m.GetEmail() != "" { - flags |= 1 << 0 - } - if m.GetSecureSettings() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_photos_photo)) - if m.GetEmail() != "" { - x.String(m.GetEmail()) - } - if m.GetSecureSettings() != nil { - x.Bytes(m.GetSecureSettings().Encode()) + x.Bytes(m.GetPhoto().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLAccountPasswordSettings) EncodeToLayer(layer int) []byte { +func (m *TLPhotosPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_passwordSettings)) - - // flags - var flags uint32 = 0 - if m.GetEmail() != "" { - flags |= 1 << 0 - } - if m.GetSecureSettings() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_photos_photo)) - if m.GetEmail() != "" { - x.String(m.GetEmail()) - } - if m.GetSecureSettings() != nil { - x.Bytes(m.GetSecureSettings().EncodeToLayer(layer)) + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLAccountPasswordSettings) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetEmail(dbuf.String()) +func (m *TLPhotosPhoto) Decode(dbuf *DecodeBuf) error { + m1 := &Photo{} + m1.Decode(dbuf) + m.SetPhoto(m1) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err } - if (flags & (1 << 1)) != 0 { - m3 := &SecureSecretSettings{} - m3.Decode(dbuf) - m.SetSecureSettings(m3) + l2 := dbuf.Int() + v2 := make([]*User, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &User{} + v2[i].Decode(dbuf) } + m.SetUsers(v2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// DialogPeer <-- -// + TL_DialogPeer +// NearestDc <-- +// + TL_NearestDc // -func (m *DialogPeer) Encode() []byte { +func (m *NearestDc) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_dialogPeer: - t := m.To_DialogPeer() + case TLConstructor_CRC32_nearestDc: + t := m.To_NearestDc() return t.Encode() default: @@ -51282,11 +52313,11 @@ func (m *DialogPeer) Encode() []byte { } } -func (m *DialogPeer) EncodeToLayer(layer int) []byte { +func (m *NearestDc) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_dialogPeer: - t := m.To_DialogPeer() + case TLConstructor_CRC32_nearestDc: + t := m.To_NearestDc() return t.EncodeToLayer(layer) default: @@ -51295,11 +52326,11 @@ func (m *DialogPeer) EncodeToLayer(layer int) []byte { } } -func (m *DialogPeer) Decode(dbuf *DecodeBuf) error { +func (m *NearestDc) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_dialogPeer: - m2 := &TLDialogPeer{Data2: &DialogPeer_Data{}} + case TLConstructor_CRC32_nearestDc: + m2 := &TLNearestDc{Data2: &NearestDc_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -51309,67 +52340,77 @@ func (m *DialogPeer) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// dialogPeer#e56dbf05 peer:Peer = DialogPeer; -func (m *DialogPeer) To_DialogPeer() *TLDialogPeer { - return &TLDialogPeer{ +// nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc; +func (m *NearestDc) To_NearestDc() *TLNearestDc { + return &TLNearestDc{ Data2: m.Data2, } } -// dialogPeer#e56dbf05 peer:Peer = DialogPeer; -func (m *TLDialogPeer) To_DialogPeer() *DialogPeer { - return &DialogPeer{ - Constructor: TLConstructor_CRC32_dialogPeer, +// nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc; +func (m *TLNearestDc) To_NearestDc() *NearestDc { + return &NearestDc{ + Constructor: TLConstructor_CRC32_nearestDc, Data2: m.Data2, } } -func (m *TLDialogPeer) SetPeer(v *Peer) { m.Data2.Peer = v } -func (m *TLDialogPeer) GetPeer() *Peer { return m.Data2.Peer } +func (m *TLNearestDc) SetCountry(v string) { m.Data2.Country = v } +func (m *TLNearestDc) GetCountry() string { return m.Data2.Country } -func NewTLDialogPeer() *TLDialogPeer { - return &TLDialogPeer{Data2: &DialogPeer_Data{}} +func (m *TLNearestDc) SetThisDc(v int32) { m.Data2.ThisDc = v } +func (m *TLNearestDc) GetThisDc() int32 { return m.Data2.ThisDc } + +func (m *TLNearestDc) SetNearestDc(v int32) { m.Data2.NearestDc = v } +func (m *TLNearestDc) GetNearestDc() int32 { return m.Data2.NearestDc } + +func NewTLNearestDc() *TLNearestDc { + return &TLNearestDc{Data2: &NearestDc_Data{}} } -func (m *TLDialogPeer) Encode() []byte { +func (m *TLNearestDc) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dialogPeer)) + x.Int(int32(TLConstructor_CRC32_nearestDc)) - x.Bytes(m.GetPeer().Encode()) + x.String(m.GetCountry()) + x.Int(m.GetThisDc()) + x.Int(m.GetNearestDc()) return x.buf } -func (m *TLDialogPeer) EncodeToLayer(layer int) []byte { +func (m *TLNearestDc) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dialogPeer)) + x.Int(int32(TLConstructor_CRC32_nearestDc)) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.String(m.GetCountry()) + x.Int(m.GetThisDc()) + x.Int(m.GetNearestDc()) return x.buf } -func (m *TLDialogPeer) Decode(dbuf *DecodeBuf) error { - m1 := &Peer{} - m1.Decode(dbuf) - m.SetPeer(m1) +func (m *TLNearestDc) Decode(dbuf *DecodeBuf) error { + m.SetCountry(dbuf.String()) + m.SetThisDc(dbuf.Int()) + m.SetNearestDc(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Bool <-- -// + TL_BoolFalse -// + TL_BoolTrue +// EncryptedFile <-- +// + TL_EncryptedFileEmpty +// + TL_EncryptedFile // -func (m *Bool) Encode() []byte { +func (m *EncryptedFile) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_boolFalse: - t := m.To_BoolFalse() + case TLConstructor_CRC32_encryptedFileEmpty: + t := m.To_EncryptedFileEmpty() return t.Encode() - case TLConstructor_CRC32_boolTrue: - t := m.To_BoolTrue() + case TLConstructor_CRC32_encryptedFile: + t := m.To_EncryptedFile() return t.Encode() default: @@ -51378,14 +52419,14 @@ func (m *Bool) Encode() []byte { } } -func (m *Bool) EncodeToLayer(layer int) []byte { +func (m *EncryptedFile) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_boolFalse: - t := m.To_BoolFalse() + case TLConstructor_CRC32_encryptedFileEmpty: + t := m.To_EncryptedFileEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_boolTrue: - t := m.To_BoolTrue() + case TLConstructor_CRC32_encryptedFile: + t := m.To_EncryptedFile() return t.EncodeToLayer(layer) default: @@ -51394,15 +52435,15 @@ func (m *Bool) EncodeToLayer(layer int) []byte { } } -func (m *Bool) Decode(dbuf *DecodeBuf) error { +func (m *EncryptedFile) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_boolFalse: - m2 := &TLBoolFalse{Data2: &Bool_Data{}} + case TLConstructor_CRC32_encryptedFileEmpty: + m2 := &TLEncryptedFileEmpty{Data2: &EncryptedFile_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_boolTrue: - m2 := &TLBoolTrue{Data2: &Bool_Data{}} + case TLConstructor_CRC32_encryptedFile: + m2 := &TLEncryptedFile{Data2: &EncryptedFile_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -51412,91 +52453,127 @@ func (m *Bool) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// boolFalse#bc799737 = Bool; -func (m *Bool) To_BoolFalse() *TLBoolFalse { - return &TLBoolFalse{ +// encryptedFileEmpty#c21f497e = EncryptedFile; +func (m *EncryptedFile) To_EncryptedFileEmpty() *TLEncryptedFileEmpty { + return &TLEncryptedFileEmpty{ Data2: m.Data2, } } -// boolTrue#997275b5 = Bool; -func (m *Bool) To_BoolTrue() *TLBoolTrue { - return &TLBoolTrue{ +// encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile; +func (m *EncryptedFile) To_EncryptedFile() *TLEncryptedFile { + return &TLEncryptedFile{ Data2: m.Data2, } } -// boolFalse#bc799737 = Bool; -func (m *TLBoolFalse) To_Bool() *Bool { - return &Bool{ - Constructor: TLConstructor_CRC32_boolFalse, +// encryptedFileEmpty#c21f497e = EncryptedFile; +func (m *TLEncryptedFileEmpty) To_EncryptedFile() *EncryptedFile { + return &EncryptedFile{ + Constructor: TLConstructor_CRC32_encryptedFileEmpty, Data2: m.Data2, } } -func NewTLBoolFalse() *TLBoolFalse { - return &TLBoolFalse{Data2: &Bool_Data{}} +func NewTLEncryptedFileEmpty() *TLEncryptedFileEmpty { + return &TLEncryptedFileEmpty{Data2: &EncryptedFile_Data{}} } -func (m *TLBoolFalse) Encode() []byte { +func (m *TLEncryptedFileEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_boolFalse)) + x.Int(int32(TLConstructor_CRC32_encryptedFileEmpty)) return x.buf } -func (m *TLBoolFalse) EncodeToLayer(layer int) []byte { +func (m *TLEncryptedFileEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_boolFalse)) + x.Int(int32(TLConstructor_CRC32_encryptedFileEmpty)) return x.buf } -func (m *TLBoolFalse) Decode(dbuf *DecodeBuf) error { +func (m *TLEncryptedFileEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// boolTrue#997275b5 = Bool; -func (m *TLBoolTrue) To_Bool() *Bool { - return &Bool{ - Constructor: TLConstructor_CRC32_boolTrue, +// encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile; +func (m *TLEncryptedFile) To_EncryptedFile() *EncryptedFile { + return &EncryptedFile{ + Constructor: TLConstructor_CRC32_encryptedFile, Data2: m.Data2, } } -func NewTLBoolTrue() *TLBoolTrue { - return &TLBoolTrue{Data2: &Bool_Data{}} +func (m *TLEncryptedFile) SetId(v int64) { m.Data2.Id = v } +func (m *TLEncryptedFile) GetId() int64 { return m.Data2.Id } + +func (m *TLEncryptedFile) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLEncryptedFile) GetAccessHash() int64 { return m.Data2.AccessHash } + +func (m *TLEncryptedFile) SetSize(v int32) { m.Data2.Size = v } +func (m *TLEncryptedFile) GetSize() int32 { return m.Data2.Size } + +func (m *TLEncryptedFile) SetDcId(v int32) { m.Data2.DcId = v } +func (m *TLEncryptedFile) GetDcId() int32 { return m.Data2.DcId } + +func (m *TLEncryptedFile) SetKeyFingerprint(v int32) { m.Data2.KeyFingerprint = v } +func (m *TLEncryptedFile) GetKeyFingerprint() int32 { return m.Data2.KeyFingerprint } + +func NewTLEncryptedFile() *TLEncryptedFile { + return &TLEncryptedFile{Data2: &EncryptedFile_Data{}} } -func (m *TLBoolTrue) Encode() []byte { +func (m *TLEncryptedFile) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_boolTrue)) + x.Int(int32(TLConstructor_CRC32_encryptedFile)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetSize()) + x.Int(m.GetDcId()) + x.Int(m.GetKeyFingerprint()) return x.buf } -func (m *TLBoolTrue) EncodeToLayer(layer int) []byte { +func (m *TLEncryptedFile) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_boolTrue)) + x.Int(int32(TLConstructor_CRC32_encryptedFile)) + + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.Int(m.GetSize()) + x.Int(m.GetDcId()) + x.Int(m.GetKeyFingerprint()) return x.buf } -func (m *TLBoolTrue) Decode(dbuf *DecodeBuf) error { +func (m *TLEncryptedFile) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetSize(dbuf.Int()) + m.SetDcId(dbuf.Int()) + m.SetKeyFingerprint(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Payments_PaymentReceipt <-- -// + TL_PaymentsPaymentReceipt +// Messages_SentEncryptedMessage <-- +// + TL_MessagesSentEncryptedMessage +// + TL_MessagesSentEncryptedFile // -func (m *Payments_PaymentReceipt) Encode() []byte { +func (m *Messages_SentEncryptedMessage) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_payments_paymentReceipt: - t := m.To_PaymentsPaymentReceipt() + case TLConstructor_CRC32_messages_sentEncryptedMessage: + t := m.To_MessagesSentEncryptedMessage() + return t.Encode() + case TLConstructor_CRC32_messages_sentEncryptedFile: + t := m.To_MessagesSentEncryptedFile() return t.Encode() default: @@ -51505,11 +52582,14 @@ func (m *Payments_PaymentReceipt) Encode() []byte { } } -func (m *Payments_PaymentReceipt) EncodeToLayer(layer int) []byte { +func (m *Messages_SentEncryptedMessage) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_payments_paymentReceipt: - t := m.To_PaymentsPaymentReceipt() + case TLConstructor_CRC32_messages_sentEncryptedMessage: + t := m.To_MessagesSentEncryptedMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_sentEncryptedFile: + t := m.To_MessagesSentEncryptedFile() return t.EncodeToLayer(layer) default: @@ -51518,11 +52598,15 @@ func (m *Payments_PaymentReceipt) EncodeToLayer(layer int) []byte { } } -func (m *Payments_PaymentReceipt) Decode(dbuf *DecodeBuf) error { +func (m *Messages_SentEncryptedMessage) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_payments_paymentReceipt: - m2 := &TLPaymentsPaymentReceipt{Data2: &Payments_PaymentReceipt_Data{}} + case TLConstructor_CRC32_messages_sentEncryptedMessage: + m2 := &TLMessagesSentEncryptedMessage{Data2: &Messages_SentEncryptedMessage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_sentEncryptedFile: + m2 := &TLMessagesSentEncryptedFile{Data2: &Messages_SentEncryptedMessage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -51532,174 +52616,151 @@ func (m *Payments_PaymentReceipt) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; -func (m *Payments_PaymentReceipt) To_PaymentsPaymentReceipt() *TLPaymentsPaymentReceipt { - return &TLPaymentsPaymentReceipt{ +// messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage; +func (m *Messages_SentEncryptedMessage) To_MessagesSentEncryptedMessage() *TLMessagesSentEncryptedMessage { + return &TLMessagesSentEncryptedMessage{ Data2: m.Data2, } } -// payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; -func (m *TLPaymentsPaymentReceipt) To_Payments_PaymentReceipt() *Payments_PaymentReceipt { - return &Payments_PaymentReceipt{ - Constructor: TLConstructor_CRC32_payments_paymentReceipt, +// messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage; +func (m *Messages_SentEncryptedMessage) To_MessagesSentEncryptedFile() *TLMessagesSentEncryptedFile { + return &TLMessagesSentEncryptedFile{ + Data2: m.Data2, + } +} + +// messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage; +func (m *TLMessagesSentEncryptedMessage) To_Messages_SentEncryptedMessage() *Messages_SentEncryptedMessage { + return &Messages_SentEncryptedMessage{ + Constructor: TLConstructor_CRC32_messages_sentEncryptedMessage, Data2: m.Data2, } } -func (m *TLPaymentsPaymentReceipt) SetDate(v int32) { m.Data2.Date = v } -func (m *TLPaymentsPaymentReceipt) GetDate() int32 { return m.Data2.Date } +func (m *TLMessagesSentEncryptedMessage) SetDate(v int32) { m.Data2.Date = v } +func (m *TLMessagesSentEncryptedMessage) GetDate() int32 { return m.Data2.Date } -func (m *TLPaymentsPaymentReceipt) SetBotId(v int32) { m.Data2.BotId = v } -func (m *TLPaymentsPaymentReceipt) GetBotId() int32 { return m.Data2.BotId } +func NewTLMessagesSentEncryptedMessage() *TLMessagesSentEncryptedMessage { + return &TLMessagesSentEncryptedMessage{Data2: &Messages_SentEncryptedMessage_Data{}} +} -func (m *TLPaymentsPaymentReceipt) SetInvoice(v *Invoice) { m.Data2.Invoice = v } -func (m *TLPaymentsPaymentReceipt) GetInvoice() *Invoice { return m.Data2.Invoice } +func (m *TLMessagesSentEncryptedMessage) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_sentEncryptedMessage)) -func (m *TLPaymentsPaymentReceipt) SetProviderId(v int32) { m.Data2.ProviderId = v } -func (m *TLPaymentsPaymentReceipt) GetProviderId() int32 { return m.Data2.ProviderId } + x.Int(m.GetDate()) -func (m *TLPaymentsPaymentReceipt) SetInfo(v *PaymentRequestedInfo) { m.Data2.Info = v } -func (m *TLPaymentsPaymentReceipt) GetInfo() *PaymentRequestedInfo { return m.Data2.Info } + return x.buf +} -func (m *TLPaymentsPaymentReceipt) SetShipping(v *ShippingOption) { m.Data2.Shipping = v } -func (m *TLPaymentsPaymentReceipt) GetShipping() *ShippingOption { return m.Data2.Shipping } +func (m *TLMessagesSentEncryptedMessage) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_sentEncryptedMessage)) -func (m *TLPaymentsPaymentReceipt) SetCurrency(v string) { m.Data2.Currency = v } -func (m *TLPaymentsPaymentReceipt) GetCurrency() string { return m.Data2.Currency } + x.Int(m.GetDate()) -func (m *TLPaymentsPaymentReceipt) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } -func (m *TLPaymentsPaymentReceipt) GetTotalAmount() int64 { return m.Data2.TotalAmount } + return x.buf +} -func (m *TLPaymentsPaymentReceipt) SetCredentialsTitle(v string) { m.Data2.CredentialsTitle = v } -func (m *TLPaymentsPaymentReceipt) GetCredentialsTitle() string { return m.Data2.CredentialsTitle } +func (m *TLMessagesSentEncryptedMessage) Decode(dbuf *DecodeBuf) error { + m.SetDate(dbuf.Int()) -func (m *TLPaymentsPaymentReceipt) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLPaymentsPaymentReceipt) GetUsers() []*User { return m.Data2.Users } + return dbuf.err +} -func NewTLPaymentsPaymentReceipt() *TLPaymentsPaymentReceipt { - return &TLPaymentsPaymentReceipt{Data2: &Payments_PaymentReceipt_Data{}} +// messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage; +func (m *TLMessagesSentEncryptedFile) To_Messages_SentEncryptedMessage() *Messages_SentEncryptedMessage { + return &Messages_SentEncryptedMessage{ + Constructor: TLConstructor_CRC32_messages_sentEncryptedFile, + Data2: m.Data2, + } } -func (m *TLPaymentsPaymentReceipt) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_payments_paymentReceipt)) +func (m *TLMessagesSentEncryptedFile) SetDate(v int32) { m.Data2.Date = v } +func (m *TLMessagesSentEncryptedFile) GetDate() int32 { return m.Data2.Date } - // flags - var flags uint32 = 0 - if m.GetInfo() != nil { - flags |= 1 << 0 - } - if m.GetShipping() != nil { - flags |= 1 << 1 - } - x.UInt(flags) +func (m *TLMessagesSentEncryptedFile) SetFile(v *EncryptedFile) { m.Data2.File = v } +func (m *TLMessagesSentEncryptedFile) GetFile() *EncryptedFile { return m.Data2.File } + +func NewTLMessagesSentEncryptedFile() *TLMessagesSentEncryptedFile { + return &TLMessagesSentEncryptedFile{Data2: &Messages_SentEncryptedMessage_Data{}} +} + +func (m *TLMessagesSentEncryptedFile) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_sentEncryptedFile)) x.Int(m.GetDate()) - x.Int(m.GetBotId()) - x.Bytes(m.GetInvoice().Encode()) - x.Int(m.GetProviderId()) - if m.GetInfo() != nil { - x.Bytes(m.GetInfo().Encode()) - } - if m.GetShipping() != nil { - x.Bytes(m.GetShipping().Encode()) - } - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) - x.String(m.GetCredentialsTitle()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetFile().Encode()) return x.buf } -func (m *TLPaymentsPaymentReceipt) EncodeToLayer(layer int) []byte { +func (m *TLMessagesSentEncryptedFile) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_payments_paymentReceipt)) - - // flags - var flags uint32 = 0 - if m.GetInfo() != nil { - flags |= 1 << 0 - } - if m.GetShipping() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_messages_sentEncryptedFile)) x.Int(m.GetDate()) - x.Int(m.GetBotId()) - x.Bytes(m.GetInvoice().EncodeToLayer(layer)) - x.Int(m.GetProviderId()) - if m.GetInfo() != nil { - x.Bytes(m.GetInfo().EncodeToLayer(layer)) - } - if m.GetShipping() != nil { - x.Bytes(m.GetShipping().EncodeToLayer(layer)) - } - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) - x.String(m.GetCredentialsTitle()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetFile().EncodeToLayer(layer)) return x.buf } -func (m *TLPaymentsPaymentReceipt) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags +func (m *TLMessagesSentEncryptedFile) Decode(dbuf *DecodeBuf) error { m.SetDate(dbuf.Int()) - m.SetBotId(dbuf.Int()) - m4 := &Invoice{} - m4.Decode(dbuf) - m.SetInvoice(m4) - m.SetProviderId(dbuf.Int()) - if (flags & (1 << 0)) != 0 { - m6 := &PaymentRequestedInfo{} - m6.Decode(dbuf) - m.SetInfo(m6) - } - if (flags & (1 << 1)) != 0 { - m7 := &ShippingOption{} - m7.Decode(dbuf) - m.SetShipping(m7) - } - m.SetCurrency(dbuf.String()) - m.SetTotalAmount(dbuf.Long()) - m.SetCredentialsTitle(dbuf.String()) - c11 := dbuf.Int() - if c11 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 11, c11) - return dbuf.err - } - l11 := dbuf.Int() - v11 := make([]*User, l11) - for i := int32(0); i < l11; i++ { - v11[i] = &User{} - v11[i].Decode(dbuf) - } - m.SetUsers(v11) + m2 := &EncryptedFile{} + m2.Decode(dbuf) + m.SetFile(m2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Help_RecentMeUrls <-- -// + TL_HelpRecentMeUrls +// RichText <-- +// + TL_TextEmpty +// + TL_TextPlain +// + TL_TextBold +// + TL_TextItalic +// + TL_TextUnderline +// + TL_TextStrike +// + TL_TextFixed +// + TL_TextUrl +// + TL_TextEmail +// + TL_TextConcat // -func (m *Help_RecentMeUrls) Encode() []byte { +func (m *RichText) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_help_recentMeUrls: - t := m.To_HelpRecentMeUrls() + case TLConstructor_CRC32_textEmpty: + t := m.To_TextEmpty() + return t.Encode() + case TLConstructor_CRC32_textPlain: + t := m.To_TextPlain() + return t.Encode() + case TLConstructor_CRC32_textBold: + t := m.To_TextBold() + return t.Encode() + case TLConstructor_CRC32_textItalic: + t := m.To_TextItalic() + return t.Encode() + case TLConstructor_CRC32_textUnderline: + t := m.To_TextUnderline() + return t.Encode() + case TLConstructor_CRC32_textStrike: + t := m.To_TextStrike() + return t.Encode() + case TLConstructor_CRC32_textFixed: + t := m.To_TextFixed() + return t.Encode() + case TLConstructor_CRC32_textUrl: + t := m.To_TextUrl() + return t.Encode() + case TLConstructor_CRC32_textEmail: + t := m.To_TextEmail() + return t.Encode() + case TLConstructor_CRC32_textConcat: + t := m.To_TextConcat() return t.Encode() default: @@ -51708,11 +52769,38 @@ func (m *Help_RecentMeUrls) Encode() []byte { } } -func (m *Help_RecentMeUrls) EncodeToLayer(layer int) []byte { +func (m *RichText) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_help_recentMeUrls: - t := m.To_HelpRecentMeUrls() + case TLConstructor_CRC32_textEmpty: + t := m.To_TextEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_textPlain: + t := m.To_TextPlain() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_textBold: + t := m.To_TextBold() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_textItalic: + t := m.To_TextItalic() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_textUnderline: + t := m.To_TextUnderline() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_textStrike: + t := m.To_TextStrike() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_textFixed: + t := m.To_TextFixed() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_textUrl: + t := m.To_TextUrl() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_textEmail: + t := m.To_TextEmail() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_textConcat: + t := m.To_TextConcat() return t.EncodeToLayer(layer) default: @@ -51721,11 +52809,47 @@ func (m *Help_RecentMeUrls) EncodeToLayer(layer int) []byte { } } -func (m *Help_RecentMeUrls) Decode(dbuf *DecodeBuf) error { +func (m *RichText) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_help_recentMeUrls: - m2 := &TLHelpRecentMeUrls{Data2: &Help_RecentMeUrls_Data{}} + case TLConstructor_CRC32_textEmpty: + m2 := &TLTextEmpty{Data2: &RichText_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_textPlain: + m2 := &TLTextPlain{Data2: &RichText_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_textBold: + m2 := &TLTextBold{Data2: &RichText_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_textItalic: + m2 := &TLTextItalic{Data2: &RichText_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_textUnderline: + m2 := &TLTextUnderline{Data2: &RichText_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_textStrike: + m2 := &TLTextStrike{Data2: &RichText_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_textFixed: + m2 := &TLTextFixed{Data2: &RichText_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_textUrl: + m2 := &TLTextUrl{Data2: &RichText_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_textEmail: + m2 := &TLTextEmail{Data2: &RichText_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_textConcat: + m2 := &TLTextConcat{Data2: &RichText_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -51735,739 +52859,518 @@ func (m *Help_RecentMeUrls) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// help.recentMeUrls#e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls; -func (m *Help_RecentMeUrls) To_HelpRecentMeUrls() *TLHelpRecentMeUrls { - return &TLHelpRecentMeUrls{ +// textEmpty#dc3d824f = RichText; +func (m *RichText) To_TextEmpty() *TLTextEmpty { + return &TLTextEmpty{ Data2: m.Data2, } } -// help.recentMeUrls#e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls; -func (m *TLHelpRecentMeUrls) To_Help_RecentMeUrls() *Help_RecentMeUrls { - return &Help_RecentMeUrls{ - Constructor: TLConstructor_CRC32_help_recentMeUrls, - Data2: m.Data2, +// textPlain#744694e0 text:string = RichText; +func (m *RichText) To_TextPlain() *TLTextPlain { + return &TLTextPlain{ + Data2: m.Data2, } } -func (m *TLHelpRecentMeUrls) SetUrls(v []*RecentMeUrl) { m.Data2.Urls = v } -func (m *TLHelpRecentMeUrls) GetUrls() []*RecentMeUrl { return m.Data2.Urls } - -func (m *TLHelpRecentMeUrls) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLHelpRecentMeUrls) GetChats() []*Chat { return m.Data2.Chats } - -func (m *TLHelpRecentMeUrls) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLHelpRecentMeUrls) GetUsers() []*User { return m.Data2.Users } - -func NewTLHelpRecentMeUrls() *TLHelpRecentMeUrls { - return &TLHelpRecentMeUrls{Data2: &Help_RecentMeUrls_Data{}} +// textBold#6724abc4 text:RichText = RichText; +func (m *RichText) To_TextBold() *TLTextBold { + return &TLTextBold{ + Data2: m.Data2, + } } -func (m *TLHelpRecentMeUrls) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_recentMeUrls)) +// textItalic#d912a59c text:RichText = RichText; +func (m *RichText) To_TextItalic() *TLTextItalic { + return &TLTextItalic{ + Data2: m.Data2, + } +} - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUrls()))) - for _, v := range m.GetUrls() { - x.buf = append(x.buf, (*v).Encode()...) +// textUnderline#c12622c4 text:RichText = RichText; +func (m *RichText) To_TextUnderline() *TLTextUnderline { + return &TLTextUnderline{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) +} + +// textStrike#9bf8bb95 text:RichText = RichText; +func (m *RichText) To_TextStrike() *TLTextStrike { + return &TLTextStrike{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) +} + +// textFixed#6c3f19b9 text:RichText = RichText; +func (m *RichText) To_TextFixed() *TLTextFixed { + return &TLTextFixed{ + Data2: m.Data2, } +} - return x.buf +// textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText; +func (m *RichText) To_TextUrl() *TLTextUrl { + return &TLTextUrl{ + Data2: m.Data2, + } } -func (m *TLHelpRecentMeUrls) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_help_recentMeUrls)) - - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUrls()))) - for _, v := range m.GetUrls() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) +// textEmail#de5a0dd6 text:RichText email:string = RichText; +func (m *RichText) To_TextEmail() *TLTextEmail { + return &TLTextEmail{ + Data2: m.Data2, } - - return x.buf } -func (m *TLHelpRecentMeUrls) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*RecentMeUrl, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &RecentMeUrl{} - v1[i].Decode(dbuf) - } - m.SetUrls(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Chat, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Chat{} - v2[i].Decode(dbuf) +// textConcat#7e6260d7 texts:Vector = RichText; +func (m *RichText) To_TextConcat() *TLTextConcat { + return &TLTextConcat{ + Data2: m.Data2, } - m.SetChats(v2) +} - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*User, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &User{} - v3[i].Decode(dbuf) +// textEmpty#dc3d824f = RichText; +func (m *TLTextEmpty) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textEmpty, + Data2: m.Data2, } - m.SetUsers(v3) - - return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// GeoPoint <-- -// + TL_GeoPointEmpty -// + TL_GeoPoint -// - -func (m *GeoPoint) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_geoPointEmpty: - t := m.To_GeoPointEmpty() - return t.Encode() - case TLConstructor_CRC32_geoPoint: - t := m.To_GeoPoint() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLTextEmpty() *TLTextEmpty { + return &TLTextEmpty{Data2: &RichText_Data{}} } -func (m *GeoPoint) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_geoPointEmpty: - t := m.To_GeoPointEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_geoPoint: - t := m.To_GeoPoint() - return t.EncodeToLayer(layer) +func (m *TLTextEmpty) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_textEmpty)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *GeoPoint) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_geoPointEmpty: - m2 := &TLGeoPointEmpty{Data2: &GeoPoint_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_geoPoint: - m2 := &TLGeoPoint{Data2: &GeoPoint_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLTextEmpty) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_textEmpty)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + return x.buf } -// geoPointEmpty#1117dd5f = GeoPoint; -func (m *GeoPoint) To_GeoPointEmpty() *TLGeoPointEmpty { - return &TLGeoPointEmpty{ - Data2: m.Data2, - } -} +func (m *TLTextEmpty) Decode(dbuf *DecodeBuf) error { -// geoPoint#296f104 long:double lat:double access_hash:long = GeoPoint; -func (m *GeoPoint) To_GeoPoint() *TLGeoPoint { - return &TLGeoPoint{ - Data2: m.Data2, - } + return dbuf.err } -// geoPointEmpty#1117dd5f = GeoPoint; -func (m *TLGeoPointEmpty) To_GeoPoint() *GeoPoint { - return &GeoPoint{ - Constructor: TLConstructor_CRC32_geoPointEmpty, +// textPlain#744694e0 text:string = RichText; +func (m *TLTextPlain) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textPlain, Data2: m.Data2, } } -func NewTLGeoPointEmpty() *TLGeoPointEmpty { - return &TLGeoPointEmpty{Data2: &GeoPoint_Data{}} +func (m *TLTextPlain) SetText(v string) { m.Data2.Text_1 = v } +func (m *TLTextPlain) GetText() string { return m.Data2.Text_1 } + +func NewTLTextPlain() *TLTextPlain { + return &TLTextPlain{Data2: &RichText_Data{}} } -func (m *TLGeoPointEmpty) Encode() []byte { +func (m *TLTextPlain) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_geoPointEmpty)) + x.Int(int32(TLConstructor_CRC32_textPlain)) + + x.String(m.GetText()) return x.buf } -func (m *TLGeoPointEmpty) EncodeToLayer(layer int) []byte { +func (m *TLTextPlain) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_geoPointEmpty)) + x.Int(int32(TLConstructor_CRC32_textPlain)) + + x.String(m.GetText()) return x.buf } -func (m *TLGeoPointEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLTextPlain) Decode(dbuf *DecodeBuf) error { + m.SetText(dbuf.String()) return dbuf.err } -// geoPoint#296f104 long:double lat:double access_hash:long = GeoPoint; -func (m *TLGeoPoint) To_GeoPoint() *GeoPoint { - return &GeoPoint{ - Constructor: TLConstructor_CRC32_geoPoint, +// textBold#6724abc4 text:RichText = RichText; +func (m *TLTextBold) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textBold, Data2: m.Data2, } } -func (m *TLGeoPoint) SetLong(v float64) { m.Data2.Long = v } -func (m *TLGeoPoint) GetLong() float64 { return m.Data2.Long } - -func (m *TLGeoPoint) SetLat(v float64) { m.Data2.Lat = v } -func (m *TLGeoPoint) GetLat() float64 { return m.Data2.Lat } - -func (m *TLGeoPoint) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLGeoPoint) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLTextBold) SetText(v *RichText) { m.Data2.Text_2 = v } +func (m *TLTextBold) GetText() *RichText { return m.Data2.Text_2 } -func NewTLGeoPoint() *TLGeoPoint { - return &TLGeoPoint{Data2: &GeoPoint_Data{}} +func NewTLTextBold() *TLTextBold { + return &TLTextBold{Data2: &RichText_Data{}} } -func (m *TLGeoPoint) Encode() []byte { +func (m *TLTextBold) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_geoPoint)) + x.Int(int32(TLConstructor_CRC32_textBold)) - x.Double(m.GetLong()) - x.Double(m.GetLat()) - x.Long(m.GetAccessHash()) + x.Bytes(m.GetText().Encode()) return x.buf } -func (m *TLGeoPoint) EncodeToLayer(layer int) []byte { +func (m *TLTextBold) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_geoPoint)) + x.Int(int32(TLConstructor_CRC32_textBold)) - x.Double(m.GetLong()) - x.Double(m.GetLat()) - x.Long(m.GetAccessHash()) + x.Bytes(m.GetText().EncodeToLayer(layer)) return x.buf } -func (m *TLGeoPoint) Decode(dbuf *DecodeBuf) error { - m.SetLong(dbuf.Double()) - m.SetLat(dbuf.Double()) - m.SetAccessHash(dbuf.Long()) +func (m *TLTextBold) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// EncryptedMessage <-- -// + TL_EncryptedMessage -// + TL_EncryptedMessageService -// - -func (m *EncryptedMessage) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_encryptedMessage: - t := m.To_EncryptedMessage() - return t.Encode() - case TLConstructor_CRC32_encryptedMessageService: - t := m.To_EncryptedMessageService() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// textItalic#d912a59c text:RichText = RichText; +func (m *TLTextItalic) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textItalic, + Data2: m.Data2, } } -func (m *EncryptedMessage) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_encryptedMessage: - t := m.To_EncryptedMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_encryptedMessageService: - t := m.To_EncryptedMessageService() - return t.EncodeToLayer(layer) +func (m *TLTextItalic) SetText(v *RichText) { m.Data2.Text_2 = v } +func (m *TLTextItalic) GetText() *RichText { return m.Data2.Text_2 } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLTextItalic() *TLTextItalic { + return &TLTextItalic{Data2: &RichText_Data{}} } -func (m *EncryptedMessage) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_encryptedMessage: - m2 := &TLEncryptedMessage{Data2: &EncryptedMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_encryptedMessageService: - m2 := &TLEncryptedMessageService{Data2: &EncryptedMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLTextItalic) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_textItalic)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetText().Encode()) + + return x.buf } -// encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage; -func (m *EncryptedMessage) To_EncryptedMessage() *TLEncryptedMessage { - return &TLEncryptedMessage{ - Data2: m.Data2, - } +func (m *TLTextItalic) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_textItalic)) + + x.Bytes(m.GetText().EncodeToLayer(layer)) + + return x.buf } -// encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage; -func (m *EncryptedMessage) To_EncryptedMessageService() *TLEncryptedMessageService { - return &TLEncryptedMessageService{ - Data2: m.Data2, - } +func (m *TLTextItalic) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) + + return dbuf.err } -// encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage; -func (m *TLEncryptedMessage) To_EncryptedMessage() *EncryptedMessage { - return &EncryptedMessage{ - Constructor: TLConstructor_CRC32_encryptedMessage, +// textUnderline#c12622c4 text:RichText = RichText; +func (m *TLTextUnderline) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textUnderline, Data2: m.Data2, } } -func (m *TLEncryptedMessage) SetRandomId(v int64) { m.Data2.RandomId = v } -func (m *TLEncryptedMessage) GetRandomId() int64 { return m.Data2.RandomId } - -func (m *TLEncryptedMessage) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLEncryptedMessage) GetChatId() int32 { return m.Data2.ChatId } - -func (m *TLEncryptedMessage) SetDate(v int32) { m.Data2.Date = v } -func (m *TLEncryptedMessage) GetDate() int32 { return m.Data2.Date } - -func (m *TLEncryptedMessage) SetBytes(v []byte) { m.Data2.Bytes = v } -func (m *TLEncryptedMessage) GetBytes() []byte { return m.Data2.Bytes } - -func (m *TLEncryptedMessage) SetFile(v *EncryptedFile) { m.Data2.File = v } -func (m *TLEncryptedMessage) GetFile() *EncryptedFile { return m.Data2.File } +func (m *TLTextUnderline) SetText(v *RichText) { m.Data2.Text_2 = v } +func (m *TLTextUnderline) GetText() *RichText { return m.Data2.Text_2 } -func NewTLEncryptedMessage() *TLEncryptedMessage { - return &TLEncryptedMessage{Data2: &EncryptedMessage_Data{}} +func NewTLTextUnderline() *TLTextUnderline { + return &TLTextUnderline{Data2: &RichText_Data{}} } -func (m *TLEncryptedMessage) Encode() []byte { +func (m *TLTextUnderline) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedMessage)) + x.Int(int32(TLConstructor_CRC32_textUnderline)) - x.Long(m.GetRandomId()) - x.Int(m.GetChatId()) - x.Int(m.GetDate()) - x.StringBytes(m.GetBytes()) - x.Bytes(m.GetFile().Encode()) + x.Bytes(m.GetText().Encode()) return x.buf } -func (m *TLEncryptedMessage) EncodeToLayer(layer int) []byte { +func (m *TLTextUnderline) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedMessage)) + x.Int(int32(TLConstructor_CRC32_textUnderline)) - x.Long(m.GetRandomId()) - x.Int(m.GetChatId()) - x.Int(m.GetDate()) - x.StringBytes(m.GetBytes()) - x.Bytes(m.GetFile().EncodeToLayer(layer)) + x.Bytes(m.GetText().EncodeToLayer(layer)) return x.buf } -func (m *TLEncryptedMessage) Decode(dbuf *DecodeBuf) error { - m.SetRandomId(dbuf.Long()) - m.SetChatId(dbuf.Int()) - m.SetDate(dbuf.Int()) - m.SetBytes(dbuf.StringBytes()) - m5 := &EncryptedFile{} - m5.Decode(dbuf) - m.SetFile(m5) +func (m *TLTextUnderline) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) return dbuf.err } -// encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage; -func (m *TLEncryptedMessageService) To_EncryptedMessage() *EncryptedMessage { - return &EncryptedMessage{ - Constructor: TLConstructor_CRC32_encryptedMessageService, +// textStrike#9bf8bb95 text:RichText = RichText; +func (m *TLTextStrike) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textStrike, Data2: m.Data2, } } -func (m *TLEncryptedMessageService) SetRandomId(v int64) { m.Data2.RandomId = v } -func (m *TLEncryptedMessageService) GetRandomId() int64 { return m.Data2.RandomId } - -func (m *TLEncryptedMessageService) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLEncryptedMessageService) GetChatId() int32 { return m.Data2.ChatId } - -func (m *TLEncryptedMessageService) SetDate(v int32) { m.Data2.Date = v } -func (m *TLEncryptedMessageService) GetDate() int32 { return m.Data2.Date } - -func (m *TLEncryptedMessageService) SetBytes(v []byte) { m.Data2.Bytes = v } -func (m *TLEncryptedMessageService) GetBytes() []byte { return m.Data2.Bytes } +func (m *TLTextStrike) SetText(v *RichText) { m.Data2.Text_2 = v } +func (m *TLTextStrike) GetText() *RichText { return m.Data2.Text_2 } -func NewTLEncryptedMessageService() *TLEncryptedMessageService { - return &TLEncryptedMessageService{Data2: &EncryptedMessage_Data{}} +func NewTLTextStrike() *TLTextStrike { + return &TLTextStrike{Data2: &RichText_Data{}} } -func (m *TLEncryptedMessageService) Encode() []byte { +func (m *TLTextStrike) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedMessageService)) + x.Int(int32(TLConstructor_CRC32_textStrike)) - x.Long(m.GetRandomId()) - x.Int(m.GetChatId()) - x.Int(m.GetDate()) - x.StringBytes(m.GetBytes()) + x.Bytes(m.GetText().Encode()) return x.buf } -func (m *TLEncryptedMessageService) EncodeToLayer(layer int) []byte { +func (m *TLTextStrike) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedMessageService)) + x.Int(int32(TLConstructor_CRC32_textStrike)) - x.Long(m.GetRandomId()) - x.Int(m.GetChatId()) - x.Int(m.GetDate()) - x.StringBytes(m.GetBytes()) + x.Bytes(m.GetText().EncodeToLayer(layer)) return x.buf } -func (m *TLEncryptedMessageService) Decode(dbuf *DecodeBuf) error { - m.SetRandomId(dbuf.Long()) - m.SetChatId(dbuf.Int()) - m.SetDate(dbuf.Int()) - m.SetBytes(dbuf.StringBytes()) +func (m *TLTextStrike) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// MaskCoords <-- -// + TL_MaskCoords -// +// textFixed#6c3f19b9 text:RichText = RichText; +func (m *TLTextFixed) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textFixed, + Data2: m.Data2, + } +} -func (m *MaskCoords) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_maskCoords: - t := m.To_MaskCoords() - return t.Encode() +func (m *TLTextFixed) SetText(v *RichText) { m.Data2.Text_2 = v } +func (m *TLTextFixed) GetText() *RichText { return m.Data2.Text_2 } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLTextFixed() *TLTextFixed { + return &TLTextFixed{Data2: &RichText_Data{}} } -func (m *MaskCoords) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_maskCoords: - t := m.To_MaskCoords() - return t.EncodeToLayer(layer) +func (m *TLTextFixed) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_textFixed)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Bytes(m.GetText().Encode()) + + return x.buf } -func (m *MaskCoords) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_maskCoords: - m2 := &TLMaskCoords{Data2: &MaskCoords_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLTextFixed) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_textFixed)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Bytes(m.GetText().EncodeToLayer(layer)) + + return x.buf } -// maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords; -func (m *MaskCoords) To_MaskCoords() *TLMaskCoords { - return &TLMaskCoords{ - Data2: m.Data2, - } +func (m *TLTextFixed) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) + + return dbuf.err } -// maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords; -func (m *TLMaskCoords) To_MaskCoords() *MaskCoords { - return &MaskCoords{ - Constructor: TLConstructor_CRC32_maskCoords, +// textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText; +func (m *TLTextUrl) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textUrl, Data2: m.Data2, } } -func (m *TLMaskCoords) SetN(v int32) { m.Data2.N = v } -func (m *TLMaskCoords) GetN() int32 { return m.Data2.N } - -func (m *TLMaskCoords) SetX(v float64) { m.Data2.X = v } -func (m *TLMaskCoords) GetX() float64 { return m.Data2.X } +func (m *TLTextUrl) SetText(v *RichText) { m.Data2.Text_2 = v } +func (m *TLTextUrl) GetText() *RichText { return m.Data2.Text_2 } -func (m *TLMaskCoords) SetY(v float64) { m.Data2.Y = v } -func (m *TLMaskCoords) GetY() float64 { return m.Data2.Y } +func (m *TLTextUrl) SetUrl(v string) { m.Data2.Url = v } +func (m *TLTextUrl) GetUrl() string { return m.Data2.Url } -func (m *TLMaskCoords) SetZoom(v float64) { m.Data2.Zoom = v } -func (m *TLMaskCoords) GetZoom() float64 { return m.Data2.Zoom } +func (m *TLTextUrl) SetWebpageId(v int64) { m.Data2.WebpageId = v } +func (m *TLTextUrl) GetWebpageId() int64 { return m.Data2.WebpageId } -func NewTLMaskCoords() *TLMaskCoords { - return &TLMaskCoords{Data2: &MaskCoords_Data{}} +func NewTLTextUrl() *TLTextUrl { + return &TLTextUrl{Data2: &RichText_Data{}} } -func (m *TLMaskCoords) Encode() []byte { +func (m *TLTextUrl) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_maskCoords)) + x.Int(int32(TLConstructor_CRC32_textUrl)) - x.Int(m.GetN()) - x.Double(m.GetX()) - x.Double(m.GetY()) - x.Double(m.GetZoom()) + x.Bytes(m.GetText().Encode()) + x.String(m.GetUrl()) + x.Long(m.GetWebpageId()) return x.buf } -func (m *TLMaskCoords) EncodeToLayer(layer int) []byte { +func (m *TLTextUrl) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_maskCoords)) + x.Int(int32(TLConstructor_CRC32_textUrl)) - x.Int(m.GetN()) - x.Double(m.GetX()) - x.Double(m.GetY()) - x.Double(m.GetZoom()) + x.Bytes(m.GetText().EncodeToLayer(layer)) + x.String(m.GetUrl()) + x.Long(m.GetWebpageId()) return x.buf } -func (m *TLMaskCoords) Decode(dbuf *DecodeBuf) error { - m.SetN(dbuf.Int()) - m.SetX(dbuf.Double()) - m.SetY(dbuf.Double()) - m.SetZoom(dbuf.Double()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// PasswordKdfAlgo <-- -// + TL_PasswordKdfAlgoUnknown -// + TL_PasswordKdfAlgoModPow -// - -func (m *PasswordKdfAlgo) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_passwordKdfAlgoUnknown: - t := m.To_PasswordKdfAlgoUnknown() - return t.Encode() - case TLConstructor_CRC32_passwordKdfAlgoModPow: - t := m.To_PasswordKdfAlgoModPow() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *PasswordKdfAlgo) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_passwordKdfAlgoUnknown: - t := m.To_PasswordKdfAlgoUnknown() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_passwordKdfAlgoModPow: - t := m.To_PasswordKdfAlgoModPow() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *PasswordKdfAlgo) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_passwordKdfAlgoUnknown: - m2 := &TLPasswordKdfAlgoUnknown{Data2: &PasswordKdfAlgo_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_passwordKdfAlgoModPow: - m2 := &TLPasswordKdfAlgoModPow{Data2: &PasswordKdfAlgo_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLTextUrl) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) + m.SetUrl(dbuf.String()) + m.SetWebpageId(dbuf.Long()) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo; -func (m *PasswordKdfAlgo) To_PasswordKdfAlgoUnknown() *TLPasswordKdfAlgoUnknown { - return &TLPasswordKdfAlgoUnknown{ - Data2: m.Data2, +// textEmail#de5a0dd6 text:RichText email:string = RichText; +func (m *TLTextEmail) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textEmail, + Data2: m.Data2, } } -// passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo; -func (m *PasswordKdfAlgo) To_PasswordKdfAlgoModPow() *TLPasswordKdfAlgoModPow { - return &TLPasswordKdfAlgoModPow{ - Data2: m.Data2, - } -} +func (m *TLTextEmail) SetText(v *RichText) { m.Data2.Text_2 = v } +func (m *TLTextEmail) GetText() *RichText { return m.Data2.Text_2 } -// passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo; -func (m *TLPasswordKdfAlgoUnknown) To_PasswordKdfAlgo() *PasswordKdfAlgo { - return &PasswordKdfAlgo{ - Constructor: TLConstructor_CRC32_passwordKdfAlgoUnknown, - Data2: m.Data2, - } -} +func (m *TLTextEmail) SetEmail(v string) { m.Data2.Email = v } +func (m *TLTextEmail) GetEmail() string { return m.Data2.Email } -func NewTLPasswordKdfAlgoUnknown() *TLPasswordKdfAlgoUnknown { - return &TLPasswordKdfAlgoUnknown{Data2: &PasswordKdfAlgo_Data{}} +func NewTLTextEmail() *TLTextEmail { + return &TLTextEmail{Data2: &RichText_Data{}} } -func (m *TLPasswordKdfAlgoUnknown) Encode() []byte { +func (m *TLTextEmail) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_passwordKdfAlgoUnknown)) + x.Int(int32(TLConstructor_CRC32_textEmail)) + + x.Bytes(m.GetText().Encode()) + x.String(m.GetEmail()) return x.buf } -func (m *TLPasswordKdfAlgoUnknown) EncodeToLayer(layer int) []byte { +func (m *TLTextEmail) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_passwordKdfAlgoUnknown)) + x.Int(int32(TLConstructor_CRC32_textEmail)) + + x.Bytes(m.GetText().EncodeToLayer(layer)) + x.String(m.GetEmail()) return x.buf } -func (m *TLPasswordKdfAlgoUnknown) Decode(dbuf *DecodeBuf) error { +func (m *TLTextEmail) Decode(dbuf *DecodeBuf) error { + m1 := &RichText{} + m1.Decode(dbuf) + m.SetText(m1) + m.SetEmail(dbuf.String()) return dbuf.err } -// passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo; -func (m *TLPasswordKdfAlgoModPow) To_PasswordKdfAlgo() *PasswordKdfAlgo { - return &PasswordKdfAlgo{ - Constructor: TLConstructor_CRC32_passwordKdfAlgoModPow, +// textConcat#7e6260d7 texts:Vector = RichText; +func (m *TLTextConcat) To_RichText() *RichText { + return &RichText{ + Constructor: TLConstructor_CRC32_textConcat, Data2: m.Data2, } } -func (m *TLPasswordKdfAlgoModPow) SetSalt1(v []byte) { m.Data2.Salt1 = v } -func (m *TLPasswordKdfAlgoModPow) GetSalt1() []byte { return m.Data2.Salt1 } - -func (m *TLPasswordKdfAlgoModPow) SetSalt2(v []byte) { m.Data2.Salt2 = v } -func (m *TLPasswordKdfAlgoModPow) GetSalt2() []byte { return m.Data2.Salt2 } - -func (m *TLPasswordKdfAlgoModPow) SetG(v int32) { m.Data2.G = v } -func (m *TLPasswordKdfAlgoModPow) GetG() int32 { return m.Data2.G } - -func (m *TLPasswordKdfAlgoModPow) SetP(v []byte) { m.Data2.P = v } -func (m *TLPasswordKdfAlgoModPow) GetP() []byte { return m.Data2.P } +func (m *TLTextConcat) SetTexts(v []*RichText) { m.Data2.Texts = v } +func (m *TLTextConcat) GetTexts() []*RichText { return m.Data2.Texts } -func NewTLPasswordKdfAlgoModPow() *TLPasswordKdfAlgoModPow { - return &TLPasswordKdfAlgoModPow{Data2: &PasswordKdfAlgo_Data{}} +func NewTLTextConcat() *TLTextConcat { + return &TLTextConcat{Data2: &RichText_Data{}} } -func (m *TLPasswordKdfAlgoModPow) Encode() []byte { +func (m *TLTextConcat) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_passwordKdfAlgoModPow)) + x.Int(int32(TLConstructor_CRC32_textConcat)) - x.StringBytes(m.GetSalt1()) - x.StringBytes(m.GetSalt2()) - x.Int(m.GetG()) - x.StringBytes(m.GetP()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTexts()))) + for _, v := range m.GetTexts() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLPasswordKdfAlgoModPow) EncodeToLayer(layer int) []byte { +func (m *TLTextConcat) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_passwordKdfAlgoModPow)) + x.Int(int32(TLConstructor_CRC32_textConcat)) - x.StringBytes(m.GetSalt1()) - x.StringBytes(m.GetSalt2()) - x.Int(m.GetG()) - x.StringBytes(m.GetP()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTexts()))) + for _, v := range m.GetTexts() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLPasswordKdfAlgoModPow) Decode(dbuf *DecodeBuf) error { - m.SetSalt1(dbuf.StringBytes()) - m.SetSalt2(dbuf.StringBytes()) - m.SetG(dbuf.Int()) - m.SetP(dbuf.StringBytes()) +func (m *TLTextConcat) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*RichText, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &RichText{} + v1[i].Decode(dbuf) + } + m.SetTexts(v1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// LangPackDifference <-- -// + TL_LangPackDifference +// InputSingleMedia <-- +// + TL_InputSingleMedia // -func (m *LangPackDifference) Encode() []byte { +func (m *InputSingleMedia) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_langPackDifference: - t := m.To_LangPackDifference() + case TLConstructor_CRC32_inputSingleMedia: + t := m.To_InputSingleMedia() return t.Encode() default: @@ -52476,11 +53379,11 @@ func (m *LangPackDifference) Encode() []byte { } } -func (m *LangPackDifference) EncodeToLayer(layer int) []byte { +func (m *InputSingleMedia) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_langPackDifference: - t := m.To_LangPackDifference() + case TLConstructor_CRC32_inputSingleMedia: + t := m.To_InputSingleMedia() return t.EncodeToLayer(layer) default: @@ -52489,11 +53392,11 @@ func (m *LangPackDifference) EncodeToLayer(layer int) []byte { } } -func (m *LangPackDifference) Decode(dbuf *DecodeBuf) error { +func (m *InputSingleMedia) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_langPackDifference: - m2 := &TLLangPackDifference{Data2: &LangPackDifference_Data{}} + case TLConstructor_CRC32_inputSingleMedia: + m2 := &TLInputSingleMedia{Data2: &InputSingleMedia_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -52503,98 +53406,127 @@ func (m *LangPackDifference) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference; -func (m *LangPackDifference) To_LangPackDifference() *TLLangPackDifference { - return &TLLangPackDifference{ +// inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia; +func (m *InputSingleMedia) To_InputSingleMedia() *TLInputSingleMedia { + return &TLInputSingleMedia{ Data2: m.Data2, } } -// langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference; -func (m *TLLangPackDifference) To_LangPackDifference() *LangPackDifference { - return &LangPackDifference{ - Constructor: TLConstructor_CRC32_langPackDifference, +// inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia; +func (m *TLInputSingleMedia) To_InputSingleMedia() *InputSingleMedia { + return &InputSingleMedia{ + Constructor: TLConstructor_CRC32_inputSingleMedia, Data2: m.Data2, } } -func (m *TLLangPackDifference) SetLangCode(v string) { m.Data2.LangCode = v } -func (m *TLLangPackDifference) GetLangCode() string { return m.Data2.LangCode } +func (m *TLInputSingleMedia) SetMedia(v *InputMedia) { m.Data2.Media = v } +func (m *TLInputSingleMedia) GetMedia() *InputMedia { return m.Data2.Media } -func (m *TLLangPackDifference) SetFromVersion(v int32) { m.Data2.FromVersion = v } -func (m *TLLangPackDifference) GetFromVersion() int32 { return m.Data2.FromVersion } +func (m *TLInputSingleMedia) SetRandomId(v int64) { m.Data2.RandomId = v } +func (m *TLInputSingleMedia) GetRandomId() int64 { return m.Data2.RandomId } -func (m *TLLangPackDifference) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLLangPackDifference) GetVersion() int32 { return m.Data2.Version } +func (m *TLInputSingleMedia) SetMessage(v string) { m.Data2.Message = v } +func (m *TLInputSingleMedia) GetMessage() string { return m.Data2.Message } -func (m *TLLangPackDifference) SetStrings(v []*LangPackString) { m.Data2.Strings = v } -func (m *TLLangPackDifference) GetStrings() []*LangPackString { return m.Data2.Strings } +func (m *TLInputSingleMedia) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLInputSingleMedia) GetEntities() []*MessageEntity { return m.Data2.Entities } -func NewTLLangPackDifference() *TLLangPackDifference { - return &TLLangPackDifference{Data2: &LangPackDifference_Data{}} +func NewTLInputSingleMedia() *TLInputSingleMedia { + return &TLInputSingleMedia{Data2: &InputSingleMedia_Data{}} } -func (m *TLLangPackDifference) Encode() []byte { +func (m *TLInputSingleMedia) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackDifference)) + x.Int(int32(TLConstructor_CRC32_inputSingleMedia)) - x.String(m.GetLangCode()) - x.Int(m.GetFromVersion()) - x.Int(m.GetVersion()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStrings()))) - for _, v := range m.GetStrings() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetEntities() != nil { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Bytes(m.GetMedia().Encode()) + x.Long(m.GetRandomId()) + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).Encode()...) + } } return x.buf } -func (m *TLLangPackDifference) EncodeToLayer(layer int) []byte { +func (m *TLInputSingleMedia) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackDifference)) + x.Int(int32(TLConstructor_CRC32_inputSingleMedia)) - x.String(m.GetLangCode()) - x.Int(m.GetFromVersion()) - x.Int(m.GetVersion()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetStrings()))) - for _, v := range m.GetStrings() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetEntities() != nil { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Bytes(m.GetMedia().EncodeToLayer(layer)) + x.Long(m.GetRandomId()) + x.String(m.GetMessage()) + if m.GetEntities() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } } return x.buf } -func (m *TLLangPackDifference) Decode(dbuf *DecodeBuf) error { - m.SetLangCode(dbuf.String()) - m.SetFromVersion(dbuf.Int()) - m.SetVersion(dbuf.Int()) - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*LangPackString, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &LangPackString{} - v4[i].Decode(dbuf) +func (m *TLInputSingleMedia) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m2 := &InputMedia{} + m2.Decode(dbuf) + m.SetMedia(m2) + m.SetRandomId(dbuf.Long()) + m.SetMessage(dbuf.String()) + if (flags & (1 << 0)) != 0 { + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*MessageEntity, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &MessageEntity{} + v5[i].Decode(dbuf) + } + m.SetEntities(v5) + } - m.SetStrings(v4) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Null <-- -// + TL_Null +// InputGeoPoint <-- +// + TL_InputGeoPointEmpty +// + TL_InputGeoPoint // -func (m *Null) Encode() []byte { +func (m *InputGeoPoint) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_null: - t := m.To_Null() + case TLConstructor_CRC32_inputGeoPointEmpty: + t := m.To_InputGeoPointEmpty() + return t.Encode() + case TLConstructor_CRC32_inputGeoPoint: + t := m.To_InputGeoPoint() return t.Encode() default: @@ -52603,11 +53535,14 @@ func (m *Null) Encode() []byte { } } -func (m *Null) EncodeToLayer(layer int) []byte { +func (m *InputGeoPoint) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_null: - t := m.To_Null() + case TLConstructor_CRC32_inputGeoPointEmpty: + t := m.To_InputGeoPointEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputGeoPoint: + t := m.To_InputGeoPoint() return t.EncodeToLayer(layer) default: @@ -52616,11 +53551,15 @@ func (m *Null) EncodeToLayer(layer int) []byte { } } -func (m *Null) Decode(dbuf *DecodeBuf) error { +func (m *InputGeoPoint) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_null: - m2 := &TLNull{Data2: &Null_Data{}} + case TLConstructor_CRC32_inputGeoPointEmpty: + m2 := &TLInputGeoPointEmpty{Data2: &InputGeoPoint_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputGeoPoint: + m2 := &TLInputGeoPoint{Data2: &InputGeoPoint_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -52630,69 +53569,113 @@ func (m *Null) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// null#56730bcc = Null; -func (m *Null) To_Null() *TLNull { - return &TLNull{ +// inputGeoPointEmpty#e4c123d6 = InputGeoPoint; +func (m *InputGeoPoint) To_InputGeoPointEmpty() *TLInputGeoPointEmpty { + return &TLInputGeoPointEmpty{ Data2: m.Data2, } } -// null#56730bcc = Null; -func (m *TLNull) To_Null() *Null { - return &Null{ - Constructor: TLConstructor_CRC32_null, +// inputGeoPoint#f3b7acc9 lat:double long:double = InputGeoPoint; +func (m *InputGeoPoint) To_InputGeoPoint() *TLInputGeoPoint { + return &TLInputGeoPoint{ + Data2: m.Data2, + } +} + +// inputGeoPointEmpty#e4c123d6 = InputGeoPoint; +func (m *TLInputGeoPointEmpty) To_InputGeoPoint() *InputGeoPoint { + return &InputGeoPoint{ + Constructor: TLConstructor_CRC32_inputGeoPointEmpty, Data2: m.Data2, } } -func NewTLNull() *TLNull { - return &TLNull{Data2: &Null_Data{}} +func NewTLInputGeoPointEmpty() *TLInputGeoPointEmpty { + return &TLInputGeoPointEmpty{Data2: &InputGeoPoint_Data{}} } -func (m *TLNull) Encode() []byte { +func (m *TLInputGeoPointEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_null)) + x.Int(int32(TLConstructor_CRC32_inputGeoPointEmpty)) return x.buf } -func (m *TLNull) EncodeToLayer(layer int) []byte { +func (m *TLInputGeoPointEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_null)) + x.Int(int32(TLConstructor_CRC32_inputGeoPointEmpty)) return x.buf } -func (m *TLNull) Decode(dbuf *DecodeBuf) error { +func (m *TLInputGeoPointEmpty) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// inputGeoPoint#f3b7acc9 lat:double long:double = InputGeoPoint; +func (m *TLInputGeoPoint) To_InputGeoPoint() *InputGeoPoint { + return &InputGeoPoint{ + Constructor: TLConstructor_CRC32_inputGeoPoint, + Data2: m.Data2, + } +} + +func (m *TLInputGeoPoint) SetLat(v float64) { m.Data2.Lat = v } +func (m *TLInputGeoPoint) GetLat() float64 { return m.Data2.Lat } + +func (m *TLInputGeoPoint) SetLong(v float64) { m.Data2.Long = v } +func (m *TLInputGeoPoint) GetLong() float64 { return m.Data2.Long } + +func NewTLInputGeoPoint() *TLInputGeoPoint { + return &TLInputGeoPoint{Data2: &InputGeoPoint_Data{}} +} + +func (m *TLInputGeoPoint) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputGeoPoint)) + + x.Double(m.GetLat()) + x.Double(m.GetLong()) + + return x.buf +} + +func (m *TLInputGeoPoint) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_inputGeoPoint)) + + x.Double(m.GetLat()) + x.Double(m.GetLong()) + + return x.buf +} + +func (m *TLInputGeoPoint) Decode(dbuf *DecodeBuf) error { + m.SetLat(dbuf.Double()) + m.SetLong(dbuf.Double()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Chat <-- -// + TL_ChatEmpty -// + TL_Chat -// + TL_ChatForbidden -// + TL_Channel -// + TL_ChannelForbidden +// InputPhoto <-- +// + TL_InputPhotoEmpty +// + TL_InputPhoto +// + TL_InputPhotoLayer86 // -func (m *Chat) Encode() []byte { +func (m *InputPhoto) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_chatEmpty: - t := m.To_ChatEmpty() - return t.Encode() - case TLConstructor_CRC32_chat: - t := m.To_Chat() - return t.Encode() - case TLConstructor_CRC32_chatForbidden: - t := m.To_ChatForbidden() + case TLConstructor_CRC32_inputPhotoEmpty: + t := m.To_InputPhotoEmpty() return t.Encode() - case TLConstructor_CRC32_channel: - t := m.To_Channel() + case TLConstructor_CRC32_inputPhoto: + t := m.To_InputPhoto() return t.Encode() - case TLConstructor_CRC32_channelForbidden: - t := m.To_ChannelForbidden() + case TLConstructor_CRC32_inputPhotoLayer86: + t := m.To_InputPhotoLayer86() return t.Encode() default: @@ -52701,23 +53684,17 @@ func (m *Chat) Encode() []byte { } } -func (m *Chat) EncodeToLayer(layer int) []byte { +func (m *InputPhoto) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_chatEmpty: - t := m.To_ChatEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_chat: - t := m.To_Chat() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_chatForbidden: - t := m.To_ChatForbidden() + case TLConstructor_CRC32_inputPhotoEmpty: + t := m.To_InputPhotoEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channel: - t := m.To_Channel() + case TLConstructor_CRC32_inputPhoto: + t := m.To_InputPhoto() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channelForbidden: - t := m.To_ChannelForbidden() + case TLConstructor_CRC32_inputPhotoLayer86: + t := m.To_InputPhotoLayer86() return t.EncodeToLayer(layer) default: @@ -52726,27 +53703,19 @@ func (m *Chat) EncodeToLayer(layer int) []byte { } } -func (m *Chat) Decode(dbuf *DecodeBuf) error { +func (m *InputPhoto) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_chatEmpty: - m2 := &TLChatEmpty{Data2: &Chat_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_chat: - m2 := &TLChat{Data2: &Chat_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_chatForbidden: - m2 := &TLChatForbidden{Data2: &Chat_Data{}} + case TLConstructor_CRC32_inputPhotoEmpty: + m2 := &TLInputPhotoEmpty{Data2: &InputPhoto_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channel: - m2 := &TLChannel{Data2: &Chat_Data{}} + case TLConstructor_CRC32_inputPhoto: + m2 := &TLInputPhoto{Data2: &InputPhoto_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_channelForbidden: - m2 := &TLChannelForbidden{Data2: &Chat_Data{}} + case TLConstructor_CRC32_inputPhotoLayer86: + m2 := &TLInputPhotoLayer86{Data2: &InputPhoto_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -52756,1726 +53725,1603 @@ func (m *Chat) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// chatEmpty#9ba2d800 id:int = Chat; -func (m *Chat) To_ChatEmpty() *TLChatEmpty { - return &TLChatEmpty{ - Data2: m.Data2, - } -} - -// chat#d91cdd54 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true admins_enabled:flags.3?true admin:flags.4?true deactivated:flags.5?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel = Chat; -func (m *Chat) To_Chat() *TLChat { - return &TLChat{ - Data2: m.Data2, - } -} - -// chatForbidden#7328bdb id:int title:string = Chat; -func (m *Chat) To_ChatForbidden() *TLChatForbidden { - return &TLChatForbidden{ +// inputPhotoEmpty#1cd7bf0d = InputPhoto; +func (m *InputPhoto) To_InputPhotoEmpty() *TLInputPhotoEmpty { + return &TLInputPhotoEmpty{ Data2: m.Data2, } } -// channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; -func (m *Chat) To_Channel() *TLChannel { - return &TLChannel{ +// inputPhoto#fb95c6c4 id:long access_hash:long = InputPhoto; +func (m *InputPhoto) To_InputPhoto() *TLInputPhoto { + return &TLInputPhoto{ Data2: m.Data2, } } -// channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat; -func (m *Chat) To_ChannelForbidden() *TLChannelForbidden { - return &TLChannelForbidden{ +// inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto; +func (m *InputPhoto) To_InputPhotoLayer86() *TLInputPhotoLayer86 { + return &TLInputPhotoLayer86{ Data2: m.Data2, } } -// chatEmpty#9ba2d800 id:int = Chat; -func (m *TLChatEmpty) To_Chat() *Chat { - return &Chat{ - Constructor: TLConstructor_CRC32_chatEmpty, +// inputPhotoEmpty#1cd7bf0d = InputPhoto; +func (m *TLInputPhotoEmpty) To_InputPhoto() *InputPhoto { + return &InputPhoto{ + Constructor: TLConstructor_CRC32_inputPhotoEmpty, Data2: m.Data2, } } -func (m *TLChatEmpty) SetId(v int32) { m.Data2.Id = v } -func (m *TLChatEmpty) GetId() int32 { return m.Data2.Id } - -func NewTLChatEmpty() *TLChatEmpty { - return &TLChatEmpty{Data2: &Chat_Data{}} +func NewTLInputPhotoEmpty() *TLInputPhotoEmpty { + return &TLInputPhotoEmpty{Data2: &InputPhoto_Data{}} } -func (m *TLChatEmpty) Encode() []byte { +func (m *TLInputPhotoEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatEmpty)) - - x.Int(m.GetId()) + x.Int(int32(TLConstructor_CRC32_inputPhotoEmpty)) return x.buf } -func (m *TLChatEmpty) EncodeToLayer(layer int) []byte { +func (m *TLInputPhotoEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatEmpty)) - - x.Int(m.GetId()) + x.Int(int32(TLConstructor_CRC32_inputPhotoEmpty)) return x.buf } -func (m *TLChatEmpty) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) +func (m *TLInputPhotoEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// chat#d91cdd54 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true admins_enabled:flags.3?true admin:flags.4?true deactivated:flags.5?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel = Chat; -func (m *TLChat) To_Chat() *Chat { - return &Chat{ - Constructor: TLConstructor_CRC32_chat, +// inputPhoto#fb95c6c4 id:long access_hash:long = InputPhoto; +func (m *TLInputPhoto) To_InputPhoto() *InputPhoto { + return &InputPhoto{ + Constructor: TLConstructor_CRC32_inputPhoto, Data2: m.Data2, } } -func (m *TLChat) SetCreator(v bool) { m.Data2.Creator = v } -func (m *TLChat) GetCreator() bool { return m.Data2.Creator } - -func (m *TLChat) SetKicked(v bool) { m.Data2.Kicked = v } -func (m *TLChat) GetKicked() bool { return m.Data2.Kicked } - -func (m *TLChat) SetLeft(v bool) { m.Data2.Left = v } -func (m *TLChat) GetLeft() bool { return m.Data2.Left } - -func (m *TLChat) SetAdminsEnabled(v bool) { m.Data2.AdminsEnabled = v } -func (m *TLChat) GetAdminsEnabled() bool { return m.Data2.AdminsEnabled } - -func (m *TLChat) SetAdmin(v bool) { m.Data2.Admin = v } -func (m *TLChat) GetAdmin() bool { return m.Data2.Admin } - -func (m *TLChat) SetDeactivated(v bool) { m.Data2.Deactivated = v } -func (m *TLChat) GetDeactivated() bool { return m.Data2.Deactivated } - -func (m *TLChat) SetId(v int32) { m.Data2.Id = v } -func (m *TLChat) GetId() int32 { return m.Data2.Id } - -func (m *TLChat) SetTitle(v string) { m.Data2.Title = v } -func (m *TLChat) GetTitle() string { return m.Data2.Title } - -func (m *TLChat) SetPhoto(v *ChatPhoto) { m.Data2.Photo = v } -func (m *TLChat) GetPhoto() *ChatPhoto { return m.Data2.Photo } - -func (m *TLChat) SetParticipantsCount(v int32) { m.Data2.ParticipantsCount = v } -func (m *TLChat) GetParticipantsCount() int32 { return m.Data2.ParticipantsCount } - -func (m *TLChat) SetDate(v int32) { m.Data2.Date = v } -func (m *TLChat) GetDate() int32 { return m.Data2.Date } - -func (m *TLChat) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLChat) GetVersion() int32 { return m.Data2.Version } +func (m *TLInputPhoto) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputPhoto) GetId() int64 { return m.Data2.Id } -func (m *TLChat) SetMigratedTo(v *InputChannel) { m.Data2.MigratedTo = v } -func (m *TLChat) GetMigratedTo() *InputChannel { return m.Data2.MigratedTo } +func (m *TLInputPhoto) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputPhoto) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLChat() *TLChat { - return &TLChat{Data2: &Chat_Data{}} +func NewTLInputPhoto() *TLInputPhoto { + return &TLInputPhoto{Data2: &InputPhoto_Data{}} } -func (m *TLChat) Encode() []byte { +func (m *TLInputPhoto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chat)) - - // flags - var flags uint32 = 0 - if m.GetCreator() == true { - flags |= 1 << 0 - } - if m.GetKicked() == true { - flags |= 1 << 1 - } - if m.GetLeft() == true { - flags |= 1 << 2 - } - if m.GetAdminsEnabled() == true { - flags |= 1 << 3 - } - if m.GetAdmin() == true { - flags |= 1 << 4 - } - if m.GetDeactivated() == true { - flags |= 1 << 5 - } - if m.GetMigratedTo() != nil { - flags |= 1 << 6 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputPhoto)) - x.Int(m.GetId()) - x.String(m.GetTitle()) - x.Bytes(m.GetPhoto().Encode()) - x.Int(m.GetParticipantsCount()) - x.Int(m.GetDate()) - x.Int(m.GetVersion()) - if m.GetMigratedTo() != nil { - x.Bytes(m.GetMigratedTo().Encode()) - } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLChat) EncodeToLayer(layer int) []byte { +func (m *TLInputPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chat)) - - // flags - var flags uint32 = 0 - if m.GetCreator() == true { - flags |= 1 << 0 - } - if m.GetKicked() == true { - flags |= 1 << 1 - } - if m.GetLeft() == true { - flags |= 1 << 2 - } - if m.GetAdminsEnabled() == true { - flags |= 1 << 3 - } - if m.GetAdmin() == true { - flags |= 1 << 4 - } - if m.GetDeactivated() == true { - flags |= 1 << 5 - } - if m.GetMigratedTo() != nil { - flags |= 1 << 6 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_inputPhoto)) - x.Int(m.GetId()) - x.String(m.GetTitle()) - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - x.Int(m.GetParticipantsCount()) - x.Int(m.GetDate()) - x.Int(m.GetVersion()) - if m.GetMigratedTo() != nil { - x.Bytes(m.GetMigratedTo().EncodeToLayer(layer)) - } + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLChat) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetCreator(true) - } - if (flags & (1 << 1)) != 0 { - m.SetKicked(true) - } - if (flags & (1 << 2)) != 0 { - m.SetLeft(true) - } - if (flags & (1 << 3)) != 0 { - m.SetAdminsEnabled(true) - } - if (flags & (1 << 4)) != 0 { - m.SetAdmin(true) - } - if (flags & (1 << 5)) != 0 { - m.SetDeactivated(true) - } - m.SetId(dbuf.Int()) - m.SetTitle(dbuf.String()) - m10 := &ChatPhoto{} - m10.Decode(dbuf) - m.SetPhoto(m10) - m.SetParticipantsCount(dbuf.Int()) - m.SetDate(dbuf.Int()) - m.SetVersion(dbuf.Int()) - if (flags & (1 << 6)) != 0 { - m14 := &InputChannel{} - m14.Decode(dbuf) - m.SetMigratedTo(m14) - } +func (m *TLInputPhoto) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } -// chatForbidden#7328bdb id:int title:string = Chat; -func (m *TLChatForbidden) To_Chat() *Chat { - return &Chat{ - Constructor: TLConstructor_CRC32_chatForbidden, +// inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto; +func (m *TLInputPhotoLayer86) To_InputPhoto() *InputPhoto { + return &InputPhoto{ + Constructor: TLConstructor_CRC32_inputPhotoLayer86, Data2: m.Data2, } } -func (m *TLChatForbidden) SetId(v int32) { m.Data2.Id = v } -func (m *TLChatForbidden) GetId() int32 { return m.Data2.Id } +func (m *TLInputPhotoLayer86) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputPhotoLayer86) GetId() int64 { return m.Data2.Id } -func (m *TLChatForbidden) SetTitle(v string) { m.Data2.Title = v } -func (m *TLChatForbidden) GetTitle() string { return m.Data2.Title } +func (m *TLInputPhotoLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputPhotoLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLChatForbidden() *TLChatForbidden { - return &TLChatForbidden{Data2: &Chat_Data{}} +func (m *TLInputPhotoLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } +func (m *TLInputPhotoLayer86) GetFileReference() []byte { return m.Data2.FileReference } + +func NewTLInputPhotoLayer86() *TLInputPhotoLayer86 { + return &TLInputPhotoLayer86{Data2: &InputPhoto_Data{}} } -func (m *TLChatForbidden) Encode() []byte { +func (m *TLInputPhotoLayer86) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatForbidden)) + x.Int(int32(TLConstructor_CRC32_inputPhotoLayer86)) - x.Int(m.GetId()) - x.String(m.GetTitle()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) return x.buf } -func (m *TLChatForbidden) EncodeToLayer(layer int) []byte { +func (m *TLInputPhotoLayer86) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatForbidden)) + x.Int(int32(TLConstructor_CRC32_inputPhotoLayer86)) - x.Int(m.GetId()) - x.String(m.GetTitle()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) return x.buf } -func (m *TLChatForbidden) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetTitle(dbuf.String()) +func (m *TLInputPhotoLayer86) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetFileReference(dbuf.StringBytes()) return dbuf.err } -// channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; -func (m *TLChannel) To_Chat() *Chat { - return &Chat{ - Constructor: TLConstructor_CRC32_channel, - Data2: m.Data2, - } -} - -func (m *TLChannel) SetCreator(v bool) { m.Data2.Creator = v } -func (m *TLChannel) GetCreator() bool { return m.Data2.Creator } - -func (m *TLChannel) SetLeft(v bool) { m.Data2.Left = v } -func (m *TLChannel) GetLeft() bool { return m.Data2.Left } - -func (m *TLChannel) SetEditor(v bool) { m.Data2.Editor = v } -func (m *TLChannel) GetEditor() bool { return m.Data2.Editor } - -func (m *TLChannel) SetBroadcast(v bool) { m.Data2.Broadcast = v } -func (m *TLChannel) GetBroadcast() bool { return m.Data2.Broadcast } - -func (m *TLChannel) SetVerified(v bool) { m.Data2.Verified = v } -func (m *TLChannel) GetVerified() bool { return m.Data2.Verified } - -func (m *TLChannel) SetMegagroup(v bool) { m.Data2.Megagroup = v } -func (m *TLChannel) GetMegagroup() bool { return m.Data2.Megagroup } - -func (m *TLChannel) SetRestricted(v bool) { m.Data2.Restricted = v } -func (m *TLChannel) GetRestricted() bool { return m.Data2.Restricted } +/////////////////////////////////////////////////////////////////////////////// +// MessageAction <-- +// + TL_MessageActionEmpty +// + TL_MessageActionChatCreate +// + TL_MessageActionChatEditTitle +// + TL_MessageActionChatEditPhoto +// + TL_MessageActionChatDeletePhoto +// + TL_MessageActionChatAddUser +// + TL_MessageActionChatDeleteUser +// + TL_MessageActionChatJoinedByLink +// + TL_MessageActionChannelCreate +// + TL_MessageActionChatMigrateTo +// + TL_MessageActionChannelMigrateFrom +// + TL_MessageActionPinMessage +// + TL_MessageActionHistoryClear +// + TL_MessageActionGameScore +// + TL_MessageActionPaymentSentMe +// + TL_MessageActionPaymentSent +// + TL_MessageActionPhoneCall +// + TL_MessageActionScreenshotTaken +// + TL_MessageActionCustomAction +// + TL_MessageActionBotAllowed +// + TL_MessageActionSecureValuesSentMe +// + TL_MessageActionSecureValuesSent +// -func (m *TLChannel) SetDemocracy(v bool) { m.Data2.Democracy = v } -func (m *TLChannel) GetDemocracy() bool { return m.Data2.Democracy } +func (m *MessageAction) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messageActionEmpty: + t := m.To_MessageActionEmpty() + return t.Encode() + case TLConstructor_CRC32_messageActionChatCreate: + t := m.To_MessageActionChatCreate() + return t.Encode() + case TLConstructor_CRC32_messageActionChatEditTitle: + t := m.To_MessageActionChatEditTitle() + return t.Encode() + case TLConstructor_CRC32_messageActionChatEditPhoto: + t := m.To_MessageActionChatEditPhoto() + return t.Encode() + case TLConstructor_CRC32_messageActionChatDeletePhoto: + t := m.To_MessageActionChatDeletePhoto() + return t.Encode() + case TLConstructor_CRC32_messageActionChatAddUser: + t := m.To_MessageActionChatAddUser() + return t.Encode() + case TLConstructor_CRC32_messageActionChatDeleteUser: + t := m.To_MessageActionChatDeleteUser() + return t.Encode() + case TLConstructor_CRC32_messageActionChatJoinedByLink: + t := m.To_MessageActionChatJoinedByLink() + return t.Encode() + case TLConstructor_CRC32_messageActionChannelCreate: + t := m.To_MessageActionChannelCreate() + return t.Encode() + case TLConstructor_CRC32_messageActionChatMigrateTo: + t := m.To_MessageActionChatMigrateTo() + return t.Encode() + case TLConstructor_CRC32_messageActionChannelMigrateFrom: + t := m.To_MessageActionChannelMigrateFrom() + return t.Encode() + case TLConstructor_CRC32_messageActionPinMessage: + t := m.To_MessageActionPinMessage() + return t.Encode() + case TLConstructor_CRC32_messageActionHistoryClear: + t := m.To_MessageActionHistoryClear() + return t.Encode() + case TLConstructor_CRC32_messageActionGameScore: + t := m.To_MessageActionGameScore() + return t.Encode() + case TLConstructor_CRC32_messageActionPaymentSentMe: + t := m.To_MessageActionPaymentSentMe() + return t.Encode() + case TLConstructor_CRC32_messageActionPaymentSent: + t := m.To_MessageActionPaymentSent() + return t.Encode() + case TLConstructor_CRC32_messageActionPhoneCall: + t := m.To_MessageActionPhoneCall() + return t.Encode() + case TLConstructor_CRC32_messageActionScreenshotTaken: + t := m.To_MessageActionScreenshotTaken() + return t.Encode() + case TLConstructor_CRC32_messageActionCustomAction: + t := m.To_MessageActionCustomAction() + return t.Encode() + case TLConstructor_CRC32_messageActionBotAllowed: + t := m.To_MessageActionBotAllowed() + return t.Encode() + case TLConstructor_CRC32_messageActionSecureValuesSentMe: + t := m.To_MessageActionSecureValuesSentMe() + return t.Encode() + case TLConstructor_CRC32_messageActionSecureValuesSent: + t := m.To_MessageActionSecureValuesSent() + return t.Encode() -func (m *TLChannel) SetSignatures(v bool) { m.Data2.Signatures = v } -func (m *TLChannel) GetSignatures() bool { return m.Data2.Signatures } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLChannel) SetMin(v bool) { m.Data2.Min = v } -func (m *TLChannel) GetMin() bool { return m.Data2.Min } +func (m *MessageAction) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messageActionEmpty: + t := m.To_MessageActionEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChatCreate: + t := m.To_MessageActionChatCreate() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChatEditTitle: + t := m.To_MessageActionChatEditTitle() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChatEditPhoto: + t := m.To_MessageActionChatEditPhoto() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChatDeletePhoto: + t := m.To_MessageActionChatDeletePhoto() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChatAddUser: + t := m.To_MessageActionChatAddUser() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChatDeleteUser: + t := m.To_MessageActionChatDeleteUser() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChatJoinedByLink: + t := m.To_MessageActionChatJoinedByLink() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChannelCreate: + t := m.To_MessageActionChannelCreate() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChatMigrateTo: + t := m.To_MessageActionChatMigrateTo() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionChannelMigrateFrom: + t := m.To_MessageActionChannelMigrateFrom() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionPinMessage: + t := m.To_MessageActionPinMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionHistoryClear: + t := m.To_MessageActionHistoryClear() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionGameScore: + t := m.To_MessageActionGameScore() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionPaymentSentMe: + t := m.To_MessageActionPaymentSentMe() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionPaymentSent: + t := m.To_MessageActionPaymentSent() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionPhoneCall: + t := m.To_MessageActionPhoneCall() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionScreenshotTaken: + t := m.To_MessageActionScreenshotTaken() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionCustomAction: + t := m.To_MessageActionCustomAction() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionBotAllowed: + t := m.To_MessageActionBotAllowed() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionSecureValuesSentMe: + t := m.To_MessageActionSecureValuesSentMe() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageActionSecureValuesSent: + t := m.To_MessageActionSecureValuesSent() + return t.EncodeToLayer(layer) -func (m *TLChannel) SetId(v int32) { m.Data2.Id = v } -func (m *TLChannel) GetId() int32 { return m.Data2.Id } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLChannel) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLChannel) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLChannel) SetTitle(v string) { m.Data2.Title = v } -func (m *TLChannel) GetTitle() string { return m.Data2.Title } - -func (m *TLChannel) SetUsername(v string) { m.Data2.Username = v } -func (m *TLChannel) GetUsername() string { return m.Data2.Username } - -func (m *TLChannel) SetPhoto(v *ChatPhoto) { m.Data2.Photo = v } -func (m *TLChannel) GetPhoto() *ChatPhoto { return m.Data2.Photo } - -func (m *TLChannel) SetDate(v int32) { m.Data2.Date = v } -func (m *TLChannel) GetDate() int32 { return m.Data2.Date } - -func (m *TLChannel) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLChannel) GetVersion() int32 { return m.Data2.Version } - -func (m *TLChannel) SetRestrictionReason(v string) { m.Data2.RestrictionReason = v } -func (m *TLChannel) GetRestrictionReason() string { return m.Data2.RestrictionReason } - -func (m *TLChannel) SetAdminRights(v *ChannelAdminRights) { m.Data2.AdminRights = v } -func (m *TLChannel) GetAdminRights() *ChannelAdminRights { return m.Data2.AdminRights } - -func (m *TLChannel) SetBannedRights(v *ChannelBannedRights) { m.Data2.BannedRights = v } -func (m *TLChannel) GetBannedRights() *ChannelBannedRights { return m.Data2.BannedRights } - -func (m *TLChannel) SetParticipantsCount(v int32) { m.Data2.ParticipantsCount = v } -func (m *TLChannel) GetParticipantsCount() int32 { return m.Data2.ParticipantsCount } +func (m *MessageAction) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messageActionEmpty: + m2 := &TLMessageActionEmpty{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChatCreate: + m2 := &TLMessageActionChatCreate{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChatEditTitle: + m2 := &TLMessageActionChatEditTitle{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChatEditPhoto: + m2 := &TLMessageActionChatEditPhoto{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChatDeletePhoto: + m2 := &TLMessageActionChatDeletePhoto{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChatAddUser: + m2 := &TLMessageActionChatAddUser{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChatDeleteUser: + m2 := &TLMessageActionChatDeleteUser{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChatJoinedByLink: + m2 := &TLMessageActionChatJoinedByLink{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChannelCreate: + m2 := &TLMessageActionChannelCreate{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChatMigrateTo: + m2 := &TLMessageActionChatMigrateTo{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionChannelMigrateFrom: + m2 := &TLMessageActionChannelMigrateFrom{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionPinMessage: + m2 := &TLMessageActionPinMessage{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionHistoryClear: + m2 := &TLMessageActionHistoryClear{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionGameScore: + m2 := &TLMessageActionGameScore{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionPaymentSentMe: + m2 := &TLMessageActionPaymentSentMe{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionPaymentSent: + m2 := &TLMessageActionPaymentSent{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionPhoneCall: + m2 := &TLMessageActionPhoneCall{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionScreenshotTaken: + m2 := &TLMessageActionScreenshotTaken{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionCustomAction: + m2 := &TLMessageActionCustomAction{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionBotAllowed: + m2 := &TLMessageActionBotAllowed{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionSecureValuesSentMe: + m2 := &TLMessageActionSecureValuesSentMe{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageActionSecureValuesSent: + m2 := &TLMessageActionSecureValuesSent{Data2: &MessageAction_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func NewTLChannel() *TLChannel { - return &TLChannel{Data2: &Chat_Data{}} + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLChannel) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channel)) +// messageActionEmpty#b6aef7b0 = MessageAction; +func (m *MessageAction) To_MessageActionEmpty() *TLMessageActionEmpty { + return &TLMessageActionEmpty{ + Data2: m.Data2, + } +} - // flags - var flags uint32 = 0 - if m.GetCreator() == true { - flags |= 1 << 0 +// messageActionChatCreate#a6638b9a title:string users:Vector = MessageAction; +func (m *MessageAction) To_MessageActionChatCreate() *TLMessageActionChatCreate { + return &TLMessageActionChatCreate{ + Data2: m.Data2, } - if m.GetLeft() == true { - flags |= 1 << 2 +} + +// messageActionChatEditTitle#b5a1ce5a title:string = MessageAction; +func (m *MessageAction) To_MessageActionChatEditTitle() *TLMessageActionChatEditTitle { + return &TLMessageActionChatEditTitle{ + Data2: m.Data2, } - if m.GetEditor() == true { - flags |= 1 << 3 +} + +// messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction; +func (m *MessageAction) To_MessageActionChatEditPhoto() *TLMessageActionChatEditPhoto { + return &TLMessageActionChatEditPhoto{ + Data2: m.Data2, } - if m.GetBroadcast() == true { - flags |= 1 << 5 +} + +// messageActionChatDeletePhoto#95e3fbef = MessageAction; +func (m *MessageAction) To_MessageActionChatDeletePhoto() *TLMessageActionChatDeletePhoto { + return &TLMessageActionChatDeletePhoto{ + Data2: m.Data2, } - if m.GetVerified() == true { - flags |= 1 << 7 +} + +// messageActionChatAddUser#488a7337 users:Vector = MessageAction; +func (m *MessageAction) To_MessageActionChatAddUser() *TLMessageActionChatAddUser { + return &TLMessageActionChatAddUser{ + Data2: m.Data2, } - if m.GetMegagroup() == true { - flags |= 1 << 8 +} + +// messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction; +func (m *MessageAction) To_MessageActionChatDeleteUser() *TLMessageActionChatDeleteUser { + return &TLMessageActionChatDeleteUser{ + Data2: m.Data2, } - if m.GetRestricted() == true { - flags |= 1 << 9 +} + +// messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction; +func (m *MessageAction) To_MessageActionChatJoinedByLink() *TLMessageActionChatJoinedByLink { + return &TLMessageActionChatJoinedByLink{ + Data2: m.Data2, } - if m.GetDemocracy() == true { - flags |= 1 << 10 +} + +// messageActionChannelCreate#95d2ac92 title:string = MessageAction; +func (m *MessageAction) To_MessageActionChannelCreate() *TLMessageActionChannelCreate { + return &TLMessageActionChannelCreate{ + Data2: m.Data2, } - if m.GetSignatures() == true { - flags |= 1 << 11 +} + +// messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction; +func (m *MessageAction) To_MessageActionChatMigrateTo() *TLMessageActionChatMigrateTo { + return &TLMessageActionChatMigrateTo{ + Data2: m.Data2, } - if m.GetMin() == true { - flags |= 1 << 12 +} + +// messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction; +func (m *MessageAction) To_MessageActionChannelMigrateFrom() *TLMessageActionChannelMigrateFrom { + return &TLMessageActionChannelMigrateFrom{ + Data2: m.Data2, } - if m.GetAccessHash() != 0 { - flags |= 1 << 13 +} + +// messageActionPinMessage#94bd38ed = MessageAction; +func (m *MessageAction) To_MessageActionPinMessage() *TLMessageActionPinMessage { + return &TLMessageActionPinMessage{ + Data2: m.Data2, } - if m.GetUsername() != "" { - flags |= 1 << 6 +} + +// messageActionHistoryClear#9fbab604 = MessageAction; +func (m *MessageAction) To_MessageActionHistoryClear() *TLMessageActionHistoryClear { + return &TLMessageActionHistoryClear{ + Data2: m.Data2, } - if m.GetRestrictionReason() != "" { - flags |= 1 << 9 +} + +// messageActionGameScore#92a72876 game_id:long score:int = MessageAction; +func (m *MessageAction) To_MessageActionGameScore() *TLMessageActionGameScore { + return &TLMessageActionGameScore{ + Data2: m.Data2, } - if m.GetAdminRights() != nil { - flags |= 1 << 14 +} + +// messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; +func (m *MessageAction) To_MessageActionPaymentSentMe() *TLMessageActionPaymentSentMe { + return &TLMessageActionPaymentSentMe{ + Data2: m.Data2, } - if m.GetBannedRights() != nil { - flags |= 1 << 15 +} + +// messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; +func (m *MessageAction) To_MessageActionPaymentSent() *TLMessageActionPaymentSent { + return &TLMessageActionPaymentSent{ + Data2: m.Data2, } - if m.GetParticipantsCount() != 0 { - flags |= 1 << 17 +} + +// messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction; +func (m *MessageAction) To_MessageActionPhoneCall() *TLMessageActionPhoneCall { + return &TLMessageActionPhoneCall{ + Data2: m.Data2, } - x.UInt(flags) +} - x.Int(m.GetId()) - if m.GetAccessHash() != 0 { - x.Long(m.GetAccessHash()) +// messageActionScreenshotTaken#4792929b = MessageAction; +func (m *MessageAction) To_MessageActionScreenshotTaken() *TLMessageActionScreenshotTaken { + return &TLMessageActionScreenshotTaken{ + Data2: m.Data2, } - x.String(m.GetTitle()) - if m.GetUsername() != "" { - x.String(m.GetUsername()) +} + +// messageActionCustomAction#fae69f56 message:string = MessageAction; +func (m *MessageAction) To_MessageActionCustomAction() *TLMessageActionCustomAction { + return &TLMessageActionCustomAction{ + Data2: m.Data2, } - x.Bytes(m.GetPhoto().Encode()) - x.Int(m.GetDate()) - x.Int(m.GetVersion()) - if m.GetRestrictionReason() != "" { - x.String(m.GetRestrictionReason()) +} + +// messageActionBotAllowed#abe9affe domain:string = MessageAction; +func (m *MessageAction) To_MessageActionBotAllowed() *TLMessageActionBotAllowed { + return &TLMessageActionBotAllowed{ + Data2: m.Data2, } - if m.GetAdminRights() != nil { - x.Bytes(m.GetAdminRights().Encode()) +} + +// messageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction; +func (m *MessageAction) To_MessageActionSecureValuesSentMe() *TLMessageActionSecureValuesSentMe { + return &TLMessageActionSecureValuesSentMe{ + Data2: m.Data2, } - if m.GetBannedRights() != nil { - x.Bytes(m.GetBannedRights().Encode()) +} + +// messageActionSecureValuesSent#d95c6154 types:Vector = MessageAction; +func (m *MessageAction) To_MessageActionSecureValuesSent() *TLMessageActionSecureValuesSent { + return &TLMessageActionSecureValuesSent{ + Data2: m.Data2, } - if m.GetParticipantsCount() != 0 { - x.Int(m.GetParticipantsCount()) +} + +// messageActionEmpty#b6aef7b0 = MessageAction; +func (m *TLMessageActionEmpty) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionEmpty, + Data2: m.Data2, } +} - return x.buf +func NewTLMessageActionEmpty() *TLMessageActionEmpty { + return &TLMessageActionEmpty{Data2: &MessageAction_Data{}} } -func (m *TLChannel) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channel)) + x.Int(int32(TLConstructor_CRC32_messageActionEmpty)) - // flags - var flags uint32 = 0 - if m.GetCreator() == true { - flags |= 1 << 0 - } - if m.GetLeft() == true { - flags |= 1 << 2 - } - if m.GetEditor() == true { - flags |= 1 << 3 - } - if m.GetBroadcast() == true { - flags |= 1 << 5 - } - if m.GetVerified() == true { - flags |= 1 << 7 - } - if m.GetMegagroup() == true { - flags |= 1 << 8 - } - if m.GetRestricted() == true { - flags |= 1 << 9 - } - if m.GetDemocracy() == true { - flags |= 1 << 10 - } - if m.GetSignatures() == true { - flags |= 1 << 11 - } - if m.GetMin() == true { - flags |= 1 << 12 - } - if m.GetAccessHash() != 0 { - flags |= 1 << 13 - } - if m.GetUsername() != "" { - flags |= 1 << 6 - } - if m.GetRestrictionReason() != "" { - flags |= 1 << 9 - } - if m.GetAdminRights() != nil { - flags |= 1 << 14 - } - if m.GetBannedRights() != nil { - flags |= 1 << 15 - } - if m.GetParticipantsCount() != 0 { - flags |= 1 << 17 - } - x.UInt(flags) + return x.buf +} - x.Int(m.GetId()) - if m.GetAccessHash() != 0 { - x.Long(m.GetAccessHash()) - } - x.String(m.GetTitle()) - if m.GetUsername() != "" { - x.String(m.GetUsername()) - } - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - x.Int(m.GetDate()) - x.Int(m.GetVersion()) - if m.GetRestrictionReason() != "" { - x.String(m.GetRestrictionReason()) - } - if m.GetAdminRights() != nil { - x.Bytes(m.GetAdminRights().EncodeToLayer(layer)) - } - if m.GetBannedRights() != nil { - x.Bytes(m.GetBannedRights().EncodeToLayer(layer)) - } - if m.GetParticipantsCount() != 0 { - x.Int(m.GetParticipantsCount()) - } +func (m *TLMessageActionEmpty) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionEmpty)) return x.buf } -func (m *TLChannel) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetCreator(true) - } - if (flags & (1 << 2)) != 0 { - m.SetLeft(true) - } - if (flags & (1 << 3)) != 0 { - m.SetEditor(true) - } - if (flags & (1 << 5)) != 0 { - m.SetBroadcast(true) - } - if (flags & (1 << 7)) != 0 { - m.SetVerified(true) - } - if (flags & (1 << 8)) != 0 { - m.SetMegagroup(true) - } - if (flags & (1 << 9)) != 0 { - m.SetRestricted(true) - } - if (flags & (1 << 10)) != 0 { - m.SetDemocracy(true) - } - if (flags & (1 << 11)) != 0 { - m.SetSignatures(true) - } - if (flags & (1 << 12)) != 0 { - m.SetMin(true) - } - m.SetId(dbuf.Int()) - if (flags & (1 << 13)) != 0 { - m.SetAccessHash(dbuf.Long()) - } - m.SetTitle(dbuf.String()) - if (flags & (1 << 6)) != 0 { - m.SetUsername(dbuf.String()) - } - m16 := &ChatPhoto{} - m16.Decode(dbuf) - m.SetPhoto(m16) - m.SetDate(dbuf.Int()) - m.SetVersion(dbuf.Int()) - if (flags & (1 << 9)) != 0 { - m.SetRestrictionReason(dbuf.String()) - } - if (flags & (1 << 14)) != 0 { - m20 := &ChannelAdminRights{} - m20.Decode(dbuf) - m.SetAdminRights(m20) - } - if (flags & (1 << 15)) != 0 { - m21 := &ChannelBannedRights{} - m21.Decode(dbuf) - m.SetBannedRights(m21) - } - if (flags & (1 << 17)) != 0 { - m.SetParticipantsCount(dbuf.Int()) - } +func (m *TLMessageActionEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat; -func (m *TLChannelForbidden) To_Chat() *Chat { - return &Chat{ - Constructor: TLConstructor_CRC32_channelForbidden, +// messageActionChatCreate#a6638b9a title:string users:Vector = MessageAction; +func (m *TLMessageActionChatCreate) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChatCreate, Data2: m.Data2, } } -func (m *TLChannelForbidden) SetBroadcast(v bool) { m.Data2.Broadcast = v } -func (m *TLChannelForbidden) GetBroadcast() bool { return m.Data2.Broadcast } - -func (m *TLChannelForbidden) SetMegagroup(v bool) { m.Data2.Megagroup = v } -func (m *TLChannelForbidden) GetMegagroup() bool { return m.Data2.Megagroup } +func (m *TLMessageActionChatCreate) SetTitle(v string) { m.Data2.Title = v } +func (m *TLMessageActionChatCreate) GetTitle() string { return m.Data2.Title } -func (m *TLChannelForbidden) SetId(v int32) { m.Data2.Id = v } -func (m *TLChannelForbidden) GetId() int32 { return m.Data2.Id } +func (m *TLMessageActionChatCreate) SetUsers(v []int32) { m.Data2.Users = v } +func (m *TLMessageActionChatCreate) GetUsers() []int32 { return m.Data2.Users } -func (m *TLChannelForbidden) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLChannelForbidden) GetAccessHash() int64 { return m.Data2.AccessHash } +func NewTLMessageActionChatCreate() *TLMessageActionChatCreate { + return &TLMessageActionChatCreate{Data2: &MessageAction_Data{}} +} -func (m *TLChannelForbidden) SetTitle(v string) { m.Data2.Title = v } -func (m *TLChannelForbidden) GetTitle() string { return m.Data2.Title } +func (m *TLMessageActionChatCreate) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionChatCreate)) -func (m *TLChannelForbidden) SetUntilDate(v int32) { m.Data2.UntilDate = v } -func (m *TLChannelForbidden) GetUntilDate() int32 { return m.Data2.UntilDate } + x.String(m.GetTitle()) + x.VectorInt(m.GetUsers()) -func NewTLChannelForbidden() *TLChannelForbidden { - return &TLChannelForbidden{Data2: &Chat_Data{}} + return x.buf } -func (m *TLChannelForbidden) Encode() []byte { +func (m *TLMessageActionChatCreate) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelForbidden)) + x.Int(int32(TLConstructor_CRC32_messageActionChatCreate)) - // flags - var flags uint32 = 0 - if m.GetBroadcast() == true { - flags |= 1 << 5 - } - if m.GetMegagroup() == true { - flags |= 1 << 8 - } - if m.GetUntilDate() != 0 { - flags |= 1 << 16 - } - x.UInt(flags) - - x.Int(m.GetId()) - x.Long(m.GetAccessHash()) x.String(m.GetTitle()) - if m.GetUntilDate() != 0 { - x.Int(m.GetUntilDate()) - } + x.VectorInt(m.GetUsers()) return x.buf } -func (m *TLChannelForbidden) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channelForbidden)) +func (m *TLMessageActionChatCreate) Decode(dbuf *DecodeBuf) error { + m.SetTitle(dbuf.String()) + m.SetUsers(dbuf.VectorInt()) - // flags - var flags uint32 = 0 - if m.GetBroadcast() == true { - flags |= 1 << 5 - } - if m.GetMegagroup() == true { - flags |= 1 << 8 - } - if m.GetUntilDate() != 0 { - flags |= 1 << 16 - } - x.UInt(flags) + return dbuf.err +} - x.Int(m.GetId()) - x.Long(m.GetAccessHash()) - x.String(m.GetTitle()) - if m.GetUntilDate() != 0 { - x.Int(m.GetUntilDate()) +// messageActionChatEditTitle#b5a1ce5a title:string = MessageAction; +func (m *TLMessageActionChatEditTitle) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChatEditTitle, + Data2: m.Data2, } - - return x.buf } -func (m *TLChannelForbidden) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 5)) != 0 { - m.SetBroadcast(true) - } - if (flags & (1 << 8)) != 0 { - m.SetMegagroup(true) - } - m.SetId(dbuf.Int()) - m.SetAccessHash(dbuf.Long()) - m.SetTitle(dbuf.String()) - if (flags & (1 << 16)) != 0 { - m.SetUntilDate(dbuf.Int()) - } +func (m *TLMessageActionChatEditTitle) SetTitle(v string) { m.Data2.Title = v } +func (m *TLMessageActionChatEditTitle) GetTitle() string { return m.Data2.Title } - return dbuf.err +func NewTLMessageActionChatEditTitle() *TLMessageActionChatEditTitle { + return &TLMessageActionChatEditTitle{Data2: &MessageAction_Data{}} } -/////////////////////////////////////////////////////////////////////////////// -// InputPeerNotifySettings <-- -// + TL_InputPeerNotifySettings -// +func (m *TLMessageActionChatEditTitle) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionChatEditTitle)) -func (m *InputPeerNotifySettings) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputPeerNotifySettings: - t := m.To_InputPeerNotifySettings() - return t.Encode() + x.String(m.GetTitle()) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *InputPeerNotifySettings) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputPeerNotifySettings: - t := m.To_InputPeerNotifySettings() - return t.EncodeToLayer(layer) +func (m *TLMessageActionChatEditTitle) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionChatEditTitle)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.String(m.GetTitle()) + + return x.buf } -func (m *InputPeerNotifySettings) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputPeerNotifySettings: - m2 := &TLInputPeerNotifySettings{Data2: &InputPeerNotifySettings_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLMessageActionChatEditTitle) Decode(dbuf *DecodeBuf) error { + m.SetTitle(dbuf.String()) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings; -func (m *InputPeerNotifySettings) To_InputPeerNotifySettings() *TLInputPeerNotifySettings { - return &TLInputPeerNotifySettings{ - Data2: m.Data2, - } -} - -// inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings; -func (m *TLInputPeerNotifySettings) To_InputPeerNotifySettings() *InputPeerNotifySettings { - return &InputPeerNotifySettings{ - Constructor: TLConstructor_CRC32_inputPeerNotifySettings, +// messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction; +func (m *TLMessageActionChatEditPhoto) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChatEditPhoto, Data2: m.Data2, } } -func (m *TLInputPeerNotifySettings) SetShowPreviews(v *Bool) { m.Data2.ShowPreviews = v } -func (m *TLInputPeerNotifySettings) GetShowPreviews() *Bool { return m.Data2.ShowPreviews } - -func (m *TLInputPeerNotifySettings) SetSilent(v *Bool) { m.Data2.Silent = v } -func (m *TLInputPeerNotifySettings) GetSilent() *Bool { return m.Data2.Silent } - -func (m *TLInputPeerNotifySettings) SetMuteUntil(v int32) { m.Data2.MuteUntil = v } -func (m *TLInputPeerNotifySettings) GetMuteUntil() int32 { return m.Data2.MuteUntil } - -func (m *TLInputPeerNotifySettings) SetSound(v string) { m.Data2.Sound = v } -func (m *TLInputPeerNotifySettings) GetSound() string { return m.Data2.Sound } +func (m *TLMessageActionChatEditPhoto) SetPhoto(v *Photo) { m.Data2.Photo = v } +func (m *TLMessageActionChatEditPhoto) GetPhoto() *Photo { return m.Data2.Photo } -func NewTLInputPeerNotifySettings() *TLInputPeerNotifySettings { - return &TLInputPeerNotifySettings{Data2: &InputPeerNotifySettings_Data{}} +func NewTLMessageActionChatEditPhoto() *TLMessageActionChatEditPhoto { + return &TLMessageActionChatEditPhoto{Data2: &MessageAction_Data{}} } -func (m *TLInputPeerNotifySettings) Encode() []byte { +func (m *TLMessageActionChatEditPhoto) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerNotifySettings)) - - // flags - var flags uint32 = 0 - if m.GetShowPreviews() != nil { - flags |= 1 << 0 - } - if m.GetSilent() != nil { - flags |= 1 << 1 - } - if m.GetMuteUntil() != 0 { - flags |= 1 << 2 - } - if m.GetSound() != "" { - flags |= 1 << 3 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_messageActionChatEditPhoto)) - if m.GetShowPreviews() != nil { - x.Bytes(m.GetShowPreviews().Encode()) - } - if m.GetSilent() != nil { - x.Bytes(m.GetSilent().Encode()) - } - if m.GetMuteUntil() != 0 { - x.Int(m.GetMuteUntil()) - } - if m.GetSound() != "" { - x.String(m.GetSound()) - } + x.Bytes(m.GetPhoto().Encode()) return x.buf } -func (m *TLInputPeerNotifySettings) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionChatEditPhoto) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPeerNotifySettings)) - - // flags - var flags uint32 = 0 - if m.GetShowPreviews() != nil { - flags |= 1 << 0 - } - if m.GetSilent() != nil { - flags |= 1 << 1 - } - if m.GetMuteUntil() != 0 { - flags |= 1 << 2 - } - if m.GetSound() != "" { - flags |= 1 << 3 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_messageActionChatEditPhoto)) - if m.GetShowPreviews() != nil { - x.Bytes(m.GetShowPreviews().EncodeToLayer(layer)) - } - if m.GetSilent() != nil { - x.Bytes(m.GetSilent().EncodeToLayer(layer)) - } - if m.GetMuteUntil() != 0 { - x.Int(m.GetMuteUntil()) - } - if m.GetSound() != "" { - x.String(m.GetSound()) - } + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) return x.buf } -func (m *TLInputPeerNotifySettings) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m2 := &Bool{} - m2.Decode(dbuf) - m.SetShowPreviews(m2) - } - if (flags & (1 << 1)) != 0 { - m3 := &Bool{} - m3.Decode(dbuf) - m.SetSilent(m3) - } - if (flags & (1 << 2)) != 0 { - m.SetMuteUntil(dbuf.Int()) - } - if (flags & (1 << 3)) != 0 { - m.SetSound(dbuf.String()) - } +func (m *TLMessageActionChatEditPhoto) Decode(dbuf *DecodeBuf) error { + m1 := &Photo{} + m1.Decode(dbuf) + m.SetPhoto(m1) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// MessagesFilter <-- -// + TL_InputMessagesFilterEmpty -// + TL_InputMessagesFilterPhotos -// + TL_InputMessagesFilterVideo -// + TL_InputMessagesFilterPhotoVideo -// + TL_InputMessagesFilterDocument -// + TL_InputMessagesFilterUrl -// + TL_InputMessagesFilterGif -// + TL_InputMessagesFilterVoice -// + TL_InputMessagesFilterMusic -// + TL_InputMessagesFilterChatPhotos -// + TL_InputMessagesFilterPhoneCalls -// + TL_InputMessagesFilterRoundVoice -// + TL_InputMessagesFilterRoundVideo -// + TL_InputMessagesFilterMyMentions -// + TL_InputMessagesFilterGeo -// + TL_InputMessagesFilterContacts -// +// messageActionChatDeletePhoto#95e3fbef = MessageAction; +func (m *TLMessageActionChatDeletePhoto) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChatDeletePhoto, + Data2: m.Data2, + } +} -func (m *MessagesFilter) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputMessagesFilterEmpty: - t := m.To_InputMessagesFilterEmpty() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterPhotos: - t := m.To_InputMessagesFilterPhotos() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterVideo: - t := m.To_InputMessagesFilterVideo() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterPhotoVideo: - t := m.To_InputMessagesFilterPhotoVideo() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterDocument: - t := m.To_InputMessagesFilterDocument() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterUrl: - t := m.To_InputMessagesFilterUrl() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterGif: - t := m.To_InputMessagesFilterGif() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterVoice: - t := m.To_InputMessagesFilterVoice() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterMusic: - t := m.To_InputMessagesFilterMusic() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterChatPhotos: - t := m.To_InputMessagesFilterChatPhotos() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterPhoneCalls: - t := m.To_InputMessagesFilterPhoneCalls() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterRoundVoice: - t := m.To_InputMessagesFilterRoundVoice() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterRoundVideo: - t := m.To_InputMessagesFilterRoundVideo() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterMyMentions: - t := m.To_InputMessagesFilterMyMentions() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterGeo: - t := m.To_InputMessagesFilterGeo() - return t.Encode() - case TLConstructor_CRC32_inputMessagesFilterContacts: - t := m.To_InputMessagesFilterContacts() - return t.Encode() +func NewTLMessageActionChatDeletePhoto() *TLMessageActionChatDeletePhoto { + return &TLMessageActionChatDeletePhoto{Data2: &MessageAction_Data{}} +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLMessageActionChatDeletePhoto) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionChatDeletePhoto)) + + return x.buf } -func (m *MessagesFilter) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputMessagesFilterEmpty: - t := m.To_InputMessagesFilterEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterPhotos: - t := m.To_InputMessagesFilterPhotos() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterVideo: - t := m.To_InputMessagesFilterVideo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterPhotoVideo: - t := m.To_InputMessagesFilterPhotoVideo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterDocument: - t := m.To_InputMessagesFilterDocument() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterUrl: - t := m.To_InputMessagesFilterUrl() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterGif: - t := m.To_InputMessagesFilterGif() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterVoice: - t := m.To_InputMessagesFilterVoice() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterMusic: - t := m.To_InputMessagesFilterMusic() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterChatPhotos: - t := m.To_InputMessagesFilterChatPhotos() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterPhoneCalls: - t := m.To_InputMessagesFilterPhoneCalls() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterRoundVoice: - t := m.To_InputMessagesFilterRoundVoice() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterRoundVideo: - t := m.To_InputMessagesFilterRoundVideo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterMyMentions: - t := m.To_InputMessagesFilterMyMentions() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterGeo: - t := m.To_InputMessagesFilterGeo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagesFilterContacts: - t := m.To_InputMessagesFilterContacts() - return t.EncodeToLayer(layer) +func (m *TLMessageActionChatDeletePhoto) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionChatDeletePhoto)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *MessagesFilter) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputMessagesFilterEmpty: - m2 := &TLInputMessagesFilterEmpty{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterPhotos: - m2 := &TLInputMessagesFilterPhotos{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterVideo: - m2 := &TLInputMessagesFilterVideo{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterPhotoVideo: - m2 := &TLInputMessagesFilterPhotoVideo{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterDocument: - m2 := &TLInputMessagesFilterDocument{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterUrl: - m2 := &TLInputMessagesFilterUrl{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterGif: - m2 := &TLInputMessagesFilterGif{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterVoice: - m2 := &TLInputMessagesFilterVoice{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterMusic: - m2 := &TLInputMessagesFilterMusic{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterChatPhotos: - m2 := &TLInputMessagesFilterChatPhotos{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterPhoneCalls: - m2 := &TLInputMessagesFilterPhoneCalls{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterRoundVoice: - m2 := &TLInputMessagesFilterRoundVoice{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterRoundVideo: - m2 := &TLInputMessagesFilterRoundVideo{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterMyMentions: - m2 := &TLInputMessagesFilterMyMentions{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterGeo: - m2 := &TLInputMessagesFilterGeo{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagesFilterContacts: - m2 := &TLInputMessagesFilterContacts{Data2: &MessagesFilter_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLMessageActionChatDeletePhoto) Decode(dbuf *DecodeBuf) error { - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// inputMessagesFilterEmpty#57e2f66c = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterEmpty() *TLInputMessagesFilterEmpty { - return &TLInputMessagesFilterEmpty{ - Data2: m.Data2, +// messageActionChatAddUser#488a7337 users:Vector = MessageAction; +func (m *TLMessageActionChatAddUser) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChatAddUser, + Data2: m.Data2, } } -// inputMessagesFilterPhotos#9609a51c = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterPhotos() *TLInputMessagesFilterPhotos { - return &TLInputMessagesFilterPhotos{ - Data2: m.Data2, - } +func (m *TLMessageActionChatAddUser) SetUsers(v []int32) { m.Data2.Users = v } +func (m *TLMessageActionChatAddUser) GetUsers() []int32 { return m.Data2.Users } + +func NewTLMessageActionChatAddUser() *TLMessageActionChatAddUser { + return &TLMessageActionChatAddUser{Data2: &MessageAction_Data{}} } -// inputMessagesFilterVideo#9fc00e65 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterVideo() *TLInputMessagesFilterVideo { - return &TLInputMessagesFilterVideo{ - Data2: m.Data2, - } +func (m *TLMessageActionChatAddUser) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionChatAddUser)) + + x.VectorInt(m.GetUsers()) + + return x.buf } -// inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterPhotoVideo() *TLInputMessagesFilterPhotoVideo { - return &TLInputMessagesFilterPhotoVideo{ - Data2: m.Data2, - } +func (m *TLMessageActionChatAddUser) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionChatAddUser)) + + x.VectorInt(m.GetUsers()) + + return x.buf } -// inputMessagesFilterDocument#9eddf188 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterDocument() *TLInputMessagesFilterDocument { - return &TLInputMessagesFilterDocument{ - Data2: m.Data2, - } +func (m *TLMessageActionChatAddUser) Decode(dbuf *DecodeBuf) error { + m.SetUsers(dbuf.VectorInt()) + + return dbuf.err } -// inputMessagesFilterUrl#7ef0dd87 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterUrl() *TLInputMessagesFilterUrl { - return &TLInputMessagesFilterUrl{ - Data2: m.Data2, +// messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction; +func (m *TLMessageActionChatDeleteUser) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChatDeleteUser, + Data2: m.Data2, } } -// inputMessagesFilterGif#ffc86587 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterGif() *TLInputMessagesFilterGif { - return &TLInputMessagesFilterGif{ - Data2: m.Data2, - } -} +func (m *TLMessageActionChatDeleteUser) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLMessageActionChatDeleteUser) GetUserId() int32 { return m.Data2.UserId } -// inputMessagesFilterVoice#50f5c392 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterVoice() *TLInputMessagesFilterVoice { - return &TLInputMessagesFilterVoice{ - Data2: m.Data2, - } +func NewTLMessageActionChatDeleteUser() *TLMessageActionChatDeleteUser { + return &TLMessageActionChatDeleteUser{Data2: &MessageAction_Data{}} } -// inputMessagesFilterMusic#3751b49e = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterMusic() *TLInputMessagesFilterMusic { - return &TLInputMessagesFilterMusic{ - Data2: m.Data2, - } -} +func (m *TLMessageActionChatDeleteUser) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionChatDeleteUser)) -// inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterChatPhotos() *TLInputMessagesFilterChatPhotos { - return &TLInputMessagesFilterChatPhotos{ - Data2: m.Data2, - } -} + x.Int(m.GetUserId()) -// inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterPhoneCalls() *TLInputMessagesFilterPhoneCalls { - return &TLInputMessagesFilterPhoneCalls{ - Data2: m.Data2, - } + return x.buf } -// inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterRoundVoice() *TLInputMessagesFilterRoundVoice { - return &TLInputMessagesFilterRoundVoice{ - Data2: m.Data2, - } -} +func (m *TLMessageActionChatDeleteUser) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionChatDeleteUser)) -// inputMessagesFilterRoundVideo#b549da53 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterRoundVideo() *TLInputMessagesFilterRoundVideo { - return &TLInputMessagesFilterRoundVideo{ - Data2: m.Data2, - } -} + x.Int(m.GetUserId()) -// inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterMyMentions() *TLInputMessagesFilterMyMentions { - return &TLInputMessagesFilterMyMentions{ - Data2: m.Data2, - } + return x.buf } -// inputMessagesFilterGeo#e7026d0d = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterGeo() *TLInputMessagesFilterGeo { - return &TLInputMessagesFilterGeo{ - Data2: m.Data2, - } -} +func (m *TLMessageActionChatDeleteUser) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) -// inputMessagesFilterContacts#e062db83 = MessagesFilter; -func (m *MessagesFilter) To_InputMessagesFilterContacts() *TLInputMessagesFilterContacts { - return &TLInputMessagesFilterContacts{ - Data2: m.Data2, - } + return dbuf.err } -// inputMessagesFilterEmpty#57e2f66c = MessagesFilter; -func (m *TLInputMessagesFilterEmpty) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterEmpty, +// messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction; +func (m *TLMessageActionChatJoinedByLink) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChatJoinedByLink, Data2: m.Data2, } } -func NewTLInputMessagesFilterEmpty() *TLInputMessagesFilterEmpty { - return &TLInputMessagesFilterEmpty{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionChatJoinedByLink) SetInviterId(v int32) { m.Data2.InviterId = v } +func (m *TLMessageActionChatJoinedByLink) GetInviterId() int32 { return m.Data2.InviterId } + +func NewTLMessageActionChatJoinedByLink() *TLMessageActionChatJoinedByLink { + return &TLMessageActionChatJoinedByLink{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterEmpty) Encode() []byte { +func (m *TLMessageActionChatJoinedByLink) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterEmpty)) + x.Int(int32(TLConstructor_CRC32_messageActionChatJoinedByLink)) + + x.Int(m.GetInviterId()) return x.buf } -func (m *TLInputMessagesFilterEmpty) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionChatJoinedByLink) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterEmpty)) + x.Int(int32(TLConstructor_CRC32_messageActionChatJoinedByLink)) + + x.Int(m.GetInviterId()) return x.buf } -func (m *TLInputMessagesFilterEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionChatJoinedByLink) Decode(dbuf *DecodeBuf) error { + m.SetInviterId(dbuf.Int()) return dbuf.err } -// inputMessagesFilterPhotos#9609a51c = MessagesFilter; -func (m *TLInputMessagesFilterPhotos) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterPhotos, +// messageActionChannelCreate#95d2ac92 title:string = MessageAction; +func (m *TLMessageActionChannelCreate) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChannelCreate, Data2: m.Data2, } } -func NewTLInputMessagesFilterPhotos() *TLInputMessagesFilterPhotos { - return &TLInputMessagesFilterPhotos{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionChannelCreate) SetTitle(v string) { m.Data2.Title = v } +func (m *TLMessageActionChannelCreate) GetTitle() string { return m.Data2.Title } + +func NewTLMessageActionChannelCreate() *TLMessageActionChannelCreate { + return &TLMessageActionChannelCreate{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterPhotos) Encode() []byte { +func (m *TLMessageActionChannelCreate) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhotos)) + x.Int(int32(TLConstructor_CRC32_messageActionChannelCreate)) + + x.String(m.GetTitle()) return x.buf } -func (m *TLInputMessagesFilterPhotos) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionChannelCreate) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhotos)) + x.Int(int32(TLConstructor_CRC32_messageActionChannelCreate)) + + x.String(m.GetTitle()) return x.buf } -func (m *TLInputMessagesFilterPhotos) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionChannelCreate) Decode(dbuf *DecodeBuf) error { + m.SetTitle(dbuf.String()) return dbuf.err } -// inputMessagesFilterVideo#9fc00e65 = MessagesFilter; -func (m *TLInputMessagesFilterVideo) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterVideo, +// messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction; +func (m *TLMessageActionChatMigrateTo) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChatMigrateTo, Data2: m.Data2, } } -func NewTLInputMessagesFilterVideo() *TLInputMessagesFilterVideo { - return &TLInputMessagesFilterVideo{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionChatMigrateTo) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLMessageActionChatMigrateTo) GetChannelId() int32 { return m.Data2.ChannelId } + +func NewTLMessageActionChatMigrateTo() *TLMessageActionChatMigrateTo { + return &TLMessageActionChatMigrateTo{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterVideo) Encode() []byte { +func (m *TLMessageActionChatMigrateTo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterVideo)) + x.Int(int32(TLConstructor_CRC32_messageActionChatMigrateTo)) + + x.Int(m.GetChannelId()) return x.buf } -func (m *TLInputMessagesFilterVideo) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionChatMigrateTo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterVideo)) + x.Int(int32(TLConstructor_CRC32_messageActionChatMigrateTo)) + + x.Int(m.GetChannelId()) return x.buf } -func (m *TLInputMessagesFilterVideo) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionChatMigrateTo) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) return dbuf.err } -// inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter; -func (m *TLInputMessagesFilterPhotoVideo) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterPhotoVideo, +// messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction; +func (m *TLMessageActionChannelMigrateFrom) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionChannelMigrateFrom, Data2: m.Data2, } } -func NewTLInputMessagesFilterPhotoVideo() *TLInputMessagesFilterPhotoVideo { - return &TLInputMessagesFilterPhotoVideo{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionChannelMigrateFrom) SetTitle(v string) { m.Data2.Title = v } +func (m *TLMessageActionChannelMigrateFrom) GetTitle() string { return m.Data2.Title } + +func (m *TLMessageActionChannelMigrateFrom) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLMessageActionChannelMigrateFrom) GetChatId() int32 { return m.Data2.ChatId } + +func NewTLMessageActionChannelMigrateFrom() *TLMessageActionChannelMigrateFrom { + return &TLMessageActionChannelMigrateFrom{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterPhotoVideo) Encode() []byte { +func (m *TLMessageActionChannelMigrateFrom) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhotoVideo)) + x.Int(int32(TLConstructor_CRC32_messageActionChannelMigrateFrom)) + + x.String(m.GetTitle()) + x.Int(m.GetChatId()) return x.buf } -func (m *TLInputMessagesFilterPhotoVideo) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionChannelMigrateFrom) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhotoVideo)) + x.Int(int32(TLConstructor_CRC32_messageActionChannelMigrateFrom)) + + x.String(m.GetTitle()) + x.Int(m.GetChatId()) return x.buf } -func (m *TLInputMessagesFilterPhotoVideo) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionChannelMigrateFrom) Decode(dbuf *DecodeBuf) error { + m.SetTitle(dbuf.String()) + m.SetChatId(dbuf.Int()) return dbuf.err } -// inputMessagesFilterDocument#9eddf188 = MessagesFilter; -func (m *TLInputMessagesFilterDocument) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterDocument, +// messageActionPinMessage#94bd38ed = MessageAction; +func (m *TLMessageActionPinMessage) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionPinMessage, Data2: m.Data2, } } -func NewTLInputMessagesFilterDocument() *TLInputMessagesFilterDocument { - return &TLInputMessagesFilterDocument{Data2: &MessagesFilter_Data{}} +func NewTLMessageActionPinMessage() *TLMessageActionPinMessage { + return &TLMessageActionPinMessage{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterDocument) Encode() []byte { +func (m *TLMessageActionPinMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterDocument)) + x.Int(int32(TLConstructor_CRC32_messageActionPinMessage)) return x.buf } -func (m *TLInputMessagesFilterDocument) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionPinMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterDocument)) + x.Int(int32(TLConstructor_CRC32_messageActionPinMessage)) return x.buf } -func (m *TLInputMessagesFilterDocument) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionPinMessage) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputMessagesFilterUrl#7ef0dd87 = MessagesFilter; -func (m *TLInputMessagesFilterUrl) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterUrl, +// messageActionHistoryClear#9fbab604 = MessageAction; +func (m *TLMessageActionHistoryClear) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionHistoryClear, Data2: m.Data2, } } -func NewTLInputMessagesFilterUrl() *TLInputMessagesFilterUrl { - return &TLInputMessagesFilterUrl{Data2: &MessagesFilter_Data{}} +func NewTLMessageActionHistoryClear() *TLMessageActionHistoryClear { + return &TLMessageActionHistoryClear{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterUrl) Encode() []byte { +func (m *TLMessageActionHistoryClear) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterUrl)) + x.Int(int32(TLConstructor_CRC32_messageActionHistoryClear)) return x.buf } -func (m *TLInputMessagesFilterUrl) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionHistoryClear) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterUrl)) + x.Int(int32(TLConstructor_CRC32_messageActionHistoryClear)) return x.buf } -func (m *TLInputMessagesFilterUrl) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionHistoryClear) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputMessagesFilterGif#ffc86587 = MessagesFilter; -func (m *TLInputMessagesFilterGif) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterGif, +// messageActionGameScore#92a72876 game_id:long score:int = MessageAction; +func (m *TLMessageActionGameScore) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionGameScore, Data2: m.Data2, } } -func NewTLInputMessagesFilterGif() *TLInputMessagesFilterGif { - return &TLInputMessagesFilterGif{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionGameScore) SetGameId(v int64) { m.Data2.GameId = v } +func (m *TLMessageActionGameScore) GetGameId() int64 { return m.Data2.GameId } + +func (m *TLMessageActionGameScore) SetScore(v int32) { m.Data2.Score = v } +func (m *TLMessageActionGameScore) GetScore() int32 { return m.Data2.Score } + +func NewTLMessageActionGameScore() *TLMessageActionGameScore { + return &TLMessageActionGameScore{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterGif) Encode() []byte { +func (m *TLMessageActionGameScore) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterGif)) + x.Int(int32(TLConstructor_CRC32_messageActionGameScore)) + + x.Long(m.GetGameId()) + x.Int(m.GetScore()) return x.buf } -func (m *TLInputMessagesFilterGif) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionGameScore) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterGif)) + x.Int(int32(TLConstructor_CRC32_messageActionGameScore)) + + x.Long(m.GetGameId()) + x.Int(m.GetScore()) return x.buf } -func (m *TLInputMessagesFilterGif) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionGameScore) Decode(dbuf *DecodeBuf) error { + m.SetGameId(dbuf.Long()) + m.SetScore(dbuf.Int()) return dbuf.err } -// inputMessagesFilterVoice#50f5c392 = MessagesFilter; -func (m *TLInputMessagesFilterVoice) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterVoice, +// messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; +func (m *TLMessageActionPaymentSentMe) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionPaymentSentMe, Data2: m.Data2, } } -func NewTLInputMessagesFilterVoice() *TLInputMessagesFilterVoice { - return &TLInputMessagesFilterVoice{Data2: &MessagesFilter_Data{}} -} +func (m *TLMessageActionPaymentSentMe) SetCurrency(v string) { m.Data2.Currency = v } +func (m *TLMessageActionPaymentSentMe) GetCurrency() string { return m.Data2.Currency } -func (m *TLInputMessagesFilterVoice) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterVoice)) +func (m *TLMessageActionPaymentSentMe) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } +func (m *TLMessageActionPaymentSentMe) GetTotalAmount() int64 { return m.Data2.TotalAmount } - return x.buf -} +func (m *TLMessageActionPaymentSentMe) SetPayload(v []byte) { m.Data2.Payload = v } +func (m *TLMessageActionPaymentSentMe) GetPayload() []byte { return m.Data2.Payload } -func (m *TLInputMessagesFilterVoice) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterVoice)) +func (m *TLMessageActionPaymentSentMe) SetInfo(v *PaymentRequestedInfo) { m.Data2.Info = v } +func (m *TLMessageActionPaymentSentMe) GetInfo() *PaymentRequestedInfo { return m.Data2.Info } - return x.buf -} +func (m *TLMessageActionPaymentSentMe) SetShippingOptionId(v string) { m.Data2.ShippingOptionId = v } +func (m *TLMessageActionPaymentSentMe) GetShippingOptionId() string { return m.Data2.ShippingOptionId } -func (m *TLInputMessagesFilterVoice) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionPaymentSentMe) SetCharge(v *PaymentCharge) { m.Data2.Charge = v } +func (m *TLMessageActionPaymentSentMe) GetCharge() *PaymentCharge { return m.Data2.Charge } - return dbuf.err +func NewTLMessageActionPaymentSentMe() *TLMessageActionPaymentSentMe { + return &TLMessageActionPaymentSentMe{Data2: &MessageAction_Data{}} } -// inputMessagesFilterMusic#3751b49e = MessagesFilter; -func (m *TLInputMessagesFilterMusic) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterMusic, - Data2: m.Data2, - } -} +func (m *TLMessageActionPaymentSentMe) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageActionPaymentSentMe)) -func NewTLInputMessagesFilterMusic() *TLInputMessagesFilterMusic { - return &TLInputMessagesFilterMusic{Data2: &MessagesFilter_Data{}} -} + // flags + var flags uint32 = 0 + if m.GetInfo() != nil { + flags |= 1 << 0 + } + if m.GetShippingOptionId() != "" { + flags |= 1 << 1 + } + x.UInt(flags) -func (m *TLInputMessagesFilterMusic) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterMusic)) + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) + x.StringBytes(m.GetPayload()) + if m.GetInfo() != nil { + x.Bytes(m.GetInfo().Encode()) + } + if m.GetShippingOptionId() != "" { + x.String(m.GetShippingOptionId()) + } + x.Bytes(m.GetCharge().Encode()) return x.buf } -func (m *TLInputMessagesFilterMusic) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionPaymentSentMe) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterMusic)) + x.Int(int32(TLConstructor_CRC32_messageActionPaymentSentMe)) + + // flags + var flags uint32 = 0 + if m.GetInfo() != nil { + flags |= 1 << 0 + } + if m.GetShippingOptionId() != "" { + flags |= 1 << 1 + } + x.UInt(flags) + + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) + x.StringBytes(m.GetPayload()) + if m.GetInfo() != nil { + x.Bytes(m.GetInfo().EncodeToLayer(layer)) + } + if m.GetShippingOptionId() != "" { + x.String(m.GetShippingOptionId()) + } + x.Bytes(m.GetCharge().EncodeToLayer(layer)) return x.buf } -func (m *TLInputMessagesFilterMusic) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionPaymentSentMe) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetCurrency(dbuf.String()) + m.SetTotalAmount(dbuf.Long()) + m.SetPayload(dbuf.StringBytes()) + if (flags & (1 << 0)) != 0 { + m5 := &PaymentRequestedInfo{} + m5.Decode(dbuf) + m.SetInfo(m5) + } + if (flags & (1 << 1)) != 0 { + m.SetShippingOptionId(dbuf.String()) + } + m7 := &PaymentCharge{} + m7.Decode(dbuf) + m.SetCharge(m7) return dbuf.err } -// inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter; -func (m *TLInputMessagesFilterChatPhotos) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterChatPhotos, +// messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; +func (m *TLMessageActionPaymentSent) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionPaymentSent, Data2: m.Data2, } } -func NewTLInputMessagesFilterChatPhotos() *TLInputMessagesFilterChatPhotos { - return &TLInputMessagesFilterChatPhotos{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionPaymentSent) SetCurrency(v string) { m.Data2.Currency = v } +func (m *TLMessageActionPaymentSent) GetCurrency() string { return m.Data2.Currency } + +func (m *TLMessageActionPaymentSent) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } +func (m *TLMessageActionPaymentSent) GetTotalAmount() int64 { return m.Data2.TotalAmount } + +func NewTLMessageActionPaymentSent() *TLMessageActionPaymentSent { + return &TLMessageActionPaymentSent{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterChatPhotos) Encode() []byte { +func (m *TLMessageActionPaymentSent) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterChatPhotos)) + x.Int(int32(TLConstructor_CRC32_messageActionPaymentSent)) + + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) return x.buf } -func (m *TLInputMessagesFilterChatPhotos) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionPaymentSent) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterChatPhotos)) + x.Int(int32(TLConstructor_CRC32_messageActionPaymentSent)) + + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) return x.buf } -func (m *TLInputMessagesFilterChatPhotos) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionPaymentSent) Decode(dbuf *DecodeBuf) error { + m.SetCurrency(dbuf.String()) + m.SetTotalAmount(dbuf.Long()) return dbuf.err } -// inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter; -func (m *TLInputMessagesFilterPhoneCalls) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterPhoneCalls, +// messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction; +func (m *TLMessageActionPhoneCall) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionPhoneCall, Data2: m.Data2, } } -func (m *TLInputMessagesFilterPhoneCalls) SetMissed(v bool) { m.Data2.Missed = v } -func (m *TLInputMessagesFilterPhoneCalls) GetMissed() bool { return m.Data2.Missed } +func (m *TLMessageActionPhoneCall) SetCallId(v int64) { m.Data2.CallId = v } +func (m *TLMessageActionPhoneCall) GetCallId() int64 { return m.Data2.CallId } -func NewTLInputMessagesFilterPhoneCalls() *TLInputMessagesFilterPhoneCalls { - return &TLInputMessagesFilterPhoneCalls{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionPhoneCall) SetReason(v *PhoneCallDiscardReason) { m.Data2.Reason = v } +func (m *TLMessageActionPhoneCall) GetReason() *PhoneCallDiscardReason { return m.Data2.Reason } + +func (m *TLMessageActionPhoneCall) SetDuration(v int32) { m.Data2.Duration = v } +func (m *TLMessageActionPhoneCall) GetDuration() int32 { return m.Data2.Duration } + +func NewTLMessageActionPhoneCall() *TLMessageActionPhoneCall { + return &TLMessageActionPhoneCall{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterPhoneCalls) Encode() []byte { +func (m *TLMessageActionPhoneCall) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhoneCalls)) + x.Int(int32(TLConstructor_CRC32_messageActionPhoneCall)) // flags var flags uint32 = 0 - if m.GetMissed() == true { + if m.GetReason() != nil { flags |= 1 << 0 } + if m.GetDuration() != 0 { + flags |= 1 << 1 + } x.UInt(flags) + x.Long(m.GetCallId()) + if m.GetReason() != nil { + x.Bytes(m.GetReason().Encode()) + } + if m.GetDuration() != 0 { + x.Int(m.GetDuration()) + } + return x.buf } -func (m *TLInputMessagesFilterPhoneCalls) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionPhoneCall) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterPhoneCalls)) + x.Int(int32(TLConstructor_CRC32_messageActionPhoneCall)) // flags var flags uint32 = 0 - if m.GetMissed() == true { + if m.GetReason() != nil { flags |= 1 << 0 } + if m.GetDuration() != 0 { + flags |= 1 << 1 + } x.UInt(flags) + x.Long(m.GetCallId()) + if m.GetReason() != nil { + x.Bytes(m.GetReason().EncodeToLayer(layer)) + } + if m.GetDuration() != 0 { + x.Int(m.GetDuration()) + } + return x.buf } -func (m *TLInputMessagesFilterPhoneCalls) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionPhoneCall) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags + m.SetCallId(dbuf.Long()) if (flags & (1 << 0)) != 0 { - m.SetMissed(true) + m3 := &PhoneCallDiscardReason{} + m3.Decode(dbuf) + m.SetReason(m3) + } + if (flags & (1 << 1)) != 0 { + m.SetDuration(dbuf.Int()) } return dbuf.err } -// inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter; -func (m *TLInputMessagesFilterRoundVoice) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterRoundVoice, +// messageActionScreenshotTaken#4792929b = MessageAction; +func (m *TLMessageActionScreenshotTaken) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionScreenshotTaken, Data2: m.Data2, } } -func NewTLInputMessagesFilterRoundVoice() *TLInputMessagesFilterRoundVoice { - return &TLInputMessagesFilterRoundVoice{Data2: &MessagesFilter_Data{}} +func NewTLMessageActionScreenshotTaken() *TLMessageActionScreenshotTaken { + return &TLMessageActionScreenshotTaken{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterRoundVoice) Encode() []byte { +func (m *TLMessageActionScreenshotTaken) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterRoundVoice)) + x.Int(int32(TLConstructor_CRC32_messageActionScreenshotTaken)) return x.buf } -func (m *TLInputMessagesFilterRoundVoice) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionScreenshotTaken) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterRoundVoice)) + x.Int(int32(TLConstructor_CRC32_messageActionScreenshotTaken)) return x.buf } -func (m *TLInputMessagesFilterRoundVoice) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionScreenshotTaken) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputMessagesFilterRoundVideo#b549da53 = MessagesFilter; -func (m *TLInputMessagesFilterRoundVideo) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterRoundVideo, +// messageActionCustomAction#fae69f56 message:string = MessageAction; +func (m *TLMessageActionCustomAction) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionCustomAction, Data2: m.Data2, } } -func NewTLInputMessagesFilterRoundVideo() *TLInputMessagesFilterRoundVideo { - return &TLInputMessagesFilterRoundVideo{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionCustomAction) SetMessage(v string) { m.Data2.Message = v } +func (m *TLMessageActionCustomAction) GetMessage() string { return m.Data2.Message } + +func NewTLMessageActionCustomAction() *TLMessageActionCustomAction { + return &TLMessageActionCustomAction{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterRoundVideo) Encode() []byte { +func (m *TLMessageActionCustomAction) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterRoundVideo)) + x.Int(int32(TLConstructor_CRC32_messageActionCustomAction)) + + x.String(m.GetMessage()) return x.buf } -func (m *TLInputMessagesFilterRoundVideo) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionCustomAction) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterRoundVideo)) + x.Int(int32(TLConstructor_CRC32_messageActionCustomAction)) + + x.String(m.GetMessage()) return x.buf } -func (m *TLInputMessagesFilterRoundVideo) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionCustomAction) Decode(dbuf *DecodeBuf) error { + m.SetMessage(dbuf.String()) return dbuf.err } -// inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter; -func (m *TLInputMessagesFilterMyMentions) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterMyMentions, +// messageActionBotAllowed#abe9affe domain:string = MessageAction; +func (m *TLMessageActionBotAllowed) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionBotAllowed, Data2: m.Data2, } } -func NewTLInputMessagesFilterMyMentions() *TLInputMessagesFilterMyMentions { - return &TLInputMessagesFilterMyMentions{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionBotAllowed) SetDomain(v string) { m.Data2.Domain = v } +func (m *TLMessageActionBotAllowed) GetDomain() string { return m.Data2.Domain } + +func NewTLMessageActionBotAllowed() *TLMessageActionBotAllowed { + return &TLMessageActionBotAllowed{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterMyMentions) Encode() []byte { +func (m *TLMessageActionBotAllowed) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterMyMentions)) + x.Int(int32(TLConstructor_CRC32_messageActionBotAllowed)) + + x.String(m.GetDomain()) return x.buf } -func (m *TLInputMessagesFilterMyMentions) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionBotAllowed) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterMyMentions)) + x.Int(int32(TLConstructor_CRC32_messageActionBotAllowed)) + + x.String(m.GetDomain()) return x.buf } -func (m *TLInputMessagesFilterMyMentions) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionBotAllowed) Decode(dbuf *DecodeBuf) error { + m.SetDomain(dbuf.String()) return dbuf.err } -// inputMessagesFilterGeo#e7026d0d = MessagesFilter; -func (m *TLInputMessagesFilterGeo) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterGeo, +// messageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction; +func (m *TLMessageActionSecureValuesSentMe) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionSecureValuesSentMe, Data2: m.Data2, } } -func NewTLInputMessagesFilterGeo() *TLInputMessagesFilterGeo { - return &TLInputMessagesFilterGeo{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionSecureValuesSentMe) SetValues(v []*SecureValue) { m.Data2.Values = v } +func (m *TLMessageActionSecureValuesSentMe) GetValues() []*SecureValue { return m.Data2.Values } + +func (m *TLMessageActionSecureValuesSentMe) SetCredentials(v *SecureCredentialsEncrypted) { + m.Data2.Credentials = v +} +func (m *TLMessageActionSecureValuesSentMe) GetCredentials() *SecureCredentialsEncrypted { + return m.Data2.Credentials } -func (m *TLInputMessagesFilterGeo) Encode() []byte { +func NewTLMessageActionSecureValuesSentMe() *TLMessageActionSecureValuesSentMe { + return &TLMessageActionSecureValuesSentMe{Data2: &MessageAction_Data{}} +} + +func (m *TLMessageActionSecureValuesSentMe) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterGeo)) + x.Int(int32(TLConstructor_CRC32_messageActionSecureValuesSentMe)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetValues()))) + for _, v := range m.GetValues() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Bytes(m.GetCredentials().Encode()) return x.buf } -func (m *TLInputMessagesFilterGeo) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionSecureValuesSentMe) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterGeo)) + x.Int(int32(TLConstructor_CRC32_messageActionSecureValuesSentMe)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetValues()))) + for _, v := range m.GetValues() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Bytes(m.GetCredentials().EncodeToLayer(layer)) return x.buf } -func (m *TLInputMessagesFilterGeo) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionSecureValuesSentMe) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*SecureValue, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &SecureValue{} + v1[i].Decode(dbuf) + } + m.SetValues(v1) + + m2 := &SecureCredentialsEncrypted{} + m2.Decode(dbuf) + m.SetCredentials(m2) return dbuf.err } -// inputMessagesFilterContacts#e062db83 = MessagesFilter; -func (m *TLInputMessagesFilterContacts) To_MessagesFilter() *MessagesFilter { - return &MessagesFilter{ - Constructor: TLConstructor_CRC32_inputMessagesFilterContacts, +// messageActionSecureValuesSent#d95c6154 types:Vector = MessageAction; +func (m *TLMessageActionSecureValuesSent) To_MessageAction() *MessageAction { + return &MessageAction{ + Constructor: TLConstructor_CRC32_messageActionSecureValuesSent, Data2: m.Data2, } } -func NewTLInputMessagesFilterContacts() *TLInputMessagesFilterContacts { - return &TLInputMessagesFilterContacts{Data2: &MessagesFilter_Data{}} +func (m *TLMessageActionSecureValuesSent) SetTypes(v []*SecureValueType) { m.Data2.Types = v } +func (m *TLMessageActionSecureValuesSent) GetTypes() []*SecureValueType { return m.Data2.Types } + +func NewTLMessageActionSecureValuesSent() *TLMessageActionSecureValuesSent { + return &TLMessageActionSecureValuesSent{Data2: &MessageAction_Data{}} } -func (m *TLInputMessagesFilterContacts) Encode() []byte { +func (m *TLMessageActionSecureValuesSent) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterContacts)) + x.Int(int32(TLConstructor_CRC32_messageActionSecureValuesSent)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTypes()))) + for _, v := range m.GetTypes() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLInputMessagesFilterContacts) EncodeToLayer(layer int) []byte { +func (m *TLMessageActionSecureValuesSent) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagesFilterContacts)) + x.Int(int32(TLConstructor_CRC32_messageActionSecureValuesSent)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTypes()))) + for _, v := range m.GetTypes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLInputMessagesFilterContacts) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageActionSecureValuesSent) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*SecureValueType, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &SecureValueType{} + v1[i].Decode(dbuf) + } + m.SetTypes(v1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// LabeledPrice <-- -// + TL_LabeledPrice +// AccountDaysTTL <-- +// + TL_AccountDaysTTL // -func (m *LabeledPrice) Encode() []byte { +func (m *AccountDaysTTL) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_labeledPrice: - t := m.To_LabeledPrice() + case TLConstructor_CRC32_accountDaysTTL: + t := m.To_AccountDaysTTL() return t.Encode() default: @@ -54484,11 +55330,11 @@ func (m *LabeledPrice) Encode() []byte { } } -func (m *LabeledPrice) EncodeToLayer(layer int) []byte { +func (m *AccountDaysTTL) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_labeledPrice: - t := m.To_LabeledPrice() + case TLConstructor_CRC32_accountDaysTTL: + t := m.To_AccountDaysTTL() return t.EncodeToLayer(layer) default: @@ -54497,11 +55343,11 @@ func (m *LabeledPrice) EncodeToLayer(layer int) []byte { } } -func (m *LabeledPrice) Decode(dbuf *DecodeBuf) error { +func (m *AccountDaysTTL) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_labeledPrice: - m2 := &TLLabeledPrice{Data2: &LabeledPrice_Data{}} + case TLConstructor_CRC32_accountDaysTTL: + m2 := &TLAccountDaysTTL{Data2: &AccountDaysTTL_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -54511,67 +55357,73 @@ func (m *LabeledPrice) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; -func (m *LabeledPrice) To_LabeledPrice() *TLLabeledPrice { - return &TLLabeledPrice{ +// accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; +func (m *AccountDaysTTL) To_AccountDaysTTL() *TLAccountDaysTTL { + return &TLAccountDaysTTL{ Data2: m.Data2, } } -// labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; -func (m *TLLabeledPrice) To_LabeledPrice() *LabeledPrice { - return &LabeledPrice{ - Constructor: TLConstructor_CRC32_labeledPrice, +// accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; +func (m *TLAccountDaysTTL) To_AccountDaysTTL() *AccountDaysTTL { + return &AccountDaysTTL{ + Constructor: TLConstructor_CRC32_accountDaysTTL, Data2: m.Data2, } } -func (m *TLLabeledPrice) SetLabel(v string) { m.Data2.Label = v } -func (m *TLLabeledPrice) GetLabel() string { return m.Data2.Label } - -func (m *TLLabeledPrice) SetAmount(v int64) { m.Data2.Amount = v } -func (m *TLLabeledPrice) GetAmount() int64 { return m.Data2.Amount } +func (m *TLAccountDaysTTL) SetDays(v int32) { m.Data2.Days = v } +func (m *TLAccountDaysTTL) GetDays() int32 { return m.Data2.Days } -func NewTLLabeledPrice() *TLLabeledPrice { - return &TLLabeledPrice{Data2: &LabeledPrice_Data{}} +func NewTLAccountDaysTTL() *TLAccountDaysTTL { + return &TLAccountDaysTTL{Data2: &AccountDaysTTL_Data{}} } -func (m *TLLabeledPrice) Encode() []byte { +func (m *TLAccountDaysTTL) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_labeledPrice)) + x.Int(int32(TLConstructor_CRC32_accountDaysTTL)) - x.String(m.GetLabel()) - x.Long(m.GetAmount()) + x.Int(m.GetDays()) return x.buf } -func (m *TLLabeledPrice) EncodeToLayer(layer int) []byte { +func (m *TLAccountDaysTTL) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_labeledPrice)) + x.Int(int32(TLConstructor_CRC32_accountDaysTTL)) - x.String(m.GetLabel()) - x.Long(m.GetAmount()) + x.Int(m.GetDays()) return x.buf } -func (m *TLLabeledPrice) Decode(dbuf *DecodeBuf) error { - m.SetLabel(dbuf.String()) - m.SetAmount(dbuf.Long()) +func (m *TLAccountDaysTTL) Decode(dbuf *DecodeBuf) error { + m.SetDays(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputWebDocument <-- -// + TL_InputWebDocument +// WebPage <-- +// + TL_WebPageEmpty +// + TL_WebPagePending +// + TL_WebPage +// + TL_WebPageNotModified // -func (m *InputWebDocument) Encode() []byte { +func (m *WebPage) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputWebDocument: - t := m.To_InputWebDocument() + case TLConstructor_CRC32_webPageEmpty: + t := m.To_WebPageEmpty() + return t.Encode() + case TLConstructor_CRC32_webPagePending: + t := m.To_WebPagePending() + return t.Encode() + case TLConstructor_CRC32_webPage: + t := m.To_WebPage() + return t.Encode() + case TLConstructor_CRC32_webPageNotModified: + t := m.To_WebPageNotModified() return t.Encode() default: @@ -54580,11 +55432,20 @@ func (m *InputWebDocument) Encode() []byte { } } -func (m *InputWebDocument) EncodeToLayer(layer int) []byte { +func (m *WebPage) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputWebDocument: - t := m.To_InputWebDocument() + case TLConstructor_CRC32_webPageEmpty: + t := m.To_WebPageEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_webPagePending: + t := m.To_WebPagePending() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_webPage: + t := m.To_WebPage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_webPageNotModified: + t := m.To_WebPageNotModified() return t.EncodeToLayer(layer) default: @@ -54593,11 +55454,23 @@ func (m *InputWebDocument) EncodeToLayer(layer int) []byte { } } -func (m *InputWebDocument) Decode(dbuf *DecodeBuf) error { +func (m *WebPage) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputWebDocument: - m2 := &TLInputWebDocument{Data2: &InputWebDocument_Data{}} + case TLConstructor_CRC32_webPageEmpty: + m2 := &TLWebPageEmpty{Data2: &WebPage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_webPagePending: + m2 := &TLWebPagePending{Data2: &WebPage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_webPage: + m2 := &TLWebPage{Data2: &WebPage_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_webPageNotModified: + m2 := &TLWebPageNotModified{Data2: &WebPage_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -54607,414 +55480,565 @@ func (m *InputWebDocument) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; -func (m *InputWebDocument) To_InputWebDocument() *TLInputWebDocument { - return &TLInputWebDocument{ +// webPageEmpty#eb1477e8 id:long = WebPage; +func (m *WebPage) To_WebPageEmpty() *TLWebPageEmpty { + return &TLWebPageEmpty{ Data2: m.Data2, } } -// inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; -func (m *TLInputWebDocument) To_InputWebDocument() *InputWebDocument { - return &InputWebDocument{ - Constructor: TLConstructor_CRC32_inputWebDocument, - Data2: m.Data2, +// webPagePending#c586da1c id:long date:int = WebPage; +func (m *WebPage) To_WebPagePending() *TLWebPagePending { + return &TLWebPagePending{ + Data2: m.Data2, } } -func (m *TLInputWebDocument) SetUrl(v string) { m.Data2.Url = v } -func (m *TLInputWebDocument) GetUrl() string { return m.Data2.Url } +// webPage#5f07b4bc flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page = WebPage; +func (m *WebPage) To_WebPage() *TLWebPage { + return &TLWebPage{ + Data2: m.Data2, + } +} -func (m *TLInputWebDocument) SetSize(v int32) { m.Data2.Size = v } -func (m *TLInputWebDocument) GetSize() int32 { return m.Data2.Size } +// webPageNotModified#85849473 = WebPage; +func (m *WebPage) To_WebPageNotModified() *TLWebPageNotModified { + return &TLWebPageNotModified{ + Data2: m.Data2, + } +} -func (m *TLInputWebDocument) SetMimeType(v string) { m.Data2.MimeType = v } -func (m *TLInputWebDocument) GetMimeType() string { return m.Data2.MimeType } +// webPageEmpty#eb1477e8 id:long = WebPage; +func (m *TLWebPageEmpty) To_WebPage() *WebPage { + return &WebPage{ + Constructor: TLConstructor_CRC32_webPageEmpty, + Data2: m.Data2, + } +} -func (m *TLInputWebDocument) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } -func (m *TLInputWebDocument) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } +func (m *TLWebPageEmpty) SetId(v int64) { m.Data2.Id = v } +func (m *TLWebPageEmpty) GetId() int64 { return m.Data2.Id } -func NewTLInputWebDocument() *TLInputWebDocument { - return &TLInputWebDocument{Data2: &InputWebDocument_Data{}} +func NewTLWebPageEmpty() *TLWebPageEmpty { + return &TLWebPageEmpty{Data2: &WebPage_Data{}} } -func (m *TLInputWebDocument) Encode() []byte { +func (m *TLWebPageEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputWebDocument)) + x.Int(int32(TLConstructor_CRC32_webPageEmpty)) - x.String(m.GetUrl()) - x.Int(m.GetSize()) - x.String(m.GetMimeType()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Long(m.GetId()) return x.buf } -func (m *TLInputWebDocument) EncodeToLayer(layer int) []byte { +func (m *TLWebPageEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputWebDocument)) + x.Int(int32(TLConstructor_CRC32_webPageEmpty)) - x.String(m.GetUrl()) - x.Int(m.GetSize()) - x.String(m.GetMimeType()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Long(m.GetId()) return x.buf } -func (m *TLInputWebDocument) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m.SetSize(dbuf.Int()) - m.SetMimeType(dbuf.String()) - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*DocumentAttribute, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &DocumentAttribute{} - v4[i].Decode(dbuf) - } - m.SetAttributes(v4) +func (m *TLWebPageEmpty) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Upload_WebFile <-- -// + TL_UploadWebFile -// +// webPagePending#c586da1c id:long date:int = WebPage; +func (m *TLWebPagePending) To_WebPage() *WebPage { + return &WebPage{ + Constructor: TLConstructor_CRC32_webPagePending, + Data2: m.Data2, + } +} -func (m *Upload_WebFile) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_upload_webFile: - t := m.To_UploadWebFile() - return t.Encode() +func (m *TLWebPagePending) SetId(v int64) { m.Data2.Id = v } +func (m *TLWebPagePending) GetId() int64 { return m.Data2.Id } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLWebPagePending) SetDate(v int32) { m.Data2.Date = v } +func (m *TLWebPagePending) GetDate() int32 { return m.Data2.Date } + +func NewTLWebPagePending() *TLWebPagePending { + return &TLWebPagePending{Data2: &WebPage_Data{}} } -func (m *Upload_WebFile) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_upload_webFile: - t := m.To_UploadWebFile() - return t.EncodeToLayer(layer) +func (m *TLWebPagePending) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_webPagePending)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Long(m.GetId()) + x.Int(m.GetDate()) + + return x.buf } -func (m *Upload_WebFile) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_upload_webFile: - m2 := &TLUploadWebFile{Data2: &Upload_WebFile_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLWebPagePending) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_webPagePending)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Long(m.GetId()) + x.Int(m.GetDate()) + + return x.buf } -// upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; -func (m *Upload_WebFile) To_UploadWebFile() *TLUploadWebFile { - return &TLUploadWebFile{ - Data2: m.Data2, - } +func (m *TLWebPagePending) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetDate(dbuf.Int()) + + return dbuf.err } -// upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; -func (m *TLUploadWebFile) To_Upload_WebFile() *Upload_WebFile { - return &Upload_WebFile{ - Constructor: TLConstructor_CRC32_upload_webFile, +// webPage#5f07b4bc flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page = WebPage; +func (m *TLWebPage) To_WebPage() *WebPage { + return &WebPage{ + Constructor: TLConstructor_CRC32_webPage, Data2: m.Data2, } } -func (m *TLUploadWebFile) SetSize(v int32) { m.Data2.Size = v } -func (m *TLUploadWebFile) GetSize() int32 { return m.Data2.Size } +func (m *TLWebPage) SetId(v int64) { m.Data2.Id = v } +func (m *TLWebPage) GetId() int64 { return m.Data2.Id } -func (m *TLUploadWebFile) SetMimeType(v string) { m.Data2.MimeType = v } -func (m *TLUploadWebFile) GetMimeType() string { return m.Data2.MimeType } +func (m *TLWebPage) SetUrl(v string) { m.Data2.Url = v } +func (m *TLWebPage) GetUrl() string { return m.Data2.Url } -func (m *TLUploadWebFile) SetFileType(v *Storage_FileType) { m.Data2.FileType = v } -func (m *TLUploadWebFile) GetFileType() *Storage_FileType { return m.Data2.FileType } +func (m *TLWebPage) SetDisplayUrl(v string) { m.Data2.DisplayUrl = v } +func (m *TLWebPage) GetDisplayUrl() string { return m.Data2.DisplayUrl } -func (m *TLUploadWebFile) SetMtime(v int32) { m.Data2.Mtime = v } -func (m *TLUploadWebFile) GetMtime() int32 { return m.Data2.Mtime } +func (m *TLWebPage) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLWebPage) GetHash() int32 { return m.Data2.Hash } -func (m *TLUploadWebFile) SetBytes(v []byte) { m.Data2.Bytes = v } -func (m *TLUploadWebFile) GetBytes() []byte { return m.Data2.Bytes } +func (m *TLWebPage) SetType(v string) { m.Data2.Type = v } +func (m *TLWebPage) GetType() string { return m.Data2.Type } -func NewTLUploadWebFile() *TLUploadWebFile { - return &TLUploadWebFile{Data2: &Upload_WebFile_Data{}} -} +func (m *TLWebPage) SetSiteName(v string) { m.Data2.SiteName = v } +func (m *TLWebPage) GetSiteName() string { return m.Data2.SiteName } -func (m *TLUploadWebFile) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_webFile)) +func (m *TLWebPage) SetTitle(v string) { m.Data2.Title = v } +func (m *TLWebPage) GetTitle() string { return m.Data2.Title } - x.Int(m.GetSize()) - x.String(m.GetMimeType()) - x.Bytes(m.GetFileType().Encode()) - x.Int(m.GetMtime()) - x.StringBytes(m.GetBytes()) +func (m *TLWebPage) SetDescription(v string) { m.Data2.Description = v } +func (m *TLWebPage) GetDescription() string { return m.Data2.Description } - return x.buf -} +func (m *TLWebPage) SetPhoto(v *Photo) { m.Data2.Photo = v } +func (m *TLWebPage) GetPhoto() *Photo { return m.Data2.Photo } -func (m *TLUploadWebFile) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_upload_webFile)) +func (m *TLWebPage) SetEmbedUrl(v string) { m.Data2.EmbedUrl = v } +func (m *TLWebPage) GetEmbedUrl() string { return m.Data2.EmbedUrl } - x.Int(m.GetSize()) - x.String(m.GetMimeType()) - x.Bytes(m.GetFileType().EncodeToLayer(layer)) - x.Int(m.GetMtime()) - x.StringBytes(m.GetBytes()) +func (m *TLWebPage) SetEmbedType(v string) { m.Data2.EmbedType = v } +func (m *TLWebPage) GetEmbedType() string { return m.Data2.EmbedType } - return x.buf -} +func (m *TLWebPage) SetEmbedWidth(v int32) { m.Data2.EmbedWidth = v } +func (m *TLWebPage) GetEmbedWidth() int32 { return m.Data2.EmbedWidth } -func (m *TLUploadWebFile) Decode(dbuf *DecodeBuf) error { - m.SetSize(dbuf.Int()) - m.SetMimeType(dbuf.String()) - m3 := &Storage_FileType{} - m3.Decode(dbuf) - m.SetFileType(m3) - m.SetMtime(dbuf.Int()) - m.SetBytes(dbuf.StringBytes()) +func (m *TLWebPage) SetEmbedHeight(v int32) { m.Data2.EmbedHeight = v } +func (m *TLWebPage) GetEmbedHeight() int32 { return m.Data2.EmbedHeight } - return dbuf.err -} +func (m *TLWebPage) SetDuration(v int32) { m.Data2.Duration = v } +func (m *TLWebPage) GetDuration() int32 { return m.Data2.Duration } -/////////////////////////////////////////////////////////////////////////////// -// InputMessage <-- -// + TL_InputMessageID -// + TL_InputMessageReplyTo -// + TL_InputMessagePinned -// +func (m *TLWebPage) SetAuthor(v string) { m.Data2.Author = v } +func (m *TLWebPage) GetAuthor() string { return m.Data2.Author } -func (m *InputMessage) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputMessageID: - t := m.To_InputMessageID() - return t.Encode() - case TLConstructor_CRC32_inputMessageReplyTo: - t := m.To_InputMessageReplyTo() - return t.Encode() - case TLConstructor_CRC32_inputMessagePinned: - t := m.To_InputMessagePinned() - return t.Encode() +func (m *TLWebPage) SetDocument(v *Document) { m.Data2.Document = v } +func (m *TLWebPage) GetDocument() *Document { return m.Data2.Document } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLWebPage) SetCachedPage(v *Page) { m.Data2.CachedPage = v } +func (m *TLWebPage) GetCachedPage() *Page { return m.Data2.CachedPage } + +func NewTLWebPage() *TLWebPage { + return &TLWebPage{Data2: &WebPage_Data{}} } -func (m *InputMessage) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputMessageID: - t := m.To_InputMessageID() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessageReplyTo: - t := m.To_InputMessageReplyTo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputMessagePinned: - t := m.To_InputMessagePinned() - return t.EncodeToLayer(layer) +func (m *TLWebPage) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_webPage)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetType() != "" { + flags |= 1 << 0 } -} - -func (m *InputMessage) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputMessageID: - m2 := &TLInputMessageID{Data2: &InputMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessageReplyTo: - m2 := &TLInputMessageReplyTo{Data2: &InputMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputMessagePinned: - m2 := &TLInputMessagePinned{Data2: &InputMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 + if m.GetSiteName() != "" { + flags |= 1 << 1 + } + if m.GetTitle() != "" { + flags |= 1 << 2 + } + if m.GetDescription() != "" { + flags |= 1 << 3 + } + if m.GetPhoto() != nil { + flags |= 1 << 4 + } + if m.GetEmbedUrl() != "" { + flags |= 1 << 5 + } + if m.GetEmbedType() != "" { + flags |= 1 << 5 + } + if m.GetEmbedWidth() != 0 { + flags |= 1 << 6 + } + if m.GetEmbedHeight() != 0 { + flags |= 1 << 6 + } + if m.GetDuration() != 0 { + flags |= 1 << 7 + } + if m.GetAuthor() != "" { + flags |= 1 << 8 + } + if m.GetDocument() != nil { + flags |= 1 << 9 + } + if m.GetCachedPage() != nil { + flags |= 1 << 10 + } + x.UInt(flags) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + x.Long(m.GetId()) + x.String(m.GetUrl()) + x.String(m.GetDisplayUrl()) + x.Int(m.GetHash()) + if m.GetType() != "" { + x.String(m.GetType()) } - return dbuf.err + if m.GetSiteName() != "" { + x.String(m.GetSiteName()) + } + if m.GetTitle() != "" { + x.String(m.GetTitle()) + } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().Encode()) + } + if m.GetEmbedUrl() != "" { + x.String(m.GetEmbedUrl()) + } + if m.GetEmbedType() != "" { + x.String(m.GetEmbedType()) + } + if m.GetEmbedWidth() != 0 { + x.Int(m.GetEmbedWidth()) + } + if m.GetEmbedHeight() != 0 { + x.Int(m.GetEmbedHeight()) + } + if m.GetDuration() != 0 { + x.Int(m.GetDuration()) + } + if m.GetAuthor() != "" { + x.String(m.GetAuthor()) + } + if m.GetDocument() != nil { + x.Bytes(m.GetDocument().Encode()) + } + if m.GetCachedPage() != nil { + x.Bytes(m.GetCachedPage().Encode()) + } + + return x.buf } -// inputMessageID#a676a322 id:int = InputMessage; -func (m *InputMessage) To_InputMessageID() *TLInputMessageID { - return &TLInputMessageID{ - Data2: m.Data2, +func (m *TLWebPage) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_webPage)) + + // flags + var flags uint32 = 0 + if m.GetType() != "" { + flags |= 1 << 0 } -} + if m.GetSiteName() != "" { + flags |= 1 << 1 + } + if m.GetTitle() != "" { + flags |= 1 << 2 + } + if m.GetDescription() != "" { + flags |= 1 << 3 + } + if m.GetPhoto() != nil { + flags |= 1 << 4 + } + if m.GetEmbedUrl() != "" { + flags |= 1 << 5 + } + if m.GetEmbedType() != "" { + flags |= 1 << 5 + } + if m.GetEmbedWidth() != 0 { + flags |= 1 << 6 + } + if m.GetEmbedHeight() != 0 { + flags |= 1 << 6 + } + if m.GetDuration() != 0 { + flags |= 1 << 7 + } + if m.GetAuthor() != "" { + flags |= 1 << 8 + } + if m.GetDocument() != nil { + flags |= 1 << 9 + } + if m.GetCachedPage() != nil { + flags |= 1 << 10 + } + x.UInt(flags) -// inputMessageReplyTo#bad88395 id:int = InputMessage; -func (m *InputMessage) To_InputMessageReplyTo() *TLInputMessageReplyTo { - return &TLInputMessageReplyTo{ - Data2: m.Data2, + x.Long(m.GetId()) + x.String(m.GetUrl()) + x.String(m.GetDisplayUrl()) + x.Int(m.GetHash()) + if m.GetType() != "" { + x.String(m.GetType()) + } + if m.GetSiteName() != "" { + x.String(m.GetSiteName()) + } + if m.GetTitle() != "" { + x.String(m.GetTitle()) + } + if m.GetDescription() != "" { + x.String(m.GetDescription()) + } + if m.GetPhoto() != nil { + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + } + if m.GetEmbedUrl() != "" { + x.String(m.GetEmbedUrl()) + } + if m.GetEmbedType() != "" { + x.String(m.GetEmbedType()) + } + if m.GetEmbedWidth() != 0 { + x.Int(m.GetEmbedWidth()) + } + if m.GetEmbedHeight() != 0 { + x.Int(m.GetEmbedHeight()) + } + if m.GetDuration() != 0 { + x.Int(m.GetDuration()) + } + if m.GetAuthor() != "" { + x.String(m.GetAuthor()) + } + if m.GetDocument() != nil { + x.Bytes(m.GetDocument().EncodeToLayer(layer)) + } + if m.GetCachedPage() != nil { + x.Bytes(m.GetCachedPage().EncodeToLayer(layer)) } + + return x.buf } -// inputMessagePinned#86872538 = InputMessage; -func (m *InputMessage) To_InputMessagePinned() *TLInputMessagePinned { - return &TLInputMessagePinned{ - Data2: m.Data2, +func (m *TLWebPage) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetId(dbuf.Long()) + m.SetUrl(dbuf.String()) + m.SetDisplayUrl(dbuf.String()) + m.SetHash(dbuf.Int()) + if (flags & (1 << 0)) != 0 { + m.SetType(dbuf.String()) + } + if (flags & (1 << 1)) != 0 { + m.SetSiteName(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m.SetTitle(dbuf.String()) + } + if (flags & (1 << 3)) != 0 { + m.SetDescription(dbuf.String()) + } + if (flags & (1 << 4)) != 0 { + m10 := &Photo{} + m10.Decode(dbuf) + m.SetPhoto(m10) + } + if (flags & (1 << 5)) != 0 { + m.SetEmbedUrl(dbuf.String()) + } + if (flags & (1 << 5)) != 0 { + m.SetEmbedType(dbuf.String()) + } + if (flags & (1 << 6)) != 0 { + m.SetEmbedWidth(dbuf.Int()) + } + if (flags & (1 << 6)) != 0 { + m.SetEmbedHeight(dbuf.Int()) + } + if (flags & (1 << 7)) != 0 { + m.SetDuration(dbuf.Int()) } + if (flags & (1 << 8)) != 0 { + m.SetAuthor(dbuf.String()) + } + if (flags & (1 << 9)) != 0 { + m17 := &Document{} + m17.Decode(dbuf) + m.SetDocument(m17) + } + if (flags & (1 << 10)) != 0 { + m18 := &Page{} + m18.Decode(dbuf) + m.SetCachedPage(m18) + } + + return dbuf.err } -// inputMessageID#a676a322 id:int = InputMessage; -func (m *TLInputMessageID) To_InputMessage() *InputMessage { - return &InputMessage{ - Constructor: TLConstructor_CRC32_inputMessageID, +// webPageNotModified#85849473 = WebPage; +func (m *TLWebPageNotModified) To_WebPage() *WebPage { + return &WebPage{ + Constructor: TLConstructor_CRC32_webPageNotModified, Data2: m.Data2, } } -func (m *TLInputMessageID) SetId(v int32) { m.Data2.Id = v } -func (m *TLInputMessageID) GetId() int32 { return m.Data2.Id } - -func NewTLInputMessageID() *TLInputMessageID { - return &TLInputMessageID{Data2: &InputMessage_Data{}} +func NewTLWebPageNotModified() *TLWebPageNotModified { + return &TLWebPageNotModified{Data2: &WebPage_Data{}} } -func (m *TLInputMessageID) Encode() []byte { +func (m *TLWebPageNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessageID)) - - x.Int(m.GetId()) + x.Int(int32(TLConstructor_CRC32_webPageNotModified)) return x.buf } -func (m *TLInputMessageID) EncodeToLayer(layer int) []byte { +func (m *TLWebPageNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessageID)) - - x.Int(m.GetId()) + x.Int(int32(TLConstructor_CRC32_webPageNotModified)) return x.buf } -func (m *TLInputMessageID) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) +func (m *TLWebPageNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputMessageReplyTo#bad88395 id:int = InputMessage; -func (m *TLInputMessageReplyTo) To_InputMessage() *InputMessage { - return &InputMessage{ - Constructor: TLConstructor_CRC32_inputMessageReplyTo, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// Auth_CheckedPhone <-- +// + TL_AuthCheckedPhone +// -func (m *TLInputMessageReplyTo) SetId(v int32) { m.Data2.Id = v } -func (m *TLInputMessageReplyTo) GetId() int32 { return m.Data2.Id } +func (m *Auth_CheckedPhone) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_auth_checkedPhone: + t := m.To_AuthCheckedPhone() + return t.Encode() -func NewTLInputMessageReplyTo() *TLInputMessageReplyTo { - return &TLInputMessageReplyTo{Data2: &InputMessage_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputMessageReplyTo) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessageReplyTo)) - - x.Int(m.GetId()) +func (m *Auth_CheckedPhone) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_auth_checkedPhone: + t := m.To_AuthCheckedPhone() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLInputMessageReplyTo) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessageReplyTo)) - - x.Int(m.GetId()) +func (m *Auth_CheckedPhone) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_auth_checkedPhone: + m2 := &TLAuthCheckedPhone{Data2: &Auth_CheckedPhone_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLInputMessageReplyTo) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - - return dbuf.err +// auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone; +func (m *Auth_CheckedPhone) To_AuthCheckedPhone() *TLAuthCheckedPhone { + return &TLAuthCheckedPhone{ + Data2: m.Data2, + } } -// inputMessagePinned#86872538 = InputMessage; -func (m *TLInputMessagePinned) To_InputMessage() *InputMessage { - return &InputMessage{ - Constructor: TLConstructor_CRC32_inputMessagePinned, +// auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone; +func (m *TLAuthCheckedPhone) To_Auth_CheckedPhone() *Auth_CheckedPhone { + return &Auth_CheckedPhone{ + Constructor: TLConstructor_CRC32_auth_checkedPhone, Data2: m.Data2, } } -func NewTLInputMessagePinned() *TLInputMessagePinned { - return &TLInputMessagePinned{Data2: &InputMessage_Data{}} +func (m *TLAuthCheckedPhone) SetPhoneRegistered(v *Bool) { m.Data2.PhoneRegistered = v } +func (m *TLAuthCheckedPhone) GetPhoneRegistered() *Bool { return m.Data2.PhoneRegistered } + +func NewTLAuthCheckedPhone() *TLAuthCheckedPhone { + return &TLAuthCheckedPhone{Data2: &Auth_CheckedPhone_Data{}} } -func (m *TLInputMessagePinned) Encode() []byte { +func (m *TLAuthCheckedPhone) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagePinned)) + x.Int(int32(TLConstructor_CRC32_auth_checkedPhone)) + + x.Bytes(m.GetPhoneRegistered().Encode()) return x.buf } -func (m *TLInputMessagePinned) EncodeToLayer(layer int) []byte { +func (m *TLAuthCheckedPhone) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputMessagePinned)) + x.Int(int32(TLConstructor_CRC32_auth_checkedPhone)) + + x.Bytes(m.GetPhoneRegistered().EncodeToLayer(layer)) return x.buf } -func (m *TLInputMessagePinned) Decode(dbuf *DecodeBuf) error { +func (m *TLAuthCheckedPhone) Decode(dbuf *DecodeBuf) error { + m1 := &Bool{} + m1.Decode(dbuf) + m.SetPhoneRegistered(m1) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputCheckPasswordSRP <-- -// + TL_InputCheckPasswordEmpty -// + TL_InputCheckPasswordSRP +// InputDocument <-- +// + TL_InputDocumentEmpty +// + TL_InputDocument +// + TL_InputDocumentLayer86 // -func (m *InputCheckPasswordSRP) Encode() []byte { +func (m *InputDocument) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputCheckPasswordEmpty: - t := m.To_InputCheckPasswordEmpty() + case TLConstructor_CRC32_inputDocumentEmpty: + t := m.To_InputDocumentEmpty() return t.Encode() - case TLConstructor_CRC32_inputCheckPasswordSRP: - t := m.To_InputCheckPasswordSRP() + case TLConstructor_CRC32_inputDocument: + t := m.To_InputDocument() + return t.Encode() + case TLConstructor_CRC32_inputDocumentLayer86: + t := m.To_InputDocumentLayer86() return t.Encode() default: @@ -55023,14 +56047,17 @@ func (m *InputCheckPasswordSRP) Encode() []byte { } } -func (m *InputCheckPasswordSRP) EncodeToLayer(layer int) []byte { +func (m *InputDocument) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputCheckPasswordEmpty: - t := m.To_InputCheckPasswordEmpty() + case TLConstructor_CRC32_inputDocumentEmpty: + t := m.To_InputDocumentEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputCheckPasswordSRP: - t := m.To_InputCheckPasswordSRP() + case TLConstructor_CRC32_inputDocument: + t := m.To_InputDocument() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputDocumentLayer86: + t := m.To_InputDocumentLayer86() return t.EncodeToLayer(layer) default: @@ -55039,15 +56066,19 @@ func (m *InputCheckPasswordSRP) EncodeToLayer(layer int) []byte { } } -func (m *InputCheckPasswordSRP) Decode(dbuf *DecodeBuf) error { +func (m *InputDocument) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputCheckPasswordEmpty: - m2 := &TLInputCheckPasswordEmpty{Data2: &InputCheckPasswordSRP_Data{}} + case TLConstructor_CRC32_inputDocumentEmpty: + m2 := &TLInputDocumentEmpty{Data2: &InputDocument_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputCheckPasswordSRP: - m2 := &TLInputCheckPasswordSRP{Data2: &InputCheckPasswordSRP_Data{}} + case TLConstructor_CRC32_inputDocument: + m2 := &TLInputDocument{Data2: &InputDocument_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputDocumentLayer86: + m2 := &TLInputDocumentLayer86{Data2: &InputDocument_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -55057,404 +56088,163 @@ func (m *InputCheckPasswordSRP) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP; -func (m *InputCheckPasswordSRP) To_InputCheckPasswordEmpty() *TLInputCheckPasswordEmpty { - return &TLInputCheckPasswordEmpty{ - Data2: m.Data2, - } -} - -// inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP; -func (m *InputCheckPasswordSRP) To_InputCheckPasswordSRP() *TLInputCheckPasswordSRP { - return &TLInputCheckPasswordSRP{ +// inputDocumentEmpty#72f0eaae = InputDocument; +func (m *InputDocument) To_InputDocumentEmpty() *TLInputDocumentEmpty { + return &TLInputDocumentEmpty{ Data2: m.Data2, } } -// inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP; -func (m *TLInputCheckPasswordEmpty) To_InputCheckPasswordSRP() *InputCheckPasswordSRP { - return &InputCheckPasswordSRP{ - Constructor: TLConstructor_CRC32_inputCheckPasswordEmpty, - Data2: m.Data2, - } -} - -func NewTLInputCheckPasswordEmpty() *TLInputCheckPasswordEmpty { - return &TLInputCheckPasswordEmpty{Data2: &InputCheckPasswordSRP_Data{}} -} - -func (m *TLInputCheckPasswordEmpty) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputCheckPasswordEmpty)) - - return x.buf -} - -func (m *TLInputCheckPasswordEmpty) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputCheckPasswordEmpty)) - - return x.buf -} - -func (m *TLInputCheckPasswordEmpty) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP; -func (m *TLInputCheckPasswordSRP) To_InputCheckPasswordSRP() *InputCheckPasswordSRP { - return &InputCheckPasswordSRP{ - Constructor: TLConstructor_CRC32_inputCheckPasswordSRP, - Data2: m.Data2, - } -} - -func (m *TLInputCheckPasswordSRP) SetSrpId(v int64) { m.Data2.SrpId = v } -func (m *TLInputCheckPasswordSRP) GetSrpId() int64 { return m.Data2.SrpId } - -func (m *TLInputCheckPasswordSRP) SetA(v []byte) { m.Data2.A = v } -func (m *TLInputCheckPasswordSRP) GetA() []byte { return m.Data2.A } - -func (m *TLInputCheckPasswordSRP) SetM1(v []byte) { m.Data2.M1 = v } -func (m *TLInputCheckPasswordSRP) GetM1() []byte { return m.Data2.M1 } - -func NewTLInputCheckPasswordSRP() *TLInputCheckPasswordSRP { - return &TLInputCheckPasswordSRP{Data2: &InputCheckPasswordSRP_Data{}} -} - -func (m *TLInputCheckPasswordSRP) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputCheckPasswordSRP)) - - x.Long(m.GetSrpId()) - x.StringBytes(m.GetA()) - x.StringBytes(m.GetM1()) - - return x.buf -} - -func (m *TLInputCheckPasswordSRP) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputCheckPasswordSRP)) - - x.Long(m.GetSrpId()) - x.StringBytes(m.GetA()) - x.StringBytes(m.GetM1()) - - return x.buf -} - -func (m *TLInputCheckPasswordSRP) Decode(dbuf *DecodeBuf) error { - m.SetSrpId(dbuf.Long()) - m.SetA(dbuf.StringBytes()) - m.SetM1(dbuf.StringBytes()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// Scheme <-- -// + TL_SchemeNotModified -// + TL_Scheme -// - -func (m *Scheme) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_schemeNotModified: - t := m.To_SchemeNotModified() - return t.Encode() - case TLConstructor_CRC32_scheme: - t := m.To_Scheme() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Scheme) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_schemeNotModified: - t := m.To_SchemeNotModified() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_scheme: - t := m.To_Scheme() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Scheme) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_schemeNotModified: - m2 := &TLSchemeNotModified{Data2: &Scheme_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_scheme: - m2 := &TLScheme{Data2: &Scheme_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// schemeNotModified#263c9c58 = Scheme; -func (m *Scheme) To_SchemeNotModified() *TLSchemeNotModified { - return &TLSchemeNotModified{ +// inputDocument#18798952 id:long access_hash:long = InputDocument; +func (m *InputDocument) To_InputDocument() *TLInputDocument { + return &TLInputDocument{ Data2: m.Data2, } } -// scheme#4e6ef65e scheme_raw:string types:Vector methods:Vector version:int = Scheme; -func (m *Scheme) To_Scheme() *TLScheme { - return &TLScheme{ +// inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument; +func (m *InputDocument) To_InputDocumentLayer86() *TLInputDocumentLayer86 { + return &TLInputDocumentLayer86{ Data2: m.Data2, } } -// schemeNotModified#263c9c58 = Scheme; -func (m *TLSchemeNotModified) To_Scheme() *Scheme { - return &Scheme{ - Constructor: TLConstructor_CRC32_schemeNotModified, +// inputDocumentEmpty#72f0eaae = InputDocument; +func (m *TLInputDocumentEmpty) To_InputDocument() *InputDocument { + return &InputDocument{ + Constructor: TLConstructor_CRC32_inputDocumentEmpty, Data2: m.Data2, } } -func NewTLSchemeNotModified() *TLSchemeNotModified { - return &TLSchemeNotModified{Data2: &Scheme_Data{}} +func NewTLInputDocumentEmpty() *TLInputDocumentEmpty { + return &TLInputDocumentEmpty{Data2: &InputDocument_Data{}} } -func (m *TLSchemeNotModified) Encode() []byte { +func (m *TLInputDocumentEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_schemeNotModified)) + x.Int(int32(TLConstructor_CRC32_inputDocumentEmpty)) return x.buf } -func (m *TLSchemeNotModified) EncodeToLayer(layer int) []byte { +func (m *TLInputDocumentEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_schemeNotModified)) + x.Int(int32(TLConstructor_CRC32_inputDocumentEmpty)) return x.buf } -func (m *TLSchemeNotModified) Decode(dbuf *DecodeBuf) error { +func (m *TLInputDocumentEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// scheme#4e6ef65e scheme_raw:string types:Vector methods:Vector version:int = Scheme; -func (m *TLScheme) To_Scheme() *Scheme { - return &Scheme{ - Constructor: TLConstructor_CRC32_scheme, +// inputDocument#18798952 id:long access_hash:long = InputDocument; +func (m *TLInputDocument) To_InputDocument() *InputDocument { + return &InputDocument{ + Constructor: TLConstructor_CRC32_inputDocument, Data2: m.Data2, } } -func (m *TLScheme) SetSchemeRaw(v string) { m.Data2.SchemeRaw = v } -func (m *TLScheme) GetSchemeRaw() string { return m.Data2.SchemeRaw } - -func (m *TLScheme) SetTypes(v []*SchemeType) { m.Data2.Types = v } -func (m *TLScheme) GetTypes() []*SchemeType { return m.Data2.Types } - -func (m *TLScheme) SetMethods(v []*SchemeMethod) { m.Data2.Methods = v } -func (m *TLScheme) GetMethods() []*SchemeMethod { return m.Data2.Methods } +func (m *TLInputDocument) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputDocument) GetId() int64 { return m.Data2.Id } -func (m *TLScheme) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLScheme) GetVersion() int32 { return m.Data2.Version } +func (m *TLInputDocument) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputDocument) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLScheme() *TLScheme { - return &TLScheme{Data2: &Scheme_Data{}} +func NewTLInputDocument() *TLInputDocument { + return &TLInputDocument{Data2: &InputDocument_Data{}} } -func (m *TLScheme) Encode() []byte { +func (m *TLInputDocument) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_scheme)) + x.Int(int32(TLConstructor_CRC32_inputDocument)) - x.String(m.GetSchemeRaw()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTypes()))) - for _, v := range m.GetTypes() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMethods()))) - for _, v := range m.GetMethods() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(m.GetVersion()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLScheme) EncodeToLayer(layer int) []byte { +func (m *TLInputDocument) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_scheme)) + x.Int(int32(TLConstructor_CRC32_inputDocument)) - x.String(m.GetSchemeRaw()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTypes()))) - for _, v := range m.GetTypes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMethods()))) - for _, v := range m.GetMethods() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(m.GetVersion()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLScheme) Decode(dbuf *DecodeBuf) error { - m.SetSchemeRaw(dbuf.String()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*SchemeType, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &SchemeType{} - v2[i].Decode(dbuf) - } - m.SetTypes(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*SchemeMethod, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &SchemeMethod{} - v3[i].Decode(dbuf) - } - m.SetMethods(v3) - - m.SetVersion(dbuf.Int()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// Messages_AffectedMessages <-- -// + TL_MessagesAffectedMessages -// - -func (m *Messages_AffectedMessages) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_affectedMessages: - t := m.To_MessagesAffectedMessages() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Messages_AffectedMessages) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_affectedMessages: - t := m.To_MessagesAffectedMessages() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Messages_AffectedMessages) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_affectedMessages: - m2 := &TLMessagesAffectedMessages{Data2: &Messages_AffectedMessages_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLInputDocument) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages; -func (m *Messages_AffectedMessages) To_MessagesAffectedMessages() *TLMessagesAffectedMessages { - return &TLMessagesAffectedMessages{ - Data2: m.Data2, - } -} - -// messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages; -func (m *TLMessagesAffectedMessages) To_Messages_AffectedMessages() *Messages_AffectedMessages { - return &Messages_AffectedMessages{ - Constructor: TLConstructor_CRC32_messages_affectedMessages, +// inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument; +func (m *TLInputDocumentLayer86) To_InputDocument() *InputDocument { + return &InputDocument{ + Constructor: TLConstructor_CRC32_inputDocumentLayer86, Data2: m.Data2, } } -func (m *TLMessagesAffectedMessages) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLMessagesAffectedMessages) GetPts() int32 { return m.Data2.Pts } +func (m *TLInputDocumentLayer86) SetId(v int64) { m.Data2.Id = v } +func (m *TLInputDocumentLayer86) GetId() int64 { return m.Data2.Id } -func (m *TLMessagesAffectedMessages) SetPtsCount(v int32) { m.Data2.PtsCount = v } -func (m *TLMessagesAffectedMessages) GetPtsCount() int32 { return m.Data2.PtsCount } +func (m *TLInputDocumentLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputDocumentLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } -func NewTLMessagesAffectedMessages() *TLMessagesAffectedMessages { - return &TLMessagesAffectedMessages{Data2: &Messages_AffectedMessages_Data{}} +func (m *TLInputDocumentLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } +func (m *TLInputDocumentLayer86) GetFileReference() []byte { return m.Data2.FileReference } + +func NewTLInputDocumentLayer86() *TLInputDocumentLayer86 { + return &TLInputDocumentLayer86{Data2: &InputDocument_Data{}} } -func (m *TLMessagesAffectedMessages) Encode() []byte { +func (m *TLInputDocumentLayer86) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_affectedMessages)) + x.Int(int32(TLConstructor_CRC32_inputDocumentLayer86)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) return x.buf } -func (m *TLMessagesAffectedMessages) EncodeToLayer(layer int) []byte { +func (m *TLInputDocumentLayer86) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_affectedMessages)) + x.Int(int32(TLConstructor_CRC32_inputDocumentLayer86)) - x.Int(m.GetPts()) - x.Int(m.GetPtsCount()) + x.Long(m.GetId()) + x.Long(m.GetAccessHash()) + x.StringBytes(m.GetFileReference()) return x.buf } -func (m *TLMessagesAffectedMessages) Decode(dbuf *DecodeBuf) error { - m.SetPts(dbuf.Int()) - m.SetPtsCount(dbuf.Int()) +func (m *TLInputDocumentLayer86) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Long()) + m.SetAccessHash(dbuf.Long()) + m.SetFileReference(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_MessageEditData <-- -// + TL_MessagesMessageEditData +// Messages_FoundGifs <-- +// + TL_MessagesFoundGifs // -func (m *Messages_MessageEditData) Encode() []byte { +func (m *Messages_FoundGifs) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_messageEditData: - t := m.To_MessagesMessageEditData() + case TLConstructor_CRC32_messages_foundGifs: + t := m.To_MessagesFoundGifs() return t.Encode() default: @@ -55463,11 +56253,11 @@ func (m *Messages_MessageEditData) Encode() []byte { } } -func (m *Messages_MessageEditData) EncodeToLayer(layer int) []byte { +func (m *Messages_FoundGifs) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_messageEditData: - t := m.To_MessagesMessageEditData() + case TLConstructor_CRC32_messages_foundGifs: + t := m.To_MessagesFoundGifs() return t.EncodeToLayer(layer) default: @@ -55476,11 +56266,11 @@ func (m *Messages_MessageEditData) EncodeToLayer(layer int) []byte { } } -func (m *Messages_MessageEditData) Decode(dbuf *DecodeBuf) error { +func (m *Messages_FoundGifs) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_messageEditData: - m2 := &TLMessagesMessageEditData{Data2: &Messages_MessageEditData_Data{}} + case TLConstructor_CRC32_messages_foundGifs: + m2 := &TLMessagesFoundGifs{Data2: &Messages_FoundGifs_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -55490,62 +56280,73 @@ func (m *Messages_MessageEditData) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData; -func (m *Messages_MessageEditData) To_MessagesMessageEditData() *TLMessagesMessageEditData { - return &TLMessagesMessageEditData{ +// messages.foundGifs#450a1c0a next_offset:int results:Vector = messages.FoundGifs; +func (m *Messages_FoundGifs) To_MessagesFoundGifs() *TLMessagesFoundGifs { + return &TLMessagesFoundGifs{ Data2: m.Data2, } } -// messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData; -func (m *TLMessagesMessageEditData) To_Messages_MessageEditData() *Messages_MessageEditData { - return &Messages_MessageEditData{ - Constructor: TLConstructor_CRC32_messages_messageEditData, +// messages.foundGifs#450a1c0a next_offset:int results:Vector = messages.FoundGifs; +func (m *TLMessagesFoundGifs) To_Messages_FoundGifs() *Messages_FoundGifs { + return &Messages_FoundGifs{ + Constructor: TLConstructor_CRC32_messages_foundGifs, Data2: m.Data2, } } -func (m *TLMessagesMessageEditData) SetCaption(v bool) { m.Data2.Caption = v } -func (m *TLMessagesMessageEditData) GetCaption() bool { return m.Data2.Caption } +func (m *TLMessagesFoundGifs) SetNextOffset(v int32) { m.Data2.NextOffset = v } +func (m *TLMessagesFoundGifs) GetNextOffset() int32 { return m.Data2.NextOffset } -func NewTLMessagesMessageEditData() *TLMessagesMessageEditData { - return &TLMessagesMessageEditData{Data2: &Messages_MessageEditData_Data{}} +func (m *TLMessagesFoundGifs) SetResults(v []*FoundGif) { m.Data2.Results = v } +func (m *TLMessagesFoundGifs) GetResults() []*FoundGif { return m.Data2.Results } + +func NewTLMessagesFoundGifs() *TLMessagesFoundGifs { + return &TLMessagesFoundGifs{Data2: &Messages_FoundGifs_Data{}} } -func (m *TLMessagesMessageEditData) Encode() []byte { +func (m *TLMessagesFoundGifs) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_messageEditData)) + x.Int(int32(TLConstructor_CRC32_messages_foundGifs)) - // flags - var flags uint32 = 0 - if m.GetCaption() == true { - flags |= 1 << 0 + x.Int(m.GetNextOffset()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetResults()))) + for _, v := range m.GetResults() { + x.buf = append(x.buf, (*v).Encode()...) } - x.UInt(flags) return x.buf } -func (m *TLMessagesMessageEditData) EncodeToLayer(layer int) []byte { +func (m *TLMessagesFoundGifs) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_messageEditData)) + x.Int(int32(TLConstructor_CRC32_messages_foundGifs)) - // flags - var flags uint32 = 0 - if m.GetCaption() == true { - flags |= 1 << 0 + x.Int(m.GetNextOffset()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetResults()))) + for _, v := range m.GetResults() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.UInt(flags) return x.buf } -func (m *TLMessagesMessageEditData) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetCaption(true) +func (m *TLMessagesFoundGifs) Decode(dbuf *DecodeBuf) error { + m.SetNextOffset(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*FoundGif, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &FoundGif{} + v2[i].Decode(dbuf) } + m.SetResults(v2) return dbuf.err } @@ -55700,14 +56501,14 @@ func (m *TLPaymentsPaymentVerficationNeeded) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// WebAuthorization <-- -// + TL_WebAuthorization +// SecureSecretSettings <-- +// + TL_SecureSecretSettings // -func (m *WebAuthorization) Encode() []byte { +func (m *SecureSecretSettings) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_webAuthorization: - t := m.To_WebAuthorization() + case TLConstructor_CRC32_secureSecretSettings: + t := m.To_SecureSecretSettings() return t.Encode() default: @@ -55716,11 +56517,11 @@ func (m *WebAuthorization) Encode() []byte { } } -func (m *WebAuthorization) EncodeToLayer(layer int) []byte { +func (m *SecureSecretSettings) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_webAuthorization: - t := m.To_WebAuthorization() + case TLConstructor_CRC32_secureSecretSettings: + t := m.To_SecureSecretSettings() return t.EncodeToLayer(layer) default: @@ -55729,11 +56530,11 @@ func (m *WebAuthorization) EncodeToLayer(layer int) []byte { } } -func (m *WebAuthorization) Decode(dbuf *DecodeBuf) error { +func (m *SecureSecretSettings) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_webAuthorization: - m2 := &TLWebAuthorization{Data2: &WebAuthorization_Data{}} + case TLConstructor_CRC32_secureSecretSettings: + m2 := &TLSecureSecretSettings{Data2: &SecureSecretSettings_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -55743,117 +56544,75 @@ func (m *WebAuthorization) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization; -func (m *WebAuthorization) To_WebAuthorization() *TLWebAuthorization { - return &TLWebAuthorization{ +// secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings; +func (m *SecureSecretSettings) To_SecureSecretSettings() *TLSecureSecretSettings { + return &TLSecureSecretSettings{ Data2: m.Data2, } } -// webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization; -func (m *TLWebAuthorization) To_WebAuthorization() *WebAuthorization { - return &WebAuthorization{ - Constructor: TLConstructor_CRC32_webAuthorization, +// secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings; +func (m *TLSecureSecretSettings) To_SecureSecretSettings() *SecureSecretSettings { + return &SecureSecretSettings{ + Constructor: TLConstructor_CRC32_secureSecretSettings, Data2: m.Data2, } } -func (m *TLWebAuthorization) SetHash(v int64) { m.Data2.Hash = v } -func (m *TLWebAuthorization) GetHash() int64 { return m.Data2.Hash } +func (m *TLSecureSecretSettings) SetSecureAlgo(v *SecurePasswordKdfAlgo) { m.Data2.SecureAlgo = v } +func (m *TLSecureSecretSettings) GetSecureAlgo() *SecurePasswordKdfAlgo { return m.Data2.SecureAlgo } -func (m *TLWebAuthorization) SetBotId(v int32) { m.Data2.BotId = v } -func (m *TLWebAuthorization) GetBotId() int32 { return m.Data2.BotId } +func (m *TLSecureSecretSettings) SetSecureSecret(v []byte) { m.Data2.SecureSecret = v } +func (m *TLSecureSecretSettings) GetSecureSecret() []byte { return m.Data2.SecureSecret } -func (m *TLWebAuthorization) SetDomain(v string) { m.Data2.Domain = v } -func (m *TLWebAuthorization) GetDomain() string { return m.Data2.Domain } - -func (m *TLWebAuthorization) SetBrowser(v string) { m.Data2.Browser = v } -func (m *TLWebAuthorization) GetBrowser() string { return m.Data2.Browser } - -func (m *TLWebAuthorization) SetPlatform(v string) { m.Data2.Platform = v } -func (m *TLWebAuthorization) GetPlatform() string { return m.Data2.Platform } - -func (m *TLWebAuthorization) SetDateCreated(v int32) { m.Data2.DateCreated = v } -func (m *TLWebAuthorization) GetDateCreated() int32 { return m.Data2.DateCreated } - -func (m *TLWebAuthorization) SetDateActive(v int32) { m.Data2.DateActive = v } -func (m *TLWebAuthorization) GetDateActive() int32 { return m.Data2.DateActive } - -func (m *TLWebAuthorization) SetIp(v string) { m.Data2.Ip = v } -func (m *TLWebAuthorization) GetIp() string { return m.Data2.Ip } - -func (m *TLWebAuthorization) SetRegion(v string) { m.Data2.Region = v } -func (m *TLWebAuthorization) GetRegion() string { return m.Data2.Region } +func (m *TLSecureSecretSettings) SetSecureSecretId(v int64) { m.Data2.SecureSecretId = v } +func (m *TLSecureSecretSettings) GetSecureSecretId() int64 { return m.Data2.SecureSecretId } -func NewTLWebAuthorization() *TLWebAuthorization { - return &TLWebAuthorization{Data2: &WebAuthorization_Data{}} +func NewTLSecureSecretSettings() *TLSecureSecretSettings { + return &TLSecureSecretSettings{Data2: &SecureSecretSettings_Data{}} } -func (m *TLWebAuthorization) Encode() []byte { +func (m *TLSecureSecretSettings) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webAuthorization)) + x.Int(int32(TLConstructor_CRC32_secureSecretSettings)) - x.Long(m.GetHash()) - x.Int(m.GetBotId()) - x.String(m.GetDomain()) - x.String(m.GetBrowser()) - x.String(m.GetPlatform()) - x.Int(m.GetDateCreated()) - x.Int(m.GetDateActive()) - x.String(m.GetIp()) - x.String(m.GetRegion()) + x.Bytes(m.GetSecureAlgo().Encode()) + x.StringBytes(m.GetSecureSecret()) + x.Long(m.GetSecureSecretId()) return x.buf } -func (m *TLWebAuthorization) EncodeToLayer(layer int) []byte { +func (m *TLSecureSecretSettings) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_webAuthorization)) + x.Int(int32(TLConstructor_CRC32_secureSecretSettings)) - x.Long(m.GetHash()) - x.Int(m.GetBotId()) - x.String(m.GetDomain()) - x.String(m.GetBrowser()) - x.String(m.GetPlatform()) - x.Int(m.GetDateCreated()) - x.Int(m.GetDateActive()) - x.String(m.GetIp()) - x.String(m.GetRegion()) + x.Bytes(m.GetSecureAlgo().EncodeToLayer(layer)) + x.StringBytes(m.GetSecureSecret()) + x.Long(m.GetSecureSecretId()) return x.buf } -func (m *TLWebAuthorization) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Long()) - m.SetBotId(dbuf.Int()) - m.SetDomain(dbuf.String()) - m.SetBrowser(dbuf.String()) - m.SetPlatform(dbuf.String()) - m.SetDateCreated(dbuf.Int()) - m.SetDateActive(dbuf.Int()) - m.SetIp(dbuf.String()) - m.SetRegion(dbuf.String()) +func (m *TLSecureSecretSettings) Decode(dbuf *DecodeBuf) error { + m1 := &SecurePasswordKdfAlgo{} + m1.Decode(dbuf) + m.SetSecureAlgo(m1) + m.SetSecureSecret(dbuf.StringBytes()) + m.SetSecureSecretId(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Message <-- -// + TL_MessageEmpty -// + TL_Message -// + TL_MessageService +// Account_SentEmailCode <-- +// + TL_AccountSentEmailCode // -func (m *Message) Encode() []byte { +func (m *Account_SentEmailCode) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messageEmpty: - t := m.To_MessageEmpty() - return t.Encode() - case TLConstructor_CRC32_message: - t := m.To_Message() - return t.Encode() - case TLConstructor_CRC32_messageService: - t := m.To_MessageService() + case TLConstructor_CRC32_account_sentEmailCode: + t := m.To_AccountSentEmailCode() return t.Encode() default: @@ -55862,17 +56621,11 @@ func (m *Message) Encode() []byte { } } -func (m *Message) EncodeToLayer(layer int) []byte { +func (m *Account_SentEmailCode) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messageEmpty: - t := m.To_MessageEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_message: - t := m.To_Message() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageService: - t := m.To_MessageService() + case TLConstructor_CRC32_account_sentEmailCode: + t := m.To_AccountSentEmailCode() return t.EncodeToLayer(layer) default: @@ -55881,19 +56634,11 @@ func (m *Message) EncodeToLayer(layer int) []byte { } } -func (m *Message) Decode(dbuf *DecodeBuf) error { +func (m *Account_SentEmailCode) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messageEmpty: - m2 := &TLMessageEmpty{Data2: &Message_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_message: - m2 := &TLMessage{Data2: &Message_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageService: - m2 := &TLMessageService{Data2: &Message_Data{}} + case TLConstructor_CRC32_account_sentEmailCode: + m2 := &TLAccountSentEmailCode{Data2: &Account_SentEmailCode_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -55903,5607 +56648,5068 @@ func (m *Message) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageEmpty#83e5de54 id:int = Message; -func (m *Message) To_MessageEmpty() *TLMessageEmpty { - return &TLMessageEmpty{ - Data2: m.Data2, - } -} - -// message#44f9b43d flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long = Message; -func (m *Message) To_Message() *TLMessage { - return &TLMessage{ - Data2: m.Data2, - } -} - -// messageService#9e19a1f6 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer reply_to_msg_id:flags.3?int date:int action:MessageAction = Message; -func (m *Message) To_MessageService() *TLMessageService { - return &TLMessageService{ +// account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode; +func (m *Account_SentEmailCode) To_AccountSentEmailCode() *TLAccountSentEmailCode { + return &TLAccountSentEmailCode{ Data2: m.Data2, } } -// messageEmpty#83e5de54 id:int = Message; -func (m *TLMessageEmpty) To_Message() *Message { - return &Message{ - Constructor: TLConstructor_CRC32_messageEmpty, +// account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode; +func (m *TLAccountSentEmailCode) To_Account_SentEmailCode() *Account_SentEmailCode { + return &Account_SentEmailCode{ + Constructor: TLConstructor_CRC32_account_sentEmailCode, Data2: m.Data2, } } -func (m *TLMessageEmpty) SetId(v int32) { m.Data2.Id = v } -func (m *TLMessageEmpty) GetId() int32 { return m.Data2.Id } +func (m *TLAccountSentEmailCode) SetEmailPattern(v string) { m.Data2.EmailPattern = v } +func (m *TLAccountSentEmailCode) GetEmailPattern() string { return m.Data2.EmailPattern } -func NewTLMessageEmpty() *TLMessageEmpty { - return &TLMessageEmpty{Data2: &Message_Data{}} +func (m *TLAccountSentEmailCode) SetLength(v int32) { m.Data2.Length = v } +func (m *TLAccountSentEmailCode) GetLength() int32 { return m.Data2.Length } + +func NewTLAccountSentEmailCode() *TLAccountSentEmailCode { + return &TLAccountSentEmailCode{Data2: &Account_SentEmailCode_Data{}} } -func (m *TLMessageEmpty) Encode() []byte { +func (m *TLAccountSentEmailCode) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEmpty)) + x.Int(int32(TLConstructor_CRC32_account_sentEmailCode)) - x.Int(m.GetId()) + x.String(m.GetEmailPattern()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessageEmpty) EncodeToLayer(layer int) []byte { +func (m *TLAccountSentEmailCode) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageEmpty)) + x.Int(int32(TLConstructor_CRC32_account_sentEmailCode)) - x.Int(m.GetId()) + x.String(m.GetEmailPattern()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessageEmpty) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) +func (m *TLAccountSentEmailCode) Decode(dbuf *DecodeBuf) error { + m.SetEmailPattern(dbuf.String()) + m.SetLength(dbuf.Int()) return dbuf.err } -// message#44f9b43d flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long = Message; -func (m *TLMessage) To_Message() *Message { - return &Message{ - Constructor: TLConstructor_CRC32_message, - Data2: m.Data2, - } -} - -func (m *TLMessage) SetOut(v bool) { m.Data2.Out = v } -func (m *TLMessage) GetOut() bool { return m.Data2.Out } - -func (m *TLMessage) SetMentioned(v bool) { m.Data2.Mentioned = v } -func (m *TLMessage) GetMentioned() bool { return m.Data2.Mentioned } - -func (m *TLMessage) SetMediaUnread(v bool) { m.Data2.MediaUnread = v } -func (m *TLMessage) GetMediaUnread() bool { return m.Data2.MediaUnread } - -func (m *TLMessage) SetSilent(v bool) { m.Data2.Silent = v } -func (m *TLMessage) GetSilent() bool { return m.Data2.Silent } - -func (m *TLMessage) SetPost(v bool) { m.Data2.Post = v } -func (m *TLMessage) GetPost() bool { return m.Data2.Post } - -func (m *TLMessage) SetId(v int32) { m.Data2.Id = v } -func (m *TLMessage) GetId() int32 { return m.Data2.Id } - -func (m *TLMessage) SetFromId(v int32) { m.Data2.FromId = v } -func (m *TLMessage) GetFromId() int32 { return m.Data2.FromId } - -func (m *TLMessage) SetToId(v *Peer) { m.Data2.ToId = v } -func (m *TLMessage) GetToId() *Peer { return m.Data2.ToId } +/////////////////////////////////////////////////////////////////////////////// +// SchemeType <-- +// + TL_SchemeType +// -func (m *TLMessage) SetFwdFrom(v *MessageFwdHeader) { m.Data2.FwdFrom = v } -func (m *TLMessage) GetFwdFrom() *MessageFwdHeader { return m.Data2.FwdFrom } +func (m *SchemeType) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_schemeType: + t := m.To_SchemeType() + return t.Encode() -func (m *TLMessage) SetViaBotId(v int32) { m.Data2.ViaBotId = v } -func (m *TLMessage) GetViaBotId() int32 { return m.Data2.ViaBotId } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLMessage) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } -func (m *TLMessage) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } +func (m *SchemeType) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_schemeType: + t := m.To_SchemeType() + return t.EncodeToLayer(layer) -func (m *TLMessage) SetDate(v int32) { m.Data2.Date = v } -func (m *TLMessage) GetDate() int32 { return m.Data2.Date } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLMessage) SetMessage(v string) { m.Data2.Message = v } -func (m *TLMessage) GetMessage() string { return m.Data2.Message } +func (m *SchemeType) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_schemeType: + m2 := &TLSchemeType{Data2: &SchemeType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func (m *TLMessage) SetMedia(v *MessageMedia) { m.Data2.Media = v } -func (m *TLMessage) GetMedia() *MessageMedia { return m.Data2.Media } + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} -func (m *TLMessage) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLMessage) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } +// schemeType#a8e1e989 id:int predicate:string params:Vector type:string = SchemeType; +func (m *SchemeType) To_SchemeType() *TLSchemeType { + return &TLSchemeType{ + Data2: m.Data2, + } +} -func (m *TLMessage) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLMessage) GetEntities() []*MessageEntity { return m.Data2.Entities } +// schemeType#a8e1e989 id:int predicate:string params:Vector type:string = SchemeType; +func (m *TLSchemeType) To_SchemeType() *SchemeType { + return &SchemeType{ + Constructor: TLConstructor_CRC32_schemeType, + Data2: m.Data2, + } +} -func (m *TLMessage) SetViews(v int32) { m.Data2.Views = v } -func (m *TLMessage) GetViews() int32 { return m.Data2.Views } +func (m *TLSchemeType) SetId(v int32) { m.Data2.Id = v } +func (m *TLSchemeType) GetId() int32 { return m.Data2.Id } -func (m *TLMessage) SetEditDate(v int32) { m.Data2.EditDate = v } -func (m *TLMessage) GetEditDate() int32 { return m.Data2.EditDate } +func (m *TLSchemeType) SetPredicate(v string) { m.Data2.Predicate = v } +func (m *TLSchemeType) GetPredicate() string { return m.Data2.Predicate } -func (m *TLMessage) SetPostAuthor(v string) { m.Data2.PostAuthor = v } -func (m *TLMessage) GetPostAuthor() string { return m.Data2.PostAuthor } +func (m *TLSchemeType) SetParams(v []*SchemeParam) { m.Data2.Params = v } +func (m *TLSchemeType) GetParams() []*SchemeParam { return m.Data2.Params } -func (m *TLMessage) SetGroupedId(v int64) { m.Data2.GroupedId = v } -func (m *TLMessage) GetGroupedId() int64 { return m.Data2.GroupedId } +func (m *TLSchemeType) SetType(v string) { m.Data2.Type = v } +func (m *TLSchemeType) GetType() string { return m.Data2.Type } -func NewTLMessage() *TLMessage { - return &TLMessage{Data2: &Message_Data{}} +func NewTLSchemeType() *TLSchemeType { + return &TLSchemeType{Data2: &SchemeType_Data{}} } -func (m *TLMessage) Encode() []byte { +func (m *TLSchemeType) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_message)) - - // flags - var flags uint32 = 0 - if m.GetOut() == true { - flags |= 1 << 1 - } - if m.GetMentioned() == true { - flags |= 1 << 4 - } - if m.GetMediaUnread() == true { - flags |= 1 << 5 - } - if m.GetSilent() == true { - flags |= 1 << 13 - } - if m.GetPost() == true { - flags |= 1 << 14 - } - if m.GetFromId() != 0 { - flags |= 1 << 8 - } - if m.GetFwdFrom() != nil { - flags |= 1 << 2 - } - if m.GetViaBotId() != 0 { - flags |= 1 << 11 - } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 3 - } - if m.GetMedia() != nil { - flags |= 1 << 9 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 6 - } - if m.GetEntities() != nil { - flags |= 1 << 7 - } - if m.GetViews() != 0 { - flags |= 1 << 10 - } - if m.GetEditDate() != 0 { - flags |= 1 << 15 - } - if m.GetPostAuthor() != "" { - flags |= 1 << 16 - } - if m.GetGroupedId() != 0 { - flags |= 1 << 17 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_schemeType)) x.Int(m.GetId()) - if m.GetFromId() != 0 { - x.Int(m.GetFromId()) - } - x.Bytes(m.GetToId().Encode()) - if m.GetFwdFrom() != nil { - x.Bytes(m.GetFwdFrom().Encode()) - } - if m.GetViaBotId() != 0 { - x.Int(m.GetViaBotId()) - } - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) - } - x.Int(m.GetDate()) - x.String(m.GetMessage()) - if m.GetMedia() != nil { - x.Bytes(m.GetMedia().Encode()) - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) - } - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } - } - if m.GetViews() != 0 { - x.Int(m.GetViews()) - } - if m.GetEditDate() != 0 { - x.Int(m.GetEditDate()) - } - if m.GetPostAuthor() != "" { - x.String(m.GetPostAuthor()) - } - if m.GetGroupedId() != 0 { - x.Long(m.GetGroupedId()) + x.String(m.GetPredicate()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParams()))) + for _, v := range m.GetParams() { + x.buf = append(x.buf, (*v).Encode()...) } + x.String(m.GetType()) return x.buf } -func (m *TLMessage) EncodeToLayer(layer int) []byte { +func (m *TLSchemeType) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_message)) - - // flags - var flags uint32 = 0 - if m.GetOut() == true { - flags |= 1 << 1 - } - if m.GetMentioned() == true { - flags |= 1 << 4 - } - if m.GetMediaUnread() == true { - flags |= 1 << 5 - } - if m.GetSilent() == true { - flags |= 1 << 13 - } - if m.GetPost() == true { - flags |= 1 << 14 - } - if m.GetFromId() != 0 { - flags |= 1 << 8 - } - if m.GetFwdFrom() != nil { - flags |= 1 << 2 - } - if m.GetViaBotId() != 0 { - flags |= 1 << 11 - } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 3 - } - if m.GetMedia() != nil { - flags |= 1 << 9 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 6 - } - if m.GetEntities() != nil { - flags |= 1 << 7 - } - if m.GetViews() != 0 { - flags |= 1 << 10 - } - if m.GetEditDate() != 0 { - flags |= 1 << 15 - } - if m.GetPostAuthor() != "" { - flags |= 1 << 16 - } - if m.GetGroupedId() != 0 { - flags |= 1 << 17 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_schemeType)) x.Int(m.GetId()) - if m.GetFromId() != 0 { - x.Int(m.GetFromId()) - } - x.Bytes(m.GetToId().EncodeToLayer(layer)) - if m.GetFwdFrom() != nil { - x.Bytes(m.GetFwdFrom().EncodeToLayer(layer)) - } - if m.GetViaBotId() != 0 { - x.Int(m.GetViaBotId()) - } - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) - } - x.Int(m.GetDate()) - x.String(m.GetMessage()) - if m.GetMedia() != nil { - x.Bytes(m.GetMedia().EncodeToLayer(layer)) - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) - } - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } - if m.GetViews() != 0 { - x.Int(m.GetViews()) - } - if m.GetEditDate() != 0 { - x.Int(m.GetEditDate()) - } - if m.GetPostAuthor() != "" { - x.String(m.GetPostAuthor()) - } - if m.GetGroupedId() != 0 { - x.Long(m.GetGroupedId()) + x.String(m.GetPredicate()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetParams()))) + for _, v := range m.GetParams() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } + x.String(m.GetType()) return x.buf } -func (m *TLMessage) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetOut(true) - } - if (flags & (1 << 4)) != 0 { - m.SetMentioned(true) +func (m *TLSchemeType) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetPredicate(dbuf.String()) + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err } - if (flags & (1 << 5)) != 0 { - m.SetMediaUnread(true) - } - if (flags & (1 << 13)) != 0 { - m.SetSilent(true) - } - if (flags & (1 << 14)) != 0 { - m.SetPost(true) - } - m.SetId(dbuf.Int()) - if (flags & (1 << 8)) != 0 { - m.SetFromId(dbuf.Int()) - } - m9 := &Peer{} - m9.Decode(dbuf) - m.SetToId(m9) - if (flags & (1 << 2)) != 0 { - m10 := &MessageFwdHeader{} - m10.Decode(dbuf) - m.SetFwdFrom(m10) - } - if (flags & (1 << 11)) != 0 { - m.SetViaBotId(dbuf.Int()) - } - if (flags & (1 << 3)) != 0 { - m.SetReplyToMsgId(dbuf.Int()) + l3 := dbuf.Int() + v3 := make([]*SchemeParam, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &SchemeParam{} + v3[i].Decode(dbuf) } - m.SetDate(dbuf.Int()) - m.SetMessage(dbuf.String()) - if (flags & (1 << 9)) != 0 { - m15 := &MessageMedia{} - m15.Decode(dbuf) - m.SetMedia(m15) + m.SetParams(v3) + + m.SetType(dbuf.String()) + + return dbuf.err +} + +/////////////////////////////////////////////////////////////////////////////// +// Update <-- +// + TL_UpdateNewMessage +// + TL_UpdateMessageID +// + TL_UpdateDeleteMessages +// + TL_UpdateUserTyping +// + TL_UpdateChatUserTyping +// + TL_UpdateChatParticipants +// + TL_UpdateUserStatus +// + TL_UpdateUserName +// + TL_UpdateUserPhoto +// + TL_UpdateContactRegistered +// + TL_UpdateContactLink +// + TL_UpdateNewEncryptedMessage +// + TL_UpdateEncryptedChatTyping +// + TL_UpdateEncryption +// + TL_UpdateEncryptedMessagesRead +// + TL_UpdateChatParticipantAdd +// + TL_UpdateChatParticipantDelete +// + TL_UpdateDcOptions +// + TL_UpdateUserBlocked +// + TL_UpdateNotifySettings +// + TL_UpdateServiceNotification +// + TL_UpdatePrivacy +// + TL_UpdateUserPhone +// + TL_UpdateReadHistoryInbox +// + TL_UpdateReadHistoryOutbox +// + TL_UpdateWebPage +// + TL_UpdateReadMessagesContents +// + TL_UpdateChannelTooLong +// + TL_UpdateChannel +// + TL_UpdateNewChannelMessage +// + TL_UpdateReadChannelInbox +// + TL_UpdateDeleteChannelMessages +// + TL_UpdateChannelMessageViews +// + TL_UpdateChatAdmins +// + TL_UpdateChatParticipantAdmin +// + TL_UpdateNewStickerSet +// + TL_UpdateStickerSetsOrder +// + TL_UpdateStickerSets +// + TL_UpdateSavedGifs +// + TL_UpdateBotInlineQuery +// + TL_UpdateBotInlineSend +// + TL_UpdateEditChannelMessage +// + TL_UpdateChannelPinnedMessage +// + TL_UpdateBotCallbackQuery +// + TL_UpdateEditMessage +// + TL_UpdateInlineBotCallbackQuery +// + TL_UpdateReadChannelOutbox +// + TL_UpdateDraftMessage +// + TL_UpdateReadFeaturedStickers +// + TL_UpdateRecentStickers +// + TL_UpdateConfig +// + TL_UpdatePtsChanged +// + TL_UpdateChannelWebPage +// + TL_UpdateDialogPinned +// + TL_UpdatePinnedDialogs +// + TL_UpdateBotWebhookJSON +// + TL_UpdateBotWebhookJSONQuery +// + TL_UpdateBotShippingQuery +// + TL_UpdateBotPrecheckoutQuery +// + TL_UpdatePhoneCall +// + TL_UpdateLangPackTooLong +// + TL_UpdateLangPack +// + TL_UpdateFavedStickers +// + TL_UpdateChannelReadMessagesContents +// + TL_UpdateContactsReset +// + TL_UpdateChannelAvailableMessages +// + TL_UpdateDialogUnreadMark +// + +func (m *Update) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_updateNewMessage: + t := m.To_UpdateNewMessage() + return t.Encode() + case TLConstructor_CRC32_updateMessageID: + t := m.To_UpdateMessageID() + return t.Encode() + case TLConstructor_CRC32_updateDeleteMessages: + t := m.To_UpdateDeleteMessages() + return t.Encode() + case TLConstructor_CRC32_updateUserTyping: + t := m.To_UpdateUserTyping() + return t.Encode() + case TLConstructor_CRC32_updateChatUserTyping: + t := m.To_UpdateChatUserTyping() + return t.Encode() + case TLConstructor_CRC32_updateChatParticipants: + t := m.To_UpdateChatParticipants() + return t.Encode() + case TLConstructor_CRC32_updateUserStatus: + t := m.To_UpdateUserStatus() + return t.Encode() + case TLConstructor_CRC32_updateUserName: + t := m.To_UpdateUserName() + return t.Encode() + case TLConstructor_CRC32_updateUserPhoto: + t := m.To_UpdateUserPhoto() + return t.Encode() + case TLConstructor_CRC32_updateContactRegistered: + t := m.To_UpdateContactRegistered() + return t.Encode() + case TLConstructor_CRC32_updateContactLink: + t := m.To_UpdateContactLink() + return t.Encode() + case TLConstructor_CRC32_updateNewEncryptedMessage: + t := m.To_UpdateNewEncryptedMessage() + return t.Encode() + case TLConstructor_CRC32_updateEncryptedChatTyping: + t := m.To_UpdateEncryptedChatTyping() + return t.Encode() + case TLConstructor_CRC32_updateEncryption: + t := m.To_UpdateEncryption() + return t.Encode() + case TLConstructor_CRC32_updateEncryptedMessagesRead: + t := m.To_UpdateEncryptedMessagesRead() + return t.Encode() + case TLConstructor_CRC32_updateChatParticipantAdd: + t := m.To_UpdateChatParticipantAdd() + return t.Encode() + case TLConstructor_CRC32_updateChatParticipantDelete: + t := m.To_UpdateChatParticipantDelete() + return t.Encode() + case TLConstructor_CRC32_updateDcOptions: + t := m.To_UpdateDcOptions() + return t.Encode() + case TLConstructor_CRC32_updateUserBlocked: + t := m.To_UpdateUserBlocked() + return t.Encode() + case TLConstructor_CRC32_updateNotifySettings: + t := m.To_UpdateNotifySettings() + return t.Encode() + case TLConstructor_CRC32_updateServiceNotification: + t := m.To_UpdateServiceNotification() + return t.Encode() + case TLConstructor_CRC32_updatePrivacy: + t := m.To_UpdatePrivacy() + return t.Encode() + case TLConstructor_CRC32_updateUserPhone: + t := m.To_UpdateUserPhone() + return t.Encode() + case TLConstructor_CRC32_updateReadHistoryInbox: + t := m.To_UpdateReadHistoryInbox() + return t.Encode() + case TLConstructor_CRC32_updateReadHistoryOutbox: + t := m.To_UpdateReadHistoryOutbox() + return t.Encode() + case TLConstructor_CRC32_updateWebPage: + t := m.To_UpdateWebPage() + return t.Encode() + case TLConstructor_CRC32_updateReadMessagesContents: + t := m.To_UpdateReadMessagesContents() + return t.Encode() + case TLConstructor_CRC32_updateChannelTooLong: + t := m.To_UpdateChannelTooLong() + return t.Encode() + case TLConstructor_CRC32_updateChannel: + t := m.To_UpdateChannel() + return t.Encode() + case TLConstructor_CRC32_updateNewChannelMessage: + t := m.To_UpdateNewChannelMessage() + return t.Encode() + case TLConstructor_CRC32_updateReadChannelInbox: + t := m.To_UpdateReadChannelInbox() + return t.Encode() + case TLConstructor_CRC32_updateDeleteChannelMessages: + t := m.To_UpdateDeleteChannelMessages() + return t.Encode() + case TLConstructor_CRC32_updateChannelMessageViews: + t := m.To_UpdateChannelMessageViews() + return t.Encode() + case TLConstructor_CRC32_updateChatAdmins: + t := m.To_UpdateChatAdmins() + return t.Encode() + case TLConstructor_CRC32_updateChatParticipantAdmin: + t := m.To_UpdateChatParticipantAdmin() + return t.Encode() + case TLConstructor_CRC32_updateNewStickerSet: + t := m.To_UpdateNewStickerSet() + return t.Encode() + case TLConstructor_CRC32_updateStickerSetsOrder: + t := m.To_UpdateStickerSetsOrder() + return t.Encode() + case TLConstructor_CRC32_updateStickerSets: + t := m.To_UpdateStickerSets() + return t.Encode() + case TLConstructor_CRC32_updateSavedGifs: + t := m.To_UpdateSavedGifs() + return t.Encode() + case TLConstructor_CRC32_updateBotInlineQuery: + t := m.To_UpdateBotInlineQuery() + return t.Encode() + case TLConstructor_CRC32_updateBotInlineSend: + t := m.To_UpdateBotInlineSend() + return t.Encode() + case TLConstructor_CRC32_updateEditChannelMessage: + t := m.To_UpdateEditChannelMessage() + return t.Encode() + case TLConstructor_CRC32_updateChannelPinnedMessage: + t := m.To_UpdateChannelPinnedMessage() + return t.Encode() + case TLConstructor_CRC32_updateBotCallbackQuery: + t := m.To_UpdateBotCallbackQuery() + return t.Encode() + case TLConstructor_CRC32_updateEditMessage: + t := m.To_UpdateEditMessage() + return t.Encode() + case TLConstructor_CRC32_updateInlineBotCallbackQuery: + t := m.To_UpdateInlineBotCallbackQuery() + return t.Encode() + case TLConstructor_CRC32_updateReadChannelOutbox: + t := m.To_UpdateReadChannelOutbox() + return t.Encode() + case TLConstructor_CRC32_updateDraftMessage: + t := m.To_UpdateDraftMessage() + return t.Encode() + case TLConstructor_CRC32_updateReadFeaturedStickers: + t := m.To_UpdateReadFeaturedStickers() + return t.Encode() + case TLConstructor_CRC32_updateRecentStickers: + t := m.To_UpdateRecentStickers() + return t.Encode() + case TLConstructor_CRC32_updateConfig: + t := m.To_UpdateConfig() + return t.Encode() + case TLConstructor_CRC32_updatePtsChanged: + t := m.To_UpdatePtsChanged() + return t.Encode() + case TLConstructor_CRC32_updateChannelWebPage: + t := m.To_UpdateChannelWebPage() + return t.Encode() + case TLConstructor_CRC32_updateDialogPinned: + t := m.To_UpdateDialogPinned() + return t.Encode() + case TLConstructor_CRC32_updatePinnedDialogs: + t := m.To_UpdatePinnedDialogs() + return t.Encode() + case TLConstructor_CRC32_updateBotWebhookJSON: + t := m.To_UpdateBotWebhookJSON() + return t.Encode() + case TLConstructor_CRC32_updateBotWebhookJSONQuery: + t := m.To_UpdateBotWebhookJSONQuery() + return t.Encode() + case TLConstructor_CRC32_updateBotShippingQuery: + t := m.To_UpdateBotShippingQuery() + return t.Encode() + case TLConstructor_CRC32_updateBotPrecheckoutQuery: + t := m.To_UpdateBotPrecheckoutQuery() + return t.Encode() + case TLConstructor_CRC32_updatePhoneCall: + t := m.To_UpdatePhoneCall() + return t.Encode() + case TLConstructor_CRC32_updateLangPackTooLong: + t := m.To_UpdateLangPackTooLong() + return t.Encode() + case TLConstructor_CRC32_updateLangPack: + t := m.To_UpdateLangPack() + return t.Encode() + case TLConstructor_CRC32_updateFavedStickers: + t := m.To_UpdateFavedStickers() + return t.Encode() + case TLConstructor_CRC32_updateChannelReadMessagesContents: + t := m.To_UpdateChannelReadMessagesContents() + return t.Encode() + case TLConstructor_CRC32_updateContactsReset: + t := m.To_UpdateContactsReset() + return t.Encode() + case TLConstructor_CRC32_updateChannelAvailableMessages: + t := m.To_UpdateChannelAvailableMessages() + return t.Encode() + case TLConstructor_CRC32_updateDialogUnreadMark: + t := m.To_UpdateDialogUnreadMark() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - if (flags & (1 << 6)) != 0 { - m16 := &ReplyMarkup{} - m16.Decode(dbuf) - m.SetReplyMarkup(m16) +} + +func (m *Update) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_updateNewMessage: + t := m.To_UpdateNewMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateMessageID: + t := m.To_UpdateMessageID() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateDeleteMessages: + t := m.To_UpdateDeleteMessages() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateUserTyping: + t := m.To_UpdateUserTyping() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChatUserTyping: + t := m.To_UpdateChatUserTyping() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChatParticipants: + t := m.To_UpdateChatParticipants() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateUserStatus: + t := m.To_UpdateUserStatus() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateUserName: + t := m.To_UpdateUserName() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateUserPhoto: + t := m.To_UpdateUserPhoto() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateContactRegistered: + t := m.To_UpdateContactRegistered() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateContactLink: + t := m.To_UpdateContactLink() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateNewEncryptedMessage: + t := m.To_UpdateNewEncryptedMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateEncryptedChatTyping: + t := m.To_UpdateEncryptedChatTyping() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateEncryption: + t := m.To_UpdateEncryption() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateEncryptedMessagesRead: + t := m.To_UpdateEncryptedMessagesRead() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChatParticipantAdd: + t := m.To_UpdateChatParticipantAdd() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChatParticipantDelete: + t := m.To_UpdateChatParticipantDelete() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateDcOptions: + t := m.To_UpdateDcOptions() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateUserBlocked: + t := m.To_UpdateUserBlocked() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateNotifySettings: + t := m.To_UpdateNotifySettings() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateServiceNotification: + t := m.To_UpdateServiceNotification() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updatePrivacy: + t := m.To_UpdatePrivacy() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateUserPhone: + t := m.To_UpdateUserPhone() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateReadHistoryInbox: + t := m.To_UpdateReadHistoryInbox() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateReadHistoryOutbox: + t := m.To_UpdateReadHistoryOutbox() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateWebPage: + t := m.To_UpdateWebPage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateReadMessagesContents: + t := m.To_UpdateReadMessagesContents() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChannelTooLong: + t := m.To_UpdateChannelTooLong() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChannel: + t := m.To_UpdateChannel() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateNewChannelMessage: + t := m.To_UpdateNewChannelMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateReadChannelInbox: + t := m.To_UpdateReadChannelInbox() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateDeleteChannelMessages: + t := m.To_UpdateDeleteChannelMessages() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChannelMessageViews: + t := m.To_UpdateChannelMessageViews() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChatAdmins: + t := m.To_UpdateChatAdmins() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChatParticipantAdmin: + t := m.To_UpdateChatParticipantAdmin() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateNewStickerSet: + t := m.To_UpdateNewStickerSet() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateStickerSetsOrder: + t := m.To_UpdateStickerSetsOrder() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateStickerSets: + t := m.To_UpdateStickerSets() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateSavedGifs: + t := m.To_UpdateSavedGifs() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateBotInlineQuery: + t := m.To_UpdateBotInlineQuery() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateBotInlineSend: + t := m.To_UpdateBotInlineSend() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateEditChannelMessage: + t := m.To_UpdateEditChannelMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChannelPinnedMessage: + t := m.To_UpdateChannelPinnedMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateBotCallbackQuery: + t := m.To_UpdateBotCallbackQuery() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateEditMessage: + t := m.To_UpdateEditMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateInlineBotCallbackQuery: + t := m.To_UpdateInlineBotCallbackQuery() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateReadChannelOutbox: + t := m.To_UpdateReadChannelOutbox() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateDraftMessage: + t := m.To_UpdateDraftMessage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateReadFeaturedStickers: + t := m.To_UpdateReadFeaturedStickers() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateRecentStickers: + t := m.To_UpdateRecentStickers() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateConfig: + t := m.To_UpdateConfig() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updatePtsChanged: + t := m.To_UpdatePtsChanged() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChannelWebPage: + t := m.To_UpdateChannelWebPage() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateDialogPinned: + t := m.To_UpdateDialogPinned() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updatePinnedDialogs: + t := m.To_UpdatePinnedDialogs() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateBotWebhookJSON: + t := m.To_UpdateBotWebhookJSON() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateBotWebhookJSONQuery: + t := m.To_UpdateBotWebhookJSONQuery() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateBotShippingQuery: + t := m.To_UpdateBotShippingQuery() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateBotPrecheckoutQuery: + t := m.To_UpdateBotPrecheckoutQuery() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updatePhoneCall: + t := m.To_UpdatePhoneCall() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateLangPackTooLong: + t := m.To_UpdateLangPackTooLong() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateLangPack: + t := m.To_UpdateLangPack() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateFavedStickers: + t := m.To_UpdateFavedStickers() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChannelReadMessagesContents: + t := m.To_UpdateChannelReadMessagesContents() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateContactsReset: + t := m.To_UpdateContactsReset() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateChannelAvailableMessages: + t := m.To_UpdateChannelAvailableMessages() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_updateDialogUnreadMark: + t := m.To_UpdateDialogUnreadMark() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - if (flags & (1 << 7)) != 0 { - c17 := dbuf.Int() - if c17 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 17, c17) - return dbuf.err - } - l17 := dbuf.Int() - v17 := make([]*MessageEntity, l17) - for i := int32(0); i < l17; i++ { - v17[i] = &MessageEntity{} - v17[i].Decode(dbuf) - } - m.SetEntities(v17) +} + +func (m *Update) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_updateNewMessage: + m2 := &TLUpdateNewMessage{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateMessageID: + m2 := &TLUpdateMessageID{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateDeleteMessages: + m2 := &TLUpdateDeleteMessages{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateUserTyping: + m2 := &TLUpdateUserTyping{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChatUserTyping: + m2 := &TLUpdateChatUserTyping{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChatParticipants: + m2 := &TLUpdateChatParticipants{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateUserStatus: + m2 := &TLUpdateUserStatus{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateUserName: + m2 := &TLUpdateUserName{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateUserPhoto: + m2 := &TLUpdateUserPhoto{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateContactRegistered: + m2 := &TLUpdateContactRegistered{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateContactLink: + m2 := &TLUpdateContactLink{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateNewEncryptedMessage: + m2 := &TLUpdateNewEncryptedMessage{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateEncryptedChatTyping: + m2 := &TLUpdateEncryptedChatTyping{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateEncryption: + m2 := &TLUpdateEncryption{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateEncryptedMessagesRead: + m2 := &TLUpdateEncryptedMessagesRead{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChatParticipantAdd: + m2 := &TLUpdateChatParticipantAdd{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChatParticipantDelete: + m2 := &TLUpdateChatParticipantDelete{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateDcOptions: + m2 := &TLUpdateDcOptions{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateUserBlocked: + m2 := &TLUpdateUserBlocked{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateNotifySettings: + m2 := &TLUpdateNotifySettings{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateServiceNotification: + m2 := &TLUpdateServiceNotification{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updatePrivacy: + m2 := &TLUpdatePrivacy{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateUserPhone: + m2 := &TLUpdateUserPhone{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateReadHistoryInbox: + m2 := &TLUpdateReadHistoryInbox{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateReadHistoryOutbox: + m2 := &TLUpdateReadHistoryOutbox{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateWebPage: + m2 := &TLUpdateWebPage{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateReadMessagesContents: + m2 := &TLUpdateReadMessagesContents{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChannelTooLong: + m2 := &TLUpdateChannelTooLong{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChannel: + m2 := &TLUpdateChannel{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateNewChannelMessage: + m2 := &TLUpdateNewChannelMessage{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateReadChannelInbox: + m2 := &TLUpdateReadChannelInbox{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateDeleteChannelMessages: + m2 := &TLUpdateDeleteChannelMessages{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChannelMessageViews: + m2 := &TLUpdateChannelMessageViews{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChatAdmins: + m2 := &TLUpdateChatAdmins{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChatParticipantAdmin: + m2 := &TLUpdateChatParticipantAdmin{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateNewStickerSet: + m2 := &TLUpdateNewStickerSet{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateStickerSetsOrder: + m2 := &TLUpdateStickerSetsOrder{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateStickerSets: + m2 := &TLUpdateStickerSets{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateSavedGifs: + m2 := &TLUpdateSavedGifs{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateBotInlineQuery: + m2 := &TLUpdateBotInlineQuery{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateBotInlineSend: + m2 := &TLUpdateBotInlineSend{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateEditChannelMessage: + m2 := &TLUpdateEditChannelMessage{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChannelPinnedMessage: + m2 := &TLUpdateChannelPinnedMessage{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateBotCallbackQuery: + m2 := &TLUpdateBotCallbackQuery{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateEditMessage: + m2 := &TLUpdateEditMessage{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateInlineBotCallbackQuery: + m2 := &TLUpdateInlineBotCallbackQuery{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateReadChannelOutbox: + m2 := &TLUpdateReadChannelOutbox{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateDraftMessage: + m2 := &TLUpdateDraftMessage{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateReadFeaturedStickers: + m2 := &TLUpdateReadFeaturedStickers{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateRecentStickers: + m2 := &TLUpdateRecentStickers{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateConfig: + m2 := &TLUpdateConfig{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updatePtsChanged: + m2 := &TLUpdatePtsChanged{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChannelWebPage: + m2 := &TLUpdateChannelWebPage{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateDialogPinned: + m2 := &TLUpdateDialogPinned{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updatePinnedDialogs: + m2 := &TLUpdatePinnedDialogs{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateBotWebhookJSON: + m2 := &TLUpdateBotWebhookJSON{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateBotWebhookJSONQuery: + m2 := &TLUpdateBotWebhookJSONQuery{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateBotShippingQuery: + m2 := &TLUpdateBotShippingQuery{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateBotPrecheckoutQuery: + m2 := &TLUpdateBotPrecheckoutQuery{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updatePhoneCall: + m2 := &TLUpdatePhoneCall{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateLangPackTooLong: + m2 := &TLUpdateLangPackTooLong{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateLangPack: + m2 := &TLUpdateLangPack{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateFavedStickers: + m2 := &TLUpdateFavedStickers{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChannelReadMessagesContents: + m2 := &TLUpdateChannelReadMessagesContents{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateContactsReset: + m2 := &TLUpdateContactsReset{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateChannelAvailableMessages: + m2 := &TLUpdateChannelAvailableMessages{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_updateDialogUnreadMark: + m2 := &TLUpdateDialogUnreadMark{Data2: &Update_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - if (flags & (1 << 10)) != 0 { - m.SetViews(dbuf.Int()) - } - if (flags & (1 << 15)) != 0 { - m.SetEditDate(dbuf.Int()) - } - if (flags & (1 << 16)) != 0 { - m.SetPostAuthor(dbuf.String()) - } - if (flags & (1 << 17)) != 0 { - m.SetGroupedId(dbuf.Long()) - } - return dbuf.err } -// messageService#9e19a1f6 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer reply_to_msg_id:flags.3?int date:int action:MessageAction = Message; -func (m *TLMessageService) To_Message() *Message { - return &Message{ - Constructor: TLConstructor_CRC32_messageService, - Data2: m.Data2, +// updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update; +func (m *Update) To_UpdateNewMessage() *TLUpdateNewMessage { + return &TLUpdateNewMessage{ + Data2: m.Data2, } } -func (m *TLMessageService) SetOut(v bool) { m.Data2.Out = v } -func (m *TLMessageService) GetOut() bool { return m.Data2.Out } - -func (m *TLMessageService) SetMentioned(v bool) { m.Data2.Mentioned = v } -func (m *TLMessageService) GetMentioned() bool { return m.Data2.Mentioned } - -func (m *TLMessageService) SetMediaUnread(v bool) { m.Data2.MediaUnread = v } -func (m *TLMessageService) GetMediaUnread() bool { return m.Data2.MediaUnread } - -func (m *TLMessageService) SetSilent(v bool) { m.Data2.Silent = v } -func (m *TLMessageService) GetSilent() bool { return m.Data2.Silent } - -func (m *TLMessageService) SetPost(v bool) { m.Data2.Post = v } -func (m *TLMessageService) GetPost() bool { return m.Data2.Post } - -func (m *TLMessageService) SetId(v int32) { m.Data2.Id = v } -func (m *TLMessageService) GetId() int32 { return m.Data2.Id } - -func (m *TLMessageService) SetFromId(v int32) { m.Data2.FromId = v } -func (m *TLMessageService) GetFromId() int32 { return m.Data2.FromId } - -func (m *TLMessageService) SetToId(v *Peer) { m.Data2.ToId = v } -func (m *TLMessageService) GetToId() *Peer { return m.Data2.ToId } - -func (m *TLMessageService) SetReplyToMsgId(v int32) { m.Data2.ReplyToMsgId = v } -func (m *TLMessageService) GetReplyToMsgId() int32 { return m.Data2.ReplyToMsgId } - -func (m *TLMessageService) SetDate(v int32) { m.Data2.Date = v } -func (m *TLMessageService) GetDate() int32 { return m.Data2.Date } - -func (m *TLMessageService) SetAction(v *MessageAction) { m.Data2.Action = v } -func (m *TLMessageService) GetAction() *MessageAction { return m.Data2.Action } - -func NewTLMessageService() *TLMessageService { - return &TLMessageService{Data2: &Message_Data{}} +// updateMessageID#4e90bfd6 id:int random_id:long = Update; +func (m *Update) To_UpdateMessageID() *TLUpdateMessageID { + return &TLUpdateMessageID{ + Data2: m.Data2, + } } -func (m *TLMessageService) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageService)) - - // flags - var flags uint32 = 0 - if m.GetOut() == true { - flags |= 1 << 1 - } - if m.GetMentioned() == true { - flags |= 1 << 4 - } - if m.GetMediaUnread() == true { - flags |= 1 << 5 - } - if m.GetSilent() == true { - flags |= 1 << 13 - } - if m.GetPost() == true { - flags |= 1 << 14 - } - if m.GetFromId() != 0 { - flags |= 1 << 8 - } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 3 +// updateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update; +func (m *Update) To_UpdateDeleteMessages() *TLUpdateDeleteMessages { + return &TLUpdateDeleteMessages{ + Data2: m.Data2, } - x.UInt(flags) +} - x.Int(m.GetId()) - if m.GetFromId() != 0 { - x.Int(m.GetFromId()) - } - x.Bytes(m.GetToId().Encode()) - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) +// updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update; +func (m *Update) To_UpdateUserTyping() *TLUpdateUserTyping { + return &TLUpdateUserTyping{ + Data2: m.Data2, } - x.Int(m.GetDate()) - x.Bytes(m.GetAction().Encode()) - - return x.buf } -func (m *TLMessageService) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageService)) - - // flags - var flags uint32 = 0 - if m.GetOut() == true { - flags |= 1 << 1 - } - if m.GetMentioned() == true { - flags |= 1 << 4 - } - if m.GetMediaUnread() == true { - flags |= 1 << 5 - } - if m.GetSilent() == true { - flags |= 1 << 13 - } - if m.GetPost() == true { - flags |= 1 << 14 - } - if m.GetFromId() != 0 { - flags |= 1 << 8 - } - if m.GetReplyToMsgId() != 0 { - flags |= 1 << 3 +// updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update; +func (m *Update) To_UpdateChatUserTyping() *TLUpdateChatUserTyping { + return &TLUpdateChatUserTyping{ + Data2: m.Data2, } - x.UInt(flags) +} - x.Int(m.GetId()) - if m.GetFromId() != 0 { - x.Int(m.GetFromId()) +// updateChatParticipants#7761198 participants:ChatParticipants = Update; +func (m *Update) To_UpdateChatParticipants() *TLUpdateChatParticipants { + return &TLUpdateChatParticipants{ + Data2: m.Data2, } - x.Bytes(m.GetToId().EncodeToLayer(layer)) - if m.GetReplyToMsgId() != 0 { - x.Int(m.GetReplyToMsgId()) +} + +// updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update; +func (m *Update) To_UpdateUserStatus() *TLUpdateUserStatus { + return &TLUpdateUserStatus{ + Data2: m.Data2, } - x.Int(m.GetDate()) - x.Bytes(m.GetAction().EncodeToLayer(layer)) +} - return x.buf +// updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update; +func (m *Update) To_UpdateUserName() *TLUpdateUserName { + return &TLUpdateUserName{ + Data2: m.Data2, + } } -func (m *TLMessageService) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetOut(true) +// updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update; +func (m *Update) To_UpdateUserPhoto() *TLUpdateUserPhoto { + return &TLUpdateUserPhoto{ + Data2: m.Data2, } - if (flags & (1 << 4)) != 0 { - m.SetMentioned(true) +} + +// updateContactRegistered#2575bbb9 user_id:int date:int = Update; +func (m *Update) To_UpdateContactRegistered() *TLUpdateContactRegistered { + return &TLUpdateContactRegistered{ + Data2: m.Data2, } - if (flags & (1 << 5)) != 0 { - m.SetMediaUnread(true) +} + +// updateContactLink#9d2e67c5 user_id:int my_link:ContactLink foreign_link:ContactLink = Update; +func (m *Update) To_UpdateContactLink() *TLUpdateContactLink { + return &TLUpdateContactLink{ + Data2: m.Data2, } - if (flags & (1 << 13)) != 0 { - m.SetSilent(true) +} + +// updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update; +func (m *Update) To_UpdateNewEncryptedMessage() *TLUpdateNewEncryptedMessage { + return &TLUpdateNewEncryptedMessage{ + Data2: m.Data2, } - if (flags & (1 << 14)) != 0 { - m.SetPost(true) +} + +// updateEncryptedChatTyping#1710f156 chat_id:int = Update; +func (m *Update) To_UpdateEncryptedChatTyping() *TLUpdateEncryptedChatTyping { + return &TLUpdateEncryptedChatTyping{ + Data2: m.Data2, } - m.SetId(dbuf.Int()) - if (flags & (1 << 8)) != 0 { - m.SetFromId(dbuf.Int()) +} + +// updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update; +func (m *Update) To_UpdateEncryption() *TLUpdateEncryption { + return &TLUpdateEncryption{ + Data2: m.Data2, } - m9 := &Peer{} - m9.Decode(dbuf) - m.SetToId(m9) - if (flags & (1 << 3)) != 0 { - m.SetReplyToMsgId(dbuf.Int()) +} + +// updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update; +func (m *Update) To_UpdateEncryptedMessagesRead() *TLUpdateEncryptedMessagesRead { + return &TLUpdateEncryptedMessagesRead{ + Data2: m.Data2, } - m.SetDate(dbuf.Int()) - m12 := &MessageAction{} - m12.Decode(dbuf) - m.SetAction(m12) +} - return dbuf.err +// updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update; +func (m *Update) To_UpdateChatParticipantAdd() *TLUpdateChatParticipantAdd { + return &TLUpdateChatParticipantAdd{ + Data2: m.Data2, + } } -/////////////////////////////////////////////////////////////////////////////// -// Channels_ChannelParticipants <-- -// + TL_ChannelsChannelParticipants -// + TL_ChannelsChannelParticipantsNotModified -// +// updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update; +func (m *Update) To_UpdateChatParticipantDelete() *TLUpdateChatParticipantDelete { + return &TLUpdateChatParticipantDelete{ + Data2: m.Data2, + } +} -func (m *Channels_ChannelParticipants) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_channels_channelParticipants: - t := m.To_ChannelsChannelParticipants() - return t.Encode() - case TLConstructor_CRC32_channels_channelParticipantsNotModified: - t := m.To_ChannelsChannelParticipantsNotModified() - return t.Encode() +// updateDcOptions#8e5e9873 dc_options:Vector = Update; +func (m *Update) To_UpdateDcOptions() *TLUpdateDcOptions { + return &TLUpdateDcOptions{ + Data2: m.Data2, + } +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; +func (m *Update) To_UpdateUserBlocked() *TLUpdateUserBlocked { + return &TLUpdateUserBlocked{ + Data2: m.Data2, } } -func (m *Channels_ChannelParticipants) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_channels_channelParticipants: - t := m.To_ChannelsChannelParticipants() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_channels_channelParticipantsNotModified: - t := m.To_ChannelsChannelParticipantsNotModified() - return t.EncodeToLayer(layer) +// updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; +func (m *Update) To_UpdateNotifySettings() *TLUpdateNotifySettings { + return &TLUpdateNotifySettings{ + Data2: m.Data2, + } +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update; +func (m *Update) To_UpdateServiceNotification() *TLUpdateServiceNotification { + return &TLUpdateServiceNotification{ + Data2: m.Data2, } } -func (m *Channels_ChannelParticipants) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_channels_channelParticipants: - m2 := &TLChannelsChannelParticipants{Data2: &Channels_ChannelParticipants_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_channels_channelParticipantsNotModified: - m2 := &TLChannelsChannelParticipantsNotModified{Data2: &Channels_ChannelParticipants_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +// updatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update; +func (m *Update) To_UpdatePrivacy() *TLUpdatePrivacy { + return &TLUpdatePrivacy{ + Data2: m.Data2, + } +} - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) +// updateUserPhone#12b9417b user_id:int phone:string = Update; +func (m *Update) To_UpdateUserPhone() *TLUpdateUserPhone { + return &TLUpdateUserPhone{ + Data2: m.Data2, } - return dbuf.err } -// channels.channelParticipants#f56ee2a8 count:int participants:Vector users:Vector = channels.ChannelParticipants; -func (m *Channels_ChannelParticipants) To_ChannelsChannelParticipants() *TLChannelsChannelParticipants { - return &TLChannelsChannelParticipants{ +// updateReadHistoryInbox#9961fd5c peer:Peer max_id:int pts:int pts_count:int = Update; +func (m *Update) To_UpdateReadHistoryInbox() *TLUpdateReadHistoryInbox { + return &TLUpdateReadHistoryInbox{ Data2: m.Data2, } } -// channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants; -func (m *Channels_ChannelParticipants) To_ChannelsChannelParticipantsNotModified() *TLChannelsChannelParticipantsNotModified { - return &TLChannelsChannelParticipantsNotModified{ +// updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update; +func (m *Update) To_UpdateReadHistoryOutbox() *TLUpdateReadHistoryOutbox { + return &TLUpdateReadHistoryOutbox{ Data2: m.Data2, } } -// channels.channelParticipants#f56ee2a8 count:int participants:Vector users:Vector = channels.ChannelParticipants; -func (m *TLChannelsChannelParticipants) To_Channels_ChannelParticipants() *Channels_ChannelParticipants { - return &Channels_ChannelParticipants{ - Constructor: TLConstructor_CRC32_channels_channelParticipants, - Data2: m.Data2, +// updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update; +func (m *Update) To_UpdateWebPage() *TLUpdateWebPage { + return &TLUpdateWebPage{ + Data2: m.Data2, } } -func (m *TLChannelsChannelParticipants) SetCount(v int32) { m.Data2.Count = v } -func (m *TLChannelsChannelParticipants) GetCount() int32 { return m.Data2.Count } +// updateReadMessagesContents#68c13933 messages:Vector pts:int pts_count:int = Update; +func (m *Update) To_UpdateReadMessagesContents() *TLUpdateReadMessagesContents { + return &TLUpdateReadMessagesContents{ + Data2: m.Data2, + } +} -func (m *TLChannelsChannelParticipants) SetParticipants(v []*ChannelParticipant) { - m.Data2.Participants = v +// updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update; +func (m *Update) To_UpdateChannelTooLong() *TLUpdateChannelTooLong { + return &TLUpdateChannelTooLong{ + Data2: m.Data2, + } } -func (m *TLChannelsChannelParticipants) GetParticipants() []*ChannelParticipant { - return m.Data2.Participants + +// updateChannel#b6d45656 channel_id:int = Update; +func (m *Update) To_UpdateChannel() *TLUpdateChannel { + return &TLUpdateChannel{ + Data2: m.Data2, + } } -func (m *TLChannelsChannelParticipants) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLChannelsChannelParticipants) GetUsers() []*User { return m.Data2.Users } +// updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update; +func (m *Update) To_UpdateNewChannelMessage() *TLUpdateNewChannelMessage { + return &TLUpdateNewChannelMessage{ + Data2: m.Data2, + } +} -func NewTLChannelsChannelParticipants() *TLChannelsChannelParticipants { - return &TLChannelsChannelParticipants{Data2: &Channels_ChannelParticipants_Data{}} +// updateReadChannelInbox#4214f37f channel_id:int max_id:int = Update; +func (m *Update) To_UpdateReadChannelInbox() *TLUpdateReadChannelInbox { + return &TLUpdateReadChannelInbox{ + Data2: m.Data2, + } } -func (m *TLChannelsChannelParticipants) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channels_channelParticipants)) +// updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector pts:int pts_count:int = Update; +func (m *Update) To_UpdateDeleteChannelMessages() *TLUpdateDeleteChannelMessages { + return &TLUpdateDeleteChannelMessages{ + Data2: m.Data2, + } +} - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParticipants()))) - for _, v := range m.GetParticipants() { - x.buf = append(x.buf, (*v).Encode()...) +// updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update; +func (m *Update) To_UpdateChannelMessageViews() *TLUpdateChannelMessageViews { + return &TLUpdateChannelMessageViews{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) +} + +// updateChatAdmins#6e947941 chat_id:int enabled:Bool version:int = Update; +func (m *Update) To_UpdateChatAdmins() *TLUpdateChatAdmins { + return &TLUpdateChatAdmins{ + Data2: m.Data2, } +} - return x.buf +// updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update; +func (m *Update) To_UpdateChatParticipantAdmin() *TLUpdateChatParticipantAdmin { + return &TLUpdateChatParticipantAdmin{ + Data2: m.Data2, + } } -func (m *TLChannelsChannelParticipants) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channels_channelParticipants)) +// updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; +func (m *Update) To_UpdateNewStickerSet() *TLUpdateNewStickerSet { + return &TLUpdateNewStickerSet{ + Data2: m.Data2, + } +} - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParticipants()))) - for _, v := range m.GetParticipants() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) +// updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector = Update; +func (m *Update) To_UpdateStickerSetsOrder() *TLUpdateStickerSetsOrder { + return &TLUpdateStickerSetsOrder{ + Data2: m.Data2, } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) +} + +// updateStickerSets#43ae3dec = Update; +func (m *Update) To_UpdateStickerSets() *TLUpdateStickerSets { + return &TLUpdateStickerSets{ + Data2: m.Data2, } +} - return x.buf +// updateSavedGifs#9375341e = Update; +func (m *Update) To_UpdateSavedGifs() *TLUpdateSavedGifs { + return &TLUpdateSavedGifs{ + Data2: m.Data2, + } } -func (m *TLChannelsChannelParticipants) Decode(dbuf *DecodeBuf) error { - m.SetCount(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err +// updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update; +func (m *Update) To_UpdateBotInlineQuery() *TLUpdateBotInlineQuery { + return &TLUpdateBotInlineQuery{ + Data2: m.Data2, } - l2 := dbuf.Int() - v2 := make([]*ChannelParticipant, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &ChannelParticipant{} - v2[i].Decode(dbuf) +} + +// updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update; +func (m *Update) To_UpdateBotInlineSend() *TLUpdateBotInlineSend { + return &TLUpdateBotInlineSend{ + Data2: m.Data2, } - m.SetParticipants(v2) +} - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err +// updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update; +func (m *Update) To_UpdateEditChannelMessage() *TLUpdateEditChannelMessage { + return &TLUpdateEditChannelMessage{ + Data2: m.Data2, } - l3 := dbuf.Int() - v3 := make([]*User, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &User{} - v3[i].Decode(dbuf) +} + +// updateChannelPinnedMessage#98592475 channel_id:int id:int = Update; +func (m *Update) To_UpdateChannelPinnedMessage() *TLUpdateChannelPinnedMessage { + return &TLUpdateChannelPinnedMessage{ + Data2: m.Data2, } - m.SetUsers(v3) +} - return dbuf.err +// updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; +func (m *Update) To_UpdateBotCallbackQuery() *TLUpdateBotCallbackQuery { + return &TLUpdateBotCallbackQuery{ + Data2: m.Data2, + } } -// channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants; -func (m *TLChannelsChannelParticipantsNotModified) To_Channels_ChannelParticipants() *Channels_ChannelParticipants { - return &Channels_ChannelParticipants{ - Constructor: TLConstructor_CRC32_channels_channelParticipantsNotModified, - Data2: m.Data2, +// updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update; +func (m *Update) To_UpdateEditMessage() *TLUpdateEditMessage { + return &TLUpdateEditMessage{ + Data2: m.Data2, } } -func NewTLChannelsChannelParticipantsNotModified() *TLChannelsChannelParticipantsNotModified { - return &TLChannelsChannelParticipantsNotModified{Data2: &Channels_ChannelParticipants_Data{}} +// updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; +func (m *Update) To_UpdateInlineBotCallbackQuery() *TLUpdateInlineBotCallbackQuery { + return &TLUpdateInlineBotCallbackQuery{ + Data2: m.Data2, + } } -func (m *TLChannelsChannelParticipantsNotModified) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channels_channelParticipantsNotModified)) - - return x.buf +// updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update; +func (m *Update) To_UpdateReadChannelOutbox() *TLUpdateReadChannelOutbox { + return &TLUpdateReadChannelOutbox{ + Data2: m.Data2, + } } -func (m *TLChannelsChannelParticipantsNotModified) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channels_channelParticipantsNotModified)) - - return x.buf +// updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update; +func (m *Update) To_UpdateDraftMessage() *TLUpdateDraftMessage { + return &TLUpdateDraftMessage{ + Data2: m.Data2, + } } -func (m *TLChannelsChannelParticipantsNotModified) Decode(dbuf *DecodeBuf) error { - - return dbuf.err +// updateReadFeaturedStickers#571d2742 = Update; +func (m *Update) To_UpdateReadFeaturedStickers() *TLUpdateReadFeaturedStickers { + return &TLUpdateReadFeaturedStickers{ + Data2: m.Data2, + } } -/////////////////////////////////////////////////////////////////////////////// -// SchemeType <-- -// + TL_SchemeType -// - -func (m *SchemeType) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_schemeType: - t := m.To_SchemeType() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateRecentStickers#9a422c20 = Update; +func (m *Update) To_UpdateRecentStickers() *TLUpdateRecentStickers { + return &TLUpdateRecentStickers{ + Data2: m.Data2, } } -func (m *SchemeType) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_schemeType: - t := m.To_SchemeType() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateConfig#a229dd06 = Update; +func (m *Update) To_UpdateConfig() *TLUpdateConfig { + return &TLUpdateConfig{ + Data2: m.Data2, } } -func (m *SchemeType) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_schemeType: - m2 := &TLSchemeType{Data2: &SchemeType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) +// updatePtsChanged#3354678f = Update; +func (m *Update) To_UpdatePtsChanged() *TLUpdatePtsChanged { + return &TLUpdatePtsChanged{ + Data2: m.Data2, } - return dbuf.err } -// schemeType#a8e1e989 id:int predicate:string params:Vector type:string = SchemeType; -func (m *SchemeType) To_SchemeType() *TLSchemeType { - return &TLSchemeType{ +// updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update; +func (m *Update) To_UpdateChannelWebPage() *TLUpdateChannelWebPage { + return &TLUpdateChannelWebPage{ Data2: m.Data2, } } -// schemeType#a8e1e989 id:int predicate:string params:Vector type:string = SchemeType; -func (m *TLSchemeType) To_SchemeType() *SchemeType { - return &SchemeType{ - Constructor: TLConstructor_CRC32_schemeType, - Data2: m.Data2, +// updateDialogPinned#19d27f3c flags:# pinned:flags.0?true peer:DialogPeer = Update; +func (m *Update) To_UpdateDialogPinned() *TLUpdateDialogPinned { + return &TLUpdateDialogPinned{ + Data2: m.Data2, } } -func (m *TLSchemeType) SetId(v int32) { m.Data2.Id = v } -func (m *TLSchemeType) GetId() int32 { return m.Data2.Id } - -func (m *TLSchemeType) SetPredicate(v string) { m.Data2.Predicate = v } -func (m *TLSchemeType) GetPredicate() string { return m.Data2.Predicate } - -func (m *TLSchemeType) SetParams(v []*SchemeParam) { m.Data2.Params = v } -func (m *TLSchemeType) GetParams() []*SchemeParam { return m.Data2.Params } - -func (m *TLSchemeType) SetType(v string) { m.Data2.Type = v } -func (m *TLSchemeType) GetType() string { return m.Data2.Type } - -func NewTLSchemeType() *TLSchemeType { - return &TLSchemeType{Data2: &SchemeType_Data{}} +// updatePinnedDialogs#ea4cb65b flags:# order:flags.0?Vector = Update; +func (m *Update) To_UpdatePinnedDialogs() *TLUpdatePinnedDialogs { + return &TLUpdatePinnedDialogs{ + Data2: m.Data2, + } } -func (m *TLSchemeType) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_schemeType)) - - x.Int(m.GetId()) - x.String(m.GetPredicate()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParams()))) - for _, v := range m.GetParams() { - x.buf = append(x.buf, (*v).Encode()...) +// updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; +func (m *Update) To_UpdateBotWebhookJSON() *TLUpdateBotWebhookJSON { + return &TLUpdateBotWebhookJSON{ + Data2: m.Data2, } - x.String(m.GetType()) - - return x.buf } -func (m *TLSchemeType) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_schemeType)) - - x.Int(m.GetId()) - x.String(m.GetPredicate()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetParams()))) - for _, v := range m.GetParams() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) +// updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; +func (m *Update) To_UpdateBotWebhookJSONQuery() *TLUpdateBotWebhookJSONQuery { + return &TLUpdateBotWebhookJSONQuery{ + Data2: m.Data2, } - x.String(m.GetType()) - - return x.buf } -func (m *TLSchemeType) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetPredicate(dbuf.String()) - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*SchemeParam, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &SchemeParam{} - v3[i].Decode(dbuf) +// updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; +func (m *Update) To_UpdateBotShippingQuery() *TLUpdateBotShippingQuery { + return &TLUpdateBotShippingQuery{ + Data2: m.Data2, } - m.SetParams(v3) - - m.SetType(dbuf.String()) - - return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// UserStatus <-- -// + TL_UserStatusEmpty -// + TL_UserStatusOnline -// + TL_UserStatusOffline -// + TL_UserStatusRecently -// + TL_UserStatusLastWeek -// + TL_UserStatusLastMonth -// - -func (m *UserStatus) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_userStatusEmpty: - t := m.To_UserStatusEmpty() - return t.Encode() - case TLConstructor_CRC32_userStatusOnline: - t := m.To_UserStatusOnline() - return t.Encode() - case TLConstructor_CRC32_userStatusOffline: - t := m.To_UserStatusOffline() - return t.Encode() - case TLConstructor_CRC32_userStatusRecently: - t := m.To_UserStatusRecently() - return t.Encode() - case TLConstructor_CRC32_userStatusLastWeek: - t := m.To_UserStatusLastWeek() - return t.Encode() - case TLConstructor_CRC32_userStatusLastMonth: - t := m.To_UserStatusLastMonth() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; +func (m *Update) To_UpdateBotPrecheckoutQuery() *TLUpdateBotPrecheckoutQuery { + return &TLUpdateBotPrecheckoutQuery{ + Data2: m.Data2, } } -func (m *UserStatus) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_userStatusEmpty: - t := m.To_UserStatusEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_userStatusOnline: - t := m.To_UserStatusOnline() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_userStatusOffline: - t := m.To_UserStatusOffline() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_userStatusRecently: - t := m.To_UserStatusRecently() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_userStatusLastWeek: - t := m.To_UserStatusLastWeek() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_userStatusLastMonth: - t := m.To_UserStatusLastMonth() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update; +func (m *Update) To_UpdatePhoneCall() *TLUpdatePhoneCall { + return &TLUpdatePhoneCall{ + Data2: m.Data2, } } -func (m *UserStatus) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_userStatusEmpty: - m2 := &TLUserStatusEmpty{Data2: &UserStatus_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_userStatusOnline: - m2 := &TLUserStatusOnline{Data2: &UserStatus_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_userStatusOffline: - m2 := &TLUserStatusOffline{Data2: &UserStatus_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_userStatusRecently: - m2 := &TLUserStatusRecently{Data2: &UserStatus_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_userStatusLastWeek: - m2 := &TLUserStatusLastWeek{Data2: &UserStatus_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_userStatusLastMonth: - m2 := &TLUserStatusLastMonth{Data2: &UserStatus_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) +// updateLangPackTooLong#10c2404b = Update; +func (m *Update) To_UpdateLangPackTooLong() *TLUpdateLangPackTooLong { + return &TLUpdateLangPackTooLong{ + Data2: m.Data2, } - return dbuf.err } -// userStatusEmpty#9d05049 = UserStatus; -func (m *UserStatus) To_UserStatusEmpty() *TLUserStatusEmpty { - return &TLUserStatusEmpty{ +// updateLangPack#56022f4d difference:LangPackDifference = Update; +func (m *Update) To_UpdateLangPack() *TLUpdateLangPack { + return &TLUpdateLangPack{ Data2: m.Data2, } } -// userStatusOnline#edb93949 expires:int = UserStatus; -func (m *UserStatus) To_UserStatusOnline() *TLUserStatusOnline { - return &TLUserStatusOnline{ +// updateFavedStickers#e511996d = Update; +func (m *Update) To_UpdateFavedStickers() *TLUpdateFavedStickers { + return &TLUpdateFavedStickers{ Data2: m.Data2, } } -// userStatusOffline#8c703f was_online:int = UserStatus; -func (m *UserStatus) To_UserStatusOffline() *TLUserStatusOffline { - return &TLUserStatusOffline{ +// updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector = Update; +func (m *Update) To_UpdateChannelReadMessagesContents() *TLUpdateChannelReadMessagesContents { + return &TLUpdateChannelReadMessagesContents{ Data2: m.Data2, } } -// userStatusRecently#e26f42f1 = UserStatus; -func (m *UserStatus) To_UserStatusRecently() *TLUserStatusRecently { - return &TLUserStatusRecently{ +// updateContactsReset#7084a7be = Update; +func (m *Update) To_UpdateContactsReset() *TLUpdateContactsReset { + return &TLUpdateContactsReset{ Data2: m.Data2, } } -// userStatusLastWeek#7bf09fc = UserStatus; -func (m *UserStatus) To_UserStatusLastWeek() *TLUserStatusLastWeek { - return &TLUserStatusLastWeek{ +// updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update; +func (m *Update) To_UpdateChannelAvailableMessages() *TLUpdateChannelAvailableMessages { + return &TLUpdateChannelAvailableMessages{ Data2: m.Data2, } } -// userStatusLastMonth#77ebc742 = UserStatus; -func (m *UserStatus) To_UserStatusLastMonth() *TLUserStatusLastMonth { - return &TLUserStatusLastMonth{ +// updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update; +func (m *Update) To_UpdateDialogUnreadMark() *TLUpdateDialogUnreadMark { + return &TLUpdateDialogUnreadMark{ Data2: m.Data2, } } -// userStatusEmpty#9d05049 = UserStatus; -func (m *TLUserStatusEmpty) To_UserStatus() *UserStatus { - return &UserStatus{ - Constructor: TLConstructor_CRC32_userStatusEmpty, +// updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update; +func (m *TLUpdateNewMessage) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateNewMessage, Data2: m.Data2, } } -func NewTLUserStatusEmpty() *TLUserStatusEmpty { - return &TLUserStatusEmpty{Data2: &UserStatus_Data{}} +func (m *TLUpdateNewMessage) SetMessage(v *Message) { m.Data2.Message_1 = v } +func (m *TLUpdateNewMessage) GetMessage() *Message { return m.Data2.Message_1 } + +func (m *TLUpdateNewMessage) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateNewMessage) GetPts() int32 { return m.Data2.Pts } + +func (m *TLUpdateNewMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateNewMessage) GetPtsCount() int32 { return m.Data2.PtsCount } + +func NewTLUpdateNewMessage() *TLUpdateNewMessage { + return &TLUpdateNewMessage{Data2: &Update_Data{}} } -func (m *TLUserStatusEmpty) Encode() []byte { +func (m *TLUpdateNewMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusEmpty)) + x.Int(int32(TLConstructor_CRC32_updateNewMessage)) + + x.Bytes(m.GetMessage().Encode()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLUserStatusEmpty) EncodeToLayer(layer int) []byte { +func (m *TLUpdateNewMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusEmpty)) + x.Int(int32(TLConstructor_CRC32_updateNewMessage)) + + x.Bytes(m.GetMessage().EncodeToLayer(layer)) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLUserStatusEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateNewMessage) Decode(dbuf *DecodeBuf) error { + m1 := &Message{} + m1.Decode(dbuf) + m.SetMessage(m1) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -// userStatusOnline#edb93949 expires:int = UserStatus; -func (m *TLUserStatusOnline) To_UserStatus() *UserStatus { - return &UserStatus{ - Constructor: TLConstructor_CRC32_userStatusOnline, +// updateMessageID#4e90bfd6 id:int random_id:long = Update; +func (m *TLUpdateMessageID) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateMessageID, Data2: m.Data2, } } -func (m *TLUserStatusOnline) SetExpires(v int32) { m.Data2.Expires = v } -func (m *TLUserStatusOnline) GetExpires() int32 { return m.Data2.Expires } +func (m *TLUpdateMessageID) SetId(v int32) { m.Data2.Id_4 = v } +func (m *TLUpdateMessageID) GetId() int32 { return m.Data2.Id_4 } -func NewTLUserStatusOnline() *TLUserStatusOnline { - return &TLUserStatusOnline{Data2: &UserStatus_Data{}} +func (m *TLUpdateMessageID) SetRandomId(v int64) { m.Data2.RandomId = v } +func (m *TLUpdateMessageID) GetRandomId() int64 { return m.Data2.RandomId } + +func NewTLUpdateMessageID() *TLUpdateMessageID { + return &TLUpdateMessageID{Data2: &Update_Data{}} } -func (m *TLUserStatusOnline) Encode() []byte { +func (m *TLUpdateMessageID) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusOnline)) + x.Int(int32(TLConstructor_CRC32_updateMessageID)) - x.Int(m.GetExpires()) + x.Int(m.GetId()) + x.Long(m.GetRandomId()) return x.buf } -func (m *TLUserStatusOnline) EncodeToLayer(layer int) []byte { +func (m *TLUpdateMessageID) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusOnline)) + x.Int(int32(TLConstructor_CRC32_updateMessageID)) - x.Int(m.GetExpires()) + x.Int(m.GetId()) + x.Long(m.GetRandomId()) return x.buf } -func (m *TLUserStatusOnline) Decode(dbuf *DecodeBuf) error { - m.SetExpires(dbuf.Int()) +func (m *TLUpdateMessageID) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetRandomId(dbuf.Long()) return dbuf.err } -// userStatusOffline#8c703f was_online:int = UserStatus; -func (m *TLUserStatusOffline) To_UserStatus() *UserStatus { - return &UserStatus{ - Constructor: TLConstructor_CRC32_userStatusOffline, +// updateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update; +func (m *TLUpdateDeleteMessages) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateDeleteMessages, Data2: m.Data2, } } -func (m *TLUserStatusOffline) SetWasOnline(v int32) { m.Data2.WasOnline = v } -func (m *TLUserStatusOffline) GetWasOnline() int32 { return m.Data2.WasOnline } +func (m *TLUpdateDeleteMessages) SetMessages(v []int32) { m.Data2.Messages = v } +func (m *TLUpdateDeleteMessages) GetMessages() []int32 { return m.Data2.Messages } -func NewTLUserStatusOffline() *TLUserStatusOffline { - return &TLUserStatusOffline{Data2: &UserStatus_Data{}} +func (m *TLUpdateDeleteMessages) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateDeleteMessages) GetPts() int32 { return m.Data2.Pts } + +func (m *TLUpdateDeleteMessages) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateDeleteMessages) GetPtsCount() int32 { return m.Data2.PtsCount } + +func NewTLUpdateDeleteMessages() *TLUpdateDeleteMessages { + return &TLUpdateDeleteMessages{Data2: &Update_Data{}} } -func (m *TLUserStatusOffline) Encode() []byte { +func (m *TLUpdateDeleteMessages) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusOffline)) + x.Int(int32(TLConstructor_CRC32_updateDeleteMessages)) - x.Int(m.GetWasOnline()) + x.VectorInt(m.GetMessages()) + + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLUserStatusOffline) EncodeToLayer(layer int) []byte { +func (m *TLUpdateDeleteMessages) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusOffline)) + x.Int(int32(TLConstructor_CRC32_updateDeleteMessages)) - x.Int(m.GetWasOnline()) + x.VectorInt(m.GetMessages()) + + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLUserStatusOffline) Decode(dbuf *DecodeBuf) error { - m.SetWasOnline(dbuf.Int()) +func (m *TLUpdateDeleteMessages) Decode(dbuf *DecodeBuf) error { + m.SetMessages(dbuf.VectorInt()) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -// userStatusRecently#e26f42f1 = UserStatus; -func (m *TLUserStatusRecently) To_UserStatus() *UserStatus { - return &UserStatus{ - Constructor: TLConstructor_CRC32_userStatusRecently, +// updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update; +func (m *TLUpdateUserTyping) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateUserTyping, Data2: m.Data2, } } -func NewTLUserStatusRecently() *TLUserStatusRecently { - return &TLUserStatusRecently{Data2: &UserStatus_Data{}} +func (m *TLUpdateUserTyping) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateUserTyping) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLUpdateUserTyping) SetAction(v *SendMessageAction) { m.Data2.Action = v } +func (m *TLUpdateUserTyping) GetAction() *SendMessageAction { return m.Data2.Action } + +func NewTLUpdateUserTyping() *TLUpdateUserTyping { + return &TLUpdateUserTyping{Data2: &Update_Data{}} } -func (m *TLUserStatusRecently) Encode() []byte { +func (m *TLUpdateUserTyping) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusRecently)) + x.Int(int32(TLConstructor_CRC32_updateUserTyping)) + + x.Int(m.GetUserId()) + x.Bytes(m.GetAction().Encode()) return x.buf } -func (m *TLUserStatusRecently) EncodeToLayer(layer int) []byte { +func (m *TLUpdateUserTyping) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusRecently)) + x.Int(int32(TLConstructor_CRC32_updateUserTyping)) + + x.Int(m.GetUserId()) + x.Bytes(m.GetAction().EncodeToLayer(layer)) return x.buf } -func (m *TLUserStatusRecently) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateUserTyping) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m2 := &SendMessageAction{} + m2.Decode(dbuf) + m.SetAction(m2) return dbuf.err } -// userStatusLastWeek#7bf09fc = UserStatus; -func (m *TLUserStatusLastWeek) To_UserStatus() *UserStatus { - return &UserStatus{ - Constructor: TLConstructor_CRC32_userStatusLastWeek, +// updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update; +func (m *TLUpdateChatUserTyping) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChatUserTyping, Data2: m.Data2, } } -func NewTLUserStatusLastWeek() *TLUserStatusLastWeek { - return &TLUserStatusLastWeek{Data2: &UserStatus_Data{}} +func (m *TLUpdateChatUserTyping) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLUpdateChatUserTyping) GetChatId() int32 { return m.Data2.ChatId } + +func (m *TLUpdateChatUserTyping) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateChatUserTyping) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLUpdateChatUserTyping) SetAction(v *SendMessageAction) { m.Data2.Action = v } +func (m *TLUpdateChatUserTyping) GetAction() *SendMessageAction { return m.Data2.Action } + +func NewTLUpdateChatUserTyping() *TLUpdateChatUserTyping { + return &TLUpdateChatUserTyping{Data2: &Update_Data{}} } -func (m *TLUserStatusLastWeek) Encode() []byte { +func (m *TLUpdateChatUserTyping) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusLastWeek)) + x.Int(int32(TLConstructor_CRC32_updateChatUserTyping)) + + x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Bytes(m.GetAction().Encode()) return x.buf } -func (m *TLUserStatusLastWeek) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChatUserTyping) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusLastWeek)) + x.Int(int32(TLConstructor_CRC32_updateChatUserTyping)) + + x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Bytes(m.GetAction().EncodeToLayer(layer)) return x.buf } -func (m *TLUserStatusLastWeek) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateChatUserTyping) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) + m.SetUserId(dbuf.Int()) + m3 := &SendMessageAction{} + m3.Decode(dbuf) + m.SetAction(m3) return dbuf.err } -// userStatusLastMonth#77ebc742 = UserStatus; -func (m *TLUserStatusLastMonth) To_UserStatus() *UserStatus { - return &UserStatus{ - Constructor: TLConstructor_CRC32_userStatusLastMonth, +// updateChatParticipants#7761198 participants:ChatParticipants = Update; +func (m *TLUpdateChatParticipants) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChatParticipants, Data2: m.Data2, } } -func NewTLUserStatusLastMonth() *TLUserStatusLastMonth { - return &TLUserStatusLastMonth{Data2: &UserStatus_Data{}} -} - -func (m *TLUserStatusLastMonth) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusLastMonth)) +func (m *TLUpdateChatParticipants) SetParticipants(v *ChatParticipants) { m.Data2.Participants = v } +func (m *TLUpdateChatParticipants) GetParticipants() *ChatParticipants { return m.Data2.Participants } - return x.buf +func NewTLUpdateChatParticipants() *TLUpdateChatParticipants { + return &TLUpdateChatParticipants{Data2: &Update_Data{}} } -func (m *TLUserStatusLastMonth) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChatParticipants) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_userStatusLastMonth)) - - return x.buf -} + x.Int(int32(TLConstructor_CRC32_updateChatParticipants)) -func (m *TLUserStatusLastMonth) Decode(dbuf *DecodeBuf) error { + x.Bytes(m.GetParticipants().Encode()) - return dbuf.err + return x.buf } -/////////////////////////////////////////////////////////////////////////////// -// ExportedChatInvite <-- -// + TL_ChatInviteEmpty -// + TL_ChatInviteExported -// - -func (m *ExportedChatInvite) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_chatInviteEmpty: - t := m.To_ChatInviteEmpty() - return t.Encode() - case TLConstructor_CRC32_chatInviteExported: - t := m.To_ChatInviteExported() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLUpdateChatParticipants) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateChatParticipants)) -func (m *ExportedChatInvite) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_chatInviteEmpty: - t := m.To_ChatInviteEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_chatInviteExported: - t := m.To_ChatInviteExported() - return t.EncodeToLayer(layer) + x.Bytes(m.GetParticipants().EncodeToLayer(layer)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *ExportedChatInvite) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_chatInviteEmpty: - m2 := &TLChatInviteEmpty{Data2: &ExportedChatInvite_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_chatInviteExported: - m2 := &TLChatInviteExported{Data2: &ExportedChatInvite_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateChatParticipants) Decode(dbuf *DecodeBuf) error { + m1 := &ChatParticipants{} + m1.Decode(dbuf) + m.SetParticipants(m1) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// chatInviteEmpty#69df3769 = ExportedChatInvite; -func (m *ExportedChatInvite) To_ChatInviteEmpty() *TLChatInviteEmpty { - return &TLChatInviteEmpty{ - Data2: m.Data2, +// updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update; +func (m *TLUpdateUserStatus) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateUserStatus, + Data2: m.Data2, } } -// chatInviteExported#fc2e05bc link:string = ExportedChatInvite; -func (m *ExportedChatInvite) To_ChatInviteExported() *TLChatInviteExported { - return &TLChatInviteExported{ - Data2: m.Data2, - } -} +func (m *TLUpdateUserStatus) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateUserStatus) GetUserId() int32 { return m.Data2.UserId } -// chatInviteEmpty#69df3769 = ExportedChatInvite; -func (m *TLChatInviteEmpty) To_ExportedChatInvite() *ExportedChatInvite { - return &ExportedChatInvite{ - Constructor: TLConstructor_CRC32_chatInviteEmpty, - Data2: m.Data2, - } -} +func (m *TLUpdateUserStatus) SetStatus(v *UserStatus) { m.Data2.Status = v } +func (m *TLUpdateUserStatus) GetStatus() *UserStatus { return m.Data2.Status } -func NewTLChatInviteEmpty() *TLChatInviteEmpty { - return &TLChatInviteEmpty{Data2: &ExportedChatInvite_Data{}} +func NewTLUpdateUserStatus() *TLUpdateUserStatus { + return &TLUpdateUserStatus{Data2: &Update_Data{}} } -func (m *TLChatInviteEmpty) Encode() []byte { +func (m *TLUpdateUserStatus) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatInviteEmpty)) + x.Int(int32(TLConstructor_CRC32_updateUserStatus)) + + x.Int(m.GetUserId()) + x.Bytes(m.GetStatus().Encode()) return x.buf } -func (m *TLChatInviteEmpty) EncodeToLayer(layer int) []byte { +func (m *TLUpdateUserStatus) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatInviteEmpty)) + x.Int(int32(TLConstructor_CRC32_updateUserStatus)) + + x.Int(m.GetUserId()) + x.Bytes(m.GetStatus().EncodeToLayer(layer)) return x.buf } -func (m *TLChatInviteEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateUserStatus) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m2 := &UserStatus{} + m2.Decode(dbuf) + m.SetStatus(m2) return dbuf.err } -// chatInviteExported#fc2e05bc link:string = ExportedChatInvite; -func (m *TLChatInviteExported) To_ExportedChatInvite() *ExportedChatInvite { - return &ExportedChatInvite{ - Constructor: TLConstructor_CRC32_chatInviteExported, +// updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update; +func (m *TLUpdateUserName) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateUserName, Data2: m.Data2, } } -func (m *TLChatInviteExported) SetLink(v string) { m.Data2.Link = v } -func (m *TLChatInviteExported) GetLink() string { return m.Data2.Link } +func (m *TLUpdateUserName) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateUserName) GetUserId() int32 { return m.Data2.UserId } -func NewTLChatInviteExported() *TLChatInviteExported { - return &TLChatInviteExported{Data2: &ExportedChatInvite_Data{}} +func (m *TLUpdateUserName) SetFirstName(v string) { m.Data2.FirstName = v } +func (m *TLUpdateUserName) GetFirstName() string { return m.Data2.FirstName } + +func (m *TLUpdateUserName) SetLastName(v string) { m.Data2.LastName = v } +func (m *TLUpdateUserName) GetLastName() string { return m.Data2.LastName } + +func (m *TLUpdateUserName) SetUsername(v string) { m.Data2.Username = v } +func (m *TLUpdateUserName) GetUsername() string { return m.Data2.Username } + +func NewTLUpdateUserName() *TLUpdateUserName { + return &TLUpdateUserName{Data2: &Update_Data{}} } -func (m *TLChatInviteExported) Encode() []byte { +func (m *TLUpdateUserName) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatInviteExported)) + x.Int(int32(TLConstructor_CRC32_updateUserName)) - x.String(m.GetLink()) + x.Int(m.GetUserId()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetUsername()) return x.buf } -func (m *TLChatInviteExported) EncodeToLayer(layer int) []byte { +func (m *TLUpdateUserName) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_chatInviteExported)) + x.Int(int32(TLConstructor_CRC32_updateUserName)) - x.String(m.GetLink()) + x.Int(m.GetUserId()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.String(m.GetUsername()) return x.buf } -func (m *TLChatInviteExported) Decode(dbuf *DecodeBuf) error { - m.SetLink(dbuf.String()) +func (m *TLUpdateUserName) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetFirstName(dbuf.String()) + m.SetLastName(dbuf.String()) + m.SetUsername(dbuf.String()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// InputPaymentCredentials <-- -// + TL_InputPaymentCredentialsSaved -// + TL_InputPaymentCredentials -// + TL_InputPaymentCredentialsApplePay -// + TL_InputPaymentCredentialsAndroidPay -// - -func (m *InputPaymentCredentials) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_inputPaymentCredentialsSaved: - t := m.To_InputPaymentCredentialsSaved() - return t.Encode() - case TLConstructor_CRC32_inputPaymentCredentials: - t := m.To_InputPaymentCredentials() - return t.Encode() - case TLConstructor_CRC32_inputPaymentCredentialsApplePay: - t := m.To_InputPaymentCredentialsApplePay() - return t.Encode() - case TLConstructor_CRC32_inputPaymentCredentialsAndroidPay: - t := m.To_InputPaymentCredentialsAndroidPay() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update; +func (m *TLUpdateUserPhoto) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateUserPhoto, + Data2: m.Data2, } } -func (m *InputPaymentCredentials) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_inputPaymentCredentialsSaved: - t := m.To_InputPaymentCredentialsSaved() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPaymentCredentials: - t := m.To_InputPaymentCredentials() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPaymentCredentialsApplePay: - t := m.To_InputPaymentCredentialsApplePay() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputPaymentCredentialsAndroidPay: - t := m.To_InputPaymentCredentialsAndroidPay() - return t.EncodeToLayer(layer) +func (m *TLUpdateUserPhoto) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateUserPhoto) GetUserId() int32 { return m.Data2.UserId } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLUpdateUserPhoto) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdateUserPhoto) GetDate() int32 { return m.Data2.Date } -func (m *InputPaymentCredentials) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_inputPaymentCredentialsSaved: - m2 := &TLInputPaymentCredentialsSaved{Data2: &InputPaymentCredentials_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPaymentCredentials: - m2 := &TLInputPaymentCredentials{Data2: &InputPaymentCredentials_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPaymentCredentialsApplePay: - m2 := &TLInputPaymentCredentialsApplePay{Data2: &InputPaymentCredentials_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputPaymentCredentialsAndroidPay: - m2 := &TLInputPaymentCredentialsAndroidPay{Data2: &InputPaymentCredentials_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateUserPhoto) SetPhoto(v *UserProfilePhoto) { m.Data2.Photo = v } +func (m *TLUpdateUserPhoto) GetPhoto() *UserProfilePhoto { return m.Data2.Photo } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} +func (m *TLUpdateUserPhoto) SetPrevious(v *Bool) { m.Data2.Previous = v } +func (m *TLUpdateUserPhoto) GetPrevious() *Bool { return m.Data2.Previous } -// inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; -func (m *InputPaymentCredentials) To_InputPaymentCredentialsSaved() *TLInputPaymentCredentialsSaved { - return &TLInputPaymentCredentialsSaved{ - Data2: m.Data2, - } +func NewTLUpdateUserPhoto() *TLUpdateUserPhoto { + return &TLUpdateUserPhoto{Data2: &Update_Data{}} } -// inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; -func (m *InputPaymentCredentials) To_InputPaymentCredentials() *TLInputPaymentCredentials { - return &TLInputPaymentCredentials{ - Data2: m.Data2, - } +func (m *TLUpdateUserPhoto) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateUserPhoto)) + + x.Int(m.GetUserId()) + x.Int(m.GetDate()) + x.Bytes(m.GetPhoto().Encode()) + x.Bytes(m.GetPrevious().Encode()) + + return x.buf } -// inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials; -func (m *InputPaymentCredentials) To_InputPaymentCredentialsApplePay() *TLInputPaymentCredentialsApplePay { - return &TLInputPaymentCredentialsApplePay{ - Data2: m.Data2, - } +func (m *TLUpdateUserPhoto) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateUserPhoto)) + + x.Int(m.GetUserId()) + x.Int(m.GetDate()) + x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Bytes(m.GetPrevious().EncodeToLayer(layer)) + + return x.buf } -// inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials; -func (m *InputPaymentCredentials) To_InputPaymentCredentialsAndroidPay() *TLInputPaymentCredentialsAndroidPay { - return &TLInputPaymentCredentialsAndroidPay{ - Data2: m.Data2, - } +func (m *TLUpdateUserPhoto) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetDate(dbuf.Int()) + m3 := &UserProfilePhoto{} + m3.Decode(dbuf) + m.SetPhoto(m3) + m4 := &Bool{} + m4.Decode(dbuf) + m.SetPrevious(m4) + + return dbuf.err } -// inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; -func (m *TLInputPaymentCredentialsSaved) To_InputPaymentCredentials() *InputPaymentCredentials { - return &InputPaymentCredentials{ - Constructor: TLConstructor_CRC32_inputPaymentCredentialsSaved, +// updateContactRegistered#2575bbb9 user_id:int date:int = Update; +func (m *TLUpdateContactRegistered) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateContactRegistered, Data2: m.Data2, } } -func (m *TLInputPaymentCredentialsSaved) SetId(v string) { m.Data2.Id = v } -func (m *TLInputPaymentCredentialsSaved) GetId() string { return m.Data2.Id } +func (m *TLUpdateContactRegistered) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateContactRegistered) GetUserId() int32 { return m.Data2.UserId } -func (m *TLInputPaymentCredentialsSaved) SetTmpPassword(v []byte) { m.Data2.TmpPassword = v } -func (m *TLInputPaymentCredentialsSaved) GetTmpPassword() []byte { return m.Data2.TmpPassword } +func (m *TLUpdateContactRegistered) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdateContactRegistered) GetDate() int32 { return m.Data2.Date } -func NewTLInputPaymentCredentialsSaved() *TLInputPaymentCredentialsSaved { - return &TLInputPaymentCredentialsSaved{Data2: &InputPaymentCredentials_Data{}} +func NewTLUpdateContactRegistered() *TLUpdateContactRegistered { + return &TLUpdateContactRegistered{Data2: &Update_Data{}} } -func (m *TLInputPaymentCredentialsSaved) Encode() []byte { +func (m *TLUpdateContactRegistered) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsSaved)) + x.Int(int32(TLConstructor_CRC32_updateContactRegistered)) - x.String(m.GetId()) - x.StringBytes(m.GetTmpPassword()) + x.Int(m.GetUserId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLInputPaymentCredentialsSaved) EncodeToLayer(layer int) []byte { +func (m *TLUpdateContactRegistered) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsSaved)) + x.Int(int32(TLConstructor_CRC32_updateContactRegistered)) - x.String(m.GetId()) - x.StringBytes(m.GetTmpPassword()) + x.Int(m.GetUserId()) + x.Int(m.GetDate()) return x.buf } -func (m *TLInputPaymentCredentialsSaved) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.String()) - m.SetTmpPassword(dbuf.StringBytes()) +func (m *TLUpdateContactRegistered) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetDate(dbuf.Int()) return dbuf.err } -// inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; -func (m *TLInputPaymentCredentials) To_InputPaymentCredentials() *InputPaymentCredentials { - return &InputPaymentCredentials{ - Constructor: TLConstructor_CRC32_inputPaymentCredentials, +// updateContactLink#9d2e67c5 user_id:int my_link:ContactLink foreign_link:ContactLink = Update; +func (m *TLUpdateContactLink) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateContactLink, Data2: m.Data2, } } -func (m *TLInputPaymentCredentials) SetSave(v bool) { m.Data2.Save = v } -func (m *TLInputPaymentCredentials) GetSave() bool { return m.Data2.Save } +func (m *TLUpdateContactLink) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateContactLink) GetUserId() int32 { return m.Data2.UserId } -func (m *TLInputPaymentCredentials) SetData(v *DataJSON) { m.Data2.Data = v } -func (m *TLInputPaymentCredentials) GetData() *DataJSON { return m.Data2.Data } +func (m *TLUpdateContactLink) SetMyLink(v *ContactLink) { m.Data2.MyLink = v } +func (m *TLUpdateContactLink) GetMyLink() *ContactLink { return m.Data2.MyLink } -func NewTLInputPaymentCredentials() *TLInputPaymentCredentials { - return &TLInputPaymentCredentials{Data2: &InputPaymentCredentials_Data{}} +func (m *TLUpdateContactLink) SetForeignLink(v *ContactLink) { m.Data2.ForeignLink = v } +func (m *TLUpdateContactLink) GetForeignLink() *ContactLink { return m.Data2.ForeignLink } + +func NewTLUpdateContactLink() *TLUpdateContactLink { + return &TLUpdateContactLink{Data2: &Update_Data{}} } -func (m *TLInputPaymentCredentials) Encode() []byte { +func (m *TLUpdateContactLink) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPaymentCredentials)) - - // flags - var flags uint32 = 0 - if m.GetSave() == true { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_updateContactLink)) - x.Bytes(m.GetData().Encode()) + x.Int(m.GetUserId()) + x.Bytes(m.GetMyLink().Encode()) + x.Bytes(m.GetForeignLink().Encode()) return x.buf } -func (m *TLInputPaymentCredentials) EncodeToLayer(layer int) []byte { +func (m *TLUpdateContactLink) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPaymentCredentials)) - - // flags - var flags uint32 = 0 - if m.GetSave() == true { - flags |= 1 << 0 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_updateContactLink)) - x.Bytes(m.GetData().EncodeToLayer(layer)) + x.Int(m.GetUserId()) + x.Bytes(m.GetMyLink().EncodeToLayer(layer)) + x.Bytes(m.GetForeignLink().EncodeToLayer(layer)) return x.buf } -func (m *TLInputPaymentCredentials) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetSave(true) - } - m3 := &DataJSON{} +func (m *TLUpdateContactLink) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m2 := &ContactLink{} + m2.Decode(dbuf) + m.SetMyLink(m2) + m3 := &ContactLink{} m3.Decode(dbuf) - m.SetData(m3) + m.SetForeignLink(m3) return dbuf.err } -// inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials; -func (m *TLInputPaymentCredentialsApplePay) To_InputPaymentCredentials() *InputPaymentCredentials { - return &InputPaymentCredentials{ - Constructor: TLConstructor_CRC32_inputPaymentCredentialsApplePay, +// updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update; +func (m *TLUpdateNewEncryptedMessage) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateNewEncryptedMessage, Data2: m.Data2, } } -func (m *TLInputPaymentCredentialsApplePay) SetPaymentData(v *DataJSON) { m.Data2.PaymentData = v } -func (m *TLInputPaymentCredentialsApplePay) GetPaymentData() *DataJSON { return m.Data2.PaymentData } +func (m *TLUpdateNewEncryptedMessage) SetMessage(v *EncryptedMessage) { m.Data2.Message_20 = v } +func (m *TLUpdateNewEncryptedMessage) GetMessage() *EncryptedMessage { return m.Data2.Message_20 } -func NewTLInputPaymentCredentialsApplePay() *TLInputPaymentCredentialsApplePay { - return &TLInputPaymentCredentialsApplePay{Data2: &InputPaymentCredentials_Data{}} +func (m *TLUpdateNewEncryptedMessage) SetQts(v int32) { m.Data2.Qts = v } +func (m *TLUpdateNewEncryptedMessage) GetQts() int32 { return m.Data2.Qts } + +func NewTLUpdateNewEncryptedMessage() *TLUpdateNewEncryptedMessage { + return &TLUpdateNewEncryptedMessage{Data2: &Update_Data{}} } -func (m *TLInputPaymentCredentialsApplePay) Encode() []byte { +func (m *TLUpdateNewEncryptedMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsApplePay)) + x.Int(int32(TLConstructor_CRC32_updateNewEncryptedMessage)) - x.Bytes(m.GetPaymentData().Encode()) + x.Bytes(m.GetMessage().Encode()) + x.Int(m.GetQts()) return x.buf } -func (m *TLInputPaymentCredentialsApplePay) EncodeToLayer(layer int) []byte { +func (m *TLUpdateNewEncryptedMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsApplePay)) + x.Int(int32(TLConstructor_CRC32_updateNewEncryptedMessage)) - x.Bytes(m.GetPaymentData().EncodeToLayer(layer)) + x.Bytes(m.GetMessage().EncodeToLayer(layer)) + x.Int(m.GetQts()) return x.buf } -func (m *TLInputPaymentCredentialsApplePay) Decode(dbuf *DecodeBuf) error { - m1 := &DataJSON{} +func (m *TLUpdateNewEncryptedMessage) Decode(dbuf *DecodeBuf) error { + m1 := &EncryptedMessage{} m1.Decode(dbuf) - m.SetPaymentData(m1) + m.SetMessage(m1) + m.SetQts(dbuf.Int()) return dbuf.err } -// inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials; -func (m *TLInputPaymentCredentialsAndroidPay) To_InputPaymentCredentials() *InputPaymentCredentials { - return &InputPaymentCredentials{ - Constructor: TLConstructor_CRC32_inputPaymentCredentialsAndroidPay, +// updateEncryptedChatTyping#1710f156 chat_id:int = Update; +func (m *TLUpdateEncryptedChatTyping) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateEncryptedChatTyping, Data2: m.Data2, } } -func (m *TLInputPaymentCredentialsAndroidPay) SetPaymentToken(v *DataJSON) { m.Data2.PaymentToken = v } -func (m *TLInputPaymentCredentialsAndroidPay) GetPaymentToken() *DataJSON { return m.Data2.PaymentToken } - -func (m *TLInputPaymentCredentialsAndroidPay) SetGoogleTransactionId(v string) { - m.Data2.GoogleTransactionId = v -} -func (m *TLInputPaymentCredentialsAndroidPay) GetGoogleTransactionId() string { - return m.Data2.GoogleTransactionId -} - -func NewTLInputPaymentCredentialsAndroidPay() *TLInputPaymentCredentialsAndroidPay { - return &TLInputPaymentCredentialsAndroidPay{Data2: &InputPaymentCredentials_Data{}} +func (m *TLUpdateEncryptedChatTyping) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLUpdateEncryptedChatTyping) GetChatId() int32 { return m.Data2.ChatId } + +func NewTLUpdateEncryptedChatTyping() *TLUpdateEncryptedChatTyping { + return &TLUpdateEncryptedChatTyping{Data2: &Update_Data{}} } -func (m *TLInputPaymentCredentialsAndroidPay) Encode() []byte { +func (m *TLUpdateEncryptedChatTyping) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsAndroidPay)) + x.Int(int32(TLConstructor_CRC32_updateEncryptedChatTyping)) - x.Bytes(m.GetPaymentToken().Encode()) - x.String(m.GetGoogleTransactionId()) + x.Int(m.GetChatId()) return x.buf } -func (m *TLInputPaymentCredentialsAndroidPay) EncodeToLayer(layer int) []byte { +func (m *TLUpdateEncryptedChatTyping) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputPaymentCredentialsAndroidPay)) + x.Int(int32(TLConstructor_CRC32_updateEncryptedChatTyping)) - x.Bytes(m.GetPaymentToken().EncodeToLayer(layer)) - x.String(m.GetGoogleTransactionId()) + x.Int(m.GetChatId()) return x.buf } -func (m *TLInputPaymentCredentialsAndroidPay) Decode(dbuf *DecodeBuf) error { - m1 := &DataJSON{} - m1.Decode(dbuf) - m.SetPaymentToken(m1) - m.SetGoogleTransactionId(dbuf.String()) +func (m *TLUpdateEncryptedChatTyping) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Messages_Dialogs <-- -// + TL_MessagesDialogs -// + TL_MessagesDialogsSlice -// + TL_MessagesDialogsNotModified -// - -func (m *Messages_Dialogs) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_dialogs: - t := m.To_MessagesDialogs() - return t.Encode() - case TLConstructor_CRC32_messages_dialogsSlice: - t := m.To_MessagesDialogsSlice() - return t.Encode() - case TLConstructor_CRC32_messages_dialogsNotModified: - t := m.To_MessagesDialogsNotModified() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update; +func (m *TLUpdateEncryption) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateEncryption, + Data2: m.Data2, } } -func (m *Messages_Dialogs) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_dialogs: - t := m.To_MessagesDialogs() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_dialogsSlice: - t := m.To_MessagesDialogsSlice() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_dialogsNotModified: - t := m.To_MessagesDialogsNotModified() - return t.EncodeToLayer(layer) +func (m *TLUpdateEncryption) SetChat(v *EncryptedChat) { m.Data2.Chat = v } +func (m *TLUpdateEncryption) GetChat() *EncryptedChat { return m.Data2.Chat } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateEncryption) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdateEncryption) GetDate() int32 { return m.Data2.Date } + +func NewTLUpdateEncryption() *TLUpdateEncryption { + return &TLUpdateEncryption{Data2: &Update_Data{}} } -func (m *Messages_Dialogs) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_dialogs: - m2 := &TLMessagesDialogs{Data2: &Messages_Dialogs_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_dialogsSlice: - m2 := &TLMessagesDialogsSlice{Data2: &Messages_Dialogs_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_dialogsNotModified: - m2 := &TLMessagesDialogsNotModified{Data2: &Messages_Dialogs_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateEncryption) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateEncryption)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} + x.Bytes(m.GetChat().Encode()) + x.Int(m.GetDate()) -// messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; -func (m *Messages_Dialogs) To_MessagesDialogs() *TLMessagesDialogs { - return &TLMessagesDialogs{ - Data2: m.Data2, - } + return x.buf } -// messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; -func (m *Messages_Dialogs) To_MessagesDialogsSlice() *TLMessagesDialogsSlice { - return &TLMessagesDialogsSlice{ - Data2: m.Data2, - } +func (m *TLUpdateEncryption) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateEncryption)) + + x.Bytes(m.GetChat().EncodeToLayer(layer)) + x.Int(m.GetDate()) + + return x.buf } -// messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs; -func (m *Messages_Dialogs) To_MessagesDialogsNotModified() *TLMessagesDialogsNotModified { - return &TLMessagesDialogsNotModified{ - Data2: m.Data2, - } +func (m *TLUpdateEncryption) Decode(dbuf *DecodeBuf) error { + m1 := &EncryptedChat{} + m1.Decode(dbuf) + m.SetChat(m1) + m.SetDate(dbuf.Int()) + + return dbuf.err } -// messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; -func (m *TLMessagesDialogs) To_Messages_Dialogs() *Messages_Dialogs { - return &Messages_Dialogs{ - Constructor: TLConstructor_CRC32_messages_dialogs, +// updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update; +func (m *TLUpdateEncryptedMessagesRead) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateEncryptedMessagesRead, Data2: m.Data2, } } -func (m *TLMessagesDialogs) SetDialogs(v []*Dialog) { m.Data2.Dialogs = v } -func (m *TLMessagesDialogs) GetDialogs() []*Dialog { return m.Data2.Dialogs } - -func (m *TLMessagesDialogs) SetMessages(v []*Message) { m.Data2.Messages = v } -func (m *TLMessagesDialogs) GetMessages() []*Message { return m.Data2.Messages } +func (m *TLUpdateEncryptedMessagesRead) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLUpdateEncryptedMessagesRead) GetChatId() int32 { return m.Data2.ChatId } -func (m *TLMessagesDialogs) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLMessagesDialogs) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLUpdateEncryptedMessagesRead) SetMaxDate(v int32) { m.Data2.MaxDate = v } +func (m *TLUpdateEncryptedMessagesRead) GetMaxDate() int32 { return m.Data2.MaxDate } -func (m *TLMessagesDialogs) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLMessagesDialogs) GetUsers() []*User { return m.Data2.Users } +func (m *TLUpdateEncryptedMessagesRead) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdateEncryptedMessagesRead) GetDate() int32 { return m.Data2.Date } -func NewTLMessagesDialogs() *TLMessagesDialogs { - return &TLMessagesDialogs{Data2: &Messages_Dialogs_Data{}} +func NewTLUpdateEncryptedMessagesRead() *TLUpdateEncryptedMessagesRead { + return &TLUpdateEncryptedMessagesRead{Data2: &Update_Data{}} } -func (m *TLMessagesDialogs) Encode() []byte { +func (m *TLUpdateEncryptedMessagesRead) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dialogs)) + x.Int(int32(TLConstructor_CRC32_updateEncryptedMessagesRead)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDialogs()))) - for _, v := range m.GetDialogs() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(m.GetChatId()) + x.Int(m.GetMaxDate()) + x.Int(m.GetDate()) return x.buf } -func (m *TLMessagesDialogs) EncodeToLayer(layer int) []byte { +func (m *TLUpdateEncryptedMessagesRead) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dialogs)) + x.Int(int32(TLConstructor_CRC32_updateEncryptedMessagesRead)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDialogs()))) - for _, v := range m.GetDialogs() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetChatId()) + x.Int(m.GetMaxDate()) + x.Int(m.GetDate()) return x.buf } -func (m *TLMessagesDialogs) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Dialog, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Dialog{} - v1[i].Decode(dbuf) - } - m.SetDialogs(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Message, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Message{} - v2[i].Decode(dbuf) - } - m.SetMessages(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Chat, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Chat{} - v3[i].Decode(dbuf) - } - m.SetChats(v3) - - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*User, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &User{} - v4[i].Decode(dbuf) - } - m.SetUsers(v4) +func (m *TLUpdateEncryptedMessagesRead) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) + m.SetMaxDate(dbuf.Int()) + m.SetDate(dbuf.Int()) return dbuf.err } -// messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; -func (m *TLMessagesDialogsSlice) To_Messages_Dialogs() *Messages_Dialogs { - return &Messages_Dialogs{ - Constructor: TLConstructor_CRC32_messages_dialogsSlice, +// updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update; +func (m *TLUpdateChatParticipantAdd) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChatParticipantAdd, Data2: m.Data2, } } -func (m *TLMessagesDialogsSlice) SetCount(v int32) { m.Data2.Count = v } -func (m *TLMessagesDialogsSlice) GetCount() int32 { return m.Data2.Count } +func (m *TLUpdateChatParticipantAdd) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLUpdateChatParticipantAdd) GetChatId() int32 { return m.Data2.ChatId } -func (m *TLMessagesDialogsSlice) SetDialogs(v []*Dialog) { m.Data2.Dialogs = v } -func (m *TLMessagesDialogsSlice) GetDialogs() []*Dialog { return m.Data2.Dialogs } +func (m *TLUpdateChatParticipantAdd) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateChatParticipantAdd) GetUserId() int32 { return m.Data2.UserId } -func (m *TLMessagesDialogsSlice) SetMessages(v []*Message) { m.Data2.Messages = v } -func (m *TLMessagesDialogsSlice) GetMessages() []*Message { return m.Data2.Messages } +func (m *TLUpdateChatParticipantAdd) SetInviterId(v int32) { m.Data2.InviterId = v } +func (m *TLUpdateChatParticipantAdd) GetInviterId() int32 { return m.Data2.InviterId } -func (m *TLMessagesDialogsSlice) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLMessagesDialogsSlice) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLUpdateChatParticipantAdd) SetDate(v int32) { m.Data2.Date = v } +func (m *TLUpdateChatParticipantAdd) GetDate() int32 { return m.Data2.Date } -func (m *TLMessagesDialogsSlice) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLMessagesDialogsSlice) GetUsers() []*User { return m.Data2.Users } +func (m *TLUpdateChatParticipantAdd) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLUpdateChatParticipantAdd) GetVersion() int32 { return m.Data2.Version } -func NewTLMessagesDialogsSlice() *TLMessagesDialogsSlice { - return &TLMessagesDialogsSlice{Data2: &Messages_Dialogs_Data{}} +func NewTLUpdateChatParticipantAdd() *TLUpdateChatParticipantAdd { + return &TLUpdateChatParticipantAdd{Data2: &Update_Data{}} } -func (m *TLMessagesDialogsSlice) Encode() []byte { +func (m *TLUpdateChatParticipantAdd) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dialogsSlice)) + x.Int(int32(TLConstructor_CRC32_updateChatParticipantAdd)) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDialogs()))) - for _, v := range m.GetDialogs() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetDate()) + x.Int(m.GetVersion()) return x.buf } -func (m *TLMessagesDialogsSlice) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChatParticipantAdd) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dialogsSlice)) + x.Int(int32(TLConstructor_CRC32_updateChatParticipantAdd)) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetDialogs()))) - for _, v := range m.GetDialogs() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetMessages()))) - for _, v := range m.GetMessages() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Int(m.GetInviterId()) + x.Int(m.GetDate()) + x.Int(m.GetVersion()) return x.buf } -func (m *TLMessagesDialogsSlice) Decode(dbuf *DecodeBuf) error { - m.SetCount(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Dialog, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Dialog{} - v2[i].Decode(dbuf) - } - m.SetDialogs(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*Message, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &Message{} - v3[i].Decode(dbuf) - } - m.SetMessages(v3) - - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*Chat, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &Chat{} - v4[i].Decode(dbuf) - } - m.SetChats(v4) - - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) - return dbuf.err - } - l5 := dbuf.Int() - v5 := make([]*User, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &User{} - v5[i].Decode(dbuf) - } - m.SetUsers(v5) +func (m *TLUpdateChatParticipantAdd) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) + m.SetUserId(dbuf.Int()) + m.SetInviterId(dbuf.Int()) + m.SetDate(dbuf.Int()) + m.SetVersion(dbuf.Int()) return dbuf.err } -// messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs; -func (m *TLMessagesDialogsNotModified) To_Messages_Dialogs() *Messages_Dialogs { - return &Messages_Dialogs{ - Constructor: TLConstructor_CRC32_messages_dialogsNotModified, +// updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update; +func (m *TLUpdateChatParticipantDelete) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChatParticipantDelete, Data2: m.Data2, } } -func (m *TLMessagesDialogsNotModified) SetCount(v int32) { m.Data2.Count = v } -func (m *TLMessagesDialogsNotModified) GetCount() int32 { return m.Data2.Count } - -func NewTLMessagesDialogsNotModified() *TLMessagesDialogsNotModified { - return &TLMessagesDialogsNotModified{Data2: &Messages_Dialogs_Data{}} -} +func (m *TLUpdateChatParticipantDelete) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLUpdateChatParticipantDelete) GetChatId() int32 { return m.Data2.ChatId } -func (m *TLMessagesDialogsNotModified) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dialogsNotModified)) +func (m *TLUpdateChatParticipantDelete) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateChatParticipantDelete) GetUserId() int32 { return m.Data2.UserId } - x.Int(m.GetCount()) +func (m *TLUpdateChatParticipantDelete) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLUpdateChatParticipantDelete) GetVersion() int32 { return m.Data2.Version } - return x.buf +func NewTLUpdateChatParticipantDelete() *TLUpdateChatParticipantDelete { + return &TLUpdateChatParticipantDelete{Data2: &Update_Data{}} } -func (m *TLMessagesDialogsNotModified) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChatParticipantDelete) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_dialogsNotModified)) + x.Int(int32(TLConstructor_CRC32_updateChatParticipantDelete)) - x.Int(m.GetCount()) + x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Int(m.GetVersion()) return x.buf } -func (m *TLMessagesDialogsNotModified) Decode(dbuf *DecodeBuf) error { - m.SetCount(dbuf.Int()) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// ReplyMarkup <-- -// + TL_ReplyKeyboardHide -// + TL_ReplyKeyboardForceReply -// + TL_ReplyKeyboardMarkup -// + TL_ReplyInlineMarkup -// - -func (m *ReplyMarkup) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_replyKeyboardHide: - t := m.To_ReplyKeyboardHide() - return t.Encode() - case TLConstructor_CRC32_replyKeyboardForceReply: - t := m.To_ReplyKeyboardForceReply() - return t.Encode() - case TLConstructor_CRC32_replyKeyboardMarkup: - t := m.To_ReplyKeyboardMarkup() - return t.Encode() - case TLConstructor_CRC32_replyInlineMarkup: - t := m.To_ReplyInlineMarkup() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLUpdateChatParticipantDelete) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateChatParticipantDelete)) -func (m *ReplyMarkup) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_replyKeyboardHide: - t := m.To_ReplyKeyboardHide() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_replyKeyboardForceReply: - t := m.To_ReplyKeyboardForceReply() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_replyKeyboardMarkup: - t := m.To_ReplyKeyboardMarkup() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_replyInlineMarkup: - t := m.To_ReplyInlineMarkup() - return t.EncodeToLayer(layer) + x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Int(m.GetVersion()) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *ReplyMarkup) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_replyKeyboardHide: - m2 := &TLReplyKeyboardHide{Data2: &ReplyMarkup_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_replyKeyboardForceReply: - m2 := &TLReplyKeyboardForceReply{Data2: &ReplyMarkup_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_replyKeyboardMarkup: - m2 := &TLReplyKeyboardMarkup{Data2: &ReplyMarkup_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_replyInlineMarkup: - m2 := &TLReplyInlineMarkup{Data2: &ReplyMarkup_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateChatParticipantDelete) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) + m.SetUserId(dbuf.Int()) + m.SetVersion(dbuf.Int()) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; -func (m *ReplyMarkup) To_ReplyKeyboardHide() *TLReplyKeyboardHide { - return &TLReplyKeyboardHide{ - Data2: m.Data2, +// updateDcOptions#8e5e9873 dc_options:Vector = Update; +func (m *TLUpdateDcOptions) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateDcOptions, + Data2: m.Data2, } } -// replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup; -func (m *ReplyMarkup) To_ReplyKeyboardForceReply() *TLReplyKeyboardForceReply { - return &TLReplyKeyboardForceReply{ - Data2: m.Data2, +func (m *TLUpdateDcOptions) SetDcOptions(v []*DcOption) { m.Data2.DcOptions = v } +func (m *TLUpdateDcOptions) GetDcOptions() []*DcOption { return m.Data2.DcOptions } + +func NewTLUpdateDcOptions() *TLUpdateDcOptions { + return &TLUpdateDcOptions{Data2: &Update_Data{}} +} + +func (m *TLUpdateDcOptions) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateDcOptions)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDcOptions()))) + for _, v := range m.GetDcOptions() { + x.buf = append(x.buf, (*v).Encode()...) } + + return x.buf } -// replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector = ReplyMarkup; -func (m *ReplyMarkup) To_ReplyKeyboardMarkup() *TLReplyKeyboardMarkup { - return &TLReplyKeyboardMarkup{ - Data2: m.Data2, +func (m *TLUpdateDcOptions) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateDcOptions)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDcOptions()))) + for _, v := range m.GetDcOptions() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } + + return x.buf } -// replyInlineMarkup#48a30254 rows:Vector = ReplyMarkup; -func (m *ReplyMarkup) To_ReplyInlineMarkup() *TLReplyInlineMarkup { - return &TLReplyInlineMarkup{ - Data2: m.Data2, +func (m *TLUpdateDcOptions) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } + l1 := dbuf.Int() + v1 := make([]*DcOption, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &DcOption{} + v1[i].Decode(dbuf) + } + m.SetDcOptions(v1) + + return dbuf.err } -// replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; -func (m *TLReplyKeyboardHide) To_ReplyMarkup() *ReplyMarkup { - return &ReplyMarkup{ - Constructor: TLConstructor_CRC32_replyKeyboardHide, +// updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; +func (m *TLUpdateUserBlocked) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateUserBlocked, Data2: m.Data2, } } -func (m *TLReplyKeyboardHide) SetSelective(v bool) { m.Data2.Selective = v } -func (m *TLReplyKeyboardHide) GetSelective() bool { return m.Data2.Selective } +func (m *TLUpdateUserBlocked) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateUserBlocked) GetUserId() int32 { return m.Data2.UserId } -func NewTLReplyKeyboardHide() *TLReplyKeyboardHide { - return &TLReplyKeyboardHide{Data2: &ReplyMarkup_Data{}} +func (m *TLUpdateUserBlocked) SetBlocked(v *Bool) { m.Data2.Blocked = v } +func (m *TLUpdateUserBlocked) GetBlocked() *Bool { return m.Data2.Blocked } + +func NewTLUpdateUserBlocked() *TLUpdateUserBlocked { + return &TLUpdateUserBlocked{Data2: &Update_Data{}} } -func (m *TLReplyKeyboardHide) Encode() []byte { +func (m *TLUpdateUserBlocked) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_replyKeyboardHide)) + x.Int(int32(TLConstructor_CRC32_updateUserBlocked)) - // flags - var flags uint32 = 0 - if m.GetSelective() == true { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(m.GetUserId()) + x.Bytes(m.GetBlocked().Encode()) return x.buf } -func (m *TLReplyKeyboardHide) EncodeToLayer(layer int) []byte { +func (m *TLUpdateUserBlocked) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_replyKeyboardHide)) + x.Int(int32(TLConstructor_CRC32_updateUserBlocked)) - // flags - var flags uint32 = 0 - if m.GetSelective() == true { - flags |= 1 << 2 - } - x.UInt(flags) + x.Int(m.GetUserId()) + x.Bytes(m.GetBlocked().EncodeToLayer(layer)) return x.buf } -func (m *TLReplyKeyboardHide) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 2)) != 0 { - m.SetSelective(true) - } +func (m *TLUpdateUserBlocked) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m2 := &Bool{} + m2.Decode(dbuf) + m.SetBlocked(m2) return dbuf.err } -// replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup; -func (m *TLReplyKeyboardForceReply) To_ReplyMarkup() *ReplyMarkup { - return &ReplyMarkup{ - Constructor: TLConstructor_CRC32_replyKeyboardForceReply, +// updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; +func (m *TLUpdateNotifySettings) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateNotifySettings, Data2: m.Data2, } } -func (m *TLReplyKeyboardForceReply) SetSingleUse(v bool) { m.Data2.SingleUse = v } -func (m *TLReplyKeyboardForceReply) GetSingleUse() bool { return m.Data2.SingleUse } +func (m *TLUpdateNotifySettings) SetPeer(v *NotifyPeer) { m.Data2.Peer_28 = v } +func (m *TLUpdateNotifySettings) GetPeer() *NotifyPeer { return m.Data2.Peer_28 } -func (m *TLReplyKeyboardForceReply) SetSelective(v bool) { m.Data2.Selective = v } -func (m *TLReplyKeyboardForceReply) GetSelective() bool { return m.Data2.Selective } +func (m *TLUpdateNotifySettings) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } +func (m *TLUpdateNotifySettings) GetNotifySettings() *PeerNotifySettings { + return m.Data2.NotifySettings +} -func NewTLReplyKeyboardForceReply() *TLReplyKeyboardForceReply { - return &TLReplyKeyboardForceReply{Data2: &ReplyMarkup_Data{}} +func NewTLUpdateNotifySettings() *TLUpdateNotifySettings { + return &TLUpdateNotifySettings{Data2: &Update_Data{}} } -func (m *TLReplyKeyboardForceReply) Encode() []byte { +func (m *TLUpdateNotifySettings) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_replyKeyboardForceReply)) + x.Int(int32(TLConstructor_CRC32_updateNotifySettings)) - // flags - var flags uint32 = 0 - if m.GetSingleUse() == true { - flags |= 1 << 1 - } - if m.GetSelective() == true { - flags |= 1 << 2 - } - x.UInt(flags) + x.Bytes(m.GetPeer().Encode()) + x.Bytes(m.GetNotifySettings().Encode()) return x.buf } -func (m *TLReplyKeyboardForceReply) EncodeToLayer(layer int) []byte { +func (m *TLUpdateNotifySettings) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_replyKeyboardForceReply)) + x.Int(int32(TLConstructor_CRC32_updateNotifySettings)) - // flags - var flags uint32 = 0 - if m.GetSingleUse() == true { - flags |= 1 << 1 - } - if m.GetSelective() == true { - flags |= 1 << 2 - } - x.UInt(flags) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) return x.buf } -func (m *TLReplyKeyboardForceReply) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 1)) != 0 { - m.SetSingleUse(true) - } - if (flags & (1 << 2)) != 0 { - m.SetSelective(true) - } +func (m *TLUpdateNotifySettings) Decode(dbuf *DecodeBuf) error { + m1 := &NotifyPeer{} + m1.Decode(dbuf) + m.SetPeer(m1) + m2 := &PeerNotifySettings{} + m2.Decode(dbuf) + m.SetNotifySettings(m2) return dbuf.err } -// replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector = ReplyMarkup; -func (m *TLReplyKeyboardMarkup) To_ReplyMarkup() *ReplyMarkup { - return &ReplyMarkup{ - Constructor: TLConstructor_CRC32_replyKeyboardMarkup, +// updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update; +func (m *TLUpdateServiceNotification) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateServiceNotification, Data2: m.Data2, } } -func (m *TLReplyKeyboardMarkup) SetResize(v bool) { m.Data2.Resize = v } -func (m *TLReplyKeyboardMarkup) GetResize() bool { return m.Data2.Resize } +func (m *TLUpdateServiceNotification) SetPopup(v bool) { m.Data2.Popup = v } +func (m *TLUpdateServiceNotification) GetPopup() bool { return m.Data2.Popup } -func (m *TLReplyKeyboardMarkup) SetSingleUse(v bool) { m.Data2.SingleUse = v } -func (m *TLReplyKeyboardMarkup) GetSingleUse() bool { return m.Data2.SingleUse } +func (m *TLUpdateServiceNotification) SetInboxDate(v int32) { m.Data2.InboxDate = v } +func (m *TLUpdateServiceNotification) GetInboxDate() int32 { return m.Data2.InboxDate } -func (m *TLReplyKeyboardMarkup) SetSelective(v bool) { m.Data2.Selective = v } -func (m *TLReplyKeyboardMarkup) GetSelective() bool { return m.Data2.Selective } +func (m *TLUpdateServiceNotification) SetType(v string) { m.Data2.Type = v } +func (m *TLUpdateServiceNotification) GetType() string { return m.Data2.Type } -func (m *TLReplyKeyboardMarkup) SetRows(v []*KeyboardButtonRow) { m.Data2.Rows = v } -func (m *TLReplyKeyboardMarkup) GetRows() []*KeyboardButtonRow { return m.Data2.Rows } +func (m *TLUpdateServiceNotification) SetMessage(v string) { m.Data2.Message_33 = v } +func (m *TLUpdateServiceNotification) GetMessage() string { return m.Data2.Message_33 } -func NewTLReplyKeyboardMarkup() *TLReplyKeyboardMarkup { - return &TLReplyKeyboardMarkup{Data2: &ReplyMarkup_Data{}} +func (m *TLUpdateServiceNotification) SetMedia(v *MessageMedia) { m.Data2.Media = v } +func (m *TLUpdateServiceNotification) GetMedia() *MessageMedia { return m.Data2.Media } + +func (m *TLUpdateServiceNotification) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } +func (m *TLUpdateServiceNotification) GetEntities() []*MessageEntity { return m.Data2.Entities } + +func NewTLUpdateServiceNotification() *TLUpdateServiceNotification { + return &TLUpdateServiceNotification{Data2: &Update_Data{}} } -func (m *TLReplyKeyboardMarkup) Encode() []byte { +func (m *TLUpdateServiceNotification) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_replyKeyboardMarkup)) + x.Int(int32(TLConstructor_CRC32_updateServiceNotification)) // flags var flags uint32 = 0 - if m.GetResize() == true { + if m.GetPopup() == true { flags |= 1 << 0 } - if m.GetSingleUse() == true { + if m.GetInboxDate() != 0 { flags |= 1 << 1 } - if m.GetSelective() == true { - flags |= 1 << 2 - } x.UInt(flags) + if m.GetInboxDate() != 0 { + x.Int(m.GetInboxDate()) + } + x.String(m.GetType()) + x.String(m.GetMessage()) + x.Bytes(m.GetMedia().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRows()))) - for _, v := range m.GetRows() { + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLReplyKeyboardMarkup) EncodeToLayer(layer int) []byte { +func (m *TLUpdateServiceNotification) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_replyKeyboardMarkup)) + x.Int(int32(TLConstructor_CRC32_updateServiceNotification)) // flags var flags uint32 = 0 - if m.GetResize() == true { + if m.GetPopup() == true { flags |= 1 << 0 } - if m.GetSingleUse() == true { + if m.GetInboxDate() != 0 { flags |= 1 << 1 } - if m.GetSelective() == true { - flags |= 1 << 2 - } x.UInt(flags) + if m.GetInboxDate() != 0 { + x.Int(m.GetInboxDate()) + } + x.String(m.GetType()) + x.String(m.GetMessage()) + x.Bytes(m.GetMedia().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRows()))) - for _, v := range m.GetRows() { + x.Int(int32(len(m.GetEntities()))) + for _, v := range m.GetEntities() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLReplyKeyboardMarkup) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateServiceNotification) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags if (flags & (1 << 0)) != 0 { - m.SetResize(true) + m.SetPopup(true) } if (flags & (1 << 1)) != 0 { - m.SetSingleUse(true) - } - if (flags & (1 << 2)) != 0 { - m.SetSelective(true) + m.SetInboxDate(dbuf.Int()) } - c5 := dbuf.Int() - if c5 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + m.SetType(dbuf.String()) + m.SetMessage(dbuf.String()) + m6 := &MessageMedia{} + m6.Decode(dbuf) + m.SetMedia(m6) + c7 := dbuf.Int() + if c7 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) return dbuf.err } - l5 := dbuf.Int() - v5 := make([]*KeyboardButtonRow, l5) - for i := int32(0); i < l5; i++ { - v5[i] = &KeyboardButtonRow{} - v5[i].Decode(dbuf) + l7 := dbuf.Int() + v7 := make([]*MessageEntity, l7) + for i := int32(0); i < l7; i++ { + v7[i] = &MessageEntity{} + v7[i].Decode(dbuf) } - m.SetRows(v5) + m.SetEntities(v7) return dbuf.err } -// replyInlineMarkup#48a30254 rows:Vector = ReplyMarkup; -func (m *TLReplyInlineMarkup) To_ReplyMarkup() *ReplyMarkup { - return &ReplyMarkup{ - Constructor: TLConstructor_CRC32_replyInlineMarkup, +// updatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update; +func (m *TLUpdatePrivacy) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updatePrivacy, Data2: m.Data2, } } -func (m *TLReplyInlineMarkup) SetRows(v []*KeyboardButtonRow) { m.Data2.Rows = v } -func (m *TLReplyInlineMarkup) GetRows() []*KeyboardButtonRow { return m.Data2.Rows } +func (m *TLUpdatePrivacy) SetKey(v *PrivacyKey) { m.Data2.Key = v } +func (m *TLUpdatePrivacy) GetKey() *PrivacyKey { return m.Data2.Key } -func NewTLReplyInlineMarkup() *TLReplyInlineMarkup { - return &TLReplyInlineMarkup{Data2: &ReplyMarkup_Data{}} +func (m *TLUpdatePrivacy) SetRules(v []*PrivacyRule) { m.Data2.Rules = v } +func (m *TLUpdatePrivacy) GetRules() []*PrivacyRule { return m.Data2.Rules } + +func NewTLUpdatePrivacy() *TLUpdatePrivacy { + return &TLUpdatePrivacy{Data2: &Update_Data{}} } -func (m *TLReplyInlineMarkup) Encode() []byte { +func (m *TLUpdatePrivacy) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_replyInlineMarkup)) + x.Int(int32(TLConstructor_CRC32_updatePrivacy)) + x.Bytes(m.GetKey().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRows()))) - for _, v := range m.GetRows() { + x.Int(int32(len(m.GetRules()))) + for _, v := range m.GetRules() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLReplyInlineMarkup) EncodeToLayer(layer int) []byte { +func (m *TLUpdatePrivacy) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_replyInlineMarkup)) + x.Int(int32(TLConstructor_CRC32_updatePrivacy)) + x.Bytes(m.GetKey().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRows()))) - for _, v := range m.GetRows() { + x.Int(int32(len(m.GetRules()))) + for _, v := range m.GetRules() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLReplyInlineMarkup) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) +func (m *TLUpdatePrivacy) Decode(dbuf *DecodeBuf) error { + m1 := &PrivacyKey{} + m1.Decode(dbuf) + m.SetKey(m1) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } - l1 := dbuf.Int() - v1 := make([]*KeyboardButtonRow, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &KeyboardButtonRow{} - v1[i].Decode(dbuf) + l2 := dbuf.Int() + v2 := make([]*PrivacyRule, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &PrivacyRule{} + v2[i].Decode(dbuf) } - m.SetRows(v1) + m.SetRules(v2) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// FoundGif <-- -// + TL_FoundGif -// + TL_FoundGifCached -// - -func (m *FoundGif) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_foundGif: - t := m.To_FoundGif() - return t.Encode() - case TLConstructor_CRC32_foundGifCached: - t := m.To_FoundGifCached() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateUserPhone#12b9417b user_id:int phone:string = Update; +func (m *TLUpdateUserPhone) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateUserPhone, + Data2: m.Data2, } } -func (m *FoundGif) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_foundGif: - t := m.To_FoundGif() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_foundGifCached: - t := m.To_FoundGifCached() - return t.EncodeToLayer(layer) +func (m *TLUpdateUserPhone) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateUserPhone) GetUserId() int32 { return m.Data2.UserId } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateUserPhone) SetPhone(v string) { m.Data2.Phone = v } +func (m *TLUpdateUserPhone) GetPhone() string { return m.Data2.Phone } + +func NewTLUpdateUserPhone() *TLUpdateUserPhone { + return &TLUpdateUserPhone{Data2: &Update_Data{}} } -func (m *FoundGif) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_foundGif: - m2 := &TLFoundGif{Data2: &FoundGif_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_foundGifCached: - m2 := &TLFoundGifCached{Data2: &FoundGif_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateUserPhone) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateUserPhone)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Int(m.GetUserId()) + x.String(m.GetPhone()) + + return x.buf } -// foundGif#162ecc1f url:string thumb_url:string content_url:string content_type:string w:int h:int = FoundGif; -func (m *FoundGif) To_FoundGif() *TLFoundGif { - return &TLFoundGif{ - Data2: m.Data2, - } +func (m *TLUpdateUserPhone) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateUserPhone)) + + x.Int(m.GetUserId()) + x.String(m.GetPhone()) + + return x.buf } -// foundGifCached#9c750409 url:string photo:Photo document:Document = FoundGif; -func (m *FoundGif) To_FoundGifCached() *TLFoundGifCached { - return &TLFoundGifCached{ - Data2: m.Data2, - } +func (m *TLUpdateUserPhone) Decode(dbuf *DecodeBuf) error { + m.SetUserId(dbuf.Int()) + m.SetPhone(dbuf.String()) + + return dbuf.err } -// foundGif#162ecc1f url:string thumb_url:string content_url:string content_type:string w:int h:int = FoundGif; -func (m *TLFoundGif) To_FoundGif() *FoundGif { - return &FoundGif{ - Constructor: TLConstructor_CRC32_foundGif, +// updateReadHistoryInbox#9961fd5c peer:Peer max_id:int pts:int pts_count:int = Update; +func (m *TLUpdateReadHistoryInbox) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateReadHistoryInbox, Data2: m.Data2, } } -func (m *TLFoundGif) SetUrl(v string) { m.Data2.Url = v } -func (m *TLFoundGif) GetUrl() string { return m.Data2.Url } - -func (m *TLFoundGif) SetThumbUrl(v string) { m.Data2.ThumbUrl = v } -func (m *TLFoundGif) GetThumbUrl() string { return m.Data2.ThumbUrl } - -func (m *TLFoundGif) SetContentUrl(v string) { m.Data2.ContentUrl = v } -func (m *TLFoundGif) GetContentUrl() string { return m.Data2.ContentUrl } +func (m *TLUpdateReadHistoryInbox) SetPeer(v *Peer) { m.Data2.Peer_39 = v } +func (m *TLUpdateReadHistoryInbox) GetPeer() *Peer { return m.Data2.Peer_39 } -func (m *TLFoundGif) SetContentType(v string) { m.Data2.ContentType = v } -func (m *TLFoundGif) GetContentType() string { return m.Data2.ContentType } +func (m *TLUpdateReadHistoryInbox) SetMaxId(v int32) { m.Data2.MaxId = v } +func (m *TLUpdateReadHistoryInbox) GetMaxId() int32 { return m.Data2.MaxId } -func (m *TLFoundGif) SetW(v int32) { m.Data2.W = v } -func (m *TLFoundGif) GetW() int32 { return m.Data2.W } +func (m *TLUpdateReadHistoryInbox) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateReadHistoryInbox) GetPts() int32 { return m.Data2.Pts } -func (m *TLFoundGif) SetH(v int32) { m.Data2.H = v } -func (m *TLFoundGif) GetH() int32 { return m.Data2.H } +func (m *TLUpdateReadHistoryInbox) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateReadHistoryInbox) GetPtsCount() int32 { return m.Data2.PtsCount } -func NewTLFoundGif() *TLFoundGif { - return &TLFoundGif{Data2: &FoundGif_Data{}} +func NewTLUpdateReadHistoryInbox() *TLUpdateReadHistoryInbox { + return &TLUpdateReadHistoryInbox{Data2: &Update_Data{}} } -func (m *TLFoundGif) Encode() []byte { +func (m *TLUpdateReadHistoryInbox) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_foundGif)) - - x.String(m.GetUrl()) - x.String(m.GetThumbUrl()) - x.String(m.GetContentUrl()) - x.String(m.GetContentType()) - x.Int(m.GetW()) - x.Int(m.GetH()) + x.Int(int32(TLConstructor_CRC32_updateReadHistoryInbox)) + + x.Bytes(m.GetPeer().Encode()) + x.Int(m.GetMaxId()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLFoundGif) EncodeToLayer(layer int) []byte { +func (m *TLUpdateReadHistoryInbox) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_foundGif)) + x.Int(int32(TLConstructor_CRC32_updateReadHistoryInbox)) - x.String(m.GetUrl()) - x.String(m.GetThumbUrl()) - x.String(m.GetContentUrl()) - x.String(m.GetContentType()) - x.Int(m.GetW()) - x.Int(m.GetH()) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.Int(m.GetMaxId()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLFoundGif) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m.SetThumbUrl(dbuf.String()) - m.SetContentUrl(dbuf.String()) - m.SetContentType(dbuf.String()) - m.SetW(dbuf.Int()) - m.SetH(dbuf.Int()) +func (m *TLUpdateReadHistoryInbox) Decode(dbuf *DecodeBuf) error { + m1 := &Peer{} + m1.Decode(dbuf) + m.SetPeer(m1) + m.SetMaxId(dbuf.Int()) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -// foundGifCached#9c750409 url:string photo:Photo document:Document = FoundGif; -func (m *TLFoundGifCached) To_FoundGif() *FoundGif { - return &FoundGif{ - Constructor: TLConstructor_CRC32_foundGifCached, +// updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update; +func (m *TLUpdateReadHistoryOutbox) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateReadHistoryOutbox, Data2: m.Data2, } } -func (m *TLFoundGifCached) SetUrl(v string) { m.Data2.Url = v } -func (m *TLFoundGifCached) GetUrl() string { return m.Data2.Url } +func (m *TLUpdateReadHistoryOutbox) SetPeer(v *Peer) { m.Data2.Peer_39 = v } +func (m *TLUpdateReadHistoryOutbox) GetPeer() *Peer { return m.Data2.Peer_39 } -func (m *TLFoundGifCached) SetPhoto(v *Photo) { m.Data2.Photo = v } -func (m *TLFoundGifCached) GetPhoto() *Photo { return m.Data2.Photo } +func (m *TLUpdateReadHistoryOutbox) SetMaxId(v int32) { m.Data2.MaxId = v } +func (m *TLUpdateReadHistoryOutbox) GetMaxId() int32 { return m.Data2.MaxId } -func (m *TLFoundGifCached) SetDocument(v *Document) { m.Data2.Document = v } -func (m *TLFoundGifCached) GetDocument() *Document { return m.Data2.Document } +func (m *TLUpdateReadHistoryOutbox) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateReadHistoryOutbox) GetPts() int32 { return m.Data2.Pts } -func NewTLFoundGifCached() *TLFoundGifCached { - return &TLFoundGifCached{Data2: &FoundGif_Data{}} +func (m *TLUpdateReadHistoryOutbox) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateReadHistoryOutbox) GetPtsCount() int32 { return m.Data2.PtsCount } + +func NewTLUpdateReadHistoryOutbox() *TLUpdateReadHistoryOutbox { + return &TLUpdateReadHistoryOutbox{Data2: &Update_Data{}} } -func (m *TLFoundGifCached) Encode() []byte { +func (m *TLUpdateReadHistoryOutbox) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_foundGifCached)) + x.Int(int32(TLConstructor_CRC32_updateReadHistoryOutbox)) - x.String(m.GetUrl()) - x.Bytes(m.GetPhoto().Encode()) - x.Bytes(m.GetDocument().Encode()) + x.Bytes(m.GetPeer().Encode()) + x.Int(m.GetMaxId()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLFoundGifCached) EncodeToLayer(layer int) []byte { +func (m *TLUpdateReadHistoryOutbox) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_foundGifCached)) + x.Int(int32(TLConstructor_CRC32_updateReadHistoryOutbox)) - x.String(m.GetUrl()) - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - x.Bytes(m.GetDocument().EncodeToLayer(layer)) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.Int(m.GetMaxId()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLFoundGifCached) Decode(dbuf *DecodeBuf) error { - m.SetUrl(dbuf.String()) - m2 := &Photo{} - m2.Decode(dbuf) - m.SetPhoto(m2) - m3 := &Document{} - m3.Decode(dbuf) - m.SetDocument(m3) +func (m *TLUpdateReadHistoryOutbox) Decode(dbuf *DecodeBuf) error { + m1 := &Peer{} + m1.Decode(dbuf) + m.SetPeer(m1) + m.SetMaxId(dbuf.Int()) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// SecureValue <-- -// + TL_SecureValue -// - -func (m *SecureValue) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_secureValue: - t := m.To_SecureValue() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update; +func (m *TLUpdateWebPage) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateWebPage, + Data2: m.Data2, } } -func (m *SecureValue) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_secureValue: - t := m.To_SecureValue() - return t.EncodeToLayer(layer) +func (m *TLUpdateWebPage) SetWebpage(v *WebPage) { m.Data2.Webpage = v } +func (m *TLUpdateWebPage) GetWebpage() *WebPage { return m.Data2.Webpage } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLUpdateWebPage) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateWebPage) GetPts() int32 { return m.Data2.Pts } -func (m *SecureValue) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_secureValue: - m2 := &TLSecureValue{Data2: &SecureValue_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateWebPage) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateWebPage) GetPtsCount() int32 { return m.Data2.PtsCount } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err +func NewTLUpdateWebPage() *TLUpdateWebPage { + return &TLUpdateWebPage{Data2: &Update_Data{}} } -// secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue; -func (m *SecureValue) To_SecureValue() *TLSecureValue { - return &TLSecureValue{ - Data2: m.Data2, - } -} +func (m *TLUpdateWebPage) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateWebPage)) -// secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue; -func (m *TLSecureValue) To_SecureValue() *SecureValue { - return &SecureValue{ - Constructor: TLConstructor_CRC32_secureValue, - Data2: m.Data2, - } + x.Bytes(m.GetWebpage().Encode()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) + + return x.buf } -func (m *TLSecureValue) SetType(v *SecureValueType) { m.Data2.Type = v } -func (m *TLSecureValue) GetType() *SecureValueType { return m.Data2.Type } +func (m *TLUpdateWebPage) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateWebPage)) -func (m *TLSecureValue) SetData(v *SecureData) { m.Data2.Data = v } -func (m *TLSecureValue) GetData() *SecureData { return m.Data2.Data } + x.Bytes(m.GetWebpage().EncodeToLayer(layer)) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) -func (m *TLSecureValue) SetFrontSide(v *SecureFile) { m.Data2.FrontSide = v } -func (m *TLSecureValue) GetFrontSide() *SecureFile { return m.Data2.FrontSide } + return x.buf +} -func (m *TLSecureValue) SetReverseSide(v *SecureFile) { m.Data2.ReverseSide = v } -func (m *TLSecureValue) GetReverseSide() *SecureFile { return m.Data2.ReverseSide } +func (m *TLUpdateWebPage) Decode(dbuf *DecodeBuf) error { + m1 := &WebPage{} + m1.Decode(dbuf) + m.SetWebpage(m1) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) -func (m *TLSecureValue) SetSelfie(v *SecureFile) { m.Data2.Selfie = v } -func (m *TLSecureValue) GetSelfie() *SecureFile { return m.Data2.Selfie } + return dbuf.err +} -func (m *TLSecureValue) SetTranslation(v []*SecureFile) { m.Data2.Translation = v } -func (m *TLSecureValue) GetTranslation() []*SecureFile { return m.Data2.Translation } +// updateReadMessagesContents#68c13933 messages:Vector pts:int pts_count:int = Update; +func (m *TLUpdateReadMessagesContents) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateReadMessagesContents, + Data2: m.Data2, + } +} -func (m *TLSecureValue) SetFiles(v []*SecureFile) { m.Data2.Files = v } -func (m *TLSecureValue) GetFiles() []*SecureFile { return m.Data2.Files } +func (m *TLUpdateReadMessagesContents) SetMessages(v []int32) { m.Data2.Messages = v } +func (m *TLUpdateReadMessagesContents) GetMessages() []int32 { return m.Data2.Messages } -func (m *TLSecureValue) SetPlainData(v *SecurePlainData) { m.Data2.PlainData = v } -func (m *TLSecureValue) GetPlainData() *SecurePlainData { return m.Data2.PlainData } +func (m *TLUpdateReadMessagesContents) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateReadMessagesContents) GetPts() int32 { return m.Data2.Pts } -func (m *TLSecureValue) SetHash(v []byte) { m.Data2.Hash = v } -func (m *TLSecureValue) GetHash() []byte { return m.Data2.Hash } +func (m *TLUpdateReadMessagesContents) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateReadMessagesContents) GetPtsCount() int32 { return m.Data2.PtsCount } -func NewTLSecureValue() *TLSecureValue { - return &TLSecureValue{Data2: &SecureValue_Data{}} +func NewTLUpdateReadMessagesContents() *TLUpdateReadMessagesContents { + return &TLUpdateReadMessagesContents{Data2: &Update_Data{}} } -func (m *TLSecureValue) Encode() []byte { +func (m *TLUpdateReadMessagesContents) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValue)) + x.Int(int32(TLConstructor_CRC32_updateReadMessagesContents)) - // flags - var flags uint32 = 0 - if m.GetData() != nil { - flags |= 1 << 0 - } - if m.GetFrontSide() != nil { - flags |= 1 << 1 - } - if m.GetReverseSide() != nil { - flags |= 1 << 2 - } - if m.GetSelfie() != nil { - flags |= 1 << 3 - } - if m.GetTranslation() != nil { - flags |= 1 << 6 - } - if m.GetFiles() != nil { - flags |= 1 << 4 - } - if m.GetPlainData() != nil { - flags |= 1 << 5 - } - x.UInt(flags) + x.VectorInt(m.GetMessages()) - x.Bytes(m.GetType().Encode()) - if m.GetData() != nil { - x.Bytes(m.GetData().Encode()) - } - if m.GetFrontSide() != nil { - x.Bytes(m.GetFrontSide().Encode()) - } - if m.GetReverseSide() != nil { - x.Bytes(m.GetReverseSide().Encode()) - } - if m.GetSelfie() != nil { - x.Bytes(m.GetSelfie().Encode()) - } - if m.GetTranslation() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTranslation()))) - for _, v := range m.GetTranslation() { - x.buf = append(x.buf, (*v).Encode()...) - } - } - if m.GetFiles() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetFiles()))) - for _, v := range m.GetFiles() { - x.buf = append(x.buf, (*v).Encode()...) - } - } - if m.GetPlainData() != nil { - x.Bytes(m.GetPlainData().Encode()) - } - x.StringBytes(m.GetHash()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLSecureValue) EncodeToLayer(layer int) []byte { +func (m *TLUpdateReadMessagesContents) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureValue)) + x.Int(int32(TLConstructor_CRC32_updateReadMessagesContents)) - // flags - var flags uint32 = 0 - if m.GetData() != nil { - flags |= 1 << 0 - } - if m.GetFrontSide() != nil { - flags |= 1 << 1 - } - if m.GetReverseSide() != nil { - flags |= 1 << 2 - } - if m.GetSelfie() != nil { - flags |= 1 << 3 - } - if m.GetTranslation() != nil { - flags |= 1 << 6 - } - if m.GetFiles() != nil { - flags |= 1 << 4 - } - if m.GetPlainData() != nil { - flags |= 1 << 5 - } - x.UInt(flags) + x.VectorInt(m.GetMessages()) - x.Bytes(m.GetType().EncodeToLayer(layer)) - if m.GetData() != nil { - x.Bytes(m.GetData().EncodeToLayer(layer)) - } - if m.GetFrontSide() != nil { - x.Bytes(m.GetFrontSide().EncodeToLayer(layer)) - } - if m.GetReverseSide() != nil { - x.Bytes(m.GetReverseSide().EncodeToLayer(layer)) - } - if m.GetSelfie() != nil { - x.Bytes(m.GetSelfie().EncodeToLayer(layer)) - } - if m.GetTranslation() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTranslation()))) - for _, v := range m.GetTranslation() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } - if m.GetFiles() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetFiles()))) - for _, v := range m.GetFiles() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } - if m.GetPlainData() != nil { - x.Bytes(m.GetPlainData().EncodeToLayer(layer)) - } - x.StringBytes(m.GetHash()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLSecureValue) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m2 := &SecureValueType{} - m2.Decode(dbuf) - m.SetType(m2) - if (flags & (1 << 0)) != 0 { - m3 := &SecureData{} - m3.Decode(dbuf) - m.SetData(m3) - } - if (flags & (1 << 1)) != 0 { - m4 := &SecureFile{} - m4.Decode(dbuf) - m.SetFrontSide(m4) - } - if (flags & (1 << 2)) != 0 { - m5 := &SecureFile{} - m5.Decode(dbuf) - m.SetReverseSide(m5) - } - if (flags & (1 << 3)) != 0 { - m6 := &SecureFile{} - m6.Decode(dbuf) - m.SetSelfie(m6) - } - if (flags & (1 << 6)) != 0 { - c7 := dbuf.Int() - if c7 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 7, c7) - return dbuf.err - } - l7 := dbuf.Int() - v7 := make([]*SecureFile, l7) - for i := int32(0); i < l7; i++ { - v7[i] = &SecureFile{} - v7[i].Decode(dbuf) - } - m.SetTranslation(v7) - - } - if (flags & (1 << 4)) != 0 { - c8 := dbuf.Int() - if c8 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 8, c8) - return dbuf.err - } - l8 := dbuf.Int() - v8 := make([]*SecureFile, l8) - for i := int32(0); i < l8; i++ { - v8[i] = &SecureFile{} - v8[i].Decode(dbuf) - } - m.SetFiles(v8) - - } - if (flags & (1 << 5)) != 0 { - m9 := &SecurePlainData{} - m9.Decode(dbuf) - m.SetPlainData(m9) - } - m.SetHash(dbuf.StringBytes()) +func (m *TLUpdateReadMessagesContents) Decode(dbuf *DecodeBuf) error { + m.SetMessages(dbuf.VectorInt()) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// EncryptedChat <-- -// + TL_EncryptedChatEmpty -// + TL_EncryptedChatWaiting -// + TL_EncryptedChatRequested -// + TL_EncryptedChat -// + TL_EncryptedChatDiscarded -// - -func (m *EncryptedChat) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_encryptedChatEmpty: - t := m.To_EncryptedChatEmpty() - return t.Encode() - case TLConstructor_CRC32_encryptedChatWaiting: - t := m.To_EncryptedChatWaiting() - return t.Encode() - case TLConstructor_CRC32_encryptedChatRequested: - t := m.To_EncryptedChatRequested() - return t.Encode() - case TLConstructor_CRC32_encryptedChat: - t := m.To_EncryptedChat() - return t.Encode() - case TLConstructor_CRC32_encryptedChatDiscarded: - t := m.To_EncryptedChatDiscarded() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update; +func (m *TLUpdateChannelTooLong) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChannelTooLong, + Data2: m.Data2, } } -func (m *EncryptedChat) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_encryptedChatEmpty: - t := m.To_EncryptedChatEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_encryptedChatWaiting: - t := m.To_EncryptedChatWaiting() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_encryptedChatRequested: - t := m.To_EncryptedChatRequested() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_encryptedChat: - t := m.To_EncryptedChat() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_encryptedChatDiscarded: - t := m.To_EncryptedChatDiscarded() - return t.EncodeToLayer(layer) +func (m *TLUpdateChannelTooLong) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateChannelTooLong) GetChannelId() int32 { return m.Data2.ChannelId } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateChannelTooLong) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateChannelTooLong) GetPts() int32 { return m.Data2.Pts } + +func NewTLUpdateChannelTooLong() *TLUpdateChannelTooLong { + return &TLUpdateChannelTooLong{Data2: &Update_Data{}} } -func (m *EncryptedChat) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_encryptedChatEmpty: - m2 := &TLEncryptedChatEmpty{Data2: &EncryptedChat_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_encryptedChatWaiting: - m2 := &TLEncryptedChatWaiting{Data2: &EncryptedChat_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_encryptedChatRequested: - m2 := &TLEncryptedChatRequested{Data2: &EncryptedChat_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_encryptedChat: - m2 := &TLEncryptedChat{Data2: &EncryptedChat_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_encryptedChatDiscarded: - m2 := &TLEncryptedChatDiscarded{Data2: &EncryptedChat_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateChannelTooLong) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateChannelTooLong)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + // flags + var flags uint32 = 0 + if m.GetPts() != 0 { + flags |= 1 << 0 } - return dbuf.err -} + x.UInt(flags) -// encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat; -func (m *EncryptedChat) To_EncryptedChatEmpty() *TLEncryptedChatEmpty { - return &TLEncryptedChatEmpty{ - Data2: m.Data2, + x.Int(m.GetChannelId()) + if m.GetPts() != 0 { + x.Int(m.GetPts()) } -} -// encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat; -func (m *EncryptedChat) To_EncryptedChatWaiting() *TLEncryptedChatWaiting { - return &TLEncryptedChatWaiting{ - Data2: m.Data2, - } + return x.buf } -// encryptedChatRequested#c878527e id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat; -func (m *EncryptedChat) To_EncryptedChatRequested() *TLEncryptedChatRequested { - return &TLEncryptedChatRequested{ - Data2: m.Data2, +func (m *TLUpdateChannelTooLong) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateChannelTooLong)) + + // flags + var flags uint32 = 0 + if m.GetPts() != 0 { + flags |= 1 << 0 } -} + x.UInt(flags) -// encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat; -func (m *EncryptedChat) To_EncryptedChat() *TLEncryptedChat { - return &TLEncryptedChat{ - Data2: m.Data2, + x.Int(m.GetChannelId()) + if m.GetPts() != 0 { + x.Int(m.GetPts()) } + + return x.buf } -// encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat; -func (m *EncryptedChat) To_EncryptedChatDiscarded() *TLEncryptedChatDiscarded { - return &TLEncryptedChatDiscarded{ - Data2: m.Data2, +func (m *TLUpdateChannelTooLong) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetChannelId(dbuf.Int()) + if (flags & (1 << 0)) != 0 { + m.SetPts(dbuf.Int()) } + + return dbuf.err } -// encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat; -func (m *TLEncryptedChatEmpty) To_EncryptedChat() *EncryptedChat { - return &EncryptedChat{ - Constructor: TLConstructor_CRC32_encryptedChatEmpty, +// updateChannel#b6d45656 channel_id:int = Update; +func (m *TLUpdateChannel) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChannel, Data2: m.Data2, } } -func (m *TLEncryptedChatEmpty) SetId(v int32) { m.Data2.Id = v } -func (m *TLEncryptedChatEmpty) GetId() int32 { return m.Data2.Id } +func (m *TLUpdateChannel) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateChannel) GetChannelId() int32 { return m.Data2.ChannelId } -func NewTLEncryptedChatEmpty() *TLEncryptedChatEmpty { - return &TLEncryptedChatEmpty{Data2: &EncryptedChat_Data{}} +func NewTLUpdateChannel() *TLUpdateChannel { + return &TLUpdateChannel{Data2: &Update_Data{}} } -func (m *TLEncryptedChatEmpty) Encode() []byte { +func (m *TLUpdateChannel) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChatEmpty)) + x.Int(int32(TLConstructor_CRC32_updateChannel)) - x.Int(m.GetId()) + x.Int(m.GetChannelId()) return x.buf } -func (m *TLEncryptedChatEmpty) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChannel) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChatEmpty)) + x.Int(int32(TLConstructor_CRC32_updateChannel)) - x.Int(m.GetId()) + x.Int(m.GetChannelId()) return x.buf } -func (m *TLEncryptedChatEmpty) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) +func (m *TLUpdateChannel) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) return dbuf.err } -// encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat; -func (m *TLEncryptedChatWaiting) To_EncryptedChat() *EncryptedChat { - return &EncryptedChat{ - Constructor: TLConstructor_CRC32_encryptedChatWaiting, +// updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update; +func (m *TLUpdateNewChannelMessage) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateNewChannelMessage, Data2: m.Data2, } } -func (m *TLEncryptedChatWaiting) SetId(v int32) { m.Data2.Id = v } -func (m *TLEncryptedChatWaiting) GetId() int32 { return m.Data2.Id } - -func (m *TLEncryptedChatWaiting) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLEncryptedChatWaiting) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLEncryptedChatWaiting) SetDate(v int32) { m.Data2.Date = v } -func (m *TLEncryptedChatWaiting) GetDate() int32 { return m.Data2.Date } +func (m *TLUpdateNewChannelMessage) SetMessage(v *Message) { m.Data2.Message_1 = v } +func (m *TLUpdateNewChannelMessage) GetMessage() *Message { return m.Data2.Message_1 } -func (m *TLEncryptedChatWaiting) SetAdminId(v int32) { m.Data2.AdminId = v } -func (m *TLEncryptedChatWaiting) GetAdminId() int32 { return m.Data2.AdminId } +func (m *TLUpdateNewChannelMessage) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateNewChannelMessage) GetPts() int32 { return m.Data2.Pts } -func (m *TLEncryptedChatWaiting) SetParticipantId(v int32) { m.Data2.ParticipantId = v } -func (m *TLEncryptedChatWaiting) GetParticipantId() int32 { return m.Data2.ParticipantId } +func (m *TLUpdateNewChannelMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateNewChannelMessage) GetPtsCount() int32 { return m.Data2.PtsCount } -func NewTLEncryptedChatWaiting() *TLEncryptedChatWaiting { - return &TLEncryptedChatWaiting{Data2: &EncryptedChat_Data{}} +func NewTLUpdateNewChannelMessage() *TLUpdateNewChannelMessage { + return &TLUpdateNewChannelMessage{Data2: &Update_Data{}} } -func (m *TLEncryptedChatWaiting) Encode() []byte { +func (m *TLUpdateNewChannelMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChatWaiting)) + x.Int(int32(TLConstructor_CRC32_updateNewChannelMessage)) - x.Int(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) + x.Bytes(m.GetMessage().Encode()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLEncryptedChatWaiting) EncodeToLayer(layer int) []byte { +func (m *TLUpdateNewChannelMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChatWaiting)) + x.Int(int32(TLConstructor_CRC32_updateNewChannelMessage)) - x.Int(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) + x.Bytes(m.GetMessage().EncodeToLayer(layer)) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLEncryptedChatWaiting) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetAccessHash(dbuf.Long()) - m.SetDate(dbuf.Int()) - m.SetAdminId(dbuf.Int()) - m.SetParticipantId(dbuf.Int()) +func (m *TLUpdateNewChannelMessage) Decode(dbuf *DecodeBuf) error { + m1 := &Message{} + m1.Decode(dbuf) + m.SetMessage(m1) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -// encryptedChatRequested#c878527e id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat; -func (m *TLEncryptedChatRequested) To_EncryptedChat() *EncryptedChat { - return &EncryptedChat{ - Constructor: TLConstructor_CRC32_encryptedChatRequested, +// updateReadChannelInbox#4214f37f channel_id:int max_id:int = Update; +func (m *TLUpdateReadChannelInbox) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateReadChannelInbox, Data2: m.Data2, } } -func (m *TLEncryptedChatRequested) SetId(v int32) { m.Data2.Id = v } -func (m *TLEncryptedChatRequested) GetId() int32 { return m.Data2.Id } - -func (m *TLEncryptedChatRequested) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLEncryptedChatRequested) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLEncryptedChatRequested) SetDate(v int32) { m.Data2.Date = v } -func (m *TLEncryptedChatRequested) GetDate() int32 { return m.Data2.Date } - -func (m *TLEncryptedChatRequested) SetAdminId(v int32) { m.Data2.AdminId = v } -func (m *TLEncryptedChatRequested) GetAdminId() int32 { return m.Data2.AdminId } - -func (m *TLEncryptedChatRequested) SetParticipantId(v int32) { m.Data2.ParticipantId = v } -func (m *TLEncryptedChatRequested) GetParticipantId() int32 { return m.Data2.ParticipantId } +func (m *TLUpdateReadChannelInbox) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateReadChannelInbox) GetChannelId() int32 { return m.Data2.ChannelId } -func (m *TLEncryptedChatRequested) SetGA(v []byte) { m.Data2.GA = v } -func (m *TLEncryptedChatRequested) GetGA() []byte { return m.Data2.GA } +func (m *TLUpdateReadChannelInbox) SetMaxId(v int32) { m.Data2.MaxId = v } +func (m *TLUpdateReadChannelInbox) GetMaxId() int32 { return m.Data2.MaxId } -func NewTLEncryptedChatRequested() *TLEncryptedChatRequested { - return &TLEncryptedChatRequested{Data2: &EncryptedChat_Data{}} +func NewTLUpdateReadChannelInbox() *TLUpdateReadChannelInbox { + return &TLUpdateReadChannelInbox{Data2: &Update_Data{}} } -func (m *TLEncryptedChatRequested) Encode() []byte { +func (m *TLUpdateReadChannelInbox) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChatRequested)) + x.Int(int32(TLConstructor_CRC32_updateReadChannelInbox)) - x.Int(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGA()) + x.Int(m.GetChannelId()) + x.Int(m.GetMaxId()) return x.buf } -func (m *TLEncryptedChatRequested) EncodeToLayer(layer int) []byte { +func (m *TLUpdateReadChannelInbox) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChatRequested)) + x.Int(int32(TLConstructor_CRC32_updateReadChannelInbox)) - x.Int(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGA()) + x.Int(m.GetChannelId()) + x.Int(m.GetMaxId()) return x.buf } -func (m *TLEncryptedChatRequested) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetAccessHash(dbuf.Long()) - m.SetDate(dbuf.Int()) - m.SetAdminId(dbuf.Int()) - m.SetParticipantId(dbuf.Int()) - m.SetGA(dbuf.StringBytes()) +func (m *TLUpdateReadChannelInbox) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) + m.SetMaxId(dbuf.Int()) return dbuf.err } -// encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat; -func (m *TLEncryptedChat) To_EncryptedChat() *EncryptedChat { - return &EncryptedChat{ - Constructor: TLConstructor_CRC32_encryptedChat, +// updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector pts:int pts_count:int = Update; +func (m *TLUpdateDeleteChannelMessages) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateDeleteChannelMessages, Data2: m.Data2, } } -func (m *TLEncryptedChat) SetId(v int32) { m.Data2.Id = v } -func (m *TLEncryptedChat) GetId() int32 { return m.Data2.Id } - -func (m *TLEncryptedChat) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLEncryptedChat) GetAccessHash() int64 { return m.Data2.AccessHash } - -func (m *TLEncryptedChat) SetDate(v int32) { m.Data2.Date = v } -func (m *TLEncryptedChat) GetDate() int32 { return m.Data2.Date } - -func (m *TLEncryptedChat) SetAdminId(v int32) { m.Data2.AdminId = v } -func (m *TLEncryptedChat) GetAdminId() int32 { return m.Data2.AdminId } +func (m *TLUpdateDeleteChannelMessages) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateDeleteChannelMessages) GetChannelId() int32 { return m.Data2.ChannelId } -func (m *TLEncryptedChat) SetParticipantId(v int32) { m.Data2.ParticipantId = v } -func (m *TLEncryptedChat) GetParticipantId() int32 { return m.Data2.ParticipantId } +func (m *TLUpdateDeleteChannelMessages) SetMessages(v []int32) { m.Data2.Messages = v } +func (m *TLUpdateDeleteChannelMessages) GetMessages() []int32 { return m.Data2.Messages } -func (m *TLEncryptedChat) SetGAOrB(v []byte) { m.Data2.GAOrB = v } -func (m *TLEncryptedChat) GetGAOrB() []byte { return m.Data2.GAOrB } +func (m *TLUpdateDeleteChannelMessages) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateDeleteChannelMessages) GetPts() int32 { return m.Data2.Pts } -func (m *TLEncryptedChat) SetKeyFingerprint(v int64) { m.Data2.KeyFingerprint = v } -func (m *TLEncryptedChat) GetKeyFingerprint() int64 { return m.Data2.KeyFingerprint } +func (m *TLUpdateDeleteChannelMessages) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateDeleteChannelMessages) GetPtsCount() int32 { return m.Data2.PtsCount } -func NewTLEncryptedChat() *TLEncryptedChat { - return &TLEncryptedChat{Data2: &EncryptedChat_Data{}} +func NewTLUpdateDeleteChannelMessages() *TLUpdateDeleteChannelMessages { + return &TLUpdateDeleteChannelMessages{Data2: &Update_Data{}} } -func (m *TLEncryptedChat) Encode() []byte { +func (m *TLUpdateDeleteChannelMessages) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChat)) + x.Int(int32(TLConstructor_CRC32_updateDeleteChannelMessages)) - x.Int(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGAOrB()) - x.Long(m.GetKeyFingerprint()) + x.Int(m.GetChannelId()) + x.VectorInt(m.GetMessages()) + + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLEncryptedChat) EncodeToLayer(layer int) []byte { +func (m *TLUpdateDeleteChannelMessages) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChat)) + x.Int(int32(TLConstructor_CRC32_updateDeleteChannelMessages)) - x.Int(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.Int(m.GetAdminId()) - x.Int(m.GetParticipantId()) - x.StringBytes(m.GetGAOrB()) - x.Long(m.GetKeyFingerprint()) + x.Int(m.GetChannelId()) + x.VectorInt(m.GetMessages()) + + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLEncryptedChat) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Int()) - m.SetAccessHash(dbuf.Long()) - m.SetDate(dbuf.Int()) - m.SetAdminId(dbuf.Int()) - m.SetParticipantId(dbuf.Int()) - m.SetGAOrB(dbuf.StringBytes()) - m.SetKeyFingerprint(dbuf.Long()) +func (m *TLUpdateDeleteChannelMessages) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) + m.SetMessages(dbuf.VectorInt()) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -// encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat; -func (m *TLEncryptedChatDiscarded) To_EncryptedChat() *EncryptedChat { - return &EncryptedChat{ - Constructor: TLConstructor_CRC32_encryptedChatDiscarded, +// updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update; +func (m *TLUpdateChannelMessageViews) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChannelMessageViews, Data2: m.Data2, } } -func (m *TLEncryptedChatDiscarded) SetId(v int32) { m.Data2.Id = v } -func (m *TLEncryptedChatDiscarded) GetId() int32 { return m.Data2.Id } +func (m *TLUpdateChannelMessageViews) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateChannelMessageViews) GetChannelId() int32 { return m.Data2.ChannelId } -func NewTLEncryptedChatDiscarded() *TLEncryptedChatDiscarded { - return &TLEncryptedChatDiscarded{Data2: &EncryptedChat_Data{}} +func (m *TLUpdateChannelMessageViews) SetId(v int32) { m.Data2.Id_4 = v } +func (m *TLUpdateChannelMessageViews) GetId() int32 { return m.Data2.Id_4 } + +func (m *TLUpdateChannelMessageViews) SetViews(v int32) { m.Data2.Views = v } +func (m *TLUpdateChannelMessageViews) GetViews() int32 { return m.Data2.Views } + +func NewTLUpdateChannelMessageViews() *TLUpdateChannelMessageViews { + return &TLUpdateChannelMessageViews{Data2: &Update_Data{}} } -func (m *TLEncryptedChatDiscarded) Encode() []byte { +func (m *TLUpdateChannelMessageViews) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChatDiscarded)) + x.Int(int32(TLConstructor_CRC32_updateChannelMessageViews)) + x.Int(m.GetChannelId()) x.Int(m.GetId()) + x.Int(m.GetViews()) return x.buf } -func (m *TLEncryptedChatDiscarded) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChannelMessageViews) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_encryptedChatDiscarded)) + x.Int(int32(TLConstructor_CRC32_updateChannelMessageViews)) + x.Int(m.GetChannelId()) x.Int(m.GetId()) + x.Int(m.GetViews()) return x.buf } -func (m *TLEncryptedChatDiscarded) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateChannelMessageViews) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) m.SetId(dbuf.Int()) + m.SetViews(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// FileHash <-- -// + TL_FileHash -// - -func (m *FileHash) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_fileHash: - t := m.To_FileHash() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *FileHash) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_fileHash: - t := m.To_FileHash() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *FileHash) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_fileHash: - m2 := &TLFileHash{Data2: &FileHash_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// fileHash#6242c773 offset:int limit:int hash:bytes = FileHash; -func (m *FileHash) To_FileHash() *TLFileHash { - return &TLFileHash{ - Data2: m.Data2, - } -} - -// fileHash#6242c773 offset:int limit:int hash:bytes = FileHash; -func (m *TLFileHash) To_FileHash() *FileHash { - return &FileHash{ - Constructor: TLConstructor_CRC32_fileHash, +// updateChatAdmins#6e947941 chat_id:int enabled:Bool version:int = Update; +func (m *TLUpdateChatAdmins) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChatAdmins, Data2: m.Data2, } } -func (m *TLFileHash) SetOffset(v int32) { m.Data2.Offset = v } -func (m *TLFileHash) GetOffset() int32 { return m.Data2.Offset } +func (m *TLUpdateChatAdmins) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLUpdateChatAdmins) GetChatId() int32 { return m.Data2.ChatId } -func (m *TLFileHash) SetLimit(v int32) { m.Data2.Limit = v } -func (m *TLFileHash) GetLimit() int32 { return m.Data2.Limit } +func (m *TLUpdateChatAdmins) SetEnabled(v *Bool) { m.Data2.Enabled = v } +func (m *TLUpdateChatAdmins) GetEnabled() *Bool { return m.Data2.Enabled } -func (m *TLFileHash) SetHash(v []byte) { m.Data2.Hash = v } -func (m *TLFileHash) GetHash() []byte { return m.Data2.Hash } +func (m *TLUpdateChatAdmins) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLUpdateChatAdmins) GetVersion() int32 { return m.Data2.Version } -func NewTLFileHash() *TLFileHash { - return &TLFileHash{Data2: &FileHash_Data{}} +func NewTLUpdateChatAdmins() *TLUpdateChatAdmins { + return &TLUpdateChatAdmins{Data2: &Update_Data{}} } -func (m *TLFileHash) Encode() []byte { +func (m *TLUpdateChatAdmins) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_fileHash)) + x.Int(int32(TLConstructor_CRC32_updateChatAdmins)) - x.Int(m.GetOffset()) - x.Int(m.GetLimit()) - x.StringBytes(m.GetHash()) + x.Int(m.GetChatId()) + x.Bytes(m.GetEnabled().Encode()) + x.Int(m.GetVersion()) return x.buf } -func (m *TLFileHash) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChatAdmins) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_fileHash)) + x.Int(int32(TLConstructor_CRC32_updateChatAdmins)) - x.Int(m.GetOffset()) - x.Int(m.GetLimit()) - x.StringBytes(m.GetHash()) + x.Int(m.GetChatId()) + x.Bytes(m.GetEnabled().EncodeToLayer(layer)) + x.Int(m.GetVersion()) return x.buf } -func (m *TLFileHash) Decode(dbuf *DecodeBuf) error { - m.SetOffset(dbuf.Int()) - m.SetLimit(dbuf.Int()) - m.SetHash(dbuf.StringBytes()) +func (m *TLUpdateChatAdmins) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) + m2 := &Bool{} + m2.Decode(dbuf) + m.SetEnabled(m2) + m.SetVersion(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Contacts_Link <-- -// + TL_ContactsLink -// +// updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update; +func (m *TLUpdateChatParticipantAdmin) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChatParticipantAdmin, + Data2: m.Data2, + } +} -func (m *Contacts_Link) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_contacts_link: - t := m.To_ContactsLink() - return t.Encode() +func (m *TLUpdateChatParticipantAdmin) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLUpdateChatParticipantAdmin) GetChatId() int32 { return m.Data2.ChatId } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateChatParticipantAdmin) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateChatParticipantAdmin) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLUpdateChatParticipantAdmin) SetIsAdmin(v *Bool) { m.Data2.IsAdmin = v } +func (m *TLUpdateChatParticipantAdmin) GetIsAdmin() *Bool { return m.Data2.IsAdmin } + +func (m *TLUpdateChatParticipantAdmin) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLUpdateChatParticipantAdmin) GetVersion() int32 { return m.Data2.Version } + +func NewTLUpdateChatParticipantAdmin() *TLUpdateChatParticipantAdmin { + return &TLUpdateChatParticipantAdmin{Data2: &Update_Data{}} } -func (m *Contacts_Link) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_contacts_link: - t := m.To_ContactsLink() - return t.EncodeToLayer(layer) +func (m *TLUpdateChatParticipantAdmin) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateChatParticipantAdmin)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Bytes(m.GetIsAdmin().Encode()) + x.Int(m.GetVersion()) + + return x.buf } -func (m *Contacts_Link) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_contacts_link: - m2 := &TLContactsLink{Data2: &Contacts_Link_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateChatParticipantAdmin) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateChatParticipantAdmin)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Int(m.GetChatId()) + x.Int(m.GetUserId()) + x.Bytes(m.GetIsAdmin().EncodeToLayer(layer)) + x.Int(m.GetVersion()) + + return x.buf } -// contacts.link#3ace484c my_link:ContactLink foreign_link:ContactLink user:User = contacts.Link; -func (m *Contacts_Link) To_ContactsLink() *TLContactsLink { - return &TLContactsLink{ - Data2: m.Data2, - } +func (m *TLUpdateChatParticipantAdmin) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) + m.SetUserId(dbuf.Int()) + m3 := &Bool{} + m3.Decode(dbuf) + m.SetIsAdmin(m3) + m.SetVersion(dbuf.Int()) + + return dbuf.err } -// contacts.link#3ace484c my_link:ContactLink foreign_link:ContactLink user:User = contacts.Link; -func (m *TLContactsLink) To_Contacts_Link() *Contacts_Link { - return &Contacts_Link{ - Constructor: TLConstructor_CRC32_contacts_link, +// updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; +func (m *TLUpdateNewStickerSet) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateNewStickerSet, Data2: m.Data2, } } -func (m *TLContactsLink) SetMyLink(v *ContactLink) { m.Data2.MyLink = v } -func (m *TLContactsLink) GetMyLink() *ContactLink { return m.Data2.MyLink } - -func (m *TLContactsLink) SetForeignLink(v *ContactLink) { m.Data2.ForeignLink = v } -func (m *TLContactsLink) GetForeignLink() *ContactLink { return m.Data2.ForeignLink } - -func (m *TLContactsLink) SetUser(v *User) { m.Data2.User = v } -func (m *TLContactsLink) GetUser() *User { return m.Data2.User } +func (m *TLUpdateNewStickerSet) SetStickerset(v *Messages_StickerSet) { m.Data2.Stickerset = v } +func (m *TLUpdateNewStickerSet) GetStickerset() *Messages_StickerSet { return m.Data2.Stickerset } -func NewTLContactsLink() *TLContactsLink { - return &TLContactsLink{Data2: &Contacts_Link_Data{}} +func NewTLUpdateNewStickerSet() *TLUpdateNewStickerSet { + return &TLUpdateNewStickerSet{Data2: &Update_Data{}} } -func (m *TLContactsLink) Encode() []byte { +func (m *TLUpdateNewStickerSet) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_link)) + x.Int(int32(TLConstructor_CRC32_updateNewStickerSet)) - x.Bytes(m.GetMyLink().Encode()) - x.Bytes(m.GetForeignLink().Encode()) - x.Bytes(m.GetUser().Encode()) + x.Bytes(m.GetStickerset().Encode()) return x.buf } -func (m *TLContactsLink) EncodeToLayer(layer int) []byte { +func (m *TLUpdateNewStickerSet) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_link)) + x.Int(int32(TLConstructor_CRC32_updateNewStickerSet)) - x.Bytes(m.GetMyLink().EncodeToLayer(layer)) - x.Bytes(m.GetForeignLink().EncodeToLayer(layer)) - x.Bytes(m.GetUser().EncodeToLayer(layer)) + x.Bytes(m.GetStickerset().EncodeToLayer(layer)) return x.buf } -func (m *TLContactsLink) Decode(dbuf *DecodeBuf) error { - m1 := &ContactLink{} +func (m *TLUpdateNewStickerSet) Decode(dbuf *DecodeBuf) error { + m1 := &Messages_StickerSet{} m1.Decode(dbuf) - m.SetMyLink(m1) - m2 := &ContactLink{} - m2.Decode(dbuf) - m.SetForeignLink(m2) - m3 := &User{} - m3.Decode(dbuf) - m.SetUser(m3) + m.SetStickerset(m1) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Messages_SavedGifs <-- -// + TL_MessagesSavedGifsNotModified -// + TL_MessagesSavedGifs -// +// updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector = Update; +func (m *TLUpdateStickerSetsOrder) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateStickerSetsOrder, + Data2: m.Data2, + } +} -func (m *Messages_SavedGifs) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_savedGifsNotModified: - t := m.To_MessagesSavedGifsNotModified() - return t.Encode() - case TLConstructor_CRC32_messages_savedGifs: - t := m.To_MessagesSavedGifs() - return t.Encode() +func (m *TLUpdateStickerSetsOrder) SetMasks(v bool) { m.Data2.Masks = v } +func (m *TLUpdateStickerSetsOrder) GetMasks() bool { return m.Data2.Masks } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateStickerSetsOrder) SetOrder(v []int64) { m.Data2.Order_48 = v } +func (m *TLUpdateStickerSetsOrder) GetOrder() []int64 { return m.Data2.Order_48 } + +func NewTLUpdateStickerSetsOrder() *TLUpdateStickerSetsOrder { + return &TLUpdateStickerSetsOrder{Data2: &Update_Data{}} } -func (m *Messages_SavedGifs) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_savedGifsNotModified: - t := m.To_MessagesSavedGifsNotModified() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_savedGifs: - t := m.To_MessagesSavedGifs() - return t.EncodeToLayer(layer) +func (m *TLUpdateStickerSetsOrder) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateStickerSetsOrder)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetMasks() == true { + flags |= 1 << 0 } + x.UInt(flags) + + x.VectorLong(m.GetOrder()) + + return x.buf } -func (m *Messages_SavedGifs) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_savedGifsNotModified: - m2 := &TLMessagesSavedGifsNotModified{Data2: &Messages_SavedGifs_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_savedGifs: - m2 := &TLMessagesSavedGifs{Data2: &Messages_SavedGifs_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateStickerSetsOrder) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateStickerSetsOrder)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + // flags + var flags uint32 = 0 + if m.GetMasks() == true { + flags |= 1 << 0 } - return dbuf.err + x.UInt(flags) + + x.VectorLong(m.GetOrder()) + + return x.buf } -// messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs; -func (m *Messages_SavedGifs) To_MessagesSavedGifsNotModified() *TLMessagesSavedGifsNotModified { - return &TLMessagesSavedGifsNotModified{ - Data2: m.Data2, +func (m *TLUpdateStickerSetsOrder) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetMasks(true) } + m.SetOrder(dbuf.VectorLong()) + + return dbuf.err } -// messages.savedGifs#2e0709a5 hash:int gifs:Vector = messages.SavedGifs; -func (m *Messages_SavedGifs) To_MessagesSavedGifs() *TLMessagesSavedGifs { - return &TLMessagesSavedGifs{ - Data2: m.Data2, +// updateStickerSets#43ae3dec = Update; +func (m *TLUpdateStickerSets) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateStickerSets, + Data2: m.Data2, } } -// messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs; -func (m *TLMessagesSavedGifsNotModified) To_Messages_SavedGifs() *Messages_SavedGifs { - return &Messages_SavedGifs{ - Constructor: TLConstructor_CRC32_messages_savedGifsNotModified, +func NewTLUpdateStickerSets() *TLUpdateStickerSets { + return &TLUpdateStickerSets{Data2: &Update_Data{}} +} + +func (m *TLUpdateStickerSets) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateStickerSets)) + + return x.buf +} + +func (m *TLUpdateStickerSets) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateStickerSets)) + + return x.buf +} + +func (m *TLUpdateStickerSets) Decode(dbuf *DecodeBuf) error { + + return dbuf.err +} + +// updateSavedGifs#9375341e = Update; +func (m *TLUpdateSavedGifs) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateSavedGifs, Data2: m.Data2, } } -func NewTLMessagesSavedGifsNotModified() *TLMessagesSavedGifsNotModified { - return &TLMessagesSavedGifsNotModified{Data2: &Messages_SavedGifs_Data{}} +func NewTLUpdateSavedGifs() *TLUpdateSavedGifs { + return &TLUpdateSavedGifs{Data2: &Update_Data{}} } -func (m *TLMessagesSavedGifsNotModified) Encode() []byte { +func (m *TLUpdateSavedGifs) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_savedGifsNotModified)) + x.Int(int32(TLConstructor_CRC32_updateSavedGifs)) return x.buf } -func (m *TLMessagesSavedGifsNotModified) EncodeToLayer(layer int) []byte { +func (m *TLUpdateSavedGifs) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_savedGifsNotModified)) + x.Int(int32(TLConstructor_CRC32_updateSavedGifs)) return x.buf } -func (m *TLMessagesSavedGifsNotModified) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateSavedGifs) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.savedGifs#2e0709a5 hash:int gifs:Vector = messages.SavedGifs; -func (m *TLMessagesSavedGifs) To_Messages_SavedGifs() *Messages_SavedGifs { - return &Messages_SavedGifs{ - Constructor: TLConstructor_CRC32_messages_savedGifs, +// updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update; +func (m *TLUpdateBotInlineQuery) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateBotInlineQuery, Data2: m.Data2, } } -func (m *TLMessagesSavedGifs) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLMessagesSavedGifs) GetHash() int32 { return m.Data2.Hash } +func (m *TLUpdateBotInlineQuery) SetQueryId(v int64) { m.Data2.QueryId = v } +func (m *TLUpdateBotInlineQuery) GetQueryId() int64 { return m.Data2.QueryId } -func (m *TLMessagesSavedGifs) SetGifs(v []*Document) { m.Data2.Gifs = v } -func (m *TLMessagesSavedGifs) GetGifs() []*Document { return m.Data2.Gifs } +func (m *TLUpdateBotInlineQuery) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateBotInlineQuery) GetUserId() int32 { return m.Data2.UserId } -func NewTLMessagesSavedGifs() *TLMessagesSavedGifs { - return &TLMessagesSavedGifs{Data2: &Messages_SavedGifs_Data{}} +func (m *TLUpdateBotInlineQuery) SetQuery(v string) { m.Data2.Query = v } +func (m *TLUpdateBotInlineQuery) GetQuery() string { return m.Data2.Query } + +func (m *TLUpdateBotInlineQuery) SetGeo(v *GeoPoint) { m.Data2.Geo = v } +func (m *TLUpdateBotInlineQuery) GetGeo() *GeoPoint { return m.Data2.Geo } + +func (m *TLUpdateBotInlineQuery) SetOffset(v string) { m.Data2.Offset = v } +func (m *TLUpdateBotInlineQuery) GetOffset() string { return m.Data2.Offset } + +func NewTLUpdateBotInlineQuery() *TLUpdateBotInlineQuery { + return &TLUpdateBotInlineQuery{Data2: &Update_Data{}} } -func (m *TLMessagesSavedGifs) Encode() []byte { +func (m *TLUpdateBotInlineQuery) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_savedGifs)) + x.Int(int32(TLConstructor_CRC32_updateBotInlineQuery)) - x.Int(m.GetHash()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetGifs()))) - for _, v := range m.GetGifs() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetGeo() != nil { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.String(m.GetQuery()) + if m.GetGeo() != nil { + x.Bytes(m.GetGeo().Encode()) } + x.String(m.GetOffset()) return x.buf } -func (m *TLMessagesSavedGifs) EncodeToLayer(layer int) []byte { +func (m *TLUpdateBotInlineQuery) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_savedGifs)) + x.Int(int32(TLConstructor_CRC32_updateBotInlineQuery)) - x.Int(m.GetHash()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetGifs()))) - for _, v := range m.GetGifs() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetGeo() != nil { + flags |= 1 << 0 + } + x.UInt(flags) + + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.String(m.GetQuery()) + if m.GetGeo() != nil { + x.Bytes(m.GetGeo().EncodeToLayer(layer)) } + x.String(m.GetOffset()) return x.buf } -func (m *TLMessagesSavedGifs) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Document, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Document{} - v2[i].Decode(dbuf) +func (m *TLUpdateBotInlineQuery) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetQueryId(dbuf.Long()) + m.SetUserId(dbuf.Int()) + m.SetQuery(dbuf.String()) + if (flags & (1 << 0)) != 0 { + m5 := &GeoPoint{} + m5.Decode(dbuf) + m.SetGeo(m5) } - m.SetGifs(v2) + m.SetOffset(dbuf.String()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Contacts_ResolvedPeer <-- -// + TL_ContactsResolvedPeer -// +// updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update; +func (m *TLUpdateBotInlineSend) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateBotInlineSend, + Data2: m.Data2, + } +} -func (m *Contacts_ResolvedPeer) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_contacts_resolvedPeer: - t := m.To_ContactsResolvedPeer() - return t.Encode() +func (m *TLUpdateBotInlineSend) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateBotInlineSend) GetUserId() int32 { return m.Data2.UserId } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateBotInlineSend) SetQuery(v string) { m.Data2.Query = v } +func (m *TLUpdateBotInlineSend) GetQuery() string { return m.Data2.Query } + +func (m *TLUpdateBotInlineSend) SetGeo(v *GeoPoint) { m.Data2.Geo = v } +func (m *TLUpdateBotInlineSend) GetGeo() *GeoPoint { return m.Data2.Geo } + +func (m *TLUpdateBotInlineSend) SetId(v string) { m.Data2.Id_53 = v } +func (m *TLUpdateBotInlineSend) GetId() string { return m.Data2.Id_53 } + +func (m *TLUpdateBotInlineSend) SetMsgId(v *InputBotInlineMessageID) { m.Data2.MsgId_54 = v } +func (m *TLUpdateBotInlineSend) GetMsgId() *InputBotInlineMessageID { return m.Data2.MsgId_54 } + +func NewTLUpdateBotInlineSend() *TLUpdateBotInlineSend { + return &TLUpdateBotInlineSend{Data2: &Update_Data{}} } -func (m *Contacts_ResolvedPeer) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_contacts_resolvedPeer: - t := m.To_ContactsResolvedPeer() - return t.EncodeToLayer(layer) +func (m *TLUpdateBotInlineSend) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateBotInlineSend)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetGeo() != nil { + flags |= 1 << 0 } + if m.GetMsgId() != nil { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetUserId()) + x.String(m.GetQuery()) + if m.GetGeo() != nil { + x.Bytes(m.GetGeo().Encode()) + } + x.String(m.GetId()) + if m.GetMsgId() != nil { + x.Bytes(m.GetMsgId().Encode()) + } + + return x.buf } -func (m *Contacts_ResolvedPeer) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_contacts_resolvedPeer: - m2 := &TLContactsResolvedPeer{Data2: &Contacts_ResolvedPeer_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateBotInlineSend) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateBotInlineSend)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + // flags + var flags uint32 = 0 + if m.GetGeo() != nil { + flags |= 1 << 0 } - return dbuf.err + if m.GetMsgId() != nil { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Int(m.GetUserId()) + x.String(m.GetQuery()) + if m.GetGeo() != nil { + x.Bytes(m.GetGeo().EncodeToLayer(layer)) + } + x.String(m.GetId()) + if m.GetMsgId() != nil { + x.Bytes(m.GetMsgId().EncodeToLayer(layer)) + } + + return x.buf } -// contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer; -func (m *Contacts_ResolvedPeer) To_ContactsResolvedPeer() *TLContactsResolvedPeer { - return &TLContactsResolvedPeer{ - Data2: m.Data2, +func (m *TLUpdateBotInlineSend) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetUserId(dbuf.Int()) + m.SetQuery(dbuf.String()) + if (flags & (1 << 0)) != 0 { + m4 := &GeoPoint{} + m4.Decode(dbuf) + m.SetGeo(m4) + } + m.SetId(dbuf.String()) + if (flags & (1 << 1)) != 0 { + m6 := &InputBotInlineMessageID{} + m6.Decode(dbuf) + m.SetMsgId(m6) } + + return dbuf.err } -// contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer; -func (m *TLContactsResolvedPeer) To_Contacts_ResolvedPeer() *Contacts_ResolvedPeer { - return &Contacts_ResolvedPeer{ - Constructor: TLConstructor_CRC32_contacts_resolvedPeer, +// updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update; +func (m *TLUpdateEditChannelMessage) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateEditChannelMessage, Data2: m.Data2, } } -func (m *TLContactsResolvedPeer) SetPeer(v *Peer) { m.Data2.Peer = v } -func (m *TLContactsResolvedPeer) GetPeer() *Peer { return m.Data2.Peer } +func (m *TLUpdateEditChannelMessage) SetMessage(v *Message) { m.Data2.Message_1 = v } +func (m *TLUpdateEditChannelMessage) GetMessage() *Message { return m.Data2.Message_1 } -func (m *TLContactsResolvedPeer) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLContactsResolvedPeer) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLUpdateEditChannelMessage) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateEditChannelMessage) GetPts() int32 { return m.Data2.Pts } -func (m *TLContactsResolvedPeer) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLContactsResolvedPeer) GetUsers() []*User { return m.Data2.Users } +func (m *TLUpdateEditChannelMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateEditChannelMessage) GetPtsCount() int32 { return m.Data2.PtsCount } -func NewTLContactsResolvedPeer() *TLContactsResolvedPeer { - return &TLContactsResolvedPeer{Data2: &Contacts_ResolvedPeer_Data{}} +func NewTLUpdateEditChannelMessage() *TLUpdateEditChannelMessage { + return &TLUpdateEditChannelMessage{Data2: &Update_Data{}} } -func (m *TLContactsResolvedPeer) Encode() []byte { +func (m *TLUpdateEditChannelMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_resolvedPeer)) + x.Int(int32(TLConstructor_CRC32_updateEditChannelMessage)) - x.Bytes(m.GetPeer().Encode()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetMessage().Encode()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLContactsResolvedPeer) EncodeToLayer(layer int) []byte { +func (m *TLUpdateEditChannelMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_resolvedPeer)) + x.Int(int32(TLConstructor_CRC32_updateEditChannelMessage)) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetMessage().EncodeToLayer(layer)) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLContactsResolvedPeer) Decode(dbuf *DecodeBuf) error { - m1 := &Peer{} +func (m *TLUpdateEditChannelMessage) Decode(dbuf *DecodeBuf) error { + m1 := &Message{} m1.Decode(dbuf) - m.SetPeer(m1) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Chat, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Chat{} - v2[i].Decode(dbuf) - } - m.SetChats(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*User, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &User{} - v3[i].Decode(dbuf) - } - m.SetUsers(v3) + m.SetMessage(m1) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// BotInlineResult <-- -// + TL_BotInlineResult -// + TL_BotInlineMediaResult -// - -func (m *BotInlineResult) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_botInlineResult: - t := m.To_BotInlineResult() - return t.Encode() - case TLConstructor_CRC32_botInlineMediaResult: - t := m.To_BotInlineMediaResult() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateChannelPinnedMessage#98592475 channel_id:int id:int = Update; +func (m *TLUpdateChannelPinnedMessage) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChannelPinnedMessage, + Data2: m.Data2, } } -func (m *BotInlineResult) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_botInlineResult: - t := m.To_BotInlineResult() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_botInlineMediaResult: - t := m.To_BotInlineMediaResult() - return t.EncodeToLayer(layer) +func (m *TLUpdateChannelPinnedMessage) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateChannelPinnedMessage) GetChannelId() int32 { return m.Data2.ChannelId } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateChannelPinnedMessage) SetId(v int32) { m.Data2.Id_4 = v } +func (m *TLUpdateChannelPinnedMessage) GetId() int32 { return m.Data2.Id_4 } + +func NewTLUpdateChannelPinnedMessage() *TLUpdateChannelPinnedMessage { + return &TLUpdateChannelPinnedMessage{Data2: &Update_Data{}} } -func (m *BotInlineResult) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_botInlineResult: - m2 := &TLBotInlineResult{Data2: &BotInlineResult_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_botInlineMediaResult: - m2 := &TLBotInlineMediaResult{Data2: &BotInlineResult_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateChannelPinnedMessage) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateChannelPinnedMessage)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Int(m.GetChannelId()) + x.Int(m.GetId()) + + return x.buf } -// botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult; -func (m *BotInlineResult) To_BotInlineResult() *TLBotInlineResult { - return &TLBotInlineResult{ - Data2: m.Data2, - } +func (m *TLUpdateChannelPinnedMessage) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateChannelPinnedMessage)) + + x.Int(m.GetChannelId()) + x.Int(m.GetId()) + + return x.buf } -// botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult; -func (m *BotInlineResult) To_BotInlineMediaResult() *TLBotInlineMediaResult { - return &TLBotInlineMediaResult{ - Data2: m.Data2, - } +func (m *TLUpdateChannelPinnedMessage) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) + m.SetId(dbuf.Int()) + + return dbuf.err } -// botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult; -func (m *TLBotInlineResult) To_BotInlineResult() *BotInlineResult { - return &BotInlineResult{ - Constructor: TLConstructor_CRC32_botInlineResult, +// updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; +func (m *TLUpdateBotCallbackQuery) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateBotCallbackQuery, Data2: m.Data2, } } -func (m *TLBotInlineResult) SetId(v string) { m.Data2.Id = v } -func (m *TLBotInlineResult) GetId() string { return m.Data2.Id } - -func (m *TLBotInlineResult) SetType(v string) { m.Data2.Type = v } -func (m *TLBotInlineResult) GetType() string { return m.Data2.Type } +func (m *TLUpdateBotCallbackQuery) SetQueryId(v int64) { m.Data2.QueryId = v } +func (m *TLUpdateBotCallbackQuery) GetQueryId() int64 { return m.Data2.QueryId } -func (m *TLBotInlineResult) SetTitle(v string) { m.Data2.Title = v } -func (m *TLBotInlineResult) GetTitle() string { return m.Data2.Title } +func (m *TLUpdateBotCallbackQuery) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateBotCallbackQuery) GetUserId() int32 { return m.Data2.UserId } -func (m *TLBotInlineResult) SetDescription(v string) { m.Data2.Description = v } -func (m *TLBotInlineResult) GetDescription() string { return m.Data2.Description } +func (m *TLUpdateBotCallbackQuery) SetPeer(v *Peer) { m.Data2.Peer_39 = v } +func (m *TLUpdateBotCallbackQuery) GetPeer() *Peer { return m.Data2.Peer_39 } -func (m *TLBotInlineResult) SetUrl(v string) { m.Data2.Url = v } -func (m *TLBotInlineResult) GetUrl() string { return m.Data2.Url } +func (m *TLUpdateBotCallbackQuery) SetMsgId(v int32) { m.Data2.MsgId_55 = v } +func (m *TLUpdateBotCallbackQuery) GetMsgId() int32 { return m.Data2.MsgId_55 } -func (m *TLBotInlineResult) SetThumb(v *WebDocument) { m.Data2.Thumb = v } -func (m *TLBotInlineResult) GetThumb() *WebDocument { return m.Data2.Thumb } +func (m *TLUpdateBotCallbackQuery) SetChatInstance(v int64) { m.Data2.ChatInstance = v } +func (m *TLUpdateBotCallbackQuery) GetChatInstance() int64 { return m.Data2.ChatInstance } -func (m *TLBotInlineResult) SetContent(v *WebDocument) { m.Data2.Content = v } -func (m *TLBotInlineResult) GetContent() *WebDocument { return m.Data2.Content } +func (m *TLUpdateBotCallbackQuery) SetData(v []byte) { m.Data2.Data_57 = v } +func (m *TLUpdateBotCallbackQuery) GetData() []byte { return m.Data2.Data_57 } -func (m *TLBotInlineResult) SetSendMessage(v *BotInlineMessage) { m.Data2.SendMessage = v } -func (m *TLBotInlineResult) GetSendMessage() *BotInlineMessage { return m.Data2.SendMessage } +func (m *TLUpdateBotCallbackQuery) SetGameShortName(v string) { m.Data2.GameShortName = v } +func (m *TLUpdateBotCallbackQuery) GetGameShortName() string { return m.Data2.GameShortName } -func NewTLBotInlineResult() *TLBotInlineResult { - return &TLBotInlineResult{Data2: &BotInlineResult_Data{}} +func NewTLUpdateBotCallbackQuery() *TLUpdateBotCallbackQuery { + return &TLUpdateBotCallbackQuery{Data2: &Update_Data{}} } -func (m *TLBotInlineResult) Encode() []byte { +func (m *TLUpdateBotCallbackQuery) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineResult)) + x.Int(int32(TLConstructor_CRC32_updateBotCallbackQuery)) // flags var flags uint32 = 0 - if m.GetTitle() != "" { - flags |= 1 << 1 - } - if m.GetDescription() != "" { - flags |= 1 << 2 - } - if m.GetUrl() != "" { - flags |= 1 << 3 - } - if m.GetThumb() != nil { - flags |= 1 << 4 + if m.GetData() != nil { + flags |= 1 << 0 } - if m.GetContent() != nil { - flags |= 1 << 5 + if m.GetGameShortName() != "" { + flags |= 1 << 1 } x.UInt(flags) - x.String(m.GetId()) - x.String(m.GetType()) - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetDescription() != "" { - x.String(m.GetDescription()) - } - if m.GetUrl() != "" { - x.String(m.GetUrl()) - } - if m.GetThumb() != nil { - x.Bytes(m.GetThumb().Encode()) + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.Bytes(m.GetPeer().Encode()) + x.Int(m.GetMsgId()) + x.Long(m.GetChatInstance()) + if m.GetData() != nil { + x.StringBytes(m.GetData()) } - if m.GetContent() != nil { - x.Bytes(m.GetContent().Encode()) + if m.GetGameShortName() != "" { + x.String(m.GetGameShortName()) } - x.Bytes(m.GetSendMessage().Encode()) return x.buf } -func (m *TLBotInlineResult) EncodeToLayer(layer int) []byte { +func (m *TLUpdateBotCallbackQuery) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineResult)) + x.Int(int32(TLConstructor_CRC32_updateBotCallbackQuery)) // flags var flags uint32 = 0 - if m.GetTitle() != "" { - flags |= 1 << 1 - } - if m.GetDescription() != "" { - flags |= 1 << 2 - } - if m.GetUrl() != "" { - flags |= 1 << 3 - } - if m.GetThumb() != nil { - flags |= 1 << 4 + if m.GetData() != nil { + flags |= 1 << 0 } - if m.GetContent() != nil { - flags |= 1 << 5 + if m.GetGameShortName() != "" { + flags |= 1 << 1 } x.UInt(flags) - x.String(m.GetId()) - x.String(m.GetType()) - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetDescription() != "" { - x.String(m.GetDescription()) - } - if m.GetUrl() != "" { - x.String(m.GetUrl()) - } - if m.GetThumb() != nil { - x.Bytes(m.GetThumb().EncodeToLayer(layer)) + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.Int(m.GetMsgId()) + x.Long(m.GetChatInstance()) + if m.GetData() != nil { + x.StringBytes(m.GetData()) } - if m.GetContent() != nil { - x.Bytes(m.GetContent().EncodeToLayer(layer)) + if m.GetGameShortName() != "" { + x.String(m.GetGameShortName()) } - x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) return x.buf } -func (m *TLBotInlineResult) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateBotCallbackQuery) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m.SetId(dbuf.String()) - m.SetType(dbuf.String()) - if (flags & (1 << 1)) != 0 { - m.SetTitle(dbuf.String()) - } - if (flags & (1 << 2)) != 0 { - m.SetDescription(dbuf.String()) - } - if (flags & (1 << 3)) != 0 { - m.SetUrl(dbuf.String()) - } - if (flags & (1 << 4)) != 0 { - m7 := &WebDocument{} - m7.Decode(dbuf) - m.SetThumb(m7) + m.SetQueryId(dbuf.Long()) + m.SetUserId(dbuf.Int()) + m4 := &Peer{} + m4.Decode(dbuf) + m.SetPeer(m4) + m.SetMsgId(dbuf.Int()) + m.SetChatInstance(dbuf.Long()) + if (flags & (1 << 0)) != 0 { + m.SetData(dbuf.StringBytes()) } - if (flags & (1 << 5)) != 0 { - m8 := &WebDocument{} - m8.Decode(dbuf) - m.SetContent(m8) + if (flags & (1 << 1)) != 0 { + m.SetGameShortName(dbuf.String()) } - m9 := &BotInlineMessage{} - m9.Decode(dbuf) - m.SetSendMessage(m9) return dbuf.err } -// botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult; -func (m *TLBotInlineMediaResult) To_BotInlineResult() *BotInlineResult { - return &BotInlineResult{ - Constructor: TLConstructor_CRC32_botInlineMediaResult, +// updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update; +func (m *TLUpdateEditMessage) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateEditMessage, Data2: m.Data2, } } -func (m *TLBotInlineMediaResult) SetId(v string) { m.Data2.Id = v } -func (m *TLBotInlineMediaResult) GetId() string { return m.Data2.Id } - -func (m *TLBotInlineMediaResult) SetType(v string) { m.Data2.Type = v } -func (m *TLBotInlineMediaResult) GetType() string { return m.Data2.Type } +func (m *TLUpdateEditMessage) SetMessage(v *Message) { m.Data2.Message_1 = v } +func (m *TLUpdateEditMessage) GetMessage() *Message { return m.Data2.Message_1 } -func (m *TLBotInlineMediaResult) SetPhoto(v *Photo) { m.Data2.Photo = v } -func (m *TLBotInlineMediaResult) GetPhoto() *Photo { return m.Data2.Photo } +func (m *TLUpdateEditMessage) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateEditMessage) GetPts() int32 { return m.Data2.Pts } -func (m *TLBotInlineMediaResult) SetDocument(v *Document) { m.Data2.Document = v } -func (m *TLBotInlineMediaResult) GetDocument() *Document { return m.Data2.Document } +func (m *TLUpdateEditMessage) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateEditMessage) GetPtsCount() int32 { return m.Data2.PtsCount } -func (m *TLBotInlineMediaResult) SetTitle(v string) { m.Data2.Title = v } -func (m *TLBotInlineMediaResult) GetTitle() string { return m.Data2.Title } +func NewTLUpdateEditMessage() *TLUpdateEditMessage { + return &TLUpdateEditMessage{Data2: &Update_Data{}} +} -func (m *TLBotInlineMediaResult) SetDescription(v string) { m.Data2.Description = v } -func (m *TLBotInlineMediaResult) GetDescription() string { return m.Data2.Description } +func (m *TLUpdateEditMessage) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateEditMessage)) -func (m *TLBotInlineMediaResult) SetSendMessage(v *BotInlineMessage) { m.Data2.SendMessage = v } -func (m *TLBotInlineMediaResult) GetSendMessage() *BotInlineMessage { return m.Data2.SendMessage } + x.Bytes(m.GetMessage().Encode()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) -func NewTLBotInlineMediaResult() *TLBotInlineMediaResult { - return &TLBotInlineMediaResult{Data2: &BotInlineResult_Data{}} + return x.buf } -func (m *TLBotInlineMediaResult) Encode() []byte { +func (m *TLUpdateEditMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMediaResult)) + x.Int(int32(TLConstructor_CRC32_updateEditMessage)) - // flags - var flags uint32 = 0 - if m.GetPhoto() != nil { - flags |= 1 << 0 - } - if m.GetDocument() != nil { - flags |= 1 << 1 - } - if m.GetTitle() != "" { - flags |= 1 << 2 - } - if m.GetDescription() != "" { - flags |= 1 << 3 - } - x.UInt(flags) + x.Bytes(m.GetMessage().EncodeToLayer(layer)) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) - x.String(m.GetId()) - x.String(m.GetType()) - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().Encode()) - } - if m.GetDocument() != nil { - x.Bytes(m.GetDocument().Encode()) - } - if m.GetTitle() != "" { - x.String(m.GetTitle()) - } - if m.GetDescription() != "" { - x.String(m.GetDescription()) + return x.buf +} + +func (m *TLUpdateEditMessage) Decode(dbuf *DecodeBuf) error { + m1 := &Message{} + m1.Decode(dbuf) + m.SetMessage(m1) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) + + return dbuf.err +} + +// updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; +func (m *TLUpdateInlineBotCallbackQuery) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateInlineBotCallbackQuery, + Data2: m.Data2, } - x.Bytes(m.GetSendMessage().Encode()) +} - return x.buf +func (m *TLUpdateInlineBotCallbackQuery) SetQueryId(v int64) { m.Data2.QueryId = v } +func (m *TLUpdateInlineBotCallbackQuery) GetQueryId() int64 { return m.Data2.QueryId } + +func (m *TLUpdateInlineBotCallbackQuery) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateInlineBotCallbackQuery) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLUpdateInlineBotCallbackQuery) SetMsgId(v *InputBotInlineMessageID) { m.Data2.MsgId_54 = v } +func (m *TLUpdateInlineBotCallbackQuery) GetMsgId() *InputBotInlineMessageID { return m.Data2.MsgId_54 } + +func (m *TLUpdateInlineBotCallbackQuery) SetChatInstance(v int64) { m.Data2.ChatInstance = v } +func (m *TLUpdateInlineBotCallbackQuery) GetChatInstance() int64 { return m.Data2.ChatInstance } + +func (m *TLUpdateInlineBotCallbackQuery) SetData(v []byte) { m.Data2.Data_57 = v } +func (m *TLUpdateInlineBotCallbackQuery) GetData() []byte { return m.Data2.Data_57 } + +func (m *TLUpdateInlineBotCallbackQuery) SetGameShortName(v string) { m.Data2.GameShortName = v } +func (m *TLUpdateInlineBotCallbackQuery) GetGameShortName() string { return m.Data2.GameShortName } + +func NewTLUpdateInlineBotCallbackQuery() *TLUpdateInlineBotCallbackQuery { + return &TLUpdateInlineBotCallbackQuery{Data2: &Update_Data{}} } -func (m *TLBotInlineMediaResult) EncodeToLayer(layer int) []byte { +func (m *TLUpdateInlineBotCallbackQuery) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_botInlineMediaResult)) + x.Int(int32(TLConstructor_CRC32_updateInlineBotCallbackQuery)) // flags var flags uint32 = 0 - if m.GetPhoto() != nil { + if m.GetData() != nil { flags |= 1 << 0 } - if m.GetDocument() != nil { + if m.GetGameShortName() != "" { flags |= 1 << 1 } - if m.GetTitle() != "" { - flags |= 1 << 2 - } - if m.GetDescription() != "" { - flags |= 1 << 3 - } x.UInt(flags) - x.String(m.GetId()) - x.String(m.GetType()) - if m.GetPhoto() != nil { - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) - } - if m.GetDocument() != nil { - x.Bytes(m.GetDocument().EncodeToLayer(layer)) - } - if m.GetTitle() != "" { - x.String(m.GetTitle()) + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.Bytes(m.GetMsgId().Encode()) + x.Long(m.GetChatInstance()) + if m.GetData() != nil { + x.StringBytes(m.GetData()) } - if m.GetDescription() != "" { - x.String(m.GetDescription()) + if m.GetGameShortName() != "" { + x.String(m.GetGameShortName()) } - x.Bytes(m.GetSendMessage().EncodeToLayer(layer)) return x.buf } -func (m *TLBotInlineMediaResult) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetId(dbuf.String()) - m.SetType(dbuf.String()) - if (flags & (1 << 0)) != 0 { - m4 := &Photo{} - m4.Decode(dbuf) - m.SetPhoto(m4) - } - if (flags & (1 << 1)) != 0 { - m5 := &Document{} - m5.Decode(dbuf) - m.SetDocument(m5) - } - if (flags & (1 << 2)) != 0 { - m.SetTitle(dbuf.String()) - } - if (flags & (1 << 3)) != 0 { - m.SetDescription(dbuf.String()) - } - m8 := &BotInlineMessage{} - m8.Decode(dbuf) - m.SetSendMessage(m8) - - return dbuf.err -} - -/////////////////////////////////////////////////////////////////////////////// -// Photos_Photos <-- -// + TL_PhotosPhotos -// + TL_PhotosPhotosSlice -// - -func (m *Photos_Photos) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_photos_photos: - t := m.To_PhotosPhotos() - return t.Encode() - case TLConstructor_CRC32_photos_photosSlice: - t := m.To_PhotosPhotosSlice() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *Photos_Photos) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_photos_photos: - t := m.To_PhotosPhotos() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_photos_photosSlice: - t := m.To_PhotosPhotosSlice() - return t.EncodeToLayer(layer) +func (m *TLUpdateInlineBotCallbackQuery) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateInlineBotCallbackQuery)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetData() != nil { + flags |= 1 << 0 } -} - -func (m *Photos_Photos) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_photos_photos: - m2 := &TLPhotosPhotos{Data2: &Photos_Photos_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_photos_photosSlice: - m2 := &TLPhotosPhotosSlice{Data2: &Photos_Photos_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + if m.GetGameShortName() != "" { + flags |= 1 << 1 } - return dbuf.err -} + x.UInt(flags) -// photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos; -func (m *Photos_Photos) To_PhotosPhotos() *TLPhotosPhotos { - return &TLPhotosPhotos{ - Data2: m.Data2, + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.Bytes(m.GetMsgId().EncodeToLayer(layer)) + x.Long(m.GetChatInstance()) + if m.GetData() != nil { + x.StringBytes(m.GetData()) } + if m.GetGameShortName() != "" { + x.String(m.GetGameShortName()) + } + + return x.buf } -// photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos; -func (m *Photos_Photos) To_PhotosPhotosSlice() *TLPhotosPhotosSlice { - return &TLPhotosPhotosSlice{ - Data2: m.Data2, +func (m *TLUpdateInlineBotCallbackQuery) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetQueryId(dbuf.Long()) + m.SetUserId(dbuf.Int()) + m4 := &InputBotInlineMessageID{} + m4.Decode(dbuf) + m.SetMsgId(m4) + m.SetChatInstance(dbuf.Long()) + if (flags & (1 << 0)) != 0 { + m.SetData(dbuf.StringBytes()) } + if (flags & (1 << 1)) != 0 { + m.SetGameShortName(dbuf.String()) + } + + return dbuf.err } -// photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos; -func (m *TLPhotosPhotos) To_Photos_Photos() *Photos_Photos { - return &Photos_Photos{ - Constructor: TLConstructor_CRC32_photos_photos, +// updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update; +func (m *TLUpdateReadChannelOutbox) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateReadChannelOutbox, Data2: m.Data2, } } -func (m *TLPhotosPhotos) SetPhotos(v []*Photo) { m.Data2.Photos = v } -func (m *TLPhotosPhotos) GetPhotos() []*Photo { return m.Data2.Photos } +func (m *TLUpdateReadChannelOutbox) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateReadChannelOutbox) GetChannelId() int32 { return m.Data2.ChannelId } -func (m *TLPhotosPhotos) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLPhotosPhotos) GetUsers() []*User { return m.Data2.Users } +func (m *TLUpdateReadChannelOutbox) SetMaxId(v int32) { m.Data2.MaxId = v } +func (m *TLUpdateReadChannelOutbox) GetMaxId() int32 { return m.Data2.MaxId } -func NewTLPhotosPhotos() *TLPhotosPhotos { - return &TLPhotosPhotos{Data2: &Photos_Photos_Data{}} +func NewTLUpdateReadChannelOutbox() *TLUpdateReadChannelOutbox { + return &TLUpdateReadChannelOutbox{Data2: &Update_Data{}} } -func (m *TLPhotosPhotos) Encode() []byte { +func (m *TLUpdateReadChannelOutbox) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photos_photos)) + x.Int(int32(TLConstructor_CRC32_updateReadChannelOutbox)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPhotos()))) - for _, v := range m.GetPhotos() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(m.GetChannelId()) + x.Int(m.GetMaxId()) return x.buf } -func (m *TLPhotosPhotos) EncodeToLayer(layer int) []byte { +func (m *TLUpdateReadChannelOutbox) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photos_photos)) + x.Int(int32(TLConstructor_CRC32_updateReadChannelOutbox)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPhotos()))) - for _, v := range m.GetPhotos() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetChannelId()) + x.Int(m.GetMaxId()) return x.buf } -func (m *TLPhotosPhotos) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Photo, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Photo{} - v1[i].Decode(dbuf) - } - m.SetPhotos(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*User, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &User{} - v2[i].Decode(dbuf) - } - m.SetUsers(v2) +func (m *TLUpdateReadChannelOutbox) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) + m.SetMaxId(dbuf.Int()) return dbuf.err } -// photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos; -func (m *TLPhotosPhotosSlice) To_Photos_Photos() *Photos_Photos { - return &Photos_Photos{ - Constructor: TLConstructor_CRC32_photos_photosSlice, +// updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update; +func (m *TLUpdateDraftMessage) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateDraftMessage, Data2: m.Data2, } } -func (m *TLPhotosPhotosSlice) SetCount(v int32) { m.Data2.Count = v } -func (m *TLPhotosPhotosSlice) GetCount() int32 { return m.Data2.Count } - -func (m *TLPhotosPhotosSlice) SetPhotos(v []*Photo) { m.Data2.Photos = v } -func (m *TLPhotosPhotosSlice) GetPhotos() []*Photo { return m.Data2.Photos } +func (m *TLUpdateDraftMessage) SetPeer(v *Peer) { m.Data2.Peer_39 = v } +func (m *TLUpdateDraftMessage) GetPeer() *Peer { return m.Data2.Peer_39 } -func (m *TLPhotosPhotosSlice) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLPhotosPhotosSlice) GetUsers() []*User { return m.Data2.Users } +func (m *TLUpdateDraftMessage) SetDraft(v *DraftMessage) { m.Data2.Draft = v } +func (m *TLUpdateDraftMessage) GetDraft() *DraftMessage { return m.Data2.Draft } -func NewTLPhotosPhotosSlice() *TLPhotosPhotosSlice { - return &TLPhotosPhotosSlice{Data2: &Photos_Photos_Data{}} +func NewTLUpdateDraftMessage() *TLUpdateDraftMessage { + return &TLUpdateDraftMessage{Data2: &Update_Data{}} } -func (m *TLPhotosPhotosSlice) Encode() []byte { +func (m *TLUpdateDraftMessage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photos_photosSlice)) + x.Int(int32(TLConstructor_CRC32_updateDraftMessage)) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPhotos()))) - for _, v := range m.GetPhotos() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetPeer().Encode()) + x.Bytes(m.GetDraft().Encode()) return x.buf } -func (m *TLPhotosPhotosSlice) EncodeToLayer(layer int) []byte { +func (m *TLUpdateDraftMessage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photos_photosSlice)) + x.Int(int32(TLConstructor_CRC32_updateDraftMessage)) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetPhotos()))) - for _, v := range m.GetPhotos() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetPeer().EncodeToLayer(layer)) + x.Bytes(m.GetDraft().EncodeToLayer(layer)) return x.buf } -func (m *TLPhotosPhotosSlice) Decode(dbuf *DecodeBuf) error { - m.SetCount(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Photo, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Photo{} - v2[i].Decode(dbuf) - } - m.SetPhotos(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*User, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &User{} - v3[i].Decode(dbuf) - } - m.SetUsers(v3) +func (m *TLUpdateDraftMessage) Decode(dbuf *DecodeBuf) error { + m1 := &Peer{} + m1.Decode(dbuf) + m.SetPeer(m1) + m2 := &DraftMessage{} + m2.Decode(dbuf) + m.SetDraft(m2) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// LangPackLanguage <-- -// + TL_LangPackLanguage -// +// updateReadFeaturedStickers#571d2742 = Update; +func (m *TLUpdateReadFeaturedStickers) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateReadFeaturedStickers, + Data2: m.Data2, + } +} -func (m *LangPackLanguage) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_langPackLanguage: - t := m.To_LangPackLanguage() - return t.Encode() +func NewTLUpdateReadFeaturedStickers() *TLUpdateReadFeaturedStickers { + return &TLUpdateReadFeaturedStickers{Data2: &Update_Data{}} +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateReadFeaturedStickers) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateReadFeaturedStickers)) + + return x.buf } -func (m *LangPackLanguage) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_langPackLanguage: - t := m.To_LangPackLanguage() - return t.EncodeToLayer(layer) +func (m *TLUpdateReadFeaturedStickers) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateReadFeaturedStickers)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + return x.buf } -func (m *LangPackLanguage) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_langPackLanguage: - m2 := &TLLangPackLanguage{Data2: &LangPackLanguage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateReadFeaturedStickers) Decode(dbuf *DecodeBuf) error { - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// langPackLanguage#117698f1 name:string native_name:string lang_code:string = LangPackLanguage; -func (m *LangPackLanguage) To_LangPackLanguage() *TLLangPackLanguage { - return &TLLangPackLanguage{ - Data2: m.Data2, +// updateRecentStickers#9a422c20 = Update; +func (m *TLUpdateRecentStickers) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateRecentStickers, + Data2: m.Data2, } } -// langPackLanguage#117698f1 name:string native_name:string lang_code:string = LangPackLanguage; -func (m *TLLangPackLanguage) To_LangPackLanguage() *LangPackLanguage { - return &LangPackLanguage{ - Constructor: TLConstructor_CRC32_langPackLanguage, - Data2: m.Data2, - } +func NewTLUpdateRecentStickers() *TLUpdateRecentStickers { + return &TLUpdateRecentStickers{Data2: &Update_Data{}} } -func (m *TLLangPackLanguage) SetName(v string) { m.Data2.Name = v } -func (m *TLLangPackLanguage) GetName() string { return m.Data2.Name } +func (m *TLUpdateRecentStickers) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateRecentStickers)) -func (m *TLLangPackLanguage) SetNativeName(v string) { m.Data2.NativeName = v } -func (m *TLLangPackLanguage) GetNativeName() string { return m.Data2.NativeName } + return x.buf +} -func (m *TLLangPackLanguage) SetLangCode(v string) { m.Data2.LangCode = v } -func (m *TLLangPackLanguage) GetLangCode() string { return m.Data2.LangCode } +func (m *TLUpdateRecentStickers) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateRecentStickers)) -func NewTLLangPackLanguage() *TLLangPackLanguage { - return &TLLangPackLanguage{Data2: &LangPackLanguage_Data{}} + return x.buf } -func (m *TLLangPackLanguage) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackLanguage)) +func (m *TLUpdateRecentStickers) Decode(dbuf *DecodeBuf) error { - x.String(m.GetName()) - x.String(m.GetNativeName()) - x.String(m.GetLangCode()) + return dbuf.err +} - return x.buf +// updateConfig#a229dd06 = Update; +func (m *TLUpdateConfig) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateConfig, + Data2: m.Data2, + } } -func (m *TLLangPackLanguage) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_langPackLanguage)) +func NewTLUpdateConfig() *TLUpdateConfig { + return &TLUpdateConfig{Data2: &Update_Data{}} +} - x.String(m.GetName()) - x.String(m.GetNativeName()) - x.String(m.GetLangCode()) +func (m *TLUpdateConfig) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateConfig)) return x.buf } -func (m *TLLangPackLanguage) Decode(dbuf *DecodeBuf) error { - m.SetName(dbuf.String()) - m.SetNativeName(dbuf.String()) - m.SetLangCode(dbuf.String()) +func (m *TLUpdateConfig) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateConfig)) - return dbuf.err + return x.buf } -/////////////////////////////////////////////////////////////////////////////// -// Contact <-- -// + TL_Contact -// +func (m *TLUpdateConfig) Decode(dbuf *DecodeBuf) error { -func (m *Contact) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_contact: - t := m.To_Contact() - return t.Encode() + return dbuf.err +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updatePtsChanged#3354678f = Update; +func (m *TLUpdatePtsChanged) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updatePtsChanged, + Data2: m.Data2, } } -func (m *Contact) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_contact: - t := m.To_Contact() - return t.EncodeToLayer(layer) +func NewTLUpdatePtsChanged() *TLUpdatePtsChanged { + return &TLUpdatePtsChanged{Data2: &Update_Data{}} +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdatePtsChanged) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updatePtsChanged)) + + return x.buf } -func (m *Contact) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_contact: - m2 := &TLContact{Data2: &Contact_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdatePtsChanged) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updatePtsChanged)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + return x.buf } -// contact#f911c994 user_id:int mutual:Bool = Contact; -func (m *Contact) To_Contact() *TLContact { - return &TLContact{ - Data2: m.Data2, - } +func (m *TLUpdatePtsChanged) Decode(dbuf *DecodeBuf) error { + + return dbuf.err } -// contact#f911c994 user_id:int mutual:Bool = Contact; -func (m *TLContact) To_Contact() *Contact { - return &Contact{ - Constructor: TLConstructor_CRC32_contact, +// updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update; +func (m *TLUpdateChannelWebPage) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChannelWebPage, Data2: m.Data2, } } -func (m *TLContact) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLContact) GetUserId() int32 { return m.Data2.UserId } +func (m *TLUpdateChannelWebPage) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateChannelWebPage) GetChannelId() int32 { return m.Data2.ChannelId } -func (m *TLContact) SetMutual(v *Bool) { m.Data2.Mutual = v } -func (m *TLContact) GetMutual() *Bool { return m.Data2.Mutual } +func (m *TLUpdateChannelWebPage) SetWebpage(v *WebPage) { m.Data2.Webpage = v } +func (m *TLUpdateChannelWebPage) GetWebpage() *WebPage { return m.Data2.Webpage } -func NewTLContact() *TLContact { - return &TLContact{Data2: &Contact_Data{}} +func (m *TLUpdateChannelWebPage) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLUpdateChannelWebPage) GetPts() int32 { return m.Data2.Pts } + +func (m *TLUpdateChannelWebPage) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLUpdateChannelWebPage) GetPtsCount() int32 { return m.Data2.PtsCount } + +func NewTLUpdateChannelWebPage() *TLUpdateChannelWebPage { + return &TLUpdateChannelWebPage{Data2: &Update_Data{}} } -func (m *TLContact) Encode() []byte { +func (m *TLUpdateChannelWebPage) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contact)) + x.Int(int32(TLConstructor_CRC32_updateChannelWebPage)) - x.Int(m.GetUserId()) - x.Bytes(m.GetMutual().Encode()) + x.Int(m.GetChannelId()) + x.Bytes(m.GetWebpage().Encode()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLContact) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChannelWebPage) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contact)) + x.Int(int32(TLConstructor_CRC32_updateChannelWebPage)) - x.Int(m.GetUserId()) - x.Bytes(m.GetMutual().EncodeToLayer(layer)) + x.Int(m.GetChannelId()) + x.Bytes(m.GetWebpage().EncodeToLayer(layer)) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) return x.buf } -func (m *TLContact) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) - m2 := &Bool{} +func (m *TLUpdateChannelWebPage) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) + m2 := &WebPage{} m2.Decode(dbuf) - m.SetMutual(m2) + m.SetWebpage(m2) + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Contacts_Blocked <-- -// + TL_ContactsBlocked -// + TL_ContactsBlockedSlice -// +// updateDialogPinned#19d27f3c flags:# pinned:flags.0?true peer:DialogPeer = Update; +func (m *TLUpdateDialogPinned) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateDialogPinned, + Data2: m.Data2, + } +} -func (m *Contacts_Blocked) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_contacts_blocked: - t := m.To_ContactsBlocked() - return t.Encode() - case TLConstructor_CRC32_contacts_blockedSlice: - t := m.To_ContactsBlockedSlice() - return t.Encode() +func (m *TLUpdateDialogPinned) SetPinned(v bool) { m.Data2.Pinned = v } +func (m *TLUpdateDialogPinned) GetPinned() bool { return m.Data2.Pinned } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateDialogPinned) SetPeer(v *DialogPeer) { m.Data2.Peer_61 = v } +func (m *TLUpdateDialogPinned) GetPeer() *DialogPeer { return m.Data2.Peer_61 } + +func NewTLUpdateDialogPinned() *TLUpdateDialogPinned { + return &TLUpdateDialogPinned{Data2: &Update_Data{}} } -func (m *Contacts_Blocked) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_contacts_blocked: - t := m.To_ContactsBlocked() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_contacts_blockedSlice: - t := m.To_ContactsBlockedSlice() - return t.EncodeToLayer(layer) +func (m *TLUpdateDialogPinned) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateDialogPinned)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil + // flags + var flags uint32 = 0 + if m.GetPinned() == true { + flags |= 1 << 0 } + x.UInt(flags) + + x.Bytes(m.GetPeer().Encode()) + + return x.buf } -func (m *Contacts_Blocked) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_contacts_blocked: - m2 := &TLContactsBlocked{Data2: &Contacts_Blocked_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_contacts_blockedSlice: - m2 := &TLContactsBlockedSlice{Data2: &Contacts_Blocked_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateDialogPinned) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateDialogPinned)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + // flags + var flags uint32 = 0 + if m.GetPinned() == true { + flags |= 1 << 0 } - return dbuf.err -} + x.UInt(flags) -// contacts.blocked#1c138d15 blocked:Vector users:Vector = contacts.Blocked; -func (m *Contacts_Blocked) To_ContactsBlocked() *TLContactsBlocked { - return &TLContactsBlocked{ - Data2: m.Data2, - } + x.Bytes(m.GetPeer().EncodeToLayer(layer)) + + return x.buf } -// contacts.blockedSlice#900802a1 count:int blocked:Vector users:Vector = contacts.Blocked; -func (m *Contacts_Blocked) To_ContactsBlockedSlice() *TLContactsBlockedSlice { - return &TLContactsBlockedSlice{ - Data2: m.Data2, +func (m *TLUpdateDialogPinned) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetPinned(true) } + m3 := &DialogPeer{} + m3.Decode(dbuf) + m.SetPeer(m3) + + return dbuf.err } -// contacts.blocked#1c138d15 blocked:Vector users:Vector = contacts.Blocked; -func (m *TLContactsBlocked) To_Contacts_Blocked() *Contacts_Blocked { - return &Contacts_Blocked{ - Constructor: TLConstructor_CRC32_contacts_blocked, +// updatePinnedDialogs#ea4cb65b flags:# order:flags.0?Vector = Update; +func (m *TLUpdatePinnedDialogs) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updatePinnedDialogs, Data2: m.Data2, } } -func (m *TLContactsBlocked) SetBlocked(v []*ContactBlocked) { m.Data2.Blocked = v } -func (m *TLContactsBlocked) GetBlocked() []*ContactBlocked { return m.Data2.Blocked } - -func (m *TLContactsBlocked) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLContactsBlocked) GetUsers() []*User { return m.Data2.Users } +func (m *TLUpdatePinnedDialogs) SetOrder(v []*DialogPeer) { m.Data2.Order_62 = v } +func (m *TLUpdatePinnedDialogs) GetOrder() []*DialogPeer { return m.Data2.Order_62 } -func NewTLContactsBlocked() *TLContactsBlocked { - return &TLContactsBlocked{Data2: &Contacts_Blocked_Data{}} +func NewTLUpdatePinnedDialogs() *TLUpdatePinnedDialogs { + return &TLUpdatePinnedDialogs{Data2: &Update_Data{}} } -func (m *TLContactsBlocked) Encode() []byte { +func (m *TLUpdatePinnedDialogs) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_blocked)) + x.Int(int32(TLConstructor_CRC32_updatePinnedDialogs)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocked()))) - for _, v := range m.GetBlocked() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetOrder() != nil { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) + x.UInt(flags) + + if m.GetOrder() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetOrder()))) + for _, v := range m.GetOrder() { + x.buf = append(x.buf, (*v).Encode()...) + } } return x.buf } -func (m *TLContactsBlocked) EncodeToLayer(layer int) []byte { +func (m *TLUpdatePinnedDialogs) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_blocked)) + x.Int(int32(TLConstructor_CRC32_updatePinnedDialogs)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocked()))) - for _, v := range m.GetBlocked() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetOrder() != nil { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + x.UInt(flags) + + if m.GetOrder() != nil { + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetOrder()))) + for _, v := range m.GetOrder() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } } return x.buf } -func (m *TLContactsBlocked) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*ContactBlocked, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &ContactBlocked{} - v1[i].Decode(dbuf) - } - m.SetBlocked(v1) +func (m *TLUpdatePinnedDialogs) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*DialogPeer, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &DialogPeer{} + v2[i].Decode(dbuf) + } + m.SetOrder(v2) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*User, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &User{} - v2[i].Decode(dbuf) } - m.SetUsers(v2) return dbuf.err } -// contacts.blockedSlice#900802a1 count:int blocked:Vector users:Vector = contacts.Blocked; -func (m *TLContactsBlockedSlice) To_Contacts_Blocked() *Contacts_Blocked { - return &Contacts_Blocked{ - Constructor: TLConstructor_CRC32_contacts_blockedSlice, +// updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; +func (m *TLUpdateBotWebhookJSON) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateBotWebhookJSON, Data2: m.Data2, } } -func (m *TLContactsBlockedSlice) SetCount(v int32) { m.Data2.Count = v } -func (m *TLContactsBlockedSlice) GetCount() int32 { return m.Data2.Count } - -func (m *TLContactsBlockedSlice) SetBlocked(v []*ContactBlocked) { m.Data2.Blocked = v } -func (m *TLContactsBlockedSlice) GetBlocked() []*ContactBlocked { return m.Data2.Blocked } - -func (m *TLContactsBlockedSlice) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLContactsBlockedSlice) GetUsers() []*User { return m.Data2.Users } +func (m *TLUpdateBotWebhookJSON) SetData(v *DataJSON) { m.Data2.Data_63 = v } +func (m *TLUpdateBotWebhookJSON) GetData() *DataJSON { return m.Data2.Data_63 } -func NewTLContactsBlockedSlice() *TLContactsBlockedSlice { - return &TLContactsBlockedSlice{Data2: &Contacts_Blocked_Data{}} +func NewTLUpdateBotWebhookJSON() *TLUpdateBotWebhookJSON { + return &TLUpdateBotWebhookJSON{Data2: &Update_Data{}} } -func (m *TLContactsBlockedSlice) Encode() []byte { +func (m *TLUpdateBotWebhookJSON) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_blockedSlice)) + x.Int(int32(TLConstructor_CRC32_updateBotWebhookJSON)) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocked()))) - for _, v := range m.GetBlocked() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetData().Encode()) return x.buf } -func (m *TLContactsBlockedSlice) EncodeToLayer(layer int) []byte { +func (m *TLUpdateBotWebhookJSON) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_blockedSlice)) + x.Int(int32(TLConstructor_CRC32_updateBotWebhookJSON)) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetBlocked()))) - for _, v := range m.GetBlocked() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetData().EncodeToLayer(layer)) return x.buf } -func (m *TLContactsBlockedSlice) Decode(dbuf *DecodeBuf) error { - m.SetCount(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*ContactBlocked, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &ContactBlocked{} - v2[i].Decode(dbuf) - } - m.SetBlocked(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*User, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &User{} - v3[i].Decode(dbuf) - } - m.SetUsers(v3) +func (m *TLUpdateBotWebhookJSON) Decode(dbuf *DecodeBuf) error { + m1 := &DataJSON{} + m1.Decode(dbuf) + m.SetData(m1) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Document <-- -// + TL_DocumentEmpty -// + TL_Document -// + TL_DocumentLayer86 -// - -func (m *Document) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_documentEmpty: - t := m.To_DocumentEmpty() - return t.Encode() - case TLConstructor_CRC32_document: - t := m.To_Document() - return t.Encode() - case TLConstructor_CRC32_documentLayer86: - t := m.To_DocumentLayer86() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; +func (m *TLUpdateBotWebhookJSONQuery) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateBotWebhookJSONQuery, + Data2: m.Data2, } } -func (m *Document) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_documentEmpty: - t := m.To_DocumentEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_document: - t := m.To_Document() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_documentLayer86: - t := m.To_DocumentLayer86() - return t.EncodeToLayer(layer) +func (m *TLUpdateBotWebhookJSONQuery) SetQueryId(v int64) { m.Data2.QueryId = v } +func (m *TLUpdateBotWebhookJSONQuery) GetQueryId() int64 { return m.Data2.QueryId } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} +func (m *TLUpdateBotWebhookJSONQuery) SetData(v *DataJSON) { m.Data2.Data_63 = v } +func (m *TLUpdateBotWebhookJSONQuery) GetData() *DataJSON { return m.Data2.Data_63 } -func (m *Document) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_documentEmpty: - m2 := &TLDocumentEmpty{Data2: &Document_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_document: - m2 := &TLDocument{Data2: &Document_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_documentLayer86: - m2 := &TLDocumentLayer86{Data2: &Document_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateBotWebhookJSONQuery) SetTimeout(v int32) { m.Data2.Timeout = v } +func (m *TLUpdateBotWebhookJSONQuery) GetTimeout() int32 { return m.Data2.Timeout } - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err +func NewTLUpdateBotWebhookJSONQuery() *TLUpdateBotWebhookJSONQuery { + return &TLUpdateBotWebhookJSONQuery{Data2: &Update_Data{}} } -// documentEmpty#36f8c871 id:long = Document; -func (m *Document) To_DocumentEmpty() *TLDocumentEmpty { - return &TLDocumentEmpty{ - Data2: m.Data2, - } +func (m *TLUpdateBotWebhookJSONQuery) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateBotWebhookJSONQuery)) + + x.Long(m.GetQueryId()) + x.Bytes(m.GetData().Encode()) + x.Int(m.GetTimeout()) + + return x.buf } -// document#87232bc7 id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int version:int attributes:Vector = Document; -func (m *Document) To_Document() *TLDocument { - return &TLDocument{ - Data2: m.Data2, - } +func (m *TLUpdateBotWebhookJSONQuery) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateBotWebhookJSONQuery)) + + x.Long(m.GetQueryId()) + x.Bytes(m.GetData().EncodeToLayer(layer)) + x.Int(m.GetTimeout()) + + return x.buf } -// document#59534e4c id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = Document; -func (m *Document) To_DocumentLayer86() *TLDocumentLayer86 { - return &TLDocumentLayer86{ - Data2: m.Data2, - } +func (m *TLUpdateBotWebhookJSONQuery) Decode(dbuf *DecodeBuf) error { + m.SetQueryId(dbuf.Long()) + m2 := &DataJSON{} + m2.Decode(dbuf) + m.SetData(m2) + m.SetTimeout(dbuf.Int()) + + return dbuf.err } -// documentEmpty#36f8c871 id:long = Document; -func (m *TLDocumentEmpty) To_Document() *Document { - return &Document{ - Constructor: TLConstructor_CRC32_documentEmpty, +// updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; +func (m *TLUpdateBotShippingQuery) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateBotShippingQuery, Data2: m.Data2, } } -func (m *TLDocumentEmpty) SetId(v int64) { m.Data2.Id = v } -func (m *TLDocumentEmpty) GetId() int64 { return m.Data2.Id } +func (m *TLUpdateBotShippingQuery) SetQueryId(v int64) { m.Data2.QueryId = v } +func (m *TLUpdateBotShippingQuery) GetQueryId() int64 { return m.Data2.QueryId } -func NewTLDocumentEmpty() *TLDocumentEmpty { - return &TLDocumentEmpty{Data2: &Document_Data{}} +func (m *TLUpdateBotShippingQuery) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateBotShippingQuery) GetUserId() int32 { return m.Data2.UserId } + +func (m *TLUpdateBotShippingQuery) SetPayload(v []byte) { m.Data2.Payload = v } +func (m *TLUpdateBotShippingQuery) GetPayload() []byte { return m.Data2.Payload } + +func (m *TLUpdateBotShippingQuery) SetShippingAddress(v *PostAddress) { m.Data2.ShippingAddress = v } +func (m *TLUpdateBotShippingQuery) GetShippingAddress() *PostAddress { return m.Data2.ShippingAddress } + +func NewTLUpdateBotShippingQuery() *TLUpdateBotShippingQuery { + return &TLUpdateBotShippingQuery{Data2: &Update_Data{}} } -func (m *TLDocumentEmpty) Encode() []byte { +func (m *TLUpdateBotShippingQuery) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentEmpty)) + x.Int(int32(TLConstructor_CRC32_updateBotShippingQuery)) - x.Long(m.GetId()) + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.StringBytes(m.GetPayload()) + x.Bytes(m.GetShippingAddress().Encode()) return x.buf } -func (m *TLDocumentEmpty) EncodeToLayer(layer int) []byte { +func (m *TLUpdateBotShippingQuery) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentEmpty)) + x.Int(int32(TLConstructor_CRC32_updateBotShippingQuery)) - x.Long(m.GetId()) + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.StringBytes(m.GetPayload()) + x.Bytes(m.GetShippingAddress().EncodeToLayer(layer)) return x.buf } -func (m *TLDocumentEmpty) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) +func (m *TLUpdateBotShippingQuery) Decode(dbuf *DecodeBuf) error { + m.SetQueryId(dbuf.Long()) + m.SetUserId(dbuf.Int()) + m.SetPayload(dbuf.StringBytes()) + m4 := &PostAddress{} + m4.Decode(dbuf) + m.SetShippingAddress(m4) return dbuf.err } -// document#87232bc7 id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int version:int attributes:Vector = Document; -func (m *TLDocument) To_Document() *Document { - return &Document{ - Constructor: TLConstructor_CRC32_document, +// updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; +func (m *TLUpdateBotPrecheckoutQuery) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateBotPrecheckoutQuery, Data2: m.Data2, } } -func (m *TLDocument) SetId(v int64) { m.Data2.Id = v } -func (m *TLDocument) GetId() int64 { return m.Data2.Id } +func (m *TLUpdateBotPrecheckoutQuery) SetQueryId(v int64) { m.Data2.QueryId = v } +func (m *TLUpdateBotPrecheckoutQuery) GetQueryId() int64 { return m.Data2.QueryId } -func (m *TLDocument) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLDocument) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLUpdateBotPrecheckoutQuery) SetUserId(v int32) { m.Data2.UserId = v } +func (m *TLUpdateBotPrecheckoutQuery) GetUserId() int32 { return m.Data2.UserId } -func (m *TLDocument) SetDate(v int32) { m.Data2.Date = v } -func (m *TLDocument) GetDate() int32 { return m.Data2.Date } +func (m *TLUpdateBotPrecheckoutQuery) SetPayload(v []byte) { m.Data2.Payload = v } +func (m *TLUpdateBotPrecheckoutQuery) GetPayload() []byte { return m.Data2.Payload } -func (m *TLDocument) SetMimeType(v string) { m.Data2.MimeType = v } -func (m *TLDocument) GetMimeType() string { return m.Data2.MimeType } +func (m *TLUpdateBotPrecheckoutQuery) SetInfo(v *PaymentRequestedInfo) { m.Data2.Info = v } +func (m *TLUpdateBotPrecheckoutQuery) GetInfo() *PaymentRequestedInfo { return m.Data2.Info } -func (m *TLDocument) SetSize(v int32) { m.Data2.Size = v } -func (m *TLDocument) GetSize() int32 { return m.Data2.Size } +func (m *TLUpdateBotPrecheckoutQuery) SetShippingOptionId(v string) { m.Data2.ShippingOptionId = v } +func (m *TLUpdateBotPrecheckoutQuery) GetShippingOptionId() string { return m.Data2.ShippingOptionId } -func (m *TLDocument) SetThumb(v *PhotoSize) { m.Data2.Thumb = v } -func (m *TLDocument) GetThumb() *PhotoSize { return m.Data2.Thumb } +func (m *TLUpdateBotPrecheckoutQuery) SetCurrency(v string) { m.Data2.Currency = v } +func (m *TLUpdateBotPrecheckoutQuery) GetCurrency() string { return m.Data2.Currency } -func (m *TLDocument) SetDcId(v int32) { m.Data2.DcId = v } -func (m *TLDocument) GetDcId() int32 { return m.Data2.DcId } +func (m *TLUpdateBotPrecheckoutQuery) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } +func (m *TLUpdateBotPrecheckoutQuery) GetTotalAmount() int64 { return m.Data2.TotalAmount } -func (m *TLDocument) SetVersion(v int32) { m.Data2.Version = v } -func (m *TLDocument) GetVersion() int32 { return m.Data2.Version } +func NewTLUpdateBotPrecheckoutQuery() *TLUpdateBotPrecheckoutQuery { + return &TLUpdateBotPrecheckoutQuery{Data2: &Update_Data{}} +} -func (m *TLDocument) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } -func (m *TLDocument) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } +func (m *TLUpdateBotPrecheckoutQuery) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateBotPrecheckoutQuery)) + + // flags + var flags uint32 = 0 + if m.GetInfo() != nil { + flags |= 1 << 0 + } + if m.GetShippingOptionId() != "" { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.StringBytes(m.GetPayload()) + if m.GetInfo() != nil { + x.Bytes(m.GetInfo().Encode()) + } + if m.GetShippingOptionId() != "" { + x.String(m.GetShippingOptionId()) + } + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) + + return x.buf +} + +func (m *TLUpdateBotPrecheckoutQuery) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateBotPrecheckoutQuery)) + + // flags + var flags uint32 = 0 + if m.GetInfo() != nil { + flags |= 1 << 0 + } + if m.GetShippingOptionId() != "" { + flags |= 1 << 1 + } + x.UInt(flags) + + x.Long(m.GetQueryId()) + x.Int(m.GetUserId()) + x.StringBytes(m.GetPayload()) + if m.GetInfo() != nil { + x.Bytes(m.GetInfo().EncodeToLayer(layer)) + } + if m.GetShippingOptionId() != "" { + x.String(m.GetShippingOptionId()) + } + x.String(m.GetCurrency()) + x.Long(m.GetTotalAmount()) + + return x.buf +} + +func (m *TLUpdateBotPrecheckoutQuery) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + m.SetQueryId(dbuf.Long()) + m.SetUserId(dbuf.Int()) + m.SetPayload(dbuf.StringBytes()) + if (flags & (1 << 0)) != 0 { + m5 := &PaymentRequestedInfo{} + m5.Decode(dbuf) + m.SetInfo(m5) + } + if (flags & (1 << 1)) != 0 { + m.SetShippingOptionId(dbuf.String()) + } + m.SetCurrency(dbuf.String()) + m.SetTotalAmount(dbuf.Long()) + + return dbuf.err +} + +// updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update; +func (m *TLUpdatePhoneCall) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updatePhoneCall, + Data2: m.Data2, + } +} + +func (m *TLUpdatePhoneCall) SetPhoneCall(v *PhoneCall) { m.Data2.PhoneCall = v } +func (m *TLUpdatePhoneCall) GetPhoneCall() *PhoneCall { return m.Data2.PhoneCall } -func NewTLDocument() *TLDocument { - return &TLDocument{Data2: &Document_Data{}} +func NewTLUpdatePhoneCall() *TLUpdatePhoneCall { + return &TLUpdatePhoneCall{Data2: &Update_Data{}} } -func (m *TLDocument) Encode() []byte { +func (m *TLUpdatePhoneCall) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_document)) + x.Int(int32(TLConstructor_CRC32_updatePhoneCall)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.String(m.GetMimeType()) - x.Int(m.GetSize()) - x.Bytes(m.GetThumb().Encode()) - x.Int(m.GetDcId()) - x.Int(m.GetVersion()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetPhoneCall().Encode()) return x.buf } -func (m *TLDocument) EncodeToLayer(layer int) []byte { +func (m *TLUpdatePhoneCall) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_document)) + x.Int(int32(TLConstructor_CRC32_updatePhoneCall)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.Int(m.GetDate()) - x.String(m.GetMimeType()) - x.Int(m.GetSize()) - x.Bytes(m.GetThumb().EncodeToLayer(layer)) - x.Int(m.GetDcId()) - x.Int(m.GetVersion()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetPhoneCall().EncodeToLayer(layer)) return x.buf } -func (m *TLDocument) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetDate(dbuf.Int()) - m.SetMimeType(dbuf.String()) - m.SetSize(dbuf.Int()) - m6 := &PhotoSize{} - m6.Decode(dbuf) - m.SetThumb(m6) - m.SetDcId(dbuf.Int()) - m.SetVersion(dbuf.Int()) - c9 := dbuf.Int() - if c9 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 9, c9) - return dbuf.err - } - l9 := dbuf.Int() - v9 := make([]*DocumentAttribute, l9) - for i := int32(0); i < l9; i++ { - v9[i] = &DocumentAttribute{} - v9[i].Decode(dbuf) - } - m.SetAttributes(v9) +func (m *TLUpdatePhoneCall) Decode(dbuf *DecodeBuf) error { + m1 := &PhoneCall{} + m1.Decode(dbuf) + m.SetPhoneCall(m1) return dbuf.err } -// document#59534e4c id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = Document; -func (m *TLDocumentLayer86) To_Document() *Document { - return &Document{ - Constructor: TLConstructor_CRC32_documentLayer86, +// updateLangPackTooLong#10c2404b = Update; +func (m *TLUpdateLangPackTooLong) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateLangPackTooLong, Data2: m.Data2, } } -func (m *TLDocumentLayer86) SetId(v int64) { m.Data2.Id = v } -func (m *TLDocumentLayer86) GetId() int64 { return m.Data2.Id } +func NewTLUpdateLangPackTooLong() *TLUpdateLangPackTooLong { + return &TLUpdateLangPackTooLong{Data2: &Update_Data{}} +} -func (m *TLDocumentLayer86) SetAccessHash(v int64) { m.Data2.AccessHash = v } -func (m *TLDocumentLayer86) GetAccessHash() int64 { return m.Data2.AccessHash } +func (m *TLUpdateLangPackTooLong) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateLangPackTooLong)) -func (m *TLDocumentLayer86) SetFileReference(v []byte) { m.Data2.FileReference = v } -func (m *TLDocumentLayer86) GetFileReference() []byte { return m.Data2.FileReference } + return x.buf +} -func (m *TLDocumentLayer86) SetDate(v int32) { m.Data2.Date = v } -func (m *TLDocumentLayer86) GetDate() int32 { return m.Data2.Date } +func (m *TLUpdateLangPackTooLong) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateLangPackTooLong)) -func (m *TLDocumentLayer86) SetMimeType(v string) { m.Data2.MimeType = v } -func (m *TLDocumentLayer86) GetMimeType() string { return m.Data2.MimeType } + return x.buf +} -func (m *TLDocumentLayer86) SetSize(v int32) { m.Data2.Size = v } -func (m *TLDocumentLayer86) GetSize() int32 { return m.Data2.Size } +func (m *TLUpdateLangPackTooLong) Decode(dbuf *DecodeBuf) error { -func (m *TLDocumentLayer86) SetThumb(v *PhotoSize) { m.Data2.Thumb = v } -func (m *TLDocumentLayer86) GetThumb() *PhotoSize { return m.Data2.Thumb } + return dbuf.err +} -func (m *TLDocumentLayer86) SetDcId(v int32) { m.Data2.DcId = v } -func (m *TLDocumentLayer86) GetDcId() int32 { return m.Data2.DcId } +// updateLangPack#56022f4d difference:LangPackDifference = Update; +func (m *TLUpdateLangPack) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateLangPack, + Data2: m.Data2, + } +} -func (m *TLDocumentLayer86) SetAttributes(v []*DocumentAttribute) { m.Data2.Attributes = v } -func (m *TLDocumentLayer86) GetAttributes() []*DocumentAttribute { return m.Data2.Attributes } +func (m *TLUpdateLangPack) SetDifference(v *LangPackDifference) { m.Data2.Difference = v } +func (m *TLUpdateLangPack) GetDifference() *LangPackDifference { return m.Data2.Difference } -func NewTLDocumentLayer86() *TLDocumentLayer86 { - return &TLDocumentLayer86{Data2: &Document_Data{}} +func NewTLUpdateLangPack() *TLUpdateLangPack { + return &TLUpdateLangPack{Data2: &Update_Data{}} } -func (m *TLDocumentLayer86) Encode() []byte { +func (m *TLUpdateLangPack) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentLayer86)) + x.Int(int32(TLConstructor_CRC32_updateLangPack)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) - x.Int(m.GetDate()) - x.String(m.GetMimeType()) - x.Int(m.GetSize()) - x.Bytes(m.GetThumb().Encode()) - x.Int(m.GetDcId()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetDifference().Encode()) return x.buf } -func (m *TLDocumentLayer86) EncodeToLayer(layer int) []byte { +func (m *TLUpdateLangPack) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_documentLayer86)) + x.Int(int32(TLConstructor_CRC32_updateLangPack)) - x.Long(m.GetId()) - x.Long(m.GetAccessHash()) - x.StringBytes(m.GetFileReference()) - x.Int(m.GetDate()) - x.String(m.GetMimeType()) - x.Int(m.GetSize()) - x.Bytes(m.GetThumb().EncodeToLayer(layer)) - x.Int(m.GetDcId()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetAttributes()))) - for _, v := range m.GetAttributes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetDifference().EncodeToLayer(layer)) return x.buf } -func (m *TLDocumentLayer86) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) - m.SetAccessHash(dbuf.Long()) - m.SetFileReference(dbuf.StringBytes()) - m.SetDate(dbuf.Int()) - m.SetMimeType(dbuf.String()) - m.SetSize(dbuf.Int()) - m7 := &PhotoSize{} - m7.Decode(dbuf) - m.SetThumb(m7) - m.SetDcId(dbuf.Int()) - c9 := dbuf.Int() - if c9 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 9, c9) - return dbuf.err - } - l9 := dbuf.Int() - v9 := make([]*DocumentAttribute, l9) - for i := int32(0); i < l9; i++ { - v9[i] = &DocumentAttribute{} - v9[i].Decode(dbuf) - } - m.SetAttributes(v9) +func (m *TLUpdateLangPack) Decode(dbuf *DecodeBuf) error { + m1 := &LangPackDifference{} + m1.Decode(dbuf) + m.SetDifference(m1) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Account_PrivacyRules <-- -// + TL_AccountPrivacyRules -// - -func (m *Account_PrivacyRules) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_account_privacyRules: - t := m.To_AccountPrivacyRules() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateFavedStickers#e511996d = Update; +func (m *TLUpdateFavedStickers) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateFavedStickers, + Data2: m.Data2, } } -func (m *Account_PrivacyRules) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_account_privacyRules: - t := m.To_AccountPrivacyRules() - return t.EncodeToLayer(layer) +func NewTLUpdateFavedStickers() *TLUpdateFavedStickers { + return &TLUpdateFavedStickers{Data2: &Update_Data{}} +} - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLUpdateFavedStickers) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateFavedStickers)) + + return x.buf } -func (m *Account_PrivacyRules) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_account_privacyRules: - m2 := &TLAccountPrivacyRules{Data2: &Account_PrivacyRules_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateFavedStickers) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateFavedStickers)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + return x.buf } -// account.privacyRules#554abb6f rules:Vector users:Vector = account.PrivacyRules; -func (m *Account_PrivacyRules) To_AccountPrivacyRules() *TLAccountPrivacyRules { - return &TLAccountPrivacyRules{ - Data2: m.Data2, - } +func (m *TLUpdateFavedStickers) Decode(dbuf *DecodeBuf) error { + + return dbuf.err } -// account.privacyRules#554abb6f rules:Vector users:Vector = account.PrivacyRules; -func (m *TLAccountPrivacyRules) To_Account_PrivacyRules() *Account_PrivacyRules { - return &Account_PrivacyRules{ - Constructor: TLConstructor_CRC32_account_privacyRules, +// updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector = Update; +func (m *TLUpdateChannelReadMessagesContents) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChannelReadMessagesContents, Data2: m.Data2, } } -func (m *TLAccountPrivacyRules) SetRules(v []*PrivacyRule) { m.Data2.Rules = v } -func (m *TLAccountPrivacyRules) GetRules() []*PrivacyRule { return m.Data2.Rules } +func (m *TLUpdateChannelReadMessagesContents) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateChannelReadMessagesContents) GetChannelId() int32 { return m.Data2.ChannelId } -func (m *TLAccountPrivacyRules) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLAccountPrivacyRules) GetUsers() []*User { return m.Data2.Users } +func (m *TLUpdateChannelReadMessagesContents) SetMessages(v []int32) { m.Data2.Messages = v } +func (m *TLUpdateChannelReadMessagesContents) GetMessages() []int32 { return m.Data2.Messages } -func NewTLAccountPrivacyRules() *TLAccountPrivacyRules { - return &TLAccountPrivacyRules{Data2: &Account_PrivacyRules_Data{}} +func NewTLUpdateChannelReadMessagesContents() *TLUpdateChannelReadMessagesContents { + return &TLUpdateChannelReadMessagesContents{Data2: &Update_Data{}} } -func (m *TLAccountPrivacyRules) Encode() []byte { +func (m *TLUpdateChannelReadMessagesContents) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_privacyRules)) + x.Int(int32(TLConstructor_CRC32_updateChannelReadMessagesContents)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRules()))) - for _, v := range m.GetRules() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(m.GetChannelId()) + x.VectorInt(m.GetMessages()) return x.buf } -func (m *TLAccountPrivacyRules) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChannelReadMessagesContents) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_privacyRules)) + x.Int(int32(TLConstructor_CRC32_updateChannelReadMessagesContents)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetRules()))) - for _, v := range m.GetRules() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetChannelId()) + x.VectorInt(m.GetMessages()) return x.buf } -func (m *TLAccountPrivacyRules) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*PrivacyRule, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &PrivacyRule{} - v1[i].Decode(dbuf) - } - m.SetRules(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*User, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &User{} - v2[i].Decode(dbuf) - } - m.SetUsers(v2) +func (m *TLUpdateChannelReadMessagesContents) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) + m.SetMessages(dbuf.VectorInt()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Messages_AllStickers <-- -// + TL_MessagesAllStickersNotModified -// + TL_MessagesAllStickers -// - -func (m *Messages_AllStickers) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_allStickersNotModified: - t := m.To_MessagesAllStickersNotModified() - return t.Encode() - case TLConstructor_CRC32_messages_allStickers: - t := m.To_MessagesAllStickers() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil +// updateContactsReset#7084a7be = Update; +func (m *TLUpdateContactsReset) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateContactsReset, + Data2: m.Data2, } } -func (m *Messages_AllStickers) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_allStickersNotModified: - t := m.To_MessagesAllStickersNotModified() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_allStickers: - t := m.To_MessagesAllStickers() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLUpdateContactsReset() *TLUpdateContactsReset { + return &TLUpdateContactsReset{Data2: &Update_Data{}} } -func (m *Messages_AllStickers) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_allStickersNotModified: - m2 := &TLMessagesAllStickersNotModified{Data2: &Messages_AllStickers_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_allStickers: - m2 := &TLMessagesAllStickers{Data2: &Messages_AllStickers_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLUpdateContactsReset) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateContactsReset)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + return x.buf } -// messages.allStickersNotModified#e86602c3 = messages.AllStickers; -func (m *Messages_AllStickers) To_MessagesAllStickersNotModified() *TLMessagesAllStickersNotModified { - return &TLMessagesAllStickersNotModified{ - Data2: m.Data2, - } +func (m *TLUpdateContactsReset) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_updateContactsReset)) + + return x.buf } -// messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers; -func (m *Messages_AllStickers) To_MessagesAllStickers() *TLMessagesAllStickers { - return &TLMessagesAllStickers{ - Data2: m.Data2, - } +func (m *TLUpdateContactsReset) Decode(dbuf *DecodeBuf) error { + + return dbuf.err } -// messages.allStickersNotModified#e86602c3 = messages.AllStickers; -func (m *TLMessagesAllStickersNotModified) To_Messages_AllStickers() *Messages_AllStickers { - return &Messages_AllStickers{ - Constructor: TLConstructor_CRC32_messages_allStickersNotModified, +// updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update; +func (m *TLUpdateChannelAvailableMessages) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateChannelAvailableMessages, Data2: m.Data2, } } -func NewTLMessagesAllStickersNotModified() *TLMessagesAllStickersNotModified { - return &TLMessagesAllStickersNotModified{Data2: &Messages_AllStickers_Data{}} +func (m *TLUpdateChannelAvailableMessages) SetChannelId(v int32) { m.Data2.ChannelId = v } +func (m *TLUpdateChannelAvailableMessages) GetChannelId() int32 { return m.Data2.ChannelId } + +func (m *TLUpdateChannelAvailableMessages) SetAvailableMinId(v int32) { m.Data2.AvailableMinId = v } +func (m *TLUpdateChannelAvailableMessages) GetAvailableMinId() int32 { return m.Data2.AvailableMinId } + +func NewTLUpdateChannelAvailableMessages() *TLUpdateChannelAvailableMessages { + return &TLUpdateChannelAvailableMessages{Data2: &Update_Data{}} } -func (m *TLMessagesAllStickersNotModified) Encode() []byte { +func (m *TLUpdateChannelAvailableMessages) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_allStickersNotModified)) + x.Int(int32(TLConstructor_CRC32_updateChannelAvailableMessages)) + + x.Int(m.GetChannelId()) + x.Int(m.GetAvailableMinId()) return x.buf } -func (m *TLMessagesAllStickersNotModified) EncodeToLayer(layer int) []byte { +func (m *TLUpdateChannelAvailableMessages) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_allStickersNotModified)) + x.Int(int32(TLConstructor_CRC32_updateChannelAvailableMessages)) + + x.Int(m.GetChannelId()) + x.Int(m.GetAvailableMinId()) return x.buf } -func (m *TLMessagesAllStickersNotModified) Decode(dbuf *DecodeBuf) error { +func (m *TLUpdateChannelAvailableMessages) Decode(dbuf *DecodeBuf) error { + m.SetChannelId(dbuf.Int()) + m.SetAvailableMinId(dbuf.Int()) return dbuf.err } -// messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers; -func (m *TLMessagesAllStickers) To_Messages_AllStickers() *Messages_AllStickers { - return &Messages_AllStickers{ - Constructor: TLConstructor_CRC32_messages_allStickers, +// updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update; +func (m *TLUpdateDialogUnreadMark) To_Update() *Update { + return &Update{ + Constructor: TLConstructor_CRC32_updateDialogUnreadMark, Data2: m.Data2, } } -func (m *TLMessagesAllStickers) SetHash(v int32) { m.Data2.Hash = v } -func (m *TLMessagesAllStickers) GetHash() int32 { return m.Data2.Hash } +func (m *TLUpdateDialogUnreadMark) SetUnread(v bool) { m.Data2.Unread = v } +func (m *TLUpdateDialogUnreadMark) GetUnread() bool { return m.Data2.Unread } -func (m *TLMessagesAllStickers) SetSets(v []*StickerSet) { m.Data2.Sets = v } -func (m *TLMessagesAllStickers) GetSets() []*StickerSet { return m.Data2.Sets } +func (m *TLUpdateDialogUnreadMark) SetPeer(v *DialogPeer) { m.Data2.Peer_61 = v } +func (m *TLUpdateDialogUnreadMark) GetPeer() *DialogPeer { return m.Data2.Peer_61 } -func NewTLMessagesAllStickers() *TLMessagesAllStickers { - return &TLMessagesAllStickers{Data2: &Messages_AllStickers_Data{}} +func NewTLUpdateDialogUnreadMark() *TLUpdateDialogUnreadMark { + return &TLUpdateDialogUnreadMark{Data2: &Update_Data{}} } -func (m *TLMessagesAllStickers) Encode() []byte { +func (m *TLUpdateDialogUnreadMark) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_allStickers)) + x.Int(int32(TLConstructor_CRC32_updateDialogUnreadMark)) - x.Int(m.GetHash()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetUnread() == true { + flags |= 1 << 0 } + x.UInt(flags) + + x.Bytes(m.GetPeer().Encode()) return x.buf } -func (m *TLMessagesAllStickers) EncodeToLayer(layer int) []byte { +func (m *TLUpdateDialogUnreadMark) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_allStickers)) + x.Int(int32(TLConstructor_CRC32_updateDialogUnreadMark)) - x.Int(m.GetHash()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetUnread() == true { + flags |= 1 << 0 } + x.UInt(flags) + + x.Bytes(m.GetPeer().EncodeToLayer(layer)) return x.buf } -func (m *TLMessagesAllStickers) Decode(dbuf *DecodeBuf) error { - m.SetHash(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*StickerSet, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &StickerSet{} - v2[i].Decode(dbuf) +func (m *TLUpdateDialogUnreadMark) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetUnread(true) } - m.SetSets(v2) + m3 := &DialogPeer{} + m3.Decode(dbuf) + m.SetPeer(m3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputBotInlineMessage <-- -// + TL_InputBotInlineMessageMediaAuto -// + TL_InputBotInlineMessageText -// + TL_InputBotInlineMessageMediaGeo -// + TL_InputBotInlineMessageMediaVenue -// + TL_InputBotInlineMessageMediaContact -// + TL_InputBotInlineMessageGame +// ContactLink <-- +// + TL_ContactLinkUnknown +// + TL_ContactLinkNone +// + TL_ContactLinkHasPhone +// + TL_ContactLinkContact // -func (m *InputBotInlineMessage) Encode() []byte { +func (m *ContactLink) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputBotInlineMessageMediaAuto: - t := m.To_InputBotInlineMessageMediaAuto() - return t.Encode() - case TLConstructor_CRC32_inputBotInlineMessageText: - t := m.To_InputBotInlineMessageText() - return t.Encode() - case TLConstructor_CRC32_inputBotInlineMessageMediaGeo: - t := m.To_InputBotInlineMessageMediaGeo() + case TLConstructor_CRC32_contactLinkUnknown: + t := m.To_ContactLinkUnknown() return t.Encode() - case TLConstructor_CRC32_inputBotInlineMessageMediaVenue: - t := m.To_InputBotInlineMessageMediaVenue() + case TLConstructor_CRC32_contactLinkNone: + t := m.To_ContactLinkNone() return t.Encode() - case TLConstructor_CRC32_inputBotInlineMessageMediaContact: - t := m.To_InputBotInlineMessageMediaContact() + case TLConstructor_CRC32_contactLinkHasPhone: + t := m.To_ContactLinkHasPhone() return t.Encode() - case TLConstructor_CRC32_inputBotInlineMessageGame: - t := m.To_InputBotInlineMessageGame() + case TLConstructor_CRC32_contactLinkContact: + t := m.To_ContactLinkContact() return t.Encode() default: @@ -61512,26 +61718,20 @@ func (m *InputBotInlineMessage) Encode() []byte { } } -func (m *InputBotInlineMessage) EncodeToLayer(layer int) []byte { +func (m *ContactLink) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputBotInlineMessageMediaAuto: - t := m.To_InputBotInlineMessageMediaAuto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputBotInlineMessageText: - t := m.To_InputBotInlineMessageText() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputBotInlineMessageMediaGeo: - t := m.To_InputBotInlineMessageMediaGeo() + case TLConstructor_CRC32_contactLinkUnknown: + t := m.To_ContactLinkUnknown() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputBotInlineMessageMediaVenue: - t := m.To_InputBotInlineMessageMediaVenue() + case TLConstructor_CRC32_contactLinkNone: + t := m.To_ContactLinkNone() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputBotInlineMessageMediaContact: - t := m.To_InputBotInlineMessageMediaContact() + case TLConstructor_CRC32_contactLinkHasPhone: + t := m.To_ContactLinkHasPhone() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_inputBotInlineMessageGame: - t := m.To_InputBotInlineMessageGame() + case TLConstructor_CRC32_contactLinkContact: + t := m.To_ContactLinkContact() return t.EncodeToLayer(layer) default: @@ -61540,31 +61740,23 @@ func (m *InputBotInlineMessage) EncodeToLayer(layer int) []byte { } } -func (m *InputBotInlineMessage) Decode(dbuf *DecodeBuf) error { +func (m *ContactLink) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputBotInlineMessageMediaAuto: - m2 := &TLInputBotInlineMessageMediaAuto{Data2: &InputBotInlineMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputBotInlineMessageText: - m2 := &TLInputBotInlineMessageText{Data2: &InputBotInlineMessage_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputBotInlineMessageMediaGeo: - m2 := &TLInputBotInlineMessageMediaGeo{Data2: &InputBotInlineMessage_Data{}} + case TLConstructor_CRC32_contactLinkUnknown: + m2 := &TLContactLinkUnknown{Data2: &ContactLink_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputBotInlineMessageMediaVenue: - m2 := &TLInputBotInlineMessageMediaVenue{Data2: &InputBotInlineMessage_Data{}} + case TLConstructor_CRC32_contactLinkNone: + m2 := &TLContactLinkNone{Data2: &ContactLink_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputBotInlineMessageMediaContact: - m2 := &TLInputBotInlineMessageMediaContact{Data2: &InputBotInlineMessage_Data{}} + case TLConstructor_CRC32_contactLinkHasPhone: + m2 := &TLContactLinkHasPhone{Data2: &ContactLink_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_inputBotInlineMessageGame: - m2 := &TLInputBotInlineMessageGame{Data2: &InputBotInlineMessage_Data{}} + case TLConstructor_CRC32_contactLinkContact: + m2 := &TLContactLinkContact{Data2: &ContactLink_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -61574,613 +61766,347 @@ func (m *InputBotInlineMessage) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *InputBotInlineMessage) To_InputBotInlineMessageMediaAuto() *TLInputBotInlineMessageMediaAuto { - return &TLInputBotInlineMessageMediaAuto{ - Data2: m.Data2, - } -} - -// inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *InputBotInlineMessage) To_InputBotInlineMessageText() *TLInputBotInlineMessageText { - return &TLInputBotInlineMessageText{ - Data2: m.Data2, - } -} - -// inputBotInlineMessageMediaGeo#c1b15d65 flags:# geo_point:InputGeoPoint period:int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *InputBotInlineMessage) To_InputBotInlineMessageMediaGeo() *TLInputBotInlineMessageMediaGeo { - return &TLInputBotInlineMessageMediaGeo{ +// contactLinkUnknown#5f4f9247 = ContactLink; +func (m *ContactLink) To_ContactLinkUnknown() *TLContactLinkUnknown { + return &TLContactLinkUnknown{ Data2: m.Data2, } } -// inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *InputBotInlineMessage) To_InputBotInlineMessageMediaVenue() *TLInputBotInlineMessageMediaVenue { - return &TLInputBotInlineMessageMediaVenue{ +// contactLinkNone#feedd3ad = ContactLink; +func (m *ContactLink) To_ContactLinkNone() *TLContactLinkNone { + return &TLContactLinkNone{ Data2: m.Data2, } } -// inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *InputBotInlineMessage) To_InputBotInlineMessageMediaContact() *TLInputBotInlineMessageMediaContact { - return &TLInputBotInlineMessageMediaContact{ +// contactLinkHasPhone#268f3f59 = ContactLink; +func (m *ContactLink) To_ContactLinkHasPhone() *TLContactLinkHasPhone { + return &TLContactLinkHasPhone{ Data2: m.Data2, } } -// inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *InputBotInlineMessage) To_InputBotInlineMessageGame() *TLInputBotInlineMessageGame { - return &TLInputBotInlineMessageGame{ +// contactLinkContact#d502c2d0 = ContactLink; +func (m *ContactLink) To_ContactLinkContact() *TLContactLinkContact { + return &TLContactLinkContact{ Data2: m.Data2, } } -// inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *TLInputBotInlineMessageMediaAuto) To_InputBotInlineMessage() *InputBotInlineMessage { - return &InputBotInlineMessage{ - Constructor: TLConstructor_CRC32_inputBotInlineMessageMediaAuto, +// contactLinkUnknown#5f4f9247 = ContactLink; +func (m *TLContactLinkUnknown) To_ContactLink() *ContactLink { + return &ContactLink{ + Constructor: TLConstructor_CRC32_contactLinkUnknown, Data2: m.Data2, } } -func (m *TLInputBotInlineMessageMediaAuto) SetMessage(v string) { m.Data2.Message = v } -func (m *TLInputBotInlineMessageMediaAuto) GetMessage() string { return m.Data2.Message } - -func (m *TLInputBotInlineMessageMediaAuto) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLInputBotInlineMessageMediaAuto) GetEntities() []*MessageEntity { return m.Data2.Entities } - -func (m *TLInputBotInlineMessageMediaAuto) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLInputBotInlineMessageMediaAuto) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } - -func NewTLInputBotInlineMessageMediaAuto() *TLInputBotInlineMessageMediaAuto { - return &TLInputBotInlineMessageMediaAuto{Data2: &InputBotInlineMessage_Data{}} +func NewTLContactLinkUnknown() *TLContactLinkUnknown { + return &TLContactLinkUnknown{Data2: &ContactLink_Data{}} } -func (m *TLInputBotInlineMessageMediaAuto) Encode() []byte { +func (m *TLContactLinkUnknown) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaAuto)) - - // flags - var flags uint32 = 0 - if m.GetEntities() != nil { - flags |= 1 << 1 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) - - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) - } + x.Int(int32(TLConstructor_CRC32_contactLinkUnknown)) return x.buf } -func (m *TLInputBotInlineMessageMediaAuto) EncodeToLayer(layer int) []byte { +func (m *TLContactLinkUnknown) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaAuto)) - - // flags - var flags uint32 = 0 - if m.GetEntities() != nil { - flags |= 1 << 1 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) - - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) - } + x.Int(int32(TLConstructor_CRC32_contactLinkUnknown)) return x.buf } -func (m *TLInputBotInlineMessageMediaAuto) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetMessage(dbuf.String()) - if (flags & (1 << 1)) != 0 { - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*MessageEntity, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &MessageEntity{} - v3[i].Decode(dbuf) - } - m.SetEntities(v3) - - } - if (flags & (1 << 2)) != 0 { - m4 := &ReplyMarkup{} - m4.Decode(dbuf) - m.SetReplyMarkup(m4) - } +func (m *TLContactLinkUnknown) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *TLInputBotInlineMessageText) To_InputBotInlineMessage() *InputBotInlineMessage { - return &InputBotInlineMessage{ - Constructor: TLConstructor_CRC32_inputBotInlineMessageText, +// contactLinkNone#feedd3ad = ContactLink; +func (m *TLContactLinkNone) To_ContactLink() *ContactLink { + return &ContactLink{ + Constructor: TLConstructor_CRC32_contactLinkNone, Data2: m.Data2, } } -func (m *TLInputBotInlineMessageText) SetNoWebpage(v bool) { m.Data2.NoWebpage = v } -func (m *TLInputBotInlineMessageText) GetNoWebpage() bool { return m.Data2.NoWebpage } - -func (m *TLInputBotInlineMessageText) SetMessage(v string) { m.Data2.Message = v } -func (m *TLInputBotInlineMessageText) GetMessage() string { return m.Data2.Message } - -func (m *TLInputBotInlineMessageText) SetEntities(v []*MessageEntity) { m.Data2.Entities = v } -func (m *TLInputBotInlineMessageText) GetEntities() []*MessageEntity { return m.Data2.Entities } - -func (m *TLInputBotInlineMessageText) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLInputBotInlineMessageText) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } - -func NewTLInputBotInlineMessageText() *TLInputBotInlineMessageText { - return &TLInputBotInlineMessageText{Data2: &InputBotInlineMessage_Data{}} +func NewTLContactLinkNone() *TLContactLinkNone { + return &TLContactLinkNone{Data2: &ContactLink_Data{}} } -func (m *TLInputBotInlineMessageText) Encode() []byte { +func (m *TLContactLinkNone) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageText)) - - // flags - var flags uint32 = 0 - if m.GetNoWebpage() == true { - flags |= 1 << 0 - } - if m.GetEntities() != nil { - flags |= 1 << 1 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) - - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).Encode()...) - } - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) - } + x.Int(int32(TLConstructor_CRC32_contactLinkNone)) return x.buf } -func (m *TLInputBotInlineMessageText) EncodeToLayer(layer int) []byte { +func (m *TLContactLinkNone) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageText)) - - // flags - var flags uint32 = 0 - if m.GetNoWebpage() == true { - flags |= 1 << 0 - } - if m.GetEntities() != nil { - flags |= 1 << 1 - } - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) - - x.String(m.GetMessage()) - if m.GetEntities() != nil { - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEntities()))) - for _, v := range m.GetEntities() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - } - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) - } + x.Int(int32(TLConstructor_CRC32_contactLinkNone)) return x.buf } -func (m *TLInputBotInlineMessageText) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m.SetNoWebpage(true) - } - m.SetMessage(dbuf.String()) - if (flags & (1 << 1)) != 0 { - c4 := dbuf.Int() - if c4 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) - return dbuf.err - } - l4 := dbuf.Int() - v4 := make([]*MessageEntity, l4) - for i := int32(0); i < l4; i++ { - v4[i] = &MessageEntity{} - v4[i].Decode(dbuf) - } - m.SetEntities(v4) - - } - if (flags & (1 << 2)) != 0 { - m5 := &ReplyMarkup{} - m5.Decode(dbuf) - m.SetReplyMarkup(m5) - } +func (m *TLContactLinkNone) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputBotInlineMessageMediaGeo#c1b15d65 flags:# geo_point:InputGeoPoint period:int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *TLInputBotInlineMessageMediaGeo) To_InputBotInlineMessage() *InputBotInlineMessage { - return &InputBotInlineMessage{ - Constructor: TLConstructor_CRC32_inputBotInlineMessageMediaGeo, +// contactLinkHasPhone#268f3f59 = ContactLink; +func (m *TLContactLinkHasPhone) To_ContactLink() *ContactLink { + return &ContactLink{ + Constructor: TLConstructor_CRC32_contactLinkHasPhone, Data2: m.Data2, } } -func (m *TLInputBotInlineMessageMediaGeo) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } -func (m *TLInputBotInlineMessageMediaGeo) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } - -func (m *TLInputBotInlineMessageMediaGeo) SetPeriod(v int32) { m.Data2.Period = v } -func (m *TLInputBotInlineMessageMediaGeo) GetPeriod() int32 { return m.Data2.Period } - -func (m *TLInputBotInlineMessageMediaGeo) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLInputBotInlineMessageMediaGeo) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } - -func NewTLInputBotInlineMessageMediaGeo() *TLInputBotInlineMessageMediaGeo { - return &TLInputBotInlineMessageMediaGeo{Data2: &InputBotInlineMessage_Data{}} +func NewTLContactLinkHasPhone() *TLContactLinkHasPhone { + return &TLContactLinkHasPhone{Data2: &ContactLink_Data{}} } -func (m *TLInputBotInlineMessageMediaGeo) Encode() []byte { +func (m *TLContactLinkHasPhone) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaGeo)) - - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) - - x.Bytes(m.GetGeoPoint().Encode()) - x.Int(m.GetPeriod()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) - } + x.Int(int32(TLConstructor_CRC32_contactLinkHasPhone)) return x.buf } -func (m *TLInputBotInlineMessageMediaGeo) EncodeToLayer(layer int) []byte { +func (m *TLContactLinkHasPhone) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaGeo)) - - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) - - x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) - x.Int(m.GetPeriod()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) - } + x.Int(int32(TLConstructor_CRC32_contactLinkHasPhone)) return x.buf } -func (m *TLInputBotInlineMessageMediaGeo) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m2 := &InputGeoPoint{} - m2.Decode(dbuf) - m.SetGeoPoint(m2) - m.SetPeriod(dbuf.Int()) - if (flags & (1 << 2)) != 0 { - m4 := &ReplyMarkup{} - m4.Decode(dbuf) - m.SetReplyMarkup(m4) - } +func (m *TLContactLinkHasPhone) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *TLInputBotInlineMessageMediaVenue) To_InputBotInlineMessage() *InputBotInlineMessage { - return &InputBotInlineMessage{ - Constructor: TLConstructor_CRC32_inputBotInlineMessageMediaVenue, +// contactLinkContact#d502c2d0 = ContactLink; +func (m *TLContactLinkContact) To_ContactLink() *ContactLink { + return &ContactLink{ + Constructor: TLConstructor_CRC32_contactLinkContact, Data2: m.Data2, } } -func (m *TLInputBotInlineMessageMediaVenue) SetGeoPoint(v *InputGeoPoint) { m.Data2.GeoPoint = v } -func (m *TLInputBotInlineMessageMediaVenue) GetGeoPoint() *InputGeoPoint { return m.Data2.GeoPoint } - -func (m *TLInputBotInlineMessageMediaVenue) SetTitle(v string) { m.Data2.Title = v } -func (m *TLInputBotInlineMessageMediaVenue) GetTitle() string { return m.Data2.Title } - -func (m *TLInputBotInlineMessageMediaVenue) SetAddress(v string) { m.Data2.Address = v } -func (m *TLInputBotInlineMessageMediaVenue) GetAddress() string { return m.Data2.Address } - -func (m *TLInputBotInlineMessageMediaVenue) SetProvider(v string) { m.Data2.Provider = v } -func (m *TLInputBotInlineMessageMediaVenue) GetProvider() string { return m.Data2.Provider } - -func (m *TLInputBotInlineMessageMediaVenue) SetVenueId(v string) { m.Data2.VenueId = v } -func (m *TLInputBotInlineMessageMediaVenue) GetVenueId() string { return m.Data2.VenueId } - -func (m *TLInputBotInlineMessageMediaVenue) SetVenueType(v string) { m.Data2.VenueType = v } -func (m *TLInputBotInlineMessageMediaVenue) GetVenueType() string { return m.Data2.VenueType } - -func (m *TLInputBotInlineMessageMediaVenue) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLInputBotInlineMessageMediaVenue) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } - -func NewTLInputBotInlineMessageMediaVenue() *TLInputBotInlineMessageMediaVenue { - return &TLInputBotInlineMessageMediaVenue{Data2: &InputBotInlineMessage_Data{}} +func NewTLContactLinkContact() *TLContactLinkContact { + return &TLContactLinkContact{Data2: &ContactLink_Data{}} } -func (m *TLInputBotInlineMessageMediaVenue) Encode() []byte { +func (m *TLContactLinkContact) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaVenue)) - - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) - - x.Bytes(m.GetGeoPoint().Encode()) - x.String(m.GetTitle()) - x.String(m.GetAddress()) - x.String(m.GetProvider()) - x.String(m.GetVenueId()) - x.String(m.GetVenueType()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) - } + x.Int(int32(TLConstructor_CRC32_contactLinkContact)) return x.buf } -func (m *TLInputBotInlineMessageMediaVenue) EncodeToLayer(layer int) []byte { +func (m *TLContactLinkContact) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaVenue)) - - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) - - x.Bytes(m.GetGeoPoint().EncodeToLayer(layer)) - x.String(m.GetTitle()) - x.String(m.GetAddress()) - x.String(m.GetProvider()) - x.String(m.GetVenueId()) - x.String(m.GetVenueType()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) - } + x.Int(int32(TLConstructor_CRC32_contactLinkContact)) return x.buf } -func (m *TLInputBotInlineMessageMediaVenue) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m2 := &InputGeoPoint{} - m2.Decode(dbuf) - m.SetGeoPoint(m2) - m.SetTitle(dbuf.String()) - m.SetAddress(dbuf.String()) - m.SetProvider(dbuf.String()) - m.SetVenueId(dbuf.String()) - m.SetVenueType(dbuf.String()) - if (flags & (1 << 2)) != 0 { - m8 := &ReplyMarkup{} - m8.Decode(dbuf) - m.SetReplyMarkup(m8) - } +func (m *TLContactLinkContact) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *TLInputBotInlineMessageMediaContact) To_InputBotInlineMessage() *InputBotInlineMessage { - return &InputBotInlineMessage{ - Constructor: TLConstructor_CRC32_inputBotInlineMessageMediaContact, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// ChannelMessagesFilter <-- +// + TL_ChannelMessagesFilterEmpty +// + TL_ChannelMessagesFilter +// + +func (m *ChannelMessagesFilter) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_channelMessagesFilterEmpty: + t := m.To_ChannelMessagesFilterEmpty() + return t.Encode() + case TLConstructor_CRC32_channelMessagesFilter: + t := m.To_ChannelMessagesFilter() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func (m *TLInputBotInlineMessageMediaContact) SetPhoneNumber(v string) { m.Data2.PhoneNumber = v } -func (m *TLInputBotInlineMessageMediaContact) GetPhoneNumber() string { return m.Data2.PhoneNumber } - -func (m *TLInputBotInlineMessageMediaContact) SetFirstName(v string) { m.Data2.FirstName = v } -func (m *TLInputBotInlineMessageMediaContact) GetFirstName() string { return m.Data2.FirstName } +func (m *ChannelMessagesFilter) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_channelMessagesFilterEmpty: + t := m.To_ChannelMessagesFilterEmpty() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_channelMessagesFilter: + t := m.To_ChannelMessagesFilter() + return t.EncodeToLayer(layer) -func (m *TLInputBotInlineMessageMediaContact) SetLastName(v string) { m.Data2.LastName = v } -func (m *TLInputBotInlineMessageMediaContact) GetLastName() string { return m.Data2.LastName } + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} -func (m *TLInputBotInlineMessageMediaContact) SetVcard(v string) { m.Data2.Vcard = v } -func (m *TLInputBotInlineMessageMediaContact) GetVcard() string { return m.Data2.Vcard } +func (m *ChannelMessagesFilter) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_channelMessagesFilterEmpty: + m2 := &TLChannelMessagesFilterEmpty{Data2: &ChannelMessagesFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_channelMessagesFilter: + m2 := &TLChannelMessagesFilter{Data2: &ChannelMessagesFilter_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 -func (m *TLInputBotInlineMessageMediaContact) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLInputBotInlineMessageMediaContact) GetReplyMarkup() *ReplyMarkup { - return m.Data2.ReplyMarkup + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func NewTLInputBotInlineMessageMediaContact() *TLInputBotInlineMessageMediaContact { - return &TLInputBotInlineMessageMediaContact{Data2: &InputBotInlineMessage_Data{}} +// channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter; +func (m *ChannelMessagesFilter) To_ChannelMessagesFilterEmpty() *TLChannelMessagesFilterEmpty { + return &TLChannelMessagesFilterEmpty{ + Data2: m.Data2, + } } -func (m *TLInputBotInlineMessageMediaContact) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaContact)) - - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 +// channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter; +func (m *ChannelMessagesFilter) To_ChannelMessagesFilter() *TLChannelMessagesFilter { + return &TLChannelMessagesFilter{ + Data2: m.Data2, } - x.UInt(flags) +} - x.String(m.GetPhoneNumber()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetVcard()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) +// channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter; +func (m *TLChannelMessagesFilterEmpty) To_ChannelMessagesFilter() *ChannelMessagesFilter { + return &ChannelMessagesFilter{ + Constructor: TLConstructor_CRC32_channelMessagesFilterEmpty, + Data2: m.Data2, } +} - return x.buf +func NewTLChannelMessagesFilterEmpty() *TLChannelMessagesFilterEmpty { + return &TLChannelMessagesFilterEmpty{Data2: &ChannelMessagesFilter_Data{}} } -func (m *TLInputBotInlineMessageMediaContact) EncodeToLayer(layer int) []byte { +func (m *TLChannelMessagesFilterEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageMediaContact)) + x.Int(int32(TLConstructor_CRC32_channelMessagesFilterEmpty)) - // flags - var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 - } - x.UInt(flags) + return x.buf +} - x.String(m.GetPhoneNumber()) - x.String(m.GetFirstName()) - x.String(m.GetLastName()) - x.String(m.GetVcard()) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) - } +func (m *TLChannelMessagesFilterEmpty) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_channelMessagesFilterEmpty)) return x.buf } -func (m *TLInputBotInlineMessageMediaContact) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetPhoneNumber(dbuf.String()) - m.SetFirstName(dbuf.String()) - m.SetLastName(dbuf.String()) - m.SetVcard(dbuf.String()) - if (flags & (1 << 2)) != 0 { - m6 := &ReplyMarkup{} - m6.Decode(dbuf) - m.SetReplyMarkup(m6) - } +func (m *TLChannelMessagesFilterEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -func (m *TLInputBotInlineMessageGame) To_InputBotInlineMessage() *InputBotInlineMessage { - return &InputBotInlineMessage{ - Constructor: TLConstructor_CRC32_inputBotInlineMessageGame, +// channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter; +func (m *TLChannelMessagesFilter) To_ChannelMessagesFilter() *ChannelMessagesFilter { + return &ChannelMessagesFilter{ + Constructor: TLConstructor_CRC32_channelMessagesFilter, Data2: m.Data2, } } -func (m *TLInputBotInlineMessageGame) SetReplyMarkup(v *ReplyMarkup) { m.Data2.ReplyMarkup = v } -func (m *TLInputBotInlineMessageGame) GetReplyMarkup() *ReplyMarkup { return m.Data2.ReplyMarkup } +func (m *TLChannelMessagesFilter) SetExcludeNewMessages(v bool) { m.Data2.ExcludeNewMessages = v } +func (m *TLChannelMessagesFilter) GetExcludeNewMessages() bool { return m.Data2.ExcludeNewMessages } -func NewTLInputBotInlineMessageGame() *TLInputBotInlineMessageGame { - return &TLInputBotInlineMessageGame{Data2: &InputBotInlineMessage_Data{}} +func (m *TLChannelMessagesFilter) SetRanges(v []*MessageRange) { m.Data2.Ranges = v } +func (m *TLChannelMessagesFilter) GetRanges() []*MessageRange { return m.Data2.Ranges } + +func NewTLChannelMessagesFilter() *TLChannelMessagesFilter { + return &TLChannelMessagesFilter{Data2: &ChannelMessagesFilter_Data{}} } -func (m *TLInputBotInlineMessageGame) Encode() []byte { +func (m *TLChannelMessagesFilter) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageGame)) + x.Int(int32(TLConstructor_CRC32_channelMessagesFilter)) // flags var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 + if m.GetExcludeNewMessages() == true { + flags |= 1 << 1 } x.UInt(flags) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRanges()))) + for _, v := range m.GetRanges() { + x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLInputBotInlineMessageGame) EncodeToLayer(layer int) []byte { +func (m *TLChannelMessagesFilter) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputBotInlineMessageGame)) + x.Int(int32(TLConstructor_CRC32_channelMessagesFilter)) // flags var flags uint32 = 0 - if m.GetReplyMarkup() != nil { - flags |= 1 << 2 + if m.GetExcludeNewMessages() == true { + flags |= 1 << 1 } x.UInt(flags) - if m.GetReplyMarkup() != nil { - x.Bytes(m.GetReplyMarkup().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRanges()))) + for _, v := range m.GetRanges() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLInputBotInlineMessageGame) Decode(dbuf *DecodeBuf) error { +func (m *TLChannelMessagesFilter) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - if (flags & (1 << 2)) != 0 { - m2 := &ReplyMarkup{} - m2.Decode(dbuf) - m.SetReplyMarkup(m2) + if (flags & (1 << 1)) != 0 { + m.SetExcludeNewMessages(true) + } + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*MessageRange, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &MessageRange{} + v3[i].Decode(dbuf) } + m.SetRanges(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// InputAppEvent <-- -// + TL_InputAppEvent +// InputClientProxy <-- +// + TL_InputClientProxy // -func (m *InputAppEvent) Encode() []byte { +func (m *InputClientProxy) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_inputAppEvent: - t := m.To_InputAppEvent() + case TLConstructor_CRC32_inputClientProxy: + t := m.To_InputClientProxy() return t.Encode() default: @@ -62189,11 +62115,11 @@ func (m *InputAppEvent) Encode() []byte { } } -func (m *InputAppEvent) EncodeToLayer(layer int) []byte { +func (m *InputClientProxy) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_inputAppEvent: - t := m.To_InputAppEvent() + case TLConstructor_CRC32_inputClientProxy: + t := m.To_InputClientProxy() return t.EncodeToLayer(layer) default: @@ -62202,11 +62128,11 @@ func (m *InputAppEvent) EncodeToLayer(layer int) []byte { } } -func (m *InputAppEvent) Decode(dbuf *DecodeBuf) error { +func (m *InputClientProxy) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_inputAppEvent: - m2 := &TLInputAppEvent{Data2: &InputAppEvent_Data{}} + case TLConstructor_CRC32_inputClientProxy: + m2 := &TLInputClientProxy{Data2: &InputClientProxy_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -62216,79 +62142,67 @@ func (m *InputAppEvent) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent; -func (m *InputAppEvent) To_InputAppEvent() *TLInputAppEvent { - return &TLInputAppEvent{ +// inputClientProxy#75588b3f address:string port:int = InputClientProxy; +func (m *InputClientProxy) To_InputClientProxy() *TLInputClientProxy { + return &TLInputClientProxy{ Data2: m.Data2, } } -// inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent; -func (m *TLInputAppEvent) To_InputAppEvent() *InputAppEvent { - return &InputAppEvent{ - Constructor: TLConstructor_CRC32_inputAppEvent, +// inputClientProxy#75588b3f address:string port:int = InputClientProxy; +func (m *TLInputClientProxy) To_InputClientProxy() *InputClientProxy { + return &InputClientProxy{ + Constructor: TLConstructor_CRC32_inputClientProxy, Data2: m.Data2, } } -func (m *TLInputAppEvent) SetTime(v float64) { m.Data2.Time = v } -func (m *TLInputAppEvent) GetTime() float64 { return m.Data2.Time } - -func (m *TLInputAppEvent) SetType(v string) { m.Data2.Type = v } -func (m *TLInputAppEvent) GetType() string { return m.Data2.Type } - -func (m *TLInputAppEvent) SetPeer(v int64) { m.Data2.Peer = v } -func (m *TLInputAppEvent) GetPeer() int64 { return m.Data2.Peer } +func (m *TLInputClientProxy) SetAddress(v string) { m.Data2.Address = v } +func (m *TLInputClientProxy) GetAddress() string { return m.Data2.Address } -func (m *TLInputAppEvent) SetData(v string) { m.Data2.Data = v } -func (m *TLInputAppEvent) GetData() string { return m.Data2.Data } +func (m *TLInputClientProxy) SetPort(v int32) { m.Data2.Port = v } +func (m *TLInputClientProxy) GetPort() int32 { return m.Data2.Port } -func NewTLInputAppEvent() *TLInputAppEvent { - return &TLInputAppEvent{Data2: &InputAppEvent_Data{}} +func NewTLInputClientProxy() *TLInputClientProxy { + return &TLInputClientProxy{Data2: &InputClientProxy_Data{}} } -func (m *TLInputAppEvent) Encode() []byte { +func (m *TLInputClientProxy) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputAppEvent)) + x.Int(int32(TLConstructor_CRC32_inputClientProxy)) - x.Double(m.GetTime()) - x.String(m.GetType()) - x.Long(m.GetPeer()) - x.String(m.GetData()) + x.String(m.GetAddress()) + x.Int(m.GetPort()) return x.buf } -func (m *TLInputAppEvent) EncodeToLayer(layer int) []byte { +func (m *TLInputClientProxy) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_inputAppEvent)) + x.Int(int32(TLConstructor_CRC32_inputClientProxy)) - x.Double(m.GetTime()) - x.String(m.GetType()) - x.Long(m.GetPeer()) - x.String(m.GetData()) + x.String(m.GetAddress()) + x.Int(m.GetPort()) return x.buf } -func (m *TLInputAppEvent) Decode(dbuf *DecodeBuf) error { - m.SetTime(dbuf.Double()) - m.SetType(dbuf.String()) - m.SetPeer(dbuf.Long()) - m.SetData(dbuf.String()) +func (m *TLInputClientProxy) Decode(dbuf *DecodeBuf) error { + m.SetAddress(dbuf.String()) + m.SetPort(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Photos_Photo <-- -// + TL_PhotosPhoto +// Messages_StickerSet <-- +// + TL_MessagesStickerSet // -func (m *Photos_Photo) Encode() []byte { +func (m *Messages_StickerSet) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_photos_photo: - t := m.To_PhotosPhoto() + case TLConstructor_CRC32_messages_stickerSet: + t := m.To_MessagesStickerSet() return t.Encode() default: @@ -62297,11 +62211,11 @@ func (m *Photos_Photo) Encode() []byte { } } -func (m *Photos_Photo) EncodeToLayer(layer int) []byte { +func (m *Messages_StickerSet) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_photos_photo: - t := m.To_PhotosPhoto() + case TLConstructor_CRC32_messages_stickerSet: + t := m.To_MessagesStickerSet() return t.EncodeToLayer(layer) default: @@ -62310,11 +62224,11 @@ func (m *Photos_Photo) EncodeToLayer(layer int) []byte { } } -func (m *Photos_Photo) Decode(dbuf *DecodeBuf) error { +func (m *Messages_StickerSet) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_photos_photo: - m2 := &TLPhotosPhoto{Data2: &Photos_Photo_Data{}} + case TLConstructor_CRC32_messages_stickerSet: + m2 := &TLMessagesStickerSet{Data2: &Messages_StickerSet_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -62324,88 +62238,126 @@ func (m *Photos_Photo) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; -func (m *Photos_Photo) To_PhotosPhoto() *TLPhotosPhoto { - return &TLPhotosPhoto{ +// messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; +func (m *Messages_StickerSet) To_MessagesStickerSet() *TLMessagesStickerSet { + return &TLMessagesStickerSet{ Data2: m.Data2, } } -// photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; -func (m *TLPhotosPhoto) To_Photos_Photo() *Photos_Photo { - return &Photos_Photo{ - Constructor: TLConstructor_CRC32_photos_photo, +// messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; +func (m *TLMessagesStickerSet) To_Messages_StickerSet() *Messages_StickerSet { + return &Messages_StickerSet{ + Constructor: TLConstructor_CRC32_messages_stickerSet, Data2: m.Data2, } } -func (m *TLPhotosPhoto) SetPhoto(v *Photo) { m.Data2.Photo = v } -func (m *TLPhotosPhoto) GetPhoto() *Photo { return m.Data2.Photo } +func (m *TLMessagesStickerSet) SetSet(v *StickerSet) { m.Data2.Set = v } +func (m *TLMessagesStickerSet) GetSet() *StickerSet { return m.Data2.Set } -func (m *TLPhotosPhoto) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLPhotosPhoto) GetUsers() []*User { return m.Data2.Users } +func (m *TLMessagesStickerSet) SetPacks(v []*StickerPack) { m.Data2.Packs = v } +func (m *TLMessagesStickerSet) GetPacks() []*StickerPack { return m.Data2.Packs } -func NewTLPhotosPhoto() *TLPhotosPhoto { - return &TLPhotosPhoto{Data2: &Photos_Photo_Data{}} +func (m *TLMessagesStickerSet) SetDocuments(v []*Document) { m.Data2.Documents = v } +func (m *TLMessagesStickerSet) GetDocuments() []*Document { return m.Data2.Documents } + +func NewTLMessagesStickerSet() *TLMessagesStickerSet { + return &TLMessagesStickerSet{Data2: &Messages_StickerSet_Data{}} } -func (m *TLPhotosPhoto) Encode() []byte { +func (m *TLMessagesStickerSet) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photos_photo)) + x.Int(int32(TLConstructor_CRC32_messages_stickerSet)) - x.Bytes(m.GetPhoto().Encode()) + x.Bytes(m.GetSet().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { + x.Int(int32(len(m.GetPacks()))) + for _, v := range m.GetPacks() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDocuments()))) + for _, v := range m.GetDocuments() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLPhotosPhoto) EncodeToLayer(layer int) []byte { +func (m *TLMessagesStickerSet) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_photos_photo)) + x.Int(int32(TLConstructor_CRC32_messages_stickerSet)) - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Bytes(m.GetSet().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { + x.Int(int32(len(m.GetPacks()))) + for _, v := range m.GetPacks() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetDocuments()))) + for _, v := range m.GetDocuments() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLPhotosPhoto) Decode(dbuf *DecodeBuf) error { - m1 := &Photo{} +func (m *TLMessagesStickerSet) Decode(dbuf *DecodeBuf) error { + m1 := &StickerSet{} m1.Decode(dbuf) - m.SetPhoto(m1) + m.SetSet(m1) c2 := dbuf.Int() if c2 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } l2 := dbuf.Int() - v2 := make([]*User, l2) + v2 := make([]*StickerPack, l2) for i := int32(0); i < l2; i++ { - v2[i] = &User{} + v2[i] = &StickerPack{} v2[i].Decode(dbuf) } - m.SetUsers(v2) + m.SetPacks(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*Document, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &Document{} + v3[i].Decode(dbuf) + } + m.SetDocuments(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Payments_PaymentForm <-- -// + TL_PaymentsPaymentForm +// Auth_SentCodeType <-- +// + TL_AuthSentCodeTypeApp +// + TL_AuthSentCodeTypeSms +// + TL_AuthSentCodeTypeCall +// + TL_AuthSentCodeTypeFlashCall // -func (m *Payments_PaymentForm) Encode() []byte { +func (m *Auth_SentCodeType) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_payments_paymentForm: - t := m.To_PaymentsPaymentForm() + case TLConstructor_CRC32_auth_sentCodeTypeApp: + t := m.To_AuthSentCodeTypeApp() + return t.Encode() + case TLConstructor_CRC32_auth_sentCodeTypeSms: + t := m.To_AuthSentCodeTypeSms() + return t.Encode() + case TLConstructor_CRC32_auth_sentCodeTypeCall: + t := m.To_AuthSentCodeTypeCall() + return t.Encode() + case TLConstructor_CRC32_auth_sentCodeTypeFlashCall: + t := m.To_AuthSentCodeTypeFlashCall() return t.Encode() default: @@ -62414,249 +62366,247 @@ func (m *Payments_PaymentForm) Encode() []byte { } } -func (m *Payments_PaymentForm) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_payments_paymentForm: - t := m.To_PaymentsPaymentForm() - return t.EncodeToLayer(layer) +func (m *Auth_SentCodeType) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_auth_sentCodeTypeApp: + t := m.To_AuthSentCodeTypeApp() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_auth_sentCodeTypeSms: + t := m.To_AuthSentCodeTypeSms() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_auth_sentCodeTypeCall: + t := m.To_AuthSentCodeTypeCall() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_auth_sentCodeTypeFlashCall: + t := m.To_AuthSentCodeTypeFlashCall() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *Auth_SentCodeType) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_auth_sentCodeTypeApp: + m2 := &TLAuthSentCodeTypeApp{Data2: &Auth_SentCodeType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_auth_sentCodeTypeSms: + m2 := &TLAuthSentCodeTypeSms{Data2: &Auth_SentCodeType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_auth_sentCodeTypeCall: + m2 := &TLAuthSentCodeTypeCall{Data2: &Auth_SentCodeType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_auth_sentCodeTypeFlashCall: + m2 := &TLAuthSentCodeTypeFlashCall{Data2: &Auth_SentCodeType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType; +func (m *Auth_SentCodeType) To_AuthSentCodeTypeApp() *TLAuthSentCodeTypeApp { + return &TLAuthSentCodeTypeApp{ + Data2: m.Data2, + } +} + +// auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType; +func (m *Auth_SentCodeType) To_AuthSentCodeTypeSms() *TLAuthSentCodeTypeSms { + return &TLAuthSentCodeTypeSms{ + Data2: m.Data2, + } +} + +// auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType; +func (m *Auth_SentCodeType) To_AuthSentCodeTypeCall() *TLAuthSentCodeTypeCall { + return &TLAuthSentCodeTypeCall{ + Data2: m.Data2, + } +} + +// auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType; +func (m *Auth_SentCodeType) To_AuthSentCodeTypeFlashCall() *TLAuthSentCodeTypeFlashCall { + return &TLAuthSentCodeTypeFlashCall{ + Data2: m.Data2, + } +} + +// auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType; +func (m *TLAuthSentCodeTypeApp) To_Auth_SentCodeType() *Auth_SentCodeType { + return &Auth_SentCodeType{ + Constructor: TLConstructor_CRC32_auth_sentCodeTypeApp, + Data2: m.Data2, + } +} + +func (m *TLAuthSentCodeTypeApp) SetLength(v int32) { m.Data2.Length = v } +func (m *TLAuthSentCodeTypeApp) GetLength() int32 { return m.Data2.Length } + +func NewTLAuthSentCodeTypeApp() *TLAuthSentCodeTypeApp { + return &TLAuthSentCodeTypeApp{Data2: &Auth_SentCodeType_Data{}} +} + +func (m *TLAuthSentCodeTypeApp) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeApp)) + + x.Int(m.GetLength()) + + return x.buf +} + +func (m *TLAuthSentCodeTypeApp) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeApp)) + + x.Int(m.GetLength()) + + return x.buf +} + +func (m *TLAuthSentCodeTypeApp) Decode(dbuf *DecodeBuf) error { + m.SetLength(dbuf.Int()) + + return dbuf.err +} + +// auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType; +func (m *TLAuthSentCodeTypeSms) To_Auth_SentCodeType() *Auth_SentCodeType { + return &Auth_SentCodeType{ + Constructor: TLConstructor_CRC32_auth_sentCodeTypeSms, + Data2: m.Data2, + } +} + +func (m *TLAuthSentCodeTypeSms) SetLength(v int32) { m.Data2.Length = v } +func (m *TLAuthSentCodeTypeSms) GetLength() int32 { return m.Data2.Length } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLAuthSentCodeTypeSms() *TLAuthSentCodeTypeSms { + return &TLAuthSentCodeTypeSms{Data2: &Auth_SentCodeType_Data{}} } -func (m *Payments_PaymentForm) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_payments_paymentForm: - m2 := &TLPaymentsPaymentForm{Data2: &Payments_PaymentForm_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLAuthSentCodeTypeSms) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeSms)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Int(m.GetLength()) + + return x.buf } -// payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; -func (m *Payments_PaymentForm) To_PaymentsPaymentForm() *TLPaymentsPaymentForm { - return &TLPaymentsPaymentForm{ - Data2: m.Data2, - } +func (m *TLAuthSentCodeTypeSms) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeSms)) + + x.Int(m.GetLength()) + + return x.buf } -// payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; -func (m *TLPaymentsPaymentForm) To_Payments_PaymentForm() *Payments_PaymentForm { - return &Payments_PaymentForm{ - Constructor: TLConstructor_CRC32_payments_paymentForm, +func (m *TLAuthSentCodeTypeSms) Decode(dbuf *DecodeBuf) error { + m.SetLength(dbuf.Int()) + + return dbuf.err +} + +// auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType; +func (m *TLAuthSentCodeTypeCall) To_Auth_SentCodeType() *Auth_SentCodeType { + return &Auth_SentCodeType{ + Constructor: TLConstructor_CRC32_auth_sentCodeTypeCall, Data2: m.Data2, } } -func (m *TLPaymentsPaymentForm) SetCanSaveCredentials(v bool) { m.Data2.CanSaveCredentials = v } -func (m *TLPaymentsPaymentForm) GetCanSaveCredentials() bool { return m.Data2.CanSaveCredentials } +func (m *TLAuthSentCodeTypeCall) SetLength(v int32) { m.Data2.Length = v } +func (m *TLAuthSentCodeTypeCall) GetLength() int32 { return m.Data2.Length } -func (m *TLPaymentsPaymentForm) SetPasswordMissing(v bool) { m.Data2.PasswordMissing = v } -func (m *TLPaymentsPaymentForm) GetPasswordMissing() bool { return m.Data2.PasswordMissing } +func NewTLAuthSentCodeTypeCall() *TLAuthSentCodeTypeCall { + return &TLAuthSentCodeTypeCall{Data2: &Auth_SentCodeType_Data{}} +} -func (m *TLPaymentsPaymentForm) SetBotId(v int32) { m.Data2.BotId = v } -func (m *TLPaymentsPaymentForm) GetBotId() int32 { return m.Data2.BotId } +func (m *TLAuthSentCodeTypeCall) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeCall)) -func (m *TLPaymentsPaymentForm) SetInvoice(v *Invoice) { m.Data2.Invoice = v } -func (m *TLPaymentsPaymentForm) GetInvoice() *Invoice { return m.Data2.Invoice } + x.Int(m.GetLength()) -func (m *TLPaymentsPaymentForm) SetProviderId(v int32) { m.Data2.ProviderId = v } -func (m *TLPaymentsPaymentForm) GetProviderId() int32 { return m.Data2.ProviderId } + return x.buf +} -func (m *TLPaymentsPaymentForm) SetUrl(v string) { m.Data2.Url = v } -func (m *TLPaymentsPaymentForm) GetUrl() string { return m.Data2.Url } +func (m *TLAuthSentCodeTypeCall) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeCall)) -func (m *TLPaymentsPaymentForm) SetNativeProvider(v string) { m.Data2.NativeProvider = v } -func (m *TLPaymentsPaymentForm) GetNativeProvider() string { return m.Data2.NativeProvider } + x.Int(m.GetLength()) -func (m *TLPaymentsPaymentForm) SetNativeParams(v *DataJSON) { m.Data2.NativeParams = v } -func (m *TLPaymentsPaymentForm) GetNativeParams() *DataJSON { return m.Data2.NativeParams } + return x.buf +} -func (m *TLPaymentsPaymentForm) SetSavedInfo(v *PaymentRequestedInfo) { m.Data2.SavedInfo = v } -func (m *TLPaymentsPaymentForm) GetSavedInfo() *PaymentRequestedInfo { return m.Data2.SavedInfo } +func (m *TLAuthSentCodeTypeCall) Decode(dbuf *DecodeBuf) error { + m.SetLength(dbuf.Int()) -func (m *TLPaymentsPaymentForm) SetSavedCredentials(v *PaymentSavedCredentials) { - m.Data2.SavedCredentials = v + return dbuf.err } -func (m *TLPaymentsPaymentForm) GetSavedCredentials() *PaymentSavedCredentials { - return m.Data2.SavedCredentials + +// auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType; +func (m *TLAuthSentCodeTypeFlashCall) To_Auth_SentCodeType() *Auth_SentCodeType { + return &Auth_SentCodeType{ + Constructor: TLConstructor_CRC32_auth_sentCodeTypeFlashCall, + Data2: m.Data2, + } } -func (m *TLPaymentsPaymentForm) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLPaymentsPaymentForm) GetUsers() []*User { return m.Data2.Users } +func (m *TLAuthSentCodeTypeFlashCall) SetPattern(v string) { m.Data2.Pattern = v } +func (m *TLAuthSentCodeTypeFlashCall) GetPattern() string { return m.Data2.Pattern } -func NewTLPaymentsPaymentForm() *TLPaymentsPaymentForm { - return &TLPaymentsPaymentForm{Data2: &Payments_PaymentForm_Data{}} +func NewTLAuthSentCodeTypeFlashCall() *TLAuthSentCodeTypeFlashCall { + return &TLAuthSentCodeTypeFlashCall{Data2: &Auth_SentCodeType_Data{}} } -func (m *TLPaymentsPaymentForm) Encode() []byte { +func (m *TLAuthSentCodeTypeFlashCall) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_payments_paymentForm)) - - // flags - var flags uint32 = 0 - if m.GetCanSaveCredentials() == true { - flags |= 1 << 2 - } - if m.GetPasswordMissing() == true { - flags |= 1 << 3 - } - if m.GetNativeProvider() != "" { - flags |= 1 << 4 - } - if m.GetNativeParams() != nil { - flags |= 1 << 4 - } - if m.GetSavedInfo() != nil { - flags |= 1 << 0 - } - if m.GetSavedCredentials() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeFlashCall)) - x.Int(m.GetBotId()) - x.Bytes(m.GetInvoice().Encode()) - x.Int(m.GetProviderId()) - x.String(m.GetUrl()) - if m.GetNativeProvider() != "" { - x.String(m.GetNativeProvider()) - } - if m.GetNativeParams() != nil { - x.Bytes(m.GetNativeParams().Encode()) - } - if m.GetSavedInfo() != nil { - x.Bytes(m.GetSavedInfo().Encode()) - } - if m.GetSavedCredentials() != nil { - x.Bytes(m.GetSavedCredentials().Encode()) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.String(m.GetPattern()) return x.buf } -func (m *TLPaymentsPaymentForm) EncodeToLayer(layer int) []byte { +func (m *TLAuthSentCodeTypeFlashCall) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_payments_paymentForm)) - - // flags - var flags uint32 = 0 - if m.GetCanSaveCredentials() == true { - flags |= 1 << 2 - } - if m.GetPasswordMissing() == true { - flags |= 1 << 3 - } - if m.GetNativeProvider() != "" { - flags |= 1 << 4 - } - if m.GetNativeParams() != nil { - flags |= 1 << 4 - } - if m.GetSavedInfo() != nil { - flags |= 1 << 0 - } - if m.GetSavedCredentials() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_auth_sentCodeTypeFlashCall)) - x.Int(m.GetBotId()) - x.Bytes(m.GetInvoice().EncodeToLayer(layer)) - x.Int(m.GetProviderId()) - x.String(m.GetUrl()) - if m.GetNativeProvider() != "" { - x.String(m.GetNativeProvider()) - } - if m.GetNativeParams() != nil { - x.Bytes(m.GetNativeParams().EncodeToLayer(layer)) - } - if m.GetSavedInfo() != nil { - x.Bytes(m.GetSavedInfo().EncodeToLayer(layer)) - } - if m.GetSavedCredentials() != nil { - x.Bytes(m.GetSavedCredentials().EncodeToLayer(layer)) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.String(m.GetPattern()) return x.buf } -func (m *TLPaymentsPaymentForm) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 2)) != 0 { - m.SetCanSaveCredentials(true) - } - if (flags & (1 << 3)) != 0 { - m.SetPasswordMissing(true) - } - m.SetBotId(dbuf.Int()) - m5 := &Invoice{} - m5.Decode(dbuf) - m.SetInvoice(m5) - m.SetProviderId(dbuf.Int()) - m.SetUrl(dbuf.String()) - if (flags & (1 << 4)) != 0 { - m.SetNativeProvider(dbuf.String()) - } - if (flags & (1 << 4)) != 0 { - m9 := &DataJSON{} - m9.Decode(dbuf) - m.SetNativeParams(m9) - } - if (flags & (1 << 0)) != 0 { - m10 := &PaymentRequestedInfo{} - m10.Decode(dbuf) - m.SetSavedInfo(m10) - } - if (flags & (1 << 1)) != 0 { - m11 := &PaymentSavedCredentials{} - m11.Decode(dbuf) - m.SetSavedCredentials(m11) - } - c12 := dbuf.Int() - if c12 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 12, c12) - return dbuf.err - } - l12 := dbuf.Int() - v12 := make([]*User, l12) - for i := int32(0); i < l12; i++ { - v12[i] = &User{} - v12[i].Decode(dbuf) - } - m.SetUsers(v12) +func (m *TLAuthSentCodeTypeFlashCall) Decode(dbuf *DecodeBuf) error { + m.SetPattern(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// SecureCredentialsEncrypted <-- -// + TL_SecureCredentialsEncrypted +// CdnPublicKey <-- +// + TL_CdnPublicKey // -func (m *SecureCredentialsEncrypted) Encode() []byte { +func (m *CdnPublicKey) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_secureCredentialsEncrypted: - t := m.To_SecureCredentialsEncrypted() + case TLConstructor_CRC32_cdnPublicKey: + t := m.To_CdnPublicKey() return t.Encode() default: @@ -62665,11 +62615,11 @@ func (m *SecureCredentialsEncrypted) Encode() []byte { } } -func (m *SecureCredentialsEncrypted) EncodeToLayer(layer int) []byte { +func (m *CdnPublicKey) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_secureCredentialsEncrypted: - t := m.To_SecureCredentialsEncrypted() + case TLConstructor_CRC32_cdnPublicKey: + t := m.To_CdnPublicKey() return t.EncodeToLayer(layer) default: @@ -62678,11 +62628,11 @@ func (m *SecureCredentialsEncrypted) EncodeToLayer(layer int) []byte { } } -func (m *SecureCredentialsEncrypted) Decode(dbuf *DecodeBuf) error { +func (m *CdnPublicKey) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_secureCredentialsEncrypted: - m2 := &TLSecureCredentialsEncrypted{Data2: &SecureCredentialsEncrypted_Data{}} + case TLConstructor_CRC32_cdnPublicKey: + m2 := &TLCdnPublicKey{Data2: &CdnPublicKey_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -62692,73 +62642,67 @@ func (m *SecureCredentialsEncrypted) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted; -func (m *SecureCredentialsEncrypted) To_SecureCredentialsEncrypted() *TLSecureCredentialsEncrypted { - return &TLSecureCredentialsEncrypted{ +// cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey; +func (m *CdnPublicKey) To_CdnPublicKey() *TLCdnPublicKey { + return &TLCdnPublicKey{ Data2: m.Data2, } } -// secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted; -func (m *TLSecureCredentialsEncrypted) To_SecureCredentialsEncrypted() *SecureCredentialsEncrypted { - return &SecureCredentialsEncrypted{ - Constructor: TLConstructor_CRC32_secureCredentialsEncrypted, +// cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey; +func (m *TLCdnPublicKey) To_CdnPublicKey() *CdnPublicKey { + return &CdnPublicKey{ + Constructor: TLConstructor_CRC32_cdnPublicKey, Data2: m.Data2, } } -func (m *TLSecureCredentialsEncrypted) SetData(v []byte) { m.Data2.Data = v } -func (m *TLSecureCredentialsEncrypted) GetData() []byte { return m.Data2.Data } - -func (m *TLSecureCredentialsEncrypted) SetHash(v []byte) { m.Data2.Hash = v } -func (m *TLSecureCredentialsEncrypted) GetHash() []byte { return m.Data2.Hash } +func (m *TLCdnPublicKey) SetDcId(v int32) { m.Data2.DcId = v } +func (m *TLCdnPublicKey) GetDcId() int32 { return m.Data2.DcId } -func (m *TLSecureCredentialsEncrypted) SetSecret(v []byte) { m.Data2.Secret = v } -func (m *TLSecureCredentialsEncrypted) GetSecret() []byte { return m.Data2.Secret } +func (m *TLCdnPublicKey) SetPublicKey(v string) { m.Data2.PublicKey = v } +func (m *TLCdnPublicKey) GetPublicKey() string { return m.Data2.PublicKey } -func NewTLSecureCredentialsEncrypted() *TLSecureCredentialsEncrypted { - return &TLSecureCredentialsEncrypted{Data2: &SecureCredentialsEncrypted_Data{}} +func NewTLCdnPublicKey() *TLCdnPublicKey { + return &TLCdnPublicKey{Data2: &CdnPublicKey_Data{}} } -func (m *TLSecureCredentialsEncrypted) Encode() []byte { +func (m *TLCdnPublicKey) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureCredentialsEncrypted)) + x.Int(int32(TLConstructor_CRC32_cdnPublicKey)) - x.StringBytes(m.GetData()) - x.StringBytes(m.GetHash()) - x.StringBytes(m.GetSecret()) + x.Int(m.GetDcId()) + x.String(m.GetPublicKey()) return x.buf } -func (m *TLSecureCredentialsEncrypted) EncodeToLayer(layer int) []byte { +func (m *TLCdnPublicKey) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_secureCredentialsEncrypted)) + x.Int(int32(TLConstructor_CRC32_cdnPublicKey)) - x.StringBytes(m.GetData()) - x.StringBytes(m.GetHash()) - x.StringBytes(m.GetSecret()) + x.Int(m.GetDcId()) + x.String(m.GetPublicKey()) return x.buf } -func (m *TLSecureCredentialsEncrypted) Decode(dbuf *DecodeBuf) error { - m.SetData(dbuf.StringBytes()) - m.SetHash(dbuf.StringBytes()) - m.SetSecret(dbuf.StringBytes()) +func (m *TLCdnPublicKey) Decode(dbuf *DecodeBuf) error { + m.SetDcId(dbuf.Int()) + m.SetPublicKey(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Dialog <-- -// + TL_Dialog +// BotCommand <-- +// + TL_BotCommand // -func (m *Dialog) Encode() []byte { +func (m *BotCommand) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_dialog: - t := m.To_Dialog() + case TLConstructor_CRC32_botCommand: + t := m.To_BotCommand() return t.Encode() default: @@ -62767,11 +62711,11 @@ func (m *Dialog) Encode() []byte { } } -func (m *Dialog) EncodeToLayer(layer int) []byte { +func (m *BotCommand) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_dialog: - t := m.To_Dialog() + case TLConstructor_CRC32_botCommand: + t := m.To_BotCommand() return t.EncodeToLayer(layer) default: @@ -62780,11 +62724,11 @@ func (m *Dialog) EncodeToLayer(layer int) []byte { } } -func (m *Dialog) Decode(dbuf *DecodeBuf) error { +func (m *BotCommand) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_dialog: - m2 := &TLDialog{Data2: &Dialog_Data{}} + case TLConstructor_CRC32_botCommand: + m2 := &TLBotCommand{Data2: &BotCommand_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -62794,173 +62738,123 @@ func (m *Dialog) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// dialog#e4def5db flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog; -func (m *Dialog) To_Dialog() *TLDialog { - return &TLDialog{ +// botCommand#c27ac8c7 command:string description:string = BotCommand; +func (m *BotCommand) To_BotCommand() *TLBotCommand { + return &TLBotCommand{ Data2: m.Data2, } } -// dialog#e4def5db flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog; -func (m *TLDialog) To_Dialog() *Dialog { - return &Dialog{ - Constructor: TLConstructor_CRC32_dialog, +// botCommand#c27ac8c7 command:string description:string = BotCommand; +func (m *TLBotCommand) To_BotCommand() *BotCommand { + return &BotCommand{ + Constructor: TLConstructor_CRC32_botCommand, Data2: m.Data2, } } -func (m *TLDialog) SetPinned(v bool) { m.Data2.Pinned = v } -func (m *TLDialog) GetPinned() bool { return m.Data2.Pinned } - -func (m *TLDialog) SetUnreadMark(v bool) { m.Data2.UnreadMark = v } -func (m *TLDialog) GetUnreadMark() bool { return m.Data2.UnreadMark } - -func (m *TLDialog) SetPeer(v *Peer) { m.Data2.Peer = v } -func (m *TLDialog) GetPeer() *Peer { return m.Data2.Peer } - -func (m *TLDialog) SetTopMessage(v int32) { m.Data2.TopMessage = v } -func (m *TLDialog) GetTopMessage() int32 { return m.Data2.TopMessage } - -func (m *TLDialog) SetReadInboxMaxId(v int32) { m.Data2.ReadInboxMaxId = v } -func (m *TLDialog) GetReadInboxMaxId() int32 { return m.Data2.ReadInboxMaxId } - -func (m *TLDialog) SetReadOutboxMaxId(v int32) { m.Data2.ReadOutboxMaxId = v } -func (m *TLDialog) GetReadOutboxMaxId() int32 { return m.Data2.ReadOutboxMaxId } - -func (m *TLDialog) SetUnreadCount(v int32) { m.Data2.UnreadCount = v } -func (m *TLDialog) GetUnreadCount() int32 { return m.Data2.UnreadCount } - -func (m *TLDialog) SetUnreadMentionsCount(v int32) { m.Data2.UnreadMentionsCount = v } -func (m *TLDialog) GetUnreadMentionsCount() int32 { return m.Data2.UnreadMentionsCount } - -func (m *TLDialog) SetNotifySettings(v *PeerNotifySettings) { m.Data2.NotifySettings = v } -func (m *TLDialog) GetNotifySettings() *PeerNotifySettings { return m.Data2.NotifySettings } - -func (m *TLDialog) SetPts(v int32) { m.Data2.Pts = v } -func (m *TLDialog) GetPts() int32 { return m.Data2.Pts } - -func (m *TLDialog) SetDraft(v *DraftMessage) { m.Data2.Draft = v } -func (m *TLDialog) GetDraft() *DraftMessage { return m.Data2.Draft } - -func NewTLDialog() *TLDialog { - return &TLDialog{Data2: &Dialog_Data{}} -} - -func (m *TLDialog) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dialog)) - - // flags - var flags uint32 = 0 - if m.GetPinned() == true { - flags |= 1 << 2 - } - if m.GetUnreadMark() == true { - flags |= 1 << 3 - } - if m.GetPts() != 0 { - flags |= 1 << 0 - } - if m.GetDraft() != nil { - flags |= 1 << 1 - } - x.UInt(flags) +func (m *TLBotCommand) SetCommand(v string) { m.Data2.Command = v } +func (m *TLBotCommand) GetCommand() string { return m.Data2.Command } - x.Bytes(m.GetPeer().Encode()) - x.Int(m.GetTopMessage()) - x.Int(m.GetReadInboxMaxId()) - x.Int(m.GetReadOutboxMaxId()) - x.Int(m.GetUnreadCount()) - x.Int(m.GetUnreadMentionsCount()) - x.Bytes(m.GetNotifySettings().Encode()) - if m.GetPts() != 0 { - x.Int(m.GetPts()) - } - if m.GetDraft() != nil { - x.Bytes(m.GetDraft().Encode()) - } +func (m *TLBotCommand) SetDescription(v string) { m.Data2.Description = v } +func (m *TLBotCommand) GetDescription() string { return m.Data2.Description } - return x.buf +func NewTLBotCommand() *TLBotCommand { + return &TLBotCommand{Data2: &BotCommand_Data{}} } -func (m *TLDialog) EncodeToLayer(layer int) []byte { +func (m *TLBotCommand) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_dialog)) - - // flags - var flags uint32 = 0 - if m.GetPinned() == true { - flags |= 1 << 2 - } - if m.GetUnreadMark() == true { - flags |= 1 << 3 - } - if m.GetPts() != 0 { - flags |= 1 << 0 - } - if m.GetDraft() != nil { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_botCommand)) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - x.Int(m.GetTopMessage()) - x.Int(m.GetReadInboxMaxId()) - x.Int(m.GetReadOutboxMaxId()) - x.Int(m.GetUnreadCount()) - x.Int(m.GetUnreadMentionsCount()) - x.Bytes(m.GetNotifySettings().EncodeToLayer(layer)) - if m.GetPts() != 0 { - x.Int(m.GetPts()) - } - if m.GetDraft() != nil { - x.Bytes(m.GetDraft().EncodeToLayer(layer)) - } + x.String(m.GetCommand()) + x.String(m.GetDescription()) return x.buf } -func (m *TLDialog) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 2)) != 0 { - m.SetPinned(true) - } - if (flags & (1 << 3)) != 0 { - m.SetUnreadMark(true) - } - m4 := &Peer{} - m4.Decode(dbuf) - m.SetPeer(m4) - m.SetTopMessage(dbuf.Int()) - m.SetReadInboxMaxId(dbuf.Int()) - m.SetReadOutboxMaxId(dbuf.Int()) - m.SetUnreadCount(dbuf.Int()) - m.SetUnreadMentionsCount(dbuf.Int()) - m10 := &PeerNotifySettings{} - m10.Decode(dbuf) - m.SetNotifySettings(m10) - if (flags & (1 << 0)) != 0 { - m.SetPts(dbuf.Int()) - } - if (flags & (1 << 1)) != 0 { - m12 := &DraftMessage{} - m12.Decode(dbuf) - m.SetDraft(m12) - } +func (m *TLBotCommand) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_botCommand)) + + x.String(m.GetCommand()) + x.String(m.GetDescription()) + + return x.buf +} + +func (m *TLBotCommand) Decode(dbuf *DecodeBuf) error { + m.SetCommand(dbuf.String()) + m.SetDescription(dbuf.String()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PeerNotifySettings <-- -// + TL_PeerNotifySettings +// MessageEntity <-- +// + TL_MessageEntityUnknown +// + TL_MessageEntityMention +// + TL_MessageEntityHashtag +// + TL_MessageEntityBotCommand +// + TL_MessageEntityUrl +// + TL_MessageEntityEmail +// + TL_MessageEntityBold +// + TL_MessageEntityItalic +// + TL_MessageEntityCode +// + TL_MessageEntityPre +// + TL_MessageEntityTextUrl +// + TL_MessageEntityMentionName +// + TL_InputMessageEntityMentionName +// + TL_MessageEntityPhone +// + TL_MessageEntityCashtag // -func (m *PeerNotifySettings) Encode() []byte { +func (m *MessageEntity) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_peerNotifySettings: - t := m.To_PeerNotifySettings() + case TLConstructor_CRC32_messageEntityUnknown: + t := m.To_MessageEntityUnknown() + return t.Encode() + case TLConstructor_CRC32_messageEntityMention: + t := m.To_MessageEntityMention() + return t.Encode() + case TLConstructor_CRC32_messageEntityHashtag: + t := m.To_MessageEntityHashtag() + return t.Encode() + case TLConstructor_CRC32_messageEntityBotCommand: + t := m.To_MessageEntityBotCommand() + return t.Encode() + case TLConstructor_CRC32_messageEntityUrl: + t := m.To_MessageEntityUrl() + return t.Encode() + case TLConstructor_CRC32_messageEntityEmail: + t := m.To_MessageEntityEmail() + return t.Encode() + case TLConstructor_CRC32_messageEntityBold: + t := m.To_MessageEntityBold() + return t.Encode() + case TLConstructor_CRC32_messageEntityItalic: + t := m.To_MessageEntityItalic() + return t.Encode() + case TLConstructor_CRC32_messageEntityCode: + t := m.To_MessageEntityCode() + return t.Encode() + case TLConstructor_CRC32_messageEntityPre: + t := m.To_MessageEntityPre() + return t.Encode() + case TLConstructor_CRC32_messageEntityTextUrl: + t := m.To_MessageEntityTextUrl() + return t.Encode() + case TLConstructor_CRC32_messageEntityMentionName: + t := m.To_MessageEntityMentionName() + return t.Encode() + case TLConstructor_CRC32_inputMessageEntityMentionName: + t := m.To_InputMessageEntityMentionName() + return t.Encode() + case TLConstructor_CRC32_messageEntityPhone: + t := m.To_MessageEntityPhone() + return t.Encode() + case TLConstructor_CRC32_messageEntityCashtag: + t := m.To_MessageEntityCashtag() return t.Encode() default: @@ -62969,11 +62863,53 @@ func (m *PeerNotifySettings) Encode() []byte { } } -func (m *PeerNotifySettings) EncodeToLayer(layer int) []byte { +func (m *MessageEntity) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_peerNotifySettings: - t := m.To_PeerNotifySettings() + case TLConstructor_CRC32_messageEntityUnknown: + t := m.To_MessageEntityUnknown() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityMention: + t := m.To_MessageEntityMention() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityHashtag: + t := m.To_MessageEntityHashtag() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityBotCommand: + t := m.To_MessageEntityBotCommand() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityUrl: + t := m.To_MessageEntityUrl() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityEmail: + t := m.To_MessageEntityEmail() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityBold: + t := m.To_MessageEntityBold() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityItalic: + t := m.To_MessageEntityItalic() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityCode: + t := m.To_MessageEntityCode() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityPre: + t := m.To_MessageEntityPre() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityTextUrl: + t := m.To_MessageEntityTextUrl() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityMentionName: + t := m.To_MessageEntityMentionName() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_inputMessageEntityMentionName: + t := m.To_InputMessageEntityMentionName() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityPhone: + t := m.To_MessageEntityPhone() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messageEntityCashtag: + t := m.To_MessageEntityCashtag() return t.EncodeToLayer(layer) default: @@ -62982,11 +62918,67 @@ func (m *PeerNotifySettings) EncodeToLayer(layer int) []byte { } } -func (m *PeerNotifySettings) Decode(dbuf *DecodeBuf) error { +func (m *MessageEntity) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_peerNotifySettings: - m2 := &TLPeerNotifySettings{Data2: &PeerNotifySettings_Data{}} + case TLConstructor_CRC32_messageEntityUnknown: + m2 := &TLMessageEntityUnknown{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityMention: + m2 := &TLMessageEntityMention{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityHashtag: + m2 := &TLMessageEntityHashtag{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityBotCommand: + m2 := &TLMessageEntityBotCommand{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityUrl: + m2 := &TLMessageEntityUrl{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityEmail: + m2 := &TLMessageEntityEmail{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityBold: + m2 := &TLMessageEntityBold{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityItalic: + m2 := &TLMessageEntityItalic{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityCode: + m2 := &TLMessageEntityCode{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityPre: + m2 := &TLMessageEntityPre{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityTextUrl: + m2 := &TLMessageEntityTextUrl{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityMentionName: + m2 := &TLMessageEntityMentionName{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_inputMessageEntityMentionName: + m2 := &TLInputMessageEntityMentionName{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityPhone: + m2 := &TLMessageEntityPhone{Data2: &MessageEntity_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messageEntityCashtag: + m2 := &TLMessageEntityCashtag{Data2: &MessageEntity_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -62996,1911 +62988,1902 @@ func (m *PeerNotifySettings) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings; -func (m *PeerNotifySettings) To_PeerNotifySettings() *TLPeerNotifySettings { - return &TLPeerNotifySettings{ +// messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityUnknown() *TLMessageEntityUnknown { + return &TLMessageEntityUnknown{ Data2: m.Data2, } } -// peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings; -func (m *TLPeerNotifySettings) To_PeerNotifySettings() *PeerNotifySettings { - return &PeerNotifySettings{ - Constructor: TLConstructor_CRC32_peerNotifySettings, - Data2: m.Data2, +// messageEntityMention#fa04579d offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityMention() *TLMessageEntityMention { + return &TLMessageEntityMention{ + Data2: m.Data2, } } -func (m *TLPeerNotifySettings) SetShowPreviews(v *Bool) { m.Data2.ShowPreviews = v } -func (m *TLPeerNotifySettings) GetShowPreviews() *Bool { return m.Data2.ShowPreviews } - -func (m *TLPeerNotifySettings) SetSilent(v *Bool) { m.Data2.Silent = v } -func (m *TLPeerNotifySettings) GetSilent() *Bool { return m.Data2.Silent } - -func (m *TLPeerNotifySettings) SetMuteUntil(v int32) { m.Data2.MuteUntil = v } -func (m *TLPeerNotifySettings) GetMuteUntil() int32 { return m.Data2.MuteUntil } - -func (m *TLPeerNotifySettings) SetSound(v string) { m.Data2.Sound = v } -func (m *TLPeerNotifySettings) GetSound() string { return m.Data2.Sound } - -func NewTLPeerNotifySettings() *TLPeerNotifySettings { - return &TLPeerNotifySettings{Data2: &PeerNotifySettings_Data{}} +// messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityHashtag() *TLMessageEntityHashtag { + return &TLMessageEntityHashtag{ + Data2: m.Data2, + } } -func (m *TLPeerNotifySettings) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerNotifySettings)) - - // flags - var flags uint32 = 0 - if m.GetShowPreviews() != nil { - flags |= 1 << 0 - } - if m.GetSilent() != nil { - flags |= 1 << 1 - } - if m.GetMuteUntil() != 0 { - flags |= 1 << 2 - } - if m.GetSound() != "" { - flags |= 1 << 3 +// messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityBotCommand() *TLMessageEntityBotCommand { + return &TLMessageEntityBotCommand{ + Data2: m.Data2, } - x.UInt(flags) +} - if m.GetShowPreviews() != nil { - x.Bytes(m.GetShowPreviews().Encode()) - } - if m.GetSilent() != nil { - x.Bytes(m.GetSilent().Encode()) - } - if m.GetMuteUntil() != 0 { - x.Int(m.GetMuteUntil()) - } - if m.GetSound() != "" { - x.String(m.GetSound()) +// messageEntityUrl#6ed02538 offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityUrl() *TLMessageEntityUrl { + return &TLMessageEntityUrl{ + Data2: m.Data2, } - - return x.buf } -func (m *TLPeerNotifySettings) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_peerNotifySettings)) - - // flags - var flags uint32 = 0 - if m.GetShowPreviews() != nil { - flags |= 1 << 0 - } - if m.GetSilent() != nil { - flags |= 1 << 1 - } - if m.GetMuteUntil() != 0 { - flags |= 1 << 2 - } - if m.GetSound() != "" { - flags |= 1 << 3 +// messageEntityEmail#64e475c2 offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityEmail() *TLMessageEntityEmail { + return &TLMessageEntityEmail{ + Data2: m.Data2, } - x.UInt(flags) +} - if m.GetShowPreviews() != nil { - x.Bytes(m.GetShowPreviews().EncodeToLayer(layer)) +// messageEntityBold#bd610bc9 offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityBold() *TLMessageEntityBold { + return &TLMessageEntityBold{ + Data2: m.Data2, } - if m.GetSilent() != nil { - x.Bytes(m.GetSilent().EncodeToLayer(layer)) +} + +// messageEntityItalic#826f8b60 offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityItalic() *TLMessageEntityItalic { + return &TLMessageEntityItalic{ + Data2: m.Data2, } - if m.GetMuteUntil() != 0 { - x.Int(m.GetMuteUntil()) +} + +// messageEntityCode#28a20571 offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityCode() *TLMessageEntityCode { + return &TLMessageEntityCode{ + Data2: m.Data2, } - if m.GetSound() != "" { - x.String(m.GetSound()) +} + +// messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity; +func (m *MessageEntity) To_MessageEntityPre() *TLMessageEntityPre { + return &TLMessageEntityPre{ + Data2: m.Data2, } +} - return x.buf +// messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity; +func (m *MessageEntity) To_MessageEntityTextUrl() *TLMessageEntityTextUrl { + return &TLMessageEntityTextUrl{ + Data2: m.Data2, + } } -func (m *TLPeerNotifySettings) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - if (flags & (1 << 0)) != 0 { - m2 := &Bool{} - m2.Decode(dbuf) - m.SetShowPreviews(m2) +// messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityMentionName() *TLMessageEntityMentionName { + return &TLMessageEntityMentionName{ + Data2: m.Data2, } - if (flags & (1 << 1)) != 0 { - m3 := &Bool{} - m3.Decode(dbuf) - m.SetSilent(m3) +} + +// inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity; +func (m *MessageEntity) To_InputMessageEntityMentionName() *TLInputMessageEntityMentionName { + return &TLInputMessageEntityMentionName{ + Data2: m.Data2, } - if (flags & (1 << 2)) != 0 { - m.SetMuteUntil(dbuf.Int()) +} + +// messageEntityPhone#9b69e34b offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityPhone() *TLMessageEntityPhone { + return &TLMessageEntityPhone{ + Data2: m.Data2, } - if (flags & (1 << 3)) != 0 { - m.SetSound(dbuf.String()) +} + +// messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity; +func (m *MessageEntity) To_MessageEntityCashtag() *TLMessageEntityCashtag { + return &TLMessageEntityCashtag{ + Data2: m.Data2, } +} - return dbuf.err +// messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity; +func (m *TLMessageEntityUnknown) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityUnknown, + Data2: m.Data2, + } } -/////////////////////////////////////////////////////////////////////////////// -// Messages_FoundGifs <-- -// + TL_MessagesFoundGifs -// +func (m *TLMessageEntityUnknown) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityUnknown) GetOffset() int32 { return m.Data2.Offset } -func (m *Messages_FoundGifs) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_foundGifs: - t := m.To_MessagesFoundGifs() - return t.Encode() +func (m *TLMessageEntityUnknown) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityUnknown) GetLength() int32 { return m.Data2.Length } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLMessageEntityUnknown() *TLMessageEntityUnknown { + return &TLMessageEntityUnknown{Data2: &MessageEntity_Data{}} } -func (m *Messages_FoundGifs) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_foundGifs: - t := m.To_MessagesFoundGifs() - return t.EncodeToLayer(layer) +func (m *TLMessageEntityUnknown) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityUnknown)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -func (m *Messages_FoundGifs) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_foundGifs: - m2 := &TLMessagesFoundGifs{Data2: &Messages_FoundGifs_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLMessageEntityUnknown) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityUnknown)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -// messages.foundGifs#450a1c0a next_offset:int results:Vector = messages.FoundGifs; -func (m *Messages_FoundGifs) To_MessagesFoundGifs() *TLMessagesFoundGifs { - return &TLMessagesFoundGifs{ - Data2: m.Data2, - } +func (m *TLMessageEntityUnknown) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) + + return dbuf.err } -// messages.foundGifs#450a1c0a next_offset:int results:Vector = messages.FoundGifs; -func (m *TLMessagesFoundGifs) To_Messages_FoundGifs() *Messages_FoundGifs { - return &Messages_FoundGifs{ - Constructor: TLConstructor_CRC32_messages_foundGifs, +// messageEntityMention#fa04579d offset:int length:int = MessageEntity; +func (m *TLMessageEntityMention) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityMention, Data2: m.Data2, } } -func (m *TLMessagesFoundGifs) SetNextOffset(v int32) { m.Data2.NextOffset = v } -func (m *TLMessagesFoundGifs) GetNextOffset() int32 { return m.Data2.NextOffset } +func (m *TLMessageEntityMention) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityMention) GetOffset() int32 { return m.Data2.Offset } -func (m *TLMessagesFoundGifs) SetResults(v []*FoundGif) { m.Data2.Results = v } -func (m *TLMessagesFoundGifs) GetResults() []*FoundGif { return m.Data2.Results } +func (m *TLMessageEntityMention) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityMention) GetLength() int32 { return m.Data2.Length } -func NewTLMessagesFoundGifs() *TLMessagesFoundGifs { - return &TLMessagesFoundGifs{Data2: &Messages_FoundGifs_Data{}} +func NewTLMessageEntityMention() *TLMessageEntityMention { + return &TLMessageEntityMention{Data2: &MessageEntity_Data{}} } -func (m *TLMessagesFoundGifs) Encode() []byte { +func (m *TLMessageEntityMention) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_foundGifs)) + x.Int(int32(TLConstructor_CRC32_messageEntityMention)) - x.Int(m.GetNextOffset()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetResults()))) - for _, v := range m.GetResults() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(m.GetOffset()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessagesFoundGifs) EncodeToLayer(layer int) []byte { +func (m *TLMessageEntityMention) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_foundGifs)) + x.Int(int32(TLConstructor_CRC32_messageEntityMention)) - x.Int(m.GetNextOffset()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetResults()))) - for _, v := range m.GetResults() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetOffset()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessagesFoundGifs) Decode(dbuf *DecodeBuf) error { - m.SetNextOffset(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*FoundGif, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &FoundGif{} - v2[i].Decode(dbuf) - } - m.SetResults(v2) +func (m *TLMessageEntityMention) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Messages_ArchivedStickers <-- -// + TL_MessagesArchivedStickers -// +// messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity; +func (m *TLMessageEntityHashtag) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityHashtag, + Data2: m.Data2, + } +} -func (m *Messages_ArchivedStickers) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messages_archivedStickers: - t := m.To_MessagesArchivedStickers() - return t.Encode() +func (m *TLMessageEntityHashtag) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityHashtag) GetOffset() int32 { return m.Data2.Offset } + +func (m *TLMessageEntityHashtag) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityHashtag) GetLength() int32 { return m.Data2.Length } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func NewTLMessageEntityHashtag() *TLMessageEntityHashtag { + return &TLMessageEntityHashtag{Data2: &MessageEntity_Data{}} } -func (m *Messages_ArchivedStickers) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messages_archivedStickers: - t := m.To_MessagesArchivedStickers() - return t.EncodeToLayer(layer) +func (m *TLMessageEntityHashtag) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityHashtag)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -func (m *Messages_ArchivedStickers) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messages_archivedStickers: - m2 := &TLMessagesArchivedStickers{Data2: &Messages_ArchivedStickers_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLMessageEntityHashtag) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityHashtag)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -// messages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers; -func (m *Messages_ArchivedStickers) To_MessagesArchivedStickers() *TLMessagesArchivedStickers { - return &TLMessagesArchivedStickers{ - Data2: m.Data2, - } +func (m *TLMessageEntityHashtag) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) + + return dbuf.err } -// messages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers; -func (m *TLMessagesArchivedStickers) To_Messages_ArchivedStickers() *Messages_ArchivedStickers { - return &Messages_ArchivedStickers{ - Constructor: TLConstructor_CRC32_messages_archivedStickers, +// messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity; +func (m *TLMessageEntityBotCommand) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityBotCommand, Data2: m.Data2, } } -func (m *TLMessagesArchivedStickers) SetCount(v int32) { m.Data2.Count = v } -func (m *TLMessagesArchivedStickers) GetCount() int32 { return m.Data2.Count } +func (m *TLMessageEntityBotCommand) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityBotCommand) GetOffset() int32 { return m.Data2.Offset } -func (m *TLMessagesArchivedStickers) SetSets(v []*StickerSetCovered) { m.Data2.Sets = v } -func (m *TLMessagesArchivedStickers) GetSets() []*StickerSetCovered { return m.Data2.Sets } +func (m *TLMessageEntityBotCommand) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityBotCommand) GetLength() int32 { return m.Data2.Length } -func NewTLMessagesArchivedStickers() *TLMessagesArchivedStickers { - return &TLMessagesArchivedStickers{Data2: &Messages_ArchivedStickers_Data{}} +func NewTLMessageEntityBotCommand() *TLMessageEntityBotCommand { + return &TLMessageEntityBotCommand{Data2: &MessageEntity_Data{}} } -func (m *TLMessagesArchivedStickers) Encode() []byte { +func (m *TLMessageEntityBotCommand) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_archivedStickers)) + x.Int(int32(TLConstructor_CRC32_messageEntityBotCommand)) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(m.GetOffset()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessagesArchivedStickers) EncodeToLayer(layer int) []byte { +func (m *TLMessageEntityBotCommand) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_archivedStickers)) + x.Int(int32(TLConstructor_CRC32_messageEntityBotCommand)) - x.Int(m.GetCount()) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetSets()))) - for _, v := range m.GetSets() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetOffset()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessagesArchivedStickers) Decode(dbuf *DecodeBuf) error { - m.SetCount(dbuf.Int()) - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*StickerSetCovered, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &StickerSetCovered{} - v2[i].Decode(dbuf) - } - m.SetSets(v2) +func (m *TLMessageEntityBotCommand) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// Account_SentEmailCode <-- -// + TL_AccountSentEmailCode -// +// messageEntityUrl#6ed02538 offset:int length:int = MessageEntity; +func (m *TLMessageEntityUrl) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityUrl, + Data2: m.Data2, + } +} -func (m *Account_SentEmailCode) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_account_sentEmailCode: - t := m.To_AccountSentEmailCode() - return t.Encode() +func (m *TLMessageEntityUrl) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityUrl) GetOffset() int32 { return m.Data2.Offset } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLMessageEntityUrl) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityUrl) GetLength() int32 { return m.Data2.Length } + +func NewTLMessageEntityUrl() *TLMessageEntityUrl { + return &TLMessageEntityUrl{Data2: &MessageEntity_Data{}} } -func (m *Account_SentEmailCode) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_account_sentEmailCode: - t := m.To_AccountSentEmailCode() - return t.EncodeToLayer(layer) +func (m *TLMessageEntityUrl) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityUrl)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -func (m *Account_SentEmailCode) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_account_sentEmailCode: - m2 := &TLAccountSentEmailCode{Data2: &Account_SentEmailCode_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLMessageEntityUrl) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityUrl)) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -// account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode; -func (m *Account_SentEmailCode) To_AccountSentEmailCode() *TLAccountSentEmailCode { - return &TLAccountSentEmailCode{ - Data2: m.Data2, - } +func (m *TLMessageEntityUrl) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) + + return dbuf.err } -// account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode; -func (m *TLAccountSentEmailCode) To_Account_SentEmailCode() *Account_SentEmailCode { - return &Account_SentEmailCode{ - Constructor: TLConstructor_CRC32_account_sentEmailCode, +// messageEntityEmail#64e475c2 offset:int length:int = MessageEntity; +func (m *TLMessageEntityEmail) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityEmail, Data2: m.Data2, } } -func (m *TLAccountSentEmailCode) SetEmailPattern(v string) { m.Data2.EmailPattern = v } -func (m *TLAccountSentEmailCode) GetEmailPattern() string { return m.Data2.EmailPattern } +func (m *TLMessageEntityEmail) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityEmail) GetOffset() int32 { return m.Data2.Offset } -func (m *TLAccountSentEmailCode) SetLength(v int32) { m.Data2.Length = v } -func (m *TLAccountSentEmailCode) GetLength() int32 { return m.Data2.Length } +func (m *TLMessageEntityEmail) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityEmail) GetLength() int32 { return m.Data2.Length } -func NewTLAccountSentEmailCode() *TLAccountSentEmailCode { - return &TLAccountSentEmailCode{Data2: &Account_SentEmailCode_Data{}} +func NewTLMessageEntityEmail() *TLMessageEntityEmail { + return &TLMessageEntityEmail{Data2: &MessageEntity_Data{}} } -func (m *TLAccountSentEmailCode) Encode() []byte { +func (m *TLMessageEntityEmail) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_sentEmailCode)) + x.Int(int32(TLConstructor_CRC32_messageEntityEmail)) - x.String(m.GetEmailPattern()) + x.Int(m.GetOffset()) x.Int(m.GetLength()) return x.buf } -func (m *TLAccountSentEmailCode) EncodeToLayer(layer int) []byte { +func (m *TLMessageEntityEmail) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_sentEmailCode)) + x.Int(int32(TLConstructor_CRC32_messageEntityEmail)) - x.String(m.GetEmailPattern()) + x.Int(m.GetOffset()) x.Int(m.GetLength()) return x.buf } -func (m *TLAccountSentEmailCode) Decode(dbuf *DecodeBuf) error { - m.SetEmailPattern(dbuf.String()) +func (m *TLMessageEntityEmail) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) m.SetLength(dbuf.Int()) return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// MessageAction <-- -// + TL_MessageActionEmpty -// + TL_MessageActionChatCreate -// + TL_MessageActionChatEditTitle -// + TL_MessageActionChatEditPhoto -// + TL_MessageActionChatDeletePhoto -// + TL_MessageActionChatAddUser -// + TL_MessageActionChatDeleteUser -// + TL_MessageActionChatJoinedByLink -// + TL_MessageActionChannelCreate -// + TL_MessageActionChatMigrateTo -// + TL_MessageActionChannelMigrateFrom -// + TL_MessageActionPinMessage -// + TL_MessageActionHistoryClear -// + TL_MessageActionGameScore -// + TL_MessageActionPaymentSentMe -// + TL_MessageActionPaymentSent -// + TL_MessageActionPhoneCall -// + TL_MessageActionScreenshotTaken -// + TL_MessageActionCustomAction -// + TL_MessageActionBotAllowed -// + TL_MessageActionSecureValuesSentMe -// + TL_MessageActionSecureValuesSent -// +// messageEntityBold#bd610bc9 offset:int length:int = MessageEntity; +func (m *TLMessageEntityBold) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityBold, + Data2: m.Data2, + } +} -func (m *MessageAction) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_messageActionEmpty: - t := m.To_MessageActionEmpty() - return t.Encode() - case TLConstructor_CRC32_messageActionChatCreate: - t := m.To_MessageActionChatCreate() - return t.Encode() - case TLConstructor_CRC32_messageActionChatEditTitle: - t := m.To_MessageActionChatEditTitle() - return t.Encode() - case TLConstructor_CRC32_messageActionChatEditPhoto: - t := m.To_MessageActionChatEditPhoto() - return t.Encode() - case TLConstructor_CRC32_messageActionChatDeletePhoto: - t := m.To_MessageActionChatDeletePhoto() - return t.Encode() - case TLConstructor_CRC32_messageActionChatAddUser: - t := m.To_MessageActionChatAddUser() - return t.Encode() - case TLConstructor_CRC32_messageActionChatDeleteUser: - t := m.To_MessageActionChatDeleteUser() - return t.Encode() - case TLConstructor_CRC32_messageActionChatJoinedByLink: - t := m.To_MessageActionChatJoinedByLink() - return t.Encode() - case TLConstructor_CRC32_messageActionChannelCreate: - t := m.To_MessageActionChannelCreate() - return t.Encode() - case TLConstructor_CRC32_messageActionChatMigrateTo: - t := m.To_MessageActionChatMigrateTo() - return t.Encode() - case TLConstructor_CRC32_messageActionChannelMigrateFrom: - t := m.To_MessageActionChannelMigrateFrom() - return t.Encode() - case TLConstructor_CRC32_messageActionPinMessage: - t := m.To_MessageActionPinMessage() - return t.Encode() - case TLConstructor_CRC32_messageActionHistoryClear: - t := m.To_MessageActionHistoryClear() - return t.Encode() - case TLConstructor_CRC32_messageActionGameScore: - t := m.To_MessageActionGameScore() - return t.Encode() - case TLConstructor_CRC32_messageActionPaymentSentMe: - t := m.To_MessageActionPaymentSentMe() - return t.Encode() - case TLConstructor_CRC32_messageActionPaymentSent: - t := m.To_MessageActionPaymentSent() - return t.Encode() - case TLConstructor_CRC32_messageActionPhoneCall: - t := m.To_MessageActionPhoneCall() - return t.Encode() - case TLConstructor_CRC32_messageActionScreenshotTaken: - t := m.To_MessageActionScreenshotTaken() - return t.Encode() - case TLConstructor_CRC32_messageActionCustomAction: - t := m.To_MessageActionCustomAction() - return t.Encode() - case TLConstructor_CRC32_messageActionBotAllowed: - t := m.To_MessageActionBotAllowed() - return t.Encode() - case TLConstructor_CRC32_messageActionSecureValuesSentMe: - t := m.To_MessageActionSecureValuesSentMe() - return t.Encode() - case TLConstructor_CRC32_messageActionSecureValuesSent: - t := m.To_MessageActionSecureValuesSent() - return t.Encode() +func (m *TLMessageEntityBold) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityBold) GetOffset() int32 { return m.Data2.Offset } - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } +func (m *TLMessageEntityBold) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityBold) GetLength() int32 { return m.Data2.Length } + +func NewTLMessageEntityBold() *TLMessageEntityBold { + return &TLMessageEntityBold{Data2: &MessageEntity_Data{}} } -func (m *MessageAction) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_messageActionEmpty: - t := m.To_MessageActionEmpty() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChatCreate: - t := m.To_MessageActionChatCreate() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChatEditTitle: - t := m.To_MessageActionChatEditTitle() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChatEditPhoto: - t := m.To_MessageActionChatEditPhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChatDeletePhoto: - t := m.To_MessageActionChatDeletePhoto() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChatAddUser: - t := m.To_MessageActionChatAddUser() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChatDeleteUser: - t := m.To_MessageActionChatDeleteUser() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChatJoinedByLink: - t := m.To_MessageActionChatJoinedByLink() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChannelCreate: - t := m.To_MessageActionChannelCreate() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChatMigrateTo: - t := m.To_MessageActionChatMigrateTo() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionChannelMigrateFrom: - t := m.To_MessageActionChannelMigrateFrom() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionPinMessage: - t := m.To_MessageActionPinMessage() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionHistoryClear: - t := m.To_MessageActionHistoryClear() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionGameScore: - t := m.To_MessageActionGameScore() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionPaymentSentMe: - t := m.To_MessageActionPaymentSentMe() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionPaymentSent: - t := m.To_MessageActionPaymentSent() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionPhoneCall: - t := m.To_MessageActionPhoneCall() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionScreenshotTaken: - t := m.To_MessageActionScreenshotTaken() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionCustomAction: - t := m.To_MessageActionCustomAction() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionBotAllowed: - t := m.To_MessageActionBotAllowed() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionSecureValuesSentMe: - t := m.To_MessageActionSecureValuesSentMe() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messageActionSecureValuesSent: - t := m.To_MessageActionSecureValuesSent() - return t.EncodeToLayer(layer) +func (m *TLMessageEntityBold) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityBold)) - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -func (m *MessageAction) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_messageActionEmpty: - m2 := &TLMessageActionEmpty{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChatCreate: - m2 := &TLMessageActionChatCreate{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChatEditTitle: - m2 := &TLMessageActionChatEditTitle{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChatEditPhoto: - m2 := &TLMessageActionChatEditPhoto{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChatDeletePhoto: - m2 := &TLMessageActionChatDeletePhoto{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChatAddUser: - m2 := &TLMessageActionChatAddUser{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChatDeleteUser: - m2 := &TLMessageActionChatDeleteUser{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChatJoinedByLink: - m2 := &TLMessageActionChatJoinedByLink{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChannelCreate: - m2 := &TLMessageActionChannelCreate{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChatMigrateTo: - m2 := &TLMessageActionChatMigrateTo{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionChannelMigrateFrom: - m2 := &TLMessageActionChannelMigrateFrom{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionPinMessage: - m2 := &TLMessageActionPinMessage{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionHistoryClear: - m2 := &TLMessageActionHistoryClear{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionGameScore: - m2 := &TLMessageActionGameScore{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionPaymentSentMe: - m2 := &TLMessageActionPaymentSentMe{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionPaymentSent: - m2 := &TLMessageActionPaymentSent{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionPhoneCall: - m2 := &TLMessageActionPhoneCall{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionScreenshotTaken: - m2 := &TLMessageActionScreenshotTaken{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionCustomAction: - m2 := &TLMessageActionCustomAction{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionBotAllowed: - m2 := &TLMessageActionBotAllowed{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionSecureValuesSentMe: - m2 := &TLMessageActionSecureValuesSentMe{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_messageActionSecureValuesSent: - m2 := &TLMessageActionSecureValuesSent{Data2: &MessageAction_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 +func (m *TLMessageEntityBold) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityBold)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf +} + +func (m *TLMessageEntityBold) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } return dbuf.err } -// messageActionEmpty#b6aef7b0 = MessageAction; -func (m *MessageAction) To_MessageActionEmpty() *TLMessageActionEmpty { - return &TLMessageActionEmpty{ - Data2: m.Data2, +// messageEntityItalic#826f8b60 offset:int length:int = MessageEntity; +func (m *TLMessageEntityItalic) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityItalic, + Data2: m.Data2, } } -// messageActionChatCreate#a6638b9a title:string users:Vector = MessageAction; -func (m *MessageAction) To_MessageActionChatCreate() *TLMessageActionChatCreate { - return &TLMessageActionChatCreate{ - Data2: m.Data2, - } -} +func (m *TLMessageEntityItalic) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityItalic) GetOffset() int32 { return m.Data2.Offset } -// messageActionChatEditTitle#b5a1ce5a title:string = MessageAction; -func (m *MessageAction) To_MessageActionChatEditTitle() *TLMessageActionChatEditTitle { - return &TLMessageActionChatEditTitle{ - Data2: m.Data2, - } -} +func (m *TLMessageEntityItalic) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityItalic) GetLength() int32 { return m.Data2.Length } -// messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction; -func (m *MessageAction) To_MessageActionChatEditPhoto() *TLMessageActionChatEditPhoto { - return &TLMessageActionChatEditPhoto{ - Data2: m.Data2, - } +func NewTLMessageEntityItalic() *TLMessageEntityItalic { + return &TLMessageEntityItalic{Data2: &MessageEntity_Data{}} } -// messageActionChatDeletePhoto#95e3fbef = MessageAction; -func (m *MessageAction) To_MessageActionChatDeletePhoto() *TLMessageActionChatDeletePhoto { - return &TLMessageActionChatDeletePhoto{ - Data2: m.Data2, - } +func (m *TLMessageEntityItalic) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityItalic)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -// messageActionChatAddUser#488a7337 users:Vector = MessageAction; -func (m *MessageAction) To_MessageActionChatAddUser() *TLMessageActionChatAddUser { - return &TLMessageActionChatAddUser{ - Data2: m.Data2, - } +func (m *TLMessageEntityItalic) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityItalic)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -// messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction; -func (m *MessageAction) To_MessageActionChatDeleteUser() *TLMessageActionChatDeleteUser { - return &TLMessageActionChatDeleteUser{ - Data2: m.Data2, - } +func (m *TLMessageEntityItalic) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) + + return dbuf.err } -// messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction; -func (m *MessageAction) To_MessageActionChatJoinedByLink() *TLMessageActionChatJoinedByLink { - return &TLMessageActionChatJoinedByLink{ - Data2: m.Data2, +// messageEntityCode#28a20571 offset:int length:int = MessageEntity; +func (m *TLMessageEntityCode) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityCode, + Data2: m.Data2, } } -// messageActionChannelCreate#95d2ac92 title:string = MessageAction; -func (m *MessageAction) To_MessageActionChannelCreate() *TLMessageActionChannelCreate { - return &TLMessageActionChannelCreate{ - Data2: m.Data2, - } +func (m *TLMessageEntityCode) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityCode) GetOffset() int32 { return m.Data2.Offset } + +func (m *TLMessageEntityCode) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityCode) GetLength() int32 { return m.Data2.Length } + +func NewTLMessageEntityCode() *TLMessageEntityCode { + return &TLMessageEntityCode{Data2: &MessageEntity_Data{}} } -// messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction; -func (m *MessageAction) To_MessageActionChatMigrateTo() *TLMessageActionChatMigrateTo { - return &TLMessageActionChatMigrateTo{ - Data2: m.Data2, - } +func (m *TLMessageEntityCode) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityCode)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -// messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction; -func (m *MessageAction) To_MessageActionChannelMigrateFrom() *TLMessageActionChannelMigrateFrom { - return &TLMessageActionChannelMigrateFrom{ - Data2: m.Data2, - } +func (m *TLMessageEntityCode) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityCode)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + + return x.buf } -// messageActionPinMessage#94bd38ed = MessageAction; -func (m *MessageAction) To_MessageActionPinMessage() *TLMessageActionPinMessage { - return &TLMessageActionPinMessage{ - Data2: m.Data2, - } +func (m *TLMessageEntityCode) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) + + return dbuf.err } -// messageActionHistoryClear#9fbab604 = MessageAction; -func (m *MessageAction) To_MessageActionHistoryClear() *TLMessageActionHistoryClear { - return &TLMessageActionHistoryClear{ - Data2: m.Data2, +// messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity; +func (m *TLMessageEntityPre) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityPre, + Data2: m.Data2, } } -// messageActionGameScore#92a72876 game_id:long score:int = MessageAction; -func (m *MessageAction) To_MessageActionGameScore() *TLMessageActionGameScore { - return &TLMessageActionGameScore{ - Data2: m.Data2, - } +func (m *TLMessageEntityPre) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityPre) GetOffset() int32 { return m.Data2.Offset } + +func (m *TLMessageEntityPre) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityPre) GetLength() int32 { return m.Data2.Length } + +func (m *TLMessageEntityPre) SetLanguage(v string) { m.Data2.Language = v } +func (m *TLMessageEntityPre) GetLanguage() string { return m.Data2.Language } + +func NewTLMessageEntityPre() *TLMessageEntityPre { + return &TLMessageEntityPre{Data2: &MessageEntity_Data{}} } -// messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; -func (m *MessageAction) To_MessageActionPaymentSentMe() *TLMessageActionPaymentSentMe { - return &TLMessageActionPaymentSentMe{ - Data2: m.Data2, - } +func (m *TLMessageEntityPre) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityPre)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + x.String(m.GetLanguage()) + + return x.buf } -// messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; -func (m *MessageAction) To_MessageActionPaymentSent() *TLMessageActionPaymentSent { - return &TLMessageActionPaymentSent{ - Data2: m.Data2, - } +func (m *TLMessageEntityPre) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityPre)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + x.String(m.GetLanguage()) + + return x.buf } -// messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction; -func (m *MessageAction) To_MessageActionPhoneCall() *TLMessageActionPhoneCall { - return &TLMessageActionPhoneCall{ - Data2: m.Data2, - } +func (m *TLMessageEntityPre) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) + m.SetLanguage(dbuf.String()) + + return dbuf.err } -// messageActionScreenshotTaken#4792929b = MessageAction; -func (m *MessageAction) To_MessageActionScreenshotTaken() *TLMessageActionScreenshotTaken { - return &TLMessageActionScreenshotTaken{ - Data2: m.Data2, +// messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity; +func (m *TLMessageEntityTextUrl) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityTextUrl, + Data2: m.Data2, } } -// messageActionCustomAction#fae69f56 message:string = MessageAction; -func (m *MessageAction) To_MessageActionCustomAction() *TLMessageActionCustomAction { - return &TLMessageActionCustomAction{ - Data2: m.Data2, - } +func (m *TLMessageEntityTextUrl) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityTextUrl) GetOffset() int32 { return m.Data2.Offset } + +func (m *TLMessageEntityTextUrl) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityTextUrl) GetLength() int32 { return m.Data2.Length } + +func (m *TLMessageEntityTextUrl) SetUrl(v string) { m.Data2.Url = v } +func (m *TLMessageEntityTextUrl) GetUrl() string { return m.Data2.Url } + +func NewTLMessageEntityTextUrl() *TLMessageEntityTextUrl { + return &TLMessageEntityTextUrl{Data2: &MessageEntity_Data{}} } -// messageActionBotAllowed#abe9affe domain:string = MessageAction; -func (m *MessageAction) To_MessageActionBotAllowed() *TLMessageActionBotAllowed { - return &TLMessageActionBotAllowed{ - Data2: m.Data2, - } +func (m *TLMessageEntityTextUrl) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityTextUrl)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + x.String(m.GetUrl()) + + return x.buf } -// messageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction; -func (m *MessageAction) To_MessageActionSecureValuesSentMe() *TLMessageActionSecureValuesSentMe { - return &TLMessageActionSecureValuesSentMe{ - Data2: m.Data2, - } +func (m *TLMessageEntityTextUrl) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messageEntityTextUrl)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + x.String(m.GetUrl()) + + return x.buf } -// messageActionSecureValuesSent#d95c6154 types:Vector = MessageAction; -func (m *MessageAction) To_MessageActionSecureValuesSent() *TLMessageActionSecureValuesSent { - return &TLMessageActionSecureValuesSent{ - Data2: m.Data2, - } +func (m *TLMessageEntityTextUrl) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) + m.SetUrl(dbuf.String()) + + return dbuf.err } -// messageActionEmpty#b6aef7b0 = MessageAction; -func (m *TLMessageActionEmpty) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionEmpty, +// messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity; +func (m *TLMessageEntityMentionName) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityMentionName, Data2: m.Data2, } } -func NewTLMessageActionEmpty() *TLMessageActionEmpty { - return &TLMessageActionEmpty{Data2: &MessageAction_Data{}} +func (m *TLMessageEntityMentionName) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityMentionName) GetOffset() int32 { return m.Data2.Offset } + +func (m *TLMessageEntityMentionName) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityMentionName) GetLength() int32 { return m.Data2.Length } + +func (m *TLMessageEntityMentionName) SetUserId(v int32) { m.Data2.UserId_5 = v } +func (m *TLMessageEntityMentionName) GetUserId() int32 { return m.Data2.UserId_5 } + +func NewTLMessageEntityMentionName() *TLMessageEntityMentionName { + return &TLMessageEntityMentionName{Data2: &MessageEntity_Data{}} } -func (m *TLMessageActionEmpty) Encode() []byte { +func (m *TLMessageEntityMentionName) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionEmpty)) + x.Int(int32(TLConstructor_CRC32_messageEntityMentionName)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + x.Int(m.GetUserId()) return x.buf } -func (m *TLMessageActionEmpty) EncodeToLayer(layer int) []byte { +func (m *TLMessageEntityMentionName) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionEmpty)) + x.Int(int32(TLConstructor_CRC32_messageEntityMentionName)) + + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + x.Int(m.GetUserId()) return x.buf } -func (m *TLMessageActionEmpty) Decode(dbuf *DecodeBuf) error { +func (m *TLMessageEntityMentionName) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) + m.SetUserId(dbuf.Int()) return dbuf.err } -// messageActionChatCreate#a6638b9a title:string users:Vector = MessageAction; -func (m *TLMessageActionChatCreate) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChatCreate, +// inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity; +func (m *TLInputMessageEntityMentionName) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_inputMessageEntityMentionName, Data2: m.Data2, } } -func (m *TLMessageActionChatCreate) SetTitle(v string) { m.Data2.Title = v } -func (m *TLMessageActionChatCreate) GetTitle() string { return m.Data2.Title } +func (m *TLInputMessageEntityMentionName) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLInputMessageEntityMentionName) GetOffset() int32 { return m.Data2.Offset } -func (m *TLMessageActionChatCreate) SetUsers(v []int32) { m.Data2.Users = v } -func (m *TLMessageActionChatCreate) GetUsers() []int32 { return m.Data2.Users } +func (m *TLInputMessageEntityMentionName) SetLength(v int32) { m.Data2.Length = v } +func (m *TLInputMessageEntityMentionName) GetLength() int32 { return m.Data2.Length } -func NewTLMessageActionChatCreate() *TLMessageActionChatCreate { - return &TLMessageActionChatCreate{Data2: &MessageAction_Data{}} +func (m *TLInputMessageEntityMentionName) SetUserId(v *InputUser) { m.Data2.UserId_6 = v } +func (m *TLInputMessageEntityMentionName) GetUserId() *InputUser { return m.Data2.UserId_6 } + +func NewTLInputMessageEntityMentionName() *TLInputMessageEntityMentionName { + return &TLInputMessageEntityMentionName{Data2: &MessageEntity_Data{}} } -func (m *TLMessageActionChatCreate) Encode() []byte { +func (m *TLInputMessageEntityMentionName) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatCreate)) + x.Int(int32(TLConstructor_CRC32_inputMessageEntityMentionName)) - x.String(m.GetTitle()) - x.VectorInt(m.GetUsers()) + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + x.Bytes(m.GetUserId().Encode()) return x.buf } -func (m *TLMessageActionChatCreate) EncodeToLayer(layer int) []byte { +func (m *TLInputMessageEntityMentionName) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatCreate)) + x.Int(int32(TLConstructor_CRC32_inputMessageEntityMentionName)) - x.String(m.GetTitle()) - x.VectorInt(m.GetUsers()) + x.Int(m.GetOffset()) + x.Int(m.GetLength()) + x.Bytes(m.GetUserId().EncodeToLayer(layer)) return x.buf } -func (m *TLMessageActionChatCreate) Decode(dbuf *DecodeBuf) error { - m.SetTitle(dbuf.String()) - m.SetUsers(dbuf.VectorInt()) +func (m *TLInputMessageEntityMentionName) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) + m3 := &InputUser{} + m3.Decode(dbuf) + m.SetUserId(m3) return dbuf.err } -// messageActionChatEditTitle#b5a1ce5a title:string = MessageAction; -func (m *TLMessageActionChatEditTitle) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChatEditTitle, +// messageEntityPhone#9b69e34b offset:int length:int = MessageEntity; +func (m *TLMessageEntityPhone) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityPhone, Data2: m.Data2, } } -func (m *TLMessageActionChatEditTitle) SetTitle(v string) { m.Data2.Title = v } -func (m *TLMessageActionChatEditTitle) GetTitle() string { return m.Data2.Title } +func (m *TLMessageEntityPhone) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityPhone) GetOffset() int32 { return m.Data2.Offset } -func NewTLMessageActionChatEditTitle() *TLMessageActionChatEditTitle { - return &TLMessageActionChatEditTitle{Data2: &MessageAction_Data{}} +func (m *TLMessageEntityPhone) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityPhone) GetLength() int32 { return m.Data2.Length } + +func NewTLMessageEntityPhone() *TLMessageEntityPhone { + return &TLMessageEntityPhone{Data2: &MessageEntity_Data{}} } -func (m *TLMessageActionChatEditTitle) Encode() []byte { +func (m *TLMessageEntityPhone) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatEditTitle)) + x.Int(int32(TLConstructor_CRC32_messageEntityPhone)) - x.String(m.GetTitle()) + x.Int(m.GetOffset()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessageActionChatEditTitle) EncodeToLayer(layer int) []byte { +func (m *TLMessageEntityPhone) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatEditTitle)) + x.Int(int32(TLConstructor_CRC32_messageEntityPhone)) - x.String(m.GetTitle()) + x.Int(m.GetOffset()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessageActionChatEditTitle) Decode(dbuf *DecodeBuf) error { - m.SetTitle(dbuf.String()) +func (m *TLMessageEntityPhone) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) return dbuf.err } -// messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction; -func (m *TLMessageActionChatEditPhoto) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChatEditPhoto, +// messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity; +func (m *TLMessageEntityCashtag) To_MessageEntity() *MessageEntity { + return &MessageEntity{ + Constructor: TLConstructor_CRC32_messageEntityCashtag, Data2: m.Data2, } } -func (m *TLMessageActionChatEditPhoto) SetPhoto(v *Photo) { m.Data2.Photo = v } -func (m *TLMessageActionChatEditPhoto) GetPhoto() *Photo { return m.Data2.Photo } +func (m *TLMessageEntityCashtag) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessageEntityCashtag) GetOffset() int32 { return m.Data2.Offset } -func NewTLMessageActionChatEditPhoto() *TLMessageActionChatEditPhoto { - return &TLMessageActionChatEditPhoto{Data2: &MessageAction_Data{}} +func (m *TLMessageEntityCashtag) SetLength(v int32) { m.Data2.Length = v } +func (m *TLMessageEntityCashtag) GetLength() int32 { return m.Data2.Length } + +func NewTLMessageEntityCashtag() *TLMessageEntityCashtag { + return &TLMessageEntityCashtag{Data2: &MessageEntity_Data{}} } -func (m *TLMessageActionChatEditPhoto) Encode() []byte { +func (m *TLMessageEntityCashtag) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatEditPhoto)) + x.Int(int32(TLConstructor_CRC32_messageEntityCashtag)) - x.Bytes(m.GetPhoto().Encode()) + x.Int(m.GetOffset()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessageActionChatEditPhoto) EncodeToLayer(layer int) []byte { +func (m *TLMessageEntityCashtag) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatEditPhoto)) + x.Int(int32(TLConstructor_CRC32_messageEntityCashtag)) - x.Bytes(m.GetPhoto().EncodeToLayer(layer)) + x.Int(m.GetOffset()) + x.Int(m.GetLength()) return x.buf } -func (m *TLMessageActionChatEditPhoto) Decode(dbuf *DecodeBuf) error { - m1 := &Photo{} - m1.Decode(dbuf) - m.SetPhoto(m1) +func (m *TLMessageEntityCashtag) Decode(dbuf *DecodeBuf) error { + m.SetOffset(dbuf.Int()) + m.SetLength(dbuf.Int()) return dbuf.err } -// messageActionChatDeletePhoto#95e3fbef = MessageAction; -func (m *TLMessageActionChatDeletePhoto) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChatDeletePhoto, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// NotifyPeer <-- +// + TL_NotifyPeer +// + TL_NotifyUsers +// + TL_NotifyChats +// + +func (m *NotifyPeer) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_notifyPeer: + t := m.To_NotifyPeer() + return t.Encode() + case TLConstructor_CRC32_notifyUsers: + t := m.To_NotifyUsers() + return t.Encode() + case TLConstructor_CRC32_notifyChats: + t := m.To_NotifyChats() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func NewTLMessageActionChatDeletePhoto() *TLMessageActionChatDeletePhoto { - return &TLMessageActionChatDeletePhoto{Data2: &MessageAction_Data{}} +func (m *NotifyPeer) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_notifyPeer: + t := m.To_NotifyPeer() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_notifyUsers: + t := m.To_NotifyUsers() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_notifyChats: + t := m.To_NotifyChats() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionChatDeletePhoto) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatDeletePhoto)) +func (m *NotifyPeer) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_notifyPeer: + m2 := &TLNotifyPeer{Data2: &NotifyPeer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_notifyUsers: + m2 := &TLNotifyUsers{Data2: &NotifyPeer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_notifyChats: + m2 := &TLNotifyChats{Data2: &NotifyPeer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLMessageActionChatDeletePhoto) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatDeletePhoto)) +// notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; +func (m *NotifyPeer) To_NotifyPeer() *TLNotifyPeer { + return &TLNotifyPeer{ + Data2: m.Data2, + } +} - return x.buf +// notifyUsers#b4c83b4c = NotifyPeer; +func (m *NotifyPeer) To_NotifyUsers() *TLNotifyUsers { + return &TLNotifyUsers{ + Data2: m.Data2, + } } -func (m *TLMessageActionChatDeletePhoto) Decode(dbuf *DecodeBuf) error { - - return dbuf.err +// notifyChats#c007cec3 = NotifyPeer; +func (m *NotifyPeer) To_NotifyChats() *TLNotifyChats { + return &TLNotifyChats{ + Data2: m.Data2, + } } -// messageActionChatAddUser#488a7337 users:Vector = MessageAction; -func (m *TLMessageActionChatAddUser) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChatAddUser, +// notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; +func (m *TLNotifyPeer) To_NotifyPeer() *NotifyPeer { + return &NotifyPeer{ + Constructor: TLConstructor_CRC32_notifyPeer, Data2: m.Data2, } } -func (m *TLMessageActionChatAddUser) SetUsers(v []int32) { m.Data2.Users = v } -func (m *TLMessageActionChatAddUser) GetUsers() []int32 { return m.Data2.Users } +func (m *TLNotifyPeer) SetPeer(v *Peer) { m.Data2.Peer = v } +func (m *TLNotifyPeer) GetPeer() *Peer { return m.Data2.Peer } -func NewTLMessageActionChatAddUser() *TLMessageActionChatAddUser { - return &TLMessageActionChatAddUser{Data2: &MessageAction_Data{}} +func NewTLNotifyPeer() *TLNotifyPeer { + return &TLNotifyPeer{Data2: &NotifyPeer_Data{}} } -func (m *TLMessageActionChatAddUser) Encode() []byte { +func (m *TLNotifyPeer) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatAddUser)) + x.Int(int32(TLConstructor_CRC32_notifyPeer)) - x.VectorInt(m.GetUsers()) + x.Bytes(m.GetPeer().Encode()) return x.buf } -func (m *TLMessageActionChatAddUser) EncodeToLayer(layer int) []byte { +func (m *TLNotifyPeer) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatAddUser)) + x.Int(int32(TLConstructor_CRC32_notifyPeer)) - x.VectorInt(m.GetUsers()) + x.Bytes(m.GetPeer().EncodeToLayer(layer)) return x.buf } -func (m *TLMessageActionChatAddUser) Decode(dbuf *DecodeBuf) error { - m.SetUsers(dbuf.VectorInt()) +func (m *TLNotifyPeer) Decode(dbuf *DecodeBuf) error { + m1 := &Peer{} + m1.Decode(dbuf) + m.SetPeer(m1) return dbuf.err } -// messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction; -func (m *TLMessageActionChatDeleteUser) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChatDeleteUser, +// notifyUsers#b4c83b4c = NotifyPeer; +func (m *TLNotifyUsers) To_NotifyPeer() *NotifyPeer { + return &NotifyPeer{ + Constructor: TLConstructor_CRC32_notifyUsers, Data2: m.Data2, } } -func (m *TLMessageActionChatDeleteUser) SetUserId(v int32) { m.Data2.UserId = v } -func (m *TLMessageActionChatDeleteUser) GetUserId() int32 { return m.Data2.UserId } - -func NewTLMessageActionChatDeleteUser() *TLMessageActionChatDeleteUser { - return &TLMessageActionChatDeleteUser{Data2: &MessageAction_Data{}} +func NewTLNotifyUsers() *TLNotifyUsers { + return &TLNotifyUsers{Data2: &NotifyPeer_Data{}} } -func (m *TLMessageActionChatDeleteUser) Encode() []byte { +func (m *TLNotifyUsers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatDeleteUser)) - - x.Int(m.GetUserId()) + x.Int(int32(TLConstructor_CRC32_notifyUsers)) return x.buf } -func (m *TLMessageActionChatDeleteUser) EncodeToLayer(layer int) []byte { +func (m *TLNotifyUsers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatDeleteUser)) - - x.Int(m.GetUserId()) + x.Int(int32(TLConstructor_CRC32_notifyUsers)) return x.buf } -func (m *TLMessageActionChatDeleteUser) Decode(dbuf *DecodeBuf) error { - m.SetUserId(dbuf.Int()) +func (m *TLNotifyUsers) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction; -func (m *TLMessageActionChatJoinedByLink) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChatJoinedByLink, +// notifyChats#c007cec3 = NotifyPeer; +func (m *TLNotifyChats) To_NotifyPeer() *NotifyPeer { + return &NotifyPeer{ + Constructor: TLConstructor_CRC32_notifyChats, Data2: m.Data2, } } -func (m *TLMessageActionChatJoinedByLink) SetInviterId(v int32) { m.Data2.InviterId = v } -func (m *TLMessageActionChatJoinedByLink) GetInviterId() int32 { return m.Data2.InviterId } - -func NewTLMessageActionChatJoinedByLink() *TLMessageActionChatJoinedByLink { - return &TLMessageActionChatJoinedByLink{Data2: &MessageAction_Data{}} +func NewTLNotifyChats() *TLNotifyChats { + return &TLNotifyChats{Data2: &NotifyPeer_Data{}} } -func (m *TLMessageActionChatJoinedByLink) Encode() []byte { +func (m *TLNotifyChats) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatJoinedByLink)) - - x.Int(m.GetInviterId()) + x.Int(int32(TLConstructor_CRC32_notifyChats)) return x.buf } -func (m *TLMessageActionChatJoinedByLink) EncodeToLayer(layer int) []byte { +func (m *TLNotifyChats) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatJoinedByLink)) - - x.Int(m.GetInviterId()) + x.Int(int32(TLConstructor_CRC32_notifyChats)) return x.buf } -func (m *TLMessageActionChatJoinedByLink) Decode(dbuf *DecodeBuf) error { - m.SetInviterId(dbuf.Int()) +func (m *TLNotifyChats) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageActionChannelCreate#95d2ac92 title:string = MessageAction; -func (m *TLMessageActionChannelCreate) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChannelCreate, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// Messages_Stickers <-- +// + TL_MessagesStickersNotModified +// + TL_MessagesStickers +// -func (m *TLMessageActionChannelCreate) SetTitle(v string) { m.Data2.Title = v } -func (m *TLMessageActionChannelCreate) GetTitle() string { return m.Data2.Title } +func (m *Messages_Stickers) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_stickersNotModified: + t := m.To_MessagesStickersNotModified() + return t.Encode() + case TLConstructor_CRC32_messages_stickers: + t := m.To_MessagesStickers() + return t.Encode() -func NewTLMessageActionChannelCreate() *TLMessageActionChannelCreate { - return &TLMessageActionChannelCreate{Data2: &MessageAction_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionChannelCreate) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChannelCreate)) - - x.String(m.GetTitle()) +func (m *Messages_Stickers) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_stickersNotModified: + t := m.To_MessagesStickersNotModified() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_messages_stickers: + t := m.To_MessagesStickers() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionChannelCreate) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChannelCreate)) - - x.String(m.GetTitle()) +func (m *Messages_Stickers) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_stickersNotModified: + m2 := &TLMessagesStickersNotModified{Data2: &Messages_Stickers_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_messages_stickers: + m2 := &TLMessagesStickers{Data2: &Messages_Stickers_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLMessageActionChannelCreate) Decode(dbuf *DecodeBuf) error { - m.SetTitle(dbuf.String()) +// messages.stickersNotModified#f1749a22 = messages.Stickers; +func (m *Messages_Stickers) To_MessagesStickersNotModified() *TLMessagesStickersNotModified { + return &TLMessagesStickersNotModified{ + Data2: m.Data2, + } +} - return dbuf.err +// messages.stickers#e4599bbd hash:int stickers:Vector = messages.Stickers; +func (m *Messages_Stickers) To_MessagesStickers() *TLMessagesStickers { + return &TLMessagesStickers{ + Data2: m.Data2, + } } -// messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction; -func (m *TLMessageActionChatMigrateTo) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChatMigrateTo, +// messages.stickersNotModified#f1749a22 = messages.Stickers; +func (m *TLMessagesStickersNotModified) To_Messages_Stickers() *Messages_Stickers { + return &Messages_Stickers{ + Constructor: TLConstructor_CRC32_messages_stickersNotModified, Data2: m.Data2, } } -func (m *TLMessageActionChatMigrateTo) SetChannelId(v int32) { m.Data2.ChannelId = v } -func (m *TLMessageActionChatMigrateTo) GetChannelId() int32 { return m.Data2.ChannelId } - -func NewTLMessageActionChatMigrateTo() *TLMessageActionChatMigrateTo { - return &TLMessageActionChatMigrateTo{Data2: &MessageAction_Data{}} +func NewTLMessagesStickersNotModified() *TLMessagesStickersNotModified { + return &TLMessagesStickersNotModified{Data2: &Messages_Stickers_Data{}} } -func (m *TLMessageActionChatMigrateTo) Encode() []byte { +func (m *TLMessagesStickersNotModified) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatMigrateTo)) - - x.Int(m.GetChannelId()) + x.Int(int32(TLConstructor_CRC32_messages_stickersNotModified)) return x.buf } -func (m *TLMessageActionChatMigrateTo) EncodeToLayer(layer int) []byte { +func (m *TLMessagesStickersNotModified) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChatMigrateTo)) - - x.Int(m.GetChannelId()) + x.Int(int32(TLConstructor_CRC32_messages_stickersNotModified)) return x.buf } -func (m *TLMessageActionChatMigrateTo) Decode(dbuf *DecodeBuf) error { - m.SetChannelId(dbuf.Int()) +func (m *TLMessagesStickersNotModified) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction; -func (m *TLMessageActionChannelMigrateFrom) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionChannelMigrateFrom, +// messages.stickers#e4599bbd hash:int stickers:Vector = messages.Stickers; +func (m *TLMessagesStickers) To_Messages_Stickers() *Messages_Stickers { + return &Messages_Stickers{ + Constructor: TLConstructor_CRC32_messages_stickers, Data2: m.Data2, } } -func (m *TLMessageActionChannelMigrateFrom) SetTitle(v string) { m.Data2.Title = v } -func (m *TLMessageActionChannelMigrateFrom) GetTitle() string { return m.Data2.Title } +func (m *TLMessagesStickers) SetHash(v int32) { m.Data2.Hash = v } +func (m *TLMessagesStickers) GetHash() int32 { return m.Data2.Hash } -func (m *TLMessageActionChannelMigrateFrom) SetChatId(v int32) { m.Data2.ChatId = v } -func (m *TLMessageActionChannelMigrateFrom) GetChatId() int32 { return m.Data2.ChatId } +func (m *TLMessagesStickers) SetStickers(v []*Document) { m.Data2.Stickers = v } +func (m *TLMessagesStickers) GetStickers() []*Document { return m.Data2.Stickers } -func NewTLMessageActionChannelMigrateFrom() *TLMessageActionChannelMigrateFrom { - return &TLMessageActionChannelMigrateFrom{Data2: &MessageAction_Data{}} +func NewTLMessagesStickers() *TLMessagesStickers { + return &TLMessagesStickers{Data2: &Messages_Stickers_Data{}} } -func (m *TLMessageActionChannelMigrateFrom) Encode() []byte { +func (m *TLMessagesStickers) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChannelMigrateFrom)) + x.Int(int32(TLConstructor_CRC32_messages_stickers)) - x.String(m.GetTitle()) - x.Int(m.GetChatId()) + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLMessageActionChannelMigrateFrom) EncodeToLayer(layer int) []byte { +func (m *TLMessagesStickers) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionChannelMigrateFrom)) + x.Int(int32(TLConstructor_CRC32_messages_stickers)) - x.String(m.GetTitle()) - x.Int(m.GetChatId()) + x.Int(m.GetHash()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStickers()))) + for _, v := range m.GetStickers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLMessageActionChannelMigrateFrom) Decode(dbuf *DecodeBuf) error { - m.SetTitle(dbuf.String()) - m.SetChatId(dbuf.Int()) +func (m *TLMessagesStickers) Decode(dbuf *DecodeBuf) error { + m.SetHash(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Document, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Document{} + v2[i].Decode(dbuf) + } + m.SetStickers(v2) return dbuf.err } -// messageActionPinMessage#94bd38ed = MessageAction; -func (m *TLMessageActionPinMessage) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionPinMessage, - Data2: m.Data2, - } -} - -func NewTLMessageActionPinMessage() *TLMessageActionPinMessage { - return &TLMessageActionPinMessage{Data2: &MessageAction_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// Messages_BotCallbackAnswer <-- +// + TL_MessagesBotCallbackAnswer +// -func (m *TLMessageActionPinMessage) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionPinMessage)) +func (m *Messages_BotCallbackAnswer) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_botCallbackAnswer: + t := m.To_MessagesBotCallbackAnswer() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionPinMessage) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionPinMessage)) +func (m *Messages_BotCallbackAnswer) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_botCallbackAnswer: + t := m.To_MessagesBotCallbackAnswer() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionPinMessage) Decode(dbuf *DecodeBuf) error { +func (m *Messages_BotCallbackAnswer) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_botCallbackAnswer: + m2 := &TLMessagesBotCallbackAnswer{Data2: &Messages_BotCallbackAnswer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// messageActionHistoryClear#9fbab604 = MessageAction; -func (m *TLMessageActionHistoryClear) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionHistoryClear, - Data2: m.Data2, +// messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; +func (m *Messages_BotCallbackAnswer) To_MessagesBotCallbackAnswer() *TLMessagesBotCallbackAnswer { + return &TLMessagesBotCallbackAnswer{ + Data2: m.Data2, } } -func NewTLMessageActionHistoryClear() *TLMessageActionHistoryClear { - return &TLMessageActionHistoryClear{Data2: &MessageAction_Data{}} +// messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; +func (m *TLMessagesBotCallbackAnswer) To_Messages_BotCallbackAnswer() *Messages_BotCallbackAnswer { + return &Messages_BotCallbackAnswer{ + Constructor: TLConstructor_CRC32_messages_botCallbackAnswer, + Data2: m.Data2, + } } -func (m *TLMessageActionHistoryClear) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionHistoryClear)) +func (m *TLMessagesBotCallbackAnswer) SetAlert(v bool) { m.Data2.Alert = v } +func (m *TLMessagesBotCallbackAnswer) GetAlert() bool { return m.Data2.Alert } - return x.buf +func (m *TLMessagesBotCallbackAnswer) SetHasUrl(v bool) { m.Data2.HasUrl = v } +func (m *TLMessagesBotCallbackAnswer) GetHasUrl() bool { return m.Data2.HasUrl } + +func (m *TLMessagesBotCallbackAnswer) SetNativeUi(v bool) { m.Data2.NativeUi = v } +func (m *TLMessagesBotCallbackAnswer) GetNativeUi() bool { return m.Data2.NativeUi } + +func (m *TLMessagesBotCallbackAnswer) SetMessage(v string) { m.Data2.Message = v } +func (m *TLMessagesBotCallbackAnswer) GetMessage() string { return m.Data2.Message } + +func (m *TLMessagesBotCallbackAnswer) SetUrl(v string) { m.Data2.Url = v } +func (m *TLMessagesBotCallbackAnswer) GetUrl() string { return m.Data2.Url } + +func (m *TLMessagesBotCallbackAnswer) SetCacheTime(v int32) { m.Data2.CacheTime = v } +func (m *TLMessagesBotCallbackAnswer) GetCacheTime() int32 { return m.Data2.CacheTime } + +func NewTLMessagesBotCallbackAnswer() *TLMessagesBotCallbackAnswer { + return &TLMessagesBotCallbackAnswer{Data2: &Messages_BotCallbackAnswer_Data{}} } -func (m *TLMessageActionHistoryClear) EncodeToLayer(layer int) []byte { +func (m *TLMessagesBotCallbackAnswer) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionHistoryClear)) + x.Int(int32(TLConstructor_CRC32_messages_botCallbackAnswer)) + + // flags + var flags uint32 = 0 + if m.GetAlert() == true { + flags |= 1 << 1 + } + if m.GetHasUrl() == true { + flags |= 1 << 3 + } + if m.GetNativeUi() == true { + flags |= 1 << 4 + } + if m.GetMessage() != "" { + flags |= 1 << 0 + } + if m.GetUrl() != "" { + flags |= 1 << 2 + } + x.UInt(flags) + + if m.GetMessage() != "" { + x.String(m.GetMessage()) + } + if m.GetUrl() != "" { + x.String(m.GetUrl()) + } + x.Int(m.GetCacheTime()) return x.buf } -func (m *TLMessageActionHistoryClear) Decode(dbuf *DecodeBuf) error { +func (m *TLMessagesBotCallbackAnswer) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_botCallbackAnswer)) - return dbuf.err -} + // flags + var flags uint32 = 0 + if m.GetAlert() == true { + flags |= 1 << 1 + } + if m.GetHasUrl() == true { + flags |= 1 << 3 + } + if m.GetNativeUi() == true { + flags |= 1 << 4 + } + if m.GetMessage() != "" { + flags |= 1 << 0 + } + if m.GetUrl() != "" { + flags |= 1 << 2 + } + x.UInt(flags) -// messageActionGameScore#92a72876 game_id:long score:int = MessageAction; -func (m *TLMessageActionGameScore) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionGameScore, - Data2: m.Data2, + if m.GetMessage() != "" { + x.String(m.GetMessage()) } -} + if m.GetUrl() != "" { + x.String(m.GetUrl()) + } + x.Int(m.GetCacheTime()) -func (m *TLMessageActionGameScore) SetGameId(v int64) { m.Data2.GameId = v } -func (m *TLMessageActionGameScore) GetGameId() int64 { return m.Data2.GameId } + return x.buf +} -func (m *TLMessageActionGameScore) SetScore(v int32) { m.Data2.Score = v } -func (m *TLMessageActionGameScore) GetScore() int32 { return m.Data2.Score } +func (m *TLMessagesBotCallbackAnswer) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetAlert(true) + } + if (flags & (1 << 3)) != 0 { + m.SetHasUrl(true) + } + if (flags & (1 << 4)) != 0 { + m.SetNativeUi(true) + } + if (flags & (1 << 0)) != 0 { + m.SetMessage(dbuf.String()) + } + if (flags & (1 << 2)) != 0 { + m.SetUrl(dbuf.String()) + } + m.SetCacheTime(dbuf.Int()) -func NewTLMessageActionGameScore() *TLMessageActionGameScore { - return &TLMessageActionGameScore{Data2: &MessageAction_Data{}} + return dbuf.err } -func (m *TLMessageActionGameScore) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionGameScore)) +/////////////////////////////////////////////////////////////////////////////// +// Account_WebAuthorizations <-- +// + TL_AccountWebAuthorizations +// - x.Long(m.GetGameId()) - x.Int(m.GetScore()) +func (m *Account_WebAuthorizations) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_account_webAuthorizations: + t := m.To_AccountWebAuthorizations() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionGameScore) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionGameScore)) - - x.Long(m.GetGameId()) - x.Int(m.GetScore()) +func (m *Account_WebAuthorizations) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_account_webAuthorizations: + t := m.To_AccountWebAuthorizations() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionGameScore) Decode(dbuf *DecodeBuf) error { - m.SetGameId(dbuf.Long()) - m.SetScore(dbuf.Int()) +func (m *Account_WebAuthorizations) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_account_webAuthorizations: + m2 := &TLAccountWebAuthorizations{Data2: &Account_WebAuthorizations_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; -func (m *TLMessageActionPaymentSentMe) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionPaymentSentMe, - Data2: m.Data2, +// account.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations; +func (m *Account_WebAuthorizations) To_AccountWebAuthorizations() *TLAccountWebAuthorizations { + return &TLAccountWebAuthorizations{ + Data2: m.Data2, } } -func (m *TLMessageActionPaymentSentMe) SetCurrency(v string) { m.Data2.Currency = v } -func (m *TLMessageActionPaymentSentMe) GetCurrency() string { return m.Data2.Currency } - -func (m *TLMessageActionPaymentSentMe) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } -func (m *TLMessageActionPaymentSentMe) GetTotalAmount() int64 { return m.Data2.TotalAmount } - -func (m *TLMessageActionPaymentSentMe) SetPayload(v []byte) { m.Data2.Payload = v } -func (m *TLMessageActionPaymentSentMe) GetPayload() []byte { return m.Data2.Payload } - -func (m *TLMessageActionPaymentSentMe) SetInfo(v *PaymentRequestedInfo) { m.Data2.Info = v } -func (m *TLMessageActionPaymentSentMe) GetInfo() *PaymentRequestedInfo { return m.Data2.Info } +// account.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations; +func (m *TLAccountWebAuthorizations) To_Account_WebAuthorizations() *Account_WebAuthorizations { + return &Account_WebAuthorizations{ + Constructor: TLConstructor_CRC32_account_webAuthorizations, + Data2: m.Data2, + } +} -func (m *TLMessageActionPaymentSentMe) SetShippingOptionId(v string) { m.Data2.ShippingOptionId = v } -func (m *TLMessageActionPaymentSentMe) GetShippingOptionId() string { return m.Data2.ShippingOptionId } +func (m *TLAccountWebAuthorizations) SetAuthorizations(v []*WebAuthorization) { + m.Data2.Authorizations = v +} +func (m *TLAccountWebAuthorizations) GetAuthorizations() []*WebAuthorization { + return m.Data2.Authorizations +} -func (m *TLMessageActionPaymentSentMe) SetCharge(v *PaymentCharge) { m.Data2.Charge = v } -func (m *TLMessageActionPaymentSentMe) GetCharge() *PaymentCharge { return m.Data2.Charge } +func (m *TLAccountWebAuthorizations) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLAccountWebAuthorizations) GetUsers() []*User { return m.Data2.Users } -func NewTLMessageActionPaymentSentMe() *TLMessageActionPaymentSentMe { - return &TLMessageActionPaymentSentMe{Data2: &MessageAction_Data{}} +func NewTLAccountWebAuthorizations() *TLAccountWebAuthorizations { + return &TLAccountWebAuthorizations{Data2: &Account_WebAuthorizations_Data{}} } -func (m *TLMessageActionPaymentSentMe) Encode() []byte { +func (m *TLAccountWebAuthorizations) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionPaymentSentMe)) - - // flags - var flags uint32 = 0 - if m.GetInfo() != nil { - flags |= 1 << 0 - } - if m.GetShippingOptionId() != "" { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_account_webAuthorizations)) - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) - x.StringBytes(m.GetPayload()) - if m.GetInfo() != nil { - x.Bytes(m.GetInfo().Encode()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAuthorizations()))) + for _, v := range m.GetAuthorizations() { + x.buf = append(x.buf, (*v).Encode()...) } - if m.GetShippingOptionId() != "" { - x.String(m.GetShippingOptionId()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } - x.Bytes(m.GetCharge().Encode()) return x.buf } -func (m *TLMessageActionPaymentSentMe) EncodeToLayer(layer int) []byte { +func (m *TLAccountWebAuthorizations) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionPaymentSentMe)) - - // flags - var flags uint32 = 0 - if m.GetInfo() != nil { - flags |= 1 << 0 - } - if m.GetShippingOptionId() != "" { - flags |= 1 << 1 - } - x.UInt(flags) + x.Int(int32(TLConstructor_CRC32_account_webAuthorizations)) - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) - x.StringBytes(m.GetPayload()) - if m.GetInfo() != nil { - x.Bytes(m.GetInfo().EncodeToLayer(layer)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetAuthorizations()))) + for _, v := range m.GetAuthorizations() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - if m.GetShippingOptionId() != "" { - x.String(m.GetShippingOptionId()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } - x.Bytes(m.GetCharge().EncodeToLayer(layer)) return x.buf } -func (m *TLMessageActionPaymentSentMe) Decode(dbuf *DecodeBuf) error { - flags := dbuf.UInt() - _ = flags - m.SetCurrency(dbuf.String()) - m.SetTotalAmount(dbuf.Long()) - m.SetPayload(dbuf.StringBytes()) - if (flags & (1 << 0)) != 0 { - m5 := &PaymentRequestedInfo{} - m5.Decode(dbuf) - m.SetInfo(m5) +func (m *TLAccountWebAuthorizations) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err } - if (flags & (1 << 1)) != 0 { - m.SetShippingOptionId(dbuf.String()) + l1 := dbuf.Int() + v1 := make([]*WebAuthorization, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &WebAuthorization{} + v1[i].Decode(dbuf) } - m7 := &PaymentCharge{} - m7.Decode(dbuf) - m.SetCharge(m7) - - return dbuf.err -} + m.SetAuthorizations(v1) -// messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; -func (m *TLMessageActionPaymentSent) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionPaymentSent, - Data2: m.Data2, + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err } + l2 := dbuf.Int() + v2 := make([]*User, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &User{} + v2[i].Decode(dbuf) + } + m.SetUsers(v2) + + return dbuf.err } -func (m *TLMessageActionPaymentSent) SetCurrency(v string) { m.Data2.Currency = v } -func (m *TLMessageActionPaymentSent) GetCurrency() string { return m.Data2.Currency } +/////////////////////////////////////////////////////////////////////////////// +// SecureRequiredType <-- +// + TL_SecureRequiredType +// + TL_SecureRequiredTypeOneOf +// -func (m *TLMessageActionPaymentSent) SetTotalAmount(v int64) { m.Data2.TotalAmount = v } -func (m *TLMessageActionPaymentSent) GetTotalAmount() int64 { return m.Data2.TotalAmount } +func (m *SecureRequiredType) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_secureRequiredType: + t := m.To_SecureRequiredType() + return t.Encode() + case TLConstructor_CRC32_secureRequiredTypeOneOf: + t := m.To_SecureRequiredTypeOneOf() + return t.Encode() -func NewTLMessageActionPaymentSent() *TLMessageActionPaymentSent { - return &TLMessageActionPaymentSent{Data2: &MessageAction_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionPaymentSent) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionPaymentSent)) - - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) +func (m *SecureRequiredType) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_secureRequiredType: + t := m.To_SecureRequiredType() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_secureRequiredTypeOneOf: + t := m.To_SecureRequiredTypeOneOf() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionPaymentSent) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionPaymentSent)) - - x.String(m.GetCurrency()) - x.Long(m.GetTotalAmount()) +func (m *SecureRequiredType) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_secureRequiredType: + m2 := &TLSecureRequiredType{Data2: &SecureRequiredType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_secureRequiredTypeOneOf: + m2 := &TLSecureRequiredTypeOneOf{Data2: &SecureRequiredType_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLMessageActionPaymentSent) Decode(dbuf *DecodeBuf) error { - m.SetCurrency(dbuf.String()) - m.SetTotalAmount(dbuf.Long()) +// secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType; +func (m *SecureRequiredType) To_SecureRequiredType() *TLSecureRequiredType { + return &TLSecureRequiredType{ + Data2: m.Data2, + } +} - return dbuf.err +// secureRequiredTypeOneOf#27477b4 types:Vector = SecureRequiredType; +func (m *SecureRequiredType) To_SecureRequiredTypeOneOf() *TLSecureRequiredTypeOneOf { + return &TLSecureRequiredTypeOneOf{ + Data2: m.Data2, + } } -// messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction; -func (m *TLMessageActionPhoneCall) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionPhoneCall, +// secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType; +func (m *TLSecureRequiredType) To_SecureRequiredType() *SecureRequiredType { + return &SecureRequiredType{ + Constructor: TLConstructor_CRC32_secureRequiredType, Data2: m.Data2, } } -func (m *TLMessageActionPhoneCall) SetCallId(v int64) { m.Data2.CallId = v } -func (m *TLMessageActionPhoneCall) GetCallId() int64 { return m.Data2.CallId } +func (m *TLSecureRequiredType) SetNativeNames(v bool) { m.Data2.NativeNames = v } +func (m *TLSecureRequiredType) GetNativeNames() bool { return m.Data2.NativeNames } -func (m *TLMessageActionPhoneCall) SetReason(v *PhoneCallDiscardReason) { m.Data2.Reason = v } -func (m *TLMessageActionPhoneCall) GetReason() *PhoneCallDiscardReason { return m.Data2.Reason } +func (m *TLSecureRequiredType) SetSelfieRequired(v bool) { m.Data2.SelfieRequired = v } +func (m *TLSecureRequiredType) GetSelfieRequired() bool { return m.Data2.SelfieRequired } -func (m *TLMessageActionPhoneCall) SetDuration(v int32) { m.Data2.Duration = v } -func (m *TLMessageActionPhoneCall) GetDuration() int32 { return m.Data2.Duration } +func (m *TLSecureRequiredType) SetTranslationRequired(v bool) { m.Data2.TranslationRequired = v } +func (m *TLSecureRequiredType) GetTranslationRequired() bool { return m.Data2.TranslationRequired } -func NewTLMessageActionPhoneCall() *TLMessageActionPhoneCall { - return &TLMessageActionPhoneCall{Data2: &MessageAction_Data{}} +func (m *TLSecureRequiredType) SetType(v *SecureValueType) { m.Data2.Type = v } +func (m *TLSecureRequiredType) GetType() *SecureValueType { return m.Data2.Type } + +func NewTLSecureRequiredType() *TLSecureRequiredType { + return &TLSecureRequiredType{Data2: &SecureRequiredType_Data{}} } -func (m *TLMessageActionPhoneCall) Encode() []byte { +func (m *TLSecureRequiredType) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionPhoneCall)) + x.Int(int32(TLConstructor_CRC32_secureRequiredType)) // flags var flags uint32 = 0 - if m.GetReason() != nil { + if m.GetNativeNames() == true { flags |= 1 << 0 } - if m.GetDuration() != 0 { + if m.GetSelfieRequired() == true { flags |= 1 << 1 } + if m.GetTranslationRequired() == true { + flags |= 1 << 2 + } x.UInt(flags) - x.Long(m.GetCallId()) - if m.GetReason() != nil { - x.Bytes(m.GetReason().Encode()) - } - if m.GetDuration() != 0 { - x.Int(m.GetDuration()) - } + x.Bytes(m.GetType().Encode()) return x.buf } -func (m *TLMessageActionPhoneCall) EncodeToLayer(layer int) []byte { +func (m *TLSecureRequiredType) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionPhoneCall)) + x.Int(int32(TLConstructor_CRC32_secureRequiredType)) // flags var flags uint32 = 0 - if m.GetReason() != nil { + if m.GetNativeNames() == true { flags |= 1 << 0 } - if m.GetDuration() != 0 { + if m.GetSelfieRequired() == true { flags |= 1 << 1 } + if m.GetTranslationRequired() == true { + flags |= 1 << 2 + } x.UInt(flags) - x.Long(m.GetCallId()) - if m.GetReason() != nil { - x.Bytes(m.GetReason().EncodeToLayer(layer)) - } - if m.GetDuration() != 0 { - x.Int(m.GetDuration()) - } + x.Bytes(m.GetType().EncodeToLayer(layer)) return x.buf } -func (m *TLMessageActionPhoneCall) Decode(dbuf *DecodeBuf) error { +func (m *TLSecureRequiredType) Decode(dbuf *DecodeBuf) error { flags := dbuf.UInt() _ = flags - m.SetCallId(dbuf.Long()) if (flags & (1 << 0)) != 0 { - m3 := &PhoneCallDiscardReason{} - m3.Decode(dbuf) - m.SetReason(m3) + m.SetNativeNames(true) } if (flags & (1 << 1)) != 0 { - m.SetDuration(dbuf.Int()) + m.SetSelfieRequired(true) + } + if (flags & (1 << 2)) != 0 { + m.SetTranslationRequired(true) } + m5 := &SecureValueType{} + m5.Decode(dbuf) + m.SetType(m5) return dbuf.err } -// messageActionScreenshotTaken#4792929b = MessageAction; -func (m *TLMessageActionScreenshotTaken) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionScreenshotTaken, +// secureRequiredTypeOneOf#27477b4 types:Vector = SecureRequiredType; +func (m *TLSecureRequiredTypeOneOf) To_SecureRequiredType() *SecureRequiredType { + return &SecureRequiredType{ + Constructor: TLConstructor_CRC32_secureRequiredTypeOneOf, Data2: m.Data2, } } -func NewTLMessageActionScreenshotTaken() *TLMessageActionScreenshotTaken { - return &TLMessageActionScreenshotTaken{Data2: &MessageAction_Data{}} +func (m *TLSecureRequiredTypeOneOf) SetTypes(v []*SecureRequiredType) { m.Data2.Types = v } +func (m *TLSecureRequiredTypeOneOf) GetTypes() []*SecureRequiredType { return m.Data2.Types } + +func NewTLSecureRequiredTypeOneOf() *TLSecureRequiredTypeOneOf { + return &TLSecureRequiredTypeOneOf{Data2: &SecureRequiredType_Data{}} } -func (m *TLMessageActionScreenshotTaken) Encode() []byte { +func (m *TLSecureRequiredTypeOneOf) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionScreenshotTaken)) + x.Int(int32(TLConstructor_CRC32_secureRequiredTypeOneOf)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTypes()))) + for _, v := range m.GetTypes() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLMessageActionScreenshotTaken) EncodeToLayer(layer int) []byte { +func (m *TLSecureRequiredTypeOneOf) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionScreenshotTaken)) + x.Int(int32(TLConstructor_CRC32_secureRequiredTypeOneOf)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetTypes()))) + for _, v := range m.GetTypes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLMessageActionScreenshotTaken) Decode(dbuf *DecodeBuf) error { +func (m *TLSecureRequiredTypeOneOf) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*SecureRequiredType, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &SecureRequiredType{} + v1[i].Decode(dbuf) + } + m.SetTypes(v1) return dbuf.err } -// messageActionCustomAction#fae69f56 message:string = MessageAction; -func (m *TLMessageActionCustomAction) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionCustomAction, - Data2: m.Data2, - } -} +/////////////////////////////////////////////////////////////////////////////// +// Messages_AffectedHistory <-- +// + TL_MessagesAffectedHistory +// -func (m *TLMessageActionCustomAction) SetMessage(v string) { m.Data2.Message = v } -func (m *TLMessageActionCustomAction) GetMessage() string { return m.Data2.Message } +func (m *Messages_AffectedHistory) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_messages_affectedHistory: + t := m.To_MessagesAffectedHistory() + return t.Encode() -func NewTLMessageActionCustomAction() *TLMessageActionCustomAction { - return &TLMessageActionCustomAction{Data2: &MessageAction_Data{}} + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionCustomAction) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionCustomAction)) - - x.String(m.GetMessage()) +func (m *Messages_AffectedHistory) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_messages_affectedHistory: + t := m.To_MessagesAffectedHistory() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionCustomAction) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionCustomAction)) - - x.String(m.GetMessage()) +func (m *Messages_AffectedHistory) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_messages_affectedHistory: + m2 := &TLMessagesAffectedHistory{Data2: &Messages_AffectedHistory_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLMessageActionCustomAction) Decode(dbuf *DecodeBuf) error { - m.SetMessage(dbuf.String()) - - return dbuf.err +// messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory; +func (m *Messages_AffectedHistory) To_MessagesAffectedHistory() *TLMessagesAffectedHistory { + return &TLMessagesAffectedHistory{ + Data2: m.Data2, + } } -// messageActionBotAllowed#abe9affe domain:string = MessageAction; -func (m *TLMessageActionBotAllowed) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionBotAllowed, +// messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory; +func (m *TLMessagesAffectedHistory) To_Messages_AffectedHistory() *Messages_AffectedHistory { + return &Messages_AffectedHistory{ + Constructor: TLConstructor_CRC32_messages_affectedHistory, Data2: m.Data2, } } -func (m *TLMessageActionBotAllowed) SetDomain(v string) { m.Data2.Domain = v } -func (m *TLMessageActionBotAllowed) GetDomain() string { return m.Data2.Domain } +func (m *TLMessagesAffectedHistory) SetPts(v int32) { m.Data2.Pts = v } +func (m *TLMessagesAffectedHistory) GetPts() int32 { return m.Data2.Pts } -func NewTLMessageActionBotAllowed() *TLMessageActionBotAllowed { - return &TLMessageActionBotAllowed{Data2: &MessageAction_Data{}} +func (m *TLMessagesAffectedHistory) SetPtsCount(v int32) { m.Data2.PtsCount = v } +func (m *TLMessagesAffectedHistory) GetPtsCount() int32 { return m.Data2.PtsCount } + +func (m *TLMessagesAffectedHistory) SetOffset(v int32) { m.Data2.Offset = v } +func (m *TLMessagesAffectedHistory) GetOffset() int32 { return m.Data2.Offset } + +func NewTLMessagesAffectedHistory() *TLMessagesAffectedHistory { + return &TLMessagesAffectedHistory{Data2: &Messages_AffectedHistory_Data{}} } -func (m *TLMessageActionBotAllowed) Encode() []byte { +func (m *TLMessagesAffectedHistory) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionBotAllowed)) + x.Int(int32(TLConstructor_CRC32_messages_affectedHistory)) - x.String(m.GetDomain()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) + x.Int(m.GetOffset()) return x.buf } -func (m *TLMessageActionBotAllowed) EncodeToLayer(layer int) []byte { +func (m *TLMessagesAffectedHistory) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionBotAllowed)) + x.Int(int32(TLConstructor_CRC32_messages_affectedHistory)) - x.String(m.GetDomain()) + x.Int(m.GetPts()) + x.Int(m.GetPtsCount()) + x.Int(m.GetOffset()) return x.buf } -func (m *TLMessageActionBotAllowed) Decode(dbuf *DecodeBuf) error { - m.SetDomain(dbuf.String()) +func (m *TLMessagesAffectedHistory) Decode(dbuf *DecodeBuf) error { + m.SetPts(dbuf.Int()) + m.SetPtsCount(dbuf.Int()) + m.SetOffset(dbuf.Int()) return dbuf.err } -// messageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction; -func (m *TLMessageActionSecureValuesSentMe) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionSecureValuesSentMe, - Data2: m.Data2, - } -} - -func (m *TLMessageActionSecureValuesSentMe) SetValues(v []*SecureValue) { m.Data2.Values = v } -func (m *TLMessageActionSecureValuesSentMe) GetValues() []*SecureValue { return m.Data2.Values } - -func (m *TLMessageActionSecureValuesSentMe) SetCredentials(v *SecureCredentialsEncrypted) { - m.Data2.Credentials = v -} -func (m *TLMessageActionSecureValuesSentMe) GetCredentials() *SecureCredentialsEncrypted { - return m.Data2.Credentials -} - -func NewTLMessageActionSecureValuesSentMe() *TLMessageActionSecureValuesSentMe { - return &TLMessageActionSecureValuesSentMe{Data2: &MessageAction_Data{}} -} - -func (m *TLMessageActionSecureValuesSentMe) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionSecureValuesSentMe)) +/////////////////////////////////////////////////////////////////////////////// +// InputEncryptedChat <-- +// + TL_InputEncryptedChat +// - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetValues()))) - for _, v := range m.GetValues() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Bytes(m.GetCredentials().Encode()) +func (m *InputEncryptedChat) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_inputEncryptedChat: + t := m.To_InputEncryptedChat() + return t.Encode() - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLMessageActionSecureValuesSentMe) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionSecureValuesSentMe)) +func (m *InputEncryptedChat) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_inputEncryptedChat: + t := m.To_InputEncryptedChat() + return t.EncodeToLayer(layer) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetValues()))) - for _, v := range m.GetValues() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - x.Bytes(m.GetCredentials().EncodeToLayer(layer)) - - return x.buf } -func (m *TLMessageActionSecureValuesSentMe) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*SecureValue, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &SecureValue{} - v1[i].Decode(dbuf) - } - m.SetValues(v1) - - m2 := &SecureCredentialsEncrypted{} - m2.Decode(dbuf) - m.SetCredentials(m2) +func (m *InputEncryptedChat) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_inputEncryptedChat: + m2 := &TLInputEncryptedChat{Data2: &InputEncryptedChat_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// messageActionSecureValuesSent#d95c6154 types:Vector = MessageAction; -func (m *TLMessageActionSecureValuesSent) To_MessageAction() *MessageAction { - return &MessageAction{ - Constructor: TLConstructor_CRC32_messageActionSecureValuesSent, +// inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat; +func (m *InputEncryptedChat) To_InputEncryptedChat() *TLInputEncryptedChat { + return &TLInputEncryptedChat{ + Data2: m.Data2, + } +} + +// inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat; +func (m *TLInputEncryptedChat) To_InputEncryptedChat() *InputEncryptedChat { + return &InputEncryptedChat{ + Constructor: TLConstructor_CRC32_inputEncryptedChat, Data2: m.Data2, } } -func (m *TLMessageActionSecureValuesSent) SetTypes(v []*SecureValueType) { m.Data2.Types = v } -func (m *TLMessageActionSecureValuesSent) GetTypes() []*SecureValueType { return m.Data2.Types } +func (m *TLInputEncryptedChat) SetChatId(v int32) { m.Data2.ChatId = v } +func (m *TLInputEncryptedChat) GetChatId() int32 { return m.Data2.ChatId } -func NewTLMessageActionSecureValuesSent() *TLMessageActionSecureValuesSent { - return &TLMessageActionSecureValuesSent{Data2: &MessageAction_Data{}} +func (m *TLInputEncryptedChat) SetAccessHash(v int64) { m.Data2.AccessHash = v } +func (m *TLInputEncryptedChat) GetAccessHash() int64 { return m.Data2.AccessHash } + +func NewTLInputEncryptedChat() *TLInputEncryptedChat { + return &TLInputEncryptedChat{Data2: &InputEncryptedChat_Data{}} } -func (m *TLMessageActionSecureValuesSent) Encode() []byte { +func (m *TLInputEncryptedChat) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionSecureValuesSent)) + x.Int(int32(TLConstructor_CRC32_inputEncryptedChat)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTypes()))) - for _, v := range m.GetTypes() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Int(m.GetChatId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLMessageActionSecureValuesSent) EncodeToLayer(layer int) []byte { +func (m *TLInputEncryptedChat) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messageActionSecureValuesSent)) + x.Int(int32(TLConstructor_CRC32_inputEncryptedChat)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetTypes()))) - for _, v := range m.GetTypes() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Int(m.GetChatId()) + x.Long(m.GetAccessHash()) return x.buf } -func (m *TLMessageActionSecureValuesSent) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*SecureValueType, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &SecureValueType{} - v1[i].Decode(dbuf) - } - m.SetTypes(v1) +func (m *TLInputEncryptedChat) Decode(dbuf *DecodeBuf) error { + m.SetChatId(dbuf.Int()) + m.SetAccessHash(dbuf.Long()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Messages_Chats <-- -// + TL_MessagesChats -// + TL_MessagesChatsSlice +// StickerSetCovered <-- +// + TL_StickerSetCovered +// + TL_StickerSetMultiCovered // -func (m *Messages_Chats) Encode() []byte { +func (m *StickerSetCovered) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_messages_chats: - t := m.To_MessagesChats() + case TLConstructor_CRC32_stickerSetCovered: + t := m.To_StickerSetCovered() return t.Encode() - case TLConstructor_CRC32_messages_chatsSlice: - t := m.To_MessagesChatsSlice() + case TLConstructor_CRC32_stickerSetMultiCovered: + t := m.To_StickerSetMultiCovered() return t.Encode() default: @@ -64909,14 +64892,14 @@ func (m *Messages_Chats) Encode() []byte { } } -func (m *Messages_Chats) EncodeToLayer(layer int) []byte { +func (m *StickerSetCovered) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_messages_chats: - t := m.To_MessagesChats() + case TLConstructor_CRC32_stickerSetCovered: + t := m.To_StickerSetCovered() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_messages_chatsSlice: - t := m.To_MessagesChatsSlice() + case TLConstructor_CRC32_stickerSetMultiCovered: + t := m.To_StickerSetMultiCovered() return t.EncodeToLayer(layer) default: @@ -64925,15 +64908,15 @@ func (m *Messages_Chats) EncodeToLayer(layer int) []byte { } } -func (m *Messages_Chats) Decode(dbuf *DecodeBuf) error { +func (m *StickerSetCovered) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_messages_chats: - m2 := &TLMessagesChats{Data2: &Messages_Chats_Data{}} + case TLConstructor_CRC32_stickerSetCovered: + m2 := &TLStickerSetCovered{Data2: &StickerSetCovered_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_messages_chatsSlice: - m2 := &TLMessagesChatsSlice{Data2: &Messages_Chats_Data{}} + case TLConstructor_CRC32_stickerSetMultiCovered: + m2 := &TLStickerSetMultiCovered{Data2: &StickerSetCovered_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -64943,151 +64926,144 @@ func (m *Messages_Chats) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// messages.chats#64ff9fd5 chats:Vector = messages.Chats; -func (m *Messages_Chats) To_MessagesChats() *TLMessagesChats { - return &TLMessagesChats{ +// stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered; +func (m *StickerSetCovered) To_StickerSetCovered() *TLStickerSetCovered { + return &TLStickerSetCovered{ Data2: m.Data2, } } -// messages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats; -func (m *Messages_Chats) To_MessagesChatsSlice() *TLMessagesChatsSlice { - return &TLMessagesChatsSlice{ +// stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered; +func (m *StickerSetCovered) To_StickerSetMultiCovered() *TLStickerSetMultiCovered { + return &TLStickerSetMultiCovered{ Data2: m.Data2, } } -// messages.chats#64ff9fd5 chats:Vector = messages.Chats; -func (m *TLMessagesChats) To_Messages_Chats() *Messages_Chats { - return &Messages_Chats{ - Constructor: TLConstructor_CRC32_messages_chats, +// stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered; +func (m *TLStickerSetCovered) To_StickerSetCovered() *StickerSetCovered { + return &StickerSetCovered{ + Constructor: TLConstructor_CRC32_stickerSetCovered, Data2: m.Data2, } } -func (m *TLMessagesChats) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLMessagesChats) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLStickerSetCovered) SetSet(v *StickerSet) { m.Data2.Set = v } +func (m *TLStickerSetCovered) GetSet() *StickerSet { return m.Data2.Set } -func NewTLMessagesChats() *TLMessagesChats { - return &TLMessagesChats{Data2: &Messages_Chats_Data{}} +func (m *TLStickerSetCovered) SetCover(v *Document) { m.Data2.Cover = v } +func (m *TLStickerSetCovered) GetCover() *Document { return m.Data2.Cover } + +func NewTLStickerSetCovered() *TLStickerSetCovered { + return &TLStickerSetCovered{Data2: &StickerSetCovered_Data{}} } -func (m *TLMessagesChats) Encode() []byte { +func (m *TLStickerSetCovered) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_chats)) + x.Int(int32(TLConstructor_CRC32_stickerSetCovered)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } + x.Bytes(m.GetSet().Encode()) + x.Bytes(m.GetCover().Encode()) return x.buf } -func (m *TLMessagesChats) EncodeToLayer(layer int) []byte { +func (m *TLStickerSetCovered) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_chats)) + x.Int(int32(TLConstructor_CRC32_stickerSetCovered)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } + x.Bytes(m.GetSet().EncodeToLayer(layer)) + x.Bytes(m.GetCover().EncodeToLayer(layer)) return x.buf } -func (m *TLMessagesChats) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*Chat, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &Chat{} - v1[i].Decode(dbuf) - } - m.SetChats(v1) +func (m *TLStickerSetCovered) Decode(dbuf *DecodeBuf) error { + m1 := &StickerSet{} + m1.Decode(dbuf) + m.SetSet(m1) + m2 := &Document{} + m2.Decode(dbuf) + m.SetCover(m2) return dbuf.err } -// messages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats; -func (m *TLMessagesChatsSlice) To_Messages_Chats() *Messages_Chats { - return &Messages_Chats{ - Constructor: TLConstructor_CRC32_messages_chatsSlice, +// stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered; +func (m *TLStickerSetMultiCovered) To_StickerSetCovered() *StickerSetCovered { + return &StickerSetCovered{ + Constructor: TLConstructor_CRC32_stickerSetMultiCovered, Data2: m.Data2, } } -func (m *TLMessagesChatsSlice) SetCount(v int32) { m.Data2.Count = v } -func (m *TLMessagesChatsSlice) GetCount() int32 { return m.Data2.Count } +func (m *TLStickerSetMultiCovered) SetSet(v *StickerSet) { m.Data2.Set = v } +func (m *TLStickerSetMultiCovered) GetSet() *StickerSet { return m.Data2.Set } -func (m *TLMessagesChatsSlice) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLMessagesChatsSlice) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLStickerSetMultiCovered) SetCovers(v []*Document) { m.Data2.Covers = v } +func (m *TLStickerSetMultiCovered) GetCovers() []*Document { return m.Data2.Covers } -func NewTLMessagesChatsSlice() *TLMessagesChatsSlice { - return &TLMessagesChatsSlice{Data2: &Messages_Chats_Data{}} +func NewTLStickerSetMultiCovered() *TLStickerSetMultiCovered { + return &TLStickerSetMultiCovered{Data2: &StickerSetCovered_Data{}} } -func (m *TLMessagesChatsSlice) Encode() []byte { +func (m *TLStickerSetMultiCovered) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_chatsSlice)) + x.Int(int32(TLConstructor_CRC32_stickerSetMultiCovered)) - x.Int(m.GetCount()) + x.Bytes(m.GetSet().Encode()) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { + x.Int(int32(len(m.GetCovers()))) + for _, v := range m.GetCovers() { x.buf = append(x.buf, (*v).Encode()...) } return x.buf } -func (m *TLMessagesChatsSlice) EncodeToLayer(layer int) []byte { +func (m *TLStickerSetMultiCovered) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_messages_chatsSlice)) + x.Int(int32(TLConstructor_CRC32_stickerSetMultiCovered)) - x.Int(m.GetCount()) + x.Bytes(m.GetSet().EncodeToLayer(layer)) x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { + x.Int(int32(len(m.GetCovers()))) + for _, v := range m.GetCovers() { x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) } return x.buf } -func (m *TLMessagesChatsSlice) Decode(dbuf *DecodeBuf) error { - m.SetCount(dbuf.Int()) +func (m *TLStickerSetMultiCovered) Decode(dbuf *DecodeBuf) error { + m1 := &StickerSet{} + m1.Decode(dbuf) + m.SetSet(m1) c2 := dbuf.Int() if c2 != int32(TLConstructor_CRC32_vector) { dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) return dbuf.err } l2 := dbuf.Int() - v2 := make([]*Chat, l2) + v2 := make([]*Document, l2) for i := int32(0); i < l2; i++ { - v2[i] = &Chat{} + v2[i] = &Document{} v2[i].Decode(dbuf) } - m.SetChats(v2) + m.SetCovers(v2) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// TopPeer <-- -// + TL_TopPeer +// ChannelBannedRights <-- +// + TL_ChannelBannedRights // -func (m *TopPeer) Encode() []byte { +func (m *ChannelBannedRights) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_topPeer: - t := m.To_TopPeer() + case TLConstructor_CRC32_channelBannedRights: + t := m.To_ChannelBannedRights() return t.Encode() default: @@ -65096,11 +65072,11 @@ func (m *TopPeer) Encode() []byte { } } -func (m *TopPeer) EncodeToLayer(layer int) []byte { +func (m *ChannelBannedRights) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_topPeer: - t := m.To_TopPeer() + case TLConstructor_CRC32_channelBannedRights: + t := m.To_ChannelBannedRights() return t.EncodeToLayer(layer) default: @@ -65109,11 +65085,11 @@ func (m *TopPeer) EncodeToLayer(layer int) []byte { } } -func (m *TopPeer) Decode(dbuf *DecodeBuf) error { +func (m *ChannelBannedRights) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_topPeer: - m2 := &TLTopPeer{Data2: &TopPeer_Data{}} + case TLConstructor_CRC32_channelBannedRights: + m2 := &TLChannelBannedRights{Data2: &ChannelBannedRights_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -65123,77 +65099,167 @@ func (m *TopPeer) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// topPeer#edcdc05b peer:Peer rating:double = TopPeer; -func (m *TopPeer) To_TopPeer() *TLTopPeer { - return &TLTopPeer{ +// channelBannedRights#58cf4249 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true until_date:int = ChannelBannedRights; +func (m *ChannelBannedRights) To_ChannelBannedRights() *TLChannelBannedRights { + return &TLChannelBannedRights{ Data2: m.Data2, } } -// topPeer#edcdc05b peer:Peer rating:double = TopPeer; -func (m *TLTopPeer) To_TopPeer() *TopPeer { - return &TopPeer{ - Constructor: TLConstructor_CRC32_topPeer, +// channelBannedRights#58cf4249 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true until_date:int = ChannelBannedRights; +func (m *TLChannelBannedRights) To_ChannelBannedRights() *ChannelBannedRights { + return &ChannelBannedRights{ + Constructor: TLConstructor_CRC32_channelBannedRights, Data2: m.Data2, } } -func (m *TLTopPeer) SetPeer(v *Peer) { m.Data2.Peer = v } -func (m *TLTopPeer) GetPeer() *Peer { return m.Data2.Peer } +func (m *TLChannelBannedRights) SetViewMessages(v bool) { m.Data2.ViewMessages = v } +func (m *TLChannelBannedRights) GetViewMessages() bool { return m.Data2.ViewMessages } -func (m *TLTopPeer) SetRating(v float64) { m.Data2.Rating = v } -func (m *TLTopPeer) GetRating() float64 { return m.Data2.Rating } +func (m *TLChannelBannedRights) SetSendMessages(v bool) { m.Data2.SendMessages = v } +func (m *TLChannelBannedRights) GetSendMessages() bool { return m.Data2.SendMessages } -func NewTLTopPeer() *TLTopPeer { - return &TLTopPeer{Data2: &TopPeer_Data{}} +func (m *TLChannelBannedRights) SetSendMedia(v bool) { m.Data2.SendMedia = v } +func (m *TLChannelBannedRights) GetSendMedia() bool { return m.Data2.SendMedia } + +func (m *TLChannelBannedRights) SetSendStickers(v bool) { m.Data2.SendStickers = v } +func (m *TLChannelBannedRights) GetSendStickers() bool { return m.Data2.SendStickers } + +func (m *TLChannelBannedRights) SetSendGifs(v bool) { m.Data2.SendGifs = v } +func (m *TLChannelBannedRights) GetSendGifs() bool { return m.Data2.SendGifs } + +func (m *TLChannelBannedRights) SetSendGames(v bool) { m.Data2.SendGames = v } +func (m *TLChannelBannedRights) GetSendGames() bool { return m.Data2.SendGames } + +func (m *TLChannelBannedRights) SetSendInline(v bool) { m.Data2.SendInline = v } +func (m *TLChannelBannedRights) GetSendInline() bool { return m.Data2.SendInline } + +func (m *TLChannelBannedRights) SetEmbedLinks(v bool) { m.Data2.EmbedLinks = v } +func (m *TLChannelBannedRights) GetEmbedLinks() bool { return m.Data2.EmbedLinks } + +func (m *TLChannelBannedRights) SetUntilDate(v int32) { m.Data2.UntilDate = v } +func (m *TLChannelBannedRights) GetUntilDate() int32 { return m.Data2.UntilDate } + +func NewTLChannelBannedRights() *TLChannelBannedRights { + return &TLChannelBannedRights{Data2: &ChannelBannedRights_Data{}} } -func (m *TLTopPeer) Encode() []byte { +func (m *TLChannelBannedRights) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeer)) + x.Int(int32(TLConstructor_CRC32_channelBannedRights)) - x.Bytes(m.GetPeer().Encode()) - x.Double(m.GetRating()) + // flags + var flags uint32 = 0 + if m.GetViewMessages() == true { + flags |= 1 << 0 + } + if m.GetSendMessages() == true { + flags |= 1 << 1 + } + if m.GetSendMedia() == true { + flags |= 1 << 2 + } + if m.GetSendStickers() == true { + flags |= 1 << 3 + } + if m.GetSendGifs() == true { + flags |= 1 << 4 + } + if m.GetSendGames() == true { + flags |= 1 << 5 + } + if m.GetSendInline() == true { + flags |= 1 << 6 + } + if m.GetEmbedLinks() == true { + flags |= 1 << 7 + } + x.UInt(flags) + + x.Int(m.GetUntilDate()) return x.buf } -func (m *TLTopPeer) EncodeToLayer(layer int) []byte { +func (m *TLChannelBannedRights) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeer)) + x.Int(int32(TLConstructor_CRC32_channelBannedRights)) - x.Bytes(m.GetPeer().EncodeToLayer(layer)) - x.Double(m.GetRating()) + // flags + var flags uint32 = 0 + if m.GetViewMessages() == true { + flags |= 1 << 0 + } + if m.GetSendMessages() == true { + flags |= 1 << 1 + } + if m.GetSendMedia() == true { + flags |= 1 << 2 + } + if m.GetSendStickers() == true { + flags |= 1 << 3 + } + if m.GetSendGifs() == true { + flags |= 1 << 4 + } + if m.GetSendGames() == true { + flags |= 1 << 5 + } + if m.GetSendInline() == true { + flags |= 1 << 6 + } + if m.GetEmbedLinks() == true { + flags |= 1 << 7 + } + x.UInt(flags) + + x.Int(m.GetUntilDate()) return x.buf } -func (m *TLTopPeer) Decode(dbuf *DecodeBuf) error { - m1 := &Peer{} - m1.Decode(dbuf) - m.SetPeer(m1) - m.SetRating(dbuf.Double()) +func (m *TLChannelBannedRights) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 0)) != 0 { + m.SetViewMessages(true) + } + if (flags & (1 << 1)) != 0 { + m.SetSendMessages(true) + } + if (flags & (1 << 2)) != 0 { + m.SetSendMedia(true) + } + if (flags & (1 << 3)) != 0 { + m.SetSendStickers(true) + } + if (flags & (1 << 4)) != 0 { + m.SetSendGifs(true) + } + if (flags & (1 << 5)) != 0 { + m.SetSendGames(true) + } + if (flags & (1 << 6)) != 0 { + m.SetSendInline(true) + } + if (flags & (1 << 7)) != 0 { + m.SetEmbedLinks(true) + } + m.SetUntilDate(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Contacts_TopPeers <-- -// + TL_ContactsTopPeersNotModified -// + TL_ContactsTopPeers -// + TL_ContactsTopPeersDisabled +// DialogPeer <-- +// + TL_DialogPeer // -func (m *Contacts_TopPeers) Encode() []byte { +func (m *DialogPeer) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_contacts_topPeersNotModified: - t := m.To_ContactsTopPeersNotModified() - return t.Encode() - case TLConstructor_CRC32_contacts_topPeers: - t := m.To_ContactsTopPeers() - return t.Encode() - case TLConstructor_CRC32_contacts_topPeersDisabled: - t := m.To_ContactsTopPeersDisabled() + case TLConstructor_CRC32_dialogPeer: + t := m.To_DialogPeer() return t.Encode() default: @@ -65202,17 +65268,11 @@ func (m *Contacts_TopPeers) Encode() []byte { } } -func (m *Contacts_TopPeers) EncodeToLayer(layer int) []byte { +func (m *DialogPeer) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_contacts_topPeersNotModified: - t := m.To_ContactsTopPeersNotModified() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_contacts_topPeers: - t := m.To_ContactsTopPeers() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_contacts_topPeersDisabled: - t := m.To_ContactsTopPeersDisabled() + case TLConstructor_CRC32_dialogPeer: + t := m.To_DialogPeer() return t.EncodeToLayer(layer) default: @@ -65221,230 +65281,173 @@ func (m *Contacts_TopPeers) EncodeToLayer(layer int) []byte { } } -func (m *Contacts_TopPeers) Decode(dbuf *DecodeBuf) error { +func (m *DialogPeer) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_contacts_topPeersNotModified: - m2 := &TLContactsTopPeersNotModified{Data2: &Contacts_TopPeers_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_contacts_topPeers: - m2 := &TLContactsTopPeers{Data2: &Contacts_TopPeers_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_contacts_topPeersDisabled: - m2 := &TLContactsTopPeersDisabled{Data2: &Contacts_TopPeers_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// contacts.topPeersNotModified#de266ef5 = contacts.TopPeers; -func (m *Contacts_TopPeers) To_ContactsTopPeersNotModified() *TLContactsTopPeersNotModified { - return &TLContactsTopPeersNotModified{ - Data2: m.Data2, - } -} - -// contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers; -func (m *Contacts_TopPeers) To_ContactsTopPeers() *TLContactsTopPeers { - return &TLContactsTopPeers{ - Data2: m.Data2, + case TLConstructor_CRC32_dialogPeer: + m2 := &TLDialogPeer{Data2: &DialogPeer_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } + return dbuf.err } -// contacts.topPeersDisabled#b52c939d = contacts.TopPeers; -func (m *Contacts_TopPeers) To_ContactsTopPeersDisabled() *TLContactsTopPeersDisabled { - return &TLContactsTopPeersDisabled{ +// dialogPeer#e56dbf05 peer:Peer = DialogPeer; +func (m *DialogPeer) To_DialogPeer() *TLDialogPeer { + return &TLDialogPeer{ Data2: m.Data2, } } -// contacts.topPeersNotModified#de266ef5 = contacts.TopPeers; -func (m *TLContactsTopPeersNotModified) To_Contacts_TopPeers() *Contacts_TopPeers { - return &Contacts_TopPeers{ - Constructor: TLConstructor_CRC32_contacts_topPeersNotModified, +// dialogPeer#e56dbf05 peer:Peer = DialogPeer; +func (m *TLDialogPeer) To_DialogPeer() *DialogPeer { + return &DialogPeer{ + Constructor: TLConstructor_CRC32_dialogPeer, Data2: m.Data2, } } -func NewTLContactsTopPeersNotModified() *TLContactsTopPeersNotModified { - return &TLContactsTopPeersNotModified{Data2: &Contacts_TopPeers_Data{}} +func (m *TLDialogPeer) SetPeer(v *Peer) { m.Data2.Peer = v } +func (m *TLDialogPeer) GetPeer() *Peer { return m.Data2.Peer } + +func NewTLDialogPeer() *TLDialogPeer { + return &TLDialogPeer{Data2: &DialogPeer_Data{}} } -func (m *TLContactsTopPeersNotModified) Encode() []byte { +func (m *TLDialogPeer) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_topPeersNotModified)) + x.Int(int32(TLConstructor_CRC32_dialogPeer)) + + x.Bytes(m.GetPeer().Encode()) return x.buf } -func (m *TLContactsTopPeersNotModified) EncodeToLayer(layer int) []byte { +func (m *TLDialogPeer) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_topPeersNotModified)) + x.Int(int32(TLConstructor_CRC32_dialogPeer)) + + x.Bytes(m.GetPeer().EncodeToLayer(layer)) return x.buf } -func (m *TLContactsTopPeersNotModified) Decode(dbuf *DecodeBuf) error { +func (m *TLDialogPeer) Decode(dbuf *DecodeBuf) error { + m1 := &Peer{} + m1.Decode(dbuf) + m.SetPeer(m1) return dbuf.err } -// contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers; -func (m *TLContactsTopPeers) To_Contacts_TopPeers() *Contacts_TopPeers { - return &Contacts_TopPeers{ - Constructor: TLConstructor_CRC32_contacts_topPeers, - Data2: m.Data2, - } -} - -func (m *TLContactsTopPeers) SetCategories(v []*TopPeerCategoryPeers) { m.Data2.Categories = v } -func (m *TLContactsTopPeers) GetCategories() []*TopPeerCategoryPeers { return m.Data2.Categories } - -func (m *TLContactsTopPeers) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLContactsTopPeers) GetChats() []*Chat { return m.Data2.Chats } - -func (m *TLContactsTopPeers) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLContactsTopPeers) GetUsers() []*User { return m.Data2.Users } - -func NewTLContactsTopPeers() *TLContactsTopPeers { - return &TLContactsTopPeers{Data2: &Contacts_TopPeers_Data{}} -} +/////////////////////////////////////////////////////////////////////////////// +// Auth_ExportedAuthorization <-- +// + TL_AuthExportedAuthorization +// -func (m *TLContactsTopPeers) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_topPeers)) +func (m *Auth_ExportedAuthorization) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_auth_exportedAuthorization: + t := m.To_AuthExportedAuthorization() + return t.Encode() - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetCategories()))) - for _, v := range m.GetCategories() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - - return x.buf } -func (m *TLContactsTopPeers) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_topPeers)) +func (m *Auth_ExportedAuthorization) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_auth_exportedAuthorization: + t := m.To_AuthExportedAuthorization() + return t.EncodeToLayer(layer) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetCategories()))) - for _, v := range m.GetCategories() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) - } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } - - return x.buf } -func (m *TLContactsTopPeers) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*TopPeerCategoryPeers, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &TopPeerCategoryPeers{} - v1[i].Decode(dbuf) - } - m.SetCategories(v1) +func (m *Auth_ExportedAuthorization) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_auth_exportedAuthorization: + m2 := &TLAuthExportedAuthorization{Data2: &Auth_ExportedAuthorization_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Chat, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Chat{} - v2[i].Decode(dbuf) + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } - m.SetChats(v2) + return dbuf.err +} - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err - } - l3 := dbuf.Int() - v3 := make([]*User, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &User{} - v3[i].Decode(dbuf) +// auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization; +func (m *Auth_ExportedAuthorization) To_AuthExportedAuthorization() *TLAuthExportedAuthorization { + return &TLAuthExportedAuthorization{ + Data2: m.Data2, } - m.SetUsers(v3) - - return dbuf.err } -// contacts.topPeersDisabled#b52c939d = contacts.TopPeers; -func (m *TLContactsTopPeersDisabled) To_Contacts_TopPeers() *Contacts_TopPeers { - return &Contacts_TopPeers{ - Constructor: TLConstructor_CRC32_contacts_topPeersDisabled, +// auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization; +func (m *TLAuthExportedAuthorization) To_Auth_ExportedAuthorization() *Auth_ExportedAuthorization { + return &Auth_ExportedAuthorization{ + Constructor: TLConstructor_CRC32_auth_exportedAuthorization, Data2: m.Data2, } } -func NewTLContactsTopPeersDisabled() *TLContactsTopPeersDisabled { - return &TLContactsTopPeersDisabled{Data2: &Contacts_TopPeers_Data{}} +func (m *TLAuthExportedAuthorization) SetId(v int32) { m.Data2.Id = v } +func (m *TLAuthExportedAuthorization) GetId() int32 { return m.Data2.Id } + +func (m *TLAuthExportedAuthorization) SetBytes(v []byte) { m.Data2.Bytes = v } +func (m *TLAuthExportedAuthorization) GetBytes() []byte { return m.Data2.Bytes } + +func NewTLAuthExportedAuthorization() *TLAuthExportedAuthorization { + return &TLAuthExportedAuthorization{Data2: &Auth_ExportedAuthorization_Data{}} } -func (m *TLContactsTopPeersDisabled) Encode() []byte { +func (m *TLAuthExportedAuthorization) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_topPeersDisabled)) + x.Int(int32(TLConstructor_CRC32_auth_exportedAuthorization)) + + x.Int(m.GetId()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLContactsTopPeersDisabled) EncodeToLayer(layer int) []byte { +func (m *TLAuthExportedAuthorization) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_contacts_topPeersDisabled)) + x.Int(int32(TLConstructor_CRC32_auth_exportedAuthorization)) + + x.Int(m.GetId()) + x.StringBytes(m.GetBytes()) return x.buf } -func (m *TLContactsTopPeersDisabled) Decode(dbuf *DecodeBuf) error { +func (m *TLAuthExportedAuthorization) Decode(dbuf *DecodeBuf) error { + m.SetId(dbuf.Int()) + m.SetBytes(dbuf.StringBytes()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Channels_AdminLogResults <-- -// + TL_ChannelsAdminLogResults +// Payments_SavedInfo <-- +// + TL_PaymentsSavedInfo // -func (m *Channels_AdminLogResults) Encode() []byte { +func (m *Payments_SavedInfo) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_channels_adminLogResults: - t := m.To_ChannelsAdminLogResults() + case TLConstructor_CRC32_payments_savedInfo: + t := m.To_PaymentsSavedInfo() return t.Encode() default: @@ -65453,11 +65456,11 @@ func (m *Channels_AdminLogResults) Encode() []byte { } } -func (m *Channels_AdminLogResults) EncodeToLayer(layer int) []byte { +func (m *Payments_SavedInfo) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_channels_adminLogResults: - t := m.To_ChannelsAdminLogResults() + case TLConstructor_CRC32_payments_savedInfo: + t := m.To_PaymentsSavedInfo() return t.EncodeToLayer(layer) default: @@ -65466,11 +65469,11 @@ func (m *Channels_AdminLogResults) EncodeToLayer(layer int) []byte { } } -func (m *Channels_AdminLogResults) Decode(dbuf *DecodeBuf) error { +func (m *Payments_SavedInfo) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_channels_adminLogResults: - m2 := &TLChannelsAdminLogResults{Data2: &Channels_AdminLogResults_Data{}} + case TLConstructor_CRC32_payments_savedInfo: + m2 := &TLPaymentsSavedInfo{Data2: &Payments_SavedInfo_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -65480,132 +65483,97 @@ func (m *Channels_AdminLogResults) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; -func (m *Channels_AdminLogResults) To_ChannelsAdminLogResults() *TLChannelsAdminLogResults { - return &TLChannelsAdminLogResults{ +// payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; +func (m *Payments_SavedInfo) To_PaymentsSavedInfo() *TLPaymentsSavedInfo { + return &TLPaymentsSavedInfo{ Data2: m.Data2, } } -// channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; -func (m *TLChannelsAdminLogResults) To_Channels_AdminLogResults() *Channels_AdminLogResults { - return &Channels_AdminLogResults{ - Constructor: TLConstructor_CRC32_channels_adminLogResults, +// payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; +func (m *TLPaymentsSavedInfo) To_Payments_SavedInfo() *Payments_SavedInfo { + return &Payments_SavedInfo{ + Constructor: TLConstructor_CRC32_payments_savedInfo, Data2: m.Data2, } } -func (m *TLChannelsAdminLogResults) SetEvents(v []*ChannelAdminLogEvent) { m.Data2.Events = v } -func (m *TLChannelsAdminLogResults) GetEvents() []*ChannelAdminLogEvent { return m.Data2.Events } - -func (m *TLChannelsAdminLogResults) SetChats(v []*Chat) { m.Data2.Chats = v } -func (m *TLChannelsAdminLogResults) GetChats() []*Chat { return m.Data2.Chats } +func (m *TLPaymentsSavedInfo) SetHasSavedCredentials(v bool) { m.Data2.HasSavedCredentials = v } +func (m *TLPaymentsSavedInfo) GetHasSavedCredentials() bool { return m.Data2.HasSavedCredentials } -func (m *TLChannelsAdminLogResults) SetUsers(v []*User) { m.Data2.Users = v } -func (m *TLChannelsAdminLogResults) GetUsers() []*User { return m.Data2.Users } +func (m *TLPaymentsSavedInfo) SetSavedInfo(v *PaymentRequestedInfo) { m.Data2.SavedInfo = v } +func (m *TLPaymentsSavedInfo) GetSavedInfo() *PaymentRequestedInfo { return m.Data2.SavedInfo } -func NewTLChannelsAdminLogResults() *TLChannelsAdminLogResults { - return &TLChannelsAdminLogResults{Data2: &Channels_AdminLogResults_Data{}} +func NewTLPaymentsSavedInfo() *TLPaymentsSavedInfo { + return &TLPaymentsSavedInfo{Data2: &Payments_SavedInfo_Data{}} } -func (m *TLChannelsAdminLogResults) Encode() []byte { +func (m *TLPaymentsSavedInfo) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channels_adminLogResults)) + x.Int(int32(TLConstructor_CRC32_payments_savedInfo)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEvents()))) - for _, v := range m.GetEvents() { - x.buf = append(x.buf, (*v).Encode()...) + // flags + var flags uint32 = 0 + if m.GetHasSavedCredentials() == true { + flags |= 1 << 1 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).Encode()...) + if m.GetSavedInfo() != nil { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).Encode()...) + x.UInt(flags) + + if m.GetSavedInfo() != nil { + x.Bytes(m.GetSavedInfo().Encode()) } return x.buf } -func (m *TLChannelsAdminLogResults) EncodeToLayer(layer int) []byte { +func (m *TLPaymentsSavedInfo) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_channels_adminLogResults)) + x.Int(int32(TLConstructor_CRC32_payments_savedInfo)) - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetEvents()))) - for _, v := range m.GetEvents() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + // flags + var flags uint32 = 0 + if m.GetHasSavedCredentials() == true { + flags |= 1 << 1 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetChats()))) - for _, v := range m.GetChats() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + if m.GetSavedInfo() != nil { + flags |= 1 << 0 } - x.Int(int32(TLConstructor_CRC32_vector)) - x.Int(int32(len(m.GetUsers()))) - for _, v := range m.GetUsers() { - x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + x.UInt(flags) + + if m.GetSavedInfo() != nil { + x.Bytes(m.GetSavedInfo().EncodeToLayer(layer)) } return x.buf } -func (m *TLChannelsAdminLogResults) Decode(dbuf *DecodeBuf) error { - c1 := dbuf.Int() - if c1 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) - return dbuf.err - } - l1 := dbuf.Int() - v1 := make([]*ChannelAdminLogEvent, l1) - for i := int32(0); i < l1; i++ { - v1[i] = &ChannelAdminLogEvent{} - v1[i].Decode(dbuf) - } - m.SetEvents(v1) - - c2 := dbuf.Int() - if c2 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) - return dbuf.err - } - l2 := dbuf.Int() - v2 := make([]*Chat, l2) - for i := int32(0); i < l2; i++ { - v2[i] = &Chat{} - v2[i].Decode(dbuf) - } - m.SetChats(v2) - - c3 := dbuf.Int() - if c3 != int32(TLConstructor_CRC32_vector) { - dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) - return dbuf.err +func (m *TLPaymentsSavedInfo) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + if (flags & (1 << 1)) != 0 { + m.SetHasSavedCredentials(true) } - l3 := dbuf.Int() - v3 := make([]*User, l3) - for i := int32(0); i < l3; i++ { - v3[i] = &User{} - v3[i].Decode(dbuf) + if (flags & (1 << 0)) != 0 { + m3 := &PaymentRequestedInfo{} + m3.Decode(dbuf) + m.SetSavedInfo(m3) } - m.SetUsers(v3) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Account_Takeout <-- -// + TL_AccountTakeout +// LangPackDifference <-- +// + TL_LangPackDifference // -func (m *Account_Takeout) Encode() []byte { +func (m *LangPackDifference) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_account_takeout: - t := m.To_AccountTakeout() + case TLConstructor_CRC32_langPackDifference: + t := m.To_LangPackDifference() return t.Encode() default: @@ -65614,11 +65582,11 @@ func (m *Account_Takeout) Encode() []byte { } } -func (m *Account_Takeout) EncodeToLayer(layer int) []byte { +func (m *LangPackDifference) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_account_takeout: - t := m.To_AccountTakeout() + case TLConstructor_CRC32_langPackDifference: + t := m.To_LangPackDifference() return t.EncodeToLayer(layer) default: @@ -65627,11 +65595,11 @@ func (m *Account_Takeout) EncodeToLayer(layer int) []byte { } } -func (m *Account_Takeout) Decode(dbuf *DecodeBuf) error { +func (m *LangPackDifference) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_account_takeout: - m2 := &TLAccountTakeout{Data2: &Account_Takeout_Data{}} + case TLConstructor_CRC32_langPackDifference: + m2 := &TLLangPackDifference{Data2: &LangPackDifference_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -65641,97 +65609,118 @@ func (m *Account_Takeout) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// account.takeout#4dba4501 id:long = account.Takeout; -func (m *Account_Takeout) To_AccountTakeout() *TLAccountTakeout { - return &TLAccountTakeout{ +// langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference; +func (m *LangPackDifference) To_LangPackDifference() *TLLangPackDifference { + return &TLLangPackDifference{ Data2: m.Data2, } } -// account.takeout#4dba4501 id:long = account.Takeout; -func (m *TLAccountTakeout) To_Account_Takeout() *Account_Takeout { - return &Account_Takeout{ - Constructor: TLConstructor_CRC32_account_takeout, +// langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference; +func (m *TLLangPackDifference) To_LangPackDifference() *LangPackDifference { + return &LangPackDifference{ + Constructor: TLConstructor_CRC32_langPackDifference, Data2: m.Data2, } } -func (m *TLAccountTakeout) SetId(v int64) { m.Data2.Id = v } -func (m *TLAccountTakeout) GetId() int64 { return m.Data2.Id } +func (m *TLLangPackDifference) SetLangCode(v string) { m.Data2.LangCode = v } +func (m *TLLangPackDifference) GetLangCode() string { return m.Data2.LangCode } -func NewTLAccountTakeout() *TLAccountTakeout { - return &TLAccountTakeout{Data2: &Account_Takeout_Data{}} +func (m *TLLangPackDifference) SetFromVersion(v int32) { m.Data2.FromVersion = v } +func (m *TLLangPackDifference) GetFromVersion() int32 { return m.Data2.FromVersion } + +func (m *TLLangPackDifference) SetVersion(v int32) { m.Data2.Version = v } +func (m *TLLangPackDifference) GetVersion() int32 { return m.Data2.Version } + +func (m *TLLangPackDifference) SetStrings(v []*LangPackString) { m.Data2.Strings = v } +func (m *TLLangPackDifference) GetStrings() []*LangPackString { return m.Data2.Strings } + +func NewTLLangPackDifference() *TLLangPackDifference { + return &TLLangPackDifference{Data2: &LangPackDifference_Data{}} } -func (m *TLAccountTakeout) Encode() []byte { +func (m *TLLangPackDifference) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_takeout)) + x.Int(int32(TLConstructor_CRC32_langPackDifference)) - x.Long(m.GetId()) + x.String(m.GetLangCode()) + x.Int(m.GetFromVersion()) + x.Int(m.GetVersion()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStrings()))) + for _, v := range m.GetStrings() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLAccountTakeout) EncodeToLayer(layer int) []byte { +func (m *TLLangPackDifference) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_account_takeout)) + x.Int(int32(TLConstructor_CRC32_langPackDifference)) - x.Long(m.GetId()) + x.String(m.GetLangCode()) + x.Int(m.GetFromVersion()) + x.Int(m.GetVersion()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetStrings()))) + for _, v := range m.GetStrings() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLAccountTakeout) Decode(dbuf *DecodeBuf) error { - m.SetId(dbuf.Long()) +func (m *TLLangPackDifference) Decode(dbuf *DecodeBuf) error { + m.SetLangCode(dbuf.String()) + m.SetFromVersion(dbuf.Int()) + m.SetVersion(dbuf.Int()) + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*LangPackString, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &LangPackString{} + v4[i].Decode(dbuf) + } + m.SetStrings(v4) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// Storage_FileType <-- -// + TL_StorageFileUnknown -// + TL_StorageFilePartial -// + TL_StorageFileJpeg -// + TL_StorageFileGif -// + TL_StorageFilePng -// + TL_StorageFilePdf -// + TL_StorageFileMp3 -// + TL_StorageFileMov -// + TL_StorageFileMp4 -// + TL_StorageFileWebp +// UserStatus <-- +// + TL_UserStatusEmpty +// + TL_UserStatusOnline +// + TL_UserStatusOffline +// + TL_UserStatusRecently +// + TL_UserStatusLastWeek +// + TL_UserStatusLastMonth // -func (m *Storage_FileType) Encode() []byte { +func (m *UserStatus) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_storage_fileUnknown: - t := m.To_StorageFileUnknown() - return t.Encode() - case TLConstructor_CRC32_storage_filePartial: - t := m.To_StorageFilePartial() - return t.Encode() - case TLConstructor_CRC32_storage_fileJpeg: - t := m.To_StorageFileJpeg() - return t.Encode() - case TLConstructor_CRC32_storage_fileGif: - t := m.To_StorageFileGif() - return t.Encode() - case TLConstructor_CRC32_storage_filePng: - t := m.To_StorageFilePng() + case TLConstructor_CRC32_userStatusEmpty: + t := m.To_UserStatusEmpty() return t.Encode() - case TLConstructor_CRC32_storage_filePdf: - t := m.To_StorageFilePdf() + case TLConstructor_CRC32_userStatusOnline: + t := m.To_UserStatusOnline() return t.Encode() - case TLConstructor_CRC32_storage_fileMp3: - t := m.To_StorageFileMp3() + case TLConstructor_CRC32_userStatusOffline: + t := m.To_UserStatusOffline() return t.Encode() - case TLConstructor_CRC32_storage_fileMov: - t := m.To_StorageFileMov() + case TLConstructor_CRC32_userStatusRecently: + t := m.To_UserStatusRecently() return t.Encode() - case TLConstructor_CRC32_storage_fileMp4: - t := m.To_StorageFileMp4() + case TLConstructor_CRC32_userStatusLastWeek: + t := m.To_UserStatusLastWeek() return t.Encode() - case TLConstructor_CRC32_storage_fileWebp: - t := m.To_StorageFileWebp() + case TLConstructor_CRC32_userStatusLastMonth: + t := m.To_UserStatusLastMonth() return t.Encode() default: @@ -65740,38 +65729,26 @@ func (m *Storage_FileType) Encode() []byte { } } -func (m *Storage_FileType) EncodeToLayer(layer int) []byte { +func (m *UserStatus) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_storage_fileUnknown: - t := m.To_StorageFileUnknown() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_storage_filePartial: - t := m.To_StorageFilePartial() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_storage_fileJpeg: - t := m.To_StorageFileJpeg() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_storage_fileGif: - t := m.To_StorageFileGif() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_storage_filePng: - t := m.To_StorageFilePng() + case TLConstructor_CRC32_userStatusEmpty: + t := m.To_UserStatusEmpty() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_storage_filePdf: - t := m.To_StorageFilePdf() + case TLConstructor_CRC32_userStatusOnline: + t := m.To_UserStatusOnline() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_storage_fileMp3: - t := m.To_StorageFileMp3() + case TLConstructor_CRC32_userStatusOffline: + t := m.To_UserStatusOffline() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_storage_fileMov: - t := m.To_StorageFileMov() + case TLConstructor_CRC32_userStatusRecently: + t := m.To_UserStatusRecently() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_storage_fileMp4: - t := m.To_StorageFileMp4() + case TLConstructor_CRC32_userStatusLastWeek: + t := m.To_UserStatusLastWeek() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_storage_fileWebp: - t := m.To_StorageFileWebp() + case TLConstructor_CRC32_userStatusLastMonth: + t := m.To_UserStatusLastMonth() return t.EncodeToLayer(layer) default: @@ -65780,47 +65757,31 @@ func (m *Storage_FileType) EncodeToLayer(layer int) []byte { } } -func (m *Storage_FileType) Decode(dbuf *DecodeBuf) error { +func (m *UserStatus) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_storage_fileUnknown: - m2 := &TLStorageFileUnknown{Data2: &Storage_FileType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_storage_filePartial: - m2 := &TLStorageFilePartial{Data2: &Storage_FileType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_storage_fileJpeg: - m2 := &TLStorageFileJpeg{Data2: &Storage_FileType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_storage_fileGif: - m2 := &TLStorageFileGif{Data2: &Storage_FileType_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_storage_filePng: - m2 := &TLStorageFilePng{Data2: &Storage_FileType_Data{}} + case TLConstructor_CRC32_userStatusEmpty: + m2 := &TLUserStatusEmpty{Data2: &UserStatus_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_storage_filePdf: - m2 := &TLStorageFilePdf{Data2: &Storage_FileType_Data{}} + case TLConstructor_CRC32_userStatusOnline: + m2 := &TLUserStatusOnline{Data2: &UserStatus_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_storage_fileMp3: - m2 := &TLStorageFileMp3{Data2: &Storage_FileType_Data{}} + case TLConstructor_CRC32_userStatusOffline: + m2 := &TLUserStatusOffline{Data2: &UserStatus_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_storage_fileMov: - m2 := &TLStorageFileMov{Data2: &Storage_FileType_Data{}} + case TLConstructor_CRC32_userStatusRecently: + m2 := &TLUserStatusRecently{Data2: &UserStatus_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_storage_fileMp4: - m2 := &TLStorageFileMp4{Data2: &Storage_FileType_Data{}} + case TLConstructor_CRC32_userStatusLastWeek: + m2 := &TLUserStatusLastWeek{Data2: &UserStatus_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_storage_fileWebp: - m2 := &TLStorageFileWebp{Data2: &Storage_FileType_Data{}} + case TLConstructor_CRC32_userStatusLastMonth: + m2 := &TLUserStatusLastMonth{Data2: &UserStatus_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -65830,415 +65791,263 @@ func (m *Storage_FileType) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// storage.fileUnknown#aa963b05 = storage.FileType; -func (m *Storage_FileType) To_StorageFileUnknown() *TLStorageFileUnknown { - return &TLStorageFileUnknown{ - Data2: m.Data2, - } -} - -// storage.filePartial#40bc6f52 = storage.FileType; -func (m *Storage_FileType) To_StorageFilePartial() *TLStorageFilePartial { - return &TLStorageFilePartial{ - Data2: m.Data2, - } -} - -// storage.fileJpeg#7efe0e = storage.FileType; -func (m *Storage_FileType) To_StorageFileJpeg() *TLStorageFileJpeg { - return &TLStorageFileJpeg{ - Data2: m.Data2, - } -} - -// storage.fileGif#cae1aadf = storage.FileType; -func (m *Storage_FileType) To_StorageFileGif() *TLStorageFileGif { - return &TLStorageFileGif{ - Data2: m.Data2, - } -} - -// storage.filePng#a4f63c0 = storage.FileType; -func (m *Storage_FileType) To_StorageFilePng() *TLStorageFilePng { - return &TLStorageFilePng{ +// userStatusEmpty#9d05049 = UserStatus; +func (m *UserStatus) To_UserStatusEmpty() *TLUserStatusEmpty { + return &TLUserStatusEmpty{ Data2: m.Data2, } } -// storage.filePdf#ae1e508d = storage.FileType; -func (m *Storage_FileType) To_StorageFilePdf() *TLStorageFilePdf { - return &TLStorageFilePdf{ +// userStatusOnline#edb93949 expires:int = UserStatus; +func (m *UserStatus) To_UserStatusOnline() *TLUserStatusOnline { + return &TLUserStatusOnline{ Data2: m.Data2, } } -// storage.fileMp3#528a0677 = storage.FileType; -func (m *Storage_FileType) To_StorageFileMp3() *TLStorageFileMp3 { - return &TLStorageFileMp3{ +// userStatusOffline#8c703f was_online:int = UserStatus; +func (m *UserStatus) To_UserStatusOffline() *TLUserStatusOffline { + return &TLUserStatusOffline{ Data2: m.Data2, } } -// storage.fileMov#4b09ebbc = storage.FileType; -func (m *Storage_FileType) To_StorageFileMov() *TLStorageFileMov { - return &TLStorageFileMov{ +// userStatusRecently#e26f42f1 = UserStatus; +func (m *UserStatus) To_UserStatusRecently() *TLUserStatusRecently { + return &TLUserStatusRecently{ Data2: m.Data2, } } -// storage.fileMp4#b3cea0e4 = storage.FileType; -func (m *Storage_FileType) To_StorageFileMp4() *TLStorageFileMp4 { - return &TLStorageFileMp4{ +// userStatusLastWeek#7bf09fc = UserStatus; +func (m *UserStatus) To_UserStatusLastWeek() *TLUserStatusLastWeek { + return &TLUserStatusLastWeek{ Data2: m.Data2, } } -// storage.fileWebp#1081464c = storage.FileType; -func (m *Storage_FileType) To_StorageFileWebp() *TLStorageFileWebp { - return &TLStorageFileWebp{ +// userStatusLastMonth#77ebc742 = UserStatus; +func (m *UserStatus) To_UserStatusLastMonth() *TLUserStatusLastMonth { + return &TLUserStatusLastMonth{ Data2: m.Data2, } } -// storage.fileUnknown#aa963b05 = storage.FileType; -func (m *TLStorageFileUnknown) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_fileUnknown, +// userStatusEmpty#9d05049 = UserStatus; +func (m *TLUserStatusEmpty) To_UserStatus() *UserStatus { + return &UserStatus{ + Constructor: TLConstructor_CRC32_userStatusEmpty, Data2: m.Data2, } } -func NewTLStorageFileUnknown() *TLStorageFileUnknown { - return &TLStorageFileUnknown{Data2: &Storage_FileType_Data{}} +func NewTLUserStatusEmpty() *TLUserStatusEmpty { + return &TLUserStatusEmpty{Data2: &UserStatus_Data{}} } -func (m *TLStorageFileUnknown) Encode() []byte { +func (m *TLUserStatusEmpty) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileUnknown)) + x.Int(int32(TLConstructor_CRC32_userStatusEmpty)) return x.buf } -func (m *TLStorageFileUnknown) EncodeToLayer(layer int) []byte { +func (m *TLUserStatusEmpty) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileUnknown)) + x.Int(int32(TLConstructor_CRC32_userStatusEmpty)) return x.buf } -func (m *TLStorageFileUnknown) Decode(dbuf *DecodeBuf) error { +func (m *TLUserStatusEmpty) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// storage.filePartial#40bc6f52 = storage.FileType; -func (m *TLStorageFilePartial) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_filePartial, +// userStatusOnline#edb93949 expires:int = UserStatus; +func (m *TLUserStatusOnline) To_UserStatus() *UserStatus { + return &UserStatus{ + Constructor: TLConstructor_CRC32_userStatusOnline, Data2: m.Data2, } } -func NewTLStorageFilePartial() *TLStorageFilePartial { - return &TLStorageFilePartial{Data2: &Storage_FileType_Data{}} -} - -func (m *TLStorageFilePartial) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_filePartial)) - - return x.buf -} - -func (m *TLStorageFilePartial) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_filePartial)) - - return x.buf -} - -func (m *TLStorageFilePartial) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// storage.fileJpeg#7efe0e = storage.FileType; -func (m *TLStorageFileJpeg) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_fileJpeg, - Data2: m.Data2, - } -} +func (m *TLUserStatusOnline) SetExpires(v int32) { m.Data2.Expires = v } +func (m *TLUserStatusOnline) GetExpires() int32 { return m.Data2.Expires } -func NewTLStorageFileJpeg() *TLStorageFileJpeg { - return &TLStorageFileJpeg{Data2: &Storage_FileType_Data{}} +func NewTLUserStatusOnline() *TLUserStatusOnline { + return &TLUserStatusOnline{Data2: &UserStatus_Data{}} } -func (m *TLStorageFileJpeg) Encode() []byte { +func (m *TLUserStatusOnline) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileJpeg)) - - return x.buf -} + x.Int(int32(TLConstructor_CRC32_userStatusOnline)) -func (m *TLStorageFileJpeg) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileJpeg)) + x.Int(m.GetExpires()) return x.buf } -func (m *TLStorageFileJpeg) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// storage.fileGif#cae1aadf = storage.FileType; -func (m *TLStorageFileGif) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_fileGif, - Data2: m.Data2, - } -} - -func NewTLStorageFileGif() *TLStorageFileGif { - return &TLStorageFileGif{Data2: &Storage_FileType_Data{}} -} - -func (m *TLStorageFileGif) Encode() []byte { +func (m *TLUserStatusOnline) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileGif)) - - return x.buf -} + x.Int(int32(TLConstructor_CRC32_userStatusOnline)) -func (m *TLStorageFileGif) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileGif)) + x.Int(m.GetExpires()) return x.buf } -func (m *TLStorageFileGif) Decode(dbuf *DecodeBuf) error { +func (m *TLUserStatusOnline) Decode(dbuf *DecodeBuf) error { + m.SetExpires(dbuf.Int()) return dbuf.err } -// storage.filePng#a4f63c0 = storage.FileType; -func (m *TLStorageFilePng) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_filePng, +// userStatusOffline#8c703f was_online:int = UserStatus; +func (m *TLUserStatusOffline) To_UserStatus() *UserStatus { + return &UserStatus{ + Constructor: TLConstructor_CRC32_userStatusOffline, Data2: m.Data2, } } -func NewTLStorageFilePng() *TLStorageFilePng { - return &TLStorageFilePng{Data2: &Storage_FileType_Data{}} -} - -func (m *TLStorageFilePng) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_filePng)) - - return x.buf -} - -func (m *TLStorageFilePng) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_filePng)) - - return x.buf -} - -func (m *TLStorageFilePng) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// storage.filePdf#ae1e508d = storage.FileType; -func (m *TLStorageFilePdf) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_filePdf, - Data2: m.Data2, - } -} +func (m *TLUserStatusOffline) SetWasOnline(v int32) { m.Data2.WasOnline = v } +func (m *TLUserStatusOffline) GetWasOnline() int32 { return m.Data2.WasOnline } -func NewTLStorageFilePdf() *TLStorageFilePdf { - return &TLStorageFilePdf{Data2: &Storage_FileType_Data{}} +func NewTLUserStatusOffline() *TLUserStatusOffline { + return &TLUserStatusOffline{Data2: &UserStatus_Data{}} } -func (m *TLStorageFilePdf) Encode() []byte { +func (m *TLUserStatusOffline) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_filePdf)) - - return x.buf -} + x.Int(int32(TLConstructor_CRC32_userStatusOffline)) -func (m *TLStorageFilePdf) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_filePdf)) + x.Int(m.GetWasOnline()) return x.buf } -func (m *TLStorageFilePdf) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} - -// storage.fileMp3#528a0677 = storage.FileType; -func (m *TLStorageFileMp3) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_fileMp3, - Data2: m.Data2, - } -} - -func NewTLStorageFileMp3() *TLStorageFileMp3 { - return &TLStorageFileMp3{Data2: &Storage_FileType_Data{}} -} - -func (m *TLStorageFileMp3) Encode() []byte { +func (m *TLUserStatusOffline) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileMp3)) - - return x.buf -} + x.Int(int32(TLConstructor_CRC32_userStatusOffline)) -func (m *TLStorageFileMp3) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileMp3)) + x.Int(m.GetWasOnline()) return x.buf } -func (m *TLStorageFileMp3) Decode(dbuf *DecodeBuf) error { +func (m *TLUserStatusOffline) Decode(dbuf *DecodeBuf) error { + m.SetWasOnline(dbuf.Int()) return dbuf.err } -// storage.fileMov#4b09ebbc = storage.FileType; -func (m *TLStorageFileMov) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_fileMov, +// userStatusRecently#e26f42f1 = UserStatus; +func (m *TLUserStatusRecently) To_UserStatus() *UserStatus { + return &UserStatus{ + Constructor: TLConstructor_CRC32_userStatusRecently, Data2: m.Data2, } } -func NewTLStorageFileMov() *TLStorageFileMov { - return &TLStorageFileMov{Data2: &Storage_FileType_Data{}} +func NewTLUserStatusRecently() *TLUserStatusRecently { + return &TLUserStatusRecently{Data2: &UserStatus_Data{}} } -func (m *TLStorageFileMov) Encode() []byte { +func (m *TLUserStatusRecently) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileMov)) + x.Int(int32(TLConstructor_CRC32_userStatusRecently)) return x.buf } -func (m *TLStorageFileMov) EncodeToLayer(layer int) []byte { +func (m *TLUserStatusRecently) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileMov)) + x.Int(int32(TLConstructor_CRC32_userStatusRecently)) return x.buf } -func (m *TLStorageFileMov) Decode(dbuf *DecodeBuf) error { +func (m *TLUserStatusRecently) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// storage.fileMp4#b3cea0e4 = storage.FileType; -func (m *TLStorageFileMp4) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_fileMp4, +// userStatusLastWeek#7bf09fc = UserStatus; +func (m *TLUserStatusLastWeek) To_UserStatus() *UserStatus { + return &UserStatus{ + Constructor: TLConstructor_CRC32_userStatusLastWeek, Data2: m.Data2, } } -func NewTLStorageFileMp4() *TLStorageFileMp4 { - return &TLStorageFileMp4{Data2: &Storage_FileType_Data{}} +func NewTLUserStatusLastWeek() *TLUserStatusLastWeek { + return &TLUserStatusLastWeek{Data2: &UserStatus_Data{}} } -func (m *TLStorageFileMp4) Encode() []byte { +func (m *TLUserStatusLastWeek) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileMp4)) + x.Int(int32(TLConstructor_CRC32_userStatusLastWeek)) return x.buf } -func (m *TLStorageFileMp4) EncodeToLayer(layer int) []byte { +func (m *TLUserStatusLastWeek) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileMp4)) + x.Int(int32(TLConstructor_CRC32_userStatusLastWeek)) return x.buf } -func (m *TLStorageFileMp4) Decode(dbuf *DecodeBuf) error { +func (m *TLUserStatusLastWeek) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// storage.fileWebp#1081464c = storage.FileType; -func (m *TLStorageFileWebp) To_Storage_FileType() *Storage_FileType { - return &Storage_FileType{ - Constructor: TLConstructor_CRC32_storage_fileWebp, +// userStatusLastMonth#77ebc742 = UserStatus; +func (m *TLUserStatusLastMonth) To_UserStatus() *UserStatus { + return &UserStatus{ + Constructor: TLConstructor_CRC32_userStatusLastMonth, Data2: m.Data2, } } -func NewTLStorageFileWebp() *TLStorageFileWebp { - return &TLStorageFileWebp{Data2: &Storage_FileType_Data{}} +func NewTLUserStatusLastMonth() *TLUserStatusLastMonth { + return &TLUserStatusLastMonth{Data2: &UserStatus_Data{}} } -func (m *TLStorageFileWebp) Encode() []byte { +func (m *TLUserStatusLastMonth) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileWebp)) + x.Int(int32(TLConstructor_CRC32_userStatusLastMonth)) return x.buf } -func (m *TLStorageFileWebp) EncodeToLayer(layer int) []byte { +func (m *TLUserStatusLastMonth) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_storage_fileWebp)) + x.Int(int32(TLConstructor_CRC32_userStatusLastMonth)) return x.buf } -func (m *TLStorageFileWebp) Decode(dbuf *DecodeBuf) error { +func (m *TLUserStatusLastMonth) Decode(dbuf *DecodeBuf) error { return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// TopPeerCategory <-- -// + TL_TopPeerCategoryBotsPM -// + TL_TopPeerCategoryBotsInline -// + TL_TopPeerCategoryCorrespondents -// + TL_TopPeerCategoryGroups -// + TL_TopPeerCategoryChannels -// + TL_TopPeerCategoryPhoneCalls +// Photos_Photos <-- +// + TL_PhotosPhotos +// + TL_PhotosPhotosSlice // -func (m *TopPeerCategory) Encode() []byte { +func (m *Photos_Photos) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_topPeerCategoryBotsPM: - t := m.To_TopPeerCategoryBotsPM() - return t.Encode() - case TLConstructor_CRC32_topPeerCategoryBotsInline: - t := m.To_TopPeerCategoryBotsInline() - return t.Encode() - case TLConstructor_CRC32_topPeerCategoryCorrespondents: - t := m.To_TopPeerCategoryCorrespondents() - return t.Encode() - case TLConstructor_CRC32_topPeerCategoryGroups: - t := m.To_TopPeerCategoryGroups() - return t.Encode() - case TLConstructor_CRC32_topPeerCategoryChannels: - t := m.To_TopPeerCategoryChannels() + case TLConstructor_CRC32_photos_photos: + t := m.To_PhotosPhotos() return t.Encode() - case TLConstructor_CRC32_topPeerCategoryPhoneCalls: - t := m.To_TopPeerCategoryPhoneCalls() + case TLConstructor_CRC32_photos_photosSlice: + t := m.To_PhotosPhotosSlice() return t.Encode() default: @@ -66247,26 +66056,14 @@ func (m *TopPeerCategory) Encode() []byte { } } -func (m *TopPeerCategory) EncodeToLayer(layer int) []byte { +func (m *Photos_Photos) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_topPeerCategoryBotsPM: - t := m.To_TopPeerCategoryBotsPM() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_topPeerCategoryBotsInline: - t := m.To_TopPeerCategoryBotsInline() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_topPeerCategoryCorrespondents: - t := m.To_TopPeerCategoryCorrespondents() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_topPeerCategoryGroups: - t := m.To_TopPeerCategoryGroups() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_topPeerCategoryChannels: - t := m.To_TopPeerCategoryChannels() + case TLConstructor_CRC32_photos_photos: + t := m.To_PhotosPhotos() return t.EncodeToLayer(layer) - case TLConstructor_CRC32_topPeerCategoryPhoneCalls: - t := m.To_TopPeerCategoryPhoneCalls() + case TLConstructor_CRC32_photos_photosSlice: + t := m.To_PhotosPhotosSlice() return t.EncodeToLayer(layer) default: @@ -66275,289 +66072,329 @@ func (m *TopPeerCategory) EncodeToLayer(layer int) []byte { } } -func (m *TopPeerCategory) Decode(dbuf *DecodeBuf) error { +func (m *Photos_Photos) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_topPeerCategoryBotsPM: - m2 := &TLTopPeerCategoryBotsPM{Data2: &TopPeerCategory_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_topPeerCategoryBotsInline: - m2 := &TLTopPeerCategoryBotsInline{Data2: &TopPeerCategory_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_topPeerCategoryCorrespondents: - m2 := &TLTopPeerCategoryCorrespondents{Data2: &TopPeerCategory_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_topPeerCategoryGroups: - m2 := &TLTopPeerCategoryGroups{Data2: &TopPeerCategory_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_topPeerCategoryChannels: - m2 := &TLTopPeerCategoryChannels{Data2: &TopPeerCategory_Data{}} + case TLConstructor_CRC32_photos_photos: + m2 := &TLPhotosPhotos{Data2: &Photos_Photos_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - case TLConstructor_CRC32_topPeerCategoryPhoneCalls: - m2 := &TLTopPeerCategoryPhoneCalls{Data2: &TopPeerCategory_Data{}} + case TLConstructor_CRC32_photos_photosSlice: + m2 := &TLPhotosPhotosSlice{Data2: &Photos_Photos_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// topPeerCategoryBotsPM#ab661b5b = TopPeerCategory; -func (m *TopPeerCategory) To_TopPeerCategoryBotsPM() *TLTopPeerCategoryBotsPM { - return &TLTopPeerCategoryBotsPM{ - Data2: m.Data2, - } -} - -// topPeerCategoryBotsInline#148677e2 = TopPeerCategory; -func (m *TopPeerCategory) To_TopPeerCategoryBotsInline() *TLTopPeerCategoryBotsInline { - return &TLTopPeerCategoryBotsInline{ - Data2: m.Data2, - } -} - -// topPeerCategoryCorrespondents#637b7ed = TopPeerCategory; -func (m *TopPeerCategory) To_TopPeerCategoryCorrespondents() *TLTopPeerCategoryCorrespondents { - return &TLTopPeerCategoryCorrespondents{ - Data2: m.Data2, - } -} - -// topPeerCategoryGroups#bd17a14a = TopPeerCategory; -func (m *TopPeerCategory) To_TopPeerCategoryGroups() *TLTopPeerCategoryGroups { - return &TLTopPeerCategoryGroups{ - Data2: m.Data2, + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) } + return dbuf.err } -// topPeerCategoryChannels#161d9628 = TopPeerCategory; -func (m *TopPeerCategory) To_TopPeerCategoryChannels() *TLTopPeerCategoryChannels { - return &TLTopPeerCategoryChannels{ +// photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos; +func (m *Photos_Photos) To_PhotosPhotos() *TLPhotosPhotos { + return &TLPhotosPhotos{ Data2: m.Data2, } } -// topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory; -func (m *TopPeerCategory) To_TopPeerCategoryPhoneCalls() *TLTopPeerCategoryPhoneCalls { - return &TLTopPeerCategoryPhoneCalls{ +// photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos; +func (m *Photos_Photos) To_PhotosPhotosSlice() *TLPhotosPhotosSlice { + return &TLPhotosPhotosSlice{ Data2: m.Data2, } } -// topPeerCategoryBotsPM#ab661b5b = TopPeerCategory; -func (m *TLTopPeerCategoryBotsPM) To_TopPeerCategory() *TopPeerCategory { - return &TopPeerCategory{ - Constructor: TLConstructor_CRC32_topPeerCategoryBotsPM, +// photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos; +func (m *TLPhotosPhotos) To_Photos_Photos() *Photos_Photos { + return &Photos_Photos{ + Constructor: TLConstructor_CRC32_photos_photos, Data2: m.Data2, } } -func NewTLTopPeerCategoryBotsPM() *TLTopPeerCategoryBotsPM { - return &TLTopPeerCategoryBotsPM{Data2: &TopPeerCategory_Data{}} -} +func (m *TLPhotosPhotos) SetPhotos(v []*Photo) { m.Data2.Photos = v } +func (m *TLPhotosPhotos) GetPhotos() []*Photo { return m.Data2.Photos } -func (m *TLTopPeerCategoryBotsPM) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryBotsPM)) +func (m *TLPhotosPhotos) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLPhotosPhotos) GetUsers() []*User { return m.Data2.Users } - return x.buf +func NewTLPhotosPhotos() *TLPhotosPhotos { + return &TLPhotosPhotos{Data2: &Photos_Photos_Data{}} } -func (m *TLTopPeerCategoryBotsPM) EncodeToLayer(layer int) []byte { +func (m *TLPhotosPhotos) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryBotsPM)) - - return x.buf -} - -func (m *TLTopPeerCategoryBotsPM) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} + x.Int(int32(TLConstructor_CRC32_photos_photos)) -// topPeerCategoryBotsInline#148677e2 = TopPeerCategory; -func (m *TLTopPeerCategoryBotsInline) To_TopPeerCategory() *TopPeerCategory { - return &TopPeerCategory{ - Constructor: TLConstructor_CRC32_topPeerCategoryBotsInline, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPhotos()))) + for _, v := range m.GetPhotos() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } -} - -func NewTLTopPeerCategoryBotsInline() *TLTopPeerCategoryBotsInline { - return &TLTopPeerCategoryBotsInline{Data2: &TopPeerCategory_Data{}} -} - -func (m *TLTopPeerCategoryBotsInline) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryBotsInline)) return x.buf } -func (m *TLTopPeerCategoryBotsInline) EncodeToLayer(layer int) []byte { +func (m *TLPhotosPhotos) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryBotsInline)) + x.Int(int32(TLConstructor_CRC32_photos_photos)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPhotos()))) + for _, v := range m.GetPhotos() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLTopPeerCategoryBotsInline) Decode(dbuf *DecodeBuf) error { +func (m *TLPhotosPhotos) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*Photo, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &Photo{} + v1[i].Decode(dbuf) + } + m.SetPhotos(v1) + + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*User, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &User{} + v2[i].Decode(dbuf) + } + m.SetUsers(v2) return dbuf.err } -// topPeerCategoryCorrespondents#637b7ed = TopPeerCategory; -func (m *TLTopPeerCategoryCorrespondents) To_TopPeerCategory() *TopPeerCategory { - return &TopPeerCategory{ - Constructor: TLConstructor_CRC32_topPeerCategoryCorrespondents, +// photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos; +func (m *TLPhotosPhotosSlice) To_Photos_Photos() *Photos_Photos { + return &Photos_Photos{ + Constructor: TLConstructor_CRC32_photos_photosSlice, Data2: m.Data2, } } -func NewTLTopPeerCategoryCorrespondents() *TLTopPeerCategoryCorrespondents { - return &TLTopPeerCategoryCorrespondents{Data2: &TopPeerCategory_Data{}} +func (m *TLPhotosPhotosSlice) SetCount(v int32) { m.Data2.Count = v } +func (m *TLPhotosPhotosSlice) GetCount() int32 { return m.Data2.Count } + +func (m *TLPhotosPhotosSlice) SetPhotos(v []*Photo) { m.Data2.Photos = v } +func (m *TLPhotosPhotosSlice) GetPhotos() []*Photo { return m.Data2.Photos } + +func (m *TLPhotosPhotosSlice) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLPhotosPhotosSlice) GetUsers() []*User { return m.Data2.Users } + +func NewTLPhotosPhotosSlice() *TLPhotosPhotosSlice { + return &TLPhotosPhotosSlice{Data2: &Photos_Photos_Data{}} } -func (m *TLTopPeerCategoryCorrespondents) Encode() []byte { +func (m *TLPhotosPhotosSlice) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryCorrespondents)) + x.Int(int32(TLConstructor_CRC32_photos_photosSlice)) + + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPhotos()))) + for _, v := range m.GetPhotos() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } return x.buf } -func (m *TLTopPeerCategoryCorrespondents) EncodeToLayer(layer int) []byte { +func (m *TLPhotosPhotosSlice) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryCorrespondents)) + x.Int(int32(TLConstructor_CRC32_photos_photosSlice)) + + x.Int(m.GetCount()) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetPhotos()))) + for _, v := range m.GetPhotos() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } return x.buf } -func (m *TLTopPeerCategoryCorrespondents) Decode(dbuf *DecodeBuf) error { - - return dbuf.err -} +func (m *TLPhotosPhotosSlice) Decode(dbuf *DecodeBuf) error { + m.SetCount(dbuf.Int()) + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Photo, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Photo{} + v2[i].Decode(dbuf) + } + m.SetPhotos(v2) -// topPeerCategoryGroups#bd17a14a = TopPeerCategory; -func (m *TLTopPeerCategoryGroups) To_TopPeerCategory() *TopPeerCategory { - return &TopPeerCategory{ - Constructor: TLConstructor_CRC32_topPeerCategoryGroups, - Data2: m.Data2, + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err } -} + l3 := dbuf.Int() + v3 := make([]*User, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &User{} + v3[i].Decode(dbuf) + } + m.SetUsers(v3) -func NewTLTopPeerCategoryGroups() *TLTopPeerCategoryGroups { - return &TLTopPeerCategoryGroups{Data2: &TopPeerCategory_Data{}} + return dbuf.err } -func (m *TLTopPeerCategoryGroups) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryGroups)) +/////////////////////////////////////////////////////////////////////////////// +// SavedContact <-- +// + TL_SavedPhoneContact +// - return x.buf +func (m *SavedContact) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_savedPhoneContact: + t := m.To_SavedPhoneContact() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLTopPeerCategoryGroups) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryGroups)) +func (m *SavedContact) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_savedPhoneContact: + t := m.To_SavedPhoneContact() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLTopPeerCategoryGroups) Decode(dbuf *DecodeBuf) error { +func (m *SavedContact) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_savedPhoneContact: + m2 := &TLSavedPhoneContact{Data2: &SavedContact_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } return dbuf.err } -// topPeerCategoryChannels#161d9628 = TopPeerCategory; -func (m *TLTopPeerCategoryChannels) To_TopPeerCategory() *TopPeerCategory { - return &TopPeerCategory{ - Constructor: TLConstructor_CRC32_topPeerCategoryChannels, - Data2: m.Data2, +// savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact; +func (m *SavedContact) To_SavedPhoneContact() *TLSavedPhoneContact { + return &TLSavedPhoneContact{ + Data2: m.Data2, } } -func NewTLTopPeerCategoryChannels() *TLTopPeerCategoryChannels { - return &TLTopPeerCategoryChannels{Data2: &TopPeerCategory_Data{}} -} - -func (m *TLTopPeerCategoryChannels) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryChannels)) - - return x.buf +// savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact; +func (m *TLSavedPhoneContact) To_SavedContact() *SavedContact { + return &SavedContact{ + Constructor: TLConstructor_CRC32_savedPhoneContact, + Data2: m.Data2, + } } -func (m *TLTopPeerCategoryChannels) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryChannels)) - - return x.buf -} +func (m *TLSavedPhoneContact) SetPhone(v string) { m.Data2.Phone = v } +func (m *TLSavedPhoneContact) GetPhone() string { return m.Data2.Phone } -func (m *TLTopPeerCategoryChannels) Decode(dbuf *DecodeBuf) error { +func (m *TLSavedPhoneContact) SetFirstName(v string) { m.Data2.FirstName = v } +func (m *TLSavedPhoneContact) GetFirstName() string { return m.Data2.FirstName } - return dbuf.err -} +func (m *TLSavedPhoneContact) SetLastName(v string) { m.Data2.LastName = v } +func (m *TLSavedPhoneContact) GetLastName() string { return m.Data2.LastName } -// topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory; -func (m *TLTopPeerCategoryPhoneCalls) To_TopPeerCategory() *TopPeerCategory { - return &TopPeerCategory{ - Constructor: TLConstructor_CRC32_topPeerCategoryPhoneCalls, - Data2: m.Data2, - } -} +func (m *TLSavedPhoneContact) SetDate(v int32) { m.Data2.Date = v } +func (m *TLSavedPhoneContact) GetDate() int32 { return m.Data2.Date } -func NewTLTopPeerCategoryPhoneCalls() *TLTopPeerCategoryPhoneCalls { - return &TLTopPeerCategoryPhoneCalls{Data2: &TopPeerCategory_Data{}} +func NewTLSavedPhoneContact() *TLSavedPhoneContact { + return &TLSavedPhoneContact{Data2: &SavedContact_Data{}} } -func (m *TLTopPeerCategoryPhoneCalls) Encode() []byte { +func (m *TLSavedPhoneContact) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryPhoneCalls)) + x.Int(int32(TLConstructor_CRC32_savedPhoneContact)) + + x.String(m.GetPhone()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.Int(m.GetDate()) return x.buf } -func (m *TLTopPeerCategoryPhoneCalls) EncodeToLayer(layer int) []byte { +func (m *TLSavedPhoneContact) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_topPeerCategoryPhoneCalls)) + x.Int(int32(TLConstructor_CRC32_savedPhoneContact)) + + x.String(m.GetPhone()) + x.String(m.GetFirstName()) + x.String(m.GetLastName()) + x.Int(m.GetDate()) return x.buf } -func (m *TLTopPeerCategoryPhoneCalls) Decode(dbuf *DecodeBuf) error { +func (m *TLSavedPhoneContact) Decode(dbuf *DecodeBuf) error { + m.SetPhone(dbuf.String()) + m.SetFirstName(dbuf.String()) + m.SetLastName(dbuf.String()) + m.SetDate(dbuf.Int()) return dbuf.err } /////////////////////////////////////////////////////////////////////////////// -// PhoneCallDiscardReason <-- -// + TL_PhoneCallDiscardReasonMissed -// + TL_PhoneCallDiscardReasonDisconnect -// + TL_PhoneCallDiscardReasonHangup -// + TL_PhoneCallDiscardReasonBusy +// Help_RecentMeUrls <-- +// + TL_HelpRecentMeUrls // -func (m *PhoneCallDiscardReason) Encode() []byte { +func (m *Help_RecentMeUrls) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_phoneCallDiscardReasonMissed: - t := m.To_PhoneCallDiscardReasonMissed() - return t.Encode() - case TLConstructor_CRC32_phoneCallDiscardReasonDisconnect: - t := m.To_PhoneCallDiscardReasonDisconnect() - return t.Encode() - case TLConstructor_CRC32_phoneCallDiscardReasonHangup: - t := m.To_PhoneCallDiscardReasonHangup() - return t.Encode() - case TLConstructor_CRC32_phoneCallDiscardReasonBusy: - t := m.To_PhoneCallDiscardReasonBusy() + case TLConstructor_CRC32_help_recentMeUrls: + t := m.To_HelpRecentMeUrls() return t.Encode() default: @@ -66566,20 +66403,11 @@ func (m *PhoneCallDiscardReason) Encode() []byte { } } -func (m *PhoneCallDiscardReason) EncodeToLayer(layer int) []byte { +func (m *Help_RecentMeUrls) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_phoneCallDiscardReasonMissed: - t := m.To_PhoneCallDiscardReasonMissed() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_phoneCallDiscardReasonDisconnect: - t := m.To_PhoneCallDiscardReasonDisconnect() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_phoneCallDiscardReasonHangup: - t := m.To_PhoneCallDiscardReasonHangup() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_phoneCallDiscardReasonBusy: - t := m.To_PhoneCallDiscardReasonBusy() + case TLConstructor_CRC32_help_recentMeUrls: + t := m.To_HelpRecentMeUrls() return t.EncodeToLayer(layer) default: @@ -66588,23 +66416,11 @@ func (m *PhoneCallDiscardReason) EncodeToLayer(layer int) []byte { } } -func (m *PhoneCallDiscardReason) Decode(dbuf *DecodeBuf) error { +func (m *Help_RecentMeUrls) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_phoneCallDiscardReasonMissed: - m2 := &TLPhoneCallDiscardReasonMissed{Data2: &PhoneCallDiscardReason_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_phoneCallDiscardReasonDisconnect: - m2 := &TLPhoneCallDiscardReasonDisconnect{Data2: &PhoneCallDiscardReason_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_phoneCallDiscardReasonHangup: - m2 := &TLPhoneCallDiscardReasonHangup{Data2: &PhoneCallDiscardReason_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_phoneCallDiscardReasonBusy: - m2 := &TLPhoneCallDiscardReasonBusy{Data2: &PhoneCallDiscardReason_Data{}} + case TLConstructor_CRC32_help_recentMeUrls: + m2 := &TLHelpRecentMeUrls{Data2: &Help_RecentMeUrls_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -66614,154 +66430,339 @@ func (m *PhoneCallDiscardReason) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason; -func (m *PhoneCallDiscardReason) To_PhoneCallDiscardReasonMissed() *TLPhoneCallDiscardReasonMissed { - return &TLPhoneCallDiscardReasonMissed{ +// help.recentMeUrls#e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls; +func (m *Help_RecentMeUrls) To_HelpRecentMeUrls() *TLHelpRecentMeUrls { + return &TLHelpRecentMeUrls{ Data2: m.Data2, } } -// phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason; -func (m *PhoneCallDiscardReason) To_PhoneCallDiscardReasonDisconnect() *TLPhoneCallDiscardReasonDisconnect { - return &TLPhoneCallDiscardReasonDisconnect{ - Data2: m.Data2, +// help.recentMeUrls#e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls; +func (m *TLHelpRecentMeUrls) To_Help_RecentMeUrls() *Help_RecentMeUrls { + return &Help_RecentMeUrls{ + Constructor: TLConstructor_CRC32_help_recentMeUrls, + Data2: m.Data2, } } -// phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason; -func (m *PhoneCallDiscardReason) To_PhoneCallDiscardReasonHangup() *TLPhoneCallDiscardReasonHangup { - return &TLPhoneCallDiscardReasonHangup{ - Data2: m.Data2, +func (m *TLHelpRecentMeUrls) SetUrls(v []*RecentMeUrl) { m.Data2.Urls = v } +func (m *TLHelpRecentMeUrls) GetUrls() []*RecentMeUrl { return m.Data2.Urls } + +func (m *TLHelpRecentMeUrls) SetChats(v []*Chat) { m.Data2.Chats = v } +func (m *TLHelpRecentMeUrls) GetChats() []*Chat { return m.Data2.Chats } + +func (m *TLHelpRecentMeUrls) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLHelpRecentMeUrls) GetUsers() []*User { return m.Data2.Users } + +func NewTLHelpRecentMeUrls() *TLHelpRecentMeUrls { + return &TLHelpRecentMeUrls{Data2: &Help_RecentMeUrls_Data{}} +} + +func (m *TLHelpRecentMeUrls) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_help_recentMeUrls)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUrls()))) + for _, v := range m.GetUrls() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) } + + return x.buf } -// phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason; -func (m *PhoneCallDiscardReason) To_PhoneCallDiscardReasonBusy() *TLPhoneCallDiscardReasonBusy { - return &TLPhoneCallDiscardReasonBusy{ - Data2: m.Data2, +func (m *TLHelpRecentMeUrls) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_help_recentMeUrls)) + + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUrls()))) + for _, v := range m.GetUrls() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetChats()))) + for _, v := range m.GetChats() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + + return x.buf +} + +func (m *TLHelpRecentMeUrls) Decode(dbuf *DecodeBuf) error { + c1 := dbuf.Int() + if c1 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 1, c1) + return dbuf.err + } + l1 := dbuf.Int() + v1 := make([]*RecentMeUrl, l1) + for i := int32(0); i < l1; i++ { + v1[i] = &RecentMeUrl{} + v1[i].Decode(dbuf) + } + m.SetUrls(v1) + + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*Chat, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &Chat{} + v2[i].Decode(dbuf) + } + m.SetChats(v2) + + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*User, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &User{} + v3[i].Decode(dbuf) } + m.SetUsers(v3) + + return dbuf.err } -// phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason; -func (m *TLPhoneCallDiscardReasonMissed) To_PhoneCallDiscardReason() *PhoneCallDiscardReason { - return &PhoneCallDiscardReason{ - Constructor: TLConstructor_CRC32_phoneCallDiscardReasonMissed, - Data2: m.Data2, +/////////////////////////////////////////////////////////////////////////////// +// Account_AuthorizationForm <-- +// + TL_AccountAuthorizationForm +// + +func (m *Account_AuthorizationForm) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_account_authorizationForm: + t := m.To_AccountAuthorizationForm() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil } } -func NewTLPhoneCallDiscardReasonMissed() *TLPhoneCallDiscardReasonMissed { - return &TLPhoneCallDiscardReasonMissed{Data2: &PhoneCallDiscardReason_Data{}} -} - -func (m *TLPhoneCallDiscardReasonMissed) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonMissed)) +func (m *Account_AuthorizationForm) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_account_authorizationForm: + t := m.To_AccountAuthorizationForm() + return t.EncodeToLayer(layer) - return x.buf + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } } -func (m *TLPhoneCallDiscardReasonMissed) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonMissed)) +func (m *Account_AuthorizationForm) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_account_authorizationForm: + m2 := &TLAccountAuthorizationForm{Data2: &Account_AuthorizationForm_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 - return x.buf + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err } -func (m *TLPhoneCallDiscardReasonMissed) Decode(dbuf *DecodeBuf) error { - - return dbuf.err +// account.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm; +func (m *Account_AuthorizationForm) To_AccountAuthorizationForm() *TLAccountAuthorizationForm { + return &TLAccountAuthorizationForm{ + Data2: m.Data2, + } } -// phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason; -func (m *TLPhoneCallDiscardReasonDisconnect) To_PhoneCallDiscardReason() *PhoneCallDiscardReason { - return &PhoneCallDiscardReason{ - Constructor: TLConstructor_CRC32_phoneCallDiscardReasonDisconnect, +// account.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm; +func (m *TLAccountAuthorizationForm) To_Account_AuthorizationForm() *Account_AuthorizationForm { + return &Account_AuthorizationForm{ + Constructor: TLConstructor_CRC32_account_authorizationForm, Data2: m.Data2, } } -func NewTLPhoneCallDiscardReasonDisconnect() *TLPhoneCallDiscardReasonDisconnect { - return &TLPhoneCallDiscardReasonDisconnect{Data2: &PhoneCallDiscardReason_Data{}} +func (m *TLAccountAuthorizationForm) SetRequiredTypes(v []*SecureRequiredType) { + m.Data2.RequiredTypes = v } - -func (m *TLPhoneCallDiscardReasonDisconnect) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonDisconnect)) - - return x.buf +func (m *TLAccountAuthorizationForm) GetRequiredTypes() []*SecureRequiredType { + return m.Data2.RequiredTypes } -func (m *TLPhoneCallDiscardReasonDisconnect) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonDisconnect)) - - return x.buf -} +func (m *TLAccountAuthorizationForm) SetValues(v []*SecureValue) { m.Data2.Values = v } +func (m *TLAccountAuthorizationForm) GetValues() []*SecureValue { return m.Data2.Values } -func (m *TLPhoneCallDiscardReasonDisconnect) Decode(dbuf *DecodeBuf) error { +func (m *TLAccountAuthorizationForm) SetErrors(v []*SecureValueError) { m.Data2.Errors = v } +func (m *TLAccountAuthorizationForm) GetErrors() []*SecureValueError { return m.Data2.Errors } - return dbuf.err -} +func (m *TLAccountAuthorizationForm) SetUsers(v []*User) { m.Data2.Users = v } +func (m *TLAccountAuthorizationForm) GetUsers() []*User { return m.Data2.Users } -// phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason; -func (m *TLPhoneCallDiscardReasonHangup) To_PhoneCallDiscardReason() *PhoneCallDiscardReason { - return &PhoneCallDiscardReason{ - Constructor: TLConstructor_CRC32_phoneCallDiscardReasonHangup, - Data2: m.Data2, - } -} +func (m *TLAccountAuthorizationForm) SetPrivacyPolicyUrl(v string) { m.Data2.PrivacyPolicyUrl = v } +func (m *TLAccountAuthorizationForm) GetPrivacyPolicyUrl() string { return m.Data2.PrivacyPolicyUrl } -func NewTLPhoneCallDiscardReasonHangup() *TLPhoneCallDiscardReasonHangup { - return &TLPhoneCallDiscardReasonHangup{Data2: &PhoneCallDiscardReason_Data{}} +func NewTLAccountAuthorizationForm() *TLAccountAuthorizationForm { + return &TLAccountAuthorizationForm{Data2: &Account_AuthorizationForm_Data{}} } -func (m *TLPhoneCallDiscardReasonHangup) Encode() []byte { +func (m *TLAccountAuthorizationForm) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonHangup)) + x.Int(int32(TLConstructor_CRC32_account_authorizationForm)) - return x.buf -} + // flags + var flags uint32 = 0 + if m.GetPrivacyPolicyUrl() != "" { + flags |= 1 << 0 + } + x.UInt(flags) -func (m *TLPhoneCallDiscardReasonHangup) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonHangup)) + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRequiredTypes()))) + for _, v := range m.GetRequiredTypes() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetValues()))) + for _, v := range m.GetValues() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetErrors()))) + for _, v := range m.GetErrors() { + x.buf = append(x.buf, (*v).Encode()...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).Encode()...) + } + if m.GetPrivacyPolicyUrl() != "" { + x.String(m.GetPrivacyPolicyUrl()) + } return x.buf } -func (m *TLPhoneCallDiscardReasonHangup) Decode(dbuf *DecodeBuf) error { +func (m *TLAccountAuthorizationForm) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_account_authorizationForm)) - return dbuf.err -} + // flags + var flags uint32 = 0 + if m.GetPrivacyPolicyUrl() != "" { + flags |= 1 << 0 + } + x.UInt(flags) -// phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason; -func (m *TLPhoneCallDiscardReasonBusy) To_PhoneCallDiscardReason() *PhoneCallDiscardReason { - return &PhoneCallDiscardReason{ - Constructor: TLConstructor_CRC32_phoneCallDiscardReasonBusy, - Data2: m.Data2, + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetRequiredTypes()))) + for _, v := range m.GetRequiredTypes() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetValues()))) + for _, v := range m.GetValues() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetErrors()))) + for _, v := range m.GetErrors() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + x.Int(int32(TLConstructor_CRC32_vector)) + x.Int(int32(len(m.GetUsers()))) + for _, v := range m.GetUsers() { + x.buf = append(x.buf, (*v).EncodeToLayer(layer)...) + } + if m.GetPrivacyPolicyUrl() != "" { + x.String(m.GetPrivacyPolicyUrl()) } -} -func NewTLPhoneCallDiscardReasonBusy() *TLPhoneCallDiscardReasonBusy { - return &TLPhoneCallDiscardReasonBusy{Data2: &PhoneCallDiscardReason_Data{}} + return x.buf } -func (m *TLPhoneCallDiscardReasonBusy) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonBusy)) +func (m *TLAccountAuthorizationForm) Decode(dbuf *DecodeBuf) error { + flags := dbuf.UInt() + _ = flags + c2 := dbuf.Int() + if c2 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 2, c2) + return dbuf.err + } + l2 := dbuf.Int() + v2 := make([]*SecureRequiredType, l2) + for i := int32(0); i < l2; i++ { + v2[i] = &SecureRequiredType{} + v2[i].Decode(dbuf) + } + m.SetRequiredTypes(v2) - return x.buf -} + c3 := dbuf.Int() + if c3 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 3, c3) + return dbuf.err + } + l3 := dbuf.Int() + v3 := make([]*SecureValue, l3) + for i := int32(0); i < l3; i++ { + v3[i] = &SecureValue{} + v3[i].Decode(dbuf) + } + m.SetValues(v3) -func (m *TLPhoneCallDiscardReasonBusy) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_phoneCallDiscardReasonBusy)) + c4 := dbuf.Int() + if c4 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 4, c4) + return dbuf.err + } + l4 := dbuf.Int() + v4 := make([]*SecureValueError, l4) + for i := int32(0); i < l4; i++ { + v4[i] = &SecureValueError{} + v4[i].Decode(dbuf) + } + m.SetErrors(v4) - return x.buf -} + c5 := dbuf.Int() + if c5 != int32(TLConstructor_CRC32_vector) { + dbuf.err = fmt.Errorf("Invalid CRC32_vector, c%d: %d", 5, c5) + return dbuf.err + } + l5 := dbuf.Int() + v5 := make([]*User, l5) + for i := int32(0); i < l5; i++ { + v5[i] = &User{} + v5[i].Decode(dbuf) + } + m.SetUsers(v5) -func (m *TLPhoneCallDiscardReasonBusy) Decode(dbuf *DecodeBuf) error { + if (flags & (1 << 0)) != 0 { + m.SetPrivacyPolicyUrl(dbuf.String()) + } return dbuf.err } @@ -66938,14 +66939,18 @@ func (m *TLSessionClientClosed) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// HandshakeContext <-- -// + TL_HandshakeContext +// RawMessageData <-- +// + TL_HandshakeData +// + TL_SessionMessageData // -func (m *HandshakeContext) Encode() []byte { +func (m *RawMessageData) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_handshakeContext: - t := m.To_HandshakeContext() + case TLConstructor_CRC32_handshakeData: + t := m.To_HandshakeData() + return t.Encode() + case TLConstructor_CRC32_sessionMessageData: + t := m.To_SessionMessageData() return t.Encode() default: @@ -66954,11 +66959,14 @@ func (m *HandshakeContext) Encode() []byte { } } -func (m *HandshakeContext) EncodeToLayer(layer int) []byte { +func (m *RawMessageData) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_handshakeContext: - t := m.To_HandshakeContext() + case TLConstructor_CRC32_handshakeData: + t := m.To_HandshakeData() + return t.EncodeToLayer(layer) + case TLConstructor_CRC32_sessionMessageData: + t := m.To_SessionMessageData() return t.EncodeToLayer(layer) default: @@ -66967,11 +66975,15 @@ func (m *HandshakeContext) EncodeToLayer(layer int) []byte { } } -func (m *HandshakeContext) Decode(dbuf *DecodeBuf) error { +func (m *RawMessageData) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_handshakeContext: - m2 := &TLHandshakeContext{Data2: &HandshakeContext_Data{}} + case TLConstructor_CRC32_handshakeData: + m2 := &TLHandshakeData{Data2: &RawMessageData_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + case TLConstructor_CRC32_sessionMessageData: + m2 := &TLSessionMessageData{Data2: &RawMessageData_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -66981,84 +66993,132 @@ func (m *HandshakeContext) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// handshakeContext nonce:int128 server_nonce:int128 new_nonce:int256 a:bytes p:bytes auth_key_id:long auth_key:bytes = HandshakeContext; -func (m *HandshakeContext) To_HandshakeContext() *TLHandshakeContext { - return &TLHandshakeContext{ +// handshakeData state:int res_state:int client_conn_id:long ctx:HandshakeContext = RawMessageData; +func (m *RawMessageData) To_HandshakeData() *TLHandshakeData { + return &TLHandshakeData{ Data2: m.Data2, } } -// handshakeContext nonce:int128 server_nonce:int128 new_nonce:int256 a:bytes p:bytes auth_key_id:long auth_key:bytes = HandshakeContext; -func (m *TLHandshakeContext) To_HandshakeContext() *HandshakeContext { - return &HandshakeContext{ - Constructor: TLConstructor_CRC32_handshakeContext, +// sessionMessageData auth_key_id:long quick_ack:int client_conn_id:long conn_type:int = RawMessageData; +func (m *RawMessageData) To_SessionMessageData() *TLSessionMessageData { + return &TLSessionMessageData{ + Data2: m.Data2, + } +} + +// handshakeData state:int res_state:int client_conn_id:long ctx:HandshakeContext = RawMessageData; +func (m *TLHandshakeData) To_RawMessageData() *RawMessageData { + return &RawMessageData{ + Constructor: TLConstructor_CRC32_handshakeData, Data2: m.Data2, } } -func (m *TLHandshakeContext) SetNonce(v []byte) { m.Data2.Nonce = v } -func (m *TLHandshakeContext) GetNonce() []byte { return m.Data2.Nonce } +func (m *TLHandshakeData) SetState(v int32) { m.Data2.State = v } +func (m *TLHandshakeData) GetState() int32 { return m.Data2.State } -func (m *TLHandshakeContext) SetServerNonce(v []byte) { m.Data2.ServerNonce = v } -func (m *TLHandshakeContext) GetServerNonce() []byte { return m.Data2.ServerNonce } +func (m *TLHandshakeData) SetResState(v int32) { m.Data2.ResState = v } +func (m *TLHandshakeData) GetResState() int32 { return m.Data2.ResState } -func (m *TLHandshakeContext) SetNewNonce(v []byte) { m.Data2.NewNonce = v } -func (m *TLHandshakeContext) GetNewNonce() []byte { return m.Data2.NewNonce } +func (m *TLHandshakeData) SetClientConnId(v int64) { m.Data2.ClientConnId = v } +func (m *TLHandshakeData) GetClientConnId() int64 { return m.Data2.ClientConnId } -func (m *TLHandshakeContext) SetA(v []byte) { m.Data2.A = v } -func (m *TLHandshakeContext) GetA() []byte { return m.Data2.A } +func (m *TLHandshakeData) SetCtx(v *HandshakeContext) { m.Data2.Ctx = v } +func (m *TLHandshakeData) GetCtx() *HandshakeContext { return m.Data2.Ctx } -func (m *TLHandshakeContext) SetP(v []byte) { m.Data2.P = v } -func (m *TLHandshakeContext) GetP() []byte { return m.Data2.P } +func NewTLHandshakeData() *TLHandshakeData { + return &TLHandshakeData{Data2: &RawMessageData_Data{}} +} -func (m *TLHandshakeContext) SetAuthKeyId(v int64) { m.Data2.AuthKeyId = v } -func (m *TLHandshakeContext) GetAuthKeyId() int64 { return m.Data2.AuthKeyId } +func (m *TLHandshakeData) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_handshakeData)) -func (m *TLHandshakeContext) SetAuthKey(v []byte) { m.Data2.AuthKey = v } -func (m *TLHandshakeContext) GetAuthKey() []byte { return m.Data2.AuthKey } + x.Int(m.GetState()) + x.Int(m.GetResState()) + x.Long(m.GetClientConnId()) + x.Bytes(m.GetCtx().Encode()) -func NewTLHandshakeContext() *TLHandshakeContext { - return &TLHandshakeContext{Data2: &HandshakeContext_Data{}} + return x.buf } -func (m *TLHandshakeContext) Encode() []byte { +func (m *TLHandshakeData) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_handshakeContext)) + x.Int(int32(TLConstructor_CRC32_handshakeData)) + + x.Int(m.GetState()) + x.Int(m.GetResState()) + x.Long(m.GetClientConnId()) + x.Bytes(m.GetCtx().EncodeToLayer(layer)) + + return x.buf +} + +func (m *TLHandshakeData) Decode(dbuf *DecodeBuf) error { + m.SetState(dbuf.Int()) + m.SetResState(dbuf.Int()) + m.SetClientConnId(dbuf.Long()) + m4 := &HandshakeContext{} + m4.Decode(dbuf) + m.SetCtx(m4) + + return dbuf.err +} + +// sessionMessageData auth_key_id:long quick_ack:int client_conn_id:long conn_type:int = RawMessageData; +func (m *TLSessionMessageData) To_RawMessageData() *RawMessageData { + return &RawMessageData{ + Constructor: TLConstructor_CRC32_sessionMessageData, + Data2: m.Data2, + } +} + +func (m *TLSessionMessageData) SetAuthKeyId(v int64) { m.Data2.AuthKeyId = v } +func (m *TLSessionMessageData) GetAuthKeyId() int64 { return m.Data2.AuthKeyId } + +func (m *TLSessionMessageData) SetQuickAck(v int32) { m.Data2.QuickAck = v } +func (m *TLSessionMessageData) GetQuickAck() int32 { return m.Data2.QuickAck } + +func (m *TLSessionMessageData) SetClientConnId(v int64) { m.Data2.ClientConnId = v } +func (m *TLSessionMessageData) GetClientConnId() int64 { return m.Data2.ClientConnId } + +func (m *TLSessionMessageData) SetConnType(v int32) { m.Data2.ConnType = v } +func (m *TLSessionMessageData) GetConnType() int32 { return m.Data2.ConnType } + +func NewTLSessionMessageData() *TLSessionMessageData { + return &TLSessionMessageData{Data2: &RawMessageData_Data{}} +} + +func (m *TLSessionMessageData) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_sessionMessageData)) - x.Bytes(m.GetNonce()) - x.Bytes(m.GetServerNonce()) - x.Bytes(m.GetNewNonce()) - x.StringBytes(m.GetA()) - x.StringBytes(m.GetP()) x.Long(m.GetAuthKeyId()) - x.StringBytes(m.GetAuthKey()) + x.Int(m.GetQuickAck()) + x.Long(m.GetClientConnId()) + x.Int(m.GetConnType()) return x.buf } -func (m *TLHandshakeContext) EncodeToLayer(layer int) []byte { +func (m *TLSessionMessageData) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_handshakeContext)) + x.Int(int32(TLConstructor_CRC32_sessionMessageData)) - x.Bytes(m.GetNonce()) - x.Bytes(m.GetServerNonce()) - x.Bytes(m.GetNewNonce()) - x.StringBytes(m.GetA()) - x.StringBytes(m.GetP()) x.Long(m.GetAuthKeyId()) - x.StringBytes(m.GetAuthKey()) + x.Int(m.GetQuickAck()) + x.Long(m.GetClientConnId()) + x.Int(m.GetConnType()) return x.buf } -func (m *TLHandshakeContext) Decode(dbuf *DecodeBuf) error { - m.SetNonce(dbuf.Bytes(16)) - m.SetServerNonce(dbuf.Bytes(16)) - m.SetNewNonce(dbuf.Bytes(32)) - m.SetA(dbuf.StringBytes()) - m.SetP(dbuf.StringBytes()) +func (m *TLSessionMessageData) Decode(dbuf *DecodeBuf) error { m.SetAuthKeyId(dbuf.Long()) - m.SetAuthKey(dbuf.StringBytes()) + m.SetQuickAck(dbuf.Int()) + m.SetClientConnId(dbuf.Long()) + m.SetConnType(dbuf.Int()) return dbuf.err } @@ -67297,6 +67357,102 @@ func (m *TLClientSessionInfo) Decode(dbuf *DecodeBuf) error { return dbuf.err } +/////////////////////////////////////////////////////////////////////////////// +// ServerConnected <-- +// + TL_PushSessionServerConnected +// + +func (m *ServerConnected) Encode() []byte { + switch m.GetConstructor() { + case TLConstructor_CRC32_push_sessionServerConnected: + t := m.To_PushSessionServerConnected() + return t.Encode() + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *ServerConnected) EncodeToLayer(layer int) []byte { + classId := getConstructorByLayer(m.GetConstructor(), layer) + switch classId { + case TLConstructor_CRC32_push_sessionServerConnected: + t := m.To_PushSessionServerConnected() + return t.EncodeToLayer(layer) + + default: + glog.Error("Constructor error: ", m.GetConstructor()) + return nil + } +} + +func (m *ServerConnected) Decode(dbuf *DecodeBuf) error { + m.Constructor = TLConstructor(dbuf.Int()) + switch m.Constructor { + case TLConstructor_CRC32_push_sessionServerConnected: + m2 := &TLPushSessionServerConnected{Data2: &ServerConnected_Data{}} + m2.Decode(dbuf) + m.Data2 = m2.Data2 + + default: + return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) + } + return dbuf.err +} + +// push.sessionServerConnected session_server_id:int server_name:string = ServerConnected; +func (m *ServerConnected) To_PushSessionServerConnected() *TLPushSessionServerConnected { + return &TLPushSessionServerConnected{ + Data2: m.Data2, + } +} + +// push.sessionServerConnected session_server_id:int server_name:string = ServerConnected; +func (m *TLPushSessionServerConnected) To_ServerConnected() *ServerConnected { + return &ServerConnected{ + Constructor: TLConstructor_CRC32_push_sessionServerConnected, + Data2: m.Data2, + } +} + +func (m *TLPushSessionServerConnected) SetSessionServerId(v int32) { m.Data2.SessionServerId = v } +func (m *TLPushSessionServerConnected) GetSessionServerId() int32 { return m.Data2.SessionServerId } + +func (m *TLPushSessionServerConnected) SetServerName(v string) { m.Data2.ServerName = v } +func (m *TLPushSessionServerConnected) GetServerName() string { return m.Data2.ServerName } + +func NewTLPushSessionServerConnected() *TLPushSessionServerConnected { + return &TLPushSessionServerConnected{Data2: &ServerConnected_Data{}} +} + +func (m *TLPushSessionServerConnected) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_push_sessionServerConnected)) + + x.Int(m.GetSessionServerId()) + x.String(m.GetServerName()) + + return x.buf +} + +func (m *TLPushSessionServerConnected) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_push_sessionServerConnected)) + + x.Int(m.GetSessionServerId()) + x.String(m.GetServerName()) + + return x.buf +} + +func (m *TLPushSessionServerConnected) Decode(dbuf *DecodeBuf) error { + m.SetSessionServerId(dbuf.Int()) + m.SetServerName(dbuf.String()) + + return dbuf.err +} + /////////////////////////////////////////////////////////////////////////////// // RSAPublicKey <-- // + TL_RsaPublicKey @@ -67393,191 +67549,6 @@ func (m *TLRsaPublicKey) Decode(dbuf *DecodeBuf) error { return dbuf.err } -/////////////////////////////////////////////////////////////////////////////// -// RawMessageData <-- -// + TL_HandshakeData -// + TL_SessionMessageData -// - -func (m *RawMessageData) Encode() []byte { - switch m.GetConstructor() { - case TLConstructor_CRC32_handshakeData: - t := m.To_HandshakeData() - return t.Encode() - case TLConstructor_CRC32_sessionMessageData: - t := m.To_SessionMessageData() - return t.Encode() - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *RawMessageData) EncodeToLayer(layer int) []byte { - classId := getConstructorByLayer(m.GetConstructor(), layer) - switch classId { - case TLConstructor_CRC32_handshakeData: - t := m.To_HandshakeData() - return t.EncodeToLayer(layer) - case TLConstructor_CRC32_sessionMessageData: - t := m.To_SessionMessageData() - return t.EncodeToLayer(layer) - - default: - glog.Error("Constructor error: ", m.GetConstructor()) - return nil - } -} - -func (m *RawMessageData) Decode(dbuf *DecodeBuf) error { - m.Constructor = TLConstructor(dbuf.Int()) - switch m.Constructor { - case TLConstructor_CRC32_handshakeData: - m2 := &TLHandshakeData{Data2: &RawMessageData_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - case TLConstructor_CRC32_sessionMessageData: - m2 := &TLSessionMessageData{Data2: &RawMessageData_Data{}} - m2.Decode(dbuf) - m.Data2 = m2.Data2 - - default: - return fmt.Errorf("Invalid constructorId: %d", int32(m.Constructor)) - } - return dbuf.err -} - -// handshakeData state:int res_state:int client_conn_id:long ctx:HandshakeContext = RawMessageData; -func (m *RawMessageData) To_HandshakeData() *TLHandshakeData { - return &TLHandshakeData{ - Data2: m.Data2, - } -} - -// sessionMessageData auth_key_id:long quick_ack:int client_conn_id:long conn_type:int = RawMessageData; -func (m *RawMessageData) To_SessionMessageData() *TLSessionMessageData { - return &TLSessionMessageData{ - Data2: m.Data2, - } -} - -// handshakeData state:int res_state:int client_conn_id:long ctx:HandshakeContext = RawMessageData; -func (m *TLHandshakeData) To_RawMessageData() *RawMessageData { - return &RawMessageData{ - Constructor: TLConstructor_CRC32_handshakeData, - Data2: m.Data2, - } -} - -func (m *TLHandshakeData) SetState(v int32) { m.Data2.State = v } -func (m *TLHandshakeData) GetState() int32 { return m.Data2.State } - -func (m *TLHandshakeData) SetResState(v int32) { m.Data2.ResState = v } -func (m *TLHandshakeData) GetResState() int32 { return m.Data2.ResState } - -func (m *TLHandshakeData) SetClientConnId(v int64) { m.Data2.ClientConnId = v } -func (m *TLHandshakeData) GetClientConnId() int64 { return m.Data2.ClientConnId } - -func (m *TLHandshakeData) SetCtx(v *HandshakeContext) { m.Data2.Ctx = v } -func (m *TLHandshakeData) GetCtx() *HandshakeContext { return m.Data2.Ctx } - -func NewTLHandshakeData() *TLHandshakeData { - return &TLHandshakeData{Data2: &RawMessageData_Data{}} -} - -func (m *TLHandshakeData) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_handshakeData)) - - x.Int(m.GetState()) - x.Int(m.GetResState()) - x.Long(m.GetClientConnId()) - x.Bytes(m.GetCtx().Encode()) - - return x.buf -} - -func (m *TLHandshakeData) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_handshakeData)) - - x.Int(m.GetState()) - x.Int(m.GetResState()) - x.Long(m.GetClientConnId()) - x.Bytes(m.GetCtx().EncodeToLayer(layer)) - - return x.buf -} - -func (m *TLHandshakeData) Decode(dbuf *DecodeBuf) error { - m.SetState(dbuf.Int()) - m.SetResState(dbuf.Int()) - m.SetClientConnId(dbuf.Long()) - m4 := &HandshakeContext{} - m4.Decode(dbuf) - m.SetCtx(m4) - - return dbuf.err -} - -// sessionMessageData auth_key_id:long quick_ack:int client_conn_id:long conn_type:int = RawMessageData; -func (m *TLSessionMessageData) To_RawMessageData() *RawMessageData { - return &RawMessageData{ - Constructor: TLConstructor_CRC32_sessionMessageData, - Data2: m.Data2, - } -} - -func (m *TLSessionMessageData) SetAuthKeyId(v int64) { m.Data2.AuthKeyId = v } -func (m *TLSessionMessageData) GetAuthKeyId() int64 { return m.Data2.AuthKeyId } - -func (m *TLSessionMessageData) SetQuickAck(v int32) { m.Data2.QuickAck = v } -func (m *TLSessionMessageData) GetQuickAck() int32 { return m.Data2.QuickAck } - -func (m *TLSessionMessageData) SetClientConnId(v int64) { m.Data2.ClientConnId = v } -func (m *TLSessionMessageData) GetClientConnId() int64 { return m.Data2.ClientConnId } - -func (m *TLSessionMessageData) SetConnType(v int32) { m.Data2.ConnType = v } -func (m *TLSessionMessageData) GetConnType() int32 { return m.Data2.ConnType } - -func NewTLSessionMessageData() *TLSessionMessageData { - return &TLSessionMessageData{Data2: &RawMessageData_Data{}} -} - -func (m *TLSessionMessageData) Encode() []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sessionMessageData)) - - x.Long(m.GetAuthKeyId()) - x.Int(m.GetQuickAck()) - x.Long(m.GetClientConnId()) - x.Int(m.GetConnType()) - - return x.buf -} - -func (m *TLSessionMessageData) EncodeToLayer(layer int) []byte { - x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_sessionMessageData)) - - x.Long(m.GetAuthKeyId()) - x.Int(m.GetQuickAck()) - x.Long(m.GetClientConnId()) - x.Int(m.GetConnType()) - - return x.buf -} - -func (m *TLSessionMessageData) Decode(dbuf *DecodeBuf) error { - m.SetAuthKeyId(dbuf.Long()) - m.SetQuickAck(dbuf.Int()) - m.SetClientConnId(dbuf.Long()) - m.SetConnType(dbuf.Int()) - - return dbuf.err -} - /////////////////////////////////////////////////////////////////////////////// // Int32 <-- // + TL_Int32 @@ -67885,14 +67856,14 @@ func (m *TLAuthKeyInfo) Decode(dbuf *DecodeBuf) error { } /////////////////////////////////////////////////////////////////////////////// -// ServerConnected <-- -// + TL_PushSessionServerConnected +// HandshakeContext <-- +// + TL_HandshakeContext // -func (m *ServerConnected) Encode() []byte { +func (m *HandshakeContext) Encode() []byte { switch m.GetConstructor() { - case TLConstructor_CRC32_push_sessionServerConnected: - t := m.To_PushSessionServerConnected() + case TLConstructor_CRC32_handshakeContext: + t := m.To_HandshakeContext() return t.Encode() default: @@ -67901,11 +67872,11 @@ func (m *ServerConnected) Encode() []byte { } } -func (m *ServerConnected) EncodeToLayer(layer int) []byte { +func (m *HandshakeContext) EncodeToLayer(layer int) []byte { classId := getConstructorByLayer(m.GetConstructor(), layer) switch classId { - case TLConstructor_CRC32_push_sessionServerConnected: - t := m.To_PushSessionServerConnected() + case TLConstructor_CRC32_handshakeContext: + t := m.To_HandshakeContext() return t.EncodeToLayer(layer) default: @@ -67914,11 +67885,11 @@ func (m *ServerConnected) EncodeToLayer(layer int) []byte { } } -func (m *ServerConnected) Decode(dbuf *DecodeBuf) error { +func (m *HandshakeContext) Decode(dbuf *DecodeBuf) error { m.Constructor = TLConstructor(dbuf.Int()) switch m.Constructor { - case TLConstructor_CRC32_push_sessionServerConnected: - m2 := &TLPushSessionServerConnected{Data2: &ServerConnected_Data{}} + case TLConstructor_CRC32_handshakeContext: + m2 := &TLHandshakeContext{Data2: &HandshakeContext_Data{}} m2.Decode(dbuf) m.Data2 = m2.Data2 @@ -67928,54 +67899,84 @@ func (m *ServerConnected) Decode(dbuf *DecodeBuf) error { return dbuf.err } -// push.sessionServerConnected session_server_id:int server_name:string = ServerConnected; -func (m *ServerConnected) To_PushSessionServerConnected() *TLPushSessionServerConnected { - return &TLPushSessionServerConnected{ +// handshakeContext nonce:int128 server_nonce:int128 new_nonce:int256 a:bytes p:bytes auth_key_id:long auth_key:bytes = HandshakeContext; +func (m *HandshakeContext) To_HandshakeContext() *TLHandshakeContext { + return &TLHandshakeContext{ Data2: m.Data2, } } -// push.sessionServerConnected session_server_id:int server_name:string = ServerConnected; -func (m *TLPushSessionServerConnected) To_ServerConnected() *ServerConnected { - return &ServerConnected{ - Constructor: TLConstructor_CRC32_push_sessionServerConnected, +// handshakeContext nonce:int128 server_nonce:int128 new_nonce:int256 a:bytes p:bytes auth_key_id:long auth_key:bytes = HandshakeContext; +func (m *TLHandshakeContext) To_HandshakeContext() *HandshakeContext { + return &HandshakeContext{ + Constructor: TLConstructor_CRC32_handshakeContext, Data2: m.Data2, } } -func (m *TLPushSessionServerConnected) SetSessionServerId(v int32) { m.Data2.SessionServerId = v } -func (m *TLPushSessionServerConnected) GetSessionServerId() int32 { return m.Data2.SessionServerId } +func (m *TLHandshakeContext) SetNonce(v []byte) { m.Data2.Nonce = v } +func (m *TLHandshakeContext) GetNonce() []byte { return m.Data2.Nonce } -func (m *TLPushSessionServerConnected) SetServerName(v string) { m.Data2.ServerName = v } -func (m *TLPushSessionServerConnected) GetServerName() string { return m.Data2.ServerName } +func (m *TLHandshakeContext) SetServerNonce(v []byte) { m.Data2.ServerNonce = v } +func (m *TLHandshakeContext) GetServerNonce() []byte { return m.Data2.ServerNonce } -func NewTLPushSessionServerConnected() *TLPushSessionServerConnected { - return &TLPushSessionServerConnected{Data2: &ServerConnected_Data{}} +func (m *TLHandshakeContext) SetNewNonce(v []byte) { m.Data2.NewNonce = v } +func (m *TLHandshakeContext) GetNewNonce() []byte { return m.Data2.NewNonce } + +func (m *TLHandshakeContext) SetA(v []byte) { m.Data2.A = v } +func (m *TLHandshakeContext) GetA() []byte { return m.Data2.A } + +func (m *TLHandshakeContext) SetP(v []byte) { m.Data2.P = v } +func (m *TLHandshakeContext) GetP() []byte { return m.Data2.P } + +func (m *TLHandshakeContext) SetAuthKeyId(v int64) { m.Data2.AuthKeyId = v } +func (m *TLHandshakeContext) GetAuthKeyId() int64 { return m.Data2.AuthKeyId } + +func (m *TLHandshakeContext) SetAuthKey(v []byte) { m.Data2.AuthKey = v } +func (m *TLHandshakeContext) GetAuthKey() []byte { return m.Data2.AuthKey } + +func NewTLHandshakeContext() *TLHandshakeContext { + return &TLHandshakeContext{Data2: &HandshakeContext_Data{}} } -func (m *TLPushSessionServerConnected) Encode() []byte { +func (m *TLHandshakeContext) Encode() []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_push_sessionServerConnected)) + x.Int(int32(TLConstructor_CRC32_handshakeContext)) - x.Int(m.GetSessionServerId()) - x.String(m.GetServerName()) + x.Bytes(m.GetNonce()) + x.Bytes(m.GetServerNonce()) + x.Bytes(m.GetNewNonce()) + x.StringBytes(m.GetA()) + x.StringBytes(m.GetP()) + x.Long(m.GetAuthKeyId()) + x.StringBytes(m.GetAuthKey()) return x.buf } -func (m *TLPushSessionServerConnected) EncodeToLayer(layer int) []byte { +func (m *TLHandshakeContext) EncodeToLayer(layer int) []byte { x := NewEncodeBuf(512) - x.Int(int32(TLConstructor_CRC32_push_sessionServerConnected)) + x.Int(int32(TLConstructor_CRC32_handshakeContext)) - x.Int(m.GetSessionServerId()) - x.String(m.GetServerName()) + x.Bytes(m.GetNonce()) + x.Bytes(m.GetServerNonce()) + x.Bytes(m.GetNewNonce()) + x.StringBytes(m.GetA()) + x.StringBytes(m.GetP()) + x.Long(m.GetAuthKeyId()) + x.StringBytes(m.GetAuthKey()) return x.buf } -func (m *TLPushSessionServerConnected) Decode(dbuf *DecodeBuf) error { - m.SetSessionServerId(dbuf.Int()) - m.SetServerName(dbuf.String()) +func (m *TLHandshakeContext) Decode(dbuf *DecodeBuf) error { + m.SetNonce(dbuf.Bytes(16)) + m.SetServerNonce(dbuf.Bytes(16)) + m.SetNewNonce(dbuf.Bytes(32)) + m.SetA(dbuf.StringBytes()) + m.SetP(dbuf.StringBytes()) + m.SetAuthKeyId(dbuf.Long()) + m.SetAuthKey(dbuf.StringBytes()) return dbuf.err } @@ -68966,6 +68967,39 @@ func (m *TLLangpackGetLangPackLayer71) Decode(dbuf *DecodeBuf) error { return dbuf.err } +func NewTLMessagesGetRecentLocationsLayer72() *TLMessagesGetRecentLocationsLayer72 { + return &TLMessagesGetRecentLocationsLayer72{} +} + +func (m *TLMessagesGetRecentLocationsLayer72) Encode() []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_getRecentLocationsLayer72)) + + x.Bytes(m.Peer.Encode()) + x.Int(m.Limit) + + return x.buf +} + +func (m *TLMessagesGetRecentLocationsLayer72) EncodeToLayer(layer int) []byte { + x := NewEncodeBuf(512) + x.Int(int32(TLConstructor_CRC32_messages_getRecentLocationsLayer72)) + + x.Bytes(m.Peer.EncodeToLayer(layer)) + x.Int(m.Limit) + + return x.buf +} + +func (m *TLMessagesGetRecentLocationsLayer72) Decode(dbuf *DecodeBuf) error { + m1 := &InputPeer{} + m1.Decode(dbuf) + m.Peer = m1 + m.Limit = dbuf.Int() + + return dbuf.err +} + func NewTLInvokeAfterMsg() *TLInvokeAfterMsg { return &TLInvokeAfterMsg{} } diff --git a/mtproto/rpc/zrpc_controller.go b/mtproto/rpc/zrpc_controller.go index 12f6c6c2e..ee140b785 100644 --- a/mtproto/rpc/zrpc_controller.go +++ b/mtproto/rpc/zrpc_controller.go @@ -18,10 +18,10 @@ package zrpc import ( + "fmt" "github.com/gogo/protobuf/proto" "github.com/nebula-chat/chatengine/mtproto/rpc/brpc" "github.com/nebula-chat/chatengine/pkg/grpc_util" - "fmt" ) type ZRpcController struct { @@ -35,6 +35,14 @@ func NewController() *ZRpcController { } } +func (c *ZRpcController) Clone() *ZRpcController { + md := proto.Clone(c.RpcMeta) + return &ZRpcController{ + RpcMeta: md.(*brpc.RpcMeta), + Attachment: c.Attachment, + } +} + func (c *ZRpcController) String() string { return c.RpcMeta.String() } @@ -256,12 +264,8 @@ func (c *ZRpcController) GetAttachment() []byte { func (c *ZRpcController) MoveAttachment() []byte { var move = c.Attachment - - if len(move) > 0 { - c.setAttachmentSize(0) - c.Attachment = nil - } - + c.setAttachmentSize(0) + c.Attachment = nil return move } diff --git a/mtproto/rpc_client_registers.go b/mtproto/rpc_client_registers.go index 96210b732..e657ff09f 100644 --- a/mtproto/rpc_client_registers.go +++ b/mtproto/rpc_client_registers.go @@ -40,97 +40,18 @@ type RPCContextTuple struct { */ var rpcContextRegisters = map[string]RPCContextTuple{ - "TLContactsGetStatuses": RPCContextTuple{"/mtproto.RPCContacts/contacts_getStatuses", func() interface{} { return new(Vector_ContactStatus) }}, - "TLContactsGetContacts": RPCContextTuple{"/mtproto.RPCContacts/contacts_getContacts", func() interface{} { return new(Contacts_Contacts) }}, - "TLContactsImportContacts": RPCContextTuple{"/mtproto.RPCContacts/contacts_importContacts", func() interface{} { return new(Contacts_ImportedContacts) }}, - "TLContactsDeleteContact": RPCContextTuple{"/mtproto.RPCContacts/contacts_deleteContact", func() interface{} { return new(Contacts_Link) }}, - "TLContactsDeleteContacts": RPCContextTuple{"/mtproto.RPCContacts/contacts_deleteContacts", func() interface{} { return new(Bool) }}, - "TLContactsBlock": RPCContextTuple{"/mtproto.RPCContacts/contacts_block", func() interface{} { return new(Bool) }}, - "TLContactsUnblock": RPCContextTuple{"/mtproto.RPCContacts/contacts_unblock", func() interface{} { return new(Bool) }}, - "TLContactsGetBlocked": RPCContextTuple{"/mtproto.RPCContacts/contacts_getBlocked", func() interface{} { return new(Contacts_Blocked) }}, - "TLContactsExportCard": RPCContextTuple{"/mtproto.RPCContacts/contacts_exportCard", func() interface{} { return new(VectorInt) }}, - "TLContactsImportCard": RPCContextTuple{"/mtproto.RPCContacts/contacts_importCard", func() interface{} { return new(User) }}, - "TLContactsSearch": RPCContextTuple{"/mtproto.RPCContacts/contacts_search", func() interface{} { return new(Contacts_Found) }}, - "TLContactsResolveUsername": RPCContextTuple{"/mtproto.RPCContacts/contacts_resolveUsername", func() interface{} { return new(Contacts_ResolvedPeer) }}, - "TLContactsGetTopPeers": RPCContextTuple{"/mtproto.RPCContacts/contacts_getTopPeers", func() interface{} { return new(Contacts_TopPeers) }}, - "TLContactsResetTopPeerRating": RPCContextTuple{"/mtproto.RPCContacts/contacts_resetTopPeerRating", func() interface{} { return new(Bool) }}, - "TLContactsResetSaved": RPCContextTuple{"/mtproto.RPCContacts/contacts_resetSaved", func() interface{} { return new(Bool) }}, - "TLContactsGetSaved": RPCContextTuple{"/mtproto.RPCContacts/contacts_getSaved", func() interface{} { return new(Vector_SavedContact) }}, - "TLContactsToggleTopPeers": RPCContextTuple{"/mtproto.RPCContacts/contacts_toggleTopPeers", func() interface{} { return new(Bool) }}, - "TLChannelsReadHistory": RPCContextTuple{"/mtproto.RPCChannels/channels_readHistory", func() interface{} { return new(Bool) }}, - "TLChannelsDeleteMessages": RPCContextTuple{"/mtproto.RPCChannels/channels_deleteMessages", func() interface{} { return new(Messages_AffectedMessages) }}, - "TLChannelsDeleteUserHistory": RPCContextTuple{"/mtproto.RPCChannels/channels_deleteUserHistory", func() interface{} { return new(Messages_AffectedHistory) }}, - "TLChannelsReportSpam": RPCContextTuple{"/mtproto.RPCChannels/channels_reportSpam", func() interface{} { return new(Bool) }}, - "TLChannelsGetMessages": RPCContextTuple{"/mtproto.RPCChannels/channels_getMessages", func() interface{} { return new(Messages_Messages) }}, - "TLChannelsGetParticipants": RPCContextTuple{"/mtproto.RPCChannels/channels_getParticipants", func() interface{} { return new(Channels_ChannelParticipants) }}, - "TLChannelsGetParticipant": RPCContextTuple{"/mtproto.RPCChannels/channels_getParticipant", func() interface{} { return new(Channels_ChannelParticipant) }}, - "TLChannelsGetChannels": RPCContextTuple{"/mtproto.RPCChannels/channels_getChannels", func() interface{} { return new(Messages_Chats) }}, - "TLChannelsGetFullChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_getFullChannel", func() interface{} { return new(Messages_ChatFull) }}, - "TLChannelsCreateChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_createChannel", func() interface{} { return new(Updates) }}, - "TLChannelsEditAbout": RPCContextTuple{"/mtproto.RPCChannels/channels_editAbout", func() interface{} { return new(Bool) }}, - "TLChannelsEditAdmin": RPCContextTuple{"/mtproto.RPCChannels/channels_editAdmin", func() interface{} { return new(Updates) }}, - "TLChannelsEditTitle": RPCContextTuple{"/mtproto.RPCChannels/channels_editTitle", func() interface{} { return new(Updates) }}, - "TLChannelsEditPhoto": RPCContextTuple{"/mtproto.RPCChannels/channels_editPhoto", func() interface{} { return new(Updates) }}, - "TLChannelsCheckUsername": RPCContextTuple{"/mtproto.RPCChannels/channels_checkUsername", func() interface{} { return new(Bool) }}, - "TLChannelsUpdateUsername": RPCContextTuple{"/mtproto.RPCChannels/channels_updateUsername", func() interface{} { return new(Bool) }}, - "TLChannelsJoinChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_joinChannel", func() interface{} { return new(Updates) }}, - "TLChannelsLeaveChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_leaveChannel", func() interface{} { return new(Updates) }}, - "TLChannelsInviteToChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_inviteToChannel", func() interface{} { return new(Updates) }}, - "TLChannelsExportInvite": RPCContextTuple{"/mtproto.RPCChannels/channels_exportInvite", func() interface{} { return new(ExportedChatInvite) }}, - "TLChannelsDeleteChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_deleteChannel", func() interface{} { return new(Updates) }}, - "TLChannelsToggleInvites": RPCContextTuple{"/mtproto.RPCChannels/channels_toggleInvites", func() interface{} { return new(Updates) }}, - "TLChannelsExportMessageLink": RPCContextTuple{"/mtproto.RPCChannels/channels_exportMessageLink", func() interface{} { return new(ExportedMessageLink) }}, - "TLChannelsToggleSignatures": RPCContextTuple{"/mtproto.RPCChannels/channels_toggleSignatures", func() interface{} { return new(Updates) }}, - "TLChannelsUpdatePinnedMessage": RPCContextTuple{"/mtproto.RPCChannels/channels_updatePinnedMessage", func() interface{} { return new(Updates) }}, - "TLChannelsGetAdminedPublicChannels": RPCContextTuple{"/mtproto.RPCChannels/channels_getAdminedPublicChannels", func() interface{} { return new(Messages_Chats) }}, - "TLChannelsEditBanned": RPCContextTuple{"/mtproto.RPCChannels/channels_editBanned", func() interface{} { return new(Updates) }}, - "TLChannelsGetAdminLog": RPCContextTuple{"/mtproto.RPCChannels/channels_getAdminLog", func() interface{} { return new(Channels_AdminLogResults) }}, - "TLChannelsSetStickers": RPCContextTuple{"/mtproto.RPCChannels/channels_setStickers", func() interface{} { return new(Bool) }}, - "TLChannelsReadMessageContents": RPCContextTuple{"/mtproto.RPCChannels/channels_readMessageContents", func() interface{} { return new(Bool) }}, - "TLChannelsDeleteHistory": RPCContextTuple{"/mtproto.RPCChannels/channels_deleteHistory", func() interface{} { return new(Bool) }}, - "TLChannelsTogglePreHistoryHidden": RPCContextTuple{"/mtproto.RPCChannels/channels_togglePreHistoryHidden", func() interface{} { return new(Updates) }}, - "TLChannelsGetLeftChannels": RPCContextTuple{"/mtproto.RPCChannels/channels_getLeftChannels", func() interface{} { return new(Messages_Chats) }}, + "TLUploadSaveFilePart": RPCContextTuple{"/mtproto.RPCUpload/upload_saveFilePart", func() interface{} { return new(Bool) }}, + "TLUploadGetFile": RPCContextTuple{"/mtproto.RPCUpload/upload_getFile", func() interface{} { return new(Upload_File) }}, + "TLUploadSaveBigFilePart": RPCContextTuple{"/mtproto.RPCUpload/upload_saveBigFilePart", func() interface{} { return new(Bool) }}, + "TLUploadGetWebFile": RPCContextTuple{"/mtproto.RPCUpload/upload_getWebFile", func() interface{} { return new(Upload_WebFile) }}, + "TLUploadGetCdnFile": RPCContextTuple{"/mtproto.RPCUpload/upload_getCdnFile", func() interface{} { return new(Upload_CdnFile) }}, + "TLUploadReuploadCdnFile": RPCContextTuple{"/mtproto.RPCUpload/upload_reuploadCdnFile", func() interface{} { return new(Vector_FileHash) }}, + "TLUploadGetCdnFileHashes": RPCContextTuple{"/mtproto.RPCUpload/upload_getCdnFileHashes", func() interface{} { return new(Vector_FileHash) }}, + "TLUploadGetFileHashes": RPCContextTuple{"/mtproto.RPCUpload/upload_getFileHashes", func() interface{} { return new(Vector_FileHash) }}, "TLStickersCreateStickerSet": RPCContextTuple{"/mtproto.RPCStickers/stickers_createStickerSet", func() interface{} { return new(Messages_StickerSet) }}, "TLStickersRemoveStickerFromSet": RPCContextTuple{"/mtproto.RPCStickers/stickers_removeStickerFromSet", func() interface{} { return new(Messages_StickerSet) }}, "TLStickersChangeStickerPosition": RPCContextTuple{"/mtproto.RPCStickers/stickers_changeStickerPosition", func() interface{} { return new(Messages_StickerSet) }}, "TLStickersAddStickerToSet": RPCContextTuple{"/mtproto.RPCStickers/stickers_addStickerToSet", func() interface{} { return new(Messages_StickerSet) }}, - "TLLangpackGetLanguagesLayer70": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getLanguagesLayer70", func() interface{} { return new(Vector_LangPackLanguage) }}, - "TLLangpackGetLangPackLayer71": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getLangPackLayer71", func() interface{} { return new(LangPackDifference) }}, - "TLLangpackGetLangPack": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getLangPack", func() interface{} { return new(LangPackDifference) }}, - "TLLangpackGetStrings": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getStrings", func() interface{} { return new(Vector_LangPackString) }}, - "TLLangpackGetDifference": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getDifference", func() interface{} { return new(LangPackDifference) }}, - "TLLangpackGetLanguages": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getLanguages", func() interface{} { return new(Vector_LangPackLanguage) }}, - "TLUpdatesGetChannelDifferenceLayer46": RPCContextTuple{"/mtproto.RPCUpdates/updates_getChannelDifferenceLayer46", func() interface{} { return new(Updates_ChannelDifference) }}, - "TLUpdatesGetState": RPCContextTuple{"/mtproto.RPCUpdates/updates_getState", func() interface{} { return new(Updates_State) }}, - "TLUpdatesGetDifference": RPCContextTuple{"/mtproto.RPCUpdates/updates_getDifference", func() interface{} { return new(Updates_Difference) }}, - "TLUpdatesGetChannelDifference": RPCContextTuple{"/mtproto.RPCUpdates/updates_getChannelDifference", func() interface{} { return new(Updates_ChannelDifference) }}, - "TLPaymentsGetPaymentForm": RPCContextTuple{"/mtproto.RPCPayments/payments_getPaymentForm", func() interface{} { return new(Payments_PaymentForm) }}, - "TLPaymentsGetPaymentReceipt": RPCContextTuple{"/mtproto.RPCPayments/payments_getPaymentReceipt", func() interface{} { return new(Payments_PaymentReceipt) }}, - "TLPaymentsValidateRequestedInfo": RPCContextTuple{"/mtproto.RPCPayments/payments_validateRequestedInfo", func() interface{} { return new(Payments_ValidatedRequestedInfo) }}, - "TLPaymentsSendPaymentForm": RPCContextTuple{"/mtproto.RPCPayments/payments_sendPaymentForm", func() interface{} { return new(Payments_PaymentResult) }}, - "TLPaymentsGetSavedInfo": RPCContextTuple{"/mtproto.RPCPayments/payments_getSavedInfo", func() interface{} { return new(Payments_SavedInfo) }}, - "TLPaymentsClearSavedInfo": RPCContextTuple{"/mtproto.RPCPayments/payments_clearSavedInfo", func() interface{} { return new(Bool) }}, - "TLAuthSendCodeLayer51": RPCContextTuple{"/mtproto.RPCAuth/auth_sendCodeLayer51", func() interface{} { return new(Auth_SentCode) }}, - "TLAuthSendCode": RPCContextTuple{"/mtproto.RPCAuth/auth_sendCode", func() interface{} { return new(Auth_SentCode) }}, - "TLAuthSignUp": RPCContextTuple{"/mtproto.RPCAuth/auth_signUp", func() interface{} { return new(Auth_Authorization) }}, - "TLAuthSignIn": RPCContextTuple{"/mtproto.RPCAuth/auth_signIn", func() interface{} { return new(Auth_Authorization) }}, - "TLAuthLogOut": RPCContextTuple{"/mtproto.RPCAuth/auth_logOut", func() interface{} { return new(Bool) }}, - "TLAuthResetAuthorizations": RPCContextTuple{"/mtproto.RPCAuth/auth_resetAuthorizations", func() interface{} { return new(Bool) }}, - "TLAuthExportAuthorization": RPCContextTuple{"/mtproto.RPCAuth/auth_exportAuthorization", func() interface{} { return new(Auth_ExportedAuthorization) }}, - "TLAuthImportAuthorization": RPCContextTuple{"/mtproto.RPCAuth/auth_importAuthorization", func() interface{} { return new(Auth_Authorization) }}, - "TLAuthBindTempAuthKey": RPCContextTuple{"/mtproto.RPCAuth/auth_bindTempAuthKey", func() interface{} { return new(Bool) }}, - "TLAuthImportBotAuthorization": RPCContextTuple{"/mtproto.RPCAuth/auth_importBotAuthorization", func() interface{} { return new(Auth_Authorization) }}, - "TLAuthCheckPassword": RPCContextTuple{"/mtproto.RPCAuth/auth_checkPassword", func() interface{} { return new(Auth_Authorization) }}, - "TLAuthRequestPasswordRecovery": RPCContextTuple{"/mtproto.RPCAuth/auth_requestPasswordRecovery", func() interface{} { return new(Auth_PasswordRecovery) }}, - "TLAuthRecoverPassword": RPCContextTuple{"/mtproto.RPCAuth/auth_recoverPassword", func() interface{} { return new(Auth_Authorization) }}, - "TLAuthResendCode": RPCContextTuple{"/mtproto.RPCAuth/auth_resendCode", func() interface{} { return new(Auth_SentCode) }}, - "TLAuthCancelCode": RPCContextTuple{"/mtproto.RPCAuth/auth_cancelCode", func() interface{} { return new(Bool) }}, - "TLAuthDropTempAuthKeys": RPCContextTuple{"/mtproto.RPCAuth/auth_dropTempAuthKeys", func() interface{} { return new(Bool) }}, - "TLUsersGetUsers": RPCContextTuple{"/mtproto.RPCUsers/users_getUsers", func() interface{} { return new(Vector_User) }}, - "TLUsersGetFullUser": RPCContextTuple{"/mtproto.RPCUsers/users_getFullUser", func() interface{} { return new(UserFull) }}, - "TLUsersSetSecureValueErrors": RPCContextTuple{"/mtproto.RPCUsers/users_setSecureValueErrors", func() interface{} { return new(Bool) }}, - "TLBotsSendCustomRequest": RPCContextTuple{"/mtproto.RPCBots/bots_sendCustomRequest", func() interface{} { return new(DataJSON) }}, - "TLBotsAnswerWebhookJSONQuery": RPCContextTuple{"/mtproto.RPCBots/bots_answerWebhookJSONQuery", func() interface{} { return new(Bool) }}, "TLPhoneGetCallConfig": RPCContextTuple{"/mtproto.RPCPhone/phone_getCallConfig", func() interface{} { return new(DataJSON) }}, "TLPhoneRequestCall": RPCContextTuple{"/mtproto.RPCPhone/phone_requestCall", func() interface{} { return new(Phone_PhoneCall) }}, "TLPhoneAcceptCall": RPCContextTuple{"/mtproto.RPCPhone/phone_acceptCall", func() interface{} { return new(Phone_PhoneCall) }}, @@ -164,6 +85,7 @@ var rpcContextRegisters = map[string]RPCContextTuple{ "TLMessagesGetDialogsLayer62": RPCContextTuple{"/mtproto.RPCMessages/messages_getDialogsLayer62", func() interface{} { return new(Messages_Dialogs) }}, "TLMessagesSearchLayer68": RPCContextTuple{"/mtproto.RPCMessages/messages_searchLayer68", func() interface{} { return new(Messages_Messages) }}, "TLMessagesGetMessagesLayer71": RPCContextTuple{"/mtproto.RPCMessages/messages_getMessagesLayer71", func() interface{} { return new(Messages_Messages) }}, + "TLMessagesGetRecentLocationsLayer72": RPCContextTuple{"/mtproto.RPCMessages/messages_getRecentLocationsLayer72", func() interface{} { return new(Messages_Messages) }}, "TLMessagesGetMessages": RPCContextTuple{"/mtproto.RPCMessages/messages_getMessages", func() interface{} { return new(Messages_Messages) }}, "TLMessagesGetDialogs": RPCContextTuple{"/mtproto.RPCMessages/messages_getDialogs", func() interface{} { return new(Messages_Dialogs) }}, "TLMessagesGetHistory": RPCContextTuple{"/mtproto.RPCMessages/messages_getHistory", func() interface{} { return new(Messages_Messages) }}, @@ -264,6 +186,19 @@ var rpcContextRegisters = map[string]RPCContextTuple{ "TLMessagesMarkDialogUnread": RPCContextTuple{"/mtproto.RPCMessages/messages_markDialogUnread", func() interface{} { return new(Bool) }}, "TLMessagesGetDialogUnreadMarks": RPCContextTuple{"/mtproto.RPCMessages/messages_getDialogUnreadMarks", func() interface{} { return new(Vector_DialogPeer) }}, "TLMessagesClearAllDrafts": RPCContextTuple{"/mtproto.RPCMessages/messages_clearAllDrafts", func() interface{} { return new(Bool) }}, + "TLUpdatesGetChannelDifferenceLayer46": RPCContextTuple{"/mtproto.RPCUpdates/updates_getChannelDifferenceLayer46", func() interface{} { return new(Updates_ChannelDifference) }}, + "TLUpdatesGetState": RPCContextTuple{"/mtproto.RPCUpdates/updates_getState", func() interface{} { return new(Updates_State) }}, + "TLUpdatesGetDifference": RPCContextTuple{"/mtproto.RPCUpdates/updates_getDifference", func() interface{} { return new(Updates_Difference) }}, + "TLUpdatesGetChannelDifference": RPCContextTuple{"/mtproto.RPCUpdates/updates_getChannelDifference", func() interface{} { return new(Updates_ChannelDifference) }}, + "TLUsersGetUsers": RPCContextTuple{"/mtproto.RPCUsers/users_getUsers", func() interface{} { return new(Vector_User) }}, + "TLUsersGetFullUser": RPCContextTuple{"/mtproto.RPCUsers/users_getFullUser", func() interface{} { return new(UserFull) }}, + "TLUsersSetSecureValueErrors": RPCContextTuple{"/mtproto.RPCUsers/users_setSecureValueErrors", func() interface{} { return new(Bool) }}, + "TLLangpackGetLanguagesLayer70": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getLanguagesLayer70", func() interface{} { return new(Vector_LangPackLanguage) }}, + "TLLangpackGetLangPackLayer71": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getLangPackLayer71", func() interface{} { return new(LangPackDifference) }}, + "TLLangpackGetLangPack": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getLangPack", func() interface{} { return new(LangPackDifference) }}, + "TLLangpackGetStrings": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getStrings", func() interface{} { return new(Vector_LangPackString) }}, + "TLLangpackGetDifference": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getDifference", func() interface{} { return new(LangPackDifference) }}, + "TLLangpackGetLanguages": RPCContextTuple{"/mtproto.RPCLangpack/langpack_getLanguages", func() interface{} { return new(Vector_LangPackLanguage) }}, "TLAccountRegisterDeviceLayer71": RPCContextTuple{"/mtproto.RPCAccount/account_registerDeviceLayer71", func() interface{} { return new(Bool) }}, "TLAccountUnregisterDeviceLayer71": RPCContextTuple{"/mtproto.RPCAccount/account_unregisterDeviceLayer71", func() interface{} { return new(Bool) }}, "TLAccountRegisterDevice": RPCContextTuple{"/mtproto.RPCAccount/account_registerDevice", func() interface{} { return new(Bool) }}, @@ -308,18 +243,84 @@ var rpcContextRegisters = map[string]RPCContextTuple{ "TLAccountVerifyEmail": RPCContextTuple{"/mtproto.RPCAccount/account_verifyEmail", func() interface{} { return new(Bool) }}, "TLAccountInitTakeoutSession": RPCContextTuple{"/mtproto.RPCAccount/account_initTakeoutSession", func() interface{} { return new(Account_Takeout) }}, "TLAccountFinishTakeoutSession": RPCContextTuple{"/mtproto.RPCAccount/account_finishTakeoutSession", func() interface{} { return new(Bool) }}, + "TLContactsGetStatuses": RPCContextTuple{"/mtproto.RPCContacts/contacts_getStatuses", func() interface{} { return new(Vector_ContactStatus) }}, + "TLContactsGetContacts": RPCContextTuple{"/mtproto.RPCContacts/contacts_getContacts", func() interface{} { return new(Contacts_Contacts) }}, + "TLContactsImportContacts": RPCContextTuple{"/mtproto.RPCContacts/contacts_importContacts", func() interface{} { return new(Contacts_ImportedContacts) }}, + "TLContactsDeleteContact": RPCContextTuple{"/mtproto.RPCContacts/contacts_deleteContact", func() interface{} { return new(Contacts_Link) }}, + "TLContactsDeleteContacts": RPCContextTuple{"/mtproto.RPCContacts/contacts_deleteContacts", func() interface{} { return new(Bool) }}, + "TLContactsBlock": RPCContextTuple{"/mtproto.RPCContacts/contacts_block", func() interface{} { return new(Bool) }}, + "TLContactsUnblock": RPCContextTuple{"/mtproto.RPCContacts/contacts_unblock", func() interface{} { return new(Bool) }}, + "TLContactsGetBlocked": RPCContextTuple{"/mtproto.RPCContacts/contacts_getBlocked", func() interface{} { return new(Contacts_Blocked) }}, + "TLContactsExportCard": RPCContextTuple{"/mtproto.RPCContacts/contacts_exportCard", func() interface{} { return new(VectorInt) }}, + "TLContactsImportCard": RPCContextTuple{"/mtproto.RPCContacts/contacts_importCard", func() interface{} { return new(User) }}, + "TLContactsSearch": RPCContextTuple{"/mtproto.RPCContacts/contacts_search", func() interface{} { return new(Contacts_Found) }}, + "TLContactsResolveUsername": RPCContextTuple{"/mtproto.RPCContacts/contacts_resolveUsername", func() interface{} { return new(Contacts_ResolvedPeer) }}, + "TLContactsGetTopPeers": RPCContextTuple{"/mtproto.RPCContacts/contacts_getTopPeers", func() interface{} { return new(Contacts_TopPeers) }}, + "TLContactsResetTopPeerRating": RPCContextTuple{"/mtproto.RPCContacts/contacts_resetTopPeerRating", func() interface{} { return new(Bool) }}, + "TLContactsResetSaved": RPCContextTuple{"/mtproto.RPCContacts/contacts_resetSaved", func() interface{} { return new(Bool) }}, + "TLContactsGetSaved": RPCContextTuple{"/mtproto.RPCContacts/contacts_getSaved", func() interface{} { return new(Vector_SavedContact) }}, + "TLContactsToggleTopPeers": RPCContextTuple{"/mtproto.RPCContacts/contacts_toggleTopPeers", func() interface{} { return new(Bool) }}, "TLPhotosUpdateProfilePhoto": RPCContextTuple{"/mtproto.RPCPhotos/photos_updateProfilePhoto", func() interface{} { return new(UserProfilePhoto) }}, "TLPhotosUploadProfilePhoto": RPCContextTuple{"/mtproto.RPCPhotos/photos_uploadProfilePhoto", func() interface{} { return new(Photos_Photo) }}, "TLPhotosDeletePhotos": RPCContextTuple{"/mtproto.RPCPhotos/photos_deletePhotos", func() interface{} { return new(VectorLong) }}, "TLPhotosGetUserPhotos": RPCContextTuple{"/mtproto.RPCPhotos/photos_getUserPhotos", func() interface{} { return new(Photos_Photos) }}, - "TLUploadSaveFilePart": RPCContextTuple{"/mtproto.RPCUpload/upload_saveFilePart", func() interface{} { return new(Bool) }}, - "TLUploadGetFile": RPCContextTuple{"/mtproto.RPCUpload/upload_getFile", func() interface{} { return new(Upload_File) }}, - "TLUploadSaveBigFilePart": RPCContextTuple{"/mtproto.RPCUpload/upload_saveBigFilePart", func() interface{} { return new(Bool) }}, - "TLUploadGetWebFile": RPCContextTuple{"/mtproto.RPCUpload/upload_getWebFile", func() interface{} { return new(Upload_WebFile) }}, - "TLUploadGetCdnFile": RPCContextTuple{"/mtproto.RPCUpload/upload_getCdnFile", func() interface{} { return new(Upload_CdnFile) }}, - "TLUploadReuploadCdnFile": RPCContextTuple{"/mtproto.RPCUpload/upload_reuploadCdnFile", func() interface{} { return new(Vector_FileHash) }}, - "TLUploadGetCdnFileHashes": RPCContextTuple{"/mtproto.RPCUpload/upload_getCdnFileHashes", func() interface{} { return new(Vector_FileHash) }}, - "TLUploadGetFileHashes": RPCContextTuple{"/mtproto.RPCUpload/upload_getFileHashes", func() interface{} { return new(Vector_FileHash) }}, + "TLChannelsReadHistory": RPCContextTuple{"/mtproto.RPCChannels/channels_readHistory", func() interface{} { return new(Bool) }}, + "TLChannelsDeleteMessages": RPCContextTuple{"/mtproto.RPCChannels/channels_deleteMessages", func() interface{} { return new(Messages_AffectedMessages) }}, + "TLChannelsDeleteUserHistory": RPCContextTuple{"/mtproto.RPCChannels/channels_deleteUserHistory", func() interface{} { return new(Messages_AffectedHistory) }}, + "TLChannelsReportSpam": RPCContextTuple{"/mtproto.RPCChannels/channels_reportSpam", func() interface{} { return new(Bool) }}, + "TLChannelsGetMessages": RPCContextTuple{"/mtproto.RPCChannels/channels_getMessages", func() interface{} { return new(Messages_Messages) }}, + "TLChannelsGetParticipants": RPCContextTuple{"/mtproto.RPCChannels/channels_getParticipants", func() interface{} { return new(Channels_ChannelParticipants) }}, + "TLChannelsGetParticipant": RPCContextTuple{"/mtproto.RPCChannels/channels_getParticipant", func() interface{} { return new(Channels_ChannelParticipant) }}, + "TLChannelsGetChannels": RPCContextTuple{"/mtproto.RPCChannels/channels_getChannels", func() interface{} { return new(Messages_Chats) }}, + "TLChannelsGetFullChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_getFullChannel", func() interface{} { return new(Messages_ChatFull) }}, + "TLChannelsCreateChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_createChannel", func() interface{} { return new(Updates) }}, + "TLChannelsEditAbout": RPCContextTuple{"/mtproto.RPCChannels/channels_editAbout", func() interface{} { return new(Bool) }}, + "TLChannelsEditAdmin": RPCContextTuple{"/mtproto.RPCChannels/channels_editAdmin", func() interface{} { return new(Updates) }}, + "TLChannelsEditTitle": RPCContextTuple{"/mtproto.RPCChannels/channels_editTitle", func() interface{} { return new(Updates) }}, + "TLChannelsEditPhoto": RPCContextTuple{"/mtproto.RPCChannels/channels_editPhoto", func() interface{} { return new(Updates) }}, + "TLChannelsCheckUsername": RPCContextTuple{"/mtproto.RPCChannels/channels_checkUsername", func() interface{} { return new(Bool) }}, + "TLChannelsUpdateUsername": RPCContextTuple{"/mtproto.RPCChannels/channels_updateUsername", func() interface{} { return new(Bool) }}, + "TLChannelsJoinChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_joinChannel", func() interface{} { return new(Updates) }}, + "TLChannelsLeaveChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_leaveChannel", func() interface{} { return new(Updates) }}, + "TLChannelsInviteToChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_inviteToChannel", func() interface{} { return new(Updates) }}, + "TLChannelsExportInvite": RPCContextTuple{"/mtproto.RPCChannels/channels_exportInvite", func() interface{} { return new(ExportedChatInvite) }}, + "TLChannelsDeleteChannel": RPCContextTuple{"/mtproto.RPCChannels/channels_deleteChannel", func() interface{} { return new(Updates) }}, + "TLChannelsToggleInvites": RPCContextTuple{"/mtproto.RPCChannels/channels_toggleInvites", func() interface{} { return new(Updates) }}, + "TLChannelsExportMessageLink": RPCContextTuple{"/mtproto.RPCChannels/channels_exportMessageLink", func() interface{} { return new(ExportedMessageLink) }}, + "TLChannelsToggleSignatures": RPCContextTuple{"/mtproto.RPCChannels/channels_toggleSignatures", func() interface{} { return new(Updates) }}, + "TLChannelsUpdatePinnedMessage": RPCContextTuple{"/mtproto.RPCChannels/channels_updatePinnedMessage", func() interface{} { return new(Updates) }}, + "TLChannelsGetAdminedPublicChannels": RPCContextTuple{"/mtproto.RPCChannels/channels_getAdminedPublicChannels", func() interface{} { return new(Messages_Chats) }}, + "TLChannelsEditBanned": RPCContextTuple{"/mtproto.RPCChannels/channels_editBanned", func() interface{} { return new(Updates) }}, + "TLChannelsGetAdminLog": RPCContextTuple{"/mtproto.RPCChannels/channels_getAdminLog", func() interface{} { return new(Channels_AdminLogResults) }}, + "TLChannelsSetStickers": RPCContextTuple{"/mtproto.RPCChannels/channels_setStickers", func() interface{} { return new(Bool) }}, + "TLChannelsReadMessageContents": RPCContextTuple{"/mtproto.RPCChannels/channels_readMessageContents", func() interface{} { return new(Bool) }}, + "TLChannelsDeleteHistory": RPCContextTuple{"/mtproto.RPCChannels/channels_deleteHistory", func() interface{} { return new(Bool) }}, + "TLChannelsTogglePreHistoryHidden": RPCContextTuple{"/mtproto.RPCChannels/channels_togglePreHistoryHidden", func() interface{} { return new(Updates) }}, + "TLChannelsGetLeftChannels": RPCContextTuple{"/mtproto.RPCChannels/channels_getLeftChannels", func() interface{} { return new(Messages_Chats) }}, + "TLPaymentsGetPaymentForm": RPCContextTuple{"/mtproto.RPCPayments/payments_getPaymentForm", func() interface{} { return new(Payments_PaymentForm) }}, + "TLPaymentsGetPaymentReceipt": RPCContextTuple{"/mtproto.RPCPayments/payments_getPaymentReceipt", func() interface{} { return new(Payments_PaymentReceipt) }}, + "TLPaymentsValidateRequestedInfo": RPCContextTuple{"/mtproto.RPCPayments/payments_validateRequestedInfo", func() interface{} { return new(Payments_ValidatedRequestedInfo) }}, + "TLPaymentsSendPaymentForm": RPCContextTuple{"/mtproto.RPCPayments/payments_sendPaymentForm", func() interface{} { return new(Payments_PaymentResult) }}, + "TLPaymentsGetSavedInfo": RPCContextTuple{"/mtproto.RPCPayments/payments_getSavedInfo", func() interface{} { return new(Payments_SavedInfo) }}, + "TLPaymentsClearSavedInfo": RPCContextTuple{"/mtproto.RPCPayments/payments_clearSavedInfo", func() interface{} { return new(Bool) }}, + "TLAuthSendCodeLayer51": RPCContextTuple{"/mtproto.RPCAuth/auth_sendCodeLayer51", func() interface{} { return new(Auth_SentCode) }}, + "TLAuthSendCode": RPCContextTuple{"/mtproto.RPCAuth/auth_sendCode", func() interface{} { return new(Auth_SentCode) }}, + "TLAuthSignUp": RPCContextTuple{"/mtproto.RPCAuth/auth_signUp", func() interface{} { return new(Auth_Authorization) }}, + "TLAuthSignIn": RPCContextTuple{"/mtproto.RPCAuth/auth_signIn", func() interface{} { return new(Auth_Authorization) }}, + "TLAuthLogOut": RPCContextTuple{"/mtproto.RPCAuth/auth_logOut", func() interface{} { return new(Bool) }}, + "TLAuthResetAuthorizations": RPCContextTuple{"/mtproto.RPCAuth/auth_resetAuthorizations", func() interface{} { return new(Bool) }}, + "TLAuthExportAuthorization": RPCContextTuple{"/mtproto.RPCAuth/auth_exportAuthorization", func() interface{} { return new(Auth_ExportedAuthorization) }}, + "TLAuthImportAuthorization": RPCContextTuple{"/mtproto.RPCAuth/auth_importAuthorization", func() interface{} { return new(Auth_Authorization) }}, + "TLAuthBindTempAuthKey": RPCContextTuple{"/mtproto.RPCAuth/auth_bindTempAuthKey", func() interface{} { return new(Bool) }}, + "TLAuthImportBotAuthorization": RPCContextTuple{"/mtproto.RPCAuth/auth_importBotAuthorization", func() interface{} { return new(Auth_Authorization) }}, + "TLAuthCheckPassword": RPCContextTuple{"/mtproto.RPCAuth/auth_checkPassword", func() interface{} { return new(Auth_Authorization) }}, + "TLAuthRequestPasswordRecovery": RPCContextTuple{"/mtproto.RPCAuth/auth_requestPasswordRecovery", func() interface{} { return new(Auth_PasswordRecovery) }}, + "TLAuthRecoverPassword": RPCContextTuple{"/mtproto.RPCAuth/auth_recoverPassword", func() interface{} { return new(Auth_Authorization) }}, + "TLAuthResendCode": RPCContextTuple{"/mtproto.RPCAuth/auth_resendCode", func() interface{} { return new(Auth_SentCode) }}, + "TLAuthCancelCode": RPCContextTuple{"/mtproto.RPCAuth/auth_cancelCode", func() interface{} { return new(Bool) }}, + "TLAuthDropTempAuthKeys": RPCContextTuple{"/mtproto.RPCAuth/auth_dropTempAuthKeys", func() interface{} { return new(Bool) }}, + "TLBotsSendCustomRequest": RPCContextTuple{"/mtproto.RPCBots/bots_sendCustomRequest", func() interface{} { return new(DataJSON) }}, + "TLBotsAnswerWebhookJSONQuery": RPCContextTuple{"/mtproto.RPCBots/bots_answerWebhookJSONQuery", func() interface{} { return new(Bool) }}, "TLSessionSetClientSessionInfo": RPCContextTuple{"/mtproto.RPCSession/session_setClientSessionInfo", func() interface{} { return new(Bool) }}, "TLSessionGetAuthorizations": RPCContextTuple{"/mtproto.RPCSession/session_getAuthorizations", func() interface{} { return new(Account_Authorizations) }}, "TLSessionResetAuthorization": RPCContextTuple{"/mtproto.RPCSession/session_resetAuthorization", func() interface{} { return new(Int64) }}, diff --git a/mtproto/schema.tl.core_types.pb.go b/mtproto/schema.tl.core_types.pb.go index 52319258d..d1801b426 100644 --- a/mtproto/schema.tl.core_types.pb.go +++ b/mtproto/schema.tl.core_types.pb.go @@ -18,165 +18,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package -// ///////////////////////////////////////////////////////////////////////////// -// Bool <-- -// + TL_boolFalse -// + TL_boolTrue -// -type Bool_Data struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Bool_Data) Reset() { *m = Bool_Data{} } -func (m *Bool_Data) String() string { return proto.CompactTextString(m) } -func (*Bool_Data) ProtoMessage() {} -func (*Bool_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{0} -} -func (m *Bool_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Bool_Data.Unmarshal(m, b) -} -func (m *Bool_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Bool_Data.Marshal(b, m, deterministic) -} -func (dst *Bool_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Bool_Data.Merge(dst, src) -} -func (m *Bool_Data) XXX_Size() int { - return xxx_messageInfo_Bool_Data.Size(m) -} -func (m *Bool_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Bool_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_Bool_Data proto.InternalMessageInfo - -type Bool struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Bool_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Bool) Reset() { *m = Bool{} } -func (m *Bool) String() string { return proto.CompactTextString(m) } -func (*Bool) ProtoMessage() {} -func (*Bool) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{1} -} -func (m *Bool) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Bool.Unmarshal(m, b) -} -func (m *Bool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Bool.Marshal(b, m, deterministic) -} -func (dst *Bool) XXX_Merge(src proto.Message) { - xxx_messageInfo_Bool.Merge(dst, src) -} -func (m *Bool) XXX_Size() int { - return xxx_messageInfo_Bool.Size(m) -} -func (m *Bool) XXX_DiscardUnknown() { - xxx_messageInfo_Bool.DiscardUnknown(m) -} - -var xxx_messageInfo_Bool proto.InternalMessageInfo - -func (m *Bool) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} - -func (m *Bool) GetData2() *Bool_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// boolFalse#bc799737 = Bool; -type TLBoolFalse struct { - Data2 *Bool_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLBoolFalse) Reset() { *m = TLBoolFalse{} } -func (m *TLBoolFalse) String() string { return proto.CompactTextString(m) } -func (*TLBoolFalse) ProtoMessage() {} -func (*TLBoolFalse) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{2} -} -func (m *TLBoolFalse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBoolFalse.Unmarshal(m, b) -} -func (m *TLBoolFalse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBoolFalse.Marshal(b, m, deterministic) -} -func (dst *TLBoolFalse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBoolFalse.Merge(dst, src) -} -func (m *TLBoolFalse) XXX_Size() int { - return xxx_messageInfo_TLBoolFalse.Size(m) -} -func (m *TLBoolFalse) XXX_DiscardUnknown() { - xxx_messageInfo_TLBoolFalse.DiscardUnknown(m) -} - -var xxx_messageInfo_TLBoolFalse proto.InternalMessageInfo - -func (m *TLBoolFalse) GetData2() *Bool_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// boolTrue#997275b5 = Bool; -type TLBoolTrue struct { - Data2 *Bool_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLBoolTrue) Reset() { *m = TLBoolTrue{} } -func (m *TLBoolTrue) String() string { return proto.CompactTextString(m) } -func (*TLBoolTrue) ProtoMessage() {} -func (*TLBoolTrue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{3} -} -func (m *TLBoolTrue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBoolTrue.Unmarshal(m, b) -} -func (m *TLBoolTrue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBoolTrue.Marshal(b, m, deterministic) -} -func (dst *TLBoolTrue) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBoolTrue.Merge(dst, src) -} -func (m *TLBoolTrue) XXX_Size() int { - return xxx_messageInfo_TLBoolTrue.Size(m) -} -func (m *TLBoolTrue) XXX_DiscardUnknown() { - xxx_messageInfo_TLBoolTrue.DiscardUnknown(m) -} - -var xxx_messageInfo_TLBoolTrue proto.InternalMessageInfo - -func (m *TLBoolTrue) GetData2() *Bool_Data { - if m != nil { - return m.Data2 - } - return nil -} - // ///////////////////////////////////////////////////////////////////////////// // True <-- // + TL_true @@ -191,7 +32,7 @@ func (m *True_Data) Reset() { *m = True_Data{} } func (m *True_Data) String() string { return proto.CompactTextString(m) } func (*True_Data) ProtoMessage() {} func (*True_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{4} + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{0} } func (m *True_Data) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_True_Data.Unmarshal(m, b) @@ -223,7 +64,7 @@ func (m *True) Reset() { *m = True{} } func (m *True) String() string { return proto.CompactTextString(m) } func (*True) ProtoMessage() {} func (*True) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{5} + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{1} } func (m *True) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_True.Unmarshal(m, b) @@ -269,7 +110,7 @@ func (m *TLTrue) Reset() { *m = TLTrue{} } func (m *TLTrue) String() string { return proto.CompactTextString(m) } func (*TLTrue) ProtoMessage() {} func (*TLTrue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{6} + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{2} } func (m *TLTrue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLTrue.Unmarshal(m, b) @@ -312,7 +153,7 @@ func (m *Error_Data) Reset() { *m = Error_Data{} } func (m *Error_Data) String() string { return proto.CompactTextString(m) } func (*Error_Data) ProtoMessage() {} func (*Error_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{7} + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{3} } func (m *Error_Data) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Error_Data.Unmarshal(m, b) @@ -358,7 +199,7 @@ func (m *Error) Reset() { *m = Error{} } func (m *Error) String() string { return proto.CompactTextString(m) } func (*Error) ProtoMessage() {} func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{8} + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{4} } func (m *Error) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Error.Unmarshal(m, b) @@ -404,7 +245,7 @@ func (m *TLError) Reset() { *m = TLError{} } func (m *TLError) String() string { return proto.CompactTextString(m) } func (*TLError) ProtoMessage() {} func (*TLError) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{9} + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{5} } func (m *TLError) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLError.Unmarshal(m, b) @@ -445,7 +286,7 @@ func (m *Null_Data) Reset() { *m = Null_Data{} } func (m *Null_Data) String() string { return proto.CompactTextString(m) } func (*Null_Data) ProtoMessage() {} func (*Null_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{10} + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{6} } func (m *Null_Data) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Null_Data.Unmarshal(m, b) @@ -477,7 +318,7 @@ func (m *Null) Reset() { *m = Null{} } func (m *Null) String() string { return proto.CompactTextString(m) } func (*Null) ProtoMessage() {} func (*Null) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{11} + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{7} } func (m *Null) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Null.Unmarshal(m, b) @@ -523,7 +364,7 @@ func (m *TLNull) Reset() { *m = TLNull{} } func (m *TLNull) String() string { return proto.CompactTextString(m) } func (*TLNull) ProtoMessage() {} func (*TLNull) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b, []int{12} + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{8} } func (m *TLNull) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLNull.Unmarshal(m, b) @@ -550,11 +391,166 @@ func (m *TLNull) GetData2() *Null_Data { return nil } +// ///////////////////////////////////////////////////////////////////////////// +// Bool <-- +// + TL_boolFalse +// + TL_boolTrue +// +type Bool_Data struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bool_Data) Reset() { *m = Bool_Data{} } +func (m *Bool_Data) String() string { return proto.CompactTextString(m) } +func (*Bool_Data) ProtoMessage() {} +func (*Bool_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{9} +} +func (m *Bool_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bool_Data.Unmarshal(m, b) +} +func (m *Bool_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bool_Data.Marshal(b, m, deterministic) +} +func (dst *Bool_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bool_Data.Merge(dst, src) +} +func (m *Bool_Data) XXX_Size() int { + return xxx_messageInfo_Bool_Data.Size(m) +} +func (m *Bool_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Bool_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_Bool_Data proto.InternalMessageInfo + +type Bool struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Bool_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bool) Reset() { *m = Bool{} } +func (m *Bool) String() string { return proto.CompactTextString(m) } +func (*Bool) ProtoMessage() {} +func (*Bool) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{10} +} +func (m *Bool) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bool.Unmarshal(m, b) +} +func (m *Bool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bool.Marshal(b, m, deterministic) +} +func (dst *Bool) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bool.Merge(dst, src) +} +func (m *Bool) XXX_Size() int { + return xxx_messageInfo_Bool.Size(m) +} +func (m *Bool) XXX_DiscardUnknown() { + xxx_messageInfo_Bool.DiscardUnknown(m) +} + +var xxx_messageInfo_Bool proto.InternalMessageInfo + +func (m *Bool) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Bool) GetData2() *Bool_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// boolFalse#bc799737 = Bool; +type TLBoolFalse struct { + Data2 *Bool_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLBoolFalse) Reset() { *m = TLBoolFalse{} } +func (m *TLBoolFalse) String() string { return proto.CompactTextString(m) } +func (*TLBoolFalse) ProtoMessage() {} +func (*TLBoolFalse) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{11} +} +func (m *TLBoolFalse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBoolFalse.Unmarshal(m, b) +} +func (m *TLBoolFalse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBoolFalse.Marshal(b, m, deterministic) +} +func (dst *TLBoolFalse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBoolFalse.Merge(dst, src) +} +func (m *TLBoolFalse) XXX_Size() int { + return xxx_messageInfo_TLBoolFalse.Size(m) +} +func (m *TLBoolFalse) XXX_DiscardUnknown() { + xxx_messageInfo_TLBoolFalse.DiscardUnknown(m) +} + +var xxx_messageInfo_TLBoolFalse proto.InternalMessageInfo + +func (m *TLBoolFalse) GetData2() *Bool_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// boolTrue#997275b5 = Bool; +type TLBoolTrue struct { + Data2 *Bool_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLBoolTrue) Reset() { *m = TLBoolTrue{} } +func (m *TLBoolTrue) String() string { return proto.CompactTextString(m) } +func (*TLBoolTrue) ProtoMessage() {} +func (*TLBoolTrue) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69, []int{12} +} +func (m *TLBoolTrue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBoolTrue.Unmarshal(m, b) +} +func (m *TLBoolTrue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBoolTrue.Marshal(b, m, deterministic) +} +func (dst *TLBoolTrue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBoolTrue.Merge(dst, src) +} +func (m *TLBoolTrue) XXX_Size() int { + return xxx_messageInfo_TLBoolTrue.Size(m) +} +func (m *TLBoolTrue) XXX_DiscardUnknown() { + xxx_messageInfo_TLBoolTrue.DiscardUnknown(m) +} + +var xxx_messageInfo_TLBoolTrue proto.InternalMessageInfo + +func (m *TLBoolTrue) GetData2() *Bool_Data { + if m != nil { + return m.Data2 + } + return nil +} + func init() { - proto.RegisterType((*Bool_Data)(nil), "mtproto.Bool_Data") - proto.RegisterType((*Bool)(nil), "mtproto.Bool") - proto.RegisterType((*TLBoolFalse)(nil), "mtproto.TL_boolFalse") - proto.RegisterType((*TLBoolTrue)(nil), "mtproto.TL_boolTrue") proto.RegisterType((*True_Data)(nil), "mtproto.True_Data") proto.RegisterType((*True)(nil), "mtproto.True") proto.RegisterType((*TLTrue)(nil), "mtproto.TL_true") @@ -564,32 +560,36 @@ func init() { proto.RegisterType((*Null_Data)(nil), "mtproto.Null_Data") proto.RegisterType((*Null)(nil), "mtproto.Null") proto.RegisterType((*TLNull)(nil), "mtproto.TL_null") + proto.RegisterType((*Bool_Data)(nil), "mtproto.Bool_Data") + proto.RegisterType((*Bool)(nil), "mtproto.Bool") + proto.RegisterType((*TLBoolFalse)(nil), "mtproto.TL_boolFalse") + proto.RegisterType((*TLBoolTrue)(nil), "mtproto.TL_boolTrue") } func init() { - proto.RegisterFile("schema.tl.core_types.proto", fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b) -} - -var fileDescriptor_schema_tl_core_types_4a4c3633505dcc6b = []byte{ - // 318 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0xcf, 0x4b, 0x3b, 0x31, - 0x10, 0xc5, 0x69, 0x69, 0xbf, 0xfd, 0xee, 0x44, 0x3c, 0x44, 0x94, 0xd2, 0x83, 0x94, 0x3d, 0x55, - 0x84, 0x1c, 0xb6, 0x8a, 0x3d, 0xd7, 0x1f, 0x78, 0x58, 0x45, 0x96, 0xdc, 0x97, 0x34, 0x0d, 0x56, - 0x49, 0x37, 0x25, 0x3b, 0x0b, 0xfa, 0xdf, 0x4b, 0xd2, 0x36, 0xdb, 0x22, 0x88, 0x8b, 0xf4, 0xf6, - 0x32, 0x99, 0x4f, 0xde, 0x1b, 0x26, 0x30, 0x28, 0xe5, 0x42, 0x2d, 0x05, 0x43, 0xcd, 0xa4, 0xb1, - 0x2a, 0xc7, 0xcf, 0x95, 0x2a, 0xd9, 0xca, 0x1a, 0x34, 0xb4, 0xb7, 0x44, 0x2f, 0x06, 0xa7, 0x3b, - 0x4d, 0x56, 0x8e, 0x93, 0xf5, 0x7d, 0x4c, 0x20, 0x9a, 0x1a, 0xa3, 0xf3, 0x3b, 0x81, 0x22, 0x7e, - 0x87, 0x8e, 0x3b, 0xd0, 0x09, 0x10, 0x69, 0x8a, 0x12, 0x6d, 0x25, 0xd1, 0xd8, 0x7e, 0x6b, 0xd8, - 0x1a, 0x1d, 0x27, 0x67, 0x6c, 0xf3, 0x14, 0xe3, 0xe9, 0x6d, 0x7d, 0x9b, 0xed, 0xb6, 0xd2, 0x11, - 0x74, 0xe7, 0x02, 0x45, 0xd2, 0x6f, 0x0f, 0x5b, 0x23, 0x92, 0xd0, 0xc0, 0x04, 0x93, 0x6c, 0xdd, - 0x10, 0x4f, 0xe0, 0x88, 0xa7, 0xf9, 0xcc, 0x18, 0xfd, 0x20, 0x74, 0xa9, 0x1a, 0x90, 0x37, 0x40, - 0x36, 0x24, 0xb7, 0x55, 0x13, 0x90, 0x40, 0xe4, 0x88, 0x30, 0xab, 0xc7, 0x0f, 0x30, 0x6b, 0x30, - 0xd9, 0x1a, 0x8f, 0xa1, 0xc7, 0xd3, 0x1c, 0x7f, 0x4c, 0xfb, 0x0d, 0xba, 0x02, 0xb8, 0xb7, 0xd6, - 0x58, 0x5f, 0xa4, 0x14, 0x3a, 0xd2, 0xcc, 0x95, 0xcf, 0xd7, 0xcd, 0xbc, 0x76, 0x35, 0x54, 0x1f, - 0xe8, 0x9f, 0x8a, 0x32, 0xaf, 0x63, 0x0d, 0x5d, 0x4f, 0xfd, 0x61, 0xae, 0x8b, 0xfd, 0x88, 0x27, - 0x81, 0xa9, 0xe3, 0x6c, 0x33, 0x5e, 0xc3, 0x7f, 0x9e, 0xe6, 0xca, 0x1b, 0x36, 0xc0, 0x08, 0x44, - 0xcf, 0x95, 0xae, 0x3f, 0x9d, 0x3b, 0x1c, 0x62, 0x11, 0xc1, 0x64, 0x7f, 0x11, 0x85, 0xb3, 0xfb, - 0x35, 0x34, 0xbd, 0x84, 0x73, 0xb9, 0x10, 0xc8, 0x0a, 0x35, 0xab, 0xb4, 0x60, 0x4e, 0xab, 0xe2, - 0xf5, 0xad, 0x50, 0x5b, 0x64, 0xda, 0x7b, 0xe2, 0x2f, 0x4e, 0x3c, 0xb6, 0x67, 0xff, 0x7c, 0x65, - 0xfc, 0x15, 0x00, 0x00, 0xff, 0xff, 0x46, 0xce, 0x2e, 0x60, 0x94, 0x03, 0x00, 0x00, + proto.RegisterFile("schema.tl.core_types.proto", fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69) +} + +var fileDescriptor_schema_tl_core_types_30e4aa7fb1b33b69 = []byte{ + // 319 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0x4f, 0x4b, 0xc3, 0x40, + 0x10, 0xc5, 0x69, 0x69, 0xad, 0x99, 0x15, 0x0f, 0x2b, 0x4a, 0xe9, 0x41, 0x4a, 0x4e, 0x15, 0x61, + 0x0f, 0xa9, 0x62, 0xcf, 0xf5, 0x0f, 0x1e, 0xa2, 0x48, 0xd8, 0x7b, 0xd8, 0x6c, 0x17, 0xab, 0x6c, + 0xb3, 0x65, 0x33, 0x01, 0xfd, 0xf6, 0xb2, 0xdb, 0x26, 0x69, 0x3d, 0x48, 0x8b, 0xf4, 0xf6, 0x66, + 0x76, 0x7e, 0xf3, 0x5e, 0x98, 0xc0, 0xa0, 0x90, 0x73, 0xb5, 0x10, 0x0c, 0x35, 0x93, 0xc6, 0xaa, + 0x14, 0xbf, 0x97, 0xaa, 0x60, 0x4b, 0x6b, 0xd0, 0xd0, 0xde, 0x02, 0xbd, 0x18, 0x9c, 0x6f, 0x0c, + 0x59, 0x39, 0x8e, 0x56, 0xef, 0x21, 0x81, 0x80, 0xdb, 0x52, 0xa5, 0x0f, 0x02, 0x45, 0xf8, 0x09, + 0x1d, 0x57, 0xd0, 0x09, 0x10, 0x69, 0xf2, 0x02, 0x6d, 0x29, 0xd1, 0xd8, 0x7e, 0x6b, 0xd8, 0x1a, + 0x9d, 0x46, 0x17, 0x6c, 0xbd, 0x8a, 0xf1, 0xf8, 0xbe, 0x79, 0x4d, 0x36, 0x47, 0xe9, 0x08, 0xba, + 0x33, 0x81, 0x22, 0xea, 0xb7, 0x87, 0xad, 0x11, 0x89, 0x68, 0xc3, 0x54, 0x26, 0xc9, 0x6a, 0x20, + 0x1c, 0x43, 0x8f, 0xc7, 0x29, 0x3a, 0xbb, 0xdd, 0xa1, 0x1b, 0x80, 0x47, 0x6b, 0x8d, 0xf5, 0x4d, + 0x4a, 0xa1, 0x23, 0xcd, 0x4c, 0xf9, 0x7c, 0xdd, 0xc4, 0x6b, 0xd7, 0x43, 0xf5, 0x85, 0x7e, 0x55, + 0x90, 0x78, 0x1d, 0x6a, 0xe8, 0x7a, 0xea, 0x1f, 0xdf, 0x75, 0xb5, 0x1d, 0xf1, 0xac, 0x66, 0x9a, + 0x38, 0x55, 0xc6, 0x5b, 0x38, 0xe6, 0x71, 0xaa, 0xbc, 0xe1, 0x1e, 0x18, 0x81, 0xe0, 0xb5, 0xd4, + 0xba, 0x3e, 0x84, 0x2b, 0x0e, 0x71, 0x88, 0xda, 0x64, 0xfb, 0x10, 0xb9, 0xb3, 0xdb, 0x1d, 0x22, + 0x10, 0x4c, 0x8d, 0x69, 0xd2, 0xba, 0xe2, 0x10, 0x69, 0x6b, 0x93, 0xca, 0x78, 0x02, 0x27, 0x3c, + 0x4e, 0x33, 0x63, 0xf4, 0x93, 0xd0, 0x85, 0xda, 0x83, 0xbc, 0x03, 0xb2, 0x26, 0xf9, 0x9f, 0x3f, + 0xdd, 0x6f, 0x70, 0x7a, 0x0d, 0x97, 0x72, 0x2e, 0x90, 0xe5, 0x2a, 0x2b, 0xb5, 0x60, 0x4e, 0xab, + 0xfc, 0xfd, 0x23, 0x57, 0x15, 0x32, 0xed, 0xbd, 0xf0, 0x37, 0x27, 0x9e, 0xdb, 0xd9, 0x91, 0xef, + 0x8c, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x05, 0x27, 0x20, 0x94, 0x03, 0x00, 0x00, } diff --git a/mtproto/schema.tl.core_types.proto b/mtproto/schema.tl.core_types.proto index b8588c8a9..f20b40020 100644 --- a/mtproto/schema.tl.core_types.proto +++ b/mtproto/schema.tl.core_types.proto @@ -29,30 +29,6 @@ option optimize_for = CODE_SIZE; import "schema.tl.crc32.proto"; -/////////////////////////////////////////////////////////////////////////////// -// Bool <-- -// + TL_boolFalse -// + TL_boolTrue -// -message Bool_Data { -} - -message Bool { - TLConstructor constructor = 1; - Bool_Data data2 = 2; -} - -// boolFalse#bc799737 = Bool; -message TL_boolFalse { - Bool_Data data2 = 2; -} - -// boolTrue#997275b5 = Bool; -message TL_boolTrue { - Bool_Data data2 = 2; -} - - /////////////////////////////////////////////////////////////////////////////// // True <-- // + TL_true @@ -109,3 +85,27 @@ message TL_null { } +/////////////////////////////////////////////////////////////////////////////// +// Bool <-- +// + TL_boolFalse +// + TL_boolTrue +// +message Bool_Data { +} + +message Bool { + TLConstructor constructor = 1; + Bool_Data data2 = 2; +} + +// boolFalse#bc799737 = Bool; +message TL_boolFalse { + Bool_Data data2 = 2; +} + +// boolTrue#997275b5 = Bool; +message TL_boolTrue { + Bool_Data data2 = 2; +} + + diff --git a/mtproto/schema.tl.crc32.pb.go b/mtproto/schema.tl.crc32.pb.go index d2f9d809b..59bb7accd 100644 --- a/mtproto/schema.tl.crc32.pb.go +++ b/mtproto/schema.tl.crc32.pb.go @@ -779,6 +779,7 @@ const ( TLConstructor_CRC32_account_unregisterDeviceLayer71 TLConstructor = 1707432768 TLConstructor_CRC32_messages_getMessagesLayer71 TLConstructor = 1109588596 TLConstructor_CRC32_langpack_getLangPackLayer71 TLConstructor = -1699363442 + TLConstructor_CRC32_messages_getRecentLocationsLayer72 TLConstructor = 613691874 TLConstructor_CRC32_invokeAfterMsg TLConstructor = -878758099 TLConstructor_CRC32_invokeAfterMsgs TLConstructor = 1036301552 TLConstructor_CRC32_initConnection TLConstructor = 2018609336 @@ -1848,6 +1849,7 @@ var TLConstructor_name = map[int32]string{ 1707432768: "CRC32_account_unregisterDeviceLayer71", 1109588596: "CRC32_messages_getMessagesLayer71", -1699363442: "CRC32_langpack_getLangPackLayer71", + 613691874: "CRC32_messages_getRecentLocationsLayer72", -878758099: "CRC32_invokeAfterMsg", 1036301552: "CRC32_invokeAfterMsgs", 2018609336: "CRC32_initConnection", @@ -2916,6 +2918,7 @@ var TLConstructor_value = map[string]int32{ "CRC32_account_unregisterDeviceLayer71": 1707432768, "CRC32_messages_getMessagesLayer71": 1109588596, "CRC32_langpack_getLangPackLayer71": -1699363442, + "CRC32_messages_getRecentLocationsLayer72": 613691874, "CRC32_invokeAfterMsg": -878758099, "CRC32_invokeAfterMsgs": 1036301552, "CRC32_initConnection": 2018609336, @@ -3230,7 +3233,7 @@ func (x TLConstructor) String() string { return proto.EnumName(TLConstructor_name, int32(x)) } func (TLConstructor) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_crc32_c23d3f37a1e7d5de, []int{0} + return fileDescriptor_schema_tl_crc32_d92cc748de2870d3, []int{0} } func init() { @@ -3238,11 +3241,11 @@ func init() { } func init() { - proto.RegisterFile("schema.tl.crc32.proto", fileDescriptor_schema_tl_crc32_c23d3f37a1e7d5de) + proto.RegisterFile("schema.tl.crc32.proto", fileDescriptor_schema_tl_crc32_d92cc748de2870d3) } -var fileDescriptor_schema_tl_crc32_c23d3f37a1e7d5de = []byte{ - // 14926 bytes of a gzipped FileDescriptorProto +var fileDescriptor_schema_tl_crc32_d92cc748de2870d3 = []byte{ + // 14943 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0xbd, 0x69, 0x54, 0x15, 0x59, 0x9e, 0x2f, 0xfa, 0x64, 0x5c, 0x8b, 0xfb, 0xba, 0xdf, 0xbe, 0x74, 0x75, 0x77, 0x0d, 0xdd, 0xd5, 0x5d, 0xb7, 0xfa, 0x76, 0x55, 0x77, 0x75, 0x67, 0x77, 0x66, 0x75, 0x65, 0xd7, 0x7d, 0x6f, 0xdd, @@ -3252,928 +3255,929 @@ var fileDescriptor_schema_tl_crc32_c23d3f37a1e7d5de = []byte{ 0x32, 0x8a, 0x82, 0x80, 0x22, 0xa0, 0x28, 0x32, 0xa3, 0xe2, 0x99, 0xcf, 0x5b, 0x31, 0xec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x64, 0x9b, - 0x90, 0x02, 0x5e, 0x5d, 0x9e, 0x71, 0x46, 0x6a, 0xfc, 0x8b, 0x5a, 0x1a, 0x07, 0xad, 0x89, 0xa0, - 0xcd, 0xbb, 0x7d, 0xd6, 0xa8, 0x30, 0x26, 0x89, 0x12, 0xc0, 0x44, 0xcf, 0xfc, 0xcd, 0x15, 0x06, - 0x85, 0x9b, 0x78, 0xc8, 0x81, 0x49, 0x77, 0xed, 0x48, 0x64, 0xf4, 0x4f, 0xd1, 0xee, 0xc5, 0x6b, - 0x32, 0x0c, 0xb4, 0x02, 0xc7, 0xe3, 0x6b, 0xbb, 0x42, 0x34, 0x82, 0x2d, 0x95, 0x8b, 0x15, 0xe5, - 0x4e, 0x75, 0x67, 0x15, 0xdf, 0x23, 0x2f, 0x2a, 0x15, 0x22, 0xf5, 0xac, 0x7e, 0x3c, 0xad, 0xce, - 0x4f, 0x4c, 0xab, 0x8a, 0x00, 0x87, 0x7b, 0x4e, 0xdf, 0xf6, 0x12, 0x3c, 0x8f, 0xdc, 0x85, 0x24, - 0x96, 0x81, 0x31, 0x22, 0x7f, 0x66, 0x12, 0xc0, 0x9b, 0xf9, 0xf6, 0x02, 0xc3, 0x36, 0xc4, 0xd5, - 0x06, 0xfe, 0x67, 0xf5, 0x67, 0xfd, 0x88, 0xe8, 0x47, 0x13, 0xa5, 0xab, 0x68, 0x0b, 0xb8, 0x7a, - 0xe4, 0x66, 0x1f, 0x79, 0x84, 0xb4, 0x4d, 0x20, 0x0f, 0xc4, 0xff, 0xea, 0x60, 0x95, 0x13, 0x91, - 0xd9, 0xbf, 0x26, 0x31, 0x9b, 0x6c, 0x56, 0x96, 0x32, 0x43, 0xb3, 0xb4, 0x61, 0x40, 0xaa, 0xab, - 0x68, 0xd1, 0xb0, 0x29, 0xb9, 0xf8, 0xea, 0xde, 0x97, 0xc7, 0xdd, 0x04, 0xc5, 0xd6, 0x30, 0x9f, - 0x43, 0x56, 0x22, 0x3d, 0xa0, 0x79, 0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0x62, 0x1b, 0x19, 0x90, 0x7f, 0xa6, 0xfd, 0x66, 0x58, 0x90, 0x69, 0x88, 0xb1, - 0xf3, 0x02, 0x9b, 0x2c, 0xff, 0x0d, 0x1e, 0xd6, 0xe5, 0x0d, 0xf8, 0xdf, 0x37, 0xc1, 0xab, 0x58, - 0x61, 0xa5, 0xd5, 0xca, 0x6e, 0x85, 0x66, 0xe0, 0x1b, 0x2d, 0x19, 0x75, 0x11, 0xea, 0x94, 0xc0, - 0x5e, 0x48, 0xec, 0xed, 0xef, 0x29, 0xab, 0x1d, 0xf2, 0xca, 0x64, 0xdc, 0x9f, 0x2c, 0x7a, 0x14, - 0x6c, 0xeb, 0x91, 0x70, 0xd0, 0xdf, 0xb8, 0xd8, 0xee, 0x25, 0x54, 0x5f, 0x66, 0x9a, 0xb2, 0xb2, - 0x16, 0x30, 0x3c, 0xed, 0x46, 0xb2, 0xc2, 0x0f, 0x11, 0xab, 0x6f, 0xd3, 0x6e, 0x88, 0x0b, 0xcf, - 0x5a, 0x8e, 0x85, 0x68, 0xea, 0x07, 0xa9, 0x04, 0x9c, 0xbd, 0x7e, 0xea, 0x90, 0xca, 0xf8, 0xfe, - 0x00, 0x2b, 0x89, 0xa3, 0xff, 0xa0, 0x5c, 0x12, 0x37, 0x9b, 0x47, 0x6d, 0xda, 0xc5, 0xa2, 0x16, - 0x82, 0xfc, 0x19, 0xdf, 0x2d, 0xec, 0x56, 0x95, 0x0a, 0x62, 0x28, 0x53, 0x12, 0x34, 0x4b, 0xc5, - 0xae, 0xa9, 0x02, 0xa4, 0x41, 0x51, 0x99, 0x71, 0x4b, 0x80, 0x6c, 0x33, 0x7a, 0x7d, 0x34, 0x43, - 0xbc, 0x78, 0xfe, 0x34, 0xb0, 0x10, 0xa4, 0x8e, 0x0f, 0xff, 0x40, 0x13, 0xe6, 0x24, 0xb5, 0xb4, - 0x29, 0x09, 0x9a, 0x36, 0x4b, 0xd2, 0x15, 0x03, 0xc1, 0xbe, 0x3b, 0xae, 0x0c, 0x07, 0xd1, 0xb2, - 0x84, 0xe2, 0x21, 0x23, 0xc4, 0xb0, 0x66, 0x08, 0x46, 0x1f, 0xbe, 0x6a, 0xc5, 0x74, 0x95, 0x52, - 0x21, 0x15, 0xa0, 0xc2, 0x3a, 0x9c, 0x73, 0xe8, 0xa5, 0x87, 0xd8, 0xaf, 0x12, 0x0c, 0x7e, 0x27, - 0x5f, 0x16, 0x81, 0x1a, 0xaf, 0x0b, 0x35, 0x43, 0x1e, 0xaf, 0x91, 0xd2, 0xe0, 0x2b, 0x56, 0xa0, - 0x13, 0x53, 0x62, 0xa1, 0x44, 0x46, 0x16, 0xef, 0x90, 0x4c, 0x2d, 0x86, 0x11, 0x49, 0x0d, 0x0f, - 0x8e, 0x64, 0xcc, 0xb6, 0x19, 0x97, 0x8b, 0x34, 0x80, 0x07, 0x5d, 0x3d, 0x03, 0xfd, 0xa4, 0x44, - 0x24, 0xb6, 0x2e, 0x63, 0xe2, 0xa0, 0x20, 0xd0, 0x8c, 0x85, 0x07, 0xfb, 0xaa, 0xde, 0x8c, 0x39, - 0x09, 0xe9, 0xd1, 0xa6, 0x87, 0x9d, 0xbc, 0xde, 0xe8, 0x72, 0x11, 0xca, 0x10, 0x9b, 0xa4, 0x25, - 0x52, 0x00, 0x9d, 0x9d, 0x07, 0xf6, 0x3a, 0x08, 0x5d, 0xca, 0x56, 0xca, 0x6a, 0x8d, 0xa5, 0x6c, - 0x90, 0x03, 0x03, 0x33, 0x0d, 0xcf, 0x3d, 0x84, 0xd6, 0x5b, 0x2d, 0x8d, 0x63, 0xad, 0xb4, 0x19, - 0x9c, 0xf6, 0xdd, 0x39, 0x1a, 0x41, 0x28, 0x07, 0x36, 0x40, 0x71, 0x0a, 0x37, 0x40, 0x8a, 0x67, - 0x99, 0x38, 0x1b, 0x95, 0x0c, 0x6a, 0x72, 0xe7, 0x5b, 0xc2, 0x09, 0x79, 0x10, 0x07, 0xfd, 0x9e, - 0x66, 0xad, 0x90, 0x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 0x81, 0xce, 0xcc, 0xd3, 0x22, 0xef, 0xfd, 0x23, - 0x43, 0x4c, 0x1c, 0x64, 0xcc, 0xe0, 0xd9, 0xd2, 0x29, 0x4e, 0xbb, 0x89, 0x15, 0xaa, 0x60, 0xa6, - 0x05, 0x62, 0x35, 0xdf, 0xe5, 0x7b, 0x1f, 0xad, 0x30, 0x98, 0x29, 0x11, 0x13, 0x4b, 0x33, 0x8c, - 0x46, 0xb5, 0xde, 0xde, 0x7d, 0xd6, 0x48, 0xea, 0x56, 0xd4, 0x0f, 0x8b, 0x97, 0x6f, 0x02, 0x65, - 0xda, 0x2c, 0x77, 0x6f, 0x6c, 0xff, 0x83, 0x5a, 0x9f, 0xe1, 0x81, 0x17, 0x7b, 0x80, 0x1a, 0x3c, - 0x35, 0x96, 0x75, 0x52, 0x41, 0xa9, 0x62, 0x80, 0x8c, 0x92, 0x87, 0xa1, 0x6b, 0x76, 0xe8, 0x4d, - 0x1b, 0x32, 0x39, 0x1b, 0x1c, 0x2f, 0xa5, 0xd3, 0xca, 0xf1, 0x6a, 0x3d, 0x38, 0x5c, 0x11, 0x82, - 0x99, 0x1b, 0xe4, 0xfd, 0xc7, 0x51, 0x89, 0xea, 0xe7, 0xa7, 0x96, 0x2a, 0xd0, 0xb1, 0x37, 0x38, - 0x68, 0x6b, 0x20, 0x25, 0xd8, 0x39, 0x68, 0x56, 0x56, 0x8f, 0x07, 0x8d, 0x5d, 0x6f, 0x6a, 0x74, - 0xf7, 0x9b, 0x6c, 0xbb, 0x50, 0x31, 0x27, 0x07, 0x33, 0xfa, 0x9c, 0x84, 0xf4, 0xaa, 0x5e, 0x16, - 0x89, 0xb4, 0x05, 0xa4, 0x5d, 0x2f, 0xcd, 0x36, 0xbe, 0x49, 0x63, 0x05, 0x5e, 0x1c, 0x80, 0x05, - 0x9a, 0xc1, 0xfe, 0xee, 0xde, 0xbc, 0x50, 0x72, 0x03, 0x28, 0xa3, 0x53, 0xf5, 0xb8, 0x95, 0x23, - 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, 0x95, 0xff, 0x03, - 0x67, 0x1e, 0x9c, 0x9d, 0x73, 0xa0, 0x75, 0xfc, 0xa1, 0x01, 0x42, 0x9e, 0xd8, 0xfe, 0xba, 0x43, - 0x65, 0x98, 0x3f, 0x21, 0x8e, 0x00, 0x65, 0x8f, 0x52, 0xb7, 0x87, 0x68, 0x6e, 0x96, 0x76, 0xc9, - 0x11, 0x44, 0x32, 0x43, 0x83, 0x07, 0x97, 0xcb, 0xbe, 0xc4, 0xb7, 0x92, 0x5a, 0x12, 0x63, 0x66, - 0x36, 0x40, 0x33, 0xcd, 0x41, 0x93, 0x00, 0x9a, 0xaf, 0x54, 0xed, 0xf5, 0x13, 0xde, 0xb6, 0x66, - 0x85, 0xd9, 0x03, 0x59, 0x8d, 0x4f, 0xee, 0x60, 0xce, 0xc2, 0xb2, 0x23, 0x22, 0xb8, 0x5e, 0xdd, - 0x7d, 0x20, 0x54, 0x53, 0xd8, 0x31, 0x90, 0xe2, 0x20, 0x2f, 0xac, 0x36, 0x81, 0xb7, 0x15, 0x2f, - 0x17, 0x48, 0x37, 0x55, 0xc9, 0x83, 0x91, 0xb2, 0xd9, 0x36, 0x49, 0xd3, 0x03, 0xf6, 0x9f, 0x2f, - 0x98, 0xc5, 0x98, 0x60, 0xa9, 0x94, 0x61, 0x57, 0xaa, 0xe5, 0xd7, 0xda, 0xa7, 0x8a, 0x3d, 0x04, - 0xfb, 0x26, 0x81, 0x68, 0x66, 0x0b, 0x2d, 0xc0, 0x8d, 0xf0, 0x3b, 0x01, 0x38, 0xea, 0x2a, 0x5a, - 0xb0, 0x6d, 0x01, 0x71, 0x5e, 0x5b, 0x31, 0xfc, 0x6d, 0x77, 0x0f, 0xbb, 0x88, 0xab, 0x37, 0x00, - 0xf6, 0x0d, 0x45, 0x8b, 0xec, 0x27, 0x18, 0x49, 0x1f, 0x19, 0x0d, 0xd5, 0xe6, 0x28, 0x00, 0xb3, - 0x01, 0x7e, 0x6b, 0x87, 0xbc, 0x00, 0xc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, - 0x1c, 0xbd, 0x19, 0x82, 0xdc, 0x77, 0xe3, 0xa3, 0x4e, 0x83, 0x0e, 0xad, 0xa1, 0xbf, 0x83, 0x66, - 0x50, 0x5b, 0xe5, 0x19, 0x8b, 0xd0, 0xb4, 0xc5, 0x82, 0x22, 0xe9, 0xdf, 0xce, 0x2c, 0x1e, 0x0b, - 0x25, 0x87, 0x47, 0xd1, 0x56, 0xf0, 0x30, 0xff, 0xe5, 0x92, 0x97, 0x50, 0x06, 0x8a, 0xa5, 0x31, - 0x2c, 0x63, 0xa2, 0x04, 0x30, 0x70, 0x3b, 0xf3, 0x35, 0xa6, 0x45, 0xb0, 0x51, 0x16, 0x28, 0xf9, - 0x5e, 0xe3, 0x01, 0xe7, 0xbb, 0xbd, 0x8f, 0xf2, 0x30, 0x57, 0x1c, 0x15, 0x23, 0x87, 0x4a, 0x7b, - 0xd3, 0x2f, 0xee, 0xc2, 0x74, 0x51, 0x6a, 0x69, 0x9c, 0x3d, 0x41, 0x90, 0x00, 0x85, 0x57, 0x5e, - 0xf9, 0x1d, 0x84, 0x5a, 0x44, 0x45, 0xc9, 0x01, 0x8a, 0xab, 0x29, 0x01, 0x82, 0xa7, 0x1d, 0xf5, - 0x0f, 0xdc, 0x84, 0x83, 0xbe, 0x8a, 0x53, 0x78, 0x86, 0x99, 0xb6, 0xdb, 0x3e, 0x32, 0x0f, 0x11, - 0xfe, 0xc5, 0x24, 0x19, 0x36, 0x36, 0x5b, 0x91, 0xe9, 0x27, 0x1d, 0xa2, 0x10, 0x2c, 0x96, 0xe2, - 0x28, 0x29, 0xfa, 0x0e, 0x4c, 0xee, 0x7b, 0x59, 0x15, 0x86, 0x25, 0x2b, 0x53, 0x11, 0x1c, 0x4c, - 0x64, 0xb9, 0x64, 0x4a, 0x10, 0x47, 0x5f, 0x57, 0xd9, 0xb4, 0x93, 0x74, 0x25, 0x52, 0x91, 0x6b, - 0x58, 0x56, 0x94, 0xb2, 0x8f, 0x1d, 0x2c, 0x68, 0xc6, 0xf2, 0x69, 0xa8, 0xc5, 0xab, 0xe9, 0x2d, - 0xb4, 0xd8, 0x9f, 0x8c, 0x89, 0x1d, 0x8f, 0xbc, 0xc1, 0x86, 0xb6, 0x92, 0x31, 0x25, 0xb1, 0x1c, - 0xb8, 0x34, 0x7f, 0x65, 0x81, 0xf4, 0xc3, 0x51, 0x31, 0xeb, 0x68, 0x5e, 0x00, 0x6f, 0xf6, 0x4f, - 0xf4, 0x85, 0x62, 0xa6, 0x59, 0x54, 0x28, 0xfd, 0xf3, 0xad, 0x9d, 0x15, 0x20, 0x28, 0x71, 0xbc, - 0xbd, 0x1c, 0x62, 0x34, 0x66, 0xbb, 0xd5, 0x2a, 0x23, 0xee, 0x5f, 0xc8, 0x76, 0x61, 0xfe, 0x72, - 0x1a, 0x42, 0x3a, 0xea, 0x3b, 0xaa, 0xf2, 0xba, 0x48, 0x9b, 0x85, 0x0a, 0x51, 0x6c, 0x60, 0x97, - 0x46, 0xba, 0xc8, 0x28, 0x40, 0x15, 0x22, 0x51, 0x1e, 0xb0, 0x6d, 0xf2, 0x6e, 0x77, 0xa8, 0x41, - 0x03, 0x9f, 0x25, 0x27, 0x40, 0x33, 0xe8, 0xdd, 0x9e, 0x31, 0xef, 0x09, 0xb6, 0x38, 0x12, 0x24, - 0x96, 0xe5, 0x05, 0x30, 0xf5, 0xee, 0x72, 0x5b, 0x88, 0x96, 0x3f, 0x06, 0xfb, 0x84, 0xd5, 0x2a, - 0x5e, 0x3c, 0xdd, 0x35, 0xf7, 0x3e, 0x33, 0x68, 0x20, 0xce, 0x4a, 0x9b, 0x21, 0x9f, 0xc4, 0x6e, - 0x05, 0x13, 0x39, 0x95, 0x47, 0x57, 0x18, 0x2c, 0x0a, 0x52, 0x1d, 0x5d, 0x3d, 0xf5, 0xd8, 0xe1, - 0x0b, 0x36, 0x10, 0xd9, 0x94, 0xe7, 0xbf, 0xf2, 0x34, 0x0b, 0xf3, 0x81, 0x11, 0x4b, 0x45, 0x49, -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xa4, 0x7c, 0x94, 0x9d, 0x69, 0x1e, 0x57, 0xed, 0x98, 0x8e, 0x34, 0x2c, 0x97, - 0x15, 0x7c, 0xa3, 0x57, 0x2e, 0xef, 0xc7, 0xa6, 0x8f, 0xd7, 0x52, 0xad, 0x6d, 0x4c, 0xb1, 0xc1, - 0x58, 0xc8, 0xf1, 0x2c, 0x43, 0x59, 0x57, 0x4b, 0x0f, 0x41, 0xf0, 0x60, 0x62, 0xe7, 0xb9, 0x29, - 0xa7, 0x2e, 0x84, 0x26, 0xb0, 0x0a, 0xc5, 0xf3, 0x52, 0x20, 0xcf, 0xb6, 0xfe, 0xcb, 0xb3, 0xa1, - 0xd1, 0xff, 0xa0, 0x05, 0x4d, 0x04, 0xc0, 0x56, 0x73, 0xf4, 0x16, 0xc8, 0xad, 0xa3, 0x4d, 0x90, - 0xe1, 0x21, 0x68, 0xee, 0x38, 0xf0, 0xef, 0x1a, 0x5d, 0x25, 0xa0, 0x6b, 0x25, 0x31, 0x47, 0x48, - 0x91, 0xe4, 0xee, 0x8e, 0x97, 0xb7, 0xd3, 0x5c, 0xba, 0xe0, 0x93, 0x40, 0x3c, 0x23, 0x67, 0xce, - 0x56, 0x7b, 0x72, 0xea, 0x44, 0x4e, 0x27, 0x49, 0x37, 0x89, 0x3a, 0x48, 0x55, 0x50, 0x72, 0x73, - 0xef, 0x28, 0x99, 0x12, 0x8d, 0x80, 0x6e, 0x12, 0x68, 0x2b, 0x2d, 0xa4, 0xac, 0xa2, 0xad, 0x56, - 0xd0, 0x75, 0x6e, 0x68, 0x4c, 0x1f, 0x3b, 0x13, 0x00, 0x5f, 0x45, 0x31, 0x9b, 0xe3, 0x04, 0x4a, - 0x80, 0x92, 0x3c, 0x9f, 0xe5, 0xe8, 0x44, 0x46, 0xb3, 0x60, 0x73, 0xbe, 0x01, 0x32, 0x02, 0x65, - 0x5d, 0x69, 0xe1, 0xa0, 0x5c, 0x25, 0x63, 0xea, 0xe4, 0x88, 0x52, 0xe5, 0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 0x6e, 0x39, - 0x20, 0x78, 0x80, 0xde, 0x82, 0xe5, 0x24, 0x69, 0x38, 0x7b, 0xe6, 0x9f, 0x75, 0x91, 0xd0, 0x12, - 0x05, 0x50, 0x92, 0x75, 0xf7, 0xdc, 0xcc, 0x2c, 0x70, 0x05, 0xcb, 0x85, 0x82, 0x65, 0xa1, 0x02, - 0xae, 0xd4, 0xa2, 0x7e, 0x32, 0x59, 0x1f, 0x01, 0x34, 0xd3, 0x14, 0x38, 0x7f, 0xaf, 0xb9, 0xc5, - 0x6d, 0xfc, 0xe2, 0x10, 0x1f, 0x9f, 0xc8, 0x72, 0x5b, 0x29, 0x4e, 0xeb, 0x5d, 0xee, 0xce, 0x9a, - 0xd4, 0x48, 0x83, 0x75, 0x90, 0xf9, 0x4e, 0xe9, 0x4d, 0x93, 0xe1, 0x33, 0x0f, 0x1d, 0x41, 0xde, - 0x1d, 0xe3, 0xe3, 0x93, 0x68, 0x33, 0xdc, 0xa0, 0x61, 0xf3, 0xc7, 0xee, 0xb4, 0xba, 0x82, 0x7d, - 0x5b, 0x64, 0x53, 0xf0, 0x27, 0x59, 0x0a, 0x6e, 0x77, 0x54, 0x85, 0x1a, 0xac, 0xad, 0xfc, 0x6d, - 0x30, 0x38, 0xb3, 0x7b, 0xc6, 0x1d, 0x2c, 0x75, 0x9e, 0xac, 0x86, 0x11, 0x78, 0x90, 0xde, 0x74, - 0x6e, 0x22, 0xd4, 0x78, 0x53, 0x8a, 0x74, 0x58, 0xb2, 0x5e, 0x4f, 0xd6, 0xec, 0x1d, 0x09, 0x35, - 0xd0, 0x5c, 0x40, 0x39, 0xad, 0xb1, 0xf2, 0x9e, 0xd7, 0x83, 0x9e, 0x43, 0xe3, 0xde, 0x60, 0x4a, - 0x0e, 0x04, 0x95, 0xfd, 0x69, 0x06, 0x5f, 0x5f, 0xee, 0xf3, 0x04, 0x4d, 0x5f, 0x63, 0x36, 0xa3, - 0xf4, 0xf5, 0x20, 0xb3, 0x7f, 0x47, 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 0x52, 0xe0, 0x77, 0xbe, 0x82, - 0xab, 0xa1, 0x06, 0x54, 0x4f, 0x62, 0x14, 0x14, 0x07, 0x91, 0xf2, 0x13, 0x6f, 0x7f, 0x66, 0x10, - 0xe0, 0xa4, 0xf0, 0xb3, 0x08, 0x75, 0xf9, 0xf2, 0xe0, 0xb3, 0x20, 0x8a, 0x48, 0x25, 0x6d, 0x74, - 0x2c, 0x07, 0xb7, 0xd0, 0x70, 0x2b, 0xb8, 0x37, 0x56, 0x3c, 0xec, 0x08, 0xb6, 0x5b, 0x94, 0xbb, - 0x56, 0x73, 0x05, 0xc9, 0x3c, 0x53, 0x34, 0x13, 0x69, 0x40, 0x07, 0x24, 0x61, 0x15, 0xc3, 0xdd, - 0x98, 0xb8, 0xf6, 0x36, 0xd4, 0xa0, 0x41, 0xe5, 0x52, 0xd6, 0x80, 0x05, 0xbb, 0x1b, 0xc6, 0x23, - 0x0c, 0x26, 0x5c, 0x1b, 0x72, 0x1c, 0x14, 0xc0, 0xbe, 0xbe, 0xc9, 0x4b, 0x46, 0x9b, 0x9f, 0x96, - 0xa3, 0xa8, 0x30, 0xe4, 0xd3, 0xbb, 0xf5, 0x37, 0x3d, 0xc1, 0x72, 0x65, 0xd9, 0x19, 0x7d, 0x85, - 0x27, 0xe7, 0x6b, 0x3b, 0xde, 0x93, 0x2b, 0x8b, 0x92, 0xd4, 0x40, 0xc0, 0x31, 0xe9, 0xbd, 0x16, - 0x34, 0x67, 0x15, 0x76, 0x59, 0xca, 0x79, 0xe9, 0x1f, 0xb7, 0x17, 0x97, 0x78, 0x82, 0xa1, 0xe5, - 0x6b, 0x18, 0x4b, 0x50, 0x3f, 0x56, 0x75, 0xf1, 0x99, 0xef, 0x43, 0x44, 0x4a, 0x76, 0xce, 0xaa, - 0xa8, 0xcb, 0xeb, 0x76, 0x05, 0xbb, 0xb3, 0x93, 0xe5, 0x67, 0xf5, 0xe4, 0x77, 0xd2, 0x17, 0xf7, - 0x5d, 0xc0, 0xf4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xd9, 0x0b, 0xf5, 0xf5, 0x2e, 0x34, 0x6b, 0x7f, 0xae, 0x01, 0x95, 0x3d, 0xc0, 0x53, + 0x56, 0x01, 0xb8, 0x33, 0x2e, 0xcc, 0xfa, 0xd0, 0xce, 0xfd, 0x01, 0xf6, 0x11, 0x5e, 0xa0, 0x04, + 0x28, 0x8e, 0x0f, 0xf4, 0x2d, 0x97, 0xde, 0x57, 0xfa, 0xf1, 0x57, 0xa8, 0x19, 0x0c, 0x42, 0x33, + 0x89, 0x2c, 0xf0, 0xbe, 0x72, 0xfd, 0xbd, 0x36, 0x2b, 0x72, 0x2f, 0xad, 0x56, 0xb9, 0xec, 0x72, + 0xf1, 0xce, 0x49, 0xe5, 0x08, 0xfd, 0x0d, 0x3a, 0x42, 0x62, 0x5f, 0xcd, 0x50, 0xa0, 0x68, 0x2b, + 0x34, 0xcb, 0xa8, 0x16, 0xef, 0x95, 0x1b, 0x21, 0xda, 0xca, 0x49, 0x83, 0x81, 0x5b, 0x09, 0xd0, + 0xe8, 0xec, 0x72, 0xaa, 0x03, 0x75, 0x45, 0xeb, 0xad, 0x78, 0x90, 0x21, 0x63, 0x96, 0x7a, 0x9b, + 0x71, 0xe5, 0xe8, 0x4c, 0xa4, 0xb6, 0x45, 0x45, 0x0a, 0x00, 0x39, 0x8e, 0xe5, 0xc0, 0xb1, 0x43, + 0x07, 0x77, 0x87, 0x44, 0xff, 0x6d, 0xd4, 0x0f, 0xb5, 0x02, 0x8a, 0xe1, 0xb7, 0x42, 0x2e, 0xde, + 0xce, 0x6c, 0x66, 0xd8, 0xad, 0x0c, 0x98, 0x2b, 0x39, 0xbf, 0x18, 0x1e, 0xfd, 0xcf, 0x51, 0x7f, + 0xab, 0x43, 0x98, 0x39, 0xd6, 0x66, 0x83, 0xe6, 0x78, 0xce, 0xce, 0x30, 0x34, 0x63, 0x01, 0x69, + 0x1d, 0x13, 0xd3, 0x1e, 0xb9, 0x1f, 0xff, 0xd5, 0xa0, 0x41, 0x05, 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0f, 0x82, 0xff, 0x1d, 0x4b, + 0x33, 0xd0, 0xbc, 0x2a, 0x65, 0x1d, 0xcd, 0x6c, 0x06, 0x2f, 0xa7, 0x5f, 0x37, 0xfb, 0x3f, 0x30, + 0x27, 0x22, 0xf5, 0x51, 0xa6, 0x30, 0xe7, 0x51, 0x7b, 0x85, 0xf3, 0x43, 0x73, 0xb2, 0x9e, 0xb6, + 0x70, 0x94, 0x00, 0x37, 0xb2, 0xa0, 0xe8, 0xe9, 0x72, 0x56, 0x78, 0xf4, 0x27, 0x48, 0x1a, 0x37, + 0x6a, 0x58, 0x01, 0xaf, 0xe1, 0xd8, 0x64, 0x30, 0xf7, 0x60, 0x60, 0xc7, 0x7b, 0x17, 0x33, 0x96, + 0x66, 0xd6, 0x2b, 0x87, 0x7a, 0x76, 0xf1, 0xcd, 0x19, 0x27, 0x41, 0x96, 0x02, 0xb0, 0x5f, 0xd0, + 0xe2, 0x3d, 0x9c, 0x12, 0x63, 0x85, 0x14, 0x07, 0x52, 0x67, 0x5e, 0x79, 0x9d, 0x04, 0x61, 0x0c, + 0x40, 0x8b, 0xdb, 0x37, 0xce, 0xc4, 0x72, 0x10, 0x2c, 0xf7, 0x14, 0xe4, 0x3a, 0xdf, 0x37, 0x23, + 0xb1, 0x54, 0x8a, 0x78, 0xb4, 0xe2, 0x20, 0x23, 0xac, 0x87, 0xa0, 0x74, 0xb2, 0xc5, 0xe9, 0x78, + 0xdf, 0x52, 0x62, 0x70, 0xd0, 0x53, 0x5b, 0xb2, 0x33, 0x2c, 0x48, 0x0f, 0x64, 0xc9, 0x90, 0xb2, + 0x5a, 0x81, 0xff, 0x4a, 0x6a, 0xba, 0x03, 0x4d, 0x83, 0xd1, 0x76, 0x8a, 0x33, 0x71, 0x10, 0x32, + 0x7c, 0x12, 0x2b, 0xb1, 0x8d, 0x0c, 0xc8, 0x3f, 0xd3, 0x7e, 0x33, 0x2c, 0xc8, 0x34, 0xc4, 0xd8, + 0x79, 0x81, 0x4d, 0x96, 0xff, 0x06, 0x0f, 0xeb, 0xf2, 0x06, 0xfc, 0xef, 0x9b, 0xe0, 0x55, 0xac, + 0xb0, 0xd2, 0x6a, 0x65, 0xb7, 0x42, 0x33, 0xf0, 0x8d, 0x96, 0x8c, 0xba, 0x08, 0x75, 0x4a, 0x60, + 0x2f, 0x24, 0xf6, 0xf6, 0xf7, 0x94, 0xd5, 0x0e, 0x79, 0x65, 0x32, 0xee, 0x4f, 0x16, 0x3d, 0x0a, + 0xb6, 0xf5, 0x48, 0x38, 0xe8, 0x6f, 0x5c, 0x6c, 0xf7, 0x12, 0xaa, 0x2f, 0x33, 0x4d, 0x59, 0x59, + 0x0b, 0x18, 0x9e, 0x76, 0x23, 0x59, 0xe1, 0x87, 0x88, 0xd5, 0xb7, 0x69, 0x37, 0xc4, 0x85, 0x67, + 0x2d, 0xc7, 0x42, 0x34, 0xf5, 0x83, 0x54, 0x02, 0xce, 0x5e, 0x3f, 0x75, 0x48, 0x65, 0x7c, 0x7f, + 0x80, 0x95, 0xc4, 0xd1, 0x7f, 0x50, 0x2e, 0x89, 0x9b, 0xcd, 0xa3, 0x36, 0xed, 0x62, 0x51, 0x0b, + 0x41, 0xfe, 0x8c, 0xef, 0x16, 0x76, 0xab, 0x4a, 0x05, 0x31, 0x94, 0x29, 0x09, 0x9a, 0xa5, 0x62, + 0xd7, 0x54, 0x01, 0xd2, 0xa0, 0xa8, 0xcc, 0xb8, 0x25, 0x40, 0xb6, 0x19, 0xbd, 0x3e, 0x9a, 0x21, + 0x5e, 0x3c, 0x7f, 0x1a, 0x58, 0x08, 0x52, 0xc7, 0x87, 0x7f, 0xa0, 0x09, 0x73, 0x92, 0x5a, 0xda, + 0x94, 0x04, 0x4d, 0x9b, 0x25, 0xe9, 0x8a, 0x81, 0x60, 0xdf, 0x1d, 0x57, 0x86, 0x83, 0x68, 0x59, + 0x42, 0xf1, 0x90, 0x11, 0x62, 0x58, 0x33, 0x04, 0xa3, 0x0f, 0x5f, 0xb5, 0x62, 0xba, 0x4a, 0xa9, + 0x90, 0x0a, 0x50, 0x61, 0x1d, 0xce, 0x39, 0xf4, 0xd2, 0x43, 0xec, 0x57, 0x09, 0x06, 0xbf, 0x93, + 0x2f, 0x8b, 0x40, 0x8d, 0xd7, 0x85, 0x9a, 0x21, 0x8f, 0xd7, 0x48, 0x69, 0xf0, 0x15, 0x2b, 0xd0, + 0x89, 0x29, 0xb1, 0x50, 0x22, 0x23, 0x8b, 0x77, 0x48, 0xa6, 0x16, 0xc3, 0x88, 0xa4, 0x86, 0x07, + 0x47, 0x32, 0x66, 0xdb, 0x8c, 0xcb, 0x45, 0x1a, 0xc0, 0x83, 0xae, 0x9e, 0x81, 0x7e, 0x52, 0x22, + 0x12, 0x5b, 0x97, 0x31, 0x71, 0x50, 0x10, 0x68, 0xc6, 0xc2, 0x83, 0x7d, 0x55, 0x6f, 0xc6, 0x9c, + 0x84, 0xf4, 0x68, 0xd3, 0xc3, 0x4e, 0x5e, 0x6f, 0x74, 0xb9, 0x08, 0x65, 0x88, 0x4d, 0xd2, 0x12, + 0x29, 0x80, 0xce, 0xce, 0x03, 0x7b, 0x1d, 0x84, 0x2e, 0x65, 0x2b, 0x65, 0xb5, 0xc6, 0x52, 0x36, + 0xc8, 0x81, 0x81, 0x99, 0x86, 0xe7, 0x1e, 0x42, 0xeb, 0xad, 0x96, 0xc6, 0xb1, 0x56, 0xda, 0x0c, + 0x4e, 0xfb, 0xee, 0x1c, 0x8d, 0x20, 0x94, 0x03, 0x1b, 0xa0, 0x38, 0x85, 0x1b, 0x20, 0xc5, 0xb3, + 0x4c, 0x9c, 0x8d, 0x4a, 0x06, 0x35, 0xb9, 0xf3, 0x2d, 0xe1, 0x84, 0x3c, 0x88, 0x83, 0x7e, 0x4f, + 0xb3, 0x56, 0xc8, 0x98, 0x20, 0xc8, 0xda, 0xbf, 0x67, 0x11, 0x3b, 0xbe, 0x3a, 0x60, 0x2c, 0xcb, + 0x31, 0xac, 0x85, 0xa3, 0x6c,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x18, 0xee, 0xf3, 0x13, 0xfb, 0x30, 0x00, 0xb1, 0x9a, 0xe6, 0x4d, 0x14, 0x67, + 0x86, 0x66, 0x50, 0x7a, 0x7d, 0xf8, 0x04, 0xe9, 0x74, 0x13, 0x20, 0x2e, 0x80, 0xb1, 0xe9, 0xb4, + 0xdd, 0x7e, 0x62, 0xef, 0x43, 0xdc, 0xdd, 0x45, 0x1e, 0xa4, 0x2f, 0xc7, 0x7b, 0xc0, 0x43, 0x68, + 0xe5, 0x02, 0x60, 0xe0, 0x5e, 0x65, 0xe3, 0xfd, 0x30, 0xc2, 0x85, 0xec, 0x33, 0x7d, 0x43, 0xcf, + 0xd2, 0x46, 0x6f, 0x93, 0x1e, 0x5d, 0x01, 0x30, 0xe4, 0x5d, 0x04, 0xd2, 0xd2, 0xde, 0x9c, 0x89, + 0x20, 0x3c, 0xba, 0x02, 0x90, 0xe0, 0xf9, 0xf4, 0x93, 0x9e, 0x70, 0x42, 0x58, 0x0f, 0x40, 0xac, + 0xa2, 0x2d, 0x6a, 0x73, 0x77, 0x5f, 0xec, 0x9a, 0xc3, 0x2c, 0x93, 0x90, 0x14, 0xad, 0x8e, 0xee, + 0x98, 0x78, 0xe9, 0x23, 0x88, 0x18, 0x09, 0x42, 0x16, 0xe1, 0xb4, 0xc3, 0x9d, 0xf9, 0x21, 0x3a, + 0x4b, 0x1e, 0x1f, 0x6f, 0x4e, 0x92, 0x6f, 0x6b, 0x5c, 0x95, 0x75, 0x75, 0x6f, 0x66, 0xba, 0xc7, + 0xd8, 0x6e, 0xaa, 0x55, 0x00, 0x8f, 0x6f, 0x65, 0x8c, 0x85, 0x68, 0x43, 0x51, 0x01, 0x3c, 0x64, + 0x04, 0x9d, 0x14, 0x78, 0x35, 0xa7, 0xee, 0x52, 0xb8, 0xce, 0xf6, 0x44, 0x80, 0xa5, 0x19, 0xaa, + 0xf4, 0x75, 0x9f, 0x76, 0x12, 0x67, 0x3e, 0xc0, 0x45, 0x49, 0x5e, 0x94,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 0xee, 0xc9, 0xad, 0xa7, 0xeb, 0x5c, 0x98, 0x3e, 0x00, 0x43, 0x7c, 0xc5, + 0x32, 0x10, 0x5c, 0x28, 0xad, 0x7e, 0xe7, 0x27, 0xc4, 0x6d, 0x0c, 0xf3, 0x05, 0xc5, 0xcb, 0xba, + 0xdd, 0x47, 0xbe, 0x9b, 0x57, 0x30, 0x55, 0x11, 0x06, 0x41, 0xd6, 0xf0, 0x9e, 0x5d, 0x7b, 0xca, + 0xbc, 0x84, 0x5e, 0x67, 0xab, 0xac, 0x89, 0x91, 0x19, 0xa8, 0x97, 0xf3, 0xbd, 0x83, 0x64, 0x6c, + 0xa0, 0x02, 0x88, 0x85, 0x8c, 0x59, 0x94, 0x1b, 0x0a, 0xae, 0xe4, 0x97, 0x7b, 0x08, 0xcf, 0x45, + 0x05, 0x02, 0x6e, 0x4e, 0x9d, 0x70, 0x84, 0x6b, 0x3d, 0x50, 0x7e, 0xc6, 0x27, 0xfa, 0x75, 0x59, + 0x4e, 0xb9, 0x91, 0x07, 0x89, 0xe6, 0xf0, 0xb1, 0xdc, 0xd9, 0x31, 0x8a, 0xc9, 0x96, 0xe8, 0x5c, + 0x06, 0x80, 0x78, 0xf0, 0x64, 0xa0, 0x31, 0x07, 0x13, 0xa6, 0xd4, 0xd3, 0x4b, 0xf1, 0xfc, 0x56, + 0x96, 0x33, 0x03, 0xc7, 0xce, 0x63, 0x53, 0x2e, 0xe2, 0x5a, 0x22, 0x41, 0xaa, 0x22, 0xfe, 0xf9, + 0x8b, 0x05, 0xa4, 0xee, 0x52, 0x8d, 0x61, 0x24, 0x78, 0xad, 0xec, 0x21, 0xaf, 0xd4, 0x68, 0xeb, + 0x1e, 0xc9, 0x26, 0xc3, 0x33, 0x24, 0x27, 0x16, 0x04, 0x17, 0xef, 0xf4, 0x2d, 0x90, 0x4b, 0x01, + 0x67, 0xb2, 0x9f, 0xe7, 0x63, 0xe6, 0x77, 0x0e, 0x9a, 0x20, 0xbd, 0x05, 0x9a, 0x65, 0x53, 0x00, + 0x62, 0xa1, 0x9d, 0x73, 0x39, 0x05, 0xa4, 0xdf, 0xb7, 0x49, 0xbd, 0xdf, 0xe4, 0xa5, 0x99, 0x9a, + 0xf3, 0x74, 0x45, 0x60, 0xab, 0xab, 0x15, 0x2b, 0x7e, 0x33, 0xe0, 0xe6, 0x9e, 0x9a, 0x31, 0x32, + 0xa2, 0x40, 0x83, 0xad, 0xb4, 0x72, 0x90, 0x32, 0xa7, 0x00, 0xcf, 0x50, 0xd1, 0xfd, 0x70, 0x8d, + 0xd5, 0xd5, 0x00, 0x60, 0xf0, 0xd5, 0xfd, 0x61, 0xd2, 0xc5, 0x56, 0x0e, 0x0c, 0x50, 0x35, 0xbf, + 0x72, 0x57, 0x72, 0x07, 0x06, 0xbd, 0x86, 0x21, 0x33, 0x1a, 0x70, 0xed, 0x6a, 0x30, 0xd5, 0x7c, + 0x62, 0xde, 0xd0, 0x96, 0xac, 0xa1, 0x24, 0x95, 0x81, 0x64, 0xe9, 0x3a, 0x99, 0xfd, 0xfa, 0x92, + 0x83, 0xf0, 0xa0, 0xe2, 0x35, 0xad, 0x75, 0x6d, 0xe3, 0xe1, 0xf2, 0x70, 0x03, 0x1b, 0x3b, 0x06, + 0x29, 0x69, 0x2b, 0xbb, 0xe4, 0x46, 0x73, 0x08, 0x50, 0x64, 0x98, 0x10, 0xc3, 0x26, 0x27, 0x53, + 0x8c, 0x19, 0xb4, 0x66, 0x4f, 0x1f, 0xf4, 0x20, 0x11, 0xe0, 0x4f, 0xd4, 0x62, 0x29, 0x12, 0xef, + 0xfa, 0xf5, 0x93, 0xad, 0x64, 0xd0, 0xc8, 0x66, 0x98, 0x92, 0xc0, 0x52, 0x9c, 0x79, 0x95, 0x5d, + 0x10, 0x58, 0x06, 0x6c, 0xcb, 0x9e, 0x3a, 0x42, 0xfa, 0x9b, 0x06, 0x42, 0x36, 0x71, 0x56, 0xb0, + 0xcb, 0x77, 0xbe, 0x3c, 0x44, 0xdb,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7b, 0x48, 0x36, 0x29, + 0x00, 0xf8, 0x05, 0xc5, 0x27, 0x09, 0x94, 0x05, 0x64, 0x5d, 0xcb, 0x72, 0x47, 0x68, 0xf2, 0x60, + 0x00, 0x66, 0x15, 0xb6, 0x67, 0x73, 0xeb, 0x5e, 0x44, 0xe8, 0x1c, 0x72, 0x94, 0xce, 0x71, 0x56, + 0x50, 0xd3, 0xde, 0xb0, 0x8c, 0xe9, 0x24, 0x02, 0xca, 0x3f, 0x4b, 0xa6, 0x68, 0x2b, 0x68, 0x9c, + 0xce, 0x2e, 0x8d, 0xd0, 0xdd, 0xa3, 0xe8, 0x43, 0x56, 0x33, 0x68, 0x3b, 0x92, 0x3a, 0xed, 0x36, + 0xf6, 0x80, 0x96, 0x51, 0x6b, 0x05, 0xca, 0x4a, 0x9b, 0xc0, 0xd3, 0xc3, 0x75, 0x07, 0x1d, 0xc6, + 0x7a, 0x03, 0x19, 0x27, 0x79, 0xff, 0x2d, 0xee, 0xce, 0xb8, 0x13, 0x12, 0xa4, 0xc3, 0xb1, 0x1c, + 0x04, 0x4f, 0x8f, 0xb4, 0x15, 0x44, 0x06, 0x99, 0x9b, 0x8d, 0xf0, 0x3b, 0x41, 0x1c, 0x54, 0x69, + 0x49, 0xfe, 0xd5, 0x48, 0x9d, 0x6f, 0x6a, 0xc0, 0x44, 0x4b, 0x14, 0x63, 0xf0, 0x50, 0xf5, 0xd9, + 0x20, 0xae, 0x17, 0x7a, 0x70, 0x5b, 0x6f, 0x6d, 0x6a, 0x88, 0xce, 0x31, 0x5b, 0xe9, 0x98, 0x74, + 0xd4, 0x3a, 0x5a, 0x4a, 0x87, 0x9d, 0xef, 0x5b, 0xbb, 0x18, 0x65, 0xed, 0xea, 0x5f, 0xd6, 0x8e, + 0x87, 0x11, 0x74, 0x4f, 0xd1, 0x69, 0xcb, 0xd4, 0x31, 0xed, 0xd6, 0xa5, 0x37, 0x3e, 0xa3, 0x38, + 0x48, 0x64, 0xa4, 0xac, 0x18, 0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e, 0x4a, 0xb0, 0x42, 0x33, 0x38, 0x5e, 0x5a, 0x79, 0xd6, + 0x4d, 0x34, 0x67, 0xc6, 0x1c, 0xa2, 0x64, 0x76, 0x33, 0x2f, 0xa3, 0x72, 0x10, 0x63, 0xc0, 0x71, + 0x00, 0x28, 0x1c, 0xaf, 0x9d, 0xf1, 0x23, 0x7d, 0xf9, 0x3f, 0x92, 0xf7, 0x31, 0xe1, 0x30, 0x85, + 0x8f, 0xa4, 0xbb, 0xb5, 0xfa, 0x17, 0x06, 0x7a, 0x3f, 0xb2, 0x0a, 0x78, 0x9e, 0xbd, 0xdc, 0xac, + 0x4e, 0xd1, 0x2f, 0x09, 0x34, 0x17, 0xe0, 0x6b, 0x85, 0x37, 0x7f, 0x60, 0x71, 0xf4, 0xff, 0xd2, + 0x49, 0x85, 0x64, 0x05, 0x50, 0x35, 0xda, 0x75, 0x24, 0x44, 0x5b, 0x4c, 0x4d, 0xfb, 0xc8, 0x99, + 0x92, 0x68, 0xdc, 0xb9, 0xe7, 0xee, 0xfd, 0x0a, 0x5f, 0x58, 0xf4, 0x6f, 0x10, 0xef, 0x64, 0xa0, + 0x34, 0x59, 0xcb, 0xf0, 0x02, 0x65, 0xb5, 0xca, 0x54, 0x32, 0xce, 0x2e, 0x25, 0x64, 0x02, 0x65, + 0xe5, 0x07, 0x9a, 0x42, 0xbf, 0x7f, 0xb5, 0x95, 0xf2, 0x67, 0x41, 0x59, 0xd1, 0x81, 0x8b, 0x98, + 0xa8, 0xad, 0xa1, 0x63, 0xd8, 0x2d, 0x92, 0xf3, 0x71, 0x5f, 0x47, 0xe3, 0x49, 0xcc, 0x36, 0xa0, + 0x01, 0xd6, 0xdb, 0xad, 0x02, 0x8d, 0x50, 0xf9, 0xed, 0x85, 0x27, 0xb1, 0x74, 0x7e, 0xc9, 0x14, + 0xbf, 0x39, 0x86, 0x65, 0x39, 0x33, 0x0f, 0x2a, 0xab, 0x87, 0x97, 0x5d, 0x46, 0x17, 0xa6, 0x32, + 0x60, 0x91, 0x92, 0x6b, 0xe1, 0xcd, 0x8d, 0xcf, 0xfa, 0xc3, 0xa2, 0x7f, 0x19, 0x60, 0x99, 0x09, + 0xc4, 0xa9, 0x17, 0xf1, 0xf0, 0xde, 0xf1, 0x9f, 0x69, 0x61, 0xf4, 0x16, 0xf1, 0xba, 0xbd, 0xd1, + 0xfe, 0x1c, 0x19, 0xb5, 0x54, 0xf7, 0x12, 0x39, 0xf7, 0x07, 0x95, 0x2c, 0x52, 0xa1, 0x77, 0x9e, + 0x4b, 0x3f, 0x22, 0x93, 0x87, 0x50, 0xc9, 0x50, 0x53, 0x67, 0xed, 0xee, 0x69, 0x3d, 0xe6, 0x41, + 0x01, 0xfa, 0x28, 0x89, 0x16, 0x6d, 0x49, 0x92, 0x43, 0x36, 0x7b, 0x9c, 0xfe, 0x56, 0x23, 0x6d, + 0x96, 0x8a, 0xe0, 0xc1, 0x31, 0xf7, 0x7c, 0x2f, 0x99, 0x85, 0x4b, 0x80, 0xdf, 0x29, 0x0a, 0xb8, + 0xee, 0xd4, 0xe5, 0x31, 0x2f, 0xd1, 0xbc, 0x58, 0x1a, 0x6b, 0xa5, 0x68, 0x06, 0x3c, 0x3d, 0x9b, + 0x57, 0x8c, 0x31, 0xa9, 0x62, 0x81, 0x24, 0xeb, 0x37, 0x0f, 0xe4, 0xd4, 0x46, 0x68, 0x53, 0x2b, + 0xfe, 0xae, 0x48, 0xf7, 0x05, 0x1d, 0xed, 0x28, 0x6d, 0x80, 0xea, 0xe5, 0x21, 0x16, 0x6f, 0x62, + 0xcc, 0x90, 0x93, 0xc8, 0x57, 0xf3, 0x9d, 0xa3, 0x99, 0x1e, 0x42, 0xbb, 0x26, 0x22, 0xe2, 0x04, + 0x8e, 0xde, 0x0c, 0x41, 0xee, 0xbb, 0xf1, 0x51, 0xa7, 0x41, 0x87, 0xd6, 0xd0, 0xdf, 0x41, 0x33, + 0xa8, 0xad, 0xf2, 0x8c, 0x45, 0x68, 0xda, 0x62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0xc7, 0x6b, 0xa9, 0xd6, 0x36, 0xa6, 0xd8, 0x60, + 0x2c, 0xe4, 0x78, 0x96, 0xa1, 0xac, 0xab, 0xa5, 0x87, 0x20, 0x78, 0x30, 0xb1, 0xf3, 0xdc, 0x94, + 0x53, 0x17, 0x42, 0x13, 0x58, 0x85, 0xe2, 0x79, 0x29, 0x90, 0x67, 0x5b, 0xff, 0xe5, 0xd9, 0xd0, + 0xe8, 0x7f, 0xd0, 0x82, 0x26, 0x02, 0x60, 0xab, 0x39, 0x7a, 0x0b, 0xe4, 0xd6, 0xd1, 0x26, 0xc8, + 0xf0, 0x10, 0x34, 0x77, 0x1c, 0xf8, 0x77, 0x8d, 0xae, 0x12, 0xd0, 0xb5, 0x92, 0x98, 0x23, 0xa4, + 0x48, 0x72, 0x77, 0xc7, 0xcb, 0xdb, 0x69, 0x2e, 0x5d, 0xf0, 0x49, 0x20, 0x9e, 0x91, 0x33, 0x67, + 0xab, 0x3d, 0x39, 0x75, 0x22, 0xa7, 0x93, 0xa4, 0x9b, 0x44, 0x1d, 0xa4, 0x2a, 0x28, 0xb9, 0xb9, + 0x77, 0x94, 0x4c, 0x89, 0x46, 0x40, 0x37, 0x09, 0xb4, 0x95, 0x16, 0x52, 0x56, 0xd1, 0x56, 0x2b, + 0xe8, 0x3a, 0x37, 0x34, 0xa6, 0x8f, 0x9d, 0x09, 0x80, 0xaf, 0xa2, 0x98, 0xcd, 0x71, 0x02, 0x25, + 0x40, 0x49, 0x9e, 0xcf, 0x72, 0x74, 0x22, 0xa3, 0x59, 0xb0, 0x39, 0xdf, 0x00, 0x19, 0x81, 0xb2, + 0xae, 0xb4, 0x70, 0x50, 0xae, 0x92, 0x31, 0x75, 0x72, 0x44, 0xa9, 0xf2, 0x69, 0xd4, 0x3f, 0xbc, + 0x77, 0xce, 0xe5, 0xfc, 0x22, 0x9c, 0x4c, 0xdf, 0x5e, 0x6d, 0xdb, 0xd7, 0xad, 0x8c, 0xfa, 0xdf, + 0xd1, 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, 0xe6, 0x1e, 0x90, 0xee, + 0x59, 0xf8, 0xe0, 0xd6, 0xc1, 0x44, 0x8d, 0x0c, 0x34, 0x3c, 0x4a, 0xcf, 0x23, 0x3d, 0xf4, 0x13, + 0x58, 0x41, 0xe6, 0x8b, 0x63, 0xec, 0xbc, 0xc0, 0x26, 0x2b, 0x21, 0xe5, 0x60, 0xf6, 0xfe, 0xf1, + 0x5e, 0x17, 0xa1, 0x4c, 0x91, 0xa0, 0x94, 0xa4, 0x7d, 0xd0, 0x3d, 0x50, 0xd7, 0xe9, 0x4b, 0xbd, + 0x4c, 0x66, 0x2b, 0x55, 0x33, 0x0b, 0x48, 0x14, 0x4b, 0x4b, 0x99, 0x70, 0xa7, 0xa2, 0x11, 0x05, + 0x66, 0x68, 0x49, 0x35, 0xf4, 0x58, 0x94, 0xaf, 0x60, 0xdb, 0xfd, 0xf6, 0x54, 0x17, 0xf1, 0x64, + 0x88, 0x2e, 0xcd, 0x42, 0x60, 0x96, 0x85, 0x37, 0x05, 0xe7, 0x6a, 0x30, 0x65, 0xa9, 0x96, 0xe2, + 0x00, 0x32, 0x66, 0xbc, 0x27, 0x55, 0xaf, 0x8b, 0x46, 0x42, 0x70, 0xe7, 0x73, 0xad, 0x13, 0x71, + 0x6a, 0x36, 0x84, 0x8e, 0xd4, 0xe5, 0x83, 0x21, 0x06, 0xa3, 0x92, 0x18, 0x69, 0x0d, 0x76, 0x7b, + 0xec, 0xed, 0x6d, 0x32, 0x5b, 0x2a, 0x7a, 0x23, 0x40, 0xa1, 0xa1, 0x98, 0xf2, 0xf3, 0xd5, 0xc8, + 0xd8, 0x13, 0x32, 0xcf, 0xbb, 0x8a, 0xe6, 0x60, 0x32, 0xab, 0xca, 0x53, 0x6b, 0x38, 0x36, 0x59, + 0xac, 0xd1, 0x7b, 0x62, 0xf0, 0x86, 0x9f, 0x8c, 0x9c, 0x51, 0xdb, 0xc7, 0xe3, 0x47, 0x63, 0x59, + 0x9e, 0x96, 0x64, 0xbb,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63, 0xfc, 0x66, 0x98, 0x02, 0x96, + 0x0f, 0xbf, 0xe8, 0x89, 0xc4, 0xc3, 0x80, 0x24, 0x07, 0x0c, 0x39, 0x00, 0x51, 0xca, 0x2f, 0x0c, + 0xcd, 0xe0, 0x56, 0xd9, 0x43, 0x27, 0x99, 0x87, 0x32, 0x10, 0x68, 0x65, 0x79, 0x91, 0x7c, 0xfa, + 0x4a, 0x1f, 0x86, 0x63, 0x6f, 0xc5, 0x51, 0x8c, 0x99, 0x4f, 0xa2, 0x36, 0xcb, 0x14, 0xee, 0x3b, + 0x01, 0x14, 0x5c, 0x39, 0xf1, 0xda, 0x45, 0x24, 0x5e, 0x52, 0x41, 0x12, 0x33, 0x9a, 0x3e, 0x78, + 0x2e, 0x2b, 0x20, 0x70, 0x41, 0xfa, 0x88, 0x42, 0x28, 0x25, 0xc4, 0x83, 0x73, 0xb9, 0xc7, 0x9d, + 0x28, 0xcb, 0xd6, 0x7f, 0x42, 0xce, 0xb5, 0xc2, 0xaf, 0x3f, 0x01, 0xf5, 0x6f, 0xea, 0x27, 0x95, + 0x5d, 0x19, 0x8d, 0xf2, 0xa2, 0x59, 0xa5, 0x87, 0x0b, 0xeb, 0xda, 0x1f, 0x84, 0x45, 0xff, 0x19, + 0x7a, 0x14, 0x8f, 0x97, 0xf3, 0x30, 0xdc, 0x79, 0x39, 0xf2, 0xff, 0x06, 0x3a, 0xcf, 0x7e, 0x09, + 0x53, 0xa4, 0xe3, 0xb9, 0xe8, 0x1c, 0xd9, 0xe5, 0x25, 0x42, 0x6a, 0x4d, 0xd2, 0x38, 0x15, 0xf7, + 0x14, 0x09, 0x95, 0x57, 0xd0, 0xfb, 0xb5, 0xa6, 0x49, 0xb3, 0xd9, 0xf9, 0x24, 0xd4, 0x5d, 0x91, + 0x09, 0x96, 0xde, 0x09, 0x67, 0xa4, 0x77, 0x35, 0x40, 0xdb, 0xe9, 0x9b, 0x39, 0x21, 0x78, 0xd0, + 0x9b, 0x84, 0x92, 0xf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0xf5, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x0f, 0x4a, 0xdb, 0x7c, 0xb0, 0xa2, 0x00, 0x00, } diff --git a/mtproto/schema.tl.crc32.proto b/mtproto/schema.tl.crc32.proto index 87fa18766..b2007cf78 100644 --- a/mtproto/schema.tl.crc32.proto +++ b/mtproto/schema.tl.crc32.proto @@ -785,6 +785,7 @@ enum TLConstructor { CRC32_account_unregisterDeviceLayer71 = 1707432768; CRC32_messages_getMessagesLayer71 = 1109588596; CRC32_langpack_getLangPackLayer71 = -1699363442; + CRC32_messages_getRecentLocationsLayer72 = 613691874; CRC32_invokeAfterMsg = -878758099; CRC32_invokeAfterMsgs = 1036301552; CRC32_initConnection = 2018609336; diff --git a/mtproto/schema.tl.handshake.pb.go b/mtproto/schema.tl.handshake.pb.go index eb0da7efe..218320b3b 100644 --- a/mtproto/schema.tl.handshake.pb.go +++ b/mtproto/schema.tl.handshake.pb.go @@ -19,437 +19,508 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // ///////////////////////////////////////////////////////////////////////////// -// Set_client_DH_params_answer <-- -// + TL_dh_gen_ok -// + TL_dh_gen_retry -// + TL_dh_gen_fail +// Server_DH_Params <-- +// + TL_server_DH_params_fail +// + TL_server_DH_params_ok // -type SetClient_DHParamsAnswer_Data struct { +type Server_DH_Params_Data struct { Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` - NewNonceHash1 []byte `protobuf:"bytes,3,opt,name=new_nonce_hash1,json=newNonceHash1,proto3" json:"new_nonce_hash1,omitempty"` - NewNonceHash2 []byte `protobuf:"bytes,4,opt,name=new_nonce_hash2,json=newNonceHash2,proto3" json:"new_nonce_hash2,omitempty"` - NewNonceHash3 []byte `protobuf:"bytes,5,opt,name=new_nonce_hash3,json=newNonceHash3,proto3" json:"new_nonce_hash3,omitempty"` + NewNonceHash []byte `protobuf:"bytes,3,opt,name=new_nonce_hash,json=newNonceHash,proto3" json:"new_nonce_hash,omitempty"` + EncryptedAnswer string `protobuf:"bytes,4,opt,name=encrypted_answer,json=encryptedAnswer,proto3" json:"encrypted_answer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SetClient_DHParamsAnswer_Data) Reset() { *m = SetClient_DHParamsAnswer_Data{} } -func (m *SetClient_DHParamsAnswer_Data) String() string { return proto.CompactTextString(m) } -func (*SetClient_DHParamsAnswer_Data) ProtoMessage() {} -func (*SetClient_DHParamsAnswer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{0} +func (m *Server_DH_Params_Data) Reset() { *m = Server_DH_Params_Data{} } +func (m *Server_DH_Params_Data) String() string { return proto.CompactTextString(m) } +func (*Server_DH_Params_Data) ProtoMessage() {} +func (*Server_DH_Params_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{0} } -func (m *SetClient_DHParamsAnswer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetClient_DHParamsAnswer_Data.Unmarshal(m, b) +func (m *Server_DH_Params_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Server_DH_Params_Data.Unmarshal(m, b) } -func (m *SetClient_DHParamsAnswer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetClient_DHParamsAnswer_Data.Marshal(b, m, deterministic) +func (m *Server_DH_Params_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Server_DH_Params_Data.Marshal(b, m, deterministic) } -func (dst *SetClient_DHParamsAnswer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetClient_DHParamsAnswer_Data.Merge(dst, src) +func (dst *Server_DH_Params_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Server_DH_Params_Data.Merge(dst, src) } -func (m *SetClient_DHParamsAnswer_Data) XXX_Size() int { - return xxx_messageInfo_SetClient_DHParamsAnswer_Data.Size(m) +func (m *Server_DH_Params_Data) XXX_Size() int { + return xxx_messageInfo_Server_DH_Params_Data.Size(m) } -func (m *SetClient_DHParamsAnswer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SetClient_DHParamsAnswer_Data.DiscardUnknown(m) +func (m *Server_DH_Params_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Server_DH_Params_Data.DiscardUnknown(m) } -var xxx_messageInfo_SetClient_DHParamsAnswer_Data proto.InternalMessageInfo +var xxx_messageInfo_Server_DH_Params_Data proto.InternalMessageInfo -func (m *SetClient_DHParamsAnswer_Data) GetNonce() []byte { +func (m *Server_DH_Params_Data) GetNonce() []byte { if m != nil { return m.Nonce } return nil } -func (m *SetClient_DHParamsAnswer_Data) GetServerNonce() []byte { +func (m *Server_DH_Params_Data) GetServerNonce() []byte { if m != nil { return m.ServerNonce } return nil } -func (m *SetClient_DHParamsAnswer_Data) GetNewNonceHash1() []byte { - if m != nil { - return m.NewNonceHash1 - } - return nil -} - -func (m *SetClient_DHParamsAnswer_Data) GetNewNonceHash2() []byte { +func (m *Server_DH_Params_Data) GetNewNonceHash() []byte { if m != nil { - return m.NewNonceHash2 + return m.NewNonceHash } return nil } -func (m *SetClient_DHParamsAnswer_Data) GetNewNonceHash3() []byte { +func (m *Server_DH_Params_Data) GetEncryptedAnswer() string { if m != nil { - return m.NewNonceHash3 + return m.EncryptedAnswer } - return nil + return "" } -type SetClient_DHParamsAnswer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SetClient_DHParamsAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Server_DH_Params struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Server_DH_Params_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SetClient_DHParamsAnswer) Reset() { *m = SetClient_DHParamsAnswer{} } -func (m *SetClient_DHParamsAnswer) String() string { return proto.CompactTextString(m) } -func (*SetClient_DHParamsAnswer) ProtoMessage() {} -func (*SetClient_DHParamsAnswer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{1} +func (m *Server_DH_Params) Reset() { *m = Server_DH_Params{} } +func (m *Server_DH_Params) String() string { return proto.CompactTextString(m) } +func (*Server_DH_Params) ProtoMessage() {} +func (*Server_DH_Params) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{1} } -func (m *SetClient_DHParamsAnswer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetClient_DHParamsAnswer.Unmarshal(m, b) +func (m *Server_DH_Params) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Server_DH_Params.Unmarshal(m, b) } -func (m *SetClient_DHParamsAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetClient_DHParamsAnswer.Marshal(b, m, deterministic) +func (m *Server_DH_Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Server_DH_Params.Marshal(b, m, deterministic) } -func (dst *SetClient_DHParamsAnswer) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetClient_DHParamsAnswer.Merge(dst, src) +func (dst *Server_DH_Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Server_DH_Params.Merge(dst, src) } -func (m *SetClient_DHParamsAnswer) XXX_Size() int { - return xxx_messageInfo_SetClient_DHParamsAnswer.Size(m) +func (m *Server_DH_Params) XXX_Size() int { + return xxx_messageInfo_Server_DH_Params.Size(m) } -func (m *SetClient_DHParamsAnswer) XXX_DiscardUnknown() { - xxx_messageInfo_SetClient_DHParamsAnswer.DiscardUnknown(m) +func (m *Server_DH_Params) XXX_DiscardUnknown() { + xxx_messageInfo_Server_DH_Params.DiscardUnknown(m) } -var xxx_messageInfo_SetClient_DHParamsAnswer proto.InternalMessageInfo +var xxx_messageInfo_Server_DH_Params proto.InternalMessageInfo -func (m *SetClient_DHParamsAnswer) GetConstructor() TLConstructor { +func (m *Server_DH_Params) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *SetClient_DHParamsAnswer) GetData2() *SetClient_DHParamsAnswer_Data { +func (m *Server_DH_Params) GetData2() *Server_DH_Params_Data { if m != nil { return m.Data2 } return nil } -// dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer; -type TLDhGenOk struct { - Data2 *SetClient_DHParamsAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// server_DH_params_fail#79cb045d nonce:int128 server_nonce:int128 new_nonce_hash:int128 = Server_DH_Params; +type TLServer_DHParamsFail struct { + Data2 *Server_DH_Params_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDhGenOk) Reset() { *m = TLDhGenOk{} } -func (m *TLDhGenOk) String() string { return proto.CompactTextString(m) } -func (*TLDhGenOk) ProtoMessage() {} -func (*TLDhGenOk) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{2} +func (m *TLServer_DHParamsFail) Reset() { *m = TLServer_DHParamsFail{} } +func (m *TLServer_DHParamsFail) String() string { return proto.CompactTextString(m) } +func (*TLServer_DHParamsFail) ProtoMessage() {} +func (*TLServer_DHParamsFail) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{2} } -func (m *TLDhGenOk) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDhGenOk.Unmarshal(m, b) +func (m *TLServer_DHParamsFail) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLServer_DHParamsFail.Unmarshal(m, b) } -func (m *TLDhGenOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDhGenOk.Marshal(b, m, deterministic) +func (m *TLServer_DHParamsFail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLServer_DHParamsFail.Marshal(b, m, deterministic) } -func (dst *TLDhGenOk) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDhGenOk.Merge(dst, src) +func (dst *TLServer_DHParamsFail) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLServer_DHParamsFail.Merge(dst, src) } -func (m *TLDhGenOk) XXX_Size() int { - return xxx_messageInfo_TLDhGenOk.Size(m) +func (m *TLServer_DHParamsFail) XXX_Size() int { + return xxx_messageInfo_TLServer_DHParamsFail.Size(m) } -func (m *TLDhGenOk) XXX_DiscardUnknown() { - xxx_messageInfo_TLDhGenOk.DiscardUnknown(m) +func (m *TLServer_DHParamsFail) XXX_DiscardUnknown() { + xxx_messageInfo_TLServer_DHParamsFail.DiscardUnknown(m) } -var xxx_messageInfo_TLDhGenOk proto.InternalMessageInfo +var xxx_messageInfo_TLServer_DHParamsFail proto.InternalMessageInfo -func (m *TLDhGenOk) GetData2() *SetClient_DHParamsAnswer_Data { +func (m *TLServer_DHParamsFail) GetData2() *Server_DH_Params_Data { if m != nil { return m.Data2 } return nil } -// dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer; -type TLDhGenRetry struct { - Data2 *SetClient_DHParamsAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:string = Server_DH_Params; +type TLServer_DHParamsOk struct { + Data2 *Server_DH_Params_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDhGenRetry) Reset() { *m = TLDhGenRetry{} } -func (m *TLDhGenRetry) String() string { return proto.CompactTextString(m) } -func (*TLDhGenRetry) ProtoMessage() {} -func (*TLDhGenRetry) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{3} +func (m *TLServer_DHParamsOk) Reset() { *m = TLServer_DHParamsOk{} } +func (m *TLServer_DHParamsOk) String() string { return proto.CompactTextString(m) } +func (*TLServer_DHParamsOk) ProtoMessage() {} +func (*TLServer_DHParamsOk) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{3} } -func (m *TLDhGenRetry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDhGenRetry.Unmarshal(m, b) +func (m *TLServer_DHParamsOk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLServer_DHParamsOk.Unmarshal(m, b) } -func (m *TLDhGenRetry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDhGenRetry.Marshal(b, m, deterministic) +func (m *TLServer_DHParamsOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLServer_DHParamsOk.Marshal(b, m, deterministic) } -func (dst *TLDhGenRetry) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDhGenRetry.Merge(dst, src) +func (dst *TLServer_DHParamsOk) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLServer_DHParamsOk.Merge(dst, src) } -func (m *TLDhGenRetry) XXX_Size() int { - return xxx_messageInfo_TLDhGenRetry.Size(m) +func (m *TLServer_DHParamsOk) XXX_Size() int { + return xxx_messageInfo_TLServer_DHParamsOk.Size(m) } -func (m *TLDhGenRetry) XXX_DiscardUnknown() { - xxx_messageInfo_TLDhGenRetry.DiscardUnknown(m) +func (m *TLServer_DHParamsOk) XXX_DiscardUnknown() { + xxx_messageInfo_TLServer_DHParamsOk.DiscardUnknown(m) } -var xxx_messageInfo_TLDhGenRetry proto.InternalMessageInfo +var xxx_messageInfo_TLServer_DHParamsOk proto.InternalMessageInfo -func (m *TLDhGenRetry) GetData2() *SetClient_DHParamsAnswer_Data { +func (m *TLServer_DHParamsOk) GetData2() *Server_DH_Params_Data { if m != nil { return m.Data2 } return nil } -// dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer; -type TLDhGenFail struct { - Data2 *SetClient_DHParamsAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// Server_DH_inner_data <-- +// + TL_server_DH_inner_data +// +type Server_DHInnerData_Data struct { + Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` + G int32 `protobuf:"varint,3,opt,name=g,proto3" json:"g,omitempty"` + DhPrime string `protobuf:"bytes,4,opt,name=dh_prime,json=dhPrime,proto3" json:"dh_prime,omitempty"` + GA string `protobuf:"bytes,5,opt,name=g_a,json=gA,proto3" json:"g_a,omitempty"` + ServerTime int32 `protobuf:"varint,6,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDhGenFail) Reset() { *m = TLDhGenFail{} } -func (m *TLDhGenFail) String() string { return proto.CompactTextString(m) } -func (*TLDhGenFail) ProtoMessage() {} -func (*TLDhGenFail) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{4} +func (m *Server_DHInnerData_Data) Reset() { *m = Server_DHInnerData_Data{} } +func (m *Server_DHInnerData_Data) String() string { return proto.CompactTextString(m) } +func (*Server_DHInnerData_Data) ProtoMessage() {} +func (*Server_DHInnerData_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{4} } -func (m *TLDhGenFail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDhGenFail.Unmarshal(m, b) +func (m *Server_DHInnerData_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Server_DHInnerData_Data.Unmarshal(m, b) } -func (m *TLDhGenFail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDhGenFail.Marshal(b, m, deterministic) +func (m *Server_DHInnerData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Server_DHInnerData_Data.Marshal(b, m, deterministic) } -func (dst *TLDhGenFail) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDhGenFail.Merge(dst, src) +func (dst *Server_DHInnerData_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Server_DHInnerData_Data.Merge(dst, src) } -func (m *TLDhGenFail) XXX_Size() int { - return xxx_messageInfo_TLDhGenFail.Size(m) +func (m *Server_DHInnerData_Data) XXX_Size() int { + return xxx_messageInfo_Server_DHInnerData_Data.Size(m) } -func (m *TLDhGenFail) XXX_DiscardUnknown() { - xxx_messageInfo_TLDhGenFail.DiscardUnknown(m) +func (m *Server_DHInnerData_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Server_DHInnerData_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLDhGenFail proto.InternalMessageInfo +var xxx_messageInfo_Server_DHInnerData_Data proto.InternalMessageInfo -func (m *TLDhGenFail) GetData2() *SetClient_DHParamsAnswer_Data { +func (m *Server_DHInnerData_Data) GetNonce() []byte { if m != nil { - return m.Data2 + return m.Nonce } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// DestroyAuthKeyRes <-- -// + TL_destroy_auth_key_ok -// + TL_destroy_auth_key_none -// + TL_destroy_auth_key_fail -// -type DestroyAuthKeyRes_Data struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Server_DHInnerData_Data) GetServerNonce() []byte { + if m != nil { + return m.ServerNonce + } + return nil } -func (m *DestroyAuthKeyRes_Data) Reset() { *m = DestroyAuthKeyRes_Data{} } -func (m *DestroyAuthKeyRes_Data) String() string { return proto.CompactTextString(m) } -func (*DestroyAuthKeyRes_Data) ProtoMessage() {} -func (*DestroyAuthKeyRes_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{5} -} -func (m *DestroyAuthKeyRes_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DestroyAuthKeyRes_Data.Unmarshal(m, b) -} -func (m *DestroyAuthKeyRes_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DestroyAuthKeyRes_Data.Marshal(b, m, deterministic) -} -func (dst *DestroyAuthKeyRes_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_DestroyAuthKeyRes_Data.Merge(dst, src) +func (m *Server_DHInnerData_Data) GetG() int32 { + if m != nil { + return m.G + } + return 0 } -func (m *DestroyAuthKeyRes_Data) XXX_Size() int { - return xxx_messageInfo_DestroyAuthKeyRes_Data.Size(m) + +func (m *Server_DHInnerData_Data) GetDhPrime() string { + if m != nil { + return m.DhPrime + } + return "" } -func (m *DestroyAuthKeyRes_Data) XXX_DiscardUnknown() { - xxx_messageInfo_DestroyAuthKeyRes_Data.DiscardUnknown(m) + +func (m *Server_DHInnerData_Data) GetGA() string { + if m != nil { + return m.GA + } + return "" } -var xxx_messageInfo_DestroyAuthKeyRes_Data proto.InternalMessageInfo +func (m *Server_DHInnerData_Data) GetServerTime() int32 { + if m != nil { + return m.ServerTime + } + return 0 +} -type DestroyAuthKeyRes struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *DestroyAuthKeyRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Server_DHInnerData struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Server_DHInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DestroyAuthKeyRes) Reset() { *m = DestroyAuthKeyRes{} } -func (m *DestroyAuthKeyRes) String() string { return proto.CompactTextString(m) } -func (*DestroyAuthKeyRes) ProtoMessage() {} -func (*DestroyAuthKeyRes) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{6} +func (m *Server_DHInnerData) Reset() { *m = Server_DHInnerData{} } +func (m *Server_DHInnerData) String() string { return proto.CompactTextString(m) } +func (*Server_DHInnerData) ProtoMessage() {} +func (*Server_DHInnerData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{5} } -func (m *DestroyAuthKeyRes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DestroyAuthKeyRes.Unmarshal(m, b) +func (m *Server_DHInnerData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Server_DHInnerData.Unmarshal(m, b) } -func (m *DestroyAuthKeyRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DestroyAuthKeyRes.Marshal(b, m, deterministic) +func (m *Server_DHInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Server_DHInnerData.Marshal(b, m, deterministic) } -func (dst *DestroyAuthKeyRes) XXX_Merge(src proto.Message) { - xxx_messageInfo_DestroyAuthKeyRes.Merge(dst, src) +func (dst *Server_DHInnerData) XXX_Merge(src proto.Message) { + xxx_messageInfo_Server_DHInnerData.Merge(dst, src) } -func (m *DestroyAuthKeyRes) XXX_Size() int { - return xxx_messageInfo_DestroyAuthKeyRes.Size(m) +func (m *Server_DHInnerData) XXX_Size() int { + return xxx_messageInfo_Server_DHInnerData.Size(m) } -func (m *DestroyAuthKeyRes) XXX_DiscardUnknown() { - xxx_messageInfo_DestroyAuthKeyRes.DiscardUnknown(m) +func (m *Server_DHInnerData) XXX_DiscardUnknown() { + xxx_messageInfo_Server_DHInnerData.DiscardUnknown(m) } -var xxx_messageInfo_DestroyAuthKeyRes proto.InternalMessageInfo +var xxx_messageInfo_Server_DHInnerData proto.InternalMessageInfo -func (m *DestroyAuthKeyRes) GetConstructor() TLConstructor { +func (m *Server_DHInnerData) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *DestroyAuthKeyRes) GetData2() *DestroyAuthKeyRes_Data { +func (m *Server_DHInnerData) GetData2() *Server_DHInnerData_Data { if m != nil { return m.Data2 } return nil } -// destroy_auth_key_ok#f660e1d4 = DestroyAuthKeyRes; -type TLDestroyAuthKeyOk struct { - Data2 *DestroyAuthKeyRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// server_DH_inner_data#b5890dba nonce:int128 server_nonce:int128 g:int dh_prime:string g_a:string server_time:int = Server_DH_inner_data; +type TLServer_DHInnerData struct { + Data2 *Server_DHInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDestroyAuthKeyOk) Reset() { *m = TLDestroyAuthKeyOk{} } -func (m *TLDestroyAuthKeyOk) String() string { return proto.CompactTextString(m) } -func (*TLDestroyAuthKeyOk) ProtoMessage() {} -func (*TLDestroyAuthKeyOk) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{7} +func (m *TLServer_DHInnerData) Reset() { *m = TLServer_DHInnerData{} } +func (m *TLServer_DHInnerData) String() string { return proto.CompactTextString(m) } +func (*TLServer_DHInnerData) ProtoMessage() {} +func (*TLServer_DHInnerData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{6} } -func (m *TLDestroyAuthKeyOk) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDestroyAuthKeyOk.Unmarshal(m, b) +func (m *TLServer_DHInnerData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLServer_DHInnerData.Unmarshal(m, b) } -func (m *TLDestroyAuthKeyOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDestroyAuthKeyOk.Marshal(b, m, deterministic) +func (m *TLServer_DHInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLServer_DHInnerData.Marshal(b, m, deterministic) } -func (dst *TLDestroyAuthKeyOk) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDestroyAuthKeyOk.Merge(dst, src) +func (dst *TLServer_DHInnerData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLServer_DHInnerData.Merge(dst, src) } -func (m *TLDestroyAuthKeyOk) XXX_Size() int { - return xxx_messageInfo_TLDestroyAuthKeyOk.Size(m) +func (m *TLServer_DHInnerData) XXX_Size() int { + return xxx_messageInfo_TLServer_DHInnerData.Size(m) } -func (m *TLDestroyAuthKeyOk) XXX_DiscardUnknown() { - xxx_messageInfo_TLDestroyAuthKeyOk.DiscardUnknown(m) +func (m *TLServer_DHInnerData) XXX_DiscardUnknown() { + xxx_messageInfo_TLServer_DHInnerData.DiscardUnknown(m) } -var xxx_messageInfo_TLDestroyAuthKeyOk proto.InternalMessageInfo +var xxx_messageInfo_TLServer_DHInnerData proto.InternalMessageInfo -func (m *TLDestroyAuthKeyOk) GetData2() *DestroyAuthKeyRes_Data { +func (m *TLServer_DHInnerData) GetData2() *Server_DHInnerData_Data { if m != nil { return m.Data2 } return nil } -// destroy_auth_key_none#0a9f2259 = DestroyAuthKeyRes; -type TLDestroyAuthKeyNone struct { - Data2 *DestroyAuthKeyRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// Client_DH_Inner_Data <-- +// + TL_client_DH_inner_data +// +type Client_DH_Inner_Data_Data struct { + Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` + RetryId int64 `protobuf:"varint,3,opt,name=retry_id,json=retryId,proto3" json:"retry_id,omitempty"` + GB string `protobuf:"bytes,4,opt,name=g_b,json=gB,proto3" json:"g_b,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDestroyAuthKeyNone) Reset() { *m = TLDestroyAuthKeyNone{} } -func (m *TLDestroyAuthKeyNone) String() string { return proto.CompactTextString(m) } -func (*TLDestroyAuthKeyNone) ProtoMessage() {} -func (*TLDestroyAuthKeyNone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{8} +func (m *Client_DH_Inner_Data_Data) Reset() { *m = Client_DH_Inner_Data_Data{} } +func (m *Client_DH_Inner_Data_Data) String() string { return proto.CompactTextString(m) } +func (*Client_DH_Inner_Data_Data) ProtoMessage() {} +func (*Client_DH_Inner_Data_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{7} } -func (m *TLDestroyAuthKeyNone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDestroyAuthKeyNone.Unmarshal(m, b) +func (m *Client_DH_Inner_Data_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Client_DH_Inner_Data_Data.Unmarshal(m, b) } -func (m *TLDestroyAuthKeyNone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDestroyAuthKeyNone.Marshal(b, m, deterministic) +func (m *Client_DH_Inner_Data_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Client_DH_Inner_Data_Data.Marshal(b, m, deterministic) } -func (dst *TLDestroyAuthKeyNone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDestroyAuthKeyNone.Merge(dst, src) +func (dst *Client_DH_Inner_Data_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Client_DH_Inner_Data_Data.Merge(dst, src) } -func (m *TLDestroyAuthKeyNone) XXX_Size() int { - return xxx_messageInfo_TLDestroyAuthKeyNone.Size(m) +func (m *Client_DH_Inner_Data_Data) XXX_Size() int { + return xxx_messageInfo_Client_DH_Inner_Data_Data.Size(m) } -func (m *TLDestroyAuthKeyNone) XXX_DiscardUnknown() { - xxx_messageInfo_TLDestroyAuthKeyNone.DiscardUnknown(m) +func (m *Client_DH_Inner_Data_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Client_DH_Inner_Data_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLDestroyAuthKeyNone proto.InternalMessageInfo +var xxx_messageInfo_Client_DH_Inner_Data_Data proto.InternalMessageInfo -func (m *TLDestroyAuthKeyNone) GetData2() *DestroyAuthKeyRes_Data { +func (m *Client_DH_Inner_Data_Data) GetNonce() []byte { + if m != nil { + return m.Nonce + } + return nil +} + +func (m *Client_DH_Inner_Data_Data) GetServerNonce() []byte { + if m != nil { + return m.ServerNonce + } + return nil +} + +func (m *Client_DH_Inner_Data_Data) GetRetryId() int64 { + if m != nil { + return m.RetryId + } + return 0 +} + +func (m *Client_DH_Inner_Data_Data) GetGB() string { + if m != nil { + return m.GB + } + return "" +} + +type Client_DH_Inner_Data struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Client_DH_Inner_Data_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Client_DH_Inner_Data) Reset() { *m = Client_DH_Inner_Data{} } +func (m *Client_DH_Inner_Data) String() string { return proto.CompactTextString(m) } +func (*Client_DH_Inner_Data) ProtoMessage() {} +func (*Client_DH_Inner_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{8} +} +func (m *Client_DH_Inner_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Client_DH_Inner_Data.Unmarshal(m, b) +} +func (m *Client_DH_Inner_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Client_DH_Inner_Data.Marshal(b, m, deterministic) +} +func (dst *Client_DH_Inner_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Client_DH_Inner_Data.Merge(dst, src) +} +func (m *Client_DH_Inner_Data) XXX_Size() int { + return xxx_messageInfo_Client_DH_Inner_Data.Size(m) +} +func (m *Client_DH_Inner_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Client_DH_Inner_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_Client_DH_Inner_Data proto.InternalMessageInfo + +func (m *Client_DH_Inner_Data) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Client_DH_Inner_Data) GetData2() *Client_DH_Inner_Data_Data { if m != nil { return m.Data2 } return nil } -// destroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes; -type TLDestroyAuthKeyFail struct { - Data2 *DestroyAuthKeyRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// client_DH_inner_data#6643b654 nonce:int128 server_nonce:int128 retry_id:long g_b:string = Client_DH_Inner_Data; +type TLClient_DHInnerData struct { + Data2 *Client_DH_Inner_Data_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDestroyAuthKeyFail) Reset() { *m = TLDestroyAuthKeyFail{} } -func (m *TLDestroyAuthKeyFail) String() string { return proto.CompactTextString(m) } -func (*TLDestroyAuthKeyFail) ProtoMessage() {} -func (*TLDestroyAuthKeyFail) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{9} +func (m *TLClient_DHInnerData) Reset() { *m = TLClient_DHInnerData{} } +func (m *TLClient_DHInnerData) String() string { return proto.CompactTextString(m) } +func (*TLClient_DHInnerData) ProtoMessage() {} +func (*TLClient_DHInnerData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{9} } -func (m *TLDestroyAuthKeyFail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDestroyAuthKeyFail.Unmarshal(m, b) +func (m *TLClient_DHInnerData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLClient_DHInnerData.Unmarshal(m, b) } -func (m *TLDestroyAuthKeyFail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDestroyAuthKeyFail.Marshal(b, m, deterministic) +func (m *TLClient_DHInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLClient_DHInnerData.Marshal(b, m, deterministic) } -func (dst *TLDestroyAuthKeyFail) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDestroyAuthKeyFail.Merge(dst, src) +func (dst *TLClient_DHInnerData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLClient_DHInnerData.Merge(dst, src) } -func (m *TLDestroyAuthKeyFail) XXX_Size() int { - return xxx_messageInfo_TLDestroyAuthKeyFail.Size(m) +func (m *TLClient_DHInnerData) XXX_Size() int { + return xxx_messageInfo_TLClient_DHInnerData.Size(m) } -func (m *TLDestroyAuthKeyFail) XXX_DiscardUnknown() { - xxx_messageInfo_TLDestroyAuthKeyFail.DiscardUnknown(m) +func (m *TLClient_DHInnerData) XXX_DiscardUnknown() { + xxx_messageInfo_TLClient_DHInnerData.DiscardUnknown(m) } -var xxx_messageInfo_TLDestroyAuthKeyFail proto.InternalMessageInfo +var xxx_messageInfo_TLClient_DHInnerData proto.InternalMessageInfo -func (m *TLDestroyAuthKeyFail) GetData2() *DestroyAuthKeyRes_Data { +func (m *TLClient_DHInnerData) GetData2() *Client_DH_Inner_Data_Data { if m != nil { return m.Data2 } @@ -457,453 +528,437 @@ func (m *TLDestroyAuthKeyFail) GetData2() *DestroyAuthKeyRes_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ResPQ <-- -// + TL_resPQ +// Set_client_DH_params_answer <-- +// + TL_dh_gen_ok +// + TL_dh_gen_retry +// + TL_dh_gen_fail // -type ResPQ_Data struct { - Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` - Pq string `protobuf:"bytes,3,opt,name=pq,proto3" json:"pq,omitempty"` - ServerPublicKeyFingerprints []int64 `protobuf:"varint,4,rep,packed,name=server_public_key_fingerprints,json=serverPublicKeyFingerprints,proto3" json:"server_public_key_fingerprints,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SetClient_DHParamsAnswer_Data struct { + Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` + NewNonceHash1 []byte `protobuf:"bytes,3,opt,name=new_nonce_hash1,json=newNonceHash1,proto3" json:"new_nonce_hash1,omitempty"` + NewNonceHash2 []byte `protobuf:"bytes,4,opt,name=new_nonce_hash2,json=newNonceHash2,proto3" json:"new_nonce_hash2,omitempty"` + NewNonceHash3 []byte `protobuf:"bytes,5,opt,name=new_nonce_hash3,json=newNonceHash3,proto3" json:"new_nonce_hash3,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ResPQ_Data) Reset() { *m = ResPQ_Data{} } -func (m *ResPQ_Data) String() string { return proto.CompactTextString(m) } -func (*ResPQ_Data) ProtoMessage() {} -func (*ResPQ_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{10} +func (m *SetClient_DHParamsAnswer_Data) Reset() { *m = SetClient_DHParamsAnswer_Data{} } +func (m *SetClient_DHParamsAnswer_Data) String() string { return proto.CompactTextString(m) } +func (*SetClient_DHParamsAnswer_Data) ProtoMessage() {} +func (*SetClient_DHParamsAnswer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{10} } -func (m *ResPQ_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResPQ_Data.Unmarshal(m, b) +func (m *SetClient_DHParamsAnswer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetClient_DHParamsAnswer_Data.Unmarshal(m, b) } -func (m *ResPQ_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResPQ_Data.Marshal(b, m, deterministic) +func (m *SetClient_DHParamsAnswer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetClient_DHParamsAnswer_Data.Marshal(b, m, deterministic) } -func (dst *ResPQ_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResPQ_Data.Merge(dst, src) +func (dst *SetClient_DHParamsAnswer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetClient_DHParamsAnswer_Data.Merge(dst, src) } -func (m *ResPQ_Data) XXX_Size() int { - return xxx_messageInfo_ResPQ_Data.Size(m) +func (m *SetClient_DHParamsAnswer_Data) XXX_Size() int { + return xxx_messageInfo_SetClient_DHParamsAnswer_Data.Size(m) } -func (m *ResPQ_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ResPQ_Data.DiscardUnknown(m) +func (m *SetClient_DHParamsAnswer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SetClient_DHParamsAnswer_Data.DiscardUnknown(m) } -var xxx_messageInfo_ResPQ_Data proto.InternalMessageInfo +var xxx_messageInfo_SetClient_DHParamsAnswer_Data proto.InternalMessageInfo -func (m *ResPQ_Data) GetNonce() []byte { +func (m *SetClient_DHParamsAnswer_Data) GetNonce() []byte { if m != nil { return m.Nonce } return nil } -func (m *ResPQ_Data) GetServerNonce() []byte { +func (m *SetClient_DHParamsAnswer_Data) GetServerNonce() []byte { if m != nil { return m.ServerNonce } return nil } -func (m *ResPQ_Data) GetPq() string { +func (m *SetClient_DHParamsAnswer_Data) GetNewNonceHash1() []byte { if m != nil { - return m.Pq + return m.NewNonceHash1 } - return "" + return nil } -func (m *ResPQ_Data) GetServerPublicKeyFingerprints() []int64 { +func (m *SetClient_DHParamsAnswer_Data) GetNewNonceHash2() []byte { if m != nil { - return m.ServerPublicKeyFingerprints + return m.NewNonceHash2 } return nil } -type ResPQ struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ResPQ_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *SetClient_DHParamsAnswer_Data) GetNewNonceHash3() []byte { + if m != nil { + return m.NewNonceHash3 + } + return nil +} + +type SetClient_DHParamsAnswer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SetClient_DHParamsAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ResPQ) Reset() { *m = ResPQ{} } -func (m *ResPQ) String() string { return proto.CompactTextString(m) } -func (*ResPQ) ProtoMessage() {} -func (*ResPQ) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{11} +func (m *SetClient_DHParamsAnswer) Reset() { *m = SetClient_DHParamsAnswer{} } +func (m *SetClient_DHParamsAnswer) String() string { return proto.CompactTextString(m) } +func (*SetClient_DHParamsAnswer) ProtoMessage() {} +func (*SetClient_DHParamsAnswer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{11} } -func (m *ResPQ) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResPQ.Unmarshal(m, b) +func (m *SetClient_DHParamsAnswer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetClient_DHParamsAnswer.Unmarshal(m, b) } -func (m *ResPQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResPQ.Marshal(b, m, deterministic) +func (m *SetClient_DHParamsAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetClient_DHParamsAnswer.Marshal(b, m, deterministic) } -func (dst *ResPQ) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResPQ.Merge(dst, src) +func (dst *SetClient_DHParamsAnswer) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetClient_DHParamsAnswer.Merge(dst, src) } -func (m *ResPQ) XXX_Size() int { - return xxx_messageInfo_ResPQ.Size(m) +func (m *SetClient_DHParamsAnswer) XXX_Size() int { + return xxx_messageInfo_SetClient_DHParamsAnswer.Size(m) } -func (m *ResPQ) XXX_DiscardUnknown() { - xxx_messageInfo_ResPQ.DiscardUnknown(m) +func (m *SetClient_DHParamsAnswer) XXX_DiscardUnknown() { + xxx_messageInfo_SetClient_DHParamsAnswer.DiscardUnknown(m) } -var xxx_messageInfo_ResPQ proto.InternalMessageInfo +var xxx_messageInfo_SetClient_DHParamsAnswer proto.InternalMessageInfo -func (m *ResPQ) GetConstructor() TLConstructor { +func (m *SetClient_DHParamsAnswer) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ResPQ) GetData2() *ResPQ_Data { +func (m *SetClient_DHParamsAnswer) GetData2() *SetClient_DHParamsAnswer_Data { if m != nil { return m.Data2 } return nil } -// resPQ#05162463 nonce:int128 server_nonce:int128 pq:string server_public_key_fingerprints:Vector = ResPQ; -type TLResPQ struct { - Data2 *ResPQ_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer; +type TLDhGenOk struct { + Data2 *SetClient_DHParamsAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLResPQ) Reset() { *m = TLResPQ{} } -func (m *TLResPQ) String() string { return proto.CompactTextString(m) } -func (*TLResPQ) ProtoMessage() {} -func (*TLResPQ) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{12} +func (m *TLDhGenOk) Reset() { *m = TLDhGenOk{} } +func (m *TLDhGenOk) String() string { return proto.CompactTextString(m) } +func (*TLDhGenOk) ProtoMessage() {} +func (*TLDhGenOk) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{12} } -func (m *TLResPQ) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLResPQ.Unmarshal(m, b) +func (m *TLDhGenOk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDhGenOk.Unmarshal(m, b) } -func (m *TLResPQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLResPQ.Marshal(b, m, deterministic) +func (m *TLDhGenOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDhGenOk.Marshal(b, m, deterministic) } -func (dst *TLResPQ) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLResPQ.Merge(dst, src) +func (dst *TLDhGenOk) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDhGenOk.Merge(dst, src) } -func (m *TLResPQ) XXX_Size() int { - return xxx_messageInfo_TLResPQ.Size(m) +func (m *TLDhGenOk) XXX_Size() int { + return xxx_messageInfo_TLDhGenOk.Size(m) } -func (m *TLResPQ) XXX_DiscardUnknown() { - xxx_messageInfo_TLResPQ.DiscardUnknown(m) +func (m *TLDhGenOk) XXX_DiscardUnknown() { + xxx_messageInfo_TLDhGenOk.DiscardUnknown(m) } -var xxx_messageInfo_TLResPQ proto.InternalMessageInfo +var xxx_messageInfo_TLDhGenOk proto.InternalMessageInfo -func (m *TLResPQ) GetData2() *ResPQ_Data { +func (m *TLDhGenOk) GetData2() *SetClient_DHParamsAnswer_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// P_Q_inner_data <-- -// + TL_p_q_inner_data -// + TL_p_q_inner_data_dc -// + TL_p_q_inner_data_temp -// + TL_p_q_inner_data_temp_dc -// -type P_QInnerData_Data struct { - Pq string `protobuf:"bytes,1,opt,name=pq,proto3" json:"pq,omitempty"` - P string `protobuf:"bytes,2,opt,name=p,proto3" json:"p,omitempty"` - Q string `protobuf:"bytes,3,opt,name=q,proto3" json:"q,omitempty"` - Nonce []byte `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"` - ServerNonce []byte `protobuf:"bytes,5,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` - NewNonce []byte `protobuf:"bytes,6,opt,name=new_nonce,json=newNonce,proto3" json:"new_nonce,omitempty"` - Dc int32 `protobuf:"varint,7,opt,name=dc,proto3" json:"dc,omitempty"` - ExpiresIn int32 `protobuf:"varint,8,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer; +type TLDhGenRetry struct { + Data2 *SetClient_DHParamsAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *P_QInnerData_Data) Reset() { *m = P_QInnerData_Data{} } -func (m *P_QInnerData_Data) String() string { return proto.CompactTextString(m) } -func (*P_QInnerData_Data) ProtoMessage() {} -func (*P_QInnerData_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{13} +func (m *TLDhGenRetry) Reset() { *m = TLDhGenRetry{} } +func (m *TLDhGenRetry) String() string { return proto.CompactTextString(m) } +func (*TLDhGenRetry) ProtoMessage() {} +func (*TLDhGenRetry) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{13} } -func (m *P_QInnerData_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_P_QInnerData_Data.Unmarshal(m, b) +func (m *TLDhGenRetry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDhGenRetry.Unmarshal(m, b) } -func (m *P_QInnerData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_P_QInnerData_Data.Marshal(b, m, deterministic) +func (m *TLDhGenRetry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDhGenRetry.Marshal(b, m, deterministic) } -func (dst *P_QInnerData_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_P_QInnerData_Data.Merge(dst, src) +func (dst *TLDhGenRetry) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDhGenRetry.Merge(dst, src) } -func (m *P_QInnerData_Data) XXX_Size() int { - return xxx_messageInfo_P_QInnerData_Data.Size(m) +func (m *TLDhGenRetry) XXX_Size() int { + return xxx_messageInfo_TLDhGenRetry.Size(m) } -func (m *P_QInnerData_Data) XXX_DiscardUnknown() { - xxx_messageInfo_P_QInnerData_Data.DiscardUnknown(m) +func (m *TLDhGenRetry) XXX_DiscardUnknown() { + xxx_messageInfo_TLDhGenRetry.DiscardUnknown(m) } -var xxx_messageInfo_P_QInnerData_Data proto.InternalMessageInfo +var xxx_messageInfo_TLDhGenRetry proto.InternalMessageInfo -func (m *P_QInnerData_Data) GetPq() string { +func (m *TLDhGenRetry) GetData2() *SetClient_DHParamsAnswer_Data { if m != nil { - return m.Pq + return m.Data2 } - return "" + return nil } -func (m *P_QInnerData_Data) GetP() string { - if m != nil { - return m.P - } - return "" +// dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer; +type TLDhGenFail struct { + Data2 *SetClient_DHParamsAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *P_QInnerData_Data) GetQ() string { - if m != nil { - return m.Q - } - return "" +func (m *TLDhGenFail) Reset() { *m = TLDhGenFail{} } +func (m *TLDhGenFail) String() string { return proto.CompactTextString(m) } +func (*TLDhGenFail) ProtoMessage() {} +func (*TLDhGenFail) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{14} } - -func (m *P_QInnerData_Data) GetNonce() []byte { - if m != nil { - return m.Nonce - } - return nil +func (m *TLDhGenFail) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDhGenFail.Unmarshal(m, b) } - -func (m *P_QInnerData_Data) GetServerNonce() []byte { - if m != nil { - return m.ServerNonce - } - return nil +func (m *TLDhGenFail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDhGenFail.Marshal(b, m, deterministic) } - -func (m *P_QInnerData_Data) GetNewNonce() []byte { - if m != nil { - return m.NewNonce - } - return nil +func (dst *TLDhGenFail) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDhGenFail.Merge(dst, src) } - -func (m *P_QInnerData_Data) GetDc() int32 { - if m != nil { - return m.Dc - } - return 0 +func (m *TLDhGenFail) XXX_Size() int { + return xxx_messageInfo_TLDhGenFail.Size(m) +} +func (m *TLDhGenFail) XXX_DiscardUnknown() { + xxx_messageInfo_TLDhGenFail.DiscardUnknown(m) } -func (m *P_QInnerData_Data) GetExpiresIn() int32 { +var xxx_messageInfo_TLDhGenFail proto.InternalMessageInfo + +func (m *TLDhGenFail) GetData2() *SetClient_DHParamsAnswer_Data { if m != nil { - return m.ExpiresIn + return m.Data2 } - return 0 + return nil } -type P_QInnerData struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// DestroyAuthKeyRes <-- +// + TL_destroy_auth_key_ok +// + TL_destroy_auth_key_none +// + TL_destroy_auth_key_fail +// +type DestroyAuthKeyRes_Data struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *P_QInnerData) Reset() { *m = P_QInnerData{} } -func (m *P_QInnerData) String() string { return proto.CompactTextString(m) } -func (*P_QInnerData) ProtoMessage() {} -func (*P_QInnerData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{14} -} -func (m *P_QInnerData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_P_QInnerData.Unmarshal(m, b) -} -func (m *P_QInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_P_QInnerData.Marshal(b, m, deterministic) +func (m *DestroyAuthKeyRes_Data) Reset() { *m = DestroyAuthKeyRes_Data{} } +func (m *DestroyAuthKeyRes_Data) String() string { return proto.CompactTextString(m) } +func (*DestroyAuthKeyRes_Data) ProtoMessage() {} +func (*DestroyAuthKeyRes_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{15} } -func (dst *P_QInnerData) XXX_Merge(src proto.Message) { - xxx_messageInfo_P_QInnerData.Merge(dst, src) +func (m *DestroyAuthKeyRes_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DestroyAuthKeyRes_Data.Unmarshal(m, b) } -func (m *P_QInnerData) XXX_Size() int { - return xxx_messageInfo_P_QInnerData.Size(m) +func (m *DestroyAuthKeyRes_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DestroyAuthKeyRes_Data.Marshal(b, m, deterministic) } -func (m *P_QInnerData) XXX_DiscardUnknown() { - xxx_messageInfo_P_QInnerData.DiscardUnknown(m) +func (dst *DestroyAuthKeyRes_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_DestroyAuthKeyRes_Data.Merge(dst, src) } - -var xxx_messageInfo_P_QInnerData proto.InternalMessageInfo - -func (m *P_QInnerData) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN +func (m *DestroyAuthKeyRes_Data) XXX_Size() int { + return xxx_messageInfo_DestroyAuthKeyRes_Data.Size(m) } - -func (m *P_QInnerData) GetData2() *P_QInnerData_Data { - if m != nil { - return m.Data2 - } - return nil +func (m *DestroyAuthKeyRes_Data) XXX_DiscardUnknown() { + xxx_messageInfo_DestroyAuthKeyRes_Data.DiscardUnknown(m) } -// p_q_inner_data#83c95aec pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 = P_Q_inner_data; -type TLPQInnerData struct { - Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +var xxx_messageInfo_DestroyAuthKeyRes_Data proto.InternalMessageInfo + +type DestroyAuthKeyRes struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *DestroyAuthKeyRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPQInnerData) Reset() { *m = TLPQInnerData{} } -func (m *TLPQInnerData) String() string { return proto.CompactTextString(m) } -func (*TLPQInnerData) ProtoMessage() {} -func (*TLPQInnerData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{15} +func (m *DestroyAuthKeyRes) Reset() { *m = DestroyAuthKeyRes{} } +func (m *DestroyAuthKeyRes) String() string { return proto.CompactTextString(m) } +func (*DestroyAuthKeyRes) ProtoMessage() {} +func (*DestroyAuthKeyRes) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{16} } -func (m *TLPQInnerData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPQInnerData.Unmarshal(m, b) +func (m *DestroyAuthKeyRes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DestroyAuthKeyRes.Unmarshal(m, b) } -func (m *TLPQInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPQInnerData.Marshal(b, m, deterministic) +func (m *DestroyAuthKeyRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DestroyAuthKeyRes.Marshal(b, m, deterministic) } -func (dst *TLPQInnerData) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPQInnerData.Merge(dst, src) +func (dst *DestroyAuthKeyRes) XXX_Merge(src proto.Message) { + xxx_messageInfo_DestroyAuthKeyRes.Merge(dst, src) } -func (m *TLPQInnerData) XXX_Size() int { - return xxx_messageInfo_TLPQInnerData.Size(m) +func (m *DestroyAuthKeyRes) XXX_Size() int { + return xxx_messageInfo_DestroyAuthKeyRes.Size(m) } -func (m *TLPQInnerData) XXX_DiscardUnknown() { - xxx_messageInfo_TLPQInnerData.DiscardUnknown(m) +func (m *DestroyAuthKeyRes) XXX_DiscardUnknown() { + xxx_messageInfo_DestroyAuthKeyRes.DiscardUnknown(m) } -var xxx_messageInfo_TLPQInnerData proto.InternalMessageInfo +var xxx_messageInfo_DestroyAuthKeyRes proto.InternalMessageInfo -func (m *TLPQInnerData) GetData2() *P_QInnerData_Data { +func (m *DestroyAuthKeyRes) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *DestroyAuthKeyRes) GetData2() *DestroyAuthKeyRes_Data { if m != nil { return m.Data2 } return nil } -// p_q_inner_data_dc#a9f55f95 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 dc:int = P_Q_inner_data; -type TLPQInnerDataDc struct { - Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// destroy_auth_key_ok#f660e1d4 = DestroyAuthKeyRes; +type TLDestroyAuthKeyOk struct { + Data2 *DestroyAuthKeyRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPQInnerDataDc) Reset() { *m = TLPQInnerDataDc{} } -func (m *TLPQInnerDataDc) String() string { return proto.CompactTextString(m) } -func (*TLPQInnerDataDc) ProtoMessage() {} -func (*TLPQInnerDataDc) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{16} +func (m *TLDestroyAuthKeyOk) Reset() { *m = TLDestroyAuthKeyOk{} } +func (m *TLDestroyAuthKeyOk) String() string { return proto.CompactTextString(m) } +func (*TLDestroyAuthKeyOk) ProtoMessage() {} +func (*TLDestroyAuthKeyOk) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{17} } -func (m *TLPQInnerDataDc) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPQInnerDataDc.Unmarshal(m, b) +func (m *TLDestroyAuthKeyOk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDestroyAuthKeyOk.Unmarshal(m, b) } -func (m *TLPQInnerDataDc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPQInnerDataDc.Marshal(b, m, deterministic) +func (m *TLDestroyAuthKeyOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDestroyAuthKeyOk.Marshal(b, m, deterministic) } -func (dst *TLPQInnerDataDc) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPQInnerDataDc.Merge(dst, src) +func (dst *TLDestroyAuthKeyOk) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDestroyAuthKeyOk.Merge(dst, src) } -func (m *TLPQInnerDataDc) XXX_Size() int { - return xxx_messageInfo_TLPQInnerDataDc.Size(m) +func (m *TLDestroyAuthKeyOk) XXX_Size() int { + return xxx_messageInfo_TLDestroyAuthKeyOk.Size(m) } -func (m *TLPQInnerDataDc) XXX_DiscardUnknown() { - xxx_messageInfo_TLPQInnerDataDc.DiscardUnknown(m) +func (m *TLDestroyAuthKeyOk) XXX_DiscardUnknown() { + xxx_messageInfo_TLDestroyAuthKeyOk.DiscardUnknown(m) } -var xxx_messageInfo_TLPQInnerDataDc proto.InternalMessageInfo +var xxx_messageInfo_TLDestroyAuthKeyOk proto.InternalMessageInfo -func (m *TLPQInnerDataDc) GetData2() *P_QInnerData_Data { +func (m *TLDestroyAuthKeyOk) GetData2() *DestroyAuthKeyRes_Data { if m != nil { return m.Data2 } return nil } -// p_q_inner_data_temp#3c6a84d4 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 expires_in:int = P_Q_inner_data; -type TLPQInnerDataTemp struct { - Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// destroy_auth_key_none#0a9f2259 = DestroyAuthKeyRes; +type TLDestroyAuthKeyNone struct { + Data2 *DestroyAuthKeyRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPQInnerDataTemp) Reset() { *m = TLPQInnerDataTemp{} } -func (m *TLPQInnerDataTemp) String() string { return proto.CompactTextString(m) } -func (*TLPQInnerDataTemp) ProtoMessage() {} -func (*TLPQInnerDataTemp) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{17} +func (m *TLDestroyAuthKeyNone) Reset() { *m = TLDestroyAuthKeyNone{} } +func (m *TLDestroyAuthKeyNone) String() string { return proto.CompactTextString(m) } +func (*TLDestroyAuthKeyNone) ProtoMessage() {} +func (*TLDestroyAuthKeyNone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{18} } -func (m *TLPQInnerDataTemp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPQInnerDataTemp.Unmarshal(m, b) +func (m *TLDestroyAuthKeyNone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDestroyAuthKeyNone.Unmarshal(m, b) } -func (m *TLPQInnerDataTemp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPQInnerDataTemp.Marshal(b, m, deterministic) +func (m *TLDestroyAuthKeyNone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDestroyAuthKeyNone.Marshal(b, m, deterministic) } -func (dst *TLPQInnerDataTemp) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPQInnerDataTemp.Merge(dst, src) +func (dst *TLDestroyAuthKeyNone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDestroyAuthKeyNone.Merge(dst, src) } -func (m *TLPQInnerDataTemp) XXX_Size() int { - return xxx_messageInfo_TLPQInnerDataTemp.Size(m) +func (m *TLDestroyAuthKeyNone) XXX_Size() int { + return xxx_messageInfo_TLDestroyAuthKeyNone.Size(m) } -func (m *TLPQInnerDataTemp) XXX_DiscardUnknown() { - xxx_messageInfo_TLPQInnerDataTemp.DiscardUnknown(m) +func (m *TLDestroyAuthKeyNone) XXX_DiscardUnknown() { + xxx_messageInfo_TLDestroyAuthKeyNone.DiscardUnknown(m) } -var xxx_messageInfo_TLPQInnerDataTemp proto.InternalMessageInfo +var xxx_messageInfo_TLDestroyAuthKeyNone proto.InternalMessageInfo -func (m *TLPQInnerDataTemp) GetData2() *P_QInnerData_Data { +func (m *TLDestroyAuthKeyNone) GetData2() *DestroyAuthKeyRes_Data { if m != nil { return m.Data2 } return nil } -// p_q_inner_data_temp_dc#56fddf88 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 dc:int expires_in:int = P_Q_inner_data; -type TLPQInnerDataTempDc struct { - Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// destroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes; +type TLDestroyAuthKeyFail struct { + Data2 *DestroyAuthKeyRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPQInnerDataTempDc) Reset() { *m = TLPQInnerDataTempDc{} } -func (m *TLPQInnerDataTempDc) String() string { return proto.CompactTextString(m) } -func (*TLPQInnerDataTempDc) ProtoMessage() {} -func (*TLPQInnerDataTempDc) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{18} +func (m *TLDestroyAuthKeyFail) Reset() { *m = TLDestroyAuthKeyFail{} } +func (m *TLDestroyAuthKeyFail) String() string { return proto.CompactTextString(m) } +func (*TLDestroyAuthKeyFail) ProtoMessage() {} +func (*TLDestroyAuthKeyFail) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{19} } -func (m *TLPQInnerDataTempDc) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPQInnerDataTempDc.Unmarshal(m, b) +func (m *TLDestroyAuthKeyFail) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDestroyAuthKeyFail.Unmarshal(m, b) } -func (m *TLPQInnerDataTempDc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPQInnerDataTempDc.Marshal(b, m, deterministic) +func (m *TLDestroyAuthKeyFail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDestroyAuthKeyFail.Marshal(b, m, deterministic) } -func (dst *TLPQInnerDataTempDc) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPQInnerDataTempDc.Merge(dst, src) +func (dst *TLDestroyAuthKeyFail) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDestroyAuthKeyFail.Merge(dst, src) } -func (m *TLPQInnerDataTempDc) XXX_Size() int { - return xxx_messageInfo_TLPQInnerDataTempDc.Size(m) +func (m *TLDestroyAuthKeyFail) XXX_Size() int { + return xxx_messageInfo_TLDestroyAuthKeyFail.Size(m) } -func (m *TLPQInnerDataTempDc) XXX_DiscardUnknown() { - xxx_messageInfo_TLPQInnerDataTempDc.DiscardUnknown(m) +func (m *TLDestroyAuthKeyFail) XXX_DiscardUnknown() { + xxx_messageInfo_TLDestroyAuthKeyFail.DiscardUnknown(m) } -var xxx_messageInfo_TLPQInnerDataTempDc proto.InternalMessageInfo +var xxx_messageInfo_TLDestroyAuthKeyFail proto.InternalMessageInfo -func (m *TLPQInnerDataTempDc) GetData2() *P_QInnerData_Data { +func (m *TLDestroyAuthKeyFail) GetData2() *DestroyAuthKeyRes_Data { if m != nil { return m.Data2 } @@ -911,508 +966,453 @@ func (m *TLPQInnerDataTempDc) GetData2() *P_QInnerData_Data { } // ///////////////////////////////////////////////////////////////////////////// -// Server_DH_Params <-- -// + TL_server_DH_params_fail -// + TL_server_DH_params_ok +// ResPQ <-- +// + TL_resPQ // -type Server_DH_Params_Data struct { - Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` - NewNonceHash []byte `protobuf:"bytes,3,opt,name=new_nonce_hash,json=newNonceHash,proto3" json:"new_nonce_hash,omitempty"` - EncryptedAnswer string `protobuf:"bytes,4,opt,name=encrypted_answer,json=encryptedAnswer,proto3" json:"encrypted_answer,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ResPQ_Data struct { + Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` + Pq string `protobuf:"bytes,3,opt,name=pq,proto3" json:"pq,omitempty"` + ServerPublicKeyFingerprints []int64 `protobuf:"varint,4,rep,packed,name=server_public_key_fingerprints,json=serverPublicKeyFingerprints,proto3" json:"server_public_key_fingerprints,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Server_DH_Params_Data) Reset() { *m = Server_DH_Params_Data{} } -func (m *Server_DH_Params_Data) String() string { return proto.CompactTextString(m) } -func (*Server_DH_Params_Data) ProtoMessage() {} -func (*Server_DH_Params_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{19} +func (m *ResPQ_Data) Reset() { *m = ResPQ_Data{} } +func (m *ResPQ_Data) String() string { return proto.CompactTextString(m) } +func (*ResPQ_Data) ProtoMessage() {} +func (*ResPQ_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{20} } -func (m *Server_DH_Params_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Server_DH_Params_Data.Unmarshal(m, b) +func (m *ResPQ_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResPQ_Data.Unmarshal(m, b) } -func (m *Server_DH_Params_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Server_DH_Params_Data.Marshal(b, m, deterministic) +func (m *ResPQ_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResPQ_Data.Marshal(b, m, deterministic) } -func (dst *Server_DH_Params_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Server_DH_Params_Data.Merge(dst, src) +func (dst *ResPQ_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResPQ_Data.Merge(dst, src) } -func (m *Server_DH_Params_Data) XXX_Size() int { - return xxx_messageInfo_Server_DH_Params_Data.Size(m) +func (m *ResPQ_Data) XXX_Size() int { + return xxx_messageInfo_ResPQ_Data.Size(m) } -func (m *Server_DH_Params_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Server_DH_Params_Data.DiscardUnknown(m) +func (m *ResPQ_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ResPQ_Data.DiscardUnknown(m) } -var xxx_messageInfo_Server_DH_Params_Data proto.InternalMessageInfo +var xxx_messageInfo_ResPQ_Data proto.InternalMessageInfo -func (m *Server_DH_Params_Data) GetNonce() []byte { +func (m *ResPQ_Data) GetNonce() []byte { if m != nil { return m.Nonce } return nil } -func (m *Server_DH_Params_Data) GetServerNonce() []byte { +func (m *ResPQ_Data) GetServerNonce() []byte { if m != nil { return m.ServerNonce } return nil } -func (m *Server_DH_Params_Data) GetNewNonceHash() []byte { - if m != nil { - return m.NewNonceHash - } - return nil -} - -func (m *Server_DH_Params_Data) GetEncryptedAnswer() string { +func (m *ResPQ_Data) GetPq() string { if m != nil { - return m.EncryptedAnswer + return m.Pq } return "" } -type Server_DH_Params struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Server_DH_Params_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ResPQ_Data) GetServerPublicKeyFingerprints() []int64 { + if m != nil { + return m.ServerPublicKeyFingerprints + } + return nil } -func (m *Server_DH_Params) Reset() { *m = Server_DH_Params{} } -func (m *Server_DH_Params) String() string { return proto.CompactTextString(m) } -func (*Server_DH_Params) ProtoMessage() {} -func (*Server_DH_Params) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{20} +type ResPQ struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ResPQ_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Server_DH_Params) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Server_DH_Params.Unmarshal(m, b) + +func (m *ResPQ) Reset() { *m = ResPQ{} } +func (m *ResPQ) String() string { return proto.CompactTextString(m) } +func (*ResPQ) ProtoMessage() {} +func (*ResPQ) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{21} } -func (m *Server_DH_Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Server_DH_Params.Marshal(b, m, deterministic) +func (m *ResPQ) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResPQ.Unmarshal(m, b) } -func (dst *Server_DH_Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Server_DH_Params.Merge(dst, src) +func (m *ResPQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResPQ.Marshal(b, m, deterministic) } -func (m *Server_DH_Params) XXX_Size() int { - return xxx_messageInfo_Server_DH_Params.Size(m) +func (dst *ResPQ) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResPQ.Merge(dst, src) } -func (m *Server_DH_Params) XXX_DiscardUnknown() { - xxx_messageInfo_Server_DH_Params.DiscardUnknown(m) +func (m *ResPQ) XXX_Size() int { + return xxx_messageInfo_ResPQ.Size(m) +} +func (m *ResPQ) XXX_DiscardUnknown() { + xxx_messageInfo_ResPQ.DiscardUnknown(m) } -var xxx_messageInfo_Server_DH_Params proto.InternalMessageInfo +var xxx_messageInfo_ResPQ proto.InternalMessageInfo -func (m *Server_DH_Params) GetConstructor() TLConstructor { +func (m *ResPQ) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Server_DH_Params) GetData2() *Server_DH_Params_Data { +func (m *ResPQ) GetData2() *ResPQ_Data { if m != nil { return m.Data2 } return nil } -// server_DH_params_fail#79cb045d nonce:int128 server_nonce:int128 new_nonce_hash:int128 = Server_DH_Params; -type TLServer_DHParamsFail struct { - Data2 *Server_DH_Params_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// resPQ#05162463 nonce:int128 server_nonce:int128 pq:string server_public_key_fingerprints:Vector = ResPQ; +type TLResPQ struct { + Data2 *ResPQ_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLServer_DHParamsFail) Reset() { *m = TLServer_DHParamsFail{} } -func (m *TLServer_DHParamsFail) String() string { return proto.CompactTextString(m) } -func (*TLServer_DHParamsFail) ProtoMessage() {} -func (*TLServer_DHParamsFail) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{21} +func (m *TLResPQ) Reset() { *m = TLResPQ{} } +func (m *TLResPQ) String() string { return proto.CompactTextString(m) } +func (*TLResPQ) ProtoMessage() {} +func (*TLResPQ) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{22} } -func (m *TLServer_DHParamsFail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLServer_DHParamsFail.Unmarshal(m, b) +func (m *TLResPQ) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLResPQ.Unmarshal(m, b) } -func (m *TLServer_DHParamsFail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLServer_DHParamsFail.Marshal(b, m, deterministic) +func (m *TLResPQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLResPQ.Marshal(b, m, deterministic) } -func (dst *TLServer_DHParamsFail) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLServer_DHParamsFail.Merge(dst, src) +func (dst *TLResPQ) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLResPQ.Merge(dst, src) } -func (m *TLServer_DHParamsFail) XXX_Size() int { - return xxx_messageInfo_TLServer_DHParamsFail.Size(m) +func (m *TLResPQ) XXX_Size() int { + return xxx_messageInfo_TLResPQ.Size(m) } -func (m *TLServer_DHParamsFail) XXX_DiscardUnknown() { - xxx_messageInfo_TLServer_DHParamsFail.DiscardUnknown(m) +func (m *TLResPQ) XXX_DiscardUnknown() { + xxx_messageInfo_TLResPQ.DiscardUnknown(m) } -var xxx_messageInfo_TLServer_DHParamsFail proto.InternalMessageInfo +var xxx_messageInfo_TLResPQ proto.InternalMessageInfo -func (m *TLServer_DHParamsFail) GetData2() *Server_DH_Params_Data { +func (m *TLResPQ) GetData2() *ResPQ_Data { if m != nil { return m.Data2 } return nil } -// server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:string = Server_DH_Params; -type TLServer_DHParamsOk struct { - Data2 *Server_DH_Params_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// P_Q_inner_data <-- +// + TL_p_q_inner_data +// + TL_p_q_inner_data_dc +// + TL_p_q_inner_data_temp +// + TL_p_q_inner_data_temp_dc +// +type P_QInnerData_Data struct { + Pq string `protobuf:"bytes,1,opt,name=pq,proto3" json:"pq,omitempty"` + P string `protobuf:"bytes,2,opt,name=p,proto3" json:"p,omitempty"` + Q string `protobuf:"bytes,3,opt,name=q,proto3" json:"q,omitempty"` + Nonce []byte `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"` + ServerNonce []byte `protobuf:"bytes,5,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` + NewNonce []byte `protobuf:"bytes,6,opt,name=new_nonce,json=newNonce,proto3" json:"new_nonce,omitempty"` + Dc int32 `protobuf:"varint,7,opt,name=dc,proto3" json:"dc,omitempty"` + ExpiresIn int32 `protobuf:"varint,8,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLServer_DHParamsOk) Reset() { *m = TLServer_DHParamsOk{} } -func (m *TLServer_DHParamsOk) String() string { return proto.CompactTextString(m) } -func (*TLServer_DHParamsOk) ProtoMessage() {} -func (*TLServer_DHParamsOk) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{22} +func (m *P_QInnerData_Data) Reset() { *m = P_QInnerData_Data{} } +func (m *P_QInnerData_Data) String() string { return proto.CompactTextString(m) } +func (*P_QInnerData_Data) ProtoMessage() {} +func (*P_QInnerData_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{23} } -func (m *TLServer_DHParamsOk) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLServer_DHParamsOk.Unmarshal(m, b) +func (m *P_QInnerData_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_P_QInnerData_Data.Unmarshal(m, b) } -func (m *TLServer_DHParamsOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLServer_DHParamsOk.Marshal(b, m, deterministic) +func (m *P_QInnerData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_P_QInnerData_Data.Marshal(b, m, deterministic) } -func (dst *TLServer_DHParamsOk) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLServer_DHParamsOk.Merge(dst, src) +func (dst *P_QInnerData_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_P_QInnerData_Data.Merge(dst, src) } -func (m *TLServer_DHParamsOk) XXX_Size() int { - return xxx_messageInfo_TLServer_DHParamsOk.Size(m) +func (m *P_QInnerData_Data) XXX_Size() int { + return xxx_messageInfo_P_QInnerData_Data.Size(m) } -func (m *TLServer_DHParamsOk) XXX_DiscardUnknown() { - xxx_messageInfo_TLServer_DHParamsOk.DiscardUnknown(m) +func (m *P_QInnerData_Data) XXX_DiscardUnknown() { + xxx_messageInfo_P_QInnerData_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLServer_DHParamsOk proto.InternalMessageInfo +var xxx_messageInfo_P_QInnerData_Data proto.InternalMessageInfo -func (m *TLServer_DHParamsOk) GetData2() *Server_DH_Params_Data { +func (m *P_QInnerData_Data) GetPq() string { if m != nil { - return m.Data2 + return m.Pq } - return nil + return "" } -// ///////////////////////////////////////////////////////////////////////////// -// Server_DH_inner_data <-- -// + TL_server_DH_inner_data -// -type Server_DHInnerData_Data struct { - Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` - G int32 `protobuf:"varint,3,opt,name=g,proto3" json:"g,omitempty"` - DhPrime string `protobuf:"bytes,4,opt,name=dh_prime,json=dhPrime,proto3" json:"dh_prime,omitempty"` - GA string `protobuf:"bytes,5,opt,name=g_a,json=gA,proto3" json:"g_a,omitempty"` - ServerTime int32 `protobuf:"varint,6,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *P_QInnerData_Data) GetP() string { + if m != nil { + return m.P + } + return "" } -func (m *Server_DHInnerData_Data) Reset() { *m = Server_DHInnerData_Data{} } -func (m *Server_DHInnerData_Data) String() string { return proto.CompactTextString(m) } -func (*Server_DHInnerData_Data) ProtoMessage() {} -func (*Server_DHInnerData_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{23} -} -func (m *Server_DHInnerData_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Server_DHInnerData_Data.Unmarshal(m, b) -} -func (m *Server_DHInnerData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Server_DHInnerData_Data.Marshal(b, m, deterministic) -} -func (dst *Server_DHInnerData_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Server_DHInnerData_Data.Merge(dst, src) -} -func (m *Server_DHInnerData_Data) XXX_Size() int { - return xxx_messageInfo_Server_DHInnerData_Data.Size(m) -} -func (m *Server_DHInnerData_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Server_DHInnerData_Data.DiscardUnknown(m) +func (m *P_QInnerData_Data) GetQ() string { + if m != nil { + return m.Q + } + return "" } -var xxx_messageInfo_Server_DHInnerData_Data proto.InternalMessageInfo - -func (m *Server_DHInnerData_Data) GetNonce() []byte { +func (m *P_QInnerData_Data) GetNonce() []byte { if m != nil { return m.Nonce } return nil } -func (m *Server_DHInnerData_Data) GetServerNonce() []byte { +func (m *P_QInnerData_Data) GetServerNonce() []byte { if m != nil { return m.ServerNonce } return nil } -func (m *Server_DHInnerData_Data) GetG() int32 { - if m != nil { - return m.G - } - return 0 -} - -func (m *Server_DHInnerData_Data) GetDhPrime() string { +func (m *P_QInnerData_Data) GetNewNonce() []byte { if m != nil { - return m.DhPrime + return m.NewNonce } - return "" + return nil } -func (m *Server_DHInnerData_Data) GetGA() string { +func (m *P_QInnerData_Data) GetDc() int32 { if m != nil { - return m.GA + return m.Dc } - return "" + return 0 } -func (m *Server_DHInnerData_Data) GetServerTime() int32 { +func (m *P_QInnerData_Data) GetExpiresIn() int32 { if m != nil { - return m.ServerTime + return m.ExpiresIn } return 0 } -type Server_DHInnerData struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Server_DHInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type P_QInnerData struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Server_DHInnerData) Reset() { *m = Server_DHInnerData{} } -func (m *Server_DHInnerData) String() string { return proto.CompactTextString(m) } -func (*Server_DHInnerData) ProtoMessage() {} -func (*Server_DHInnerData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{24} +func (m *P_QInnerData) Reset() { *m = P_QInnerData{} } +func (m *P_QInnerData) String() string { return proto.CompactTextString(m) } +func (*P_QInnerData) ProtoMessage() {} +func (*P_QInnerData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{24} } -func (m *Server_DHInnerData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Server_DHInnerData.Unmarshal(m, b) +func (m *P_QInnerData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_P_QInnerData.Unmarshal(m, b) } -func (m *Server_DHInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Server_DHInnerData.Marshal(b, m, deterministic) +func (m *P_QInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_P_QInnerData.Marshal(b, m, deterministic) } -func (dst *Server_DHInnerData) XXX_Merge(src proto.Message) { - xxx_messageInfo_Server_DHInnerData.Merge(dst, src) +func (dst *P_QInnerData) XXX_Merge(src proto.Message) { + xxx_messageInfo_P_QInnerData.Merge(dst, src) } -func (m *Server_DHInnerData) XXX_Size() int { - return xxx_messageInfo_Server_DHInnerData.Size(m) +func (m *P_QInnerData) XXX_Size() int { + return xxx_messageInfo_P_QInnerData.Size(m) } -func (m *Server_DHInnerData) XXX_DiscardUnknown() { - xxx_messageInfo_Server_DHInnerData.DiscardUnknown(m) +func (m *P_QInnerData) XXX_DiscardUnknown() { + xxx_messageInfo_P_QInnerData.DiscardUnknown(m) } -var xxx_messageInfo_Server_DHInnerData proto.InternalMessageInfo +var xxx_messageInfo_P_QInnerData proto.InternalMessageInfo -func (m *Server_DHInnerData) GetConstructor() TLConstructor { +func (m *P_QInnerData) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Server_DHInnerData) GetData2() *Server_DHInnerData_Data { +func (m *P_QInnerData) GetData2() *P_QInnerData_Data { if m != nil { return m.Data2 } return nil } -// server_DH_inner_data#b5890dba nonce:int128 server_nonce:int128 g:int dh_prime:string g_a:string server_time:int = Server_DH_inner_data; -type TLServer_DHInnerData struct { - Data2 *Server_DHInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// p_q_inner_data#83c95aec pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 = P_Q_inner_data; +type TLPQInnerData struct { + Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLServer_DHInnerData) Reset() { *m = TLServer_DHInnerData{} } -func (m *TLServer_DHInnerData) String() string { return proto.CompactTextString(m) } -func (*TLServer_DHInnerData) ProtoMessage() {} -func (*TLServer_DHInnerData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{25} +func (m *TLPQInnerData) Reset() { *m = TLPQInnerData{} } +func (m *TLPQInnerData) String() string { return proto.CompactTextString(m) } +func (*TLPQInnerData) ProtoMessage() {} +func (*TLPQInnerData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{25} } -func (m *TLServer_DHInnerData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLServer_DHInnerData.Unmarshal(m, b) +func (m *TLPQInnerData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPQInnerData.Unmarshal(m, b) } -func (m *TLServer_DHInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLServer_DHInnerData.Marshal(b, m, deterministic) +func (m *TLPQInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPQInnerData.Marshal(b, m, deterministic) } -func (dst *TLServer_DHInnerData) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLServer_DHInnerData.Merge(dst, src) +func (dst *TLPQInnerData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPQInnerData.Merge(dst, src) } -func (m *TLServer_DHInnerData) XXX_Size() int { - return xxx_messageInfo_TLServer_DHInnerData.Size(m) +func (m *TLPQInnerData) XXX_Size() int { + return xxx_messageInfo_TLPQInnerData.Size(m) } -func (m *TLServer_DHInnerData) XXX_DiscardUnknown() { - xxx_messageInfo_TLServer_DHInnerData.DiscardUnknown(m) +func (m *TLPQInnerData) XXX_DiscardUnknown() { + xxx_messageInfo_TLPQInnerData.DiscardUnknown(m) } -var xxx_messageInfo_TLServer_DHInnerData proto.InternalMessageInfo +var xxx_messageInfo_TLPQInnerData proto.InternalMessageInfo -func (m *TLServer_DHInnerData) GetData2() *Server_DHInnerData_Data { +func (m *TLPQInnerData) GetData2() *P_QInnerData_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Client_DH_Inner_Data <-- -// + TL_client_DH_inner_data -// -type Client_DH_Inner_Data_Data struct { - Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` - RetryId int64 `protobuf:"varint,3,opt,name=retry_id,json=retryId,proto3" json:"retry_id,omitempty"` - GB string `protobuf:"bytes,4,opt,name=g_b,json=gB,proto3" json:"g_b,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// p_q_inner_data_dc#a9f55f95 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 dc:int = P_Q_inner_data; +type TLPQInnerDataDc struct { + Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Client_DH_Inner_Data_Data) Reset() { *m = Client_DH_Inner_Data_Data{} } -func (m *Client_DH_Inner_Data_Data) String() string { return proto.CompactTextString(m) } -func (*Client_DH_Inner_Data_Data) ProtoMessage() {} -func (*Client_DH_Inner_Data_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{26} +func (m *TLPQInnerDataDc) Reset() { *m = TLPQInnerDataDc{} } +func (m *TLPQInnerDataDc) String() string { return proto.CompactTextString(m) } +func (*TLPQInnerDataDc) ProtoMessage() {} +func (*TLPQInnerDataDc) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{26} } -func (m *Client_DH_Inner_Data_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Client_DH_Inner_Data_Data.Unmarshal(m, b) +func (m *TLPQInnerDataDc) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPQInnerDataDc.Unmarshal(m, b) } -func (m *Client_DH_Inner_Data_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Client_DH_Inner_Data_Data.Marshal(b, m, deterministic) +func (m *TLPQInnerDataDc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPQInnerDataDc.Marshal(b, m, deterministic) } -func (dst *Client_DH_Inner_Data_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Client_DH_Inner_Data_Data.Merge(dst, src) +func (dst *TLPQInnerDataDc) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPQInnerDataDc.Merge(dst, src) } -func (m *Client_DH_Inner_Data_Data) XXX_Size() int { - return xxx_messageInfo_Client_DH_Inner_Data_Data.Size(m) +func (m *TLPQInnerDataDc) XXX_Size() int { + return xxx_messageInfo_TLPQInnerDataDc.Size(m) } -func (m *Client_DH_Inner_Data_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Client_DH_Inner_Data_Data.DiscardUnknown(m) +func (m *TLPQInnerDataDc) XXX_DiscardUnknown() { + xxx_messageInfo_TLPQInnerDataDc.DiscardUnknown(m) } -var xxx_messageInfo_Client_DH_Inner_Data_Data proto.InternalMessageInfo - -func (m *Client_DH_Inner_Data_Data) GetNonce() []byte { - if m != nil { - return m.Nonce - } - return nil -} +var xxx_messageInfo_TLPQInnerDataDc proto.InternalMessageInfo -func (m *Client_DH_Inner_Data_Data) GetServerNonce() []byte { +func (m *TLPQInnerDataDc) GetData2() *P_QInnerData_Data { if m != nil { - return m.ServerNonce + return m.Data2 } return nil } -func (m *Client_DH_Inner_Data_Data) GetRetryId() int64 { - if m != nil { - return m.RetryId - } - return 0 -} - -func (m *Client_DH_Inner_Data_Data) GetGB() string { - if m != nil { - return m.GB - } - return "" -} - -type Client_DH_Inner_Data struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Client_DH_Inner_Data_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// p_q_inner_data_temp#3c6a84d4 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 expires_in:int = P_Q_inner_data; +type TLPQInnerDataTemp struct { + Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Client_DH_Inner_Data) Reset() { *m = Client_DH_Inner_Data{} } -func (m *Client_DH_Inner_Data) String() string { return proto.CompactTextString(m) } -func (*Client_DH_Inner_Data) ProtoMessage() {} -func (*Client_DH_Inner_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{27} +func (m *TLPQInnerDataTemp) Reset() { *m = TLPQInnerDataTemp{} } +func (m *TLPQInnerDataTemp) String() string { return proto.CompactTextString(m) } +func (*TLPQInnerDataTemp) ProtoMessage() {} +func (*TLPQInnerDataTemp) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{27} } -func (m *Client_DH_Inner_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Client_DH_Inner_Data.Unmarshal(m, b) +func (m *TLPQInnerDataTemp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPQInnerDataTemp.Unmarshal(m, b) } -func (m *Client_DH_Inner_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Client_DH_Inner_Data.Marshal(b, m, deterministic) +func (m *TLPQInnerDataTemp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPQInnerDataTemp.Marshal(b, m, deterministic) } -func (dst *Client_DH_Inner_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Client_DH_Inner_Data.Merge(dst, src) +func (dst *TLPQInnerDataTemp) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPQInnerDataTemp.Merge(dst, src) } -func (m *Client_DH_Inner_Data) XXX_Size() int { - return xxx_messageInfo_Client_DH_Inner_Data.Size(m) +func (m *TLPQInnerDataTemp) XXX_Size() int { + return xxx_messageInfo_TLPQInnerDataTemp.Size(m) } -func (m *Client_DH_Inner_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Client_DH_Inner_Data.DiscardUnknown(m) +func (m *TLPQInnerDataTemp) XXX_DiscardUnknown() { + xxx_messageInfo_TLPQInnerDataTemp.DiscardUnknown(m) } -var xxx_messageInfo_Client_DH_Inner_Data proto.InternalMessageInfo - -func (m *Client_DH_Inner_Data) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLPQInnerDataTemp proto.InternalMessageInfo -func (m *Client_DH_Inner_Data) GetData2() *Client_DH_Inner_Data_Data { +func (m *TLPQInnerDataTemp) GetData2() *P_QInnerData_Data { if m != nil { return m.Data2 } return nil } -// client_DH_inner_data#6643b654 nonce:int128 server_nonce:int128 retry_id:long g_b:string = Client_DH_Inner_Data; -type TLClient_DHInnerData struct { - Data2 *Client_DH_Inner_Data_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// p_q_inner_data_temp_dc#56fddf88 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 dc:int expires_in:int = P_Q_inner_data; +type TLPQInnerDataTempDc struct { + Data2 *P_QInnerData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLClient_DHInnerData) Reset() { *m = TLClient_DHInnerData{} } -func (m *TLClient_DHInnerData) String() string { return proto.CompactTextString(m) } -func (*TLClient_DHInnerData) ProtoMessage() {} -func (*TLClient_DHInnerData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_handshake_2f9dff45b87b832f, []int{28} +func (m *TLPQInnerDataTempDc) Reset() { *m = TLPQInnerDataTempDc{} } +func (m *TLPQInnerDataTempDc) String() string { return proto.CompactTextString(m) } +func (*TLPQInnerDataTempDc) ProtoMessage() {} +func (*TLPQInnerDataTempDc) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_handshake_f899f8df4ce962cd, []int{28} } -func (m *TLClient_DHInnerData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLClient_DHInnerData.Unmarshal(m, b) +func (m *TLPQInnerDataTempDc) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPQInnerDataTempDc.Unmarshal(m, b) } -func (m *TLClient_DHInnerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLClient_DHInnerData.Marshal(b, m, deterministic) +func (m *TLPQInnerDataTempDc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPQInnerDataTempDc.Marshal(b, m, deterministic) } -func (dst *TLClient_DHInnerData) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLClient_DHInnerData.Merge(dst, src) +func (dst *TLPQInnerDataTempDc) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPQInnerDataTempDc.Merge(dst, src) } -func (m *TLClient_DHInnerData) XXX_Size() int { - return xxx_messageInfo_TLClient_DHInnerData.Size(m) +func (m *TLPQInnerDataTempDc) XXX_Size() int { + return xxx_messageInfo_TLPQInnerDataTempDc.Size(m) } -func (m *TLClient_DHInnerData) XXX_DiscardUnknown() { - xxx_messageInfo_TLClient_DHInnerData.DiscardUnknown(m) +func (m *TLPQInnerDataTempDc) XXX_DiscardUnknown() { + xxx_messageInfo_TLPQInnerDataTempDc.DiscardUnknown(m) } -var xxx_messageInfo_TLClient_DHInnerData proto.InternalMessageInfo +var xxx_messageInfo_TLPQInnerDataTempDc proto.InternalMessageInfo -func (m *TLClient_DHInnerData) GetData2() *Client_DH_Inner_Data_Data { +func (m *TLPQInnerDataTempDc) GetData2() *P_QInnerData_Data { if m != nil { return m.Data2 } @@ -1420,6 +1420,16 @@ func (m *TLClient_DHInnerData) GetData2() *Client_DH_Inner_Data_Data { } func init() { + proto.RegisterType((*Server_DH_Params_Data)(nil), "mtproto.Server_DH_Params_Data") + proto.RegisterType((*Server_DH_Params)(nil), "mtproto.Server_DH_Params") + proto.RegisterType((*TLServer_DHParamsFail)(nil), "mtproto.TL_server_DH_params_fail") + proto.RegisterType((*TLServer_DHParamsOk)(nil), "mtproto.TL_server_DH_params_ok") + proto.RegisterType((*Server_DHInnerData_Data)(nil), "mtproto.Server_DH_inner_data_Data") + proto.RegisterType((*Server_DHInnerData)(nil), "mtproto.Server_DH_inner_data") + proto.RegisterType((*TLServer_DHInnerData)(nil), "mtproto.TL_server_DH_inner_data") + proto.RegisterType((*Client_DH_Inner_Data_Data)(nil), "mtproto.Client_DH_Inner_Data_Data") + proto.RegisterType((*Client_DH_Inner_Data)(nil), "mtproto.Client_DH_Inner_Data") + proto.RegisterType((*TLClient_DHInnerData)(nil), "mtproto.TL_client_DH_inner_data") proto.RegisterType((*SetClient_DHParamsAnswer_Data)(nil), "mtproto.Set_client_DH_params_answer_Data") proto.RegisterType((*SetClient_DHParamsAnswer)(nil), "mtproto.Set_client_DH_params_answer") proto.RegisterType((*TLDhGenOk)(nil), "mtproto.TL_dh_gen_ok") @@ -1439,77 +1449,67 @@ func init() { proto.RegisterType((*TLPQInnerDataDc)(nil), "mtproto.TL_p_q_inner_data_dc") proto.RegisterType((*TLPQInnerDataTemp)(nil), "mtproto.TL_p_q_inner_data_temp") proto.RegisterType((*TLPQInnerDataTempDc)(nil), "mtproto.TL_p_q_inner_data_temp_dc") - proto.RegisterType((*Server_DH_Params_Data)(nil), "mtproto.Server_DH_Params_Data") - proto.RegisterType((*Server_DH_Params)(nil), "mtproto.Server_DH_Params") - proto.RegisterType((*TLServer_DHParamsFail)(nil), "mtproto.TL_server_DH_params_fail") - proto.RegisterType((*TLServer_DHParamsOk)(nil), "mtproto.TL_server_DH_params_ok") - proto.RegisterType((*Server_DHInnerData_Data)(nil), "mtproto.Server_DH_inner_data_Data") - proto.RegisterType((*Server_DHInnerData)(nil), "mtproto.Server_DH_inner_data") - proto.RegisterType((*TLServer_DHInnerData)(nil), "mtproto.TL_server_DH_inner_data") - proto.RegisterType((*Client_DH_Inner_Data_Data)(nil), "mtproto.Client_DH_Inner_Data_Data") - proto.RegisterType((*Client_DH_Inner_Data)(nil), "mtproto.Client_DH_Inner_Data") - proto.RegisterType((*TLClient_DHInnerData)(nil), "mtproto.TL_client_DH_inner_data") } func init() { - proto.RegisterFile("schema.tl.handshake.proto", fileDescriptor_schema_tl_handshake_2f9dff45b87b832f) -} - -var fileDescriptor_schema_tl_handshake_2f9dff45b87b832f = []byte{ - // 871 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x51, 0x6f, 0xe3, 0x44, - 0x10, 0xd6, 0x26, 0x4d, 0x93, 0x4c, 0x43, 0x7a, 0xe7, 0xeb, 0x15, 0x87, 0x42, 0xaf, 0x58, 0x08, - 0xb5, 0x42, 0x8a, 0x44, 0xc2, 0x49, 0xf7, 0x86, 0xda, 0x46, 0x90, 0x72, 0xe1, 0x2e, 0x71, 0xf3, - 0xbe, 0xda, 0xd8, 0x8b, 0x6d, 0x25, 0x59, 0x3b, 0xeb, 0x0d, 0x25, 0x2f, 0x08, 0x21, 0x9e, 0xf8, - 0x05, 0x88, 0x37, 0x7e, 0x01, 0xff, 0x82, 0x3f, 0xc0, 0x1f, 0x42, 0x5e, 0x3b, 0x76, 0x5c, 0xfb, - 0xae, 0x60, 0x73, 0x6f, 0xde, 0x99, 0x6f, 0x3e, 0xcf, 0x7c, 0xb3, 0x3b, 0xbb, 0xd0, 0xf1, 0x0d, - 0x9b, 0x2e, 0x49, 0x57, 0x2c, 0xba, 0x36, 0x61, 0xa6, 0x6f, 0x93, 0x39, 0xed, 0x7a, 0xdc, 0x15, - 0xae, 0x52, 0x5f,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, 0xea, 0xdf, 0x4e, - 0xc7, 0xc1, 0xc7, 0xb0, 0x32, 0xdb, 0x97, 0x96, 0xfe, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x62, - 0x60, 0xe0, 0x41, 0xf4, 0x0c, 0x00, 0x00, + proto.RegisterFile("schema.tl.handshake.proto", fileDescriptor_schema_tl_handshake_f899f8df4ce962cd) +} + +var fileDescriptor_schema_tl_handshake_f899f8df4ce962cd = []byte{ + // 867 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xd1, 0x6e, 0xe3, 0x44, + 0x14, 0xd5, 0x24, 0xcd, 0x26, 0xb9, 0x0d, 0xe9, 0xae, 0xb7, 0x5b, 0x1c, 0x0a, 0xdd, 0x62, 0x21, + 0xd4, 0x0a, 0x29, 0xd2, 0x26, 0xac, 0xb4, 0x6f, 0xa8, 0x6d, 0x04, 0x2d, 0x1b, 0x76, 0x13, 0x37, + 0xef, 0xa3, 0x89, 0x3d, 0xd8, 0x56, 0x93, 0xb1, 0x33, 0x9e, 0x50, 0xf2, 0x82, 0x10, 0xe2, 0x89, + 0x2f, 0x40, 0xbc, 0xf1, 0x05, 0xfc, 0x05, 0x3f, 0xc0, 0x0f, 0x21, 0xcf, 0x38, 0x76, 0x9c, 0x98, + 0x02, 0x36, 0xbc, 0x79, 0xee, 0x3d, 0xf7, 0xf8, 0xce, 0x39, 0x9e, 0xeb, 0x81, 0x4e, 0x68, 0xb9, + 0x74, 0x4e, 0xba, 0x62, 0xd6, 0x75, 0x09, 0xb3, 0x43, 0x97, 0xdc, 0xd1, 0x6e, 0xc0, 0x7d, 0xe1, + 0x6b, 0xf5, 0xb9, 0x90, 0x0f, 0xef, 0x3d, 0x4b, 0x31, 0x16, 0xb7, 0xfa, 0x3d, 0x95, 0x37, 0x7e, + 0x45, 0xf0, 0xec, 0x96, 0xf2, 0x6f, 0x28, 0xc7, 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xcb, 0x17, 0xfe, 0x8b, + 0xb2, 0xdf, 0x11, 0x3c, 0x1d, 0xe1, 0xf1, 0xce, 0xad, 0x41, 0x29, 0x82, 0x12, 0x45, 0x5a, 0x80, + 0x02, 0x49, 0xd7, 0x34, 0x51, 0x10, 0xad, 0xd6, 0x72, 0xa1, 0x45, 0x2a, 0xfb, 0xde, 0x43, 0xb2, + 0xd7, 0x76, 0x65, 0x3f, 0x86, 0x66, 0x32, 0x11, 0xe5, 0x2d, 0xa1, 0x65, 0x36, 0xd6, 0xb3, 0x30, + 0xea, 0xc0, 0xb6, 0xf4, 0xba, 0xbc, 0x3b, 0x54, 0x6c, 0x4b, 0xfb, 0x00, 0x80, 0x7e, 0x1b, 0x78, + 0x9c, 0x86, 0xd8, 0x63, 0x7a, 0x43, 0xc6, 0x9b, 0x71, 0xe4, 0x86, 0x19, 0xdf, 0x41, 0x3b, 0xbb, + 0x8f, 0x12, 0xb2, 0xf7, 0xb2, 0xfa, 0xbd, 0x9f, 0xd4, 0xe4, 0x28, 0xb5, 0x16, 0xf2, 0x0b, 0x78, + 0x32, 0x19, 0xe2, 0x00, 0x2f, 0x36, 0x5b, 0x28, 0x42, 0xf4, 0x25, 0x1c, 0xee, 0x10, 0x61, 0xdb, + 0x2a, 0xc4, 0x35, 0x94, 0x63, 0x61, 0x8b, 0x4b, 0xd0, 0x79, 0x50, 0x88, 0xed, 0x2d, 0x74, 0xf2, + 0xd9, 0x0a, 0xb6, 0x77, 0xf9, 0x09, 0x9c, 0x58, 0x2e, 0x11, 0x5d, 0x46, 0xa7, 0xcb, 0x19, 0xe9, + 0x46, 0xcf, 0x94, 0x39, 0x1e, 0xa3, 0xeb, 0xe2, 0xcb, 0xfa, 0x57, 0x93, 0x51, 0xf4, 0x70, 0x5d, + 0x99, 0x3e, 0x92, 0x91, 0xfe, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xd0, 0x5e, 0x21, 0xf4, + 0x0c, 0x00, 0x00, } diff --git a/mtproto/schema.tl.handshake.proto b/mtproto/schema.tl.handshake.proto index 7f6686e73..98a2897c5 100644 --- a/mtproto/schema.tl.handshake.proto +++ b/mtproto/schema.tl.handshake.proto @@ -29,6 +29,76 @@ option optimize_for = CODE_SIZE; import "schema.tl.crc32.proto"; +/////////////////////////////////////////////////////////////////////////////// +// Server_DH_Params <-- +// + TL_server_DH_params_fail +// + TL_server_DH_params_ok +// +message Server_DH_Params_Data { + bytes nonce = 1; + bytes server_nonce = 2; + bytes new_nonce_hash = 3; + string encrypted_answer = 4; +} + +message Server_DH_Params { + TLConstructor constructor = 1; + Server_DH_Params_Data data2 = 2; +} + +// server_DH_params_fail#79cb045d nonce:int128 server_nonce:int128 new_nonce_hash:int128 = Server_DH_Params; +message TL_server_DH_params_fail { + Server_DH_Params_Data data2 = 2; +} +// server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:string = Server_DH_Params; +message TL_server_DH_params_ok { + Server_DH_Params_Data data2 = 2; +} + +/////////////////////////////////////////////////////////////////////////////// +// Server_DH_inner_data <-- +// + TL_server_DH_inner_data +// +message Server_DH_inner_data_Data { + bytes nonce = 1; + bytes server_nonce = 2; + int32 g = 3; + string dh_prime = 4; + string g_a = 5; + int32 server_time = 6; +} + +message Server_DH_inner_data { + TLConstructor constructor = 1; + Server_DH_inner_data_Data data2 = 2; +} + +// server_DH_inner_data#b5890dba nonce:int128 server_nonce:int128 g:int dh_prime:string g_a:string server_time:int = Server_DH_inner_data; +message TL_server_DH_inner_data { + Server_DH_inner_data_Data data2 = 2; +} + +/////////////////////////////////////////////////////////////////////////////// +// Client_DH_Inner_Data <-- +// + TL_client_DH_inner_data +// +message Client_DH_Inner_Data_Data { + bytes nonce = 1; + bytes server_nonce = 2; + int64 retry_id = 3; + string g_b = 4; +} + +message Client_DH_Inner_Data { + TLConstructor constructor = 1; + Client_DH_Inner_Data_Data data2 = 2; +} + +// client_DH_inner_data#6643b654 nonce:int128 server_nonce:int128 retry_id:long g_b:string = Client_DH_Inner_Data; +message TL_client_DH_inner_data { + Client_DH_Inner_Data_Data data2 = 2; +} + /////////////////////////////////////////////////////////////////////////////// // Set_client_DH_params_answer <-- // + TL_dh_gen_ok @@ -149,73 +219,3 @@ message TL_p_q_inner_data_temp_dc { P_Q_inner_data_Data data2 = 2; } -/////////////////////////////////////////////////////////////////////////////// -// Server_DH_Params <-- -// + TL_server_DH_params_fail -// + TL_server_DH_params_ok -// -message Server_DH_Params_Data { - bytes nonce = 1; - bytes server_nonce = 2; - bytes new_nonce_hash = 3; - string encrypted_answer = 4; -} - -message Server_DH_Params { - TLConstructor constructor = 1; - Server_DH_Params_Data data2 = 2; -} - -// server_DH_params_fail#79cb045d nonce:int128 server_nonce:int128 new_nonce_hash:int128 = Server_DH_Params; -message TL_server_DH_params_fail { - Server_DH_Params_Data data2 = 2; -} -// server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:string = Server_DH_Params; -message TL_server_DH_params_ok { - Server_DH_Params_Data data2 = 2; -} - -/////////////////////////////////////////////////////////////////////////////// -// Server_DH_inner_data <-- -// + TL_server_DH_inner_data -// -message Server_DH_inner_data_Data { - bytes nonce = 1; - bytes server_nonce = 2; - int32 g = 3; - string dh_prime = 4; - string g_a = 5; - int32 server_time = 6; -} - -message Server_DH_inner_data { - TLConstructor constructor = 1; - Server_DH_inner_data_Data data2 = 2; -} - -// server_DH_inner_data#b5890dba nonce:int128 server_nonce:int128 g:int dh_prime:string g_a:string server_time:int = Server_DH_inner_data; -message TL_server_DH_inner_data { - Server_DH_inner_data_Data data2 = 2; -} - -/////////////////////////////////////////////////////////////////////////////// -// Client_DH_Inner_Data <-- -// + TL_client_DH_inner_data -// -message Client_DH_Inner_Data_Data { - bytes nonce = 1; - bytes server_nonce = 2; - int64 retry_id = 3; - string g_b = 4; -} - -message Client_DH_Inner_Data { - TLConstructor constructor = 1; - Client_DH_Inner_Data_Data data2 = 2; -} - -// client_DH_inner_data#6643b654 nonce:int128 server_nonce:int128 retry_id:long g_b:string = Client_DH_Inner_Data; -message TL_client_DH_inner_data { - Client_DH_Inner_Data_Data data2 = 2; -} - diff --git a/mtproto/schema.tl.sync.pb.go b/mtproto/schema.tl.sync.pb.go index 434734fd2..f106095f0 100644 --- a/mtproto/schema.tl.sync.pb.go +++ b/mtproto/schema.tl.sync.pb.go @@ -19,142 +19,166 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // ///////////////////////////////////////////////////////////////////////////// -// SecureCredentialsEncrypted <-- -// + TL_secureCredentialsEncrypted +// messages_BotCallbackAnswer <-- +// + TL_messages_botCallbackAnswer // -type SecureCredentialsEncrypted_Data struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Secret []byte `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` +type Messages_BotCallbackAnswer_Data struct { + Alert bool `protobuf:"varint,1,opt,name=alert,proto3" json:"alert,omitempty"` + HasUrl bool `protobuf:"varint,2,opt,name=has_url,json=hasUrl,proto3" json:"has_url,omitempty"` + NativeUi bool `protobuf:"varint,3,opt,name=native_ui,json=nativeUi,proto3" json:"native_ui,omitempty"` + Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` + CacheTime int32 `protobuf:"varint,6,opt,name=cache_time,json=cacheTime,proto3" json:"cache_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SecureCredentialsEncrypted_Data) Reset() { *m = SecureCredentialsEncrypted_Data{} } -func (m *SecureCredentialsEncrypted_Data) String() string { return proto.CompactTextString(m) } -func (*SecureCredentialsEncrypted_Data) ProtoMessage() {} -func (*SecureCredentialsEncrypted_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{0} +func (m *Messages_BotCallbackAnswer_Data) Reset() { *m = Messages_BotCallbackAnswer_Data{} } +func (m *Messages_BotCallbackAnswer_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_BotCallbackAnswer_Data) ProtoMessage() {} +func (*Messages_BotCallbackAnswer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{0} } -func (m *SecureCredentialsEncrypted_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureCredentialsEncrypted_Data.Unmarshal(m, b) +func (m *Messages_BotCallbackAnswer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_BotCallbackAnswer_Data.Unmarshal(m, b) } -func (m *SecureCredentialsEncrypted_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureCredentialsEncrypted_Data.Marshal(b, m, deterministic) +func (m *Messages_BotCallbackAnswer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_BotCallbackAnswer_Data.Marshal(b, m, deterministic) } -func (dst *SecureCredentialsEncrypted_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureCredentialsEncrypted_Data.Merge(dst, src) +func (dst *Messages_BotCallbackAnswer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_BotCallbackAnswer_Data.Merge(dst, src) } -func (m *SecureCredentialsEncrypted_Data) XXX_Size() int { - return xxx_messageInfo_SecureCredentialsEncrypted_Data.Size(m) +func (m *Messages_BotCallbackAnswer_Data) XXX_Size() int { + return xxx_messageInfo_Messages_BotCallbackAnswer_Data.Size(m) } -func (m *SecureCredentialsEncrypted_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecureCredentialsEncrypted_Data.DiscardUnknown(m) +func (m *Messages_BotCallbackAnswer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_BotCallbackAnswer_Data.DiscardUnknown(m) } -var xxx_messageInfo_SecureCredentialsEncrypted_Data proto.InternalMessageInfo +var xxx_messageInfo_Messages_BotCallbackAnswer_Data proto.InternalMessageInfo -func (m *SecureCredentialsEncrypted_Data) GetData() []byte { +func (m *Messages_BotCallbackAnswer_Data) GetAlert() bool { if m != nil { - return m.Data + return m.Alert } - return nil + return false } -func (m *SecureCredentialsEncrypted_Data) GetHash() []byte { +func (m *Messages_BotCallbackAnswer_Data) GetHasUrl() bool { if m != nil { - return m.Hash + return m.HasUrl } - return nil + return false } -func (m *SecureCredentialsEncrypted_Data) GetSecret() []byte { +func (m *Messages_BotCallbackAnswer_Data) GetNativeUi() bool { if m != nil { - return m.Secret + return m.NativeUi } - return nil + return false } -type SecureCredentialsEncrypted struct { +func (m *Messages_BotCallbackAnswer_Data) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *Messages_BotCallbackAnswer_Data) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *Messages_BotCallbackAnswer_Data) GetCacheTime() int32 { + if m != nil { + return m.CacheTime + } + return 0 +} + +type Messages_BotCallbackAnswer struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecureCredentialsEncrypted_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + Data2 *Messages_BotCallbackAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SecureCredentialsEncrypted) Reset() { *m = SecureCredentialsEncrypted{} } -func (m *SecureCredentialsEncrypted) String() string { return proto.CompactTextString(m) } -func (*SecureCredentialsEncrypted) ProtoMessage() {} -func (*SecureCredentialsEncrypted) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1} +func (m *Messages_BotCallbackAnswer) Reset() { *m = Messages_BotCallbackAnswer{} } +func (m *Messages_BotCallbackAnswer) String() string { return proto.CompactTextString(m) } +func (*Messages_BotCallbackAnswer) ProtoMessage() {} +func (*Messages_BotCallbackAnswer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1} } -func (m *SecureCredentialsEncrypted) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureCredentialsEncrypted.Unmarshal(m, b) +func (m *Messages_BotCallbackAnswer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_BotCallbackAnswer.Unmarshal(m, b) } -func (m *SecureCredentialsEncrypted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureCredentialsEncrypted.Marshal(b, m, deterministic) +func (m *Messages_BotCallbackAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_BotCallbackAnswer.Marshal(b, m, deterministic) } -func (dst *SecureCredentialsEncrypted) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureCredentialsEncrypted.Merge(dst, src) +func (dst *Messages_BotCallbackAnswer) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_BotCallbackAnswer.Merge(dst, src) } -func (m *SecureCredentialsEncrypted) XXX_Size() int { - return xxx_messageInfo_SecureCredentialsEncrypted.Size(m) +func (m *Messages_BotCallbackAnswer) XXX_Size() int { + return xxx_messageInfo_Messages_BotCallbackAnswer.Size(m) } -func (m *SecureCredentialsEncrypted) XXX_DiscardUnknown() { - xxx_messageInfo_SecureCredentialsEncrypted.DiscardUnknown(m) +func (m *Messages_BotCallbackAnswer) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_BotCallbackAnswer.DiscardUnknown(m) } -var xxx_messageInfo_SecureCredentialsEncrypted proto.InternalMessageInfo +var xxx_messageInfo_Messages_BotCallbackAnswer proto.InternalMessageInfo -func (m *SecureCredentialsEncrypted) GetConstructor() TLConstructor { +func (m *Messages_BotCallbackAnswer) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *SecureCredentialsEncrypted) GetData2() *SecureCredentialsEncrypted_Data { +func (m *Messages_BotCallbackAnswer) GetData2() *Messages_BotCallbackAnswer_Data { if m != nil { return m.Data2 } return nil } -// secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted; -type TLSecureCredentialsEncrypted struct { - Data2 *SecureCredentialsEncrypted_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; +type TLMessagesBotCallbackAnswer struct { + Data2 *Messages_BotCallbackAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLSecureCredentialsEncrypted) Reset() { *m = TLSecureCredentialsEncrypted{} } -func (m *TLSecureCredentialsEncrypted) String() string { return proto.CompactTextString(m) } -func (*TLSecureCredentialsEncrypted) ProtoMessage() {} -func (*TLSecureCredentialsEncrypted) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{2} +func (m *TLMessagesBotCallbackAnswer) Reset() { *m = TLMessagesBotCallbackAnswer{} } +func (m *TLMessagesBotCallbackAnswer) String() string { return proto.CompactTextString(m) } +func (*TLMessagesBotCallbackAnswer) ProtoMessage() {} +func (*TLMessagesBotCallbackAnswer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{2} } -func (m *TLSecureCredentialsEncrypted) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureCredentialsEncrypted.Unmarshal(m, b) +func (m *TLMessagesBotCallbackAnswer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesBotCallbackAnswer.Unmarshal(m, b) } -func (m *TLSecureCredentialsEncrypted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureCredentialsEncrypted.Marshal(b, m, deterministic) +func (m *TLMessagesBotCallbackAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesBotCallbackAnswer.Marshal(b, m, deterministic) } -func (dst *TLSecureCredentialsEncrypted) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureCredentialsEncrypted.Merge(dst, src) +func (dst *TLMessagesBotCallbackAnswer) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesBotCallbackAnswer.Merge(dst, src) } -func (m *TLSecureCredentialsEncrypted) XXX_Size() int { - return xxx_messageInfo_TLSecureCredentialsEncrypted.Size(m) +func (m *TLMessagesBotCallbackAnswer) XXX_Size() int { + return xxx_messageInfo_TLMessagesBotCallbackAnswer.Size(m) } -func (m *TLSecureCredentialsEncrypted) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureCredentialsEncrypted.DiscardUnknown(m) +func (m *TLMessagesBotCallbackAnswer) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesBotCallbackAnswer.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureCredentialsEncrypted proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesBotCallbackAnswer proto.InternalMessageInfo -func (m *TLSecureCredentialsEncrypted) GetData2() *SecureCredentialsEncrypted_Data { +func (m *TLMessagesBotCallbackAnswer) GetData2() *Messages_BotCallbackAnswer_Data { if m != nil { return m.Data2 } @@ -162,134 +186,126 @@ func (m *TLSecureCredentialsEncrypted) GetData2() *SecureCredentialsEncrypted_Da } // ///////////////////////////////////////////////////////////////////////////// -// ContactStatus <-- -// + TL_contactStatus +// messages_MessageEditData <-- +// + TL_messages_messageEditData // -type ContactStatus_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Status *UserStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_MessageEditData_Data struct { + Caption bool `protobuf:"varint,1,opt,name=caption,proto3" json:"caption,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ContactStatus_Data) Reset() { *m = ContactStatus_Data{} } -func (m *ContactStatus_Data) String() string { return proto.CompactTextString(m) } -func (*ContactStatus_Data) ProtoMessage() {} -func (*ContactStatus_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{3} +func (m *Messages_MessageEditData_Data) Reset() { *m = Messages_MessageEditData_Data{} } +func (m *Messages_MessageEditData_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_MessageEditData_Data) ProtoMessage() {} +func (*Messages_MessageEditData_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{3} } -func (m *ContactStatus_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactStatus_Data.Unmarshal(m, b) +func (m *Messages_MessageEditData_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_MessageEditData_Data.Unmarshal(m, b) } -func (m *ContactStatus_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactStatus_Data.Marshal(b, m, deterministic) +func (m *Messages_MessageEditData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_MessageEditData_Data.Marshal(b, m, deterministic) } -func (dst *ContactStatus_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactStatus_Data.Merge(dst, src) +func (dst *Messages_MessageEditData_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_MessageEditData_Data.Merge(dst, src) } -func (m *ContactStatus_Data) XXX_Size() int { - return xxx_messageInfo_ContactStatus_Data.Size(m) +func (m *Messages_MessageEditData_Data) XXX_Size() int { + return xxx_messageInfo_Messages_MessageEditData_Data.Size(m) } -func (m *ContactStatus_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ContactStatus_Data.DiscardUnknown(m) +func (m *Messages_MessageEditData_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_MessageEditData_Data.DiscardUnknown(m) } -var xxx_messageInfo_ContactStatus_Data proto.InternalMessageInfo - -func (m *ContactStatus_Data) GetUserId() int32 { - if m != nil { - return m.UserId - } - return 0 -} +var xxx_messageInfo_Messages_MessageEditData_Data proto.InternalMessageInfo -func (m *ContactStatus_Data) GetStatus() *UserStatus { +func (m *Messages_MessageEditData_Data) GetCaption() bool { if m != nil { - return m.Status + return m.Caption } - return nil + return false } -type ContactStatus struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ContactStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_MessageEditData struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_MessageEditData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ContactStatus) Reset() { *m = ContactStatus{} } -func (m *ContactStatus) String() string { return proto.CompactTextString(m) } -func (*ContactStatus) ProtoMessage() {} -func (*ContactStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{4} +func (m *Messages_MessageEditData) Reset() { *m = Messages_MessageEditData{} } +func (m *Messages_MessageEditData) String() string { return proto.CompactTextString(m) } +func (*Messages_MessageEditData) ProtoMessage() {} +func (*Messages_MessageEditData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{4} } -func (m *ContactStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactStatus.Unmarshal(m, b) +func (m *Messages_MessageEditData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_MessageEditData.Unmarshal(m, b) } -func (m *ContactStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactStatus.Marshal(b, m, deterministic) +func (m *Messages_MessageEditData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_MessageEditData.Marshal(b, m, deterministic) } -func (dst *ContactStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactStatus.Merge(dst, src) +func (dst *Messages_MessageEditData) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_MessageEditData.Merge(dst, src) } -func (m *ContactStatus) XXX_Size() int { - return xxx_messageInfo_ContactStatus.Size(m) +func (m *Messages_MessageEditData) XXX_Size() int { + return xxx_messageInfo_Messages_MessageEditData.Size(m) } -func (m *ContactStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ContactStatus.DiscardUnknown(m) +func (m *Messages_MessageEditData) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_MessageEditData.DiscardUnknown(m) } -var xxx_messageInfo_ContactStatus proto.InternalMessageInfo +var xxx_messageInfo_Messages_MessageEditData proto.InternalMessageInfo -func (m *ContactStatus) GetConstructor() TLConstructor { +func (m *Messages_MessageEditData) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ContactStatus) GetData2() *ContactStatus_Data { +func (m *Messages_MessageEditData) GetData2() *Messages_MessageEditData_Data { if m != nil { return m.Data2 } return nil } -// contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus; -type TLContactStatus struct { - Data2 *ContactStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData; +type TLMessagesMessageEditData struct { + Data2 *Messages_MessageEditData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactStatus) Reset() { *m = TLContactStatus{} } -func (m *TLContactStatus) String() string { return proto.CompactTextString(m) } -func (*TLContactStatus) ProtoMessage() {} -func (*TLContactStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{5} +func (m *TLMessagesMessageEditData) Reset() { *m = TLMessagesMessageEditData{} } +func (m *TLMessagesMessageEditData) String() string { return proto.CompactTextString(m) } +func (*TLMessagesMessageEditData) ProtoMessage() {} +func (*TLMessagesMessageEditData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{5} } -func (m *TLContactStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactStatus.Unmarshal(m, b) +func (m *TLMessagesMessageEditData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesMessageEditData.Unmarshal(m, b) } -func (m *TLContactStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactStatus.Marshal(b, m, deterministic) +func (m *TLMessagesMessageEditData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesMessageEditData.Marshal(b, m, deterministic) } -func (dst *TLContactStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactStatus.Merge(dst, src) +func (dst *TLMessagesMessageEditData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesMessageEditData.Merge(dst, src) } -func (m *TLContactStatus) XXX_Size() int { - return xxx_messageInfo_TLContactStatus.Size(m) +func (m *TLMessagesMessageEditData) XXX_Size() int { + return xxx_messageInfo_TLMessagesMessageEditData.Size(m) } -func (m *TLContactStatus) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactStatus.DiscardUnknown(m) +func (m *TLMessagesMessageEditData) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesMessageEditData.DiscardUnknown(m) } -var xxx_messageInfo_TLContactStatus proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesMessageEditData proto.InternalMessageInfo -func (m *TLContactStatus) GetData2() *ContactStatus_Data { +func (m *TLMessagesMessageEditData) GetData2() *Messages_MessageEditData_Data { if m != nil { return m.Data2 } @@ -297,150 +313,166 @@ func (m *TLContactStatus) GetData2() *ContactStatus_Data { } // ///////////////////////////////////////////////////////////////////////////// -// contacts_ImportedContacts <-- -// + TL_contacts_importedContacts +// PostAddress <-- +// + TL_postAddress // -type Contacts_ImportedContacts_Data struct { - Imported []*ImportedContact `protobuf:"bytes,1,rep,name=imported,proto3" json:"imported,omitempty"` - PopularInvites []*PopularContact `protobuf:"bytes,2,rep,name=popular_invites,json=popularInvites,proto3" json:"popular_invites,omitempty"` - RetryContacts []int64 `protobuf:"varint,3,rep,packed,name=retry_contacts,json=retryContacts,proto3" json:"retry_contacts,omitempty"` - Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PostAddress_Data struct { + StreetLine1 string `protobuf:"bytes,1,opt,name=street_line1,json=streetLine1,proto3" json:"street_line1,omitempty"` + StreetLine2 string `protobuf:"bytes,2,opt,name=street_line2,json=streetLine2,proto3" json:"street_line2,omitempty"` + City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"` + State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` + CountryIso2 string `protobuf:"bytes,5,opt,name=country_iso2,json=countryIso2,proto3" json:"country_iso2,omitempty"` + PostCode string `protobuf:"bytes,6,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_ImportedContacts_Data) Reset() { *m = Contacts_ImportedContacts_Data{} } -func (m *Contacts_ImportedContacts_Data) String() string { return proto.CompactTextString(m) } -func (*Contacts_ImportedContacts_Data) ProtoMessage() {} -func (*Contacts_ImportedContacts_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{6} +func (m *PostAddress_Data) Reset() { *m = PostAddress_Data{} } +func (m *PostAddress_Data) String() string { return proto.CompactTextString(m) } +func (*PostAddress_Data) ProtoMessage() {} +func (*PostAddress_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{6} } -func (m *Contacts_ImportedContacts_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_ImportedContacts_Data.Unmarshal(m, b) +func (m *PostAddress_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PostAddress_Data.Unmarshal(m, b) } -func (m *Contacts_ImportedContacts_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_ImportedContacts_Data.Marshal(b, m, deterministic) +func (m *PostAddress_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PostAddress_Data.Marshal(b, m, deterministic) } -func (dst *Contacts_ImportedContacts_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_ImportedContacts_Data.Merge(dst, src) +func (dst *PostAddress_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PostAddress_Data.Merge(dst, src) } -func (m *Contacts_ImportedContacts_Data) XXX_Size() int { - return xxx_messageInfo_Contacts_ImportedContacts_Data.Size(m) +func (m *PostAddress_Data) XXX_Size() int { + return xxx_messageInfo_PostAddress_Data.Size(m) } -func (m *Contacts_ImportedContacts_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_ImportedContacts_Data.DiscardUnknown(m) +func (m *PostAddress_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PostAddress_Data.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_ImportedContacts_Data proto.InternalMessageInfo +var xxx_messageInfo_PostAddress_Data proto.InternalMessageInfo -func (m *Contacts_ImportedContacts_Data) GetImported() []*ImportedContact { +func (m *PostAddress_Data) GetStreetLine1() string { if m != nil { - return m.Imported + return m.StreetLine1 } - return nil + return "" } -func (m *Contacts_ImportedContacts_Data) GetPopularInvites() []*PopularContact { +func (m *PostAddress_Data) GetStreetLine2() string { if m != nil { - return m.PopularInvites + return m.StreetLine2 } - return nil + return "" } -func (m *Contacts_ImportedContacts_Data) GetRetryContacts() []int64 { +func (m *PostAddress_Data) GetCity() string { if m != nil { - return m.RetryContacts + return m.City } - return nil + return "" } -func (m *Contacts_ImportedContacts_Data) GetUsers() []*User { +func (m *PostAddress_Data) GetState() string { if m != nil { - return m.Users + return m.State } - return nil + return "" } -type Contacts_ImportedContacts struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Contacts_ImportedContacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PostAddress_Data) GetCountryIso2() string { + if m != nil { + return m.CountryIso2 + } + return "" } -func (m *Contacts_ImportedContacts) Reset() { *m = Contacts_ImportedContacts{} } -func (m *Contacts_ImportedContacts) String() string { return proto.CompactTextString(m) } -func (*Contacts_ImportedContacts) ProtoMessage() {} -func (*Contacts_ImportedContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{7} +func (m *PostAddress_Data) GetPostCode() string { + if m != nil { + return m.PostCode + } + return "" } -func (m *Contacts_ImportedContacts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_ImportedContacts.Unmarshal(m, b) + +type PostAddress struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PostAddress_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_ImportedContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_ImportedContacts.Marshal(b, m, deterministic) + +func (m *PostAddress) Reset() { *m = PostAddress{} } +func (m *PostAddress) String() string { return proto.CompactTextString(m) } +func (*PostAddress) ProtoMessage() {} +func (*PostAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{7} } -func (dst *Contacts_ImportedContacts) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_ImportedContacts.Merge(dst, src) +func (m *PostAddress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PostAddress.Unmarshal(m, b) } -func (m *Contacts_ImportedContacts) XXX_Size() int { - return xxx_messageInfo_Contacts_ImportedContacts.Size(m) +func (m *PostAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PostAddress.Marshal(b, m, deterministic) } -func (m *Contacts_ImportedContacts) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_ImportedContacts.DiscardUnknown(m) +func (dst *PostAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_PostAddress.Merge(dst, src) +} +func (m *PostAddress) XXX_Size() int { + return xxx_messageInfo_PostAddress.Size(m) +} +func (m *PostAddress) XXX_DiscardUnknown() { + xxx_messageInfo_PostAddress.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_ImportedContacts proto.InternalMessageInfo +var xxx_messageInfo_PostAddress proto.InternalMessageInfo -func (m *Contacts_ImportedContacts) GetConstructor() TLConstructor { +func (m *PostAddress) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Contacts_ImportedContacts) GetData2() *Contacts_ImportedContacts_Data { +func (m *PostAddress) GetData2() *PostAddress_Data { if m != nil { return m.Data2 } return nil } -// contacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts; -type TLContactsImportedContacts struct { - Data2 *Contacts_ImportedContacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress; +type TLPostAddress struct { + Data2 *PostAddress_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactsImportedContacts) Reset() { *m = TLContactsImportedContacts{} } -func (m *TLContactsImportedContacts) String() string { return proto.CompactTextString(m) } -func (*TLContactsImportedContacts) ProtoMessage() {} -func (*TLContactsImportedContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{8} +func (m *TLPostAddress) Reset() { *m = TLPostAddress{} } +func (m *TLPostAddress) String() string { return proto.CompactTextString(m) } +func (*TLPostAddress) ProtoMessage() {} +func (*TLPostAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{8} } -func (m *TLContactsImportedContacts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsImportedContacts.Unmarshal(m, b) +func (m *TLPostAddress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPostAddress.Unmarshal(m, b) } -func (m *TLContactsImportedContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsImportedContacts.Marshal(b, m, deterministic) +func (m *TLPostAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPostAddress.Marshal(b, m, deterministic) } -func (dst *TLContactsImportedContacts) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsImportedContacts.Merge(dst, src) +func (dst *TLPostAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPostAddress.Merge(dst, src) } -func (m *TLContactsImportedContacts) XXX_Size() int { - return xxx_messageInfo_TLContactsImportedContacts.Size(m) +func (m *TLPostAddress) XXX_Size() int { + return xxx_messageInfo_TLPostAddress.Size(m) } -func (m *TLContactsImportedContacts) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsImportedContacts.DiscardUnknown(m) +func (m *TLPostAddress) XXX_DiscardUnknown() { + xxx_messageInfo_TLPostAddress.DiscardUnknown(m) } -var xxx_messageInfo_TLContactsImportedContacts proto.InternalMessageInfo +var xxx_messageInfo_TLPostAddress proto.InternalMessageInfo -func (m *TLContactsImportedContacts) GetData2() *Contacts_ImportedContacts_Data { +func (m *TLPostAddress) GetData2() *PostAddress_Data { if m != nil { return m.Data2 } @@ -448,142 +480,198 @@ func (m *TLContactsImportedContacts) GetData2() *Contacts_ImportedContacts_Data } // ///////////////////////////////////////////////////////////////////////////// -// contacts_ResolvedPeer <-- -// + TL_contacts_resolvedPeer +// payments_PaymentReceipt <-- +// + TL_payments_paymentReceipt // -type Contacts_ResolvedPeer_Data struct { - Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Contacts_ResolvedPeer_Data) Reset() { *m = Contacts_ResolvedPeer_Data{} } -func (m *Contacts_ResolvedPeer_Data) String() string { return proto.CompactTextString(m) } -func (*Contacts_ResolvedPeer_Data) ProtoMessage() {} -func (*Contacts_ResolvedPeer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{9} -} -func (m *Contacts_ResolvedPeer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_ResolvedPeer_Data.Unmarshal(m, b) -} -func (m *Contacts_ResolvedPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_ResolvedPeer_Data.Marshal(b, m, deterministic) -} -func (dst *Contacts_ResolvedPeer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_ResolvedPeer_Data.Merge(dst, src) +type Payments_PaymentReceipt_Data struct { + Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` + BotId int32 `protobuf:"varint,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"` + Invoice *Invoice `protobuf:"bytes,3,opt,name=invoice,proto3" json:"invoice,omitempty"` + ProviderId int32 `protobuf:"varint,4,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` + Info *PaymentRequestedInfo `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"` + Shipping *ShippingOption `protobuf:"bytes,6,opt,name=shipping,proto3" json:"shipping,omitempty"` + Currency string `protobuf:"bytes,7,opt,name=currency,proto3" json:"currency,omitempty"` + TotalAmount int64 `protobuf:"varint,8,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` + CredentialsTitle string `protobuf:"bytes,9,opt,name=credentials_title,json=credentialsTitle,proto3" json:"credentials_title,omitempty"` + Users []*User `protobuf:"bytes,10,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_ResolvedPeer_Data) XXX_Size() int { - return xxx_messageInfo_Contacts_ResolvedPeer_Data.Size(m) + +func (m *Payments_PaymentReceipt_Data) Reset() { *m = Payments_PaymentReceipt_Data{} } +func (m *Payments_PaymentReceipt_Data) String() string { return proto.CompactTextString(m) } +func (*Payments_PaymentReceipt_Data) ProtoMessage() {} +func (*Payments_PaymentReceipt_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{9} } -func (m *Contacts_ResolvedPeer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_ResolvedPeer_Data.DiscardUnknown(m) +func (m *Payments_PaymentReceipt_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_PaymentReceipt_Data.Unmarshal(m, b) +} +func (m *Payments_PaymentReceipt_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_PaymentReceipt_Data.Marshal(b, m, deterministic) +} +func (dst *Payments_PaymentReceipt_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_PaymentReceipt_Data.Merge(dst, src) +} +func (m *Payments_PaymentReceipt_Data) XXX_Size() int { + return xxx_messageInfo_Payments_PaymentReceipt_Data.Size(m) +} +func (m *Payments_PaymentReceipt_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_PaymentReceipt_Data.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_ResolvedPeer_Data proto.InternalMessageInfo +var xxx_messageInfo_Payments_PaymentReceipt_Data proto.InternalMessageInfo -func (m *Contacts_ResolvedPeer_Data) GetPeer() *Peer { +func (m *Payments_PaymentReceipt_Data) GetDate() int32 { if m != nil { - return m.Peer + return m.Date + } + return 0 +} + +func (m *Payments_PaymentReceipt_Data) GetBotId() int32 { + if m != nil { + return m.BotId + } + return 0 +} + +func (m *Payments_PaymentReceipt_Data) GetInvoice() *Invoice { + if m != nil { + return m.Invoice } return nil } -func (m *Contacts_ResolvedPeer_Data) GetChats() []*Chat { +func (m *Payments_PaymentReceipt_Data) GetProviderId() int32 { if m != nil { - return m.Chats + return m.ProviderId + } + return 0 +} + +func (m *Payments_PaymentReceipt_Data) GetInfo() *PaymentRequestedInfo { + if m != nil { + return m.Info } return nil } -func (m *Contacts_ResolvedPeer_Data) GetUsers() []*User { +func (m *Payments_PaymentReceipt_Data) GetShipping() *ShippingOption { + if m != nil { + return m.Shipping + } + return nil +} + +func (m *Payments_PaymentReceipt_Data) GetCurrency() string { + if m != nil { + return m.Currency + } + return "" +} + +func (m *Payments_PaymentReceipt_Data) GetTotalAmount() int64 { + if m != nil { + return m.TotalAmount + } + return 0 +} + +func (m *Payments_PaymentReceipt_Data) GetCredentialsTitle() string { + if m != nil { + return m.CredentialsTitle + } + return "" +} + +func (m *Payments_PaymentReceipt_Data) GetUsers() []*User { if m != nil { return m.Users } return nil } -type Contacts_ResolvedPeer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Contacts_ResolvedPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Payments_PaymentReceipt struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Payments_PaymentReceipt_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_ResolvedPeer) Reset() { *m = Contacts_ResolvedPeer{} } -func (m *Contacts_ResolvedPeer) String() string { return proto.CompactTextString(m) } -func (*Contacts_ResolvedPeer) ProtoMessage() {} -func (*Contacts_ResolvedPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{10} +func (m *Payments_PaymentReceipt) Reset() { *m = Payments_PaymentReceipt{} } +func (m *Payments_PaymentReceipt) String() string { return proto.CompactTextString(m) } +func (*Payments_PaymentReceipt) ProtoMessage() {} +func (*Payments_PaymentReceipt) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{10} } -func (m *Contacts_ResolvedPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_ResolvedPeer.Unmarshal(m, b) +func (m *Payments_PaymentReceipt) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_PaymentReceipt.Unmarshal(m, b) } -func (m *Contacts_ResolvedPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_ResolvedPeer.Marshal(b, m, deterministic) +func (m *Payments_PaymentReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_PaymentReceipt.Marshal(b, m, deterministic) } -func (dst *Contacts_ResolvedPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_ResolvedPeer.Merge(dst, src) +func (dst *Payments_PaymentReceipt) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_PaymentReceipt.Merge(dst, src) } -func (m *Contacts_ResolvedPeer) XXX_Size() int { - return xxx_messageInfo_Contacts_ResolvedPeer.Size(m) +func (m *Payments_PaymentReceipt) XXX_Size() int { + return xxx_messageInfo_Payments_PaymentReceipt.Size(m) } -func (m *Contacts_ResolvedPeer) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_ResolvedPeer.DiscardUnknown(m) +func (m *Payments_PaymentReceipt) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_PaymentReceipt.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_ResolvedPeer proto.InternalMessageInfo +var xxx_messageInfo_Payments_PaymentReceipt proto.InternalMessageInfo -func (m *Contacts_ResolvedPeer) GetConstructor() TLConstructor { +func (m *Payments_PaymentReceipt) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Contacts_ResolvedPeer) GetData2() *Contacts_ResolvedPeer_Data { +func (m *Payments_PaymentReceipt) GetData2() *Payments_PaymentReceipt_Data { if m != nil { return m.Data2 } return nil } -// contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer; -type TLContactsResolvedPeer struct { - Data2 *Contacts_ResolvedPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; +type TLPaymentsPaymentReceipt struct { + Data2 *Payments_PaymentReceipt_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactsResolvedPeer) Reset() { *m = TLContactsResolvedPeer{} } -func (m *TLContactsResolvedPeer) String() string { return proto.CompactTextString(m) } -func (*TLContactsResolvedPeer) ProtoMessage() {} -func (*TLContactsResolvedPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{11} +func (m *TLPaymentsPaymentReceipt) Reset() { *m = TLPaymentsPaymentReceipt{} } +func (m *TLPaymentsPaymentReceipt) String() string { return proto.CompactTextString(m) } +func (*TLPaymentsPaymentReceipt) ProtoMessage() {} +func (*TLPaymentsPaymentReceipt) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{11} } -func (m *TLContactsResolvedPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsResolvedPeer.Unmarshal(m, b) +func (m *TLPaymentsPaymentReceipt) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPaymentsPaymentReceipt.Unmarshal(m, b) } -func (m *TLContactsResolvedPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsResolvedPeer.Marshal(b, m, deterministic) +func (m *TLPaymentsPaymentReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPaymentsPaymentReceipt.Marshal(b, m, deterministic) } -func (dst *TLContactsResolvedPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsResolvedPeer.Merge(dst, src) +func (dst *TLPaymentsPaymentReceipt) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPaymentsPaymentReceipt.Merge(dst, src) } -func (m *TLContactsResolvedPeer) XXX_Size() int { - return xxx_messageInfo_TLContactsResolvedPeer.Size(m) +func (m *TLPaymentsPaymentReceipt) XXX_Size() int { + return xxx_messageInfo_TLPaymentsPaymentReceipt.Size(m) } -func (m *TLContactsResolvedPeer) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsResolvedPeer.DiscardUnknown(m) +func (m *TLPaymentsPaymentReceipt) XXX_DiscardUnknown() { + xxx_messageInfo_TLPaymentsPaymentReceipt.DiscardUnknown(m) } -var xxx_messageInfo_TLContactsResolvedPeer proto.InternalMessageInfo +var xxx_messageInfo_TLPaymentsPaymentReceipt proto.InternalMessageInfo -func (m *TLContactsResolvedPeer) GetData2() *Contacts_ResolvedPeer_Data { +func (m *TLPaymentsPaymentReceipt) GetData2() *Payments_PaymentReceipt_Data { if m != nil { return m.Data2 } @@ -591,939 +679,939 @@ func (m *TLContactsResolvedPeer) GetData2() *Contacts_ResolvedPeer_Data { } // ///////////////////////////////////////////////////////////////////////////// -// storage_FileType <-- -// + TL_storage_fileUnknown -// + TL_storage_filePartial -// + TL_storage_fileJpeg -// + TL_storage_fileGif -// + TL_storage_filePng -// + TL_storage_filePdf -// + TL_storage_fileMp3 -// + TL_storage_fileMov -// + TL_storage_fileMp4 -// + TL_storage_fileWebp +// PrivacyKey <-- +// + TL_privacyKeyStatusTimestamp +// + TL_privacyKeyChatInvite +// + TL_privacyKeyPhoneCall // -type Storage_FileType_Data struct { +type PrivacyKey_Data struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Storage_FileType_Data) Reset() { *m = Storage_FileType_Data{} } -func (m *Storage_FileType_Data) String() string { return proto.CompactTextString(m) } -func (*Storage_FileType_Data) ProtoMessage() {} -func (*Storage_FileType_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{12} +func (m *PrivacyKey_Data) Reset() { *m = PrivacyKey_Data{} } +func (m *PrivacyKey_Data) String() string { return proto.CompactTextString(m) } +func (*PrivacyKey_Data) ProtoMessage() {} +func (*PrivacyKey_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{12} } -func (m *Storage_FileType_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Storage_FileType_Data.Unmarshal(m, b) +func (m *PrivacyKey_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PrivacyKey_Data.Unmarshal(m, b) } -func (m *Storage_FileType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Storage_FileType_Data.Marshal(b, m, deterministic) +func (m *PrivacyKey_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PrivacyKey_Data.Marshal(b, m, deterministic) } -func (dst *Storage_FileType_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Storage_FileType_Data.Merge(dst, src) +func (dst *PrivacyKey_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrivacyKey_Data.Merge(dst, src) } -func (m *Storage_FileType_Data) XXX_Size() int { - return xxx_messageInfo_Storage_FileType_Data.Size(m) +func (m *PrivacyKey_Data) XXX_Size() int { + return xxx_messageInfo_PrivacyKey_Data.Size(m) } -func (m *Storage_FileType_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Storage_FileType_Data.DiscardUnknown(m) +func (m *PrivacyKey_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PrivacyKey_Data.DiscardUnknown(m) } -var xxx_messageInfo_Storage_FileType_Data proto.InternalMessageInfo +var xxx_messageInfo_PrivacyKey_Data proto.InternalMessageInfo -type Storage_FileType struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PrivacyKey struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Storage_FileType) Reset() { *m = Storage_FileType{} } -func (m *Storage_FileType) String() string { return proto.CompactTextString(m) } -func (*Storage_FileType) ProtoMessage() {} -func (*Storage_FileType) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{13} +func (m *PrivacyKey) Reset() { *m = PrivacyKey{} } +func (m *PrivacyKey) String() string { return proto.CompactTextString(m) } +func (*PrivacyKey) ProtoMessage() {} +func (*PrivacyKey) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{13} } -func (m *Storage_FileType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Storage_FileType.Unmarshal(m, b) +func (m *PrivacyKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PrivacyKey.Unmarshal(m, b) } -func (m *Storage_FileType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Storage_FileType.Marshal(b, m, deterministic) +func (m *PrivacyKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PrivacyKey.Marshal(b, m, deterministic) } -func (dst *Storage_FileType) XXX_Merge(src proto.Message) { - xxx_messageInfo_Storage_FileType.Merge(dst, src) +func (dst *PrivacyKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrivacyKey.Merge(dst, src) } -func (m *Storage_FileType) XXX_Size() int { - return xxx_messageInfo_Storage_FileType.Size(m) +func (m *PrivacyKey) XXX_Size() int { + return xxx_messageInfo_PrivacyKey.Size(m) } -func (m *Storage_FileType) XXX_DiscardUnknown() { - xxx_messageInfo_Storage_FileType.DiscardUnknown(m) +func (m *PrivacyKey) XXX_DiscardUnknown() { + xxx_messageInfo_PrivacyKey.DiscardUnknown(m) } -var xxx_messageInfo_Storage_FileType proto.InternalMessageInfo +var xxx_messageInfo_PrivacyKey proto.InternalMessageInfo -func (m *Storage_FileType) GetConstructor() TLConstructor { +func (m *PrivacyKey) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Storage_FileType) GetData2() *Storage_FileType_Data { +func (m *PrivacyKey) GetData2() *PrivacyKey_Data { if m != nil { return m.Data2 } return nil } -// storage.fileUnknown#aa963b05 = storage.FileType; -type TLStorageFileUnknown struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; +type TLPrivacyKeyStatusTimestamp struct { + Data2 *PrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStorageFileUnknown) Reset() { *m = TLStorageFileUnknown{} } -func (m *TLStorageFileUnknown) String() string { return proto.CompactTextString(m) } -func (*TLStorageFileUnknown) ProtoMessage() {} -func (*TLStorageFileUnknown) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{14} +func (m *TLPrivacyKeyStatusTimestamp) Reset() { *m = TLPrivacyKeyStatusTimestamp{} } +func (m *TLPrivacyKeyStatusTimestamp) String() string { return proto.CompactTextString(m) } +func (*TLPrivacyKeyStatusTimestamp) ProtoMessage() {} +func (*TLPrivacyKeyStatusTimestamp) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{14} } -func (m *TLStorageFileUnknown) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFileUnknown.Unmarshal(m, b) +func (m *TLPrivacyKeyStatusTimestamp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPrivacyKeyStatusTimestamp.Unmarshal(m, b) } -func (m *TLStorageFileUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFileUnknown.Marshal(b, m, deterministic) +func (m *TLPrivacyKeyStatusTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPrivacyKeyStatusTimestamp.Marshal(b, m, deterministic) } -func (dst *TLStorageFileUnknown) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFileUnknown.Merge(dst, src) +func (dst *TLPrivacyKeyStatusTimestamp) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPrivacyKeyStatusTimestamp.Merge(dst, src) } -func (m *TLStorageFileUnknown) XXX_Size() int { - return xxx_messageInfo_TLStorageFileUnknown.Size(m) +func (m *TLPrivacyKeyStatusTimestamp) XXX_Size() int { + return xxx_messageInfo_TLPrivacyKeyStatusTimestamp.Size(m) } -func (m *TLStorageFileUnknown) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFileUnknown.DiscardUnknown(m) +func (m *TLPrivacyKeyStatusTimestamp) XXX_DiscardUnknown() { + xxx_messageInfo_TLPrivacyKeyStatusTimestamp.DiscardUnknown(m) } -var xxx_messageInfo_TLStorageFileUnknown proto.InternalMessageInfo +var xxx_messageInfo_TLPrivacyKeyStatusTimestamp proto.InternalMessageInfo -func (m *TLStorageFileUnknown) GetData2() *Storage_FileType_Data { +func (m *TLPrivacyKeyStatusTimestamp) GetData2() *PrivacyKey_Data { if m != nil { return m.Data2 } return nil } -// storage.filePartial#40bc6f52 = storage.FileType; -type TLStorageFilePartial struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// privacyKeyChatInvite#500e6dfa = PrivacyKey; +type TLPrivacyKeyChatInvite struct { + Data2 *PrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStorageFilePartial) Reset() { *m = TLStorageFilePartial{} } -func (m *TLStorageFilePartial) String() string { return proto.CompactTextString(m) } -func (*TLStorageFilePartial) ProtoMessage() {} -func (*TLStorageFilePartial) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{15} +func (m *TLPrivacyKeyChatInvite) Reset() { *m = TLPrivacyKeyChatInvite{} } +func (m *TLPrivacyKeyChatInvite) String() string { return proto.CompactTextString(m) } +func (*TLPrivacyKeyChatInvite) ProtoMessage() {} +func (*TLPrivacyKeyChatInvite) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{15} } -func (m *TLStorageFilePartial) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFilePartial.Unmarshal(m, b) +func (m *TLPrivacyKeyChatInvite) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPrivacyKeyChatInvite.Unmarshal(m, b) } -func (m *TLStorageFilePartial) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFilePartial.Marshal(b, m, deterministic) +func (m *TLPrivacyKeyChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPrivacyKeyChatInvite.Marshal(b, m, deterministic) } -func (dst *TLStorageFilePartial) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFilePartial.Merge(dst, src) +func (dst *TLPrivacyKeyChatInvite) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPrivacyKeyChatInvite.Merge(dst, src) } -func (m *TLStorageFilePartial) XXX_Size() int { - return xxx_messageInfo_TLStorageFilePartial.Size(m) +func (m *TLPrivacyKeyChatInvite) XXX_Size() int { + return xxx_messageInfo_TLPrivacyKeyChatInvite.Size(m) } -func (m *TLStorageFilePartial) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFilePartial.DiscardUnknown(m) +func (m *TLPrivacyKeyChatInvite) XXX_DiscardUnknown() { + xxx_messageInfo_TLPrivacyKeyChatInvite.DiscardUnknown(m) } -var xxx_messageInfo_TLStorageFilePartial proto.InternalMessageInfo +var xxx_messageInfo_TLPrivacyKeyChatInvite proto.InternalMessageInfo -func (m *TLStorageFilePartial) GetData2() *Storage_FileType_Data { +func (m *TLPrivacyKeyChatInvite) GetData2() *PrivacyKey_Data { if m != nil { return m.Data2 } return nil } -// storage.fileJpeg#7efe0e = storage.FileType; -type TLStorageFileJpeg struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// privacyKeyPhoneCall#3d662b7b = PrivacyKey; +type TLPrivacyKeyPhoneCall struct { + Data2 *PrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStorageFileJpeg) Reset() { *m = TLStorageFileJpeg{} } -func (m *TLStorageFileJpeg) String() string { return proto.CompactTextString(m) } -func (*TLStorageFileJpeg) ProtoMessage() {} -func (*TLStorageFileJpeg) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{16} +func (m *TLPrivacyKeyPhoneCall) Reset() { *m = TLPrivacyKeyPhoneCall{} } +func (m *TLPrivacyKeyPhoneCall) String() string { return proto.CompactTextString(m) } +func (*TLPrivacyKeyPhoneCall) ProtoMessage() {} +func (*TLPrivacyKeyPhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{16} } -func (m *TLStorageFileJpeg) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFileJpeg.Unmarshal(m, b) +func (m *TLPrivacyKeyPhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPrivacyKeyPhoneCall.Unmarshal(m, b) } -func (m *TLStorageFileJpeg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFileJpeg.Marshal(b, m, deterministic) +func (m *TLPrivacyKeyPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPrivacyKeyPhoneCall.Marshal(b, m, deterministic) } -func (dst *TLStorageFileJpeg) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFileJpeg.Merge(dst, src) +func (dst *TLPrivacyKeyPhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPrivacyKeyPhoneCall.Merge(dst, src) } -func (m *TLStorageFileJpeg) XXX_Size() int { - return xxx_messageInfo_TLStorageFileJpeg.Size(m) +func (m *TLPrivacyKeyPhoneCall) XXX_Size() int { + return xxx_messageInfo_TLPrivacyKeyPhoneCall.Size(m) } -func (m *TLStorageFileJpeg) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFileJpeg.DiscardUnknown(m) +func (m *TLPrivacyKeyPhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLPrivacyKeyPhoneCall.DiscardUnknown(m) } -var xxx_messageInfo_TLStorageFileJpeg proto.InternalMessageInfo +var xxx_messageInfo_TLPrivacyKeyPhoneCall proto.InternalMessageInfo -func (m *TLStorageFileJpeg) GetData2() *Storage_FileType_Data { +func (m *TLPrivacyKeyPhoneCall) GetData2() *PrivacyKey_Data { if m != nil { return m.Data2 } return nil } -// storage.fileGif#cae1aadf = storage.FileType; -type TLStorageFileGif struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// messages_Stickers <-- +// + TL_messages_stickersNotModified +// + TL_messages_stickers +// +type Messages_Stickers_Data struct { + Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + Stickers []*Document `protobuf:"bytes,2,rep,name=stickers,proto3" json:"stickers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStorageFileGif) Reset() { *m = TLStorageFileGif{} } -func (m *TLStorageFileGif) String() string { return proto.CompactTextString(m) } -func (*TLStorageFileGif) ProtoMessage() {} -func (*TLStorageFileGif) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{17} +func (m *Messages_Stickers_Data) Reset() { *m = Messages_Stickers_Data{} } +func (m *Messages_Stickers_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_Stickers_Data) ProtoMessage() {} +func (*Messages_Stickers_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{17} } -func (m *TLStorageFileGif) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFileGif.Unmarshal(m, b) +func (m *Messages_Stickers_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_Stickers_Data.Unmarshal(m, b) } -func (m *TLStorageFileGif) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFileGif.Marshal(b, m, deterministic) +func (m *Messages_Stickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_Stickers_Data.Marshal(b, m, deterministic) } -func (dst *TLStorageFileGif) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFileGif.Merge(dst, src) +func (dst *Messages_Stickers_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_Stickers_Data.Merge(dst, src) } -func (m *TLStorageFileGif) XXX_Size() int { - return xxx_messageInfo_TLStorageFileGif.Size(m) +func (m *Messages_Stickers_Data) XXX_Size() int { + return xxx_messageInfo_Messages_Stickers_Data.Size(m) } -func (m *TLStorageFileGif) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFileGif.DiscardUnknown(m) +func (m *Messages_Stickers_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_Stickers_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLStorageFileGif proto.InternalMessageInfo +var xxx_messageInfo_Messages_Stickers_Data proto.InternalMessageInfo -func (m *TLStorageFileGif) GetData2() *Storage_FileType_Data { +func (m *Messages_Stickers_Data) GetHash() int32 { if m != nil { - return m.Data2 + return m.Hash } - return nil + return 0 } -// storage.filePng#a4f63c0 = storage.FileType; -type TLStorageFilePng struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Messages_Stickers_Data) GetStickers() []*Document { + if m != nil { + return m.Stickers + } + return nil } -func (m *TLStorageFilePng) Reset() { *m = TLStorageFilePng{} } -func (m *TLStorageFilePng) String() string { return proto.CompactTextString(m) } -func (*TLStorageFilePng) ProtoMessage() {} -func (*TLStorageFilePng) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{18} +type Messages_Stickers struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_Stickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStorageFilePng) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFilePng.Unmarshal(m, b) + +func (m *Messages_Stickers) Reset() { *m = Messages_Stickers{} } +func (m *Messages_Stickers) String() string { return proto.CompactTextString(m) } +func (*Messages_Stickers) ProtoMessage() {} +func (*Messages_Stickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{18} } -func (m *TLStorageFilePng) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFilePng.Marshal(b, m, deterministic) +func (m *Messages_Stickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_Stickers.Unmarshal(m, b) } -func (dst *TLStorageFilePng) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFilePng.Merge(dst, src) +func (m *Messages_Stickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_Stickers.Marshal(b, m, deterministic) } -func (m *TLStorageFilePng) XXX_Size() int { - return xxx_messageInfo_TLStorageFilePng.Size(m) +func (dst *Messages_Stickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_Stickers.Merge(dst, src) } -func (m *TLStorageFilePng) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFilePng.DiscardUnknown(m) +func (m *Messages_Stickers) XXX_Size() int { + return xxx_messageInfo_Messages_Stickers.Size(m) +} +func (m *Messages_Stickers) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_Stickers.DiscardUnknown(m) } -var xxx_messageInfo_TLStorageFilePng proto.InternalMessageInfo +var xxx_messageInfo_Messages_Stickers proto.InternalMessageInfo -func (m *TLStorageFilePng) GetData2() *Storage_FileType_Data { +func (m *Messages_Stickers) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Messages_Stickers) GetData2() *Messages_Stickers_Data { if m != nil { return m.Data2 } return nil } -// storage.filePdf#ae1e508d = storage.FileType; -type TLStorageFilePdf struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.stickersNotModified#f1749a22 = messages.Stickers; +type TLMessagesStickersNotModified struct { + Data2 *Messages_Stickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStorageFilePdf) Reset() { *m = TLStorageFilePdf{} } -func (m *TLStorageFilePdf) String() string { return proto.CompactTextString(m) } -func (*TLStorageFilePdf) ProtoMessage() {} -func (*TLStorageFilePdf) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{19} +func (m *TLMessagesStickersNotModified) Reset() { *m = TLMessagesStickersNotModified{} } +func (m *TLMessagesStickersNotModified) String() string { return proto.CompactTextString(m) } +func (*TLMessagesStickersNotModified) ProtoMessage() {} +func (*TLMessagesStickersNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{19} } -func (m *TLStorageFilePdf) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFilePdf.Unmarshal(m, b) +func (m *TLMessagesStickersNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesStickersNotModified.Unmarshal(m, b) } -func (m *TLStorageFilePdf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFilePdf.Marshal(b, m, deterministic) +func (m *TLMessagesStickersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesStickersNotModified.Marshal(b, m, deterministic) } -func (dst *TLStorageFilePdf) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFilePdf.Merge(dst, src) +func (dst *TLMessagesStickersNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesStickersNotModified.Merge(dst, src) } -func (m *TLStorageFilePdf) XXX_Size() int { - return xxx_messageInfo_TLStorageFilePdf.Size(m) +func (m *TLMessagesStickersNotModified) XXX_Size() int { + return xxx_messageInfo_TLMessagesStickersNotModified.Size(m) } -func (m *TLStorageFilePdf) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFilePdf.DiscardUnknown(m) +func (m *TLMessagesStickersNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesStickersNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLStorageFilePdf proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesStickersNotModified proto.InternalMessageInfo -func (m *TLStorageFilePdf) GetData2() *Storage_FileType_Data { +func (m *TLMessagesStickersNotModified) GetData2() *Messages_Stickers_Data { if m != nil { return m.Data2 } return nil } -// storage.fileMp3#528a0677 = storage.FileType; -type TLStorageFileMp3 struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.stickers#e4599bbd hash:int stickers:Vector = messages.Stickers; +type TLMessagesStickers struct { + Data2 *Messages_Stickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStorageFileMp3) Reset() { *m = TLStorageFileMp3{} } -func (m *TLStorageFileMp3) String() string { return proto.CompactTextString(m) } -func (*TLStorageFileMp3) ProtoMessage() {} -func (*TLStorageFileMp3) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{20} +func (m *TLMessagesStickers) Reset() { *m = TLMessagesStickers{} } +func (m *TLMessagesStickers) String() string { return proto.CompactTextString(m) } +func (*TLMessagesStickers) ProtoMessage() {} +func (*TLMessagesStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{20} } -func (m *TLStorageFileMp3) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFileMp3.Unmarshal(m, b) +func (m *TLMessagesStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesStickers.Unmarshal(m, b) } -func (m *TLStorageFileMp3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFileMp3.Marshal(b, m, deterministic) +func (m *TLMessagesStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesStickers.Marshal(b, m, deterministic) } -func (dst *TLStorageFileMp3) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFileMp3.Merge(dst, src) +func (dst *TLMessagesStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesStickers.Merge(dst, src) } -func (m *TLStorageFileMp3) XXX_Size() int { - return xxx_messageInfo_TLStorageFileMp3.Size(m) +func (m *TLMessagesStickers) XXX_Size() int { + return xxx_messageInfo_TLMessagesStickers.Size(m) } -func (m *TLStorageFileMp3) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFileMp3.DiscardUnknown(m) +func (m *TLMessagesStickers) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesStickers.DiscardUnknown(m) } -var xxx_messageInfo_TLStorageFileMp3 proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesStickers proto.InternalMessageInfo -func (m *TLStorageFileMp3) GetData2() *Storage_FileType_Data { +func (m *TLMessagesStickers) GetData2() *Messages_Stickers_Data { if m != nil { return m.Data2 } return nil } -// storage.fileMov#4b09ebbc = storage.FileType; -type TLStorageFileMov struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputBotInlineMessage <-- +// + TL_inputBotInlineMessageMediaAuto +// + TL_inputBotInlineMessageText +// + TL_inputBotInlineMessageMediaGeo +// + TL_inputBotInlineMessageMediaVenue +// + TL_inputBotInlineMessageMediaContact +// + TL_inputBotInlineMessageGame +// +type InputBotInlineMessage_Data struct { + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` + ReplyMarkup *ReplyMarkup `protobuf:"bytes,3,opt,name=reply_markup,json=replyMarkup,proto3" json:"reply_markup,omitempty"` + NoWebpage bool `protobuf:"varint,4,opt,name=no_webpage,json=noWebpage,proto3" json:"no_webpage,omitempty"` + GeoPoint *InputGeoPoint `protobuf:"bytes,5,opt,name=geo_point,json=geoPoint,proto3" json:"geo_point,omitempty"` + Period int32 `protobuf:"varint,6,opt,name=period,proto3" json:"period,omitempty"` + Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` + Address string `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"` + Provider string `protobuf:"bytes,9,opt,name=provider,proto3" json:"provider,omitempty"` + VenueId string `protobuf:"bytes,10,opt,name=venue_id,json=venueId,proto3" json:"venue_id,omitempty"` + VenueType string `protobuf:"bytes,11,opt,name=venue_type,json=venueType,proto3" json:"venue_type,omitempty"` + PhoneNumber string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` + FirstName string `protobuf:"bytes,13,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,14,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Vcard string `protobuf:"bytes,15,opt,name=vcard,proto3" json:"vcard,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStorageFileMov) Reset() { *m = TLStorageFileMov{} } -func (m *TLStorageFileMov) String() string { return proto.CompactTextString(m) } -func (*TLStorageFileMov) ProtoMessage() {} -func (*TLStorageFileMov) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{21} +func (m *InputBotInlineMessage_Data) Reset() { *m = InputBotInlineMessage_Data{} } +func (m *InputBotInlineMessage_Data) String() string { return proto.CompactTextString(m) } +func (*InputBotInlineMessage_Data) ProtoMessage() {} +func (*InputBotInlineMessage_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{21} } -func (m *TLStorageFileMov) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFileMov.Unmarshal(m, b) +func (m *InputBotInlineMessage_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputBotInlineMessage_Data.Unmarshal(m, b) } -func (m *TLStorageFileMov) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFileMov.Marshal(b, m, deterministic) +func (m *InputBotInlineMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputBotInlineMessage_Data.Marshal(b, m, deterministic) } -func (dst *TLStorageFileMov) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFileMov.Merge(dst, src) +func (dst *InputBotInlineMessage_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputBotInlineMessage_Data.Merge(dst, src) } -func (m *TLStorageFileMov) XXX_Size() int { - return xxx_messageInfo_TLStorageFileMov.Size(m) +func (m *InputBotInlineMessage_Data) XXX_Size() int { + return xxx_messageInfo_InputBotInlineMessage_Data.Size(m) } -func (m *TLStorageFileMov) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFileMov.DiscardUnknown(m) +func (m *InputBotInlineMessage_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputBotInlineMessage_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLStorageFileMov proto.InternalMessageInfo +var xxx_messageInfo_InputBotInlineMessage_Data proto.InternalMessageInfo -func (m *TLStorageFileMov) GetData2() *Storage_FileType_Data { +func (m *InputBotInlineMessage_Data) GetMessage() string { if m != nil { - return m.Data2 + return m.Message } - return nil + return "" } -// storage.fileMp4#b3cea0e4 = storage.FileType; -type TLStorageFileMp4 struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputBotInlineMessage_Data) GetEntities() []*MessageEntity { + if m != nil { + return m.Entities + } + return nil } -func (m *TLStorageFileMp4) Reset() { *m = TLStorageFileMp4{} } -func (m *TLStorageFileMp4) String() string { return proto.CompactTextString(m) } -func (*TLStorageFileMp4) ProtoMessage() {} -func (*TLStorageFileMp4) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{22} -} -func (m *TLStorageFileMp4) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFileMp4.Unmarshal(m, b) -} -func (m *TLStorageFileMp4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFileMp4.Marshal(b, m, deterministic) -} -func (dst *TLStorageFileMp4) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFileMp4.Merge(dst, src) -} -func (m *TLStorageFileMp4) XXX_Size() int { - return xxx_messageInfo_TLStorageFileMp4.Size(m) -} -func (m *TLStorageFileMp4) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFileMp4.DiscardUnknown(m) +func (m *InputBotInlineMessage_Data) GetReplyMarkup() *ReplyMarkup { + if m != nil { + return m.ReplyMarkup + } + return nil } -var xxx_messageInfo_TLStorageFileMp4 proto.InternalMessageInfo +func (m *InputBotInlineMessage_Data) GetNoWebpage() bool { + if m != nil { + return m.NoWebpage + } + return false +} -func (m *TLStorageFileMp4) GetData2() *Storage_FileType_Data { +func (m *InputBotInlineMessage_Data) GetGeoPoint() *InputGeoPoint { if m != nil { - return m.Data2 + return m.GeoPoint } return nil } -// storage.fileWebp#1081464c = storage.FileType; -type TLStorageFileWebp struct { - Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputBotInlineMessage_Data) GetPeriod() int32 { + if m != nil { + return m.Period + } + return 0 } -func (m *TLStorageFileWebp) Reset() { *m = TLStorageFileWebp{} } -func (m *TLStorageFileWebp) String() string { return proto.CompactTextString(m) } -func (*TLStorageFileWebp) ProtoMessage() {} -func (*TLStorageFileWebp) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{23} -} -func (m *TLStorageFileWebp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStorageFileWebp.Unmarshal(m, b) -} -func (m *TLStorageFileWebp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStorageFileWebp.Marshal(b, m, deterministic) -} -func (dst *TLStorageFileWebp) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStorageFileWebp.Merge(dst, src) -} -func (m *TLStorageFileWebp) XXX_Size() int { - return xxx_messageInfo_TLStorageFileWebp.Size(m) -} -func (m *TLStorageFileWebp) XXX_DiscardUnknown() { - xxx_messageInfo_TLStorageFileWebp.DiscardUnknown(m) +func (m *InputBotInlineMessage_Data) GetTitle() string { + if m != nil { + return m.Title + } + return "" } -var xxx_messageInfo_TLStorageFileWebp proto.InternalMessageInfo - -func (m *TLStorageFileWebp) GetData2() *Storage_FileType_Data { +func (m *InputBotInlineMessage_Data) GetAddress() string { if m != nil { - return m.Data2 + return m.Address } - return nil + return "" } -// ///////////////////////////////////////////////////////////////////////////// -// messages_ChatFull <-- -// + TL_messages_chatFull -// -type Messages_ChatFull_Data struct { - FullChat *ChatFull `protobuf:"bytes,1,opt,name=full_chat,json=fullChat,proto3" json:"full_chat,omitempty"` - Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputBotInlineMessage_Data) GetProvider() string { + if m != nil { + return m.Provider + } + return "" } -func (m *Messages_ChatFull_Data) Reset() { *m = Messages_ChatFull_Data{} } -func (m *Messages_ChatFull_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_ChatFull_Data) ProtoMessage() {} -func (*Messages_ChatFull_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{24} -} -func (m *Messages_ChatFull_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_ChatFull_Data.Unmarshal(m, b) -} -func (m *Messages_ChatFull_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_ChatFull_Data.Marshal(b, m, deterministic) -} -func (dst *Messages_ChatFull_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_ChatFull_Data.Merge(dst, src) -} -func (m *Messages_ChatFull_Data) XXX_Size() int { - return xxx_messageInfo_Messages_ChatFull_Data.Size(m) +func (m *InputBotInlineMessage_Data) GetVenueId() string { + if m != nil { + return m.VenueId + } + return "" } -func (m *Messages_ChatFull_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_ChatFull_Data.DiscardUnknown(m) + +func (m *InputBotInlineMessage_Data) GetVenueType() string { + if m != nil { + return m.VenueType + } + return "" } -var xxx_messageInfo_Messages_ChatFull_Data proto.InternalMessageInfo +func (m *InputBotInlineMessage_Data) GetPhoneNumber() string { + if m != nil { + return m.PhoneNumber + } + return "" +} -func (m *Messages_ChatFull_Data) GetFullChat() *ChatFull { +func (m *InputBotInlineMessage_Data) GetFirstName() string { if m != nil { - return m.FullChat + return m.FirstName } - return nil + return "" } -func (m *Messages_ChatFull_Data) GetChats() []*Chat { +func (m *InputBotInlineMessage_Data) GetLastName() string { if m != nil { - return m.Chats + return m.LastName } - return nil + return "" } -func (m *Messages_ChatFull_Data) GetUsers() []*User { +func (m *InputBotInlineMessage_Data) GetVcard() string { if m != nil { - return m.Users + return m.Vcard } - return nil + return "" } -type Messages_ChatFull struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputBotInlineMessage struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_ChatFull) Reset() { *m = Messages_ChatFull{} } -func (m *Messages_ChatFull) String() string { return proto.CompactTextString(m) } -func (*Messages_ChatFull) ProtoMessage() {} -func (*Messages_ChatFull) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{25} +func (m *InputBotInlineMessage) Reset() { *m = InputBotInlineMessage{} } +func (m *InputBotInlineMessage) String() string { return proto.CompactTextString(m) } +func (*InputBotInlineMessage) ProtoMessage() {} +func (*InputBotInlineMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{22} } -func (m *Messages_ChatFull) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_ChatFull.Unmarshal(m, b) +func (m *InputBotInlineMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputBotInlineMessage.Unmarshal(m, b) } -func (m *Messages_ChatFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_ChatFull.Marshal(b, m, deterministic) +func (m *InputBotInlineMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputBotInlineMessage.Marshal(b, m, deterministic) } -func (dst *Messages_ChatFull) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_ChatFull.Merge(dst, src) +func (dst *InputBotInlineMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputBotInlineMessage.Merge(dst, src) } -func (m *Messages_ChatFull) XXX_Size() int { - return xxx_messageInfo_Messages_ChatFull.Size(m) +func (m *InputBotInlineMessage) XXX_Size() int { + return xxx_messageInfo_InputBotInlineMessage.Size(m) } -func (m *Messages_ChatFull) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_ChatFull.DiscardUnknown(m) +func (m *InputBotInlineMessage) XXX_DiscardUnknown() { + xxx_messageInfo_InputBotInlineMessage.DiscardUnknown(m) } -var xxx_messageInfo_Messages_ChatFull proto.InternalMessageInfo +var xxx_messageInfo_InputBotInlineMessage proto.InternalMessageInfo -func (m *Messages_ChatFull) GetConstructor() TLConstructor { +func (m *InputBotInlineMessage) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_ChatFull) GetData2() *Messages_ChatFull_Data { +func (m *InputBotInlineMessage) GetData2() *InputBotInlineMessage_Data { if m != nil { return m.Data2 } return nil } -// messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull; -type TLMessagesChatFull struct { - Data2 *Messages_ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +type TLInputBotInlineMessageMediaAuto struct { + Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesChatFull) Reset() { *m = TLMessagesChatFull{} } -func (m *TLMessagesChatFull) String() string { return proto.CompactTextString(m) } -func (*TLMessagesChatFull) ProtoMessage() {} -func (*TLMessagesChatFull) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{26} +func (m *TLInputBotInlineMessageMediaAuto) Reset() { *m = TLInputBotInlineMessageMediaAuto{} } +func (m *TLInputBotInlineMessageMediaAuto) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineMessageMediaAuto) ProtoMessage() {} +func (*TLInputBotInlineMessageMediaAuto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{23} } -func (m *TLMessagesChatFull) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesChatFull.Unmarshal(m, b) +func (m *TLInputBotInlineMessageMediaAuto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineMessageMediaAuto.Unmarshal(m, b) } -func (m *TLMessagesChatFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesChatFull.Marshal(b, m, deterministic) +func (m *TLInputBotInlineMessageMediaAuto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineMessageMediaAuto.Marshal(b, m, deterministic) } -func (dst *TLMessagesChatFull) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesChatFull.Merge(dst, src) +func (dst *TLInputBotInlineMessageMediaAuto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineMessageMediaAuto.Merge(dst, src) } -func (m *TLMessagesChatFull) XXX_Size() int { - return xxx_messageInfo_TLMessagesChatFull.Size(m) +func (m *TLInputBotInlineMessageMediaAuto) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineMessageMediaAuto.Size(m) } -func (m *TLMessagesChatFull) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesChatFull.DiscardUnknown(m) +func (m *TLInputBotInlineMessageMediaAuto) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineMessageMediaAuto.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesChatFull proto.InternalMessageInfo +var xxx_messageInfo_TLInputBotInlineMessageMediaAuto proto.InternalMessageInfo -func (m *TLMessagesChatFull) GetData2() *Messages_ChatFull_Data { +func (m *TLInputBotInlineMessageMediaAuto) GetData2() *InputBotInlineMessage_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_StickerSet <-- -// + TL_messages_stickerSet -// -type Messages_StickerSet_Data struct { - Set *StickerSet `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"` - Packs []*StickerPack `protobuf:"bytes,2,rep,name=packs,proto3" json:"packs,omitempty"` - Documents []*Document `protobuf:"bytes,3,rep,name=documents,proto3" json:"documents,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +type TLInputBotInlineMessageText struct { + Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_StickerSet_Data) Reset() { *m = Messages_StickerSet_Data{} } -func (m *Messages_StickerSet_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_StickerSet_Data) ProtoMessage() {} -func (*Messages_StickerSet_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{27} +func (m *TLInputBotInlineMessageText) Reset() { *m = TLInputBotInlineMessageText{} } +func (m *TLInputBotInlineMessageText) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineMessageText) ProtoMessage() {} +func (*TLInputBotInlineMessageText) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{24} } -func (m *Messages_StickerSet_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_StickerSet_Data.Unmarshal(m, b) +func (m *TLInputBotInlineMessageText) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineMessageText.Unmarshal(m, b) } -func (m *Messages_StickerSet_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_StickerSet_Data.Marshal(b, m, deterministic) +func (m *TLInputBotInlineMessageText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineMessageText.Marshal(b, m, deterministic) } -func (dst *Messages_StickerSet_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_StickerSet_Data.Merge(dst, src) +func (dst *TLInputBotInlineMessageText) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineMessageText.Merge(dst, src) } -func (m *Messages_StickerSet_Data) XXX_Size() int { - return xxx_messageInfo_Messages_StickerSet_Data.Size(m) +func (m *TLInputBotInlineMessageText) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineMessageText.Size(m) } -func (m *Messages_StickerSet_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_StickerSet_Data.DiscardUnknown(m) +func (m *TLInputBotInlineMessageText) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineMessageText.DiscardUnknown(m) } -var xxx_messageInfo_Messages_StickerSet_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputBotInlineMessageText proto.InternalMessageInfo -func (m *Messages_StickerSet_Data) GetSet() *StickerSet { +func (m *TLInputBotInlineMessageText) GetData2() *InputBotInlineMessage_Data { if m != nil { - return m.Set + return m.Data2 } return nil } -func (m *Messages_StickerSet_Data) GetPacks() []*StickerPack { - if m != nil { - return m.Packs - } - return nil +// inputBotInlineMessageMediaGeo#c1b15d65 flags:# geo_point:InputGeoPoint period:int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +type TLInputBotInlineMessageMediaGeo struct { + Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_StickerSet_Data) GetDocuments() []*Document { +func (m *TLInputBotInlineMessageMediaGeo) Reset() { *m = TLInputBotInlineMessageMediaGeo{} } +func (m *TLInputBotInlineMessageMediaGeo) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineMessageMediaGeo) ProtoMessage() {} +func (*TLInputBotInlineMessageMediaGeo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{25} +} +func (m *TLInputBotInlineMessageMediaGeo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineMessageMediaGeo.Unmarshal(m, b) +} +func (m *TLInputBotInlineMessageMediaGeo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineMessageMediaGeo.Marshal(b, m, deterministic) +} +func (dst *TLInputBotInlineMessageMediaGeo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineMessageMediaGeo.Merge(dst, src) +} +func (m *TLInputBotInlineMessageMediaGeo) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineMessageMediaGeo.Size(m) +} +func (m *TLInputBotInlineMessageMediaGeo) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineMessageMediaGeo.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputBotInlineMessageMediaGeo proto.InternalMessageInfo + +func (m *TLInputBotInlineMessageMediaGeo) GetData2() *InputBotInlineMessage_Data { if m != nil { - return m.Documents + return m.Data2 } return nil } -type Messages_StickerSet struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_StickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +type TLInputBotInlineMessageMediaVenue struct { + Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_StickerSet) Reset() { *m = Messages_StickerSet{} } -func (m *Messages_StickerSet) String() string { return proto.CompactTextString(m) } -func (*Messages_StickerSet) ProtoMessage() {} -func (*Messages_StickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{28} +func (m *TLInputBotInlineMessageMediaVenue) Reset() { *m = TLInputBotInlineMessageMediaVenue{} } +func (m *TLInputBotInlineMessageMediaVenue) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineMessageMediaVenue) ProtoMessage() {} +func (*TLInputBotInlineMessageMediaVenue) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{26} } -func (m *Messages_StickerSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_StickerSet.Unmarshal(m, b) +func (m *TLInputBotInlineMessageMediaVenue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineMessageMediaVenue.Unmarshal(m, b) } -func (m *Messages_StickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_StickerSet.Marshal(b, m, deterministic) +func (m *TLInputBotInlineMessageMediaVenue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineMessageMediaVenue.Marshal(b, m, deterministic) } -func (dst *Messages_StickerSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_StickerSet.Merge(dst, src) +func (dst *TLInputBotInlineMessageMediaVenue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineMessageMediaVenue.Merge(dst, src) } -func (m *Messages_StickerSet) XXX_Size() int { - return xxx_messageInfo_Messages_StickerSet.Size(m) +func (m *TLInputBotInlineMessageMediaVenue) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineMessageMediaVenue.Size(m) } -func (m *Messages_StickerSet) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_StickerSet.DiscardUnknown(m) +func (m *TLInputBotInlineMessageMediaVenue) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineMessageMediaVenue.DiscardUnknown(m) } -var xxx_messageInfo_Messages_StickerSet proto.InternalMessageInfo - -func (m *Messages_StickerSet) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputBotInlineMessageMediaVenue proto.InternalMessageInfo -func (m *Messages_StickerSet) GetData2() *Messages_StickerSet_Data { +func (m *TLInputBotInlineMessageMediaVenue) GetData2() *InputBotInlineMessage_Data { if m != nil { return m.Data2 } return nil } -// messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; -type TLMessagesStickerSet struct { - Data2 *Messages_StickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +type TLInputBotInlineMessageMediaContact struct { + Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesStickerSet) Reset() { *m = TLMessagesStickerSet{} } -func (m *TLMessagesStickerSet) String() string { return proto.CompactTextString(m) } -func (*TLMessagesStickerSet) ProtoMessage() {} -func (*TLMessagesStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{29} +func (m *TLInputBotInlineMessageMediaContact) Reset() { *m = TLInputBotInlineMessageMediaContact{} } +func (m *TLInputBotInlineMessageMediaContact) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineMessageMediaContact) ProtoMessage() {} +func (*TLInputBotInlineMessageMediaContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{27} } -func (m *TLMessagesStickerSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesStickerSet.Unmarshal(m, b) +func (m *TLInputBotInlineMessageMediaContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineMessageMediaContact.Unmarshal(m, b) } -func (m *TLMessagesStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesStickerSet.Marshal(b, m, deterministic) +func (m *TLInputBotInlineMessageMediaContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineMessageMediaContact.Marshal(b, m, deterministic) } -func (dst *TLMessagesStickerSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesStickerSet.Merge(dst, src) +func (dst *TLInputBotInlineMessageMediaContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineMessageMediaContact.Merge(dst, src) } -func (m *TLMessagesStickerSet) XXX_Size() int { - return xxx_messageInfo_TLMessagesStickerSet.Size(m) +func (m *TLInputBotInlineMessageMediaContact) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineMessageMediaContact.Size(m) } -func (m *TLMessagesStickerSet) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesStickerSet.DiscardUnknown(m) +func (m *TLInputBotInlineMessageMediaContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineMessageMediaContact.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesStickerSet proto.InternalMessageInfo +var xxx_messageInfo_TLInputBotInlineMessageMediaContact proto.InternalMessageInfo -func (m *TLMessagesStickerSet) GetData2() *Messages_StickerSet_Data { +func (m *TLInputBotInlineMessageMediaContact) GetData2() *InputBotInlineMessage_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputStickeredMedia <-- -// + TL_inputStickeredMediaPhoto -// + TL_inputStickeredMediaDocument -// -type InputStickeredMedia_Data struct { - Id_1 *InputPhoto `protobuf:"bytes,1,opt,name=id_1,json=id1,proto3" json:"id_1,omitempty"` - Id_2 *InputDocument `protobuf:"bytes,2,opt,name=id_2,json=id2,proto3" json:"id_2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +type TLInputBotInlineMessageGame struct { + Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputStickeredMedia_Data) Reset() { *m = InputStickeredMedia_Data{} } -func (m *InputStickeredMedia_Data) String() string { return proto.CompactTextString(m) } -func (*InputStickeredMedia_Data) ProtoMessage() {} -func (*InputStickeredMedia_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{30} +func (m *TLInputBotInlineMessageGame) Reset() { *m = TLInputBotInlineMessageGame{} } +func (m *TLInputBotInlineMessageGame) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineMessageGame) ProtoMessage() {} +func (*TLInputBotInlineMessageGame) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{28} } -func (m *InputStickeredMedia_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputStickeredMedia_Data.Unmarshal(m, b) +func (m *TLInputBotInlineMessageGame) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineMessageGame.Unmarshal(m, b) } -func (m *InputStickeredMedia_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputStickeredMedia_Data.Marshal(b, m, deterministic) +func (m *TLInputBotInlineMessageGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineMessageGame.Marshal(b, m, deterministic) } -func (dst *InputStickeredMedia_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputStickeredMedia_Data.Merge(dst, src) +func (dst *TLInputBotInlineMessageGame) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineMessageGame.Merge(dst, src) } -func (m *InputStickeredMedia_Data) XXX_Size() int { - return xxx_messageInfo_InputStickeredMedia_Data.Size(m) +func (m *TLInputBotInlineMessageGame) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineMessageGame.Size(m) } -func (m *InputStickeredMedia_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputStickeredMedia_Data.DiscardUnknown(m) +func (m *TLInputBotInlineMessageGame) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineMessageGame.DiscardUnknown(m) } -var xxx_messageInfo_InputStickeredMedia_Data proto.InternalMessageInfo - -func (m *InputStickeredMedia_Data) GetId_1() *InputPhoto { - if m != nil { - return m.Id_1 - } - return nil -} +var xxx_messageInfo_TLInputBotInlineMessageGame proto.InternalMessageInfo -func (m *InputStickeredMedia_Data) GetId_2() *InputDocument { +func (m *TLInputBotInlineMessageGame) GetData2() *InputBotInlineMessage_Data { if m != nil { - return m.Id_2 + return m.Data2 } return nil } -type InputStickeredMedia struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputStickeredMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// account_Authorizations <-- +// + TL_account_authorizations +// +type Account_Authorizations_Data struct { + Authorizations []*Authorization `protobuf:"bytes,1,rep,name=authorizations,proto3" json:"authorizations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputStickeredMedia) Reset() { *m = InputStickeredMedia{} } -func (m *InputStickeredMedia) String() string { return proto.CompactTextString(m) } -func (*InputStickeredMedia) ProtoMessage() {} -func (*InputStickeredMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{31} +func (m *Account_Authorizations_Data) Reset() { *m = Account_Authorizations_Data{} } +func (m *Account_Authorizations_Data) String() string { return proto.CompactTextString(m) } +func (*Account_Authorizations_Data) ProtoMessage() {} +func (*Account_Authorizations_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{29} } -func (m *InputStickeredMedia) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputStickeredMedia.Unmarshal(m, b) +func (m *Account_Authorizations_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_Authorizations_Data.Unmarshal(m, b) } -func (m *InputStickeredMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputStickeredMedia.Marshal(b, m, deterministic) +func (m *Account_Authorizations_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_Authorizations_Data.Marshal(b, m, deterministic) } -func (dst *InputStickeredMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputStickeredMedia.Merge(dst, src) +func (dst *Account_Authorizations_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_Authorizations_Data.Merge(dst, src) } -func (m *InputStickeredMedia) XXX_Size() int { - return xxx_messageInfo_InputStickeredMedia.Size(m) +func (m *Account_Authorizations_Data) XXX_Size() int { + return xxx_messageInfo_Account_Authorizations_Data.Size(m) } -func (m *InputStickeredMedia) XXX_DiscardUnknown() { - xxx_messageInfo_InputStickeredMedia.DiscardUnknown(m) +func (m *Account_Authorizations_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_Authorizations_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputStickeredMedia proto.InternalMessageInfo - -func (m *InputStickeredMedia) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_Account_Authorizations_Data proto.InternalMessageInfo -func (m *InputStickeredMedia) GetData2() *InputStickeredMedia_Data { +func (m *Account_Authorizations_Data) GetAuthorizations() []*Authorization { if m != nil { - return m.Data2 + return m.Authorizations } return nil } -// inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia; -type TLInputStickeredMediaPhoto struct { - Data2 *InputStickeredMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_Authorizations struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_Authorizations_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputStickeredMediaPhoto) Reset() { *m = TLInputStickeredMediaPhoto{} } -func (m *TLInputStickeredMediaPhoto) String() string { return proto.CompactTextString(m) } -func (*TLInputStickeredMediaPhoto) ProtoMessage() {} -func (*TLInputStickeredMediaPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{32} +func (m *Account_Authorizations) Reset() { *m = Account_Authorizations{} } +func (m *Account_Authorizations) String() string { return proto.CompactTextString(m) } +func (*Account_Authorizations) ProtoMessage() {} +func (*Account_Authorizations) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{30} } -func (m *TLInputStickeredMediaPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputStickeredMediaPhoto.Unmarshal(m, b) +func (m *Account_Authorizations) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_Authorizations.Unmarshal(m, b) } -func (m *TLInputStickeredMediaPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputStickeredMediaPhoto.Marshal(b, m, deterministic) +func (m *Account_Authorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_Authorizations.Marshal(b, m, deterministic) } -func (dst *TLInputStickeredMediaPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputStickeredMediaPhoto.Merge(dst, src) +func (dst *Account_Authorizations) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_Authorizations.Merge(dst, src) } -func (m *TLInputStickeredMediaPhoto) XXX_Size() int { - return xxx_messageInfo_TLInputStickeredMediaPhoto.Size(m) +func (m *Account_Authorizations) XXX_Size() int { + return xxx_messageInfo_Account_Authorizations.Size(m) } -func (m *TLInputStickeredMediaPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputStickeredMediaPhoto.DiscardUnknown(m) +func (m *Account_Authorizations) XXX_DiscardUnknown() { + xxx_messageInfo_Account_Authorizations.DiscardUnknown(m) } -var xxx_messageInfo_TLInputStickeredMediaPhoto proto.InternalMessageInfo +var xxx_messageInfo_Account_Authorizations proto.InternalMessageInfo -func (m *TLInputStickeredMediaPhoto) GetData2() *InputStickeredMedia_Data { +func (m *Account_Authorizations) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Account_Authorizations) GetData2() *Account_Authorizations_Data { if m != nil { return m.Data2 } return nil } -// inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia; -type TLInputStickeredMediaDocument struct { - Data2 *InputStickeredMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// account.authorizations#1250abde authorizations:Vector = account.Authorizations; +type TLAccountAuthorizations struct { + Data2 *Account_Authorizations_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputStickeredMediaDocument) Reset() { *m = TLInputStickeredMediaDocument{} } -func (m *TLInputStickeredMediaDocument) String() string { return proto.CompactTextString(m) } -func (*TLInputStickeredMediaDocument) ProtoMessage() {} -func (*TLInputStickeredMediaDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{33} +func (m *TLAccountAuthorizations) Reset() { *m = TLAccountAuthorizations{} } +func (m *TLAccountAuthorizations) String() string { return proto.CompactTextString(m) } +func (*TLAccountAuthorizations) ProtoMessage() {} +func (*TLAccountAuthorizations) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{31} } -func (m *TLInputStickeredMediaDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputStickeredMediaDocument.Unmarshal(m, b) +func (m *TLAccountAuthorizations) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountAuthorizations.Unmarshal(m, b) } -func (m *TLInputStickeredMediaDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputStickeredMediaDocument.Marshal(b, m, deterministic) +func (m *TLAccountAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountAuthorizations.Marshal(b, m, deterministic) } -func (dst *TLInputStickeredMediaDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputStickeredMediaDocument.Merge(dst, src) +func (dst *TLAccountAuthorizations) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountAuthorizations.Merge(dst, src) } -func (m *TLInputStickeredMediaDocument) XXX_Size() int { - return xxx_messageInfo_TLInputStickeredMediaDocument.Size(m) +func (m *TLAccountAuthorizations) XXX_Size() int { + return xxx_messageInfo_TLAccountAuthorizations.Size(m) } -func (m *TLInputStickeredMediaDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputStickeredMediaDocument.DiscardUnknown(m) +func (m *TLAccountAuthorizations) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountAuthorizations.DiscardUnknown(m) } -var xxx_messageInfo_TLInputStickeredMediaDocument proto.InternalMessageInfo +var xxx_messageInfo_TLAccountAuthorizations proto.InternalMessageInfo -func (m *TLInputStickeredMediaDocument) GetData2() *InputStickeredMedia_Data { +func (m *TLAccountAuthorizations) GetData2() *Account_Authorizations_Data { if m != nil { return m.Data2 } @@ -1531,134 +1619,134 @@ func (m *TLInputStickeredMediaDocument) GetData2() *InputStickeredMedia_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PaymentSavedCredentials <-- -// + TL_paymentSavedCredentialsCard +// messages_HighScores <-- +// + TL_messages_highScores // -type PaymentSavedCredentials_Data struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_HighScores_Data struct { + Scores []*HighScore `protobuf:"bytes,1,rep,name=scores,proto3" json:"scores,omitempty"` + Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PaymentSavedCredentials_Data) Reset() { *m = PaymentSavedCredentials_Data{} } -func (m *PaymentSavedCredentials_Data) String() string { return proto.CompactTextString(m) } -func (*PaymentSavedCredentials_Data) ProtoMessage() {} -func (*PaymentSavedCredentials_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{34} +func (m *Messages_HighScores_Data) Reset() { *m = Messages_HighScores_Data{} } +func (m *Messages_HighScores_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_HighScores_Data) ProtoMessage() {} +func (*Messages_HighScores_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{32} } -func (m *PaymentSavedCredentials_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PaymentSavedCredentials_Data.Unmarshal(m, b) +func (m *Messages_HighScores_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_HighScores_Data.Unmarshal(m, b) } -func (m *PaymentSavedCredentials_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PaymentSavedCredentials_Data.Marshal(b, m, deterministic) +func (m *Messages_HighScores_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_HighScores_Data.Marshal(b, m, deterministic) } -func (dst *PaymentSavedCredentials_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PaymentSavedCredentials_Data.Merge(dst, src) +func (dst *Messages_HighScores_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_HighScores_Data.Merge(dst, src) } -func (m *PaymentSavedCredentials_Data) XXX_Size() int { - return xxx_messageInfo_PaymentSavedCredentials_Data.Size(m) +func (m *Messages_HighScores_Data) XXX_Size() int { + return xxx_messageInfo_Messages_HighScores_Data.Size(m) } -func (m *PaymentSavedCredentials_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PaymentSavedCredentials_Data.DiscardUnknown(m) +func (m *Messages_HighScores_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_HighScores_Data.DiscardUnknown(m) } -var xxx_messageInfo_PaymentSavedCredentials_Data proto.InternalMessageInfo +var xxx_messageInfo_Messages_HighScores_Data proto.InternalMessageInfo -func (m *PaymentSavedCredentials_Data) GetId() string { +func (m *Messages_HighScores_Data) GetScores() []*HighScore { if m != nil { - return m.Id + return m.Scores } - return "" + return nil } -func (m *PaymentSavedCredentials_Data) GetTitle() string { +func (m *Messages_HighScores_Data) GetUsers() []*User { if m != nil { - return m.Title + return m.Users } - return "" + return nil } -type PaymentSavedCredentials struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PaymentSavedCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_HighScores struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_HighScores_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PaymentSavedCredentials) Reset() { *m = PaymentSavedCredentials{} } -func (m *PaymentSavedCredentials) String() string { return proto.CompactTextString(m) } -func (*PaymentSavedCredentials) ProtoMessage() {} -func (*PaymentSavedCredentials) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{35} +func (m *Messages_HighScores) Reset() { *m = Messages_HighScores{} } +func (m *Messages_HighScores) String() string { return proto.CompactTextString(m) } +func (*Messages_HighScores) ProtoMessage() {} +func (*Messages_HighScores) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{33} } -func (m *PaymentSavedCredentials) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PaymentSavedCredentials.Unmarshal(m, b) +func (m *Messages_HighScores) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_HighScores.Unmarshal(m, b) } -func (m *PaymentSavedCredentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PaymentSavedCredentials.Marshal(b, m, deterministic) +func (m *Messages_HighScores) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_HighScores.Marshal(b, m, deterministic) } -func (dst *PaymentSavedCredentials) XXX_Merge(src proto.Message) { - xxx_messageInfo_PaymentSavedCredentials.Merge(dst, src) +func (dst *Messages_HighScores) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_HighScores.Merge(dst, src) } -func (m *PaymentSavedCredentials) XXX_Size() int { - return xxx_messageInfo_PaymentSavedCredentials.Size(m) +func (m *Messages_HighScores) XXX_Size() int { + return xxx_messageInfo_Messages_HighScores.Size(m) } -func (m *PaymentSavedCredentials) XXX_DiscardUnknown() { - xxx_messageInfo_PaymentSavedCredentials.DiscardUnknown(m) +func (m *Messages_HighScores) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_HighScores.DiscardUnknown(m) } -var xxx_messageInfo_PaymentSavedCredentials proto.InternalMessageInfo +var xxx_messageInfo_Messages_HighScores proto.InternalMessageInfo -func (m *PaymentSavedCredentials) GetConstructor() TLConstructor { +func (m *Messages_HighScores) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PaymentSavedCredentials) GetData2() *PaymentSavedCredentials_Data { +func (m *Messages_HighScores) GetData2() *Messages_HighScores_Data { if m != nil { return m.Data2 } return nil } -// paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; -type TLPaymentSavedCredentialsCard struct { - Data2 *PaymentSavedCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores; +type TLMessagesHighScores struct { + Data2 *Messages_HighScores_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPaymentSavedCredentialsCard) Reset() { *m = TLPaymentSavedCredentialsCard{} } -func (m *TLPaymentSavedCredentialsCard) String() string { return proto.CompactTextString(m) } -func (*TLPaymentSavedCredentialsCard) ProtoMessage() {} -func (*TLPaymentSavedCredentialsCard) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{36} +func (m *TLMessagesHighScores) Reset() { *m = TLMessagesHighScores{} } +func (m *TLMessagesHighScores) String() string { return proto.CompactTextString(m) } +func (*TLMessagesHighScores) ProtoMessage() {} +func (*TLMessagesHighScores) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{34} } -func (m *TLPaymentSavedCredentialsCard) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPaymentSavedCredentialsCard.Unmarshal(m, b) +func (m *TLMessagesHighScores) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesHighScores.Unmarshal(m, b) } -func (m *TLPaymentSavedCredentialsCard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPaymentSavedCredentialsCard.Marshal(b, m, deterministic) +func (m *TLMessagesHighScores) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesHighScores.Marshal(b, m, deterministic) } -func (dst *TLPaymentSavedCredentialsCard) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPaymentSavedCredentialsCard.Merge(dst, src) +func (dst *TLMessagesHighScores) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesHighScores.Merge(dst, src) } -func (m *TLPaymentSavedCredentialsCard) XXX_Size() int { - return xxx_messageInfo_TLPaymentSavedCredentialsCard.Size(m) +func (m *TLMessagesHighScores) XXX_Size() int { + return xxx_messageInfo_TLMessagesHighScores.Size(m) } -func (m *TLPaymentSavedCredentialsCard) XXX_DiscardUnknown() { - xxx_messageInfo_TLPaymentSavedCredentialsCard.DiscardUnknown(m) +func (m *TLMessagesHighScores) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesHighScores.DiscardUnknown(m) } -var xxx_messageInfo_TLPaymentSavedCredentialsCard proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesHighScores proto.InternalMessageInfo -func (m *TLPaymentSavedCredentialsCard) GetData2() *PaymentSavedCredentials_Data { +func (m *TLMessagesHighScores) GetData2() *Messages_HighScores_Data { if m != nil { return m.Data2 } @@ -1666,174 +1754,190 @@ func (m *TLPaymentSavedCredentialsCard) GetData2() *PaymentSavedCredentials_Data } // ///////////////////////////////////////////////////////////////////////////// -// Game <-- -// + TL_game +// help_ProxyData <-- +// + TL_help_proxyDataEmpty +// + TL_help_proxyDataPromo // -type Game_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - ShortName string `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` - Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - Photo *Photo `protobuf:"bytes,6,opt,name=photo,proto3" json:"photo,omitempty"` - Document *Document `protobuf:"bytes,7,opt,name=document,proto3" json:"document,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_ProxyData_Data struct { + Expires int32 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"` + Peer *Peer `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"` + Chats []*Chat `protobuf:"bytes,3,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Game_Data) Reset() { *m = Game_Data{} } -func (m *Game_Data) String() string { return proto.CompactTextString(m) } -func (*Game_Data) ProtoMessage() {} -func (*Game_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{37} +func (m *Help_ProxyData_Data) Reset() { *m = Help_ProxyData_Data{} } +func (m *Help_ProxyData_Data) String() string { return proto.CompactTextString(m) } +func (*Help_ProxyData_Data) ProtoMessage() {} +func (*Help_ProxyData_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{35} } -func (m *Game_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Game_Data.Unmarshal(m, b) +func (m *Help_ProxyData_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_ProxyData_Data.Unmarshal(m, b) } -func (m *Game_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Game_Data.Marshal(b, m, deterministic) +func (m *Help_ProxyData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_ProxyData_Data.Marshal(b, m, deterministic) } -func (dst *Game_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Game_Data.Merge(dst, src) +func (dst *Help_ProxyData_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_ProxyData_Data.Merge(dst, src) } -func (m *Game_Data) XXX_Size() int { - return xxx_messageInfo_Game_Data.Size(m) +func (m *Help_ProxyData_Data) XXX_Size() int { + return xxx_messageInfo_Help_ProxyData_Data.Size(m) } -func (m *Game_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Game_Data.DiscardUnknown(m) +func (m *Help_ProxyData_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_ProxyData_Data.DiscardUnknown(m) } -var xxx_messageInfo_Game_Data proto.InternalMessageInfo +var xxx_messageInfo_Help_ProxyData_Data proto.InternalMessageInfo -func (m *Game_Data) GetId() int64 { +func (m *Help_ProxyData_Data) GetExpires() int32 { if m != nil { - return m.Id + return m.Expires } return 0 } -func (m *Game_Data) GetAccessHash() int64 { +func (m *Help_ProxyData_Data) GetPeer() *Peer { if m != nil { - return m.AccessHash + return m.Peer } - return 0 + return nil } -func (m *Game_Data) GetShortName() string { +func (m *Help_ProxyData_Data) GetChats() []*Chat { if m != nil { - return m.ShortName + return m.Chats } - return "" + return nil } -func (m *Game_Data) GetTitle() string { +func (m *Help_ProxyData_Data) GetUsers() []*User { if m != nil { - return m.Title + return m.Users } - return "" + return nil } -func (m *Game_Data) GetDescription() string { - if m != nil { - return m.Description - } - return "" +type Help_ProxyData struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Help_ProxyData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Game_Data) GetPhoto() *Photo { +func (m *Help_ProxyData) Reset() { *m = Help_ProxyData{} } +func (m *Help_ProxyData) String() string { return proto.CompactTextString(m) } +func (*Help_ProxyData) ProtoMessage() {} +func (*Help_ProxyData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{36} +} +func (m *Help_ProxyData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_ProxyData.Unmarshal(m, b) +} +func (m *Help_ProxyData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_ProxyData.Marshal(b, m, deterministic) +} +func (dst *Help_ProxyData) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_ProxyData.Merge(dst, src) +} +func (m *Help_ProxyData) XXX_Size() int { + return xxx_messageInfo_Help_ProxyData.Size(m) +} +func (m *Help_ProxyData) XXX_DiscardUnknown() { + xxx_messageInfo_Help_ProxyData.DiscardUnknown(m) +} + +var xxx_messageInfo_Help_ProxyData proto.InternalMessageInfo + +func (m *Help_ProxyData) GetConstructor() TLConstructor { if m != nil { - return m.Photo + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *Game_Data) GetDocument() *Document { +func (m *Help_ProxyData) GetData2() *Help_ProxyData_Data { if m != nil { - return m.Document + return m.Data2 } return nil } -type Game struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Game_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.proxyDataEmpty#e09e1fb8 expires:int = help.ProxyData; +type TLHelpProxyDataEmpty struct { + Data2 *Help_ProxyData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Game) Reset() { *m = Game{} } -func (m *Game) String() string { return proto.CompactTextString(m) } -func (*Game) ProtoMessage() {} -func (*Game) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{38} +func (m *TLHelpProxyDataEmpty) Reset() { *m = TLHelpProxyDataEmpty{} } +func (m *TLHelpProxyDataEmpty) String() string { return proto.CompactTextString(m) } +func (*TLHelpProxyDataEmpty) ProtoMessage() {} +func (*TLHelpProxyDataEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{37} } -func (m *Game) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Game.Unmarshal(m, b) +func (m *TLHelpProxyDataEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpProxyDataEmpty.Unmarshal(m, b) } -func (m *Game) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Game.Marshal(b, m, deterministic) +func (m *TLHelpProxyDataEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpProxyDataEmpty.Marshal(b, m, deterministic) } -func (dst *Game) XXX_Merge(src proto.Message) { - xxx_messageInfo_Game.Merge(dst, src) +func (dst *TLHelpProxyDataEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpProxyDataEmpty.Merge(dst, src) } -func (m *Game) XXX_Size() int { - return xxx_messageInfo_Game.Size(m) +func (m *TLHelpProxyDataEmpty) XXX_Size() int { + return xxx_messageInfo_TLHelpProxyDataEmpty.Size(m) } -func (m *Game) XXX_DiscardUnknown() { - xxx_messageInfo_Game.DiscardUnknown(m) +func (m *TLHelpProxyDataEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpProxyDataEmpty.DiscardUnknown(m) } -var xxx_messageInfo_Game proto.InternalMessageInfo - -func (m *Game) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLHelpProxyDataEmpty proto.InternalMessageInfo -func (m *Game) GetData2() *Game_Data { +func (m *TLHelpProxyDataEmpty) GetData2() *Help_ProxyData_Data { if m != nil { return m.Data2 } return nil } -// game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game; -type TLGame struct { - Data2 *Game_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.proxyDataPromo#2bf7ee23 expires:int peer:Peer chats:Vector users:Vector = help.ProxyData; +type TLHelpProxyDataPromo struct { + Data2 *Help_ProxyData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLGame) Reset() { *m = TLGame{} } -func (m *TLGame) String() string { return proto.CompactTextString(m) } -func (*TLGame) ProtoMessage() {} -func (*TLGame) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{39} +func (m *TLHelpProxyDataPromo) Reset() { *m = TLHelpProxyDataPromo{} } +func (m *TLHelpProxyDataPromo) String() string { return proto.CompactTextString(m) } +func (*TLHelpProxyDataPromo) ProtoMessage() {} +func (*TLHelpProxyDataPromo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{38} } -func (m *TLGame) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLGame.Unmarshal(m, b) +func (m *TLHelpProxyDataPromo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpProxyDataPromo.Unmarshal(m, b) } -func (m *TLGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLGame.Marshal(b, m, deterministic) +func (m *TLHelpProxyDataPromo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpProxyDataPromo.Marshal(b, m, deterministic) } -func (dst *TLGame) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLGame.Merge(dst, src) +func (dst *TLHelpProxyDataPromo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpProxyDataPromo.Merge(dst, src) } -func (m *TLGame) XXX_Size() int { - return xxx_messageInfo_TLGame.Size(m) +func (m *TLHelpProxyDataPromo) XXX_Size() int { + return xxx_messageInfo_TLHelpProxyDataPromo.Size(m) } -func (m *TLGame) XXX_DiscardUnknown() { - xxx_messageInfo_TLGame.DiscardUnknown(m) +func (m *TLHelpProxyDataPromo) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpProxyDataPromo.DiscardUnknown(m) } -var xxx_messageInfo_TLGame proto.InternalMessageInfo +var xxx_messageInfo_TLHelpProxyDataPromo proto.InternalMessageInfo -func (m *TLGame) GetData2() *Game_Data { +func (m *TLHelpProxyDataPromo) GetData2() *Help_ProxyData_Data { if m != nil { return m.Data2 } @@ -1841,134 +1945,206 @@ func (m *TLGame) GetData2() *Game_Data { } // ///////////////////////////////////////////////////////////////////////////// -// LabeledPrice <-- -// + TL_labeledPrice +// InputSecureFile <-- +// + TL_inputSecureFileUploaded +// + TL_inputSecureFile // -type LabeledPrice_Data struct { - Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` +type InputSecureFile_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Parts int32 `protobuf:"varint,2,opt,name=parts,proto3" json:"parts,omitempty"` + Md5Checksum string `protobuf:"bytes,3,opt,name=md5_checksum,json=md5Checksum,proto3" json:"md5_checksum,omitempty"` + FileHash []byte `protobuf:"bytes,4,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"` + Secret []byte `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` + AccessHash int64 `protobuf:"varint,6,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *LabeledPrice_Data) Reset() { *m = LabeledPrice_Data{} } -func (m *LabeledPrice_Data) String() string { return proto.CompactTextString(m) } -func (*LabeledPrice_Data) ProtoMessage() {} -func (*LabeledPrice_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{40} +func (m *InputSecureFile_Data) Reset() { *m = InputSecureFile_Data{} } +func (m *InputSecureFile_Data) String() string { return proto.CompactTextString(m) } +func (*InputSecureFile_Data) ProtoMessage() {} +func (*InputSecureFile_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{39} } -func (m *LabeledPrice_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LabeledPrice_Data.Unmarshal(m, b) +func (m *InputSecureFile_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputSecureFile_Data.Unmarshal(m, b) } -func (m *LabeledPrice_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LabeledPrice_Data.Marshal(b, m, deterministic) +func (m *InputSecureFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputSecureFile_Data.Marshal(b, m, deterministic) } -func (dst *LabeledPrice_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabeledPrice_Data.Merge(dst, src) +func (dst *InputSecureFile_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputSecureFile_Data.Merge(dst, src) } -func (m *LabeledPrice_Data) XXX_Size() int { - return xxx_messageInfo_LabeledPrice_Data.Size(m) +func (m *InputSecureFile_Data) XXX_Size() int { + return xxx_messageInfo_InputSecureFile_Data.Size(m) } -func (m *LabeledPrice_Data) XXX_DiscardUnknown() { - xxx_messageInfo_LabeledPrice_Data.DiscardUnknown(m) +func (m *InputSecureFile_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputSecureFile_Data.DiscardUnknown(m) } -var xxx_messageInfo_LabeledPrice_Data proto.InternalMessageInfo +var xxx_messageInfo_InputSecureFile_Data proto.InternalMessageInfo -func (m *LabeledPrice_Data) GetLabel() string { +func (m *InputSecureFile_Data) GetId() int64 { if m != nil { - return m.Label + return m.Id + } + return 0 +} + +func (m *InputSecureFile_Data) GetParts() int32 { + if m != nil { + return m.Parts + } + return 0 +} + +func (m *InputSecureFile_Data) GetMd5Checksum() string { + if m != nil { + return m.Md5Checksum } return "" } -func (m *LabeledPrice_Data) GetAmount() int64 { +func (m *InputSecureFile_Data) GetFileHash() []byte { if m != nil { - return m.Amount + return m.FileHash + } + return nil +} + +func (m *InputSecureFile_Data) GetSecret() []byte { + if m != nil { + return m.Secret + } + return nil +} + +func (m *InputSecureFile_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash } return 0 } -type LabeledPrice struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *LabeledPrice_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputSecureFile struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputSecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LabeledPrice) Reset() { *m = LabeledPrice{} } -func (m *LabeledPrice) String() string { return proto.CompactTextString(m) } -func (*LabeledPrice) ProtoMessage() {} -func (*LabeledPrice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{41} +func (m *InputSecureFile) Reset() { *m = InputSecureFile{} } +func (m *InputSecureFile) String() string { return proto.CompactTextString(m) } +func (*InputSecureFile) ProtoMessage() {} +func (*InputSecureFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{40} } -func (m *LabeledPrice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LabeledPrice.Unmarshal(m, b) +func (m *InputSecureFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputSecureFile.Unmarshal(m, b) } -func (m *LabeledPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LabeledPrice.Marshal(b, m, deterministic) +func (m *InputSecureFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputSecureFile.Marshal(b, m, deterministic) } -func (dst *LabeledPrice) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabeledPrice.Merge(dst, src) +func (dst *InputSecureFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputSecureFile.Merge(dst, src) } -func (m *LabeledPrice) XXX_Size() int { - return xxx_messageInfo_LabeledPrice.Size(m) +func (m *InputSecureFile) XXX_Size() int { + return xxx_messageInfo_InputSecureFile.Size(m) } -func (m *LabeledPrice) XXX_DiscardUnknown() { - xxx_messageInfo_LabeledPrice.DiscardUnknown(m) +func (m *InputSecureFile) XXX_DiscardUnknown() { + xxx_messageInfo_InputSecureFile.DiscardUnknown(m) } -var xxx_messageInfo_LabeledPrice proto.InternalMessageInfo +var xxx_messageInfo_InputSecureFile proto.InternalMessageInfo -func (m *LabeledPrice) GetConstructor() TLConstructor { +func (m *InputSecureFile) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *LabeledPrice) GetData2() *LabeledPrice_Data { +func (m *InputSecureFile) GetData2() *InputSecureFile_Data { if m != nil { return m.Data2 } return nil } -// labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; -type TLLabeledPrice struct { - Data2 *LabeledPrice_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile; +type TLInputSecureFileUploaded struct { + Data2 *InputSecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLLabeledPrice) Reset() { *m = TLLabeledPrice{} } -func (m *TLLabeledPrice) String() string { return proto.CompactTextString(m) } -func (*TLLabeledPrice) ProtoMessage() {} -func (*TLLabeledPrice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{42} +func (m *TLInputSecureFileUploaded) Reset() { *m = TLInputSecureFileUploaded{} } +func (m *TLInputSecureFileUploaded) String() string { return proto.CompactTextString(m) } +func (*TLInputSecureFileUploaded) ProtoMessage() {} +func (*TLInputSecureFileUploaded) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{41} } -func (m *TLLabeledPrice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLLabeledPrice.Unmarshal(m, b) +func (m *TLInputSecureFileUploaded) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputSecureFileUploaded.Unmarshal(m, b) } -func (m *TLLabeledPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLLabeledPrice.Marshal(b, m, deterministic) +func (m *TLInputSecureFileUploaded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputSecureFileUploaded.Marshal(b, m, deterministic) } -func (dst *TLLabeledPrice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLLabeledPrice.Merge(dst, src) +func (dst *TLInputSecureFileUploaded) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputSecureFileUploaded.Merge(dst, src) } -func (m *TLLabeledPrice) XXX_Size() int { - return xxx_messageInfo_TLLabeledPrice.Size(m) +func (m *TLInputSecureFileUploaded) XXX_Size() int { + return xxx_messageInfo_TLInputSecureFileUploaded.Size(m) } -func (m *TLLabeledPrice) XXX_DiscardUnknown() { - xxx_messageInfo_TLLabeledPrice.DiscardUnknown(m) +func (m *TLInputSecureFileUploaded) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputSecureFileUploaded.DiscardUnknown(m) } -var xxx_messageInfo_TLLabeledPrice proto.InternalMessageInfo +var xxx_messageInfo_TLInputSecureFileUploaded proto.InternalMessageInfo -func (m *TLLabeledPrice) GetData2() *LabeledPrice_Data { +func (m *TLInputSecureFileUploaded) GetData2() *InputSecureFile_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile; +type TLInputSecureFile struct { + Data2 *InputSecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputSecureFile) Reset() { *m = TLInputSecureFile{} } +func (m *TLInputSecureFile) String() string { return proto.CompactTextString(m) } +func (*TLInputSecureFile) ProtoMessage() {} +func (*TLInputSecureFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{42} +} +func (m *TLInputSecureFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputSecureFile.Unmarshal(m, b) +} +func (m *TLInputSecureFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputSecureFile.Marshal(b, m, deterministic) +} +func (dst *TLInputSecureFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputSecureFile.Merge(dst, src) +} +func (m *TLInputSecureFile) XXX_Size() int { + return xxx_messageInfo_TLInputSecureFile.Size(m) +} +func (m *TLInputSecureFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputSecureFile.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputSecureFile proto.InternalMessageInfo + +func (m *TLInputSecureFile) GetData2() *InputSecureFile_Data { if m != nil { return m.Data2 } @@ -1976,182 +2152,150 @@ func (m *TLLabeledPrice) GetData2() *LabeledPrice_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputCheckPasswordSRP <-- -// + TL_inputCheckPasswordEmpty -// + TL_inputCheckPasswordSRP +// SchemeMethod <-- +// + TL_schemeMethod // -type InputCheckPasswordSRP_Data struct { - SrpId int64 `protobuf:"varint,1,opt,name=srp_id,json=srpId,proto3" json:"srp_id,omitempty"` - A []byte `protobuf:"bytes,2,opt,name=A,proto3" json:"A,omitempty"` - M1 []byte `protobuf:"bytes,3,opt,name=M1,proto3" json:"M1,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SchemeMethod_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + Params []*SchemeParam `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputCheckPasswordSRP_Data) Reset() { *m = InputCheckPasswordSRP_Data{} } -func (m *InputCheckPasswordSRP_Data) String() string { return proto.CompactTextString(m) } -func (*InputCheckPasswordSRP_Data) ProtoMessage() {} -func (*InputCheckPasswordSRP_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{43} +func (m *SchemeMethod_Data) Reset() { *m = SchemeMethod_Data{} } +func (m *SchemeMethod_Data) String() string { return proto.CompactTextString(m) } +func (*SchemeMethod_Data) ProtoMessage() {} +func (*SchemeMethod_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{43} } -func (m *InputCheckPasswordSRP_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputCheckPasswordSRP_Data.Unmarshal(m, b) +func (m *SchemeMethod_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemeMethod_Data.Unmarshal(m, b) } -func (m *InputCheckPasswordSRP_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputCheckPasswordSRP_Data.Marshal(b, m, deterministic) +func (m *SchemeMethod_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemeMethod_Data.Marshal(b, m, deterministic) } -func (dst *InputCheckPasswordSRP_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputCheckPasswordSRP_Data.Merge(dst, src) +func (dst *SchemeMethod_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemeMethod_Data.Merge(dst, src) } -func (m *InputCheckPasswordSRP_Data) XXX_Size() int { - return xxx_messageInfo_InputCheckPasswordSRP_Data.Size(m) +func (m *SchemeMethod_Data) XXX_Size() int { + return xxx_messageInfo_SchemeMethod_Data.Size(m) } -func (m *InputCheckPasswordSRP_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputCheckPasswordSRP_Data.DiscardUnknown(m) +func (m *SchemeMethod_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SchemeMethod_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputCheckPasswordSRP_Data proto.InternalMessageInfo +var xxx_messageInfo_SchemeMethod_Data proto.InternalMessageInfo -func (m *InputCheckPasswordSRP_Data) GetSrpId() int64 { +func (m *SchemeMethod_Data) GetId() int32 { if m != nil { - return m.SrpId + return m.Id } return 0 } -func (m *InputCheckPasswordSRP_Data) GetA() []byte { +func (m *SchemeMethod_Data) GetMethod() string { if m != nil { - return m.A + return m.Method } - return nil + return "" } -func (m *InputCheckPasswordSRP_Data) GetM1() []byte { +func (m *SchemeMethod_Data) GetParams() []*SchemeParam { if m != nil { - return m.M1 + return m.Params } return nil } -type InputCheckPasswordSRP struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputCheckPasswordSRP_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *SchemeMethod_Data) GetType() string { + if m != nil { + return m.Type + } + return "" } -func (m *InputCheckPasswordSRP) Reset() { *m = InputCheckPasswordSRP{} } -func (m *InputCheckPasswordSRP) String() string { return proto.CompactTextString(m) } -func (*InputCheckPasswordSRP) ProtoMessage() {} -func (*InputCheckPasswordSRP) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{44} +type SchemeMethod struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SchemeMethod_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputCheckPasswordSRP) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputCheckPasswordSRP.Unmarshal(m, b) + +func (m *SchemeMethod) Reset() { *m = SchemeMethod{} } +func (m *SchemeMethod) String() string { return proto.CompactTextString(m) } +func (*SchemeMethod) ProtoMessage() {} +func (*SchemeMethod) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{44} } -func (m *InputCheckPasswordSRP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputCheckPasswordSRP.Marshal(b, m, deterministic) +func (m *SchemeMethod) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemeMethod.Unmarshal(m, b) } -func (dst *InputCheckPasswordSRP) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputCheckPasswordSRP.Merge(dst, src) +func (m *SchemeMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemeMethod.Marshal(b, m, deterministic) } -func (m *InputCheckPasswordSRP) XXX_Size() int { - return xxx_messageInfo_InputCheckPasswordSRP.Size(m) +func (dst *SchemeMethod) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemeMethod.Merge(dst, src) } -func (m *InputCheckPasswordSRP) XXX_DiscardUnknown() { - xxx_messageInfo_InputCheckPasswordSRP.DiscardUnknown(m) +func (m *SchemeMethod) XXX_Size() int { + return xxx_messageInfo_SchemeMethod.Size(m) +} +func (m *SchemeMethod) XXX_DiscardUnknown() { + xxx_messageInfo_SchemeMethod.DiscardUnknown(m) } -var xxx_messageInfo_InputCheckPasswordSRP proto.InternalMessageInfo +var xxx_messageInfo_SchemeMethod proto.InternalMessageInfo -func (m *InputCheckPasswordSRP) GetConstructor() TLConstructor { +func (m *SchemeMethod) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputCheckPasswordSRP) GetData2() *InputCheckPasswordSRP_Data { +func (m *SchemeMethod) GetData2() *SchemeMethod_Data { if m != nil { return m.Data2 } return nil } -// inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP; -type TLInputCheckPasswordEmpty struct { - Data2 *InputCheckPasswordSRP_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// schemeMethod#479357c0 id:int method:string params:Vector type:string = SchemeMethod; +type TLSchemeMethod struct { + Data2 *SchemeMethod_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputCheckPasswordEmpty) Reset() { *m = TLInputCheckPasswordEmpty{} } -func (m *TLInputCheckPasswordEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputCheckPasswordEmpty) ProtoMessage() {} -func (*TLInputCheckPasswordEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{45} +func (m *TLSchemeMethod) Reset() { *m = TLSchemeMethod{} } +func (m *TLSchemeMethod) String() string { return proto.CompactTextString(m) } +func (*TLSchemeMethod) ProtoMessage() {} +func (*TLSchemeMethod) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{45} } -func (m *TLInputCheckPasswordEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputCheckPasswordEmpty.Unmarshal(m, b) +func (m *TLSchemeMethod) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSchemeMethod.Unmarshal(m, b) } -func (m *TLInputCheckPasswordEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputCheckPasswordEmpty.Marshal(b, m, deterministic) +func (m *TLSchemeMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSchemeMethod.Marshal(b, m, deterministic) } -func (dst *TLInputCheckPasswordEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputCheckPasswordEmpty.Merge(dst, src) +func (dst *TLSchemeMethod) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSchemeMethod.Merge(dst, src) } -func (m *TLInputCheckPasswordEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputCheckPasswordEmpty.Size(m) -} -func (m *TLInputCheckPasswordEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputCheckPasswordEmpty.DiscardUnknown(m) -} - -var xxx_messageInfo_TLInputCheckPasswordEmpty proto.InternalMessageInfo - -func (m *TLInputCheckPasswordEmpty) GetData2() *InputCheckPasswordSRP_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP; -type TLInputCheckPasswordSRP struct { - Data2 *InputCheckPasswordSRP_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputCheckPasswordSRP) Reset() { *m = TLInputCheckPasswordSRP{} } -func (m *TLInputCheckPasswordSRP) String() string { return proto.CompactTextString(m) } -func (*TLInputCheckPasswordSRP) ProtoMessage() {} -func (*TLInputCheckPasswordSRP) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{46} -} -func (m *TLInputCheckPasswordSRP) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputCheckPasswordSRP.Unmarshal(m, b) -} -func (m *TLInputCheckPasswordSRP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputCheckPasswordSRP.Marshal(b, m, deterministic) -} -func (dst *TLInputCheckPasswordSRP) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputCheckPasswordSRP.Merge(dst, src) -} -func (m *TLInputCheckPasswordSRP) XXX_Size() int { - return xxx_messageInfo_TLInputCheckPasswordSRP.Size(m) +func (m *TLSchemeMethod) XXX_Size() int { + return xxx_messageInfo_TLSchemeMethod.Size(m) } -func (m *TLInputCheckPasswordSRP) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputCheckPasswordSRP.DiscardUnknown(m) +func (m *TLSchemeMethod) XXX_DiscardUnknown() { + xxx_messageInfo_TLSchemeMethod.DiscardUnknown(m) } -var xxx_messageInfo_TLInputCheckPasswordSRP proto.InternalMessageInfo +var xxx_messageInfo_TLSchemeMethod proto.InternalMessageInfo -func (m *TLInputCheckPasswordSRP) GetData2() *InputCheckPasswordSRP_Data { +func (m *TLSchemeMethod) GetData2() *SchemeMethod_Data { if m != nil { return m.Data2 } @@ -2159,198 +2303,150 @@ func (m *TLInputCheckPasswordSRP) GetData2() *InputCheckPasswordSRP_Data { } // ///////////////////////////////////////////////////////////////////////////// -// WebDocument <-- -// + TL_webDocument -// + TL_webDocumentNoProxy +// PeerNotifySettings <-- +// + TL_peerNotifySettings // -type WebDocument_Data struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` - MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - Attributes []*DocumentAttribute `protobuf:"bytes,5,rep,name=attributes,proto3" json:"attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PeerNotifySettings_Data struct { + ShowPreviews *Bool `protobuf:"bytes,1,opt,name=show_previews,json=showPreviews,proto3" json:"show_previews,omitempty"` + Silent *Bool `protobuf:"bytes,2,opt,name=silent,proto3" json:"silent,omitempty"` + MuteUntil int32 `protobuf:"varint,3,opt,name=mute_until,json=muteUntil,proto3" json:"mute_until,omitempty"` + Sound string `protobuf:"bytes,4,opt,name=sound,proto3" json:"sound,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WebDocument_Data) Reset() { *m = WebDocument_Data{} } -func (m *WebDocument_Data) String() string { return proto.CompactTextString(m) } -func (*WebDocument_Data) ProtoMessage() {} -func (*WebDocument_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{47} +func (m *PeerNotifySettings_Data) Reset() { *m = PeerNotifySettings_Data{} } +func (m *PeerNotifySettings_Data) String() string { return proto.CompactTextString(m) } +func (*PeerNotifySettings_Data) ProtoMessage() {} +func (*PeerNotifySettings_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{46} } -func (m *WebDocument_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WebDocument_Data.Unmarshal(m, b) +func (m *PeerNotifySettings_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PeerNotifySettings_Data.Unmarshal(m, b) } -func (m *WebDocument_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WebDocument_Data.Marshal(b, m, deterministic) +func (m *PeerNotifySettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PeerNotifySettings_Data.Marshal(b, m, deterministic) } -func (dst *WebDocument_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebDocument_Data.Merge(dst, src) +func (dst *PeerNotifySettings_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerNotifySettings_Data.Merge(dst, src) } -func (m *WebDocument_Data) XXX_Size() int { - return xxx_messageInfo_WebDocument_Data.Size(m) +func (m *PeerNotifySettings_Data) XXX_Size() int { + return xxx_messageInfo_PeerNotifySettings_Data.Size(m) } -func (m *WebDocument_Data) XXX_DiscardUnknown() { - xxx_messageInfo_WebDocument_Data.DiscardUnknown(m) +func (m *PeerNotifySettings_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PeerNotifySettings_Data.DiscardUnknown(m) } -var xxx_messageInfo_WebDocument_Data proto.InternalMessageInfo +var xxx_messageInfo_PeerNotifySettings_Data proto.InternalMessageInfo -func (m *WebDocument_Data) GetUrl() string { +func (m *PeerNotifySettings_Data) GetShowPreviews() *Bool { if m != nil { - return m.Url + return m.ShowPreviews } - return "" + return nil } -func (m *WebDocument_Data) GetAccessHash() int64 { +func (m *PeerNotifySettings_Data) GetSilent() *Bool { if m != nil { - return m.AccessHash + return m.Silent } - return 0 + return nil } -func (m *WebDocument_Data) GetSize() int32 { +func (m *PeerNotifySettings_Data) GetMuteUntil() int32 { if m != nil { - return m.Size + return m.MuteUntil } return 0 } -func (m *WebDocument_Data) GetMimeType() string { +func (m *PeerNotifySettings_Data) GetSound() string { if m != nil { - return m.MimeType + return m.Sound } return "" } -func (m *WebDocument_Data) GetAttributes() []*DocumentAttribute { - if m != nil { - return m.Attributes - } - return nil -} - -type WebDocument struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *WebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PeerNotifySettings struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PeerNotifySettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WebDocument) Reset() { *m = WebDocument{} } -func (m *WebDocument) String() string { return proto.CompactTextString(m) } -func (*WebDocument) ProtoMessage() {} -func (*WebDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{48} +func (m *PeerNotifySettings) Reset() { *m = PeerNotifySettings{} } +func (m *PeerNotifySettings) String() string { return proto.CompactTextString(m) } +func (*PeerNotifySettings) ProtoMessage() {} +func (*PeerNotifySettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{47} } -func (m *WebDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WebDocument.Unmarshal(m, b) +func (m *PeerNotifySettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PeerNotifySettings.Unmarshal(m, b) } -func (m *WebDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WebDocument.Marshal(b, m, deterministic) +func (m *PeerNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PeerNotifySettings.Marshal(b, m, deterministic) } -func (dst *WebDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebDocument.Merge(dst, src) +func (dst *PeerNotifySettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerNotifySettings.Merge(dst, src) } -func (m *WebDocument) XXX_Size() int { - return xxx_messageInfo_WebDocument.Size(m) +func (m *PeerNotifySettings) XXX_Size() int { + return xxx_messageInfo_PeerNotifySettings.Size(m) } -func (m *WebDocument) XXX_DiscardUnknown() { - xxx_messageInfo_WebDocument.DiscardUnknown(m) +func (m *PeerNotifySettings) XXX_DiscardUnknown() { + xxx_messageInfo_PeerNotifySettings.DiscardUnknown(m) } -var xxx_messageInfo_WebDocument proto.InternalMessageInfo +var xxx_messageInfo_PeerNotifySettings proto.InternalMessageInfo -func (m *WebDocument) GetConstructor() TLConstructor { +func (m *PeerNotifySettings) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *WebDocument) GetData2() *WebDocument_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument; -type TLWebDocument struct { - Data2 *WebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLWebDocument) Reset() { *m = TLWebDocument{} } -func (m *TLWebDocument) String() string { return proto.CompactTextString(m) } -func (*TLWebDocument) ProtoMessage() {} -func (*TLWebDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{49} -} -func (m *TLWebDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLWebDocument.Unmarshal(m, b) -} -func (m *TLWebDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLWebDocument.Marshal(b, m, deterministic) -} -func (dst *TLWebDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLWebDocument.Merge(dst, src) -} -func (m *TLWebDocument) XXX_Size() int { - return xxx_messageInfo_TLWebDocument.Size(m) -} -func (m *TLWebDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TLWebDocument.DiscardUnknown(m) -} - -var xxx_messageInfo_TLWebDocument proto.InternalMessageInfo - -func (m *TLWebDocument) GetData2() *WebDocument_Data { +func (m *PeerNotifySettings) GetData2() *PeerNotifySettings_Data { if m != nil { return m.Data2 } return nil } -// webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument; -type TLWebDocumentNoProxy struct { - Data2 *WebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings; +type TLPeerNotifySettings struct { + Data2 *PeerNotifySettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLWebDocumentNoProxy) Reset() { *m = TLWebDocumentNoProxy{} } -func (m *TLWebDocumentNoProxy) String() string { return proto.CompactTextString(m) } -func (*TLWebDocumentNoProxy) ProtoMessage() {} -func (*TLWebDocumentNoProxy) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{50} +func (m *TLPeerNotifySettings) Reset() { *m = TLPeerNotifySettings{} } +func (m *TLPeerNotifySettings) String() string { return proto.CompactTextString(m) } +func (*TLPeerNotifySettings) ProtoMessage() {} +func (*TLPeerNotifySettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{48} } -func (m *TLWebDocumentNoProxy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLWebDocumentNoProxy.Unmarshal(m, b) +func (m *TLPeerNotifySettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPeerNotifySettings.Unmarshal(m, b) } -func (m *TLWebDocumentNoProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLWebDocumentNoProxy.Marshal(b, m, deterministic) +func (m *TLPeerNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPeerNotifySettings.Marshal(b, m, deterministic) } -func (dst *TLWebDocumentNoProxy) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLWebDocumentNoProxy.Merge(dst, src) +func (dst *TLPeerNotifySettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPeerNotifySettings.Merge(dst, src) } -func (m *TLWebDocumentNoProxy) XXX_Size() int { - return xxx_messageInfo_TLWebDocumentNoProxy.Size(m) +func (m *TLPeerNotifySettings) XXX_Size() int { + return xxx_messageInfo_TLPeerNotifySettings.Size(m) } -func (m *TLWebDocumentNoProxy) XXX_DiscardUnknown() { - xxx_messageInfo_TLWebDocumentNoProxy.DiscardUnknown(m) +func (m *TLPeerNotifySettings) XXX_DiscardUnknown() { + xxx_messageInfo_TLPeerNotifySettings.DiscardUnknown(m) } -var xxx_messageInfo_TLWebDocumentNoProxy proto.InternalMessageInfo +var xxx_messageInfo_TLPeerNotifySettings proto.InternalMessageInfo -func (m *TLWebDocumentNoProxy) GetData2() *WebDocument_Data { +func (m *TLPeerNotifySettings) GetData2() *PeerNotifySettings_Data { if m != nil { return m.Data2 } @@ -2358,468 +2454,444 @@ func (m *TLWebDocumentNoProxy) GetData2() *WebDocument_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputUser <-- -// + TL_inputUserEmpty -// + TL_inputUserSelf -// + TL_inputUser +// InputEncryptedChat <-- +// + TL_inputEncryptedChat // -type InputUser_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +type InputEncryptedChat_Data struct { + ChatId int32 `protobuf:"varint,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *InputUser_Data) Reset() { *m = InputUser_Data{} } -func (m *InputUser_Data) String() string { return proto.CompactTextString(m) } -func (*InputUser_Data) ProtoMessage() {} -func (*InputUser_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{51} +func (m *InputEncryptedChat_Data) Reset() { *m = InputEncryptedChat_Data{} } +func (m *InputEncryptedChat_Data) String() string { return proto.CompactTextString(m) } +func (*InputEncryptedChat_Data) ProtoMessage() {} +func (*InputEncryptedChat_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{49} } -func (m *InputUser_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputUser_Data.Unmarshal(m, b) +func (m *InputEncryptedChat_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputEncryptedChat_Data.Unmarshal(m, b) } -func (m *InputUser_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputUser_Data.Marshal(b, m, deterministic) +func (m *InputEncryptedChat_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputEncryptedChat_Data.Marshal(b, m, deterministic) } -func (dst *InputUser_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputUser_Data.Merge(dst, src) +func (dst *InputEncryptedChat_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputEncryptedChat_Data.Merge(dst, src) } -func (m *InputUser_Data) XXX_Size() int { - return xxx_messageInfo_InputUser_Data.Size(m) +func (m *InputEncryptedChat_Data) XXX_Size() int { + return xxx_messageInfo_InputEncryptedChat_Data.Size(m) } -func (m *InputUser_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputUser_Data.DiscardUnknown(m) +func (m *InputEncryptedChat_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputEncryptedChat_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputUser_Data proto.InternalMessageInfo +var xxx_messageInfo_InputEncryptedChat_Data proto.InternalMessageInfo -func (m *InputUser_Data) GetUserId() int32 { +func (m *InputEncryptedChat_Data) GetChatId() int32 { if m != nil { - return m.UserId + return m.ChatId } return 0 } -func (m *InputUser_Data) GetAccessHash() int64 { +func (m *InputEncryptedChat_Data) GetAccessHash() int64 { if m != nil { return m.AccessHash } return 0 } -type InputUser struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputUser_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputEncryptedChat struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputEncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputUser) Reset() { *m = InputUser{} } -func (m *InputUser) String() string { return proto.CompactTextString(m) } -func (*InputUser) ProtoMessage() {} -func (*InputUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{52} +func (m *InputEncryptedChat) Reset() { *m = InputEncryptedChat{} } +func (m *InputEncryptedChat) String() string { return proto.CompactTextString(m) } +func (*InputEncryptedChat) ProtoMessage() {} +func (*InputEncryptedChat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{50} } -func (m *InputUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputUser.Unmarshal(m, b) +func (m *InputEncryptedChat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputEncryptedChat.Unmarshal(m, b) } -func (m *InputUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputUser.Marshal(b, m, deterministic) +func (m *InputEncryptedChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputEncryptedChat.Marshal(b, m, deterministic) } -func (dst *InputUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputUser.Merge(dst, src) +func (dst *InputEncryptedChat) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputEncryptedChat.Merge(dst, src) } -func (m *InputUser) XXX_Size() int { - return xxx_messageInfo_InputUser.Size(m) +func (m *InputEncryptedChat) XXX_Size() int { + return xxx_messageInfo_InputEncryptedChat.Size(m) } -func (m *InputUser) XXX_DiscardUnknown() { - xxx_messageInfo_InputUser.DiscardUnknown(m) +func (m *InputEncryptedChat) XXX_DiscardUnknown() { + xxx_messageInfo_InputEncryptedChat.DiscardUnknown(m) } -var xxx_messageInfo_InputUser proto.InternalMessageInfo +var xxx_messageInfo_InputEncryptedChat proto.InternalMessageInfo -func (m *InputUser) GetConstructor() TLConstructor { +func (m *InputEncryptedChat) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputUser) GetData2() *InputUser_Data { +func (m *InputEncryptedChat) GetData2() *InputEncryptedChat_Data { if m != nil { return m.Data2 } return nil } -// inputUserEmpty#b98886cf = InputUser; -type TLInputUserEmpty struct { - Data2 *InputUser_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat; +type TLInputEncryptedChat struct { + Data2 *InputEncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputUserEmpty) Reset() { *m = TLInputUserEmpty{} } -func (m *TLInputUserEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputUserEmpty) ProtoMessage() {} -func (*TLInputUserEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{53} +func (m *TLInputEncryptedChat) Reset() { *m = TLInputEncryptedChat{} } +func (m *TLInputEncryptedChat) String() string { return proto.CompactTextString(m) } +func (*TLInputEncryptedChat) ProtoMessage() {} +func (*TLInputEncryptedChat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{51} } -func (m *TLInputUserEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputUserEmpty.Unmarshal(m, b) +func (m *TLInputEncryptedChat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputEncryptedChat.Unmarshal(m, b) } -func (m *TLInputUserEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputUserEmpty.Marshal(b, m, deterministic) +func (m *TLInputEncryptedChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputEncryptedChat.Marshal(b, m, deterministic) } -func (dst *TLInputUserEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputUserEmpty.Merge(dst, src) +func (dst *TLInputEncryptedChat) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputEncryptedChat.Merge(dst, src) } -func (m *TLInputUserEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputUserEmpty.Size(m) +func (m *TLInputEncryptedChat) XXX_Size() int { + return xxx_messageInfo_TLInputEncryptedChat.Size(m) } -func (m *TLInputUserEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputUserEmpty.DiscardUnknown(m) +func (m *TLInputEncryptedChat) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputEncryptedChat.DiscardUnknown(m) } -var xxx_messageInfo_TLInputUserEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLInputEncryptedChat proto.InternalMessageInfo -func (m *TLInputUserEmpty) GetData2() *InputUser_Data { +func (m *TLInputEncryptedChat) GetData2() *InputEncryptedChat_Data { if m != nil { return m.Data2 } return nil } -// inputUserSelf#f7c1b13f = InputUser; -type TLInputUserSelf struct { - Data2 *InputUser_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// SchemeParam <-- +// + TL_schemeParam +// +type SchemeParam_Data struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputUserSelf) Reset() { *m = TLInputUserSelf{} } -func (m *TLInputUserSelf) String() string { return proto.CompactTextString(m) } -func (*TLInputUserSelf) ProtoMessage() {} -func (*TLInputUserSelf) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{54} +func (m *SchemeParam_Data) Reset() { *m = SchemeParam_Data{} } +func (m *SchemeParam_Data) String() string { return proto.CompactTextString(m) } +func (*SchemeParam_Data) ProtoMessage() {} +func (*SchemeParam_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{52} } -func (m *TLInputUserSelf) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputUserSelf.Unmarshal(m, b) +func (m *SchemeParam_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemeParam_Data.Unmarshal(m, b) } -func (m *TLInputUserSelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputUserSelf.Marshal(b, m, deterministic) +func (m *SchemeParam_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemeParam_Data.Marshal(b, m, deterministic) } -func (dst *TLInputUserSelf) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputUserSelf.Merge(dst, src) +func (dst *SchemeParam_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemeParam_Data.Merge(dst, src) } -func (m *TLInputUserSelf) XXX_Size() int { - return xxx_messageInfo_TLInputUserSelf.Size(m) +func (m *SchemeParam_Data) XXX_Size() int { + return xxx_messageInfo_SchemeParam_Data.Size(m) } -func (m *TLInputUserSelf) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputUserSelf.DiscardUnknown(m) +func (m *SchemeParam_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SchemeParam_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputUserSelf proto.InternalMessageInfo +var xxx_messageInfo_SchemeParam_Data proto.InternalMessageInfo -func (m *TLInputUserSelf) GetData2() *InputUser_Data { +func (m *SchemeParam_Data) GetName() string { if m != nil { - return m.Data2 + return m.Name } - return nil + return "" } -// inputUser#d8292816 user_id:int access_hash:long = InputUser; -type TLInputUser struct { - Data2 *InputUser_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *SchemeParam_Data) GetType() string { + if m != nil { + return m.Type + } + return "" } -func (m *TLInputUser) Reset() { *m = TLInputUser{} } -func (m *TLInputUser) String() string { return proto.CompactTextString(m) } -func (*TLInputUser) ProtoMessage() {} -func (*TLInputUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{55} +type SchemeParam struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SchemeParam_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputUser.Unmarshal(m, b) + +func (m *SchemeParam) Reset() { *m = SchemeParam{} } +func (m *SchemeParam) String() string { return proto.CompactTextString(m) } +func (*SchemeParam) ProtoMessage() {} +func (*SchemeParam) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{53} } -func (m *TLInputUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputUser.Marshal(b, m, deterministic) +func (m *SchemeParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemeParam.Unmarshal(m, b) } -func (dst *TLInputUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputUser.Merge(dst, src) +func (m *SchemeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemeParam.Marshal(b, m, deterministic) } -func (m *TLInputUser) XXX_Size() int { - return xxx_messageInfo_TLInputUser.Size(m) +func (dst *SchemeParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemeParam.Merge(dst, src) } -func (m *TLInputUser) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputUser.DiscardUnknown(m) +func (m *SchemeParam) XXX_Size() int { + return xxx_messageInfo_SchemeParam.Size(m) +} +func (m *SchemeParam) XXX_DiscardUnknown() { + xxx_messageInfo_SchemeParam.DiscardUnknown(m) } -var xxx_messageInfo_TLInputUser proto.InternalMessageInfo +var xxx_messageInfo_SchemeParam proto.InternalMessageInfo -func (m *TLInputUser) GetData2() *InputUser_Data { +func (m *SchemeParam) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *SchemeParam) GetData2() *SchemeParam_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// PeerSettings <-- -// + TL_peerSettings -// -type PeerSettings_Data struct { - ReportSpam bool `protobuf:"varint,1,opt,name=report_spam,json=reportSpam,proto3" json:"report_spam,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// schemeParam#21b59bef name:string type:string = SchemeParam; +type TLSchemeParam struct { + Data2 *SchemeParam_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} -func (m *PeerSettings_Data) Reset() { *m = PeerSettings_Data{} } -func (m *PeerSettings_Data) String() string { return proto.CompactTextString(m) } -func (*PeerSettings_Data) ProtoMessage() {} -func (*PeerSettings_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{56} +func (m *TLSchemeParam) Reset() { *m = TLSchemeParam{} } +func (m *TLSchemeParam) String() string { return proto.CompactTextString(m) } +func (*TLSchemeParam) ProtoMessage() {} +func (*TLSchemeParam) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{54} } -func (m *PeerSettings_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PeerSettings_Data.Unmarshal(m, b) +func (m *TLSchemeParam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSchemeParam.Unmarshal(m, b) } -func (m *PeerSettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PeerSettings_Data.Marshal(b, m, deterministic) +func (m *TLSchemeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSchemeParam.Marshal(b, m, deterministic) } -func (dst *PeerSettings_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerSettings_Data.Merge(dst, src) +func (dst *TLSchemeParam) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSchemeParam.Merge(dst, src) } -func (m *PeerSettings_Data) XXX_Size() int { - return xxx_messageInfo_PeerSettings_Data.Size(m) +func (m *TLSchemeParam) XXX_Size() int { + return xxx_messageInfo_TLSchemeParam.Size(m) } -func (m *PeerSettings_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PeerSettings_Data.DiscardUnknown(m) +func (m *TLSchemeParam) XXX_DiscardUnknown() { + xxx_messageInfo_TLSchemeParam.DiscardUnknown(m) } -var xxx_messageInfo_PeerSettings_Data proto.InternalMessageInfo +var xxx_messageInfo_TLSchemeParam proto.InternalMessageInfo -func (m *PeerSettings_Data) GetReportSpam() bool { +func (m *TLSchemeParam) GetData2() *SchemeParam_Data { if m != nil { - return m.ReportSpam + return m.Data2 } - return false + return nil } -type PeerSettings struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PeerSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// MessageFwdHeader <-- +// + TL_messageFwdHeader +// +type MessageFwdHeader_Data struct { + FromId int32 `protobuf:"varint,1,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` + Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` + ChannelId int32 `protobuf:"varint,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + ChannelPost int32 `protobuf:"varint,4,opt,name=channel_post,json=channelPost,proto3" json:"channel_post,omitempty"` + PostAuthor string `protobuf:"bytes,5,opt,name=post_author,json=postAuthor,proto3" json:"post_author,omitempty"` + SavedFromPeer *Peer `protobuf:"bytes,6,opt,name=saved_from_peer,json=savedFromPeer,proto3" json:"saved_from_peer,omitempty"` + SavedFromMsgId int32 `protobuf:"varint,7,opt,name=saved_from_msg_id,json=savedFromMsgId,proto3" json:"saved_from_msg_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PeerSettings) Reset() { *m = PeerSettings{} } -func (m *PeerSettings) String() string { return proto.CompactTextString(m) } -func (*PeerSettings) ProtoMessage() {} -func (*PeerSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{57} +func (m *MessageFwdHeader_Data) Reset() { *m = MessageFwdHeader_Data{} } +func (m *MessageFwdHeader_Data) String() string { return proto.CompactTextString(m) } +func (*MessageFwdHeader_Data) ProtoMessage() {} +func (*MessageFwdHeader_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{55} } -func (m *PeerSettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PeerSettings.Unmarshal(m, b) +func (m *MessageFwdHeader_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageFwdHeader_Data.Unmarshal(m, b) } -func (m *PeerSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PeerSettings.Marshal(b, m, deterministic) +func (m *MessageFwdHeader_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageFwdHeader_Data.Marshal(b, m, deterministic) } -func (dst *PeerSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerSettings.Merge(dst, src) +func (dst *MessageFwdHeader_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageFwdHeader_Data.Merge(dst, src) } -func (m *PeerSettings) XXX_Size() int { - return xxx_messageInfo_PeerSettings.Size(m) +func (m *MessageFwdHeader_Data) XXX_Size() int { + return xxx_messageInfo_MessageFwdHeader_Data.Size(m) } -func (m *PeerSettings) XXX_DiscardUnknown() { - xxx_messageInfo_PeerSettings.DiscardUnknown(m) +func (m *MessageFwdHeader_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MessageFwdHeader_Data.DiscardUnknown(m) } -var xxx_messageInfo_PeerSettings proto.InternalMessageInfo +var xxx_messageInfo_MessageFwdHeader_Data proto.InternalMessageInfo -func (m *PeerSettings) GetConstructor() TLConstructor { +func (m *MessageFwdHeader_Data) GetFromId() int32 { if m != nil { - return m.Constructor + return m.FromId } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *PeerSettings) GetData2() *PeerSettings_Data { +func (m *MessageFwdHeader_Data) GetDate() int32 { if m != nil { - return m.Data2 + return m.Date } - return nil -} - -// peerSettings#818426cd flags:# report_spam:flags.0?true = PeerSettings; -type TLPeerSettings struct { - Data2 *PeerSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return 0 } -func (m *TLPeerSettings) Reset() { *m = TLPeerSettings{} } -func (m *TLPeerSettings) String() string { return proto.CompactTextString(m) } -func (*TLPeerSettings) ProtoMessage() {} -func (*TLPeerSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{58} -} -func (m *TLPeerSettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPeerSettings.Unmarshal(m, b) -} -func (m *TLPeerSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPeerSettings.Marshal(b, m, deterministic) -} -func (dst *TLPeerSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPeerSettings.Merge(dst, src) -} -func (m *TLPeerSettings) XXX_Size() int { - return xxx_messageInfo_TLPeerSettings.Size(m) -} -func (m *TLPeerSettings) XXX_DiscardUnknown() { - xxx_messageInfo_TLPeerSettings.DiscardUnknown(m) +func (m *MessageFwdHeader_Data) GetChannelId() int32 { + if m != nil { + return m.ChannelId + } + return 0 } -var xxx_messageInfo_TLPeerSettings proto.InternalMessageInfo - -func (m *TLPeerSettings) GetData2() *PeerSettings_Data { +func (m *MessageFwdHeader_Data) GetChannelPost() int32 { if m != nil { - return m.Data2 + return m.ChannelPost } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// InputDialogPeer <-- -// + TL_inputDialogPeer -// -type InputDialogPeer_Data struct { - Peer *InputPeer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MessageFwdHeader_Data) GetPostAuthor() string { + if m != nil { + return m.PostAuthor + } + return "" } -func (m *InputDialogPeer_Data) Reset() { *m = InputDialogPeer_Data{} } -func (m *InputDialogPeer_Data) String() string { return proto.CompactTextString(m) } -func (*InputDialogPeer_Data) ProtoMessage() {} -func (*InputDialogPeer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{59} -} -func (m *InputDialogPeer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputDialogPeer_Data.Unmarshal(m, b) -} -func (m *InputDialogPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputDialogPeer_Data.Marshal(b, m, deterministic) -} -func (dst *InputDialogPeer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputDialogPeer_Data.Merge(dst, src) -} -func (m *InputDialogPeer_Data) XXX_Size() int { - return xxx_messageInfo_InputDialogPeer_Data.Size(m) -} -func (m *InputDialogPeer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputDialogPeer_Data.DiscardUnknown(m) +func (m *MessageFwdHeader_Data) GetSavedFromPeer() *Peer { + if m != nil { + return m.SavedFromPeer + } + return nil } -var xxx_messageInfo_InputDialogPeer_Data proto.InternalMessageInfo - -func (m *InputDialogPeer_Data) GetPeer() *InputPeer { +func (m *MessageFwdHeader_Data) GetSavedFromMsgId() int32 { if m != nil { - return m.Peer + return m.SavedFromMsgId } - return nil + return 0 } -type InputDialogPeer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputDialogPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MessageFwdHeader struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MessageFwdHeader_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputDialogPeer) Reset() { *m = InputDialogPeer{} } -func (m *InputDialogPeer) String() string { return proto.CompactTextString(m) } -func (*InputDialogPeer) ProtoMessage() {} -func (*InputDialogPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{60} +func (m *MessageFwdHeader) Reset() { *m = MessageFwdHeader{} } +func (m *MessageFwdHeader) String() string { return proto.CompactTextString(m) } +func (*MessageFwdHeader) ProtoMessage() {} +func (*MessageFwdHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{56} } -func (m *InputDialogPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputDialogPeer.Unmarshal(m, b) +func (m *MessageFwdHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageFwdHeader.Unmarshal(m, b) } -func (m *InputDialogPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputDialogPeer.Marshal(b, m, deterministic) +func (m *MessageFwdHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageFwdHeader.Marshal(b, m, deterministic) } -func (dst *InputDialogPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputDialogPeer.Merge(dst, src) +func (dst *MessageFwdHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageFwdHeader.Merge(dst, src) } -func (m *InputDialogPeer) XXX_Size() int { - return xxx_messageInfo_InputDialogPeer.Size(m) +func (m *MessageFwdHeader) XXX_Size() int { + return xxx_messageInfo_MessageFwdHeader.Size(m) } -func (m *InputDialogPeer) XXX_DiscardUnknown() { - xxx_messageInfo_InputDialogPeer.DiscardUnknown(m) +func (m *MessageFwdHeader) XXX_DiscardUnknown() { + xxx_messageInfo_MessageFwdHeader.DiscardUnknown(m) } -var xxx_messageInfo_InputDialogPeer proto.InternalMessageInfo +var xxx_messageInfo_MessageFwdHeader proto.InternalMessageInfo -func (m *InputDialogPeer) GetConstructor() TLConstructor { +func (m *MessageFwdHeader) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputDialogPeer) GetData2() *InputDialogPeer_Data { +func (m *MessageFwdHeader) GetData2() *MessageFwdHeader_Data { if m != nil { return m.Data2 } return nil } -// inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer; -type TLInputDialogPeer struct { - Data2 *InputDialogPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageFwdHeader#559ebe6d flags:# from_id:flags.0?int date:int channel_id:flags.1?int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int = MessageFwdHeader; +type TLMessageFwdHeader struct { + Data2 *MessageFwdHeader_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputDialogPeer) Reset() { *m = TLInputDialogPeer{} } -func (m *TLInputDialogPeer) String() string { return proto.CompactTextString(m) } -func (*TLInputDialogPeer) ProtoMessage() {} -func (*TLInputDialogPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{61} +func (m *TLMessageFwdHeader) Reset() { *m = TLMessageFwdHeader{} } +func (m *TLMessageFwdHeader) String() string { return proto.CompactTextString(m) } +func (*TLMessageFwdHeader) ProtoMessage() {} +func (*TLMessageFwdHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{57} } -func (m *TLInputDialogPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputDialogPeer.Unmarshal(m, b) +func (m *TLMessageFwdHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageFwdHeader.Unmarshal(m, b) } -func (m *TLInputDialogPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputDialogPeer.Marshal(b, m, deterministic) +func (m *TLMessageFwdHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageFwdHeader.Marshal(b, m, deterministic) } -func (dst *TLInputDialogPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputDialogPeer.Merge(dst, src) +func (dst *TLMessageFwdHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageFwdHeader.Merge(dst, src) } -func (m *TLInputDialogPeer) XXX_Size() int { - return xxx_messageInfo_TLInputDialogPeer.Size(m) +func (m *TLMessageFwdHeader) XXX_Size() int { + return xxx_messageInfo_TLMessageFwdHeader.Size(m) } -func (m *TLInputDialogPeer) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputDialogPeer.DiscardUnknown(m) +func (m *TLMessageFwdHeader) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageFwdHeader.DiscardUnknown(m) } -var xxx_messageInfo_TLInputDialogPeer proto.InternalMessageInfo +var xxx_messageInfo_TLMessageFwdHeader proto.InternalMessageInfo -func (m *TLInputDialogPeer) GetData2() *InputDialogPeer_Data { +func (m *TLMessageFwdHeader) GetData2() *MessageFwdHeader_Data { if m != nil { return m.Data2 } @@ -2827,238 +2899,174 @@ func (m *TLInputDialogPeer) GetData2() *InputDialogPeer_Data { } // ///////////////////////////////////////////////////////////////////////////// -// FileLocation <-- -// + TL_fileLocationUnavailable -// + TL_fileLocation -// + TL_fileLocationLayer86 +// help_TermsOfServiceUpdate <-- +// + TL_help_termsOfServiceUpdateEmpty +// + TL_help_termsOfServiceUpdate // -type FileLocation_Data struct { - VolumeId int64 `protobuf:"varint,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - LocalId int32 `protobuf:"varint,2,opt,name=local_id,json=localId,proto3" json:"local_id,omitempty"` - Secret int64 `protobuf:"varint,3,opt,name=secret,proto3" json:"secret,omitempty"` - DcId int32 `protobuf:"varint,4,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` - FileReference []byte `protobuf:"bytes,5,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_TermsOfServiceUpdate_Data struct { + Expires int32 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"` + TermsOfService *Help_TermsOfService `protobuf:"bytes,2,opt,name=terms_of_service,json=termsOfService,proto3" json:"terms_of_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FileLocation_Data) Reset() { *m = FileLocation_Data{} } -func (m *FileLocation_Data) String() string { return proto.CompactTextString(m) } -func (*FileLocation_Data) ProtoMessage() {} -func (*FileLocation_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{62} -} -func (m *FileLocation_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FileLocation_Data.Unmarshal(m, b) -} -func (m *FileLocation_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FileLocation_Data.Marshal(b, m, deterministic) +func (m *Help_TermsOfServiceUpdate_Data) Reset() { *m = Help_TermsOfServiceUpdate_Data{} } +func (m *Help_TermsOfServiceUpdate_Data) String() string { return proto.CompactTextString(m) } +func (*Help_TermsOfServiceUpdate_Data) ProtoMessage() {} +func (*Help_TermsOfServiceUpdate_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{58} } -func (dst *FileLocation_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileLocation_Data.Merge(dst, src) +func (m *Help_TermsOfServiceUpdate_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_TermsOfServiceUpdate_Data.Unmarshal(m, b) } -func (m *FileLocation_Data) XXX_Size() int { - return xxx_messageInfo_FileLocation_Data.Size(m) +func (m *Help_TermsOfServiceUpdate_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_TermsOfServiceUpdate_Data.Marshal(b, m, deterministic) } -func (m *FileLocation_Data) XXX_DiscardUnknown() { - xxx_messageInfo_FileLocation_Data.DiscardUnknown(m) +func (dst *Help_TermsOfServiceUpdate_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_TermsOfServiceUpdate_Data.Merge(dst, src) } - -var xxx_messageInfo_FileLocation_Data proto.InternalMessageInfo - -func (m *FileLocation_Data) GetVolumeId() int64 { - if m != nil { - return m.VolumeId - } - return 0 +func (m *Help_TermsOfServiceUpdate_Data) XXX_Size() int { + return xxx_messageInfo_Help_TermsOfServiceUpdate_Data.Size(m) } - -func (m *FileLocation_Data) GetLocalId() int32 { - if m != nil { - return m.LocalId - } - return 0 +func (m *Help_TermsOfServiceUpdate_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_TermsOfServiceUpdate_Data.DiscardUnknown(m) } -func (m *FileLocation_Data) GetSecret() int64 { - if m != nil { - return m.Secret - } - return 0 -} +var xxx_messageInfo_Help_TermsOfServiceUpdate_Data proto.InternalMessageInfo -func (m *FileLocation_Data) GetDcId() int32 { +func (m *Help_TermsOfServiceUpdate_Data) GetExpires() int32 { if m != nil { - return m.DcId + return m.Expires } return 0 } -func (m *FileLocation_Data) GetFileReference() []byte { +func (m *Help_TermsOfServiceUpdate_Data) GetTermsOfService() *Help_TermsOfService { if m != nil { - return m.FileReference + return m.TermsOfService } return nil } -type FileLocation struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *FileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_TermsOfServiceUpdate struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Help_TermsOfServiceUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FileLocation) Reset() { *m = FileLocation{} } -func (m *FileLocation) String() string { return proto.CompactTextString(m) } -func (*FileLocation) ProtoMessage() {} -func (*FileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{63} +func (m *Help_TermsOfServiceUpdate) Reset() { *m = Help_TermsOfServiceUpdate{} } +func (m *Help_TermsOfServiceUpdate) String() string { return proto.CompactTextString(m) } +func (*Help_TermsOfServiceUpdate) ProtoMessage() {} +func (*Help_TermsOfServiceUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{59} } -func (m *FileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FileLocation.Unmarshal(m, b) +func (m *Help_TermsOfServiceUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_TermsOfServiceUpdate.Unmarshal(m, b) } -func (m *FileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FileLocation.Marshal(b, m, deterministic) +func (m *Help_TermsOfServiceUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_TermsOfServiceUpdate.Marshal(b, m, deterministic) } -func (dst *FileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileLocation.Merge(dst, src) +func (dst *Help_TermsOfServiceUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_TermsOfServiceUpdate.Merge(dst, src) } -func (m *FileLocation) XXX_Size() int { - return xxx_messageInfo_FileLocation.Size(m) +func (m *Help_TermsOfServiceUpdate) XXX_Size() int { + return xxx_messageInfo_Help_TermsOfServiceUpdate.Size(m) } -func (m *FileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_FileLocation.DiscardUnknown(m) +func (m *Help_TermsOfServiceUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_Help_TermsOfServiceUpdate.DiscardUnknown(m) } -var xxx_messageInfo_FileLocation proto.InternalMessageInfo +var xxx_messageInfo_Help_TermsOfServiceUpdate proto.InternalMessageInfo -func (m *FileLocation) GetConstructor() TLConstructor { +func (m *Help_TermsOfServiceUpdate) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *FileLocation) GetData2() *FileLocation_Data { +func (m *Help_TermsOfServiceUpdate) GetData2() *Help_TermsOfServiceUpdate_Data { if m != nil { return m.Data2 } return nil } -// fileLocationUnavailable#7c596b46 volume_id:long local_id:int secret:long = FileLocation; -type TLFileLocationUnavailable struct { - Data2 *FileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate; +type TLHelpTermsOfServiceUpdateEmpty struct { + Data2 *Help_TermsOfServiceUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLFileLocationUnavailable) Reset() { *m = TLFileLocationUnavailable{} } -func (m *TLFileLocationUnavailable) String() string { return proto.CompactTextString(m) } -func (*TLFileLocationUnavailable) ProtoMessage() {} -func (*TLFileLocationUnavailable) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{64} +func (m *TLHelpTermsOfServiceUpdateEmpty) Reset() { *m = TLHelpTermsOfServiceUpdateEmpty{} } +func (m *TLHelpTermsOfServiceUpdateEmpty) String() string { return proto.CompactTextString(m) } +func (*TLHelpTermsOfServiceUpdateEmpty) ProtoMessage() {} +func (*TLHelpTermsOfServiceUpdateEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{60} } -func (m *TLFileLocationUnavailable) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLFileLocationUnavailable.Unmarshal(m, b) +func (m *TLHelpTermsOfServiceUpdateEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.Unmarshal(m, b) } -func (m *TLFileLocationUnavailable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLFileLocationUnavailable.Marshal(b, m, deterministic) +func (m *TLHelpTermsOfServiceUpdateEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.Marshal(b, m, deterministic) } -func (dst *TLFileLocationUnavailable) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLFileLocationUnavailable.Merge(dst, src) +func (dst *TLHelpTermsOfServiceUpdateEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.Merge(dst, src) } -func (m *TLFileLocationUnavailable) XXX_Size() int { - return xxx_messageInfo_TLFileLocationUnavailable.Size(m) +func (m *TLHelpTermsOfServiceUpdateEmpty) XXX_Size() int { + return xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.Size(m) } -func (m *TLFileLocationUnavailable) XXX_DiscardUnknown() { - xxx_messageInfo_TLFileLocationUnavailable.DiscardUnknown(m) +func (m *TLHelpTermsOfServiceUpdateEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLFileLocationUnavailable proto.InternalMessageInfo +var xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty proto.InternalMessageInfo -func (m *TLFileLocationUnavailable) GetData2() *FileLocation_Data { +func (m *TLHelpTermsOfServiceUpdateEmpty) GetData2() *Help_TermsOfServiceUpdate_Data { if m != nil { return m.Data2 } return nil } -// fileLocation#53d69076 dc_id:int volume_id:long local_id:int secret:long = FileLocation; -type TLFileLocation struct { - Data2 *FileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate; +type TLHelpTermsOfServiceUpdate struct { + Data2 *Help_TermsOfServiceUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLFileLocation) Reset() { *m = TLFileLocation{} } -func (m *TLFileLocation) String() string { return proto.CompactTextString(m) } -func (*TLFileLocation) ProtoMessage() {} -func (*TLFileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{65} +func (m *TLHelpTermsOfServiceUpdate) Reset() { *m = TLHelpTermsOfServiceUpdate{} } +func (m *TLHelpTermsOfServiceUpdate) String() string { return proto.CompactTextString(m) } +func (*TLHelpTermsOfServiceUpdate) ProtoMessage() {} +func (*TLHelpTermsOfServiceUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{61} } -func (m *TLFileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLFileLocation.Unmarshal(m, b) +func (m *TLHelpTermsOfServiceUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpTermsOfServiceUpdate.Unmarshal(m, b) } -func (m *TLFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLFileLocation.Marshal(b, m, deterministic) +func (m *TLHelpTermsOfServiceUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpTermsOfServiceUpdate.Marshal(b, m, deterministic) } -func (dst *TLFileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLFileLocation.Merge(dst, src) +func (dst *TLHelpTermsOfServiceUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpTermsOfServiceUpdate.Merge(dst, src) } -func (m *TLFileLocation) XXX_Size() int { - return xxx_messageInfo_TLFileLocation.Size(m) +func (m *TLHelpTermsOfServiceUpdate) XXX_Size() int { + return xxx_messageInfo_TLHelpTermsOfServiceUpdate.Size(m) } -func (m *TLFileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_TLFileLocation.DiscardUnknown(m) +func (m *TLHelpTermsOfServiceUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpTermsOfServiceUpdate.DiscardUnknown(m) } -var xxx_messageInfo_TLFileLocation proto.InternalMessageInfo +var xxx_messageInfo_TLHelpTermsOfServiceUpdate proto.InternalMessageInfo -func (m *TLFileLocation) GetData2() *FileLocation_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// fileLocation#91d11eb dc_id:int volume_id:long local_id:int secret:long file_reference:bytes = FileLocation; -type TLFileLocationLayer86 struct { - Data2 *FileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLFileLocationLayer86) Reset() { *m = TLFileLocationLayer86{} } -func (m *TLFileLocationLayer86) String() string { return proto.CompactTextString(m) } -func (*TLFileLocationLayer86) ProtoMessage() {} -func (*TLFileLocationLayer86) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{66} -} -func (m *TLFileLocationLayer86) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLFileLocationLayer86.Unmarshal(m, b) -} -func (m *TLFileLocationLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLFileLocationLayer86.Marshal(b, m, deterministic) -} -func (dst *TLFileLocationLayer86) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLFileLocationLayer86.Merge(dst, src) -} -func (m *TLFileLocationLayer86) XXX_Size() int { - return xxx_messageInfo_TLFileLocationLayer86.Size(m) -} -func (m *TLFileLocationLayer86) XXX_DiscardUnknown() { - xxx_messageInfo_TLFileLocationLayer86.DiscardUnknown(m) -} - -var xxx_messageInfo_TLFileLocationLayer86 proto.InternalMessageInfo - -func (m *TLFileLocationLayer86) GetData2() *FileLocation_Data { +func (m *TLHelpTermsOfServiceUpdate) GetData2() *Help_TermsOfServiceUpdate_Data { if m != nil { return m.Data2 } @@ -3066,1839 +3074,1699 @@ func (m *TLFileLocationLayer86) GetData2() *FileLocation_Data { } // ///////////////////////////////////////////////////////////////////////////// -// RichText <-- -// + TL_textEmpty -// + TL_textPlain -// + TL_textBold -// + TL_textItalic -// + TL_textUnderline -// + TL_textStrike -// + TL_textFixed -// + TL_textUrl -// + TL_textEmail -// + TL_textConcat +// Game <-- +// + TL_game // -type RichText_Data struct { - Text_1 string `protobuf:"bytes,1,opt,name=text_1,json=text1,proto3" json:"text_1,omitempty"` - Text_2 *RichText `protobuf:"bytes,2,opt,name=text_2,json=text2,proto3" json:"text_2,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` - WebpageId int64 `protobuf:"varint,4,opt,name=webpage_id,json=webpageId,proto3" json:"webpage_id,omitempty"` - Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` - Texts []*RichText `protobuf:"bytes,6,rep,name=texts,proto3" json:"texts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Game_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + ShortName string `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` + Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + Photo *Photo `protobuf:"bytes,6,opt,name=photo,proto3" json:"photo,omitempty"` + Document *Document `protobuf:"bytes,7,opt,name=document,proto3" json:"document,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RichText_Data) Reset() { *m = RichText_Data{} } -func (m *RichText_Data) String() string { return proto.CompactTextString(m) } -func (*RichText_Data) ProtoMessage() {} -func (*RichText_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{67} +func (m *Game_Data) Reset() { *m = Game_Data{} } +func (m *Game_Data) String() string { return proto.CompactTextString(m) } +func (*Game_Data) ProtoMessage() {} +func (*Game_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{62} } -func (m *RichText_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RichText_Data.Unmarshal(m, b) +func (m *Game_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Game_Data.Unmarshal(m, b) } -func (m *RichText_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RichText_Data.Marshal(b, m, deterministic) +func (m *Game_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Game_Data.Marshal(b, m, deterministic) } -func (dst *RichText_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_RichText_Data.Merge(dst, src) +func (dst *Game_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Game_Data.Merge(dst, src) } -func (m *RichText_Data) XXX_Size() int { - return xxx_messageInfo_RichText_Data.Size(m) +func (m *Game_Data) XXX_Size() int { + return xxx_messageInfo_Game_Data.Size(m) } -func (m *RichText_Data) XXX_DiscardUnknown() { - xxx_messageInfo_RichText_Data.DiscardUnknown(m) +func (m *Game_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Game_Data.DiscardUnknown(m) } -var xxx_messageInfo_RichText_Data proto.InternalMessageInfo +var xxx_messageInfo_Game_Data proto.InternalMessageInfo -func (m *RichText_Data) GetText_1() string { +func (m *Game_Data) GetId() int64 { if m != nil { - return m.Text_1 + return m.Id } - return "" + return 0 } -func (m *RichText_Data) GetText_2() *RichText { +func (m *Game_Data) GetAccessHash() int64 { if m != nil { - return m.Text_2 + return m.AccessHash } - return nil + return 0 } -func (m *RichText_Data) GetUrl() string { +func (m *Game_Data) GetShortName() string { if m != nil { - return m.Url + return m.ShortName } return "" } -func (m *RichText_Data) GetWebpageId() int64 { +func (m *Game_Data) GetTitle() string { if m != nil { - return m.WebpageId + return m.Title } - return 0 + return "" } -func (m *RichText_Data) GetEmail() string { +func (m *Game_Data) GetDescription() string { if m != nil { - return m.Email + return m.Description } return "" } -func (m *RichText_Data) GetTexts() []*RichText { +func (m *Game_Data) GetPhoto() *Photo { if m != nil { - return m.Texts + return m.Photo } return nil } -type RichText struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Game_Data) GetDocument() *Document { + if m != nil { + return m.Document + } + return nil } -func (m *RichText) Reset() { *m = RichText{} } -func (m *RichText) String() string { return proto.CompactTextString(m) } -func (*RichText) ProtoMessage() {} -func (*RichText) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{68} +type Game struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Game_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RichText) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RichText.Unmarshal(m, b) + +func (m *Game) Reset() { *m = Game{} } +func (m *Game) String() string { return proto.CompactTextString(m) } +func (*Game) ProtoMessage() {} +func (*Game) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{63} } -func (m *RichText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RichText.Marshal(b, m, deterministic) +func (m *Game) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Game.Unmarshal(m, b) } -func (dst *RichText) XXX_Merge(src proto.Message) { - xxx_messageInfo_RichText.Merge(dst, src) +func (m *Game) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Game.Marshal(b, m, deterministic) } -func (m *RichText) XXX_Size() int { - return xxx_messageInfo_RichText.Size(m) +func (dst *Game) XXX_Merge(src proto.Message) { + xxx_messageInfo_Game.Merge(dst, src) } -func (m *RichText) XXX_DiscardUnknown() { - xxx_messageInfo_RichText.DiscardUnknown(m) +func (m *Game) XXX_Size() int { + return xxx_messageInfo_Game.Size(m) +} +func (m *Game) XXX_DiscardUnknown() { + xxx_messageInfo_Game.DiscardUnknown(m) } -var xxx_messageInfo_RichText proto.InternalMessageInfo +var xxx_messageInfo_Game proto.InternalMessageInfo -func (m *RichText) GetConstructor() TLConstructor { +func (m *Game) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *RichText) GetData2() *RichText_Data { +func (m *Game) GetData2() *Game_Data { if m != nil { return m.Data2 } return nil } -// textEmpty#dc3d824f = RichText; -type TLTextEmpty struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game; +type TLGame struct { + Data2 *Game_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTextEmpty) Reset() { *m = TLTextEmpty{} } -func (m *TLTextEmpty) String() string { return proto.CompactTextString(m) } -func (*TLTextEmpty) ProtoMessage() {} -func (*TLTextEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{69} +func (m *TLGame) Reset() { *m = TLGame{} } +func (m *TLGame) String() string { return proto.CompactTextString(m) } +func (*TLGame) ProtoMessage() {} +func (*TLGame) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{64} } -func (m *TLTextEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextEmpty.Unmarshal(m, b) +func (m *TLGame) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLGame.Unmarshal(m, b) } -func (m *TLTextEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextEmpty.Marshal(b, m, deterministic) +func (m *TLGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLGame.Marshal(b, m, deterministic) } -func (dst *TLTextEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextEmpty.Merge(dst, src) +func (dst *TLGame) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLGame.Merge(dst, src) } -func (m *TLTextEmpty) XXX_Size() int { - return xxx_messageInfo_TLTextEmpty.Size(m) +func (m *TLGame) XXX_Size() int { + return xxx_messageInfo_TLGame.Size(m) } -func (m *TLTextEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextEmpty.DiscardUnknown(m) +func (m *TLGame) XXX_DiscardUnknown() { + xxx_messageInfo_TLGame.DiscardUnknown(m) } -var xxx_messageInfo_TLTextEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLGame proto.InternalMessageInfo -func (m *TLTextEmpty) GetData2() *RichText_Data { +func (m *TLGame) GetData2() *Game_Data { if m != nil { return m.Data2 } return nil } -// textPlain#744694e0 text:string = RichText; -type TLTextPlain struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// ///////////////////////////////////////////////////////////////////////////// +// InputStickerSetItem <-- +// + TL_inputStickerSetItem +// +type InputStickerSetItem_Data struct { + Document *InputDocument `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` + Emoji string `protobuf:"bytes,2,opt,name=emoji,proto3" json:"emoji,omitempty"` + MaskCoords *MaskCoords `protobuf:"bytes,3,opt,name=mask_coords,json=maskCoords,proto3" json:"mask_coords,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLTextPlain) Reset() { *m = TLTextPlain{} } -func (m *TLTextPlain) String() string { return proto.CompactTextString(m) } -func (*TLTextPlain) ProtoMessage() {} -func (*TLTextPlain) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{70} +func (m *InputStickerSetItem_Data) Reset() { *m = InputStickerSetItem_Data{} } +func (m *InputStickerSetItem_Data) String() string { return proto.CompactTextString(m) } +func (*InputStickerSetItem_Data) ProtoMessage() {} +func (*InputStickerSetItem_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{65} } -func (m *TLTextPlain) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextPlain.Unmarshal(m, b) +func (m *InputStickerSetItem_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputStickerSetItem_Data.Unmarshal(m, b) } -func (m *TLTextPlain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextPlain.Marshal(b, m, deterministic) +func (m *InputStickerSetItem_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputStickerSetItem_Data.Marshal(b, m, deterministic) } -func (dst *TLTextPlain) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextPlain.Merge(dst, src) +func (dst *InputStickerSetItem_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputStickerSetItem_Data.Merge(dst, src) } -func (m *TLTextPlain) XXX_Size() int { - return xxx_messageInfo_TLTextPlain.Size(m) +func (m *InputStickerSetItem_Data) XXX_Size() int { + return xxx_messageInfo_InputStickerSetItem_Data.Size(m) } -func (m *TLTextPlain) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextPlain.DiscardUnknown(m) +func (m *InputStickerSetItem_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputStickerSetItem_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLTextPlain proto.InternalMessageInfo +var xxx_messageInfo_InputStickerSetItem_Data proto.InternalMessageInfo -func (m *TLTextPlain) GetData2() *RichText_Data { +func (m *InputStickerSetItem_Data) GetDocument() *InputDocument { if m != nil { - return m.Data2 + return m.Document } return nil } -// textBold#6724abc4 text:RichText = RichText; -type TLTextBold struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLTextBold) Reset() { *m = TLTextBold{} } -func (m *TLTextBold) String() string { return proto.CompactTextString(m) } -func (*TLTextBold) ProtoMessage() {} -func (*TLTextBold) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{71} -} -func (m *TLTextBold) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextBold.Unmarshal(m, b) -} -func (m *TLTextBold) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextBold.Marshal(b, m, deterministic) -} -func (dst *TLTextBold) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextBold.Merge(dst, src) -} -func (m *TLTextBold) XXX_Size() int { - return xxx_messageInfo_TLTextBold.Size(m) -} -func (m *TLTextBold) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextBold.DiscardUnknown(m) +func (m *InputStickerSetItem_Data) GetEmoji() string { + if m != nil { + return m.Emoji + } + return "" } -var xxx_messageInfo_TLTextBold proto.InternalMessageInfo - -func (m *TLTextBold) GetData2() *RichText_Data { +func (m *InputStickerSetItem_Data) GetMaskCoords() *MaskCoords { if m != nil { - return m.Data2 + return m.MaskCoords } return nil } -// textItalic#d912a59c text:RichText = RichText; -type TLTextItalic struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputStickerSetItem struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputStickerSetItem_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTextItalic) Reset() { *m = TLTextItalic{} } -func (m *TLTextItalic) String() string { return proto.CompactTextString(m) } -func (*TLTextItalic) ProtoMessage() {} -func (*TLTextItalic) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{72} +func (m *InputStickerSetItem) Reset() { *m = InputStickerSetItem{} } +func (m *InputStickerSetItem) String() string { return proto.CompactTextString(m) } +func (*InputStickerSetItem) ProtoMessage() {} +func (*InputStickerSetItem) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{66} } -func (m *TLTextItalic) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextItalic.Unmarshal(m, b) +func (m *InputStickerSetItem) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputStickerSetItem.Unmarshal(m, b) } -func (m *TLTextItalic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextItalic.Marshal(b, m, deterministic) +func (m *InputStickerSetItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputStickerSetItem.Marshal(b, m, deterministic) } -func (dst *TLTextItalic) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextItalic.Merge(dst, src) +func (dst *InputStickerSetItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputStickerSetItem.Merge(dst, src) } -func (m *TLTextItalic) XXX_Size() int { - return xxx_messageInfo_TLTextItalic.Size(m) +func (m *InputStickerSetItem) XXX_Size() int { + return xxx_messageInfo_InputStickerSetItem.Size(m) } -func (m *TLTextItalic) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextItalic.DiscardUnknown(m) +func (m *InputStickerSetItem) XXX_DiscardUnknown() { + xxx_messageInfo_InputStickerSetItem.DiscardUnknown(m) } -var xxx_messageInfo_TLTextItalic proto.InternalMessageInfo +var xxx_messageInfo_InputStickerSetItem proto.InternalMessageInfo -func (m *TLTextItalic) GetData2() *RichText_Data { +func (m *InputStickerSetItem) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputStickerSetItem) GetData2() *InputStickerSetItem_Data { if m != nil { return m.Data2 } return nil } -// textUnderline#c12622c4 text:RichText = RichText; -type TLTextUnderline struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem; +type TLInputStickerSetItem struct { + Data2 *InputStickerSetItem_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTextUnderline) Reset() { *m = TLTextUnderline{} } -func (m *TLTextUnderline) String() string { return proto.CompactTextString(m) } -func (*TLTextUnderline) ProtoMessage() {} -func (*TLTextUnderline) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{73} +func (m *TLInputStickerSetItem) Reset() { *m = TLInputStickerSetItem{} } +func (m *TLInputStickerSetItem) String() string { return proto.CompactTextString(m) } +func (*TLInputStickerSetItem) ProtoMessage() {} +func (*TLInputStickerSetItem) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{67} } -func (m *TLTextUnderline) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextUnderline.Unmarshal(m, b) +func (m *TLInputStickerSetItem) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputStickerSetItem.Unmarshal(m, b) } -func (m *TLTextUnderline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextUnderline.Marshal(b, m, deterministic) +func (m *TLInputStickerSetItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputStickerSetItem.Marshal(b, m, deterministic) } -func (dst *TLTextUnderline) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextUnderline.Merge(dst, src) +func (dst *TLInputStickerSetItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputStickerSetItem.Merge(dst, src) } -func (m *TLTextUnderline) XXX_Size() int { - return xxx_messageInfo_TLTextUnderline.Size(m) +func (m *TLInputStickerSetItem) XXX_Size() int { + return xxx_messageInfo_TLInputStickerSetItem.Size(m) } -func (m *TLTextUnderline) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextUnderline.DiscardUnknown(m) +func (m *TLInputStickerSetItem) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputStickerSetItem.DiscardUnknown(m) } -var xxx_messageInfo_TLTextUnderline proto.InternalMessageInfo +var xxx_messageInfo_TLInputStickerSetItem proto.InternalMessageInfo -func (m *TLTextUnderline) GetData2() *RichText_Data { +func (m *TLInputStickerSetItem) GetData2() *InputStickerSetItem_Data { if m != nil { return m.Data2 } return nil } -// textStrike#9bf8bb95 text:RichText = RichText; -type TLTextStrike struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// PhoneCall <-- +// + TL_phoneCallEmpty +// + TL_phoneCallWaiting +// + TL_phoneCallRequested +// + TL_phoneCallAccepted +// + TL_phoneCall +// + TL_phoneCallDiscarded +// +type PhoneCall_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` + AdminId int32 `protobuf:"varint,4,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"` + ParticipantId int32 `protobuf:"varint,5,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` + Protocol *PhoneCallProtocol `protobuf:"bytes,6,opt,name=protocol,proto3" json:"protocol,omitempty"` + ReceiveDate int32 `protobuf:"varint,7,opt,name=receive_date,json=receiveDate,proto3" json:"receive_date,omitempty"` + GAHash []byte `protobuf:"bytes,8,opt,name=g_a_hash,json=gAHash,proto3" json:"g_a_hash,omitempty"` + GB []byte `protobuf:"bytes,9,opt,name=g_b,json=gB,proto3" json:"g_b,omitempty"` + GAOrB []byte `protobuf:"bytes,10,opt,name=g_a_or_b,json=gAOrB,proto3" json:"g_a_or_b,omitempty"` + KeyFingerprint int64 `protobuf:"varint,11,opt,name=key_fingerprint,json=keyFingerprint,proto3" json:"key_fingerprint,omitempty"` + Connection *PhoneConnection `protobuf:"bytes,12,opt,name=connection,proto3" json:"connection,omitempty"` + AlternativeConnections []*PhoneConnection `protobuf:"bytes,13,rep,name=alternative_connections,json=alternativeConnections,proto3" json:"alternative_connections,omitempty"` + StartDate int32 `protobuf:"varint,14,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + NeedRating bool `protobuf:"varint,15,opt,name=need_rating,json=needRating,proto3" json:"need_rating,omitempty"` + NeedDebug bool `protobuf:"varint,16,opt,name=need_debug,json=needDebug,proto3" json:"need_debug,omitempty"` + Reason *PhoneCallDiscardReason `protobuf:"bytes,17,opt,name=reason,proto3" json:"reason,omitempty"` + Duration int32 `protobuf:"varint,18,opt,name=duration,proto3" json:"duration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTextStrike) Reset() { *m = TLTextStrike{} } -func (m *TLTextStrike) String() string { return proto.CompactTextString(m) } -func (*TLTextStrike) ProtoMessage() {} -func (*TLTextStrike) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{74} +func (m *PhoneCall_Data) Reset() { *m = PhoneCall_Data{} } +func (m *PhoneCall_Data) String() string { return proto.CompactTextString(m) } +func (*PhoneCall_Data) ProtoMessage() {} +func (*PhoneCall_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{68} } -func (m *TLTextStrike) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextStrike.Unmarshal(m, b) +func (m *PhoneCall_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhoneCall_Data.Unmarshal(m, b) } -func (m *TLTextStrike) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextStrike.Marshal(b, m, deterministic) +func (m *PhoneCall_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhoneCall_Data.Marshal(b, m, deterministic) } -func (dst *TLTextStrike) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextStrike.Merge(dst, src) +func (dst *PhoneCall_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhoneCall_Data.Merge(dst, src) } -func (m *TLTextStrike) XXX_Size() int { - return xxx_messageInfo_TLTextStrike.Size(m) +func (m *PhoneCall_Data) XXX_Size() int { + return xxx_messageInfo_PhoneCall_Data.Size(m) } -func (m *TLTextStrike) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextStrike.DiscardUnknown(m) +func (m *PhoneCall_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PhoneCall_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLTextStrike proto.InternalMessageInfo +var xxx_messageInfo_PhoneCall_Data proto.InternalMessageInfo -func (m *TLTextStrike) GetData2() *RichText_Data { +func (m *PhoneCall_Data) GetId() int64 { if m != nil { - return m.Data2 + return m.Id } - return nil + return 0 } -// textFixed#6c3f19b9 text:RichText = RichText; -type TLTextFixed struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PhoneCall_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 } -func (m *TLTextFixed) Reset() { *m = TLTextFixed{} } -func (m *TLTextFixed) String() string { return proto.CompactTextString(m) } -func (*TLTextFixed) ProtoMessage() {} -func (*TLTextFixed) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{75} -} -func (m *TLTextFixed) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextFixed.Unmarshal(m, b) -} -func (m *TLTextFixed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextFixed.Marshal(b, m, deterministic) -} -func (dst *TLTextFixed) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextFixed.Merge(dst, src) -} -func (m *TLTextFixed) XXX_Size() int { - return xxx_messageInfo_TLTextFixed.Size(m) -} -func (m *TLTextFixed) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextFixed.DiscardUnknown(m) +func (m *PhoneCall_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 } -var xxx_messageInfo_TLTextFixed proto.InternalMessageInfo - -func (m *TLTextFixed) GetData2() *RichText_Data { +func (m *PhoneCall_Data) GetAdminId() int32 { if m != nil { - return m.Data2 + return m.AdminId } - return nil + return 0 } -// textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText; -type TLTextUrl struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLTextUrl) Reset() { *m = TLTextUrl{} } -func (m *TLTextUrl) String() string { return proto.CompactTextString(m) } -func (*TLTextUrl) ProtoMessage() {} -func (*TLTextUrl) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{76} -} -func (m *TLTextUrl) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextUrl.Unmarshal(m, b) -} -func (m *TLTextUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextUrl.Marshal(b, m, deterministic) -} -func (dst *TLTextUrl) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextUrl.Merge(dst, src) -} -func (m *TLTextUrl) XXX_Size() int { - return xxx_messageInfo_TLTextUrl.Size(m) -} -func (m *TLTextUrl) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextUrl.DiscardUnknown(m) +func (m *PhoneCall_Data) GetParticipantId() int32 { + if m != nil { + return m.ParticipantId + } + return 0 } -var xxx_messageInfo_TLTextUrl proto.InternalMessageInfo - -func (m *TLTextUrl) GetData2() *RichText_Data { +func (m *PhoneCall_Data) GetProtocol() *PhoneCallProtocol { if m != nil { - return m.Data2 + return m.Protocol } return nil } -// textEmail#de5a0dd6 text:RichText email:string = RichText; -type TLTextEmail struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PhoneCall_Data) GetReceiveDate() int32 { + if m != nil { + return m.ReceiveDate + } + return 0 } -func (m *TLTextEmail) Reset() { *m = TLTextEmail{} } -func (m *TLTextEmail) String() string { return proto.CompactTextString(m) } -func (*TLTextEmail) ProtoMessage() {} -func (*TLTextEmail) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{77} -} -func (m *TLTextEmail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextEmail.Unmarshal(m, b) -} -func (m *TLTextEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextEmail.Marshal(b, m, deterministic) -} -func (dst *TLTextEmail) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextEmail.Merge(dst, src) -} -func (m *TLTextEmail) XXX_Size() int { - return xxx_messageInfo_TLTextEmail.Size(m) -} -func (m *TLTextEmail) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextEmail.DiscardUnknown(m) +func (m *PhoneCall_Data) GetGAHash() []byte { + if m != nil { + return m.GAHash + } + return nil } -var xxx_messageInfo_TLTextEmail proto.InternalMessageInfo - -func (m *TLTextEmail) GetData2() *RichText_Data { +func (m *PhoneCall_Data) GetGB() []byte { if m != nil { - return m.Data2 + return m.GB } return nil } -// textConcat#7e6260d7 texts:Vector = RichText; -type TLTextConcat struct { - Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PhoneCall_Data) GetGAOrB() []byte { + if m != nil { + return m.GAOrB + } + return nil } -func (m *TLTextConcat) Reset() { *m = TLTextConcat{} } -func (m *TLTextConcat) String() string { return proto.CompactTextString(m) } -func (*TLTextConcat) ProtoMessage() {} -func (*TLTextConcat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{78} -} -func (m *TLTextConcat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTextConcat.Unmarshal(m, b) -} -func (m *TLTextConcat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTextConcat.Marshal(b, m, deterministic) -} -func (dst *TLTextConcat) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTextConcat.Merge(dst, src) -} -func (m *TLTextConcat) XXX_Size() int { - return xxx_messageInfo_TLTextConcat.Size(m) -} -func (m *TLTextConcat) XXX_DiscardUnknown() { - xxx_messageInfo_TLTextConcat.DiscardUnknown(m) +func (m *PhoneCall_Data) GetKeyFingerprint() int64 { + if m != nil { + return m.KeyFingerprint + } + return 0 } -var xxx_messageInfo_TLTextConcat proto.InternalMessageInfo - -func (m *TLTextConcat) GetData2() *RichText_Data { +func (m *PhoneCall_Data) GetConnection() *PhoneConnection { if m != nil { - return m.Data2 + return m.Connection } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// BotCommand <-- -// + TL_botCommand -// -type BotCommand_Data struct { - Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PhoneCall_Data) GetAlternativeConnections() []*PhoneConnection { + if m != nil { + return m.AlternativeConnections + } + return nil } -func (m *BotCommand_Data) Reset() { *m = BotCommand_Data{} } -func (m *BotCommand_Data) String() string { return proto.CompactTextString(m) } -func (*BotCommand_Data) ProtoMessage() {} -func (*BotCommand_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{79} -} -func (m *BotCommand_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BotCommand_Data.Unmarshal(m, b) -} -func (m *BotCommand_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BotCommand_Data.Marshal(b, m, deterministic) -} -func (dst *BotCommand_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_BotCommand_Data.Merge(dst, src) -} -func (m *BotCommand_Data) XXX_Size() int { - return xxx_messageInfo_BotCommand_Data.Size(m) +func (m *PhoneCall_Data) GetStartDate() int32 { + if m != nil { + return m.StartDate + } + return 0 } -func (m *BotCommand_Data) XXX_DiscardUnknown() { - xxx_messageInfo_BotCommand_Data.DiscardUnknown(m) + +func (m *PhoneCall_Data) GetNeedRating() bool { + if m != nil { + return m.NeedRating + } + return false } -var xxx_messageInfo_BotCommand_Data proto.InternalMessageInfo +func (m *PhoneCall_Data) GetNeedDebug() bool { + if m != nil { + return m.NeedDebug + } + return false +} -func (m *BotCommand_Data) GetCommand() string { +func (m *PhoneCall_Data) GetReason() *PhoneCallDiscardReason { if m != nil { - return m.Command + return m.Reason } - return "" + return nil } -func (m *BotCommand_Data) GetDescription() string { +func (m *PhoneCall_Data) GetDuration() int32 { if m != nil { - return m.Description + return m.Duration } - return "" + return 0 } -type BotCommand struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *BotCommand_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PhoneCall struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BotCommand) Reset() { *m = BotCommand{} } -func (m *BotCommand) String() string { return proto.CompactTextString(m) } -func (*BotCommand) ProtoMessage() {} -func (*BotCommand) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{80} +func (m *PhoneCall) Reset() { *m = PhoneCall{} } +func (m *PhoneCall) String() string { return proto.CompactTextString(m) } +func (*PhoneCall) ProtoMessage() {} +func (*PhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{69} } -func (m *BotCommand) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BotCommand.Unmarshal(m, b) +func (m *PhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhoneCall.Unmarshal(m, b) } -func (m *BotCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BotCommand.Marshal(b, m, deterministic) +func (m *PhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhoneCall.Marshal(b, m, deterministic) } -func (dst *BotCommand) XXX_Merge(src proto.Message) { - xxx_messageInfo_BotCommand.Merge(dst, src) +func (dst *PhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhoneCall.Merge(dst, src) } -func (m *BotCommand) XXX_Size() int { - return xxx_messageInfo_BotCommand.Size(m) +func (m *PhoneCall) XXX_Size() int { + return xxx_messageInfo_PhoneCall.Size(m) } -func (m *BotCommand) XXX_DiscardUnknown() { - xxx_messageInfo_BotCommand.DiscardUnknown(m) +func (m *PhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_PhoneCall.DiscardUnknown(m) } -var xxx_messageInfo_BotCommand proto.InternalMessageInfo +var xxx_messageInfo_PhoneCall proto.InternalMessageInfo -func (m *BotCommand) GetConstructor() TLConstructor { +func (m *PhoneCall) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *BotCommand) GetData2() *BotCommand_Data { +func (m *PhoneCall) GetData2() *PhoneCall_Data { if m != nil { return m.Data2 } return nil } -// botCommand#c27ac8c7 command:string description:string = BotCommand; -type TLBotCommand struct { - Data2 *BotCommand_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCallEmpty#5366c915 id:long = PhoneCall; +type TLPhoneCallEmpty struct { + Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBotCommand) Reset() { *m = TLBotCommand{} } -func (m *TLBotCommand) String() string { return proto.CompactTextString(m) } -func (*TLBotCommand) ProtoMessage() {} -func (*TLBotCommand) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{81} +func (m *TLPhoneCallEmpty) Reset() { *m = TLPhoneCallEmpty{} } +func (m *TLPhoneCallEmpty) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallEmpty) ProtoMessage() {} +func (*TLPhoneCallEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{70} } -func (m *TLBotCommand) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBotCommand.Unmarshal(m, b) +func (m *TLPhoneCallEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallEmpty.Unmarshal(m, b) } -func (m *TLBotCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBotCommand.Marshal(b, m, deterministic) +func (m *TLPhoneCallEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallEmpty.Marshal(b, m, deterministic) } -func (dst *TLBotCommand) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBotCommand.Merge(dst, src) +func (dst *TLPhoneCallEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallEmpty.Merge(dst, src) } -func (m *TLBotCommand) XXX_Size() int { - return xxx_messageInfo_TLBotCommand.Size(m) +func (m *TLPhoneCallEmpty) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallEmpty.Size(m) } -func (m *TLBotCommand) XXX_DiscardUnknown() { - xxx_messageInfo_TLBotCommand.DiscardUnknown(m) +func (m *TLPhoneCallEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLBotCommand proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneCallEmpty proto.InternalMessageInfo -func (m *TLBotCommand) GetData2() *BotCommand_Data { +func (m *TLPhoneCallEmpty) GetData2() *PhoneCall_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ChannelParticipant <-- -// + TL_channelParticipant -// + TL_channelParticipantSelf -// + TL_channelParticipantCreator -// + TL_channelParticipantAdmin -// + TL_channelParticipantBanned -// -type ChannelParticipant_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` - InviterId int32 `protobuf:"varint,3,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` - CanEdit bool `protobuf:"varint,4,opt,name=can_edit,json=canEdit,proto3" json:"can_edit,omitempty"` - PromotedBy int32 `protobuf:"varint,5,opt,name=promoted_by,json=promotedBy,proto3" json:"promoted_by,omitempty"` - AdminRights *ChannelAdminRights `protobuf:"bytes,6,opt,name=admin_rights,json=adminRights,proto3" json:"admin_rights,omitempty"` - Left bool `protobuf:"varint,7,opt,name=left,proto3" json:"left,omitempty"` - KickedBy int32 `protobuf:"varint,8,opt,name=kicked_by,json=kickedBy,proto3" json:"kicked_by,omitempty"` - BannedRights *ChannelBannedRights `protobuf:"bytes,9,opt,name=banned_rights,json=bannedRights,proto3" json:"banned_rights,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCallWaiting#1b8f4ad1 flags:# id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; +type TLPhoneCallWaiting struct { + Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelParticipant_Data) Reset() { *m = ChannelParticipant_Data{} } -func (m *ChannelParticipant_Data) String() string { return proto.CompactTextString(m) } -func (*ChannelParticipant_Data) ProtoMessage() {} -func (*ChannelParticipant_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{82} +func (m *TLPhoneCallWaiting) Reset() { *m = TLPhoneCallWaiting{} } +func (m *TLPhoneCallWaiting) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallWaiting) ProtoMessage() {} +func (*TLPhoneCallWaiting) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{71} } -func (m *ChannelParticipant_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelParticipant_Data.Unmarshal(m, b) +func (m *TLPhoneCallWaiting) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallWaiting.Unmarshal(m, b) } -func (m *ChannelParticipant_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelParticipant_Data.Marshal(b, m, deterministic) +func (m *TLPhoneCallWaiting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallWaiting.Marshal(b, m, deterministic) } -func (dst *ChannelParticipant_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelParticipant_Data.Merge(dst, src) +func (dst *TLPhoneCallWaiting) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallWaiting.Merge(dst, src) } -func (m *ChannelParticipant_Data) XXX_Size() int { - return xxx_messageInfo_ChannelParticipant_Data.Size(m) +func (m *TLPhoneCallWaiting) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallWaiting.Size(m) } -func (m *ChannelParticipant_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelParticipant_Data.DiscardUnknown(m) +func (m *TLPhoneCallWaiting) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallWaiting.DiscardUnknown(m) } -var xxx_messageInfo_ChannelParticipant_Data proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneCallWaiting proto.InternalMessageInfo -func (m *ChannelParticipant_Data) GetUserId() int32 { +func (m *TLPhoneCallWaiting) GetData2() *PhoneCall_Data { if m != nil { - return m.UserId + return m.Data2 } - return 0 + return nil } -func (m *ChannelParticipant_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 +// phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; +type TLPhoneCallRequested struct { + Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelParticipant_Data) GetInviterId() int32 { - if m != nil { - return m.InviterId - } - return 0 +func (m *TLPhoneCallRequested) Reset() { *m = TLPhoneCallRequested{} } +func (m *TLPhoneCallRequested) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallRequested) ProtoMessage() {} +func (*TLPhoneCallRequested) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{72} } - -func (m *ChannelParticipant_Data) GetCanEdit() bool { - if m != nil { - return m.CanEdit - } - return false +func (m *TLPhoneCallRequested) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallRequested.Unmarshal(m, b) } - -func (m *ChannelParticipant_Data) GetPromotedBy() int32 { - if m != nil { - return m.PromotedBy - } - return 0 +func (m *TLPhoneCallRequested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallRequested.Marshal(b, m, deterministic) } - -func (m *ChannelParticipant_Data) GetAdminRights() *ChannelAdminRights { - if m != nil { - return m.AdminRights - } - return nil +func (dst *TLPhoneCallRequested) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallRequested.Merge(dst, src) } - -func (m *ChannelParticipant_Data) GetLeft() bool { - if m != nil { - return m.Left - } - return false +func (m *TLPhoneCallRequested) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallRequested.Size(m) } - -func (m *ChannelParticipant_Data) GetKickedBy() int32 { - if m != nil { - return m.KickedBy - } - return 0 +func (m *TLPhoneCallRequested) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallRequested.DiscardUnknown(m) } -func (m *ChannelParticipant_Data) GetBannedRights() *ChannelBannedRights { +var xxx_messageInfo_TLPhoneCallRequested proto.InternalMessageInfo + +func (m *TLPhoneCallRequested) GetData2() *PhoneCall_Data { if m != nil { - return m.BannedRights + return m.Data2 } return nil } -type ChannelParticipant struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; +type TLPhoneCallAccepted struct { + Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelParticipant) Reset() { *m = ChannelParticipant{} } -func (m *ChannelParticipant) String() string { return proto.CompactTextString(m) } -func (*ChannelParticipant) ProtoMessage() {} -func (*ChannelParticipant) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{83} +func (m *TLPhoneCallAccepted) Reset() { *m = TLPhoneCallAccepted{} } +func (m *TLPhoneCallAccepted) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallAccepted) ProtoMessage() {} +func (*TLPhoneCallAccepted) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{73} } -func (m *ChannelParticipant) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelParticipant.Unmarshal(m, b) +func (m *TLPhoneCallAccepted) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallAccepted.Unmarshal(m, b) } -func (m *ChannelParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelParticipant.Marshal(b, m, deterministic) +func (m *TLPhoneCallAccepted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallAccepted.Marshal(b, m, deterministic) } -func (dst *ChannelParticipant) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelParticipant.Merge(dst, src) +func (dst *TLPhoneCallAccepted) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallAccepted.Merge(dst, src) } -func (m *ChannelParticipant) XXX_Size() int { - return xxx_messageInfo_ChannelParticipant.Size(m) +func (m *TLPhoneCallAccepted) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallAccepted.Size(m) } -func (m *ChannelParticipant) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelParticipant.DiscardUnknown(m) +func (m *TLPhoneCallAccepted) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallAccepted.DiscardUnknown(m) } -var xxx_messageInfo_ChannelParticipant proto.InternalMessageInfo - -func (m *ChannelParticipant) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLPhoneCallAccepted proto.InternalMessageInfo -func (m *ChannelParticipant) GetData2() *ChannelParticipant_Data { +func (m *TLPhoneCallAccepted) GetData2() *PhoneCall_Data { if m != nil { return m.Data2 } return nil } -// channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant; -type TLChannelParticipant struct { - Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCall#ffe6ab67 id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connection:PhoneConnection alternative_connections:Vector start_date:int = PhoneCall; +type TLPhoneCall struct { + Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelParticipant) Reset() { *m = TLChannelParticipant{} } -func (m *TLChannelParticipant) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipant) ProtoMessage() {} -func (*TLChannelParticipant) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{84} +func (m *TLPhoneCall) Reset() { *m = TLPhoneCall{} } +func (m *TLPhoneCall) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCall) ProtoMessage() {} +func (*TLPhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{74} } -func (m *TLChannelParticipant) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipant.Unmarshal(m, b) +func (m *TLPhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCall.Unmarshal(m, b) } -func (m *TLChannelParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipant.Marshal(b, m, deterministic) +func (m *TLPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCall.Marshal(b, m, deterministic) } -func (dst *TLChannelParticipant) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipant.Merge(dst, src) +func (dst *TLPhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCall.Merge(dst, src) } -func (m *TLChannelParticipant) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipant.Size(m) +func (m *TLPhoneCall) XXX_Size() int { + return xxx_messageInfo_TLPhoneCall.Size(m) } -func (m *TLChannelParticipant) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipant.DiscardUnknown(m) +func (m *TLPhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCall.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelParticipant proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneCall proto.InternalMessageInfo -func (m *TLChannelParticipant) GetData2() *ChannelParticipant_Data { +func (m *TLPhoneCall) GetData2() *PhoneCall_Data { if m != nil { return m.Data2 } return nil } -// channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant; -type TLChannelParticipantSelf struct { - Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; +type TLPhoneCallDiscarded struct { + Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelParticipantSelf) Reset() { *m = TLChannelParticipantSelf{} } -func (m *TLChannelParticipantSelf) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantSelf) ProtoMessage() {} -func (*TLChannelParticipantSelf) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{85} -} -func (m *TLChannelParticipantSelf) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantSelf.Unmarshal(m, b) +func (m *TLPhoneCallDiscarded) Reset() { *m = TLPhoneCallDiscarded{} } +func (m *TLPhoneCallDiscarded) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallDiscarded) ProtoMessage() {} +func (*TLPhoneCallDiscarded) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{75} } -func (m *TLChannelParticipantSelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantSelf.Marshal(b, m, deterministic) +func (m *TLPhoneCallDiscarded) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallDiscarded.Unmarshal(m, b) } -func (dst *TLChannelParticipantSelf) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantSelf.Merge(dst, src) +func (m *TLPhoneCallDiscarded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallDiscarded.Marshal(b, m, deterministic) } -func (m *TLChannelParticipantSelf) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantSelf.Size(m) +func (dst *TLPhoneCallDiscarded) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallDiscarded.Merge(dst, src) } -func (m *TLChannelParticipantSelf) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantSelf.DiscardUnknown(m) +func (m *TLPhoneCallDiscarded) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallDiscarded.Size(m) +} +func (m *TLPhoneCallDiscarded) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallDiscarded.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelParticipantSelf proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneCallDiscarded proto.InternalMessageInfo -func (m *TLChannelParticipantSelf) GetData2() *ChannelParticipant_Data { +func (m *TLPhoneCallDiscarded) GetData2() *PhoneCall_Data { if m != nil { return m.Data2 } return nil } -// channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; -type TLChannelParticipantCreator struct { - Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputMedia <-- +// + TL_inputMediaPhotoLayer46 +// + TL_inputMediaEmpty +// + TL_inputMediaUploadedPhoto +// + TL_inputMediaPhoto +// + TL_inputMediaGeoPoint +// + TL_inputMediaContact +// + TL_inputMediaUploadedDocument +// + TL_inputMediaDocument +// + TL_inputMediaVenue +// + TL_inputMediaGifExternal +// + TL_inputMediaPhotoExternal +// + TL_inputMediaDocumentExternal +// + TL_inputMediaGame +// + TL_inputMediaInvoice +// + TL_inputMediaGeoLive +// +type InputMedia_Data struct { + Id_1 *InputPhoto `protobuf:"bytes,1,opt,name=id_1,json=id1,proto3" json:"id_1,omitempty"` + Caption string `protobuf:"bytes,2,opt,name=caption,proto3" json:"caption,omitempty"` + File *InputFile `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` + Stickers []*InputDocument `protobuf:"bytes,4,rep,name=stickers,proto3" json:"stickers,omitempty"` + TtlSeconds int32 `protobuf:"varint,5,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` + GeoPoint *InputGeoPoint `protobuf:"bytes,6,opt,name=geo_point,json=geoPoint,proto3" json:"geo_point,omitempty"` + PhoneNumber string `protobuf:"bytes,7,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` + FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Vcard string `protobuf:"bytes,10,opt,name=vcard,proto3" json:"vcard,omitempty"` + NosoundVideo bool `protobuf:"varint,11,opt,name=nosound_video,json=nosoundVideo,proto3" json:"nosound_video,omitempty"` + Thumb *InputFile `protobuf:"bytes,12,opt,name=thumb,proto3" json:"thumb,omitempty"` + MimeType string `protobuf:"bytes,13,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + Attributes []*DocumentAttribute `protobuf:"bytes,14,rep,name=attributes,proto3" json:"attributes,omitempty"` + Id_15 *InputDocument `protobuf:"bytes,15,opt,name=id_15,json=id15,proto3" json:"id_15,omitempty"` + Title string `protobuf:"bytes,16,opt,name=title,proto3" json:"title,omitempty"` + Address string `protobuf:"bytes,17,opt,name=address,proto3" json:"address,omitempty"` + Provider string `protobuf:"bytes,18,opt,name=provider,proto3" json:"provider,omitempty"` + VenueId string `protobuf:"bytes,19,opt,name=venue_id,json=venueId,proto3" json:"venue_id,omitempty"` + VenueType string `protobuf:"bytes,20,opt,name=venue_type,json=venueType,proto3" json:"venue_type,omitempty"` + Url string `protobuf:"bytes,21,opt,name=url,proto3" json:"url,omitempty"` + Q string `protobuf:"bytes,22,opt,name=q,proto3" json:"q,omitempty"` + Id_23 *InputGame `protobuf:"bytes,23,opt,name=id_23,json=id23,proto3" json:"id_23,omitempty"` + Description string `protobuf:"bytes,24,opt,name=description,proto3" json:"description,omitempty"` + Photo *InputWebDocument `protobuf:"bytes,25,opt,name=photo,proto3" json:"photo,omitempty"` + Invoice *Invoice `protobuf:"bytes,26,opt,name=invoice,proto3" json:"invoice,omitempty"` + Payload []byte `protobuf:"bytes,27,opt,name=payload,proto3" json:"payload,omitempty"` + ProviderData *DataJSON `protobuf:"bytes,28,opt,name=provider_data,json=providerData,proto3" json:"provider_data,omitempty"` + StartParam string `protobuf:"bytes,29,opt,name=start_param,json=startParam,proto3" json:"start_param,omitempty"` + Period int32 `protobuf:"varint,30,opt,name=period,proto3" json:"period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelParticipantCreator) Reset() { *m = TLChannelParticipantCreator{} } -func (m *TLChannelParticipantCreator) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantCreator) ProtoMessage() {} -func (*TLChannelParticipantCreator) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{86} +func (m *InputMedia_Data) Reset() { *m = InputMedia_Data{} } +func (m *InputMedia_Data) String() string { return proto.CompactTextString(m) } +func (*InputMedia_Data) ProtoMessage() {} +func (*InputMedia_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{76} } -func (m *TLChannelParticipantCreator) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantCreator.Unmarshal(m, b) +func (m *InputMedia_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputMedia_Data.Unmarshal(m, b) } -func (m *TLChannelParticipantCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantCreator.Marshal(b, m, deterministic) +func (m *InputMedia_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputMedia_Data.Marshal(b, m, deterministic) } -func (dst *TLChannelParticipantCreator) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantCreator.Merge(dst, src) +func (dst *InputMedia_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputMedia_Data.Merge(dst, src) } -func (m *TLChannelParticipantCreator) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantCreator.Size(m) +func (m *InputMedia_Data) XXX_Size() int { + return xxx_messageInfo_InputMedia_Data.Size(m) } -func (m *TLChannelParticipantCreator) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantCreator.DiscardUnknown(m) +func (m *InputMedia_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputMedia_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelParticipantCreator proto.InternalMessageInfo +var xxx_messageInfo_InputMedia_Data proto.InternalMessageInfo -func (m *TLChannelParticipantCreator) GetData2() *ChannelParticipant_Data { +func (m *InputMedia_Data) GetId_1() *InputPhoto { if m != nil { - return m.Data2 + return m.Id_1 } return nil } -// channelParticipantAdmin#a82fa898 flags:# can_edit:flags.0?true user_id:int inviter_id:int promoted_by:int date:int admin_rights:ChannelAdminRights = ChannelParticipant; -type TLChannelParticipantAdmin struct { - Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLChannelParticipantAdmin) Reset() { *m = TLChannelParticipantAdmin{} } -func (m *TLChannelParticipantAdmin) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantAdmin) ProtoMessage() {} -func (*TLChannelParticipantAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{87} -} -func (m *TLChannelParticipantAdmin) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantAdmin.Unmarshal(m, b) -} -func (m *TLChannelParticipantAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantAdmin.Marshal(b, m, deterministic) -} -func (dst *TLChannelParticipantAdmin) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantAdmin.Merge(dst, src) -} -func (m *TLChannelParticipantAdmin) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantAdmin.Size(m) -} -func (m *TLChannelParticipantAdmin) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantAdmin.DiscardUnknown(m) +func (m *InputMedia_Data) GetCaption() string { + if m != nil { + return m.Caption + } + return "" } -var xxx_messageInfo_TLChannelParticipantAdmin proto.InternalMessageInfo - -func (m *TLChannelParticipantAdmin) GetData2() *ChannelParticipant_Data { +func (m *InputMedia_Data) GetFile() *InputFile { if m != nil { - return m.Data2 + return m.File } return nil } -// channelParticipantBanned#222c1886 flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChannelBannedRights = ChannelParticipant; -type TLChannelParticipantBanned struct { - Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputMedia_Data) GetStickers() []*InputDocument { + if m != nil { + return m.Stickers + } + return nil } -func (m *TLChannelParticipantBanned) Reset() { *m = TLChannelParticipantBanned{} } -func (m *TLChannelParticipantBanned) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantBanned) ProtoMessage() {} -func (*TLChannelParticipantBanned) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{88} -} -func (m *TLChannelParticipantBanned) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantBanned.Unmarshal(m, b) -} -func (m *TLChannelParticipantBanned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantBanned.Marshal(b, m, deterministic) -} -func (dst *TLChannelParticipantBanned) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantBanned.Merge(dst, src) -} -func (m *TLChannelParticipantBanned) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantBanned.Size(m) -} -func (m *TLChannelParticipantBanned) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantBanned.DiscardUnknown(m) +func (m *InputMedia_Data) GetTtlSeconds() int32 { + if m != nil { + return m.TtlSeconds + } + return 0 } -var xxx_messageInfo_TLChannelParticipantBanned proto.InternalMessageInfo - -func (m *TLChannelParticipantBanned) GetData2() *ChannelParticipant_Data { +func (m *InputMedia_Data) GetGeoPoint() *InputGeoPoint { if m != nil { - return m.Data2 + return m.GeoPoint } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// PopularContact <-- -// + TL_popularContact -// -type PopularContact_Data struct { - ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - Importers int32 `protobuf:"varint,2,opt,name=importers,proto3" json:"importers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputMedia_Data) GetPhoneNumber() string { + if m != nil { + return m.PhoneNumber + } + return "" } -func (m *PopularContact_Data) Reset() { *m = PopularContact_Data{} } -func (m *PopularContact_Data) String() string { return proto.CompactTextString(m) } -func (*PopularContact_Data) ProtoMessage() {} -func (*PopularContact_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{89} -} -func (m *PopularContact_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PopularContact_Data.Unmarshal(m, b) -} -func (m *PopularContact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PopularContact_Data.Marshal(b, m, deterministic) -} -func (dst *PopularContact_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PopularContact_Data.Merge(dst, src) -} -func (m *PopularContact_Data) XXX_Size() int { - return xxx_messageInfo_PopularContact_Data.Size(m) -} -func (m *PopularContact_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PopularContact_Data.DiscardUnknown(m) +func (m *InputMedia_Data) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" } -var xxx_messageInfo_PopularContact_Data proto.InternalMessageInfo - -func (m *PopularContact_Data) GetClientId() int64 { +func (m *InputMedia_Data) GetLastName() string { if m != nil { - return m.ClientId + return m.LastName } - return 0 + return "" } -func (m *PopularContact_Data) GetImporters() int32 { +func (m *InputMedia_Data) GetVcard() string { if m != nil { - return m.Importers + return m.Vcard } - return 0 + return "" } -type PopularContact struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PopularContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputMedia_Data) GetNosoundVideo() bool { + if m != nil { + return m.NosoundVideo + } + return false } -func (m *PopularContact) Reset() { *m = PopularContact{} } -func (m *PopularContact) String() string { return proto.CompactTextString(m) } -func (*PopularContact) ProtoMessage() {} -func (*PopularContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{90} -} -func (m *PopularContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PopularContact.Unmarshal(m, b) -} -func (m *PopularContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PopularContact.Marshal(b, m, deterministic) -} -func (dst *PopularContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_PopularContact.Merge(dst, src) -} -func (m *PopularContact) XXX_Size() int { - return xxx_messageInfo_PopularContact.Size(m) -} -func (m *PopularContact) XXX_DiscardUnknown() { - xxx_messageInfo_PopularContact.DiscardUnknown(m) +func (m *InputMedia_Data) GetThumb() *InputFile { + if m != nil { + return m.Thumb + } + return nil } -var xxx_messageInfo_PopularContact proto.InternalMessageInfo - -func (m *PopularContact) GetConstructor() TLConstructor { +func (m *InputMedia_Data) GetMimeType() string { if m != nil { - return m.Constructor + return m.MimeType } - return TLConstructor_CRC32_UNKNOWN + return "" } -func (m *PopularContact) GetData2() *PopularContact_Data { +func (m *InputMedia_Data) GetAttributes() []*DocumentAttribute { if m != nil { - return m.Data2 + return m.Attributes } return nil } -// popularContact#5ce14175 client_id:long importers:int = PopularContact; -type TLPopularContact struct { - Data2 *PopularContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputMedia_Data) GetId_15() *InputDocument { + if m != nil { + return m.Id_15 + } + return nil } -func (m *TLPopularContact) Reset() { *m = TLPopularContact{} } -func (m *TLPopularContact) String() string { return proto.CompactTextString(m) } -func (*TLPopularContact) ProtoMessage() {} -func (*TLPopularContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{91} +func (m *InputMedia_Data) GetTitle() string { + if m != nil { + return m.Title + } + return "" } -func (m *TLPopularContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPopularContact.Unmarshal(m, b) + +func (m *InputMedia_Data) GetAddress() string { + if m != nil { + return m.Address + } + return "" } -func (m *TLPopularContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPopularContact.Marshal(b, m, deterministic) + +func (m *InputMedia_Data) GetProvider() string { + if m != nil { + return m.Provider + } + return "" } -func (dst *TLPopularContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPopularContact.Merge(dst, src) + +func (m *InputMedia_Data) GetVenueId() string { + if m != nil { + return m.VenueId + } + return "" } -func (m *TLPopularContact) XXX_Size() int { - return xxx_messageInfo_TLPopularContact.Size(m) + +func (m *InputMedia_Data) GetVenueType() string { + if m != nil { + return m.VenueType + } + return "" } -func (m *TLPopularContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLPopularContact.DiscardUnknown(m) + +func (m *InputMedia_Data) GetUrl() string { + if m != nil { + return m.Url + } + return "" } -var xxx_messageInfo_TLPopularContact proto.InternalMessageInfo +func (m *InputMedia_Data) GetQ() string { + if m != nil { + return m.Q + } + return "" +} -func (m *TLPopularContact) GetData2() *PopularContact_Data { +func (m *InputMedia_Data) GetId_23() *InputGame { if m != nil { - return m.Data2 + return m.Id_23 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputSingleMedia <-- -// + TL_inputSingleMedia -// -type InputSingleMedia_Data struct { - Media *InputMedia `protobuf:"bytes,1,opt,name=media,proto3" json:"media,omitempty"` - RandomId int64 `protobuf:"varint,2,opt,name=random_id,json=randomId,proto3" json:"random_id,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputMedia_Data) GetDescription() string { + if m != nil { + return m.Description + } + return "" } -func (m *InputSingleMedia_Data) Reset() { *m = InputSingleMedia_Data{} } -func (m *InputSingleMedia_Data) String() string { return proto.CompactTextString(m) } -func (*InputSingleMedia_Data) ProtoMessage() {} -func (*InputSingleMedia_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{92} -} -func (m *InputSingleMedia_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputSingleMedia_Data.Unmarshal(m, b) -} -func (m *InputSingleMedia_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputSingleMedia_Data.Marshal(b, m, deterministic) -} -func (dst *InputSingleMedia_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputSingleMedia_Data.Merge(dst, src) -} -func (m *InputSingleMedia_Data) XXX_Size() int { - return xxx_messageInfo_InputSingleMedia_Data.Size(m) -} -func (m *InputSingleMedia_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputSingleMedia_Data.DiscardUnknown(m) +func (m *InputMedia_Data) GetPhoto() *InputWebDocument { + if m != nil { + return m.Photo + } + return nil } -var xxx_messageInfo_InputSingleMedia_Data proto.InternalMessageInfo +func (m *InputMedia_Data) GetInvoice() *Invoice { + if m != nil { + return m.Invoice + } + return nil +} -func (m *InputSingleMedia_Data) GetMedia() *InputMedia { +func (m *InputMedia_Data) GetPayload() []byte { if m != nil { - return m.Media + return m.Payload } return nil } -func (m *InputSingleMedia_Data) GetRandomId() int64 { +func (m *InputMedia_Data) GetProviderData() *DataJSON { if m != nil { - return m.RandomId + return m.ProviderData } - return 0 + return nil } -func (m *InputSingleMedia_Data) GetMessage() string { +func (m *InputMedia_Data) GetStartParam() string { if m != nil { - return m.Message + return m.StartParam } return "" } -func (m *InputSingleMedia_Data) GetEntities() []*MessageEntity { +func (m *InputMedia_Data) GetPeriod() int32 { if m != nil { - return m.Entities + return m.Period } - return nil + return 0 } -type InputSingleMedia struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputSingleMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputMedia struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputSingleMedia) Reset() { *m = InputSingleMedia{} } -func (m *InputSingleMedia) String() string { return proto.CompactTextString(m) } -func (*InputSingleMedia) ProtoMessage() {} -func (*InputSingleMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{93} +func (m *InputMedia) Reset() { *m = InputMedia{} } +func (m *InputMedia) String() string { return proto.CompactTextString(m) } +func (*InputMedia) ProtoMessage() {} +func (*InputMedia) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{77} } -func (m *InputSingleMedia) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputSingleMedia.Unmarshal(m, b) +func (m *InputMedia) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputMedia.Unmarshal(m, b) } -func (m *InputSingleMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputSingleMedia.Marshal(b, m, deterministic) +func (m *InputMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputMedia.Marshal(b, m, deterministic) } -func (dst *InputSingleMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputSingleMedia.Merge(dst, src) +func (dst *InputMedia) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputMedia.Merge(dst, src) } -func (m *InputSingleMedia) XXX_Size() int { - return xxx_messageInfo_InputSingleMedia.Size(m) +func (m *InputMedia) XXX_Size() int { + return xxx_messageInfo_InputMedia.Size(m) } -func (m *InputSingleMedia) XXX_DiscardUnknown() { - xxx_messageInfo_InputSingleMedia.DiscardUnknown(m) +func (m *InputMedia) XXX_DiscardUnknown() { + xxx_messageInfo_InputMedia.DiscardUnknown(m) } -var xxx_messageInfo_InputSingleMedia proto.InternalMessageInfo +var xxx_messageInfo_InputMedia proto.InternalMessageInfo -func (m *InputSingleMedia) GetConstructor() TLConstructor { +func (m *InputMedia) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputSingleMedia) GetData2() *InputSingleMedia_Data { +func (m *InputMedia) GetData2() *InputMedia_Data { if m != nil { return m.Data2 } return nil } -// inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia; -type TLInputSingleMedia struct { - Data2 *InputSingleMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaPhoto#e9bfb4f3 id:InputPhoto caption:string = InputMedia; +type TLInputMediaPhotoLayer46 struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputSingleMedia) Reset() { *m = TLInputSingleMedia{} } -func (m *TLInputSingleMedia) String() string { return proto.CompactTextString(m) } -func (*TLInputSingleMedia) ProtoMessage() {} -func (*TLInputSingleMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{94} +func (m *TLInputMediaPhotoLayer46) Reset() { *m = TLInputMediaPhotoLayer46{} } +func (m *TLInputMediaPhotoLayer46) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaPhotoLayer46) ProtoMessage() {} +func (*TLInputMediaPhotoLayer46) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{78} } -func (m *TLInputSingleMedia) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputSingleMedia.Unmarshal(m, b) +func (m *TLInputMediaPhotoLayer46) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaPhotoLayer46.Unmarshal(m, b) } -func (m *TLInputSingleMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputSingleMedia.Marshal(b, m, deterministic) +func (m *TLInputMediaPhotoLayer46) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaPhotoLayer46.Marshal(b, m, deterministic) } -func (dst *TLInputSingleMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputSingleMedia.Merge(dst, src) +func (dst *TLInputMediaPhotoLayer46) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaPhotoLayer46.Merge(dst, src) } -func (m *TLInputSingleMedia) XXX_Size() int { - return xxx_messageInfo_TLInputSingleMedia.Size(m) +func (m *TLInputMediaPhotoLayer46) XXX_Size() int { + return xxx_messageInfo_TLInputMediaPhotoLayer46.Size(m) } -func (m *TLInputSingleMedia) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputSingleMedia.DiscardUnknown(m) +func (m *TLInputMediaPhotoLayer46) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaPhotoLayer46.DiscardUnknown(m) } -var xxx_messageInfo_TLInputSingleMedia proto.InternalMessageInfo +var xxx_messageInfo_TLInputMediaPhotoLayer46 proto.InternalMessageInfo -func (m *TLInputSingleMedia) GetData2() *InputSingleMedia_Data { +func (m *TLInputMediaPhotoLayer46) GetData2() *InputMedia_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputClientProxy <-- -// + TL_inputClientProxy -// -type InputClientProxy_Data struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaEmpty#9664f57f = InputMedia; +type TLInputMediaEmpty struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputClientProxy_Data) Reset() { *m = InputClientProxy_Data{} } -func (m *InputClientProxy_Data) String() string { return proto.CompactTextString(m) } -func (*InputClientProxy_Data) ProtoMessage() {} -func (*InputClientProxy_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{95} +func (m *TLInputMediaEmpty) Reset() { *m = TLInputMediaEmpty{} } +func (m *TLInputMediaEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaEmpty) ProtoMessage() {} +func (*TLInputMediaEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{79} } -func (m *InputClientProxy_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputClientProxy_Data.Unmarshal(m, b) +func (m *TLInputMediaEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaEmpty.Unmarshal(m, b) } -func (m *InputClientProxy_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputClientProxy_Data.Marshal(b, m, deterministic) +func (m *TLInputMediaEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaEmpty.Marshal(b, m, deterministic) } -func (dst *InputClientProxy_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputClientProxy_Data.Merge(dst, src) +func (dst *TLInputMediaEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaEmpty.Merge(dst, src) } -func (m *InputClientProxy_Data) XXX_Size() int { - return xxx_messageInfo_InputClientProxy_Data.Size(m) +func (m *TLInputMediaEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputMediaEmpty.Size(m) } -func (m *InputClientProxy_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputClientProxy_Data.DiscardUnknown(m) +func (m *TLInputMediaEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaEmpty.DiscardUnknown(m) } -var xxx_messageInfo_InputClientProxy_Data proto.InternalMessageInfo - -func (m *InputClientProxy_Data) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} +var xxx_messageInfo_TLInputMediaEmpty proto.InternalMessageInfo -func (m *InputClientProxy_Data) GetPort() int32 { +func (m *TLInputMediaEmpty) GetData2() *InputMedia_Data { if m != nil { - return m.Port + return m.Data2 } - return 0 + return nil } -type InputClientProxy struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputClientProxy_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; +type TLInputMediaUploadedPhoto struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputClientProxy) Reset() { *m = InputClientProxy{} } -func (m *InputClientProxy) String() string { return proto.CompactTextString(m) } -func (*InputClientProxy) ProtoMessage() {} -func (*InputClientProxy) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{96} +func (m *TLInputMediaUploadedPhoto) Reset() { *m = TLInputMediaUploadedPhoto{} } +func (m *TLInputMediaUploadedPhoto) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaUploadedPhoto) ProtoMessage() {} +func (*TLInputMediaUploadedPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{80} } -func (m *InputClientProxy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputClientProxy.Unmarshal(m, b) +func (m *TLInputMediaUploadedPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaUploadedPhoto.Unmarshal(m, b) } -func (m *InputClientProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputClientProxy.Marshal(b, m, deterministic) +func (m *TLInputMediaUploadedPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaUploadedPhoto.Marshal(b, m, deterministic) } -func (dst *InputClientProxy) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputClientProxy.Merge(dst, src) +func (dst *TLInputMediaUploadedPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaUploadedPhoto.Merge(dst, src) } -func (m *InputClientProxy) XXX_Size() int { - return xxx_messageInfo_InputClientProxy.Size(m) +func (m *TLInputMediaUploadedPhoto) XXX_Size() int { + return xxx_messageInfo_TLInputMediaUploadedPhoto.Size(m) } -func (m *InputClientProxy) XXX_DiscardUnknown() { - xxx_messageInfo_InputClientProxy.DiscardUnknown(m) +func (m *TLInputMediaUploadedPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaUploadedPhoto.DiscardUnknown(m) } -var xxx_messageInfo_InputClientProxy proto.InternalMessageInfo - -func (m *InputClientProxy) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputMediaUploadedPhoto proto.InternalMessageInfo -func (m *InputClientProxy) GetData2() *InputClientProxy_Data { +func (m *TLInputMediaUploadedPhoto) GetData2() *InputMedia_Data { if m != nil { return m.Data2 } return nil } -// inputClientProxy#75588b3f address:string port:int = InputClientProxy; -type TLInputClientProxy struct { - Data2 *InputClientProxy_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia; +type TLInputMediaPhoto struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputClientProxy) Reset() { *m = TLInputClientProxy{} } -func (m *TLInputClientProxy) String() string { return proto.CompactTextString(m) } -func (*TLInputClientProxy) ProtoMessage() {} -func (*TLInputClientProxy) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{97} +func (m *TLInputMediaPhoto) Reset() { *m = TLInputMediaPhoto{} } +func (m *TLInputMediaPhoto) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaPhoto) ProtoMessage() {} +func (*TLInputMediaPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{81} } -func (m *TLInputClientProxy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputClientProxy.Unmarshal(m, b) +func (m *TLInputMediaPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaPhoto.Unmarshal(m, b) } -func (m *TLInputClientProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputClientProxy.Marshal(b, m, deterministic) +func (m *TLInputMediaPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaPhoto.Marshal(b, m, deterministic) } -func (dst *TLInputClientProxy) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputClientProxy.Merge(dst, src) +func (dst *TLInputMediaPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaPhoto.Merge(dst, src) } -func (m *TLInputClientProxy) XXX_Size() int { - return xxx_messageInfo_TLInputClientProxy.Size(m) +func (m *TLInputMediaPhoto) XXX_Size() int { + return xxx_messageInfo_TLInputMediaPhoto.Size(m) } -func (m *TLInputClientProxy) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputClientProxy.DiscardUnknown(m) +func (m *TLInputMediaPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaPhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLInputClientProxy proto.InternalMessageInfo +var xxx_messageInfo_TLInputMediaPhoto proto.InternalMessageInfo -func (m *TLInputClientProxy) GetData2() *InputClientProxy_Data { +func (m *TLInputMediaPhoto) GetData2() *InputMedia_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// help_AppUpdate <-- -// + TL_help_appUpdate -// + TL_help_noAppUpdate -// -type Help_AppUpdate_Data struct { - Popup bool `protobuf:"varint,1,opt,name=popup,proto3" json:"popup,omitempty"` - Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,5,rep,name=entities,proto3" json:"entities,omitempty"` - Document *Document `protobuf:"bytes,6,opt,name=document,proto3" json:"document,omitempty"` - Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` +// inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia; +type TLInputMediaGeoPoint struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Help_AppUpdate_Data) Reset() { *m = Help_AppUpdate_Data{} } -func (m *Help_AppUpdate_Data) String() string { return proto.CompactTextString(m) } -func (*Help_AppUpdate_Data) ProtoMessage() {} -func (*Help_AppUpdate_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{98} +func (m *TLInputMediaGeoPoint) Reset() { *m = TLInputMediaGeoPoint{} } +func (m *TLInputMediaGeoPoint) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaGeoPoint) ProtoMessage() {} +func (*TLInputMediaGeoPoint) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{82} } -func (m *Help_AppUpdate_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_AppUpdate_Data.Unmarshal(m, b) +func (m *TLInputMediaGeoPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaGeoPoint.Unmarshal(m, b) } -func (m *Help_AppUpdate_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_AppUpdate_Data.Marshal(b, m, deterministic) +func (m *TLInputMediaGeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaGeoPoint.Marshal(b, m, deterministic) } -func (dst *Help_AppUpdate_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_AppUpdate_Data.Merge(dst, src) +func (dst *TLInputMediaGeoPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaGeoPoint.Merge(dst, src) } -func (m *Help_AppUpdate_Data) XXX_Size() int { - return xxx_messageInfo_Help_AppUpdate_Data.Size(m) +func (m *TLInputMediaGeoPoint) XXX_Size() int { + return xxx_messageInfo_TLInputMediaGeoPoint.Size(m) } -func (m *Help_AppUpdate_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_AppUpdate_Data.DiscardUnknown(m) +func (m *TLInputMediaGeoPoint) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaGeoPoint.DiscardUnknown(m) } -var xxx_messageInfo_Help_AppUpdate_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputMediaGeoPoint proto.InternalMessageInfo -func (m *Help_AppUpdate_Data) GetPopup() bool { +func (m *TLInputMediaGeoPoint) GetData2() *InputMedia_Data { if m != nil { - return m.Popup + return m.Data2 } - return false + return nil } -func (m *Help_AppUpdate_Data) GetId() int32 { - if m != nil { - return m.Id - } - return 0 +// inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia; +type TLInputMediaContact struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_AppUpdate_Data) GetVersion() string { - if m != nil { - return m.Version - } - return "" +func (m *TLInputMediaContact) Reset() { *m = TLInputMediaContact{} } +func (m *TLInputMediaContact) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaContact) ProtoMessage() {} +func (*TLInputMediaContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{83} } - -func (m *Help_AppUpdate_Data) GetText() string { - if m != nil { - return m.Text - } - return "" +func (m *TLInputMediaContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaContact.Unmarshal(m, b) +} +func (m *TLInputMediaContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaContact.Marshal(b, m, deterministic) +} +func (dst *TLInputMediaContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaContact.Merge(dst, src) +} +func (m *TLInputMediaContact) XXX_Size() int { + return xxx_messageInfo_TLInputMediaContact.Size(m) +} +func (m *TLInputMediaContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaContact.DiscardUnknown(m) } -func (m *Help_AppUpdate_Data) GetEntities() []*MessageEntity { +var xxx_messageInfo_TLInputMediaContact proto.InternalMessageInfo + +func (m *TLInputMediaContact) GetData2() *InputMedia_Data { if m != nil { - return m.Entities + return m.Data2 } return nil } -func (m *Help_AppUpdate_Data) GetDocument() *Document { - if m != nil { - return m.Document - } - return nil +// inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; +type TLInputMediaUploadedDocument struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_AppUpdate_Data) GetUrl() string { +func (m *TLInputMediaUploadedDocument) Reset() { *m = TLInputMediaUploadedDocument{} } +func (m *TLInputMediaUploadedDocument) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaUploadedDocument) ProtoMessage() {} +func (*TLInputMediaUploadedDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{84} +} +func (m *TLInputMediaUploadedDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaUploadedDocument.Unmarshal(m, b) +} +func (m *TLInputMediaUploadedDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaUploadedDocument.Marshal(b, m, deterministic) +} +func (dst *TLInputMediaUploadedDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaUploadedDocument.Merge(dst, src) +} +func (m *TLInputMediaUploadedDocument) XXX_Size() int { + return xxx_messageInfo_TLInputMediaUploadedDocument.Size(m) +} +func (m *TLInputMediaUploadedDocument) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaUploadedDocument.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputMediaUploadedDocument proto.InternalMessageInfo + +func (m *TLInputMediaUploadedDocument) GetData2() *InputMedia_Data { if m != nil { - return m.Url + return m.Data2 } - return "" + return nil } -type Help_AppUpdate struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_AppUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia; +type TLInputMediaDocument struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_AppUpdate) Reset() { *m = Help_AppUpdate{} } -func (m *Help_AppUpdate) String() string { return proto.CompactTextString(m) } -func (*Help_AppUpdate) ProtoMessage() {} -func (*Help_AppUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{99} +func (m *TLInputMediaDocument) Reset() { *m = TLInputMediaDocument{} } +func (m *TLInputMediaDocument) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaDocument) ProtoMessage() {} +func (*TLInputMediaDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{85} } -func (m *Help_AppUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_AppUpdate.Unmarshal(m, b) +func (m *TLInputMediaDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaDocument.Unmarshal(m, b) } -func (m *Help_AppUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_AppUpdate.Marshal(b, m, deterministic) +func (m *TLInputMediaDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaDocument.Marshal(b, m, deterministic) } -func (dst *Help_AppUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_AppUpdate.Merge(dst, src) +func (dst *TLInputMediaDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaDocument.Merge(dst, src) } -func (m *Help_AppUpdate) XXX_Size() int { - return xxx_messageInfo_Help_AppUpdate.Size(m) +func (m *TLInputMediaDocument) XXX_Size() int { + return xxx_messageInfo_TLInputMediaDocument.Size(m) } -func (m *Help_AppUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_Help_AppUpdate.DiscardUnknown(m) +func (m *TLInputMediaDocument) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaDocument.DiscardUnknown(m) } -var xxx_messageInfo_Help_AppUpdate proto.InternalMessageInfo - -func (m *Help_AppUpdate) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputMediaDocument proto.InternalMessageInfo -func (m *Help_AppUpdate) GetData2() *Help_AppUpdate_Data { +func (m *TLInputMediaDocument) GetData2() *InputMedia_Data { if m != nil { return m.Data2 } return nil } -// help.appUpdate#1da7158f flags:# popup:flags.0?true id:int version:string text:string entities:Vector document:flags.1?Document url:flags.2?string = help.AppUpdate; -type TLHelpAppUpdate struct { - Data2 *Help_AppUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia; +type TLInputMediaVenue struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpAppUpdate) Reset() { *m = TLHelpAppUpdate{} } -func (m *TLHelpAppUpdate) String() string { return proto.CompactTextString(m) } -func (*TLHelpAppUpdate) ProtoMessage() {} -func (*TLHelpAppUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{100} +func (m *TLInputMediaVenue) Reset() { *m = TLInputMediaVenue{} } +func (m *TLInputMediaVenue) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaVenue) ProtoMessage() {} +func (*TLInputMediaVenue) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{86} } -func (m *TLHelpAppUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpAppUpdate.Unmarshal(m, b) +func (m *TLInputMediaVenue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaVenue.Unmarshal(m, b) } -func (m *TLHelpAppUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpAppUpdate.Marshal(b, m, deterministic) +func (m *TLInputMediaVenue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaVenue.Marshal(b, m, deterministic) } -func (dst *TLHelpAppUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpAppUpdate.Merge(dst, src) +func (dst *TLInputMediaVenue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaVenue.Merge(dst, src) } -func (m *TLHelpAppUpdate) XXX_Size() int { - return xxx_messageInfo_TLHelpAppUpdate.Size(m) +func (m *TLInputMediaVenue) XXX_Size() int { + return xxx_messageInfo_TLInputMediaVenue.Size(m) } -func (m *TLHelpAppUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpAppUpdate.DiscardUnknown(m) +func (m *TLInputMediaVenue) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaVenue.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpAppUpdate proto.InternalMessageInfo +var xxx_messageInfo_TLInputMediaVenue proto.InternalMessageInfo -func (m *TLHelpAppUpdate) GetData2() *Help_AppUpdate_Data { +func (m *TLInputMediaVenue) GetData2() *InputMedia_Data { if m != nil { return m.Data2 } return nil } -// help.noAppUpdate#c45a6536 = help.AppUpdate; -type TLHelpNoAppUpdate struct { - Data2 *Help_AppUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaGifExternal#4843b0fd url:string q:string = InputMedia; +type TLInputMediaGifExternal struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpNoAppUpdate) Reset() { *m = TLHelpNoAppUpdate{} } -func (m *TLHelpNoAppUpdate) String() string { return proto.CompactTextString(m) } -func (*TLHelpNoAppUpdate) ProtoMessage() {} -func (*TLHelpNoAppUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{101} +func (m *TLInputMediaGifExternal) Reset() { *m = TLInputMediaGifExternal{} } +func (m *TLInputMediaGifExternal) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaGifExternal) ProtoMessage() {} +func (*TLInputMediaGifExternal) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{87} } -func (m *TLHelpNoAppUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpNoAppUpdate.Unmarshal(m, b) +func (m *TLInputMediaGifExternal) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaGifExternal.Unmarshal(m, b) } -func (m *TLHelpNoAppUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpNoAppUpdate.Marshal(b, m, deterministic) +func (m *TLInputMediaGifExternal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaGifExternal.Marshal(b, m, deterministic) } -func (dst *TLHelpNoAppUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpNoAppUpdate.Merge(dst, src) +func (dst *TLInputMediaGifExternal) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaGifExternal.Merge(dst, src) } -func (m *TLHelpNoAppUpdate) XXX_Size() int { - return xxx_messageInfo_TLHelpNoAppUpdate.Size(m) +func (m *TLInputMediaGifExternal) XXX_Size() int { + return xxx_messageInfo_TLInputMediaGifExternal.Size(m) } -func (m *TLHelpNoAppUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpNoAppUpdate.DiscardUnknown(m) +func (m *TLInputMediaGifExternal) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaGifExternal.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpNoAppUpdate proto.InternalMessageInfo +var xxx_messageInfo_TLInputMediaGifExternal proto.InternalMessageInfo -func (m *TLHelpNoAppUpdate) GetData2() *Help_AppUpdate_Data { +func (m *TLInputMediaGifExternal) GetData2() *InputMedia_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ChannelBannedRights <-- -// + TL_channelBannedRights -// -type ChannelBannedRights_Data struct { - ViewMessages bool `protobuf:"varint,1,opt,name=view_messages,json=viewMessages,proto3" json:"view_messages,omitempty"` - SendMessages bool `protobuf:"varint,2,opt,name=send_messages,json=sendMessages,proto3" json:"send_messages,omitempty"` - SendMedia bool `protobuf:"varint,3,opt,name=send_media,json=sendMedia,proto3" json:"send_media,omitempty"` - SendStickers bool `protobuf:"varint,4,opt,name=send_stickers,json=sendStickers,proto3" json:"send_stickers,omitempty"` - SendGifs bool `protobuf:"varint,5,opt,name=send_gifs,json=sendGifs,proto3" json:"send_gifs,omitempty"` - SendGames bool `protobuf:"varint,6,opt,name=send_games,json=sendGames,proto3" json:"send_games,omitempty"` - SendInline bool `protobuf:"varint,7,opt,name=send_inline,json=sendInline,proto3" json:"send_inline,omitempty"` - EmbedLinks bool `protobuf:"varint,8,opt,name=embed_links,json=embedLinks,proto3" json:"embed_links,omitempty"` - UntilDate int32 `protobuf:"varint,9,opt,name=until_date,json=untilDate,proto3" json:"until_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia; +type TLInputMediaPhotoExternal struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelBannedRights_Data) Reset() { *m = ChannelBannedRights_Data{} } -func (m *ChannelBannedRights_Data) String() string { return proto.CompactTextString(m) } -func (*ChannelBannedRights_Data) ProtoMessage() {} -func (*ChannelBannedRights_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{102} +func (m *TLInputMediaPhotoExternal) Reset() { *m = TLInputMediaPhotoExternal{} } +func (m *TLInputMediaPhotoExternal) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaPhotoExternal) ProtoMessage() {} +func (*TLInputMediaPhotoExternal) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{88} } -func (m *ChannelBannedRights_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelBannedRights_Data.Unmarshal(m, b) +func (m *TLInputMediaPhotoExternal) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaPhotoExternal.Unmarshal(m, b) } -func (m *ChannelBannedRights_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelBannedRights_Data.Marshal(b, m, deterministic) +func (m *TLInputMediaPhotoExternal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaPhotoExternal.Marshal(b, m, deterministic) } -func (dst *ChannelBannedRights_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelBannedRights_Data.Merge(dst, src) +func (dst *TLInputMediaPhotoExternal) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaPhotoExternal.Merge(dst, src) } -func (m *ChannelBannedRights_Data) XXX_Size() int { - return xxx_messageInfo_ChannelBannedRights_Data.Size(m) +func (m *TLInputMediaPhotoExternal) XXX_Size() int { + return xxx_messageInfo_TLInputMediaPhotoExternal.Size(m) } -func (m *ChannelBannedRights_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelBannedRights_Data.DiscardUnknown(m) +func (m *TLInputMediaPhotoExternal) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaPhotoExternal.DiscardUnknown(m) } -var xxx_messageInfo_ChannelBannedRights_Data proto.InternalMessageInfo - -func (m *ChannelBannedRights_Data) GetViewMessages() bool { - if m != nil { - return m.ViewMessages - } - return false -} +var xxx_messageInfo_TLInputMediaPhotoExternal proto.InternalMessageInfo -func (m *ChannelBannedRights_Data) GetSendMessages() bool { +func (m *TLInputMediaPhotoExternal) GetData2() *InputMedia_Data { if m != nil { - return m.SendMessages + return m.Data2 } - return false + return nil } -func (m *ChannelBannedRights_Data) GetSendMedia() bool { - if m != nil { - return m.SendMedia - } - return false +// inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia; +type TLInputMediaDocumentExternal struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelBannedRights_Data) GetSendStickers() bool { - if m != nil { - return m.SendStickers - } - return false +func (m *TLInputMediaDocumentExternal) Reset() { *m = TLInputMediaDocumentExternal{} } +func (m *TLInputMediaDocumentExternal) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaDocumentExternal) ProtoMessage() {} +func (*TLInputMediaDocumentExternal) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{89} } - -func (m *ChannelBannedRights_Data) GetSendGifs() bool { - if m != nil { - return m.SendGifs - } - return false +func (m *TLInputMediaDocumentExternal) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaDocumentExternal.Unmarshal(m, b) +} +func (m *TLInputMediaDocumentExternal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaDocumentExternal.Marshal(b, m, deterministic) +} +func (dst *TLInputMediaDocumentExternal) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaDocumentExternal.Merge(dst, src) +} +func (m *TLInputMediaDocumentExternal) XXX_Size() int { + return xxx_messageInfo_TLInputMediaDocumentExternal.Size(m) +} +func (m *TLInputMediaDocumentExternal) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaDocumentExternal.DiscardUnknown(m) } -func (m *ChannelBannedRights_Data) GetSendGames() bool { +var xxx_messageInfo_TLInputMediaDocumentExternal proto.InternalMessageInfo + +func (m *TLInputMediaDocumentExternal) GetData2() *InputMedia_Data { if m != nil { - return m.SendGames + return m.Data2 } - return false + return nil } -func (m *ChannelBannedRights_Data) GetSendInline() bool { - if m != nil { - return m.SendInline - } - return false +// inputMediaGame#d33f43f3 id:InputGame = InputMedia; +type TLInputMediaGame struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelBannedRights_Data) GetEmbedLinks() bool { - if m != nil { - return m.EmbedLinks - } - return false +func (m *TLInputMediaGame) Reset() { *m = TLInputMediaGame{} } +func (m *TLInputMediaGame) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaGame) ProtoMessage() {} +func (*TLInputMediaGame) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{90} +} +func (m *TLInputMediaGame) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaGame.Unmarshal(m, b) +} +func (m *TLInputMediaGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaGame.Marshal(b, m, deterministic) +} +func (dst *TLInputMediaGame) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaGame.Merge(dst, src) +} +func (m *TLInputMediaGame) XXX_Size() int { + return xxx_messageInfo_TLInputMediaGame.Size(m) +} +func (m *TLInputMediaGame) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaGame.DiscardUnknown(m) } -func (m *ChannelBannedRights_Data) GetUntilDate() int32 { +var xxx_messageInfo_TLInputMediaGame proto.InternalMessageInfo + +func (m *TLInputMediaGame) GetData2() *InputMedia_Data { if m != nil { - return m.UntilDate + return m.Data2 } - return 0 + return nil } -type ChannelBannedRights struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChannelBannedRights_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia; +type TLInputMediaInvoice struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelBannedRights) Reset() { *m = ChannelBannedRights{} } -func (m *ChannelBannedRights) String() string { return proto.CompactTextString(m) } -func (*ChannelBannedRights) ProtoMessage() {} -func (*ChannelBannedRights) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{103} +func (m *TLInputMediaInvoice) Reset() { *m = TLInputMediaInvoice{} } +func (m *TLInputMediaInvoice) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaInvoice) ProtoMessage() {} +func (*TLInputMediaInvoice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{91} } -func (m *ChannelBannedRights) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelBannedRights.Unmarshal(m, b) +func (m *TLInputMediaInvoice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaInvoice.Unmarshal(m, b) } -func (m *ChannelBannedRights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelBannedRights.Marshal(b, m, deterministic) +func (m *TLInputMediaInvoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaInvoice.Marshal(b, m, deterministic) } -func (dst *ChannelBannedRights) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelBannedRights.Merge(dst, src) +func (dst *TLInputMediaInvoice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaInvoice.Merge(dst, src) } -func (m *ChannelBannedRights) XXX_Size() int { - return xxx_messageInfo_ChannelBannedRights.Size(m) +func (m *TLInputMediaInvoice) XXX_Size() int { + return xxx_messageInfo_TLInputMediaInvoice.Size(m) } -func (m *ChannelBannedRights) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelBannedRights.DiscardUnknown(m) +func (m *TLInputMediaInvoice) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaInvoice.DiscardUnknown(m) } -var xxx_messageInfo_ChannelBannedRights proto.InternalMessageInfo - -func (m *ChannelBannedRights) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputMediaInvoice proto.InternalMessageInfo -func (m *ChannelBannedRights) GetData2() *ChannelBannedRights_Data { +func (m *TLInputMediaInvoice) GetData2() *InputMedia_Data { if m != nil { return m.Data2 } return nil } -// channelBannedRights#58cf4249 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true until_date:int = ChannelBannedRights; -type TLChannelBannedRights struct { - Data2 *ChannelBannedRights_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMediaGeoLive#7b1a118f geo_point:InputGeoPoint period:int = InputMedia; +type TLInputMediaGeoLive struct { + Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelBannedRights) Reset() { *m = TLChannelBannedRights{} } -func (m *TLChannelBannedRights) String() string { return proto.CompactTextString(m) } -func (*TLChannelBannedRights) ProtoMessage() {} -func (*TLChannelBannedRights) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{104} +func (m *TLInputMediaGeoLive) Reset() { *m = TLInputMediaGeoLive{} } +func (m *TLInputMediaGeoLive) String() string { return proto.CompactTextString(m) } +func (*TLInputMediaGeoLive) ProtoMessage() {} +func (*TLInputMediaGeoLive) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{92} } -func (m *TLChannelBannedRights) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelBannedRights.Unmarshal(m, b) +func (m *TLInputMediaGeoLive) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMediaGeoLive.Unmarshal(m, b) } -func (m *TLChannelBannedRights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelBannedRights.Marshal(b, m, deterministic) +func (m *TLInputMediaGeoLive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMediaGeoLive.Marshal(b, m, deterministic) } -func (dst *TLChannelBannedRights) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelBannedRights.Merge(dst, src) +func (dst *TLInputMediaGeoLive) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMediaGeoLive.Merge(dst, src) } -func (m *TLChannelBannedRights) XXX_Size() int { - return xxx_messageInfo_TLChannelBannedRights.Size(m) +func (m *TLInputMediaGeoLive) XXX_Size() int { + return xxx_messageInfo_TLInputMediaGeoLive.Size(m) } -func (m *TLChannelBannedRights) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelBannedRights.DiscardUnknown(m) +func (m *TLInputMediaGeoLive) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMediaGeoLive.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelBannedRights proto.InternalMessageInfo +var xxx_messageInfo_TLInputMediaGeoLive proto.InternalMessageInfo -func (m *TLChannelBannedRights) GetData2() *ChannelBannedRights_Data { +func (m *TLInputMediaGeoLive) GetData2() *InputMedia_Data { if m != nil { return m.Data2 } @@ -4906,803 +4774,236 @@ func (m *TLChannelBannedRights) GetData2() *ChannelBannedRights_Data { } // ///////////////////////////////////////////////////////////////////////////// -// SavedContact <-- -// + TL_savedPhoneContact +// InputGeoPoint <-- +// + TL_inputGeoPointEmpty +// + TL_inputGeoPoint // -type SavedContact_Data struct { - Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Date int32 `protobuf:"varint,4,opt,name=date,proto3" json:"date,omitempty"` +type InputGeoPoint_Data struct { + Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"` + Long float64 `protobuf:"fixed64,2,opt,name=long,proto3" json:"long,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SavedContact_Data) Reset() { *m = SavedContact_Data{} } -func (m *SavedContact_Data) String() string { return proto.CompactTextString(m) } -func (*SavedContact_Data) ProtoMessage() {} -func (*SavedContact_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{105} -} -func (m *SavedContact_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SavedContact_Data.Unmarshal(m, b) +func (m *InputGeoPoint_Data) Reset() { *m = InputGeoPoint_Data{} } +func (m *InputGeoPoint_Data) String() string { return proto.CompactTextString(m) } +func (*InputGeoPoint_Data) ProtoMessage() {} +func (*InputGeoPoint_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{93} } -func (m *SavedContact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SavedContact_Data.Marshal(b, m, deterministic) +func (m *InputGeoPoint_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputGeoPoint_Data.Unmarshal(m, b) } -func (dst *SavedContact_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SavedContact_Data.Merge(dst, src) +func (m *InputGeoPoint_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputGeoPoint_Data.Marshal(b, m, deterministic) } -func (m *SavedContact_Data) XXX_Size() int { - return xxx_messageInfo_SavedContact_Data.Size(m) +func (dst *InputGeoPoint_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputGeoPoint_Data.Merge(dst, src) } -func (m *SavedContact_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SavedContact_Data.DiscardUnknown(m) +func (m *InputGeoPoint_Data) XXX_Size() int { + return xxx_messageInfo_InputGeoPoint_Data.Size(m) } - -var xxx_messageInfo_SavedContact_Data proto.InternalMessageInfo - -func (m *SavedContact_Data) GetPhone() string { - if m != nil { - return m.Phone - } - return "" +func (m *InputGeoPoint_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputGeoPoint_Data.DiscardUnknown(m) } -func (m *SavedContact_Data) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} +var xxx_messageInfo_InputGeoPoint_Data proto.InternalMessageInfo -func (m *SavedContact_Data) GetLastName() string { +func (m *InputGeoPoint_Data) GetLat() float64 { if m != nil { - return m.LastName + return m.Lat } - return "" + return 0 } -func (m *SavedContact_Data) GetDate() int32 { +func (m *InputGeoPoint_Data) GetLong() float64 { if m != nil { - return m.Date + return m.Long } return 0 } -type SavedContact struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SavedContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputGeoPoint struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputGeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SavedContact) Reset() { *m = SavedContact{} } -func (m *SavedContact) String() string { return proto.CompactTextString(m) } -func (*SavedContact) ProtoMessage() {} -func (*SavedContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{106} +func (m *InputGeoPoint) Reset() { *m = InputGeoPoint{} } +func (m *InputGeoPoint) String() string { return proto.CompactTextString(m) } +func (*InputGeoPoint) ProtoMessage() {} +func (*InputGeoPoint) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{94} } -func (m *SavedContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SavedContact.Unmarshal(m, b) +func (m *InputGeoPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputGeoPoint.Unmarshal(m, b) } -func (m *SavedContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SavedContact.Marshal(b, m, deterministic) +func (m *InputGeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputGeoPoint.Marshal(b, m, deterministic) } -func (dst *SavedContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_SavedContact.Merge(dst, src) +func (dst *InputGeoPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputGeoPoint.Merge(dst, src) } -func (m *SavedContact) XXX_Size() int { - return xxx_messageInfo_SavedContact.Size(m) +func (m *InputGeoPoint) XXX_Size() int { + return xxx_messageInfo_InputGeoPoint.Size(m) } -func (m *SavedContact) XXX_DiscardUnknown() { - xxx_messageInfo_SavedContact.DiscardUnknown(m) +func (m *InputGeoPoint) XXX_DiscardUnknown() { + xxx_messageInfo_InputGeoPoint.DiscardUnknown(m) } -var xxx_messageInfo_SavedContact proto.InternalMessageInfo +var xxx_messageInfo_InputGeoPoint proto.InternalMessageInfo -func (m *SavedContact) GetConstructor() TLConstructor { +func (m *InputGeoPoint) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *SavedContact) GetData2() *SavedContact_Data { +func (m *InputGeoPoint) GetData2() *InputGeoPoint_Data { if m != nil { return m.Data2 } return nil } -// savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact; -type TLSavedPhoneContact struct { - Data2 *SavedContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputGeoPointEmpty#e4c123d6 = InputGeoPoint; +type TLInputGeoPointEmpty struct { + Data2 *InputGeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSavedPhoneContact) Reset() { *m = TLSavedPhoneContact{} } -func (m *TLSavedPhoneContact) String() string { return proto.CompactTextString(m) } -func (*TLSavedPhoneContact) ProtoMessage() {} -func (*TLSavedPhoneContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{107} +func (m *TLInputGeoPointEmpty) Reset() { *m = TLInputGeoPointEmpty{} } +func (m *TLInputGeoPointEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputGeoPointEmpty) ProtoMessage() {} +func (*TLInputGeoPointEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{95} } -func (m *TLSavedPhoneContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSavedPhoneContact.Unmarshal(m, b) +func (m *TLInputGeoPointEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputGeoPointEmpty.Unmarshal(m, b) } -func (m *TLSavedPhoneContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSavedPhoneContact.Marshal(b, m, deterministic) +func (m *TLInputGeoPointEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputGeoPointEmpty.Marshal(b, m, deterministic) } -func (dst *TLSavedPhoneContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSavedPhoneContact.Merge(dst, src) +func (dst *TLInputGeoPointEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputGeoPointEmpty.Merge(dst, src) } -func (m *TLSavedPhoneContact) XXX_Size() int { - return xxx_messageInfo_TLSavedPhoneContact.Size(m) +func (m *TLInputGeoPointEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputGeoPointEmpty.Size(m) } -func (m *TLSavedPhoneContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLSavedPhoneContact.DiscardUnknown(m) +func (m *TLInputGeoPointEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputGeoPointEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLSavedPhoneContact proto.InternalMessageInfo +var xxx_messageInfo_TLInputGeoPointEmpty proto.InternalMessageInfo -func (m *TLSavedPhoneContact) GetData2() *SavedContact_Data { +func (m *TLInputGeoPointEmpty) GetData2() *InputGeoPoint_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Updates <-- -// + TL_updateAccountResetAuthorization -// + TL_updatesTooLong -// + TL_updateShortMessage -// + TL_updateShortChatMessage -// + TL_updateShort -// + TL_updatesCombined -// + TL_updates -// + TL_updateShortSentMessage -// -type Updates_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - AuthKeyId int64 `protobuf:"varint,2,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` - Out bool `protobuf:"varint,3,opt,name=out,proto3" json:"out,omitempty"` - Mentioned bool `protobuf:"varint,4,opt,name=mentioned,proto3" json:"mentioned,omitempty"` - MediaUnread bool `protobuf:"varint,5,opt,name=media_unread,json=mediaUnread,proto3" json:"media_unread,omitempty"` - Silent bool `protobuf:"varint,6,opt,name=silent,proto3" json:"silent,omitempty"` - Id int32 `protobuf:"varint,7,opt,name=id,proto3" json:"id,omitempty"` - Message string `protobuf:"bytes,8,opt,name=message,proto3" json:"message,omitempty"` - Pts int32 `protobuf:"varint,9,opt,name=pts,proto3" json:"pts,omitempty"` - PtsCount int32 `protobuf:"varint,10,opt,name=pts_count,json=ptsCount,proto3" json:"pts_count,omitempty"` - Date int32 `protobuf:"varint,11,opt,name=date,proto3" json:"date,omitempty"` - FwdFrom *MessageFwdHeader `protobuf:"bytes,12,opt,name=fwd_from,json=fwdFrom,proto3" json:"fwd_from,omitempty"` - ViaBotId int32 `protobuf:"varint,13,opt,name=via_bot_id,json=viaBotId,proto3" json:"via_bot_id,omitempty"` - ReplyToMsgId int32 `protobuf:"varint,14,opt,name=reply_to_msg_id,json=replyToMsgId,proto3" json:"reply_to_msg_id,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,15,rep,name=entities,proto3" json:"entities,omitempty"` - FromId int32 `protobuf:"varint,16,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` - ChatId int32 `protobuf:"varint,17,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - Update *Update `protobuf:"bytes,18,opt,name=update,proto3" json:"update,omitempty"` - Updates []*Update `protobuf:"bytes,19,rep,name=updates,proto3" json:"updates,omitempty"` - Users []*User `protobuf:"bytes,20,rep,name=users,proto3" json:"users,omitempty"` - Chats []*Chat `protobuf:"bytes,21,rep,name=chats,proto3" json:"chats,omitempty"` - SeqStart int32 `protobuf:"varint,22,opt,name=seq_start,json=seqStart,proto3" json:"seq_start,omitempty"` - Seq int32 `protobuf:"varint,23,opt,name=seq,proto3" json:"seq,omitempty"` - Media *MessageMedia `protobuf:"bytes,24,opt,name=media,proto3" json:"media,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputGeoPoint#f3b7acc9 lat:double long:double = InputGeoPoint; +type TLInputGeoPoint struct { + Data2 *InputGeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Updates_Data) Reset() { *m = Updates_Data{} } -func (m *Updates_Data) String() string { return proto.CompactTextString(m) } -func (*Updates_Data) ProtoMessage() {} -func (*Updates_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{108} +func (m *TLInputGeoPoint) Reset() { *m = TLInputGeoPoint{} } +func (m *TLInputGeoPoint) String() string { return proto.CompactTextString(m) } +func (*TLInputGeoPoint) ProtoMessage() {} +func (*TLInputGeoPoint) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{96} } -func (m *Updates_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Updates_Data.Unmarshal(m, b) +func (m *TLInputGeoPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputGeoPoint.Unmarshal(m, b) } -func (m *Updates_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Updates_Data.Marshal(b, m, deterministic) +func (m *TLInputGeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputGeoPoint.Marshal(b, m, deterministic) } -func (dst *Updates_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Updates_Data.Merge(dst, src) +func (dst *TLInputGeoPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputGeoPoint.Merge(dst, src) } -func (m *Updates_Data) XXX_Size() int { - return xxx_messageInfo_Updates_Data.Size(m) +func (m *TLInputGeoPoint) XXX_Size() int { + return xxx_messageInfo_TLInputGeoPoint.Size(m) } -func (m *Updates_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Updates_Data.DiscardUnknown(m) +func (m *TLInputGeoPoint) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputGeoPoint.DiscardUnknown(m) } -var xxx_messageInfo_Updates_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputGeoPoint proto.InternalMessageInfo -func (m *Updates_Data) GetUserId() int32 { +func (m *TLInputGeoPoint) GetData2() *InputGeoPoint_Data { if m != nil { - return m.UserId + return m.Data2 } - return 0 + return nil } -func (m *Updates_Data) GetAuthKeyId() int64 { - if m != nil { - return m.AuthKeyId - } - return 0 +// ///////////////////////////////////////////////////////////////////////////// +// InputDocument <-- +// + TL_inputDocumentEmpty +// + TL_inputDocument +// + TL_inputDocumentLayer86 +// +type InputDocument_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + FileReference []byte `protobuf:"bytes,3,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Updates_Data) GetOut() bool { - if m != nil { - return m.Out - } - return false +func (m *InputDocument_Data) Reset() { *m = InputDocument_Data{} } +func (m *InputDocument_Data) String() string { return proto.CompactTextString(m) } +func (*InputDocument_Data) ProtoMessage() {} +func (*InputDocument_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{97} } - -func (m *Updates_Data) GetMentioned() bool { - if m != nil { - return m.Mentioned - } - return false +func (m *InputDocument_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputDocument_Data.Unmarshal(m, b) } - -func (m *Updates_Data) GetMediaUnread() bool { - if m != nil { - return m.MediaUnread - } - return false +func (m *InputDocument_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputDocument_Data.Marshal(b, m, deterministic) } - -func (m *Updates_Data) GetSilent() bool { - if m != nil { - return m.Silent - } - return false +func (dst *InputDocument_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputDocument_Data.Merge(dst, src) } - -func (m *Updates_Data) GetId() int32 { - if m != nil { - return m.Id - } - return 0 +func (m *InputDocument_Data) XXX_Size() int { + return xxx_messageInfo_InputDocument_Data.Size(m) } - -func (m *Updates_Data) GetMessage() string { - if m != nil { - return m.Message - } - return "" +func (m *InputDocument_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputDocument_Data.DiscardUnknown(m) } -func (m *Updates_Data) GetPts() int32 { - if m != nil { - return m.Pts - } - return 0 -} +var xxx_messageInfo_InputDocument_Data proto.InternalMessageInfo -func (m *Updates_Data) GetPtsCount() int32 { +func (m *InputDocument_Data) GetId() int64 { if m != nil { - return m.PtsCount + return m.Id } return 0 } -func (m *Updates_Data) GetDate() int32 { +func (m *InputDocument_Data) GetAccessHash() int64 { if m != nil { - return m.Date + return m.AccessHash } return 0 } -func (m *Updates_Data) GetFwdFrom() *MessageFwdHeader { +func (m *InputDocument_Data) GetFileReference() []byte { if m != nil { - return m.FwdFrom - } - return nil -} - -func (m *Updates_Data) GetViaBotId() int32 { - if m != nil { - return m.ViaBotId - } - return 0 -} - -func (m *Updates_Data) GetReplyToMsgId() int32 { - if m != nil { - return m.ReplyToMsgId - } - return 0 -} - -func (m *Updates_Data) GetEntities() []*MessageEntity { - if m != nil { - return m.Entities - } - return nil -} - -func (m *Updates_Data) GetFromId() int32 { - if m != nil { - return m.FromId - } - return 0 -} - -func (m *Updates_Data) GetChatId() int32 { - if m != nil { - return m.ChatId - } - return 0 -} - -func (m *Updates_Data) GetUpdate() *Update { - if m != nil { - return m.Update - } - return nil -} - -func (m *Updates_Data) GetUpdates() []*Update { - if m != nil { - return m.Updates - } - return nil -} - -func (m *Updates_Data) GetUsers() []*User { - if m != nil { - return m.Users - } - return nil -} - -func (m *Updates_Data) GetChats() []*Chat { - if m != nil { - return m.Chats - } - return nil -} - -func (m *Updates_Data) GetSeqStart() int32 { - if m != nil { - return m.SeqStart - } - return 0 -} - -func (m *Updates_Data) GetSeq() int32 { - if m != nil { - return m.Seq - } - return 0 -} - -func (m *Updates_Data) GetMedia() *MessageMedia { - if m != nil { - return m.Media - } - return nil -} - -type Updates struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Updates) Reset() { *m = Updates{} } -func (m *Updates) String() string { return proto.CompactTextString(m) } -func (*Updates) ProtoMessage() {} -func (*Updates) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{109} -} -func (m *Updates) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Updates.Unmarshal(m, b) -} -func (m *Updates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Updates.Marshal(b, m, deterministic) -} -func (dst *Updates) XXX_Merge(src proto.Message) { - xxx_messageInfo_Updates.Merge(dst, src) -} -func (m *Updates) XXX_Size() int { - return xxx_messageInfo_Updates.Size(m) -} -func (m *Updates) XXX_DiscardUnknown() { - xxx_messageInfo_Updates.DiscardUnknown(m) -} - -var xxx_messageInfo_Updates proto.InternalMessageInfo - -func (m *Updates) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} - -func (m *Updates) GetData2() *Updates_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// updateAccountResetAuthorization user_id:int auth_key_id:long = Updates; -type TLUpdateAccountResetAuthorization struct { - Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdateAccountResetAuthorization) Reset() { *m = TLUpdateAccountResetAuthorization{} } -func (m *TLUpdateAccountResetAuthorization) String() string { return proto.CompactTextString(m) } -func (*TLUpdateAccountResetAuthorization) ProtoMessage() {} -func (*TLUpdateAccountResetAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{110} -} -func (m *TLUpdateAccountResetAuthorization) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateAccountResetAuthorization.Unmarshal(m, b) -} -func (m *TLUpdateAccountResetAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateAccountResetAuthorization.Marshal(b, m, deterministic) -} -func (dst *TLUpdateAccountResetAuthorization) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateAccountResetAuthorization.Merge(dst, src) -} -func (m *TLUpdateAccountResetAuthorization) XXX_Size() int { - return xxx_messageInfo_TLUpdateAccountResetAuthorization.Size(m) -} -func (m *TLUpdateAccountResetAuthorization) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateAccountResetAuthorization.DiscardUnknown(m) -} - -var xxx_messageInfo_TLUpdateAccountResetAuthorization proto.InternalMessageInfo - -func (m *TLUpdateAccountResetAuthorization) GetData2() *Updates_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// updatesTooLong#e317af7e = Updates; -type TLUpdatesTooLong struct { - Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdatesTooLong) Reset() { *m = TLUpdatesTooLong{} } -func (m *TLUpdatesTooLong) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesTooLong) ProtoMessage() {} -func (*TLUpdatesTooLong) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{111} -} -func (m *TLUpdatesTooLong) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesTooLong.Unmarshal(m, b) -} -func (m *TLUpdatesTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesTooLong.Marshal(b, m, deterministic) -} -func (dst *TLUpdatesTooLong) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesTooLong.Merge(dst, src) -} -func (m *TLUpdatesTooLong) XXX_Size() int { - return xxx_messageInfo_TLUpdatesTooLong.Size(m) -} -func (m *TLUpdatesTooLong) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesTooLong.DiscardUnknown(m) -} - -var xxx_messageInfo_TLUpdatesTooLong proto.InternalMessageInfo - -func (m *TLUpdatesTooLong) GetData2() *Updates_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// updateShortMessage#914fbf11 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; -type TLUpdateShortMessage struct { - Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdateShortMessage) Reset() { *m = TLUpdateShortMessage{} } -func (m *TLUpdateShortMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateShortMessage) ProtoMessage() {} -func (*TLUpdateShortMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{112} -} -func (m *TLUpdateShortMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateShortMessage.Unmarshal(m, b) -} -func (m *TLUpdateShortMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateShortMessage.Marshal(b, m, deterministic) -} -func (dst *TLUpdateShortMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateShortMessage.Merge(dst, src) -} -func (m *TLUpdateShortMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateShortMessage.Size(m) -} -func (m *TLUpdateShortMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateShortMessage.DiscardUnknown(m) -} - -var xxx_messageInfo_TLUpdateShortMessage proto.InternalMessageInfo - -func (m *TLUpdateShortMessage) GetData2() *Updates_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// updateShortChatMessage#16812688 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; -type TLUpdateShortChatMessage struct { - Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdateShortChatMessage) Reset() { *m = TLUpdateShortChatMessage{} } -func (m *TLUpdateShortChatMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateShortChatMessage) ProtoMessage() {} -func (*TLUpdateShortChatMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{113} -} -func (m *TLUpdateShortChatMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateShortChatMessage.Unmarshal(m, b) -} -func (m *TLUpdateShortChatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateShortChatMessage.Marshal(b, m, deterministic) -} -func (dst *TLUpdateShortChatMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateShortChatMessage.Merge(dst, src) -} -func (m *TLUpdateShortChatMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateShortChatMessage.Size(m) -} -func (m *TLUpdateShortChatMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateShortChatMessage.DiscardUnknown(m) -} - -var xxx_messageInfo_TLUpdateShortChatMessage proto.InternalMessageInfo - -func (m *TLUpdateShortChatMessage) GetData2() *Updates_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// updateShort#78d4dec1 update:Update date:int = Updates; -type TLUpdateShort struct { - Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdateShort) Reset() { *m = TLUpdateShort{} } -func (m *TLUpdateShort) String() string { return proto.CompactTextString(m) } -func (*TLUpdateShort) ProtoMessage() {} -func (*TLUpdateShort) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{114} -} -func (m *TLUpdateShort) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateShort.Unmarshal(m, b) -} -func (m *TLUpdateShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateShort.Marshal(b, m, deterministic) -} -func (dst *TLUpdateShort) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateShort.Merge(dst, src) -} -func (m *TLUpdateShort) XXX_Size() int { - return xxx_messageInfo_TLUpdateShort.Size(m) -} -func (m *TLUpdateShort) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateShort.DiscardUnknown(m) -} - -var xxx_messageInfo_TLUpdateShort proto.InternalMessageInfo - -func (m *TLUpdateShort) GetData2() *Updates_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// updatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates; -type TLUpdatesCombined struct { - Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdatesCombined) Reset() { *m = TLUpdatesCombined{} } -func (m *TLUpdatesCombined) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesCombined) ProtoMessage() {} -func (*TLUpdatesCombined) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{115} -} -func (m *TLUpdatesCombined) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesCombined.Unmarshal(m, b) -} -func (m *TLUpdatesCombined) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesCombined.Marshal(b, m, deterministic) -} -func (dst *TLUpdatesCombined) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesCombined.Merge(dst, src) -} -func (m *TLUpdatesCombined) XXX_Size() int { - return xxx_messageInfo_TLUpdatesCombined.Size(m) -} -func (m *TLUpdatesCombined) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesCombined.DiscardUnknown(m) -} - -var xxx_messageInfo_TLUpdatesCombined proto.InternalMessageInfo - -func (m *TLUpdatesCombined) GetData2() *Updates_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// updates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates; -type TLUpdates struct { - Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdates) Reset() { *m = TLUpdates{} } -func (m *TLUpdates) String() string { return proto.CompactTextString(m) } -func (*TLUpdates) ProtoMessage() {} -func (*TLUpdates) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{116} -} -func (m *TLUpdates) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdates.Unmarshal(m, b) -} -func (m *TLUpdates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdates.Marshal(b, m, deterministic) -} -func (dst *TLUpdates) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdates.Merge(dst, src) -} -func (m *TLUpdates) XXX_Size() int { - return xxx_messageInfo_TLUpdates.Size(m) -} -func (m *TLUpdates) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdates.DiscardUnknown(m) -} - -var xxx_messageInfo_TLUpdates proto.InternalMessageInfo - -func (m *TLUpdates) GetData2() *Updates_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates; -type TLUpdateShortSentMessage struct { - Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdateShortSentMessage) Reset() { *m = TLUpdateShortSentMessage{} } -func (m *TLUpdateShortSentMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateShortSentMessage) ProtoMessage() {} -func (*TLUpdateShortSentMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{117} -} -func (m *TLUpdateShortSentMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateShortSentMessage.Unmarshal(m, b) -} -func (m *TLUpdateShortSentMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateShortSentMessage.Marshal(b, m, deterministic) -} -func (dst *TLUpdateShortSentMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateShortSentMessage.Merge(dst, src) -} -func (m *TLUpdateShortSentMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateShortSentMessage.Size(m) -} -func (m *TLUpdateShortSentMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateShortSentMessage.DiscardUnknown(m) -} - -var xxx_messageInfo_TLUpdateShortSentMessage proto.InternalMessageInfo - -func (m *TLUpdateShortSentMessage) GetData2() *Updates_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// ///////////////////////////////////////////////////////////////////////////// -// InputDocument <-- -// + TL_inputDocumentEmpty -// + TL_inputDocument -// + TL_inputDocumentLayer86 -// -type InputDocument_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - FileReference []byte `protobuf:"bytes,3,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InputDocument_Data) Reset() { *m = InputDocument_Data{} } -func (m *InputDocument_Data) String() string { return proto.CompactTextString(m) } -func (*InputDocument_Data) ProtoMessage() {} -func (*InputDocument_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{118} -} -func (m *InputDocument_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputDocument_Data.Unmarshal(m, b) -} -func (m *InputDocument_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputDocument_Data.Marshal(b, m, deterministic) -} -func (dst *InputDocument_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputDocument_Data.Merge(dst, src) -} -func (m *InputDocument_Data) XXX_Size() int { - return xxx_messageInfo_InputDocument_Data.Size(m) -} -func (m *InputDocument_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputDocument_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_InputDocument_Data proto.InternalMessageInfo - -func (m *InputDocument_Data) GetId() int64 { - if m != nil { - return m.Id - } - return 0 -} - -func (m *InputDocument_Data) GetAccessHash() int64 { - if m != nil { - return m.AccessHash - } - return 0 -} - -func (m *InputDocument_Data) GetFileReference() []byte { - if m != nil { - return m.FileReference + return m.FileReference } return nil } @@ -5719,7 +5020,7 @@ func (m *InputDocument) Reset() { *m = InputDocument{} } func (m *InputDocument) String() string { return proto.CompactTextString(m) } func (*InputDocument) ProtoMessage() {} func (*InputDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{119} + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{98} } func (m *InputDocument) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InputDocument.Unmarshal(m, b) @@ -5765,7 +5066,7 @@ func (m *TLInputDocumentEmpty) Reset() { *m = TLInputDocumentEmpty{} } func (m *TLInputDocumentEmpty) String() string { return proto.CompactTextString(m) } func (*TLInputDocumentEmpty) ProtoMessage() {} func (*TLInputDocumentEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{120} + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{99} } func (m *TLInputDocumentEmpty) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInputDocumentEmpty.Unmarshal(m, b) @@ -5804,7 +5105,7 @@ func (m *TLInputDocument) Reset() { *m = TLInputDocument{} } func (m *TLInputDocument) String() string { return proto.CompactTextString(m) } func (*TLInputDocument) ProtoMessage() {} func (*TLInputDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{121} + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{100} } func (m *TLInputDocument) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInputDocument.Unmarshal(m, b) @@ -5843,7 +5144,7 @@ func (m *TLInputDocumentLayer86) Reset() { *m = TLInputDocumentLayer86{} func (m *TLInputDocumentLayer86) String() string { return proto.CompactTextString(m) } func (*TLInputDocumentLayer86) ProtoMessage() {} func (*TLInputDocumentLayer86) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{122} + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{101} } func (m *TLInputDocumentLayer86) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInputDocumentLayer86.Unmarshal(m, b) @@ -5871,606 +5172,636 @@ func (m *TLInputDocumentLayer86) GetData2() *InputDocument_Data { } // ///////////////////////////////////////////////////////////////////////////// -// SendMessageAction <-- -// + TL_sendMessageTypingAction -// + TL_sendMessageCancelAction -// + TL_sendMessageRecordVideoAction -// + TL_sendMessageUploadVideoAction -// + TL_sendMessageRecordAudioAction -// + TL_sendMessageUploadAudioAction -// + TL_sendMessageUploadPhotoAction -// + TL_sendMessageUploadDocumentAction -// + TL_sendMessageGeoLocationAction -// + TL_sendMessageChooseContactAction -// + TL_sendMessageGamePlayAction -// + TL_sendMessageRecordRoundAction -// + TL_sendMessageUploadRoundAction +// ChatParticipant <-- +// + TL_chatParticipant +// + TL_chatParticipantCreator +// + TL_chatParticipantAdmin // -type SendMessageAction_Data struct { - Progress int32 `protobuf:"varint,1,opt,name=progress,proto3" json:"progress,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` +type ChatParticipant_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + InviterId int32 `protobuf:"varint,2,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` + Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SendMessageAction_Data) Reset() { *m = SendMessageAction_Data{} } -func (m *SendMessageAction_Data) String() string { return proto.CompactTextString(m) } -func (*SendMessageAction_Data) ProtoMessage() {} -func (*SendMessageAction_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{123} +func (m *ChatParticipant_Data) Reset() { *m = ChatParticipant_Data{} } +func (m *ChatParticipant_Data) String() string { return proto.CompactTextString(m) } +func (*ChatParticipant_Data) ProtoMessage() {} +func (*ChatParticipant_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{102} } -func (m *SendMessageAction_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SendMessageAction_Data.Unmarshal(m, b) +func (m *ChatParticipant_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatParticipant_Data.Unmarshal(m, b) } -func (m *SendMessageAction_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SendMessageAction_Data.Marshal(b, m, deterministic) +func (m *ChatParticipant_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatParticipant_Data.Marshal(b, m, deterministic) } -func (dst *SendMessageAction_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SendMessageAction_Data.Merge(dst, src) +func (dst *ChatParticipant_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatParticipant_Data.Merge(dst, src) } -func (m *SendMessageAction_Data) XXX_Size() int { - return xxx_messageInfo_SendMessageAction_Data.Size(m) +func (m *ChatParticipant_Data) XXX_Size() int { + return xxx_messageInfo_ChatParticipant_Data.Size(m) } -func (m *SendMessageAction_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SendMessageAction_Data.DiscardUnknown(m) +func (m *ChatParticipant_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChatParticipant_Data.DiscardUnknown(m) } -var xxx_messageInfo_SendMessageAction_Data proto.InternalMessageInfo +var xxx_messageInfo_ChatParticipant_Data proto.InternalMessageInfo -func (m *SendMessageAction_Data) GetProgress() int32 { +func (m *ChatParticipant_Data) GetUserId() int32 { if m != nil { - return m.Progress + return m.UserId } return 0 } -type SendMessageAction struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChatParticipant_Data) GetInviterId() int32 { + if m != nil { + return m.InviterId + } + return 0 } -func (m *SendMessageAction) Reset() { *m = SendMessageAction{} } -func (m *SendMessageAction) String() string { return proto.CompactTextString(m) } -func (*SendMessageAction) ProtoMessage() {} -func (*SendMessageAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{124} +func (m *ChatParticipant_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 } -func (m *SendMessageAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SendMessageAction.Unmarshal(m, b) + +type ChatParticipant struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChatParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SendMessageAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SendMessageAction.Marshal(b, m, deterministic) + +func (m *ChatParticipant) Reset() { *m = ChatParticipant{} } +func (m *ChatParticipant) String() string { return proto.CompactTextString(m) } +func (*ChatParticipant) ProtoMessage() {} +func (*ChatParticipant) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{103} } -func (dst *SendMessageAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_SendMessageAction.Merge(dst, src) +func (m *ChatParticipant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatParticipant.Unmarshal(m, b) } -func (m *SendMessageAction) XXX_Size() int { - return xxx_messageInfo_SendMessageAction.Size(m) +func (m *ChatParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatParticipant.Marshal(b, m, deterministic) } -func (m *SendMessageAction) XXX_DiscardUnknown() { - xxx_messageInfo_SendMessageAction.DiscardUnknown(m) +func (dst *ChatParticipant) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatParticipant.Merge(dst, src) +} +func (m *ChatParticipant) XXX_Size() int { + return xxx_messageInfo_ChatParticipant.Size(m) +} +func (m *ChatParticipant) XXX_DiscardUnknown() { + xxx_messageInfo_ChatParticipant.DiscardUnknown(m) } -var xxx_messageInfo_SendMessageAction proto.InternalMessageInfo +var xxx_messageInfo_ChatParticipant proto.InternalMessageInfo -func (m *SendMessageAction) GetConstructor() TLConstructor { +func (m *ChatParticipant) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *SendMessageAction) GetData2() *SendMessageAction_Data { +func (m *ChatParticipant) GetData2() *ChatParticipant_Data { if m != nil { return m.Data2 } return nil } -// sendMessageTypingAction#16bf744e = SendMessageAction; -type TLSendMessageTypingAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant; +type TLChatParticipant struct { + Data2 *ChatParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageTypingAction) Reset() { *m = TLSendMessageTypingAction{} } -func (m *TLSendMessageTypingAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageTypingAction) ProtoMessage() {} -func (*TLSendMessageTypingAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{125} +func (m *TLChatParticipant) Reset() { *m = TLChatParticipant{} } +func (m *TLChatParticipant) String() string { return proto.CompactTextString(m) } +func (*TLChatParticipant) ProtoMessage() {} +func (*TLChatParticipant) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{104} } -func (m *TLSendMessageTypingAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageTypingAction.Unmarshal(m, b) +func (m *TLChatParticipant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatParticipant.Unmarshal(m, b) } -func (m *TLSendMessageTypingAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageTypingAction.Marshal(b, m, deterministic) +func (m *TLChatParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatParticipant.Marshal(b, m, deterministic) } -func (dst *TLSendMessageTypingAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageTypingAction.Merge(dst, src) +func (dst *TLChatParticipant) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatParticipant.Merge(dst, src) } -func (m *TLSendMessageTypingAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageTypingAction.Size(m) +func (m *TLChatParticipant) XXX_Size() int { + return xxx_messageInfo_TLChatParticipant.Size(m) } -func (m *TLSendMessageTypingAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageTypingAction.DiscardUnknown(m) +func (m *TLChatParticipant) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatParticipant.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageTypingAction proto.InternalMessageInfo +var xxx_messageInfo_TLChatParticipant proto.InternalMessageInfo -func (m *TLSendMessageTypingAction) GetData2() *SendMessageAction_Data { +func (m *TLChatParticipant) GetData2() *ChatParticipant_Data { if m != nil { return m.Data2 } return nil } -// sendMessageCancelAction#fd5ec8f5 = SendMessageAction; -type TLSendMessageCancelAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatParticipantCreator#da13538a user_id:int = ChatParticipant; +type TLChatParticipantCreator struct { + Data2 *ChatParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageCancelAction) Reset() { *m = TLSendMessageCancelAction{} } -func (m *TLSendMessageCancelAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageCancelAction) ProtoMessage() {} -func (*TLSendMessageCancelAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{126} +func (m *TLChatParticipantCreator) Reset() { *m = TLChatParticipantCreator{} } +func (m *TLChatParticipantCreator) String() string { return proto.CompactTextString(m) } +func (*TLChatParticipantCreator) ProtoMessage() {} +func (*TLChatParticipantCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{105} } -func (m *TLSendMessageCancelAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageCancelAction.Unmarshal(m, b) +func (m *TLChatParticipantCreator) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatParticipantCreator.Unmarshal(m, b) } -func (m *TLSendMessageCancelAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageCancelAction.Marshal(b, m, deterministic) +func (m *TLChatParticipantCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatParticipantCreator.Marshal(b, m, deterministic) } -func (dst *TLSendMessageCancelAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageCancelAction.Merge(dst, src) +func (dst *TLChatParticipantCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatParticipantCreator.Merge(dst, src) } -func (m *TLSendMessageCancelAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageCancelAction.Size(m) +func (m *TLChatParticipantCreator) XXX_Size() int { + return xxx_messageInfo_TLChatParticipantCreator.Size(m) } -func (m *TLSendMessageCancelAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageCancelAction.DiscardUnknown(m) +func (m *TLChatParticipantCreator) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatParticipantCreator.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageCancelAction proto.InternalMessageInfo +var xxx_messageInfo_TLChatParticipantCreator proto.InternalMessageInfo -func (m *TLSendMessageCancelAction) GetData2() *SendMessageAction_Data { +func (m *TLChatParticipantCreator) GetData2() *ChatParticipant_Data { if m != nil { return m.Data2 } return nil } -// sendMessageRecordVideoAction#a187d66f = SendMessageAction; -type TLSendMessageRecordVideoAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant; +type TLChatParticipantAdmin struct { + Data2 *ChatParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageRecordVideoAction) Reset() { *m = TLSendMessageRecordVideoAction{} } -func (m *TLSendMessageRecordVideoAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageRecordVideoAction) ProtoMessage() {} -func (*TLSendMessageRecordVideoAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{127} +func (m *TLChatParticipantAdmin) Reset() { *m = TLChatParticipantAdmin{} } +func (m *TLChatParticipantAdmin) String() string { return proto.CompactTextString(m) } +func (*TLChatParticipantAdmin) ProtoMessage() {} +func (*TLChatParticipantAdmin) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{106} } -func (m *TLSendMessageRecordVideoAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageRecordVideoAction.Unmarshal(m, b) +func (m *TLChatParticipantAdmin) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatParticipantAdmin.Unmarshal(m, b) } -func (m *TLSendMessageRecordVideoAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageRecordVideoAction.Marshal(b, m, deterministic) +func (m *TLChatParticipantAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatParticipantAdmin.Marshal(b, m, deterministic) } -func (dst *TLSendMessageRecordVideoAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageRecordVideoAction.Merge(dst, src) +func (dst *TLChatParticipantAdmin) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatParticipantAdmin.Merge(dst, src) } -func (m *TLSendMessageRecordVideoAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageRecordVideoAction.Size(m) +func (m *TLChatParticipantAdmin) XXX_Size() int { + return xxx_messageInfo_TLChatParticipantAdmin.Size(m) } -func (m *TLSendMessageRecordVideoAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageRecordVideoAction.DiscardUnknown(m) +func (m *TLChatParticipantAdmin) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatParticipantAdmin.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageRecordVideoAction proto.InternalMessageInfo +var xxx_messageInfo_TLChatParticipantAdmin proto.InternalMessageInfo -func (m *TLSendMessageRecordVideoAction) GetData2() *SendMessageAction_Data { +func (m *TLChatParticipantAdmin) GetData2() *ChatParticipant_Data { if m != nil { return m.Data2 } return nil } -// sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction; -type TLSendMessageUploadVideoAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// ChatPhoto <-- +// + TL_chatPhotoEmpty +// + TL_chatPhoto +// +type ChatPhoto_Data struct { + PhotoSmall *FileLocation `protobuf:"bytes,1,opt,name=photo_small,json=photoSmall,proto3" json:"photo_small,omitempty"` + PhotoBig *FileLocation `protobuf:"bytes,2,opt,name=photo_big,json=photoBig,proto3" json:"photo_big,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageUploadVideoAction) Reset() { *m = TLSendMessageUploadVideoAction{} } -func (m *TLSendMessageUploadVideoAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageUploadVideoAction) ProtoMessage() {} -func (*TLSendMessageUploadVideoAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{128} +func (m *ChatPhoto_Data) Reset() { *m = ChatPhoto_Data{} } +func (m *ChatPhoto_Data) String() string { return proto.CompactTextString(m) } +func (*ChatPhoto_Data) ProtoMessage() {} +func (*ChatPhoto_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{107} } -func (m *TLSendMessageUploadVideoAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageUploadVideoAction.Unmarshal(m, b) +func (m *ChatPhoto_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatPhoto_Data.Unmarshal(m, b) } -func (m *TLSendMessageUploadVideoAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageUploadVideoAction.Marshal(b, m, deterministic) +func (m *ChatPhoto_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatPhoto_Data.Marshal(b, m, deterministic) } -func (dst *TLSendMessageUploadVideoAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageUploadVideoAction.Merge(dst, src) +func (dst *ChatPhoto_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatPhoto_Data.Merge(dst, src) } -func (m *TLSendMessageUploadVideoAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageUploadVideoAction.Size(m) +func (m *ChatPhoto_Data) XXX_Size() int { + return xxx_messageInfo_ChatPhoto_Data.Size(m) } -func (m *TLSendMessageUploadVideoAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageUploadVideoAction.DiscardUnknown(m) +func (m *ChatPhoto_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChatPhoto_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageUploadVideoAction proto.InternalMessageInfo +var xxx_messageInfo_ChatPhoto_Data proto.InternalMessageInfo -func (m *TLSendMessageUploadVideoAction) GetData2() *SendMessageAction_Data { +func (m *ChatPhoto_Data) GetPhotoSmall() *FileLocation { if m != nil { - return m.Data2 + return m.PhotoSmall } return nil } -// sendMessageRecordAudioAction#d52f73f7 = SendMessageAction; -type TLSendMessageRecordAudioAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChatPhoto_Data) GetPhotoBig() *FileLocation { + if m != nil { + return m.PhotoBig + } + return nil } -func (m *TLSendMessageRecordAudioAction) Reset() { *m = TLSendMessageRecordAudioAction{} } -func (m *TLSendMessageRecordAudioAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageRecordAudioAction) ProtoMessage() {} -func (*TLSendMessageRecordAudioAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{129} +type ChatPhoto struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageRecordAudioAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageRecordAudioAction.Unmarshal(m, b) + +func (m *ChatPhoto) Reset() { *m = ChatPhoto{} } +func (m *ChatPhoto) String() string { return proto.CompactTextString(m) } +func (*ChatPhoto) ProtoMessage() {} +func (*ChatPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{108} } -func (m *TLSendMessageRecordAudioAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageRecordAudioAction.Marshal(b, m, deterministic) +func (m *ChatPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatPhoto.Unmarshal(m, b) } -func (dst *TLSendMessageRecordAudioAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageRecordAudioAction.Merge(dst, src) +func (m *ChatPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatPhoto.Marshal(b, m, deterministic) } -func (m *TLSendMessageRecordAudioAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageRecordAudioAction.Size(m) +func (dst *ChatPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatPhoto.Merge(dst, src) } -func (m *TLSendMessageRecordAudioAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageRecordAudioAction.DiscardUnknown(m) +func (m *ChatPhoto) XXX_Size() int { + return xxx_messageInfo_ChatPhoto.Size(m) +} +func (m *ChatPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_ChatPhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageRecordAudioAction proto.InternalMessageInfo +var xxx_messageInfo_ChatPhoto proto.InternalMessageInfo -func (m *TLSendMessageRecordAudioAction) GetData2() *SendMessageAction_Data { +func (m *ChatPhoto) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *ChatPhoto) GetData2() *ChatPhoto_Data { if m != nil { return m.Data2 } return nil } -// sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction; -type TLSendMessageUploadAudioAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatPhotoEmpty#37c1011c = ChatPhoto; +type TLChatPhotoEmpty struct { + Data2 *ChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageUploadAudioAction) Reset() { *m = TLSendMessageUploadAudioAction{} } -func (m *TLSendMessageUploadAudioAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageUploadAudioAction) ProtoMessage() {} -func (*TLSendMessageUploadAudioAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{130} +func (m *TLChatPhotoEmpty) Reset() { *m = TLChatPhotoEmpty{} } +func (m *TLChatPhotoEmpty) String() string { return proto.CompactTextString(m) } +func (*TLChatPhotoEmpty) ProtoMessage() {} +func (*TLChatPhotoEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{109} } -func (m *TLSendMessageUploadAudioAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageUploadAudioAction.Unmarshal(m, b) +func (m *TLChatPhotoEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatPhotoEmpty.Unmarshal(m, b) } -func (m *TLSendMessageUploadAudioAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageUploadAudioAction.Marshal(b, m, deterministic) +func (m *TLChatPhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatPhotoEmpty.Marshal(b, m, deterministic) } -func (dst *TLSendMessageUploadAudioAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageUploadAudioAction.Merge(dst, src) +func (dst *TLChatPhotoEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatPhotoEmpty.Merge(dst, src) } -func (m *TLSendMessageUploadAudioAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageUploadAudioAction.Size(m) +func (m *TLChatPhotoEmpty) XXX_Size() int { + return xxx_messageInfo_TLChatPhotoEmpty.Size(m) } -func (m *TLSendMessageUploadAudioAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageUploadAudioAction.DiscardUnknown(m) +func (m *TLChatPhotoEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatPhotoEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageUploadAudioAction proto.InternalMessageInfo +var xxx_messageInfo_TLChatPhotoEmpty proto.InternalMessageInfo -func (m *TLSendMessageUploadAudioAction) GetData2() *SendMessageAction_Data { +func (m *TLChatPhotoEmpty) GetData2() *ChatPhoto_Data { if m != nil { return m.Data2 } return nil } -// sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction; -type TLSendMessageUploadPhotoAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto; +type TLChatPhoto struct { + Data2 *ChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageUploadPhotoAction) Reset() { *m = TLSendMessageUploadPhotoAction{} } -func (m *TLSendMessageUploadPhotoAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageUploadPhotoAction) ProtoMessage() {} -func (*TLSendMessageUploadPhotoAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{131} +func (m *TLChatPhoto) Reset() { *m = TLChatPhoto{} } +func (m *TLChatPhoto) String() string { return proto.CompactTextString(m) } +func (*TLChatPhoto) ProtoMessage() {} +func (*TLChatPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{110} } -func (m *TLSendMessageUploadPhotoAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageUploadPhotoAction.Unmarshal(m, b) +func (m *TLChatPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatPhoto.Unmarshal(m, b) } -func (m *TLSendMessageUploadPhotoAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageUploadPhotoAction.Marshal(b, m, deterministic) +func (m *TLChatPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatPhoto.Marshal(b, m, deterministic) } -func (dst *TLSendMessageUploadPhotoAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageUploadPhotoAction.Merge(dst, src) +func (dst *TLChatPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatPhoto.Merge(dst, src) } -func (m *TLSendMessageUploadPhotoAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageUploadPhotoAction.Size(m) +func (m *TLChatPhoto) XXX_Size() int { + return xxx_messageInfo_TLChatPhoto.Size(m) } -func (m *TLSendMessageUploadPhotoAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageUploadPhotoAction.DiscardUnknown(m) +func (m *TLChatPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatPhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageUploadPhotoAction proto.InternalMessageInfo +var xxx_messageInfo_TLChatPhoto proto.InternalMessageInfo -func (m *TLSendMessageUploadPhotoAction) GetData2() *SendMessageAction_Data { +func (m *TLChatPhoto) GetData2() *ChatPhoto_Data { if m != nil { return m.Data2 } return nil } -// sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction; -type TLSendMessageUploadDocumentAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// PhoneCallDiscardReason <-- +// + TL_phoneCallDiscardReasonMissed +// + TL_phoneCallDiscardReasonDisconnect +// + TL_phoneCallDiscardReasonHangup +// + TL_phoneCallDiscardReasonBusy +// +type PhoneCallDiscardReason_Data struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageUploadDocumentAction) Reset() { *m = TLSendMessageUploadDocumentAction{} } -func (m *TLSendMessageUploadDocumentAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageUploadDocumentAction) ProtoMessage() {} -func (*TLSendMessageUploadDocumentAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{132} +func (m *PhoneCallDiscardReason_Data) Reset() { *m = PhoneCallDiscardReason_Data{} } +func (m *PhoneCallDiscardReason_Data) String() string { return proto.CompactTextString(m) } +func (*PhoneCallDiscardReason_Data) ProtoMessage() {} +func (*PhoneCallDiscardReason_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{111} } -func (m *TLSendMessageUploadDocumentAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageUploadDocumentAction.Unmarshal(m, b) +func (m *PhoneCallDiscardReason_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhoneCallDiscardReason_Data.Unmarshal(m, b) } -func (m *TLSendMessageUploadDocumentAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageUploadDocumentAction.Marshal(b, m, deterministic) +func (m *PhoneCallDiscardReason_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhoneCallDiscardReason_Data.Marshal(b, m, deterministic) } -func (dst *TLSendMessageUploadDocumentAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageUploadDocumentAction.Merge(dst, src) +func (dst *PhoneCallDiscardReason_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhoneCallDiscardReason_Data.Merge(dst, src) } -func (m *TLSendMessageUploadDocumentAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageUploadDocumentAction.Size(m) +func (m *PhoneCallDiscardReason_Data) XXX_Size() int { + return xxx_messageInfo_PhoneCallDiscardReason_Data.Size(m) } -func (m *TLSendMessageUploadDocumentAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageUploadDocumentAction.DiscardUnknown(m) +func (m *PhoneCallDiscardReason_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PhoneCallDiscardReason_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageUploadDocumentAction proto.InternalMessageInfo +var xxx_messageInfo_PhoneCallDiscardReason_Data proto.InternalMessageInfo -func (m *TLSendMessageUploadDocumentAction) GetData2() *SendMessageAction_Data { - if m != nil { - return m.Data2 - } - return nil +type PhoneCallDiscardReason struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -// sendMessageGeoLocationAction#176f8ba1 = SendMessageAction; -type TLSendMessageGeoLocationAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PhoneCallDiscardReason) Reset() { *m = PhoneCallDiscardReason{} } +func (m *PhoneCallDiscardReason) String() string { return proto.CompactTextString(m) } +func (*PhoneCallDiscardReason) ProtoMessage() {} +func (*PhoneCallDiscardReason) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{112} } - -func (m *TLSendMessageGeoLocationAction) Reset() { *m = TLSendMessageGeoLocationAction{} } -func (m *TLSendMessageGeoLocationAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageGeoLocationAction) ProtoMessage() {} -func (*TLSendMessageGeoLocationAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{133} +func (m *PhoneCallDiscardReason) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhoneCallDiscardReason.Unmarshal(m, b) } -func (m *TLSendMessageGeoLocationAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageGeoLocationAction.Unmarshal(m, b) +func (m *PhoneCallDiscardReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhoneCallDiscardReason.Marshal(b, m, deterministic) } -func (m *TLSendMessageGeoLocationAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageGeoLocationAction.Marshal(b, m, deterministic) +func (dst *PhoneCallDiscardReason) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhoneCallDiscardReason.Merge(dst, src) } -func (dst *TLSendMessageGeoLocationAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageGeoLocationAction.Merge(dst, src) -} -func (m *TLSendMessageGeoLocationAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageGeoLocationAction.Size(m) +func (m *PhoneCallDiscardReason) XXX_Size() int { + return xxx_messageInfo_PhoneCallDiscardReason.Size(m) } -func (m *TLSendMessageGeoLocationAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageGeoLocationAction.DiscardUnknown(m) +func (m *PhoneCallDiscardReason) XXX_DiscardUnknown() { + xxx_messageInfo_PhoneCallDiscardReason.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageGeoLocationAction proto.InternalMessageInfo +var xxx_messageInfo_PhoneCallDiscardReason proto.InternalMessageInfo -func (m *TLSendMessageGeoLocationAction) GetData2() *SendMessageAction_Data { +func (m *PhoneCallDiscardReason) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *PhoneCallDiscardReason) GetData2() *PhoneCallDiscardReason_Data { if m != nil { return m.Data2 } return nil } -// sendMessageChooseContactAction#628cbc6f = SendMessageAction; -type TLSendMessageChooseContactAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason; +type TLPhoneCallDiscardReasonMissed struct { + Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageChooseContactAction) Reset() { *m = TLSendMessageChooseContactAction{} } -func (m *TLSendMessageChooseContactAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageChooseContactAction) ProtoMessage() {} -func (*TLSendMessageChooseContactAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{134} +func (m *TLPhoneCallDiscardReasonMissed) Reset() { *m = TLPhoneCallDiscardReasonMissed{} } +func (m *TLPhoneCallDiscardReasonMissed) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallDiscardReasonMissed) ProtoMessage() {} +func (*TLPhoneCallDiscardReasonMissed) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{113} } -func (m *TLSendMessageChooseContactAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageChooseContactAction.Unmarshal(m, b) +func (m *TLPhoneCallDiscardReasonMissed) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallDiscardReasonMissed.Unmarshal(m, b) } -func (m *TLSendMessageChooseContactAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageChooseContactAction.Marshal(b, m, deterministic) +func (m *TLPhoneCallDiscardReasonMissed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallDiscardReasonMissed.Marshal(b, m, deterministic) } -func (dst *TLSendMessageChooseContactAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageChooseContactAction.Merge(dst, src) +func (dst *TLPhoneCallDiscardReasonMissed) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallDiscardReasonMissed.Merge(dst, src) } -func (m *TLSendMessageChooseContactAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageChooseContactAction.Size(m) +func (m *TLPhoneCallDiscardReasonMissed) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallDiscardReasonMissed.Size(m) } -func (m *TLSendMessageChooseContactAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageChooseContactAction.DiscardUnknown(m) +func (m *TLPhoneCallDiscardReasonMissed) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallDiscardReasonMissed.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageChooseContactAction proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneCallDiscardReasonMissed proto.InternalMessageInfo -func (m *TLSendMessageChooseContactAction) GetData2() *SendMessageAction_Data { +func (m *TLPhoneCallDiscardReasonMissed) GetData2() *PhoneCallDiscardReason_Data { if m != nil { return m.Data2 } return nil } -// sendMessageGamePlayAction#dd6a8f48 = SendMessageAction; -type TLSendMessageGamePlayAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason; +type TLPhoneCallDiscardReasonDisconnect struct { + Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageGamePlayAction) Reset() { *m = TLSendMessageGamePlayAction{} } -func (m *TLSendMessageGamePlayAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageGamePlayAction) ProtoMessage() {} -func (*TLSendMessageGamePlayAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{135} +func (m *TLPhoneCallDiscardReasonDisconnect) Reset() { *m = TLPhoneCallDiscardReasonDisconnect{} } +func (m *TLPhoneCallDiscardReasonDisconnect) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallDiscardReasonDisconnect) ProtoMessage() {} +func (*TLPhoneCallDiscardReasonDisconnect) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{114} } -func (m *TLSendMessageGamePlayAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageGamePlayAction.Unmarshal(m, b) +func (m *TLPhoneCallDiscardReasonDisconnect) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.Unmarshal(m, b) } -func (m *TLSendMessageGamePlayAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageGamePlayAction.Marshal(b, m, deterministic) +func (m *TLPhoneCallDiscardReasonDisconnect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.Marshal(b, m, deterministic) } -func (dst *TLSendMessageGamePlayAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageGamePlayAction.Merge(dst, src) +func (dst *TLPhoneCallDiscardReasonDisconnect) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.Merge(dst, src) } -func (m *TLSendMessageGamePlayAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageGamePlayAction.Size(m) +func (m *TLPhoneCallDiscardReasonDisconnect) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.Size(m) } -func (m *TLSendMessageGamePlayAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageGamePlayAction.DiscardUnknown(m) +func (m *TLPhoneCallDiscardReasonDisconnect) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageGamePlayAction proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect proto.InternalMessageInfo -func (m *TLSendMessageGamePlayAction) GetData2() *SendMessageAction_Data { +func (m *TLPhoneCallDiscardReasonDisconnect) GetData2() *PhoneCallDiscardReason_Data { if m != nil { return m.Data2 } return nil } -// sendMessageRecordRoundAction#88f27fbc = SendMessageAction; -type TLSendMessageRecordRoundAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason; +type TLPhoneCallDiscardReasonHangup struct { + Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageRecordRoundAction) Reset() { *m = TLSendMessageRecordRoundAction{} } -func (m *TLSendMessageRecordRoundAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageRecordRoundAction) ProtoMessage() {} -func (*TLSendMessageRecordRoundAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{136} +func (m *TLPhoneCallDiscardReasonHangup) Reset() { *m = TLPhoneCallDiscardReasonHangup{} } +func (m *TLPhoneCallDiscardReasonHangup) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallDiscardReasonHangup) ProtoMessage() {} +func (*TLPhoneCallDiscardReasonHangup) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{115} } -func (m *TLSendMessageRecordRoundAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageRecordRoundAction.Unmarshal(m, b) +func (m *TLPhoneCallDiscardReasonHangup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallDiscardReasonHangup.Unmarshal(m, b) } -func (m *TLSendMessageRecordRoundAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageRecordRoundAction.Marshal(b, m, deterministic) +func (m *TLPhoneCallDiscardReasonHangup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallDiscardReasonHangup.Marshal(b, m, deterministic) } -func (dst *TLSendMessageRecordRoundAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageRecordRoundAction.Merge(dst, src) +func (dst *TLPhoneCallDiscardReasonHangup) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallDiscardReasonHangup.Merge(dst, src) } -func (m *TLSendMessageRecordRoundAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageRecordRoundAction.Size(m) +func (m *TLPhoneCallDiscardReasonHangup) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallDiscardReasonHangup.Size(m) } -func (m *TLSendMessageRecordRoundAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageRecordRoundAction.DiscardUnknown(m) +func (m *TLPhoneCallDiscardReasonHangup) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallDiscardReasonHangup.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageRecordRoundAction proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneCallDiscardReasonHangup proto.InternalMessageInfo -func (m *TLSendMessageRecordRoundAction) GetData2() *SendMessageAction_Data { +func (m *TLPhoneCallDiscardReasonHangup) GetData2() *PhoneCallDiscardReason_Data { if m != nil { return m.Data2 } return nil } -// sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction; -type TLSendMessageUploadRoundAction struct { - Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason; +type TLPhoneCallDiscardReasonBusy struct { + Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSendMessageUploadRoundAction) Reset() { *m = TLSendMessageUploadRoundAction{} } -func (m *TLSendMessageUploadRoundAction) String() string { return proto.CompactTextString(m) } -func (*TLSendMessageUploadRoundAction) ProtoMessage() {} -func (*TLSendMessageUploadRoundAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{137} +func (m *TLPhoneCallDiscardReasonBusy) Reset() { *m = TLPhoneCallDiscardReasonBusy{} } +func (m *TLPhoneCallDiscardReasonBusy) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallDiscardReasonBusy) ProtoMessage() {} +func (*TLPhoneCallDiscardReasonBusy) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{116} } -func (m *TLSendMessageUploadRoundAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSendMessageUploadRoundAction.Unmarshal(m, b) +func (m *TLPhoneCallDiscardReasonBusy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallDiscardReasonBusy.Unmarshal(m, b) } -func (m *TLSendMessageUploadRoundAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSendMessageUploadRoundAction.Marshal(b, m, deterministic) +func (m *TLPhoneCallDiscardReasonBusy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallDiscardReasonBusy.Marshal(b, m, deterministic) } -func (dst *TLSendMessageUploadRoundAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSendMessageUploadRoundAction.Merge(dst, src) +func (dst *TLPhoneCallDiscardReasonBusy) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallDiscardReasonBusy.Merge(dst, src) } -func (m *TLSendMessageUploadRoundAction) XXX_Size() int { - return xxx_messageInfo_TLSendMessageUploadRoundAction.Size(m) +func (m *TLPhoneCallDiscardReasonBusy) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallDiscardReasonBusy.Size(m) } -func (m *TLSendMessageUploadRoundAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLSendMessageUploadRoundAction.DiscardUnknown(m) +func (m *TLPhoneCallDiscardReasonBusy) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallDiscardReasonBusy.DiscardUnknown(m) } -var xxx_messageInfo_TLSendMessageUploadRoundAction proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneCallDiscardReasonBusy proto.InternalMessageInfo -func (m *TLSendMessageUploadRoundAction) GetData2() *SendMessageAction_Data { +func (m *TLPhoneCallDiscardReasonBusy) GetData2() *PhoneCallDiscardReason_Data { if m != nil { return m.Data2 } @@ -6478,972 +5809,1018 @@ func (m *TLSendMessageUploadRoundAction) GetData2() *SendMessageAction_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PrivacyRule <-- -// + TL_privacyValueAllowContacts -// + TL_privacyValueAllowAll -// + TL_privacyValueAllowUsers -// + TL_privacyValueDisallowContacts -// + TL_privacyValueDisallowAll -// + TL_privacyValueDisallowUsers +// PhoneConnection <-- +// + TL_phoneConnection // -type PrivacyRule_Data struct { - Users []int32 `protobuf:"varint,1,rep,packed,name=users,proto3" json:"users,omitempty"` +type PhoneConnection_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` + Ipv6 string `protobuf:"bytes,3,opt,name=ipv6,proto3" json:"ipv6,omitempty"` + Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` + PeerTag []byte `protobuf:"bytes,5,opt,name=peer_tag,json=peerTag,proto3" json:"peer_tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *PrivacyRule_Data) Reset() { *m = PrivacyRule_Data{} } -func (m *PrivacyRule_Data) String() string { return proto.CompactTextString(m) } -func (*PrivacyRule_Data) ProtoMessage() {} -func (*PrivacyRule_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{138} +func (m *PhoneConnection_Data) Reset() { *m = PhoneConnection_Data{} } +func (m *PhoneConnection_Data) String() string { return proto.CompactTextString(m) } +func (*PhoneConnection_Data) ProtoMessage() {} +func (*PhoneConnection_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{117} } -func (m *PrivacyRule_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PrivacyRule_Data.Unmarshal(m, b) +func (m *PhoneConnection_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhoneConnection_Data.Unmarshal(m, b) } -func (m *PrivacyRule_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PrivacyRule_Data.Marshal(b, m, deterministic) +func (m *PhoneConnection_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhoneConnection_Data.Marshal(b, m, deterministic) } -func (dst *PrivacyRule_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrivacyRule_Data.Merge(dst, src) +func (dst *PhoneConnection_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhoneConnection_Data.Merge(dst, src) } -func (m *PrivacyRule_Data) XXX_Size() int { - return xxx_messageInfo_PrivacyRule_Data.Size(m) +func (m *PhoneConnection_Data) XXX_Size() int { + return xxx_messageInfo_PhoneConnection_Data.Size(m) } -func (m *PrivacyRule_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PrivacyRule_Data.DiscardUnknown(m) +func (m *PhoneConnection_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PhoneConnection_Data.DiscardUnknown(m) } -var xxx_messageInfo_PrivacyRule_Data proto.InternalMessageInfo +var xxx_messageInfo_PhoneConnection_Data proto.InternalMessageInfo -func (m *PrivacyRule_Data) GetUsers() []int32 { +func (m *PhoneConnection_Data) GetId() int64 { if m != nil { - return m.Users + return m.Id + } + return 0 +} + +func (m *PhoneConnection_Data) GetIp() string { + if m != nil { + return m.Ip + } + return "" +} + +func (m *PhoneConnection_Data) GetIpv6() string { + if m != nil { + return m.Ipv6 + } + return "" +} + +func (m *PhoneConnection_Data) GetPort() int32 { + if m != nil { + return m.Port + } + return 0 +} + +func (m *PhoneConnection_Data) GetPeerTag() []byte { + if m != nil { + return m.PeerTag } return nil } -type PrivacyRule struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PhoneConnection struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PhoneConnection_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PrivacyRule) Reset() { *m = PrivacyRule{} } -func (m *PrivacyRule) String() string { return proto.CompactTextString(m) } -func (*PrivacyRule) ProtoMessage() {} -func (*PrivacyRule) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{139} +func (m *PhoneConnection) Reset() { *m = PhoneConnection{} } +func (m *PhoneConnection) String() string { return proto.CompactTextString(m) } +func (*PhoneConnection) ProtoMessage() {} +func (*PhoneConnection) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{118} } -func (m *PrivacyRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PrivacyRule.Unmarshal(m, b) +func (m *PhoneConnection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhoneConnection.Unmarshal(m, b) } -func (m *PrivacyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PrivacyRule.Marshal(b, m, deterministic) +func (m *PhoneConnection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhoneConnection.Marshal(b, m, deterministic) } -func (dst *PrivacyRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrivacyRule.Merge(dst, src) +func (dst *PhoneConnection) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhoneConnection.Merge(dst, src) } -func (m *PrivacyRule) XXX_Size() int { - return xxx_messageInfo_PrivacyRule.Size(m) +func (m *PhoneConnection) XXX_Size() int { + return xxx_messageInfo_PhoneConnection.Size(m) } -func (m *PrivacyRule) XXX_DiscardUnknown() { - xxx_messageInfo_PrivacyRule.DiscardUnknown(m) +func (m *PhoneConnection) XXX_DiscardUnknown() { + xxx_messageInfo_PhoneConnection.DiscardUnknown(m) } -var xxx_messageInfo_PrivacyRule proto.InternalMessageInfo +var xxx_messageInfo_PhoneConnection proto.InternalMessageInfo -func (m *PrivacyRule) GetConstructor() TLConstructor { +func (m *PhoneConnection) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PrivacyRule) GetData2() *PrivacyRule_Data { +func (m *PhoneConnection) GetData2() *PhoneConnection_Data { if m != nil { return m.Data2 } return nil } -// privacyValueAllowContacts#fffe1bac = PrivacyRule; -type TLPrivacyValueAllowContacts struct { - Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; +type TLPhoneConnection struct { + Data2 *PhoneConnection_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPrivacyValueAllowContacts) Reset() { *m = TLPrivacyValueAllowContacts{} } -func (m *TLPrivacyValueAllowContacts) String() string { return proto.CompactTextString(m) } -func (*TLPrivacyValueAllowContacts) ProtoMessage() {} -func (*TLPrivacyValueAllowContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{140} +func (m *TLPhoneConnection) Reset() { *m = TLPhoneConnection{} } +func (m *TLPhoneConnection) String() string { return proto.CompactTextString(m) } +func (*TLPhoneConnection) ProtoMessage() {} +func (*TLPhoneConnection) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{119} } -func (m *TLPrivacyValueAllowContacts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPrivacyValueAllowContacts.Unmarshal(m, b) +func (m *TLPhoneConnection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneConnection.Unmarshal(m, b) } -func (m *TLPrivacyValueAllowContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPrivacyValueAllowContacts.Marshal(b, m, deterministic) +func (m *TLPhoneConnection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneConnection.Marshal(b, m, deterministic) } -func (dst *TLPrivacyValueAllowContacts) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPrivacyValueAllowContacts.Merge(dst, src) +func (dst *TLPhoneConnection) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneConnection.Merge(dst, src) } -func (m *TLPrivacyValueAllowContacts) XXX_Size() int { - return xxx_messageInfo_TLPrivacyValueAllowContacts.Size(m) +func (m *TLPhoneConnection) XXX_Size() int { + return xxx_messageInfo_TLPhoneConnection.Size(m) } -func (m *TLPrivacyValueAllowContacts) XXX_DiscardUnknown() { - xxx_messageInfo_TLPrivacyValueAllowContacts.DiscardUnknown(m) +func (m *TLPhoneConnection) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneConnection.DiscardUnknown(m) } -var xxx_messageInfo_TLPrivacyValueAllowContacts proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneConnection proto.InternalMessageInfo -func (m *TLPrivacyValueAllowContacts) GetData2() *PrivacyRule_Data { +func (m *TLPhoneConnection) GetData2() *PhoneConnection_Data { if m != nil { return m.Data2 } return nil } -// privacyValueAllowAll#65427b82 = PrivacyRule; -type TLPrivacyValueAllowAll struct { - Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// ChannelAdminLogEvent <-- +// + TL_channelAdminLogEvent +// +type ChannelAdminLogEvent_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` + UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Action *ChannelAdminLogEventAction `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPrivacyValueAllowAll) Reset() { *m = TLPrivacyValueAllowAll{} } -func (m *TLPrivacyValueAllowAll) String() string { return proto.CompactTextString(m) } -func (*TLPrivacyValueAllowAll) ProtoMessage() {} -func (*TLPrivacyValueAllowAll) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{141} +func (m *ChannelAdminLogEvent_Data) Reset() { *m = ChannelAdminLogEvent_Data{} } +func (m *ChannelAdminLogEvent_Data) String() string { return proto.CompactTextString(m) } +func (*ChannelAdminLogEvent_Data) ProtoMessage() {} +func (*ChannelAdminLogEvent_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{120} } -func (m *TLPrivacyValueAllowAll) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPrivacyValueAllowAll.Unmarshal(m, b) +func (m *ChannelAdminLogEvent_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelAdminLogEvent_Data.Unmarshal(m, b) } -func (m *TLPrivacyValueAllowAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPrivacyValueAllowAll.Marshal(b, m, deterministic) +func (m *ChannelAdminLogEvent_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelAdminLogEvent_Data.Marshal(b, m, deterministic) } -func (dst *TLPrivacyValueAllowAll) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPrivacyValueAllowAll.Merge(dst, src) +func (dst *ChannelAdminLogEvent_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelAdminLogEvent_Data.Merge(dst, src) } -func (m *TLPrivacyValueAllowAll) XXX_Size() int { - return xxx_messageInfo_TLPrivacyValueAllowAll.Size(m) +func (m *ChannelAdminLogEvent_Data) XXX_Size() int { + return xxx_messageInfo_ChannelAdminLogEvent_Data.Size(m) } -func (m *TLPrivacyValueAllowAll) XXX_DiscardUnknown() { - xxx_messageInfo_TLPrivacyValueAllowAll.DiscardUnknown(m) +func (m *ChannelAdminLogEvent_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelAdminLogEvent_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPrivacyValueAllowAll proto.InternalMessageInfo +var xxx_messageInfo_ChannelAdminLogEvent_Data proto.InternalMessageInfo -func (m *TLPrivacyValueAllowAll) GetData2() *PrivacyRule_Data { +func (m *ChannelAdminLogEvent_Data) GetId() int64 { if m != nil { - return m.Data2 + return m.Id } - return nil + return 0 } -// privacyValueAllowUsers#4d5bbe0c users:Vector = PrivacyRule; -type TLPrivacyValueAllowUsers struct { - Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelAdminLogEvent_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 } -func (m *TLPrivacyValueAllowUsers) Reset() { *m = TLPrivacyValueAllowUsers{} } -func (m *TLPrivacyValueAllowUsers) String() string { return proto.CompactTextString(m) } -func (*TLPrivacyValueAllowUsers) ProtoMessage() {} -func (*TLPrivacyValueAllowUsers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{142} -} -func (m *TLPrivacyValueAllowUsers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPrivacyValueAllowUsers.Unmarshal(m, b) -} -func (m *TLPrivacyValueAllowUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPrivacyValueAllowUsers.Marshal(b, m, deterministic) -} -func (dst *TLPrivacyValueAllowUsers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPrivacyValueAllowUsers.Merge(dst, src) -} -func (m *TLPrivacyValueAllowUsers) XXX_Size() int { - return xxx_messageInfo_TLPrivacyValueAllowUsers.Size(m) -} -func (m *TLPrivacyValueAllowUsers) XXX_DiscardUnknown() { - xxx_messageInfo_TLPrivacyValueAllowUsers.DiscardUnknown(m) +func (m *ChannelAdminLogEvent_Data) GetUserId() int32 { + if m != nil { + return m.UserId + } + return 0 } -var xxx_messageInfo_TLPrivacyValueAllowUsers proto.InternalMessageInfo - -func (m *TLPrivacyValueAllowUsers) GetData2() *PrivacyRule_Data { +func (m *ChannelAdminLogEvent_Data) GetAction() *ChannelAdminLogEventAction { if m != nil { - return m.Data2 + return m.Action } return nil } -// privacyValueDisallowContacts#f888fa1a = PrivacyRule; -type TLPrivacyValueDisallowContacts struct { - Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelAdminLogEvent struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChannelAdminLogEvent_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPrivacyValueDisallowContacts) Reset() { *m = TLPrivacyValueDisallowContacts{} } -func (m *TLPrivacyValueDisallowContacts) String() string { return proto.CompactTextString(m) } -func (*TLPrivacyValueDisallowContacts) ProtoMessage() {} -func (*TLPrivacyValueDisallowContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{143} +func (m *ChannelAdminLogEvent) Reset() { *m = ChannelAdminLogEvent{} } +func (m *ChannelAdminLogEvent) String() string { return proto.CompactTextString(m) } +func (*ChannelAdminLogEvent) ProtoMessage() {} +func (*ChannelAdminLogEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{121} } -func (m *TLPrivacyValueDisallowContacts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPrivacyValueDisallowContacts.Unmarshal(m, b) +func (m *ChannelAdminLogEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelAdminLogEvent.Unmarshal(m, b) } -func (m *TLPrivacyValueDisallowContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPrivacyValueDisallowContacts.Marshal(b, m, deterministic) +func (m *ChannelAdminLogEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelAdminLogEvent.Marshal(b, m, deterministic) } -func (dst *TLPrivacyValueDisallowContacts) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPrivacyValueDisallowContacts.Merge(dst, src) +func (dst *ChannelAdminLogEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelAdminLogEvent.Merge(dst, src) } -func (m *TLPrivacyValueDisallowContacts) XXX_Size() int { - return xxx_messageInfo_TLPrivacyValueDisallowContacts.Size(m) +func (m *ChannelAdminLogEvent) XXX_Size() int { + return xxx_messageInfo_ChannelAdminLogEvent.Size(m) } -func (m *TLPrivacyValueDisallowContacts) XXX_DiscardUnknown() { - xxx_messageInfo_TLPrivacyValueDisallowContacts.DiscardUnknown(m) +func (m *ChannelAdminLogEvent) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelAdminLogEvent.DiscardUnknown(m) } -var xxx_messageInfo_TLPrivacyValueDisallowContacts proto.InternalMessageInfo +var xxx_messageInfo_ChannelAdminLogEvent proto.InternalMessageInfo -func (m *TLPrivacyValueDisallowContacts) GetData2() *PrivacyRule_Data { +func (m *ChannelAdminLogEvent) GetConstructor() TLConstructor { if m != nil { - return m.Data2 + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -// privacyValueDisallowAll#8b73e763 = PrivacyRule; -type TLPrivacyValueDisallowAll struct { - Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelAdminLogEvent) GetData2() *ChannelAdminLogEvent_Data { + if m != nil { + return m.Data2 + } + return nil } -func (m *TLPrivacyValueDisallowAll) Reset() { *m = TLPrivacyValueDisallowAll{} } -func (m *TLPrivacyValueDisallowAll) String() string { return proto.CompactTextString(m) } -func (*TLPrivacyValueDisallowAll) ProtoMessage() {} -func (*TLPrivacyValueDisallowAll) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{144} +// channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent; +type TLChannelAdminLogEvent struct { + Data2 *ChannelAdminLogEvent_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPrivacyValueDisallowAll) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPrivacyValueDisallowAll.Unmarshal(m, b) + +func (m *TLChannelAdminLogEvent) Reset() { *m = TLChannelAdminLogEvent{} } +func (m *TLChannelAdminLogEvent) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminLogEvent) ProtoMessage() {} +func (*TLChannelAdminLogEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{122} } -func (m *TLPrivacyValueDisallowAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPrivacyValueDisallowAll.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEvent.Unmarshal(m, b) } -func (dst *TLPrivacyValueDisallowAll) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPrivacyValueDisallowAll.Merge(dst, src) +func (m *TLChannelAdminLogEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEvent.Marshal(b, m, deterministic) } -func (m *TLPrivacyValueDisallowAll) XXX_Size() int { - return xxx_messageInfo_TLPrivacyValueDisallowAll.Size(m) +func (dst *TLChannelAdminLogEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEvent.Merge(dst, src) } -func (m *TLPrivacyValueDisallowAll) XXX_DiscardUnknown() { - xxx_messageInfo_TLPrivacyValueDisallowAll.DiscardUnknown(m) +func (m *TLChannelAdminLogEvent) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEvent.Size(m) +} +func (m *TLChannelAdminLogEvent) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEvent.DiscardUnknown(m) } -var xxx_messageInfo_TLPrivacyValueDisallowAll proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEvent proto.InternalMessageInfo -func (m *TLPrivacyValueDisallowAll) GetData2() *PrivacyRule_Data { +func (m *TLChannelAdminLogEvent) GetData2() *ChannelAdminLogEvent_Data { if m != nil { return m.Data2 } return nil } -// privacyValueDisallowUsers#c7f49b7 users:Vector = PrivacyRule; -type TLPrivacyValueDisallowUsers struct { - Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// Document <-- +// + TL_documentEmpty +// + TL_document +// + TL_documentLayer86 +// +type Document_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` + MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + Size int32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` + Thumb *PhotoSize `protobuf:"bytes,6,opt,name=thumb,proto3" json:"thumb,omitempty"` + DcId int32 `protobuf:"varint,7,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` + Version int32 `protobuf:"varint,8,opt,name=version,proto3" json:"version,omitempty"` + Attributes []*DocumentAttribute `protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes,omitempty"` + FileReference []byte `protobuf:"bytes,10,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPrivacyValueDisallowUsers) Reset() { *m = TLPrivacyValueDisallowUsers{} } -func (m *TLPrivacyValueDisallowUsers) String() string { return proto.CompactTextString(m) } -func (*TLPrivacyValueDisallowUsers) ProtoMessage() {} -func (*TLPrivacyValueDisallowUsers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{145} +func (m *Document_Data) Reset() { *m = Document_Data{} } +func (m *Document_Data) String() string { return proto.CompactTextString(m) } +func (*Document_Data) ProtoMessage() {} +func (*Document_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{123} } -func (m *TLPrivacyValueDisallowUsers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPrivacyValueDisallowUsers.Unmarshal(m, b) +func (m *Document_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Document_Data.Unmarshal(m, b) } -func (m *TLPrivacyValueDisallowUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPrivacyValueDisallowUsers.Marshal(b, m, deterministic) +func (m *Document_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Document_Data.Marshal(b, m, deterministic) } -func (dst *TLPrivacyValueDisallowUsers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPrivacyValueDisallowUsers.Merge(dst, src) +func (dst *Document_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Document_Data.Merge(dst, src) } -func (m *TLPrivacyValueDisallowUsers) XXX_Size() int { - return xxx_messageInfo_TLPrivacyValueDisallowUsers.Size(m) +func (m *Document_Data) XXX_Size() int { + return xxx_messageInfo_Document_Data.Size(m) } -func (m *TLPrivacyValueDisallowUsers) XXX_DiscardUnknown() { - xxx_messageInfo_TLPrivacyValueDisallowUsers.DiscardUnknown(m) +func (m *Document_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Document_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPrivacyValueDisallowUsers proto.InternalMessageInfo +var xxx_messageInfo_Document_Data proto.InternalMessageInfo -func (m *TLPrivacyValueDisallowUsers) GetData2() *PrivacyRule_Data { +func (m *Document_Data) GetId() int64 { if m != nil { - return m.Data2 + return m.Id } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// messages_Stickers <-- -// + TL_messages_stickersNotModified -// + TL_messages_stickers -// -type Messages_Stickers_Data struct { - Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - Stickers []*Document `protobuf:"bytes,2,rep,name=stickers,proto3" json:"stickers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Document_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 } -func (m *Messages_Stickers_Data) Reset() { *m = Messages_Stickers_Data{} } -func (m *Messages_Stickers_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_Stickers_Data) ProtoMessage() {} -func (*Messages_Stickers_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{146} -} -func (m *Messages_Stickers_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_Stickers_Data.Unmarshal(m, b) -} -func (m *Messages_Stickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_Stickers_Data.Marshal(b, m, deterministic) +func (m *Document_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 } -func (dst *Messages_Stickers_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_Stickers_Data.Merge(dst, src) + +func (m *Document_Data) GetMimeType() string { + if m != nil { + return m.MimeType + } + return "" } -func (m *Messages_Stickers_Data) XXX_Size() int { - return xxx_messageInfo_Messages_Stickers_Data.Size(m) + +func (m *Document_Data) GetSize() int32 { + if m != nil { + return m.Size + } + return 0 } -func (m *Messages_Stickers_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_Stickers_Data.DiscardUnknown(m) + +func (m *Document_Data) GetThumb() *PhotoSize { + if m != nil { + return m.Thumb + } + return nil } -var xxx_messageInfo_Messages_Stickers_Data proto.InternalMessageInfo +func (m *Document_Data) GetDcId() int32 { + if m != nil { + return m.DcId + } + return 0 +} -func (m *Messages_Stickers_Data) GetHash() int32 { +func (m *Document_Data) GetVersion() int32 { if m != nil { - return m.Hash + return m.Version } return 0 } -func (m *Messages_Stickers_Data) GetStickers() []*Document { +func (m *Document_Data) GetAttributes() []*DocumentAttribute { if m != nil { - return m.Stickers + return m.Attributes } return nil } -type Messages_Stickers struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_Stickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Document_Data) GetFileReference() []byte { + if m != nil { + return m.FileReference + } + return nil } -func (m *Messages_Stickers) Reset() { *m = Messages_Stickers{} } -func (m *Messages_Stickers) String() string { return proto.CompactTextString(m) } -func (*Messages_Stickers) ProtoMessage() {} -func (*Messages_Stickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{147} +type Document struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Document_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_Stickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_Stickers.Unmarshal(m, b) + +func (m *Document) Reset() { *m = Document{} } +func (m *Document) String() string { return proto.CompactTextString(m) } +func (*Document) ProtoMessage() {} +func (*Document) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{124} } -func (m *Messages_Stickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_Stickers.Marshal(b, m, deterministic) +func (m *Document) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Document.Unmarshal(m, b) } -func (dst *Messages_Stickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_Stickers.Merge(dst, src) +func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Document.Marshal(b, m, deterministic) } -func (m *Messages_Stickers) XXX_Size() int { - return xxx_messageInfo_Messages_Stickers.Size(m) +func (dst *Document) XXX_Merge(src proto.Message) { + xxx_messageInfo_Document.Merge(dst, src) } -func (m *Messages_Stickers) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_Stickers.DiscardUnknown(m) +func (m *Document) XXX_Size() int { + return xxx_messageInfo_Document.Size(m) +} +func (m *Document) XXX_DiscardUnknown() { + xxx_messageInfo_Document.DiscardUnknown(m) } -var xxx_messageInfo_Messages_Stickers proto.InternalMessageInfo +var xxx_messageInfo_Document proto.InternalMessageInfo -func (m *Messages_Stickers) GetConstructor() TLConstructor { +func (m *Document) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_Stickers) GetData2() *Messages_Stickers_Data { +func (m *Document) GetData2() *Document_Data { if m != nil { return m.Data2 } return nil } -// messages.stickersNotModified#f1749a22 = messages.Stickers; -type TLMessagesStickersNotModified struct { - Data2 *Messages_Stickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// documentEmpty#36f8c871 id:long = Document; +type TLDocumentEmpty struct { + Data2 *Document_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesStickersNotModified) Reset() { *m = TLMessagesStickersNotModified{} } -func (m *TLMessagesStickersNotModified) String() string { return proto.CompactTextString(m) } -func (*TLMessagesStickersNotModified) ProtoMessage() {} -func (*TLMessagesStickersNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{148} +func (m *TLDocumentEmpty) Reset() { *m = TLDocumentEmpty{} } +func (m *TLDocumentEmpty) String() string { return proto.CompactTextString(m) } +func (*TLDocumentEmpty) ProtoMessage() {} +func (*TLDocumentEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{125} } -func (m *TLMessagesStickersNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesStickersNotModified.Unmarshal(m, b) +func (m *TLDocumentEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocumentEmpty.Unmarshal(m, b) } -func (m *TLMessagesStickersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesStickersNotModified.Marshal(b, m, deterministic) +func (m *TLDocumentEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocumentEmpty.Marshal(b, m, deterministic) } -func (dst *TLMessagesStickersNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesStickersNotModified.Merge(dst, src) +func (dst *TLDocumentEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocumentEmpty.Merge(dst, src) } -func (m *TLMessagesStickersNotModified) XXX_Size() int { - return xxx_messageInfo_TLMessagesStickersNotModified.Size(m) +func (m *TLDocumentEmpty) XXX_Size() int { + return xxx_messageInfo_TLDocumentEmpty.Size(m) } -func (m *TLMessagesStickersNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesStickersNotModified.DiscardUnknown(m) +func (m *TLDocumentEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocumentEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesStickersNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLDocumentEmpty proto.InternalMessageInfo -func (m *TLMessagesStickersNotModified) GetData2() *Messages_Stickers_Data { +func (m *TLDocumentEmpty) GetData2() *Document_Data { if m != nil { return m.Data2 } return nil } -// messages.stickers#e4599bbd hash:int stickers:Vector = messages.Stickers; -type TLMessagesStickers struct { - Data2 *Messages_Stickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// document#87232bc7 id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int version:int attributes:Vector = Document; +type TLDocument struct { + Data2 *Document_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesStickers) Reset() { *m = TLMessagesStickers{} } -func (m *TLMessagesStickers) String() string { return proto.CompactTextString(m) } -func (*TLMessagesStickers) ProtoMessage() {} -func (*TLMessagesStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{149} +func (m *TLDocument) Reset() { *m = TLDocument{} } +func (m *TLDocument) String() string { return proto.CompactTextString(m) } +func (*TLDocument) ProtoMessage() {} +func (*TLDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{126} } -func (m *TLMessagesStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesStickers.Unmarshal(m, b) +func (m *TLDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocument.Unmarshal(m, b) } -func (m *TLMessagesStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesStickers.Marshal(b, m, deterministic) +func (m *TLDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocument.Marshal(b, m, deterministic) } -func (dst *TLMessagesStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesStickers.Merge(dst, src) +func (dst *TLDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocument.Merge(dst, src) } -func (m *TLMessagesStickers) XXX_Size() int { - return xxx_messageInfo_TLMessagesStickers.Size(m) +func (m *TLDocument) XXX_Size() int { + return xxx_messageInfo_TLDocument.Size(m) } -func (m *TLMessagesStickers) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesStickers.DiscardUnknown(m) +func (m *TLDocument) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocument.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesStickers proto.InternalMessageInfo +var xxx_messageInfo_TLDocument proto.InternalMessageInfo -func (m *TLMessagesStickers) GetData2() *Messages_Stickers_Data { +func (m *TLDocument) GetData2() *Document_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// DocumentAttribute <-- -// + TL_documentAttributeImageSize -// + TL_documentAttributeAnimated -// + TL_documentAttributeSticker -// + TL_documentAttributeVideo -// + TL_documentAttributeAudio -// + TL_documentAttributeFilename -// + TL_documentAttributeHasStickers -// -type DocumentAttribute_Data struct { - W int32 `protobuf:"varint,1,opt,name=w,proto3" json:"w,omitempty"` - H int32 `protobuf:"varint,2,opt,name=h,proto3" json:"h,omitempty"` - Mask bool `protobuf:"varint,3,opt,name=mask,proto3" json:"mask,omitempty"` - Alt string `protobuf:"bytes,4,opt,name=alt,proto3" json:"alt,omitempty"` - Stickerset *InputStickerSet `protobuf:"bytes,5,opt,name=stickerset,proto3" json:"stickerset,omitempty"` - MaskCoords *MaskCoords `protobuf:"bytes,6,opt,name=mask_coords,json=maskCoords,proto3" json:"mask_coords,omitempty"` - RoundMessage bool `protobuf:"varint,7,opt,name=round_message,json=roundMessage,proto3" json:"round_message,omitempty"` - SupportsStreaming bool `protobuf:"varint,8,opt,name=supports_streaming,json=supportsStreaming,proto3" json:"supports_streaming,omitempty"` - Duration int32 `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty"` - Voice bool `protobuf:"varint,10,opt,name=voice,proto3" json:"voice,omitempty"` - Title string `protobuf:"bytes,11,opt,name=title,proto3" json:"title,omitempty"` - Performer string `protobuf:"bytes,12,opt,name=performer,proto3" json:"performer,omitempty"` - Waveform []byte `protobuf:"bytes,13,opt,name=waveform,proto3" json:"waveform,omitempty"` - FileName string `protobuf:"bytes,14,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// document#59534e4c id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = Document; +type TLDocumentLayer86 struct { + Data2 *Document_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DocumentAttribute_Data) Reset() { *m = DocumentAttribute_Data{} } -func (m *DocumentAttribute_Data) String() string { return proto.CompactTextString(m) } -func (*DocumentAttribute_Data) ProtoMessage() {} -func (*DocumentAttribute_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{150} +func (m *TLDocumentLayer86) Reset() { *m = TLDocumentLayer86{} } +func (m *TLDocumentLayer86) String() string { return proto.CompactTextString(m) } +func (*TLDocumentLayer86) ProtoMessage() {} +func (*TLDocumentLayer86) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{127} } -func (m *DocumentAttribute_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DocumentAttribute_Data.Unmarshal(m, b) +func (m *TLDocumentLayer86) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocumentLayer86.Unmarshal(m, b) } -func (m *DocumentAttribute_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DocumentAttribute_Data.Marshal(b, m, deterministic) +func (m *TLDocumentLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocumentLayer86.Marshal(b, m, deterministic) } -func (dst *DocumentAttribute_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_DocumentAttribute_Data.Merge(dst, src) +func (dst *TLDocumentLayer86) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocumentLayer86.Merge(dst, src) } -func (m *DocumentAttribute_Data) XXX_Size() int { - return xxx_messageInfo_DocumentAttribute_Data.Size(m) +func (m *TLDocumentLayer86) XXX_Size() int { + return xxx_messageInfo_TLDocumentLayer86.Size(m) } -func (m *DocumentAttribute_Data) XXX_DiscardUnknown() { - xxx_messageInfo_DocumentAttribute_Data.DiscardUnknown(m) +func (m *TLDocumentLayer86) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocumentLayer86.DiscardUnknown(m) } -var xxx_messageInfo_DocumentAttribute_Data proto.InternalMessageInfo +var xxx_messageInfo_TLDocumentLayer86 proto.InternalMessageInfo -func (m *DocumentAttribute_Data) GetW() int32 { +func (m *TLDocumentLayer86) GetData2() *Document_Data { if m != nil { - return m.W + return m.Data2 } - return 0 + return nil } -func (m *DocumentAttribute_Data) GetH() int32 { - if m != nil { - return m.H - } - return 0 +// ///////////////////////////////////////////////////////////////////////////// +// account_PrivacyRules <-- +// + TL_account_privacyRules +// +type Account_PrivacyRules_Data struct { + Rules []*PrivacyRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` + Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DocumentAttribute_Data) GetMask() bool { - if m != nil { - return m.Mask - } - return false +func (m *Account_PrivacyRules_Data) Reset() { *m = Account_PrivacyRules_Data{} } +func (m *Account_PrivacyRules_Data) String() string { return proto.CompactTextString(m) } +func (*Account_PrivacyRules_Data) ProtoMessage() {} +func (*Account_PrivacyRules_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{128} } - -func (m *DocumentAttribute_Data) GetAlt() string { - if m != nil { - return m.Alt - } - return "" +func (m *Account_PrivacyRules_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_PrivacyRules_Data.Unmarshal(m, b) +} +func (m *Account_PrivacyRules_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_PrivacyRules_Data.Marshal(b, m, deterministic) +} +func (dst *Account_PrivacyRules_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_PrivacyRules_Data.Merge(dst, src) +} +func (m *Account_PrivacyRules_Data) XXX_Size() int { + return xxx_messageInfo_Account_PrivacyRules_Data.Size(m) +} +func (m *Account_PrivacyRules_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_PrivacyRules_Data.DiscardUnknown(m) } -func (m *DocumentAttribute_Data) GetStickerset() *InputStickerSet { +var xxx_messageInfo_Account_PrivacyRules_Data proto.InternalMessageInfo + +func (m *Account_PrivacyRules_Data) GetRules() []*PrivacyRule { if m != nil { - return m.Stickerset + return m.Rules } return nil } -func (m *DocumentAttribute_Data) GetMaskCoords() *MaskCoords { +func (m *Account_PrivacyRules_Data) GetUsers() []*User { if m != nil { - return m.MaskCoords + return m.Users } return nil } -func (m *DocumentAttribute_Data) GetRoundMessage() bool { - if m != nil { - return m.RoundMessage - } - return false +type Account_PrivacyRules struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_PrivacyRules_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DocumentAttribute_Data) GetSupportsStreaming() bool { - if m != nil { - return m.SupportsStreaming - } - return false +func (m *Account_PrivacyRules) Reset() { *m = Account_PrivacyRules{} } +func (m *Account_PrivacyRules) String() string { return proto.CompactTextString(m) } +func (*Account_PrivacyRules) ProtoMessage() {} +func (*Account_PrivacyRules) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{129} } - -func (m *DocumentAttribute_Data) GetDuration() int32 { - if m != nil { - return m.Duration - } - return 0 +func (m *Account_PrivacyRules) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_PrivacyRules.Unmarshal(m, b) } - -func (m *DocumentAttribute_Data) GetVoice() bool { - if m != nil { - return m.Voice - } - return false +func (m *Account_PrivacyRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_PrivacyRules.Marshal(b, m, deterministic) } - -func (m *DocumentAttribute_Data) GetTitle() string { - if m != nil { - return m.Title - } - return "" +func (dst *Account_PrivacyRules) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_PrivacyRules.Merge(dst, src) +} +func (m *Account_PrivacyRules) XXX_Size() int { + return xxx_messageInfo_Account_PrivacyRules.Size(m) +} +func (m *Account_PrivacyRules) XXX_DiscardUnknown() { + xxx_messageInfo_Account_PrivacyRules.DiscardUnknown(m) } -func (m *DocumentAttribute_Data) GetPerformer() string { +var xxx_messageInfo_Account_PrivacyRules proto.InternalMessageInfo + +func (m *Account_PrivacyRules) GetConstructor() TLConstructor { if m != nil { - return m.Performer + return m.Constructor } - return "" + return TLConstructor_CRC32_UNKNOWN } -func (m *DocumentAttribute_Data) GetWaveform() []byte { +func (m *Account_PrivacyRules) GetData2() *Account_PrivacyRules_Data { if m != nil { - return m.Waveform + return m.Data2 } return nil } -func (m *DocumentAttribute_Data) GetFileName() string { - if m != nil { - return m.FileName - } - return "" -} - -type DocumentAttribute struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// account.privacyRules#554abb6f rules:Vector users:Vector = account.PrivacyRules; +type TLAccountPrivacyRules struct { + Data2 *Account_PrivacyRules_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DocumentAttribute) Reset() { *m = DocumentAttribute{} } -func (m *DocumentAttribute) String() string { return proto.CompactTextString(m) } -func (*DocumentAttribute) ProtoMessage() {} -func (*DocumentAttribute) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{151} +func (m *TLAccountPrivacyRules) Reset() { *m = TLAccountPrivacyRules{} } +func (m *TLAccountPrivacyRules) String() string { return proto.CompactTextString(m) } +func (*TLAccountPrivacyRules) ProtoMessage() {} +func (*TLAccountPrivacyRules) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{130} } -func (m *DocumentAttribute) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DocumentAttribute.Unmarshal(m, b) +func (m *TLAccountPrivacyRules) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountPrivacyRules.Unmarshal(m, b) } -func (m *DocumentAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DocumentAttribute.Marshal(b, m, deterministic) +func (m *TLAccountPrivacyRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountPrivacyRules.Marshal(b, m, deterministic) } -func (dst *DocumentAttribute) XXX_Merge(src proto.Message) { - xxx_messageInfo_DocumentAttribute.Merge(dst, src) +func (dst *TLAccountPrivacyRules) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountPrivacyRules.Merge(dst, src) } -func (m *DocumentAttribute) XXX_Size() int { - return xxx_messageInfo_DocumentAttribute.Size(m) +func (m *TLAccountPrivacyRules) XXX_Size() int { + return xxx_messageInfo_TLAccountPrivacyRules.Size(m) } -func (m *DocumentAttribute) XXX_DiscardUnknown() { - xxx_messageInfo_DocumentAttribute.DiscardUnknown(m) +func (m *TLAccountPrivacyRules) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountPrivacyRules.DiscardUnknown(m) } -var xxx_messageInfo_DocumentAttribute proto.InternalMessageInfo - -func (m *DocumentAttribute) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLAccountPrivacyRules proto.InternalMessageInfo -func (m *DocumentAttribute) GetData2() *DocumentAttribute_Data { +func (m *TLAccountPrivacyRules) GetData2() *Account_PrivacyRules_Data { if m != nil { return m.Data2 } return nil } -// documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; -type TLDocumentAttributeImageSize struct { - Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputPaymentCredentials <-- +// + TL_inputPaymentCredentialsSaved +// + TL_inputPaymentCredentials +// + TL_inputPaymentCredentialsApplePay +// + TL_inputPaymentCredentialsAndroidPay +// +type InputPaymentCredentials_Data struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + TmpPassword []byte `protobuf:"bytes,2,opt,name=tmp_password,json=tmpPassword,proto3" json:"tmp_password,omitempty"` + Save bool `protobuf:"varint,3,opt,name=save,proto3" json:"save,omitempty"` + Data *DataJSON `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` + PaymentData *DataJSON `protobuf:"bytes,5,opt,name=payment_data,json=paymentData,proto3" json:"payment_data,omitempty"` + PaymentToken *DataJSON `protobuf:"bytes,6,opt,name=payment_token,json=paymentToken,proto3" json:"payment_token,omitempty"` + GoogleTransactionId string `protobuf:"bytes,7,opt,name=google_transaction_id,json=googleTransactionId,proto3" json:"google_transaction_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDocumentAttributeImageSize) Reset() { *m = TLDocumentAttributeImageSize{} } -func (m *TLDocumentAttributeImageSize) String() string { return proto.CompactTextString(m) } -func (*TLDocumentAttributeImageSize) ProtoMessage() {} -func (*TLDocumentAttributeImageSize) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{152} +func (m *InputPaymentCredentials_Data) Reset() { *m = InputPaymentCredentials_Data{} } +func (m *InputPaymentCredentials_Data) String() string { return proto.CompactTextString(m) } +func (*InputPaymentCredentials_Data) ProtoMessage() {} +func (*InputPaymentCredentials_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{131} } -func (m *TLDocumentAttributeImageSize) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocumentAttributeImageSize.Unmarshal(m, b) +func (m *InputPaymentCredentials_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPaymentCredentials_Data.Unmarshal(m, b) } -func (m *TLDocumentAttributeImageSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocumentAttributeImageSize.Marshal(b, m, deterministic) +func (m *InputPaymentCredentials_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPaymentCredentials_Data.Marshal(b, m, deterministic) } -func (dst *TLDocumentAttributeImageSize) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocumentAttributeImageSize.Merge(dst, src) +func (dst *InputPaymentCredentials_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPaymentCredentials_Data.Merge(dst, src) } -func (m *TLDocumentAttributeImageSize) XXX_Size() int { - return xxx_messageInfo_TLDocumentAttributeImageSize.Size(m) +func (m *InputPaymentCredentials_Data) XXX_Size() int { + return xxx_messageInfo_InputPaymentCredentials_Data.Size(m) } -func (m *TLDocumentAttributeImageSize) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocumentAttributeImageSize.DiscardUnknown(m) +func (m *InputPaymentCredentials_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputPaymentCredentials_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLDocumentAttributeImageSize proto.InternalMessageInfo +var xxx_messageInfo_InputPaymentCredentials_Data proto.InternalMessageInfo -func (m *TLDocumentAttributeImageSize) GetData2() *DocumentAttribute_Data { +func (m *InputPaymentCredentials_Data) GetId() string { if m != nil { - return m.Data2 + return m.Id } - return nil + return "" } -// documentAttributeAnimated#11b58939 = DocumentAttribute; -type TLDocumentAttributeAnimated struct { - Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputPaymentCredentials_Data) GetTmpPassword() []byte { + if m != nil { + return m.TmpPassword + } + return nil } -func (m *TLDocumentAttributeAnimated) Reset() { *m = TLDocumentAttributeAnimated{} } -func (m *TLDocumentAttributeAnimated) String() string { return proto.CompactTextString(m) } -func (*TLDocumentAttributeAnimated) ProtoMessage() {} -func (*TLDocumentAttributeAnimated) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{153} -} -func (m *TLDocumentAttributeAnimated) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocumentAttributeAnimated.Unmarshal(m, b) -} -func (m *TLDocumentAttributeAnimated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocumentAttributeAnimated.Marshal(b, m, deterministic) -} -func (dst *TLDocumentAttributeAnimated) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocumentAttributeAnimated.Merge(dst, src) -} -func (m *TLDocumentAttributeAnimated) XXX_Size() int { - return xxx_messageInfo_TLDocumentAttributeAnimated.Size(m) +func (m *InputPaymentCredentials_Data) GetSave() bool { + if m != nil { + return m.Save + } + return false } -func (m *TLDocumentAttributeAnimated) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocumentAttributeAnimated.DiscardUnknown(m) + +func (m *InputPaymentCredentials_Data) GetData() *DataJSON { + if m != nil { + return m.Data + } + return nil } -var xxx_messageInfo_TLDocumentAttributeAnimated proto.InternalMessageInfo +func (m *InputPaymentCredentials_Data) GetPaymentData() *DataJSON { + if m != nil { + return m.PaymentData + } + return nil +} -func (m *TLDocumentAttributeAnimated) GetData2() *DocumentAttribute_Data { +func (m *InputPaymentCredentials_Data) GetPaymentToken() *DataJSON { if m != nil { - return m.Data2 + return m.PaymentToken } return nil } -// documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute; -type TLDocumentAttributeSticker struct { - Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputPaymentCredentials_Data) GetGoogleTransactionId() string { + if m != nil { + return m.GoogleTransactionId + } + return "" } -func (m *TLDocumentAttributeSticker) Reset() { *m = TLDocumentAttributeSticker{} } -func (m *TLDocumentAttributeSticker) String() string { return proto.CompactTextString(m) } -func (*TLDocumentAttributeSticker) ProtoMessage() {} -func (*TLDocumentAttributeSticker) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{154} +type InputPaymentCredentials struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDocumentAttributeSticker) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocumentAttributeSticker.Unmarshal(m, b) + +func (m *InputPaymentCredentials) Reset() { *m = InputPaymentCredentials{} } +func (m *InputPaymentCredentials) String() string { return proto.CompactTextString(m) } +func (*InputPaymentCredentials) ProtoMessage() {} +func (*InputPaymentCredentials) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{132} } -func (m *TLDocumentAttributeSticker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocumentAttributeSticker.Marshal(b, m, deterministic) +func (m *InputPaymentCredentials) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPaymentCredentials.Unmarshal(m, b) } -func (dst *TLDocumentAttributeSticker) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocumentAttributeSticker.Merge(dst, src) +func (m *InputPaymentCredentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPaymentCredentials.Marshal(b, m, deterministic) } -func (m *TLDocumentAttributeSticker) XXX_Size() int { - return xxx_messageInfo_TLDocumentAttributeSticker.Size(m) +func (dst *InputPaymentCredentials) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPaymentCredentials.Merge(dst, src) } -func (m *TLDocumentAttributeSticker) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocumentAttributeSticker.DiscardUnknown(m) +func (m *InputPaymentCredentials) XXX_Size() int { + return xxx_messageInfo_InputPaymentCredentials.Size(m) +} +func (m *InputPaymentCredentials) XXX_DiscardUnknown() { + xxx_messageInfo_InputPaymentCredentials.DiscardUnknown(m) } -var xxx_messageInfo_TLDocumentAttributeSticker proto.InternalMessageInfo +var xxx_messageInfo_InputPaymentCredentials proto.InternalMessageInfo -func (m *TLDocumentAttributeSticker) GetData2() *DocumentAttribute_Data { +func (m *InputPaymentCredentials) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputPaymentCredentials) GetData2() *InputPaymentCredentials_Data { if m != nil { return m.Data2 } return nil } -// documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute; -type TLDocumentAttributeVideo struct { - Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; +type TLInputPaymentCredentialsSaved struct { + Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDocumentAttributeVideo) Reset() { *m = TLDocumentAttributeVideo{} } -func (m *TLDocumentAttributeVideo) String() string { return proto.CompactTextString(m) } -func (*TLDocumentAttributeVideo) ProtoMessage() {} -func (*TLDocumentAttributeVideo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{155} +func (m *TLInputPaymentCredentialsSaved) Reset() { *m = TLInputPaymentCredentialsSaved{} } +func (m *TLInputPaymentCredentialsSaved) String() string { return proto.CompactTextString(m) } +func (*TLInputPaymentCredentialsSaved) ProtoMessage() {} +func (*TLInputPaymentCredentialsSaved) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{133} } -func (m *TLDocumentAttributeVideo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocumentAttributeVideo.Unmarshal(m, b) +func (m *TLInputPaymentCredentialsSaved) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPaymentCredentialsSaved.Unmarshal(m, b) } -func (m *TLDocumentAttributeVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocumentAttributeVideo.Marshal(b, m, deterministic) +func (m *TLInputPaymentCredentialsSaved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPaymentCredentialsSaved.Marshal(b, m, deterministic) } -func (dst *TLDocumentAttributeVideo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocumentAttributeVideo.Merge(dst, src) +func (dst *TLInputPaymentCredentialsSaved) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPaymentCredentialsSaved.Merge(dst, src) } -func (m *TLDocumentAttributeVideo) XXX_Size() int { - return xxx_messageInfo_TLDocumentAttributeVideo.Size(m) +func (m *TLInputPaymentCredentialsSaved) XXX_Size() int { + return xxx_messageInfo_TLInputPaymentCredentialsSaved.Size(m) } -func (m *TLDocumentAttributeVideo) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocumentAttributeVideo.DiscardUnknown(m) +func (m *TLInputPaymentCredentialsSaved) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPaymentCredentialsSaved.DiscardUnknown(m) } -var xxx_messageInfo_TLDocumentAttributeVideo proto.InternalMessageInfo +var xxx_messageInfo_TLInputPaymentCredentialsSaved proto.InternalMessageInfo -func (m *TLDocumentAttributeVideo) GetData2() *DocumentAttribute_Data { +func (m *TLInputPaymentCredentialsSaved) GetData2() *InputPaymentCredentials_Data { if m != nil { return m.Data2 } return nil } -// documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; -type TLDocumentAttributeAudio struct { - Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; +type TLInputPaymentCredentials struct { + Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDocumentAttributeAudio) Reset() { *m = TLDocumentAttributeAudio{} } -func (m *TLDocumentAttributeAudio) String() string { return proto.CompactTextString(m) } -func (*TLDocumentAttributeAudio) ProtoMessage() {} -func (*TLDocumentAttributeAudio) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{156} +func (m *TLInputPaymentCredentials) Reset() { *m = TLInputPaymentCredentials{} } +func (m *TLInputPaymentCredentials) String() string { return proto.CompactTextString(m) } +func (*TLInputPaymentCredentials) ProtoMessage() {} +func (*TLInputPaymentCredentials) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{134} } -func (m *TLDocumentAttributeAudio) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocumentAttributeAudio.Unmarshal(m, b) +func (m *TLInputPaymentCredentials) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPaymentCredentials.Unmarshal(m, b) } -func (m *TLDocumentAttributeAudio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocumentAttributeAudio.Marshal(b, m, deterministic) +func (m *TLInputPaymentCredentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPaymentCredentials.Marshal(b, m, deterministic) } -func (dst *TLDocumentAttributeAudio) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocumentAttributeAudio.Merge(dst, src) +func (dst *TLInputPaymentCredentials) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPaymentCredentials.Merge(dst, src) } -func (m *TLDocumentAttributeAudio) XXX_Size() int { - return xxx_messageInfo_TLDocumentAttributeAudio.Size(m) +func (m *TLInputPaymentCredentials) XXX_Size() int { + return xxx_messageInfo_TLInputPaymentCredentials.Size(m) } -func (m *TLDocumentAttributeAudio) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocumentAttributeAudio.DiscardUnknown(m) +func (m *TLInputPaymentCredentials) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPaymentCredentials.DiscardUnknown(m) } -var xxx_messageInfo_TLDocumentAttributeAudio proto.InternalMessageInfo +var xxx_messageInfo_TLInputPaymentCredentials proto.InternalMessageInfo -func (m *TLDocumentAttributeAudio) GetData2() *DocumentAttribute_Data { +func (m *TLInputPaymentCredentials) GetData2() *InputPaymentCredentials_Data { if m != nil { return m.Data2 } return nil } -// documentAttributeFilename#15590068 file_name:string = DocumentAttribute; -type TLDocumentAttributeFilename struct { - Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials; +type TLInputPaymentCredentialsApplePay struct { + Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDocumentAttributeFilename) Reset() { *m = TLDocumentAttributeFilename{} } -func (m *TLDocumentAttributeFilename) String() string { return proto.CompactTextString(m) } -func (*TLDocumentAttributeFilename) ProtoMessage() {} -func (*TLDocumentAttributeFilename) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{157} +func (m *TLInputPaymentCredentialsApplePay) Reset() { *m = TLInputPaymentCredentialsApplePay{} } +func (m *TLInputPaymentCredentialsApplePay) String() string { return proto.CompactTextString(m) } +func (*TLInputPaymentCredentialsApplePay) ProtoMessage() {} +func (*TLInputPaymentCredentialsApplePay) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{135} } -func (m *TLDocumentAttributeFilename) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocumentAttributeFilename.Unmarshal(m, b) +func (m *TLInputPaymentCredentialsApplePay) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPaymentCredentialsApplePay.Unmarshal(m, b) } -func (m *TLDocumentAttributeFilename) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocumentAttributeFilename.Marshal(b, m, deterministic) +func (m *TLInputPaymentCredentialsApplePay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPaymentCredentialsApplePay.Marshal(b, m, deterministic) } -func (dst *TLDocumentAttributeFilename) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocumentAttributeFilename.Merge(dst, src) +func (dst *TLInputPaymentCredentialsApplePay) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPaymentCredentialsApplePay.Merge(dst, src) } -func (m *TLDocumentAttributeFilename) XXX_Size() int { - return xxx_messageInfo_TLDocumentAttributeFilename.Size(m) +func (m *TLInputPaymentCredentialsApplePay) XXX_Size() int { + return xxx_messageInfo_TLInputPaymentCredentialsApplePay.Size(m) } -func (m *TLDocumentAttributeFilename) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocumentAttributeFilename.DiscardUnknown(m) +func (m *TLInputPaymentCredentialsApplePay) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPaymentCredentialsApplePay.DiscardUnknown(m) } -var xxx_messageInfo_TLDocumentAttributeFilename proto.InternalMessageInfo +var xxx_messageInfo_TLInputPaymentCredentialsApplePay proto.InternalMessageInfo -func (m *TLDocumentAttributeFilename) GetData2() *DocumentAttribute_Data { +func (m *TLInputPaymentCredentialsApplePay) GetData2() *InputPaymentCredentials_Data { if m != nil { return m.Data2 } return nil } -// documentAttributeHasStickers#9801d2f7 = DocumentAttribute; -type TLDocumentAttributeHasStickers struct { - Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials; +type TLInputPaymentCredentialsAndroidPay struct { + Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDocumentAttributeHasStickers) Reset() { *m = TLDocumentAttributeHasStickers{} } -func (m *TLDocumentAttributeHasStickers) String() string { return proto.CompactTextString(m) } -func (*TLDocumentAttributeHasStickers) ProtoMessage() {} -func (*TLDocumentAttributeHasStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{158} +func (m *TLInputPaymentCredentialsAndroidPay) Reset() { *m = TLInputPaymentCredentialsAndroidPay{} } +func (m *TLInputPaymentCredentialsAndroidPay) String() string { return proto.CompactTextString(m) } +func (*TLInputPaymentCredentialsAndroidPay) ProtoMessage() {} +func (*TLInputPaymentCredentialsAndroidPay) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{136} } -func (m *TLDocumentAttributeHasStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocumentAttributeHasStickers.Unmarshal(m, b) +func (m *TLInputPaymentCredentialsAndroidPay) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.Unmarshal(m, b) } -func (m *TLDocumentAttributeHasStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocumentAttributeHasStickers.Marshal(b, m, deterministic) +func (m *TLInputPaymentCredentialsAndroidPay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.Marshal(b, m, deterministic) } -func (dst *TLDocumentAttributeHasStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocumentAttributeHasStickers.Merge(dst, src) +func (dst *TLInputPaymentCredentialsAndroidPay) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.Merge(dst, src) } -func (m *TLDocumentAttributeHasStickers) XXX_Size() int { - return xxx_messageInfo_TLDocumentAttributeHasStickers.Size(m) +func (m *TLInputPaymentCredentialsAndroidPay) XXX_Size() int { + return xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.Size(m) } -func (m *TLDocumentAttributeHasStickers) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocumentAttributeHasStickers.DiscardUnknown(m) +func (m *TLInputPaymentCredentialsAndroidPay) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.DiscardUnknown(m) } -var xxx_messageInfo_TLDocumentAttributeHasStickers proto.InternalMessageInfo +var xxx_messageInfo_TLInputPaymentCredentialsAndroidPay proto.InternalMessageInfo -func (m *TLDocumentAttributeHasStickers) GetData2() *DocumentAttribute_Data { +func (m *TLInputPaymentCredentialsAndroidPay) GetData2() *InputPaymentCredentials_Data { if m != nil { return m.Data2 } @@ -7451,134 +6828,134 @@ func (m *TLDocumentAttributeHasStickers) GetData2() *DocumentAttribute_Data { } // ///////////////////////////////////////////////////////////////////////////// -// account_PasswordSettings <-- -// + TL_account_passwordSettings +// account_TmpPassword <-- +// + TL_account_tmpPassword // -type Account_PasswordSettings_Data struct { - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - SecureSettings *SecureSecretSettings `protobuf:"bytes,2,opt,name=secure_settings,json=secureSettings,proto3" json:"secure_settings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_TmpPassword_Data struct { + TmpPassword []byte `protobuf:"bytes,1,opt,name=tmp_password,json=tmpPassword,proto3" json:"tmp_password,omitempty"` + ValidUntil int32 `protobuf:"varint,2,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_PasswordSettings_Data) Reset() { *m = Account_PasswordSettings_Data{} } -func (m *Account_PasswordSettings_Data) String() string { return proto.CompactTextString(m) } -func (*Account_PasswordSettings_Data) ProtoMessage() {} -func (*Account_PasswordSettings_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{159} +func (m *Account_TmpPassword_Data) Reset() { *m = Account_TmpPassword_Data{} } +func (m *Account_TmpPassword_Data) String() string { return proto.CompactTextString(m) } +func (*Account_TmpPassword_Data) ProtoMessage() {} +func (*Account_TmpPassword_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{137} } -func (m *Account_PasswordSettings_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_PasswordSettings_Data.Unmarshal(m, b) +func (m *Account_TmpPassword_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_TmpPassword_Data.Unmarshal(m, b) } -func (m *Account_PasswordSettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_PasswordSettings_Data.Marshal(b, m, deterministic) +func (m *Account_TmpPassword_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_TmpPassword_Data.Marshal(b, m, deterministic) } -func (dst *Account_PasswordSettings_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_PasswordSettings_Data.Merge(dst, src) +func (dst *Account_TmpPassword_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_TmpPassword_Data.Merge(dst, src) } -func (m *Account_PasswordSettings_Data) XXX_Size() int { - return xxx_messageInfo_Account_PasswordSettings_Data.Size(m) +func (m *Account_TmpPassword_Data) XXX_Size() int { + return xxx_messageInfo_Account_TmpPassword_Data.Size(m) } -func (m *Account_PasswordSettings_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_PasswordSettings_Data.DiscardUnknown(m) +func (m *Account_TmpPassword_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_TmpPassword_Data.DiscardUnknown(m) } -var xxx_messageInfo_Account_PasswordSettings_Data proto.InternalMessageInfo +var xxx_messageInfo_Account_TmpPassword_Data proto.InternalMessageInfo -func (m *Account_PasswordSettings_Data) GetEmail() string { +func (m *Account_TmpPassword_Data) GetTmpPassword() []byte { if m != nil { - return m.Email + return m.TmpPassword } - return "" + return nil } -func (m *Account_PasswordSettings_Data) GetSecureSettings() *SecureSecretSettings { +func (m *Account_TmpPassword_Data) GetValidUntil() int32 { if m != nil { - return m.SecureSettings + return m.ValidUntil } - return nil + return 0 } -type Account_PasswordSettings struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_PasswordSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_TmpPassword struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_TmpPassword_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_PasswordSettings) Reset() { *m = Account_PasswordSettings{} } -func (m *Account_PasswordSettings) String() string { return proto.CompactTextString(m) } -func (*Account_PasswordSettings) ProtoMessage() {} -func (*Account_PasswordSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{160} +func (m *Account_TmpPassword) Reset() { *m = Account_TmpPassword{} } +func (m *Account_TmpPassword) String() string { return proto.CompactTextString(m) } +func (*Account_TmpPassword) ProtoMessage() {} +func (*Account_TmpPassword) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{138} } -func (m *Account_PasswordSettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_PasswordSettings.Unmarshal(m, b) +func (m *Account_TmpPassword) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_TmpPassword.Unmarshal(m, b) } -func (m *Account_PasswordSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_PasswordSettings.Marshal(b, m, deterministic) +func (m *Account_TmpPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_TmpPassword.Marshal(b, m, deterministic) } -func (dst *Account_PasswordSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_PasswordSettings.Merge(dst, src) +func (dst *Account_TmpPassword) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_TmpPassword.Merge(dst, src) } -func (m *Account_PasswordSettings) XXX_Size() int { - return xxx_messageInfo_Account_PasswordSettings.Size(m) +func (m *Account_TmpPassword) XXX_Size() int { + return xxx_messageInfo_Account_TmpPassword.Size(m) } -func (m *Account_PasswordSettings) XXX_DiscardUnknown() { - xxx_messageInfo_Account_PasswordSettings.DiscardUnknown(m) +func (m *Account_TmpPassword) XXX_DiscardUnknown() { + xxx_messageInfo_Account_TmpPassword.DiscardUnknown(m) } -var xxx_messageInfo_Account_PasswordSettings proto.InternalMessageInfo +var xxx_messageInfo_Account_TmpPassword proto.InternalMessageInfo -func (m *Account_PasswordSettings) GetConstructor() TLConstructor { +func (m *Account_TmpPassword) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Account_PasswordSettings) GetData2() *Account_PasswordSettings_Data { +func (m *Account_TmpPassword) GetData2() *Account_TmpPassword_Data { if m != nil { return m.Data2 } return nil } -// account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings; -type TLAccountPasswordSettings struct { - Data2 *Account_PasswordSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLAccountPasswordSettings) Reset() { *m = TLAccountPasswordSettings{} } -func (m *TLAccountPasswordSettings) String() string { return proto.CompactTextString(m) } -func (*TLAccountPasswordSettings) ProtoMessage() {} -func (*TLAccountPasswordSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{161} +// account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; +type TLAccountTmpPassword struct { + Data2 *Account_TmpPassword_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountPasswordSettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountPasswordSettings.Unmarshal(m, b) + +func (m *TLAccountTmpPassword) Reset() { *m = TLAccountTmpPassword{} } +func (m *TLAccountTmpPassword) String() string { return proto.CompactTextString(m) } +func (*TLAccountTmpPassword) ProtoMessage() {} +func (*TLAccountTmpPassword) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{139} } -func (m *TLAccountPasswordSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountPasswordSettings.Marshal(b, m, deterministic) +func (m *TLAccountTmpPassword) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountTmpPassword.Unmarshal(m, b) } -func (dst *TLAccountPasswordSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountPasswordSettings.Merge(dst, src) +func (m *TLAccountTmpPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountTmpPassword.Marshal(b, m, deterministic) } -func (m *TLAccountPasswordSettings) XXX_Size() int { - return xxx_messageInfo_TLAccountPasswordSettings.Size(m) +func (dst *TLAccountTmpPassword) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountTmpPassword.Merge(dst, src) } -func (m *TLAccountPasswordSettings) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountPasswordSettings.DiscardUnknown(m) +func (m *TLAccountTmpPassword) XXX_Size() int { + return xxx_messageInfo_TLAccountTmpPassword.Size(m) +} +func (m *TLAccountTmpPassword) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountTmpPassword.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountPasswordSettings proto.InternalMessageInfo +var xxx_messageInfo_TLAccountTmpPassword proto.InternalMessageInfo -func (m *TLAccountPasswordSettings) GetData2() *Account_PasswordSettings_Data { +func (m *TLAccountTmpPassword) GetData2() *Account_TmpPassword_Data { if m != nil { return m.Data2 } @@ -7586,158 +6963,150 @@ func (m *TLAccountPasswordSettings) GetData2() *Account_PasswordSettings_Data { } // ///////////////////////////////////////////////////////////////////////////// -// account_PasswordInputSettings <-- -// + TL_account_passwordInputSettings +// PhoneCallProtocol <-- +// + TL_phoneCallProtocol // -type Account_PasswordInputSettings_Data struct { - NewAlgo *PasswordKdfAlgo `protobuf:"bytes,1,opt,name=new_algo,json=newAlgo,proto3" json:"new_algo,omitempty"` - NewPasswordHash []byte `protobuf:"bytes,2,opt,name=new_password_hash,json=newPasswordHash,proto3" json:"new_password_hash,omitempty"` - Hint string `protobuf:"bytes,3,opt,name=hint,proto3" json:"hint,omitempty"` - Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` - NewSecureSettings *SecureSecretSettings `protobuf:"bytes,5,opt,name=new_secure_settings,json=newSecureSettings,proto3" json:"new_secure_settings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PhoneCallProtocol_Data struct { + UdpP2P bool `protobuf:"varint,1,opt,name=udp_p2p,json=udpP2p,proto3" json:"udp_p2p,omitempty"` + UdpReflector bool `protobuf:"varint,2,opt,name=udp_reflector,json=udpReflector,proto3" json:"udp_reflector,omitempty"` + MinLayer int32 `protobuf:"varint,3,opt,name=min_layer,json=minLayer,proto3" json:"min_layer,omitempty"` + MaxLayer int32 `protobuf:"varint,4,opt,name=max_layer,json=maxLayer,proto3" json:"max_layer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_PasswordInputSettings_Data) Reset() { *m = Account_PasswordInputSettings_Data{} } -func (m *Account_PasswordInputSettings_Data) String() string { return proto.CompactTextString(m) } -func (*Account_PasswordInputSettings_Data) ProtoMessage() {} -func (*Account_PasswordInputSettings_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{162} +func (m *PhoneCallProtocol_Data) Reset() { *m = PhoneCallProtocol_Data{} } +func (m *PhoneCallProtocol_Data) String() string { return proto.CompactTextString(m) } +func (*PhoneCallProtocol_Data) ProtoMessage() {} +func (*PhoneCallProtocol_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{140} } -func (m *Account_PasswordInputSettings_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_PasswordInputSettings_Data.Unmarshal(m, b) +func (m *PhoneCallProtocol_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhoneCallProtocol_Data.Unmarshal(m, b) } -func (m *Account_PasswordInputSettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_PasswordInputSettings_Data.Marshal(b, m, deterministic) +func (m *PhoneCallProtocol_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhoneCallProtocol_Data.Marshal(b, m, deterministic) } -func (dst *Account_PasswordInputSettings_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_PasswordInputSettings_Data.Merge(dst, src) +func (dst *PhoneCallProtocol_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhoneCallProtocol_Data.Merge(dst, src) } -func (m *Account_PasswordInputSettings_Data) XXX_Size() int { - return xxx_messageInfo_Account_PasswordInputSettings_Data.Size(m) +func (m *PhoneCallProtocol_Data) XXX_Size() int { + return xxx_messageInfo_PhoneCallProtocol_Data.Size(m) } -func (m *Account_PasswordInputSettings_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_PasswordInputSettings_Data.DiscardUnknown(m) +func (m *PhoneCallProtocol_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PhoneCallProtocol_Data.DiscardUnknown(m) } -var xxx_messageInfo_Account_PasswordInputSettings_Data proto.InternalMessageInfo - -func (m *Account_PasswordInputSettings_Data) GetNewAlgo() *PasswordKdfAlgo { - if m != nil { - return m.NewAlgo - } - return nil -} +var xxx_messageInfo_PhoneCallProtocol_Data proto.InternalMessageInfo -func (m *Account_PasswordInputSettings_Data) GetNewPasswordHash() []byte { +func (m *PhoneCallProtocol_Data) GetUdpP2P() bool { if m != nil { - return m.NewPasswordHash + return m.UdpP2P } - return nil + return false } -func (m *Account_PasswordInputSettings_Data) GetHint() string { +func (m *PhoneCallProtocol_Data) GetUdpReflector() bool { if m != nil { - return m.Hint + return m.UdpReflector } - return "" + return false } -func (m *Account_PasswordInputSettings_Data) GetEmail() string { +func (m *PhoneCallProtocol_Data) GetMinLayer() int32 { if m != nil { - return m.Email + return m.MinLayer } - return "" + return 0 } -func (m *Account_PasswordInputSettings_Data) GetNewSecureSettings() *SecureSecretSettings { +func (m *PhoneCallProtocol_Data) GetMaxLayer() int32 { if m != nil { - return m.NewSecureSettings + return m.MaxLayer } - return nil + return 0 } -type Account_PasswordInputSettings struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_PasswordInputSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PhoneCallProtocol struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PhoneCallProtocol_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_PasswordInputSettings) Reset() { *m = Account_PasswordInputSettings{} } -func (m *Account_PasswordInputSettings) String() string { return proto.CompactTextString(m) } -func (*Account_PasswordInputSettings) ProtoMessage() {} -func (*Account_PasswordInputSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{163} +func (m *PhoneCallProtocol) Reset() { *m = PhoneCallProtocol{} } +func (m *PhoneCallProtocol) String() string { return proto.CompactTextString(m) } +func (*PhoneCallProtocol) ProtoMessage() {} +func (*PhoneCallProtocol) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{141} } -func (m *Account_PasswordInputSettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_PasswordInputSettings.Unmarshal(m, b) +func (m *PhoneCallProtocol) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhoneCallProtocol.Unmarshal(m, b) } -func (m *Account_PasswordInputSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_PasswordInputSettings.Marshal(b, m, deterministic) +func (m *PhoneCallProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhoneCallProtocol.Marshal(b, m, deterministic) } -func (dst *Account_PasswordInputSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_PasswordInputSettings.Merge(dst, src) +func (dst *PhoneCallProtocol) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhoneCallProtocol.Merge(dst, src) } -func (m *Account_PasswordInputSettings) XXX_Size() int { - return xxx_messageInfo_Account_PasswordInputSettings.Size(m) +func (m *PhoneCallProtocol) XXX_Size() int { + return xxx_messageInfo_PhoneCallProtocol.Size(m) } -func (m *Account_PasswordInputSettings) XXX_DiscardUnknown() { - xxx_messageInfo_Account_PasswordInputSettings.DiscardUnknown(m) +func (m *PhoneCallProtocol) XXX_DiscardUnknown() { + xxx_messageInfo_PhoneCallProtocol.DiscardUnknown(m) } -var xxx_messageInfo_Account_PasswordInputSettings proto.InternalMessageInfo +var xxx_messageInfo_PhoneCallProtocol proto.InternalMessageInfo -func (m *Account_PasswordInputSettings) GetConstructor() TLConstructor { +func (m *PhoneCallProtocol) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Account_PasswordInputSettings) GetData2() *Account_PasswordInputSettings_Data { +func (m *PhoneCallProtocol) GetData2() *PhoneCallProtocol_Data { if m != nil { return m.Data2 } return nil } -// account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings; -type TLAccountPasswordInputSettings struct { - Data2 *Account_PasswordInputSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phoneCallProtocol#a2bb35cb flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int = PhoneCallProtocol; +type TLPhoneCallProtocol struct { + Data2 *PhoneCallProtocol_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountPasswordInputSettings) Reset() { *m = TLAccountPasswordInputSettings{} } -func (m *TLAccountPasswordInputSettings) String() string { return proto.CompactTextString(m) } -func (*TLAccountPasswordInputSettings) ProtoMessage() {} -func (*TLAccountPasswordInputSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{164} +func (m *TLPhoneCallProtocol) Reset() { *m = TLPhoneCallProtocol{} } +func (m *TLPhoneCallProtocol) String() string { return proto.CompactTextString(m) } +func (*TLPhoneCallProtocol) ProtoMessage() {} +func (*TLPhoneCallProtocol) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{142} } -func (m *TLAccountPasswordInputSettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountPasswordInputSettings.Unmarshal(m, b) +func (m *TLPhoneCallProtocol) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoneCallProtocol.Unmarshal(m, b) } -func (m *TLAccountPasswordInputSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountPasswordInputSettings.Marshal(b, m, deterministic) +func (m *TLPhoneCallProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoneCallProtocol.Marshal(b, m, deterministic) } -func (dst *TLAccountPasswordInputSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountPasswordInputSettings.Merge(dst, src) +func (dst *TLPhoneCallProtocol) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoneCallProtocol.Merge(dst, src) } -func (m *TLAccountPasswordInputSettings) XXX_Size() int { - return xxx_messageInfo_TLAccountPasswordInputSettings.Size(m) +func (m *TLPhoneCallProtocol) XXX_Size() int { + return xxx_messageInfo_TLPhoneCallProtocol.Size(m) } -func (m *TLAccountPasswordInputSettings) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountPasswordInputSettings.DiscardUnknown(m) +func (m *TLPhoneCallProtocol) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoneCallProtocol.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountPasswordInputSettings proto.InternalMessageInfo +var xxx_messageInfo_TLPhoneCallProtocol proto.InternalMessageInfo -func (m *TLAccountPasswordInputSettings) GetData2() *Account_PasswordInputSettings_Data { +func (m *TLPhoneCallProtocol) GetData2() *PhoneCallProtocol_Data { if m != nil { return m.Data2 } @@ -7745,126 +7114,134 @@ func (m *TLAccountPasswordInputSettings) GetData2() *Account_PasswordInputSettin } // ///////////////////////////////////////////////////////////////////////////// -// messages_MessageEditData <-- -// + TL_messages_messageEditData +// account_WebAuthorizations <-- +// + TL_account_webAuthorizations // -type Messages_MessageEditData_Data struct { - Caption bool `protobuf:"varint,1,opt,name=caption,proto3" json:"caption,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_WebAuthorizations_Data struct { + Authorizations []*WebAuthorization `protobuf:"bytes,1,rep,name=authorizations,proto3" json:"authorizations,omitempty"` + Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_MessageEditData_Data) Reset() { *m = Messages_MessageEditData_Data{} } -func (m *Messages_MessageEditData_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_MessageEditData_Data) ProtoMessage() {} -func (*Messages_MessageEditData_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{165} +func (m *Account_WebAuthorizations_Data) Reset() { *m = Account_WebAuthorizations_Data{} } +func (m *Account_WebAuthorizations_Data) String() string { return proto.CompactTextString(m) } +func (*Account_WebAuthorizations_Data) ProtoMessage() {} +func (*Account_WebAuthorizations_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{143} } -func (m *Messages_MessageEditData_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_MessageEditData_Data.Unmarshal(m, b) +func (m *Account_WebAuthorizations_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_WebAuthorizations_Data.Unmarshal(m, b) } -func (m *Messages_MessageEditData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_MessageEditData_Data.Marshal(b, m, deterministic) +func (m *Account_WebAuthorizations_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_WebAuthorizations_Data.Marshal(b, m, deterministic) } -func (dst *Messages_MessageEditData_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_MessageEditData_Data.Merge(dst, src) +func (dst *Account_WebAuthorizations_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_WebAuthorizations_Data.Merge(dst, src) } -func (m *Messages_MessageEditData_Data) XXX_Size() int { - return xxx_messageInfo_Messages_MessageEditData_Data.Size(m) +func (m *Account_WebAuthorizations_Data) XXX_Size() int { + return xxx_messageInfo_Account_WebAuthorizations_Data.Size(m) } -func (m *Messages_MessageEditData_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_MessageEditData_Data.DiscardUnknown(m) +func (m *Account_WebAuthorizations_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_WebAuthorizations_Data.DiscardUnknown(m) } -var xxx_messageInfo_Messages_MessageEditData_Data proto.InternalMessageInfo +var xxx_messageInfo_Account_WebAuthorizations_Data proto.InternalMessageInfo -func (m *Messages_MessageEditData_Data) GetCaption() bool { +func (m *Account_WebAuthorizations_Data) GetAuthorizations() []*WebAuthorization { if m != nil { - return m.Caption + return m.Authorizations } - return false + return nil } -type Messages_MessageEditData struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_MessageEditData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Account_WebAuthorizations_Data) GetUsers() []*User { + if m != nil { + return m.Users + } + return nil } -func (m *Messages_MessageEditData) Reset() { *m = Messages_MessageEditData{} } -func (m *Messages_MessageEditData) String() string { return proto.CompactTextString(m) } -func (*Messages_MessageEditData) ProtoMessage() {} -func (*Messages_MessageEditData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{166} +type Account_WebAuthorizations struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_WebAuthorizations_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_MessageEditData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_MessageEditData.Unmarshal(m, b) + +func (m *Account_WebAuthorizations) Reset() { *m = Account_WebAuthorizations{} } +func (m *Account_WebAuthorizations) String() string { return proto.CompactTextString(m) } +func (*Account_WebAuthorizations) ProtoMessage() {} +func (*Account_WebAuthorizations) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{144} } -func (m *Messages_MessageEditData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_MessageEditData.Marshal(b, m, deterministic) +func (m *Account_WebAuthorizations) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_WebAuthorizations.Unmarshal(m, b) } -func (dst *Messages_MessageEditData) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_MessageEditData.Merge(dst, src) +func (m *Account_WebAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_WebAuthorizations.Marshal(b, m, deterministic) } -func (m *Messages_MessageEditData) XXX_Size() int { - return xxx_messageInfo_Messages_MessageEditData.Size(m) +func (dst *Account_WebAuthorizations) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_WebAuthorizations.Merge(dst, src) } -func (m *Messages_MessageEditData) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_MessageEditData.DiscardUnknown(m) +func (m *Account_WebAuthorizations) XXX_Size() int { + return xxx_messageInfo_Account_WebAuthorizations.Size(m) +} +func (m *Account_WebAuthorizations) XXX_DiscardUnknown() { + xxx_messageInfo_Account_WebAuthorizations.DiscardUnknown(m) } -var xxx_messageInfo_Messages_MessageEditData proto.InternalMessageInfo +var xxx_messageInfo_Account_WebAuthorizations proto.InternalMessageInfo -func (m *Messages_MessageEditData) GetConstructor() TLConstructor { +func (m *Account_WebAuthorizations) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_MessageEditData) GetData2() *Messages_MessageEditData_Data { +func (m *Account_WebAuthorizations) GetData2() *Account_WebAuthorizations_Data { if m != nil { return m.Data2 } return nil } -// messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData; -type TLMessagesMessageEditData struct { - Data2 *Messages_MessageEditData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// account.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations; +type TLAccountWebAuthorizations struct { + Data2 *Account_WebAuthorizations_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesMessageEditData) Reset() { *m = TLMessagesMessageEditData{} } -func (m *TLMessagesMessageEditData) String() string { return proto.CompactTextString(m) } -func (*TLMessagesMessageEditData) ProtoMessage() {} -func (*TLMessagesMessageEditData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{167} +func (m *TLAccountWebAuthorizations) Reset() { *m = TLAccountWebAuthorizations{} } +func (m *TLAccountWebAuthorizations) String() string { return proto.CompactTextString(m) } +func (*TLAccountWebAuthorizations) ProtoMessage() {} +func (*TLAccountWebAuthorizations) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{145} } -func (m *TLMessagesMessageEditData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesMessageEditData.Unmarshal(m, b) +func (m *TLAccountWebAuthorizations) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountWebAuthorizations.Unmarshal(m, b) } -func (m *TLMessagesMessageEditData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesMessageEditData.Marshal(b, m, deterministic) +func (m *TLAccountWebAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountWebAuthorizations.Marshal(b, m, deterministic) } -func (dst *TLMessagesMessageEditData) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesMessageEditData.Merge(dst, src) +func (dst *TLAccountWebAuthorizations) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountWebAuthorizations.Merge(dst, src) } -func (m *TLMessagesMessageEditData) XXX_Size() int { - return xxx_messageInfo_TLMessagesMessageEditData.Size(m) +func (m *TLAccountWebAuthorizations) XXX_Size() int { + return xxx_messageInfo_TLAccountWebAuthorizations.Size(m) } -func (m *TLMessagesMessageEditData) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesMessageEditData.DiscardUnknown(m) +func (m *TLAccountWebAuthorizations) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountWebAuthorizations.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesMessageEditData proto.InternalMessageInfo +var xxx_messageInfo_TLAccountWebAuthorizations proto.InternalMessageInfo -func (m *TLMessagesMessageEditData) GetData2() *Messages_MessageEditData_Data { +func (m *TLAccountWebAuthorizations) GetData2() *Account_WebAuthorizations_Data { if m != nil { return m.Data2 } @@ -7872,341 +7249,397 @@ func (m *TLMessagesMessageEditData) GetData2() *Messages_MessageEditData_Data { } // ///////////////////////////////////////////////////////////////////////////// -// MaskCoords <-- -// + TL_maskCoords +// SecureFile <-- +// + TL_secureFileEmpty +// + TL_secureFile // -type MaskCoords_Data struct { - N int32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"` - X float64 `protobuf:"fixed64,2,opt,name=x,proto3" json:"x,omitempty"` - Y float64 `protobuf:"fixed64,3,opt,name=y,proto3" json:"y,omitempty"` - Zoom float64 `protobuf:"fixed64,4,opt,name=zoom,proto3" json:"zoom,omitempty"` +type SecureFile_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + DcId int32 `protobuf:"varint,4,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` + Date int32 `protobuf:"varint,5,opt,name=date,proto3" json:"date,omitempty"` + FileHash []byte `protobuf:"bytes,6,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"` + Secret []byte `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *MaskCoords_Data) Reset() { *m = MaskCoords_Data{} } -func (m *MaskCoords_Data) String() string { return proto.CompactTextString(m) } -func (*MaskCoords_Data) ProtoMessage() {} -func (*MaskCoords_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{168} +func (m *SecureFile_Data) Reset() { *m = SecureFile_Data{} } +func (m *SecureFile_Data) String() string { return proto.CompactTextString(m) } +func (*SecureFile_Data) ProtoMessage() {} +func (*SecureFile_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{146} } -func (m *MaskCoords_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MaskCoords_Data.Unmarshal(m, b) +func (m *SecureFile_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureFile_Data.Unmarshal(m, b) } -func (m *MaskCoords_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MaskCoords_Data.Marshal(b, m, deterministic) +func (m *SecureFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureFile_Data.Marshal(b, m, deterministic) } -func (dst *MaskCoords_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MaskCoords_Data.Merge(dst, src) +func (dst *SecureFile_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureFile_Data.Merge(dst, src) } -func (m *MaskCoords_Data) XXX_Size() int { - return xxx_messageInfo_MaskCoords_Data.Size(m) +func (m *SecureFile_Data) XXX_Size() int { + return xxx_messageInfo_SecureFile_Data.Size(m) } -func (m *MaskCoords_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MaskCoords_Data.DiscardUnknown(m) +func (m *SecureFile_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecureFile_Data.DiscardUnknown(m) } -var xxx_messageInfo_MaskCoords_Data proto.InternalMessageInfo +var xxx_messageInfo_SecureFile_Data proto.InternalMessageInfo -func (m *MaskCoords_Data) GetN() int32 { +func (m *SecureFile_Data) GetId() int64 { if m != nil { - return m.N + return m.Id } return 0 } -func (m *MaskCoords_Data) GetX() float64 { +func (m *SecureFile_Data) GetAccessHash() int64 { if m != nil { - return m.X + return m.AccessHash } return 0 } -func (m *MaskCoords_Data) GetY() float64 { +func (m *SecureFile_Data) GetSize() int32 { if m != nil { - return m.Y + return m.Size } return 0 } -func (m *MaskCoords_Data) GetZoom() float64 { +func (m *SecureFile_Data) GetDcId() int32 { if m != nil { - return m.Zoom + return m.DcId } return 0 } -type MaskCoords struct { +func (m *SecureFile_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 +} + +func (m *SecureFile_Data) GetFileHash() []byte { + if m != nil { + return m.FileHash + } + return nil +} + +func (m *SecureFile_Data) GetSecret() []byte { + if m != nil { + return m.Secret + } + return nil +} + +type SecureFile struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MaskCoords_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + Data2 *SecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *MaskCoords) Reset() { *m = MaskCoords{} } -func (m *MaskCoords) String() string { return proto.CompactTextString(m) } -func (*MaskCoords) ProtoMessage() {} -func (*MaskCoords) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{169} +func (m *SecureFile) Reset() { *m = SecureFile{} } +func (m *SecureFile) String() string { return proto.CompactTextString(m) } +func (*SecureFile) ProtoMessage() {} +func (*SecureFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{147} } -func (m *MaskCoords) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MaskCoords.Unmarshal(m, b) +func (m *SecureFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureFile.Unmarshal(m, b) } -func (m *MaskCoords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MaskCoords.Marshal(b, m, deterministic) +func (m *SecureFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureFile.Marshal(b, m, deterministic) } -func (dst *MaskCoords) XXX_Merge(src proto.Message) { - xxx_messageInfo_MaskCoords.Merge(dst, src) +func (dst *SecureFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureFile.Merge(dst, src) } -func (m *MaskCoords) XXX_Size() int { - return xxx_messageInfo_MaskCoords.Size(m) +func (m *SecureFile) XXX_Size() int { + return xxx_messageInfo_SecureFile.Size(m) } -func (m *MaskCoords) XXX_DiscardUnknown() { - xxx_messageInfo_MaskCoords.DiscardUnknown(m) +func (m *SecureFile) XXX_DiscardUnknown() { + xxx_messageInfo_SecureFile.DiscardUnknown(m) } -var xxx_messageInfo_MaskCoords proto.InternalMessageInfo +var xxx_messageInfo_SecureFile proto.InternalMessageInfo -func (m *MaskCoords) GetConstructor() TLConstructor { +func (m *SecureFile) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MaskCoords) GetData2() *MaskCoords_Data { +func (m *SecureFile) GetData2() *SecureFile_Data { if m != nil { return m.Data2 } return nil } -// maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords; -type TLMaskCoords struct { - Data2 *MaskCoords_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// secureFileEmpty#64199744 = SecureFile; +type TLSecureFileEmpty struct { + Data2 *SecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLMaskCoords) Reset() { *m = TLMaskCoords{} } -func (m *TLMaskCoords) String() string { return proto.CompactTextString(m) } -func (*TLMaskCoords) ProtoMessage() {} -func (*TLMaskCoords) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{170} +func (m *TLSecureFileEmpty) Reset() { *m = TLSecureFileEmpty{} } +func (m *TLSecureFileEmpty) String() string { return proto.CompactTextString(m) } +func (*TLSecureFileEmpty) ProtoMessage() {} +func (*TLSecureFileEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{148} } -func (m *TLMaskCoords) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMaskCoords.Unmarshal(m, b) +func (m *TLSecureFileEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureFileEmpty.Unmarshal(m, b) } -func (m *TLMaskCoords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMaskCoords.Marshal(b, m, deterministic) +func (m *TLSecureFileEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureFileEmpty.Marshal(b, m, deterministic) } -func (dst *TLMaskCoords) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMaskCoords.Merge(dst, src) +func (dst *TLSecureFileEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureFileEmpty.Merge(dst, src) } -func (m *TLMaskCoords) XXX_Size() int { - return xxx_messageInfo_TLMaskCoords.Size(m) +func (m *TLSecureFileEmpty) XXX_Size() int { + return xxx_messageInfo_TLSecureFileEmpty.Size(m) } -func (m *TLMaskCoords) XXX_DiscardUnknown() { - xxx_messageInfo_TLMaskCoords.DiscardUnknown(m) +func (m *TLSecureFileEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureFileEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLMaskCoords proto.InternalMessageInfo +var xxx_messageInfo_TLSecureFileEmpty proto.InternalMessageInfo -func (m *TLMaskCoords) GetData2() *MaskCoords_Data { +func (m *TLSecureFileEmpty) GetData2() *SecureFile_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// SecureValue <-- -// + TL_secureValue -// -type SecureValue_Data struct { - Type *SecureValueType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Data *SecureData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - FrontSide *SecureFile `protobuf:"bytes,3,opt,name=front_side,json=frontSide,proto3" json:"front_side,omitempty"` - ReverseSide *SecureFile `protobuf:"bytes,4,opt,name=reverse_side,json=reverseSide,proto3" json:"reverse_side,omitempty"` - Selfie *SecureFile `protobuf:"bytes,5,opt,name=selfie,proto3" json:"selfie,omitempty"` - Translation []*SecureFile `protobuf:"bytes,6,rep,name=translation,proto3" json:"translation,omitempty"` - Files []*SecureFile `protobuf:"bytes,7,rep,name=files,proto3" json:"files,omitempty"` - PlainData *SecurePlainData `protobuf:"bytes,8,opt,name=plain_data,json=plainData,proto3" json:"plain_data,omitempty"` - Hash []byte `protobuf:"bytes,9,opt,name=hash,proto3" json:"hash,omitempty"` +// secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile; +type TLSecureFile struct { + Data2 *SecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SecureValue_Data) Reset() { *m = SecureValue_Data{} } -func (m *SecureValue_Data) String() string { return proto.CompactTextString(m) } -func (*SecureValue_Data) ProtoMessage() {} -func (*SecureValue_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{171} +func (m *TLSecureFile) Reset() { *m = TLSecureFile{} } +func (m *TLSecureFile) String() string { return proto.CompactTextString(m) } +func (*TLSecureFile) ProtoMessage() {} +func (*TLSecureFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{149} } -func (m *SecureValue_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureValue_Data.Unmarshal(m, b) +func (m *TLSecureFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureFile.Unmarshal(m, b) } -func (m *SecureValue_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureValue_Data.Marshal(b, m, deterministic) +func (m *TLSecureFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureFile.Marshal(b, m, deterministic) } -func (dst *SecureValue_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureValue_Data.Merge(dst, src) +func (dst *TLSecureFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureFile.Merge(dst, src) } -func (m *SecureValue_Data) XXX_Size() int { - return xxx_messageInfo_SecureValue_Data.Size(m) +func (m *TLSecureFile) XXX_Size() int { + return xxx_messageInfo_TLSecureFile.Size(m) } -func (m *SecureValue_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecureValue_Data.DiscardUnknown(m) +func (m *TLSecureFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureFile.DiscardUnknown(m) } -var xxx_messageInfo_SecureValue_Data proto.InternalMessageInfo +var xxx_messageInfo_TLSecureFile proto.InternalMessageInfo -func (m *SecureValue_Data) GetType() *SecureValueType { +func (m *TLSecureFile) GetData2() *SecureFile_Data { if m != nil { - return m.Type + return m.Data2 } return nil } -func (m *SecureValue_Data) GetData() *SecureData { - if m != nil { - return m.Data - } - return nil +// ///////////////////////////////////////////////////////////////////////////// +// photos_Photos <-- +// + TL_photos_photos +// + TL_photos_photosSlice +// +type Photos_Photos_Data struct { + Photos []*Photo `protobuf:"bytes,1,rep,name=photos,proto3" json:"photos,omitempty"` + Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureValue_Data) GetFrontSide() *SecureFile { - if m != nil { - return m.FrontSide - } - return nil +func (m *Photos_Photos_Data) Reset() { *m = Photos_Photos_Data{} } +func (m *Photos_Photos_Data) String() string { return proto.CompactTextString(m) } +func (*Photos_Photos_Data) ProtoMessage() {} +func (*Photos_Photos_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{150} +} +func (m *Photos_Photos_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Photos_Photos_Data.Unmarshal(m, b) +} +func (m *Photos_Photos_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Photos_Photos_Data.Marshal(b, m, deterministic) +} +func (dst *Photos_Photos_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Photos_Photos_Data.Merge(dst, src) +} +func (m *Photos_Photos_Data) XXX_Size() int { + return xxx_messageInfo_Photos_Photos_Data.Size(m) +} +func (m *Photos_Photos_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Photos_Photos_Data.DiscardUnknown(m) } -func (m *SecureValue_Data) GetReverseSide() *SecureFile { +var xxx_messageInfo_Photos_Photos_Data proto.InternalMessageInfo + +func (m *Photos_Photos_Data) GetPhotos() []*Photo { if m != nil { - return m.ReverseSide + return m.Photos } return nil } -func (m *SecureValue_Data) GetSelfie() *SecureFile { +func (m *Photos_Photos_Data) GetUsers() []*User { if m != nil { - return m.Selfie + return m.Users } return nil } -func (m *SecureValue_Data) GetTranslation() []*SecureFile { +func (m *Photos_Photos_Data) GetCount() int32 { if m != nil { - return m.Translation + return m.Count } - return nil + return 0 } -func (m *SecureValue_Data) GetFiles() []*SecureFile { - if m != nil { - return m.Files - } - return nil +type Photos_Photos struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Photos_Photos_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureValue_Data) GetPlainData() *SecurePlainData { +func (m *Photos_Photos) Reset() { *m = Photos_Photos{} } +func (m *Photos_Photos) String() string { return proto.CompactTextString(m) } +func (*Photos_Photos) ProtoMessage() {} +func (*Photos_Photos) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{151} +} +func (m *Photos_Photos) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Photos_Photos.Unmarshal(m, b) +} +func (m *Photos_Photos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Photos_Photos.Marshal(b, m, deterministic) +} +func (dst *Photos_Photos) XXX_Merge(src proto.Message) { + xxx_messageInfo_Photos_Photos.Merge(dst, src) +} +func (m *Photos_Photos) XXX_Size() int { + return xxx_messageInfo_Photos_Photos.Size(m) +} +func (m *Photos_Photos) XXX_DiscardUnknown() { + xxx_messageInfo_Photos_Photos.DiscardUnknown(m) +} + +var xxx_messageInfo_Photos_Photos proto.InternalMessageInfo + +func (m *Photos_Photos) GetConstructor() TLConstructor { if m != nil { - return m.PlainData + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *SecureValue_Data) GetHash() []byte { +func (m *Photos_Photos) GetData2() *Photos_Photos_Data { if m != nil { - return m.Hash + return m.Data2 } return nil } -type SecureValue struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecureValue_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos; +type TLPhotosPhotos struct { + Data2 *Photos_Photos_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureValue) Reset() { *m = SecureValue{} } -func (m *SecureValue) String() string { return proto.CompactTextString(m) } -func (*SecureValue) ProtoMessage() {} -func (*SecureValue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{172} +func (m *TLPhotosPhotos) Reset() { *m = TLPhotosPhotos{} } +func (m *TLPhotosPhotos) String() string { return proto.CompactTextString(m) } +func (*TLPhotosPhotos) ProtoMessage() {} +func (*TLPhotosPhotos) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{152} } -func (m *SecureValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureValue.Unmarshal(m, b) +func (m *TLPhotosPhotos) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhotosPhotos.Unmarshal(m, b) } -func (m *SecureValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureValue.Marshal(b, m, deterministic) +func (m *TLPhotosPhotos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhotosPhotos.Marshal(b, m, deterministic) } -func (dst *SecureValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureValue.Merge(dst, src) +func (dst *TLPhotosPhotos) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhotosPhotos.Merge(dst, src) } -func (m *SecureValue) XXX_Size() int { - return xxx_messageInfo_SecureValue.Size(m) +func (m *TLPhotosPhotos) XXX_Size() int { + return xxx_messageInfo_TLPhotosPhotos.Size(m) } -func (m *SecureValue) XXX_DiscardUnknown() { - xxx_messageInfo_SecureValue.DiscardUnknown(m) +func (m *TLPhotosPhotos) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhotosPhotos.DiscardUnknown(m) } -var xxx_messageInfo_SecureValue proto.InternalMessageInfo - -func (m *SecureValue) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLPhotosPhotos proto.InternalMessageInfo -func (m *SecureValue) GetData2() *SecureValue_Data { +func (m *TLPhotosPhotos) GetData2() *Photos_Photos_Data { if m != nil { return m.Data2 } return nil } -// secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue; -type TLSecureValue struct { - Data2 *SecureValue_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos; +type TLPhotosPhotosSlice struct { + Data2 *Photos_Photos_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValue) Reset() { *m = TLSecureValue{} } -func (m *TLSecureValue) String() string { return proto.CompactTextString(m) } -func (*TLSecureValue) ProtoMessage() {} -func (*TLSecureValue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{173} +func (m *TLPhotosPhotosSlice) Reset() { *m = TLPhotosPhotosSlice{} } +func (m *TLPhotosPhotosSlice) String() string { return proto.CompactTextString(m) } +func (*TLPhotosPhotosSlice) ProtoMessage() {} +func (*TLPhotosPhotosSlice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{153} } -func (m *TLSecureValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValue.Unmarshal(m, b) +func (m *TLPhotosPhotosSlice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhotosPhotosSlice.Unmarshal(m, b) } -func (m *TLSecureValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValue.Marshal(b, m, deterministic) +func (m *TLPhotosPhotosSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhotosPhotosSlice.Marshal(b, m, deterministic) } -func (dst *TLSecureValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValue.Merge(dst, src) +func (dst *TLPhotosPhotosSlice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhotosPhotosSlice.Merge(dst, src) } -func (m *TLSecureValue) XXX_Size() int { - return xxx_messageInfo_TLSecureValue.Size(m) +func (m *TLPhotosPhotosSlice) XXX_Size() int { + return xxx_messageInfo_TLPhotosPhotosSlice.Size(m) } -func (m *TLSecureValue) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValue.DiscardUnknown(m) +func (m *TLPhotosPhotosSlice) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhotosPhotosSlice.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValue proto.InternalMessageInfo +var xxx_messageInfo_TLPhotosPhotosSlice proto.InternalMessageInfo -func (m *TLSecureValue) GetData2() *SecureValue_Data { +func (m *TLPhotosPhotosSlice) GetData2() *Photos_Photos_Data { if m != nil { return m.Data2 } @@ -8214,333 +7647,254 @@ func (m *TLSecureValue) GetData2() *SecureValue_Data { } // ///////////////////////////////////////////////////////////////////////////// -// account_PrivacyRules <-- -// + TL_account_privacyRules +// auth_SentCodeType <-- +// + TL_auth_sentCodeTypeApp +// + TL_auth_sentCodeTypeSms +// + TL_auth_sentCodeTypeCall +// + TL_auth_sentCodeTypeFlashCall // -type Account_PrivacyRules_Data struct { - Rules []*PrivacyRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` - Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Auth_SentCodeType_Data struct { + Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` + Pattern string `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_PrivacyRules_Data) Reset() { *m = Account_PrivacyRules_Data{} } -func (m *Account_PrivacyRules_Data) String() string { return proto.CompactTextString(m) } -func (*Account_PrivacyRules_Data) ProtoMessage() {} -func (*Account_PrivacyRules_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{174} +func (m *Auth_SentCodeType_Data) Reset() { *m = Auth_SentCodeType_Data{} } +func (m *Auth_SentCodeType_Data) String() string { return proto.CompactTextString(m) } +func (*Auth_SentCodeType_Data) ProtoMessage() {} +func (*Auth_SentCodeType_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{154} } -func (m *Account_PrivacyRules_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_PrivacyRules_Data.Unmarshal(m, b) +func (m *Auth_SentCodeType_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_SentCodeType_Data.Unmarshal(m, b) } -func (m *Account_PrivacyRules_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_PrivacyRules_Data.Marshal(b, m, deterministic) +func (m *Auth_SentCodeType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_SentCodeType_Data.Marshal(b, m, deterministic) } -func (dst *Account_PrivacyRules_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_PrivacyRules_Data.Merge(dst, src) +func (dst *Auth_SentCodeType_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_SentCodeType_Data.Merge(dst, src) } -func (m *Account_PrivacyRules_Data) XXX_Size() int { - return xxx_messageInfo_Account_PrivacyRules_Data.Size(m) +func (m *Auth_SentCodeType_Data) XXX_Size() int { + return xxx_messageInfo_Auth_SentCodeType_Data.Size(m) } -func (m *Account_PrivacyRules_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_PrivacyRules_Data.DiscardUnknown(m) +func (m *Auth_SentCodeType_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_SentCodeType_Data.DiscardUnknown(m) } -var xxx_messageInfo_Account_PrivacyRules_Data proto.InternalMessageInfo +var xxx_messageInfo_Auth_SentCodeType_Data proto.InternalMessageInfo -func (m *Account_PrivacyRules_Data) GetRules() []*PrivacyRule { +func (m *Auth_SentCodeType_Data) GetLength() int32 { if m != nil { - return m.Rules + return m.Length } - return nil + return 0 } -func (m *Account_PrivacyRules_Data) GetUsers() []*User { +func (m *Auth_SentCodeType_Data) GetPattern() string { if m != nil { - return m.Users + return m.Pattern } - return nil + return "" } -type Account_PrivacyRules struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_PrivacyRules_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Auth_SentCodeType struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_PrivacyRules) Reset() { *m = Account_PrivacyRules{} } -func (m *Account_PrivacyRules) String() string { return proto.CompactTextString(m) } -func (*Account_PrivacyRules) ProtoMessage() {} -func (*Account_PrivacyRules) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{175} +func (m *Auth_SentCodeType) Reset() { *m = Auth_SentCodeType{} } +func (m *Auth_SentCodeType) String() string { return proto.CompactTextString(m) } +func (*Auth_SentCodeType) ProtoMessage() {} +func (*Auth_SentCodeType) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{155} } -func (m *Account_PrivacyRules) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_PrivacyRules.Unmarshal(m, b) +func (m *Auth_SentCodeType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_SentCodeType.Unmarshal(m, b) } -func (m *Account_PrivacyRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_PrivacyRules.Marshal(b, m, deterministic) +func (m *Auth_SentCodeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_SentCodeType.Marshal(b, m, deterministic) } -func (dst *Account_PrivacyRules) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_PrivacyRules.Merge(dst, src) +func (dst *Auth_SentCodeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_SentCodeType.Merge(dst, src) } -func (m *Account_PrivacyRules) XXX_Size() int { - return xxx_messageInfo_Account_PrivacyRules.Size(m) +func (m *Auth_SentCodeType) XXX_Size() int { + return xxx_messageInfo_Auth_SentCodeType.Size(m) } -func (m *Account_PrivacyRules) XXX_DiscardUnknown() { - xxx_messageInfo_Account_PrivacyRules.DiscardUnknown(m) +func (m *Auth_SentCodeType) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_SentCodeType.DiscardUnknown(m) } -var xxx_messageInfo_Account_PrivacyRules proto.InternalMessageInfo +var xxx_messageInfo_Auth_SentCodeType proto.InternalMessageInfo -func (m *Account_PrivacyRules) GetConstructor() TLConstructor { +func (m *Auth_SentCodeType) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Account_PrivacyRules) GetData2() *Account_PrivacyRules_Data { +func (m *Auth_SentCodeType) GetData2() *Auth_SentCodeType_Data { if m != nil { return m.Data2 } return nil } -// account.privacyRules#554abb6f rules:Vector users:Vector = account.PrivacyRules; -type TLAccountPrivacyRules struct { - Data2 *Account_PrivacyRules_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType; +type TLAuthSentCodeTypeApp struct { + Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountPrivacyRules) Reset() { *m = TLAccountPrivacyRules{} } -func (m *TLAccountPrivacyRules) String() string { return proto.CompactTextString(m) } -func (*TLAccountPrivacyRules) ProtoMessage() {} -func (*TLAccountPrivacyRules) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{176} +func (m *TLAuthSentCodeTypeApp) Reset() { *m = TLAuthSentCodeTypeApp{} } +func (m *TLAuthSentCodeTypeApp) String() string { return proto.CompactTextString(m) } +func (*TLAuthSentCodeTypeApp) ProtoMessage() {} +func (*TLAuthSentCodeTypeApp) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{156} } -func (m *TLAccountPrivacyRules) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountPrivacyRules.Unmarshal(m, b) +func (m *TLAuthSentCodeTypeApp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthSentCodeTypeApp.Unmarshal(m, b) } -func (m *TLAccountPrivacyRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountPrivacyRules.Marshal(b, m, deterministic) +func (m *TLAuthSentCodeTypeApp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthSentCodeTypeApp.Marshal(b, m, deterministic) } -func (dst *TLAccountPrivacyRules) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountPrivacyRules.Merge(dst, src) +func (dst *TLAuthSentCodeTypeApp) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthSentCodeTypeApp.Merge(dst, src) } -func (m *TLAccountPrivacyRules) XXX_Size() int { - return xxx_messageInfo_TLAccountPrivacyRules.Size(m) +func (m *TLAuthSentCodeTypeApp) XXX_Size() int { + return xxx_messageInfo_TLAuthSentCodeTypeApp.Size(m) } -func (m *TLAccountPrivacyRules) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountPrivacyRules.DiscardUnknown(m) +func (m *TLAuthSentCodeTypeApp) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthSentCodeTypeApp.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountPrivacyRules proto.InternalMessageInfo +var xxx_messageInfo_TLAuthSentCodeTypeApp proto.InternalMessageInfo -func (m *TLAccountPrivacyRules) GetData2() *Account_PrivacyRules_Data { +func (m *TLAuthSentCodeTypeApp) GetData2() *Auth_SentCodeType_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// auth_CodeType <-- -// + TL_auth_codeTypeSms -// + TL_auth_codeTypeCall -// + TL_auth_codeTypeFlashCall -// -type Auth_CodeType_Data struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType; +type TLAuthSentCodeTypeSms struct { + Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_CodeType_Data) Reset() { *m = Auth_CodeType_Data{} } -func (m *Auth_CodeType_Data) String() string { return proto.CompactTextString(m) } -func (*Auth_CodeType_Data) ProtoMessage() {} -func (*Auth_CodeType_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{177} +func (m *TLAuthSentCodeTypeSms) Reset() { *m = TLAuthSentCodeTypeSms{} } +func (m *TLAuthSentCodeTypeSms) String() string { return proto.CompactTextString(m) } +func (*TLAuthSentCodeTypeSms) ProtoMessage() {} +func (*TLAuthSentCodeTypeSms) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{157} } -func (m *Auth_CodeType_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_CodeType_Data.Unmarshal(m, b) +func (m *TLAuthSentCodeTypeSms) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthSentCodeTypeSms.Unmarshal(m, b) } -func (m *Auth_CodeType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_CodeType_Data.Marshal(b, m, deterministic) +func (m *TLAuthSentCodeTypeSms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthSentCodeTypeSms.Marshal(b, m, deterministic) } -func (dst *Auth_CodeType_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_CodeType_Data.Merge(dst, src) +func (dst *TLAuthSentCodeTypeSms) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthSentCodeTypeSms.Merge(dst, src) } -func (m *Auth_CodeType_Data) XXX_Size() int { - return xxx_messageInfo_Auth_CodeType_Data.Size(m) +func (m *TLAuthSentCodeTypeSms) XXX_Size() int { + return xxx_messageInfo_TLAuthSentCodeTypeSms.Size(m) } -func (m *Auth_CodeType_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_CodeType_Data.DiscardUnknown(m) +func (m *TLAuthSentCodeTypeSms) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthSentCodeTypeSms.DiscardUnknown(m) } -var xxx_messageInfo_Auth_CodeType_Data proto.InternalMessageInfo +var xxx_messageInfo_TLAuthSentCodeTypeSms proto.InternalMessageInfo -type Auth_CodeType struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Auth_CodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *TLAuthSentCodeTypeSms) GetData2() *Auth_SentCodeType_Data { + if m != nil { + return m.Data2 + } + return nil } -func (m *Auth_CodeType) Reset() { *m = Auth_CodeType{} } -func (m *Auth_CodeType) String() string { return proto.CompactTextString(m) } -func (*Auth_CodeType) ProtoMessage() {} -func (*Auth_CodeType) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{178} +// auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType; +type TLAuthSentCodeTypeCall struct { + Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_CodeType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_CodeType.Unmarshal(m, b) + +func (m *TLAuthSentCodeTypeCall) Reset() { *m = TLAuthSentCodeTypeCall{} } +func (m *TLAuthSentCodeTypeCall) String() string { return proto.CompactTextString(m) } +func (*TLAuthSentCodeTypeCall) ProtoMessage() {} +func (*TLAuthSentCodeTypeCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{158} } -func (m *Auth_CodeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_CodeType.Marshal(b, m, deterministic) +func (m *TLAuthSentCodeTypeCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthSentCodeTypeCall.Unmarshal(m, b) } -func (dst *Auth_CodeType) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_CodeType.Merge(dst, src) +func (m *TLAuthSentCodeTypeCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthSentCodeTypeCall.Marshal(b, m, deterministic) } -func (m *Auth_CodeType) XXX_Size() int { - return xxx_messageInfo_Auth_CodeType.Size(m) +func (dst *TLAuthSentCodeTypeCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthSentCodeTypeCall.Merge(dst, src) } -func (m *Auth_CodeType) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_CodeType.DiscardUnknown(m) +func (m *TLAuthSentCodeTypeCall) XXX_Size() int { + return xxx_messageInfo_TLAuthSentCodeTypeCall.Size(m) } - -var xxx_messageInfo_Auth_CodeType proto.InternalMessageInfo - -func (m *Auth_CodeType) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN +func (m *TLAuthSentCodeTypeCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthSentCodeTypeCall.DiscardUnknown(m) } -func (m *Auth_CodeType) GetData2() *Auth_CodeType_Data { +var xxx_messageInfo_TLAuthSentCodeTypeCall proto.InternalMessageInfo + +func (m *TLAuthSentCodeTypeCall) GetData2() *Auth_SentCodeType_Data { if m != nil { return m.Data2 } return nil } -// auth.codeTypeSms#72a3158c = auth.CodeType; -type TLAuthCodeTypeSms struct { - Data2 *Auth_CodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLAuthCodeTypeSms) Reset() { *m = TLAuthCodeTypeSms{} } -func (m *TLAuthCodeTypeSms) String() string { return proto.CompactTextString(m) } -func (*TLAuthCodeTypeSms) ProtoMessage() {} -func (*TLAuthCodeTypeSms) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{179} -} -func (m *TLAuthCodeTypeSms) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthCodeTypeSms.Unmarshal(m, b) -} -func (m *TLAuthCodeTypeSms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthCodeTypeSms.Marshal(b, m, deterministic) -} -func (dst *TLAuthCodeTypeSms) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthCodeTypeSms.Merge(dst, src) -} -func (m *TLAuthCodeTypeSms) XXX_Size() int { - return xxx_messageInfo_TLAuthCodeTypeSms.Size(m) -} -func (m *TLAuthCodeTypeSms) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthCodeTypeSms.DiscardUnknown(m) -} - -var xxx_messageInfo_TLAuthCodeTypeSms proto.InternalMessageInfo - -func (m *TLAuthCodeTypeSms) GetData2() *Auth_CodeType_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// auth.codeTypeCall#741cd3e3 = auth.CodeType; -type TLAuthCodeTypeCall struct { - Data2 *Auth_CodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLAuthCodeTypeCall) Reset() { *m = TLAuthCodeTypeCall{} } -func (m *TLAuthCodeTypeCall) String() string { return proto.CompactTextString(m) } -func (*TLAuthCodeTypeCall) ProtoMessage() {} -func (*TLAuthCodeTypeCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{180} -} -func (m *TLAuthCodeTypeCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthCodeTypeCall.Unmarshal(m, b) -} -func (m *TLAuthCodeTypeCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthCodeTypeCall.Marshal(b, m, deterministic) -} -func (dst *TLAuthCodeTypeCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthCodeTypeCall.Merge(dst, src) -} -func (m *TLAuthCodeTypeCall) XXX_Size() int { - return xxx_messageInfo_TLAuthCodeTypeCall.Size(m) -} -func (m *TLAuthCodeTypeCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthCodeTypeCall.DiscardUnknown(m) -} - -var xxx_messageInfo_TLAuthCodeTypeCall proto.InternalMessageInfo - -func (m *TLAuthCodeTypeCall) GetData2() *Auth_CodeType_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// auth.codeTypeFlashCall#226ccefb = auth.CodeType; -type TLAuthCodeTypeFlashCall struct { - Data2 *Auth_CodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType; +type TLAuthSentCodeTypeFlashCall struct { + Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAuthCodeTypeFlashCall) Reset() { *m = TLAuthCodeTypeFlashCall{} } -func (m *TLAuthCodeTypeFlashCall) String() string { return proto.CompactTextString(m) } -func (*TLAuthCodeTypeFlashCall) ProtoMessage() {} -func (*TLAuthCodeTypeFlashCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{181} +func (m *TLAuthSentCodeTypeFlashCall) Reset() { *m = TLAuthSentCodeTypeFlashCall{} } +func (m *TLAuthSentCodeTypeFlashCall) String() string { return proto.CompactTextString(m) } +func (*TLAuthSentCodeTypeFlashCall) ProtoMessage() {} +func (*TLAuthSentCodeTypeFlashCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{159} } -func (m *TLAuthCodeTypeFlashCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthCodeTypeFlashCall.Unmarshal(m, b) +func (m *TLAuthSentCodeTypeFlashCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthSentCodeTypeFlashCall.Unmarshal(m, b) } -func (m *TLAuthCodeTypeFlashCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthCodeTypeFlashCall.Marshal(b, m, deterministic) +func (m *TLAuthSentCodeTypeFlashCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthSentCodeTypeFlashCall.Marshal(b, m, deterministic) } -func (dst *TLAuthCodeTypeFlashCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthCodeTypeFlashCall.Merge(dst, src) +func (dst *TLAuthSentCodeTypeFlashCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthSentCodeTypeFlashCall.Merge(dst, src) } -func (m *TLAuthCodeTypeFlashCall) XXX_Size() int { - return xxx_messageInfo_TLAuthCodeTypeFlashCall.Size(m) +func (m *TLAuthSentCodeTypeFlashCall) XXX_Size() int { + return xxx_messageInfo_TLAuthSentCodeTypeFlashCall.Size(m) } -func (m *TLAuthCodeTypeFlashCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthCodeTypeFlashCall.DiscardUnknown(m) +func (m *TLAuthSentCodeTypeFlashCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthSentCodeTypeFlashCall.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthCodeTypeFlashCall proto.InternalMessageInfo +var xxx_messageInfo_TLAuthSentCodeTypeFlashCall proto.InternalMessageInfo -func (m *TLAuthCodeTypeFlashCall) GetData2() *Auth_CodeType_Data { +func (m *TLAuthSentCodeTypeFlashCall) GetData2() *Auth_SentCodeType_Data { if m != nil { return m.Data2 } @@ -8548,134 +7902,134 @@ func (m *TLAuthCodeTypeFlashCall) GetData2() *Auth_CodeType_Data { } // ///////////////////////////////////////////////////////////////////////////// -// SchemeParam <-- -// + TL_schemeParam +// PaymentSavedCredentials <-- +// + TL_paymentSavedCredentialsCard // -type SchemeParam_Data struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` +type PaymentSavedCredentials_Data struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SchemeParam_Data) Reset() { *m = SchemeParam_Data{} } -func (m *SchemeParam_Data) String() string { return proto.CompactTextString(m) } -func (*SchemeParam_Data) ProtoMessage() {} -func (*SchemeParam_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{182} +func (m *PaymentSavedCredentials_Data) Reset() { *m = PaymentSavedCredentials_Data{} } +func (m *PaymentSavedCredentials_Data) String() string { return proto.CompactTextString(m) } +func (*PaymentSavedCredentials_Data) ProtoMessage() {} +func (*PaymentSavedCredentials_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{160} } -func (m *SchemeParam_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SchemeParam_Data.Unmarshal(m, b) +func (m *PaymentSavedCredentials_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PaymentSavedCredentials_Data.Unmarshal(m, b) } -func (m *SchemeParam_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SchemeParam_Data.Marshal(b, m, deterministic) +func (m *PaymentSavedCredentials_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PaymentSavedCredentials_Data.Marshal(b, m, deterministic) } -func (dst *SchemeParam_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemeParam_Data.Merge(dst, src) +func (dst *PaymentSavedCredentials_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PaymentSavedCredentials_Data.Merge(dst, src) } -func (m *SchemeParam_Data) XXX_Size() int { - return xxx_messageInfo_SchemeParam_Data.Size(m) +func (m *PaymentSavedCredentials_Data) XXX_Size() int { + return xxx_messageInfo_PaymentSavedCredentials_Data.Size(m) } -func (m *SchemeParam_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SchemeParam_Data.DiscardUnknown(m) +func (m *PaymentSavedCredentials_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PaymentSavedCredentials_Data.DiscardUnknown(m) } -var xxx_messageInfo_SchemeParam_Data proto.InternalMessageInfo +var xxx_messageInfo_PaymentSavedCredentials_Data proto.InternalMessageInfo -func (m *SchemeParam_Data) GetName() string { +func (m *PaymentSavedCredentials_Data) GetId() string { if m != nil { - return m.Name + return m.Id } return "" } -func (m *SchemeParam_Data) GetType() string { +func (m *PaymentSavedCredentials_Data) GetTitle() string { if m != nil { - return m.Type + return m.Title } return "" } -type SchemeParam struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SchemeParam_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PaymentSavedCredentials struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PaymentSavedCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SchemeParam) Reset() { *m = SchemeParam{} } -func (m *SchemeParam) String() string { return proto.CompactTextString(m) } -func (*SchemeParam) ProtoMessage() {} -func (*SchemeParam) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{183} +func (m *PaymentSavedCredentials) Reset() { *m = PaymentSavedCredentials{} } +func (m *PaymentSavedCredentials) String() string { return proto.CompactTextString(m) } +func (*PaymentSavedCredentials) ProtoMessage() {} +func (*PaymentSavedCredentials) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{161} } -func (m *SchemeParam) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SchemeParam.Unmarshal(m, b) +func (m *PaymentSavedCredentials) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PaymentSavedCredentials.Unmarshal(m, b) } -func (m *SchemeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SchemeParam.Marshal(b, m, deterministic) +func (m *PaymentSavedCredentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PaymentSavedCredentials.Marshal(b, m, deterministic) } -func (dst *SchemeParam) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemeParam.Merge(dst, src) +func (dst *PaymentSavedCredentials) XXX_Merge(src proto.Message) { + xxx_messageInfo_PaymentSavedCredentials.Merge(dst, src) } -func (m *SchemeParam) XXX_Size() int { - return xxx_messageInfo_SchemeParam.Size(m) +func (m *PaymentSavedCredentials) XXX_Size() int { + return xxx_messageInfo_PaymentSavedCredentials.Size(m) } -func (m *SchemeParam) XXX_DiscardUnknown() { - xxx_messageInfo_SchemeParam.DiscardUnknown(m) +func (m *PaymentSavedCredentials) XXX_DiscardUnknown() { + xxx_messageInfo_PaymentSavedCredentials.DiscardUnknown(m) } -var xxx_messageInfo_SchemeParam proto.InternalMessageInfo +var xxx_messageInfo_PaymentSavedCredentials proto.InternalMessageInfo -func (m *SchemeParam) GetConstructor() TLConstructor { +func (m *PaymentSavedCredentials) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *SchemeParam) GetData2() *SchemeParam_Data { +func (m *PaymentSavedCredentials) GetData2() *PaymentSavedCredentials_Data { if m != nil { return m.Data2 } return nil } -// schemeParam#21b59bef name:string type:string = SchemeParam; -type TLSchemeParam struct { - Data2 *SchemeParam_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; +type TLPaymentSavedCredentialsCard struct { + Data2 *PaymentSavedCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSchemeParam) Reset() { *m = TLSchemeParam{} } -func (m *TLSchemeParam) String() string { return proto.CompactTextString(m) } -func (*TLSchemeParam) ProtoMessage() {} -func (*TLSchemeParam) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{184} +func (m *TLPaymentSavedCredentialsCard) Reset() { *m = TLPaymentSavedCredentialsCard{} } +func (m *TLPaymentSavedCredentialsCard) String() string { return proto.CompactTextString(m) } +func (*TLPaymentSavedCredentialsCard) ProtoMessage() {} +func (*TLPaymentSavedCredentialsCard) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{162} } -func (m *TLSchemeParam) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSchemeParam.Unmarshal(m, b) +func (m *TLPaymentSavedCredentialsCard) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPaymentSavedCredentialsCard.Unmarshal(m, b) } -func (m *TLSchemeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSchemeParam.Marshal(b, m, deterministic) +func (m *TLPaymentSavedCredentialsCard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPaymentSavedCredentialsCard.Marshal(b, m, deterministic) } -func (dst *TLSchemeParam) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSchemeParam.Merge(dst, src) +func (dst *TLPaymentSavedCredentialsCard) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPaymentSavedCredentialsCard.Merge(dst, src) } -func (m *TLSchemeParam) XXX_Size() int { - return xxx_messageInfo_TLSchemeParam.Size(m) +func (m *TLPaymentSavedCredentialsCard) XXX_Size() int { + return xxx_messageInfo_TLPaymentSavedCredentialsCard.Size(m) } -func (m *TLSchemeParam) XXX_DiscardUnknown() { - xxx_messageInfo_TLSchemeParam.DiscardUnknown(m) +func (m *TLPaymentSavedCredentialsCard) XXX_DiscardUnknown() { + xxx_messageInfo_TLPaymentSavedCredentialsCard.DiscardUnknown(m) } -var xxx_messageInfo_TLSchemeParam proto.InternalMessageInfo +var xxx_messageInfo_TLPaymentSavedCredentialsCard proto.InternalMessageInfo -func (m *TLSchemeParam) GetData2() *SchemeParam_Data { +func (m *TLPaymentSavedCredentialsCard) GetData2() *PaymentSavedCredentials_Data { if m != nil { return m.Data2 } @@ -8683,341 +8037,357 @@ func (m *TLSchemeParam) GetData2() *SchemeParam_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputEncryptedChat <-- -// + TL_inputEncryptedChat +// contacts_Contacts <-- +// + TL_contacts_contactsNotModified +// + TL_contacts_contacts // -type InputEncryptedChat_Data struct { - ChatId int32 `protobuf:"varint,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Contacts_Contacts_Data struct { + Contacts []*Contact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"` + SavedCount int32 `protobuf:"varint,2,opt,name=saved_count,json=savedCount,proto3" json:"saved_count,omitempty"` + Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputEncryptedChat_Data) Reset() { *m = InputEncryptedChat_Data{} } -func (m *InputEncryptedChat_Data) String() string { return proto.CompactTextString(m) } -func (*InputEncryptedChat_Data) ProtoMessage() {} -func (*InputEncryptedChat_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{185} +func (m *Contacts_Contacts_Data) Reset() { *m = Contacts_Contacts_Data{} } +func (m *Contacts_Contacts_Data) String() string { return proto.CompactTextString(m) } +func (*Contacts_Contacts_Data) ProtoMessage() {} +func (*Contacts_Contacts_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{163} } -func (m *InputEncryptedChat_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputEncryptedChat_Data.Unmarshal(m, b) +func (m *Contacts_Contacts_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_Contacts_Data.Unmarshal(m, b) } -func (m *InputEncryptedChat_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputEncryptedChat_Data.Marshal(b, m, deterministic) +func (m *Contacts_Contacts_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_Contacts_Data.Marshal(b, m, deterministic) } -func (dst *InputEncryptedChat_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputEncryptedChat_Data.Merge(dst, src) +func (dst *Contacts_Contacts_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_Contacts_Data.Merge(dst, src) } -func (m *InputEncryptedChat_Data) XXX_Size() int { - return xxx_messageInfo_InputEncryptedChat_Data.Size(m) +func (m *Contacts_Contacts_Data) XXX_Size() int { + return xxx_messageInfo_Contacts_Contacts_Data.Size(m) } -func (m *InputEncryptedChat_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputEncryptedChat_Data.DiscardUnknown(m) +func (m *Contacts_Contacts_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_Contacts_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputEncryptedChat_Data proto.InternalMessageInfo +var xxx_messageInfo_Contacts_Contacts_Data proto.InternalMessageInfo -func (m *InputEncryptedChat_Data) GetChatId() int32 { +func (m *Contacts_Contacts_Data) GetContacts() []*Contact { if m != nil { - return m.ChatId + return m.Contacts } - return 0 + return nil } -func (m *InputEncryptedChat_Data) GetAccessHash() int64 { +func (m *Contacts_Contacts_Data) GetSavedCount() int32 { if m != nil { - return m.AccessHash + return m.SavedCount } return 0 } -type InputEncryptedChat struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputEncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Contacts_Contacts_Data) GetUsers() []*User { + if m != nil { + return m.Users + } + return nil } -func (m *InputEncryptedChat) Reset() { *m = InputEncryptedChat{} } -func (m *InputEncryptedChat) String() string { return proto.CompactTextString(m) } -func (*InputEncryptedChat) ProtoMessage() {} -func (*InputEncryptedChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{186} +type Contacts_Contacts struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Contacts_Contacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputEncryptedChat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputEncryptedChat.Unmarshal(m, b) + +func (m *Contacts_Contacts) Reset() { *m = Contacts_Contacts{} } +func (m *Contacts_Contacts) String() string { return proto.CompactTextString(m) } +func (*Contacts_Contacts) ProtoMessage() {} +func (*Contacts_Contacts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{164} } -func (m *InputEncryptedChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputEncryptedChat.Marshal(b, m, deterministic) +func (m *Contacts_Contacts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_Contacts.Unmarshal(m, b) } -func (dst *InputEncryptedChat) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputEncryptedChat.Merge(dst, src) +func (m *Contacts_Contacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_Contacts.Marshal(b, m, deterministic) } -func (m *InputEncryptedChat) XXX_Size() int { - return xxx_messageInfo_InputEncryptedChat.Size(m) +func (dst *Contacts_Contacts) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_Contacts.Merge(dst, src) } -func (m *InputEncryptedChat) XXX_DiscardUnknown() { - xxx_messageInfo_InputEncryptedChat.DiscardUnknown(m) +func (m *Contacts_Contacts) XXX_Size() int { + return xxx_messageInfo_Contacts_Contacts.Size(m) +} +func (m *Contacts_Contacts) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_Contacts.DiscardUnknown(m) } -var xxx_messageInfo_InputEncryptedChat proto.InternalMessageInfo +var xxx_messageInfo_Contacts_Contacts proto.InternalMessageInfo -func (m *InputEncryptedChat) GetConstructor() TLConstructor { +func (m *Contacts_Contacts) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputEncryptedChat) GetData2() *InputEncryptedChat_Data { +func (m *Contacts_Contacts) GetData2() *Contacts_Contacts_Data { if m != nil { return m.Data2 } return nil } -// inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat; -type TLInputEncryptedChat struct { - Data2 *InputEncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// contacts.contactsNotModified#b74ba9d2 = contacts.Contacts; +type TLContactsContactsNotModified struct { + Data2 *Contacts_Contacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputEncryptedChat) Reset() { *m = TLInputEncryptedChat{} } -func (m *TLInputEncryptedChat) String() string { return proto.CompactTextString(m) } -func (*TLInputEncryptedChat) ProtoMessage() {} -func (*TLInputEncryptedChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{187} +func (m *TLContactsContactsNotModified) Reset() { *m = TLContactsContactsNotModified{} } +func (m *TLContactsContactsNotModified) String() string { return proto.CompactTextString(m) } +func (*TLContactsContactsNotModified) ProtoMessage() {} +func (*TLContactsContactsNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{165} } -func (m *TLInputEncryptedChat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputEncryptedChat.Unmarshal(m, b) +func (m *TLContactsContactsNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsContactsNotModified.Unmarshal(m, b) } -func (m *TLInputEncryptedChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputEncryptedChat.Marshal(b, m, deterministic) +func (m *TLContactsContactsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsContactsNotModified.Marshal(b, m, deterministic) } -func (dst *TLInputEncryptedChat) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputEncryptedChat.Merge(dst, src) +func (dst *TLContactsContactsNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsContactsNotModified.Merge(dst, src) } -func (m *TLInputEncryptedChat) XXX_Size() int { - return xxx_messageInfo_TLInputEncryptedChat.Size(m) +func (m *TLContactsContactsNotModified) XXX_Size() int { + return xxx_messageInfo_TLContactsContactsNotModified.Size(m) } -func (m *TLInputEncryptedChat) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputEncryptedChat.DiscardUnknown(m) +func (m *TLContactsContactsNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsContactsNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLInputEncryptedChat proto.InternalMessageInfo +var xxx_messageInfo_TLContactsContactsNotModified proto.InternalMessageInfo -func (m *TLInputEncryptedChat) GetData2() *InputEncryptedChat_Data { +func (m *TLContactsContactsNotModified) GetData2() *Contacts_Contacts_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// account_Password <-- -// + TL_account_password -// -type Account_Password_Data struct { - HasRecovery bool `protobuf:"varint,1,opt,name=has_recovery,json=hasRecovery,proto3" json:"has_recovery,omitempty"` - HasSecureValues bool `protobuf:"varint,2,opt,name=has_secure_values,json=hasSecureValues,proto3" json:"has_secure_values,omitempty"` - HasPassword bool `protobuf:"varint,3,opt,name=has_password,json=hasPassword,proto3" json:"has_password,omitempty"` - CurrentAlgo *PasswordKdfAlgo `protobuf:"bytes,4,opt,name=current_algo,json=currentAlgo,proto3" json:"current_algo,omitempty"` - Srp_B []byte `protobuf:"bytes,5,opt,name=srp_B,json=srpB,proto3" json:"srp_B,omitempty"` - SrpId int64 `protobuf:"varint,6,opt,name=srp_id,json=srpId,proto3" json:"srp_id,omitempty"` - Hint string `protobuf:"bytes,7,opt,name=hint,proto3" json:"hint,omitempty"` - EmailUnconfirmedPattern string `protobuf:"bytes,8,opt,name=email_unconfirmed_pattern,json=emailUnconfirmedPattern,proto3" json:"email_unconfirmed_pattern,omitempty"` - NewAlgo *PasswordKdfAlgo `protobuf:"bytes,9,opt,name=new_algo,json=newAlgo,proto3" json:"new_algo,omitempty"` - NewSecureAlgo *SecurePasswordKdfAlgo `protobuf:"bytes,10,opt,name=new_secure_algo,json=newSecureAlgo,proto3" json:"new_secure_algo,omitempty"` - SecureRandom []byte `protobuf:"bytes,11,opt,name=secure_random,json=secureRandom,proto3" json:"secure_random,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// contacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts; +type TLContactsContacts struct { + Data2 *Contacts_Contacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_Password_Data) Reset() { *m = Account_Password_Data{} } -func (m *Account_Password_Data) String() string { return proto.CompactTextString(m) } -func (*Account_Password_Data) ProtoMessage() {} -func (*Account_Password_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{188} +func (m *TLContactsContacts) Reset() { *m = TLContactsContacts{} } +func (m *TLContactsContacts) String() string { return proto.CompactTextString(m) } +func (*TLContactsContacts) ProtoMessage() {} +func (*TLContactsContacts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{166} } -func (m *Account_Password_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_Password_Data.Unmarshal(m, b) +func (m *TLContactsContacts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsContacts.Unmarshal(m, b) } -func (m *Account_Password_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_Password_Data.Marshal(b, m, deterministic) +func (m *TLContactsContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsContacts.Marshal(b, m, deterministic) } -func (dst *Account_Password_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_Password_Data.Merge(dst, src) +func (dst *TLContactsContacts) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsContacts.Merge(dst, src) } -func (m *Account_Password_Data) XXX_Size() int { - return xxx_messageInfo_Account_Password_Data.Size(m) +func (m *TLContactsContacts) XXX_Size() int { + return xxx_messageInfo_TLContactsContacts.Size(m) } -func (m *Account_Password_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_Password_Data.DiscardUnknown(m) +func (m *TLContactsContacts) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsContacts.DiscardUnknown(m) } -var xxx_messageInfo_Account_Password_Data proto.InternalMessageInfo - -func (m *Account_Password_Data) GetHasRecovery() bool { - if m != nil { - return m.HasRecovery - } - return false -} +var xxx_messageInfo_TLContactsContacts proto.InternalMessageInfo -func (m *Account_Password_Data) GetHasSecureValues() bool { +func (m *TLContactsContacts) GetData2() *Contacts_Contacts_Data { if m != nil { - return m.HasSecureValues + return m.Data2 } - return false + return nil } -func (m *Account_Password_Data) GetHasPassword() bool { - if m != nil { - return m.HasPassword - } - return false +// ///////////////////////////////////////////////////////////////////////////// +// messages_SentEncryptedMessage <-- +// + TL_messages_sentEncryptedMessage +// + TL_messages_sentEncryptedFile +// +type Messages_SentEncryptedMessage_Data struct { + Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` + File *EncryptedFile `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_Password_Data) GetCurrentAlgo() *PasswordKdfAlgo { - if m != nil { - return m.CurrentAlgo - } - return nil +func (m *Messages_SentEncryptedMessage_Data) Reset() { *m = Messages_SentEncryptedMessage_Data{} } +func (m *Messages_SentEncryptedMessage_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_SentEncryptedMessage_Data) ProtoMessage() {} +func (*Messages_SentEncryptedMessage_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{167} } - -func (m *Account_Password_Data) GetSrp_B() []byte { - if m != nil { - return m.Srp_B - } - return nil +func (m *Messages_SentEncryptedMessage_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_SentEncryptedMessage_Data.Unmarshal(m, b) +} +func (m *Messages_SentEncryptedMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_SentEncryptedMessage_Data.Marshal(b, m, deterministic) +} +func (dst *Messages_SentEncryptedMessage_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_SentEncryptedMessage_Data.Merge(dst, src) +} +func (m *Messages_SentEncryptedMessage_Data) XXX_Size() int { + return xxx_messageInfo_Messages_SentEncryptedMessage_Data.Size(m) +} +func (m *Messages_SentEncryptedMessage_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_SentEncryptedMessage_Data.DiscardUnknown(m) } -func (m *Account_Password_Data) GetSrpId() int64 { +var xxx_messageInfo_Messages_SentEncryptedMessage_Data proto.InternalMessageInfo + +func (m *Messages_SentEncryptedMessage_Data) GetDate() int32 { if m != nil { - return m.SrpId + return m.Date } return 0 } -func (m *Account_Password_Data) GetHint() string { +func (m *Messages_SentEncryptedMessage_Data) GetFile() *EncryptedFile { if m != nil { - return m.Hint + return m.File } - return "" + return nil } -func (m *Account_Password_Data) GetEmailUnconfirmedPattern() string { - if m != nil { - return m.EmailUnconfirmedPattern - } - return "" +type Messages_SentEncryptedMessage struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_SentEncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_Password_Data) GetNewAlgo() *PasswordKdfAlgo { - if m != nil { - return m.NewAlgo - } - return nil +func (m *Messages_SentEncryptedMessage) Reset() { *m = Messages_SentEncryptedMessage{} } +func (m *Messages_SentEncryptedMessage) String() string { return proto.CompactTextString(m) } +func (*Messages_SentEncryptedMessage) ProtoMessage() {} +func (*Messages_SentEncryptedMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{168} +} +func (m *Messages_SentEncryptedMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_SentEncryptedMessage.Unmarshal(m, b) +} +func (m *Messages_SentEncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_SentEncryptedMessage.Marshal(b, m, deterministic) +} +func (dst *Messages_SentEncryptedMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_SentEncryptedMessage.Merge(dst, src) +} +func (m *Messages_SentEncryptedMessage) XXX_Size() int { + return xxx_messageInfo_Messages_SentEncryptedMessage.Size(m) +} +func (m *Messages_SentEncryptedMessage) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_SentEncryptedMessage.DiscardUnknown(m) } -func (m *Account_Password_Data) GetNewSecureAlgo() *SecurePasswordKdfAlgo { +var xxx_messageInfo_Messages_SentEncryptedMessage proto.InternalMessageInfo + +func (m *Messages_SentEncryptedMessage) GetConstructor() TLConstructor { if m != nil { - return m.NewSecureAlgo + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *Account_Password_Data) GetSecureRandom() []byte { +func (m *Messages_SentEncryptedMessage) GetData2() *Messages_SentEncryptedMessage_Data { if m != nil { - return m.SecureRandom + return m.Data2 } return nil } -type Account_Password struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_Password_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage; +type TLMessagesSentEncryptedMessage struct { + Data2 *Messages_SentEncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_Password) Reset() { *m = Account_Password{} } -func (m *Account_Password) String() string { return proto.CompactTextString(m) } -func (*Account_Password) ProtoMessage() {} -func (*Account_Password) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{189} +func (m *TLMessagesSentEncryptedMessage) Reset() { *m = TLMessagesSentEncryptedMessage{} } +func (m *TLMessagesSentEncryptedMessage) String() string { return proto.CompactTextString(m) } +func (*TLMessagesSentEncryptedMessage) ProtoMessage() {} +func (*TLMessagesSentEncryptedMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{169} } -func (m *Account_Password) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_Password.Unmarshal(m, b) +func (m *TLMessagesSentEncryptedMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesSentEncryptedMessage.Unmarshal(m, b) } -func (m *Account_Password) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_Password.Marshal(b, m, deterministic) +func (m *TLMessagesSentEncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesSentEncryptedMessage.Marshal(b, m, deterministic) } -func (dst *Account_Password) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_Password.Merge(dst, src) +func (dst *TLMessagesSentEncryptedMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesSentEncryptedMessage.Merge(dst, src) } -func (m *Account_Password) XXX_Size() int { - return xxx_messageInfo_Account_Password.Size(m) +func (m *TLMessagesSentEncryptedMessage) XXX_Size() int { + return xxx_messageInfo_TLMessagesSentEncryptedMessage.Size(m) } -func (m *Account_Password) XXX_DiscardUnknown() { - xxx_messageInfo_Account_Password.DiscardUnknown(m) +func (m *TLMessagesSentEncryptedMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesSentEncryptedMessage.DiscardUnknown(m) } -var xxx_messageInfo_Account_Password proto.InternalMessageInfo - -func (m *Account_Password) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLMessagesSentEncryptedMessage proto.InternalMessageInfo -func (m *Account_Password) GetData2() *Account_Password_Data { +func (m *TLMessagesSentEncryptedMessage) GetData2() *Messages_SentEncryptedMessage_Data { if m != nil { return m.Data2 } return nil } -// account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password; -type TLAccountPassword struct { - Data2 *Account_Password_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage; +type TLMessagesSentEncryptedFile struct { + Data2 *Messages_SentEncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountPassword) Reset() { *m = TLAccountPassword{} } -func (m *TLAccountPassword) String() string { return proto.CompactTextString(m) } -func (*TLAccountPassword) ProtoMessage() {} -func (*TLAccountPassword) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{190} +func (m *TLMessagesSentEncryptedFile) Reset() { *m = TLMessagesSentEncryptedFile{} } +func (m *TLMessagesSentEncryptedFile) String() string { return proto.CompactTextString(m) } +func (*TLMessagesSentEncryptedFile) ProtoMessage() {} +func (*TLMessagesSentEncryptedFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{170} } -func (m *TLAccountPassword) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountPassword.Unmarshal(m, b) +func (m *TLMessagesSentEncryptedFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesSentEncryptedFile.Unmarshal(m, b) } -func (m *TLAccountPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountPassword.Marshal(b, m, deterministic) +func (m *TLMessagesSentEncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesSentEncryptedFile.Marshal(b, m, deterministic) } -func (dst *TLAccountPassword) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountPassword.Merge(dst, src) +func (dst *TLMessagesSentEncryptedFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesSentEncryptedFile.Merge(dst, src) } -func (m *TLAccountPassword) XXX_Size() int { - return xxx_messageInfo_TLAccountPassword.Size(m) +func (m *TLMessagesSentEncryptedFile) XXX_Size() int { + return xxx_messageInfo_TLMessagesSentEncryptedFile.Size(m) } -func (m *TLAccountPassword) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountPassword.DiscardUnknown(m) +func (m *TLMessagesSentEncryptedFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesSentEncryptedFile.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountPassword proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesSentEncryptedFile proto.InternalMessageInfo -func (m *TLAccountPassword) GetData2() *Account_Password_Data { +func (m *TLMessagesSentEncryptedFile) GetData2() *Messages_SentEncryptedMessage_Data { if m != nil { return m.Data2 } @@ -9025,126 +8395,142 @@ func (m *TLAccountPassword) GetData2() *Account_Password_Data { } // ///////////////////////////////////////////////////////////////////////////// -// KeyboardButtonRow <-- -// + TL_keyboardButtonRow +// messages_StickerSet <-- +// + TL_messages_stickerSet // -type KeyboardButtonRow_Data struct { - Buttons []*KeyboardButton `protobuf:"bytes,1,rep,name=buttons,proto3" json:"buttons,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_StickerSet_Data struct { + Set *StickerSet `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"` + Packs []*StickerPack `protobuf:"bytes,2,rep,name=packs,proto3" json:"packs,omitempty"` + Documents []*Document `protobuf:"bytes,3,rep,name=documents,proto3" json:"documents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *KeyboardButtonRow_Data) Reset() { *m = KeyboardButtonRow_Data{} } -func (m *KeyboardButtonRow_Data) String() string { return proto.CompactTextString(m) } -func (*KeyboardButtonRow_Data) ProtoMessage() {} -func (*KeyboardButtonRow_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{191} +func (m *Messages_StickerSet_Data) Reset() { *m = Messages_StickerSet_Data{} } +func (m *Messages_StickerSet_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_StickerSet_Data) ProtoMessage() {} +func (*Messages_StickerSet_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{171} } -func (m *KeyboardButtonRow_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyboardButtonRow_Data.Unmarshal(m, b) +func (m *Messages_StickerSet_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_StickerSet_Data.Unmarshal(m, b) } -func (m *KeyboardButtonRow_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyboardButtonRow_Data.Marshal(b, m, deterministic) +func (m *Messages_StickerSet_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_StickerSet_Data.Marshal(b, m, deterministic) } -func (dst *KeyboardButtonRow_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyboardButtonRow_Data.Merge(dst, src) +func (dst *Messages_StickerSet_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_StickerSet_Data.Merge(dst, src) } -func (m *KeyboardButtonRow_Data) XXX_Size() int { - return xxx_messageInfo_KeyboardButtonRow_Data.Size(m) +func (m *Messages_StickerSet_Data) XXX_Size() int { + return xxx_messageInfo_Messages_StickerSet_Data.Size(m) } -func (m *KeyboardButtonRow_Data) XXX_DiscardUnknown() { - xxx_messageInfo_KeyboardButtonRow_Data.DiscardUnknown(m) +func (m *Messages_StickerSet_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_StickerSet_Data.DiscardUnknown(m) } -var xxx_messageInfo_KeyboardButtonRow_Data proto.InternalMessageInfo +var xxx_messageInfo_Messages_StickerSet_Data proto.InternalMessageInfo -func (m *KeyboardButtonRow_Data) GetButtons() []*KeyboardButton { +func (m *Messages_StickerSet_Data) GetSet() *StickerSet { if m != nil { - return m.Buttons + return m.Set } return nil } -type KeyboardButtonRow struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *KeyboardButtonRow_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Messages_StickerSet_Data) GetPacks() []*StickerPack { + if m != nil { + return m.Packs + } + return nil } -func (m *KeyboardButtonRow) Reset() { *m = KeyboardButtonRow{} } -func (m *KeyboardButtonRow) String() string { return proto.CompactTextString(m) } -func (*KeyboardButtonRow) ProtoMessage() {} -func (*KeyboardButtonRow) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{192} +func (m *Messages_StickerSet_Data) GetDocuments() []*Document { + if m != nil { + return m.Documents + } + return nil } -func (m *KeyboardButtonRow) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyboardButtonRow.Unmarshal(m, b) + +type Messages_StickerSet struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_StickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *KeyboardButtonRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyboardButtonRow.Marshal(b, m, deterministic) + +func (m *Messages_StickerSet) Reset() { *m = Messages_StickerSet{} } +func (m *Messages_StickerSet) String() string { return proto.CompactTextString(m) } +func (*Messages_StickerSet) ProtoMessage() {} +func (*Messages_StickerSet) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{172} } -func (dst *KeyboardButtonRow) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyboardButtonRow.Merge(dst, src) +func (m *Messages_StickerSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_StickerSet.Unmarshal(m, b) } -func (m *KeyboardButtonRow) XXX_Size() int { - return xxx_messageInfo_KeyboardButtonRow.Size(m) +func (m *Messages_StickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_StickerSet.Marshal(b, m, deterministic) } -func (m *KeyboardButtonRow) XXX_DiscardUnknown() { - xxx_messageInfo_KeyboardButtonRow.DiscardUnknown(m) +func (dst *Messages_StickerSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_StickerSet.Merge(dst, src) +} +func (m *Messages_StickerSet) XXX_Size() int { + return xxx_messageInfo_Messages_StickerSet.Size(m) +} +func (m *Messages_StickerSet) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_StickerSet.DiscardUnknown(m) } -var xxx_messageInfo_KeyboardButtonRow proto.InternalMessageInfo +var xxx_messageInfo_Messages_StickerSet proto.InternalMessageInfo -func (m *KeyboardButtonRow) GetConstructor() TLConstructor { +func (m *Messages_StickerSet) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *KeyboardButtonRow) GetData2() *KeyboardButtonRow_Data { +func (m *Messages_StickerSet) GetData2() *Messages_StickerSet_Data { if m != nil { return m.Data2 } return nil } -// keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; -type TLKeyboardButtonRow struct { - Data2 *KeyboardButtonRow_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; +type TLMessagesStickerSet struct { + Data2 *Messages_StickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLKeyboardButtonRow) Reset() { *m = TLKeyboardButtonRow{} } -func (m *TLKeyboardButtonRow) String() string { return proto.CompactTextString(m) } -func (*TLKeyboardButtonRow) ProtoMessage() {} -func (*TLKeyboardButtonRow) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{193} +func (m *TLMessagesStickerSet) Reset() { *m = TLMessagesStickerSet{} } +func (m *TLMessagesStickerSet) String() string { return proto.CompactTextString(m) } +func (*TLMessagesStickerSet) ProtoMessage() {} +func (*TLMessagesStickerSet) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{173} } -func (m *TLKeyboardButtonRow) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLKeyboardButtonRow.Unmarshal(m, b) +func (m *TLMessagesStickerSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesStickerSet.Unmarshal(m, b) } -func (m *TLKeyboardButtonRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLKeyboardButtonRow.Marshal(b, m, deterministic) +func (m *TLMessagesStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesStickerSet.Marshal(b, m, deterministic) } -func (dst *TLKeyboardButtonRow) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLKeyboardButtonRow.Merge(dst, src) +func (dst *TLMessagesStickerSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesStickerSet.Merge(dst, src) } -func (m *TLKeyboardButtonRow) XXX_Size() int { - return xxx_messageInfo_TLKeyboardButtonRow.Size(m) +func (m *TLMessagesStickerSet) XXX_Size() int { + return xxx_messageInfo_TLMessagesStickerSet.Size(m) } -func (m *TLKeyboardButtonRow) XXX_DiscardUnknown() { - xxx_messageInfo_TLKeyboardButtonRow.DiscardUnknown(m) +func (m *TLMessagesStickerSet) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesStickerSet.DiscardUnknown(m) } -var xxx_messageInfo_TLKeyboardButtonRow proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesStickerSet proto.InternalMessageInfo -func (m *TLKeyboardButtonRow) GetData2() *KeyboardButtonRow_Data { +func (m *TLMessagesStickerSet) GetData2() *Messages_StickerSet_Data { if m != nil { return m.Data2 } @@ -9152,198 +8538,214 @@ func (m *TLKeyboardButtonRow) GetData2() *KeyboardButtonRow_Data { } // ///////////////////////////////////////////////////////////////////////////// -// payments_PaymentReceipt <-- -// + TL_payments_paymentReceipt +// help_AppUpdate <-- +// + TL_help_appUpdate +// + TL_help_noAppUpdate // -type Payments_PaymentReceipt_Data struct { - Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` - BotId int32 `protobuf:"varint,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"` - Invoice *Invoice `protobuf:"bytes,3,opt,name=invoice,proto3" json:"invoice,omitempty"` - ProviderId int32 `protobuf:"varint,4,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` - Info *PaymentRequestedInfo `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"` - Shipping *ShippingOption `protobuf:"bytes,6,opt,name=shipping,proto3" json:"shipping,omitempty"` - Currency string `protobuf:"bytes,7,opt,name=currency,proto3" json:"currency,omitempty"` - TotalAmount int64 `protobuf:"varint,8,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` - CredentialsTitle string `protobuf:"bytes,9,opt,name=credentials_title,json=credentialsTitle,proto3" json:"credentials_title,omitempty"` - Users []*User `protobuf:"bytes,10,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_AppUpdate_Data struct { + Popup bool `protobuf:"varint,1,opt,name=popup,proto3" json:"popup,omitempty"` + Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,5,rep,name=entities,proto3" json:"entities,omitempty"` + Document *Document `protobuf:"bytes,6,opt,name=document,proto3" json:"document,omitempty"` + Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Payments_PaymentReceipt_Data) Reset() { *m = Payments_PaymentReceipt_Data{} } -func (m *Payments_PaymentReceipt_Data) String() string { return proto.CompactTextString(m) } -func (*Payments_PaymentReceipt_Data) ProtoMessage() {} -func (*Payments_PaymentReceipt_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{194} +func (m *Help_AppUpdate_Data) Reset() { *m = Help_AppUpdate_Data{} } +func (m *Help_AppUpdate_Data) String() string { return proto.CompactTextString(m) } +func (*Help_AppUpdate_Data) ProtoMessage() {} +func (*Help_AppUpdate_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{174} } -func (m *Payments_PaymentReceipt_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_PaymentReceipt_Data.Unmarshal(m, b) +func (m *Help_AppUpdate_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_AppUpdate_Data.Unmarshal(m, b) } -func (m *Payments_PaymentReceipt_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_PaymentReceipt_Data.Marshal(b, m, deterministic) +func (m *Help_AppUpdate_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_AppUpdate_Data.Marshal(b, m, deterministic) } -func (dst *Payments_PaymentReceipt_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_PaymentReceipt_Data.Merge(dst, src) +func (dst *Help_AppUpdate_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_AppUpdate_Data.Merge(dst, src) } -func (m *Payments_PaymentReceipt_Data) XXX_Size() int { - return xxx_messageInfo_Payments_PaymentReceipt_Data.Size(m) +func (m *Help_AppUpdate_Data) XXX_Size() int { + return xxx_messageInfo_Help_AppUpdate_Data.Size(m) } -func (m *Payments_PaymentReceipt_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_PaymentReceipt_Data.DiscardUnknown(m) +func (m *Help_AppUpdate_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_AppUpdate_Data.DiscardUnknown(m) } -var xxx_messageInfo_Payments_PaymentReceipt_Data proto.InternalMessageInfo +var xxx_messageInfo_Help_AppUpdate_Data proto.InternalMessageInfo -func (m *Payments_PaymentReceipt_Data) GetDate() int32 { +func (m *Help_AppUpdate_Data) GetPopup() bool { if m != nil { - return m.Date + return m.Popup } - return 0 + return false } -func (m *Payments_PaymentReceipt_Data) GetBotId() int32 { +func (m *Help_AppUpdate_Data) GetId() int32 { if m != nil { - return m.BotId + return m.Id } return 0 } -func (m *Payments_PaymentReceipt_Data) GetInvoice() *Invoice { +func (m *Help_AppUpdate_Data) GetVersion() string { if m != nil { - return m.Invoice + return m.Version } - return nil + return "" } -func (m *Payments_PaymentReceipt_Data) GetProviderId() int32 { +func (m *Help_AppUpdate_Data) GetText() string { if m != nil { - return m.ProviderId + return m.Text } - return 0 + return "" } -func (m *Payments_PaymentReceipt_Data) GetInfo() *PaymentRequestedInfo { +func (m *Help_AppUpdate_Data) GetEntities() []*MessageEntity { if m != nil { - return m.Info + return m.Entities } return nil } -func (m *Payments_PaymentReceipt_Data) GetShipping() *ShippingOption { +func (m *Help_AppUpdate_Data) GetDocument() *Document { if m != nil { - return m.Shipping + return m.Document } return nil } -func (m *Payments_PaymentReceipt_Data) GetCurrency() string { - if m != nil { - return m.Currency - } - return "" -} - -func (m *Payments_PaymentReceipt_Data) GetTotalAmount() int64 { - if m != nil { - return m.TotalAmount - } - return 0 -} - -func (m *Payments_PaymentReceipt_Data) GetCredentialsTitle() string { +func (m *Help_AppUpdate_Data) GetUrl() string { if m != nil { - return m.CredentialsTitle + return m.Url } return "" } -func (m *Payments_PaymentReceipt_Data) GetUsers() []*User { - if m != nil { - return m.Users - } - return nil -} - -type Payments_PaymentReceipt struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Payments_PaymentReceipt_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_AppUpdate struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Help_AppUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Payments_PaymentReceipt) Reset() { *m = Payments_PaymentReceipt{} } -func (m *Payments_PaymentReceipt) String() string { return proto.CompactTextString(m) } -func (*Payments_PaymentReceipt) ProtoMessage() {} -func (*Payments_PaymentReceipt) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{195} +func (m *Help_AppUpdate) Reset() { *m = Help_AppUpdate{} } +func (m *Help_AppUpdate) String() string { return proto.CompactTextString(m) } +func (*Help_AppUpdate) ProtoMessage() {} +func (*Help_AppUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{175} } -func (m *Payments_PaymentReceipt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_PaymentReceipt.Unmarshal(m, b) +func (m *Help_AppUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_AppUpdate.Unmarshal(m, b) } -func (m *Payments_PaymentReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_PaymentReceipt.Marshal(b, m, deterministic) +func (m *Help_AppUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_AppUpdate.Marshal(b, m, deterministic) } -func (dst *Payments_PaymentReceipt) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_PaymentReceipt.Merge(dst, src) +func (dst *Help_AppUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_AppUpdate.Merge(dst, src) } -func (m *Payments_PaymentReceipt) XXX_Size() int { - return xxx_messageInfo_Payments_PaymentReceipt.Size(m) +func (m *Help_AppUpdate) XXX_Size() int { + return xxx_messageInfo_Help_AppUpdate.Size(m) } -func (m *Payments_PaymentReceipt) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_PaymentReceipt.DiscardUnknown(m) +func (m *Help_AppUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_Help_AppUpdate.DiscardUnknown(m) } -var xxx_messageInfo_Payments_PaymentReceipt proto.InternalMessageInfo +var xxx_messageInfo_Help_AppUpdate proto.InternalMessageInfo -func (m *Payments_PaymentReceipt) GetConstructor() TLConstructor { +func (m *Help_AppUpdate) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Payments_PaymentReceipt) GetData2() *Payments_PaymentReceipt_Data { +func (m *Help_AppUpdate) GetData2() *Help_AppUpdate_Data { if m != nil { return m.Data2 } return nil } -// payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; -type TLPaymentsPaymentReceipt struct { - Data2 *Payments_PaymentReceipt_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.appUpdate#1da7158f flags:# popup:flags.0?true id:int version:string text:string entities:Vector document:flags.1?Document url:flags.2?string = help.AppUpdate; +type TLHelpAppUpdate struct { + Data2 *Help_AppUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPaymentsPaymentReceipt) Reset() { *m = TLPaymentsPaymentReceipt{} } -func (m *TLPaymentsPaymentReceipt) String() string { return proto.CompactTextString(m) } -func (*TLPaymentsPaymentReceipt) ProtoMessage() {} -func (*TLPaymentsPaymentReceipt) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{196} -} -func (m *TLPaymentsPaymentReceipt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPaymentsPaymentReceipt.Unmarshal(m, b) +func (m *TLHelpAppUpdate) Reset() { *m = TLHelpAppUpdate{} } +func (m *TLHelpAppUpdate) String() string { return proto.CompactTextString(m) } +func (*TLHelpAppUpdate) ProtoMessage() {} +func (*TLHelpAppUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{176} } -func (m *TLPaymentsPaymentReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPaymentsPaymentReceipt.Marshal(b, m, deterministic) +func (m *TLHelpAppUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpAppUpdate.Unmarshal(m, b) } -func (dst *TLPaymentsPaymentReceipt) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPaymentsPaymentReceipt.Merge(dst, src) +func (m *TLHelpAppUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpAppUpdate.Marshal(b, m, deterministic) } -func (m *TLPaymentsPaymentReceipt) XXX_Size() int { - return xxx_messageInfo_TLPaymentsPaymentReceipt.Size(m) +func (dst *TLHelpAppUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpAppUpdate.Merge(dst, src) } -func (m *TLPaymentsPaymentReceipt) XXX_DiscardUnknown() { - xxx_messageInfo_TLPaymentsPaymentReceipt.DiscardUnknown(m) +func (m *TLHelpAppUpdate) XXX_Size() int { + return xxx_messageInfo_TLHelpAppUpdate.Size(m) +} +func (m *TLHelpAppUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpAppUpdate.DiscardUnknown(m) } -var xxx_messageInfo_TLPaymentsPaymentReceipt proto.InternalMessageInfo +var xxx_messageInfo_TLHelpAppUpdate proto.InternalMessageInfo -func (m *TLPaymentsPaymentReceipt) GetData2() *Payments_PaymentReceipt_Data { +func (m *TLHelpAppUpdate) GetData2() *Help_AppUpdate_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// help.noAppUpdate#c45a6536 = help.AppUpdate; +type TLHelpNoAppUpdate struct { + Data2 *Help_AppUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLHelpNoAppUpdate) Reset() { *m = TLHelpNoAppUpdate{} } +func (m *TLHelpNoAppUpdate) String() string { return proto.CompactTextString(m) } +func (*TLHelpNoAppUpdate) ProtoMessage() {} +func (*TLHelpNoAppUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{177} +} +func (m *TLHelpNoAppUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpNoAppUpdate.Unmarshal(m, b) +} +func (m *TLHelpNoAppUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpNoAppUpdate.Marshal(b, m, deterministic) +} +func (dst *TLHelpNoAppUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpNoAppUpdate.Merge(dst, src) +} +func (m *TLHelpNoAppUpdate) XXX_Size() int { + return xxx_messageInfo_TLHelpNoAppUpdate.Size(m) +} +func (m *TLHelpNoAppUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpNoAppUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_TLHelpNoAppUpdate proto.InternalMessageInfo + +func (m *TLHelpNoAppUpdate) GetData2() *Help_AppUpdate_Data { if m != nil { return m.Data2 } @@ -9351,134 +8753,142 @@ func (m *TLPaymentsPaymentReceipt) GetData2() *Payments_PaymentReceipt_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ContactBlocked <-- -// + TL_contactBlocked +// HighScore <-- +// + TL_highScore // -type ContactBlocked_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` +type HighScore_Data struct { + Pos int32 `protobuf:"varint,1,opt,name=pos,proto3" json:"pos,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Score int32 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ContactBlocked_Data) Reset() { *m = ContactBlocked_Data{} } -func (m *ContactBlocked_Data) String() string { return proto.CompactTextString(m) } -func (*ContactBlocked_Data) ProtoMessage() {} -func (*ContactBlocked_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{197} +func (m *HighScore_Data) Reset() { *m = HighScore_Data{} } +func (m *HighScore_Data) String() string { return proto.CompactTextString(m) } +func (*HighScore_Data) ProtoMessage() {} +func (*HighScore_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{178} } -func (m *ContactBlocked_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactBlocked_Data.Unmarshal(m, b) +func (m *HighScore_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HighScore_Data.Unmarshal(m, b) } -func (m *ContactBlocked_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactBlocked_Data.Marshal(b, m, deterministic) +func (m *HighScore_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HighScore_Data.Marshal(b, m, deterministic) } -func (dst *ContactBlocked_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactBlocked_Data.Merge(dst, src) +func (dst *HighScore_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_HighScore_Data.Merge(dst, src) } -func (m *ContactBlocked_Data) XXX_Size() int { - return xxx_messageInfo_ContactBlocked_Data.Size(m) +func (m *HighScore_Data) XXX_Size() int { + return xxx_messageInfo_HighScore_Data.Size(m) } -func (m *ContactBlocked_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ContactBlocked_Data.DiscardUnknown(m) +func (m *HighScore_Data) XXX_DiscardUnknown() { + xxx_messageInfo_HighScore_Data.DiscardUnknown(m) } -var xxx_messageInfo_ContactBlocked_Data proto.InternalMessageInfo +var xxx_messageInfo_HighScore_Data proto.InternalMessageInfo -func (m *ContactBlocked_Data) GetUserId() int32 { +func (m *HighScore_Data) GetPos() int32 { + if m != nil { + return m.Pos + } + return 0 +} + +func (m *HighScore_Data) GetUserId() int32 { if m != nil { return m.UserId } return 0 } -func (m *ContactBlocked_Data) GetDate() int32 { +func (m *HighScore_Data) GetScore() int32 { if m != nil { - return m.Date + return m.Score } return 0 } -type ContactBlocked struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ContactBlocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type HighScore struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *HighScore_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ContactBlocked) Reset() { *m = ContactBlocked{} } -func (m *ContactBlocked) String() string { return proto.CompactTextString(m) } -func (*ContactBlocked) ProtoMessage() {} -func (*ContactBlocked) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{198} +func (m *HighScore) Reset() { *m = HighScore{} } +func (m *HighScore) String() string { return proto.CompactTextString(m) } +func (*HighScore) ProtoMessage() {} +func (*HighScore) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{179} } -func (m *ContactBlocked) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactBlocked.Unmarshal(m, b) +func (m *HighScore) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HighScore.Unmarshal(m, b) } -func (m *ContactBlocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactBlocked.Marshal(b, m, deterministic) +func (m *HighScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HighScore.Marshal(b, m, deterministic) } -func (dst *ContactBlocked) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactBlocked.Merge(dst, src) +func (dst *HighScore) XXX_Merge(src proto.Message) { + xxx_messageInfo_HighScore.Merge(dst, src) } -func (m *ContactBlocked) XXX_Size() int { - return xxx_messageInfo_ContactBlocked.Size(m) +func (m *HighScore) XXX_Size() int { + return xxx_messageInfo_HighScore.Size(m) } -func (m *ContactBlocked) XXX_DiscardUnknown() { - xxx_messageInfo_ContactBlocked.DiscardUnknown(m) +func (m *HighScore) XXX_DiscardUnknown() { + xxx_messageInfo_HighScore.DiscardUnknown(m) } -var xxx_messageInfo_ContactBlocked proto.InternalMessageInfo +var xxx_messageInfo_HighScore proto.InternalMessageInfo -func (m *ContactBlocked) GetConstructor() TLConstructor { +func (m *HighScore) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ContactBlocked) GetData2() *ContactBlocked_Data { +func (m *HighScore) GetData2() *HighScore_Data { if m != nil { return m.Data2 } return nil } -// contactBlocked#561bc879 user_id:int date:int = ContactBlocked; -type TLContactBlocked struct { - Data2 *ContactBlocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// highScore#58fffcd0 pos:int user_id:int score:int = HighScore; +type TLHighScore struct { + Data2 *HighScore_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactBlocked) Reset() { *m = TLContactBlocked{} } -func (m *TLContactBlocked) String() string { return proto.CompactTextString(m) } -func (*TLContactBlocked) ProtoMessage() {} -func (*TLContactBlocked) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{199} +func (m *TLHighScore) Reset() { *m = TLHighScore{} } +func (m *TLHighScore) String() string { return proto.CompactTextString(m) } +func (*TLHighScore) ProtoMessage() {} +func (*TLHighScore) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{180} } -func (m *TLContactBlocked) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactBlocked.Unmarshal(m, b) +func (m *TLHighScore) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHighScore.Unmarshal(m, b) } -func (m *TLContactBlocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactBlocked.Marshal(b, m, deterministic) +func (m *TLHighScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHighScore.Marshal(b, m, deterministic) } -func (dst *TLContactBlocked) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactBlocked.Merge(dst, src) +func (dst *TLHighScore) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHighScore.Merge(dst, src) } -func (m *TLContactBlocked) XXX_Size() int { - return xxx_messageInfo_TLContactBlocked.Size(m) +func (m *TLHighScore) XXX_Size() int { + return xxx_messageInfo_TLHighScore.Size(m) } -func (m *TLContactBlocked) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactBlocked.DiscardUnknown(m) +func (m *TLHighScore) XXX_DiscardUnknown() { + xxx_messageInfo_TLHighScore.DiscardUnknown(m) } -var xxx_messageInfo_TLContactBlocked proto.InternalMessageInfo +var xxx_messageInfo_TLHighScore proto.InternalMessageInfo -func (m *TLContactBlocked) GetData2() *ContactBlocked_Data { +func (m *TLHighScore) GetData2() *HighScore_Data { if m != nil { return m.Data2 } @@ -9486,198 +8896,158 @@ func (m *TLContactBlocked) GetData2() *ContactBlocked_Data { } // ///////////////////////////////////////////////////////////////////////////// -// StickerSet <-- -// + TL_stickerSet +// updates_State <-- +// + TL_updates_state // -type StickerSet_Data struct { - Archived bool `protobuf:"varint,1,opt,name=archived,proto3" json:"archived,omitempty"` - Official bool `protobuf:"varint,2,opt,name=official,proto3" json:"official,omitempty"` - Masks bool `protobuf:"varint,3,opt,name=masks,proto3" json:"masks,omitempty"` - InstalledDate int32 `protobuf:"varint,4,opt,name=installed_date,json=installedDate,proto3" json:"installed_date,omitempty"` - Id int64 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,6,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` - ShortName string `protobuf:"bytes,8,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` - Count int32 `protobuf:"varint,9,opt,name=count,proto3" json:"count,omitempty"` - Hash int32 `protobuf:"varint,10,opt,name=hash,proto3" json:"hash,omitempty"` +type Updates_State_Data struct { + Pts int32 `protobuf:"varint,1,opt,name=pts,proto3" json:"pts,omitempty"` + Qts int32 `protobuf:"varint,2,opt,name=qts,proto3" json:"qts,omitempty"` + Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` + Seq int32 `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"` + UnreadCount int32 `protobuf:"varint,5,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *StickerSet_Data) Reset() { *m = StickerSet_Data{} } -func (m *StickerSet_Data) String() string { return proto.CompactTextString(m) } -func (*StickerSet_Data) ProtoMessage() {} -func (*StickerSet_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{200} -} -func (m *StickerSet_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StickerSet_Data.Unmarshal(m, b) -} -func (m *StickerSet_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StickerSet_Data.Marshal(b, m, deterministic) +func (m *Updates_State_Data) Reset() { *m = Updates_State_Data{} } +func (m *Updates_State_Data) String() string { return proto.CompactTextString(m) } +func (*Updates_State_Data) ProtoMessage() {} +func (*Updates_State_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{181} } -func (dst *StickerSet_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_StickerSet_Data.Merge(dst, src) +func (m *Updates_State_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Updates_State_Data.Unmarshal(m, b) } -func (m *StickerSet_Data) XXX_Size() int { - return xxx_messageInfo_StickerSet_Data.Size(m) +func (m *Updates_State_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Updates_State_Data.Marshal(b, m, deterministic) } -func (m *StickerSet_Data) XXX_DiscardUnknown() { - xxx_messageInfo_StickerSet_Data.DiscardUnknown(m) +func (dst *Updates_State_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Updates_State_Data.Merge(dst, src) } - -var xxx_messageInfo_StickerSet_Data proto.InternalMessageInfo - -func (m *StickerSet_Data) GetArchived() bool { - if m != nil { - return m.Archived - } - return false +func (m *Updates_State_Data) XXX_Size() int { + return xxx_messageInfo_Updates_State_Data.Size(m) } - -func (m *StickerSet_Data) GetOfficial() bool { - if m != nil { - return m.Official - } - return false +func (m *Updates_State_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Updates_State_Data.DiscardUnknown(m) } -func (m *StickerSet_Data) GetMasks() bool { - if m != nil { - return m.Masks - } - return false -} +var xxx_messageInfo_Updates_State_Data proto.InternalMessageInfo -func (m *StickerSet_Data) GetInstalledDate() int32 { +func (m *Updates_State_Data) GetPts() int32 { if m != nil { - return m.InstalledDate + return m.Pts } return 0 } -func (m *StickerSet_Data) GetId() int64 { +func (m *Updates_State_Data) GetQts() int32 { if m != nil { - return m.Id + return m.Qts } return 0 } -func (m *StickerSet_Data) GetAccessHash() int64 { +func (m *Updates_State_Data) GetDate() int32 { if m != nil { - return m.AccessHash + return m.Date } return 0 } -func (m *StickerSet_Data) GetTitle() string { - if m != nil { - return m.Title - } - return "" -} - -func (m *StickerSet_Data) GetShortName() string { - if m != nil { - return m.ShortName - } - return "" -} - -func (m *StickerSet_Data) GetCount() int32 { +func (m *Updates_State_Data) GetSeq() int32 { if m != nil { - return m.Count + return m.Seq } return 0 } -func (m *StickerSet_Data) GetHash() int32 { +func (m *Updates_State_Data) GetUnreadCount() int32 { if m != nil { - return m.Hash + return m.UnreadCount } return 0 } -type StickerSet struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *StickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Updates_State struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Updates_State_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StickerSet) Reset() { *m = StickerSet{} } -func (m *StickerSet) String() string { return proto.CompactTextString(m) } -func (*StickerSet) ProtoMessage() {} -func (*StickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{201} +func (m *Updates_State) Reset() { *m = Updates_State{} } +func (m *Updates_State) String() string { return proto.CompactTextString(m) } +func (*Updates_State) ProtoMessage() {} +func (*Updates_State) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{182} } -func (m *StickerSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StickerSet.Unmarshal(m, b) +func (m *Updates_State) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Updates_State.Unmarshal(m, b) } -func (m *StickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StickerSet.Marshal(b, m, deterministic) +func (m *Updates_State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Updates_State.Marshal(b, m, deterministic) } -func (dst *StickerSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_StickerSet.Merge(dst, src) +func (dst *Updates_State) XXX_Merge(src proto.Message) { + xxx_messageInfo_Updates_State.Merge(dst, src) } -func (m *StickerSet) XXX_Size() int { - return xxx_messageInfo_StickerSet.Size(m) +func (m *Updates_State) XXX_Size() int { + return xxx_messageInfo_Updates_State.Size(m) } -func (m *StickerSet) XXX_DiscardUnknown() { - xxx_messageInfo_StickerSet.DiscardUnknown(m) +func (m *Updates_State) XXX_DiscardUnknown() { + xxx_messageInfo_Updates_State.DiscardUnknown(m) } -var xxx_messageInfo_StickerSet proto.InternalMessageInfo +var xxx_messageInfo_Updates_State proto.InternalMessageInfo -func (m *StickerSet) GetConstructor() TLConstructor { +func (m *Updates_State) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *StickerSet) GetData2() *StickerSet_Data { +func (m *Updates_State) GetData2() *Updates_State_Data { if m != nil { return m.Data2 } return nil } -// stickerSet#5585a139 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet; -type TLStickerSet struct { - Data2 *StickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; +type TLUpdatesState struct { + Data2 *Updates_State_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStickerSet) Reset() { *m = TLStickerSet{} } -func (m *TLStickerSet) String() string { return proto.CompactTextString(m) } -func (*TLStickerSet) ProtoMessage() {} -func (*TLStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{202} +func (m *TLUpdatesState) Reset() { *m = TLUpdatesState{} } +func (m *TLUpdatesState) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesState) ProtoMessage() {} +func (*TLUpdatesState) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{183} } -func (m *TLStickerSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStickerSet.Unmarshal(m, b) +func (m *TLUpdatesState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesState.Unmarshal(m, b) } -func (m *TLStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStickerSet.Marshal(b, m, deterministic) +func (m *TLUpdatesState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesState.Marshal(b, m, deterministic) } -func (dst *TLStickerSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStickerSet.Merge(dst, src) +func (dst *TLUpdatesState) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesState.Merge(dst, src) } -func (m *TLStickerSet) XXX_Size() int { - return xxx_messageInfo_TLStickerSet.Size(m) +func (m *TLUpdatesState) XXX_Size() int { + return xxx_messageInfo_TLUpdatesState.Size(m) } -func (m *TLStickerSet) XXX_DiscardUnknown() { - xxx_messageInfo_TLStickerSet.DiscardUnknown(m) +func (m *TLUpdatesState) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesState.DiscardUnknown(m) } -var xxx_messageInfo_TLStickerSet proto.InternalMessageInfo +var xxx_messageInfo_TLUpdatesState proto.InternalMessageInfo -func (m *TLStickerSet) GetData2() *StickerSet_Data { +func (m *TLUpdatesState) GetData2() *Updates_State_Data { if m != nil { return m.Data2 } @@ -9685,456 +9055,382 @@ func (m *TLStickerSet) GetData2() *StickerSet_Data { } // ///////////////////////////////////////////////////////////////////////////// -// contacts_Found <-- -// + TL_contacts_found +// WebPage <-- +// + TL_webPageEmpty +// + TL_webPagePending +// + TL_webPage +// + TL_webPageNotModified // -type Contacts_Found_Data struct { - MyResults []*Peer `protobuf:"bytes,1,rep,name=my_results,json=myResults,proto3" json:"my_results,omitempty"` - Results []*Peer `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` - Chats []*Chat `protobuf:"bytes,3,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type WebPage_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` + Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` + DisplayUrl string `protobuf:"bytes,4,opt,name=display_url,json=displayUrl,proto3" json:"display_url,omitempty"` + Hash int32 `protobuf:"varint,5,opt,name=hash,proto3" json:"hash,omitempty"` + Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` + SiteName string `protobuf:"bytes,7,opt,name=site_name,json=siteName,proto3" json:"site_name,omitempty"` + Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"` + Photo *Photo `protobuf:"bytes,10,opt,name=photo,proto3" json:"photo,omitempty"` + EmbedUrl string `protobuf:"bytes,11,opt,name=embed_url,json=embedUrl,proto3" json:"embed_url,omitempty"` + EmbedType string `protobuf:"bytes,12,opt,name=embed_type,json=embedType,proto3" json:"embed_type,omitempty"` + EmbedWidth int32 `protobuf:"varint,13,opt,name=embed_width,json=embedWidth,proto3" json:"embed_width,omitempty"` + EmbedHeight int32 `protobuf:"varint,14,opt,name=embed_height,json=embedHeight,proto3" json:"embed_height,omitempty"` + Duration int32 `protobuf:"varint,15,opt,name=duration,proto3" json:"duration,omitempty"` + Author string `protobuf:"bytes,16,opt,name=author,proto3" json:"author,omitempty"` + Document *Document `protobuf:"bytes,17,opt,name=document,proto3" json:"document,omitempty"` + CachedPage *Page `protobuf:"bytes,18,opt,name=cached_page,json=cachedPage,proto3" json:"cached_page,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_Found_Data) Reset() { *m = Contacts_Found_Data{} } -func (m *Contacts_Found_Data) String() string { return proto.CompactTextString(m) } -func (*Contacts_Found_Data) ProtoMessage() {} -func (*Contacts_Found_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{203} +func (m *WebPage_Data) Reset() { *m = WebPage_Data{} } +func (m *WebPage_Data) String() string { return proto.CompactTextString(m) } +func (*WebPage_Data) ProtoMessage() {} +func (*WebPage_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{184} } -func (m *Contacts_Found_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_Found_Data.Unmarshal(m, b) +func (m *WebPage_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WebPage_Data.Unmarshal(m, b) } -func (m *Contacts_Found_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_Found_Data.Marshal(b, m, deterministic) +func (m *WebPage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WebPage_Data.Marshal(b, m, deterministic) } -func (dst *Contacts_Found_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_Found_Data.Merge(dst, src) +func (dst *WebPage_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_WebPage_Data.Merge(dst, src) } -func (m *Contacts_Found_Data) XXX_Size() int { - return xxx_messageInfo_Contacts_Found_Data.Size(m) +func (m *WebPage_Data) XXX_Size() int { + return xxx_messageInfo_WebPage_Data.Size(m) } -func (m *Contacts_Found_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_Found_Data.DiscardUnknown(m) +func (m *WebPage_Data) XXX_DiscardUnknown() { + xxx_messageInfo_WebPage_Data.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_Found_Data proto.InternalMessageInfo +var xxx_messageInfo_WebPage_Data proto.InternalMessageInfo -func (m *Contacts_Found_Data) GetMyResults() []*Peer { +func (m *WebPage_Data) GetId() int64 { if m != nil { - return m.MyResults + return m.Id } - return nil + return 0 } -func (m *Contacts_Found_Data) GetResults() []*Peer { +func (m *WebPage_Data) GetDate() int32 { if m != nil { - return m.Results + return m.Date } - return nil + return 0 } -func (m *Contacts_Found_Data) GetChats() []*Chat { +func (m *WebPage_Data) GetUrl() string { if m != nil { - return m.Chats + return m.Url } - return nil + return "" } -func (m *Contacts_Found_Data) GetUsers() []*User { +func (m *WebPage_Data) GetDisplayUrl() string { if m != nil { - return m.Users + return m.DisplayUrl } - return nil + return "" } -type Contacts_Found struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Contacts_Found_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *WebPage_Data) GetHash() int32 { + if m != nil { + return m.Hash + } + return 0 } -func (m *Contacts_Found) Reset() { *m = Contacts_Found{} } -func (m *Contacts_Found) String() string { return proto.CompactTextString(m) } -func (*Contacts_Found) ProtoMessage() {} -func (*Contacts_Found) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{204} +func (m *WebPage_Data) GetType() string { + if m != nil { + return m.Type + } + return "" } -func (m *Contacts_Found) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_Found.Unmarshal(m, b) -} -func (m *Contacts_Found) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_Found.Marshal(b, m, deterministic) -} -func (dst *Contacts_Found) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_Found.Merge(dst, src) -} -func (m *Contacts_Found) XXX_Size() int { - return xxx_messageInfo_Contacts_Found.Size(m) -} -func (m *Contacts_Found) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_Found.DiscardUnknown(m) + +func (m *WebPage_Data) GetSiteName() string { + if m != nil { + return m.SiteName + } + return "" } -var xxx_messageInfo_Contacts_Found proto.InternalMessageInfo - -func (m *Contacts_Found) GetConstructor() TLConstructor { +func (m *WebPage_Data) GetTitle() string { if m != nil { - return m.Constructor + return m.Title } - return TLConstructor_CRC32_UNKNOWN + return "" } -func (m *Contacts_Found) GetData2() *Contacts_Found_Data { +func (m *WebPage_Data) GetDescription() string { if m != nil { - return m.Data2 + return m.Description } - return nil -} - -// contacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found; -type TLContactsFound struct { - Data2 *Contacts_Found_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLContactsFound) Reset() { *m = TLContactsFound{} } -func (m *TLContactsFound) String() string { return proto.CompactTextString(m) } -func (*TLContactsFound) ProtoMessage() {} -func (*TLContactsFound) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{205} -} -func (m *TLContactsFound) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsFound.Unmarshal(m, b) -} -func (m *TLContactsFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsFound.Marshal(b, m, deterministic) -} -func (dst *TLContactsFound) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsFound.Merge(dst, src) -} -func (m *TLContactsFound) XXX_Size() int { - return xxx_messageInfo_TLContactsFound.Size(m) -} -func (m *TLContactsFound) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsFound.DiscardUnknown(m) + return "" } -var xxx_messageInfo_TLContactsFound proto.InternalMessageInfo - -func (m *TLContactsFound) GetData2() *Contacts_Found_Data { +func (m *WebPage_Data) GetPhoto() *Photo { if m != nil { - return m.Data2 + return m.Photo } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_AffectedMessages <-- -// + TL_messages_affectedMessages -// -type Messages_AffectedMessages_Data struct { - Pts int32 `protobuf:"varint,1,opt,name=pts,proto3" json:"pts,omitempty"` - PtsCount int32 `protobuf:"varint,2,opt,name=pts_count,json=ptsCount,proto3" json:"pts_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *WebPage_Data) GetEmbedUrl() string { + if m != nil { + return m.EmbedUrl + } + return "" } -func (m *Messages_AffectedMessages_Data) Reset() { *m = Messages_AffectedMessages_Data{} } -func (m *Messages_AffectedMessages_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_AffectedMessages_Data) ProtoMessage() {} -func (*Messages_AffectedMessages_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{206} -} -func (m *Messages_AffectedMessages_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_AffectedMessages_Data.Unmarshal(m, b) -} -func (m *Messages_AffectedMessages_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_AffectedMessages_Data.Marshal(b, m, deterministic) -} -func (dst *Messages_AffectedMessages_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_AffectedMessages_Data.Merge(dst, src) -} -func (m *Messages_AffectedMessages_Data) XXX_Size() int { - return xxx_messageInfo_Messages_AffectedMessages_Data.Size(m) -} -func (m *Messages_AffectedMessages_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_AffectedMessages_Data.DiscardUnknown(m) +func (m *WebPage_Data) GetEmbedType() string { + if m != nil { + return m.EmbedType + } + return "" } -var xxx_messageInfo_Messages_AffectedMessages_Data proto.InternalMessageInfo - -func (m *Messages_AffectedMessages_Data) GetPts() int32 { +func (m *WebPage_Data) GetEmbedWidth() int32 { if m != nil { - return m.Pts + return m.EmbedWidth } return 0 } -func (m *Messages_AffectedMessages_Data) GetPtsCount() int32 { +func (m *WebPage_Data) GetEmbedHeight() int32 { if m != nil { - return m.PtsCount + return m.EmbedHeight } return 0 } -type Messages_AffectedMessages struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_AffectedMessages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *WebPage_Data) GetDuration() int32 { + if m != nil { + return m.Duration + } + return 0 } -func (m *Messages_AffectedMessages) Reset() { *m = Messages_AffectedMessages{} } -func (m *Messages_AffectedMessages) String() string { return proto.CompactTextString(m) } -func (*Messages_AffectedMessages) ProtoMessage() {} -func (*Messages_AffectedMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{207} -} -func (m *Messages_AffectedMessages) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_AffectedMessages.Unmarshal(m, b) -} -func (m *Messages_AffectedMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_AffectedMessages.Marshal(b, m, deterministic) -} -func (dst *Messages_AffectedMessages) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_AffectedMessages.Merge(dst, src) -} -func (m *Messages_AffectedMessages) XXX_Size() int { - return xxx_messageInfo_Messages_AffectedMessages.Size(m) -} -func (m *Messages_AffectedMessages) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_AffectedMessages.DiscardUnknown(m) +func (m *WebPage_Data) GetAuthor() string { + if m != nil { + return m.Author + } + return "" } -var xxx_messageInfo_Messages_AffectedMessages proto.InternalMessageInfo - -func (m *Messages_AffectedMessages) GetConstructor() TLConstructor { +func (m *WebPage_Data) GetDocument() *Document { if m != nil { - return m.Constructor + return m.Document } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *Messages_AffectedMessages) GetData2() *Messages_AffectedMessages_Data { +func (m *WebPage_Data) GetCachedPage() *Page { if m != nil { - return m.Data2 + return m.CachedPage } return nil } -// messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages; -type TLMessagesAffectedMessages struct { - Data2 *Messages_AffectedMessages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type WebPage struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesAffectedMessages) Reset() { *m = TLMessagesAffectedMessages{} } -func (m *TLMessagesAffectedMessages) String() string { return proto.CompactTextString(m) } -func (*TLMessagesAffectedMessages) ProtoMessage() {} -func (*TLMessagesAffectedMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{208} +func (m *WebPage) Reset() { *m = WebPage{} } +func (m *WebPage) String() string { return proto.CompactTextString(m) } +func (*WebPage) ProtoMessage() {} +func (*WebPage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{185} } -func (m *TLMessagesAffectedMessages) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesAffectedMessages.Unmarshal(m, b) +func (m *WebPage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WebPage.Unmarshal(m, b) } -func (m *TLMessagesAffectedMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesAffectedMessages.Marshal(b, m, deterministic) +func (m *WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WebPage.Marshal(b, m, deterministic) } -func (dst *TLMessagesAffectedMessages) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesAffectedMessages.Merge(dst, src) +func (dst *WebPage) XXX_Merge(src proto.Message) { + xxx_messageInfo_WebPage.Merge(dst, src) } -func (m *TLMessagesAffectedMessages) XXX_Size() int { - return xxx_messageInfo_TLMessagesAffectedMessages.Size(m) +func (m *WebPage) XXX_Size() int { + return xxx_messageInfo_WebPage.Size(m) } -func (m *TLMessagesAffectedMessages) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesAffectedMessages.DiscardUnknown(m) +func (m *WebPage) XXX_DiscardUnknown() { + xxx_messageInfo_WebPage.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesAffectedMessages proto.InternalMessageInfo +var xxx_messageInfo_WebPage proto.InternalMessageInfo -func (m *TLMessagesAffectedMessages) GetData2() *Messages_AffectedMessages_Data { +func (m *WebPage) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *WebPage) GetData2() *WebPage_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_StickerSetInstallResult <-- -// + TL_messages_stickerSetInstallResultSuccess -// + TL_messages_stickerSetInstallResultArchive -// -type Messages_StickerSetInstallResult_Data struct { - Sets []*StickerSetCovered `protobuf:"bytes,1,rep,name=sets,proto3" json:"sets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// webPageEmpty#eb1477e8 id:long = WebPage; +type TLWebPageEmpty struct { + Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_StickerSetInstallResult_Data) Reset() { *m = Messages_StickerSetInstallResult_Data{} } -func (m *Messages_StickerSetInstallResult_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_StickerSetInstallResult_Data) ProtoMessage() {} -func (*Messages_StickerSetInstallResult_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{209} +func (m *TLWebPageEmpty) Reset() { *m = TLWebPageEmpty{} } +func (m *TLWebPageEmpty) String() string { return proto.CompactTextString(m) } +func (*TLWebPageEmpty) ProtoMessage() {} +func (*TLWebPageEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{186} } -func (m *Messages_StickerSetInstallResult_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_StickerSetInstallResult_Data.Unmarshal(m, b) +func (m *TLWebPageEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLWebPageEmpty.Unmarshal(m, b) } -func (m *Messages_StickerSetInstallResult_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_StickerSetInstallResult_Data.Marshal(b, m, deterministic) +func (m *TLWebPageEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLWebPageEmpty.Marshal(b, m, deterministic) } -func (dst *Messages_StickerSetInstallResult_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_StickerSetInstallResult_Data.Merge(dst, src) +func (dst *TLWebPageEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLWebPageEmpty.Merge(dst, src) } -func (m *Messages_StickerSetInstallResult_Data) XXX_Size() int { - return xxx_messageInfo_Messages_StickerSetInstallResult_Data.Size(m) +func (m *TLWebPageEmpty) XXX_Size() int { + return xxx_messageInfo_TLWebPageEmpty.Size(m) } -func (m *Messages_StickerSetInstallResult_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_StickerSetInstallResult_Data.DiscardUnknown(m) +func (m *TLWebPageEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLWebPageEmpty.DiscardUnknown(m) } -var xxx_messageInfo_Messages_StickerSetInstallResult_Data proto.InternalMessageInfo +var xxx_messageInfo_TLWebPageEmpty proto.InternalMessageInfo -func (m *Messages_StickerSetInstallResult_Data) GetSets() []*StickerSetCovered { +func (m *TLWebPageEmpty) GetData2() *WebPage_Data { if m != nil { - return m.Sets + return m.Data2 } return nil } -type Messages_StickerSetInstallResult struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_StickerSetInstallResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// webPagePending#c586da1c id:long date:int = WebPage; +type TLWebPagePending struct { + Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_StickerSetInstallResult) Reset() { *m = Messages_StickerSetInstallResult{} } -func (m *Messages_StickerSetInstallResult) String() string { return proto.CompactTextString(m) } -func (*Messages_StickerSetInstallResult) ProtoMessage() {} -func (*Messages_StickerSetInstallResult) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{210} +func (m *TLWebPagePending) Reset() { *m = TLWebPagePending{} } +func (m *TLWebPagePending) String() string { return proto.CompactTextString(m) } +func (*TLWebPagePending) ProtoMessage() {} +func (*TLWebPagePending) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{187} } -func (m *Messages_StickerSetInstallResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_StickerSetInstallResult.Unmarshal(m, b) +func (m *TLWebPagePending) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLWebPagePending.Unmarshal(m, b) } -func (m *Messages_StickerSetInstallResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_StickerSetInstallResult.Marshal(b, m, deterministic) +func (m *TLWebPagePending) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLWebPagePending.Marshal(b, m, deterministic) } -func (dst *Messages_StickerSetInstallResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_StickerSetInstallResult.Merge(dst, src) +func (dst *TLWebPagePending) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLWebPagePending.Merge(dst, src) } -func (m *Messages_StickerSetInstallResult) XXX_Size() int { - return xxx_messageInfo_Messages_StickerSetInstallResult.Size(m) +func (m *TLWebPagePending) XXX_Size() int { + return xxx_messageInfo_TLWebPagePending.Size(m) } -func (m *Messages_StickerSetInstallResult) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_StickerSetInstallResult.DiscardUnknown(m) +func (m *TLWebPagePending) XXX_DiscardUnknown() { + xxx_messageInfo_TLWebPagePending.DiscardUnknown(m) } -var xxx_messageInfo_Messages_StickerSetInstallResult proto.InternalMessageInfo - -func (m *Messages_StickerSetInstallResult) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLWebPagePending proto.InternalMessageInfo -func (m *Messages_StickerSetInstallResult) GetData2() *Messages_StickerSetInstallResult_Data { +func (m *TLWebPagePending) GetData2() *WebPage_Data { if m != nil { return m.Data2 } return nil } -// messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult; -type TLMessagesStickerSetInstallResultSuccess struct { - Data2 *Messages_StickerSetInstallResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// webPage#5f07b4bc flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page = WebPage; +type TLWebPage struct { + Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesStickerSetInstallResultSuccess) Reset() { - *m = TLMessagesStickerSetInstallResultSuccess{} -} -func (m *TLMessagesStickerSetInstallResultSuccess) String() string { return proto.CompactTextString(m) } -func (*TLMessagesStickerSetInstallResultSuccess) ProtoMessage() {} -func (*TLMessagesStickerSetInstallResultSuccess) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{211} +func (m *TLWebPage) Reset() { *m = TLWebPage{} } +func (m *TLWebPage) String() string { return proto.CompactTextString(m) } +func (*TLWebPage) ProtoMessage() {} +func (*TLWebPage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{188} } -func (m *TLMessagesStickerSetInstallResultSuccess) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.Unmarshal(m, b) +func (m *TLWebPage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLWebPage.Unmarshal(m, b) } -func (m *TLMessagesStickerSetInstallResultSuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.Marshal(b, m, deterministic) +func (m *TLWebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLWebPage.Marshal(b, m, deterministic) } -func (dst *TLMessagesStickerSetInstallResultSuccess) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.Merge(dst, src) +func (dst *TLWebPage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLWebPage.Merge(dst, src) } -func (m *TLMessagesStickerSetInstallResultSuccess) XXX_Size() int { - return xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.Size(m) +func (m *TLWebPage) XXX_Size() int { + return xxx_messageInfo_TLWebPage.Size(m) } -func (m *TLMessagesStickerSetInstallResultSuccess) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.DiscardUnknown(m) +func (m *TLWebPage) XXX_DiscardUnknown() { + xxx_messageInfo_TLWebPage.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess proto.InternalMessageInfo +var xxx_messageInfo_TLWebPage proto.InternalMessageInfo -func (m *TLMessagesStickerSetInstallResultSuccess) GetData2() *Messages_StickerSetInstallResult_Data { +func (m *TLWebPage) GetData2() *WebPage_Data { if m != nil { return m.Data2 } return nil } -// messages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult; -type TLMessagesStickerSetInstallResultArchive struct { - Data2 *Messages_StickerSetInstallResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// webPageNotModified#85849473 = WebPage; +type TLWebPageNotModified struct { + Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesStickerSetInstallResultArchive) Reset() { - *m = TLMessagesStickerSetInstallResultArchive{} -} -func (m *TLMessagesStickerSetInstallResultArchive) String() string { return proto.CompactTextString(m) } -func (*TLMessagesStickerSetInstallResultArchive) ProtoMessage() {} -func (*TLMessagesStickerSetInstallResultArchive) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{212} +func (m *TLWebPageNotModified) Reset() { *m = TLWebPageNotModified{} } +func (m *TLWebPageNotModified) String() string { return proto.CompactTextString(m) } +func (*TLWebPageNotModified) ProtoMessage() {} +func (*TLWebPageNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{189} } -func (m *TLMessagesStickerSetInstallResultArchive) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.Unmarshal(m, b) +func (m *TLWebPageNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLWebPageNotModified.Unmarshal(m, b) } -func (m *TLMessagesStickerSetInstallResultArchive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.Marshal(b, m, deterministic) +func (m *TLWebPageNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLWebPageNotModified.Marshal(b, m, deterministic) } -func (dst *TLMessagesStickerSetInstallResultArchive) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.Merge(dst, src) +func (dst *TLWebPageNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLWebPageNotModified.Merge(dst, src) } -func (m *TLMessagesStickerSetInstallResultArchive) XXX_Size() int { - return xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.Size(m) +func (m *TLWebPageNotModified) XXX_Size() int { + return xxx_messageInfo_TLWebPageNotModified.Size(m) } -func (m *TLMessagesStickerSetInstallResultArchive) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.DiscardUnknown(m) +func (m *TLWebPageNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLWebPageNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesStickerSetInstallResultArchive proto.InternalMessageInfo +var xxx_messageInfo_TLWebPageNotModified proto.InternalMessageInfo -func (m *TLMessagesStickerSetInstallResultArchive) GetData2() *Messages_StickerSetInstallResult_Data { +func (m *TLWebPageNotModified) GetData2() *WebPage_Data { if m != nil { return m.Data2 } @@ -10142,182 +9438,134 @@ func (m *TLMessagesStickerSetInstallResultArchive) GetData2() *Messages_StickerS } // ///////////////////////////////////////////////////////////////////////////// -// help_DeepLinkInfo <-- -// + TL_help_deepLinkInfoEmpty -// + TL_help_deepLinkInfo +// channels_ChannelParticipant <-- +// + TL_channels_channelParticipant // -type Help_DeepLinkInfo_Data struct { - UpdateApp bool `protobuf:"varint,1,opt,name=update_app,json=updateApp,proto3" json:"update_app,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,3,rep,name=entities,proto3" json:"entities,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Channels_ChannelParticipant_Data struct { + Participant *ChannelParticipant `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` + Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_DeepLinkInfo_Data) Reset() { *m = Help_DeepLinkInfo_Data{} } -func (m *Help_DeepLinkInfo_Data) String() string { return proto.CompactTextString(m) } -func (*Help_DeepLinkInfo_Data) ProtoMessage() {} -func (*Help_DeepLinkInfo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{213} +func (m *Channels_ChannelParticipant_Data) Reset() { *m = Channels_ChannelParticipant_Data{} } +func (m *Channels_ChannelParticipant_Data) String() string { return proto.CompactTextString(m) } +func (*Channels_ChannelParticipant_Data) ProtoMessage() {} +func (*Channels_ChannelParticipant_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{190} } -func (m *Help_DeepLinkInfo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_DeepLinkInfo_Data.Unmarshal(m, b) +func (m *Channels_ChannelParticipant_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Channels_ChannelParticipant_Data.Unmarshal(m, b) } -func (m *Help_DeepLinkInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_DeepLinkInfo_Data.Marshal(b, m, deterministic) +func (m *Channels_ChannelParticipant_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Channels_ChannelParticipant_Data.Marshal(b, m, deterministic) } -func (dst *Help_DeepLinkInfo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_DeepLinkInfo_Data.Merge(dst, src) +func (dst *Channels_ChannelParticipant_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Channels_ChannelParticipant_Data.Merge(dst, src) } -func (m *Help_DeepLinkInfo_Data) XXX_Size() int { - return xxx_messageInfo_Help_DeepLinkInfo_Data.Size(m) +func (m *Channels_ChannelParticipant_Data) XXX_Size() int { + return xxx_messageInfo_Channels_ChannelParticipant_Data.Size(m) } -func (m *Help_DeepLinkInfo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_DeepLinkInfo_Data.DiscardUnknown(m) +func (m *Channels_ChannelParticipant_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Channels_ChannelParticipant_Data.DiscardUnknown(m) } -var xxx_messageInfo_Help_DeepLinkInfo_Data proto.InternalMessageInfo - -func (m *Help_DeepLinkInfo_Data) GetUpdateApp() bool { - if m != nil { - return m.UpdateApp - } - return false -} +var xxx_messageInfo_Channels_ChannelParticipant_Data proto.InternalMessageInfo -func (m *Help_DeepLinkInfo_Data) GetMessage() string { +func (m *Channels_ChannelParticipant_Data) GetParticipant() *ChannelParticipant { if m != nil { - return m.Message + return m.Participant } - return "" + return nil } -func (m *Help_DeepLinkInfo_Data) GetEntities() []*MessageEntity { +func (m *Channels_ChannelParticipant_Data) GetUsers() []*User { if m != nil { - return m.Entities + return m.Users } return nil } -type Help_DeepLinkInfo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_DeepLinkInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Channels_ChannelParticipant struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Channels_ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_DeepLinkInfo) Reset() { *m = Help_DeepLinkInfo{} } -func (m *Help_DeepLinkInfo) String() string { return proto.CompactTextString(m) } -func (*Help_DeepLinkInfo) ProtoMessage() {} -func (*Help_DeepLinkInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{214} +func (m *Channels_ChannelParticipant) Reset() { *m = Channels_ChannelParticipant{} } +func (m *Channels_ChannelParticipant) String() string { return proto.CompactTextString(m) } +func (*Channels_ChannelParticipant) ProtoMessage() {} +func (*Channels_ChannelParticipant) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{191} } -func (m *Help_DeepLinkInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_DeepLinkInfo.Unmarshal(m, b) +func (m *Channels_ChannelParticipant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Channels_ChannelParticipant.Unmarshal(m, b) } -func (m *Help_DeepLinkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_DeepLinkInfo.Marshal(b, m, deterministic) +func (m *Channels_ChannelParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Channels_ChannelParticipant.Marshal(b, m, deterministic) } -func (dst *Help_DeepLinkInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_DeepLinkInfo.Merge(dst, src) +func (dst *Channels_ChannelParticipant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Channels_ChannelParticipant.Merge(dst, src) } -func (m *Help_DeepLinkInfo) XXX_Size() int { - return xxx_messageInfo_Help_DeepLinkInfo.Size(m) +func (m *Channels_ChannelParticipant) XXX_Size() int { + return xxx_messageInfo_Channels_ChannelParticipant.Size(m) } -func (m *Help_DeepLinkInfo) XXX_DiscardUnknown() { - xxx_messageInfo_Help_DeepLinkInfo.DiscardUnknown(m) +func (m *Channels_ChannelParticipant) XXX_DiscardUnknown() { + xxx_messageInfo_Channels_ChannelParticipant.DiscardUnknown(m) } -var xxx_messageInfo_Help_DeepLinkInfo proto.InternalMessageInfo +var xxx_messageInfo_Channels_ChannelParticipant proto.InternalMessageInfo -func (m *Help_DeepLinkInfo) GetConstructor() TLConstructor { +func (m *Channels_ChannelParticipant) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Help_DeepLinkInfo) GetData2() *Help_DeepLinkInfo_Data { +func (m *Channels_ChannelParticipant) GetData2() *Channels_ChannelParticipant_Data { if m != nil { return m.Data2 } return nil } -// help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo; -type TLHelpDeepLinkInfoEmpty struct { - Data2 *Help_DeepLinkInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLHelpDeepLinkInfoEmpty) Reset() { *m = TLHelpDeepLinkInfoEmpty{} } -func (m *TLHelpDeepLinkInfoEmpty) String() string { return proto.CompactTextString(m) } -func (*TLHelpDeepLinkInfoEmpty) ProtoMessage() {} -func (*TLHelpDeepLinkInfoEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{215} -} -func (m *TLHelpDeepLinkInfoEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpDeepLinkInfoEmpty.Unmarshal(m, b) -} -func (m *TLHelpDeepLinkInfoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpDeepLinkInfoEmpty.Marshal(b, m, deterministic) -} -func (dst *TLHelpDeepLinkInfoEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpDeepLinkInfoEmpty.Merge(dst, src) -} -func (m *TLHelpDeepLinkInfoEmpty) XXX_Size() int { - return xxx_messageInfo_TLHelpDeepLinkInfoEmpty.Size(m) -} -func (m *TLHelpDeepLinkInfoEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpDeepLinkInfoEmpty.DiscardUnknown(m) -} - -var xxx_messageInfo_TLHelpDeepLinkInfoEmpty proto.InternalMessageInfo - -func (m *TLHelpDeepLinkInfoEmpty) GetData2() *Help_DeepLinkInfo_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo; -type TLHelpDeepLinkInfo struct { - Data2 *Help_DeepLinkInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector = channels.ChannelParticipant; +type TLChannelsChannelParticipant struct { + Data2 *Channels_ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpDeepLinkInfo) Reset() { *m = TLHelpDeepLinkInfo{} } -func (m *TLHelpDeepLinkInfo) String() string { return proto.CompactTextString(m) } -func (*TLHelpDeepLinkInfo) ProtoMessage() {} -func (*TLHelpDeepLinkInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{216} +func (m *TLChannelsChannelParticipant) Reset() { *m = TLChannelsChannelParticipant{} } +func (m *TLChannelsChannelParticipant) String() string { return proto.CompactTextString(m) } +func (*TLChannelsChannelParticipant) ProtoMessage() {} +func (*TLChannelsChannelParticipant) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{192} } -func (m *TLHelpDeepLinkInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpDeepLinkInfo.Unmarshal(m, b) +func (m *TLChannelsChannelParticipant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelsChannelParticipant.Unmarshal(m, b) } -func (m *TLHelpDeepLinkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpDeepLinkInfo.Marshal(b, m, deterministic) +func (m *TLChannelsChannelParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelsChannelParticipant.Marshal(b, m, deterministic) } -func (dst *TLHelpDeepLinkInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpDeepLinkInfo.Merge(dst, src) +func (dst *TLChannelsChannelParticipant) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelsChannelParticipant.Merge(dst, src) } -func (m *TLHelpDeepLinkInfo) XXX_Size() int { - return xxx_messageInfo_TLHelpDeepLinkInfo.Size(m) +func (m *TLChannelsChannelParticipant) XXX_Size() int { + return xxx_messageInfo_TLChannelsChannelParticipant.Size(m) } -func (m *TLHelpDeepLinkInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpDeepLinkInfo.DiscardUnknown(m) +func (m *TLChannelsChannelParticipant) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelsChannelParticipant.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpDeepLinkInfo proto.InternalMessageInfo +var xxx_messageInfo_TLChannelsChannelParticipant proto.InternalMessageInfo -func (m *TLHelpDeepLinkInfo) GetData2() *Help_DeepLinkInfo_Data { +func (m *TLChannelsChannelParticipant) GetData2() *Channels_ChannelParticipant_Data { if m != nil { return m.Data2 } @@ -10325,740 +9573,845 @@ func (m *TLHelpDeepLinkInfo) GetData2() *Help_DeepLinkInfo_Data { } // ///////////////////////////////////////////////////////////////////////////// -// auth_CheckedPhone <-- -// + TL_auth_checkedPhone +// SendMessageAction <-- +// + TL_sendMessageTypingAction +// + TL_sendMessageCancelAction +// + TL_sendMessageRecordVideoAction +// + TL_sendMessageUploadVideoAction +// + TL_sendMessageRecordAudioAction +// + TL_sendMessageUploadAudioAction +// + TL_sendMessageUploadPhotoAction +// + TL_sendMessageUploadDocumentAction +// + TL_sendMessageGeoLocationAction +// + TL_sendMessageChooseContactAction +// + TL_sendMessageGamePlayAction +// + TL_sendMessageRecordRoundAction +// + TL_sendMessageUploadRoundAction // -type Auth_CheckedPhone_Data struct { - PhoneRegistered *Bool `protobuf:"bytes,1,opt,name=phone_registered,json=phoneRegistered,proto3" json:"phone_registered,omitempty"` +type SendMessageAction_Data struct { + Progress int32 `protobuf:"varint,1,opt,name=progress,proto3" json:"progress,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Auth_CheckedPhone_Data) Reset() { *m = Auth_CheckedPhone_Data{} } -func (m *Auth_CheckedPhone_Data) String() string { return proto.CompactTextString(m) } -func (*Auth_CheckedPhone_Data) ProtoMessage() {} -func (*Auth_CheckedPhone_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{217} +func (m *SendMessageAction_Data) Reset() { *m = SendMessageAction_Data{} } +func (m *SendMessageAction_Data) String() string { return proto.CompactTextString(m) } +func (*SendMessageAction_Data) ProtoMessage() {} +func (*SendMessageAction_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{193} } -func (m *Auth_CheckedPhone_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_CheckedPhone_Data.Unmarshal(m, b) +func (m *SendMessageAction_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SendMessageAction_Data.Unmarshal(m, b) } -func (m *Auth_CheckedPhone_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_CheckedPhone_Data.Marshal(b, m, deterministic) +func (m *SendMessageAction_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SendMessageAction_Data.Marshal(b, m, deterministic) } -func (dst *Auth_CheckedPhone_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_CheckedPhone_Data.Merge(dst, src) +func (dst *SendMessageAction_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SendMessageAction_Data.Merge(dst, src) } -func (m *Auth_CheckedPhone_Data) XXX_Size() int { - return xxx_messageInfo_Auth_CheckedPhone_Data.Size(m) +func (m *SendMessageAction_Data) XXX_Size() int { + return xxx_messageInfo_SendMessageAction_Data.Size(m) } -func (m *Auth_CheckedPhone_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_CheckedPhone_Data.DiscardUnknown(m) +func (m *SendMessageAction_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SendMessageAction_Data.DiscardUnknown(m) } -var xxx_messageInfo_Auth_CheckedPhone_Data proto.InternalMessageInfo +var xxx_messageInfo_SendMessageAction_Data proto.InternalMessageInfo -func (m *Auth_CheckedPhone_Data) GetPhoneRegistered() *Bool { +func (m *SendMessageAction_Data) GetProgress() int32 { if m != nil { - return m.PhoneRegistered + return m.Progress } - return nil + return 0 } -type Auth_CheckedPhone struct { +type SendMessageAction struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Auth_CheckedPhone_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Auth_CheckedPhone) Reset() { *m = Auth_CheckedPhone{} } -func (m *Auth_CheckedPhone) String() string { return proto.CompactTextString(m) } -func (*Auth_CheckedPhone) ProtoMessage() {} -func (*Auth_CheckedPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{218} +func (m *SendMessageAction) Reset() { *m = SendMessageAction{} } +func (m *SendMessageAction) String() string { return proto.CompactTextString(m) } +func (*SendMessageAction) ProtoMessage() {} +func (*SendMessageAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{194} } -func (m *Auth_CheckedPhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_CheckedPhone.Unmarshal(m, b) +func (m *SendMessageAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SendMessageAction.Unmarshal(m, b) } -func (m *Auth_CheckedPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_CheckedPhone.Marshal(b, m, deterministic) +func (m *SendMessageAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SendMessageAction.Marshal(b, m, deterministic) } -func (dst *Auth_CheckedPhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_CheckedPhone.Merge(dst, src) +func (dst *SendMessageAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_SendMessageAction.Merge(dst, src) } -func (m *Auth_CheckedPhone) XXX_Size() int { - return xxx_messageInfo_Auth_CheckedPhone.Size(m) +func (m *SendMessageAction) XXX_Size() int { + return xxx_messageInfo_SendMessageAction.Size(m) } -func (m *Auth_CheckedPhone) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_CheckedPhone.DiscardUnknown(m) +func (m *SendMessageAction) XXX_DiscardUnknown() { + xxx_messageInfo_SendMessageAction.DiscardUnknown(m) } -var xxx_messageInfo_Auth_CheckedPhone proto.InternalMessageInfo +var xxx_messageInfo_SendMessageAction proto.InternalMessageInfo -func (m *Auth_CheckedPhone) GetConstructor() TLConstructor { +func (m *SendMessageAction) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Auth_CheckedPhone) GetData2() *Auth_CheckedPhone_Data { +func (m *SendMessageAction) GetData2() *SendMessageAction_Data { if m != nil { return m.Data2 } return nil } -// auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone; -type TLAuthCheckedPhone struct { - Data2 *Auth_CheckedPhone_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// sendMessageTypingAction#16bf744e = SendMessageAction; +type TLSendMessageTypingAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLAuthCheckedPhone) Reset() { *m = TLAuthCheckedPhone{} } -func (m *TLAuthCheckedPhone) String() string { return proto.CompactTextString(m) } -func (*TLAuthCheckedPhone) ProtoMessage() {} -func (*TLAuthCheckedPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{219} +func (m *TLSendMessageTypingAction) Reset() { *m = TLSendMessageTypingAction{} } +func (m *TLSendMessageTypingAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageTypingAction) ProtoMessage() {} +func (*TLSendMessageTypingAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{195} } -func (m *TLAuthCheckedPhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthCheckedPhone.Unmarshal(m, b) +func (m *TLSendMessageTypingAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageTypingAction.Unmarshal(m, b) } -func (m *TLAuthCheckedPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthCheckedPhone.Marshal(b, m, deterministic) +func (m *TLSendMessageTypingAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageTypingAction.Marshal(b, m, deterministic) } -func (dst *TLAuthCheckedPhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthCheckedPhone.Merge(dst, src) +func (dst *TLSendMessageTypingAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageTypingAction.Merge(dst, src) } -func (m *TLAuthCheckedPhone) XXX_Size() int { - return xxx_messageInfo_TLAuthCheckedPhone.Size(m) +func (m *TLSendMessageTypingAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageTypingAction.Size(m) } -func (m *TLAuthCheckedPhone) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthCheckedPhone.DiscardUnknown(m) +func (m *TLSendMessageTypingAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageTypingAction.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthCheckedPhone proto.InternalMessageInfo +var xxx_messageInfo_TLSendMessageTypingAction proto.InternalMessageInfo -func (m *TLAuthCheckedPhone) GetData2() *Auth_CheckedPhone_Data { +func (m *TLSendMessageTypingAction) GetData2() *SendMessageAction_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// EncryptedChat <-- -// + TL_encryptedChatEmpty -// + TL_encryptedChatWaiting -// + TL_encryptedChatRequested -// + TL_encryptedChat -// + TL_encryptedChatDiscarded -// -type EncryptedChat_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` - AdminId int32 `protobuf:"varint,4,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"` - ParticipantId int32 `protobuf:"varint,5,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` - GA []byte `protobuf:"bytes,6,opt,name=g_a,json=gA,proto3" json:"g_a,omitempty"` - GAOrB []byte `protobuf:"bytes,7,opt,name=g_a_or_b,json=gAOrB,proto3" json:"g_a_or_b,omitempty"` - KeyFingerprint int64 `protobuf:"varint,8,opt,name=key_fingerprint,json=keyFingerprint,proto3" json:"key_fingerprint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// sendMessageCancelAction#fd5ec8f5 = SendMessageAction; +type TLSendMessageCancelAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EncryptedChat_Data) Reset() { *m = EncryptedChat_Data{} } -func (m *EncryptedChat_Data) String() string { return proto.CompactTextString(m) } -func (*EncryptedChat_Data) ProtoMessage() {} -func (*EncryptedChat_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{220} +func (m *TLSendMessageCancelAction) Reset() { *m = TLSendMessageCancelAction{} } +func (m *TLSendMessageCancelAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageCancelAction) ProtoMessage() {} +func (*TLSendMessageCancelAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{196} } -func (m *EncryptedChat_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EncryptedChat_Data.Unmarshal(m, b) +func (m *TLSendMessageCancelAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageCancelAction.Unmarshal(m, b) } -func (m *EncryptedChat_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EncryptedChat_Data.Marshal(b, m, deterministic) +func (m *TLSendMessageCancelAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageCancelAction.Marshal(b, m, deterministic) } -func (dst *EncryptedChat_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedChat_Data.Merge(dst, src) +func (dst *TLSendMessageCancelAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageCancelAction.Merge(dst, src) } -func (m *EncryptedChat_Data) XXX_Size() int { - return xxx_messageInfo_EncryptedChat_Data.Size(m) +func (m *TLSendMessageCancelAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageCancelAction.Size(m) } -func (m *EncryptedChat_Data) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedChat_Data.DiscardUnknown(m) +func (m *TLSendMessageCancelAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageCancelAction.DiscardUnknown(m) } -var xxx_messageInfo_EncryptedChat_Data proto.InternalMessageInfo +var xxx_messageInfo_TLSendMessageCancelAction proto.InternalMessageInfo -func (m *EncryptedChat_Data) GetId() int32 { +func (m *TLSendMessageCancelAction) GetData2() *SendMessageAction_Data { if m != nil { - return m.Id + return m.Data2 } - return 0 + return nil } -func (m *EncryptedChat_Data) GetAccessHash() int64 { - if m != nil { - return m.AccessHash - } - return 0 +// sendMessageRecordVideoAction#a187d66f = SendMessageAction; +type TLSendMessageRecordVideoAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EncryptedChat_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 +func (m *TLSendMessageRecordVideoAction) Reset() { *m = TLSendMessageRecordVideoAction{} } +func (m *TLSendMessageRecordVideoAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageRecordVideoAction) ProtoMessage() {} +func (*TLSendMessageRecordVideoAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{197} } - -func (m *EncryptedChat_Data) GetAdminId() int32 { - if m != nil { - return m.AdminId - } - return 0 +func (m *TLSendMessageRecordVideoAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageRecordVideoAction.Unmarshal(m, b) } - -func (m *EncryptedChat_Data) GetParticipantId() int32 { - if m != nil { - return m.ParticipantId - } - return 0 +func (m *TLSendMessageRecordVideoAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageRecordVideoAction.Marshal(b, m, deterministic) } - -func (m *EncryptedChat_Data) GetGA() []byte { - if m != nil { - return m.GA - } - return nil +func (dst *TLSendMessageRecordVideoAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageRecordVideoAction.Merge(dst, src) } - -func (m *EncryptedChat_Data) GetGAOrB() []byte { - if m != nil { - return m.GAOrB - } - return nil +func (m *TLSendMessageRecordVideoAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageRecordVideoAction.Size(m) +} +func (m *TLSendMessageRecordVideoAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageRecordVideoAction.DiscardUnknown(m) } -func (m *EncryptedChat_Data) GetKeyFingerprint() int64 { +var xxx_messageInfo_TLSendMessageRecordVideoAction proto.InternalMessageInfo + +func (m *TLSendMessageRecordVideoAction) GetData2() *SendMessageAction_Data { if m != nil { - return m.KeyFingerprint + return m.Data2 } - return 0 + return nil } -type EncryptedChat struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction; +type TLSendMessageUploadVideoAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EncryptedChat) Reset() { *m = EncryptedChat{} } -func (m *EncryptedChat) String() string { return proto.CompactTextString(m) } -func (*EncryptedChat) ProtoMessage() {} -func (*EncryptedChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{221} +func (m *TLSendMessageUploadVideoAction) Reset() { *m = TLSendMessageUploadVideoAction{} } +func (m *TLSendMessageUploadVideoAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageUploadVideoAction) ProtoMessage() {} +func (*TLSendMessageUploadVideoAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{198} } -func (m *EncryptedChat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EncryptedChat.Unmarshal(m, b) +func (m *TLSendMessageUploadVideoAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageUploadVideoAction.Unmarshal(m, b) } -func (m *EncryptedChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EncryptedChat.Marshal(b, m, deterministic) +func (m *TLSendMessageUploadVideoAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageUploadVideoAction.Marshal(b, m, deterministic) } -func (dst *EncryptedChat) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedChat.Merge(dst, src) +func (dst *TLSendMessageUploadVideoAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageUploadVideoAction.Merge(dst, src) } -func (m *EncryptedChat) XXX_Size() int { - return xxx_messageInfo_EncryptedChat.Size(m) +func (m *TLSendMessageUploadVideoAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageUploadVideoAction.Size(m) } -func (m *EncryptedChat) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedChat.DiscardUnknown(m) +func (m *TLSendMessageUploadVideoAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageUploadVideoAction.DiscardUnknown(m) } -var xxx_messageInfo_EncryptedChat proto.InternalMessageInfo - -func (m *EncryptedChat) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLSendMessageUploadVideoAction proto.InternalMessageInfo -func (m *EncryptedChat) GetData2() *EncryptedChat_Data { +func (m *TLSendMessageUploadVideoAction) GetData2() *SendMessageAction_Data { if m != nil { return m.Data2 } return nil } -// encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat; -type TLEncryptedChatEmpty struct { - Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// sendMessageRecordAudioAction#d52f73f7 = SendMessageAction; +type TLSendMessageRecordAudioAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLEncryptedChatEmpty) Reset() { *m = TLEncryptedChatEmpty{} } -func (m *TLEncryptedChatEmpty) String() string { return proto.CompactTextString(m) } -func (*TLEncryptedChatEmpty) ProtoMessage() {} -func (*TLEncryptedChatEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{222} +func (m *TLSendMessageRecordAudioAction) Reset() { *m = TLSendMessageRecordAudioAction{} } +func (m *TLSendMessageRecordAudioAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageRecordAudioAction) ProtoMessage() {} +func (*TLSendMessageRecordAudioAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{199} } -func (m *TLEncryptedChatEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLEncryptedChatEmpty.Unmarshal(m, b) +func (m *TLSendMessageRecordAudioAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageRecordAudioAction.Unmarshal(m, b) } -func (m *TLEncryptedChatEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLEncryptedChatEmpty.Marshal(b, m, deterministic) +func (m *TLSendMessageRecordAudioAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageRecordAudioAction.Marshal(b, m, deterministic) } -func (dst *TLEncryptedChatEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLEncryptedChatEmpty.Merge(dst, src) +func (dst *TLSendMessageRecordAudioAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageRecordAudioAction.Merge(dst, src) } -func (m *TLEncryptedChatEmpty) XXX_Size() int { - return xxx_messageInfo_TLEncryptedChatEmpty.Size(m) +func (m *TLSendMessageRecordAudioAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageRecordAudioAction.Size(m) } -func (m *TLEncryptedChatEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLEncryptedChatEmpty.DiscardUnknown(m) +func (m *TLSendMessageRecordAudioAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageRecordAudioAction.DiscardUnknown(m) } -var xxx_messageInfo_TLEncryptedChatEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLSendMessageRecordAudioAction proto.InternalMessageInfo -func (m *TLEncryptedChatEmpty) GetData2() *EncryptedChat_Data { +func (m *TLSendMessageRecordAudioAction) GetData2() *SendMessageAction_Data { if m != nil { return m.Data2 } return nil } -// encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat; -type TLEncryptedChatWaiting struct { - Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction; +type TLSendMessageUploadAudioAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLEncryptedChatWaiting) Reset() { *m = TLEncryptedChatWaiting{} } -func (m *TLEncryptedChatWaiting) String() string { return proto.CompactTextString(m) } -func (*TLEncryptedChatWaiting) ProtoMessage() {} -func (*TLEncryptedChatWaiting) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{223} +func (m *TLSendMessageUploadAudioAction) Reset() { *m = TLSendMessageUploadAudioAction{} } +func (m *TLSendMessageUploadAudioAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageUploadAudioAction) ProtoMessage() {} +func (*TLSendMessageUploadAudioAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{200} } -func (m *TLEncryptedChatWaiting) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLEncryptedChatWaiting.Unmarshal(m, b) +func (m *TLSendMessageUploadAudioAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageUploadAudioAction.Unmarshal(m, b) } -func (m *TLEncryptedChatWaiting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLEncryptedChatWaiting.Marshal(b, m, deterministic) +func (m *TLSendMessageUploadAudioAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageUploadAudioAction.Marshal(b, m, deterministic) } -func (dst *TLEncryptedChatWaiting) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLEncryptedChatWaiting.Merge(dst, src) +func (dst *TLSendMessageUploadAudioAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageUploadAudioAction.Merge(dst, src) } -func (m *TLEncryptedChatWaiting) XXX_Size() int { - return xxx_messageInfo_TLEncryptedChatWaiting.Size(m) +func (m *TLSendMessageUploadAudioAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageUploadAudioAction.Size(m) } -func (m *TLEncryptedChatWaiting) XXX_DiscardUnknown() { - xxx_messageInfo_TLEncryptedChatWaiting.DiscardUnknown(m) +func (m *TLSendMessageUploadAudioAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageUploadAudioAction.DiscardUnknown(m) } -var xxx_messageInfo_TLEncryptedChatWaiting proto.InternalMessageInfo +var xxx_messageInfo_TLSendMessageUploadAudioAction proto.InternalMessageInfo -func (m *TLEncryptedChatWaiting) GetData2() *EncryptedChat_Data { +func (m *TLSendMessageUploadAudioAction) GetData2() *SendMessageAction_Data { if m != nil { return m.Data2 } return nil } -// encryptedChatRequested#c878527e id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat; -type TLEncryptedChatRequested struct { - Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction; +type TLSendMessageUploadPhotoAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLEncryptedChatRequested) Reset() { *m = TLEncryptedChatRequested{} } -func (m *TLEncryptedChatRequested) String() string { return proto.CompactTextString(m) } -func (*TLEncryptedChatRequested) ProtoMessage() {} -func (*TLEncryptedChatRequested) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{224} +func (m *TLSendMessageUploadPhotoAction) Reset() { *m = TLSendMessageUploadPhotoAction{} } +func (m *TLSendMessageUploadPhotoAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageUploadPhotoAction) ProtoMessage() {} +func (*TLSendMessageUploadPhotoAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{201} } -func (m *TLEncryptedChatRequested) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLEncryptedChatRequested.Unmarshal(m, b) +func (m *TLSendMessageUploadPhotoAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageUploadPhotoAction.Unmarshal(m, b) } -func (m *TLEncryptedChatRequested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLEncryptedChatRequested.Marshal(b, m, deterministic) +func (m *TLSendMessageUploadPhotoAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageUploadPhotoAction.Marshal(b, m, deterministic) } -func (dst *TLEncryptedChatRequested) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLEncryptedChatRequested.Merge(dst, src) +func (dst *TLSendMessageUploadPhotoAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageUploadPhotoAction.Merge(dst, src) } -func (m *TLEncryptedChatRequested) XXX_Size() int { - return xxx_messageInfo_TLEncryptedChatRequested.Size(m) +func (m *TLSendMessageUploadPhotoAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageUploadPhotoAction.Size(m) } -func (m *TLEncryptedChatRequested) XXX_DiscardUnknown() { - xxx_messageInfo_TLEncryptedChatRequested.DiscardUnknown(m) +func (m *TLSendMessageUploadPhotoAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageUploadPhotoAction.DiscardUnknown(m) } -var xxx_messageInfo_TLEncryptedChatRequested proto.InternalMessageInfo +var xxx_messageInfo_TLSendMessageUploadPhotoAction proto.InternalMessageInfo -func (m *TLEncryptedChatRequested) GetData2() *EncryptedChat_Data { +func (m *TLSendMessageUploadPhotoAction) GetData2() *SendMessageAction_Data { if m != nil { return m.Data2 } return nil } -// encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat; -type TLEncryptedChat struct { - Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction; +type TLSendMessageUploadDocumentAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLEncryptedChat) Reset() { *m = TLEncryptedChat{} } -func (m *TLEncryptedChat) String() string { return proto.CompactTextString(m) } -func (*TLEncryptedChat) ProtoMessage() {} -func (*TLEncryptedChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{225} +func (m *TLSendMessageUploadDocumentAction) Reset() { *m = TLSendMessageUploadDocumentAction{} } +func (m *TLSendMessageUploadDocumentAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageUploadDocumentAction) ProtoMessage() {} +func (*TLSendMessageUploadDocumentAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{202} } -func (m *TLEncryptedChat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLEncryptedChat.Unmarshal(m, b) +func (m *TLSendMessageUploadDocumentAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageUploadDocumentAction.Unmarshal(m, b) } -func (m *TLEncryptedChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLEncryptedChat.Marshal(b, m, deterministic) +func (m *TLSendMessageUploadDocumentAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageUploadDocumentAction.Marshal(b, m, deterministic) } -func (dst *TLEncryptedChat) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLEncryptedChat.Merge(dst, src) +func (dst *TLSendMessageUploadDocumentAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageUploadDocumentAction.Merge(dst, src) } -func (m *TLEncryptedChat) XXX_Size() int { - return xxx_messageInfo_TLEncryptedChat.Size(m) +func (m *TLSendMessageUploadDocumentAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageUploadDocumentAction.Size(m) } -func (m *TLEncryptedChat) XXX_DiscardUnknown() { - xxx_messageInfo_TLEncryptedChat.DiscardUnknown(m) +func (m *TLSendMessageUploadDocumentAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageUploadDocumentAction.DiscardUnknown(m) } -var xxx_messageInfo_TLEncryptedChat proto.InternalMessageInfo +var xxx_messageInfo_TLSendMessageUploadDocumentAction proto.InternalMessageInfo -func (m *TLEncryptedChat) GetData2() *EncryptedChat_Data { +func (m *TLSendMessageUploadDocumentAction) GetData2() *SendMessageAction_Data { if m != nil { return m.Data2 } return nil } -// encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat; -type TLEncryptedChatDiscarded struct { - Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// sendMessageGeoLocationAction#176f8ba1 = SendMessageAction; +type TLSendMessageGeoLocationAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLEncryptedChatDiscarded) Reset() { *m = TLEncryptedChatDiscarded{} } -func (m *TLEncryptedChatDiscarded) String() string { return proto.CompactTextString(m) } -func (*TLEncryptedChatDiscarded) ProtoMessage() {} -func (*TLEncryptedChatDiscarded) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{226} +func (m *TLSendMessageGeoLocationAction) Reset() { *m = TLSendMessageGeoLocationAction{} } +func (m *TLSendMessageGeoLocationAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageGeoLocationAction) ProtoMessage() {} +func (*TLSendMessageGeoLocationAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{203} } -func (m *TLEncryptedChatDiscarded) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLEncryptedChatDiscarded.Unmarshal(m, b) +func (m *TLSendMessageGeoLocationAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageGeoLocationAction.Unmarshal(m, b) } -func (m *TLEncryptedChatDiscarded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLEncryptedChatDiscarded.Marshal(b, m, deterministic) +func (m *TLSendMessageGeoLocationAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageGeoLocationAction.Marshal(b, m, deterministic) } -func (dst *TLEncryptedChatDiscarded) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLEncryptedChatDiscarded.Merge(dst, src) +func (dst *TLSendMessageGeoLocationAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageGeoLocationAction.Merge(dst, src) } -func (m *TLEncryptedChatDiscarded) XXX_Size() int { - return xxx_messageInfo_TLEncryptedChatDiscarded.Size(m) +func (m *TLSendMessageGeoLocationAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageGeoLocationAction.Size(m) } -func (m *TLEncryptedChatDiscarded) XXX_DiscardUnknown() { - xxx_messageInfo_TLEncryptedChatDiscarded.DiscardUnknown(m) +func (m *TLSendMessageGeoLocationAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageGeoLocationAction.DiscardUnknown(m) } -var xxx_messageInfo_TLEncryptedChatDiscarded proto.InternalMessageInfo +var xxx_messageInfo_TLSendMessageGeoLocationAction proto.InternalMessageInfo -func (m *TLEncryptedChatDiscarded) GetData2() *EncryptedChat_Data { +func (m *TLSendMessageGeoLocationAction) GetData2() *SendMessageAction_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ReplyMarkup <-- -// + TL_replyKeyboardHide -// + TL_replyKeyboardForceReply -// + TL_replyKeyboardMarkup -// + TL_replyInlineMarkup -// -type ReplyMarkup_Data struct { - Selective bool `protobuf:"varint,1,opt,name=selective,proto3" json:"selective,omitempty"` - SingleUse bool `protobuf:"varint,2,opt,name=single_use,json=singleUse,proto3" json:"single_use,omitempty"` - Resize bool `protobuf:"varint,3,opt,name=resize,proto3" json:"resize,omitempty"` - Rows []*KeyboardButtonRow `protobuf:"bytes,4,rep,name=rows,proto3" json:"rows,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// sendMessageChooseContactAction#628cbc6f = SendMessageAction; +type TLSendMessageChooseContactAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ReplyMarkup_Data) Reset() { *m = ReplyMarkup_Data{} } -func (m *ReplyMarkup_Data) String() string { return proto.CompactTextString(m) } -func (*ReplyMarkup_Data) ProtoMessage() {} -func (*ReplyMarkup_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{227} +func (m *TLSendMessageChooseContactAction) Reset() { *m = TLSendMessageChooseContactAction{} } +func (m *TLSendMessageChooseContactAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageChooseContactAction) ProtoMessage() {} +func (*TLSendMessageChooseContactAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{204} } -func (m *ReplyMarkup_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReplyMarkup_Data.Unmarshal(m, b) +func (m *TLSendMessageChooseContactAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageChooseContactAction.Unmarshal(m, b) } -func (m *ReplyMarkup_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReplyMarkup_Data.Marshal(b, m, deterministic) +func (m *TLSendMessageChooseContactAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageChooseContactAction.Marshal(b, m, deterministic) } -func (dst *ReplyMarkup_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplyMarkup_Data.Merge(dst, src) +func (dst *TLSendMessageChooseContactAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageChooseContactAction.Merge(dst, src) } -func (m *ReplyMarkup_Data) XXX_Size() int { - return xxx_messageInfo_ReplyMarkup_Data.Size(m) +func (m *TLSendMessageChooseContactAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageChooseContactAction.Size(m) } -func (m *ReplyMarkup_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ReplyMarkup_Data.DiscardUnknown(m) +func (m *TLSendMessageChooseContactAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageChooseContactAction.DiscardUnknown(m) } -var xxx_messageInfo_ReplyMarkup_Data proto.InternalMessageInfo +var xxx_messageInfo_TLSendMessageChooseContactAction proto.InternalMessageInfo -func (m *ReplyMarkup_Data) GetSelective() bool { +func (m *TLSendMessageChooseContactAction) GetData2() *SendMessageAction_Data { if m != nil { - return m.Selective + return m.Data2 } - return false + return nil } -func (m *ReplyMarkup_Data) GetSingleUse() bool { +// sendMessageGamePlayAction#dd6a8f48 = SendMessageAction; +type TLSendMessageGamePlayAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSendMessageGamePlayAction) Reset() { *m = TLSendMessageGamePlayAction{} } +func (m *TLSendMessageGamePlayAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageGamePlayAction) ProtoMessage() {} +func (*TLSendMessageGamePlayAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{205} +} +func (m *TLSendMessageGamePlayAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageGamePlayAction.Unmarshal(m, b) +} +func (m *TLSendMessageGamePlayAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageGamePlayAction.Marshal(b, m, deterministic) +} +func (dst *TLSendMessageGamePlayAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageGamePlayAction.Merge(dst, src) +} +func (m *TLSendMessageGamePlayAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageGamePlayAction.Size(m) +} +func (m *TLSendMessageGamePlayAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageGamePlayAction.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSendMessageGamePlayAction proto.InternalMessageInfo + +func (m *TLSendMessageGamePlayAction) GetData2() *SendMessageAction_Data { if m != nil { - return m.SingleUse + return m.Data2 } - return false + return nil } -func (m *ReplyMarkup_Data) GetResize() bool { +// sendMessageRecordRoundAction#88f27fbc = SendMessageAction; +type TLSendMessageRecordRoundAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSendMessageRecordRoundAction) Reset() { *m = TLSendMessageRecordRoundAction{} } +func (m *TLSendMessageRecordRoundAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageRecordRoundAction) ProtoMessage() {} +func (*TLSendMessageRecordRoundAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{206} +} +func (m *TLSendMessageRecordRoundAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageRecordRoundAction.Unmarshal(m, b) +} +func (m *TLSendMessageRecordRoundAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageRecordRoundAction.Marshal(b, m, deterministic) +} +func (dst *TLSendMessageRecordRoundAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageRecordRoundAction.Merge(dst, src) +} +func (m *TLSendMessageRecordRoundAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageRecordRoundAction.Size(m) +} +func (m *TLSendMessageRecordRoundAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageRecordRoundAction.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSendMessageRecordRoundAction proto.InternalMessageInfo + +func (m *TLSendMessageRecordRoundAction) GetData2() *SendMessageAction_Data { if m != nil { - return m.Resize + return m.Data2 } - return false + return nil } -func (m *ReplyMarkup_Data) GetRows() []*KeyboardButtonRow { +// sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction; +type TLSendMessageUploadRoundAction struct { + Data2 *SendMessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSendMessageUploadRoundAction) Reset() { *m = TLSendMessageUploadRoundAction{} } +func (m *TLSendMessageUploadRoundAction) String() string { return proto.CompactTextString(m) } +func (*TLSendMessageUploadRoundAction) ProtoMessage() {} +func (*TLSendMessageUploadRoundAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{207} +} +func (m *TLSendMessageUploadRoundAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSendMessageUploadRoundAction.Unmarshal(m, b) +} +func (m *TLSendMessageUploadRoundAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSendMessageUploadRoundAction.Marshal(b, m, deterministic) +} +func (dst *TLSendMessageUploadRoundAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSendMessageUploadRoundAction.Merge(dst, src) +} +func (m *TLSendMessageUploadRoundAction) XXX_Size() int { + return xxx_messageInfo_TLSendMessageUploadRoundAction.Size(m) +} +func (m *TLSendMessageUploadRoundAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLSendMessageUploadRoundAction.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSendMessageUploadRoundAction proto.InternalMessageInfo + +func (m *TLSendMessageUploadRoundAction) GetData2() *SendMessageAction_Data { if m != nil { - return m.Rows + return m.Data2 } return nil } -type ReplyMarkup struct { +// ///////////////////////////////////////////////////////////////////////////// +// ContactLink <-- +// + TL_contactLinkUnknown +// + TL_contactLinkNone +// + TL_contactLinkHasPhone +// + TL_contactLinkContact +// +type ContactLink_Data struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContactLink_Data) Reset() { *m = ContactLink_Data{} } +func (m *ContactLink_Data) String() string { return proto.CompactTextString(m) } +func (*ContactLink_Data) ProtoMessage() {} +func (*ContactLink_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{208} +} +func (m *ContactLink_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactLink_Data.Unmarshal(m, b) +} +func (m *ContactLink_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactLink_Data.Marshal(b, m, deterministic) +} +func (dst *ContactLink_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactLink_Data.Merge(dst, src) +} +func (m *ContactLink_Data) XXX_Size() int { + return xxx_messageInfo_ContactLink_Data.Size(m) +} +func (m *ContactLink_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ContactLink_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_ContactLink_Data proto.InternalMessageInfo + +type ContactLink struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ReplyMarkup) Reset() { *m = ReplyMarkup{} } -func (m *ReplyMarkup) String() string { return proto.CompactTextString(m) } -func (*ReplyMarkup) ProtoMessage() {} -func (*ReplyMarkup) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{228} +func (m *ContactLink) Reset() { *m = ContactLink{} } +func (m *ContactLink) String() string { return proto.CompactTextString(m) } +func (*ContactLink) ProtoMessage() {} +func (*ContactLink) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{209} } -func (m *ReplyMarkup) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReplyMarkup.Unmarshal(m, b) +func (m *ContactLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactLink.Unmarshal(m, b) } -func (m *ReplyMarkup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReplyMarkup.Marshal(b, m, deterministic) +func (m *ContactLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactLink.Marshal(b, m, deterministic) } -func (dst *ReplyMarkup) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplyMarkup.Merge(dst, src) +func (dst *ContactLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactLink.Merge(dst, src) } -func (m *ReplyMarkup) XXX_Size() int { - return xxx_messageInfo_ReplyMarkup.Size(m) +func (m *ContactLink) XXX_Size() int { + return xxx_messageInfo_ContactLink.Size(m) } -func (m *ReplyMarkup) XXX_DiscardUnknown() { - xxx_messageInfo_ReplyMarkup.DiscardUnknown(m) +func (m *ContactLink) XXX_DiscardUnknown() { + xxx_messageInfo_ContactLink.DiscardUnknown(m) } -var xxx_messageInfo_ReplyMarkup proto.InternalMessageInfo +var xxx_messageInfo_ContactLink proto.InternalMessageInfo -func (m *ReplyMarkup) GetConstructor() TLConstructor { +func (m *ContactLink) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ReplyMarkup) GetData2() *ReplyMarkup_Data { +func (m *ContactLink) GetData2() *ContactLink_Data { if m != nil { return m.Data2 } return nil } -// replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; -type TLReplyKeyboardHide struct { - Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// contactLinkUnknown#5f4f9247 = ContactLink; +type TLContactLinkUnknown struct { + Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLReplyKeyboardHide) Reset() { *m = TLReplyKeyboardHide{} } -func (m *TLReplyKeyboardHide) String() string { return proto.CompactTextString(m) } -func (*TLReplyKeyboardHide) ProtoMessage() {} -func (*TLReplyKeyboardHide) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{229} +func (m *TLContactLinkUnknown) Reset() { *m = TLContactLinkUnknown{} } +func (m *TLContactLinkUnknown) String() string { return proto.CompactTextString(m) } +func (*TLContactLinkUnknown) ProtoMessage() {} +func (*TLContactLinkUnknown) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{210} } -func (m *TLReplyKeyboardHide) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLReplyKeyboardHide.Unmarshal(m, b) +func (m *TLContactLinkUnknown) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactLinkUnknown.Unmarshal(m, b) } -func (m *TLReplyKeyboardHide) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLReplyKeyboardHide.Marshal(b, m, deterministic) +func (m *TLContactLinkUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactLinkUnknown.Marshal(b, m, deterministic) } -func (dst *TLReplyKeyboardHide) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLReplyKeyboardHide.Merge(dst, src) +func (dst *TLContactLinkUnknown) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactLinkUnknown.Merge(dst, src) } -func (m *TLReplyKeyboardHide) XXX_Size() int { - return xxx_messageInfo_TLReplyKeyboardHide.Size(m) +func (m *TLContactLinkUnknown) XXX_Size() int { + return xxx_messageInfo_TLContactLinkUnknown.Size(m) } -func (m *TLReplyKeyboardHide) XXX_DiscardUnknown() { - xxx_messageInfo_TLReplyKeyboardHide.DiscardUnknown(m) +func (m *TLContactLinkUnknown) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactLinkUnknown.DiscardUnknown(m) } -var xxx_messageInfo_TLReplyKeyboardHide proto.InternalMessageInfo +var xxx_messageInfo_TLContactLinkUnknown proto.InternalMessageInfo -func (m *TLReplyKeyboardHide) GetData2() *ReplyMarkup_Data { +func (m *TLContactLinkUnknown) GetData2() *ContactLink_Data { if m != nil { return m.Data2 } return nil } -// replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup; -type TLReplyKeyboardForceReply struct { - Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// contactLinkNone#feedd3ad = ContactLink; +type TLContactLinkNone struct { + Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLReplyKeyboardForceReply) Reset() { *m = TLReplyKeyboardForceReply{} } -func (m *TLReplyKeyboardForceReply) String() string { return proto.CompactTextString(m) } -func (*TLReplyKeyboardForceReply) ProtoMessage() {} -func (*TLReplyKeyboardForceReply) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{230} +func (m *TLContactLinkNone) Reset() { *m = TLContactLinkNone{} } +func (m *TLContactLinkNone) String() string { return proto.CompactTextString(m) } +func (*TLContactLinkNone) ProtoMessage() {} +func (*TLContactLinkNone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{211} } -func (m *TLReplyKeyboardForceReply) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLReplyKeyboardForceReply.Unmarshal(m, b) +func (m *TLContactLinkNone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactLinkNone.Unmarshal(m, b) } -func (m *TLReplyKeyboardForceReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLReplyKeyboardForceReply.Marshal(b, m, deterministic) +func (m *TLContactLinkNone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactLinkNone.Marshal(b, m, deterministic) } -func (dst *TLReplyKeyboardForceReply) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLReplyKeyboardForceReply.Merge(dst, src) +func (dst *TLContactLinkNone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactLinkNone.Merge(dst, src) } -func (m *TLReplyKeyboardForceReply) XXX_Size() int { - return xxx_messageInfo_TLReplyKeyboardForceReply.Size(m) +func (m *TLContactLinkNone) XXX_Size() int { + return xxx_messageInfo_TLContactLinkNone.Size(m) } -func (m *TLReplyKeyboardForceReply) XXX_DiscardUnknown() { - xxx_messageInfo_TLReplyKeyboardForceReply.DiscardUnknown(m) +func (m *TLContactLinkNone) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactLinkNone.DiscardUnknown(m) } -var xxx_messageInfo_TLReplyKeyboardForceReply proto.InternalMessageInfo +var xxx_messageInfo_TLContactLinkNone proto.InternalMessageInfo -func (m *TLReplyKeyboardForceReply) GetData2() *ReplyMarkup_Data { +func (m *TLContactLinkNone) GetData2() *ContactLink_Data { if m != nil { return m.Data2 } return nil } -// replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector = ReplyMarkup; -type TLReplyKeyboardMarkup struct { - Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// contactLinkHasPhone#268f3f59 = ContactLink; +type TLContactLinkHasPhone struct { + Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLReplyKeyboardMarkup) Reset() { *m = TLReplyKeyboardMarkup{} } -func (m *TLReplyKeyboardMarkup) String() string { return proto.CompactTextString(m) } -func (*TLReplyKeyboardMarkup) ProtoMessage() {} -func (*TLReplyKeyboardMarkup) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{231} +func (m *TLContactLinkHasPhone) Reset() { *m = TLContactLinkHasPhone{} } +func (m *TLContactLinkHasPhone) String() string { return proto.CompactTextString(m) } +func (*TLContactLinkHasPhone) ProtoMessage() {} +func (*TLContactLinkHasPhone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{212} } -func (m *TLReplyKeyboardMarkup) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLReplyKeyboardMarkup.Unmarshal(m, b) +func (m *TLContactLinkHasPhone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactLinkHasPhone.Unmarshal(m, b) } -func (m *TLReplyKeyboardMarkup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLReplyKeyboardMarkup.Marshal(b, m, deterministic) +func (m *TLContactLinkHasPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactLinkHasPhone.Marshal(b, m, deterministic) } -func (dst *TLReplyKeyboardMarkup) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLReplyKeyboardMarkup.Merge(dst, src) +func (dst *TLContactLinkHasPhone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactLinkHasPhone.Merge(dst, src) } -func (m *TLReplyKeyboardMarkup) XXX_Size() int { - return xxx_messageInfo_TLReplyKeyboardMarkup.Size(m) +func (m *TLContactLinkHasPhone) XXX_Size() int { + return xxx_messageInfo_TLContactLinkHasPhone.Size(m) } -func (m *TLReplyKeyboardMarkup) XXX_DiscardUnknown() { - xxx_messageInfo_TLReplyKeyboardMarkup.DiscardUnknown(m) +func (m *TLContactLinkHasPhone) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactLinkHasPhone.DiscardUnknown(m) } -var xxx_messageInfo_TLReplyKeyboardMarkup proto.InternalMessageInfo +var xxx_messageInfo_TLContactLinkHasPhone proto.InternalMessageInfo -func (m *TLReplyKeyboardMarkup) GetData2() *ReplyMarkup_Data { +func (m *TLContactLinkHasPhone) GetData2() *ContactLink_Data { if m != nil { return m.Data2 } return nil } -// replyInlineMarkup#48a30254 rows:Vector = ReplyMarkup; -type TLReplyInlineMarkup struct { - Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// contactLinkContact#d502c2d0 = ContactLink; +type TLContactLinkContact struct { + Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLReplyInlineMarkup) Reset() { *m = TLReplyInlineMarkup{} } -func (m *TLReplyInlineMarkup) String() string { return proto.CompactTextString(m) } -func (*TLReplyInlineMarkup) ProtoMessage() {} -func (*TLReplyInlineMarkup) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{232} +func (m *TLContactLinkContact) Reset() { *m = TLContactLinkContact{} } +func (m *TLContactLinkContact) String() string { return proto.CompactTextString(m) } +func (*TLContactLinkContact) ProtoMessage() {} +func (*TLContactLinkContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{213} } -func (m *TLReplyInlineMarkup) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLReplyInlineMarkup.Unmarshal(m, b) +func (m *TLContactLinkContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactLinkContact.Unmarshal(m, b) } -func (m *TLReplyInlineMarkup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLReplyInlineMarkup.Marshal(b, m, deterministic) +func (m *TLContactLinkContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactLinkContact.Marshal(b, m, deterministic) } -func (dst *TLReplyInlineMarkup) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLReplyInlineMarkup.Merge(dst, src) +func (dst *TLContactLinkContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactLinkContact.Merge(dst, src) } -func (m *TLReplyInlineMarkup) XXX_Size() int { - return xxx_messageInfo_TLReplyInlineMarkup.Size(m) +func (m *TLContactLinkContact) XXX_Size() int { + return xxx_messageInfo_TLContactLinkContact.Size(m) } -func (m *TLReplyInlineMarkup) XXX_DiscardUnknown() { - xxx_messageInfo_TLReplyInlineMarkup.DiscardUnknown(m) +func (m *TLContactLinkContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactLinkContact.DiscardUnknown(m) } -var xxx_messageInfo_TLReplyInlineMarkup proto.InternalMessageInfo +var xxx_messageInfo_TLContactLinkContact proto.InternalMessageInfo -func (m *TLReplyInlineMarkup) GetData2() *ReplyMarkup_Data { +func (m *TLContactLinkContact) GetData2() *ContactLink_Data { if m != nil { return m.Data2 } @@ -11066,726 +10419,810 @@ func (m *TLReplyInlineMarkup) GetData2() *ReplyMarkup_Data { } // ///////////////////////////////////////////////////////////////////////////// -// MessageEntity <-- -// + TL_messageEntityUnknown -// + TL_messageEntityMention -// + TL_messageEntityHashtag -// + TL_messageEntityBotCommand -// + TL_messageEntityUrl -// + TL_messageEntityEmail -// + TL_messageEntityBold -// + TL_messageEntityItalic -// + TL_messageEntityCode -// + TL_messageEntityPre -// + TL_messageEntityTextUrl -// + TL_messageEntityMentionName -// + TL_inputMessageEntityMentionName -// + TL_messageEntityPhone -// + TL_messageEntityCashtag +// PaymentRequestedInfo <-- +// + TL_paymentRequestedInfo // -type MessageEntity_Data struct { - Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Length int32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` - Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"` - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` - UserId_5 int32 `protobuf:"varint,5,opt,name=user_id_5,json=userId5,proto3" json:"user_id_5,omitempty"` - UserId_6 *InputUser `protobuf:"bytes,6,opt,name=user_id_6,json=userId6,proto3" json:"user_id_6,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PaymentRequestedInfo_Data struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + ShippingAddress *PostAddress `protobuf:"bytes,4,opt,name=shipping_address,json=shippingAddress,proto3" json:"shipping_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageEntity_Data) Reset() { *m = MessageEntity_Data{} } -func (m *MessageEntity_Data) String() string { return proto.CompactTextString(m) } -func (*MessageEntity_Data) ProtoMessage() {} -func (*MessageEntity_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{233} -} -func (m *MessageEntity_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageEntity_Data.Unmarshal(m, b) +func (m *PaymentRequestedInfo_Data) Reset() { *m = PaymentRequestedInfo_Data{} } +func (m *PaymentRequestedInfo_Data) String() string { return proto.CompactTextString(m) } +func (*PaymentRequestedInfo_Data) ProtoMessage() {} +func (*PaymentRequestedInfo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{214} } -func (m *MessageEntity_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageEntity_Data.Marshal(b, m, deterministic) +func (m *PaymentRequestedInfo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PaymentRequestedInfo_Data.Unmarshal(m, b) } -func (dst *MessageEntity_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageEntity_Data.Merge(dst, src) +func (m *PaymentRequestedInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PaymentRequestedInfo_Data.Marshal(b, m, deterministic) } -func (m *MessageEntity_Data) XXX_Size() int { - return xxx_messageInfo_MessageEntity_Data.Size(m) +func (dst *PaymentRequestedInfo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PaymentRequestedInfo_Data.Merge(dst, src) } -func (m *MessageEntity_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MessageEntity_Data.DiscardUnknown(m) +func (m *PaymentRequestedInfo_Data) XXX_Size() int { + return xxx_messageInfo_PaymentRequestedInfo_Data.Size(m) } - -var xxx_messageInfo_MessageEntity_Data proto.InternalMessageInfo - -func (m *MessageEntity_Data) GetOffset() int32 { - if m != nil { - return m.Offset - } - return 0 +func (m *PaymentRequestedInfo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PaymentRequestedInfo_Data.DiscardUnknown(m) } -func (m *MessageEntity_Data) GetLength() int32 { - if m != nil { - return m.Length - } - return 0 -} +var xxx_messageInfo_PaymentRequestedInfo_Data proto.InternalMessageInfo -func (m *MessageEntity_Data) GetLanguage() string { +func (m *PaymentRequestedInfo_Data) GetName() string { if m != nil { - return m.Language + return m.Name } return "" } -func (m *MessageEntity_Data) GetUrl() string { +func (m *PaymentRequestedInfo_Data) GetPhone() string { if m != nil { - return m.Url + return m.Phone } return "" } -func (m *MessageEntity_Data) GetUserId_5() int32 { +func (m *PaymentRequestedInfo_Data) GetEmail() string { if m != nil { - return m.UserId_5 + return m.Email } - return 0 + return "" } -func (m *MessageEntity_Data) GetUserId_6() *InputUser { +func (m *PaymentRequestedInfo_Data) GetShippingAddress() *PostAddress { if m != nil { - return m.UserId_6 + return m.ShippingAddress } return nil } -type MessageEntity struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PaymentRequestedInfo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PaymentRequestedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageEntity) Reset() { *m = MessageEntity{} } -func (m *MessageEntity) String() string { return proto.CompactTextString(m) } -func (*MessageEntity) ProtoMessage() {} -func (*MessageEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{234} +func (m *PaymentRequestedInfo) Reset() { *m = PaymentRequestedInfo{} } +func (m *PaymentRequestedInfo) String() string { return proto.CompactTextString(m) } +func (*PaymentRequestedInfo) ProtoMessage() {} +func (*PaymentRequestedInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{215} } -func (m *MessageEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageEntity.Unmarshal(m, b) +func (m *PaymentRequestedInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PaymentRequestedInfo.Unmarshal(m, b) } -func (m *MessageEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageEntity.Marshal(b, m, deterministic) +func (m *PaymentRequestedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PaymentRequestedInfo.Marshal(b, m, deterministic) } -func (dst *MessageEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageEntity.Merge(dst, src) +func (dst *PaymentRequestedInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_PaymentRequestedInfo.Merge(dst, src) } -func (m *MessageEntity) XXX_Size() int { - return xxx_messageInfo_MessageEntity.Size(m) +func (m *PaymentRequestedInfo) XXX_Size() int { + return xxx_messageInfo_PaymentRequestedInfo.Size(m) } -func (m *MessageEntity) XXX_DiscardUnknown() { - xxx_messageInfo_MessageEntity.DiscardUnknown(m) +func (m *PaymentRequestedInfo) XXX_DiscardUnknown() { + xxx_messageInfo_PaymentRequestedInfo.DiscardUnknown(m) } -var xxx_messageInfo_MessageEntity proto.InternalMessageInfo +var xxx_messageInfo_PaymentRequestedInfo proto.InternalMessageInfo -func (m *MessageEntity) GetConstructor() TLConstructor { +func (m *PaymentRequestedInfo) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MessageEntity) GetData2() *MessageEntity_Data { +func (m *PaymentRequestedInfo) GetData2() *PaymentRequestedInfo_Data { if m != nil { return m.Data2 } return nil } -// messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity; -type TLMessageEntityUnknown struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo; +type TLPaymentRequestedInfo struct { + Data2 *PaymentRequestedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityUnknown) Reset() { *m = TLMessageEntityUnknown{} } -func (m *TLMessageEntityUnknown) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityUnknown) ProtoMessage() {} -func (*TLMessageEntityUnknown) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{235} +func (m *TLPaymentRequestedInfo) Reset() { *m = TLPaymentRequestedInfo{} } +func (m *TLPaymentRequestedInfo) String() string { return proto.CompactTextString(m) } +func (*TLPaymentRequestedInfo) ProtoMessage() {} +func (*TLPaymentRequestedInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{216} } -func (m *TLMessageEntityUnknown) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityUnknown.Unmarshal(m, b) +func (m *TLPaymentRequestedInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPaymentRequestedInfo.Unmarshal(m, b) } -func (m *TLMessageEntityUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityUnknown.Marshal(b, m, deterministic) +func (m *TLPaymentRequestedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPaymentRequestedInfo.Marshal(b, m, deterministic) } -func (dst *TLMessageEntityUnknown) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityUnknown.Merge(dst, src) +func (dst *TLPaymentRequestedInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPaymentRequestedInfo.Merge(dst, src) } -func (m *TLMessageEntityUnknown) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityUnknown.Size(m) +func (m *TLPaymentRequestedInfo) XXX_Size() int { + return xxx_messageInfo_TLPaymentRequestedInfo.Size(m) } -func (m *TLMessageEntityUnknown) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityUnknown.DiscardUnknown(m) +func (m *TLPaymentRequestedInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLPaymentRequestedInfo.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityUnknown proto.InternalMessageInfo +var xxx_messageInfo_TLPaymentRequestedInfo proto.InternalMessageInfo -func (m *TLMessageEntityUnknown) GetData2() *MessageEntity_Data { +func (m *TLPaymentRequestedInfo) GetData2() *PaymentRequestedInfo_Data { if m != nil { return m.Data2 } return nil } -// messageEntityMention#fa04579d offset:int length:int = MessageEntity; -type TLMessageEntityMention struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// LabeledPrice <-- +// + TL_labeledPrice +// +type LabeledPrice_Data struct { + Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityMention) Reset() { *m = TLMessageEntityMention{} } -func (m *TLMessageEntityMention) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityMention) ProtoMessage() {} -func (*TLMessageEntityMention) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{236} +func (m *LabeledPrice_Data) Reset() { *m = LabeledPrice_Data{} } +func (m *LabeledPrice_Data) String() string { return proto.CompactTextString(m) } +func (*LabeledPrice_Data) ProtoMessage() {} +func (*LabeledPrice_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{217} } -func (m *TLMessageEntityMention) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityMention.Unmarshal(m, b) +func (m *LabeledPrice_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LabeledPrice_Data.Unmarshal(m, b) } -func (m *TLMessageEntityMention) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityMention.Marshal(b, m, deterministic) +func (m *LabeledPrice_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LabeledPrice_Data.Marshal(b, m, deterministic) } -func (dst *TLMessageEntityMention) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityMention.Merge(dst, src) +func (dst *LabeledPrice_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_LabeledPrice_Data.Merge(dst, src) } -func (m *TLMessageEntityMention) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityMention.Size(m) +func (m *LabeledPrice_Data) XXX_Size() int { + return xxx_messageInfo_LabeledPrice_Data.Size(m) } -func (m *TLMessageEntityMention) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityMention.DiscardUnknown(m) +func (m *LabeledPrice_Data) XXX_DiscardUnknown() { + xxx_messageInfo_LabeledPrice_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityMention proto.InternalMessageInfo +var xxx_messageInfo_LabeledPrice_Data proto.InternalMessageInfo -func (m *TLMessageEntityMention) GetData2() *MessageEntity_Data { +func (m *LabeledPrice_Data) GetLabel() string { if m != nil { - return m.Data2 + return m.Label } - return nil + return "" } -// messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity; -type TLMessageEntityHashtag struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *LabeledPrice_Data) GetAmount() int64 { + if m != nil { + return m.Amount + } + return 0 } -func (m *TLMessageEntityHashtag) Reset() { *m = TLMessageEntityHashtag{} } -func (m *TLMessageEntityHashtag) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityHashtag) ProtoMessage() {} -func (*TLMessageEntityHashtag) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{237} +type LabeledPrice struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *LabeledPrice_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityHashtag) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityHashtag.Unmarshal(m, b) + +func (m *LabeledPrice) Reset() { *m = LabeledPrice{} } +func (m *LabeledPrice) String() string { return proto.CompactTextString(m) } +func (*LabeledPrice) ProtoMessage() {} +func (*LabeledPrice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{218} } -func (m *TLMessageEntityHashtag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityHashtag.Marshal(b, m, deterministic) +func (m *LabeledPrice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LabeledPrice.Unmarshal(m, b) } -func (dst *TLMessageEntityHashtag) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityHashtag.Merge(dst, src) +func (m *LabeledPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LabeledPrice.Marshal(b, m, deterministic) } -func (m *TLMessageEntityHashtag) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityHashtag.Size(m) +func (dst *LabeledPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_LabeledPrice.Merge(dst, src) } -func (m *TLMessageEntityHashtag) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityHashtag.DiscardUnknown(m) +func (m *LabeledPrice) XXX_Size() int { + return xxx_messageInfo_LabeledPrice.Size(m) +} +func (m *LabeledPrice) XXX_DiscardUnknown() { + xxx_messageInfo_LabeledPrice.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityHashtag proto.InternalMessageInfo +var xxx_messageInfo_LabeledPrice proto.InternalMessageInfo -func (m *TLMessageEntityHashtag) GetData2() *MessageEntity_Data { +func (m *LabeledPrice) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *LabeledPrice) GetData2() *LabeledPrice_Data { if m != nil { return m.Data2 } return nil } -// messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity; -type TLMessageEntityBotCommand struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; +type TLLabeledPrice struct { + Data2 *LabeledPrice_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityBotCommand) Reset() { *m = TLMessageEntityBotCommand{} } -func (m *TLMessageEntityBotCommand) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityBotCommand) ProtoMessage() {} -func (*TLMessageEntityBotCommand) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{238} +func (m *TLLabeledPrice) Reset() { *m = TLLabeledPrice{} } +func (m *TLLabeledPrice) String() string { return proto.CompactTextString(m) } +func (*TLLabeledPrice) ProtoMessage() {} +func (*TLLabeledPrice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{219} } -func (m *TLMessageEntityBotCommand) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityBotCommand.Unmarshal(m, b) +func (m *TLLabeledPrice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLLabeledPrice.Unmarshal(m, b) } -func (m *TLMessageEntityBotCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityBotCommand.Marshal(b, m, deterministic) +func (m *TLLabeledPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLLabeledPrice.Marshal(b, m, deterministic) } -func (dst *TLMessageEntityBotCommand) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityBotCommand.Merge(dst, src) +func (dst *TLLabeledPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLLabeledPrice.Merge(dst, src) } -func (m *TLMessageEntityBotCommand) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityBotCommand.Size(m) +func (m *TLLabeledPrice) XXX_Size() int { + return xxx_messageInfo_TLLabeledPrice.Size(m) } -func (m *TLMessageEntityBotCommand) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityBotCommand.DiscardUnknown(m) +func (m *TLLabeledPrice) XXX_DiscardUnknown() { + xxx_messageInfo_TLLabeledPrice.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityBotCommand proto.InternalMessageInfo +var xxx_messageInfo_TLLabeledPrice proto.InternalMessageInfo -func (m *TLMessageEntityBotCommand) GetData2() *MessageEntity_Data { +func (m *TLLabeledPrice) GetData2() *LabeledPrice_Data { if m != nil { return m.Data2 } return nil } -// messageEntityUrl#6ed02538 offset:int length:int = MessageEntity; -type TLMessageEntityUrl struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// SecureValue <-- +// + TL_secureValue +// +type SecureValue_Data struct { + Type *SecureValueType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Data *SecureData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + FrontSide *SecureFile `protobuf:"bytes,3,opt,name=front_side,json=frontSide,proto3" json:"front_side,omitempty"` + ReverseSide *SecureFile `protobuf:"bytes,4,opt,name=reverse_side,json=reverseSide,proto3" json:"reverse_side,omitempty"` + Selfie *SecureFile `protobuf:"bytes,5,opt,name=selfie,proto3" json:"selfie,omitempty"` + Translation []*SecureFile `protobuf:"bytes,6,rep,name=translation,proto3" json:"translation,omitempty"` + Files []*SecureFile `protobuf:"bytes,7,rep,name=files,proto3" json:"files,omitempty"` + PlainData *SecurePlainData `protobuf:"bytes,8,opt,name=plain_data,json=plainData,proto3" json:"plain_data,omitempty"` + Hash []byte `protobuf:"bytes,9,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityUrl) Reset() { *m = TLMessageEntityUrl{} } -func (m *TLMessageEntityUrl) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityUrl) ProtoMessage() {} -func (*TLMessageEntityUrl) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{239} +func (m *SecureValue_Data) Reset() { *m = SecureValue_Data{} } +func (m *SecureValue_Data) String() string { return proto.CompactTextString(m) } +func (*SecureValue_Data) ProtoMessage() {} +func (*SecureValue_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{220} } -func (m *TLMessageEntityUrl) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityUrl.Unmarshal(m, b) +func (m *SecureValue_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureValue_Data.Unmarshal(m, b) } -func (m *TLMessageEntityUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityUrl.Marshal(b, m, deterministic) +func (m *SecureValue_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureValue_Data.Marshal(b, m, deterministic) } -func (dst *TLMessageEntityUrl) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityUrl.Merge(dst, src) +func (dst *SecureValue_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureValue_Data.Merge(dst, src) } -func (m *TLMessageEntityUrl) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityUrl.Size(m) +func (m *SecureValue_Data) XXX_Size() int { + return xxx_messageInfo_SecureValue_Data.Size(m) } -func (m *TLMessageEntityUrl) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityUrl.DiscardUnknown(m) +func (m *SecureValue_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecureValue_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityUrl proto.InternalMessageInfo +var xxx_messageInfo_SecureValue_Data proto.InternalMessageInfo -func (m *TLMessageEntityUrl) GetData2() *MessageEntity_Data { +func (m *SecureValue_Data) GetType() *SecureValueType { if m != nil { - return m.Data2 + return m.Type } return nil } -// messageEntityEmail#64e475c2 offset:int length:int = MessageEntity; -type TLMessageEntityEmail struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *SecureValue_Data) GetData() *SecureData { + if m != nil { + return m.Data + } + return nil } -func (m *TLMessageEntityEmail) Reset() { *m = TLMessageEntityEmail{} } -func (m *TLMessageEntityEmail) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityEmail) ProtoMessage() {} -func (*TLMessageEntityEmail) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{240} -} -func (m *TLMessageEntityEmail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityEmail.Unmarshal(m, b) +func (m *SecureValue_Data) GetFrontSide() *SecureFile { + if m != nil { + return m.FrontSide + } + return nil } -func (m *TLMessageEntityEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityEmail.Marshal(b, m, deterministic) + +func (m *SecureValue_Data) GetReverseSide() *SecureFile { + if m != nil { + return m.ReverseSide + } + return nil } -func (dst *TLMessageEntityEmail) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityEmail.Merge(dst, src) + +func (m *SecureValue_Data) GetSelfie() *SecureFile { + if m != nil { + return m.Selfie + } + return nil } -func (m *TLMessageEntityEmail) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityEmail.Size(m) + +func (m *SecureValue_Data) GetTranslation() []*SecureFile { + if m != nil { + return m.Translation + } + return nil } -func (m *TLMessageEntityEmail) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityEmail.DiscardUnknown(m) + +func (m *SecureValue_Data) GetFiles() []*SecureFile { + if m != nil { + return m.Files + } + return nil } -var xxx_messageInfo_TLMessageEntityEmail proto.InternalMessageInfo +func (m *SecureValue_Data) GetPlainData() *SecurePlainData { + if m != nil { + return m.PlainData + } + return nil +} -func (m *TLMessageEntityEmail) GetData2() *MessageEntity_Data { +func (m *SecureValue_Data) GetHash() []byte { if m != nil { - return m.Data2 + return m.Hash } return nil } -// messageEntityBold#bd610bc9 offset:int length:int = MessageEntity; -type TLMessageEntityBold struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SecureValue struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SecureValue_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityBold) Reset() { *m = TLMessageEntityBold{} } -func (m *TLMessageEntityBold) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityBold) ProtoMessage() {} -func (*TLMessageEntityBold) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{241} +func (m *SecureValue) Reset() { *m = SecureValue{} } +func (m *SecureValue) String() string { return proto.CompactTextString(m) } +func (*SecureValue) ProtoMessage() {} +func (*SecureValue) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{221} } -func (m *TLMessageEntityBold) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityBold.Unmarshal(m, b) +func (m *SecureValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureValue.Unmarshal(m, b) } -func (m *TLMessageEntityBold) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityBold.Marshal(b, m, deterministic) +func (m *SecureValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureValue.Marshal(b, m, deterministic) } -func (dst *TLMessageEntityBold) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityBold.Merge(dst, src) +func (dst *SecureValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureValue.Merge(dst, src) } -func (m *TLMessageEntityBold) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityBold.Size(m) +func (m *SecureValue) XXX_Size() int { + return xxx_messageInfo_SecureValue.Size(m) } -func (m *TLMessageEntityBold) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityBold.DiscardUnknown(m) +func (m *SecureValue) XXX_DiscardUnknown() { + xxx_messageInfo_SecureValue.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityBold proto.InternalMessageInfo +var xxx_messageInfo_SecureValue proto.InternalMessageInfo -func (m *TLMessageEntityBold) GetData2() *MessageEntity_Data { +func (m *SecureValue) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *SecureValue) GetData2() *SecureValue_Data { if m != nil { return m.Data2 } return nil } -// messageEntityItalic#826f8b60 offset:int length:int = MessageEntity; -type TLMessageEntityItalic struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue; +type TLSecureValue struct { + Data2 *SecureValue_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityItalic) Reset() { *m = TLMessageEntityItalic{} } -func (m *TLMessageEntityItalic) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityItalic) ProtoMessage() {} -func (*TLMessageEntityItalic) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{242} -} -func (m *TLMessageEntityItalic) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityItalic.Unmarshal(m, b) +func (m *TLSecureValue) Reset() { *m = TLSecureValue{} } +func (m *TLSecureValue) String() string { return proto.CompactTextString(m) } +func (*TLSecureValue) ProtoMessage() {} +func (*TLSecureValue) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{222} } -func (m *TLMessageEntityItalic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityItalic.Marshal(b, m, deterministic) +func (m *TLSecureValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValue.Unmarshal(m, b) } -func (dst *TLMessageEntityItalic) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityItalic.Merge(dst, src) +func (m *TLSecureValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValue.Marshal(b, m, deterministic) } -func (m *TLMessageEntityItalic) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityItalic.Size(m) +func (dst *TLSecureValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValue.Merge(dst, src) } -func (m *TLMessageEntityItalic) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityItalic.DiscardUnknown(m) +func (m *TLSecureValue) XXX_Size() int { + return xxx_messageInfo_TLSecureValue.Size(m) +} +func (m *TLSecureValue) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValue.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityItalic proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValue proto.InternalMessageInfo -func (m *TLMessageEntityItalic) GetData2() *MessageEntity_Data { +func (m *TLSecureValue) GetData2() *SecureValue_Data { if m != nil { return m.Data2 } return nil } -// messageEntityCode#28a20571 offset:int length:int = MessageEntity; -type TLMessageEntityCode struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// messages_DhConfig <-- +// + TL_messages_dhConfigNotModified +// + TL_messages_dhConfig +// +type Messages_DhConfig_Data struct { + Random []byte `protobuf:"bytes,1,opt,name=random,proto3" json:"random,omitempty"` + G int32 `protobuf:"varint,2,opt,name=g,proto3" json:"g,omitempty"` + P []byte `protobuf:"bytes,3,opt,name=p,proto3" json:"p,omitempty"` + Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityCode) Reset() { *m = TLMessageEntityCode{} } -func (m *TLMessageEntityCode) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityCode) ProtoMessage() {} -func (*TLMessageEntityCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{243} +func (m *Messages_DhConfig_Data) Reset() { *m = Messages_DhConfig_Data{} } +func (m *Messages_DhConfig_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_DhConfig_Data) ProtoMessage() {} +func (*Messages_DhConfig_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{223} } -func (m *TLMessageEntityCode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityCode.Unmarshal(m, b) +func (m *Messages_DhConfig_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_DhConfig_Data.Unmarshal(m, b) } -func (m *TLMessageEntityCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityCode.Marshal(b, m, deterministic) +func (m *Messages_DhConfig_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_DhConfig_Data.Marshal(b, m, deterministic) } -func (dst *TLMessageEntityCode) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityCode.Merge(dst, src) +func (dst *Messages_DhConfig_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_DhConfig_Data.Merge(dst, src) } -func (m *TLMessageEntityCode) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityCode.Size(m) +func (m *Messages_DhConfig_Data) XXX_Size() int { + return xxx_messageInfo_Messages_DhConfig_Data.Size(m) } -func (m *TLMessageEntityCode) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityCode.DiscardUnknown(m) +func (m *Messages_DhConfig_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_DhConfig_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityCode proto.InternalMessageInfo +var xxx_messageInfo_Messages_DhConfig_Data proto.InternalMessageInfo -func (m *TLMessageEntityCode) GetData2() *MessageEntity_Data { +func (m *Messages_DhConfig_Data) GetRandom() []byte { if m != nil { - return m.Data2 + return m.Random } return nil } -// messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity; -type TLMessageEntityPre struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Messages_DhConfig_Data) GetG() int32 { + if m != nil { + return m.G + } + return 0 } -func (m *TLMessageEntityPre) Reset() { *m = TLMessageEntityPre{} } -func (m *TLMessageEntityPre) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityPre) ProtoMessage() {} -func (*TLMessageEntityPre) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{244} +func (m *Messages_DhConfig_Data) GetP() []byte { + if m != nil { + return m.P + } + return nil } -func (m *TLMessageEntityPre) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityPre.Unmarshal(m, b) + +func (m *Messages_DhConfig_Data) GetVersion() int32 { + if m != nil { + return m.Version + } + return 0 } -func (m *TLMessageEntityPre) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityPre.Marshal(b, m, deterministic) + +type Messages_DhConfig struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_DhConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (dst *TLMessageEntityPre) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityPre.Merge(dst, src) + +func (m *Messages_DhConfig) Reset() { *m = Messages_DhConfig{} } +func (m *Messages_DhConfig) String() string { return proto.CompactTextString(m) } +func (*Messages_DhConfig) ProtoMessage() {} +func (*Messages_DhConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{224} } -func (m *TLMessageEntityPre) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityPre.Size(m) +func (m *Messages_DhConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_DhConfig.Unmarshal(m, b) } -func (m *TLMessageEntityPre) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityPre.DiscardUnknown(m) +func (m *Messages_DhConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_DhConfig.Marshal(b, m, deterministic) +} +func (dst *Messages_DhConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_DhConfig.Merge(dst, src) +} +func (m *Messages_DhConfig) XXX_Size() int { + return xxx_messageInfo_Messages_DhConfig.Size(m) +} +func (m *Messages_DhConfig) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_DhConfig.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityPre proto.InternalMessageInfo +var xxx_messageInfo_Messages_DhConfig proto.InternalMessageInfo -func (m *TLMessageEntityPre) GetData2() *MessageEntity_Data { +func (m *Messages_DhConfig) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Messages_DhConfig) GetData2() *Messages_DhConfig_Data { if m != nil { return m.Data2 } return nil } -// messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity; -type TLMessageEntityTextUrl struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig; +type TLMessagesDhConfigNotModified struct { + Data2 *Messages_DhConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityTextUrl) Reset() { *m = TLMessageEntityTextUrl{} } -func (m *TLMessageEntityTextUrl) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityTextUrl) ProtoMessage() {} -func (*TLMessageEntityTextUrl) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{245} +func (m *TLMessagesDhConfigNotModified) Reset() { *m = TLMessagesDhConfigNotModified{} } +func (m *TLMessagesDhConfigNotModified) String() string { return proto.CompactTextString(m) } +func (*TLMessagesDhConfigNotModified) ProtoMessage() {} +func (*TLMessagesDhConfigNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{225} } -func (m *TLMessageEntityTextUrl) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityTextUrl.Unmarshal(m, b) +func (m *TLMessagesDhConfigNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesDhConfigNotModified.Unmarshal(m, b) } -func (m *TLMessageEntityTextUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityTextUrl.Marshal(b, m, deterministic) +func (m *TLMessagesDhConfigNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesDhConfigNotModified.Marshal(b, m, deterministic) } -func (dst *TLMessageEntityTextUrl) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityTextUrl.Merge(dst, src) +func (dst *TLMessagesDhConfigNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesDhConfigNotModified.Merge(dst, src) } -func (m *TLMessageEntityTextUrl) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityTextUrl.Size(m) +func (m *TLMessagesDhConfigNotModified) XXX_Size() int { + return xxx_messageInfo_TLMessagesDhConfigNotModified.Size(m) } -func (m *TLMessageEntityTextUrl) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityTextUrl.DiscardUnknown(m) +func (m *TLMessagesDhConfigNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesDhConfigNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityTextUrl proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesDhConfigNotModified proto.InternalMessageInfo -func (m *TLMessageEntityTextUrl) GetData2() *MessageEntity_Data { +func (m *TLMessagesDhConfigNotModified) GetData2() *Messages_DhConfig_Data { if m != nil { return m.Data2 } return nil } -// messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity; -type TLMessageEntityMentionName struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig; +type TLMessagesDhConfig struct { + Data2 *Messages_DhConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityMentionName) Reset() { *m = TLMessageEntityMentionName{} } -func (m *TLMessageEntityMentionName) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityMentionName) ProtoMessage() {} -func (*TLMessageEntityMentionName) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{246} +func (m *TLMessagesDhConfig) Reset() { *m = TLMessagesDhConfig{} } +func (m *TLMessagesDhConfig) String() string { return proto.CompactTextString(m) } +func (*TLMessagesDhConfig) ProtoMessage() {} +func (*TLMessagesDhConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{226} } -func (m *TLMessageEntityMentionName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityMentionName.Unmarshal(m, b) +func (m *TLMessagesDhConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesDhConfig.Unmarshal(m, b) } -func (m *TLMessageEntityMentionName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityMentionName.Marshal(b, m, deterministic) +func (m *TLMessagesDhConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesDhConfig.Marshal(b, m, deterministic) } -func (dst *TLMessageEntityMentionName) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityMentionName.Merge(dst, src) +func (dst *TLMessagesDhConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesDhConfig.Merge(dst, src) } -func (m *TLMessageEntityMentionName) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityMentionName.Size(m) +func (m *TLMessagesDhConfig) XXX_Size() int { + return xxx_messageInfo_TLMessagesDhConfig.Size(m) } -func (m *TLMessageEntityMentionName) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityMentionName.DiscardUnknown(m) +func (m *TLMessagesDhConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesDhConfig.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityMentionName proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesDhConfig proto.InternalMessageInfo -func (m *TLMessageEntityMentionName) GetData2() *MessageEntity_Data { +func (m *TLMessagesDhConfig) GetData2() *Messages_DhConfig_Data { if m != nil { return m.Data2 } return nil } -// inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity; -type TLInputMessageEntityMentionName struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// contacts_ResolvedPeer <-- +// + TL_contacts_resolvedPeer +// +type Contacts_ResolvedPeer_Data struct { + Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessageEntityMentionName) Reset() { *m = TLInputMessageEntityMentionName{} } -func (m *TLInputMessageEntityMentionName) String() string { return proto.CompactTextString(m) } -func (*TLInputMessageEntityMentionName) ProtoMessage() {} -func (*TLInputMessageEntityMentionName) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{247} +func (m *Contacts_ResolvedPeer_Data) Reset() { *m = Contacts_ResolvedPeer_Data{} } +func (m *Contacts_ResolvedPeer_Data) String() string { return proto.CompactTextString(m) } +func (*Contacts_ResolvedPeer_Data) ProtoMessage() {} +func (*Contacts_ResolvedPeer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{227} } -func (m *TLInputMessageEntityMentionName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessageEntityMentionName.Unmarshal(m, b) +func (m *Contacts_ResolvedPeer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_ResolvedPeer_Data.Unmarshal(m, b) } -func (m *TLInputMessageEntityMentionName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessageEntityMentionName.Marshal(b, m, deterministic) +func (m *Contacts_ResolvedPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_ResolvedPeer_Data.Marshal(b, m, deterministic) } -func (dst *TLInputMessageEntityMentionName) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessageEntityMentionName.Merge(dst, src) +func (dst *Contacts_ResolvedPeer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_ResolvedPeer_Data.Merge(dst, src) } -func (m *TLInputMessageEntityMentionName) XXX_Size() int { - return xxx_messageInfo_TLInputMessageEntityMentionName.Size(m) +func (m *Contacts_ResolvedPeer_Data) XXX_Size() int { + return xxx_messageInfo_Contacts_ResolvedPeer_Data.Size(m) } -func (m *TLInputMessageEntityMentionName) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessageEntityMentionName.DiscardUnknown(m) +func (m *Contacts_ResolvedPeer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_ResolvedPeer_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessageEntityMentionName proto.InternalMessageInfo +var xxx_messageInfo_Contacts_ResolvedPeer_Data proto.InternalMessageInfo -func (m *TLInputMessageEntityMentionName) GetData2() *MessageEntity_Data { +func (m *Contacts_ResolvedPeer_Data) GetPeer() *Peer { if m != nil { - return m.Data2 + return m.Peer } return nil } -// messageEntityPhone#9b69e34b offset:int length:int = MessageEntity; -type TLMessageEntityPhone struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Contacts_ResolvedPeer_Data) GetChats() []*Chat { + if m != nil { + return m.Chats + } + return nil } -func (m *TLMessageEntityPhone) Reset() { *m = TLMessageEntityPhone{} } -func (m *TLMessageEntityPhone) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityPhone) ProtoMessage() {} -func (*TLMessageEntityPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{248} +func (m *Contacts_ResolvedPeer_Data) GetUsers() []*User { + if m != nil { + return m.Users + } + return nil } -func (m *TLMessageEntityPhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityPhone.Unmarshal(m, b) + +type Contacts_ResolvedPeer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Contacts_ResolvedPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityPhone.Marshal(b, m, deterministic) + +func (m *Contacts_ResolvedPeer) Reset() { *m = Contacts_ResolvedPeer{} } +func (m *Contacts_ResolvedPeer) String() string { return proto.CompactTextString(m) } +func (*Contacts_ResolvedPeer) ProtoMessage() {} +func (*Contacts_ResolvedPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{228} } -func (dst *TLMessageEntityPhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityPhone.Merge(dst, src) +func (m *Contacts_ResolvedPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_ResolvedPeer.Unmarshal(m, b) } -func (m *TLMessageEntityPhone) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityPhone.Size(m) +func (m *Contacts_ResolvedPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_ResolvedPeer.Marshal(b, m, deterministic) } -func (m *TLMessageEntityPhone) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityPhone.DiscardUnknown(m) +func (dst *Contacts_ResolvedPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_ResolvedPeer.Merge(dst, src) +} +func (m *Contacts_ResolvedPeer) XXX_Size() int { + return xxx_messageInfo_Contacts_ResolvedPeer.Size(m) +} +func (m *Contacts_ResolvedPeer) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_ResolvedPeer.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityPhone proto.InternalMessageInfo +var xxx_messageInfo_Contacts_ResolvedPeer proto.InternalMessageInfo -func (m *TLMessageEntityPhone) GetData2() *MessageEntity_Data { +func (m *Contacts_ResolvedPeer) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Contacts_ResolvedPeer) GetData2() *Contacts_ResolvedPeer_Data { if m != nil { return m.Data2 } return nil } -// messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity; -type TLMessageEntityCashtag struct { - Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer; +type TLContactsResolvedPeer struct { + Data2 *Contacts_ResolvedPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEntityCashtag) Reset() { *m = TLMessageEntityCashtag{} } -func (m *TLMessageEntityCashtag) String() string { return proto.CompactTextString(m) } -func (*TLMessageEntityCashtag) ProtoMessage() {} -func (*TLMessageEntityCashtag) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{249} +func (m *TLContactsResolvedPeer) Reset() { *m = TLContactsResolvedPeer{} } +func (m *TLContactsResolvedPeer) String() string { return proto.CompactTextString(m) } +func (*TLContactsResolvedPeer) ProtoMessage() {} +func (*TLContactsResolvedPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{229} } -func (m *TLMessageEntityCashtag) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEntityCashtag.Unmarshal(m, b) +func (m *TLContactsResolvedPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsResolvedPeer.Unmarshal(m, b) } -func (m *TLMessageEntityCashtag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEntityCashtag.Marshal(b, m, deterministic) +func (m *TLContactsResolvedPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsResolvedPeer.Marshal(b, m, deterministic) } -func (dst *TLMessageEntityCashtag) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEntityCashtag.Merge(dst, src) +func (dst *TLContactsResolvedPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsResolvedPeer.Merge(dst, src) } -func (m *TLMessageEntityCashtag) XXX_Size() int { - return xxx_messageInfo_TLMessageEntityCashtag.Size(m) +func (m *TLContactsResolvedPeer) XXX_Size() int { + return xxx_messageInfo_TLContactsResolvedPeer.Size(m) } -func (m *TLMessageEntityCashtag) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEntityCashtag.DiscardUnknown(m) +func (m *TLContactsResolvedPeer) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsResolvedPeer.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEntityCashtag proto.InternalMessageInfo +var xxx_messageInfo_TLContactsResolvedPeer proto.InternalMessageInfo -func (m *TLMessageEntityCashtag) GetData2() *MessageEntity_Data { +func (m *TLContactsResolvedPeer) GetData2() *Contacts_ResolvedPeer_Data { if m != nil { return m.Data2 } @@ -11793,645 +11230,732 @@ func (m *TLMessageEntityCashtag) GetData2() *MessageEntity_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PhoneCall <-- -// + TL_phoneCallEmpty -// + TL_phoneCallWaiting -// + TL_phoneCallRequested -// + TL_phoneCallAccepted -// + TL_phoneCall -// + TL_phoneCallDiscarded +// InlineBotSwitchPM <-- +// + TL_inlineBotSwitchPM // -type PhoneCall_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` - AdminId int32 `protobuf:"varint,4,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"` - ParticipantId int32 `protobuf:"varint,5,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` - Protocol *PhoneCallProtocol `protobuf:"bytes,6,opt,name=protocol,proto3" json:"protocol,omitempty"` - ReceiveDate int32 `protobuf:"varint,7,opt,name=receive_date,json=receiveDate,proto3" json:"receive_date,omitempty"` - GAHash []byte `protobuf:"bytes,8,opt,name=g_a_hash,json=gAHash,proto3" json:"g_a_hash,omitempty"` - GB []byte `protobuf:"bytes,9,opt,name=g_b,json=gB,proto3" json:"g_b,omitempty"` - GAOrB []byte `protobuf:"bytes,10,opt,name=g_a_or_b,json=gAOrB,proto3" json:"g_a_or_b,omitempty"` - KeyFingerprint int64 `protobuf:"varint,11,opt,name=key_fingerprint,json=keyFingerprint,proto3" json:"key_fingerprint,omitempty"` - Connection *PhoneConnection `protobuf:"bytes,12,opt,name=connection,proto3" json:"connection,omitempty"` - AlternativeConnections []*PhoneConnection `protobuf:"bytes,13,rep,name=alternative_connections,json=alternativeConnections,proto3" json:"alternative_connections,omitempty"` - StartDate int32 `protobuf:"varint,14,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` - NeedRating bool `protobuf:"varint,15,opt,name=need_rating,json=needRating,proto3" json:"need_rating,omitempty"` - NeedDebug bool `protobuf:"varint,16,opt,name=need_debug,json=needDebug,proto3" json:"need_debug,omitempty"` - Reason *PhoneCallDiscardReason `protobuf:"bytes,17,opt,name=reason,proto3" json:"reason,omitempty"` - Duration int32 `protobuf:"varint,18,opt,name=duration,proto3" json:"duration,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InlineBotSwitchPM_Data struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + StartParam string `protobuf:"bytes,2,opt,name=start_param,json=startParam,proto3" json:"start_param,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PhoneCall_Data) Reset() { *m = PhoneCall_Data{} } -func (m *PhoneCall_Data) String() string { return proto.CompactTextString(m) } -func (*PhoneCall_Data) ProtoMessage() {} -func (*PhoneCall_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{250} +func (m *InlineBotSwitchPM_Data) Reset() { *m = InlineBotSwitchPM_Data{} } +func (m *InlineBotSwitchPM_Data) String() string { return proto.CompactTextString(m) } +func (*InlineBotSwitchPM_Data) ProtoMessage() {} +func (*InlineBotSwitchPM_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{230} } -func (m *PhoneCall_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneCall_Data.Unmarshal(m, b) +func (m *InlineBotSwitchPM_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InlineBotSwitchPM_Data.Unmarshal(m, b) } -func (m *PhoneCall_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneCall_Data.Marshal(b, m, deterministic) +func (m *InlineBotSwitchPM_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InlineBotSwitchPM_Data.Marshal(b, m, deterministic) } -func (dst *PhoneCall_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneCall_Data.Merge(dst, src) +func (dst *InlineBotSwitchPM_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InlineBotSwitchPM_Data.Merge(dst, src) } -func (m *PhoneCall_Data) XXX_Size() int { - return xxx_messageInfo_PhoneCall_Data.Size(m) +func (m *InlineBotSwitchPM_Data) XXX_Size() int { + return xxx_messageInfo_InlineBotSwitchPM_Data.Size(m) } -func (m *PhoneCall_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneCall_Data.DiscardUnknown(m) +func (m *InlineBotSwitchPM_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InlineBotSwitchPM_Data.DiscardUnknown(m) } -var xxx_messageInfo_PhoneCall_Data proto.InternalMessageInfo +var xxx_messageInfo_InlineBotSwitchPM_Data proto.InternalMessageInfo -func (m *PhoneCall_Data) GetId() int64 { +func (m *InlineBotSwitchPM_Data) GetText() string { if m != nil { - return m.Id + return m.Text } - return 0 + return "" } -func (m *PhoneCall_Data) GetAccessHash() int64 { +func (m *InlineBotSwitchPM_Data) GetStartParam() string { if m != nil { - return m.AccessHash + return m.StartParam } - return 0 + return "" } -func (m *PhoneCall_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 +type InlineBotSwitchPM struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InlineBotSwitchPM_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PhoneCall_Data) GetAdminId() int32 { - if m != nil { - return m.AdminId - } - return 0 +func (m *InlineBotSwitchPM) Reset() { *m = InlineBotSwitchPM{} } +func (m *InlineBotSwitchPM) String() string { return proto.CompactTextString(m) } +func (*InlineBotSwitchPM) ProtoMessage() {} +func (*InlineBotSwitchPM) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{231} } - -func (m *PhoneCall_Data) GetParticipantId() int32 { - if m != nil { - return m.ParticipantId - } - return 0 +func (m *InlineBotSwitchPM) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InlineBotSwitchPM.Unmarshal(m, b) } - -func (m *PhoneCall_Data) GetProtocol() *PhoneCallProtocol { - if m != nil { - return m.Protocol - } - return nil +func (m *InlineBotSwitchPM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InlineBotSwitchPM.Marshal(b, m, deterministic) +} +func (dst *InlineBotSwitchPM) XXX_Merge(src proto.Message) { + xxx_messageInfo_InlineBotSwitchPM.Merge(dst, src) +} +func (m *InlineBotSwitchPM) XXX_Size() int { + return xxx_messageInfo_InlineBotSwitchPM.Size(m) +} +func (m *InlineBotSwitchPM) XXX_DiscardUnknown() { + xxx_messageInfo_InlineBotSwitchPM.DiscardUnknown(m) } -func (m *PhoneCall_Data) GetReceiveDate() int32 { +var xxx_messageInfo_InlineBotSwitchPM proto.InternalMessageInfo + +func (m *InlineBotSwitchPM) GetConstructor() TLConstructor { if m != nil { - return m.ReceiveDate + return m.Constructor } - return 0 + return TLConstructor_CRC32_UNKNOWN } -func (m *PhoneCall_Data) GetGAHash() []byte { +func (m *InlineBotSwitchPM) GetData2() *InlineBotSwitchPM_Data { if m != nil { - return m.GAHash + return m.Data2 } return nil } -func (m *PhoneCall_Data) GetGB() []byte { +// inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM; +type TLInlineBotSwitchPM struct { + Data2 *InlineBotSwitchPM_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInlineBotSwitchPM) Reset() { *m = TLInlineBotSwitchPM{} } +func (m *TLInlineBotSwitchPM) String() string { return proto.CompactTextString(m) } +func (*TLInlineBotSwitchPM) ProtoMessage() {} +func (*TLInlineBotSwitchPM) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{232} +} +func (m *TLInlineBotSwitchPM) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInlineBotSwitchPM.Unmarshal(m, b) +} +func (m *TLInlineBotSwitchPM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInlineBotSwitchPM.Marshal(b, m, deterministic) +} +func (dst *TLInlineBotSwitchPM) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInlineBotSwitchPM.Merge(dst, src) +} +func (m *TLInlineBotSwitchPM) XXX_Size() int { + return xxx_messageInfo_TLInlineBotSwitchPM.Size(m) +} +func (m *TLInlineBotSwitchPM) XXX_DiscardUnknown() { + xxx_messageInfo_TLInlineBotSwitchPM.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInlineBotSwitchPM proto.InternalMessageInfo + +func (m *TLInlineBotSwitchPM) GetData2() *InlineBotSwitchPM_Data { if m != nil { - return m.GB + return m.Data2 } return nil } -func (m *PhoneCall_Data) GetGAOrB() []byte { +// ///////////////////////////////////////////////////////////////////////////// +// DocumentAttribute <-- +// + TL_documentAttributeImageSize +// + TL_documentAttributeAnimated +// + TL_documentAttributeSticker +// + TL_documentAttributeVideo +// + TL_documentAttributeAudio +// + TL_documentAttributeFilename +// + TL_documentAttributeHasStickers +// +type DocumentAttribute_Data struct { + W int32 `protobuf:"varint,1,opt,name=w,proto3" json:"w,omitempty"` + H int32 `protobuf:"varint,2,opt,name=h,proto3" json:"h,omitempty"` + Mask bool `protobuf:"varint,3,opt,name=mask,proto3" json:"mask,omitempty"` + Alt string `protobuf:"bytes,4,opt,name=alt,proto3" json:"alt,omitempty"` + Stickerset *InputStickerSet `protobuf:"bytes,5,opt,name=stickerset,proto3" json:"stickerset,omitempty"` + MaskCoords *MaskCoords `protobuf:"bytes,6,opt,name=mask_coords,json=maskCoords,proto3" json:"mask_coords,omitempty"` + RoundMessage bool `protobuf:"varint,7,opt,name=round_message,json=roundMessage,proto3" json:"round_message,omitempty"` + SupportsStreaming bool `protobuf:"varint,8,opt,name=supports_streaming,json=supportsStreaming,proto3" json:"supports_streaming,omitempty"` + Duration int32 `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty"` + Voice bool `protobuf:"varint,10,opt,name=voice,proto3" json:"voice,omitempty"` + Title string `protobuf:"bytes,11,opt,name=title,proto3" json:"title,omitempty"` + Performer string `protobuf:"bytes,12,opt,name=performer,proto3" json:"performer,omitempty"` + Waveform []byte `protobuf:"bytes,13,opt,name=waveform,proto3" json:"waveform,omitempty"` + FileName string `protobuf:"bytes,14,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DocumentAttribute_Data) Reset() { *m = DocumentAttribute_Data{} } +func (m *DocumentAttribute_Data) String() string { return proto.CompactTextString(m) } +func (*DocumentAttribute_Data) ProtoMessage() {} +func (*DocumentAttribute_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{233} +} +func (m *DocumentAttribute_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DocumentAttribute_Data.Unmarshal(m, b) +} +func (m *DocumentAttribute_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DocumentAttribute_Data.Marshal(b, m, deterministic) +} +func (dst *DocumentAttribute_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_DocumentAttribute_Data.Merge(dst, src) +} +func (m *DocumentAttribute_Data) XXX_Size() int { + return xxx_messageInfo_DocumentAttribute_Data.Size(m) +} +func (m *DocumentAttribute_Data) XXX_DiscardUnknown() { + xxx_messageInfo_DocumentAttribute_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_DocumentAttribute_Data proto.InternalMessageInfo + +func (m *DocumentAttribute_Data) GetW() int32 { if m != nil { - return m.GAOrB + return m.W } - return nil + return 0 } -func (m *PhoneCall_Data) GetKeyFingerprint() int64 { +func (m *DocumentAttribute_Data) GetH() int32 { if m != nil { - return m.KeyFingerprint + return m.H } return 0 } -func (m *PhoneCall_Data) GetConnection() *PhoneConnection { +func (m *DocumentAttribute_Data) GetMask() bool { if m != nil { - return m.Connection + return m.Mask + } + return false +} + +func (m *DocumentAttribute_Data) GetAlt() string { + if m != nil { + return m.Alt + } + return "" +} + +func (m *DocumentAttribute_Data) GetStickerset() *InputStickerSet { + if m != nil { + return m.Stickerset } return nil } -func (m *PhoneCall_Data) GetAlternativeConnections() []*PhoneConnection { +func (m *DocumentAttribute_Data) GetMaskCoords() *MaskCoords { if m != nil { - return m.AlternativeConnections + return m.MaskCoords } return nil } -func (m *PhoneCall_Data) GetStartDate() int32 { +func (m *DocumentAttribute_Data) GetRoundMessage() bool { if m != nil { - return m.StartDate + return m.RoundMessage } - return 0 + return false } -func (m *PhoneCall_Data) GetNeedRating() bool { +func (m *DocumentAttribute_Data) GetSupportsStreaming() bool { if m != nil { - return m.NeedRating + return m.SupportsStreaming } return false } -func (m *PhoneCall_Data) GetNeedDebug() bool { +func (m *DocumentAttribute_Data) GetDuration() int32 { if m != nil { - return m.NeedDebug + return m.Duration + } + return 0 +} + +func (m *DocumentAttribute_Data) GetVoice() bool { + if m != nil { + return m.Voice } return false } -func (m *PhoneCall_Data) GetReason() *PhoneCallDiscardReason { +func (m *DocumentAttribute_Data) GetTitle() string { if m != nil { - return m.Reason + return m.Title + } + return "" +} + +func (m *DocumentAttribute_Data) GetPerformer() string { + if m != nil { + return m.Performer + } + return "" +} + +func (m *DocumentAttribute_Data) GetWaveform() []byte { + if m != nil { + return m.Waveform } return nil } -func (m *PhoneCall_Data) GetDuration() int32 { +func (m *DocumentAttribute_Data) GetFileName() string { if m != nil { - return m.Duration + return m.FileName } - return 0 + return "" } -type PhoneCall struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DocumentAttribute struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PhoneCall) Reset() { *m = PhoneCall{} } -func (m *PhoneCall) String() string { return proto.CompactTextString(m) } -func (*PhoneCall) ProtoMessage() {} -func (*PhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{251} +func (m *DocumentAttribute) Reset() { *m = DocumentAttribute{} } +func (m *DocumentAttribute) String() string { return proto.CompactTextString(m) } +func (*DocumentAttribute) ProtoMessage() {} +func (*DocumentAttribute) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{234} } -func (m *PhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneCall.Unmarshal(m, b) +func (m *DocumentAttribute) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DocumentAttribute.Unmarshal(m, b) } -func (m *PhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneCall.Marshal(b, m, deterministic) +func (m *DocumentAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DocumentAttribute.Marshal(b, m, deterministic) } -func (dst *PhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneCall.Merge(dst, src) +func (dst *DocumentAttribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_DocumentAttribute.Merge(dst, src) } -func (m *PhoneCall) XXX_Size() int { - return xxx_messageInfo_PhoneCall.Size(m) +func (m *DocumentAttribute) XXX_Size() int { + return xxx_messageInfo_DocumentAttribute.Size(m) } -func (m *PhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneCall.DiscardUnknown(m) +func (m *DocumentAttribute) XXX_DiscardUnknown() { + xxx_messageInfo_DocumentAttribute.DiscardUnknown(m) } -var xxx_messageInfo_PhoneCall proto.InternalMessageInfo +var xxx_messageInfo_DocumentAttribute proto.InternalMessageInfo -func (m *PhoneCall) GetConstructor() TLConstructor { +func (m *DocumentAttribute) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PhoneCall) GetData2() *PhoneCall_Data { +func (m *DocumentAttribute) GetData2() *DocumentAttribute_Data { if m != nil { return m.Data2 } return nil } -// phoneCallEmpty#5366c915 id:long = PhoneCall; -type TLPhoneCallEmpty struct { - Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; +type TLDocumentAttributeImageSize struct { + Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneCallEmpty) Reset() { *m = TLPhoneCallEmpty{} } -func (m *TLPhoneCallEmpty) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallEmpty) ProtoMessage() {} -func (*TLPhoneCallEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{252} +func (m *TLDocumentAttributeImageSize) Reset() { *m = TLDocumentAttributeImageSize{} } +func (m *TLDocumentAttributeImageSize) String() string { return proto.CompactTextString(m) } +func (*TLDocumentAttributeImageSize) ProtoMessage() {} +func (*TLDocumentAttributeImageSize) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{235} } -func (m *TLPhoneCallEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallEmpty.Unmarshal(m, b) +func (m *TLDocumentAttributeImageSize) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocumentAttributeImageSize.Unmarshal(m, b) } -func (m *TLPhoneCallEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallEmpty.Marshal(b, m, deterministic) +func (m *TLDocumentAttributeImageSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocumentAttributeImageSize.Marshal(b, m, deterministic) } -func (dst *TLPhoneCallEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallEmpty.Merge(dst, src) +func (dst *TLDocumentAttributeImageSize) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocumentAttributeImageSize.Merge(dst, src) } -func (m *TLPhoneCallEmpty) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallEmpty.Size(m) +func (m *TLDocumentAttributeImageSize) XXX_Size() int { + return xxx_messageInfo_TLDocumentAttributeImageSize.Size(m) } -func (m *TLPhoneCallEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallEmpty.DiscardUnknown(m) +func (m *TLDocumentAttributeImageSize) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocumentAttributeImageSize.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneCallEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLDocumentAttributeImageSize proto.InternalMessageInfo -func (m *TLPhoneCallEmpty) GetData2() *PhoneCall_Data { +func (m *TLDocumentAttributeImageSize) GetData2() *DocumentAttribute_Data { if m != nil { return m.Data2 } return nil } -// phoneCallWaiting#1b8f4ad1 flags:# id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; -type TLPhoneCallWaiting struct { - Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// documentAttributeAnimated#11b58939 = DocumentAttribute; +type TLDocumentAttributeAnimated struct { + Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneCallWaiting) Reset() { *m = TLPhoneCallWaiting{} } -func (m *TLPhoneCallWaiting) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallWaiting) ProtoMessage() {} -func (*TLPhoneCallWaiting) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{253} +func (m *TLDocumentAttributeAnimated) Reset() { *m = TLDocumentAttributeAnimated{} } +func (m *TLDocumentAttributeAnimated) String() string { return proto.CompactTextString(m) } +func (*TLDocumentAttributeAnimated) ProtoMessage() {} +func (*TLDocumentAttributeAnimated) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{236} } -func (m *TLPhoneCallWaiting) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallWaiting.Unmarshal(m, b) +func (m *TLDocumentAttributeAnimated) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocumentAttributeAnimated.Unmarshal(m, b) } -func (m *TLPhoneCallWaiting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallWaiting.Marshal(b, m, deterministic) +func (m *TLDocumentAttributeAnimated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocumentAttributeAnimated.Marshal(b, m, deterministic) } -func (dst *TLPhoneCallWaiting) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallWaiting.Merge(dst, src) +func (dst *TLDocumentAttributeAnimated) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocumentAttributeAnimated.Merge(dst, src) } -func (m *TLPhoneCallWaiting) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallWaiting.Size(m) +func (m *TLDocumentAttributeAnimated) XXX_Size() int { + return xxx_messageInfo_TLDocumentAttributeAnimated.Size(m) } -func (m *TLPhoneCallWaiting) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallWaiting.DiscardUnknown(m) +func (m *TLDocumentAttributeAnimated) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocumentAttributeAnimated.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneCallWaiting proto.InternalMessageInfo +var xxx_messageInfo_TLDocumentAttributeAnimated proto.InternalMessageInfo -func (m *TLPhoneCallWaiting) GetData2() *PhoneCall_Data { +func (m *TLDocumentAttributeAnimated) GetData2() *DocumentAttribute_Data { if m != nil { return m.Data2 } return nil } -// phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; -type TLPhoneCallRequested struct { - Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute; +type TLDocumentAttributeSticker struct { + Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneCallRequested) Reset() { *m = TLPhoneCallRequested{} } -func (m *TLPhoneCallRequested) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallRequested) ProtoMessage() {} -func (*TLPhoneCallRequested) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{254} +func (m *TLDocumentAttributeSticker) Reset() { *m = TLDocumentAttributeSticker{} } +func (m *TLDocumentAttributeSticker) String() string { return proto.CompactTextString(m) } +func (*TLDocumentAttributeSticker) ProtoMessage() {} +func (*TLDocumentAttributeSticker) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{237} } -func (m *TLPhoneCallRequested) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallRequested.Unmarshal(m, b) +func (m *TLDocumentAttributeSticker) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocumentAttributeSticker.Unmarshal(m, b) } -func (m *TLPhoneCallRequested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallRequested.Marshal(b, m, deterministic) +func (m *TLDocumentAttributeSticker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocumentAttributeSticker.Marshal(b, m, deterministic) } -func (dst *TLPhoneCallRequested) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallRequested.Merge(dst, src) +func (dst *TLDocumentAttributeSticker) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocumentAttributeSticker.Merge(dst, src) } -func (m *TLPhoneCallRequested) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallRequested.Size(m) +func (m *TLDocumentAttributeSticker) XXX_Size() int { + return xxx_messageInfo_TLDocumentAttributeSticker.Size(m) } -func (m *TLPhoneCallRequested) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallRequested.DiscardUnknown(m) +func (m *TLDocumentAttributeSticker) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocumentAttributeSticker.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneCallRequested proto.InternalMessageInfo +var xxx_messageInfo_TLDocumentAttributeSticker proto.InternalMessageInfo -func (m *TLPhoneCallRequested) GetData2() *PhoneCall_Data { +func (m *TLDocumentAttributeSticker) GetData2() *DocumentAttribute_Data { if m != nil { return m.Data2 } return nil } -// phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; -type TLPhoneCallAccepted struct { - Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute; +type TLDocumentAttributeVideo struct { + Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneCallAccepted) Reset() { *m = TLPhoneCallAccepted{} } -func (m *TLPhoneCallAccepted) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallAccepted) ProtoMessage() {} -func (*TLPhoneCallAccepted) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{255} +func (m *TLDocumentAttributeVideo) Reset() { *m = TLDocumentAttributeVideo{} } +func (m *TLDocumentAttributeVideo) String() string { return proto.CompactTextString(m) } +func (*TLDocumentAttributeVideo) ProtoMessage() {} +func (*TLDocumentAttributeVideo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{238} } -func (m *TLPhoneCallAccepted) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallAccepted.Unmarshal(m, b) +func (m *TLDocumentAttributeVideo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocumentAttributeVideo.Unmarshal(m, b) } -func (m *TLPhoneCallAccepted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallAccepted.Marshal(b, m, deterministic) +func (m *TLDocumentAttributeVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocumentAttributeVideo.Marshal(b, m, deterministic) } -func (dst *TLPhoneCallAccepted) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallAccepted.Merge(dst, src) +func (dst *TLDocumentAttributeVideo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocumentAttributeVideo.Merge(dst, src) } -func (m *TLPhoneCallAccepted) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallAccepted.Size(m) +func (m *TLDocumentAttributeVideo) XXX_Size() int { + return xxx_messageInfo_TLDocumentAttributeVideo.Size(m) } -func (m *TLPhoneCallAccepted) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallAccepted.DiscardUnknown(m) +func (m *TLDocumentAttributeVideo) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocumentAttributeVideo.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneCallAccepted proto.InternalMessageInfo +var xxx_messageInfo_TLDocumentAttributeVideo proto.InternalMessageInfo -func (m *TLPhoneCallAccepted) GetData2() *PhoneCall_Data { +func (m *TLDocumentAttributeVideo) GetData2() *DocumentAttribute_Data { if m != nil { return m.Data2 } return nil } -// phoneCall#ffe6ab67 id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connection:PhoneConnection alternative_connections:Vector start_date:int = PhoneCall; -type TLPhoneCall struct { - Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; +type TLDocumentAttributeAudio struct { + Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneCall) Reset() { *m = TLPhoneCall{} } -func (m *TLPhoneCall) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCall) ProtoMessage() {} -func (*TLPhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{256} +func (m *TLDocumentAttributeAudio) Reset() { *m = TLDocumentAttributeAudio{} } +func (m *TLDocumentAttributeAudio) String() string { return proto.CompactTextString(m) } +func (*TLDocumentAttributeAudio) ProtoMessage() {} +func (*TLDocumentAttributeAudio) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{239} } -func (m *TLPhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCall.Unmarshal(m, b) +func (m *TLDocumentAttributeAudio) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocumentAttributeAudio.Unmarshal(m, b) } -func (m *TLPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCall.Marshal(b, m, deterministic) +func (m *TLDocumentAttributeAudio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocumentAttributeAudio.Marshal(b, m, deterministic) } -func (dst *TLPhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCall.Merge(dst, src) +func (dst *TLDocumentAttributeAudio) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocumentAttributeAudio.Merge(dst, src) } -func (m *TLPhoneCall) XXX_Size() int { - return xxx_messageInfo_TLPhoneCall.Size(m) +func (m *TLDocumentAttributeAudio) XXX_Size() int { + return xxx_messageInfo_TLDocumentAttributeAudio.Size(m) } -func (m *TLPhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCall.DiscardUnknown(m) +func (m *TLDocumentAttributeAudio) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocumentAttributeAudio.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneCall proto.InternalMessageInfo +var xxx_messageInfo_TLDocumentAttributeAudio proto.InternalMessageInfo -func (m *TLPhoneCall) GetData2() *PhoneCall_Data { +func (m *TLDocumentAttributeAudio) GetData2() *DocumentAttribute_Data { if m != nil { return m.Data2 } return nil } -// phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; -type TLPhoneCallDiscarded struct { - Data2 *PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// documentAttributeFilename#15590068 file_name:string = DocumentAttribute; +type TLDocumentAttributeFilename struct { + Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneCallDiscarded) Reset() { *m = TLPhoneCallDiscarded{} } -func (m *TLPhoneCallDiscarded) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallDiscarded) ProtoMessage() {} -func (*TLPhoneCallDiscarded) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{257} +func (m *TLDocumentAttributeFilename) Reset() { *m = TLDocumentAttributeFilename{} } +func (m *TLDocumentAttributeFilename) String() string { return proto.CompactTextString(m) } +func (*TLDocumentAttributeFilename) ProtoMessage() {} +func (*TLDocumentAttributeFilename) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{240} } -func (m *TLPhoneCallDiscarded) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallDiscarded.Unmarshal(m, b) +func (m *TLDocumentAttributeFilename) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocumentAttributeFilename.Unmarshal(m, b) } -func (m *TLPhoneCallDiscarded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallDiscarded.Marshal(b, m, deterministic) +func (m *TLDocumentAttributeFilename) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocumentAttributeFilename.Marshal(b, m, deterministic) } -func (dst *TLPhoneCallDiscarded) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallDiscarded.Merge(dst, src) +func (dst *TLDocumentAttributeFilename) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocumentAttributeFilename.Merge(dst, src) } -func (m *TLPhoneCallDiscarded) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallDiscarded.Size(m) +func (m *TLDocumentAttributeFilename) XXX_Size() int { + return xxx_messageInfo_TLDocumentAttributeFilename.Size(m) } -func (m *TLPhoneCallDiscarded) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallDiscarded.DiscardUnknown(m) +func (m *TLDocumentAttributeFilename) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocumentAttributeFilename.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneCallDiscarded proto.InternalMessageInfo +var xxx_messageInfo_TLDocumentAttributeFilename proto.InternalMessageInfo -func (m *TLPhoneCallDiscarded) GetData2() *PhoneCall_Data { +func (m *TLDocumentAttributeFilename) GetData2() *DocumentAttribute_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_FavedStickers <-- -// + TL_messages_favedStickersNotModified -// + TL_messages_favedStickers -// -type Messages_FavedStickers_Data struct { - Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - Packs []*StickerPack `protobuf:"bytes,2,rep,name=packs,proto3" json:"packs,omitempty"` - Stickers []*Document `protobuf:"bytes,3,rep,name=stickers,proto3" json:"stickers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// documentAttributeHasStickers#9801d2f7 = DocumentAttribute; +type TLDocumentAttributeHasStickers struct { + Data2 *DocumentAttribute_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_FavedStickers_Data) Reset() { *m = Messages_FavedStickers_Data{} } -func (m *Messages_FavedStickers_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_FavedStickers_Data) ProtoMessage() {} -func (*Messages_FavedStickers_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{258} -} -func (m *Messages_FavedStickers_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_FavedStickers_Data.Unmarshal(m, b) +func (m *TLDocumentAttributeHasStickers) Reset() { *m = TLDocumentAttributeHasStickers{} } +func (m *TLDocumentAttributeHasStickers) String() string { return proto.CompactTextString(m) } +func (*TLDocumentAttributeHasStickers) ProtoMessage() {} +func (*TLDocumentAttributeHasStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{241} } -func (m *Messages_FavedStickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_FavedStickers_Data.Marshal(b, m, deterministic) +func (m *TLDocumentAttributeHasStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDocumentAttributeHasStickers.Unmarshal(m, b) } -func (dst *Messages_FavedStickers_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_FavedStickers_Data.Merge(dst, src) +func (m *TLDocumentAttributeHasStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDocumentAttributeHasStickers.Marshal(b, m, deterministic) } -func (m *Messages_FavedStickers_Data) XXX_Size() int { - return xxx_messageInfo_Messages_FavedStickers_Data.Size(m) +func (dst *TLDocumentAttributeHasStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDocumentAttributeHasStickers.Merge(dst, src) } -func (m *Messages_FavedStickers_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_FavedStickers_Data.DiscardUnknown(m) +func (m *TLDocumentAttributeHasStickers) XXX_Size() int { + return xxx_messageInfo_TLDocumentAttributeHasStickers.Size(m) } - -var xxx_messageInfo_Messages_FavedStickers_Data proto.InternalMessageInfo - -func (m *Messages_FavedStickers_Data) GetHash() int32 { - if m != nil { - return m.Hash - } - return 0 +func (m *TLDocumentAttributeHasStickers) XXX_DiscardUnknown() { + xxx_messageInfo_TLDocumentAttributeHasStickers.DiscardUnknown(m) } -func (m *Messages_FavedStickers_Data) GetPacks() []*StickerPack { - if m != nil { - return m.Packs - } - return nil -} +var xxx_messageInfo_TLDocumentAttributeHasStickers proto.InternalMessageInfo -func (m *Messages_FavedStickers_Data) GetStickers() []*Document { +func (m *TLDocumentAttributeHasStickers) GetData2() *DocumentAttribute_Data { if m != nil { - return m.Stickers + return m.Data2 } return nil } -type Messages_FavedStickers struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_FavedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// CdnConfig <-- +// + TL_cdnConfig +// +type CdnConfig_Data struct { + PublicKeys []*CdnPublicKey `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_FavedStickers) Reset() { *m = Messages_FavedStickers{} } -func (m *Messages_FavedStickers) String() string { return proto.CompactTextString(m) } -func (*Messages_FavedStickers) ProtoMessage() {} -func (*Messages_FavedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{259} +func (m *CdnConfig_Data) Reset() { *m = CdnConfig_Data{} } +func (m *CdnConfig_Data) String() string { return proto.CompactTextString(m) } +func (*CdnConfig_Data) ProtoMessage() {} +func (*CdnConfig_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{242} } -func (m *Messages_FavedStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_FavedStickers.Unmarshal(m, b) +func (m *CdnConfig_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CdnConfig_Data.Unmarshal(m, b) } -func (m *Messages_FavedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_FavedStickers.Marshal(b, m, deterministic) +func (m *CdnConfig_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CdnConfig_Data.Marshal(b, m, deterministic) } -func (dst *Messages_FavedStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_FavedStickers.Merge(dst, src) +func (dst *CdnConfig_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_CdnConfig_Data.Merge(dst, src) } -func (m *Messages_FavedStickers) XXX_Size() int { - return xxx_messageInfo_Messages_FavedStickers.Size(m) +func (m *CdnConfig_Data) XXX_Size() int { + return xxx_messageInfo_CdnConfig_Data.Size(m) } -func (m *Messages_FavedStickers) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_FavedStickers.DiscardUnknown(m) +func (m *CdnConfig_Data) XXX_DiscardUnknown() { + xxx_messageInfo_CdnConfig_Data.DiscardUnknown(m) } -var xxx_messageInfo_Messages_FavedStickers proto.InternalMessageInfo - -func (m *Messages_FavedStickers) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_CdnConfig_Data proto.InternalMessageInfo -func (m *Messages_FavedStickers) GetData2() *Messages_FavedStickers_Data { +func (m *CdnConfig_Data) GetPublicKeys() []*CdnPublicKey { if m != nil { - return m.Data2 + return m.PublicKeys } return nil } -// messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers; -type TLMessagesFavedStickersNotModified struct { - Data2 *Messages_FavedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type CdnConfig struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *CdnConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesFavedStickersNotModified) Reset() { *m = TLMessagesFavedStickersNotModified{} } -func (m *TLMessagesFavedStickersNotModified) String() string { return proto.CompactTextString(m) } -func (*TLMessagesFavedStickersNotModified) ProtoMessage() {} -func (*TLMessagesFavedStickersNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{260} +func (m *CdnConfig) Reset() { *m = CdnConfig{} } +func (m *CdnConfig) String() string { return proto.CompactTextString(m) } +func (*CdnConfig) ProtoMessage() {} +func (*CdnConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{243} } -func (m *TLMessagesFavedStickersNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesFavedStickersNotModified.Unmarshal(m, b) +func (m *CdnConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CdnConfig.Unmarshal(m, b) } -func (m *TLMessagesFavedStickersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesFavedStickersNotModified.Marshal(b, m, deterministic) +func (m *CdnConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CdnConfig.Marshal(b, m, deterministic) } -func (dst *TLMessagesFavedStickersNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesFavedStickersNotModified.Merge(dst, src) +func (dst *CdnConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CdnConfig.Merge(dst, src) } -func (m *TLMessagesFavedStickersNotModified) XXX_Size() int { - return xxx_messageInfo_TLMessagesFavedStickersNotModified.Size(m) +func (m *CdnConfig) XXX_Size() int { + return xxx_messageInfo_CdnConfig.Size(m) } -func (m *TLMessagesFavedStickersNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesFavedStickersNotModified.DiscardUnknown(m) +func (m *CdnConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CdnConfig.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesFavedStickersNotModified proto.InternalMessageInfo +var xxx_messageInfo_CdnConfig proto.InternalMessageInfo -func (m *TLMessagesFavedStickersNotModified) GetData2() *Messages_FavedStickers_Data { +func (m *CdnConfig) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *CdnConfig) GetData2() *CdnConfig_Data { if m != nil { return m.Data2 } return nil } -// messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers; -type TLMessagesFavedStickers struct { - Data2 *Messages_FavedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// cdnConfig#5725e40a public_keys:Vector = CdnConfig; +type TLCdnConfig struct { + Data2 *CdnConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesFavedStickers) Reset() { *m = TLMessagesFavedStickers{} } -func (m *TLMessagesFavedStickers) String() string { return proto.CompactTextString(m) } -func (*TLMessagesFavedStickers) ProtoMessage() {} -func (*TLMessagesFavedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{261} +func (m *TLCdnConfig) Reset() { *m = TLCdnConfig{} } +func (m *TLCdnConfig) String() string { return proto.CompactTextString(m) } +func (*TLCdnConfig) ProtoMessage() {} +func (*TLCdnConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{244} } -func (m *TLMessagesFavedStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesFavedStickers.Unmarshal(m, b) +func (m *TLCdnConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLCdnConfig.Unmarshal(m, b) } -func (m *TLMessagesFavedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesFavedStickers.Marshal(b, m, deterministic) +func (m *TLCdnConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLCdnConfig.Marshal(b, m, deterministic) } -func (dst *TLMessagesFavedStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesFavedStickers.Merge(dst, src) +func (dst *TLCdnConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLCdnConfig.Merge(dst, src) } -func (m *TLMessagesFavedStickers) XXX_Size() int { - return xxx_messageInfo_TLMessagesFavedStickers.Size(m) +func (m *TLCdnConfig) XXX_Size() int { + return xxx_messageInfo_TLCdnConfig.Size(m) } -func (m *TLMessagesFavedStickers) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesFavedStickers.DiscardUnknown(m) +func (m *TLCdnConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TLCdnConfig.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesFavedStickers proto.InternalMessageInfo +var xxx_messageInfo_TLCdnConfig proto.InternalMessageInfo -func (m *TLMessagesFavedStickers) GetData2() *Messages_FavedStickers_Data { +func (m *TLCdnConfig) GetData2() *CdnConfig_Data { if m != nil { return m.Data2 } @@ -12439,677 +11963,627 @@ func (m *TLMessagesFavedStickers) GetData2() *Messages_FavedStickers_Data { } // ///////////////////////////////////////////////////////////////////////////// -// messages_Dialogs <-- -// + TL_messages_dialogs -// + TL_messages_dialogsSlice -// + TL_messages_dialogsNotModified +// messages_FoundStickerSets <-- +// + TL_messages_foundStickerSetsNotModified +// + TL_messages_foundStickerSets // -type Messages_Dialogs_Data struct { - Dialogs []*Dialog `protobuf:"bytes,1,rep,name=dialogs,proto3" json:"dialogs,omitempty"` - Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` - Chats []*Chat `protobuf:"bytes,3,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` - Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_FoundStickerSets_Data struct { + Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + Sets []*StickerSetCovered `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_Dialogs_Data) Reset() { *m = Messages_Dialogs_Data{} } -func (m *Messages_Dialogs_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_Dialogs_Data) ProtoMessage() {} -func (*Messages_Dialogs_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{262} -} -func (m *Messages_Dialogs_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_Dialogs_Data.Unmarshal(m, b) +func (m *Messages_FoundStickerSets_Data) Reset() { *m = Messages_FoundStickerSets_Data{} } +func (m *Messages_FoundStickerSets_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_FoundStickerSets_Data) ProtoMessage() {} +func (*Messages_FoundStickerSets_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{245} } -func (m *Messages_Dialogs_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_Dialogs_Data.Marshal(b, m, deterministic) +func (m *Messages_FoundStickerSets_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_FoundStickerSets_Data.Unmarshal(m, b) } -func (dst *Messages_Dialogs_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_Dialogs_Data.Merge(dst, src) +func (m *Messages_FoundStickerSets_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_FoundStickerSets_Data.Marshal(b, m, deterministic) } -func (m *Messages_Dialogs_Data) XXX_Size() int { - return xxx_messageInfo_Messages_Dialogs_Data.Size(m) +func (dst *Messages_FoundStickerSets_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_FoundStickerSets_Data.Merge(dst, src) } -func (m *Messages_Dialogs_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_Dialogs_Data.DiscardUnknown(m) +func (m *Messages_FoundStickerSets_Data) XXX_Size() int { + return xxx_messageInfo_Messages_FoundStickerSets_Data.Size(m) } - -var xxx_messageInfo_Messages_Dialogs_Data proto.InternalMessageInfo - -func (m *Messages_Dialogs_Data) GetDialogs() []*Dialog { - if m != nil { - return m.Dialogs - } - return nil +func (m *Messages_FoundStickerSets_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_FoundStickerSets_Data.DiscardUnknown(m) } -func (m *Messages_Dialogs_Data) GetMessages() []*Message { - if m != nil { - return m.Messages - } - return nil -} +var xxx_messageInfo_Messages_FoundStickerSets_Data proto.InternalMessageInfo -func (m *Messages_Dialogs_Data) GetChats() []*Chat { +func (m *Messages_FoundStickerSets_Data) GetHash() int32 { if m != nil { - return m.Chats + return m.Hash } - return nil + return 0 } -func (m *Messages_Dialogs_Data) GetUsers() []*User { +func (m *Messages_FoundStickerSets_Data) GetSets() []*StickerSetCovered { if m != nil { - return m.Users + return m.Sets } return nil } -func (m *Messages_Dialogs_Data) GetCount() int32 { - if m != nil { - return m.Count - } - return 0 -} - -type Messages_Dialogs struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_Dialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_FoundStickerSets struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_FoundStickerSets_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_Dialogs) Reset() { *m = Messages_Dialogs{} } -func (m *Messages_Dialogs) String() string { return proto.CompactTextString(m) } -func (*Messages_Dialogs) ProtoMessage() {} -func (*Messages_Dialogs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{263} +func (m *Messages_FoundStickerSets) Reset() { *m = Messages_FoundStickerSets{} } +func (m *Messages_FoundStickerSets) String() string { return proto.CompactTextString(m) } +func (*Messages_FoundStickerSets) ProtoMessage() {} +func (*Messages_FoundStickerSets) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{246} } -func (m *Messages_Dialogs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_Dialogs.Unmarshal(m, b) +func (m *Messages_FoundStickerSets) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_FoundStickerSets.Unmarshal(m, b) } -func (m *Messages_Dialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_Dialogs.Marshal(b, m, deterministic) +func (m *Messages_FoundStickerSets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_FoundStickerSets.Marshal(b, m, deterministic) } -func (dst *Messages_Dialogs) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_Dialogs.Merge(dst, src) +func (dst *Messages_FoundStickerSets) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_FoundStickerSets.Merge(dst, src) } -func (m *Messages_Dialogs) XXX_Size() int { - return xxx_messageInfo_Messages_Dialogs.Size(m) +func (m *Messages_FoundStickerSets) XXX_Size() int { + return xxx_messageInfo_Messages_FoundStickerSets.Size(m) } -func (m *Messages_Dialogs) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_Dialogs.DiscardUnknown(m) +func (m *Messages_FoundStickerSets) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_FoundStickerSets.DiscardUnknown(m) } -var xxx_messageInfo_Messages_Dialogs proto.InternalMessageInfo +var xxx_messageInfo_Messages_FoundStickerSets proto.InternalMessageInfo -func (m *Messages_Dialogs) GetConstructor() TLConstructor { +func (m *Messages_FoundStickerSets) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_Dialogs) GetData2() *Messages_Dialogs_Data { +func (m *Messages_FoundStickerSets) GetData2() *Messages_FoundStickerSets_Data { if m != nil { return m.Data2 } return nil } -// messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; -type TLMessagesDialogs struct { - Data2 *Messages_Dialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets; +type TLMessagesFoundStickerSetsNotModified struct { + Data2 *Messages_FoundStickerSets_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesDialogs) Reset() { *m = TLMessagesDialogs{} } -func (m *TLMessagesDialogs) String() string { return proto.CompactTextString(m) } -func (*TLMessagesDialogs) ProtoMessage() {} -func (*TLMessagesDialogs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{264} +func (m *TLMessagesFoundStickerSetsNotModified) Reset() { *m = TLMessagesFoundStickerSetsNotModified{} } +func (m *TLMessagesFoundStickerSetsNotModified) String() string { return proto.CompactTextString(m) } +func (*TLMessagesFoundStickerSetsNotModified) ProtoMessage() {} +func (*TLMessagesFoundStickerSetsNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{247} } -func (m *TLMessagesDialogs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesDialogs.Unmarshal(m, b) +func (m *TLMessagesFoundStickerSetsNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.Unmarshal(m, b) } -func (m *TLMessagesDialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesDialogs.Marshal(b, m, deterministic) +func (m *TLMessagesFoundStickerSetsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.Marshal(b, m, deterministic) } -func (dst *TLMessagesDialogs) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesDialogs.Merge(dst, src) +func (dst *TLMessagesFoundStickerSetsNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.Merge(dst, src) } -func (m *TLMessagesDialogs) XXX_Size() int { - return xxx_messageInfo_TLMessagesDialogs.Size(m) +func (m *TLMessagesFoundStickerSetsNotModified) XXX_Size() int { + return xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.Size(m) } -func (m *TLMessagesDialogs) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesDialogs.DiscardUnknown(m) +func (m *TLMessagesFoundStickerSetsNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesDialogs proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesFoundStickerSetsNotModified proto.InternalMessageInfo -func (m *TLMessagesDialogs) GetData2() *Messages_Dialogs_Data { +func (m *TLMessagesFoundStickerSetsNotModified) GetData2() *Messages_FoundStickerSets_Data { if m != nil { return m.Data2 } return nil } -// messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; -type TLMessagesDialogsSlice struct { - Data2 *Messages_Dialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets; +type TLMessagesFoundStickerSets struct { + Data2 *Messages_FoundStickerSets_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesDialogsSlice) Reset() { *m = TLMessagesDialogsSlice{} } -func (m *TLMessagesDialogsSlice) String() string { return proto.CompactTextString(m) } -func (*TLMessagesDialogsSlice) ProtoMessage() {} -func (*TLMessagesDialogsSlice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{265} +func (m *TLMessagesFoundStickerSets) Reset() { *m = TLMessagesFoundStickerSets{} } +func (m *TLMessagesFoundStickerSets) String() string { return proto.CompactTextString(m) } +func (*TLMessagesFoundStickerSets) ProtoMessage() {} +func (*TLMessagesFoundStickerSets) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{248} } -func (m *TLMessagesDialogsSlice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesDialogsSlice.Unmarshal(m, b) +func (m *TLMessagesFoundStickerSets) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesFoundStickerSets.Unmarshal(m, b) } -func (m *TLMessagesDialogsSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesDialogsSlice.Marshal(b, m, deterministic) +func (m *TLMessagesFoundStickerSets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesFoundStickerSets.Marshal(b, m, deterministic) } -func (dst *TLMessagesDialogsSlice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesDialogsSlice.Merge(dst, src) +func (dst *TLMessagesFoundStickerSets) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesFoundStickerSets.Merge(dst, src) } -func (m *TLMessagesDialogsSlice) XXX_Size() int { - return xxx_messageInfo_TLMessagesDialogsSlice.Size(m) +func (m *TLMessagesFoundStickerSets) XXX_Size() int { + return xxx_messageInfo_TLMessagesFoundStickerSets.Size(m) } -func (m *TLMessagesDialogsSlice) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesDialogsSlice.DiscardUnknown(m) +func (m *TLMessagesFoundStickerSets) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesFoundStickerSets.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesDialogsSlice proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesFoundStickerSets proto.InternalMessageInfo -func (m *TLMessagesDialogsSlice) GetData2() *Messages_Dialogs_Data { +func (m *TLMessagesFoundStickerSets) GetData2() *Messages_FoundStickerSets_Data { if m != nil { return m.Data2 } return nil } -// messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs; -type TLMessagesDialogsNotModified struct { - Data2 *Messages_Dialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// auth_SentCode <-- +// + TL_auth_sentCode +// +type Auth_SentCode_Data struct { + PhoneRegistered bool `protobuf:"varint,1,opt,name=phone_registered,json=phoneRegistered,proto3" json:"phone_registered,omitempty"` + Type *Auth_SentCodeType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + PhoneCodeHash string `protobuf:"bytes,3,opt,name=phone_code_hash,json=phoneCodeHash,proto3" json:"phone_code_hash,omitempty"` + NextType *Auth_CodeType `protobuf:"bytes,4,opt,name=next_type,json=nextType,proto3" json:"next_type,omitempty"` + Timeout int32 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` + TermsOfService *Help_TermsOfService `protobuf:"bytes,6,opt,name=terms_of_service,json=termsOfService,proto3" json:"terms_of_service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesDialogsNotModified) Reset() { *m = TLMessagesDialogsNotModified{} } -func (m *TLMessagesDialogsNotModified) String() string { return proto.CompactTextString(m) } -func (*TLMessagesDialogsNotModified) ProtoMessage() {} -func (*TLMessagesDialogsNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{266} +func (m *Auth_SentCode_Data) Reset() { *m = Auth_SentCode_Data{} } +func (m *Auth_SentCode_Data) String() string { return proto.CompactTextString(m) } +func (*Auth_SentCode_Data) ProtoMessage() {} +func (*Auth_SentCode_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{249} } -func (m *TLMessagesDialogsNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesDialogsNotModified.Unmarshal(m, b) +func (m *Auth_SentCode_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_SentCode_Data.Unmarshal(m, b) } -func (m *TLMessagesDialogsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesDialogsNotModified.Marshal(b, m, deterministic) +func (m *Auth_SentCode_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_SentCode_Data.Marshal(b, m, deterministic) } -func (dst *TLMessagesDialogsNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesDialogsNotModified.Merge(dst, src) +func (dst *Auth_SentCode_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_SentCode_Data.Merge(dst, src) } -func (m *TLMessagesDialogsNotModified) XXX_Size() int { - return xxx_messageInfo_TLMessagesDialogsNotModified.Size(m) +func (m *Auth_SentCode_Data) XXX_Size() int { + return xxx_messageInfo_Auth_SentCode_Data.Size(m) } -func (m *TLMessagesDialogsNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesDialogsNotModified.DiscardUnknown(m) +func (m *Auth_SentCode_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_SentCode_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesDialogsNotModified proto.InternalMessageInfo +var xxx_messageInfo_Auth_SentCode_Data proto.InternalMessageInfo -func (m *TLMessagesDialogsNotModified) GetData2() *Messages_Dialogs_Data { +func (m *Auth_SentCode_Data) GetPhoneRegistered() bool { if m != nil { - return m.Data2 + return m.PhoneRegistered } - return nil + return false } -// ///////////////////////////////////////////////////////////////////////////// -// KeyboardButton <-- -// + TL_keyboardButton -// + TL_keyboardButtonUrl -// + TL_keyboardButtonCallback -// + TL_keyboardButtonRequestPhone -// + TL_keyboardButtonRequestGeoLocation -// + TL_keyboardButtonSwitchInline -// + TL_keyboardButtonGame -// + TL_keyboardButtonBuy -// -type KeyboardButton_Data struct { - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - SamePeer bool `protobuf:"varint,4,opt,name=same_peer,json=samePeer,proto3" json:"same_peer,omitempty"` - Query string `protobuf:"bytes,5,opt,name=query,proto3" json:"query,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Auth_SentCode_Data) GetType() *Auth_SentCodeType { + if m != nil { + return m.Type + } + return nil } -func (m *KeyboardButton_Data) Reset() { *m = KeyboardButton_Data{} } -func (m *KeyboardButton_Data) String() string { return proto.CompactTextString(m) } -func (*KeyboardButton_Data) ProtoMessage() {} -func (*KeyboardButton_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{267} -} -func (m *KeyboardButton_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyboardButton_Data.Unmarshal(m, b) -} -func (m *KeyboardButton_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyboardButton_Data.Marshal(b, m, deterministic) -} -func (dst *KeyboardButton_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyboardButton_Data.Merge(dst, src) -} -func (m *KeyboardButton_Data) XXX_Size() int { - return xxx_messageInfo_KeyboardButton_Data.Size(m) -} -func (m *KeyboardButton_Data) XXX_DiscardUnknown() { - xxx_messageInfo_KeyboardButton_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyboardButton_Data proto.InternalMessageInfo - -func (m *KeyboardButton_Data) GetText() string { - if m != nil { - return m.Text - } - return "" +func (m *Auth_SentCode_Data) GetPhoneCodeHash() string { + if m != nil { + return m.PhoneCodeHash + } + return "" } -func (m *KeyboardButton_Data) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -func (m *KeyboardButton_Data) GetData() []byte { +func (m *Auth_SentCode_Data) GetNextType() *Auth_CodeType { if m != nil { - return m.Data + return m.NextType } return nil } -func (m *KeyboardButton_Data) GetSamePeer() bool { +func (m *Auth_SentCode_Data) GetTimeout() int32 { if m != nil { - return m.SamePeer + return m.Timeout } - return false + return 0 } -func (m *KeyboardButton_Data) GetQuery() string { +func (m *Auth_SentCode_Data) GetTermsOfService() *Help_TermsOfService { if m != nil { - return m.Query + return m.TermsOfService } - return "" + return nil } -type KeyboardButton struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Auth_SentCode struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Auth_SentCode_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *KeyboardButton) Reset() { *m = KeyboardButton{} } -func (m *KeyboardButton) String() string { return proto.CompactTextString(m) } -func (*KeyboardButton) ProtoMessage() {} -func (*KeyboardButton) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{268} +func (m *Auth_SentCode) Reset() { *m = Auth_SentCode{} } +func (m *Auth_SentCode) String() string { return proto.CompactTextString(m) } +func (*Auth_SentCode) ProtoMessage() {} +func (*Auth_SentCode) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{250} } -func (m *KeyboardButton) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyboardButton.Unmarshal(m, b) +func (m *Auth_SentCode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_SentCode.Unmarshal(m, b) } -func (m *KeyboardButton) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyboardButton.Marshal(b, m, deterministic) +func (m *Auth_SentCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_SentCode.Marshal(b, m, deterministic) } -func (dst *KeyboardButton) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyboardButton.Merge(dst, src) +func (dst *Auth_SentCode) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_SentCode.Merge(dst, src) } -func (m *KeyboardButton) XXX_Size() int { - return xxx_messageInfo_KeyboardButton.Size(m) +func (m *Auth_SentCode) XXX_Size() int { + return xxx_messageInfo_Auth_SentCode.Size(m) } -func (m *KeyboardButton) XXX_DiscardUnknown() { - xxx_messageInfo_KeyboardButton.DiscardUnknown(m) +func (m *Auth_SentCode) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_SentCode.DiscardUnknown(m) } -var xxx_messageInfo_KeyboardButton proto.InternalMessageInfo +var xxx_messageInfo_Auth_SentCode proto.InternalMessageInfo -func (m *KeyboardButton) GetConstructor() TLConstructor { +func (m *Auth_SentCode) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *KeyboardButton) GetData2() *KeyboardButton_Data { +func (m *Auth_SentCode) GetData2() *Auth_SentCode_Data { if m != nil { return m.Data2 } return nil } -// keyboardButton#a2fa4880 text:string = KeyboardButton; -type TLKeyboardButton struct { - Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// auth.sentCode#38faab5f flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int terms_of_service:flags.3?help.TermsOfService = auth.SentCode; +type TLAuthSentCode struct { + Data2 *Auth_SentCode_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLKeyboardButton) Reset() { *m = TLKeyboardButton{} } -func (m *TLKeyboardButton) String() string { return proto.CompactTextString(m) } -func (*TLKeyboardButton) ProtoMessage() {} -func (*TLKeyboardButton) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{269} +func (m *TLAuthSentCode) Reset() { *m = TLAuthSentCode{} } +func (m *TLAuthSentCode) String() string { return proto.CompactTextString(m) } +func (*TLAuthSentCode) ProtoMessage() {} +func (*TLAuthSentCode) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{251} } -func (m *TLKeyboardButton) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLKeyboardButton.Unmarshal(m, b) +func (m *TLAuthSentCode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthSentCode.Unmarshal(m, b) } -func (m *TLKeyboardButton) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLKeyboardButton.Marshal(b, m, deterministic) +func (m *TLAuthSentCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthSentCode.Marshal(b, m, deterministic) } -func (dst *TLKeyboardButton) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLKeyboardButton.Merge(dst, src) +func (dst *TLAuthSentCode) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthSentCode.Merge(dst, src) } -func (m *TLKeyboardButton) XXX_Size() int { - return xxx_messageInfo_TLKeyboardButton.Size(m) +func (m *TLAuthSentCode) XXX_Size() int { + return xxx_messageInfo_TLAuthSentCode.Size(m) } -func (m *TLKeyboardButton) XXX_DiscardUnknown() { - xxx_messageInfo_TLKeyboardButton.DiscardUnknown(m) +func (m *TLAuthSentCode) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthSentCode.DiscardUnknown(m) } -var xxx_messageInfo_TLKeyboardButton proto.InternalMessageInfo +var xxx_messageInfo_TLAuthSentCode proto.InternalMessageInfo -func (m *TLKeyboardButton) GetData2() *KeyboardButton_Data { +func (m *TLAuthSentCode) GetData2() *Auth_SentCode_Data { if m != nil { return m.Data2 } return nil } -// keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton; -type TLKeyboardButtonUrl struct { - Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// account_SentEmailCode <-- +// + TL_account_sentEmailCode +// +type Account_SentEmailCode_Data struct { + EmailPattern string `protobuf:"bytes,1,opt,name=email_pattern,json=emailPattern,proto3" json:"email_pattern,omitempty"` + Length int32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLKeyboardButtonUrl) Reset() { *m = TLKeyboardButtonUrl{} } -func (m *TLKeyboardButtonUrl) String() string { return proto.CompactTextString(m) } -func (*TLKeyboardButtonUrl) ProtoMessage() {} -func (*TLKeyboardButtonUrl) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{270} +func (m *Account_SentEmailCode_Data) Reset() { *m = Account_SentEmailCode_Data{} } +func (m *Account_SentEmailCode_Data) String() string { return proto.CompactTextString(m) } +func (*Account_SentEmailCode_Data) ProtoMessage() {} +func (*Account_SentEmailCode_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{252} } -func (m *TLKeyboardButtonUrl) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLKeyboardButtonUrl.Unmarshal(m, b) +func (m *Account_SentEmailCode_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_SentEmailCode_Data.Unmarshal(m, b) } -func (m *TLKeyboardButtonUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLKeyboardButtonUrl.Marshal(b, m, deterministic) +func (m *Account_SentEmailCode_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_SentEmailCode_Data.Marshal(b, m, deterministic) } -func (dst *TLKeyboardButtonUrl) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLKeyboardButtonUrl.Merge(dst, src) +func (dst *Account_SentEmailCode_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_SentEmailCode_Data.Merge(dst, src) } -func (m *TLKeyboardButtonUrl) XXX_Size() int { - return xxx_messageInfo_TLKeyboardButtonUrl.Size(m) +func (m *Account_SentEmailCode_Data) XXX_Size() int { + return xxx_messageInfo_Account_SentEmailCode_Data.Size(m) } -func (m *TLKeyboardButtonUrl) XXX_DiscardUnknown() { - xxx_messageInfo_TLKeyboardButtonUrl.DiscardUnknown(m) +func (m *Account_SentEmailCode_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_SentEmailCode_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLKeyboardButtonUrl proto.InternalMessageInfo +var xxx_messageInfo_Account_SentEmailCode_Data proto.InternalMessageInfo -func (m *TLKeyboardButtonUrl) GetData2() *KeyboardButton_Data { +func (m *Account_SentEmailCode_Data) GetEmailPattern() string { if m != nil { - return m.Data2 + return m.EmailPattern } - return nil + return "" } -// keyboardButtonCallback#683a5e46 text:string data:bytes = KeyboardButton; -type TLKeyboardButtonCallback struct { - Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Account_SentEmailCode_Data) GetLength() int32 { + if m != nil { + return m.Length + } + return 0 } -func (m *TLKeyboardButtonCallback) Reset() { *m = TLKeyboardButtonCallback{} } -func (m *TLKeyboardButtonCallback) String() string { return proto.CompactTextString(m) } -func (*TLKeyboardButtonCallback) ProtoMessage() {} -func (*TLKeyboardButtonCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{271} +type Account_SentEmailCode struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_SentEmailCode_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLKeyboardButtonCallback) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLKeyboardButtonCallback.Unmarshal(m, b) + +func (m *Account_SentEmailCode) Reset() { *m = Account_SentEmailCode{} } +func (m *Account_SentEmailCode) String() string { return proto.CompactTextString(m) } +func (*Account_SentEmailCode) ProtoMessage() {} +func (*Account_SentEmailCode) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{253} } -func (m *TLKeyboardButtonCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLKeyboardButtonCallback.Marshal(b, m, deterministic) +func (m *Account_SentEmailCode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_SentEmailCode.Unmarshal(m, b) } -func (dst *TLKeyboardButtonCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLKeyboardButtonCallback.Merge(dst, src) +func (m *Account_SentEmailCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_SentEmailCode.Marshal(b, m, deterministic) } -func (m *TLKeyboardButtonCallback) XXX_Size() int { - return xxx_messageInfo_TLKeyboardButtonCallback.Size(m) +func (dst *Account_SentEmailCode) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_SentEmailCode.Merge(dst, src) } -func (m *TLKeyboardButtonCallback) XXX_DiscardUnknown() { - xxx_messageInfo_TLKeyboardButtonCallback.DiscardUnknown(m) +func (m *Account_SentEmailCode) XXX_Size() int { + return xxx_messageInfo_Account_SentEmailCode.Size(m) +} +func (m *Account_SentEmailCode) XXX_DiscardUnknown() { + xxx_messageInfo_Account_SentEmailCode.DiscardUnknown(m) } -var xxx_messageInfo_TLKeyboardButtonCallback proto.InternalMessageInfo +var xxx_messageInfo_Account_SentEmailCode proto.InternalMessageInfo -func (m *TLKeyboardButtonCallback) GetData2() *KeyboardButton_Data { +func (m *Account_SentEmailCode) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Account_SentEmailCode) GetData2() *Account_SentEmailCode_Data { if m != nil { return m.Data2 } return nil } -// keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton; -type TLKeyboardButtonRequestPhone struct { - Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode; +type TLAccountSentEmailCode struct { + Data2 *Account_SentEmailCode_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLKeyboardButtonRequestPhone) Reset() { *m = TLKeyboardButtonRequestPhone{} } -func (m *TLKeyboardButtonRequestPhone) String() string { return proto.CompactTextString(m) } -func (*TLKeyboardButtonRequestPhone) ProtoMessage() {} -func (*TLKeyboardButtonRequestPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{272} +func (m *TLAccountSentEmailCode) Reset() { *m = TLAccountSentEmailCode{} } +func (m *TLAccountSentEmailCode) String() string { return proto.CompactTextString(m) } +func (*TLAccountSentEmailCode) ProtoMessage() {} +func (*TLAccountSentEmailCode) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{254} } -func (m *TLKeyboardButtonRequestPhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLKeyboardButtonRequestPhone.Unmarshal(m, b) +func (m *TLAccountSentEmailCode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountSentEmailCode.Unmarshal(m, b) } -func (m *TLKeyboardButtonRequestPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLKeyboardButtonRequestPhone.Marshal(b, m, deterministic) +func (m *TLAccountSentEmailCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountSentEmailCode.Marshal(b, m, deterministic) } -func (dst *TLKeyboardButtonRequestPhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLKeyboardButtonRequestPhone.Merge(dst, src) +func (dst *TLAccountSentEmailCode) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountSentEmailCode.Merge(dst, src) } -func (m *TLKeyboardButtonRequestPhone) XXX_Size() int { - return xxx_messageInfo_TLKeyboardButtonRequestPhone.Size(m) +func (m *TLAccountSentEmailCode) XXX_Size() int { + return xxx_messageInfo_TLAccountSentEmailCode.Size(m) } -func (m *TLKeyboardButtonRequestPhone) XXX_DiscardUnknown() { - xxx_messageInfo_TLKeyboardButtonRequestPhone.DiscardUnknown(m) +func (m *TLAccountSentEmailCode) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountSentEmailCode.DiscardUnknown(m) } -var xxx_messageInfo_TLKeyboardButtonRequestPhone proto.InternalMessageInfo +var xxx_messageInfo_TLAccountSentEmailCode proto.InternalMessageInfo -func (m *TLKeyboardButtonRequestPhone) GetData2() *KeyboardButton_Data { +func (m *TLAccountSentEmailCode) GetData2() *Account_SentEmailCode_Data { if m != nil { return m.Data2 } return nil } -// keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton; -type TLKeyboardButtonRequestGeoLocation struct { - Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// contacts_Found <-- +// + TL_contacts_found +// +type Contacts_Found_Data struct { + MyResults []*Peer `protobuf:"bytes,1,rep,name=my_results,json=myResults,proto3" json:"my_results,omitempty"` + Results []*Peer `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` + Chats []*Chat `protobuf:"bytes,3,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLKeyboardButtonRequestGeoLocation) Reset() { *m = TLKeyboardButtonRequestGeoLocation{} } -func (m *TLKeyboardButtonRequestGeoLocation) String() string { return proto.CompactTextString(m) } -func (*TLKeyboardButtonRequestGeoLocation) ProtoMessage() {} -func (*TLKeyboardButtonRequestGeoLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{273} +func (m *Contacts_Found_Data) Reset() { *m = Contacts_Found_Data{} } +func (m *Contacts_Found_Data) String() string { return proto.CompactTextString(m) } +func (*Contacts_Found_Data) ProtoMessage() {} +func (*Contacts_Found_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{255} } -func (m *TLKeyboardButtonRequestGeoLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.Unmarshal(m, b) +func (m *Contacts_Found_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_Found_Data.Unmarshal(m, b) } -func (m *TLKeyboardButtonRequestGeoLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.Marshal(b, m, deterministic) +func (m *Contacts_Found_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_Found_Data.Marshal(b, m, deterministic) } -func (dst *TLKeyboardButtonRequestGeoLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.Merge(dst, src) +func (dst *Contacts_Found_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_Found_Data.Merge(dst, src) } -func (m *TLKeyboardButtonRequestGeoLocation) XXX_Size() int { - return xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.Size(m) +func (m *Contacts_Found_Data) XXX_Size() int { + return xxx_messageInfo_Contacts_Found_Data.Size(m) } -func (m *TLKeyboardButtonRequestGeoLocation) XXX_DiscardUnknown() { - xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.DiscardUnknown(m) +func (m *Contacts_Found_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_Found_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLKeyboardButtonRequestGeoLocation proto.InternalMessageInfo +var xxx_messageInfo_Contacts_Found_Data proto.InternalMessageInfo -func (m *TLKeyboardButtonRequestGeoLocation) GetData2() *KeyboardButton_Data { +func (m *Contacts_Found_Data) GetMyResults() []*Peer { if m != nil { - return m.Data2 + return m.MyResults } return nil } -// keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton; -type TLKeyboardButtonSwitchInline struct { - Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Contacts_Found_Data) GetResults() []*Peer { + if m != nil { + return m.Results + } + return nil } -func (m *TLKeyboardButtonSwitchInline) Reset() { *m = TLKeyboardButtonSwitchInline{} } -func (m *TLKeyboardButtonSwitchInline) String() string { return proto.CompactTextString(m) } -func (*TLKeyboardButtonSwitchInline) ProtoMessage() {} -func (*TLKeyboardButtonSwitchInline) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{274} -} -func (m *TLKeyboardButtonSwitchInline) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLKeyboardButtonSwitchInline.Unmarshal(m, b) -} -func (m *TLKeyboardButtonSwitchInline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLKeyboardButtonSwitchInline.Marshal(b, m, deterministic) -} -func (dst *TLKeyboardButtonSwitchInline) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLKeyboardButtonSwitchInline.Merge(dst, src) -} -func (m *TLKeyboardButtonSwitchInline) XXX_Size() int { - return xxx_messageInfo_TLKeyboardButtonSwitchInline.Size(m) -} -func (m *TLKeyboardButtonSwitchInline) XXX_DiscardUnknown() { - xxx_messageInfo_TLKeyboardButtonSwitchInline.DiscardUnknown(m) +func (m *Contacts_Found_Data) GetChats() []*Chat { + if m != nil { + return m.Chats + } + return nil } -var xxx_messageInfo_TLKeyboardButtonSwitchInline proto.InternalMessageInfo - -func (m *TLKeyboardButtonSwitchInline) GetData2() *KeyboardButton_Data { +func (m *Contacts_Found_Data) GetUsers() []*User { if m != nil { - return m.Data2 + return m.Users } return nil } -// keyboardButtonGame#50f41ccf text:string = KeyboardButton; -type TLKeyboardButtonGame struct { - Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +type Contacts_Found struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Contacts_Found_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLKeyboardButtonGame) Reset() { *m = TLKeyboardButtonGame{} } -func (m *TLKeyboardButtonGame) String() string { return proto.CompactTextString(m) } -func (*TLKeyboardButtonGame) ProtoMessage() {} -func (*TLKeyboardButtonGame) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{275} +func (m *Contacts_Found) Reset() { *m = Contacts_Found{} } +func (m *Contacts_Found) String() string { return proto.CompactTextString(m) } +func (*Contacts_Found) ProtoMessage() {} +func (*Contacts_Found) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{256} } -func (m *TLKeyboardButtonGame) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLKeyboardButtonGame.Unmarshal(m, b) +func (m *Contacts_Found) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_Found.Unmarshal(m, b) } -func (m *TLKeyboardButtonGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLKeyboardButtonGame.Marshal(b, m, deterministic) +func (m *Contacts_Found) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_Found.Marshal(b, m, deterministic) } -func (dst *TLKeyboardButtonGame) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLKeyboardButtonGame.Merge(dst, src) +func (dst *Contacts_Found) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_Found.Merge(dst, src) } -func (m *TLKeyboardButtonGame) XXX_Size() int { - return xxx_messageInfo_TLKeyboardButtonGame.Size(m) +func (m *Contacts_Found) XXX_Size() int { + return xxx_messageInfo_Contacts_Found.Size(m) } -func (m *TLKeyboardButtonGame) XXX_DiscardUnknown() { - xxx_messageInfo_TLKeyboardButtonGame.DiscardUnknown(m) +func (m *Contacts_Found) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_Found.DiscardUnknown(m) } -var xxx_messageInfo_TLKeyboardButtonGame proto.InternalMessageInfo +var xxx_messageInfo_Contacts_Found proto.InternalMessageInfo -func (m *TLKeyboardButtonGame) GetData2() *KeyboardButton_Data { +func (m *Contacts_Found) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Contacts_Found) GetData2() *Contacts_Found_Data { if m != nil { return m.Data2 } return nil } -// keyboardButtonBuy#afd93fbb text:string = KeyboardButton; -type TLKeyboardButtonBuy struct { - Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// contacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found; +type TLContactsFound struct { + Data2 *Contacts_Found_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLKeyboardButtonBuy) Reset() { *m = TLKeyboardButtonBuy{} } -func (m *TLKeyboardButtonBuy) String() string { return proto.CompactTextString(m) } -func (*TLKeyboardButtonBuy) ProtoMessage() {} -func (*TLKeyboardButtonBuy) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{276} +func (m *TLContactsFound) Reset() { *m = TLContactsFound{} } +func (m *TLContactsFound) String() string { return proto.CompactTextString(m) } +func (*TLContactsFound) ProtoMessage() {} +func (*TLContactsFound) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{257} } -func (m *TLKeyboardButtonBuy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLKeyboardButtonBuy.Unmarshal(m, b) +func (m *TLContactsFound) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsFound.Unmarshal(m, b) } -func (m *TLKeyboardButtonBuy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLKeyboardButtonBuy.Marshal(b, m, deterministic) +func (m *TLContactsFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsFound.Marshal(b, m, deterministic) } -func (dst *TLKeyboardButtonBuy) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLKeyboardButtonBuy.Merge(dst, src) +func (dst *TLContactsFound) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsFound.Merge(dst, src) } -func (m *TLKeyboardButtonBuy) XXX_Size() int { - return xxx_messageInfo_TLKeyboardButtonBuy.Size(m) +func (m *TLContactsFound) XXX_Size() int { + return xxx_messageInfo_TLContactsFound.Size(m) } -func (m *TLKeyboardButtonBuy) XXX_DiscardUnknown() { - xxx_messageInfo_TLKeyboardButtonBuy.DiscardUnknown(m) +func (m *TLContactsFound) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsFound.DiscardUnknown(m) } -var xxx_messageInfo_TLKeyboardButtonBuy proto.InternalMessageInfo +var xxx_messageInfo_TLContactsFound proto.InternalMessageInfo -func (m *TLKeyboardButtonBuy) GetData2() *KeyboardButton_Data { +func (m *TLContactsFound) GetData2() *Contacts_Found_Data { if m != nil { return m.Data2 } @@ -13117,277 +12591,230 @@ func (m *TLKeyboardButtonBuy) GetData2() *KeyboardButton_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ShippingOption <-- -// + TL_shippingOption +// ChannelAdminLogEventsFilter <-- +// + TL_channelAdminLogEventsFilter // -type ShippingOption_Data struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Prices []*LabeledPrice `protobuf:"bytes,3,rep,name=prices,proto3" json:"prices,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelAdminLogEventsFilter_Data struct { + Join bool `protobuf:"varint,1,opt,name=join,proto3" json:"join,omitempty"` + Leave bool `protobuf:"varint,2,opt,name=leave,proto3" json:"leave,omitempty"` + Invite bool `protobuf:"varint,3,opt,name=invite,proto3" json:"invite,omitempty"` + Ban bool `protobuf:"varint,4,opt,name=ban,proto3" json:"ban,omitempty"` + Unban bool `protobuf:"varint,5,opt,name=unban,proto3" json:"unban,omitempty"` + Kick bool `protobuf:"varint,6,opt,name=kick,proto3" json:"kick,omitempty"` + Unkick bool `protobuf:"varint,7,opt,name=unkick,proto3" json:"unkick,omitempty"` + Promote bool `protobuf:"varint,8,opt,name=promote,proto3" json:"promote,omitempty"` + Demote bool `protobuf:"varint,9,opt,name=demote,proto3" json:"demote,omitempty"` + Info bool `protobuf:"varint,10,opt,name=info,proto3" json:"info,omitempty"` + Settings bool `protobuf:"varint,11,opt,name=settings,proto3" json:"settings,omitempty"` + Pinned bool `protobuf:"varint,12,opt,name=pinned,proto3" json:"pinned,omitempty"` + Edit bool `protobuf:"varint,13,opt,name=edit,proto3" json:"edit,omitempty"` + Delete bool `protobuf:"varint,14,opt,name=delete,proto3" json:"delete,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ShippingOption_Data) Reset() { *m = ShippingOption_Data{} } -func (m *ShippingOption_Data) String() string { return proto.CompactTextString(m) } -func (*ShippingOption_Data) ProtoMessage() {} -func (*ShippingOption_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{277} +func (m *ChannelAdminLogEventsFilter_Data) Reset() { *m = ChannelAdminLogEventsFilter_Data{} } +func (m *ChannelAdminLogEventsFilter_Data) String() string { return proto.CompactTextString(m) } +func (*ChannelAdminLogEventsFilter_Data) ProtoMessage() {} +func (*ChannelAdminLogEventsFilter_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{258} } -func (m *ShippingOption_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShippingOption_Data.Unmarshal(m, b) +func (m *ChannelAdminLogEventsFilter_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelAdminLogEventsFilter_Data.Unmarshal(m, b) } -func (m *ShippingOption_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShippingOption_Data.Marshal(b, m, deterministic) +func (m *ChannelAdminLogEventsFilter_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelAdminLogEventsFilter_Data.Marshal(b, m, deterministic) } -func (dst *ShippingOption_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShippingOption_Data.Merge(dst, src) +func (dst *ChannelAdminLogEventsFilter_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelAdminLogEventsFilter_Data.Merge(dst, src) } -func (m *ShippingOption_Data) XXX_Size() int { - return xxx_messageInfo_ShippingOption_Data.Size(m) +func (m *ChannelAdminLogEventsFilter_Data) XXX_Size() int { + return xxx_messageInfo_ChannelAdminLogEventsFilter_Data.Size(m) } -func (m *ShippingOption_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ShippingOption_Data.DiscardUnknown(m) +func (m *ChannelAdminLogEventsFilter_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelAdminLogEventsFilter_Data.DiscardUnknown(m) } -var xxx_messageInfo_ShippingOption_Data proto.InternalMessageInfo +var xxx_messageInfo_ChannelAdminLogEventsFilter_Data proto.InternalMessageInfo -func (m *ShippingOption_Data) GetId() string { +func (m *ChannelAdminLogEventsFilter_Data) GetJoin() bool { if m != nil { - return m.Id + return m.Join } - return "" + return false } -func (m *ShippingOption_Data) GetTitle() string { +func (m *ChannelAdminLogEventsFilter_Data) GetLeave() bool { if m != nil { - return m.Title + return m.Leave } - return "" + return false } -func (m *ShippingOption_Data) GetPrices() []*LabeledPrice { +func (m *ChannelAdminLogEventsFilter_Data) GetInvite() bool { if m != nil { - return m.Prices + return m.Invite } - return nil + return false } -type ShippingOption struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ShippingOption_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelAdminLogEventsFilter_Data) GetBan() bool { + if m != nil { + return m.Ban + } + return false } -func (m *ShippingOption) Reset() { *m = ShippingOption{} } -func (m *ShippingOption) String() string { return proto.CompactTextString(m) } -func (*ShippingOption) ProtoMessage() {} -func (*ShippingOption) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{278} -} -func (m *ShippingOption) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShippingOption.Unmarshal(m, b) -} -func (m *ShippingOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShippingOption.Marshal(b, m, deterministic) -} -func (dst *ShippingOption) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShippingOption.Merge(dst, src) -} -func (m *ShippingOption) XXX_Size() int { - return xxx_messageInfo_ShippingOption.Size(m) -} -func (m *ShippingOption) XXX_DiscardUnknown() { - xxx_messageInfo_ShippingOption.DiscardUnknown(m) +func (m *ChannelAdminLogEventsFilter_Data) GetUnban() bool { + if m != nil { + return m.Unban + } + return false } -var xxx_messageInfo_ShippingOption proto.InternalMessageInfo - -func (m *ShippingOption) GetConstructor() TLConstructor { +func (m *ChannelAdminLogEventsFilter_Data) GetKick() bool { if m != nil { - return m.Constructor + return m.Kick } - return TLConstructor_CRC32_UNKNOWN + return false } -func (m *ShippingOption) GetData2() *ShippingOption_Data { +func (m *ChannelAdminLogEventsFilter_Data) GetUnkick() bool { if m != nil { - return m.Data2 + return m.Unkick } - return nil + return false } -// shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; -type TLShippingOption struct { - Data2 *ShippingOption_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelAdminLogEventsFilter_Data) GetPromote() bool { + if m != nil { + return m.Promote + } + return false } -func (m *TLShippingOption) Reset() { *m = TLShippingOption{} } -func (m *TLShippingOption) String() string { return proto.CompactTextString(m) } -func (*TLShippingOption) ProtoMessage() {} -func (*TLShippingOption) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{279} -} -func (m *TLShippingOption) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLShippingOption.Unmarshal(m, b) -} -func (m *TLShippingOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLShippingOption.Marshal(b, m, deterministic) -} -func (dst *TLShippingOption) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLShippingOption.Merge(dst, src) -} -func (m *TLShippingOption) XXX_Size() int { - return xxx_messageInfo_TLShippingOption.Size(m) -} -func (m *TLShippingOption) XXX_DiscardUnknown() { - xxx_messageInfo_TLShippingOption.DiscardUnknown(m) +func (m *ChannelAdminLogEventsFilter_Data) GetDemote() bool { + if m != nil { + return m.Demote + } + return false } -var xxx_messageInfo_TLShippingOption proto.InternalMessageInfo - -func (m *TLShippingOption) GetData2() *ShippingOption_Data { +func (m *ChannelAdminLogEventsFilter_Data) GetInfo() bool { if m != nil { - return m.Data2 + return m.Info } - return nil + return false } -// ///////////////////////////////////////////////////////////////////////////// -// phone_PhoneCall <-- -// + TL_phone_phoneCall -// -type Phone_PhoneCall_Data struct { - PhoneCall *PhoneCall `protobuf:"bytes,1,opt,name=phone_call,json=phoneCall,proto3" json:"phone_call,omitempty"` - Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelAdminLogEventsFilter_Data) GetSettings() bool { + if m != nil { + return m.Settings + } + return false } -func (m *Phone_PhoneCall_Data) Reset() { *m = Phone_PhoneCall_Data{} } -func (m *Phone_PhoneCall_Data) String() string { return proto.CompactTextString(m) } -func (*Phone_PhoneCall_Data) ProtoMessage() {} -func (*Phone_PhoneCall_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{280} -} -func (m *Phone_PhoneCall_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Phone_PhoneCall_Data.Unmarshal(m, b) -} -func (m *Phone_PhoneCall_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Phone_PhoneCall_Data.Marshal(b, m, deterministic) -} -func (dst *Phone_PhoneCall_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Phone_PhoneCall_Data.Merge(dst, src) -} -func (m *Phone_PhoneCall_Data) XXX_Size() int { - return xxx_messageInfo_Phone_PhoneCall_Data.Size(m) -} -func (m *Phone_PhoneCall_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Phone_PhoneCall_Data.DiscardUnknown(m) +func (m *ChannelAdminLogEventsFilter_Data) GetPinned() bool { + if m != nil { + return m.Pinned + } + return false } -var xxx_messageInfo_Phone_PhoneCall_Data proto.InternalMessageInfo - -func (m *Phone_PhoneCall_Data) GetPhoneCall() *PhoneCall { +func (m *ChannelAdminLogEventsFilter_Data) GetEdit() bool { if m != nil { - return m.PhoneCall + return m.Edit } - return nil + return false } -func (m *Phone_PhoneCall_Data) GetUsers() []*User { +func (m *ChannelAdminLogEventsFilter_Data) GetDelete() bool { if m != nil { - return m.Users + return m.Delete } - return nil + return false } -type Phone_PhoneCall struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Phone_PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelAdminLogEventsFilter struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChannelAdminLogEventsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Phone_PhoneCall) Reset() { *m = Phone_PhoneCall{} } -func (m *Phone_PhoneCall) String() string { return proto.CompactTextString(m) } -func (*Phone_PhoneCall) ProtoMessage() {} -func (*Phone_PhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{281} +func (m *ChannelAdminLogEventsFilter) Reset() { *m = ChannelAdminLogEventsFilter{} } +func (m *ChannelAdminLogEventsFilter) String() string { return proto.CompactTextString(m) } +func (*ChannelAdminLogEventsFilter) ProtoMessage() {} +func (*ChannelAdminLogEventsFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{259} } -func (m *Phone_PhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Phone_PhoneCall.Unmarshal(m, b) +func (m *ChannelAdminLogEventsFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelAdminLogEventsFilter.Unmarshal(m, b) } -func (m *Phone_PhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Phone_PhoneCall.Marshal(b, m, deterministic) +func (m *ChannelAdminLogEventsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelAdminLogEventsFilter.Marshal(b, m, deterministic) } -func (dst *Phone_PhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_Phone_PhoneCall.Merge(dst, src) +func (dst *ChannelAdminLogEventsFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelAdminLogEventsFilter.Merge(dst, src) } -func (m *Phone_PhoneCall) XXX_Size() int { - return xxx_messageInfo_Phone_PhoneCall.Size(m) +func (m *ChannelAdminLogEventsFilter) XXX_Size() int { + return xxx_messageInfo_ChannelAdminLogEventsFilter.Size(m) } -func (m *Phone_PhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_Phone_PhoneCall.DiscardUnknown(m) +func (m *ChannelAdminLogEventsFilter) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelAdminLogEventsFilter.DiscardUnknown(m) } -var xxx_messageInfo_Phone_PhoneCall proto.InternalMessageInfo +var xxx_messageInfo_ChannelAdminLogEventsFilter proto.InternalMessageInfo -func (m *Phone_PhoneCall) GetConstructor() TLConstructor { +func (m *ChannelAdminLogEventsFilter) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Phone_PhoneCall) GetData2() *Phone_PhoneCall_Data { +func (m *ChannelAdminLogEventsFilter) GetData2() *ChannelAdminLogEventsFilter_Data { if m != nil { return m.Data2 } return nil } -// phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall; -type TLPhonePhoneCall struct { - Data2 *Phone_PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; +type TLChannelAdminLogEventsFilter struct { + Data2 *ChannelAdminLogEventsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhonePhoneCall) Reset() { *m = TLPhonePhoneCall{} } -func (m *TLPhonePhoneCall) String() string { return proto.CompactTextString(m) } -func (*TLPhonePhoneCall) ProtoMessage() {} -func (*TLPhonePhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{282} +func (m *TLChannelAdminLogEventsFilter) Reset() { *m = TLChannelAdminLogEventsFilter{} } +func (m *TLChannelAdminLogEventsFilter) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminLogEventsFilter) ProtoMessage() {} +func (*TLChannelAdminLogEventsFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{260} } -func (m *TLPhonePhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhonePhoneCall.Unmarshal(m, b) +func (m *TLChannelAdminLogEventsFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventsFilter.Unmarshal(m, b) } -func (m *TLPhonePhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhonePhoneCall.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEventsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventsFilter.Marshal(b, m, deterministic) } -func (dst *TLPhonePhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhonePhoneCall.Merge(dst, src) +func (dst *TLChannelAdminLogEventsFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventsFilter.Merge(dst, src) } -func (m *TLPhonePhoneCall) XXX_Size() int { - return xxx_messageInfo_TLPhonePhoneCall.Size(m) +func (m *TLChannelAdminLogEventsFilter) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventsFilter.Size(m) } -func (m *TLPhonePhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhonePhoneCall.DiscardUnknown(m) +func (m *TLChannelAdminLogEventsFilter) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventsFilter.DiscardUnknown(m) } -var xxx_messageInfo_TLPhonePhoneCall proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventsFilter proto.InternalMessageInfo -func (m *TLPhonePhoneCall) GetData2() *Phone_PhoneCall_Data { +func (m *TLChannelAdminLogEventsFilter) GetData2() *ChannelAdminLogEventsFilter_Data { if m != nil { return m.Data2 } @@ -13395,174 +12822,182 @@ func (m *TLPhonePhoneCall) GetData2() *Phone_PhoneCall_Data { } // ///////////////////////////////////////////////////////////////////////////// -// help_TermsOfServiceUpdate <-- -// + TL_help_termsOfServiceUpdateEmpty -// + TL_help_termsOfServiceUpdate +// messages_FavedStickers <-- +// + TL_messages_favedStickersNotModified +// + TL_messages_favedStickers // -type Help_TermsOfServiceUpdate_Data struct { - Expires int32 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"` - TermsOfService *Help_TermsOfService `protobuf:"bytes,2,opt,name=terms_of_service,json=termsOfService,proto3" json:"terms_of_service,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_FavedStickers_Data struct { + Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + Packs []*StickerPack `protobuf:"bytes,2,rep,name=packs,proto3" json:"packs,omitempty"` + Stickers []*Document `protobuf:"bytes,3,rep,name=stickers,proto3" json:"stickers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_TermsOfServiceUpdate_Data) Reset() { *m = Help_TermsOfServiceUpdate_Data{} } -func (m *Help_TermsOfServiceUpdate_Data) String() string { return proto.CompactTextString(m) } -func (*Help_TermsOfServiceUpdate_Data) ProtoMessage() {} -func (*Help_TermsOfServiceUpdate_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{283} +func (m *Messages_FavedStickers_Data) Reset() { *m = Messages_FavedStickers_Data{} } +func (m *Messages_FavedStickers_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_FavedStickers_Data) ProtoMessage() {} +func (*Messages_FavedStickers_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{261} } -func (m *Help_TermsOfServiceUpdate_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_TermsOfServiceUpdate_Data.Unmarshal(m, b) +func (m *Messages_FavedStickers_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_FavedStickers_Data.Unmarshal(m, b) } -func (m *Help_TermsOfServiceUpdate_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_TermsOfServiceUpdate_Data.Marshal(b, m, deterministic) +func (m *Messages_FavedStickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_FavedStickers_Data.Marshal(b, m, deterministic) } -func (dst *Help_TermsOfServiceUpdate_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_TermsOfServiceUpdate_Data.Merge(dst, src) +func (dst *Messages_FavedStickers_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_FavedStickers_Data.Merge(dst, src) } -func (m *Help_TermsOfServiceUpdate_Data) XXX_Size() int { - return xxx_messageInfo_Help_TermsOfServiceUpdate_Data.Size(m) +func (m *Messages_FavedStickers_Data) XXX_Size() int { + return xxx_messageInfo_Messages_FavedStickers_Data.Size(m) } -func (m *Help_TermsOfServiceUpdate_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_TermsOfServiceUpdate_Data.DiscardUnknown(m) +func (m *Messages_FavedStickers_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_FavedStickers_Data.DiscardUnknown(m) } -var xxx_messageInfo_Help_TermsOfServiceUpdate_Data proto.InternalMessageInfo +var xxx_messageInfo_Messages_FavedStickers_Data proto.InternalMessageInfo -func (m *Help_TermsOfServiceUpdate_Data) GetExpires() int32 { +func (m *Messages_FavedStickers_Data) GetHash() int32 { if m != nil { - return m.Expires + return m.Hash } return 0 } -func (m *Help_TermsOfServiceUpdate_Data) GetTermsOfService() *Help_TermsOfService { +func (m *Messages_FavedStickers_Data) GetPacks() []*StickerPack { if m != nil { - return m.TermsOfService + return m.Packs } return nil } -type Help_TermsOfServiceUpdate struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_TermsOfServiceUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Messages_FavedStickers_Data) GetStickers() []*Document { + if m != nil { + return m.Stickers + } + return nil } -func (m *Help_TermsOfServiceUpdate) Reset() { *m = Help_TermsOfServiceUpdate{} } -func (m *Help_TermsOfServiceUpdate) String() string { return proto.CompactTextString(m) } -func (*Help_TermsOfServiceUpdate) ProtoMessage() {} -func (*Help_TermsOfServiceUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{284} +type Messages_FavedStickers struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_FavedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_TermsOfServiceUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_TermsOfServiceUpdate.Unmarshal(m, b) + +func (m *Messages_FavedStickers) Reset() { *m = Messages_FavedStickers{} } +func (m *Messages_FavedStickers) String() string { return proto.CompactTextString(m) } +func (*Messages_FavedStickers) ProtoMessage() {} +func (*Messages_FavedStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{262} } -func (m *Help_TermsOfServiceUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_TermsOfServiceUpdate.Marshal(b, m, deterministic) +func (m *Messages_FavedStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_FavedStickers.Unmarshal(m, b) } -func (dst *Help_TermsOfServiceUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_TermsOfServiceUpdate.Merge(dst, src) +func (m *Messages_FavedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_FavedStickers.Marshal(b, m, deterministic) } -func (m *Help_TermsOfServiceUpdate) XXX_Size() int { - return xxx_messageInfo_Help_TermsOfServiceUpdate.Size(m) +func (dst *Messages_FavedStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_FavedStickers.Merge(dst, src) } -func (m *Help_TermsOfServiceUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_Help_TermsOfServiceUpdate.DiscardUnknown(m) +func (m *Messages_FavedStickers) XXX_Size() int { + return xxx_messageInfo_Messages_FavedStickers.Size(m) +} +func (m *Messages_FavedStickers) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_FavedStickers.DiscardUnknown(m) } -var xxx_messageInfo_Help_TermsOfServiceUpdate proto.InternalMessageInfo +var xxx_messageInfo_Messages_FavedStickers proto.InternalMessageInfo -func (m *Help_TermsOfServiceUpdate) GetConstructor() TLConstructor { +func (m *Messages_FavedStickers) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Help_TermsOfServiceUpdate) GetData2() *Help_TermsOfServiceUpdate_Data { +func (m *Messages_FavedStickers) GetData2() *Messages_FavedStickers_Data { if m != nil { return m.Data2 } return nil } -// help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate; -type TLHelpTermsOfServiceUpdateEmpty struct { - Data2 *Help_TermsOfServiceUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers; +type TLMessagesFavedStickersNotModified struct { + Data2 *Messages_FavedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpTermsOfServiceUpdateEmpty) Reset() { *m = TLHelpTermsOfServiceUpdateEmpty{} } -func (m *TLHelpTermsOfServiceUpdateEmpty) String() string { return proto.CompactTextString(m) } -func (*TLHelpTermsOfServiceUpdateEmpty) ProtoMessage() {} -func (*TLHelpTermsOfServiceUpdateEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{285} +func (m *TLMessagesFavedStickersNotModified) Reset() { *m = TLMessagesFavedStickersNotModified{} } +func (m *TLMessagesFavedStickersNotModified) String() string { return proto.CompactTextString(m) } +func (*TLMessagesFavedStickersNotModified) ProtoMessage() {} +func (*TLMessagesFavedStickersNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{263} } -func (m *TLHelpTermsOfServiceUpdateEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.Unmarshal(m, b) +func (m *TLMessagesFavedStickersNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesFavedStickersNotModified.Unmarshal(m, b) } -func (m *TLHelpTermsOfServiceUpdateEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.Marshal(b, m, deterministic) +func (m *TLMessagesFavedStickersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesFavedStickersNotModified.Marshal(b, m, deterministic) } -func (dst *TLHelpTermsOfServiceUpdateEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.Merge(dst, src) +func (dst *TLMessagesFavedStickersNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesFavedStickersNotModified.Merge(dst, src) } -func (m *TLHelpTermsOfServiceUpdateEmpty) XXX_Size() int { - return xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.Size(m) +func (m *TLMessagesFavedStickersNotModified) XXX_Size() int { + return xxx_messageInfo_TLMessagesFavedStickersNotModified.Size(m) } -func (m *TLHelpTermsOfServiceUpdateEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty.DiscardUnknown(m) +func (m *TLMessagesFavedStickersNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesFavedStickersNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpTermsOfServiceUpdateEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesFavedStickersNotModified proto.InternalMessageInfo -func (m *TLHelpTermsOfServiceUpdateEmpty) GetData2() *Help_TermsOfServiceUpdate_Data { +func (m *TLMessagesFavedStickersNotModified) GetData2() *Messages_FavedStickers_Data { if m != nil { return m.Data2 } return nil } -// help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate; -type TLHelpTermsOfServiceUpdate struct { - Data2 *Help_TermsOfServiceUpdate_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers; +type TLMessagesFavedStickers struct { + Data2 *Messages_FavedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpTermsOfServiceUpdate) Reset() { *m = TLHelpTermsOfServiceUpdate{} } -func (m *TLHelpTermsOfServiceUpdate) String() string { return proto.CompactTextString(m) } -func (*TLHelpTermsOfServiceUpdate) ProtoMessage() {} -func (*TLHelpTermsOfServiceUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{286} +func (m *TLMessagesFavedStickers) Reset() { *m = TLMessagesFavedStickers{} } +func (m *TLMessagesFavedStickers) String() string { return proto.CompactTextString(m) } +func (*TLMessagesFavedStickers) ProtoMessage() {} +func (*TLMessagesFavedStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{264} } -func (m *TLHelpTermsOfServiceUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpTermsOfServiceUpdate.Unmarshal(m, b) +func (m *TLMessagesFavedStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesFavedStickers.Unmarshal(m, b) } -func (m *TLHelpTermsOfServiceUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpTermsOfServiceUpdate.Marshal(b, m, deterministic) +func (m *TLMessagesFavedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesFavedStickers.Marshal(b, m, deterministic) } -func (dst *TLHelpTermsOfServiceUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpTermsOfServiceUpdate.Merge(dst, src) +func (dst *TLMessagesFavedStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesFavedStickers.Merge(dst, src) } -func (m *TLHelpTermsOfServiceUpdate) XXX_Size() int { - return xxx_messageInfo_TLHelpTermsOfServiceUpdate.Size(m) +func (m *TLMessagesFavedStickers) XXX_Size() int { + return xxx_messageInfo_TLMessagesFavedStickers.Size(m) } -func (m *TLHelpTermsOfServiceUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpTermsOfServiceUpdate.DiscardUnknown(m) +func (m *TLMessagesFavedStickers) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesFavedStickers.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpTermsOfServiceUpdate proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesFavedStickers proto.InternalMessageInfo -func (m *TLHelpTermsOfServiceUpdate) GetData2() *Help_TermsOfServiceUpdate_Data { +func (m *TLMessagesFavedStickers) GetData2() *Messages_FavedStickers_Data { if m != nil { return m.Data2 } @@ -13570,4329 +13005,4184 @@ func (m *TLHelpTermsOfServiceUpdate) GetData2() *Help_TermsOfServiceUpdate_Data } // ///////////////////////////////////////////////////////////////////////////// -// NearestDc <-- -// + TL_nearestDc +// InputFileLocation <-- +// + TL_inputDocumentFileLocationLayer11 +// + TL_inputFileLocation +// + TL_inputEncryptedFileLocation +// + TL_inputDocumentFileLocation +// + TL_inputSecureFileLocation +// + TL_inputTakeoutFileLocation +// + TL_inputFileLocationLayer86 +// + TL_inputDocumentFileLocationLayer86 // -type NearestDc_Data struct { - Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` - ThisDc int32 `protobuf:"varint,2,opt,name=this_dc,json=thisDc,proto3" json:"this_dc,omitempty"` - NearestDc int32 `protobuf:"varint,3,opt,name=nearest_dc,json=nearestDc,proto3" json:"nearest_dc,omitempty"` +type InputFileLocation_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + VolumeId int64 `protobuf:"varint,3,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` + LocalId int32 `protobuf:"varint,4,opt,name=local_id,json=localId,proto3" json:"local_id,omitempty"` + Secret int64 `protobuf:"varint,5,opt,name=secret,proto3" json:"secret,omitempty"` + Version int32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` + FileReference []byte `protobuf:"bytes,7,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *NearestDc_Data) Reset() { *m = NearestDc_Data{} } -func (m *NearestDc_Data) String() string { return proto.CompactTextString(m) } -func (*NearestDc_Data) ProtoMessage() {} -func (*NearestDc_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{287} +func (m *InputFileLocation_Data) Reset() { *m = InputFileLocation_Data{} } +func (m *InputFileLocation_Data) String() string { return proto.CompactTextString(m) } +func (*InputFileLocation_Data) ProtoMessage() {} +func (*InputFileLocation_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{265} } -func (m *NearestDc_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NearestDc_Data.Unmarshal(m, b) +func (m *InputFileLocation_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputFileLocation_Data.Unmarshal(m, b) } -func (m *NearestDc_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NearestDc_Data.Marshal(b, m, deterministic) +func (m *InputFileLocation_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputFileLocation_Data.Marshal(b, m, deterministic) } -func (dst *NearestDc_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_NearestDc_Data.Merge(dst, src) +func (dst *InputFileLocation_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputFileLocation_Data.Merge(dst, src) } -func (m *NearestDc_Data) XXX_Size() int { - return xxx_messageInfo_NearestDc_Data.Size(m) +func (m *InputFileLocation_Data) XXX_Size() int { + return xxx_messageInfo_InputFileLocation_Data.Size(m) } -func (m *NearestDc_Data) XXX_DiscardUnknown() { - xxx_messageInfo_NearestDc_Data.DiscardUnknown(m) +func (m *InputFileLocation_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputFileLocation_Data.DiscardUnknown(m) } -var xxx_messageInfo_NearestDc_Data proto.InternalMessageInfo +var xxx_messageInfo_InputFileLocation_Data proto.InternalMessageInfo -func (m *NearestDc_Data) GetCountry() string { +func (m *InputFileLocation_Data) GetId() int64 { if m != nil { - return m.Country + return m.Id } - return "" + return 0 } -func (m *NearestDc_Data) GetThisDc() int32 { +func (m *InputFileLocation_Data) GetAccessHash() int64 { if m != nil { - return m.ThisDc + return m.AccessHash } return 0 } -func (m *NearestDc_Data) GetNearestDc() int32 { +func (m *InputFileLocation_Data) GetVolumeId() int64 { if m != nil { - return m.NearestDc + return m.VolumeId } return 0 } -type NearestDc struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *NearestDc_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputFileLocation_Data) GetLocalId() int32 { + if m != nil { + return m.LocalId + } + return 0 } -func (m *NearestDc) Reset() { *m = NearestDc{} } -func (m *NearestDc) String() string { return proto.CompactTextString(m) } -func (*NearestDc) ProtoMessage() {} -func (*NearestDc) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{288} -} -func (m *NearestDc) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NearestDc.Unmarshal(m, b) -} -func (m *NearestDc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NearestDc.Marshal(b, m, deterministic) -} -func (dst *NearestDc) XXX_Merge(src proto.Message) { - xxx_messageInfo_NearestDc.Merge(dst, src) -} -func (m *NearestDc) XXX_Size() int { - return xxx_messageInfo_NearestDc.Size(m) -} -func (m *NearestDc) XXX_DiscardUnknown() { - xxx_messageInfo_NearestDc.DiscardUnknown(m) +func (m *InputFileLocation_Data) GetSecret() int64 { + if m != nil { + return m.Secret + } + return 0 } -var xxx_messageInfo_NearestDc proto.InternalMessageInfo - -func (m *NearestDc) GetConstructor() TLConstructor { +func (m *InputFileLocation_Data) GetVersion() int32 { if m != nil { - return m.Constructor + return m.Version } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *NearestDc) GetData2() *NearestDc_Data { +func (m *InputFileLocation_Data) GetFileReference() []byte { if m != nil { - return m.Data2 + return m.FileReference } return nil } -// nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc; -type TLNearestDc struct { - Data2 *NearestDc_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputFileLocation struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLNearestDc) Reset() { *m = TLNearestDc{} } -func (m *TLNearestDc) String() string { return proto.CompactTextString(m) } -func (*TLNearestDc) ProtoMessage() {} -func (*TLNearestDc) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{289} +func (m *InputFileLocation) Reset() { *m = InputFileLocation{} } +func (m *InputFileLocation) String() string { return proto.CompactTextString(m) } +func (*InputFileLocation) ProtoMessage() {} +func (*InputFileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{266} } -func (m *TLNearestDc) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLNearestDc.Unmarshal(m, b) +func (m *InputFileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputFileLocation.Unmarshal(m, b) } -func (m *TLNearestDc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLNearestDc.Marshal(b, m, deterministic) +func (m *InputFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputFileLocation.Marshal(b, m, deterministic) } -func (dst *TLNearestDc) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLNearestDc.Merge(dst, src) +func (dst *InputFileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputFileLocation.Merge(dst, src) } -func (m *TLNearestDc) XXX_Size() int { - return xxx_messageInfo_TLNearestDc.Size(m) +func (m *InputFileLocation) XXX_Size() int { + return xxx_messageInfo_InputFileLocation.Size(m) } -func (m *TLNearestDc) XXX_DiscardUnknown() { - xxx_messageInfo_TLNearestDc.DiscardUnknown(m) +func (m *InputFileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_InputFileLocation.DiscardUnknown(m) } -var xxx_messageInfo_TLNearestDc proto.InternalMessageInfo +var xxx_messageInfo_InputFileLocation proto.InternalMessageInfo -func (m *TLNearestDc) GetData2() *NearestDc_Data { +func (m *InputFileLocation) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputFileLocation) GetData2() *InputFileLocation_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ContactLink <-- -// + TL_contactLinkUnknown -// + TL_contactLinkNone -// + TL_contactLinkHasPhone -// + TL_contactLinkContact -// -type ContactLink_Data struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputDocumentFileLocation#4e45abe9 id:long access_hash:long = InputFileLocation; +type TLInputDocumentFileLocationLayer11 struct { + Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ContactLink_Data) Reset() { *m = ContactLink_Data{} } -func (m *ContactLink_Data) String() string { return proto.CompactTextString(m) } -func (*ContactLink_Data) ProtoMessage() {} -func (*ContactLink_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{290} +func (m *TLInputDocumentFileLocationLayer11) Reset() { *m = TLInputDocumentFileLocationLayer11{} } +func (m *TLInputDocumentFileLocationLayer11) String() string { return proto.CompactTextString(m) } +func (*TLInputDocumentFileLocationLayer11) ProtoMessage() {} +func (*TLInputDocumentFileLocationLayer11) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{267} } -func (m *ContactLink_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactLink_Data.Unmarshal(m, b) +func (m *TLInputDocumentFileLocationLayer11) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputDocumentFileLocationLayer11.Unmarshal(m, b) } -func (m *ContactLink_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactLink_Data.Marshal(b, m, deterministic) +func (m *TLInputDocumentFileLocationLayer11) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputDocumentFileLocationLayer11.Marshal(b, m, deterministic) } -func (dst *ContactLink_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactLink_Data.Merge(dst, src) +func (dst *TLInputDocumentFileLocationLayer11) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputDocumentFileLocationLayer11.Merge(dst, src) } -func (m *ContactLink_Data) XXX_Size() int { - return xxx_messageInfo_ContactLink_Data.Size(m) +func (m *TLInputDocumentFileLocationLayer11) XXX_Size() int { + return xxx_messageInfo_TLInputDocumentFileLocationLayer11.Size(m) } -func (m *ContactLink_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ContactLink_Data.DiscardUnknown(m) +func (m *TLInputDocumentFileLocationLayer11) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputDocumentFileLocationLayer11.DiscardUnknown(m) } -var xxx_messageInfo_ContactLink_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputDocumentFileLocationLayer11 proto.InternalMessageInfo -type ContactLink struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *TLInputDocumentFileLocationLayer11) GetData2() *InputFileLocation_Data { + if m != nil { + return m.Data2 + } + return nil } -func (m *ContactLink) Reset() { *m = ContactLink{} } -func (m *ContactLink) String() string { return proto.CompactTextString(m) } -func (*ContactLink) ProtoMessage() {} -func (*ContactLink) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{291} +// inputFileLocation#14637196 volume_id:long local_id:int secret:long = InputFileLocation; +type TLInputFileLocation struct { + Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ContactLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContactLink.Unmarshal(m, b) + +func (m *TLInputFileLocation) Reset() { *m = TLInputFileLocation{} } +func (m *TLInputFileLocation) String() string { return proto.CompactTextString(m) } +func (*TLInputFileLocation) ProtoMessage() {} +func (*TLInputFileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{268} } -func (m *ContactLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContactLink.Marshal(b, m, deterministic) +func (m *TLInputFileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputFileLocation.Unmarshal(m, b) } -func (dst *ContactLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactLink.Merge(dst, src) +func (m *TLInputFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputFileLocation.Marshal(b, m, deterministic) } -func (m *ContactLink) XXX_Size() int { - return xxx_messageInfo_ContactLink.Size(m) +func (dst *TLInputFileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputFileLocation.Merge(dst, src) } -func (m *ContactLink) XXX_DiscardUnknown() { - xxx_messageInfo_ContactLink.DiscardUnknown(m) +func (m *TLInputFileLocation) XXX_Size() int { + return xxx_messageInfo_TLInputFileLocation.Size(m) } - -var xxx_messageInfo_ContactLink proto.InternalMessageInfo - -func (m *ContactLink) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN +func (m *TLInputFileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputFileLocation.DiscardUnknown(m) } -func (m *ContactLink) GetData2() *ContactLink_Data { +var xxx_messageInfo_TLInputFileLocation proto.InternalMessageInfo + +func (m *TLInputFileLocation) GetData2() *InputFileLocation_Data { if m != nil { return m.Data2 } return nil } -// contactLinkUnknown#5f4f9247 = ContactLink; -type TLContactLinkUnknown struct { - Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation; +type TLInputEncryptedFileLocation struct { + Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactLinkUnknown) Reset() { *m = TLContactLinkUnknown{} } -func (m *TLContactLinkUnknown) String() string { return proto.CompactTextString(m) } -func (*TLContactLinkUnknown) ProtoMessage() {} -func (*TLContactLinkUnknown) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{292} +func (m *TLInputEncryptedFileLocation) Reset() { *m = TLInputEncryptedFileLocation{} } +func (m *TLInputEncryptedFileLocation) String() string { return proto.CompactTextString(m) } +func (*TLInputEncryptedFileLocation) ProtoMessage() {} +func (*TLInputEncryptedFileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{269} } -func (m *TLContactLinkUnknown) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactLinkUnknown.Unmarshal(m, b) +func (m *TLInputEncryptedFileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputEncryptedFileLocation.Unmarshal(m, b) } -func (m *TLContactLinkUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactLinkUnknown.Marshal(b, m, deterministic) +func (m *TLInputEncryptedFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputEncryptedFileLocation.Marshal(b, m, deterministic) } -func (dst *TLContactLinkUnknown) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactLinkUnknown.Merge(dst, src) +func (dst *TLInputEncryptedFileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputEncryptedFileLocation.Merge(dst, src) } -func (m *TLContactLinkUnknown) XXX_Size() int { - return xxx_messageInfo_TLContactLinkUnknown.Size(m) +func (m *TLInputEncryptedFileLocation) XXX_Size() int { + return xxx_messageInfo_TLInputEncryptedFileLocation.Size(m) } -func (m *TLContactLinkUnknown) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactLinkUnknown.DiscardUnknown(m) +func (m *TLInputEncryptedFileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputEncryptedFileLocation.DiscardUnknown(m) } -var xxx_messageInfo_TLContactLinkUnknown proto.InternalMessageInfo +var xxx_messageInfo_TLInputEncryptedFileLocation proto.InternalMessageInfo -func (m *TLContactLinkUnknown) GetData2() *ContactLink_Data { +func (m *TLInputEncryptedFileLocation) GetData2() *InputFileLocation_Data { if m != nil { return m.Data2 } return nil } -// contactLinkNone#feedd3ad = ContactLink; -type TLContactLinkNone struct { - Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputFileLocation; +type TLInputDocumentFileLocation struct { + Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactLinkNone) Reset() { *m = TLContactLinkNone{} } -func (m *TLContactLinkNone) String() string { return proto.CompactTextString(m) } -func (*TLContactLinkNone) ProtoMessage() {} -func (*TLContactLinkNone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{293} +func (m *TLInputDocumentFileLocation) Reset() { *m = TLInputDocumentFileLocation{} } +func (m *TLInputDocumentFileLocation) String() string { return proto.CompactTextString(m) } +func (*TLInputDocumentFileLocation) ProtoMessage() {} +func (*TLInputDocumentFileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{270} } -func (m *TLContactLinkNone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactLinkNone.Unmarshal(m, b) +func (m *TLInputDocumentFileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputDocumentFileLocation.Unmarshal(m, b) } -func (m *TLContactLinkNone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactLinkNone.Marshal(b, m, deterministic) +func (m *TLInputDocumentFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputDocumentFileLocation.Marshal(b, m, deterministic) } -func (dst *TLContactLinkNone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactLinkNone.Merge(dst, src) +func (dst *TLInputDocumentFileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputDocumentFileLocation.Merge(dst, src) } -func (m *TLContactLinkNone) XXX_Size() int { - return xxx_messageInfo_TLContactLinkNone.Size(m) +func (m *TLInputDocumentFileLocation) XXX_Size() int { + return xxx_messageInfo_TLInputDocumentFileLocation.Size(m) } -func (m *TLContactLinkNone) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactLinkNone.DiscardUnknown(m) +func (m *TLInputDocumentFileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputDocumentFileLocation.DiscardUnknown(m) } -var xxx_messageInfo_TLContactLinkNone proto.InternalMessageInfo +var xxx_messageInfo_TLInputDocumentFileLocation proto.InternalMessageInfo -func (m *TLContactLinkNone) GetData2() *ContactLink_Data { +func (m *TLInputDocumentFileLocation) GetData2() *InputFileLocation_Data { if m != nil { return m.Data2 } return nil } -// contactLinkHasPhone#268f3f59 = ContactLink; -type TLContactLinkHasPhone struct { - Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation; +type TLInputSecureFileLocation struct { + Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactLinkHasPhone) Reset() { *m = TLContactLinkHasPhone{} } -func (m *TLContactLinkHasPhone) String() string { return proto.CompactTextString(m) } -func (*TLContactLinkHasPhone) ProtoMessage() {} -func (*TLContactLinkHasPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{294} +func (m *TLInputSecureFileLocation) Reset() { *m = TLInputSecureFileLocation{} } +func (m *TLInputSecureFileLocation) String() string { return proto.CompactTextString(m) } +func (*TLInputSecureFileLocation) ProtoMessage() {} +func (*TLInputSecureFileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{271} } -func (m *TLContactLinkHasPhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactLinkHasPhone.Unmarshal(m, b) +func (m *TLInputSecureFileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputSecureFileLocation.Unmarshal(m, b) } -func (m *TLContactLinkHasPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactLinkHasPhone.Marshal(b, m, deterministic) +func (m *TLInputSecureFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputSecureFileLocation.Marshal(b, m, deterministic) } -func (dst *TLContactLinkHasPhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactLinkHasPhone.Merge(dst, src) +func (dst *TLInputSecureFileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputSecureFileLocation.Merge(dst, src) } -func (m *TLContactLinkHasPhone) XXX_Size() int { - return xxx_messageInfo_TLContactLinkHasPhone.Size(m) +func (m *TLInputSecureFileLocation) XXX_Size() int { + return xxx_messageInfo_TLInputSecureFileLocation.Size(m) } -func (m *TLContactLinkHasPhone) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactLinkHasPhone.DiscardUnknown(m) +func (m *TLInputSecureFileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputSecureFileLocation.DiscardUnknown(m) } -var xxx_messageInfo_TLContactLinkHasPhone proto.InternalMessageInfo +var xxx_messageInfo_TLInputSecureFileLocation proto.InternalMessageInfo -func (m *TLContactLinkHasPhone) GetData2() *ContactLink_Data { +func (m *TLInputSecureFileLocation) GetData2() *InputFileLocation_Data { if m != nil { return m.Data2 } return nil } -// contactLinkContact#d502c2d0 = ContactLink; -type TLContactLinkContact struct { - Data2 *ContactLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputTakeoutFileLocation#29be5899 = InputFileLocation; +type TLInputTakeoutFileLocation struct { + Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactLinkContact) Reset() { *m = TLContactLinkContact{} } -func (m *TLContactLinkContact) String() string { return proto.CompactTextString(m) } -func (*TLContactLinkContact) ProtoMessage() {} -func (*TLContactLinkContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{295} +func (m *TLInputTakeoutFileLocation) Reset() { *m = TLInputTakeoutFileLocation{} } +func (m *TLInputTakeoutFileLocation) String() string { return proto.CompactTextString(m) } +func (*TLInputTakeoutFileLocation) ProtoMessage() {} +func (*TLInputTakeoutFileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{272} } -func (m *TLContactLinkContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactLinkContact.Unmarshal(m, b) +func (m *TLInputTakeoutFileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputTakeoutFileLocation.Unmarshal(m, b) } -func (m *TLContactLinkContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactLinkContact.Marshal(b, m, deterministic) +func (m *TLInputTakeoutFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputTakeoutFileLocation.Marshal(b, m, deterministic) } -func (dst *TLContactLinkContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactLinkContact.Merge(dst, src) +func (dst *TLInputTakeoutFileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputTakeoutFileLocation.Merge(dst, src) } -func (m *TLContactLinkContact) XXX_Size() int { - return xxx_messageInfo_TLContactLinkContact.Size(m) +func (m *TLInputTakeoutFileLocation) XXX_Size() int { + return xxx_messageInfo_TLInputTakeoutFileLocation.Size(m) } -func (m *TLContactLinkContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactLinkContact.DiscardUnknown(m) +func (m *TLInputTakeoutFileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputTakeoutFileLocation.DiscardUnknown(m) } -var xxx_messageInfo_TLContactLinkContact proto.InternalMessageInfo +var xxx_messageInfo_TLInputTakeoutFileLocation proto.InternalMessageInfo -func (m *TLContactLinkContact) GetData2() *ContactLink_Data { +func (m *TLInputTakeoutFileLocation) GetData2() *InputFileLocation_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// SecureData <-- -// + TL_secureData -// -type SecureData_Data struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - DataHash []byte `protobuf:"bytes,2,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` - Secret []byte `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation; +type TLInputFileLocationLayer86 struct { + Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureData_Data) Reset() { *m = SecureData_Data{} } -func (m *SecureData_Data) String() string { return proto.CompactTextString(m) } -func (*SecureData_Data) ProtoMessage() {} -func (*SecureData_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{296} -} -func (m *SecureData_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureData_Data.Unmarshal(m, b) +func (m *TLInputFileLocationLayer86) Reset() { *m = TLInputFileLocationLayer86{} } +func (m *TLInputFileLocationLayer86) String() string { return proto.CompactTextString(m) } +func (*TLInputFileLocationLayer86) ProtoMessage() {} +func (*TLInputFileLocationLayer86) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{273} } -func (m *SecureData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureData_Data.Marshal(b, m, deterministic) +func (m *TLInputFileLocationLayer86) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputFileLocationLayer86.Unmarshal(m, b) } -func (dst *SecureData_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureData_Data.Merge(dst, src) +func (m *TLInputFileLocationLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputFileLocationLayer86.Marshal(b, m, deterministic) } -func (m *SecureData_Data) XXX_Size() int { - return xxx_messageInfo_SecureData_Data.Size(m) +func (dst *TLInputFileLocationLayer86) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputFileLocationLayer86.Merge(dst, src) } -func (m *SecureData_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecureData_Data.DiscardUnknown(m) +func (m *TLInputFileLocationLayer86) XXX_Size() int { + return xxx_messageInfo_TLInputFileLocationLayer86.Size(m) } - -var xxx_messageInfo_SecureData_Data proto.InternalMessageInfo - -func (m *SecureData_Data) GetData() []byte { - if m != nil { - return m.Data - } - return nil +func (m *TLInputFileLocationLayer86) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputFileLocationLayer86.DiscardUnknown(m) } -func (m *SecureData_Data) GetDataHash() []byte { - if m != nil { - return m.DataHash - } - return nil -} +var xxx_messageInfo_TLInputFileLocationLayer86 proto.InternalMessageInfo -func (m *SecureData_Data) GetSecret() []byte { +func (m *TLInputFileLocationLayer86) GetData2() *InputFileLocation_Data { if m != nil { - return m.Secret + return m.Data2 } return nil } -type SecureData struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecureData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputDocumentFileLocation#196683d9 id:long access_hash:long file_reference:bytes = InputFileLocation; +type TLInputDocumentFileLocationLayer86 struct { + Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureData) Reset() { *m = SecureData{} } -func (m *SecureData) String() string { return proto.CompactTextString(m) } -func (*SecureData) ProtoMessage() {} -func (*SecureData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{297} +func (m *TLInputDocumentFileLocationLayer86) Reset() { *m = TLInputDocumentFileLocationLayer86{} } +func (m *TLInputDocumentFileLocationLayer86) String() string { return proto.CompactTextString(m) } +func (*TLInputDocumentFileLocationLayer86) ProtoMessage() {} +func (*TLInputDocumentFileLocationLayer86) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{274} } -func (m *SecureData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureData.Unmarshal(m, b) +func (m *TLInputDocumentFileLocationLayer86) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputDocumentFileLocationLayer86.Unmarshal(m, b) } -func (m *SecureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureData.Marshal(b, m, deterministic) +func (m *TLInputDocumentFileLocationLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputDocumentFileLocationLayer86.Marshal(b, m, deterministic) } -func (dst *SecureData) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureData.Merge(dst, src) +func (dst *TLInputDocumentFileLocationLayer86) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputDocumentFileLocationLayer86.Merge(dst, src) } -func (m *SecureData) XXX_Size() int { - return xxx_messageInfo_SecureData.Size(m) +func (m *TLInputDocumentFileLocationLayer86) XXX_Size() int { + return xxx_messageInfo_TLInputDocumentFileLocationLayer86.Size(m) } -func (m *SecureData) XXX_DiscardUnknown() { - xxx_messageInfo_SecureData.DiscardUnknown(m) +func (m *TLInputDocumentFileLocationLayer86) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputDocumentFileLocationLayer86.DiscardUnknown(m) } -var xxx_messageInfo_SecureData proto.InternalMessageInfo +var xxx_messageInfo_TLInputDocumentFileLocationLayer86 proto.InternalMessageInfo -func (m *SecureData) GetConstructor() TLConstructor { +func (m *TLInputDocumentFileLocationLayer86) GetData2() *InputFileLocation_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *SecureData) GetData2() *SecureData_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData; -type TLSecureData struct { - Data2 *SecureData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputBotInlineResult <-- +// + TL_inputBotInlineResult +// + TL_inputBotInlineResultPhoto +// + TL_inputBotInlineResultDocument +// + TL_inputBotInlineResultGame +// +type InputBotInlineResult_Data struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` + Thumb *InputWebDocument `protobuf:"bytes,6,opt,name=thumb,proto3" json:"thumb,omitempty"` + Content *InputWebDocument `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` + SendMessage *InputBotInlineMessage `protobuf:"bytes,8,opt,name=send_message,json=sendMessage,proto3" json:"send_message,omitempty"` + Photo *InputPhoto `protobuf:"bytes,9,opt,name=photo,proto3" json:"photo,omitempty"` + Document *InputDocument `protobuf:"bytes,10,opt,name=document,proto3" json:"document,omitempty"` + ShortName string `protobuf:"bytes,11,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureData) Reset() { *m = TLSecureData{} } -func (m *TLSecureData) String() string { return proto.CompactTextString(m) } -func (*TLSecureData) ProtoMessage() {} -func (*TLSecureData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{298} +func (m *InputBotInlineResult_Data) Reset() { *m = InputBotInlineResult_Data{} } +func (m *InputBotInlineResult_Data) String() string { return proto.CompactTextString(m) } +func (*InputBotInlineResult_Data) ProtoMessage() {} +func (*InputBotInlineResult_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{275} } -func (m *TLSecureData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureData.Unmarshal(m, b) +func (m *InputBotInlineResult_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputBotInlineResult_Data.Unmarshal(m, b) } -func (m *TLSecureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureData.Marshal(b, m, deterministic) +func (m *InputBotInlineResult_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputBotInlineResult_Data.Marshal(b, m, deterministic) } -func (dst *TLSecureData) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureData.Merge(dst, src) +func (dst *InputBotInlineResult_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputBotInlineResult_Data.Merge(dst, src) } -func (m *TLSecureData) XXX_Size() int { - return xxx_messageInfo_TLSecureData.Size(m) +func (m *InputBotInlineResult_Data) XXX_Size() int { + return xxx_messageInfo_InputBotInlineResult_Data.Size(m) } -func (m *TLSecureData) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureData.DiscardUnknown(m) +func (m *InputBotInlineResult_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputBotInlineResult_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureData proto.InternalMessageInfo +var xxx_messageInfo_InputBotInlineResult_Data proto.InternalMessageInfo -func (m *TLSecureData) GetData2() *SecureData_Data { +func (m *InputBotInlineResult_Data) GetId() string { if m != nil { - return m.Data2 + return m.Id } - return nil + return "" } -// ///////////////////////////////////////////////////////////////////////////// -// InputChannel <-- -// + TL_inputChannelEmpty -// + TL_inputChannel -// -type InputChannel_Data struct { - ChannelId int32 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputBotInlineResult_Data) GetType() string { + if m != nil { + return m.Type + } + return "" } -func (m *InputChannel_Data) Reset() { *m = InputChannel_Data{} } -func (m *InputChannel_Data) String() string { return proto.CompactTextString(m) } -func (*InputChannel_Data) ProtoMessage() {} -func (*InputChannel_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{299} +func (m *InputBotInlineResult_Data) GetTitle() string { + if m != nil { + return m.Title + } + return "" } -func (m *InputChannel_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputChannel_Data.Unmarshal(m, b) + +func (m *InputBotInlineResult_Data) GetDescription() string { + if m != nil { + return m.Description + } + return "" } -func (m *InputChannel_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputChannel_Data.Marshal(b, m, deterministic) + +func (m *InputBotInlineResult_Data) GetUrl() string { + if m != nil { + return m.Url + } + return "" } -func (dst *InputChannel_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputChannel_Data.Merge(dst, src) + +func (m *InputBotInlineResult_Data) GetThumb() *InputWebDocument { + if m != nil { + return m.Thumb + } + return nil } -func (m *InputChannel_Data) XXX_Size() int { - return xxx_messageInfo_InputChannel_Data.Size(m) + +func (m *InputBotInlineResult_Data) GetContent() *InputWebDocument { + if m != nil { + return m.Content + } + return nil } -func (m *InputChannel_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputChannel_Data.DiscardUnknown(m) + +func (m *InputBotInlineResult_Data) GetSendMessage() *InputBotInlineMessage { + if m != nil { + return m.SendMessage + } + return nil } -var xxx_messageInfo_InputChannel_Data proto.InternalMessageInfo +func (m *InputBotInlineResult_Data) GetPhoto() *InputPhoto { + if m != nil { + return m.Photo + } + return nil +} -func (m *InputChannel_Data) GetChannelId() int32 { +func (m *InputBotInlineResult_Data) GetDocument() *InputDocument { if m != nil { - return m.ChannelId + return m.Document } - return 0 + return nil } -func (m *InputChannel_Data) GetAccessHash() int64 { +func (m *InputBotInlineResult_Data) GetShortName() string { if m != nil { - return m.AccessHash + return m.ShortName } - return 0 + return "" } -type InputChannel struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputChannel_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputBotInlineResult struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputChannel) Reset() { *m = InputChannel{} } -func (m *InputChannel) String() string { return proto.CompactTextString(m) } -func (*InputChannel) ProtoMessage() {} -func (*InputChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{300} +func (m *InputBotInlineResult) Reset() { *m = InputBotInlineResult{} } +func (m *InputBotInlineResult) String() string { return proto.CompactTextString(m) } +func (*InputBotInlineResult) ProtoMessage() {} +func (*InputBotInlineResult) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{276} } -func (m *InputChannel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputChannel.Unmarshal(m, b) +func (m *InputBotInlineResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputBotInlineResult.Unmarshal(m, b) } -func (m *InputChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputChannel.Marshal(b, m, deterministic) +func (m *InputBotInlineResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputBotInlineResult.Marshal(b, m, deterministic) } -func (dst *InputChannel) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputChannel.Merge(dst, src) +func (dst *InputBotInlineResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputBotInlineResult.Merge(dst, src) } -func (m *InputChannel) XXX_Size() int { - return xxx_messageInfo_InputChannel.Size(m) +func (m *InputBotInlineResult) XXX_Size() int { + return xxx_messageInfo_InputBotInlineResult.Size(m) } -func (m *InputChannel) XXX_DiscardUnknown() { - xxx_messageInfo_InputChannel.DiscardUnknown(m) +func (m *InputBotInlineResult) XXX_DiscardUnknown() { + xxx_messageInfo_InputBotInlineResult.DiscardUnknown(m) } -var xxx_messageInfo_InputChannel proto.InternalMessageInfo +var xxx_messageInfo_InputBotInlineResult proto.InternalMessageInfo -func (m *InputChannel) GetConstructor() TLConstructor { +func (m *InputBotInlineResult) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputChannel) GetData2() *InputChannel_Data { +func (m *InputBotInlineResult) GetData2() *InputBotInlineResult_Data { if m != nil { return m.Data2 } return nil } -// inputChannelEmpty#ee8c1e86 = InputChannel; -type TLInputChannelEmpty struct { - Data2 *InputChannel_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult; +type TLInputBotInlineResult struct { + Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputChannelEmpty) Reset() { *m = TLInputChannelEmpty{} } -func (m *TLInputChannelEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputChannelEmpty) ProtoMessage() {} -func (*TLInputChannelEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{301} +func (m *TLInputBotInlineResult) Reset() { *m = TLInputBotInlineResult{} } +func (m *TLInputBotInlineResult) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineResult) ProtoMessage() {} +func (*TLInputBotInlineResult) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{277} } -func (m *TLInputChannelEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputChannelEmpty.Unmarshal(m, b) +func (m *TLInputBotInlineResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineResult.Unmarshal(m, b) } -func (m *TLInputChannelEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputChannelEmpty.Marshal(b, m, deterministic) +func (m *TLInputBotInlineResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineResult.Marshal(b, m, deterministic) } -func (dst *TLInputChannelEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputChannelEmpty.Merge(dst, src) +func (dst *TLInputBotInlineResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineResult.Merge(dst, src) } -func (m *TLInputChannelEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputChannelEmpty.Size(m) +func (m *TLInputBotInlineResult) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineResult.Size(m) } -func (m *TLInputChannelEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputChannelEmpty.DiscardUnknown(m) +func (m *TLInputBotInlineResult) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineResult.DiscardUnknown(m) } -var xxx_messageInfo_TLInputChannelEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLInputBotInlineResult proto.InternalMessageInfo -func (m *TLInputChannelEmpty) GetData2() *InputChannel_Data { +func (m *TLInputBotInlineResult) GetData2() *InputBotInlineResult_Data { if m != nil { return m.Data2 } return nil } -// inputChannel#afeb712e channel_id:int access_hash:long = InputChannel; -type TLInputChannel struct { - Data2 *InputChannel_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult; +type TLInputBotInlineResultPhoto struct { + Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputChannel) Reset() { *m = TLInputChannel{} } -func (m *TLInputChannel) String() string { return proto.CompactTextString(m) } -func (*TLInputChannel) ProtoMessage() {} -func (*TLInputChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{302} +func (m *TLInputBotInlineResultPhoto) Reset() { *m = TLInputBotInlineResultPhoto{} } +func (m *TLInputBotInlineResultPhoto) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineResultPhoto) ProtoMessage() {} +func (*TLInputBotInlineResultPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{278} } -func (m *TLInputChannel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputChannel.Unmarshal(m, b) +func (m *TLInputBotInlineResultPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineResultPhoto.Unmarshal(m, b) } -func (m *TLInputChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputChannel.Marshal(b, m, deterministic) +func (m *TLInputBotInlineResultPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineResultPhoto.Marshal(b, m, deterministic) } -func (dst *TLInputChannel) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputChannel.Merge(dst, src) +func (dst *TLInputBotInlineResultPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineResultPhoto.Merge(dst, src) } -func (m *TLInputChannel) XXX_Size() int { - return xxx_messageInfo_TLInputChannel.Size(m) +func (m *TLInputBotInlineResultPhoto) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineResultPhoto.Size(m) } -func (m *TLInputChannel) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputChannel.DiscardUnknown(m) +func (m *TLInputBotInlineResultPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineResultPhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLInputChannel proto.InternalMessageInfo +var xxx_messageInfo_TLInputBotInlineResultPhoto proto.InternalMessageInfo -func (m *TLInputChannel) GetData2() *InputChannel_Data { +func (m *TLInputBotInlineResultPhoto) GetData2() *InputBotInlineResult_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_Messages <-- -// + TL_messages_messages -// + TL_messages_messagesSlice -// + TL_messages_channelMessages -// + TL_messages_messagesNotModified -// -type Messages_Messages_Data struct { - Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` - Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` - Pts int32 `protobuf:"varint,5,opt,name=pts,proto3" json:"pts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult; +type TLInputBotInlineResultDocument struct { + Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_Messages_Data) Reset() { *m = Messages_Messages_Data{} } -func (m *Messages_Messages_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_Messages_Data) ProtoMessage() {} -func (*Messages_Messages_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{303} +func (m *TLInputBotInlineResultDocument) Reset() { *m = TLInputBotInlineResultDocument{} } +func (m *TLInputBotInlineResultDocument) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineResultDocument) ProtoMessage() {} +func (*TLInputBotInlineResultDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{279} } -func (m *Messages_Messages_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_Messages_Data.Unmarshal(m, b) +func (m *TLInputBotInlineResultDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineResultDocument.Unmarshal(m, b) } -func (m *Messages_Messages_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_Messages_Data.Marshal(b, m, deterministic) +func (m *TLInputBotInlineResultDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineResultDocument.Marshal(b, m, deterministic) } -func (dst *Messages_Messages_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_Messages_Data.Merge(dst, src) +func (dst *TLInputBotInlineResultDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineResultDocument.Merge(dst, src) } -func (m *Messages_Messages_Data) XXX_Size() int { - return xxx_messageInfo_Messages_Messages_Data.Size(m) +func (m *TLInputBotInlineResultDocument) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineResultDocument.Size(m) } -func (m *Messages_Messages_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_Messages_Data.DiscardUnknown(m) +func (m *TLInputBotInlineResultDocument) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineResultDocument.DiscardUnknown(m) } -var xxx_messageInfo_Messages_Messages_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputBotInlineResultDocument proto.InternalMessageInfo -func (m *Messages_Messages_Data) GetMessages() []*Message { +func (m *TLInputBotInlineResultDocument) GetData2() *InputBotInlineResult_Data { if m != nil { - return m.Messages + return m.Data2 } return nil } -func (m *Messages_Messages_Data) GetChats() []*Chat { +// inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult; +type TLInputBotInlineResultGame struct { + Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputBotInlineResultGame) Reset() { *m = TLInputBotInlineResultGame{} } +func (m *TLInputBotInlineResultGame) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineResultGame) ProtoMessage() {} +func (*TLInputBotInlineResultGame) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{280} +} +func (m *TLInputBotInlineResultGame) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineResultGame.Unmarshal(m, b) +} +func (m *TLInputBotInlineResultGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineResultGame.Marshal(b, m, deterministic) +} +func (dst *TLInputBotInlineResultGame) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineResultGame.Merge(dst, src) +} +func (m *TLInputBotInlineResultGame) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineResultGame.Size(m) +} +func (m *TLInputBotInlineResultGame) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineResultGame.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputBotInlineResultGame proto.InternalMessageInfo + +func (m *TLInputBotInlineResultGame) GetData2() *InputBotInlineResult_Data { if m != nil { - return m.Chats + return m.Data2 } return nil } -func (m *Messages_Messages_Data) GetUsers() []*User { +// ///////////////////////////////////////////////////////////////////////////// +// SavedContact <-- +// + TL_savedPhoneContact +// +type SavedContact_Data struct { + Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` + FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Date int32 `protobuf:"varint,4,opt,name=date,proto3" json:"date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SavedContact_Data) Reset() { *m = SavedContact_Data{} } +func (m *SavedContact_Data) String() string { return proto.CompactTextString(m) } +func (*SavedContact_Data) ProtoMessage() {} +func (*SavedContact_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{281} +} +func (m *SavedContact_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SavedContact_Data.Unmarshal(m, b) +} +func (m *SavedContact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SavedContact_Data.Marshal(b, m, deterministic) +} +func (dst *SavedContact_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SavedContact_Data.Merge(dst, src) +} +func (m *SavedContact_Data) XXX_Size() int { + return xxx_messageInfo_SavedContact_Data.Size(m) +} +func (m *SavedContact_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SavedContact_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_SavedContact_Data proto.InternalMessageInfo + +func (m *SavedContact_Data) GetPhone() string { if m != nil { - return m.Users + return m.Phone } - return nil + return "" } -func (m *Messages_Messages_Data) GetCount() int32 { +func (m *SavedContact_Data) GetFirstName() string { if m != nil { - return m.Count + return m.FirstName } - return 0 + return "" } -func (m *Messages_Messages_Data) GetPts() int32 { +func (m *SavedContact_Data) GetLastName() string { if m != nil { - return m.Pts + return m.LastName + } + return "" +} + +func (m *SavedContact_Data) GetDate() int32 { + if m != nil { + return m.Date } return 0 } -type Messages_Messages struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SavedContact struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SavedContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_Messages) Reset() { *m = Messages_Messages{} } -func (m *Messages_Messages) String() string { return proto.CompactTextString(m) } -func (*Messages_Messages) ProtoMessage() {} -func (*Messages_Messages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{304} +func (m *SavedContact) Reset() { *m = SavedContact{} } +func (m *SavedContact) String() string { return proto.CompactTextString(m) } +func (*SavedContact) ProtoMessage() {} +func (*SavedContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{282} } -func (m *Messages_Messages) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_Messages.Unmarshal(m, b) +func (m *SavedContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SavedContact.Unmarshal(m, b) } -func (m *Messages_Messages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_Messages.Marshal(b, m, deterministic) +func (m *SavedContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SavedContact.Marshal(b, m, deterministic) } -func (dst *Messages_Messages) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_Messages.Merge(dst, src) +func (dst *SavedContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_SavedContact.Merge(dst, src) } -func (m *Messages_Messages) XXX_Size() int { - return xxx_messageInfo_Messages_Messages.Size(m) +func (m *SavedContact) XXX_Size() int { + return xxx_messageInfo_SavedContact.Size(m) } -func (m *Messages_Messages) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_Messages.DiscardUnknown(m) +func (m *SavedContact) XXX_DiscardUnknown() { + xxx_messageInfo_SavedContact.DiscardUnknown(m) } -var xxx_messageInfo_Messages_Messages proto.InternalMessageInfo +var xxx_messageInfo_SavedContact proto.InternalMessageInfo -func (m *Messages_Messages) GetConstructor() TLConstructor { +func (m *SavedContact) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_Messages) GetData2() *Messages_Messages_Data { +func (m *SavedContact) GetData2() *SavedContact_Data { if m != nil { return m.Data2 } return nil } -// messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages; -type TLMessagesMessages struct { - Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact; +type TLSavedPhoneContact struct { + Data2 *SavedContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesMessages) Reset() { *m = TLMessagesMessages{} } -func (m *TLMessagesMessages) String() string { return proto.CompactTextString(m) } -func (*TLMessagesMessages) ProtoMessage() {} -func (*TLMessagesMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{305} +func (m *TLSavedPhoneContact) Reset() { *m = TLSavedPhoneContact{} } +func (m *TLSavedPhoneContact) String() string { return proto.CompactTextString(m) } +func (*TLSavedPhoneContact) ProtoMessage() {} +func (*TLSavedPhoneContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{283} } -func (m *TLMessagesMessages) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesMessages.Unmarshal(m, b) +func (m *TLSavedPhoneContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSavedPhoneContact.Unmarshal(m, b) } -func (m *TLMessagesMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesMessages.Marshal(b, m, deterministic) +func (m *TLSavedPhoneContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSavedPhoneContact.Marshal(b, m, deterministic) } -func (dst *TLMessagesMessages) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesMessages.Merge(dst, src) +func (dst *TLSavedPhoneContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSavedPhoneContact.Merge(dst, src) } -func (m *TLMessagesMessages) XXX_Size() int { - return xxx_messageInfo_TLMessagesMessages.Size(m) +func (m *TLSavedPhoneContact) XXX_Size() int { + return xxx_messageInfo_TLSavedPhoneContact.Size(m) } -func (m *TLMessagesMessages) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesMessages.DiscardUnknown(m) +func (m *TLSavedPhoneContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLSavedPhoneContact.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesMessages proto.InternalMessageInfo +var xxx_messageInfo_TLSavedPhoneContact proto.InternalMessageInfo -func (m *TLMessagesMessages) GetData2() *Messages_Messages_Data { +func (m *TLSavedPhoneContact) GetData2() *SavedContact_Data { if m != nil { return m.Data2 } return nil } -// messages.messagesSlice#b446ae3 count:int messages:Vector chats:Vector users:Vector = messages.Messages; -type TLMessagesMessagesSlice struct { - Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// updates_ChannelDifference <-- +// + TL_updates_channelDifferenceEmpty +// + TL_updates_channelDifferenceTooLong +// + TL_updates_channelDifference +// +type Updates_ChannelDifference_Data struct { + Final bool `protobuf:"varint,1,opt,name=final,proto3" json:"final,omitempty"` + Pts int32 `protobuf:"varint,2,opt,name=pts,proto3" json:"pts,omitempty"` + Timeout int32 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` + TopMessage int32 `protobuf:"varint,4,opt,name=top_message,json=topMessage,proto3" json:"top_message,omitempty"` + ReadInboxMaxId int32 `protobuf:"varint,5,opt,name=read_inbox_max_id,json=readInboxMaxId,proto3" json:"read_inbox_max_id,omitempty"` + ReadOutboxMaxId int32 `protobuf:"varint,6,opt,name=read_outbox_max_id,json=readOutboxMaxId,proto3" json:"read_outbox_max_id,omitempty"` + UnreadCount int32 `protobuf:"varint,7,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` + UnreadMentionsCount int32 `protobuf:"varint,8,opt,name=unread_mentions_count,json=unreadMentionsCount,proto3" json:"unread_mentions_count,omitempty"` + Messages []*Message `protobuf:"bytes,9,rep,name=messages,proto3" json:"messages,omitempty"` + Chats []*Chat `protobuf:"bytes,10,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,11,rep,name=users,proto3" json:"users,omitempty"` + NewMessages []*Message `protobuf:"bytes,12,rep,name=new_messages,json=newMessages,proto3" json:"new_messages,omitempty"` + OtherUpdates []*Update `protobuf:"bytes,13,rep,name=other_updates,json=otherUpdates,proto3" json:"other_updates,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesMessagesSlice) Reset() { *m = TLMessagesMessagesSlice{} } -func (m *TLMessagesMessagesSlice) String() string { return proto.CompactTextString(m) } -func (*TLMessagesMessagesSlice) ProtoMessage() {} -func (*TLMessagesMessagesSlice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{306} +func (m *Updates_ChannelDifference_Data) Reset() { *m = Updates_ChannelDifference_Data{} } +func (m *Updates_ChannelDifference_Data) String() string { return proto.CompactTextString(m) } +func (*Updates_ChannelDifference_Data) ProtoMessage() {} +func (*Updates_ChannelDifference_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{284} } -func (m *TLMessagesMessagesSlice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesMessagesSlice.Unmarshal(m, b) +func (m *Updates_ChannelDifference_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Updates_ChannelDifference_Data.Unmarshal(m, b) } -func (m *TLMessagesMessagesSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesMessagesSlice.Marshal(b, m, deterministic) +func (m *Updates_ChannelDifference_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Updates_ChannelDifference_Data.Marshal(b, m, deterministic) } -func (dst *TLMessagesMessagesSlice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesMessagesSlice.Merge(dst, src) +func (dst *Updates_ChannelDifference_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Updates_ChannelDifference_Data.Merge(dst, src) } -func (m *TLMessagesMessagesSlice) XXX_Size() int { - return xxx_messageInfo_TLMessagesMessagesSlice.Size(m) +func (m *Updates_ChannelDifference_Data) XXX_Size() int { + return xxx_messageInfo_Updates_ChannelDifference_Data.Size(m) } -func (m *TLMessagesMessagesSlice) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesMessagesSlice.DiscardUnknown(m) +func (m *Updates_ChannelDifference_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Updates_ChannelDifference_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesMessagesSlice proto.InternalMessageInfo +var xxx_messageInfo_Updates_ChannelDifference_Data proto.InternalMessageInfo -func (m *TLMessagesMessagesSlice) GetData2() *Messages_Messages_Data { +func (m *Updates_ChannelDifference_Data) GetFinal() bool { if m != nil { - return m.Data2 + return m.Final } - return nil -} - -// messages.channelMessages#99262e37 flags:# pts:int count:int messages:Vector chats:Vector users:Vector = messages.Messages; -type TLMessagesChannelMessages struct { - Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLMessagesChannelMessages) Reset() { *m = TLMessagesChannelMessages{} } -func (m *TLMessagesChannelMessages) String() string { return proto.CompactTextString(m) } -func (*TLMessagesChannelMessages) ProtoMessage() {} -func (*TLMessagesChannelMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{307} -} -func (m *TLMessagesChannelMessages) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesChannelMessages.Unmarshal(m, b) -} -func (m *TLMessagesChannelMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesChannelMessages.Marshal(b, m, deterministic) -} -func (dst *TLMessagesChannelMessages) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesChannelMessages.Merge(dst, src) -} -func (m *TLMessagesChannelMessages) XXX_Size() int { - return xxx_messageInfo_TLMessagesChannelMessages.Size(m) -} -func (m *TLMessagesChannelMessages) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesChannelMessages.DiscardUnknown(m) + return false } -var xxx_messageInfo_TLMessagesChannelMessages proto.InternalMessageInfo - -func (m *TLMessagesChannelMessages) GetData2() *Messages_Messages_Data { +func (m *Updates_ChannelDifference_Data) GetPts() int32 { if m != nil { - return m.Data2 + return m.Pts } - return nil -} - -// messages.messagesNotModified#74535f21 count:int = messages.Messages; -type TLMessagesMessagesNotModified struct { - Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLMessagesMessagesNotModified) Reset() { *m = TLMessagesMessagesNotModified{} } -func (m *TLMessagesMessagesNotModified) String() string { return proto.CompactTextString(m) } -func (*TLMessagesMessagesNotModified) ProtoMessage() {} -func (*TLMessagesMessagesNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{308} -} -func (m *TLMessagesMessagesNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesMessagesNotModified.Unmarshal(m, b) -} -func (m *TLMessagesMessagesNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesMessagesNotModified.Marshal(b, m, deterministic) -} -func (dst *TLMessagesMessagesNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesMessagesNotModified.Merge(dst, src) -} -func (m *TLMessagesMessagesNotModified) XXX_Size() int { - return xxx_messageInfo_TLMessagesMessagesNotModified.Size(m) -} -func (m *TLMessagesMessagesNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesMessagesNotModified.DiscardUnknown(m) + return 0 } -var xxx_messageInfo_TLMessagesMessagesNotModified proto.InternalMessageInfo - -func (m *TLMessagesMessagesNotModified) GetData2() *Messages_Messages_Data { +func (m *Updates_ChannelDifference_Data) GetTimeout() int32 { if m != nil { - return m.Data2 + return m.Timeout } - return nil -} - -// ///////////////////////////////////////////////////////////////////////////// -// Update <-- -// + TL_updateNewMessage -// + TL_updateMessageID -// + TL_updateDeleteMessages -// + TL_updateUserTyping -// + TL_updateChatUserTyping -// + TL_updateChatParticipants -// + TL_updateUserStatus -// + TL_updateUserName -// + TL_updateUserPhoto -// + TL_updateContactRegistered -// + TL_updateContactLink -// + TL_updateNewEncryptedMessage -// + TL_updateEncryptedChatTyping -// + TL_updateEncryption -// + TL_updateEncryptedMessagesRead -// + TL_updateChatParticipantAdd -// + TL_updateChatParticipantDelete -// + TL_updateDcOptions -// + TL_updateUserBlocked -// + TL_updateNotifySettings -// + TL_updateServiceNotification -// + TL_updatePrivacy -// + TL_updateUserPhone -// + TL_updateReadHistoryInbox -// + TL_updateReadHistoryOutbox -// + TL_updateWebPage -// + TL_updateReadMessagesContents -// + TL_updateChannelTooLong -// + TL_updateChannel -// + TL_updateNewChannelMessage -// + TL_updateReadChannelInbox -// + TL_updateDeleteChannelMessages -// + TL_updateChannelMessageViews -// + TL_updateChatAdmins -// + TL_updateChatParticipantAdmin -// + TL_updateNewStickerSet -// + TL_updateStickerSetsOrder -// + TL_updateStickerSets -// + TL_updateSavedGifs -// + TL_updateBotInlineQuery -// + TL_updateBotInlineSend -// + TL_updateEditChannelMessage -// + TL_updateChannelPinnedMessage -// + TL_updateBotCallbackQuery -// + TL_updateEditMessage -// + TL_updateInlineBotCallbackQuery -// + TL_updateReadChannelOutbox -// + TL_updateDraftMessage -// + TL_updateReadFeaturedStickers -// + TL_updateRecentStickers -// + TL_updateConfig -// + TL_updatePtsChanged -// + TL_updateChannelWebPage -// + TL_updateDialogPinned -// + TL_updatePinnedDialogs -// + TL_updateBotWebhookJSON -// + TL_updateBotWebhookJSONQuery -// + TL_updateBotShippingQuery -// + TL_updateBotPrecheckoutQuery -// + TL_updatePhoneCall -// + TL_updateLangPackTooLong -// + TL_updateLangPack -// + TL_updateFavedStickers -// + TL_updateChannelReadMessagesContents -// + TL_updateContactsReset -// + TL_updateChannelAvailableMessages -// + TL_updateDialogUnreadMark -// -type Update_Data struct { - Message_1 *Message `protobuf:"bytes,1,opt,name=message_1,json=message1,proto3" json:"message_1,omitempty"` - Pts int32 `protobuf:"varint,2,opt,name=pts,proto3" json:"pts,omitempty"` - PtsCount int32 `protobuf:"varint,3,opt,name=pts_count,json=ptsCount,proto3" json:"pts_count,omitempty"` - Id_4 int32 `protobuf:"varint,4,opt,name=id_4,json=id4,proto3" json:"id_4,omitempty"` - RandomId int64 `protobuf:"varint,5,opt,name=random_id,json=randomId,proto3" json:"random_id,omitempty"` - Messages []int32 `protobuf:"varint,6,rep,packed,name=messages,proto3" json:"messages,omitempty"` - UserId int32 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Action *SendMessageAction `protobuf:"bytes,8,opt,name=action,proto3" json:"action,omitempty"` - ChatId int32 `protobuf:"varint,9,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - Participants *ChatParticipants `protobuf:"bytes,10,opt,name=participants,proto3" json:"participants,omitempty"` - Status *UserStatus `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"` - FirstName string `protobuf:"bytes,12,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,13,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Username string `protobuf:"bytes,14,opt,name=username,proto3" json:"username,omitempty"` - Date int32 `protobuf:"varint,15,opt,name=date,proto3" json:"date,omitempty"` - Photo *UserProfilePhoto `protobuf:"bytes,16,opt,name=photo,proto3" json:"photo,omitempty"` - Previous *Bool `protobuf:"bytes,17,opt,name=previous,proto3" json:"previous,omitempty"` - MyLink *ContactLink `protobuf:"bytes,18,opt,name=my_link,json=myLink,proto3" json:"my_link,omitempty"` - ForeignLink *ContactLink `protobuf:"bytes,19,opt,name=foreign_link,json=foreignLink,proto3" json:"foreign_link,omitempty"` - Message_20 *EncryptedMessage `protobuf:"bytes,20,opt,name=message_20,json=message20,proto3" json:"message_20,omitempty"` - Qts int32 `protobuf:"varint,21,opt,name=qts,proto3" json:"qts,omitempty"` - Chat *EncryptedChat `protobuf:"bytes,22,opt,name=chat,proto3" json:"chat,omitempty"` - MaxDate int32 `protobuf:"varint,23,opt,name=max_date,json=maxDate,proto3" json:"max_date,omitempty"` - InviterId int32 `protobuf:"varint,24,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` - Version int32 `protobuf:"varint,25,opt,name=version,proto3" json:"version,omitempty"` - DcOptions []*DcOption `protobuf:"bytes,26,rep,name=dc_options,json=dcOptions,proto3" json:"dc_options,omitempty"` - Blocked *Bool `protobuf:"bytes,27,opt,name=blocked,proto3" json:"blocked,omitempty"` - Peer_28 *NotifyPeer `protobuf:"bytes,28,opt,name=peer_28,json=peer28,proto3" json:"peer_28,omitempty"` - NotifySettings *PeerNotifySettings `protobuf:"bytes,29,opt,name=notify_settings,json=notifySettings,proto3" json:"notify_settings,omitempty"` - Popup bool `protobuf:"varint,30,opt,name=popup,proto3" json:"popup,omitempty"` - InboxDate int32 `protobuf:"varint,31,opt,name=inbox_date,json=inboxDate,proto3" json:"inbox_date,omitempty"` - Type string `protobuf:"bytes,32,opt,name=type,proto3" json:"type,omitempty"` - Message_33 string `protobuf:"bytes,33,opt,name=message_33,json=message33,proto3" json:"message_33,omitempty"` - Media *MessageMedia `protobuf:"bytes,34,opt,name=media,proto3" json:"media,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,35,rep,name=entities,proto3" json:"entities,omitempty"` - Key *PrivacyKey `protobuf:"bytes,36,opt,name=key,proto3" json:"key,omitempty"` - Rules []*PrivacyRule `protobuf:"bytes,37,rep,name=rules,proto3" json:"rules,omitempty"` - Phone string `protobuf:"bytes,38,opt,name=phone,proto3" json:"phone,omitempty"` - Peer_39 *Peer `protobuf:"bytes,39,opt,name=peer_39,json=peer39,proto3" json:"peer_39,omitempty"` - MaxId int32 `protobuf:"varint,40,opt,name=max_id,json=maxId,proto3" json:"max_id,omitempty"` - Webpage *WebPage `protobuf:"bytes,41,opt,name=webpage,proto3" json:"webpage,omitempty"` - ChannelId int32 `protobuf:"varint,42,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - Views int32 `protobuf:"varint,43,opt,name=views,proto3" json:"views,omitempty"` - Enabled *Bool `protobuf:"bytes,44,opt,name=enabled,proto3" json:"enabled,omitempty"` - IsAdmin *Bool `protobuf:"bytes,45,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` - Stickerset *Messages_StickerSet `protobuf:"bytes,46,opt,name=stickerset,proto3" json:"stickerset,omitempty"` - Masks bool `protobuf:"varint,47,opt,name=masks,proto3" json:"masks,omitempty"` - Order_48 []int64 `protobuf:"varint,48,rep,packed,name=order_48,json=order48,proto3" json:"order_48,omitempty"` - QueryId int64 `protobuf:"varint,49,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` - Query string `protobuf:"bytes,50,opt,name=query,proto3" json:"query,omitempty"` - Geo *GeoPoint `protobuf:"bytes,51,opt,name=geo,proto3" json:"geo,omitempty"` - Offset string `protobuf:"bytes,52,opt,name=offset,proto3" json:"offset,omitempty"` - Id_53 string `protobuf:"bytes,53,opt,name=id_53,json=id53,proto3" json:"id_53,omitempty"` - MsgId_54 *InputBotInlineMessageID `protobuf:"bytes,54,opt,name=msg_id_54,json=msgId54,proto3" json:"msg_id_54,omitempty"` - MsgId_55 int32 `protobuf:"varint,55,opt,name=msg_id_55,json=msgId55,proto3" json:"msg_id_55,omitempty"` - ChatInstance int64 `protobuf:"varint,56,opt,name=chat_instance,json=chatInstance,proto3" json:"chat_instance,omitempty"` - Data_57 []byte `protobuf:"bytes,57,opt,name=data_57,json=data57,proto3" json:"data_57,omitempty"` - GameShortName string `protobuf:"bytes,58,opt,name=game_short_name,json=gameShortName,proto3" json:"game_short_name,omitempty"` - Draft *DraftMessage `protobuf:"bytes,59,opt,name=draft,proto3" json:"draft,omitempty"` - Pinned bool `protobuf:"varint,60,opt,name=pinned,proto3" json:"pinned,omitempty"` - Peer_61 *DialogPeer `protobuf:"bytes,61,opt,name=peer_61,json=peer61,proto3" json:"peer_61,omitempty"` - Order_62 []*DialogPeer `protobuf:"bytes,62,rep,name=order_62,json=order62,proto3" json:"order_62,omitempty"` - Data_63 *DataJSON `protobuf:"bytes,63,opt,name=data_63,json=data63,proto3" json:"data_63,omitempty"` - Timeout int32 `protobuf:"varint,64,opt,name=timeout,proto3" json:"timeout,omitempty"` - Payload []byte `protobuf:"bytes,65,opt,name=payload,proto3" json:"payload,omitempty"` - ShippingAddress *PostAddress `protobuf:"bytes,66,opt,name=shipping_address,json=shippingAddress,proto3" json:"shipping_address,omitempty"` - Info *PaymentRequestedInfo `protobuf:"bytes,67,opt,name=info,proto3" json:"info,omitempty"` - ShippingOptionId string `protobuf:"bytes,68,opt,name=shipping_option_id,json=shippingOptionId,proto3" json:"shipping_option_id,omitempty"` - Currency string `protobuf:"bytes,69,opt,name=currency,proto3" json:"currency,omitempty"` - TotalAmount int64 `protobuf:"varint,70,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` - PhoneCall *PhoneCall `protobuf:"bytes,71,opt,name=phone_call,json=phoneCall,proto3" json:"phone_call,omitempty"` - Difference *LangPackDifference `protobuf:"bytes,72,opt,name=difference,proto3" json:"difference,omitempty"` - AvailableMinId int32 `protobuf:"varint,73,opt,name=available_min_id,json=availableMinId,proto3" json:"available_min_id,omitempty"` - Unread bool `protobuf:"varint,74,opt,name=unread,proto3" json:"unread,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Update_Data) Reset() { *m = Update_Data{} } -func (m *Update_Data) String() string { return proto.CompactTextString(m) } -func (*Update_Data) ProtoMessage() {} -func (*Update_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{309} -} -func (m *Update_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Update_Data.Unmarshal(m, b) -} -func (m *Update_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Update_Data.Marshal(b, m, deterministic) -} -func (dst *Update_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Update_Data.Merge(dst, src) -} -func (m *Update_Data) XXX_Size() int { - return xxx_messageInfo_Update_Data.Size(m) -} -func (m *Update_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Update_Data.DiscardUnknown(m) + return 0 } -var xxx_messageInfo_Update_Data proto.InternalMessageInfo - -func (m *Update_Data) GetMessage_1() *Message { +func (m *Updates_ChannelDifference_Data) GetTopMessage() int32 { if m != nil { - return m.Message_1 + return m.TopMessage } - return nil + return 0 } -func (m *Update_Data) GetPts() int32 { +func (m *Updates_ChannelDifference_Data) GetReadInboxMaxId() int32 { if m != nil { - return m.Pts + return m.ReadInboxMaxId } return 0 } -func (m *Update_Data) GetPtsCount() int32 { +func (m *Updates_ChannelDifference_Data) GetReadOutboxMaxId() int32 { if m != nil { - return m.PtsCount + return m.ReadOutboxMaxId } return 0 } -func (m *Update_Data) GetId_4() int32 { +func (m *Updates_ChannelDifference_Data) GetUnreadCount() int32 { if m != nil { - return m.Id_4 + return m.UnreadCount } return 0 } -func (m *Update_Data) GetRandomId() int64 { +func (m *Updates_ChannelDifference_Data) GetUnreadMentionsCount() int32 { if m != nil { - return m.RandomId + return m.UnreadMentionsCount } return 0 } -func (m *Update_Data) GetMessages() []int32 { +func (m *Updates_ChannelDifference_Data) GetMessages() []*Message { if m != nil { return m.Messages } return nil } -func (m *Update_Data) GetUserId() int32 { - if m != nil { - return m.UserId - } - return 0 -} - -func (m *Update_Data) GetAction() *SendMessageAction { +func (m *Updates_ChannelDifference_Data) GetChats() []*Chat { if m != nil { - return m.Action + return m.Chats } return nil } -func (m *Update_Data) GetChatId() int32 { +func (m *Updates_ChannelDifference_Data) GetUsers() []*User { if m != nil { - return m.ChatId + return m.Users } - return 0 + return nil } -func (m *Update_Data) GetParticipants() *ChatParticipants { +func (m *Updates_ChannelDifference_Data) GetNewMessages() []*Message { if m != nil { - return m.Participants + return m.NewMessages } return nil } -func (m *Update_Data) GetStatus() *UserStatus { +func (m *Updates_ChannelDifference_Data) GetOtherUpdates() []*Update { if m != nil { - return m.Status + return m.OtherUpdates } return nil } -func (m *Update_Data) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" +type Updates_ChannelDifference struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Updates_ChannelDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Update_Data) GetLastName() string { - if m != nil { - return m.LastName - } - return "" +func (m *Updates_ChannelDifference) Reset() { *m = Updates_ChannelDifference{} } +func (m *Updates_ChannelDifference) String() string { return proto.CompactTextString(m) } +func (*Updates_ChannelDifference) ProtoMessage() {} +func (*Updates_ChannelDifference) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{285} } - -func (m *Update_Data) GetUsername() string { - if m != nil { - return m.Username - } - return "" +func (m *Updates_ChannelDifference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Updates_ChannelDifference.Unmarshal(m, b) } - -func (m *Update_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 +func (m *Updates_ChannelDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Updates_ChannelDifference.Marshal(b, m, deterministic) } - -func (m *Update_Data) GetPhoto() *UserProfilePhoto { - if m != nil { - return m.Photo - } - return nil +func (dst *Updates_ChannelDifference) XXX_Merge(src proto.Message) { + xxx_messageInfo_Updates_ChannelDifference.Merge(dst, src) } - -func (m *Update_Data) GetPrevious() *Bool { - if m != nil { - return m.Previous - } - return nil +func (m *Updates_ChannelDifference) XXX_Size() int { + return xxx_messageInfo_Updates_ChannelDifference.Size(m) } - -func (m *Update_Data) GetMyLink() *ContactLink { - if m != nil { - return m.MyLink - } - return nil +func (m *Updates_ChannelDifference) XXX_DiscardUnknown() { + xxx_messageInfo_Updates_ChannelDifference.DiscardUnknown(m) } -func (m *Update_Data) GetForeignLink() *ContactLink { +var xxx_messageInfo_Updates_ChannelDifference proto.InternalMessageInfo + +func (m *Updates_ChannelDifference) GetConstructor() TLConstructor { if m != nil { - return m.ForeignLink + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *Update_Data) GetMessage_20() *EncryptedMessage { +func (m *Updates_ChannelDifference) GetData2() *Updates_ChannelDifference_Data { if m != nil { - return m.Message_20 + return m.Data2 } return nil } -func (m *Update_Data) GetQts() int32 { - if m != nil { - return m.Qts - } - return 0 +// updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference; +type TLUpdatesChannelDifferenceEmpty struct { + Data2 *Updates_ChannelDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Update_Data) GetChat() *EncryptedChat { - if m != nil { - return m.Chat - } - return nil +func (m *TLUpdatesChannelDifferenceEmpty) Reset() { *m = TLUpdatesChannelDifferenceEmpty{} } +func (m *TLUpdatesChannelDifferenceEmpty) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesChannelDifferenceEmpty) ProtoMessage() {} +func (*TLUpdatesChannelDifferenceEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{286} } - -func (m *Update_Data) GetMaxDate() int32 { - if m != nil { - return m.MaxDate - } - return 0 +func (m *TLUpdatesChannelDifferenceEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.Unmarshal(m, b) } - -func (m *Update_Data) GetInviterId() int32 { - if m != nil { - return m.InviterId - } - return 0 +func (m *TLUpdatesChannelDifferenceEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.Marshal(b, m, deterministic) } - -func (m *Update_Data) GetVersion() int32 { - if m != nil { - return m.Version - } - return 0 +func (dst *TLUpdatesChannelDifferenceEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.Merge(dst, src) } - -func (m *Update_Data) GetDcOptions() []*DcOption { - if m != nil { - return m.DcOptions - } - return nil +func (m *TLUpdatesChannelDifferenceEmpty) XXX_Size() int { + return xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.Size(m) +} +func (m *TLUpdatesChannelDifferenceEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.DiscardUnknown(m) } -func (m *Update_Data) GetBlocked() *Bool { +var xxx_messageInfo_TLUpdatesChannelDifferenceEmpty proto.InternalMessageInfo + +func (m *TLUpdatesChannelDifferenceEmpty) GetData2() *Updates_ChannelDifference_Data { if m != nil { - return m.Blocked + return m.Data2 } return nil } -func (m *Update_Data) GetPeer_28() *NotifyPeer { - if m != nil { - return m.Peer_28 - } - return nil -} - -func (m *Update_Data) GetNotifySettings() *PeerNotifySettings { - if m != nil { - return m.NotifySettings - } - return nil +// updates.channelDifferenceTooLong#6a9d7b35 flags:# final:flags.0?true pts:int timeout:flags.1?int top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int messages:Vector chats:Vector users:Vector = updates.ChannelDifference; +type TLUpdatesChannelDifferenceTooLong struct { + Data2 *Updates_ChannelDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Update_Data) GetPopup() bool { - if m != nil { - return m.Popup - } - return false +func (m *TLUpdatesChannelDifferenceTooLong) Reset() { *m = TLUpdatesChannelDifferenceTooLong{} } +func (m *TLUpdatesChannelDifferenceTooLong) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesChannelDifferenceTooLong) ProtoMessage() {} +func (*TLUpdatesChannelDifferenceTooLong) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{287} } - -func (m *Update_Data) GetInboxDate() int32 { - if m != nil { - return m.InboxDate - } - return 0 +func (m *TLUpdatesChannelDifferenceTooLong) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.Unmarshal(m, b) } - -func (m *Update_Data) GetType() string { - if m != nil { - return m.Type - } - return "" +func (m *TLUpdatesChannelDifferenceTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.Marshal(b, m, deterministic) } - -func (m *Update_Data) GetMessage_33() string { - if m != nil { - return m.Message_33 - } - return "" +func (dst *TLUpdatesChannelDifferenceTooLong) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.Merge(dst, src) } - -func (m *Update_Data) GetMedia() *MessageMedia { - if m != nil { - return m.Media - } - return nil +func (m *TLUpdatesChannelDifferenceTooLong) XXX_Size() int { + return xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.Size(m) } - -func (m *Update_Data) GetEntities() []*MessageEntity { - if m != nil { - return m.Entities - } - return nil +func (m *TLUpdatesChannelDifferenceTooLong) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.DiscardUnknown(m) } -func (m *Update_Data) GetKey() *PrivacyKey { - if m != nil { - return m.Key - } - return nil -} +var xxx_messageInfo_TLUpdatesChannelDifferenceTooLong proto.InternalMessageInfo -func (m *Update_Data) GetRules() []*PrivacyRule { +func (m *TLUpdatesChannelDifferenceTooLong) GetData2() *Updates_ChannelDifference_Data { if m != nil { - return m.Rules + return m.Data2 } return nil } -func (m *Update_Data) GetPhone() string { - if m != nil { - return m.Phone - } - return "" +// updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference; +type TLUpdatesChannelDifference struct { + Data2 *Updates_ChannelDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Update_Data) GetPeer_39() *Peer { - if m != nil { - return m.Peer_39 - } - return nil +func (m *TLUpdatesChannelDifference) Reset() { *m = TLUpdatesChannelDifference{} } +func (m *TLUpdatesChannelDifference) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesChannelDifference) ProtoMessage() {} +func (*TLUpdatesChannelDifference) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{288} } - -func (m *Update_Data) GetMaxId() int32 { - if m != nil { - return m.MaxId - } - return 0 +func (m *TLUpdatesChannelDifference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesChannelDifference.Unmarshal(m, b) } - -func (m *Update_Data) GetWebpage() *WebPage { - if m != nil { - return m.Webpage - } - return nil +func (m *TLUpdatesChannelDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesChannelDifference.Marshal(b, m, deterministic) } - -func (m *Update_Data) GetChannelId() int32 { - if m != nil { - return m.ChannelId - } - return 0 +func (dst *TLUpdatesChannelDifference) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesChannelDifference.Merge(dst, src) } - -func (m *Update_Data) GetViews() int32 { - if m != nil { - return m.Views - } - return 0 +func (m *TLUpdatesChannelDifference) XXX_Size() int { + return xxx_messageInfo_TLUpdatesChannelDifference.Size(m) } - -func (m *Update_Data) GetEnabled() *Bool { - if m != nil { - return m.Enabled - } - return nil +func (m *TLUpdatesChannelDifference) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesChannelDifference.DiscardUnknown(m) } -func (m *Update_Data) GetIsAdmin() *Bool { - if m != nil { - return m.IsAdmin - } - return nil -} +var xxx_messageInfo_TLUpdatesChannelDifference proto.InternalMessageInfo -func (m *Update_Data) GetStickerset() *Messages_StickerSet { +func (m *TLUpdatesChannelDifference) GetData2() *Updates_ChannelDifference_Data { if m != nil { - return m.Stickerset + return m.Data2 } return nil } -func (m *Update_Data) GetMasks() bool { - if m != nil { - return m.Masks - } - return false +// ///////////////////////////////////////////////////////////////////////////// +// messages_AffectedMessages <-- +// + TL_messages_affectedMessages +// +type Messages_AffectedMessages_Data struct { + Pts int32 `protobuf:"varint,1,opt,name=pts,proto3" json:"pts,omitempty"` + PtsCount int32 `protobuf:"varint,2,opt,name=pts_count,json=ptsCount,proto3" json:"pts_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Update_Data) GetOrder_48() []int64 { - if m != nil { - return m.Order_48 - } - return nil +func (m *Messages_AffectedMessages_Data) Reset() { *m = Messages_AffectedMessages_Data{} } +func (m *Messages_AffectedMessages_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_AffectedMessages_Data) ProtoMessage() {} +func (*Messages_AffectedMessages_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{289} } - -func (m *Update_Data) GetQueryId() int64 { - if m != nil { - return m.QueryId - } - return 0 +func (m *Messages_AffectedMessages_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_AffectedMessages_Data.Unmarshal(m, b) } - -func (m *Update_Data) GetQuery() string { - if m != nil { - return m.Query - } - return "" +func (m *Messages_AffectedMessages_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_AffectedMessages_Data.Marshal(b, m, deterministic) } - -func (m *Update_Data) GetGeo() *GeoPoint { - if m != nil { - return m.Geo - } - return nil +func (dst *Messages_AffectedMessages_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_AffectedMessages_Data.Merge(dst, src) } - -func (m *Update_Data) GetOffset() string { - if m != nil { - return m.Offset - } - return "" +func (m *Messages_AffectedMessages_Data) XXX_Size() int { + return xxx_messageInfo_Messages_AffectedMessages_Data.Size(m) } - -func (m *Update_Data) GetId_53() string { - if m != nil { - return m.Id_53 - } - return "" +func (m *Messages_AffectedMessages_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_AffectedMessages_Data.DiscardUnknown(m) } -func (m *Update_Data) GetMsgId_54() *InputBotInlineMessageID { - if m != nil { - return m.MsgId_54 - } - return nil -} +var xxx_messageInfo_Messages_AffectedMessages_Data proto.InternalMessageInfo -func (m *Update_Data) GetMsgId_55() int32 { +func (m *Messages_AffectedMessages_Data) GetPts() int32 { if m != nil { - return m.MsgId_55 + return m.Pts } return 0 } -func (m *Update_Data) GetChatInstance() int64 { +func (m *Messages_AffectedMessages_Data) GetPtsCount() int32 { if m != nil { - return m.ChatInstance + return m.PtsCount } return 0 } -func (m *Update_Data) GetData_57() []byte { - if m != nil { - return m.Data_57 - } - return nil +type Messages_AffectedMessages struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_AffectedMessages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Update_Data) GetGameShortName() string { - if m != nil { - return m.GameShortName - } - return "" +func (m *Messages_AffectedMessages) Reset() { *m = Messages_AffectedMessages{} } +func (m *Messages_AffectedMessages) String() string { return proto.CompactTextString(m) } +func (*Messages_AffectedMessages) ProtoMessage() {} +func (*Messages_AffectedMessages) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{290} } - -func (m *Update_Data) GetDraft() *DraftMessage { - if m != nil { - return m.Draft - } - return nil +func (m *Messages_AffectedMessages) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_AffectedMessages.Unmarshal(m, b) } - -func (m *Update_Data) GetPinned() bool { - if m != nil { - return m.Pinned - } - return false +func (m *Messages_AffectedMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_AffectedMessages.Marshal(b, m, deterministic) } - -func (m *Update_Data) GetPeer_61() *DialogPeer { - if m != nil { - return m.Peer_61 - } - return nil +func (dst *Messages_AffectedMessages) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_AffectedMessages.Merge(dst, src) +} +func (m *Messages_AffectedMessages) XXX_Size() int { + return xxx_messageInfo_Messages_AffectedMessages.Size(m) +} +func (m *Messages_AffectedMessages) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_AffectedMessages.DiscardUnknown(m) } -func (m *Update_Data) GetOrder_62() []*DialogPeer { +var xxx_messageInfo_Messages_AffectedMessages proto.InternalMessageInfo + +func (m *Messages_AffectedMessages) GetConstructor() TLConstructor { if m != nil { - return m.Order_62 + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *Update_Data) GetData_63() *DataJSON { +func (m *Messages_AffectedMessages) GetData2() *Messages_AffectedMessages_Data { if m != nil { - return m.Data_63 + return m.Data2 } return nil } -func (m *Update_Data) GetTimeout() int32 { - if m != nil { - return m.Timeout - } - return 0 +// messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages; +type TLMessagesAffectedMessages struct { + Data2 *Messages_AffectedMessages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Update_Data) GetPayload() []byte { - if m != nil { - return m.Payload - } - return nil +func (m *TLMessagesAffectedMessages) Reset() { *m = TLMessagesAffectedMessages{} } +func (m *TLMessagesAffectedMessages) String() string { return proto.CompactTextString(m) } +func (*TLMessagesAffectedMessages) ProtoMessage() {} +func (*TLMessagesAffectedMessages) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{291} } - -func (m *Update_Data) GetShippingAddress() *PostAddress { - if m != nil { - return m.ShippingAddress - } - return nil +func (m *TLMessagesAffectedMessages) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesAffectedMessages.Unmarshal(m, b) +} +func (m *TLMessagesAffectedMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesAffectedMessages.Marshal(b, m, deterministic) +} +func (dst *TLMessagesAffectedMessages) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesAffectedMessages.Merge(dst, src) +} +func (m *TLMessagesAffectedMessages) XXX_Size() int { + return xxx_messageInfo_TLMessagesAffectedMessages.Size(m) +} +func (m *TLMessagesAffectedMessages) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesAffectedMessages.DiscardUnknown(m) } -func (m *Update_Data) GetInfo() *PaymentRequestedInfo { +var xxx_messageInfo_TLMessagesAffectedMessages proto.InternalMessageInfo + +func (m *TLMessagesAffectedMessages) GetData2() *Messages_AffectedMessages_Data { if m != nil { - return m.Info + return m.Data2 } return nil } -func (m *Update_Data) GetShippingOptionId() string { - if m != nil { - return m.ShippingOptionId - } - return "" +// ///////////////////////////////////////////////////////////////////////////// +// channels_ChannelParticipants <-- +// + TL_channels_channelParticipants +// + TL_channels_channelParticipantsNotModified +// +type Channels_ChannelParticipants_Data struct { + Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + Participants []*ChannelParticipant `protobuf:"bytes,2,rep,name=participants,proto3" json:"participants,omitempty"` + Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Update_Data) GetCurrency() string { - if m != nil { - return m.Currency - } - return "" +func (m *Channels_ChannelParticipants_Data) Reset() { *m = Channels_ChannelParticipants_Data{} } +func (m *Channels_ChannelParticipants_Data) String() string { return proto.CompactTextString(m) } +func (*Channels_ChannelParticipants_Data) ProtoMessage() {} +func (*Channels_ChannelParticipants_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{292} +} +func (m *Channels_ChannelParticipants_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Channels_ChannelParticipants_Data.Unmarshal(m, b) +} +func (m *Channels_ChannelParticipants_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Channels_ChannelParticipants_Data.Marshal(b, m, deterministic) +} +func (dst *Channels_ChannelParticipants_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Channels_ChannelParticipants_Data.Merge(dst, src) +} +func (m *Channels_ChannelParticipants_Data) XXX_Size() int { + return xxx_messageInfo_Channels_ChannelParticipants_Data.Size(m) +} +func (m *Channels_ChannelParticipants_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Channels_ChannelParticipants_Data.DiscardUnknown(m) } -func (m *Update_Data) GetTotalAmount() int64 { +var xxx_messageInfo_Channels_ChannelParticipants_Data proto.InternalMessageInfo + +func (m *Channels_ChannelParticipants_Data) GetCount() int32 { if m != nil { - return m.TotalAmount + return m.Count } return 0 } -func (m *Update_Data) GetPhoneCall() *PhoneCall { +func (m *Channels_ChannelParticipants_Data) GetParticipants() []*ChannelParticipant { if m != nil { - return m.PhoneCall + return m.Participants } return nil } -func (m *Update_Data) GetDifference() *LangPackDifference { +func (m *Channels_ChannelParticipants_Data) GetUsers() []*User { if m != nil { - return m.Difference + return m.Users } return nil } -func (m *Update_Data) GetAvailableMinId() int32 { - if m != nil { - return m.AvailableMinId - } - return 0 -} - -func (m *Update_Data) GetUnread() bool { - if m != nil { - return m.Unread - } - return false -} - -type Update struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Channels_ChannelParticipants struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Channels_ChannelParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Update) Reset() { *m = Update{} } -func (m *Update) String() string { return proto.CompactTextString(m) } -func (*Update) ProtoMessage() {} -func (*Update) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{310} +func (m *Channels_ChannelParticipants) Reset() { *m = Channels_ChannelParticipants{} } +func (m *Channels_ChannelParticipants) String() string { return proto.CompactTextString(m) } +func (*Channels_ChannelParticipants) ProtoMessage() {} +func (*Channels_ChannelParticipants) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{293} } -func (m *Update) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Update.Unmarshal(m, b) +func (m *Channels_ChannelParticipants) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Channels_ChannelParticipants.Unmarshal(m, b) } -func (m *Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Update.Marshal(b, m, deterministic) +func (m *Channels_ChannelParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Channels_ChannelParticipants.Marshal(b, m, deterministic) } -func (dst *Update) XXX_Merge(src proto.Message) { - xxx_messageInfo_Update.Merge(dst, src) +func (dst *Channels_ChannelParticipants) XXX_Merge(src proto.Message) { + xxx_messageInfo_Channels_ChannelParticipants.Merge(dst, src) } -func (m *Update) XXX_Size() int { - return xxx_messageInfo_Update.Size(m) +func (m *Channels_ChannelParticipants) XXX_Size() int { + return xxx_messageInfo_Channels_ChannelParticipants.Size(m) } -func (m *Update) XXX_DiscardUnknown() { - xxx_messageInfo_Update.DiscardUnknown(m) +func (m *Channels_ChannelParticipants) XXX_DiscardUnknown() { + xxx_messageInfo_Channels_ChannelParticipants.DiscardUnknown(m) } -var xxx_messageInfo_Update proto.InternalMessageInfo +var xxx_messageInfo_Channels_ChannelParticipants proto.InternalMessageInfo -func (m *Update) GetConstructor() TLConstructor { +func (m *Channels_ChannelParticipants) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Update) GetData2() *Update_Data { +func (m *Channels_ChannelParticipants) GetData2() *Channels_ChannelParticipants_Data { if m != nil { return m.Data2 } return nil } -// updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update; -type TLUpdateNewMessage struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channels.channelParticipants#f56ee2a8 count:int participants:Vector users:Vector = channels.ChannelParticipants; +type TLChannelsChannelParticipants struct { + Data2 *Channels_ChannelParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateNewMessage) Reset() { *m = TLUpdateNewMessage{} } -func (m *TLUpdateNewMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateNewMessage) ProtoMessage() {} -func (*TLUpdateNewMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{311} +func (m *TLChannelsChannelParticipants) Reset() { *m = TLChannelsChannelParticipants{} } +func (m *TLChannelsChannelParticipants) String() string { return proto.CompactTextString(m) } +func (*TLChannelsChannelParticipants) ProtoMessage() {} +func (*TLChannelsChannelParticipants) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{294} } -func (m *TLUpdateNewMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateNewMessage.Unmarshal(m, b) +func (m *TLChannelsChannelParticipants) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelsChannelParticipants.Unmarshal(m, b) } -func (m *TLUpdateNewMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateNewMessage.Marshal(b, m, deterministic) +func (m *TLChannelsChannelParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelsChannelParticipants.Marshal(b, m, deterministic) } -func (dst *TLUpdateNewMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateNewMessage.Merge(dst, src) +func (dst *TLChannelsChannelParticipants) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelsChannelParticipants.Merge(dst, src) } -func (m *TLUpdateNewMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateNewMessage.Size(m) +func (m *TLChannelsChannelParticipants) XXX_Size() int { + return xxx_messageInfo_TLChannelsChannelParticipants.Size(m) } -func (m *TLUpdateNewMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateNewMessage.DiscardUnknown(m) +func (m *TLChannelsChannelParticipants) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelsChannelParticipants.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateNewMessage proto.InternalMessageInfo +var xxx_messageInfo_TLChannelsChannelParticipants proto.InternalMessageInfo -func (m *TLUpdateNewMessage) GetData2() *Update_Data { +func (m *TLChannelsChannelParticipants) GetData2() *Channels_ChannelParticipants_Data { if m != nil { return m.Data2 } return nil } -// updateMessageID#4e90bfd6 id:int random_id:long = Update; -type TLUpdateMessageID struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants; +type TLChannelsChannelParticipantsNotModified struct { + Data2 *Channels_ChannelParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateMessageID) Reset() { *m = TLUpdateMessageID{} } -func (m *TLUpdateMessageID) String() string { return proto.CompactTextString(m) } -func (*TLUpdateMessageID) ProtoMessage() {} -func (*TLUpdateMessageID) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{312} -} -func (m *TLUpdateMessageID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateMessageID.Unmarshal(m, b) +func (m *TLChannelsChannelParticipantsNotModified) Reset() { + *m = TLChannelsChannelParticipantsNotModified{} } -func (m *TLUpdateMessageID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateMessageID.Marshal(b, m, deterministic) +func (m *TLChannelsChannelParticipantsNotModified) String() string { return proto.CompactTextString(m) } +func (*TLChannelsChannelParticipantsNotModified) ProtoMessage() {} +func (*TLChannelsChannelParticipantsNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{295} } -func (dst *TLUpdateMessageID) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateMessageID.Merge(dst, src) +func (m *TLChannelsChannelParticipantsNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelsChannelParticipantsNotModified.Unmarshal(m, b) } -func (m *TLUpdateMessageID) XXX_Size() int { - return xxx_messageInfo_TLUpdateMessageID.Size(m) +func (m *TLChannelsChannelParticipantsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelsChannelParticipantsNotModified.Marshal(b, m, deterministic) } -func (m *TLUpdateMessageID) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateMessageID.DiscardUnknown(m) +func (dst *TLChannelsChannelParticipantsNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelsChannelParticipantsNotModified.Merge(dst, src) +} +func (m *TLChannelsChannelParticipantsNotModified) XXX_Size() int { + return xxx_messageInfo_TLChannelsChannelParticipantsNotModified.Size(m) +} +func (m *TLChannelsChannelParticipantsNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelsChannelParticipantsNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateMessageID proto.InternalMessageInfo +var xxx_messageInfo_TLChannelsChannelParticipantsNotModified proto.InternalMessageInfo -func (m *TLUpdateMessageID) GetData2() *Update_Data { +func (m *TLChannelsChannelParticipantsNotModified) GetData2() *Channels_ChannelParticipants_Data { if m != nil { return m.Data2 } return nil } -// updateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update; -type TLUpdateDeleteMessages struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputUser <-- +// + TL_inputUserEmpty +// + TL_inputUserSelf +// + TL_inputUser +// +type InputUser_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateDeleteMessages) Reset() { *m = TLUpdateDeleteMessages{} } -func (m *TLUpdateDeleteMessages) String() string { return proto.CompactTextString(m) } -func (*TLUpdateDeleteMessages) ProtoMessage() {} -func (*TLUpdateDeleteMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{313} +func (m *InputUser_Data) Reset() { *m = InputUser_Data{} } +func (m *InputUser_Data) String() string { return proto.CompactTextString(m) } +func (*InputUser_Data) ProtoMessage() {} +func (*InputUser_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{296} } -func (m *TLUpdateDeleteMessages) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateDeleteMessages.Unmarshal(m, b) +func (m *InputUser_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputUser_Data.Unmarshal(m, b) } -func (m *TLUpdateDeleteMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateDeleteMessages.Marshal(b, m, deterministic) +func (m *InputUser_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputUser_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateDeleteMessages) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateDeleteMessages.Merge(dst, src) +func (dst *InputUser_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputUser_Data.Merge(dst, src) } -func (m *TLUpdateDeleteMessages) XXX_Size() int { - return xxx_messageInfo_TLUpdateDeleteMessages.Size(m) +func (m *InputUser_Data) XXX_Size() int { + return xxx_messageInfo_InputUser_Data.Size(m) } -func (m *TLUpdateDeleteMessages) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateDeleteMessages.DiscardUnknown(m) +func (m *InputUser_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputUser_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateDeleteMessages proto.InternalMessageInfo +var xxx_messageInfo_InputUser_Data proto.InternalMessageInfo -func (m *TLUpdateDeleteMessages) GetData2() *Update_Data { +func (m *InputUser_Data) GetUserId() int32 { if m != nil { - return m.Data2 + return m.UserId } - return nil + return 0 } -// updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update; -type TLUpdateUserTyping struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputUser_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 } -func (m *TLUpdateUserTyping) Reset() { *m = TLUpdateUserTyping{} } -func (m *TLUpdateUserTyping) String() string { return proto.CompactTextString(m) } -func (*TLUpdateUserTyping) ProtoMessage() {} -func (*TLUpdateUserTyping) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{314} +type InputUser struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputUser_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateUserTyping) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateUserTyping.Unmarshal(m, b) + +func (m *InputUser) Reset() { *m = InputUser{} } +func (m *InputUser) String() string { return proto.CompactTextString(m) } +func (*InputUser) ProtoMessage() {} +func (*InputUser) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{297} } -func (m *TLUpdateUserTyping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateUserTyping.Marshal(b, m, deterministic) +func (m *InputUser) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputUser.Unmarshal(m, b) } -func (dst *TLUpdateUserTyping) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateUserTyping.Merge(dst, src) +func (m *InputUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputUser.Marshal(b, m, deterministic) } -func (m *TLUpdateUserTyping) XXX_Size() int { - return xxx_messageInfo_TLUpdateUserTyping.Size(m) +func (dst *InputUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputUser.Merge(dst, src) } -func (m *TLUpdateUserTyping) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateUserTyping.DiscardUnknown(m) +func (m *InputUser) XXX_Size() int { + return xxx_messageInfo_InputUser.Size(m) +} +func (m *InputUser) XXX_DiscardUnknown() { + xxx_messageInfo_InputUser.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateUserTyping proto.InternalMessageInfo +var xxx_messageInfo_InputUser proto.InternalMessageInfo -func (m *TLUpdateUserTyping) GetData2() *Update_Data { +func (m *InputUser) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputUser) GetData2() *InputUser_Data { if m != nil { return m.Data2 } return nil } -// updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update; -type TLUpdateChatUserTyping struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputUserEmpty#b98886cf = InputUser; +type TLInputUserEmpty struct { + Data2 *InputUser_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChatUserTyping) Reset() { *m = TLUpdateChatUserTyping{} } -func (m *TLUpdateChatUserTyping) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChatUserTyping) ProtoMessage() {} -func (*TLUpdateChatUserTyping) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{315} +func (m *TLInputUserEmpty) Reset() { *m = TLInputUserEmpty{} } +func (m *TLInputUserEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputUserEmpty) ProtoMessage() {} +func (*TLInputUserEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{298} } -func (m *TLUpdateChatUserTyping) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChatUserTyping.Unmarshal(m, b) +func (m *TLInputUserEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputUserEmpty.Unmarshal(m, b) } -func (m *TLUpdateChatUserTyping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChatUserTyping.Marshal(b, m, deterministic) +func (m *TLInputUserEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputUserEmpty.Marshal(b, m, deterministic) } -func (dst *TLUpdateChatUserTyping) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChatUserTyping.Merge(dst, src) +func (dst *TLInputUserEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputUserEmpty.Merge(dst, src) } -func (m *TLUpdateChatUserTyping) XXX_Size() int { - return xxx_messageInfo_TLUpdateChatUserTyping.Size(m) +func (m *TLInputUserEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputUserEmpty.Size(m) } -func (m *TLUpdateChatUserTyping) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChatUserTyping.DiscardUnknown(m) +func (m *TLInputUserEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputUserEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChatUserTyping proto.InternalMessageInfo +var xxx_messageInfo_TLInputUserEmpty proto.InternalMessageInfo -func (m *TLUpdateChatUserTyping) GetData2() *Update_Data { +func (m *TLInputUserEmpty) GetData2() *InputUser_Data { if m != nil { return m.Data2 } return nil } -// updateChatParticipants#7761198 participants:ChatParticipants = Update; -type TLUpdateChatParticipants struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputUserSelf#f7c1b13f = InputUser; +type TLInputUserSelf struct { + Data2 *InputUser_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChatParticipants) Reset() { *m = TLUpdateChatParticipants{} } -func (m *TLUpdateChatParticipants) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChatParticipants) ProtoMessage() {} -func (*TLUpdateChatParticipants) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{316} +func (m *TLInputUserSelf) Reset() { *m = TLInputUserSelf{} } +func (m *TLInputUserSelf) String() string { return proto.CompactTextString(m) } +func (*TLInputUserSelf) ProtoMessage() {} +func (*TLInputUserSelf) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{299} } -func (m *TLUpdateChatParticipants) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChatParticipants.Unmarshal(m, b) +func (m *TLInputUserSelf) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputUserSelf.Unmarshal(m, b) } -func (m *TLUpdateChatParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChatParticipants.Marshal(b, m, deterministic) +func (m *TLInputUserSelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputUserSelf.Marshal(b, m, deterministic) } -func (dst *TLUpdateChatParticipants) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChatParticipants.Merge(dst, src) +func (dst *TLInputUserSelf) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputUserSelf.Merge(dst, src) } -func (m *TLUpdateChatParticipants) XXX_Size() int { - return xxx_messageInfo_TLUpdateChatParticipants.Size(m) +func (m *TLInputUserSelf) XXX_Size() int { + return xxx_messageInfo_TLInputUserSelf.Size(m) } -func (m *TLUpdateChatParticipants) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChatParticipants.DiscardUnknown(m) +func (m *TLInputUserSelf) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputUserSelf.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChatParticipants proto.InternalMessageInfo +var xxx_messageInfo_TLInputUserSelf proto.InternalMessageInfo -func (m *TLUpdateChatParticipants) GetData2() *Update_Data { +func (m *TLInputUserSelf) GetData2() *InputUser_Data { if m != nil { return m.Data2 } return nil } -// updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update; -type TLUpdateUserStatus struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputUser#d8292816 user_id:int access_hash:long = InputUser; +type TLInputUser struct { + Data2 *InputUser_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateUserStatus) Reset() { *m = TLUpdateUserStatus{} } -func (m *TLUpdateUserStatus) String() string { return proto.CompactTextString(m) } -func (*TLUpdateUserStatus) ProtoMessage() {} -func (*TLUpdateUserStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{317} +func (m *TLInputUser) Reset() { *m = TLInputUser{} } +func (m *TLInputUser) String() string { return proto.CompactTextString(m) } +func (*TLInputUser) ProtoMessage() {} +func (*TLInputUser) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{300} } -func (m *TLUpdateUserStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateUserStatus.Unmarshal(m, b) +func (m *TLInputUser) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputUser.Unmarshal(m, b) } -func (m *TLUpdateUserStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateUserStatus.Marshal(b, m, deterministic) +func (m *TLInputUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputUser.Marshal(b, m, deterministic) } -func (dst *TLUpdateUserStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateUserStatus.Merge(dst, src) +func (dst *TLInputUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputUser.Merge(dst, src) } -func (m *TLUpdateUserStatus) XXX_Size() int { - return xxx_messageInfo_TLUpdateUserStatus.Size(m) +func (m *TLInputUser) XXX_Size() int { + return xxx_messageInfo_TLInputUser.Size(m) } -func (m *TLUpdateUserStatus) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateUserStatus.DiscardUnknown(m) +func (m *TLInputUser) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputUser.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateUserStatus proto.InternalMessageInfo +var xxx_messageInfo_TLInputUser proto.InternalMessageInfo -func (m *TLUpdateUserStatus) GetData2() *Update_Data { +func (m *TLInputUser) GetData2() *InputUser_Data { if m != nil { return m.Data2 } return nil } -// updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update; -type TLUpdateUserName struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// User <-- +// + TL_userEmpty +// + TL_user +// +type User_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Self bool `protobuf:"varint,2,opt,name=self,proto3" json:"self,omitempty"` + Contact bool `protobuf:"varint,3,opt,name=contact,proto3" json:"contact,omitempty"` + MutualContact bool `protobuf:"varint,4,opt,name=mutual_contact,json=mutualContact,proto3" json:"mutual_contact,omitempty"` + Deleted bool `protobuf:"varint,5,opt,name=deleted,proto3" json:"deleted,omitempty"` + Bot bool `protobuf:"varint,6,opt,name=bot,proto3" json:"bot,omitempty"` + BotChatHistory bool `protobuf:"varint,7,opt,name=bot_chat_history,json=botChatHistory,proto3" json:"bot_chat_history,omitempty"` + BotNochats bool `protobuf:"varint,8,opt,name=bot_nochats,json=botNochats,proto3" json:"bot_nochats,omitempty"` + Verified bool `protobuf:"varint,9,opt,name=verified,proto3" json:"verified,omitempty"` + Restricted bool `protobuf:"varint,10,opt,name=restricted,proto3" json:"restricted,omitempty"` + Min bool `protobuf:"varint,11,opt,name=min,proto3" json:"min,omitempty"` + BotInlineGeo bool `protobuf:"varint,12,opt,name=bot_inline_geo,json=botInlineGeo,proto3" json:"bot_inline_geo,omitempty"` + AccessHash int64 `protobuf:"varint,13,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + FirstName string `protobuf:"bytes,14,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,15,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Username string `protobuf:"bytes,16,opt,name=username,proto3" json:"username,omitempty"` + Phone string `protobuf:"bytes,17,opt,name=phone,proto3" json:"phone,omitempty"` + Photo *UserProfilePhoto `protobuf:"bytes,18,opt,name=photo,proto3" json:"photo,omitempty"` + Status *UserStatus `protobuf:"bytes,19,opt,name=status,proto3" json:"status,omitempty"` + BotInfoVersion int32 `protobuf:"varint,20,opt,name=bot_info_version,json=botInfoVersion,proto3" json:"bot_info_version,omitempty"` + RestrictionReason string `protobuf:"bytes,21,opt,name=restriction_reason,json=restrictionReason,proto3" json:"restriction_reason,omitempty"` + BotInlinePlaceholder string `protobuf:"bytes,22,opt,name=bot_inline_placeholder,json=botInlinePlaceholder,proto3" json:"bot_inline_placeholder,omitempty"` + LangCode string `protobuf:"bytes,23,opt,name=lang_code,json=langCode,proto3" json:"lang_code,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateUserName) Reset() { *m = TLUpdateUserName{} } -func (m *TLUpdateUserName) String() string { return proto.CompactTextString(m) } -func (*TLUpdateUserName) ProtoMessage() {} -func (*TLUpdateUserName) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{318} +func (m *User_Data) Reset() { *m = User_Data{} } +func (m *User_Data) String() string { return proto.CompactTextString(m) } +func (*User_Data) ProtoMessage() {} +func (*User_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{301} } -func (m *TLUpdateUserName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateUserName.Unmarshal(m, b) +func (m *User_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_User_Data.Unmarshal(m, b) } -func (m *TLUpdateUserName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateUserName.Marshal(b, m, deterministic) +func (m *User_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_User_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateUserName) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateUserName.Merge(dst, src) +func (dst *User_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_User_Data.Merge(dst, src) } -func (m *TLUpdateUserName) XXX_Size() int { - return xxx_messageInfo_TLUpdateUserName.Size(m) +func (m *User_Data) XXX_Size() int { + return xxx_messageInfo_User_Data.Size(m) } -func (m *TLUpdateUserName) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateUserName.DiscardUnknown(m) +func (m *User_Data) XXX_DiscardUnknown() { + xxx_messageInfo_User_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateUserName proto.InternalMessageInfo +var xxx_messageInfo_User_Data proto.InternalMessageInfo -func (m *TLUpdateUserName) GetData2() *Update_Data { +func (m *User_Data) GetId() int32 { if m != nil { - return m.Data2 + return m.Id } - return nil + return 0 } -// updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update; -type TLUpdateUserPhoto struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *User_Data) GetSelf() bool { + if m != nil { + return m.Self + } + return false } -func (m *TLUpdateUserPhoto) Reset() { *m = TLUpdateUserPhoto{} } -func (m *TLUpdateUserPhoto) String() string { return proto.CompactTextString(m) } -func (*TLUpdateUserPhoto) ProtoMessage() {} -func (*TLUpdateUserPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{319} -} -func (m *TLUpdateUserPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateUserPhoto.Unmarshal(m, b) +func (m *User_Data) GetContact() bool { + if m != nil { + return m.Contact + } + return false } -func (m *TLUpdateUserPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateUserPhoto.Marshal(b, m, deterministic) + +func (m *User_Data) GetMutualContact() bool { + if m != nil { + return m.MutualContact + } + return false } -func (dst *TLUpdateUserPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateUserPhoto.Merge(dst, src) + +func (m *User_Data) GetDeleted() bool { + if m != nil { + return m.Deleted + } + return false } -func (m *TLUpdateUserPhoto) XXX_Size() int { - return xxx_messageInfo_TLUpdateUserPhoto.Size(m) + +func (m *User_Data) GetBot() bool { + if m != nil { + return m.Bot + } + return false } -func (m *TLUpdateUserPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateUserPhoto.DiscardUnknown(m) + +func (m *User_Data) GetBotChatHistory() bool { + if m != nil { + return m.BotChatHistory + } + return false } -var xxx_messageInfo_TLUpdateUserPhoto proto.InternalMessageInfo +func (m *User_Data) GetBotNochats() bool { + if m != nil { + return m.BotNochats + } + return false +} -func (m *TLUpdateUserPhoto) GetData2() *Update_Data { +func (m *User_Data) GetVerified() bool { if m != nil { - return m.Data2 + return m.Verified } - return nil + return false } -// updateContactRegistered#2575bbb9 user_id:int date:int = Update; -type TLUpdateContactRegistered struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *User_Data) GetRestricted() bool { + if m != nil { + return m.Restricted + } + return false } -func (m *TLUpdateContactRegistered) Reset() { *m = TLUpdateContactRegistered{} } -func (m *TLUpdateContactRegistered) String() string { return proto.CompactTextString(m) } -func (*TLUpdateContactRegistered) ProtoMessage() {} -func (*TLUpdateContactRegistered) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{320} +func (m *User_Data) GetMin() bool { + if m != nil { + return m.Min + } + return false } -func (m *TLUpdateContactRegistered) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateContactRegistered.Unmarshal(m, b) + +func (m *User_Data) GetBotInlineGeo() bool { + if m != nil { + return m.BotInlineGeo + } + return false } -func (m *TLUpdateContactRegistered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateContactRegistered.Marshal(b, m, deterministic) + +func (m *User_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 } -func (dst *TLUpdateContactRegistered) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateContactRegistered.Merge(dst, src) + +func (m *User_Data) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" } -func (m *TLUpdateContactRegistered) XXX_Size() int { - return xxx_messageInfo_TLUpdateContactRegistered.Size(m) + +func (m *User_Data) GetLastName() string { + if m != nil { + return m.LastName + } + return "" } -func (m *TLUpdateContactRegistered) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateContactRegistered.DiscardUnknown(m) + +func (m *User_Data) GetUsername() string { + if m != nil { + return m.Username + } + return "" } -var xxx_messageInfo_TLUpdateContactRegistered proto.InternalMessageInfo +func (m *User_Data) GetPhone() string { + if m != nil { + return m.Phone + } + return "" +} -func (m *TLUpdateContactRegistered) GetData2() *Update_Data { +func (m *User_Data) GetPhoto() *UserProfilePhoto { if m != nil { - return m.Data2 + return m.Photo } return nil } -// updateContactLink#9d2e67c5 user_id:int my_link:ContactLink foreign_link:ContactLink = Update; -type TLUpdateContactLink struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *User_Data) GetStatus() *UserStatus { + if m != nil { + return m.Status + } + return nil } -func (m *TLUpdateContactLink) Reset() { *m = TLUpdateContactLink{} } -func (m *TLUpdateContactLink) String() string { return proto.CompactTextString(m) } -func (*TLUpdateContactLink) ProtoMessage() {} -func (*TLUpdateContactLink) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{321} -} -func (m *TLUpdateContactLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateContactLink.Unmarshal(m, b) +func (m *User_Data) GetBotInfoVersion() int32 { + if m != nil { + return m.BotInfoVersion + } + return 0 } -func (m *TLUpdateContactLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateContactLink.Marshal(b, m, deterministic) -} -func (dst *TLUpdateContactLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateContactLink.Merge(dst, src) -} -func (m *TLUpdateContactLink) XXX_Size() int { - return xxx_messageInfo_TLUpdateContactLink.Size(m) -} -func (m *TLUpdateContactLink) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateContactLink.DiscardUnknown(m) + +func (m *User_Data) GetRestrictionReason() string { + if m != nil { + return m.RestrictionReason + } + return "" } -var xxx_messageInfo_TLUpdateContactLink proto.InternalMessageInfo +func (m *User_Data) GetBotInlinePlaceholder() string { + if m != nil { + return m.BotInlinePlaceholder + } + return "" +} -func (m *TLUpdateContactLink) GetData2() *Update_Data { +func (m *User_Data) GetLangCode() string { if m != nil { - return m.Data2 + return m.LangCode } - return nil + return "" } -// updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update; -type TLUpdateNewEncryptedMessage struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type User struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *User_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateNewEncryptedMessage) Reset() { *m = TLUpdateNewEncryptedMessage{} } -func (m *TLUpdateNewEncryptedMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateNewEncryptedMessage) ProtoMessage() {} -func (*TLUpdateNewEncryptedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{322} +func (m *User) Reset() { *m = User{} } +func (m *User) String() string { return proto.CompactTextString(m) } +func (*User) ProtoMessage() {} +func (*User) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{302} } -func (m *TLUpdateNewEncryptedMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateNewEncryptedMessage.Unmarshal(m, b) +func (m *User) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_User.Unmarshal(m, b) } -func (m *TLUpdateNewEncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateNewEncryptedMessage.Marshal(b, m, deterministic) +func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_User.Marshal(b, m, deterministic) } -func (dst *TLUpdateNewEncryptedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateNewEncryptedMessage.Merge(dst, src) +func (dst *User) XXX_Merge(src proto.Message) { + xxx_messageInfo_User.Merge(dst, src) } -func (m *TLUpdateNewEncryptedMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateNewEncryptedMessage.Size(m) +func (m *User) XXX_Size() int { + return xxx_messageInfo_User.Size(m) } -func (m *TLUpdateNewEncryptedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateNewEncryptedMessage.DiscardUnknown(m) +func (m *User) XXX_DiscardUnknown() { + xxx_messageInfo_User.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateNewEncryptedMessage proto.InternalMessageInfo +var xxx_messageInfo_User proto.InternalMessageInfo -func (m *TLUpdateNewEncryptedMessage) GetData2() *Update_Data { +func (m *User) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *User) GetData2() *User_Data { if m != nil { return m.Data2 } return nil } -// updateEncryptedChatTyping#1710f156 chat_id:int = Update; -type TLUpdateEncryptedChatTyping struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userEmpty#200250ba id:int = User; +type TLUserEmpty struct { + Data2 *User_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateEncryptedChatTyping) Reset() { *m = TLUpdateEncryptedChatTyping{} } -func (m *TLUpdateEncryptedChatTyping) String() string { return proto.CompactTextString(m) } -func (*TLUpdateEncryptedChatTyping) ProtoMessage() {} -func (*TLUpdateEncryptedChatTyping) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{323} +func (m *TLUserEmpty) Reset() { *m = TLUserEmpty{} } +func (m *TLUserEmpty) String() string { return proto.CompactTextString(m) } +func (*TLUserEmpty) ProtoMessage() {} +func (*TLUserEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{303} } -func (m *TLUpdateEncryptedChatTyping) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateEncryptedChatTyping.Unmarshal(m, b) +func (m *TLUserEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserEmpty.Unmarshal(m, b) } -func (m *TLUpdateEncryptedChatTyping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateEncryptedChatTyping.Marshal(b, m, deterministic) +func (m *TLUserEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserEmpty.Marshal(b, m, deterministic) } -func (dst *TLUpdateEncryptedChatTyping) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateEncryptedChatTyping.Merge(dst, src) +func (dst *TLUserEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserEmpty.Merge(dst, src) } -func (m *TLUpdateEncryptedChatTyping) XXX_Size() int { - return xxx_messageInfo_TLUpdateEncryptedChatTyping.Size(m) +func (m *TLUserEmpty) XXX_Size() int { + return xxx_messageInfo_TLUserEmpty.Size(m) } -func (m *TLUpdateEncryptedChatTyping) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateEncryptedChatTyping.DiscardUnknown(m) +func (m *TLUserEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateEncryptedChatTyping proto.InternalMessageInfo +var xxx_messageInfo_TLUserEmpty proto.InternalMessageInfo -func (m *TLUpdateEncryptedChatTyping) GetData2() *Update_Data { +func (m *TLUserEmpty) GetData2() *User_Data { if m != nil { return m.Data2 } return nil } -// updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update; -type TLUpdateEncryption struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User; +type TLUser struct { + Data2 *User_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateEncryption) Reset() { *m = TLUpdateEncryption{} } -func (m *TLUpdateEncryption) String() string { return proto.CompactTextString(m) } -func (*TLUpdateEncryption) ProtoMessage() {} -func (*TLUpdateEncryption) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{324} +func (m *TLUser) Reset() { *m = TLUser{} } +func (m *TLUser) String() string { return proto.CompactTextString(m) } +func (*TLUser) ProtoMessage() {} +func (*TLUser) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{304} } -func (m *TLUpdateEncryption) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateEncryption.Unmarshal(m, b) +func (m *TLUser) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUser.Unmarshal(m, b) } -func (m *TLUpdateEncryption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateEncryption.Marshal(b, m, deterministic) +func (m *TLUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUser.Marshal(b, m, deterministic) } -func (dst *TLUpdateEncryption) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateEncryption.Merge(dst, src) +func (dst *TLUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUser.Merge(dst, src) } -func (m *TLUpdateEncryption) XXX_Size() int { - return xxx_messageInfo_TLUpdateEncryption.Size(m) +func (m *TLUser) XXX_Size() int { + return xxx_messageInfo_TLUser.Size(m) } -func (m *TLUpdateEncryption) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateEncryption.DiscardUnknown(m) +func (m *TLUser) XXX_DiscardUnknown() { + xxx_messageInfo_TLUser.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateEncryption proto.InternalMessageInfo +var xxx_messageInfo_TLUser proto.InternalMessageInfo -func (m *TLUpdateEncryption) GetData2() *Update_Data { +func (m *TLUser) GetData2() *User_Data { if m != nil { return m.Data2 } return nil } -// updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update; -type TLUpdateEncryptedMessagesRead struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// messages_ChatFull <-- +// + TL_messages_chatFull +// +type Messages_ChatFull_Data struct { + FullChat *ChatFull `protobuf:"bytes,1,opt,name=full_chat,json=fullChat,proto3" json:"full_chat,omitempty"` + Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateEncryptedMessagesRead) Reset() { *m = TLUpdateEncryptedMessagesRead{} } -func (m *TLUpdateEncryptedMessagesRead) String() string { return proto.CompactTextString(m) } -func (*TLUpdateEncryptedMessagesRead) ProtoMessage() {} -func (*TLUpdateEncryptedMessagesRead) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{325} +func (m *Messages_ChatFull_Data) Reset() { *m = Messages_ChatFull_Data{} } +func (m *Messages_ChatFull_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_ChatFull_Data) ProtoMessage() {} +func (*Messages_ChatFull_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{305} } -func (m *TLUpdateEncryptedMessagesRead) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateEncryptedMessagesRead.Unmarshal(m, b) +func (m *Messages_ChatFull_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_ChatFull_Data.Unmarshal(m, b) } -func (m *TLUpdateEncryptedMessagesRead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateEncryptedMessagesRead.Marshal(b, m, deterministic) +func (m *Messages_ChatFull_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_ChatFull_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateEncryptedMessagesRead) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateEncryptedMessagesRead.Merge(dst, src) +func (dst *Messages_ChatFull_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_ChatFull_Data.Merge(dst, src) } -func (m *TLUpdateEncryptedMessagesRead) XXX_Size() int { - return xxx_messageInfo_TLUpdateEncryptedMessagesRead.Size(m) +func (m *Messages_ChatFull_Data) XXX_Size() int { + return xxx_messageInfo_Messages_ChatFull_Data.Size(m) } -func (m *TLUpdateEncryptedMessagesRead) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateEncryptedMessagesRead.DiscardUnknown(m) +func (m *Messages_ChatFull_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_ChatFull_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateEncryptedMessagesRead proto.InternalMessageInfo +var xxx_messageInfo_Messages_ChatFull_Data proto.InternalMessageInfo -func (m *TLUpdateEncryptedMessagesRead) GetData2() *Update_Data { +func (m *Messages_ChatFull_Data) GetFullChat() *ChatFull { if m != nil { - return m.Data2 + return m.FullChat } return nil } -// updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update; -type TLUpdateChatParticipantAdd struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdateChatParticipantAdd) Reset() { *m = TLUpdateChatParticipantAdd{} } -func (m *TLUpdateChatParticipantAdd) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChatParticipantAdd) ProtoMessage() {} -func (*TLUpdateChatParticipantAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{326} -} -func (m *TLUpdateChatParticipantAdd) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChatParticipantAdd.Unmarshal(m, b) -} -func (m *TLUpdateChatParticipantAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChatParticipantAdd.Marshal(b, m, deterministic) -} -func (dst *TLUpdateChatParticipantAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChatParticipantAdd.Merge(dst, src) -} -func (m *TLUpdateChatParticipantAdd) XXX_Size() int { - return xxx_messageInfo_TLUpdateChatParticipantAdd.Size(m) -} -func (m *TLUpdateChatParticipantAdd) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChatParticipantAdd.DiscardUnknown(m) +func (m *Messages_ChatFull_Data) GetChats() []*Chat { + if m != nil { + return m.Chats + } + return nil } -var xxx_messageInfo_TLUpdateChatParticipantAdd proto.InternalMessageInfo - -func (m *TLUpdateChatParticipantAdd) GetData2() *Update_Data { +func (m *Messages_ChatFull_Data) GetUsers() []*User { if m != nil { - return m.Data2 + return m.Users } return nil } -// updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update; -type TLUpdateChatParticipantDelete struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_ChatFull struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChatParticipantDelete) Reset() { *m = TLUpdateChatParticipantDelete{} } -func (m *TLUpdateChatParticipantDelete) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChatParticipantDelete) ProtoMessage() {} -func (*TLUpdateChatParticipantDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{327} +func (m *Messages_ChatFull) Reset() { *m = Messages_ChatFull{} } +func (m *Messages_ChatFull) String() string { return proto.CompactTextString(m) } +func (*Messages_ChatFull) ProtoMessage() {} +func (*Messages_ChatFull) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{306} } -func (m *TLUpdateChatParticipantDelete) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChatParticipantDelete.Unmarshal(m, b) +func (m *Messages_ChatFull) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_ChatFull.Unmarshal(m, b) } -func (m *TLUpdateChatParticipantDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChatParticipantDelete.Marshal(b, m, deterministic) +func (m *Messages_ChatFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_ChatFull.Marshal(b, m, deterministic) } -func (dst *TLUpdateChatParticipantDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChatParticipantDelete.Merge(dst, src) +func (dst *Messages_ChatFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_ChatFull.Merge(dst, src) } -func (m *TLUpdateChatParticipantDelete) XXX_Size() int { - return xxx_messageInfo_TLUpdateChatParticipantDelete.Size(m) +func (m *Messages_ChatFull) XXX_Size() int { + return xxx_messageInfo_Messages_ChatFull.Size(m) } -func (m *TLUpdateChatParticipantDelete) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChatParticipantDelete.DiscardUnknown(m) +func (m *Messages_ChatFull) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_ChatFull.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChatParticipantDelete proto.InternalMessageInfo +var xxx_messageInfo_Messages_ChatFull proto.InternalMessageInfo -func (m *TLUpdateChatParticipantDelete) GetData2() *Update_Data { +func (m *Messages_ChatFull) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Messages_ChatFull) GetData2() *Messages_ChatFull_Data { if m != nil { return m.Data2 } return nil } -// updateDcOptions#8e5e9873 dc_options:Vector = Update; -type TLUpdateDcOptions struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull; +type TLMessagesChatFull struct { + Data2 *Messages_ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateDcOptions) Reset() { *m = TLUpdateDcOptions{} } -func (m *TLUpdateDcOptions) String() string { return proto.CompactTextString(m) } -func (*TLUpdateDcOptions) ProtoMessage() {} -func (*TLUpdateDcOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{328} +func (m *TLMessagesChatFull) Reset() { *m = TLMessagesChatFull{} } +func (m *TLMessagesChatFull) String() string { return proto.CompactTextString(m) } +func (*TLMessagesChatFull) ProtoMessage() {} +func (*TLMessagesChatFull) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{307} } -func (m *TLUpdateDcOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateDcOptions.Unmarshal(m, b) +func (m *TLMessagesChatFull) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesChatFull.Unmarshal(m, b) } -func (m *TLUpdateDcOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateDcOptions.Marshal(b, m, deterministic) +func (m *TLMessagesChatFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesChatFull.Marshal(b, m, deterministic) } -func (dst *TLUpdateDcOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateDcOptions.Merge(dst, src) +func (dst *TLMessagesChatFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesChatFull.Merge(dst, src) } -func (m *TLUpdateDcOptions) XXX_Size() int { - return xxx_messageInfo_TLUpdateDcOptions.Size(m) +func (m *TLMessagesChatFull) XXX_Size() int { + return xxx_messageInfo_TLMessagesChatFull.Size(m) } -func (m *TLUpdateDcOptions) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateDcOptions.DiscardUnknown(m) +func (m *TLMessagesChatFull) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesChatFull.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateDcOptions proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesChatFull proto.InternalMessageInfo -func (m *TLUpdateDcOptions) GetData2() *Update_Data { +func (m *TLMessagesChatFull) GetData2() *Messages_ChatFull_Data { if m != nil { return m.Data2 } return nil } -// updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; -type TLUpdateUserBlocked struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// Authorization <-- +// + TL_authorization +// +type Authorization_Data struct { + Hash int64 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + Flags int32 `protobuf:"varint,2,opt,name=flags,proto3" json:"flags,omitempty"` + DeviceModel string `protobuf:"bytes,3,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"` + Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"` + SystemVersion string `protobuf:"bytes,5,opt,name=system_version,json=systemVersion,proto3" json:"system_version,omitempty"` + ApiId int32 `protobuf:"varint,6,opt,name=api_id,json=apiId,proto3" json:"api_id,omitempty"` + AppName string `protobuf:"bytes,7,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` + AppVersion string `protobuf:"bytes,8,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` + DateCreated int32 `protobuf:"varint,9,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"` + DateActive int32 `protobuf:"varint,10,opt,name=date_active,json=dateActive,proto3" json:"date_active,omitempty"` + Ip string `protobuf:"bytes,11,opt,name=ip,proto3" json:"ip,omitempty"` + Country string `protobuf:"bytes,12,opt,name=country,proto3" json:"country,omitempty"` + Region string `protobuf:"bytes,13,opt,name=region,proto3" json:"region,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateUserBlocked) Reset() { *m = TLUpdateUserBlocked{} } -func (m *TLUpdateUserBlocked) String() string { return proto.CompactTextString(m) } -func (*TLUpdateUserBlocked) ProtoMessage() {} -func (*TLUpdateUserBlocked) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{329} +func (m *Authorization_Data) Reset() { *m = Authorization_Data{} } +func (m *Authorization_Data) String() string { return proto.CompactTextString(m) } +func (*Authorization_Data) ProtoMessage() {} +func (*Authorization_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{308} } -func (m *TLUpdateUserBlocked) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateUserBlocked.Unmarshal(m, b) +func (m *Authorization_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Authorization_Data.Unmarshal(m, b) } -func (m *TLUpdateUserBlocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateUserBlocked.Marshal(b, m, deterministic) +func (m *Authorization_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Authorization_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateUserBlocked) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateUserBlocked.Merge(dst, src) +func (dst *Authorization_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Authorization_Data.Merge(dst, src) } -func (m *TLUpdateUserBlocked) XXX_Size() int { - return xxx_messageInfo_TLUpdateUserBlocked.Size(m) +func (m *Authorization_Data) XXX_Size() int { + return xxx_messageInfo_Authorization_Data.Size(m) } -func (m *TLUpdateUserBlocked) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateUserBlocked.DiscardUnknown(m) +func (m *Authorization_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Authorization_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateUserBlocked proto.InternalMessageInfo +var xxx_messageInfo_Authorization_Data proto.InternalMessageInfo -func (m *TLUpdateUserBlocked) GetData2() *Update_Data { +func (m *Authorization_Data) GetHash() int64 { if m != nil { - return m.Data2 + return m.Hash } - return nil + return 0 } -// updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; -type TLUpdateNotifySettings struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Authorization_Data) GetFlags() int32 { + if m != nil { + return m.Flags + } + return 0 } -func (m *TLUpdateNotifySettings) Reset() { *m = TLUpdateNotifySettings{} } -func (m *TLUpdateNotifySettings) String() string { return proto.CompactTextString(m) } -func (*TLUpdateNotifySettings) ProtoMessage() {} -func (*TLUpdateNotifySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{330} -} -func (m *TLUpdateNotifySettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateNotifySettings.Unmarshal(m, b) -} -func (m *TLUpdateNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateNotifySettings.Marshal(b, m, deterministic) -} -func (dst *TLUpdateNotifySettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateNotifySettings.Merge(dst, src) -} -func (m *TLUpdateNotifySettings) XXX_Size() int { - return xxx_messageInfo_TLUpdateNotifySettings.Size(m) -} -func (m *TLUpdateNotifySettings) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateNotifySettings.DiscardUnknown(m) +func (m *Authorization_Data) GetDeviceModel() string { + if m != nil { + return m.DeviceModel + } + return "" } -var xxx_messageInfo_TLUpdateNotifySettings proto.InternalMessageInfo - -func (m *TLUpdateNotifySettings) GetData2() *Update_Data { +func (m *Authorization_Data) GetPlatform() string { if m != nil { - return m.Data2 + return m.Platform } - return nil + return "" } -// updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update; -type TLUpdateServiceNotification struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Authorization_Data) GetSystemVersion() string { + if m != nil { + return m.SystemVersion + } + return "" } -func (m *TLUpdateServiceNotification) Reset() { *m = TLUpdateServiceNotification{} } -func (m *TLUpdateServiceNotification) String() string { return proto.CompactTextString(m) } -func (*TLUpdateServiceNotification) ProtoMessage() {} -func (*TLUpdateServiceNotification) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{331} -} -func (m *TLUpdateServiceNotification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateServiceNotification.Unmarshal(m, b) -} -func (m *TLUpdateServiceNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateServiceNotification.Marshal(b, m, deterministic) -} -func (dst *TLUpdateServiceNotification) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateServiceNotification.Merge(dst, src) -} -func (m *TLUpdateServiceNotification) XXX_Size() int { - return xxx_messageInfo_TLUpdateServiceNotification.Size(m) -} -func (m *TLUpdateServiceNotification) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateServiceNotification.DiscardUnknown(m) +func (m *Authorization_Data) GetApiId() int32 { + if m != nil { + return m.ApiId + } + return 0 } -var xxx_messageInfo_TLUpdateServiceNotification proto.InternalMessageInfo - -func (m *TLUpdateServiceNotification) GetData2() *Update_Data { +func (m *Authorization_Data) GetAppName() string { if m != nil { - return m.Data2 + return m.AppName } - return nil + return "" } -// updatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update; -type TLUpdatePrivacy struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Authorization_Data) GetAppVersion() string { + if m != nil { + return m.AppVersion + } + return "" } -func (m *TLUpdatePrivacy) Reset() { *m = TLUpdatePrivacy{} } -func (m *TLUpdatePrivacy) String() string { return proto.CompactTextString(m) } -func (*TLUpdatePrivacy) ProtoMessage() {} -func (*TLUpdatePrivacy) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{332} -} -func (m *TLUpdatePrivacy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatePrivacy.Unmarshal(m, b) -} -func (m *TLUpdatePrivacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatePrivacy.Marshal(b, m, deterministic) -} -func (dst *TLUpdatePrivacy) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatePrivacy.Merge(dst, src) -} -func (m *TLUpdatePrivacy) XXX_Size() int { - return xxx_messageInfo_TLUpdatePrivacy.Size(m) -} -func (m *TLUpdatePrivacy) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatePrivacy.DiscardUnknown(m) +func (m *Authorization_Data) GetDateCreated() int32 { + if m != nil { + return m.DateCreated + } + return 0 } -var xxx_messageInfo_TLUpdatePrivacy proto.InternalMessageInfo - -func (m *TLUpdatePrivacy) GetData2() *Update_Data { +func (m *Authorization_Data) GetDateActive() int32 { if m != nil { - return m.Data2 + return m.DateActive } - return nil + return 0 } -// updateUserPhone#12b9417b user_id:int phone:string = Update; -type TLUpdateUserPhone struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Authorization_Data) GetIp() string { + if m != nil { + return m.Ip + } + return "" } -func (m *TLUpdateUserPhone) Reset() { *m = TLUpdateUserPhone{} } -func (m *TLUpdateUserPhone) String() string { return proto.CompactTextString(m) } -func (*TLUpdateUserPhone) ProtoMessage() {} -func (*TLUpdateUserPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{333} -} -func (m *TLUpdateUserPhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateUserPhone.Unmarshal(m, b) -} -func (m *TLUpdateUserPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateUserPhone.Marshal(b, m, deterministic) -} -func (dst *TLUpdateUserPhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateUserPhone.Merge(dst, src) -} -func (m *TLUpdateUserPhone) XXX_Size() int { - return xxx_messageInfo_TLUpdateUserPhone.Size(m) -} -func (m *TLUpdateUserPhone) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateUserPhone.DiscardUnknown(m) +func (m *Authorization_Data) GetCountry() string { + if m != nil { + return m.Country + } + return "" } -var xxx_messageInfo_TLUpdateUserPhone proto.InternalMessageInfo - -func (m *TLUpdateUserPhone) GetData2() *Update_Data { +func (m *Authorization_Data) GetRegion() string { if m != nil { - return m.Data2 + return m.Region } - return nil + return "" } -// updateReadHistoryInbox#9961fd5c peer:Peer max_id:int pts:int pts_count:int = Update; -type TLUpdateReadHistoryInbox struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Authorization struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Authorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateReadHistoryInbox) Reset() { *m = TLUpdateReadHistoryInbox{} } -func (m *TLUpdateReadHistoryInbox) String() string { return proto.CompactTextString(m) } -func (*TLUpdateReadHistoryInbox) ProtoMessage() {} -func (*TLUpdateReadHistoryInbox) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{334} +func (m *Authorization) Reset() { *m = Authorization{} } +func (m *Authorization) String() string { return proto.CompactTextString(m) } +func (*Authorization) ProtoMessage() {} +func (*Authorization) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{309} } -func (m *TLUpdateReadHistoryInbox) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateReadHistoryInbox.Unmarshal(m, b) +func (m *Authorization) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Authorization.Unmarshal(m, b) } -func (m *TLUpdateReadHistoryInbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateReadHistoryInbox.Marshal(b, m, deterministic) +func (m *Authorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Authorization.Marshal(b, m, deterministic) } -func (dst *TLUpdateReadHistoryInbox) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateReadHistoryInbox.Merge(dst, src) +func (dst *Authorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Authorization.Merge(dst, src) } -func (m *TLUpdateReadHistoryInbox) XXX_Size() int { - return xxx_messageInfo_TLUpdateReadHistoryInbox.Size(m) +func (m *Authorization) XXX_Size() int { + return xxx_messageInfo_Authorization.Size(m) } -func (m *TLUpdateReadHistoryInbox) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateReadHistoryInbox.DiscardUnknown(m) +func (m *Authorization) XXX_DiscardUnknown() { + xxx_messageInfo_Authorization.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateReadHistoryInbox proto.InternalMessageInfo +var xxx_messageInfo_Authorization proto.InternalMessageInfo -func (m *TLUpdateReadHistoryInbox) GetData2() *Update_Data { +func (m *Authorization) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Authorization) GetData2() *Authorization_Data { if m != nil { return m.Data2 } return nil } -// updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update; -type TLUpdateReadHistoryOutbox struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization; +type TLAuthorization struct { + Data2 *Authorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateReadHistoryOutbox) Reset() { *m = TLUpdateReadHistoryOutbox{} } -func (m *TLUpdateReadHistoryOutbox) String() string { return proto.CompactTextString(m) } -func (*TLUpdateReadHistoryOutbox) ProtoMessage() {} -func (*TLUpdateReadHistoryOutbox) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{335} +func (m *TLAuthorization) Reset() { *m = TLAuthorization{} } +func (m *TLAuthorization) String() string { return proto.CompactTextString(m) } +func (*TLAuthorization) ProtoMessage() {} +func (*TLAuthorization) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{310} } -func (m *TLUpdateReadHistoryOutbox) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateReadHistoryOutbox.Unmarshal(m, b) +func (m *TLAuthorization) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthorization.Unmarshal(m, b) } -func (m *TLUpdateReadHistoryOutbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateReadHistoryOutbox.Marshal(b, m, deterministic) +func (m *TLAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthorization.Marshal(b, m, deterministic) } -func (dst *TLUpdateReadHistoryOutbox) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateReadHistoryOutbox.Merge(dst, src) +func (dst *TLAuthorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthorization.Merge(dst, src) } -func (m *TLUpdateReadHistoryOutbox) XXX_Size() int { - return xxx_messageInfo_TLUpdateReadHistoryOutbox.Size(m) +func (m *TLAuthorization) XXX_Size() int { + return xxx_messageInfo_TLAuthorization.Size(m) } -func (m *TLUpdateReadHistoryOutbox) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateReadHistoryOutbox.DiscardUnknown(m) +func (m *TLAuthorization) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthorization.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateReadHistoryOutbox proto.InternalMessageInfo +var xxx_messageInfo_TLAuthorization proto.InternalMessageInfo -func (m *TLUpdateReadHistoryOutbox) GetData2() *Update_Data { +func (m *TLAuthorization) GetData2() *Authorization_Data { if m != nil { return m.Data2 } return nil } -// updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update; -type TLUpdateWebPage struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// ReceivedNotifyMessage <-- +// + TL_receivedNotifyMessage +// +type ReceivedNotifyMessage_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Flags int32 `protobuf:"varint,2,opt,name=flags,proto3" json:"flags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateWebPage) Reset() { *m = TLUpdateWebPage{} } -func (m *TLUpdateWebPage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateWebPage) ProtoMessage() {} -func (*TLUpdateWebPage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{336} +func (m *ReceivedNotifyMessage_Data) Reset() { *m = ReceivedNotifyMessage_Data{} } +func (m *ReceivedNotifyMessage_Data) String() string { return proto.CompactTextString(m) } +func (*ReceivedNotifyMessage_Data) ProtoMessage() {} +func (*ReceivedNotifyMessage_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{311} } -func (m *TLUpdateWebPage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateWebPage.Unmarshal(m, b) +func (m *ReceivedNotifyMessage_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReceivedNotifyMessage_Data.Unmarshal(m, b) } -func (m *TLUpdateWebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateWebPage.Marshal(b, m, deterministic) +func (m *ReceivedNotifyMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReceivedNotifyMessage_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateWebPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateWebPage.Merge(dst, src) +func (dst *ReceivedNotifyMessage_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReceivedNotifyMessage_Data.Merge(dst, src) } -func (m *TLUpdateWebPage) XXX_Size() int { - return xxx_messageInfo_TLUpdateWebPage.Size(m) +func (m *ReceivedNotifyMessage_Data) XXX_Size() int { + return xxx_messageInfo_ReceivedNotifyMessage_Data.Size(m) } -func (m *TLUpdateWebPage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateWebPage.DiscardUnknown(m) +func (m *ReceivedNotifyMessage_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ReceivedNotifyMessage_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateWebPage proto.InternalMessageInfo +var xxx_messageInfo_ReceivedNotifyMessage_Data proto.InternalMessageInfo -func (m *TLUpdateWebPage) GetData2() *Update_Data { +func (m *ReceivedNotifyMessage_Data) GetId() int32 { if m != nil { - return m.Data2 + return m.Id } - return nil + return 0 } -// updateReadMessagesContents#68c13933 messages:Vector pts:int pts_count:int = Update; -type TLUpdateReadMessagesContents struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ReceivedNotifyMessage_Data) GetFlags() int32 { + if m != nil { + return m.Flags + } + return 0 } -func (m *TLUpdateReadMessagesContents) Reset() { *m = TLUpdateReadMessagesContents{} } -func (m *TLUpdateReadMessagesContents) String() string { return proto.CompactTextString(m) } -func (*TLUpdateReadMessagesContents) ProtoMessage() {} -func (*TLUpdateReadMessagesContents) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{337} +type ReceivedNotifyMessage struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ReceivedNotifyMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateReadMessagesContents) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateReadMessagesContents.Unmarshal(m, b) + +func (m *ReceivedNotifyMessage) Reset() { *m = ReceivedNotifyMessage{} } +func (m *ReceivedNotifyMessage) String() string { return proto.CompactTextString(m) } +func (*ReceivedNotifyMessage) ProtoMessage() {} +func (*ReceivedNotifyMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{312} } -func (m *TLUpdateReadMessagesContents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateReadMessagesContents.Marshal(b, m, deterministic) +func (m *ReceivedNotifyMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReceivedNotifyMessage.Unmarshal(m, b) } -func (dst *TLUpdateReadMessagesContents) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateReadMessagesContents.Merge(dst, src) +func (m *ReceivedNotifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReceivedNotifyMessage.Marshal(b, m, deterministic) } -func (m *TLUpdateReadMessagesContents) XXX_Size() int { - return xxx_messageInfo_TLUpdateReadMessagesContents.Size(m) +func (dst *ReceivedNotifyMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReceivedNotifyMessage.Merge(dst, src) } -func (m *TLUpdateReadMessagesContents) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateReadMessagesContents.DiscardUnknown(m) +func (m *ReceivedNotifyMessage) XXX_Size() int { + return xxx_messageInfo_ReceivedNotifyMessage.Size(m) +} +func (m *ReceivedNotifyMessage) XXX_DiscardUnknown() { + xxx_messageInfo_ReceivedNotifyMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateReadMessagesContents proto.InternalMessageInfo +var xxx_messageInfo_ReceivedNotifyMessage proto.InternalMessageInfo -func (m *TLUpdateReadMessagesContents) GetData2() *Update_Data { +func (m *ReceivedNotifyMessage) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *ReceivedNotifyMessage) GetData2() *ReceivedNotifyMessage_Data { if m != nil { return m.Data2 } return nil } -// updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update; -type TLUpdateChannelTooLong struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage; +type TLReceivedNotifyMessage struct { + Data2 *ReceivedNotifyMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChannelTooLong) Reset() { *m = TLUpdateChannelTooLong{} } -func (m *TLUpdateChannelTooLong) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChannelTooLong) ProtoMessage() {} -func (*TLUpdateChannelTooLong) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{338} +func (m *TLReceivedNotifyMessage) Reset() { *m = TLReceivedNotifyMessage{} } +func (m *TLReceivedNotifyMessage) String() string { return proto.CompactTextString(m) } +func (*TLReceivedNotifyMessage) ProtoMessage() {} +func (*TLReceivedNotifyMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{313} } -func (m *TLUpdateChannelTooLong) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChannelTooLong.Unmarshal(m, b) +func (m *TLReceivedNotifyMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLReceivedNotifyMessage.Unmarshal(m, b) } -func (m *TLUpdateChannelTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChannelTooLong.Marshal(b, m, deterministic) +func (m *TLReceivedNotifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLReceivedNotifyMessage.Marshal(b, m, deterministic) } -func (dst *TLUpdateChannelTooLong) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChannelTooLong.Merge(dst, src) +func (dst *TLReceivedNotifyMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLReceivedNotifyMessage.Merge(dst, src) } -func (m *TLUpdateChannelTooLong) XXX_Size() int { - return xxx_messageInfo_TLUpdateChannelTooLong.Size(m) +func (m *TLReceivedNotifyMessage) XXX_Size() int { + return xxx_messageInfo_TLReceivedNotifyMessage.Size(m) } -func (m *TLUpdateChannelTooLong) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChannelTooLong.DiscardUnknown(m) +func (m *TLReceivedNotifyMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLReceivedNotifyMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChannelTooLong proto.InternalMessageInfo +var xxx_messageInfo_TLReceivedNotifyMessage proto.InternalMessageInfo -func (m *TLUpdateChannelTooLong) GetData2() *Update_Data { +func (m *TLReceivedNotifyMessage) GetData2() *ReceivedNotifyMessage_Data { if m != nil { return m.Data2 } return nil } -// updateChannel#b6d45656 channel_id:int = Update; -type TLUpdateChannel struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// channels_AdminLogResults <-- +// + TL_channels_adminLogResults +// +type Channels_AdminLogResults_Data struct { + Events []*ChannelAdminLogEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChannel) Reset() { *m = TLUpdateChannel{} } -func (m *TLUpdateChannel) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChannel) ProtoMessage() {} -func (*TLUpdateChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{339} +func (m *Channels_AdminLogResults_Data) Reset() { *m = Channels_AdminLogResults_Data{} } +func (m *Channels_AdminLogResults_Data) String() string { return proto.CompactTextString(m) } +func (*Channels_AdminLogResults_Data) ProtoMessage() {} +func (*Channels_AdminLogResults_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{314} } -func (m *TLUpdateChannel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChannel.Unmarshal(m, b) +func (m *Channels_AdminLogResults_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Channels_AdminLogResults_Data.Unmarshal(m, b) } -func (m *TLUpdateChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChannel.Marshal(b, m, deterministic) +func (m *Channels_AdminLogResults_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Channels_AdminLogResults_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateChannel) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChannel.Merge(dst, src) +func (dst *Channels_AdminLogResults_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Channels_AdminLogResults_Data.Merge(dst, src) } -func (m *TLUpdateChannel) XXX_Size() int { - return xxx_messageInfo_TLUpdateChannel.Size(m) +func (m *Channels_AdminLogResults_Data) XXX_Size() int { + return xxx_messageInfo_Channels_AdminLogResults_Data.Size(m) } -func (m *TLUpdateChannel) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChannel.DiscardUnknown(m) +func (m *Channels_AdminLogResults_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Channels_AdminLogResults_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChannel proto.InternalMessageInfo +var xxx_messageInfo_Channels_AdminLogResults_Data proto.InternalMessageInfo -func (m *TLUpdateChannel) GetData2() *Update_Data { +func (m *Channels_AdminLogResults_Data) GetEvents() []*ChannelAdminLogEvent { if m != nil { - return m.Data2 + return m.Events } return nil } -// updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update; -type TLUpdateNewChannelMessage struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLUpdateNewChannelMessage) Reset() { *m = TLUpdateNewChannelMessage{} } -func (m *TLUpdateNewChannelMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateNewChannelMessage) ProtoMessage() {} -func (*TLUpdateNewChannelMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{340} -} -func (m *TLUpdateNewChannelMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateNewChannelMessage.Unmarshal(m, b) -} -func (m *TLUpdateNewChannelMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateNewChannelMessage.Marshal(b, m, deterministic) -} -func (dst *TLUpdateNewChannelMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateNewChannelMessage.Merge(dst, src) -} -func (m *TLUpdateNewChannelMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateNewChannelMessage.Size(m) -} -func (m *TLUpdateNewChannelMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateNewChannelMessage.DiscardUnknown(m) +func (m *Channels_AdminLogResults_Data) GetChats() []*Chat { + if m != nil { + return m.Chats + } + return nil } -var xxx_messageInfo_TLUpdateNewChannelMessage proto.InternalMessageInfo - -func (m *TLUpdateNewChannelMessage) GetData2() *Update_Data { +func (m *Channels_AdminLogResults_Data) GetUsers() []*User { if m != nil { - return m.Data2 + return m.Users } return nil } -// updateReadChannelInbox#4214f37f channel_id:int max_id:int = Update; -type TLUpdateReadChannelInbox struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Channels_AdminLogResults struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Channels_AdminLogResults_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateReadChannelInbox) Reset() { *m = TLUpdateReadChannelInbox{} } -func (m *TLUpdateReadChannelInbox) String() string { return proto.CompactTextString(m) } -func (*TLUpdateReadChannelInbox) ProtoMessage() {} -func (*TLUpdateReadChannelInbox) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{341} +func (m *Channels_AdminLogResults) Reset() { *m = Channels_AdminLogResults{} } +func (m *Channels_AdminLogResults) String() string { return proto.CompactTextString(m) } +func (*Channels_AdminLogResults) ProtoMessage() {} +func (*Channels_AdminLogResults) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{315} } -func (m *TLUpdateReadChannelInbox) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateReadChannelInbox.Unmarshal(m, b) +func (m *Channels_AdminLogResults) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Channels_AdminLogResults.Unmarshal(m, b) } -func (m *TLUpdateReadChannelInbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateReadChannelInbox.Marshal(b, m, deterministic) +func (m *Channels_AdminLogResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Channels_AdminLogResults.Marshal(b, m, deterministic) } -func (dst *TLUpdateReadChannelInbox) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateReadChannelInbox.Merge(dst, src) +func (dst *Channels_AdminLogResults) XXX_Merge(src proto.Message) { + xxx_messageInfo_Channels_AdminLogResults.Merge(dst, src) } -func (m *TLUpdateReadChannelInbox) XXX_Size() int { - return xxx_messageInfo_TLUpdateReadChannelInbox.Size(m) +func (m *Channels_AdminLogResults) XXX_Size() int { + return xxx_messageInfo_Channels_AdminLogResults.Size(m) } -func (m *TLUpdateReadChannelInbox) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateReadChannelInbox.DiscardUnknown(m) +func (m *Channels_AdminLogResults) XXX_DiscardUnknown() { + xxx_messageInfo_Channels_AdminLogResults.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateReadChannelInbox proto.InternalMessageInfo +var xxx_messageInfo_Channels_AdminLogResults proto.InternalMessageInfo -func (m *TLUpdateReadChannelInbox) GetData2() *Update_Data { +func (m *Channels_AdminLogResults) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Channels_AdminLogResults) GetData2() *Channels_AdminLogResults_Data { if m != nil { return m.Data2 } return nil } -// updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector pts:int pts_count:int = Update; -type TLUpdateDeleteChannelMessages struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; +type TLChannelsAdminLogResults struct { + Data2 *Channels_AdminLogResults_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateDeleteChannelMessages) Reset() { *m = TLUpdateDeleteChannelMessages{} } -func (m *TLUpdateDeleteChannelMessages) String() string { return proto.CompactTextString(m) } -func (*TLUpdateDeleteChannelMessages) ProtoMessage() {} -func (*TLUpdateDeleteChannelMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{342} +func (m *TLChannelsAdminLogResults) Reset() { *m = TLChannelsAdminLogResults{} } +func (m *TLChannelsAdminLogResults) String() string { return proto.CompactTextString(m) } +func (*TLChannelsAdminLogResults) ProtoMessage() {} +func (*TLChannelsAdminLogResults) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{316} } -func (m *TLUpdateDeleteChannelMessages) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateDeleteChannelMessages.Unmarshal(m, b) +func (m *TLChannelsAdminLogResults) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelsAdminLogResults.Unmarshal(m, b) } -func (m *TLUpdateDeleteChannelMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateDeleteChannelMessages.Marshal(b, m, deterministic) +func (m *TLChannelsAdminLogResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelsAdminLogResults.Marshal(b, m, deterministic) } -func (dst *TLUpdateDeleteChannelMessages) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateDeleteChannelMessages.Merge(dst, src) +func (dst *TLChannelsAdminLogResults) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelsAdminLogResults.Merge(dst, src) } -func (m *TLUpdateDeleteChannelMessages) XXX_Size() int { - return xxx_messageInfo_TLUpdateDeleteChannelMessages.Size(m) +func (m *TLChannelsAdminLogResults) XXX_Size() int { + return xxx_messageInfo_TLChannelsAdminLogResults.Size(m) } -func (m *TLUpdateDeleteChannelMessages) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateDeleteChannelMessages.DiscardUnknown(m) +func (m *TLChannelsAdminLogResults) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelsAdminLogResults.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateDeleteChannelMessages proto.InternalMessageInfo +var xxx_messageInfo_TLChannelsAdminLogResults proto.InternalMessageInfo -func (m *TLUpdateDeleteChannelMessages) GetData2() *Update_Data { +func (m *TLChannelsAdminLogResults) GetData2() *Channels_AdminLogResults_Data { if m != nil { return m.Data2 } return nil } -// updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update; -type TLUpdateChannelMessageViews struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// UserStatus <-- +// + TL_userStatusEmpty +// + TL_userStatusOnline +// + TL_userStatusOffline +// + TL_userStatusRecently +// + TL_userStatusLastWeek +// + TL_userStatusLastMonth +// +type UserStatus_Data struct { + Expires int32 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"` + WasOnline int32 `protobuf:"varint,2,opt,name=was_online,json=wasOnline,proto3" json:"was_online,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChannelMessageViews) Reset() { *m = TLUpdateChannelMessageViews{} } -func (m *TLUpdateChannelMessageViews) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChannelMessageViews) ProtoMessage() {} -func (*TLUpdateChannelMessageViews) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{343} +func (m *UserStatus_Data) Reset() { *m = UserStatus_Data{} } +func (m *UserStatus_Data) String() string { return proto.CompactTextString(m) } +func (*UserStatus_Data) ProtoMessage() {} +func (*UserStatus_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{317} } -func (m *TLUpdateChannelMessageViews) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChannelMessageViews.Unmarshal(m, b) +func (m *UserStatus_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserStatus_Data.Unmarshal(m, b) } -func (m *TLUpdateChannelMessageViews) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChannelMessageViews.Marshal(b, m, deterministic) +func (m *UserStatus_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserStatus_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateChannelMessageViews) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChannelMessageViews.Merge(dst, src) +func (dst *UserStatus_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserStatus_Data.Merge(dst, src) } -func (m *TLUpdateChannelMessageViews) XXX_Size() int { - return xxx_messageInfo_TLUpdateChannelMessageViews.Size(m) +func (m *UserStatus_Data) XXX_Size() int { + return xxx_messageInfo_UserStatus_Data.Size(m) } -func (m *TLUpdateChannelMessageViews) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChannelMessageViews.DiscardUnknown(m) +func (m *UserStatus_Data) XXX_DiscardUnknown() { + xxx_messageInfo_UserStatus_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChannelMessageViews proto.InternalMessageInfo +var xxx_messageInfo_UserStatus_Data proto.InternalMessageInfo -func (m *TLUpdateChannelMessageViews) GetData2() *Update_Data { +func (m *UserStatus_Data) GetExpires() int32 { if m != nil { - return m.Data2 + return m.Expires } - return nil + return 0 } -// updateChatAdmins#6e947941 chat_id:int enabled:Bool version:int = Update; -type TLUpdateChatAdmins struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *UserStatus_Data) GetWasOnline() int32 { + if m != nil { + return m.WasOnline + } + return 0 } -func (m *TLUpdateChatAdmins) Reset() { *m = TLUpdateChatAdmins{} } -func (m *TLUpdateChatAdmins) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChatAdmins) ProtoMessage() {} -func (*TLUpdateChatAdmins) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{344} +type UserStatus struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChatAdmins) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChatAdmins.Unmarshal(m, b) + +func (m *UserStatus) Reset() { *m = UserStatus{} } +func (m *UserStatus) String() string { return proto.CompactTextString(m) } +func (*UserStatus) ProtoMessage() {} +func (*UserStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{318} } -func (m *TLUpdateChatAdmins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChatAdmins.Marshal(b, m, deterministic) +func (m *UserStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserStatus.Unmarshal(m, b) } -func (dst *TLUpdateChatAdmins) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChatAdmins.Merge(dst, src) +func (m *UserStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserStatus.Marshal(b, m, deterministic) } -func (m *TLUpdateChatAdmins) XXX_Size() int { - return xxx_messageInfo_TLUpdateChatAdmins.Size(m) +func (dst *UserStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserStatus.Merge(dst, src) } -func (m *TLUpdateChatAdmins) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChatAdmins.DiscardUnknown(m) +func (m *UserStatus) XXX_Size() int { + return xxx_messageInfo_UserStatus.Size(m) +} +func (m *UserStatus) XXX_DiscardUnknown() { + xxx_messageInfo_UserStatus.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChatAdmins proto.InternalMessageInfo +var xxx_messageInfo_UserStatus proto.InternalMessageInfo -func (m *TLUpdateChatAdmins) GetData2() *Update_Data { +func (m *UserStatus) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *UserStatus) GetData2() *UserStatus_Data { if m != nil { return m.Data2 } return nil } -// updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update; -type TLUpdateChatParticipantAdmin struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userStatusEmpty#9d05049 = UserStatus; +type TLUserStatusEmpty struct { + Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChatParticipantAdmin) Reset() { *m = TLUpdateChatParticipantAdmin{} } -func (m *TLUpdateChatParticipantAdmin) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChatParticipantAdmin) ProtoMessage() {} -func (*TLUpdateChatParticipantAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{345} +func (m *TLUserStatusEmpty) Reset() { *m = TLUserStatusEmpty{} } +func (m *TLUserStatusEmpty) String() string { return proto.CompactTextString(m) } +func (*TLUserStatusEmpty) ProtoMessage() {} +func (*TLUserStatusEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{319} } -func (m *TLUpdateChatParticipantAdmin) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChatParticipantAdmin.Unmarshal(m, b) +func (m *TLUserStatusEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserStatusEmpty.Unmarshal(m, b) } -func (m *TLUpdateChatParticipantAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChatParticipantAdmin.Marshal(b, m, deterministic) +func (m *TLUserStatusEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserStatusEmpty.Marshal(b, m, deterministic) } -func (dst *TLUpdateChatParticipantAdmin) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChatParticipantAdmin.Merge(dst, src) +func (dst *TLUserStatusEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserStatusEmpty.Merge(dst, src) } -func (m *TLUpdateChatParticipantAdmin) XXX_Size() int { - return xxx_messageInfo_TLUpdateChatParticipantAdmin.Size(m) +func (m *TLUserStatusEmpty) XXX_Size() int { + return xxx_messageInfo_TLUserStatusEmpty.Size(m) } -func (m *TLUpdateChatParticipantAdmin) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChatParticipantAdmin.DiscardUnknown(m) +func (m *TLUserStatusEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserStatusEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChatParticipantAdmin proto.InternalMessageInfo +var xxx_messageInfo_TLUserStatusEmpty proto.InternalMessageInfo -func (m *TLUpdateChatParticipantAdmin) GetData2() *Update_Data { +func (m *TLUserStatusEmpty) GetData2() *UserStatus_Data { if m != nil { return m.Data2 } return nil } -// updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; -type TLUpdateNewStickerSet struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userStatusOnline#edb93949 expires:int = UserStatus; +type TLUserStatusOnline struct { + Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateNewStickerSet) Reset() { *m = TLUpdateNewStickerSet{} } -func (m *TLUpdateNewStickerSet) String() string { return proto.CompactTextString(m) } -func (*TLUpdateNewStickerSet) ProtoMessage() {} -func (*TLUpdateNewStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{346} +func (m *TLUserStatusOnline) Reset() { *m = TLUserStatusOnline{} } +func (m *TLUserStatusOnline) String() string { return proto.CompactTextString(m) } +func (*TLUserStatusOnline) ProtoMessage() {} +func (*TLUserStatusOnline) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{320} } -func (m *TLUpdateNewStickerSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateNewStickerSet.Unmarshal(m, b) +func (m *TLUserStatusOnline) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserStatusOnline.Unmarshal(m, b) } -func (m *TLUpdateNewStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateNewStickerSet.Marshal(b, m, deterministic) +func (m *TLUserStatusOnline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserStatusOnline.Marshal(b, m, deterministic) } -func (dst *TLUpdateNewStickerSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateNewStickerSet.Merge(dst, src) +func (dst *TLUserStatusOnline) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserStatusOnline.Merge(dst, src) } -func (m *TLUpdateNewStickerSet) XXX_Size() int { - return xxx_messageInfo_TLUpdateNewStickerSet.Size(m) +func (m *TLUserStatusOnline) XXX_Size() int { + return xxx_messageInfo_TLUserStatusOnline.Size(m) } -func (m *TLUpdateNewStickerSet) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateNewStickerSet.DiscardUnknown(m) +func (m *TLUserStatusOnline) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserStatusOnline.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateNewStickerSet proto.InternalMessageInfo +var xxx_messageInfo_TLUserStatusOnline proto.InternalMessageInfo -func (m *TLUpdateNewStickerSet) GetData2() *Update_Data { +func (m *TLUserStatusOnline) GetData2() *UserStatus_Data { if m != nil { return m.Data2 } return nil } -// updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector = Update; -type TLUpdateStickerSetsOrder struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userStatusOffline#8c703f was_online:int = UserStatus; +type TLUserStatusOffline struct { + Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateStickerSetsOrder) Reset() { *m = TLUpdateStickerSetsOrder{} } -func (m *TLUpdateStickerSetsOrder) String() string { return proto.CompactTextString(m) } -func (*TLUpdateStickerSetsOrder) ProtoMessage() {} -func (*TLUpdateStickerSetsOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{347} +func (m *TLUserStatusOffline) Reset() { *m = TLUserStatusOffline{} } +func (m *TLUserStatusOffline) String() string { return proto.CompactTextString(m) } +func (*TLUserStatusOffline) ProtoMessage() {} +func (*TLUserStatusOffline) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{321} } -func (m *TLUpdateStickerSetsOrder) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateStickerSetsOrder.Unmarshal(m, b) +func (m *TLUserStatusOffline) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserStatusOffline.Unmarshal(m, b) } -func (m *TLUpdateStickerSetsOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateStickerSetsOrder.Marshal(b, m, deterministic) +func (m *TLUserStatusOffline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserStatusOffline.Marshal(b, m, deterministic) } -func (dst *TLUpdateStickerSetsOrder) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateStickerSetsOrder.Merge(dst, src) +func (dst *TLUserStatusOffline) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserStatusOffline.Merge(dst, src) } -func (m *TLUpdateStickerSetsOrder) XXX_Size() int { - return xxx_messageInfo_TLUpdateStickerSetsOrder.Size(m) +func (m *TLUserStatusOffline) XXX_Size() int { + return xxx_messageInfo_TLUserStatusOffline.Size(m) } -func (m *TLUpdateStickerSetsOrder) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateStickerSetsOrder.DiscardUnknown(m) +func (m *TLUserStatusOffline) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserStatusOffline.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateStickerSetsOrder proto.InternalMessageInfo +var xxx_messageInfo_TLUserStatusOffline proto.InternalMessageInfo -func (m *TLUpdateStickerSetsOrder) GetData2() *Update_Data { +func (m *TLUserStatusOffline) GetData2() *UserStatus_Data { if m != nil { return m.Data2 } return nil } -// updateStickerSets#43ae3dec = Update; -type TLUpdateStickerSets struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userStatusRecently#e26f42f1 = UserStatus; +type TLUserStatusRecently struct { + Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateStickerSets) Reset() { *m = TLUpdateStickerSets{} } -func (m *TLUpdateStickerSets) String() string { return proto.CompactTextString(m) } -func (*TLUpdateStickerSets) ProtoMessage() {} -func (*TLUpdateStickerSets) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{348} +func (m *TLUserStatusRecently) Reset() { *m = TLUserStatusRecently{} } +func (m *TLUserStatusRecently) String() string { return proto.CompactTextString(m) } +func (*TLUserStatusRecently) ProtoMessage() {} +func (*TLUserStatusRecently) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{322} } -func (m *TLUpdateStickerSets) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateStickerSets.Unmarshal(m, b) +func (m *TLUserStatusRecently) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserStatusRecently.Unmarshal(m, b) } -func (m *TLUpdateStickerSets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateStickerSets.Marshal(b, m, deterministic) +func (m *TLUserStatusRecently) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserStatusRecently.Marshal(b, m, deterministic) } -func (dst *TLUpdateStickerSets) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateStickerSets.Merge(dst, src) +func (dst *TLUserStatusRecently) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserStatusRecently.Merge(dst, src) } -func (m *TLUpdateStickerSets) XXX_Size() int { - return xxx_messageInfo_TLUpdateStickerSets.Size(m) +func (m *TLUserStatusRecently) XXX_Size() int { + return xxx_messageInfo_TLUserStatusRecently.Size(m) } -func (m *TLUpdateStickerSets) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateStickerSets.DiscardUnknown(m) +func (m *TLUserStatusRecently) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserStatusRecently.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateStickerSets proto.InternalMessageInfo +var xxx_messageInfo_TLUserStatusRecently proto.InternalMessageInfo -func (m *TLUpdateStickerSets) GetData2() *Update_Data { +func (m *TLUserStatusRecently) GetData2() *UserStatus_Data { if m != nil { return m.Data2 } return nil } -// updateSavedGifs#9375341e = Update; -type TLUpdateSavedGifs struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userStatusLastWeek#7bf09fc = UserStatus; +type TLUserStatusLastWeek struct { + Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateSavedGifs) Reset() { *m = TLUpdateSavedGifs{} } -func (m *TLUpdateSavedGifs) String() string { return proto.CompactTextString(m) } -func (*TLUpdateSavedGifs) ProtoMessage() {} -func (*TLUpdateSavedGifs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{349} +func (m *TLUserStatusLastWeek) Reset() { *m = TLUserStatusLastWeek{} } +func (m *TLUserStatusLastWeek) String() string { return proto.CompactTextString(m) } +func (*TLUserStatusLastWeek) ProtoMessage() {} +func (*TLUserStatusLastWeek) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{323} } -func (m *TLUpdateSavedGifs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateSavedGifs.Unmarshal(m, b) +func (m *TLUserStatusLastWeek) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserStatusLastWeek.Unmarshal(m, b) } -func (m *TLUpdateSavedGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateSavedGifs.Marshal(b, m, deterministic) +func (m *TLUserStatusLastWeek) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserStatusLastWeek.Marshal(b, m, deterministic) } -func (dst *TLUpdateSavedGifs) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateSavedGifs.Merge(dst, src) +func (dst *TLUserStatusLastWeek) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserStatusLastWeek.Merge(dst, src) } -func (m *TLUpdateSavedGifs) XXX_Size() int { - return xxx_messageInfo_TLUpdateSavedGifs.Size(m) +func (m *TLUserStatusLastWeek) XXX_Size() int { + return xxx_messageInfo_TLUserStatusLastWeek.Size(m) } -func (m *TLUpdateSavedGifs) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateSavedGifs.DiscardUnknown(m) +func (m *TLUserStatusLastWeek) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserStatusLastWeek.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateSavedGifs proto.InternalMessageInfo +var xxx_messageInfo_TLUserStatusLastWeek proto.InternalMessageInfo -func (m *TLUpdateSavedGifs) GetData2() *Update_Data { +func (m *TLUserStatusLastWeek) GetData2() *UserStatus_Data { if m != nil { return m.Data2 } return nil } -// updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update; -type TLUpdateBotInlineQuery struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userStatusLastMonth#77ebc742 = UserStatus; +type TLUserStatusLastMonth struct { + Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateBotInlineQuery) Reset() { *m = TLUpdateBotInlineQuery{} } -func (m *TLUpdateBotInlineQuery) String() string { return proto.CompactTextString(m) } -func (*TLUpdateBotInlineQuery) ProtoMessage() {} -func (*TLUpdateBotInlineQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{350} +func (m *TLUserStatusLastMonth) Reset() { *m = TLUserStatusLastMonth{} } +func (m *TLUserStatusLastMonth) String() string { return proto.CompactTextString(m) } +func (*TLUserStatusLastMonth) ProtoMessage() {} +func (*TLUserStatusLastMonth) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{324} } -func (m *TLUpdateBotInlineQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateBotInlineQuery.Unmarshal(m, b) +func (m *TLUserStatusLastMonth) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserStatusLastMonth.Unmarshal(m, b) } -func (m *TLUpdateBotInlineQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateBotInlineQuery.Marshal(b, m, deterministic) +func (m *TLUserStatusLastMonth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserStatusLastMonth.Marshal(b, m, deterministic) } -func (dst *TLUpdateBotInlineQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateBotInlineQuery.Merge(dst, src) +func (dst *TLUserStatusLastMonth) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserStatusLastMonth.Merge(dst, src) } -func (m *TLUpdateBotInlineQuery) XXX_Size() int { - return xxx_messageInfo_TLUpdateBotInlineQuery.Size(m) +func (m *TLUserStatusLastMonth) XXX_Size() int { + return xxx_messageInfo_TLUserStatusLastMonth.Size(m) } -func (m *TLUpdateBotInlineQuery) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateBotInlineQuery.DiscardUnknown(m) +func (m *TLUserStatusLastMonth) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserStatusLastMonth.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateBotInlineQuery proto.InternalMessageInfo +var xxx_messageInfo_TLUserStatusLastMonth proto.InternalMessageInfo -func (m *TLUpdateBotInlineQuery) GetData2() *Update_Data { +func (m *TLUserStatusLastMonth) GetData2() *UserStatus_Data { if m != nil { return m.Data2 } return nil } -// updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update; -type TLUpdateBotInlineSend struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// ///////////////////////////////////////////////////////////////////////////// +// Photo <-- +// + TL_photoEmpty +// + TL_photo +// + TL_photoLayer86 +// +type Photo_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + HasStickers bool `protobuf:"varint,2,opt,name=has_stickers,json=hasStickers,proto3" json:"has_stickers,omitempty"` + AccessHash int64 `protobuf:"varint,3,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + Date int32 `protobuf:"varint,4,opt,name=date,proto3" json:"date,omitempty"` + Sizes []*PhotoSize `protobuf:"bytes,5,rep,name=sizes,proto3" json:"sizes,omitempty"` + FileReference []byte `protobuf:"bytes,6,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateBotInlineSend) Reset() { *m = TLUpdateBotInlineSend{} } -func (m *TLUpdateBotInlineSend) String() string { return proto.CompactTextString(m) } -func (*TLUpdateBotInlineSend) ProtoMessage() {} -func (*TLUpdateBotInlineSend) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{351} +func (m *Photo_Data) Reset() { *m = Photo_Data{} } +func (m *Photo_Data) String() string { return proto.CompactTextString(m) } +func (*Photo_Data) ProtoMessage() {} +func (*Photo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{325} } -func (m *TLUpdateBotInlineSend) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateBotInlineSend.Unmarshal(m, b) +func (m *Photo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Photo_Data.Unmarshal(m, b) } -func (m *TLUpdateBotInlineSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateBotInlineSend.Marshal(b, m, deterministic) +func (m *Photo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Photo_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateBotInlineSend) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateBotInlineSend.Merge(dst, src) +func (dst *Photo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Photo_Data.Merge(dst, src) } -func (m *TLUpdateBotInlineSend) XXX_Size() int { - return xxx_messageInfo_TLUpdateBotInlineSend.Size(m) +func (m *Photo_Data) XXX_Size() int { + return xxx_messageInfo_Photo_Data.Size(m) } -func (m *TLUpdateBotInlineSend) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateBotInlineSend.DiscardUnknown(m) +func (m *Photo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Photo_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateBotInlineSend proto.InternalMessageInfo +var xxx_messageInfo_Photo_Data proto.InternalMessageInfo -func (m *TLUpdateBotInlineSend) GetData2() *Update_Data { +func (m *Photo_Data) GetId() int64 { if m != nil { - return m.Data2 + return m.Id } - return nil + return 0 } -// updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update; -type TLUpdateEditChannelMessage struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Photo_Data) GetHasStickers() bool { + if m != nil { + return m.HasStickers + } + return false } -func (m *TLUpdateEditChannelMessage) Reset() { *m = TLUpdateEditChannelMessage{} } -func (m *TLUpdateEditChannelMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateEditChannelMessage) ProtoMessage() {} -func (*TLUpdateEditChannelMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{352} -} -func (m *TLUpdateEditChannelMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateEditChannelMessage.Unmarshal(m, b) -} -func (m *TLUpdateEditChannelMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateEditChannelMessage.Marshal(b, m, deterministic) -} -func (dst *TLUpdateEditChannelMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateEditChannelMessage.Merge(dst, src) -} -func (m *TLUpdateEditChannelMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateEditChannelMessage.Size(m) +func (m *Photo_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 } -func (m *TLUpdateEditChannelMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateEditChannelMessage.DiscardUnknown(m) + +func (m *Photo_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 } -var xxx_messageInfo_TLUpdateEditChannelMessage proto.InternalMessageInfo +func (m *Photo_Data) GetSizes() []*PhotoSize { + if m != nil { + return m.Sizes + } + return nil +} -func (m *TLUpdateEditChannelMessage) GetData2() *Update_Data { +func (m *Photo_Data) GetFileReference() []byte { if m != nil { - return m.Data2 + return m.FileReference } return nil } -// updateChannelPinnedMessage#98592475 channel_id:int id:int = Update; -type TLUpdateChannelPinnedMessage struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Photo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChannelPinnedMessage) Reset() { *m = TLUpdateChannelPinnedMessage{} } -func (m *TLUpdateChannelPinnedMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChannelPinnedMessage) ProtoMessage() {} -func (*TLUpdateChannelPinnedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{353} +func (m *Photo) Reset() { *m = Photo{} } +func (m *Photo) String() string { return proto.CompactTextString(m) } +func (*Photo) ProtoMessage() {} +func (*Photo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{326} } -func (m *TLUpdateChannelPinnedMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChannelPinnedMessage.Unmarshal(m, b) +func (m *Photo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Photo.Unmarshal(m, b) } -func (m *TLUpdateChannelPinnedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChannelPinnedMessage.Marshal(b, m, deterministic) +func (m *Photo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Photo.Marshal(b, m, deterministic) } -func (dst *TLUpdateChannelPinnedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChannelPinnedMessage.Merge(dst, src) +func (dst *Photo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Photo.Merge(dst, src) } -func (m *TLUpdateChannelPinnedMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateChannelPinnedMessage.Size(m) +func (m *Photo) XXX_Size() int { + return xxx_messageInfo_Photo.Size(m) } -func (m *TLUpdateChannelPinnedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChannelPinnedMessage.DiscardUnknown(m) +func (m *Photo) XXX_DiscardUnknown() { + xxx_messageInfo_Photo.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChannelPinnedMessage proto.InternalMessageInfo +var xxx_messageInfo_Photo proto.InternalMessageInfo -func (m *TLUpdateChannelPinnedMessage) GetData2() *Update_Data { +func (m *Photo) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Photo) GetData2() *Photo_Data { if m != nil { return m.Data2 } return nil } -// updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; -type TLUpdateBotCallbackQuery struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// photoEmpty#2331b22d id:long = Photo; +type TLPhotoEmpty struct { + Data2 *Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateBotCallbackQuery) Reset() { *m = TLUpdateBotCallbackQuery{} } -func (m *TLUpdateBotCallbackQuery) String() string { return proto.CompactTextString(m) } -func (*TLUpdateBotCallbackQuery) ProtoMessage() {} -func (*TLUpdateBotCallbackQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{354} +func (m *TLPhotoEmpty) Reset() { *m = TLPhotoEmpty{} } +func (m *TLPhotoEmpty) String() string { return proto.CompactTextString(m) } +func (*TLPhotoEmpty) ProtoMessage() {} +func (*TLPhotoEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{327} } -func (m *TLUpdateBotCallbackQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateBotCallbackQuery.Unmarshal(m, b) +func (m *TLPhotoEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhotoEmpty.Unmarshal(m, b) } -func (m *TLUpdateBotCallbackQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateBotCallbackQuery.Marshal(b, m, deterministic) +func (m *TLPhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhotoEmpty.Marshal(b, m, deterministic) } -func (dst *TLUpdateBotCallbackQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateBotCallbackQuery.Merge(dst, src) +func (dst *TLPhotoEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhotoEmpty.Merge(dst, src) } -func (m *TLUpdateBotCallbackQuery) XXX_Size() int { - return xxx_messageInfo_TLUpdateBotCallbackQuery.Size(m) +func (m *TLPhotoEmpty) XXX_Size() int { + return xxx_messageInfo_TLPhotoEmpty.Size(m) } -func (m *TLUpdateBotCallbackQuery) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateBotCallbackQuery.DiscardUnknown(m) +func (m *TLPhotoEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhotoEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateBotCallbackQuery proto.InternalMessageInfo +var xxx_messageInfo_TLPhotoEmpty proto.InternalMessageInfo -func (m *TLUpdateBotCallbackQuery) GetData2() *Update_Data { +func (m *TLPhotoEmpty) GetData2() *Photo_Data { if m != nil { return m.Data2 } return nil } -// updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update; -type TLUpdateEditMessage struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// photo#9288dd29 flags:# has_stickers:flags.0?true id:long access_hash:long date:int sizes:Vector = Photo; +type TLPhoto struct { + Data2 *Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateEditMessage) Reset() { *m = TLUpdateEditMessage{} } -func (m *TLUpdateEditMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateEditMessage) ProtoMessage() {} -func (*TLUpdateEditMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{355} +func (m *TLPhoto) Reset() { *m = TLPhoto{} } +func (m *TLPhoto) String() string { return proto.CompactTextString(m) } +func (*TLPhoto) ProtoMessage() {} +func (*TLPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{328} } -func (m *TLUpdateEditMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateEditMessage.Unmarshal(m, b) +func (m *TLPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhoto.Unmarshal(m, b) } -func (m *TLUpdateEditMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateEditMessage.Marshal(b, m, deterministic) +func (m *TLPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhoto.Marshal(b, m, deterministic) } -func (dst *TLUpdateEditMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateEditMessage.Merge(dst, src) +func (dst *TLPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhoto.Merge(dst, src) } -func (m *TLUpdateEditMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateEditMessage.Size(m) +func (m *TLPhoto) XXX_Size() int { + return xxx_messageInfo_TLPhoto.Size(m) } -func (m *TLUpdateEditMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateEditMessage.DiscardUnknown(m) +func (m *TLPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateEditMessage proto.InternalMessageInfo +var xxx_messageInfo_TLPhoto proto.InternalMessageInfo -func (m *TLUpdateEditMessage) GetData2() *Update_Data { +func (m *TLPhoto) GetData2() *Photo_Data { if m != nil { return m.Data2 } return nil } -// updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; -type TLUpdateInlineBotCallbackQuery struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// photo#9c477dd8 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector = Photo; +type TLPhotoLayer86 struct { + Data2 *Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateInlineBotCallbackQuery) Reset() { *m = TLUpdateInlineBotCallbackQuery{} } -func (m *TLUpdateInlineBotCallbackQuery) String() string { return proto.CompactTextString(m) } -func (*TLUpdateInlineBotCallbackQuery) ProtoMessage() {} -func (*TLUpdateInlineBotCallbackQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{356} +func (m *TLPhotoLayer86) Reset() { *m = TLPhotoLayer86{} } +func (m *TLPhotoLayer86) String() string { return proto.CompactTextString(m) } +func (*TLPhotoLayer86) ProtoMessage() {} +func (*TLPhotoLayer86) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{329} } -func (m *TLUpdateInlineBotCallbackQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateInlineBotCallbackQuery.Unmarshal(m, b) +func (m *TLPhotoLayer86) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhotoLayer86.Unmarshal(m, b) } -func (m *TLUpdateInlineBotCallbackQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateInlineBotCallbackQuery.Marshal(b, m, deterministic) +func (m *TLPhotoLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhotoLayer86.Marshal(b, m, deterministic) } -func (dst *TLUpdateInlineBotCallbackQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateInlineBotCallbackQuery.Merge(dst, src) +func (dst *TLPhotoLayer86) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhotoLayer86.Merge(dst, src) } -func (m *TLUpdateInlineBotCallbackQuery) XXX_Size() int { - return xxx_messageInfo_TLUpdateInlineBotCallbackQuery.Size(m) +func (m *TLPhotoLayer86) XXX_Size() int { + return xxx_messageInfo_TLPhotoLayer86.Size(m) } -func (m *TLUpdateInlineBotCallbackQuery) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateInlineBotCallbackQuery.DiscardUnknown(m) +func (m *TLPhotoLayer86) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhotoLayer86.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateInlineBotCallbackQuery proto.InternalMessageInfo +var xxx_messageInfo_TLPhotoLayer86 proto.InternalMessageInfo -func (m *TLUpdateInlineBotCallbackQuery) GetData2() *Update_Data { +func (m *TLPhotoLayer86) GetData2() *Photo_Data { if m != nil { return m.Data2 } return nil } -// updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update; -type TLUpdateReadChannelOutbox struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// upload_File <-- +// + TL_upload_file +// + TL_upload_fileCdnRedirect +// +type Upload_File_Data struct { + Type *Storage_FileType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Mtime int32 `protobuf:"varint,2,opt,name=mtime,proto3" json:"mtime,omitempty"` + Bytes []byte `protobuf:"bytes,3,opt,name=bytes,proto3" json:"bytes,omitempty"` + DcId int32 `protobuf:"varint,4,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` + FileToken []byte `protobuf:"bytes,5,opt,name=file_token,json=fileToken,proto3" json:"file_token,omitempty"` + EncryptionKey []byte `protobuf:"bytes,6,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"` + EncryptionIv []byte `protobuf:"bytes,7,opt,name=encryption_iv,json=encryptionIv,proto3" json:"encryption_iv,omitempty"` + FileHashes []*FileHash `protobuf:"bytes,8,rep,name=file_hashes,json=fileHashes,proto3" json:"file_hashes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateReadChannelOutbox) Reset() { *m = TLUpdateReadChannelOutbox{} } -func (m *TLUpdateReadChannelOutbox) String() string { return proto.CompactTextString(m) } -func (*TLUpdateReadChannelOutbox) ProtoMessage() {} -func (*TLUpdateReadChannelOutbox) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{357} +func (m *Upload_File_Data) Reset() { *m = Upload_File_Data{} } +func (m *Upload_File_Data) String() string { return proto.CompactTextString(m) } +func (*Upload_File_Data) ProtoMessage() {} +func (*Upload_File_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{330} } -func (m *TLUpdateReadChannelOutbox) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateReadChannelOutbox.Unmarshal(m, b) +func (m *Upload_File_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Upload_File_Data.Unmarshal(m, b) } -func (m *TLUpdateReadChannelOutbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateReadChannelOutbox.Marshal(b, m, deterministic) +func (m *Upload_File_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Upload_File_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateReadChannelOutbox) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateReadChannelOutbox.Merge(dst, src) +func (dst *Upload_File_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Upload_File_Data.Merge(dst, src) } -func (m *TLUpdateReadChannelOutbox) XXX_Size() int { - return xxx_messageInfo_TLUpdateReadChannelOutbox.Size(m) +func (m *Upload_File_Data) XXX_Size() int { + return xxx_messageInfo_Upload_File_Data.Size(m) } -func (m *TLUpdateReadChannelOutbox) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateReadChannelOutbox.DiscardUnknown(m) +func (m *Upload_File_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Upload_File_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateReadChannelOutbox proto.InternalMessageInfo +var xxx_messageInfo_Upload_File_Data proto.InternalMessageInfo -func (m *TLUpdateReadChannelOutbox) GetData2() *Update_Data { +func (m *Upload_File_Data) GetType() *Storage_FileType { if m != nil { - return m.Data2 + return m.Type } return nil } -// updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update; -type TLUpdateDraftMessage struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Upload_File_Data) GetMtime() int32 { + if m != nil { + return m.Mtime + } + return 0 } -func (m *TLUpdateDraftMessage) Reset() { *m = TLUpdateDraftMessage{} } -func (m *TLUpdateDraftMessage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateDraftMessage) ProtoMessage() {} -func (*TLUpdateDraftMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{358} -} -func (m *TLUpdateDraftMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateDraftMessage.Unmarshal(m, b) -} -func (m *TLUpdateDraftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateDraftMessage.Marshal(b, m, deterministic) +func (m *Upload_File_Data) GetBytes() []byte { + if m != nil { + return m.Bytes + } + return nil } -func (dst *TLUpdateDraftMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateDraftMessage.Merge(dst, src) + +func (m *Upload_File_Data) GetDcId() int32 { + if m != nil { + return m.DcId + } + return 0 } -func (m *TLUpdateDraftMessage) XXX_Size() int { - return xxx_messageInfo_TLUpdateDraftMessage.Size(m) + +func (m *Upload_File_Data) GetFileToken() []byte { + if m != nil { + return m.FileToken + } + return nil } -func (m *TLUpdateDraftMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateDraftMessage.DiscardUnknown(m) + +func (m *Upload_File_Data) GetEncryptionKey() []byte { + if m != nil { + return m.EncryptionKey + } + return nil } -var xxx_messageInfo_TLUpdateDraftMessage proto.InternalMessageInfo +func (m *Upload_File_Data) GetEncryptionIv() []byte { + if m != nil { + return m.EncryptionIv + } + return nil +} -func (m *TLUpdateDraftMessage) GetData2() *Update_Data { +func (m *Upload_File_Data) GetFileHashes() []*FileHash { if m != nil { - return m.Data2 + return m.FileHashes } return nil } -// updateReadFeaturedStickers#571d2742 = Update; -type TLUpdateReadFeaturedStickers struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Upload_File struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Upload_File_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateReadFeaturedStickers) Reset() { *m = TLUpdateReadFeaturedStickers{} } -func (m *TLUpdateReadFeaturedStickers) String() string { return proto.CompactTextString(m) } -func (*TLUpdateReadFeaturedStickers) ProtoMessage() {} -func (*TLUpdateReadFeaturedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{359} +func (m *Upload_File) Reset() { *m = Upload_File{} } +func (m *Upload_File) String() string { return proto.CompactTextString(m) } +func (*Upload_File) ProtoMessage() {} +func (*Upload_File) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{331} } -func (m *TLUpdateReadFeaturedStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateReadFeaturedStickers.Unmarshal(m, b) +func (m *Upload_File) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Upload_File.Unmarshal(m, b) } -func (m *TLUpdateReadFeaturedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateReadFeaturedStickers.Marshal(b, m, deterministic) +func (m *Upload_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Upload_File.Marshal(b, m, deterministic) } -func (dst *TLUpdateReadFeaturedStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateReadFeaturedStickers.Merge(dst, src) +func (dst *Upload_File) XXX_Merge(src proto.Message) { + xxx_messageInfo_Upload_File.Merge(dst, src) } -func (m *TLUpdateReadFeaturedStickers) XXX_Size() int { - return xxx_messageInfo_TLUpdateReadFeaturedStickers.Size(m) +func (m *Upload_File) XXX_Size() int { + return xxx_messageInfo_Upload_File.Size(m) } -func (m *TLUpdateReadFeaturedStickers) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateReadFeaturedStickers.DiscardUnknown(m) +func (m *Upload_File) XXX_DiscardUnknown() { + xxx_messageInfo_Upload_File.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateReadFeaturedStickers proto.InternalMessageInfo +var xxx_messageInfo_Upload_File proto.InternalMessageInfo -func (m *TLUpdateReadFeaturedStickers) GetData2() *Update_Data { +func (m *Upload_File) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Upload_File) GetData2() *Upload_File_Data { if m != nil { return m.Data2 } return nil } -// updateRecentStickers#9a422c20 = Update; -type TLUpdateRecentStickers struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; +type TLUploadFile struct { + Data2 *Upload_File_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateRecentStickers) Reset() { *m = TLUpdateRecentStickers{} } -func (m *TLUpdateRecentStickers) String() string { return proto.CompactTextString(m) } -func (*TLUpdateRecentStickers) ProtoMessage() {} -func (*TLUpdateRecentStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{360} +func (m *TLUploadFile) Reset() { *m = TLUploadFile{} } +func (m *TLUploadFile) String() string { return proto.CompactTextString(m) } +func (*TLUploadFile) ProtoMessage() {} +func (*TLUploadFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{332} } -func (m *TLUpdateRecentStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateRecentStickers.Unmarshal(m, b) +func (m *TLUploadFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUploadFile.Unmarshal(m, b) } -func (m *TLUpdateRecentStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateRecentStickers.Marshal(b, m, deterministic) +func (m *TLUploadFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUploadFile.Marshal(b, m, deterministic) } -func (dst *TLUpdateRecentStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateRecentStickers.Merge(dst, src) +func (dst *TLUploadFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUploadFile.Merge(dst, src) } -func (m *TLUpdateRecentStickers) XXX_Size() int { - return xxx_messageInfo_TLUpdateRecentStickers.Size(m) +func (m *TLUploadFile) XXX_Size() int { + return xxx_messageInfo_TLUploadFile.Size(m) } -func (m *TLUpdateRecentStickers) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateRecentStickers.DiscardUnknown(m) +func (m *TLUploadFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLUploadFile.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateRecentStickers proto.InternalMessageInfo +var xxx_messageInfo_TLUploadFile proto.InternalMessageInfo -func (m *TLUpdateRecentStickers) GetData2() *Update_Data { +func (m *TLUploadFile) GetData2() *Upload_File_Data { if m != nil { return m.Data2 } return nil } -// updateConfig#a229dd06 = Update; -type TLUpdateConfig struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File; +type TLUploadFileCdnRedirect struct { + Data2 *Upload_File_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateConfig) Reset() { *m = TLUpdateConfig{} } -func (m *TLUpdateConfig) String() string { return proto.CompactTextString(m) } -func (*TLUpdateConfig) ProtoMessage() {} -func (*TLUpdateConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{361} +func (m *TLUploadFileCdnRedirect) Reset() { *m = TLUploadFileCdnRedirect{} } +func (m *TLUploadFileCdnRedirect) String() string { return proto.CompactTextString(m) } +func (*TLUploadFileCdnRedirect) ProtoMessage() {} +func (*TLUploadFileCdnRedirect) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{333} } -func (m *TLUpdateConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateConfig.Unmarshal(m, b) +func (m *TLUploadFileCdnRedirect) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUploadFileCdnRedirect.Unmarshal(m, b) } -func (m *TLUpdateConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateConfig.Marshal(b, m, deterministic) +func (m *TLUploadFileCdnRedirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUploadFileCdnRedirect.Marshal(b, m, deterministic) } -func (dst *TLUpdateConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateConfig.Merge(dst, src) +func (dst *TLUploadFileCdnRedirect) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUploadFileCdnRedirect.Merge(dst, src) } -func (m *TLUpdateConfig) XXX_Size() int { - return xxx_messageInfo_TLUpdateConfig.Size(m) +func (m *TLUploadFileCdnRedirect) XXX_Size() int { + return xxx_messageInfo_TLUploadFileCdnRedirect.Size(m) } -func (m *TLUpdateConfig) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateConfig.DiscardUnknown(m) +func (m *TLUploadFileCdnRedirect) XXX_DiscardUnknown() { + xxx_messageInfo_TLUploadFileCdnRedirect.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateConfig proto.InternalMessageInfo +var xxx_messageInfo_TLUploadFileCdnRedirect proto.InternalMessageInfo -func (m *TLUpdateConfig) GetData2() *Update_Data { +func (m *TLUploadFileCdnRedirect) GetData2() *Upload_File_Data { if m != nil { return m.Data2 } return nil } -// updatePtsChanged#3354678f = Update; -type TLUpdatePtsChanged struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// storage_FileType <-- +// + TL_storage_fileUnknown +// + TL_storage_filePartial +// + TL_storage_fileJpeg +// + TL_storage_fileGif +// + TL_storage_filePng +// + TL_storage_filePdf +// + TL_storage_fileMp3 +// + TL_storage_fileMov +// + TL_storage_fileMp4 +// + TL_storage_fileWebp +// +type Storage_FileType_Data struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatePtsChanged) Reset() { *m = TLUpdatePtsChanged{} } -func (m *TLUpdatePtsChanged) String() string { return proto.CompactTextString(m) } -func (*TLUpdatePtsChanged) ProtoMessage() {} -func (*TLUpdatePtsChanged) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{362} +func (m *Storage_FileType_Data) Reset() { *m = Storage_FileType_Data{} } +func (m *Storage_FileType_Data) String() string { return proto.CompactTextString(m) } +func (*Storage_FileType_Data) ProtoMessage() {} +func (*Storage_FileType_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{334} } -func (m *TLUpdatePtsChanged) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatePtsChanged.Unmarshal(m, b) +func (m *Storage_FileType_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Storage_FileType_Data.Unmarshal(m, b) } -func (m *TLUpdatePtsChanged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatePtsChanged.Marshal(b, m, deterministic) +func (m *Storage_FileType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Storage_FileType_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdatePtsChanged) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatePtsChanged.Merge(dst, src) +func (dst *Storage_FileType_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Storage_FileType_Data.Merge(dst, src) } -func (m *TLUpdatePtsChanged) XXX_Size() int { - return xxx_messageInfo_TLUpdatePtsChanged.Size(m) +func (m *Storage_FileType_Data) XXX_Size() int { + return xxx_messageInfo_Storage_FileType_Data.Size(m) } -func (m *TLUpdatePtsChanged) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatePtsChanged.DiscardUnknown(m) +func (m *Storage_FileType_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Storage_FileType_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatePtsChanged proto.InternalMessageInfo - -func (m *TLUpdatePtsChanged) GetData2() *Update_Data { - if m != nil { - return m.Data2 - } - return nil -} +var xxx_messageInfo_Storage_FileType_Data proto.InternalMessageInfo -// updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update; -type TLUpdateChannelWebPage struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Storage_FileType struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChannelWebPage) Reset() { *m = TLUpdateChannelWebPage{} } -func (m *TLUpdateChannelWebPage) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChannelWebPage) ProtoMessage() {} -func (*TLUpdateChannelWebPage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{363} +func (m *Storage_FileType) Reset() { *m = Storage_FileType{} } +func (m *Storage_FileType) String() string { return proto.CompactTextString(m) } +func (*Storage_FileType) ProtoMessage() {} +func (*Storage_FileType) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{335} } -func (m *TLUpdateChannelWebPage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChannelWebPage.Unmarshal(m, b) +func (m *Storage_FileType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Storage_FileType.Unmarshal(m, b) } -func (m *TLUpdateChannelWebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChannelWebPage.Marshal(b, m, deterministic) +func (m *Storage_FileType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Storage_FileType.Marshal(b, m, deterministic) } -func (dst *TLUpdateChannelWebPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChannelWebPage.Merge(dst, src) +func (dst *Storage_FileType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Storage_FileType.Merge(dst, src) } -func (m *TLUpdateChannelWebPage) XXX_Size() int { - return xxx_messageInfo_TLUpdateChannelWebPage.Size(m) +func (m *Storage_FileType) XXX_Size() int { + return xxx_messageInfo_Storage_FileType.Size(m) } -func (m *TLUpdateChannelWebPage) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChannelWebPage.DiscardUnknown(m) +func (m *Storage_FileType) XXX_DiscardUnknown() { + xxx_messageInfo_Storage_FileType.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChannelWebPage proto.InternalMessageInfo +var xxx_messageInfo_Storage_FileType proto.InternalMessageInfo -func (m *TLUpdateChannelWebPage) GetData2() *Update_Data { +func (m *Storage_FileType) GetConstructor() TLConstructor { if m != nil { - return m.Data2 + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Storage_FileType) GetData2() *Storage_FileType_Data { + if m != nil { + return m.Data2 } return nil } -// updateDialogPinned#19d27f3c flags:# pinned:flags.0?true peer:DialogPeer = Update; -type TLUpdateDialogPinned struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.fileUnknown#aa963b05 = storage.FileType; +type TLStorageFileUnknown struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateDialogPinned) Reset() { *m = TLUpdateDialogPinned{} } -func (m *TLUpdateDialogPinned) String() string { return proto.CompactTextString(m) } -func (*TLUpdateDialogPinned) ProtoMessage() {} -func (*TLUpdateDialogPinned) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{364} +func (m *TLStorageFileUnknown) Reset() { *m = TLStorageFileUnknown{} } +func (m *TLStorageFileUnknown) String() string { return proto.CompactTextString(m) } +func (*TLStorageFileUnknown) ProtoMessage() {} +func (*TLStorageFileUnknown) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{336} } -func (m *TLUpdateDialogPinned) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateDialogPinned.Unmarshal(m, b) +func (m *TLStorageFileUnknown) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFileUnknown.Unmarshal(m, b) } -func (m *TLUpdateDialogPinned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateDialogPinned.Marshal(b, m, deterministic) +func (m *TLStorageFileUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFileUnknown.Marshal(b, m, deterministic) } -func (dst *TLUpdateDialogPinned) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateDialogPinned.Merge(dst, src) +func (dst *TLStorageFileUnknown) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFileUnknown.Merge(dst, src) } -func (m *TLUpdateDialogPinned) XXX_Size() int { - return xxx_messageInfo_TLUpdateDialogPinned.Size(m) +func (m *TLStorageFileUnknown) XXX_Size() int { + return xxx_messageInfo_TLStorageFileUnknown.Size(m) } -func (m *TLUpdateDialogPinned) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateDialogPinned.DiscardUnknown(m) +func (m *TLStorageFileUnknown) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFileUnknown.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateDialogPinned proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFileUnknown proto.InternalMessageInfo -func (m *TLUpdateDialogPinned) GetData2() *Update_Data { +func (m *TLStorageFileUnknown) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updatePinnedDialogs#ea4cb65b flags:# order:flags.0?Vector = Update; -type TLUpdatePinnedDialogs struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.filePartial#40bc6f52 = storage.FileType; +type TLStorageFilePartial struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatePinnedDialogs) Reset() { *m = TLUpdatePinnedDialogs{} } -func (m *TLUpdatePinnedDialogs) String() string { return proto.CompactTextString(m) } -func (*TLUpdatePinnedDialogs) ProtoMessage() {} -func (*TLUpdatePinnedDialogs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{365} +func (m *TLStorageFilePartial) Reset() { *m = TLStorageFilePartial{} } +func (m *TLStorageFilePartial) String() string { return proto.CompactTextString(m) } +func (*TLStorageFilePartial) ProtoMessage() {} +func (*TLStorageFilePartial) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{337} } -func (m *TLUpdatePinnedDialogs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatePinnedDialogs.Unmarshal(m, b) +func (m *TLStorageFilePartial) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFilePartial.Unmarshal(m, b) } -func (m *TLUpdatePinnedDialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatePinnedDialogs.Marshal(b, m, deterministic) +func (m *TLStorageFilePartial) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFilePartial.Marshal(b, m, deterministic) } -func (dst *TLUpdatePinnedDialogs) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatePinnedDialogs.Merge(dst, src) +func (dst *TLStorageFilePartial) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFilePartial.Merge(dst, src) } -func (m *TLUpdatePinnedDialogs) XXX_Size() int { - return xxx_messageInfo_TLUpdatePinnedDialogs.Size(m) +func (m *TLStorageFilePartial) XXX_Size() int { + return xxx_messageInfo_TLStorageFilePartial.Size(m) } -func (m *TLUpdatePinnedDialogs) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatePinnedDialogs.DiscardUnknown(m) +func (m *TLStorageFilePartial) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFilePartial.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatePinnedDialogs proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFilePartial proto.InternalMessageInfo -func (m *TLUpdatePinnedDialogs) GetData2() *Update_Data { +func (m *TLStorageFilePartial) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; -type TLUpdateBotWebhookJSON struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.fileJpeg#7efe0e = storage.FileType; +type TLStorageFileJpeg struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateBotWebhookJSON) Reset() { *m = TLUpdateBotWebhookJSON{} } -func (m *TLUpdateBotWebhookJSON) String() string { return proto.CompactTextString(m) } -func (*TLUpdateBotWebhookJSON) ProtoMessage() {} -func (*TLUpdateBotWebhookJSON) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{366} +func (m *TLStorageFileJpeg) Reset() { *m = TLStorageFileJpeg{} } +func (m *TLStorageFileJpeg) String() string { return proto.CompactTextString(m) } +func (*TLStorageFileJpeg) ProtoMessage() {} +func (*TLStorageFileJpeg) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{338} } -func (m *TLUpdateBotWebhookJSON) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateBotWebhookJSON.Unmarshal(m, b) +func (m *TLStorageFileJpeg) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFileJpeg.Unmarshal(m, b) } -func (m *TLUpdateBotWebhookJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateBotWebhookJSON.Marshal(b, m, deterministic) +func (m *TLStorageFileJpeg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFileJpeg.Marshal(b, m, deterministic) } -func (dst *TLUpdateBotWebhookJSON) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateBotWebhookJSON.Merge(dst, src) +func (dst *TLStorageFileJpeg) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFileJpeg.Merge(dst, src) } -func (m *TLUpdateBotWebhookJSON) XXX_Size() int { - return xxx_messageInfo_TLUpdateBotWebhookJSON.Size(m) +func (m *TLStorageFileJpeg) XXX_Size() int { + return xxx_messageInfo_TLStorageFileJpeg.Size(m) } -func (m *TLUpdateBotWebhookJSON) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateBotWebhookJSON.DiscardUnknown(m) +func (m *TLStorageFileJpeg) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFileJpeg.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateBotWebhookJSON proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFileJpeg proto.InternalMessageInfo -func (m *TLUpdateBotWebhookJSON) GetData2() *Update_Data { +func (m *TLStorageFileJpeg) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; -type TLUpdateBotWebhookJSONQuery struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.fileGif#cae1aadf = storage.FileType; +type TLStorageFileGif struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateBotWebhookJSONQuery) Reset() { *m = TLUpdateBotWebhookJSONQuery{} } -func (m *TLUpdateBotWebhookJSONQuery) String() string { return proto.CompactTextString(m) } -func (*TLUpdateBotWebhookJSONQuery) ProtoMessage() {} -func (*TLUpdateBotWebhookJSONQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{367} +func (m *TLStorageFileGif) Reset() { *m = TLStorageFileGif{} } +func (m *TLStorageFileGif) String() string { return proto.CompactTextString(m) } +func (*TLStorageFileGif) ProtoMessage() {} +func (*TLStorageFileGif) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{339} } -func (m *TLUpdateBotWebhookJSONQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateBotWebhookJSONQuery.Unmarshal(m, b) +func (m *TLStorageFileGif) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFileGif.Unmarshal(m, b) } -func (m *TLUpdateBotWebhookJSONQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateBotWebhookJSONQuery.Marshal(b, m, deterministic) +func (m *TLStorageFileGif) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFileGif.Marshal(b, m, deterministic) } -func (dst *TLUpdateBotWebhookJSONQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateBotWebhookJSONQuery.Merge(dst, src) +func (dst *TLStorageFileGif) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFileGif.Merge(dst, src) } -func (m *TLUpdateBotWebhookJSONQuery) XXX_Size() int { - return xxx_messageInfo_TLUpdateBotWebhookJSONQuery.Size(m) +func (m *TLStorageFileGif) XXX_Size() int { + return xxx_messageInfo_TLStorageFileGif.Size(m) } -func (m *TLUpdateBotWebhookJSONQuery) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateBotWebhookJSONQuery.DiscardUnknown(m) +func (m *TLStorageFileGif) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFileGif.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateBotWebhookJSONQuery proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFileGif proto.InternalMessageInfo -func (m *TLUpdateBotWebhookJSONQuery) GetData2() *Update_Data { +func (m *TLStorageFileGif) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; -type TLUpdateBotShippingQuery struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.filePng#a4f63c0 = storage.FileType; +type TLStorageFilePng struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateBotShippingQuery) Reset() { *m = TLUpdateBotShippingQuery{} } -func (m *TLUpdateBotShippingQuery) String() string { return proto.CompactTextString(m) } -func (*TLUpdateBotShippingQuery) ProtoMessage() {} -func (*TLUpdateBotShippingQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{368} +func (m *TLStorageFilePng) Reset() { *m = TLStorageFilePng{} } +func (m *TLStorageFilePng) String() string { return proto.CompactTextString(m) } +func (*TLStorageFilePng) ProtoMessage() {} +func (*TLStorageFilePng) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{340} } -func (m *TLUpdateBotShippingQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateBotShippingQuery.Unmarshal(m, b) +func (m *TLStorageFilePng) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFilePng.Unmarshal(m, b) } -func (m *TLUpdateBotShippingQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateBotShippingQuery.Marshal(b, m, deterministic) +func (m *TLStorageFilePng) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFilePng.Marshal(b, m, deterministic) } -func (dst *TLUpdateBotShippingQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateBotShippingQuery.Merge(dst, src) +func (dst *TLStorageFilePng) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFilePng.Merge(dst, src) } -func (m *TLUpdateBotShippingQuery) XXX_Size() int { - return xxx_messageInfo_TLUpdateBotShippingQuery.Size(m) +func (m *TLStorageFilePng) XXX_Size() int { + return xxx_messageInfo_TLStorageFilePng.Size(m) } -func (m *TLUpdateBotShippingQuery) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateBotShippingQuery.DiscardUnknown(m) +func (m *TLStorageFilePng) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFilePng.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateBotShippingQuery proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFilePng proto.InternalMessageInfo -func (m *TLUpdateBotShippingQuery) GetData2() *Update_Data { +func (m *TLStorageFilePng) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; -type TLUpdateBotPrecheckoutQuery struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.filePdf#ae1e508d = storage.FileType; +type TLStorageFilePdf struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateBotPrecheckoutQuery) Reset() { *m = TLUpdateBotPrecheckoutQuery{} } -func (m *TLUpdateBotPrecheckoutQuery) String() string { return proto.CompactTextString(m) } -func (*TLUpdateBotPrecheckoutQuery) ProtoMessage() {} -func (*TLUpdateBotPrecheckoutQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{369} +func (m *TLStorageFilePdf) Reset() { *m = TLStorageFilePdf{} } +func (m *TLStorageFilePdf) String() string { return proto.CompactTextString(m) } +func (*TLStorageFilePdf) ProtoMessage() {} +func (*TLStorageFilePdf) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{341} } -func (m *TLUpdateBotPrecheckoutQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateBotPrecheckoutQuery.Unmarshal(m, b) +func (m *TLStorageFilePdf) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFilePdf.Unmarshal(m, b) } -func (m *TLUpdateBotPrecheckoutQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateBotPrecheckoutQuery.Marshal(b, m, deterministic) +func (m *TLStorageFilePdf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFilePdf.Marshal(b, m, deterministic) } -func (dst *TLUpdateBotPrecheckoutQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateBotPrecheckoutQuery.Merge(dst, src) +func (dst *TLStorageFilePdf) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFilePdf.Merge(dst, src) } -func (m *TLUpdateBotPrecheckoutQuery) XXX_Size() int { - return xxx_messageInfo_TLUpdateBotPrecheckoutQuery.Size(m) +func (m *TLStorageFilePdf) XXX_Size() int { + return xxx_messageInfo_TLStorageFilePdf.Size(m) } -func (m *TLUpdateBotPrecheckoutQuery) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateBotPrecheckoutQuery.DiscardUnknown(m) +func (m *TLStorageFilePdf) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFilePdf.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateBotPrecheckoutQuery proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFilePdf proto.InternalMessageInfo -func (m *TLUpdateBotPrecheckoutQuery) GetData2() *Update_Data { +func (m *TLStorageFilePdf) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update; -type TLUpdatePhoneCall struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.fileMp3#528a0677 = storage.FileType; +type TLStorageFileMp3 struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatePhoneCall) Reset() { *m = TLUpdatePhoneCall{} } -func (m *TLUpdatePhoneCall) String() string { return proto.CompactTextString(m) } -func (*TLUpdatePhoneCall) ProtoMessage() {} -func (*TLUpdatePhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{370} +func (m *TLStorageFileMp3) Reset() { *m = TLStorageFileMp3{} } +func (m *TLStorageFileMp3) String() string { return proto.CompactTextString(m) } +func (*TLStorageFileMp3) ProtoMessage() {} +func (*TLStorageFileMp3) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{342} } -func (m *TLUpdatePhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatePhoneCall.Unmarshal(m, b) +func (m *TLStorageFileMp3) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFileMp3.Unmarshal(m, b) } -func (m *TLUpdatePhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatePhoneCall.Marshal(b, m, deterministic) +func (m *TLStorageFileMp3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFileMp3.Marshal(b, m, deterministic) } -func (dst *TLUpdatePhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatePhoneCall.Merge(dst, src) +func (dst *TLStorageFileMp3) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFileMp3.Merge(dst, src) } -func (m *TLUpdatePhoneCall) XXX_Size() int { - return xxx_messageInfo_TLUpdatePhoneCall.Size(m) +func (m *TLStorageFileMp3) XXX_Size() int { + return xxx_messageInfo_TLStorageFileMp3.Size(m) } -func (m *TLUpdatePhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatePhoneCall.DiscardUnknown(m) +func (m *TLStorageFileMp3) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFileMp3.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatePhoneCall proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFileMp3 proto.InternalMessageInfo -func (m *TLUpdatePhoneCall) GetData2() *Update_Data { +func (m *TLStorageFileMp3) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updateLangPackTooLong#10c2404b = Update; -type TLUpdateLangPackTooLong struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.fileMov#4b09ebbc = storage.FileType; +type TLStorageFileMov struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateLangPackTooLong) Reset() { *m = TLUpdateLangPackTooLong{} } -func (m *TLUpdateLangPackTooLong) String() string { return proto.CompactTextString(m) } -func (*TLUpdateLangPackTooLong) ProtoMessage() {} -func (*TLUpdateLangPackTooLong) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{371} +func (m *TLStorageFileMov) Reset() { *m = TLStorageFileMov{} } +func (m *TLStorageFileMov) String() string { return proto.CompactTextString(m) } +func (*TLStorageFileMov) ProtoMessage() {} +func (*TLStorageFileMov) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{343} } -func (m *TLUpdateLangPackTooLong) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateLangPackTooLong.Unmarshal(m, b) +func (m *TLStorageFileMov) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFileMov.Unmarshal(m, b) } -func (m *TLUpdateLangPackTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateLangPackTooLong.Marshal(b, m, deterministic) +func (m *TLStorageFileMov) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFileMov.Marshal(b, m, deterministic) } -func (dst *TLUpdateLangPackTooLong) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateLangPackTooLong.Merge(dst, src) +func (dst *TLStorageFileMov) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFileMov.Merge(dst, src) } -func (m *TLUpdateLangPackTooLong) XXX_Size() int { - return xxx_messageInfo_TLUpdateLangPackTooLong.Size(m) +func (m *TLStorageFileMov) XXX_Size() int { + return xxx_messageInfo_TLStorageFileMov.Size(m) } -func (m *TLUpdateLangPackTooLong) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateLangPackTooLong.DiscardUnknown(m) +func (m *TLStorageFileMov) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFileMov.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateLangPackTooLong proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFileMov proto.InternalMessageInfo -func (m *TLUpdateLangPackTooLong) GetData2() *Update_Data { +func (m *TLStorageFileMov) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updateLangPack#56022f4d difference:LangPackDifference = Update; -type TLUpdateLangPack struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.fileMp4#b3cea0e4 = storage.FileType; +type TLStorageFileMp4 struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateLangPack) Reset() { *m = TLUpdateLangPack{} } -func (m *TLUpdateLangPack) String() string { return proto.CompactTextString(m) } -func (*TLUpdateLangPack) ProtoMessage() {} -func (*TLUpdateLangPack) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{372} +func (m *TLStorageFileMp4) Reset() { *m = TLStorageFileMp4{} } +func (m *TLStorageFileMp4) String() string { return proto.CompactTextString(m) } +func (*TLStorageFileMp4) ProtoMessage() {} +func (*TLStorageFileMp4) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{344} } -func (m *TLUpdateLangPack) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateLangPack.Unmarshal(m, b) +func (m *TLStorageFileMp4) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFileMp4.Unmarshal(m, b) } -func (m *TLUpdateLangPack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateLangPack.Marshal(b, m, deterministic) +func (m *TLStorageFileMp4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFileMp4.Marshal(b, m, deterministic) } -func (dst *TLUpdateLangPack) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateLangPack.Merge(dst, src) +func (dst *TLStorageFileMp4) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFileMp4.Merge(dst, src) } -func (m *TLUpdateLangPack) XXX_Size() int { - return xxx_messageInfo_TLUpdateLangPack.Size(m) +func (m *TLStorageFileMp4) XXX_Size() int { + return xxx_messageInfo_TLStorageFileMp4.Size(m) } -func (m *TLUpdateLangPack) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateLangPack.DiscardUnknown(m) +func (m *TLStorageFileMp4) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFileMp4.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateLangPack proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFileMp4 proto.InternalMessageInfo -func (m *TLUpdateLangPack) GetData2() *Update_Data { +func (m *TLStorageFileMp4) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updateFavedStickers#e511996d = Update; -type TLUpdateFavedStickers struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// storage.fileWebp#1081464c = storage.FileType; +type TLStorageFileWebp struct { + Data2 *Storage_FileType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateFavedStickers) Reset() { *m = TLUpdateFavedStickers{} } -func (m *TLUpdateFavedStickers) String() string { return proto.CompactTextString(m) } -func (*TLUpdateFavedStickers) ProtoMessage() {} -func (*TLUpdateFavedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{373} +func (m *TLStorageFileWebp) Reset() { *m = TLStorageFileWebp{} } +func (m *TLStorageFileWebp) String() string { return proto.CompactTextString(m) } +func (*TLStorageFileWebp) ProtoMessage() {} +func (*TLStorageFileWebp) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{345} } -func (m *TLUpdateFavedStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateFavedStickers.Unmarshal(m, b) +func (m *TLStorageFileWebp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStorageFileWebp.Unmarshal(m, b) } -func (m *TLUpdateFavedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateFavedStickers.Marshal(b, m, deterministic) +func (m *TLStorageFileWebp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStorageFileWebp.Marshal(b, m, deterministic) } -func (dst *TLUpdateFavedStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateFavedStickers.Merge(dst, src) +func (dst *TLStorageFileWebp) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStorageFileWebp.Merge(dst, src) } -func (m *TLUpdateFavedStickers) XXX_Size() int { - return xxx_messageInfo_TLUpdateFavedStickers.Size(m) +func (m *TLStorageFileWebp) XXX_Size() int { + return xxx_messageInfo_TLStorageFileWebp.Size(m) } -func (m *TLUpdateFavedStickers) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateFavedStickers.DiscardUnknown(m) +func (m *TLStorageFileWebp) XXX_DiscardUnknown() { + xxx_messageInfo_TLStorageFileWebp.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateFavedStickers proto.InternalMessageInfo +var xxx_messageInfo_TLStorageFileWebp proto.InternalMessageInfo -func (m *TLUpdateFavedStickers) GetData2() *Update_Data { +func (m *TLStorageFileWebp) GetData2() *Storage_FileType_Data { if m != nil { return m.Data2 } return nil } -// updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector = Update; -type TLUpdateChannelReadMessagesContents struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// NearestDc <-- +// + TL_nearestDc +// +type NearestDc_Data struct { + Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` + ThisDc int32 `protobuf:"varint,2,opt,name=this_dc,json=thisDc,proto3" json:"this_dc,omitempty"` + NearestDc int32 `protobuf:"varint,3,opt,name=nearest_dc,json=nearestDc,proto3" json:"nearest_dc,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChannelReadMessagesContents) Reset() { *m = TLUpdateChannelReadMessagesContents{} } -func (m *TLUpdateChannelReadMessagesContents) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChannelReadMessagesContents) ProtoMessage() {} -func (*TLUpdateChannelReadMessagesContents) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{374} +func (m *NearestDc_Data) Reset() { *m = NearestDc_Data{} } +func (m *NearestDc_Data) String() string { return proto.CompactTextString(m) } +func (*NearestDc_Data) ProtoMessage() {} +func (*NearestDc_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{346} } -func (m *TLUpdateChannelReadMessagesContents) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChannelReadMessagesContents.Unmarshal(m, b) +func (m *NearestDc_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NearestDc_Data.Unmarshal(m, b) } -func (m *TLUpdateChannelReadMessagesContents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChannelReadMessagesContents.Marshal(b, m, deterministic) +func (m *NearestDc_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NearestDc_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdateChannelReadMessagesContents) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChannelReadMessagesContents.Merge(dst, src) +func (dst *NearestDc_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_NearestDc_Data.Merge(dst, src) } -func (m *TLUpdateChannelReadMessagesContents) XXX_Size() int { - return xxx_messageInfo_TLUpdateChannelReadMessagesContents.Size(m) +func (m *NearestDc_Data) XXX_Size() int { + return xxx_messageInfo_NearestDc_Data.Size(m) } -func (m *TLUpdateChannelReadMessagesContents) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChannelReadMessagesContents.DiscardUnknown(m) +func (m *NearestDc_Data) XXX_DiscardUnknown() { + xxx_messageInfo_NearestDc_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChannelReadMessagesContents proto.InternalMessageInfo +var xxx_messageInfo_NearestDc_Data proto.InternalMessageInfo -func (m *TLUpdateChannelReadMessagesContents) GetData2() *Update_Data { +func (m *NearestDc_Data) GetCountry() string { if m != nil { - return m.Data2 + return m.Country } - return nil + return "" } -// updateContactsReset#7084a7be = Update; -type TLUpdateContactsReset struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *NearestDc_Data) GetThisDc() int32 { + if m != nil { + return m.ThisDc + } + return 0 } -func (m *TLUpdateContactsReset) Reset() { *m = TLUpdateContactsReset{} } -func (m *TLUpdateContactsReset) String() string { return proto.CompactTextString(m) } -func (*TLUpdateContactsReset) ProtoMessage() {} -func (*TLUpdateContactsReset) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{375} -} -func (m *TLUpdateContactsReset) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateContactsReset.Unmarshal(m, b) -} -func (m *TLUpdateContactsReset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateContactsReset.Marshal(b, m, deterministic) -} -func (dst *TLUpdateContactsReset) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateContactsReset.Merge(dst, src) -} -func (m *TLUpdateContactsReset) XXX_Size() int { - return xxx_messageInfo_TLUpdateContactsReset.Size(m) -} -func (m *TLUpdateContactsReset) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateContactsReset.DiscardUnknown(m) -} - -var xxx_messageInfo_TLUpdateContactsReset proto.InternalMessageInfo - -func (m *TLUpdateContactsReset) GetData2() *Update_Data { +func (m *NearestDc_Data) GetNearestDc() int32 { if m != nil { - return m.Data2 + return m.NearestDc } - return nil + return 0 } -// updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update; -type TLUpdateChannelAvailableMessages struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type NearestDc struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *NearestDc_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateChannelAvailableMessages) Reset() { *m = TLUpdateChannelAvailableMessages{} } -func (m *TLUpdateChannelAvailableMessages) String() string { return proto.CompactTextString(m) } -func (*TLUpdateChannelAvailableMessages) ProtoMessage() {} -func (*TLUpdateChannelAvailableMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{376} +func (m *NearestDc) Reset() { *m = NearestDc{} } +func (m *NearestDc) String() string { return proto.CompactTextString(m) } +func (*NearestDc) ProtoMessage() {} +func (*NearestDc) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{347} } -func (m *TLUpdateChannelAvailableMessages) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateChannelAvailableMessages.Unmarshal(m, b) +func (m *NearestDc) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NearestDc.Unmarshal(m, b) } -func (m *TLUpdateChannelAvailableMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateChannelAvailableMessages.Marshal(b, m, deterministic) +func (m *NearestDc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NearestDc.Marshal(b, m, deterministic) } -func (dst *TLUpdateChannelAvailableMessages) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateChannelAvailableMessages.Merge(dst, src) +func (dst *NearestDc) XXX_Merge(src proto.Message) { + xxx_messageInfo_NearestDc.Merge(dst, src) } -func (m *TLUpdateChannelAvailableMessages) XXX_Size() int { - return xxx_messageInfo_TLUpdateChannelAvailableMessages.Size(m) +func (m *NearestDc) XXX_Size() int { + return xxx_messageInfo_NearestDc.Size(m) } -func (m *TLUpdateChannelAvailableMessages) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateChannelAvailableMessages.DiscardUnknown(m) +func (m *NearestDc) XXX_DiscardUnknown() { + xxx_messageInfo_NearestDc.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateChannelAvailableMessages proto.InternalMessageInfo +var xxx_messageInfo_NearestDc proto.InternalMessageInfo -func (m *TLUpdateChannelAvailableMessages) GetData2() *Update_Data { +func (m *NearestDc) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *NearestDc) GetData2() *NearestDc_Data { if m != nil { return m.Data2 } return nil } -// updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update; -type TLUpdateDialogUnreadMark struct { - Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc; +type TLNearestDc struct { + Data2 *NearestDc_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdateDialogUnreadMark) Reset() { *m = TLUpdateDialogUnreadMark{} } -func (m *TLUpdateDialogUnreadMark) String() string { return proto.CompactTextString(m) } -func (*TLUpdateDialogUnreadMark) ProtoMessage() {} -func (*TLUpdateDialogUnreadMark) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{377} +func (m *TLNearestDc) Reset() { *m = TLNearestDc{} } +func (m *TLNearestDc) String() string { return proto.CompactTextString(m) } +func (*TLNearestDc) ProtoMessage() {} +func (*TLNearestDc) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{348} } -func (m *TLUpdateDialogUnreadMark) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdateDialogUnreadMark.Unmarshal(m, b) +func (m *TLNearestDc) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLNearestDc.Unmarshal(m, b) } -func (m *TLUpdateDialogUnreadMark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdateDialogUnreadMark.Marshal(b, m, deterministic) +func (m *TLNearestDc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLNearestDc.Marshal(b, m, deterministic) } -func (dst *TLUpdateDialogUnreadMark) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdateDialogUnreadMark.Merge(dst, src) +func (dst *TLNearestDc) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLNearestDc.Merge(dst, src) } -func (m *TLUpdateDialogUnreadMark) XXX_Size() int { - return xxx_messageInfo_TLUpdateDialogUnreadMark.Size(m) +func (m *TLNearestDc) XXX_Size() int { + return xxx_messageInfo_TLNearestDc.Size(m) } -func (m *TLUpdateDialogUnreadMark) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdateDialogUnreadMark.DiscardUnknown(m) +func (m *TLNearestDc) XXX_DiscardUnknown() { + xxx_messageInfo_TLNearestDc.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdateDialogUnreadMark proto.InternalMessageInfo +var xxx_messageInfo_TLNearestDc proto.InternalMessageInfo -func (m *TLUpdateDialogUnreadMark) GetData2() *Update_Data { +func (m *TLNearestDc) GetData2() *NearestDc_Data { if m != nil { return m.Data2 } @@ -17900,994 +17190,884 @@ func (m *TLUpdateDialogUnreadMark) GetData2() *Update_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputPeer <-- -// + TL_inputPeerEmpty -// + TL_inputPeerSelf -// + TL_inputPeerChat -// + TL_inputPeerUser -// + TL_inputPeerChannel +// DraftMessage <-- +// + TL_draftMessageEmpty +// + TL_draftMessage // -type InputPeer_Data struct { - ChatId int32 `protobuf:"varint,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - AccessHash int64 `protobuf:"varint,3,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - ChannelId int32 `protobuf:"varint,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DraftMessage_Data struct { + Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` + NoWebpage bool `protobuf:"varint,2,opt,name=no_webpage,json=noWebpage,proto3" json:"no_webpage,omitempty"` + ReplyToMsgId int32 `protobuf:"varint,3,opt,name=reply_to_msg_id,json=replyToMsgId,proto3" json:"reply_to_msg_id,omitempty"` + Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,5,rep,name=entities,proto3" json:"entities,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputPeer_Data) Reset() { *m = InputPeer_Data{} } -func (m *InputPeer_Data) String() string { return proto.CompactTextString(m) } -func (*InputPeer_Data) ProtoMessage() {} -func (*InputPeer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{378} +func (m *DraftMessage_Data) Reset() { *m = DraftMessage_Data{} } +func (m *DraftMessage_Data) String() string { return proto.CompactTextString(m) } +func (*DraftMessage_Data) ProtoMessage() {} +func (*DraftMessage_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{349} } -func (m *InputPeer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPeer_Data.Unmarshal(m, b) +func (m *DraftMessage_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DraftMessage_Data.Unmarshal(m, b) } -func (m *InputPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPeer_Data.Marshal(b, m, deterministic) +func (m *DraftMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DraftMessage_Data.Marshal(b, m, deterministic) } -func (dst *InputPeer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPeer_Data.Merge(dst, src) +func (dst *DraftMessage_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_DraftMessage_Data.Merge(dst, src) } -func (m *InputPeer_Data) XXX_Size() int { - return xxx_messageInfo_InputPeer_Data.Size(m) +func (m *DraftMessage_Data) XXX_Size() int { + return xxx_messageInfo_DraftMessage_Data.Size(m) } -func (m *InputPeer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputPeer_Data.DiscardUnknown(m) +func (m *DraftMessage_Data) XXX_DiscardUnknown() { + xxx_messageInfo_DraftMessage_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputPeer_Data proto.InternalMessageInfo +var xxx_messageInfo_DraftMessage_Data proto.InternalMessageInfo -func (m *InputPeer_Data) GetChatId() int32 { +func (m *DraftMessage_Data) GetDate() int32 { if m != nil { - return m.ChatId + return m.Date } return 0 } -func (m *InputPeer_Data) GetUserId() int32 { +func (m *DraftMessage_Data) GetNoWebpage() bool { if m != nil { - return m.UserId + return m.NoWebpage } - return 0 + return false } -func (m *InputPeer_Data) GetAccessHash() int64 { +func (m *DraftMessage_Data) GetReplyToMsgId() int32 { if m != nil { - return m.AccessHash + return m.ReplyToMsgId } return 0 } -func (m *InputPeer_Data) GetChannelId() int32 { +func (m *DraftMessage_Data) GetMessage() string { if m != nil { - return m.ChannelId + return m.Message } - return 0 + return "" } -type InputPeer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *DraftMessage_Data) GetEntities() []*MessageEntity { + if m != nil { + return m.Entities + } + return nil } -func (m *InputPeer) Reset() { *m = InputPeer{} } -func (m *InputPeer) String() string { return proto.CompactTextString(m) } -func (*InputPeer) ProtoMessage() {} -func (*InputPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{379} +type DraftMessage struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *DraftMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPeer.Unmarshal(m, b) + +func (m *DraftMessage) Reset() { *m = DraftMessage{} } +func (m *DraftMessage) String() string { return proto.CompactTextString(m) } +func (*DraftMessage) ProtoMessage() {} +func (*DraftMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{350} } -func (m *InputPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPeer.Marshal(b, m, deterministic) +func (m *DraftMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DraftMessage.Unmarshal(m, b) } -func (dst *InputPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPeer.Merge(dst, src) +func (m *DraftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DraftMessage.Marshal(b, m, deterministic) } -func (m *InputPeer) XXX_Size() int { - return xxx_messageInfo_InputPeer.Size(m) +func (dst *DraftMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_DraftMessage.Merge(dst, src) } -func (m *InputPeer) XXX_DiscardUnknown() { - xxx_messageInfo_InputPeer.DiscardUnknown(m) +func (m *DraftMessage) XXX_Size() int { + return xxx_messageInfo_DraftMessage.Size(m) +} +func (m *DraftMessage) XXX_DiscardUnknown() { + xxx_messageInfo_DraftMessage.DiscardUnknown(m) } -var xxx_messageInfo_InputPeer proto.InternalMessageInfo +var xxx_messageInfo_DraftMessage proto.InternalMessageInfo -func (m *InputPeer) GetConstructor() TLConstructor { +func (m *DraftMessage) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputPeer) GetData2() *InputPeer_Data { +func (m *DraftMessage) GetData2() *DraftMessage_Data { if m != nil { return m.Data2 } return nil } -// inputPeerEmpty#7f3b18ea = InputPeer; -type TLInputPeerEmpty struct { - Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; +type TLDraftMessageEmpty struct { + Data2 *DraftMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPeerEmpty) Reset() { *m = TLInputPeerEmpty{} } -func (m *TLInputPeerEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputPeerEmpty) ProtoMessage() {} -func (*TLInputPeerEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{380} +func (m *TLDraftMessageEmpty) Reset() { *m = TLDraftMessageEmpty{} } +func (m *TLDraftMessageEmpty) String() string { return proto.CompactTextString(m) } +func (*TLDraftMessageEmpty) ProtoMessage() {} +func (*TLDraftMessageEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{351} } -func (m *TLInputPeerEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPeerEmpty.Unmarshal(m, b) +func (m *TLDraftMessageEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDraftMessageEmpty.Unmarshal(m, b) } -func (m *TLInputPeerEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPeerEmpty.Marshal(b, m, deterministic) +func (m *TLDraftMessageEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDraftMessageEmpty.Marshal(b, m, deterministic) } -func (dst *TLInputPeerEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPeerEmpty.Merge(dst, src) +func (dst *TLDraftMessageEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDraftMessageEmpty.Merge(dst, src) } -func (m *TLInputPeerEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputPeerEmpty.Size(m) +func (m *TLDraftMessageEmpty) XXX_Size() int { + return xxx_messageInfo_TLDraftMessageEmpty.Size(m) } -func (m *TLInputPeerEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPeerEmpty.DiscardUnknown(m) +func (m *TLDraftMessageEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLDraftMessageEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPeerEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLDraftMessageEmpty proto.InternalMessageInfo -func (m *TLInputPeerEmpty) GetData2() *InputPeer_Data { +func (m *TLDraftMessageEmpty) GetData2() *DraftMessage_Data { if m != nil { return m.Data2 } return nil } -// inputPeerSelf#7da07ec9 = InputPeer; -type TLInputPeerSelf struct { - Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector date:int = DraftMessage; +type TLDraftMessage struct { + Data2 *DraftMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPeerSelf) Reset() { *m = TLInputPeerSelf{} } -func (m *TLInputPeerSelf) String() string { return proto.CompactTextString(m) } -func (*TLInputPeerSelf) ProtoMessage() {} -func (*TLInputPeerSelf) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{381} +func (m *TLDraftMessage) Reset() { *m = TLDraftMessage{} } +func (m *TLDraftMessage) String() string { return proto.CompactTextString(m) } +func (*TLDraftMessage) ProtoMessage() {} +func (*TLDraftMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{352} } -func (m *TLInputPeerSelf) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPeerSelf.Unmarshal(m, b) +func (m *TLDraftMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDraftMessage.Unmarshal(m, b) } -func (m *TLInputPeerSelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPeerSelf.Marshal(b, m, deterministic) +func (m *TLDraftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDraftMessage.Marshal(b, m, deterministic) } -func (dst *TLInputPeerSelf) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPeerSelf.Merge(dst, src) +func (dst *TLDraftMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDraftMessage.Merge(dst, src) } -func (m *TLInputPeerSelf) XXX_Size() int { - return xxx_messageInfo_TLInputPeerSelf.Size(m) +func (m *TLDraftMessage) XXX_Size() int { + return xxx_messageInfo_TLDraftMessage.Size(m) } -func (m *TLInputPeerSelf) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPeerSelf.DiscardUnknown(m) +func (m *TLDraftMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLDraftMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPeerSelf proto.InternalMessageInfo +var xxx_messageInfo_TLDraftMessage proto.InternalMessageInfo -func (m *TLInputPeerSelf) GetData2() *InputPeer_Data { +func (m *TLDraftMessage) GetData2() *DraftMessage_Data { if m != nil { return m.Data2 } return nil } -// inputPeerChat#179be863 chat_id:int = InputPeer; -type TLInputPeerChat struct { - Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// Config <-- +// + TL_config +// +type Config_Data struct { + PhonecallsEnabled bool `protobuf:"varint,1,opt,name=phonecalls_enabled,json=phonecallsEnabled,proto3" json:"phonecalls_enabled,omitempty"` + DefaultP2PContacts bool `protobuf:"varint,2,opt,name=default_p2p_contacts,json=defaultP2pContacts,proto3" json:"default_p2p_contacts,omitempty"` + PreloadFeaturedStickers bool `protobuf:"varint,3,opt,name=preload_featured_stickers,json=preloadFeaturedStickers,proto3" json:"preload_featured_stickers,omitempty"` + IgnorePhoneEntities bool `protobuf:"varint,4,opt,name=ignore_phone_entities,json=ignorePhoneEntities,proto3" json:"ignore_phone_entities,omitempty"` + RevokePmInbox bool `protobuf:"varint,5,opt,name=revoke_pm_inbox,json=revokePmInbox,proto3" json:"revoke_pm_inbox,omitempty"` + BlockedMode bool `protobuf:"varint,6,opt,name=blocked_mode,json=blockedMode,proto3" json:"blocked_mode,omitempty"` + Date int32 `protobuf:"varint,7,opt,name=date,proto3" json:"date,omitempty"` + Expires int32 `protobuf:"varint,8,opt,name=expires,proto3" json:"expires,omitempty"` + TestMode *Bool `protobuf:"bytes,9,opt,name=test_mode,json=testMode,proto3" json:"test_mode,omitempty"` + ThisDc int32 `protobuf:"varint,10,opt,name=this_dc,json=thisDc,proto3" json:"this_dc,omitempty"` + DcOptions []*DcOption `protobuf:"bytes,11,rep,name=dc_options,json=dcOptions,proto3" json:"dc_options,omitempty"` + DcTxtDomainName string `protobuf:"bytes,12,opt,name=dc_txt_domain_name,json=dcTxtDomainName,proto3" json:"dc_txt_domain_name,omitempty"` + ChatSizeMax int32 `protobuf:"varint,13,opt,name=chat_size_max,json=chatSizeMax,proto3" json:"chat_size_max,omitempty"` + MegagroupSizeMax int32 `protobuf:"varint,14,opt,name=megagroup_size_max,json=megagroupSizeMax,proto3" json:"megagroup_size_max,omitempty"` + ForwardedCountMax int32 `protobuf:"varint,15,opt,name=forwarded_count_max,json=forwardedCountMax,proto3" json:"forwarded_count_max,omitempty"` + OnlineUpdatePeriodMs int32 `protobuf:"varint,16,opt,name=online_update_period_ms,json=onlineUpdatePeriodMs,proto3" json:"online_update_period_ms,omitempty"` + OfflineBlurTimeoutMs int32 `protobuf:"varint,17,opt,name=offline_blur_timeout_ms,json=offlineBlurTimeoutMs,proto3" json:"offline_blur_timeout_ms,omitempty"` + OfflineIdleTimeoutMs int32 `protobuf:"varint,18,opt,name=offline_idle_timeout_ms,json=offlineIdleTimeoutMs,proto3" json:"offline_idle_timeout_ms,omitempty"` + OnlineCloudTimeoutMs int32 `protobuf:"varint,19,opt,name=online_cloud_timeout_ms,json=onlineCloudTimeoutMs,proto3" json:"online_cloud_timeout_ms,omitempty"` + NotifyCloudDelayMs int32 `protobuf:"varint,20,opt,name=notify_cloud_delay_ms,json=notifyCloudDelayMs,proto3" json:"notify_cloud_delay_ms,omitempty"` + NotifyDefaultDelayMs int32 `protobuf:"varint,21,opt,name=notify_default_delay_ms,json=notifyDefaultDelayMs,proto3" json:"notify_default_delay_ms,omitempty"` + PushChatPeriodMs int32 `protobuf:"varint,22,opt,name=push_chat_period_ms,json=pushChatPeriodMs,proto3" json:"push_chat_period_ms,omitempty"` + PushChatLimit int32 `protobuf:"varint,23,opt,name=push_chat_limit,json=pushChatLimit,proto3" json:"push_chat_limit,omitempty"` + SavedGifsLimit int32 `protobuf:"varint,24,opt,name=saved_gifs_limit,json=savedGifsLimit,proto3" json:"saved_gifs_limit,omitempty"` + EditTimeLimit int32 `protobuf:"varint,25,opt,name=edit_time_limit,json=editTimeLimit,proto3" json:"edit_time_limit,omitempty"` + RevokeTimeLimit int32 `protobuf:"varint,26,opt,name=revoke_time_limit,json=revokeTimeLimit,proto3" json:"revoke_time_limit,omitempty"` + RevokePmTimeLimit int32 `protobuf:"varint,27,opt,name=revoke_pm_time_limit,json=revokePmTimeLimit,proto3" json:"revoke_pm_time_limit,omitempty"` + RatingEDecay int32 `protobuf:"varint,28,opt,name=rating_e_decay,json=ratingEDecay,proto3" json:"rating_e_decay,omitempty"` + StickersRecentLimit int32 `protobuf:"varint,29,opt,name=stickers_recent_limit,json=stickersRecentLimit,proto3" json:"stickers_recent_limit,omitempty"` + StickersFavedLimit int32 `protobuf:"varint,30,opt,name=stickers_faved_limit,json=stickersFavedLimit,proto3" json:"stickers_faved_limit,omitempty"` + ChannelsReadMediaPeriod int32 `protobuf:"varint,31,opt,name=channels_read_media_period,json=channelsReadMediaPeriod,proto3" json:"channels_read_media_period,omitempty"` + TmpSessions int32 `protobuf:"varint,32,opt,name=tmp_sessions,json=tmpSessions,proto3" json:"tmp_sessions,omitempty"` + PinnedDialogsCountMax int32 `protobuf:"varint,33,opt,name=pinned_dialogs_count_max,json=pinnedDialogsCountMax,proto3" json:"pinned_dialogs_count_max,omitempty"` + CallReceiveTimeoutMs int32 `protobuf:"varint,34,opt,name=call_receive_timeout_ms,json=callReceiveTimeoutMs,proto3" json:"call_receive_timeout_ms,omitempty"` + CallRingTimeoutMs int32 `protobuf:"varint,35,opt,name=call_ring_timeout_ms,json=callRingTimeoutMs,proto3" json:"call_ring_timeout_ms,omitempty"` + CallConnectTimeoutMs int32 `protobuf:"varint,36,opt,name=call_connect_timeout_ms,json=callConnectTimeoutMs,proto3" json:"call_connect_timeout_ms,omitempty"` + CallPacketTimeoutMs int32 `protobuf:"varint,37,opt,name=call_packet_timeout_ms,json=callPacketTimeoutMs,proto3" json:"call_packet_timeout_ms,omitempty"` + MeUrlPrefix string `protobuf:"bytes,38,opt,name=me_url_prefix,json=meUrlPrefix,proto3" json:"me_url_prefix,omitempty"` + AutoupdateUrlPrefix string `protobuf:"bytes,39,opt,name=autoupdate_url_prefix,json=autoupdateUrlPrefix,proto3" json:"autoupdate_url_prefix,omitempty"` + GifSearchUsername string `protobuf:"bytes,40,opt,name=gif_search_username,json=gifSearchUsername,proto3" json:"gif_search_username,omitempty"` + VenueSearchUsername string `protobuf:"bytes,41,opt,name=venue_search_username,json=venueSearchUsername,proto3" json:"venue_search_username,omitempty"` + ImgSearchUsername string `protobuf:"bytes,42,opt,name=img_search_username,json=imgSearchUsername,proto3" json:"img_search_username,omitempty"` + StaticMapsProvider string `protobuf:"bytes,43,opt,name=static_maps_provider,json=staticMapsProvider,proto3" json:"static_maps_provider,omitempty"` + CaptionLengthMax int32 `protobuf:"varint,44,opt,name=caption_length_max,json=captionLengthMax,proto3" json:"caption_length_max,omitempty"` + MessageLengthMax int32 `protobuf:"varint,45,opt,name=message_length_max,json=messageLengthMax,proto3" json:"message_length_max,omitempty"` + WebfileDcId int32 `protobuf:"varint,46,opt,name=webfile_dc_id,json=webfileDcId,proto3" json:"webfile_dc_id,omitempty"` + SuggestedLangCode string `protobuf:"bytes,47,opt,name=suggested_lang_code,json=suggestedLangCode,proto3" json:"suggested_lang_code,omitempty"` + LangPackVersion int32 `protobuf:"varint,48,opt,name=lang_pack_version,json=langPackVersion,proto3" json:"lang_pack_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPeerChat) Reset() { *m = TLInputPeerChat{} } -func (m *TLInputPeerChat) String() string { return proto.CompactTextString(m) } -func (*TLInputPeerChat) ProtoMessage() {} -func (*TLInputPeerChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{382} +func (m *Config_Data) Reset() { *m = Config_Data{} } +func (m *Config_Data) String() string { return proto.CompactTextString(m) } +func (*Config_Data) ProtoMessage() {} +func (*Config_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{353} } -func (m *TLInputPeerChat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPeerChat.Unmarshal(m, b) +func (m *Config_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config_Data.Unmarshal(m, b) } -func (m *TLInputPeerChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPeerChat.Marshal(b, m, deterministic) +func (m *Config_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config_Data.Marshal(b, m, deterministic) } -func (dst *TLInputPeerChat) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPeerChat.Merge(dst, src) +func (dst *Config_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config_Data.Merge(dst, src) } -func (m *TLInputPeerChat) XXX_Size() int { - return xxx_messageInfo_TLInputPeerChat.Size(m) +func (m *Config_Data) XXX_Size() int { + return xxx_messageInfo_Config_Data.Size(m) } -func (m *TLInputPeerChat) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPeerChat.DiscardUnknown(m) +func (m *Config_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Config_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPeerChat proto.InternalMessageInfo +var xxx_messageInfo_Config_Data proto.InternalMessageInfo -func (m *TLInputPeerChat) GetData2() *InputPeer_Data { +func (m *Config_Data) GetPhonecallsEnabled() bool { if m != nil { - return m.Data2 + return m.PhonecallsEnabled } - return nil + return false } -// inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer; -type TLInputPeerUser struct { - Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetDefaultP2PContacts() bool { + if m != nil { + return m.DefaultP2PContacts + } + return false } -func (m *TLInputPeerUser) Reset() { *m = TLInputPeerUser{} } -func (m *TLInputPeerUser) String() string { return proto.CompactTextString(m) } -func (*TLInputPeerUser) ProtoMessage() {} -func (*TLInputPeerUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{383} -} -func (m *TLInputPeerUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPeerUser.Unmarshal(m, b) -} -func (m *TLInputPeerUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPeerUser.Marshal(b, m, deterministic) +func (m *Config_Data) GetPreloadFeaturedStickers() bool { + if m != nil { + return m.PreloadFeaturedStickers + } + return false } -func (dst *TLInputPeerUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPeerUser.Merge(dst, src) + +func (m *Config_Data) GetIgnorePhoneEntities() bool { + if m != nil { + return m.IgnorePhoneEntities + } + return false } -func (m *TLInputPeerUser) XXX_Size() int { - return xxx_messageInfo_TLInputPeerUser.Size(m) + +func (m *Config_Data) GetRevokePmInbox() bool { + if m != nil { + return m.RevokePmInbox + } + return false } -func (m *TLInputPeerUser) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPeerUser.DiscardUnknown(m) + +func (m *Config_Data) GetBlockedMode() bool { + if m != nil { + return m.BlockedMode + } + return false } -var xxx_messageInfo_TLInputPeerUser proto.InternalMessageInfo +func (m *Config_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 +} -func (m *TLInputPeerUser) GetData2() *InputPeer_Data { +func (m *Config_Data) GetExpires() int32 { if m != nil { - return m.Data2 + return m.Expires } - return nil + return 0 } -// inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer; -type TLInputPeerChannel struct { - Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetTestMode() *Bool { + if m != nil { + return m.TestMode + } + return nil } -func (m *TLInputPeerChannel) Reset() { *m = TLInputPeerChannel{} } -func (m *TLInputPeerChannel) String() string { return proto.CompactTextString(m) } -func (*TLInputPeerChannel) ProtoMessage() {} -func (*TLInputPeerChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{384} -} -func (m *TLInputPeerChannel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPeerChannel.Unmarshal(m, b) -} -func (m *TLInputPeerChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPeerChannel.Marshal(b, m, deterministic) -} -func (dst *TLInputPeerChannel) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPeerChannel.Merge(dst, src) -} -func (m *TLInputPeerChannel) XXX_Size() int { - return xxx_messageInfo_TLInputPeerChannel.Size(m) -} -func (m *TLInputPeerChannel) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPeerChannel.DiscardUnknown(m) +func (m *Config_Data) GetThisDc() int32 { + if m != nil { + return m.ThisDc + } + return 0 } -var xxx_messageInfo_TLInputPeerChannel proto.InternalMessageInfo - -func (m *TLInputPeerChannel) GetData2() *InputPeer_Data { +func (m *Config_Data) GetDcOptions() []*DcOption { if m != nil { - return m.Data2 + return m.DcOptions } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Contact <-- -// + TL_contact -// -type Contact_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Mutual *Bool `protobuf:"bytes,2,opt,name=mutual,proto3" json:"mutual,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetDcTxtDomainName() string { + if m != nil { + return m.DcTxtDomainName + } + return "" } -func (m *Contact_Data) Reset() { *m = Contact_Data{} } -func (m *Contact_Data) String() string { return proto.CompactTextString(m) } -func (*Contact_Data) ProtoMessage() {} -func (*Contact_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{385} -} -func (m *Contact_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contact_Data.Unmarshal(m, b) -} -func (m *Contact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contact_Data.Marshal(b, m, deterministic) -} -func (dst *Contact_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contact_Data.Merge(dst, src) -} -func (m *Contact_Data) XXX_Size() int { - return xxx_messageInfo_Contact_Data.Size(m) -} -func (m *Contact_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Contact_Data.DiscardUnknown(m) +func (m *Config_Data) GetChatSizeMax() int32 { + if m != nil { + return m.ChatSizeMax + } + return 0 } -var xxx_messageInfo_Contact_Data proto.InternalMessageInfo - -func (m *Contact_Data) GetUserId() int32 { +func (m *Config_Data) GetMegagroupSizeMax() int32 { if m != nil { - return m.UserId + return m.MegagroupSizeMax } return 0 } -func (m *Contact_Data) GetMutual() *Bool { +func (m *Config_Data) GetForwardedCountMax() int32 { if m != nil { - return m.Mutual + return m.ForwardedCountMax } - return nil + return 0 } -type Contact struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Contact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetOnlineUpdatePeriodMs() int32 { + if m != nil { + return m.OnlineUpdatePeriodMs + } + return 0 } -func (m *Contact) Reset() { *m = Contact{} } -func (m *Contact) String() string { return proto.CompactTextString(m) } -func (*Contact) ProtoMessage() {} -func (*Contact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{386} -} -func (m *Contact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contact.Unmarshal(m, b) -} -func (m *Contact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contact.Marshal(b, m, deterministic) -} -func (dst *Contact) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contact.Merge(dst, src) -} -func (m *Contact) XXX_Size() int { - return xxx_messageInfo_Contact.Size(m) -} -func (m *Contact) XXX_DiscardUnknown() { - xxx_messageInfo_Contact.DiscardUnknown(m) +func (m *Config_Data) GetOfflineBlurTimeoutMs() int32 { + if m != nil { + return m.OfflineBlurTimeoutMs + } + return 0 } -var xxx_messageInfo_Contact proto.InternalMessageInfo - -func (m *Contact) GetConstructor() TLConstructor { +func (m *Config_Data) GetOfflineIdleTimeoutMs() int32 { if m != nil { - return m.Constructor + return m.OfflineIdleTimeoutMs } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *Contact) GetData2() *Contact_Data { +func (m *Config_Data) GetOnlineCloudTimeoutMs() int32 { if m != nil { - return m.Data2 + return m.OnlineCloudTimeoutMs } - return nil + return 0 } -// contact#f911c994 user_id:int mutual:Bool = Contact; -type TLContact struct { - Data2 *Contact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetNotifyCloudDelayMs() int32 { + if m != nil { + return m.NotifyCloudDelayMs + } + return 0 } -func (m *TLContact) Reset() { *m = TLContact{} } -func (m *TLContact) String() string { return proto.CompactTextString(m) } -func (*TLContact) ProtoMessage() {} -func (*TLContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{387} -} -func (m *TLContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContact.Unmarshal(m, b) -} -func (m *TLContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContact.Marshal(b, m, deterministic) -} -func (dst *TLContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContact.Merge(dst, src) -} -func (m *TLContact) XXX_Size() int { - return xxx_messageInfo_TLContact.Size(m) -} -func (m *TLContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLContact.DiscardUnknown(m) +func (m *Config_Data) GetNotifyDefaultDelayMs() int32 { + if m != nil { + return m.NotifyDefaultDelayMs + } + return 0 } -var xxx_messageInfo_TLContact proto.InternalMessageInfo - -func (m *TLContact) GetData2() *Contact_Data { +func (m *Config_Data) GetPushChatPeriodMs() int32 { if m != nil { - return m.Data2 + return m.PushChatPeriodMs } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// photos_Photo <-- -// + TL_photos_photo -// -type Photos_Photo_Data struct { - Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"` - Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetPushChatLimit() int32 { + if m != nil { + return m.PushChatLimit + } + return 0 } -func (m *Photos_Photo_Data) Reset() { *m = Photos_Photo_Data{} } -func (m *Photos_Photo_Data) String() string { return proto.CompactTextString(m) } -func (*Photos_Photo_Data) ProtoMessage() {} -func (*Photos_Photo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{388} -} -func (m *Photos_Photo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Photos_Photo_Data.Unmarshal(m, b) -} -func (m *Photos_Photo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Photos_Photo_Data.Marshal(b, m, deterministic) -} -func (dst *Photos_Photo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Photos_Photo_Data.Merge(dst, src) -} -func (m *Photos_Photo_Data) XXX_Size() int { - return xxx_messageInfo_Photos_Photo_Data.Size(m) -} -func (m *Photos_Photo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Photos_Photo_Data.DiscardUnknown(m) +func (m *Config_Data) GetSavedGifsLimit() int32 { + if m != nil { + return m.SavedGifsLimit + } + return 0 } -var xxx_messageInfo_Photos_Photo_Data proto.InternalMessageInfo - -func (m *Photos_Photo_Data) GetPhoto() *Photo { +func (m *Config_Data) GetEditTimeLimit() int32 { if m != nil { - return m.Photo + return m.EditTimeLimit } - return nil + return 0 } -func (m *Photos_Photo_Data) GetUsers() []*User { +func (m *Config_Data) GetRevokeTimeLimit() int32 { if m != nil { - return m.Users + return m.RevokeTimeLimit } - return nil + return 0 } -type Photos_Photo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Photos_Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetRevokePmTimeLimit() int32 { + if m != nil { + return m.RevokePmTimeLimit + } + return 0 } -func (m *Photos_Photo) Reset() { *m = Photos_Photo{} } -func (m *Photos_Photo) String() string { return proto.CompactTextString(m) } -func (*Photos_Photo) ProtoMessage() {} -func (*Photos_Photo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{389} -} -func (m *Photos_Photo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Photos_Photo.Unmarshal(m, b) -} -func (m *Photos_Photo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Photos_Photo.Marshal(b, m, deterministic) -} -func (dst *Photos_Photo) XXX_Merge(src proto.Message) { - xxx_messageInfo_Photos_Photo.Merge(dst, src) -} -func (m *Photos_Photo) XXX_Size() int { - return xxx_messageInfo_Photos_Photo.Size(m) -} -func (m *Photos_Photo) XXX_DiscardUnknown() { - xxx_messageInfo_Photos_Photo.DiscardUnknown(m) +func (m *Config_Data) GetRatingEDecay() int32 { + if m != nil { + return m.RatingEDecay + } + return 0 } -var xxx_messageInfo_Photos_Photo proto.InternalMessageInfo - -func (m *Photos_Photo) GetConstructor() TLConstructor { +func (m *Config_Data) GetStickersRecentLimit() int32 { if m != nil { - return m.Constructor + return m.StickersRecentLimit } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *Photos_Photo) GetData2() *Photos_Photo_Data { +func (m *Config_Data) GetStickersFavedLimit() int32 { if m != nil { - return m.Data2 + return m.StickersFavedLimit } - return nil + return 0 } -// photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; -type TLPhotosPhoto struct { - Data2 *Photos_Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetChannelsReadMediaPeriod() int32 { + if m != nil { + return m.ChannelsReadMediaPeriod + } + return 0 } -func (m *TLPhotosPhoto) Reset() { *m = TLPhotosPhoto{} } -func (m *TLPhotosPhoto) String() string { return proto.CompactTextString(m) } -func (*TLPhotosPhoto) ProtoMessage() {} -func (*TLPhotosPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{390} -} -func (m *TLPhotosPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhotosPhoto.Unmarshal(m, b) -} -func (m *TLPhotosPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhotosPhoto.Marshal(b, m, deterministic) -} -func (dst *TLPhotosPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhotosPhoto.Merge(dst, src) -} -func (m *TLPhotosPhoto) XXX_Size() int { - return xxx_messageInfo_TLPhotosPhoto.Size(m) -} -func (m *TLPhotosPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhotosPhoto.DiscardUnknown(m) +func (m *Config_Data) GetTmpSessions() int32 { + if m != nil { + return m.TmpSessions + } + return 0 } -var xxx_messageInfo_TLPhotosPhoto proto.InternalMessageInfo - -func (m *TLPhotosPhoto) GetData2() *Photos_Photo_Data { +func (m *Config_Data) GetPinnedDialogsCountMax() int32 { if m != nil { - return m.Data2 + return m.PinnedDialogsCountMax } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// LangPackString <-- -// + TL_langPackString -// + TL_langPackStringPluralized -// + TL_langPackStringDeleted -// -type LangPackString_Data struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - ZeroValue string `protobuf:"bytes,3,opt,name=zero_value,json=zeroValue,proto3" json:"zero_value,omitempty"` - OneValue string `protobuf:"bytes,4,opt,name=one_value,json=oneValue,proto3" json:"one_value,omitempty"` - TwoValue string `protobuf:"bytes,5,opt,name=two_value,json=twoValue,proto3" json:"two_value,omitempty"` - FewValue string `protobuf:"bytes,6,opt,name=few_value,json=fewValue,proto3" json:"few_value,omitempty"` - ManyValue string `protobuf:"bytes,7,opt,name=many_value,json=manyValue,proto3" json:"many_value,omitempty"` - OtherValue string `protobuf:"bytes,8,opt,name=other_value,json=otherValue,proto3" json:"other_value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetCallReceiveTimeoutMs() int32 { + if m != nil { + return m.CallReceiveTimeoutMs + } + return 0 } -func (m *LangPackString_Data) Reset() { *m = LangPackString_Data{} } -func (m *LangPackString_Data) String() string { return proto.CompactTextString(m) } -func (*LangPackString_Data) ProtoMessage() {} -func (*LangPackString_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{391} -} -func (m *LangPackString_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LangPackString_Data.Unmarshal(m, b) -} -func (m *LangPackString_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LangPackString_Data.Marshal(b, m, deterministic) -} -func (dst *LangPackString_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_LangPackString_Data.Merge(dst, src) -} -func (m *LangPackString_Data) XXX_Size() int { - return xxx_messageInfo_LangPackString_Data.Size(m) +func (m *Config_Data) GetCallRingTimeoutMs() int32 { + if m != nil { + return m.CallRingTimeoutMs + } + return 0 } -func (m *LangPackString_Data) XXX_DiscardUnknown() { - xxx_messageInfo_LangPackString_Data.DiscardUnknown(m) + +func (m *Config_Data) GetCallConnectTimeoutMs() int32 { + if m != nil { + return m.CallConnectTimeoutMs + } + return 0 } -var xxx_messageInfo_LangPackString_Data proto.InternalMessageInfo +func (m *Config_Data) GetCallPacketTimeoutMs() int32 { + if m != nil { + return m.CallPacketTimeoutMs + } + return 0 +} -func (m *LangPackString_Data) GetKey() string { +func (m *Config_Data) GetMeUrlPrefix() string { if m != nil { - return m.Key + return m.MeUrlPrefix } return "" } -func (m *LangPackString_Data) GetValue() string { +func (m *Config_Data) GetAutoupdateUrlPrefix() string { if m != nil { - return m.Value + return m.AutoupdateUrlPrefix } return "" } -func (m *LangPackString_Data) GetZeroValue() string { +func (m *Config_Data) GetGifSearchUsername() string { if m != nil { - return m.ZeroValue + return m.GifSearchUsername } return "" } -func (m *LangPackString_Data) GetOneValue() string { +func (m *Config_Data) GetVenueSearchUsername() string { if m != nil { - return m.OneValue + return m.VenueSearchUsername } return "" } -func (m *LangPackString_Data) GetTwoValue() string { +func (m *Config_Data) GetImgSearchUsername() string { if m != nil { - return m.TwoValue + return m.ImgSearchUsername } return "" } -func (m *LangPackString_Data) GetFewValue() string { +func (m *Config_Data) GetStaticMapsProvider() string { if m != nil { - return m.FewValue + return m.StaticMapsProvider } return "" } -func (m *LangPackString_Data) GetManyValue() string { +func (m *Config_Data) GetCaptionLengthMax() int32 { if m != nil { - return m.ManyValue + return m.CaptionLengthMax } - return "" + return 0 } -func (m *LangPackString_Data) GetOtherValue() string { +func (m *Config_Data) GetMessageLengthMax() int32 { if m != nil { - return m.OtherValue + return m.MessageLengthMax + } + return 0 +} + +func (m *Config_Data) GetWebfileDcId() int32 { + if m != nil { + return m.WebfileDcId + } + return 0 +} + +func (m *Config_Data) GetSuggestedLangCode() string { + if m != nil { + return m.SuggestedLangCode } return "" } -type LangPackString struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *LangPackString_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Config_Data) GetLangPackVersion() int32 { + if m != nil { + return m.LangPackVersion + } + return 0 } -func (m *LangPackString) Reset() { *m = LangPackString{} } -func (m *LangPackString) String() string { return proto.CompactTextString(m) } -func (*LangPackString) ProtoMessage() {} -func (*LangPackString) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{392} +type Config struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Config_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LangPackString) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LangPackString.Unmarshal(m, b) + +func (m *Config) Reset() { *m = Config{} } +func (m *Config) String() string { return proto.CompactTextString(m) } +func (*Config) ProtoMessage() {} +func (*Config) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{354} } -func (m *LangPackString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LangPackString.Marshal(b, m, deterministic) +func (m *Config) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Config.Unmarshal(m, b) } -func (dst *LangPackString) XXX_Merge(src proto.Message) { - xxx_messageInfo_LangPackString.Merge(dst, src) +func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Config.Marshal(b, m, deterministic) } -func (m *LangPackString) XXX_Size() int { - return xxx_messageInfo_LangPackString.Size(m) +func (dst *Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_Config.Merge(dst, src) } -func (m *LangPackString) XXX_DiscardUnknown() { - xxx_messageInfo_LangPackString.DiscardUnknown(m) +func (m *Config) XXX_Size() int { + return xxx_messageInfo_Config.Size(m) +} +func (m *Config) XXX_DiscardUnknown() { + xxx_messageInfo_Config.DiscardUnknown(m) } -var xxx_messageInfo_LangPackString proto.InternalMessageInfo +var xxx_messageInfo_Config proto.InternalMessageInfo -func (m *LangPackString) GetConstructor() TLConstructor { +func (m *Config) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *LangPackString) GetData2() *LangPackString_Data { +func (m *Config) GetData2() *Config_Data { if m != nil { return m.Data2 } return nil } -// langPackString#cad181f6 key:string value:string = LangPackString; -type TLLangPackString struct { - Data2 *LangPackString_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// config#3213dbba flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int = Config; +type TLConfig struct { + Data2 *Config_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLLangPackString) Reset() { *m = TLLangPackString{} } -func (m *TLLangPackString) String() string { return proto.CompactTextString(m) } -func (*TLLangPackString) ProtoMessage() {} -func (*TLLangPackString) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{393} +func (m *TLConfig) Reset() { *m = TLConfig{} } +func (m *TLConfig) String() string { return proto.CompactTextString(m) } +func (*TLConfig) ProtoMessage() {} +func (*TLConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{355} } -func (m *TLLangPackString) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLLangPackString.Unmarshal(m, b) +func (m *TLConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLConfig.Unmarshal(m, b) } -func (m *TLLangPackString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLLangPackString.Marshal(b, m, deterministic) +func (m *TLConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLConfig.Marshal(b, m, deterministic) } -func (dst *TLLangPackString) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLLangPackString.Merge(dst, src) +func (dst *TLConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLConfig.Merge(dst, src) } -func (m *TLLangPackString) XXX_Size() int { - return xxx_messageInfo_TLLangPackString.Size(m) +func (m *TLConfig) XXX_Size() int { + return xxx_messageInfo_TLConfig.Size(m) } -func (m *TLLangPackString) XXX_DiscardUnknown() { - xxx_messageInfo_TLLangPackString.DiscardUnknown(m) +func (m *TLConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TLConfig.DiscardUnknown(m) } -var xxx_messageInfo_TLLangPackString proto.InternalMessageInfo +var xxx_messageInfo_TLConfig proto.InternalMessageInfo -func (m *TLLangPackString) GetData2() *LangPackString_Data { +func (m *TLConfig) GetData2() *Config_Data { if m != nil { return m.Data2 } return nil } -// langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString; -type TLLangPackStringPluralized struct { - Data2 *LangPackString_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// Page <-- +// + TL_pagePart +// + TL_pageFull +// +type Page_Data struct { + Blocks []*PageBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` + Photos []*Photo `protobuf:"bytes,2,rep,name=photos,proto3" json:"photos,omitempty"` + Documents []*Document `protobuf:"bytes,3,rep,name=documents,proto3" json:"documents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLLangPackStringPluralized) Reset() { *m = TLLangPackStringPluralized{} } -func (m *TLLangPackStringPluralized) String() string { return proto.CompactTextString(m) } -func (*TLLangPackStringPluralized) ProtoMessage() {} -func (*TLLangPackStringPluralized) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{394} +func (m *Page_Data) Reset() { *m = Page_Data{} } +func (m *Page_Data) String() string { return proto.CompactTextString(m) } +func (*Page_Data) ProtoMessage() {} +func (*Page_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{356} } -func (m *TLLangPackStringPluralized) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLLangPackStringPluralized.Unmarshal(m, b) +func (m *Page_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Page_Data.Unmarshal(m, b) } -func (m *TLLangPackStringPluralized) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLLangPackStringPluralized.Marshal(b, m, deterministic) +func (m *Page_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Page_Data.Marshal(b, m, deterministic) } -func (dst *TLLangPackStringPluralized) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLLangPackStringPluralized.Merge(dst, src) +func (dst *Page_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Page_Data.Merge(dst, src) } -func (m *TLLangPackStringPluralized) XXX_Size() int { - return xxx_messageInfo_TLLangPackStringPluralized.Size(m) +func (m *Page_Data) XXX_Size() int { + return xxx_messageInfo_Page_Data.Size(m) } -func (m *TLLangPackStringPluralized) XXX_DiscardUnknown() { - xxx_messageInfo_TLLangPackStringPluralized.DiscardUnknown(m) +func (m *Page_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Page_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLLangPackStringPluralized proto.InternalMessageInfo +var xxx_messageInfo_Page_Data proto.InternalMessageInfo -func (m *TLLangPackStringPluralized) GetData2() *LangPackString_Data { +func (m *Page_Data) GetBlocks() []*PageBlock { if m != nil { - return m.Data2 + return m.Blocks } return nil } -// langPackStringDeleted#2979eeb2 key:string = LangPackString; -type TLLangPackStringDeleted struct { - Data2 *LangPackString_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLLangPackStringDeleted) Reset() { *m = TLLangPackStringDeleted{} } -func (m *TLLangPackStringDeleted) String() string { return proto.CompactTextString(m) } -func (*TLLangPackStringDeleted) ProtoMessage() {} -func (*TLLangPackStringDeleted) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{395} -} -func (m *TLLangPackStringDeleted) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLLangPackStringDeleted.Unmarshal(m, b) -} -func (m *TLLangPackStringDeleted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLLangPackStringDeleted.Marshal(b, m, deterministic) -} -func (dst *TLLangPackStringDeleted) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLLangPackStringDeleted.Merge(dst, src) -} -func (m *TLLangPackStringDeleted) XXX_Size() int { - return xxx_messageInfo_TLLangPackStringDeleted.Size(m) -} -func (m *TLLangPackStringDeleted) XXX_DiscardUnknown() { - xxx_messageInfo_TLLangPackStringDeleted.DiscardUnknown(m) +func (m *Page_Data) GetPhotos() []*Photo { + if m != nil { + return m.Photos + } + return nil } -var xxx_messageInfo_TLLangPackStringDeleted proto.InternalMessageInfo - -func (m *TLLangPackStringDeleted) GetData2() *LangPackString_Data { +func (m *Page_Data) GetDocuments() []*Document { if m != nil { - return m.Data2 + return m.Documents } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ChannelAdminLogEvent <-- -// + TL_channelAdminLogEvent -// -type ChannelAdminLogEvent_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` - UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Action *ChannelAdminLogEventAction `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Page struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Page_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEvent_Data) Reset() { *m = ChannelAdminLogEvent_Data{} } -func (m *ChannelAdminLogEvent_Data) String() string { return proto.CompactTextString(m) } -func (*ChannelAdminLogEvent_Data) ProtoMessage() {} -func (*ChannelAdminLogEvent_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{396} -} -func (m *ChannelAdminLogEvent_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelAdminLogEvent_Data.Unmarshal(m, b) +func (m *Page) Reset() { *m = Page{} } +func (m *Page) String() string { return proto.CompactTextString(m) } +func (*Page) ProtoMessage() {} +func (*Page) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{357} } -func (m *ChannelAdminLogEvent_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelAdminLogEvent_Data.Marshal(b, m, deterministic) +func (m *Page) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Page.Unmarshal(m, b) } -func (dst *ChannelAdminLogEvent_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelAdminLogEvent_Data.Merge(dst, src) +func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Page.Marshal(b, m, deterministic) } -func (m *ChannelAdminLogEvent_Data) XXX_Size() int { - return xxx_messageInfo_ChannelAdminLogEvent_Data.Size(m) +func (dst *Page) XXX_Merge(src proto.Message) { + xxx_messageInfo_Page.Merge(dst, src) } -func (m *ChannelAdminLogEvent_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelAdminLogEvent_Data.DiscardUnknown(m) +func (m *Page) XXX_Size() int { + return xxx_messageInfo_Page.Size(m) } - -var xxx_messageInfo_ChannelAdminLogEvent_Data proto.InternalMessageInfo - -func (m *ChannelAdminLogEvent_Data) GetId() int64 { - if m != nil { - return m.Id - } - return 0 +func (m *Page) XXX_DiscardUnknown() { + xxx_messageInfo_Page.DiscardUnknown(m) } -func (m *ChannelAdminLogEvent_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 -} +var xxx_messageInfo_Page proto.InternalMessageInfo -func (m *ChannelAdminLogEvent_Data) GetUserId() int32 { +func (m *Page) GetConstructor() TLConstructor { if m != nil { - return m.UserId + return m.Constructor } - return 0 + return TLConstructor_CRC32_UNKNOWN } -func (m *ChannelAdminLogEvent_Data) GetAction() *ChannelAdminLogEventAction { +func (m *Page) GetData2() *Page_Data { if m != nil { - return m.Action + return m.Data2 } return nil } -type ChannelAdminLogEvent struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChannelAdminLogEvent_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// pagePart#8e3f9ebe blocks:Vector photos:Vector documents:Vector = Page; +type TLPagePart struct { + Data2 *Page_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEvent) Reset() { *m = ChannelAdminLogEvent{} } -func (m *ChannelAdminLogEvent) String() string { return proto.CompactTextString(m) } -func (*ChannelAdminLogEvent) ProtoMessage() {} -func (*ChannelAdminLogEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{397} +func (m *TLPagePart) Reset() { *m = TLPagePart{} } +func (m *TLPagePart) String() string { return proto.CompactTextString(m) } +func (*TLPagePart) ProtoMessage() {} +func (*TLPagePart) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{358} } -func (m *ChannelAdminLogEvent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelAdminLogEvent.Unmarshal(m, b) +func (m *TLPagePart) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPagePart.Unmarshal(m, b) } -func (m *ChannelAdminLogEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelAdminLogEvent.Marshal(b, m, deterministic) +func (m *TLPagePart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPagePart.Marshal(b, m, deterministic) } -func (dst *ChannelAdminLogEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelAdminLogEvent.Merge(dst, src) +func (dst *TLPagePart) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPagePart.Merge(dst, src) } -func (m *ChannelAdminLogEvent) XXX_Size() int { - return xxx_messageInfo_ChannelAdminLogEvent.Size(m) +func (m *TLPagePart) XXX_Size() int { + return xxx_messageInfo_TLPagePart.Size(m) } -func (m *ChannelAdminLogEvent) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelAdminLogEvent.DiscardUnknown(m) +func (m *TLPagePart) XXX_DiscardUnknown() { + xxx_messageInfo_TLPagePart.DiscardUnknown(m) } -var xxx_messageInfo_ChannelAdminLogEvent proto.InternalMessageInfo - -func (m *ChannelAdminLogEvent) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLPagePart proto.InternalMessageInfo -func (m *ChannelAdminLogEvent) GetData2() *ChannelAdminLogEvent_Data { +func (m *TLPagePart) GetData2() *Page_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent; -type TLChannelAdminLogEvent struct { - Data2 *ChannelAdminLogEvent_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// pageFull#556ec7aa blocks:Vector photos:Vector documents:Vector = Page; +type TLPageFull struct { + Data2 *Page_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEvent) Reset() { *m = TLChannelAdminLogEvent{} } -func (m *TLChannelAdminLogEvent) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminLogEvent) ProtoMessage() {} -func (*TLChannelAdminLogEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{398} +func (m *TLPageFull) Reset() { *m = TLPageFull{} } +func (m *TLPageFull) String() string { return proto.CompactTextString(m) } +func (*TLPageFull) ProtoMessage() {} +func (*TLPageFull) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{359} } -func (m *TLChannelAdminLogEvent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEvent.Unmarshal(m, b) +func (m *TLPageFull) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageFull.Unmarshal(m, b) } -func (m *TLChannelAdminLogEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEvent.Marshal(b, m, deterministic) +func (m *TLPageFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageFull.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEvent.Merge(dst, src) +func (dst *TLPageFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageFull.Merge(dst, src) } -func (m *TLChannelAdminLogEvent) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEvent.Size(m) +func (m *TLPageFull) XXX_Size() int { + return xxx_messageInfo_TLPageFull.Size(m) } -func (m *TLChannelAdminLogEvent) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEvent.DiscardUnknown(m) +func (m *TLPageFull) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageFull.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEvent proto.InternalMessageInfo +var xxx_messageInfo_TLPageFull proto.InternalMessageInfo -func (m *TLChannelAdminLogEvent) GetData2() *ChannelAdminLogEvent_Data { +func (m *TLPageFull) GetData2() *Page_Data { if m != nil { return m.Data2 } @@ -18895,964 +18075,946 @@ func (m *TLChannelAdminLogEvent) GetData2() *ChannelAdminLogEvent_Data { } // ///////////////////////////////////////////////////////////////////////////// -// Chat <-- -// + TL_chatEmpty -// + TL_chat -// + TL_chatForbidden -// + TL_channel -// + TL_channelForbidden +// WebDocument <-- +// + TL_webDocument +// + TL_webDocumentNoProxy // -type Chat_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Creator bool `protobuf:"varint,2,opt,name=creator,proto3" json:"creator,omitempty"` - Kicked bool `protobuf:"varint,3,opt,name=kicked,proto3" json:"kicked,omitempty"` - Left bool `protobuf:"varint,4,opt,name=left,proto3" json:"left,omitempty"` - AdminsEnabled bool `protobuf:"varint,5,opt,name=admins_enabled,json=adminsEnabled,proto3" json:"admins_enabled,omitempty"` - Admin bool `protobuf:"varint,6,opt,name=admin,proto3" json:"admin,omitempty"` - Deactivated bool `protobuf:"varint,7,opt,name=deactivated,proto3" json:"deactivated,omitempty"` - Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` - Photo *ChatPhoto `protobuf:"bytes,9,opt,name=photo,proto3" json:"photo,omitempty"` - ParticipantsCount int32 `protobuf:"varint,10,opt,name=participants_count,json=participantsCount,proto3" json:"participants_count,omitempty"` - Date int32 `protobuf:"varint,11,opt,name=date,proto3" json:"date,omitempty"` - Version int32 `protobuf:"varint,12,opt,name=version,proto3" json:"version,omitempty"` - MigratedTo *InputChannel `protobuf:"bytes,13,opt,name=migrated_to,json=migratedTo,proto3" json:"migrated_to,omitempty"` - Editor bool `protobuf:"varint,14,opt,name=editor,proto3" json:"editor,omitempty"` - Broadcast bool `protobuf:"varint,15,opt,name=broadcast,proto3" json:"broadcast,omitempty"` - Verified bool `protobuf:"varint,16,opt,name=verified,proto3" json:"verified,omitempty"` - Megagroup bool `protobuf:"varint,17,opt,name=megagroup,proto3" json:"megagroup,omitempty"` - Restricted bool `protobuf:"varint,18,opt,name=restricted,proto3" json:"restricted,omitempty"` - Democracy bool `protobuf:"varint,19,opt,name=democracy,proto3" json:"democracy,omitempty"` - Signatures bool `protobuf:"varint,20,opt,name=signatures,proto3" json:"signatures,omitempty"` - Min bool `protobuf:"varint,21,opt,name=min,proto3" json:"min,omitempty"` - AccessHash int64 `protobuf:"varint,22,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - Username string `protobuf:"bytes,23,opt,name=username,proto3" json:"username,omitempty"` - RestrictionReason string `protobuf:"bytes,24,opt,name=restriction_reason,json=restrictionReason,proto3" json:"restriction_reason,omitempty"` - AdminRights *ChannelAdminRights `protobuf:"bytes,25,opt,name=admin_rights,json=adminRights,proto3" json:"admin_rights,omitempty"` - BannedRights *ChannelBannedRights `protobuf:"bytes,26,opt,name=banned_rights,json=bannedRights,proto3" json:"banned_rights,omitempty"` - UntilDate int32 `protobuf:"varint,27,opt,name=until_date,json=untilDate,proto3" json:"until_date,omitempty"` +type WebDocument_Data struct { + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + Attributes []*DocumentAttribute `protobuf:"bytes,5,rep,name=attributes,proto3" json:"attributes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Chat_Data) Reset() { *m = Chat_Data{} } -func (m *Chat_Data) String() string { return proto.CompactTextString(m) } -func (*Chat_Data) ProtoMessage() {} -func (*Chat_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{399} +func (m *WebDocument_Data) Reset() { *m = WebDocument_Data{} } +func (m *WebDocument_Data) String() string { return proto.CompactTextString(m) } +func (*WebDocument_Data) ProtoMessage() {} +func (*WebDocument_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{360} } -func (m *Chat_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Chat_Data.Unmarshal(m, b) +func (m *WebDocument_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WebDocument_Data.Unmarshal(m, b) } -func (m *Chat_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Chat_Data.Marshal(b, m, deterministic) +func (m *WebDocument_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WebDocument_Data.Marshal(b, m, deterministic) } -func (dst *Chat_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Chat_Data.Merge(dst, src) +func (dst *WebDocument_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_WebDocument_Data.Merge(dst, src) } -func (m *Chat_Data) XXX_Size() int { - return xxx_messageInfo_Chat_Data.Size(m) +func (m *WebDocument_Data) XXX_Size() int { + return xxx_messageInfo_WebDocument_Data.Size(m) } -func (m *Chat_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Chat_Data.DiscardUnknown(m) +func (m *WebDocument_Data) XXX_DiscardUnknown() { + xxx_messageInfo_WebDocument_Data.DiscardUnknown(m) } -var xxx_messageInfo_Chat_Data proto.InternalMessageInfo +var xxx_messageInfo_WebDocument_Data proto.InternalMessageInfo -func (m *Chat_Data) GetId() int32 { +func (m *WebDocument_Data) GetUrl() string { if m != nil { - return m.Id + return m.Url } - return 0 + return "" } -func (m *Chat_Data) GetCreator() bool { +func (m *WebDocument_Data) GetAccessHash() int64 { if m != nil { - return m.Creator + return m.AccessHash } - return false + return 0 } -func (m *Chat_Data) GetKicked() bool { +func (m *WebDocument_Data) GetSize() int32 { if m != nil { - return m.Kicked + return m.Size } - return false + return 0 } -func (m *Chat_Data) GetLeft() bool { +func (m *WebDocument_Data) GetMimeType() string { if m != nil { - return m.Left + return m.MimeType } - return false + return "" } -func (m *Chat_Data) GetAdminsEnabled() bool { +func (m *WebDocument_Data) GetAttributes() []*DocumentAttribute { if m != nil { - return m.AdminsEnabled + return m.Attributes } - return false + return nil } -func (m *Chat_Data) GetAdmin() bool { - if m != nil { - return m.Admin - } - return false +type WebDocument struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *WebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Chat_Data) GetDeactivated() bool { - if m != nil { - return m.Deactivated - } - return false +func (m *WebDocument) Reset() { *m = WebDocument{} } +func (m *WebDocument) String() string { return proto.CompactTextString(m) } +func (*WebDocument) ProtoMessage() {} +func (*WebDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{361} +} +func (m *WebDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WebDocument.Unmarshal(m, b) +} +func (m *WebDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WebDocument.Marshal(b, m, deterministic) +} +func (dst *WebDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_WebDocument.Merge(dst, src) +} +func (m *WebDocument) XXX_Size() int { + return xxx_messageInfo_WebDocument.Size(m) +} +func (m *WebDocument) XXX_DiscardUnknown() { + xxx_messageInfo_WebDocument.DiscardUnknown(m) } -func (m *Chat_Data) GetTitle() string { +var xxx_messageInfo_WebDocument proto.InternalMessageInfo + +func (m *WebDocument) GetConstructor() TLConstructor { if m != nil { - return m.Title + return m.Constructor } - return "" + return TLConstructor_CRC32_UNKNOWN } -func (m *Chat_Data) GetPhoto() *ChatPhoto { +func (m *WebDocument) GetData2() *WebDocument_Data { if m != nil { - return m.Photo + return m.Data2 } return nil } -func (m *Chat_Data) GetParticipantsCount() int32 { - if m != nil { - return m.ParticipantsCount - } - return 0 +// webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument; +type TLWebDocument struct { + Data2 *WebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Chat_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 +func (m *TLWebDocument) Reset() { *m = TLWebDocument{} } +func (m *TLWebDocument) String() string { return proto.CompactTextString(m) } +func (*TLWebDocument) ProtoMessage() {} +func (*TLWebDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{362} } - -func (m *Chat_Data) GetVersion() int32 { - if m != nil { - return m.Version - } - return 0 +func (m *TLWebDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLWebDocument.Unmarshal(m, b) +} +func (m *TLWebDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLWebDocument.Marshal(b, m, deterministic) +} +func (dst *TLWebDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLWebDocument.Merge(dst, src) +} +func (m *TLWebDocument) XXX_Size() int { + return xxx_messageInfo_TLWebDocument.Size(m) +} +func (m *TLWebDocument) XXX_DiscardUnknown() { + xxx_messageInfo_TLWebDocument.DiscardUnknown(m) } -func (m *Chat_Data) GetMigratedTo() *InputChannel { +var xxx_messageInfo_TLWebDocument proto.InternalMessageInfo + +func (m *TLWebDocument) GetData2() *WebDocument_Data { if m != nil { - return m.MigratedTo + return m.Data2 } return nil } -func (m *Chat_Data) GetEditor() bool { - if m != nil { - return m.Editor - } - return false +// webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument; +type TLWebDocumentNoProxy struct { + Data2 *WebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Chat_Data) GetBroadcast() bool { - if m != nil { - return m.Broadcast - } - return false +func (m *TLWebDocumentNoProxy) Reset() { *m = TLWebDocumentNoProxy{} } +func (m *TLWebDocumentNoProxy) String() string { return proto.CompactTextString(m) } +func (*TLWebDocumentNoProxy) ProtoMessage() {} +func (*TLWebDocumentNoProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{363} } - -func (m *Chat_Data) GetVerified() bool { - if m != nil { - return m.Verified - } - return false +func (m *TLWebDocumentNoProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLWebDocumentNoProxy.Unmarshal(m, b) +} +func (m *TLWebDocumentNoProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLWebDocumentNoProxy.Marshal(b, m, deterministic) +} +func (dst *TLWebDocumentNoProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLWebDocumentNoProxy.Merge(dst, src) +} +func (m *TLWebDocumentNoProxy) XXX_Size() int { + return xxx_messageInfo_TLWebDocumentNoProxy.Size(m) +} +func (m *TLWebDocumentNoProxy) XXX_DiscardUnknown() { + xxx_messageInfo_TLWebDocumentNoProxy.DiscardUnknown(m) } -func (m *Chat_Data) GetMegagroup() bool { +var xxx_messageInfo_TLWebDocumentNoProxy proto.InternalMessageInfo + +func (m *TLWebDocumentNoProxy) GetData2() *WebDocument_Data { if m != nil { - return m.Megagroup + return m.Data2 } - return false + return nil } -func (m *Chat_Data) GetRestricted() bool { - if m != nil { - return m.Restricted - } - return false +// ///////////////////////////////////////////////////////////////////////////// +// auth_Authorization <-- +// + TL_auth_authorization +// +type Auth_Authorization_Data struct { + TmpSessions int32 `protobuf:"varint,1,opt,name=tmp_sessions,json=tmpSessions,proto3" json:"tmp_sessions,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Chat_Data) GetDemocracy() bool { - if m != nil { - return m.Democracy - } - return false +func (m *Auth_Authorization_Data) Reset() { *m = Auth_Authorization_Data{} } +func (m *Auth_Authorization_Data) String() string { return proto.CompactTextString(m) } +func (*Auth_Authorization_Data) ProtoMessage() {} +func (*Auth_Authorization_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{364} } - -func (m *Chat_Data) GetSignatures() bool { - if m != nil { - return m.Signatures - } - return false +func (m *Auth_Authorization_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_Authorization_Data.Unmarshal(m, b) } - -func (m *Chat_Data) GetMin() bool { - if m != nil { - return m.Min - } - return false +func (m *Auth_Authorization_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_Authorization_Data.Marshal(b, m, deterministic) } - -func (m *Chat_Data) GetAccessHash() int64 { - if m != nil { - return m.AccessHash - } - return 0 +func (dst *Auth_Authorization_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_Authorization_Data.Merge(dst, src) } - -func (m *Chat_Data) GetUsername() string { - if m != nil { - return m.Username - } - return "" +func (m *Auth_Authorization_Data) XXX_Size() int { + return xxx_messageInfo_Auth_Authorization_Data.Size(m) } - -func (m *Chat_Data) GetRestrictionReason() string { - if m != nil { - return m.RestrictionReason - } - return "" +func (m *Auth_Authorization_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_Authorization_Data.DiscardUnknown(m) } -func (m *Chat_Data) GetAdminRights() *ChannelAdminRights { - if m != nil { - return m.AdminRights - } - return nil -} +var xxx_messageInfo_Auth_Authorization_Data proto.InternalMessageInfo -func (m *Chat_Data) GetBannedRights() *ChannelBannedRights { +func (m *Auth_Authorization_Data) GetTmpSessions() int32 { if m != nil { - return m.BannedRights + return m.TmpSessions } - return nil + return 0 } -func (m *Chat_Data) GetUntilDate() int32 { +func (m *Auth_Authorization_Data) GetUser() *User { if m != nil { - return m.UntilDate + return m.User } - return 0 + return nil } -type Chat struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Auth_Authorization struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Auth_Authorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Chat) Reset() { *m = Chat{} } -func (m *Chat) String() string { return proto.CompactTextString(m) } -func (*Chat) ProtoMessage() {} -func (*Chat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{400} +func (m *Auth_Authorization) Reset() { *m = Auth_Authorization{} } +func (m *Auth_Authorization) String() string { return proto.CompactTextString(m) } +func (*Auth_Authorization) ProtoMessage() {} +func (*Auth_Authorization) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{365} } -func (m *Chat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Chat.Unmarshal(m, b) +func (m *Auth_Authorization) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_Authorization.Unmarshal(m, b) } -func (m *Chat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Chat.Marshal(b, m, deterministic) +func (m *Auth_Authorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_Authorization.Marshal(b, m, deterministic) } -func (dst *Chat) XXX_Merge(src proto.Message) { - xxx_messageInfo_Chat.Merge(dst, src) +func (dst *Auth_Authorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_Authorization.Merge(dst, src) } -func (m *Chat) XXX_Size() int { - return xxx_messageInfo_Chat.Size(m) +func (m *Auth_Authorization) XXX_Size() int { + return xxx_messageInfo_Auth_Authorization.Size(m) } -func (m *Chat) XXX_DiscardUnknown() { - xxx_messageInfo_Chat.DiscardUnknown(m) +func (m *Auth_Authorization) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_Authorization.DiscardUnknown(m) } -var xxx_messageInfo_Chat proto.InternalMessageInfo +var xxx_messageInfo_Auth_Authorization proto.InternalMessageInfo -func (m *Chat) GetConstructor() TLConstructor { +func (m *Auth_Authorization) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Chat) GetData2() *Chat_Data { +func (m *Auth_Authorization) GetData2() *Auth_Authorization_Data { if m != nil { return m.Data2 } return nil } -// chatEmpty#9ba2d800 id:int = Chat; -type TLChatEmpty struct { - Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization; +type TLAuthAuthorization struct { + Data2 *Auth_Authorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatEmpty) Reset() { *m = TLChatEmpty{} } -func (m *TLChatEmpty) String() string { return proto.CompactTextString(m) } -func (*TLChatEmpty) ProtoMessage() {} -func (*TLChatEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{401} +func (m *TLAuthAuthorization) Reset() { *m = TLAuthAuthorization{} } +func (m *TLAuthAuthorization) String() string { return proto.CompactTextString(m) } +func (*TLAuthAuthorization) ProtoMessage() {} +func (*TLAuthAuthorization) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{366} } -func (m *TLChatEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatEmpty.Unmarshal(m, b) +func (m *TLAuthAuthorization) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthAuthorization.Unmarshal(m, b) } -func (m *TLChatEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatEmpty.Marshal(b, m, deterministic) +func (m *TLAuthAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthAuthorization.Marshal(b, m, deterministic) } -func (dst *TLChatEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatEmpty.Merge(dst, src) +func (dst *TLAuthAuthorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthAuthorization.Merge(dst, src) } -func (m *TLChatEmpty) XXX_Size() int { - return xxx_messageInfo_TLChatEmpty.Size(m) +func (m *TLAuthAuthorization) XXX_Size() int { + return xxx_messageInfo_TLAuthAuthorization.Size(m) } -func (m *TLChatEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatEmpty.DiscardUnknown(m) +func (m *TLAuthAuthorization) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthAuthorization.DiscardUnknown(m) } -var xxx_messageInfo_TLChatEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLAuthAuthorization proto.InternalMessageInfo -func (m *TLChatEmpty) GetData2() *Chat_Data { +func (m *TLAuthAuthorization) GetData2() *Auth_Authorization_Data { if m != nil { return m.Data2 } return nil } -// chat#d91cdd54 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true admins_enabled:flags.3?true admin:flags.4?true deactivated:flags.5?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel = Chat; -type TLChat struct { - Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// ImportedContact <-- +// + TL_importedContact +// +type ImportedContact_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + ClientId int64 `protobuf:"varint,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChat) Reset() { *m = TLChat{} } -func (m *TLChat) String() string { return proto.CompactTextString(m) } -func (*TLChat) ProtoMessage() {} -func (*TLChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{402} +func (m *ImportedContact_Data) Reset() { *m = ImportedContact_Data{} } +func (m *ImportedContact_Data) String() string { return proto.CompactTextString(m) } +func (*ImportedContact_Data) ProtoMessage() {} +func (*ImportedContact_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{367} } -func (m *TLChat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChat.Unmarshal(m, b) +func (m *ImportedContact_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ImportedContact_Data.Unmarshal(m, b) } -func (m *TLChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChat.Marshal(b, m, deterministic) +func (m *ImportedContact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ImportedContact_Data.Marshal(b, m, deterministic) } -func (dst *TLChat) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChat.Merge(dst, src) +func (dst *ImportedContact_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportedContact_Data.Merge(dst, src) } -func (m *TLChat) XXX_Size() int { - return xxx_messageInfo_TLChat.Size(m) +func (m *ImportedContact_Data) XXX_Size() int { + return xxx_messageInfo_ImportedContact_Data.Size(m) } -func (m *TLChat) XXX_DiscardUnknown() { - xxx_messageInfo_TLChat.DiscardUnknown(m) +func (m *ImportedContact_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ImportedContact_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLChat proto.InternalMessageInfo +var xxx_messageInfo_ImportedContact_Data proto.InternalMessageInfo -func (m *TLChat) GetData2() *Chat_Data { +func (m *ImportedContact_Data) GetUserId() int32 { if m != nil { - return m.Data2 + return m.UserId } - return nil + return 0 } -// chatForbidden#7328bdb id:int title:string = Chat; -type TLChatForbidden struct { - Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ImportedContact_Data) GetClientId() int64 { + if m != nil { + return m.ClientId + } + return 0 } -func (m *TLChatForbidden) Reset() { *m = TLChatForbidden{} } -func (m *TLChatForbidden) String() string { return proto.CompactTextString(m) } -func (*TLChatForbidden) ProtoMessage() {} -func (*TLChatForbidden) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{403} +type ImportedContact struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ImportedContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatForbidden) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatForbidden.Unmarshal(m, b) + +func (m *ImportedContact) Reset() { *m = ImportedContact{} } +func (m *ImportedContact) String() string { return proto.CompactTextString(m) } +func (*ImportedContact) ProtoMessage() {} +func (*ImportedContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{368} } -func (m *TLChatForbidden) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatForbidden.Marshal(b, m, deterministic) +func (m *ImportedContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ImportedContact.Unmarshal(m, b) } -func (dst *TLChatForbidden) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatForbidden.Merge(dst, src) +func (m *ImportedContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ImportedContact.Marshal(b, m, deterministic) } -func (m *TLChatForbidden) XXX_Size() int { - return xxx_messageInfo_TLChatForbidden.Size(m) +func (dst *ImportedContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportedContact.Merge(dst, src) } -func (m *TLChatForbidden) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatForbidden.DiscardUnknown(m) +func (m *ImportedContact) XXX_Size() int { + return xxx_messageInfo_ImportedContact.Size(m) +} +func (m *ImportedContact) XXX_DiscardUnknown() { + xxx_messageInfo_ImportedContact.DiscardUnknown(m) } -var xxx_messageInfo_TLChatForbidden proto.InternalMessageInfo +var xxx_messageInfo_ImportedContact proto.InternalMessageInfo -func (m *TLChatForbidden) GetData2() *Chat_Data { +func (m *ImportedContact) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *ImportedContact) GetData2() *ImportedContact_Data { if m != nil { return m.Data2 } return nil } -// channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; -type TLChannel struct { - Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// importedContact#d0028438 user_id:int client_id:long = ImportedContact; +type TLImportedContact struct { + Data2 *ImportedContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannel) Reset() { *m = TLChannel{} } -func (m *TLChannel) String() string { return proto.CompactTextString(m) } -func (*TLChannel) ProtoMessage() {} -func (*TLChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{404} +func (m *TLImportedContact) Reset() { *m = TLImportedContact{} } +func (m *TLImportedContact) String() string { return proto.CompactTextString(m) } +func (*TLImportedContact) ProtoMessage() {} +func (*TLImportedContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{369} } -func (m *TLChannel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannel.Unmarshal(m, b) +func (m *TLImportedContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLImportedContact.Unmarshal(m, b) } -func (m *TLChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannel.Marshal(b, m, deterministic) +func (m *TLImportedContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLImportedContact.Marshal(b, m, deterministic) } -func (dst *TLChannel) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannel.Merge(dst, src) +func (dst *TLImportedContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLImportedContact.Merge(dst, src) } -func (m *TLChannel) XXX_Size() int { - return xxx_messageInfo_TLChannel.Size(m) +func (m *TLImportedContact) XXX_Size() int { + return xxx_messageInfo_TLImportedContact.Size(m) } -func (m *TLChannel) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannel.DiscardUnknown(m) +func (m *TLImportedContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLImportedContact.DiscardUnknown(m) } -var xxx_messageInfo_TLChannel proto.InternalMessageInfo +var xxx_messageInfo_TLImportedContact proto.InternalMessageInfo -func (m *TLChannel) GetData2() *Chat_Data { +func (m *TLImportedContact) GetData2() *ImportedContact_Data { if m != nil { return m.Data2 } return nil } -// channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat; -type TLChannelForbidden struct { - Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// updates_Difference <-- +// + TL_updates_differenceEmpty +// + TL_updates_difference +// + TL_updates_differenceSlice +// + TL_updates_differenceTooLong +// +type Updates_Difference_Data struct { + Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` + Seq int32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` + NewMessages []*Message `protobuf:"bytes,3,rep,name=new_messages,json=newMessages,proto3" json:"new_messages,omitempty"` + NewEncryptedMessages []*EncryptedMessage `protobuf:"bytes,4,rep,name=new_encrypted_messages,json=newEncryptedMessages,proto3" json:"new_encrypted_messages,omitempty"` + OtherUpdates []*Update `protobuf:"bytes,5,rep,name=other_updates,json=otherUpdates,proto3" json:"other_updates,omitempty"` + Chats []*Chat `protobuf:"bytes,6,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,7,rep,name=users,proto3" json:"users,omitempty"` + State *Updates_State `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"` + IntermediateState *Updates_State `protobuf:"bytes,9,opt,name=intermediate_state,json=intermediateState,proto3" json:"intermediate_state,omitempty"` + Pts int32 `protobuf:"varint,10,opt,name=pts,proto3" json:"pts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelForbidden) Reset() { *m = TLChannelForbidden{} } -func (m *TLChannelForbidden) String() string { return proto.CompactTextString(m) } -func (*TLChannelForbidden) ProtoMessage() {} -func (*TLChannelForbidden) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{405} +func (m *Updates_Difference_Data) Reset() { *m = Updates_Difference_Data{} } +func (m *Updates_Difference_Data) String() string { return proto.CompactTextString(m) } +func (*Updates_Difference_Data) ProtoMessage() {} +func (*Updates_Difference_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{370} } -func (m *TLChannelForbidden) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelForbidden.Unmarshal(m, b) +func (m *Updates_Difference_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Updates_Difference_Data.Unmarshal(m, b) } -func (m *TLChannelForbidden) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelForbidden.Marshal(b, m, deterministic) +func (m *Updates_Difference_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Updates_Difference_Data.Marshal(b, m, deterministic) } -func (dst *TLChannelForbidden) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelForbidden.Merge(dst, src) +func (dst *Updates_Difference_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Updates_Difference_Data.Merge(dst, src) } -func (m *TLChannelForbidden) XXX_Size() int { - return xxx_messageInfo_TLChannelForbidden.Size(m) +func (m *Updates_Difference_Data) XXX_Size() int { + return xxx_messageInfo_Updates_Difference_Data.Size(m) } -func (m *TLChannelForbidden) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelForbidden.DiscardUnknown(m) +func (m *Updates_Difference_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Updates_Difference_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelForbidden proto.InternalMessageInfo +var xxx_messageInfo_Updates_Difference_Data proto.InternalMessageInfo -func (m *TLChannelForbidden) GetData2() *Chat_Data { +func (m *Updates_Difference_Data) GetDate() int32 { if m != nil { - return m.Data2 + return m.Date } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// GeoPoint <-- -// + TL_geoPointEmpty -// + TL_geoPoint -// -type GeoPoint_Data struct { - Long float64 `protobuf:"fixed64,1,opt,name=long,proto3" json:"long,omitempty"` - Lat float64 `protobuf:"fixed64,2,opt,name=lat,proto3" json:"lat,omitempty"` - AccessHash int64 `protobuf:"varint,3,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Updates_Difference_Data) GetSeq() int32 { + if m != nil { + return m.Seq + } + return 0 } -func (m *GeoPoint_Data) Reset() { *m = GeoPoint_Data{} } -func (m *GeoPoint_Data) String() string { return proto.CompactTextString(m) } -func (*GeoPoint_Data) ProtoMessage() {} -func (*GeoPoint_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{406} -} -func (m *GeoPoint_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GeoPoint_Data.Unmarshal(m, b) -} -func (m *GeoPoint_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GeoPoint_Data.Marshal(b, m, deterministic) +func (m *Updates_Difference_Data) GetNewMessages() []*Message { + if m != nil { + return m.NewMessages + } + return nil } -func (dst *GeoPoint_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_GeoPoint_Data.Merge(dst, src) + +func (m *Updates_Difference_Data) GetNewEncryptedMessages() []*EncryptedMessage { + if m != nil { + return m.NewEncryptedMessages + } + return nil } -func (m *GeoPoint_Data) XXX_Size() int { - return xxx_messageInfo_GeoPoint_Data.Size(m) + +func (m *Updates_Difference_Data) GetOtherUpdates() []*Update { + if m != nil { + return m.OtherUpdates + } + return nil } -func (m *GeoPoint_Data) XXX_DiscardUnknown() { - xxx_messageInfo_GeoPoint_Data.DiscardUnknown(m) + +func (m *Updates_Difference_Data) GetChats() []*Chat { + if m != nil { + return m.Chats + } + return nil } -var xxx_messageInfo_GeoPoint_Data proto.InternalMessageInfo +func (m *Updates_Difference_Data) GetUsers() []*User { + if m != nil { + return m.Users + } + return nil +} -func (m *GeoPoint_Data) GetLong() float64 { +func (m *Updates_Difference_Data) GetState() *Updates_State { if m != nil { - return m.Long + return m.State } - return 0 + return nil } -func (m *GeoPoint_Data) GetLat() float64 { +func (m *Updates_Difference_Data) GetIntermediateState() *Updates_State { if m != nil { - return m.Lat + return m.IntermediateState } - return 0 + return nil } -func (m *GeoPoint_Data) GetAccessHash() int64 { +func (m *Updates_Difference_Data) GetPts() int32 { if m != nil { - return m.AccessHash + return m.Pts } return 0 } -type GeoPoint struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *GeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Updates_Difference struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GeoPoint) Reset() { *m = GeoPoint{} } -func (m *GeoPoint) String() string { return proto.CompactTextString(m) } -func (*GeoPoint) ProtoMessage() {} -func (*GeoPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{407} +func (m *Updates_Difference) Reset() { *m = Updates_Difference{} } +func (m *Updates_Difference) String() string { return proto.CompactTextString(m) } +func (*Updates_Difference) ProtoMessage() {} +func (*Updates_Difference) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{371} } -func (m *GeoPoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GeoPoint.Unmarshal(m, b) +func (m *Updates_Difference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Updates_Difference.Unmarshal(m, b) } -func (m *GeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GeoPoint.Marshal(b, m, deterministic) +func (m *Updates_Difference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Updates_Difference.Marshal(b, m, deterministic) } -func (dst *GeoPoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_GeoPoint.Merge(dst, src) +func (dst *Updates_Difference) XXX_Merge(src proto.Message) { + xxx_messageInfo_Updates_Difference.Merge(dst, src) } -func (m *GeoPoint) XXX_Size() int { - return xxx_messageInfo_GeoPoint.Size(m) +func (m *Updates_Difference) XXX_Size() int { + return xxx_messageInfo_Updates_Difference.Size(m) } -func (m *GeoPoint) XXX_DiscardUnknown() { - xxx_messageInfo_GeoPoint.DiscardUnknown(m) +func (m *Updates_Difference) XXX_DiscardUnknown() { + xxx_messageInfo_Updates_Difference.DiscardUnknown(m) } -var xxx_messageInfo_GeoPoint proto.InternalMessageInfo +var xxx_messageInfo_Updates_Difference proto.InternalMessageInfo -func (m *GeoPoint) GetConstructor() TLConstructor { +func (m *Updates_Difference) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *GeoPoint) GetData2() *GeoPoint_Data { +func (m *Updates_Difference) GetData2() *Updates_Difference_Data { if m != nil { return m.Data2 } return nil } -// geoPointEmpty#1117dd5f = GeoPoint; -type TLGeoPointEmpty struct { - Data2 *GeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; +type TLUpdatesDifferenceEmpty struct { + Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLGeoPointEmpty) Reset() { *m = TLGeoPointEmpty{} } -func (m *TLGeoPointEmpty) String() string { return proto.CompactTextString(m) } -func (*TLGeoPointEmpty) ProtoMessage() {} -func (*TLGeoPointEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{408} +func (m *TLUpdatesDifferenceEmpty) Reset() { *m = TLUpdatesDifferenceEmpty{} } +func (m *TLUpdatesDifferenceEmpty) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesDifferenceEmpty) ProtoMessage() {} +func (*TLUpdatesDifferenceEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{372} } -func (m *TLGeoPointEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLGeoPointEmpty.Unmarshal(m, b) +func (m *TLUpdatesDifferenceEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesDifferenceEmpty.Unmarshal(m, b) } -func (m *TLGeoPointEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLGeoPointEmpty.Marshal(b, m, deterministic) +func (m *TLUpdatesDifferenceEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesDifferenceEmpty.Marshal(b, m, deterministic) } -func (dst *TLGeoPointEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLGeoPointEmpty.Merge(dst, src) +func (dst *TLUpdatesDifferenceEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesDifferenceEmpty.Merge(dst, src) } -func (m *TLGeoPointEmpty) XXX_Size() int { - return xxx_messageInfo_TLGeoPointEmpty.Size(m) +func (m *TLUpdatesDifferenceEmpty) XXX_Size() int { + return xxx_messageInfo_TLUpdatesDifferenceEmpty.Size(m) } -func (m *TLGeoPointEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLGeoPointEmpty.DiscardUnknown(m) +func (m *TLUpdatesDifferenceEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesDifferenceEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLGeoPointEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLUpdatesDifferenceEmpty proto.InternalMessageInfo -func (m *TLGeoPointEmpty) GetData2() *GeoPoint_Data { +func (m *TLUpdatesDifferenceEmpty) GetData2() *Updates_Difference_Data { if m != nil { return m.Data2 } return nil } -// geoPoint#296f104 long:double lat:double access_hash:long = GeoPoint; -type TLGeoPoint struct { - Data2 *GeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; +type TLUpdatesDifference struct { + Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLGeoPoint) Reset() { *m = TLGeoPoint{} } -func (m *TLGeoPoint) String() string { return proto.CompactTextString(m) } -func (*TLGeoPoint) ProtoMessage() {} -func (*TLGeoPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{409} +func (m *TLUpdatesDifference) Reset() { *m = TLUpdatesDifference{} } +func (m *TLUpdatesDifference) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesDifference) ProtoMessage() {} +func (*TLUpdatesDifference) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{373} } -func (m *TLGeoPoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLGeoPoint.Unmarshal(m, b) +func (m *TLUpdatesDifference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesDifference.Unmarshal(m, b) } -func (m *TLGeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLGeoPoint.Marshal(b, m, deterministic) +func (m *TLUpdatesDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesDifference.Marshal(b, m, deterministic) } -func (dst *TLGeoPoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLGeoPoint.Merge(dst, src) +func (dst *TLUpdatesDifference) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesDifference.Merge(dst, src) } -func (m *TLGeoPoint) XXX_Size() int { - return xxx_messageInfo_TLGeoPoint.Size(m) +func (m *TLUpdatesDifference) XXX_Size() int { + return xxx_messageInfo_TLUpdatesDifference.Size(m) } -func (m *TLGeoPoint) XXX_DiscardUnknown() { - xxx_messageInfo_TLGeoPoint.DiscardUnknown(m) +func (m *TLUpdatesDifference) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesDifference.DiscardUnknown(m) } -var xxx_messageInfo_TLGeoPoint proto.InternalMessageInfo +var xxx_messageInfo_TLUpdatesDifference proto.InternalMessageInfo -func (m *TLGeoPoint) GetData2() *GeoPoint_Data { +func (m *TLUpdatesDifference) GetData2() *Updates_Difference_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ReportReason <-- -// + TL_inputReportReasonSpam -// + TL_inputReportReasonViolence -// + TL_inputReportReasonPornography -// + TL_inputReportReasonOther -// + TL_inputReportReasonCopyright -// -type ReportReason_Data struct { - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference; +type TLUpdatesDifferenceSlice struct { + Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ReportReason_Data) Reset() { *m = ReportReason_Data{} } -func (m *ReportReason_Data) String() string { return proto.CompactTextString(m) } -func (*ReportReason_Data) ProtoMessage() {} -func (*ReportReason_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{410} +func (m *TLUpdatesDifferenceSlice) Reset() { *m = TLUpdatesDifferenceSlice{} } +func (m *TLUpdatesDifferenceSlice) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesDifferenceSlice) ProtoMessage() {} +func (*TLUpdatesDifferenceSlice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{374} } -func (m *ReportReason_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReportReason_Data.Unmarshal(m, b) +func (m *TLUpdatesDifferenceSlice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesDifferenceSlice.Unmarshal(m, b) } -func (m *ReportReason_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReportReason_Data.Marshal(b, m, deterministic) +func (m *TLUpdatesDifferenceSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesDifferenceSlice.Marshal(b, m, deterministic) } -func (dst *ReportReason_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportReason_Data.Merge(dst, src) +func (dst *TLUpdatesDifferenceSlice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesDifferenceSlice.Merge(dst, src) } -func (m *ReportReason_Data) XXX_Size() int { - return xxx_messageInfo_ReportReason_Data.Size(m) +func (m *TLUpdatesDifferenceSlice) XXX_Size() int { + return xxx_messageInfo_TLUpdatesDifferenceSlice.Size(m) } -func (m *ReportReason_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ReportReason_Data.DiscardUnknown(m) +func (m *TLUpdatesDifferenceSlice) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesDifferenceSlice.DiscardUnknown(m) } -var xxx_messageInfo_ReportReason_Data proto.InternalMessageInfo +var xxx_messageInfo_TLUpdatesDifferenceSlice proto.InternalMessageInfo -func (m *ReportReason_Data) GetText() string { +func (m *TLUpdatesDifferenceSlice) GetData2() *Updates_Difference_Data { if m != nil { - return m.Text + return m.Data2 } - return "" + return nil } -type ReportReason struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updates.differenceTooLong#4afe8f6d pts:int = updates.Difference; +type TLUpdatesDifferenceTooLong struct { + Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ReportReason) Reset() { *m = ReportReason{} } -func (m *ReportReason) String() string { return proto.CompactTextString(m) } -func (*ReportReason) ProtoMessage() {} -func (*ReportReason) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{411} +func (m *TLUpdatesDifferenceTooLong) Reset() { *m = TLUpdatesDifferenceTooLong{} } +func (m *TLUpdatesDifferenceTooLong) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesDifferenceTooLong) ProtoMessage() {} +func (*TLUpdatesDifferenceTooLong) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{375} } -func (m *ReportReason) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReportReason.Unmarshal(m, b) +func (m *TLUpdatesDifferenceTooLong) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesDifferenceTooLong.Unmarshal(m, b) } -func (m *ReportReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReportReason.Marshal(b, m, deterministic) +func (m *TLUpdatesDifferenceTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesDifferenceTooLong.Marshal(b, m, deterministic) } -func (dst *ReportReason) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportReason.Merge(dst, src) +func (dst *TLUpdatesDifferenceTooLong) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesDifferenceTooLong.Merge(dst, src) } -func (m *ReportReason) XXX_Size() int { - return xxx_messageInfo_ReportReason.Size(m) +func (m *TLUpdatesDifferenceTooLong) XXX_Size() int { + return xxx_messageInfo_TLUpdatesDifferenceTooLong.Size(m) } -func (m *ReportReason) XXX_DiscardUnknown() { - xxx_messageInfo_ReportReason.DiscardUnknown(m) +func (m *TLUpdatesDifferenceTooLong) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesDifferenceTooLong.DiscardUnknown(m) } -var xxx_messageInfo_ReportReason proto.InternalMessageInfo - -func (m *ReportReason) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdatesDifferenceTooLong proto.InternalMessageInfo -func (m *ReportReason) GetData2() *ReportReason_Data { +func (m *TLUpdatesDifferenceTooLong) GetData2() *Updates_Difference_Data { if m != nil { return m.Data2 } return nil } -// inputReportReasonSpam#58dbcab8 = ReportReason; -type TLInputReportReasonSpam struct { - Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// account_AuthorizationForm <-- +// + TL_account_authorizationForm +// +type Account_AuthorizationForm_Data struct { + RequiredTypes []*SecureRequiredType `protobuf:"bytes,1,rep,name=required_types,json=requiredTypes,proto3" json:"required_types,omitempty"` + Values []*SecureValue `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` + Errors []*SecureValueError `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` + Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` + PrivacyPolicyUrl string `protobuf:"bytes,5,opt,name=privacy_policy_url,json=privacyPolicyUrl,proto3" json:"privacy_policy_url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputReportReasonSpam) Reset() { *m = TLInputReportReasonSpam{} } -func (m *TLInputReportReasonSpam) String() string { return proto.CompactTextString(m) } -func (*TLInputReportReasonSpam) ProtoMessage() {} -func (*TLInputReportReasonSpam) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{412} +func (m *Account_AuthorizationForm_Data) Reset() { *m = Account_AuthorizationForm_Data{} } +func (m *Account_AuthorizationForm_Data) String() string { return proto.CompactTextString(m) } +func (*Account_AuthorizationForm_Data) ProtoMessage() {} +func (*Account_AuthorizationForm_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{376} } -func (m *TLInputReportReasonSpam) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputReportReasonSpam.Unmarshal(m, b) +func (m *Account_AuthorizationForm_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_AuthorizationForm_Data.Unmarshal(m, b) } -func (m *TLInputReportReasonSpam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputReportReasonSpam.Marshal(b, m, deterministic) +func (m *Account_AuthorizationForm_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_AuthorizationForm_Data.Marshal(b, m, deterministic) } -func (dst *TLInputReportReasonSpam) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputReportReasonSpam.Merge(dst, src) +func (dst *Account_AuthorizationForm_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_AuthorizationForm_Data.Merge(dst, src) } -func (m *TLInputReportReasonSpam) XXX_Size() int { - return xxx_messageInfo_TLInputReportReasonSpam.Size(m) +func (m *Account_AuthorizationForm_Data) XXX_Size() int { + return xxx_messageInfo_Account_AuthorizationForm_Data.Size(m) } -func (m *TLInputReportReasonSpam) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputReportReasonSpam.DiscardUnknown(m) +func (m *Account_AuthorizationForm_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_AuthorizationForm_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputReportReasonSpam proto.InternalMessageInfo +var xxx_messageInfo_Account_AuthorizationForm_Data proto.InternalMessageInfo -func (m *TLInputReportReasonSpam) GetData2() *ReportReason_Data { +func (m *Account_AuthorizationForm_Data) GetRequiredTypes() []*SecureRequiredType { if m != nil { - return m.Data2 + return m.RequiredTypes } return nil } -// inputReportReasonViolence#1e22c78d = ReportReason; -type TLInputReportReasonViolence struct { - Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputReportReasonViolence) Reset() { *m = TLInputReportReasonViolence{} } -func (m *TLInputReportReasonViolence) String() string { return proto.CompactTextString(m) } -func (*TLInputReportReasonViolence) ProtoMessage() {} -func (*TLInputReportReasonViolence) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{413} -} -func (m *TLInputReportReasonViolence) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputReportReasonViolence.Unmarshal(m, b) -} -func (m *TLInputReportReasonViolence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputReportReasonViolence.Marshal(b, m, deterministic) -} -func (dst *TLInputReportReasonViolence) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputReportReasonViolence.Merge(dst, src) -} -func (m *TLInputReportReasonViolence) XXX_Size() int { - return xxx_messageInfo_TLInputReportReasonViolence.Size(m) -} -func (m *TLInputReportReasonViolence) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputReportReasonViolence.DiscardUnknown(m) -} - -var xxx_messageInfo_TLInputReportReasonViolence proto.InternalMessageInfo - -func (m *TLInputReportReasonViolence) GetData2() *ReportReason_Data { +func (m *Account_AuthorizationForm_Data) GetValues() []*SecureValue { if m != nil { - return m.Data2 + return m.Values } return nil } -// inputReportReasonPornography#2e59d922 = ReportReason; -type TLInputReportReasonPornography struct { - Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Account_AuthorizationForm_Data) GetErrors() []*SecureValueError { + if m != nil { + return m.Errors + } + return nil } -func (m *TLInputReportReasonPornography) Reset() { *m = TLInputReportReasonPornography{} } -func (m *TLInputReportReasonPornography) String() string { return proto.CompactTextString(m) } -func (*TLInputReportReasonPornography) ProtoMessage() {} -func (*TLInputReportReasonPornography) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{414} -} -func (m *TLInputReportReasonPornography) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputReportReasonPornography.Unmarshal(m, b) -} -func (m *TLInputReportReasonPornography) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputReportReasonPornography.Marshal(b, m, deterministic) -} -func (dst *TLInputReportReasonPornography) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputReportReasonPornography.Merge(dst, src) -} -func (m *TLInputReportReasonPornography) XXX_Size() int { - return xxx_messageInfo_TLInputReportReasonPornography.Size(m) -} -func (m *TLInputReportReasonPornography) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputReportReasonPornography.DiscardUnknown(m) +func (m *Account_AuthorizationForm_Data) GetUsers() []*User { + if m != nil { + return m.Users + } + return nil } -var xxx_messageInfo_TLInputReportReasonPornography proto.InternalMessageInfo - -func (m *TLInputReportReasonPornography) GetData2() *ReportReason_Data { +func (m *Account_AuthorizationForm_Data) GetPrivacyPolicyUrl() string { if m != nil { - return m.Data2 + return m.PrivacyPolicyUrl } - return nil + return "" } -// inputReportReasonOther#e1746d0a text:string = ReportReason; -type TLInputReportReasonOther struct { - Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_AuthorizationForm struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_AuthorizationForm_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputReportReasonOther) Reset() { *m = TLInputReportReasonOther{} } -func (m *TLInputReportReasonOther) String() string { return proto.CompactTextString(m) } -func (*TLInputReportReasonOther) ProtoMessage() {} -func (*TLInputReportReasonOther) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{415} +func (m *Account_AuthorizationForm) Reset() { *m = Account_AuthorizationForm{} } +func (m *Account_AuthorizationForm) String() string { return proto.CompactTextString(m) } +func (*Account_AuthorizationForm) ProtoMessage() {} +func (*Account_AuthorizationForm) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{377} } -func (m *TLInputReportReasonOther) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputReportReasonOther.Unmarshal(m, b) +func (m *Account_AuthorizationForm) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_AuthorizationForm.Unmarshal(m, b) } -func (m *TLInputReportReasonOther) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputReportReasonOther.Marshal(b, m, deterministic) +func (m *Account_AuthorizationForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_AuthorizationForm.Marshal(b, m, deterministic) } -func (dst *TLInputReportReasonOther) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputReportReasonOther.Merge(dst, src) +func (dst *Account_AuthorizationForm) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_AuthorizationForm.Merge(dst, src) } -func (m *TLInputReportReasonOther) XXX_Size() int { - return xxx_messageInfo_TLInputReportReasonOther.Size(m) +func (m *Account_AuthorizationForm) XXX_Size() int { + return xxx_messageInfo_Account_AuthorizationForm.Size(m) } -func (m *TLInputReportReasonOther) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputReportReasonOther.DiscardUnknown(m) +func (m *Account_AuthorizationForm) XXX_DiscardUnknown() { + xxx_messageInfo_Account_AuthorizationForm.DiscardUnknown(m) } -var xxx_messageInfo_TLInputReportReasonOther proto.InternalMessageInfo +var xxx_messageInfo_Account_AuthorizationForm proto.InternalMessageInfo -func (m *TLInputReportReasonOther) GetData2() *ReportReason_Data { +func (m *Account_AuthorizationForm) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Account_AuthorizationForm) GetData2() *Account_AuthorizationForm_Data { if m != nil { return m.Data2 } return nil } -// inputReportReasonCopyright#9b89f93a = ReportReason; -type TLInputReportReasonCopyright struct { - Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// account.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm; +type TLAccountAuthorizationForm struct { + Data2 *Account_AuthorizationForm_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputReportReasonCopyright) Reset() { *m = TLInputReportReasonCopyright{} } -func (m *TLInputReportReasonCopyright) String() string { return proto.CompactTextString(m) } -func (*TLInputReportReasonCopyright) ProtoMessage() {} -func (*TLInputReportReasonCopyright) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{416} +func (m *TLAccountAuthorizationForm) Reset() { *m = TLAccountAuthorizationForm{} } +func (m *TLAccountAuthorizationForm) String() string { return proto.CompactTextString(m) } +func (*TLAccountAuthorizationForm) ProtoMessage() {} +func (*TLAccountAuthorizationForm) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{378} } -func (m *TLInputReportReasonCopyright) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputReportReasonCopyright.Unmarshal(m, b) +func (m *TLAccountAuthorizationForm) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountAuthorizationForm.Unmarshal(m, b) } -func (m *TLInputReportReasonCopyright) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputReportReasonCopyright.Marshal(b, m, deterministic) +func (m *TLAccountAuthorizationForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountAuthorizationForm.Marshal(b, m, deterministic) } -func (dst *TLInputReportReasonCopyright) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputReportReasonCopyright.Merge(dst, src) +func (dst *TLAccountAuthorizationForm) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountAuthorizationForm.Merge(dst, src) } -func (m *TLInputReportReasonCopyright) XXX_Size() int { - return xxx_messageInfo_TLInputReportReasonCopyright.Size(m) +func (m *TLAccountAuthorizationForm) XXX_Size() int { + return xxx_messageInfo_TLAccountAuthorizationForm.Size(m) } -func (m *TLInputReportReasonCopyright) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputReportReasonCopyright.DiscardUnknown(m) +func (m *TLAccountAuthorizationForm) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountAuthorizationForm.DiscardUnknown(m) } -var xxx_messageInfo_TLInputReportReasonCopyright proto.InternalMessageInfo +var xxx_messageInfo_TLAccountAuthorizationForm proto.InternalMessageInfo -func (m *TLInputReportReasonCopyright) GetData2() *ReportReason_Data { +func (m *TLAccountAuthorizationForm) GetData2() *Account_AuthorizationForm_Data { if m != nil { return m.Data2 } @@ -19860,174 +19022,150 @@ func (m *TLInputReportReasonCopyright) GetData2() *ReportReason_Data { } // ///////////////////////////////////////////////////////////////////////////// -// messages_Chats <-- -// + TL_messages_chats -// + TL_messages_chatsSlice +// InputAppEvent <-- +// + TL_inputAppEvent // -type Messages_Chats_Data struct { - Chats []*Chat `protobuf:"bytes,1,rep,name=chats,proto3" json:"chats,omitempty"` - Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` +type InputAppEvent_Data struct { + Time float64 `protobuf:"fixed64,1,opt,name=time,proto3" json:"time,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Peer int64 `protobuf:"varint,3,opt,name=peer,proto3" json:"peer,omitempty"` + Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Messages_Chats_Data) Reset() { *m = Messages_Chats_Data{} } -func (m *Messages_Chats_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_Chats_Data) ProtoMessage() {} -func (*Messages_Chats_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{417} +func (m *InputAppEvent_Data) Reset() { *m = InputAppEvent_Data{} } +func (m *InputAppEvent_Data) String() string { return proto.CompactTextString(m) } +func (*InputAppEvent_Data) ProtoMessage() {} +func (*InputAppEvent_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{379} } -func (m *Messages_Chats_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_Chats_Data.Unmarshal(m, b) +func (m *InputAppEvent_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputAppEvent_Data.Unmarshal(m, b) } -func (m *Messages_Chats_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_Chats_Data.Marshal(b, m, deterministic) +func (m *InputAppEvent_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputAppEvent_Data.Marshal(b, m, deterministic) } -func (dst *Messages_Chats_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_Chats_Data.Merge(dst, src) +func (dst *InputAppEvent_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputAppEvent_Data.Merge(dst, src) } -func (m *Messages_Chats_Data) XXX_Size() int { - return xxx_messageInfo_Messages_Chats_Data.Size(m) +func (m *InputAppEvent_Data) XXX_Size() int { + return xxx_messageInfo_InputAppEvent_Data.Size(m) } -func (m *Messages_Chats_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_Chats_Data.DiscardUnknown(m) +func (m *InputAppEvent_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputAppEvent_Data.DiscardUnknown(m) } -var xxx_messageInfo_Messages_Chats_Data proto.InternalMessageInfo +var xxx_messageInfo_InputAppEvent_Data proto.InternalMessageInfo -func (m *Messages_Chats_Data) GetChats() []*Chat { +func (m *InputAppEvent_Data) GetTime() float64 { if m != nil { - return m.Chats + return m.Time } - return nil + return 0 } -func (m *Messages_Chats_Data) GetCount() int32 { +func (m *InputAppEvent_Data) GetType() string { if m != nil { - return m.Count + return m.Type + } + return "" +} + +func (m *InputAppEvent_Data) GetPeer() int64 { + if m != nil { + return m.Peer } return 0 } -type Messages_Chats struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_Chats_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputAppEvent_Data) GetData() string { + if m != nil { + return m.Data + } + return "" } -func (m *Messages_Chats) Reset() { *m = Messages_Chats{} } -func (m *Messages_Chats) String() string { return proto.CompactTextString(m) } -func (*Messages_Chats) ProtoMessage() {} -func (*Messages_Chats) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{418} +type InputAppEvent struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputAppEvent_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_Chats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_Chats.Unmarshal(m, b) + +func (m *InputAppEvent) Reset() { *m = InputAppEvent{} } +func (m *InputAppEvent) String() string { return proto.CompactTextString(m) } +func (*InputAppEvent) ProtoMessage() {} +func (*InputAppEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{380} } -func (m *Messages_Chats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_Chats.Marshal(b, m, deterministic) +func (m *InputAppEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputAppEvent.Unmarshal(m, b) } -func (dst *Messages_Chats) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_Chats.Merge(dst, src) +func (m *InputAppEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputAppEvent.Marshal(b, m, deterministic) } -func (m *Messages_Chats) XXX_Size() int { - return xxx_messageInfo_Messages_Chats.Size(m) +func (dst *InputAppEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputAppEvent.Merge(dst, src) } -func (m *Messages_Chats) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_Chats.DiscardUnknown(m) +func (m *InputAppEvent) XXX_Size() int { + return xxx_messageInfo_InputAppEvent.Size(m) +} +func (m *InputAppEvent) XXX_DiscardUnknown() { + xxx_messageInfo_InputAppEvent.DiscardUnknown(m) } -var xxx_messageInfo_Messages_Chats proto.InternalMessageInfo +var xxx_messageInfo_InputAppEvent proto.InternalMessageInfo -func (m *Messages_Chats) GetConstructor() TLConstructor { +func (m *InputAppEvent) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_Chats) GetData2() *Messages_Chats_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// messages.chats#64ff9fd5 chats:Vector = messages.Chats; -type TLMessagesChats struct { - Data2 *Messages_Chats_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLMessagesChats) Reset() { *m = TLMessagesChats{} } -func (m *TLMessagesChats) String() string { return proto.CompactTextString(m) } -func (*TLMessagesChats) ProtoMessage() {} -func (*TLMessagesChats) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{419} -} -func (m *TLMessagesChats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesChats.Unmarshal(m, b) -} -func (m *TLMessagesChats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesChats.Marshal(b, m, deterministic) -} -func (dst *TLMessagesChats) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesChats.Merge(dst, src) -} -func (m *TLMessagesChats) XXX_Size() int { - return xxx_messageInfo_TLMessagesChats.Size(m) -} -func (m *TLMessagesChats) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesChats.DiscardUnknown(m) -} - -var xxx_messageInfo_TLMessagesChats proto.InternalMessageInfo - -func (m *TLMessagesChats) GetData2() *Messages_Chats_Data { +func (m *InputAppEvent) GetData2() *InputAppEvent_Data { if m != nil { return m.Data2 } return nil } -// messages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats; -type TLMessagesChatsSlice struct { - Data2 *Messages_Chats_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent; +type TLInputAppEvent struct { + Data2 *InputAppEvent_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesChatsSlice) Reset() { *m = TLMessagesChatsSlice{} } -func (m *TLMessagesChatsSlice) String() string { return proto.CompactTextString(m) } -func (*TLMessagesChatsSlice) ProtoMessage() {} -func (*TLMessagesChatsSlice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{420} +func (m *TLInputAppEvent) Reset() { *m = TLInputAppEvent{} } +func (m *TLInputAppEvent) String() string { return proto.CompactTextString(m) } +func (*TLInputAppEvent) ProtoMessage() {} +func (*TLInputAppEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{381} } -func (m *TLMessagesChatsSlice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesChatsSlice.Unmarshal(m, b) +func (m *TLInputAppEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputAppEvent.Unmarshal(m, b) } -func (m *TLMessagesChatsSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesChatsSlice.Marshal(b, m, deterministic) +func (m *TLInputAppEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputAppEvent.Marshal(b, m, deterministic) } -func (dst *TLMessagesChatsSlice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesChatsSlice.Merge(dst, src) +func (dst *TLInputAppEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputAppEvent.Merge(dst, src) } -func (m *TLMessagesChatsSlice) XXX_Size() int { - return xxx_messageInfo_TLMessagesChatsSlice.Size(m) +func (m *TLInputAppEvent) XXX_Size() int { + return xxx_messageInfo_TLInputAppEvent.Size(m) } -func (m *TLMessagesChatsSlice) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesChatsSlice.DiscardUnknown(m) +func (m *TLInputAppEvent) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputAppEvent.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesChatsSlice proto.InternalMessageInfo +var xxx_messageInfo_TLInputAppEvent proto.InternalMessageInfo -func (m *TLMessagesChatsSlice) GetData2() *Messages_Chats_Data { +func (m *TLInputAppEvent) GetData2() *InputAppEvent_Data { if m != nil { return m.Data2 } @@ -20035,238 +19173,206 @@ func (m *TLMessagesChatsSlice) GetData2() *Messages_Chats_Data { } // ///////////////////////////////////////////////////////////////////////////// -// BotInlineResult <-- -// + TL_botInlineResult -// + TL_botInlineMediaResult +// NotifyPeer <-- +// + TL_notifyPeer +// + TL_notifyUsers +// + TL_notifyChats // -type BotInlineResult_Data struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` - Thumb *WebDocument `protobuf:"bytes,6,opt,name=thumb,proto3" json:"thumb,omitempty"` - Content *WebDocument `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` - SendMessage *BotInlineMessage `protobuf:"bytes,8,opt,name=send_message,json=sendMessage,proto3" json:"send_message,omitempty"` - Photo *Photo `protobuf:"bytes,9,opt,name=photo,proto3" json:"photo,omitempty"` - Document *Document `protobuf:"bytes,10,opt,name=document,proto3" json:"document,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type NotifyPeer_Data struct { + Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BotInlineResult_Data) Reset() { *m = BotInlineResult_Data{} } -func (m *BotInlineResult_Data) String() string { return proto.CompactTextString(m) } -func (*BotInlineResult_Data) ProtoMessage() {} -func (*BotInlineResult_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{421} +func (m *NotifyPeer_Data) Reset() { *m = NotifyPeer_Data{} } +func (m *NotifyPeer_Data) String() string { return proto.CompactTextString(m) } +func (*NotifyPeer_Data) ProtoMessage() {} +func (*NotifyPeer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{382} } -func (m *BotInlineResult_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BotInlineResult_Data.Unmarshal(m, b) +func (m *NotifyPeer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NotifyPeer_Data.Unmarshal(m, b) } -func (m *BotInlineResult_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BotInlineResult_Data.Marshal(b, m, deterministic) +func (m *NotifyPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NotifyPeer_Data.Marshal(b, m, deterministic) } -func (dst *BotInlineResult_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_BotInlineResult_Data.Merge(dst, src) +func (dst *NotifyPeer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotifyPeer_Data.Merge(dst, src) } -func (m *BotInlineResult_Data) XXX_Size() int { - return xxx_messageInfo_BotInlineResult_Data.Size(m) +func (m *NotifyPeer_Data) XXX_Size() int { + return xxx_messageInfo_NotifyPeer_Data.Size(m) } -func (m *BotInlineResult_Data) XXX_DiscardUnknown() { - xxx_messageInfo_BotInlineResult_Data.DiscardUnknown(m) +func (m *NotifyPeer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_NotifyPeer_Data.DiscardUnknown(m) } -var xxx_messageInfo_BotInlineResult_Data proto.InternalMessageInfo +var xxx_messageInfo_NotifyPeer_Data proto.InternalMessageInfo -func (m *BotInlineResult_Data) GetId() string { +func (m *NotifyPeer_Data) GetPeer() *Peer { if m != nil { - return m.Id + return m.Peer } - return "" + return nil } -func (m *BotInlineResult_Data) GetType() string { - if m != nil { - return m.Type - } - return "" +type NotifyPeer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *NotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BotInlineResult_Data) GetTitle() string { - if m != nil { - return m.Title - } - return "" +func (m *NotifyPeer) Reset() { *m = NotifyPeer{} } +func (m *NotifyPeer) String() string { return proto.CompactTextString(m) } +func (*NotifyPeer) ProtoMessage() {} +func (*NotifyPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{383} } - -func (m *BotInlineResult_Data) GetDescription() string { - if m != nil { - return m.Description - } - return "" +func (m *NotifyPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NotifyPeer.Unmarshal(m, b) } - -func (m *BotInlineResult_Data) GetUrl() string { - if m != nil { - return m.Url - } - return "" +func (m *NotifyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NotifyPeer.Marshal(b, m, deterministic) } - -func (m *BotInlineResult_Data) GetThumb() *WebDocument { - if m != nil { - return m.Thumb - } - return nil +func (dst *NotifyPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotifyPeer.Merge(dst, src) } - -func (m *BotInlineResult_Data) GetContent() *WebDocument { - if m != nil { - return m.Content - } - return nil +func (m *NotifyPeer) XXX_Size() int { + return xxx_messageInfo_NotifyPeer.Size(m) } - -func (m *BotInlineResult_Data) GetSendMessage() *BotInlineMessage { - if m != nil { - return m.SendMessage - } - return nil +func (m *NotifyPeer) XXX_DiscardUnknown() { + xxx_messageInfo_NotifyPeer.DiscardUnknown(m) } -func (m *BotInlineResult_Data) GetPhoto() *Photo { +var xxx_messageInfo_NotifyPeer proto.InternalMessageInfo + +func (m *NotifyPeer) GetConstructor() TLConstructor { if m != nil { - return m.Photo + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *BotInlineResult_Data) GetDocument() *Document { +func (m *NotifyPeer) GetData2() *NotifyPeer_Data { if m != nil { - return m.Document + return m.Data2 } return nil } -type BotInlineResult struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *BotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; +type TLNotifyPeer struct { + Data2 *NotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BotInlineResult) Reset() { *m = BotInlineResult{} } -func (m *BotInlineResult) String() string { return proto.CompactTextString(m) } -func (*BotInlineResult) ProtoMessage() {} -func (*BotInlineResult) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{422} +func (m *TLNotifyPeer) Reset() { *m = TLNotifyPeer{} } +func (m *TLNotifyPeer) String() string { return proto.CompactTextString(m) } +func (*TLNotifyPeer) ProtoMessage() {} +func (*TLNotifyPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{384} } -func (m *BotInlineResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BotInlineResult.Unmarshal(m, b) +func (m *TLNotifyPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLNotifyPeer.Unmarshal(m, b) } -func (m *BotInlineResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BotInlineResult.Marshal(b, m, deterministic) +func (m *TLNotifyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLNotifyPeer.Marshal(b, m, deterministic) } -func (dst *BotInlineResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_BotInlineResult.Merge(dst, src) +func (dst *TLNotifyPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLNotifyPeer.Merge(dst, src) } -func (m *BotInlineResult) XXX_Size() int { - return xxx_messageInfo_BotInlineResult.Size(m) +func (m *TLNotifyPeer) XXX_Size() int { + return xxx_messageInfo_TLNotifyPeer.Size(m) } -func (m *BotInlineResult) XXX_DiscardUnknown() { - xxx_messageInfo_BotInlineResult.DiscardUnknown(m) +func (m *TLNotifyPeer) XXX_DiscardUnknown() { + xxx_messageInfo_TLNotifyPeer.DiscardUnknown(m) } -var xxx_messageInfo_BotInlineResult proto.InternalMessageInfo - -func (m *BotInlineResult) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLNotifyPeer proto.InternalMessageInfo -func (m *BotInlineResult) GetData2() *BotInlineResult_Data { +func (m *TLNotifyPeer) GetData2() *NotifyPeer_Data { if m != nil { return m.Data2 } return nil } -// botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult; -type TLBotInlineResult struct { - Data2 *BotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// notifyUsers#b4c83b4c = NotifyPeer; +type TLNotifyUsers struct { + Data2 *NotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBotInlineResult) Reset() { *m = TLBotInlineResult{} } -func (m *TLBotInlineResult) String() string { return proto.CompactTextString(m) } -func (*TLBotInlineResult) ProtoMessage() {} -func (*TLBotInlineResult) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{423} +func (m *TLNotifyUsers) Reset() { *m = TLNotifyUsers{} } +func (m *TLNotifyUsers) String() string { return proto.CompactTextString(m) } +func (*TLNotifyUsers) ProtoMessage() {} +func (*TLNotifyUsers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{385} } -func (m *TLBotInlineResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBotInlineResult.Unmarshal(m, b) +func (m *TLNotifyUsers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLNotifyUsers.Unmarshal(m, b) } -func (m *TLBotInlineResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBotInlineResult.Marshal(b, m, deterministic) +func (m *TLNotifyUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLNotifyUsers.Marshal(b, m, deterministic) } -func (dst *TLBotInlineResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBotInlineResult.Merge(dst, src) +func (dst *TLNotifyUsers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLNotifyUsers.Merge(dst, src) } -func (m *TLBotInlineResult) XXX_Size() int { - return xxx_messageInfo_TLBotInlineResult.Size(m) +func (m *TLNotifyUsers) XXX_Size() int { + return xxx_messageInfo_TLNotifyUsers.Size(m) } -func (m *TLBotInlineResult) XXX_DiscardUnknown() { - xxx_messageInfo_TLBotInlineResult.DiscardUnknown(m) +func (m *TLNotifyUsers) XXX_DiscardUnknown() { + xxx_messageInfo_TLNotifyUsers.DiscardUnknown(m) } -var xxx_messageInfo_TLBotInlineResult proto.InternalMessageInfo +var xxx_messageInfo_TLNotifyUsers proto.InternalMessageInfo -func (m *TLBotInlineResult) GetData2() *BotInlineResult_Data { +func (m *TLNotifyUsers) GetData2() *NotifyPeer_Data { if m != nil { return m.Data2 } return nil } -// botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult; -type TLBotInlineMediaResult struct { - Data2 *BotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// notifyChats#c007cec3 = NotifyPeer; +type TLNotifyChats struct { + Data2 *NotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBotInlineMediaResult) Reset() { *m = TLBotInlineMediaResult{} } -func (m *TLBotInlineMediaResult) String() string { return proto.CompactTextString(m) } -func (*TLBotInlineMediaResult) ProtoMessage() {} -func (*TLBotInlineMediaResult) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{424} +func (m *TLNotifyChats) Reset() { *m = TLNotifyChats{} } +func (m *TLNotifyChats) String() string { return proto.CompactTextString(m) } +func (*TLNotifyChats) ProtoMessage() {} +func (*TLNotifyChats) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{386} } -func (m *TLBotInlineMediaResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBotInlineMediaResult.Unmarshal(m, b) +func (m *TLNotifyChats) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLNotifyChats.Unmarshal(m, b) } -func (m *TLBotInlineMediaResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBotInlineMediaResult.Marshal(b, m, deterministic) +func (m *TLNotifyChats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLNotifyChats.Marshal(b, m, deterministic) } -func (dst *TLBotInlineMediaResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBotInlineMediaResult.Merge(dst, src) +func (dst *TLNotifyChats) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLNotifyChats.Merge(dst, src) } -func (m *TLBotInlineMediaResult) XXX_Size() int { - return xxx_messageInfo_TLBotInlineMediaResult.Size(m) +func (m *TLNotifyChats) XXX_Size() int { + return xxx_messageInfo_TLNotifyChats.Size(m) } -func (m *TLBotInlineMediaResult) XXX_DiscardUnknown() { - xxx_messageInfo_TLBotInlineMediaResult.DiscardUnknown(m) +func (m *TLNotifyChats) XXX_DiscardUnknown() { + xxx_messageInfo_TLNotifyChats.DiscardUnknown(m) } -var xxx_messageInfo_TLBotInlineMediaResult proto.InternalMessageInfo +var xxx_messageInfo_TLNotifyChats proto.InternalMessageInfo -func (m *TLBotInlineMediaResult) GetData2() *BotInlineResult_Data { +func (m *TLNotifyChats) GetData2() *NotifyPeer_Data { if m != nil { return m.Data2 } @@ -20274,198 +19380,198 @@ func (m *TLBotInlineMediaResult) GetData2() *BotInlineResult_Data { } // ///////////////////////////////////////////////////////////////////////////// -// DraftMessage <-- -// + TL_draftMessageEmpty -// + TL_draftMessage +// StickerSet <-- +// + TL_stickerSet // -type DraftMessage_Data struct { - Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` - NoWebpage bool `protobuf:"varint,2,opt,name=no_webpage,json=noWebpage,proto3" json:"no_webpage,omitempty"` - ReplyToMsgId int32 `protobuf:"varint,3,opt,name=reply_to_msg_id,json=replyToMsgId,proto3" json:"reply_to_msg_id,omitempty"` - Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,5,rep,name=entities,proto3" json:"entities,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type StickerSet_Data struct { + Archived bool `protobuf:"varint,1,opt,name=archived,proto3" json:"archived,omitempty"` + Official bool `protobuf:"varint,2,opt,name=official,proto3" json:"official,omitempty"` + Masks bool `protobuf:"varint,3,opt,name=masks,proto3" json:"masks,omitempty"` + InstalledDate int32 `protobuf:"varint,4,opt,name=installed_date,json=installedDate,proto3" json:"installed_date,omitempty"` + Id int64 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,6,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` + ShortName string `protobuf:"bytes,8,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` + Count int32 `protobuf:"varint,9,opt,name=count,proto3" json:"count,omitempty"` + Hash int32 `protobuf:"varint,10,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DraftMessage_Data) Reset() { *m = DraftMessage_Data{} } -func (m *DraftMessage_Data) String() string { return proto.CompactTextString(m) } -func (*DraftMessage_Data) ProtoMessage() {} -func (*DraftMessage_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{425} +func (m *StickerSet_Data) Reset() { *m = StickerSet_Data{} } +func (m *StickerSet_Data) String() string { return proto.CompactTextString(m) } +func (*StickerSet_Data) ProtoMessage() {} +func (*StickerSet_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{387} } -func (m *DraftMessage_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DraftMessage_Data.Unmarshal(m, b) +func (m *StickerSet_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StickerSet_Data.Unmarshal(m, b) } -func (m *DraftMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DraftMessage_Data.Marshal(b, m, deterministic) +func (m *StickerSet_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StickerSet_Data.Marshal(b, m, deterministic) } -func (dst *DraftMessage_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_DraftMessage_Data.Merge(dst, src) +func (dst *StickerSet_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_StickerSet_Data.Merge(dst, src) } -func (m *DraftMessage_Data) XXX_Size() int { - return xxx_messageInfo_DraftMessage_Data.Size(m) +func (m *StickerSet_Data) XXX_Size() int { + return xxx_messageInfo_StickerSet_Data.Size(m) } -func (m *DraftMessage_Data) XXX_DiscardUnknown() { - xxx_messageInfo_DraftMessage_Data.DiscardUnknown(m) +func (m *StickerSet_Data) XXX_DiscardUnknown() { + xxx_messageInfo_StickerSet_Data.DiscardUnknown(m) } -var xxx_messageInfo_DraftMessage_Data proto.InternalMessageInfo +var xxx_messageInfo_StickerSet_Data proto.InternalMessageInfo -func (m *DraftMessage_Data) GetDate() int32 { +func (m *StickerSet_Data) GetArchived() bool { if m != nil { - return m.Date + return m.Archived } - return 0 + return false } -func (m *DraftMessage_Data) GetNoWebpage() bool { +func (m *StickerSet_Data) GetOfficial() bool { if m != nil { - return m.NoWebpage + return m.Official } return false } -func (m *DraftMessage_Data) GetReplyToMsgId() int32 { +func (m *StickerSet_Data) GetMasks() bool { if m != nil { - return m.ReplyToMsgId + return m.Masks } - return 0 + return false } -func (m *DraftMessage_Data) GetMessage() string { +func (m *StickerSet_Data) GetInstalledDate() int32 { if m != nil { - return m.Message + return m.InstalledDate } - return "" + return 0 } -func (m *DraftMessage_Data) GetEntities() []*MessageEntity { +func (m *StickerSet_Data) GetId() int64 { if m != nil { - return m.Entities + return m.Id } - return nil -} - -type DraftMessage struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *DraftMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return 0 } -func (m *DraftMessage) Reset() { *m = DraftMessage{} } -func (m *DraftMessage) String() string { return proto.CompactTextString(m) } -func (*DraftMessage) ProtoMessage() {} -func (*DraftMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{426} -} -func (m *DraftMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DraftMessage.Unmarshal(m, b) -} -func (m *DraftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DraftMessage.Marshal(b, m, deterministic) -} -func (dst *DraftMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_DraftMessage.Merge(dst, src) -} -func (m *DraftMessage) XXX_Size() int { - return xxx_messageInfo_DraftMessage.Size(m) -} -func (m *DraftMessage) XXX_DiscardUnknown() { - xxx_messageInfo_DraftMessage.DiscardUnknown(m) +func (m *StickerSet_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 } -var xxx_messageInfo_DraftMessage proto.InternalMessageInfo - -func (m *DraftMessage) GetConstructor() TLConstructor { +func (m *StickerSet_Data) GetTitle() string { if m != nil { - return m.Constructor + return m.Title } - return TLConstructor_CRC32_UNKNOWN + return "" } -func (m *DraftMessage) GetData2() *DraftMessage_Data { +func (m *StickerSet_Data) GetShortName() string { if m != nil { - return m.Data2 + return m.ShortName } - return nil + return "" } -// draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; -type TLDraftMessageEmpty struct { - Data2 *DraftMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *StickerSet_Data) GetCount() int32 { + if m != nil { + return m.Count + } + return 0 } -func (m *TLDraftMessageEmpty) Reset() { *m = TLDraftMessageEmpty{} } -func (m *TLDraftMessageEmpty) String() string { return proto.CompactTextString(m) } -func (*TLDraftMessageEmpty) ProtoMessage() {} -func (*TLDraftMessageEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{427} +func (m *StickerSet_Data) GetHash() int32 { + if m != nil { + return m.Hash + } + return 0 } -func (m *TLDraftMessageEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDraftMessageEmpty.Unmarshal(m, b) + +type StickerSet struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *StickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDraftMessageEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDraftMessageEmpty.Marshal(b, m, deterministic) + +func (m *StickerSet) Reset() { *m = StickerSet{} } +func (m *StickerSet) String() string { return proto.CompactTextString(m) } +func (*StickerSet) ProtoMessage() {} +func (*StickerSet) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{388} } -func (dst *TLDraftMessageEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDraftMessageEmpty.Merge(dst, src) +func (m *StickerSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StickerSet.Unmarshal(m, b) } -func (m *TLDraftMessageEmpty) XXX_Size() int { - return xxx_messageInfo_TLDraftMessageEmpty.Size(m) +func (m *StickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StickerSet.Marshal(b, m, deterministic) } -func (m *TLDraftMessageEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLDraftMessageEmpty.DiscardUnknown(m) +func (dst *StickerSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_StickerSet.Merge(dst, src) +} +func (m *StickerSet) XXX_Size() int { + return xxx_messageInfo_StickerSet.Size(m) +} +func (m *StickerSet) XXX_DiscardUnknown() { + xxx_messageInfo_StickerSet.DiscardUnknown(m) } -var xxx_messageInfo_TLDraftMessageEmpty proto.InternalMessageInfo +var xxx_messageInfo_StickerSet proto.InternalMessageInfo -func (m *TLDraftMessageEmpty) GetData2() *DraftMessage_Data { +func (m *StickerSet) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *StickerSet) GetData2() *StickerSet_Data { if m != nil { return m.Data2 } return nil } -// draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector date:int = DraftMessage; -type TLDraftMessage struct { - Data2 *DraftMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// stickerSet#5585a139 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet; +type TLStickerSet struct { + Data2 *StickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDraftMessage) Reset() { *m = TLDraftMessage{} } -func (m *TLDraftMessage) String() string { return proto.CompactTextString(m) } -func (*TLDraftMessage) ProtoMessage() {} -func (*TLDraftMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{428} +func (m *TLStickerSet) Reset() { *m = TLStickerSet{} } +func (m *TLStickerSet) String() string { return proto.CompactTextString(m) } +func (*TLStickerSet) ProtoMessage() {} +func (*TLStickerSet) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{389} } -func (m *TLDraftMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDraftMessage.Unmarshal(m, b) +func (m *TLStickerSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStickerSet.Unmarshal(m, b) } -func (m *TLDraftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDraftMessage.Marshal(b, m, deterministic) +func (m *TLStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStickerSet.Marshal(b, m, deterministic) } -func (dst *TLDraftMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDraftMessage.Merge(dst, src) +func (dst *TLStickerSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStickerSet.Merge(dst, src) } -func (m *TLDraftMessage) XXX_Size() int { - return xxx_messageInfo_TLDraftMessage.Size(m) +func (m *TLStickerSet) XXX_Size() int { + return xxx_messageInfo_TLStickerSet.Size(m) } -func (m *TLDraftMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLDraftMessage.DiscardUnknown(m) +func (m *TLStickerSet) XXX_DiscardUnknown() { + xxx_messageInfo_TLStickerSet.DiscardUnknown(m) } -var xxx_messageInfo_TLDraftMessage proto.InternalMessageInfo +var xxx_messageInfo_TLStickerSet proto.InternalMessageInfo -func (m *TLDraftMessage) GetData2() *DraftMessage_Data { +func (m *TLStickerSet) GetData2() *StickerSet_Data { if m != nil { return m.Data2 } @@ -20473,190 +19579,198 @@ func (m *TLDraftMessage) GetData2() *DraftMessage_Data { } // ///////////////////////////////////////////////////////////////////////////// -// messages_RecentStickers <-- -// + TL_messages_recentStickersNotModified -// + TL_messages_recentStickers +// EncryptedMessage <-- +// + TL_encryptedMessage +// + TL_encryptedMessageService // -type Messages_RecentStickers_Data struct { - Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - Packs []*StickerPack `protobuf:"bytes,2,rep,name=packs,proto3" json:"packs,omitempty"` - Stickers []*Document `protobuf:"bytes,3,rep,name=stickers,proto3" json:"stickers,omitempty"` - Dates []int32 `protobuf:"varint,4,rep,packed,name=dates,proto3" json:"dates,omitempty"` +type EncryptedMessage_Data struct { + RandomId int64 `protobuf:"varint,1,opt,name=random_id,json=randomId,proto3" json:"random_id,omitempty"` + ChatId int32 `protobuf:"varint,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` + Bytes []byte `protobuf:"bytes,4,opt,name=bytes,proto3" json:"bytes,omitempty"` + File *EncryptedFile `protobuf:"bytes,5,opt,name=file,proto3" json:"file,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Messages_RecentStickers_Data) Reset() { *m = Messages_RecentStickers_Data{} } -func (m *Messages_RecentStickers_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_RecentStickers_Data) ProtoMessage() {} -func (*Messages_RecentStickers_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{429} +func (m *EncryptedMessage_Data) Reset() { *m = EncryptedMessage_Data{} } +func (m *EncryptedMessage_Data) String() string { return proto.CompactTextString(m) } +func (*EncryptedMessage_Data) ProtoMessage() {} +func (*EncryptedMessage_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{390} } -func (m *Messages_RecentStickers_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_RecentStickers_Data.Unmarshal(m, b) +func (m *EncryptedMessage_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EncryptedMessage_Data.Unmarshal(m, b) } -func (m *Messages_RecentStickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_RecentStickers_Data.Marshal(b, m, deterministic) +func (m *EncryptedMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EncryptedMessage_Data.Marshal(b, m, deterministic) } -func (dst *Messages_RecentStickers_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_RecentStickers_Data.Merge(dst, src) +func (dst *EncryptedMessage_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedMessage_Data.Merge(dst, src) } -func (m *Messages_RecentStickers_Data) XXX_Size() int { - return xxx_messageInfo_Messages_RecentStickers_Data.Size(m) +func (m *EncryptedMessage_Data) XXX_Size() int { + return xxx_messageInfo_EncryptedMessage_Data.Size(m) } -func (m *Messages_RecentStickers_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_RecentStickers_Data.DiscardUnknown(m) +func (m *EncryptedMessage_Data) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptedMessage_Data.DiscardUnknown(m) } -var xxx_messageInfo_Messages_RecentStickers_Data proto.InternalMessageInfo +var xxx_messageInfo_EncryptedMessage_Data proto.InternalMessageInfo -func (m *Messages_RecentStickers_Data) GetHash() int32 { +func (m *EncryptedMessage_Data) GetRandomId() int64 { if m != nil { - return m.Hash + return m.RandomId } return 0 } -func (m *Messages_RecentStickers_Data) GetPacks() []*StickerPack { +func (m *EncryptedMessage_Data) GetChatId() int32 { if m != nil { - return m.Packs + return m.ChatId } - return nil + return 0 } -func (m *Messages_RecentStickers_Data) GetStickers() []*Document { +func (m *EncryptedMessage_Data) GetDate() int32 { if m != nil { - return m.Stickers + return m.Date + } + return 0 +} + +func (m *EncryptedMessage_Data) GetBytes() []byte { + if m != nil { + return m.Bytes } return nil } -func (m *Messages_RecentStickers_Data) GetDates() []int32 { +func (m *EncryptedMessage_Data) GetFile() *EncryptedFile { if m != nil { - return m.Dates + return m.File } return nil } -type Messages_RecentStickers struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_RecentStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type EncryptedMessage struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *EncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_RecentStickers) Reset() { *m = Messages_RecentStickers{} } -func (m *Messages_RecentStickers) String() string { return proto.CompactTextString(m) } -func (*Messages_RecentStickers) ProtoMessage() {} -func (*Messages_RecentStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{430} +func (m *EncryptedMessage) Reset() { *m = EncryptedMessage{} } +func (m *EncryptedMessage) String() string { return proto.CompactTextString(m) } +func (*EncryptedMessage) ProtoMessage() {} +func (*EncryptedMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{391} } -func (m *Messages_RecentStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_RecentStickers.Unmarshal(m, b) +func (m *EncryptedMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EncryptedMessage.Unmarshal(m, b) } -func (m *Messages_RecentStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_RecentStickers.Marshal(b, m, deterministic) +func (m *EncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EncryptedMessage.Marshal(b, m, deterministic) } -func (dst *Messages_RecentStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_RecentStickers.Merge(dst, src) +func (dst *EncryptedMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedMessage.Merge(dst, src) } -func (m *Messages_RecentStickers) XXX_Size() int { - return xxx_messageInfo_Messages_RecentStickers.Size(m) +func (m *EncryptedMessage) XXX_Size() int { + return xxx_messageInfo_EncryptedMessage.Size(m) } -func (m *Messages_RecentStickers) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_RecentStickers.DiscardUnknown(m) +func (m *EncryptedMessage) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptedMessage.DiscardUnknown(m) } -var xxx_messageInfo_Messages_RecentStickers proto.InternalMessageInfo +var xxx_messageInfo_EncryptedMessage proto.InternalMessageInfo -func (m *Messages_RecentStickers) GetConstructor() TLConstructor { +func (m *EncryptedMessage) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_RecentStickers) GetData2() *Messages_RecentStickers_Data { +func (m *EncryptedMessage) GetData2() *EncryptedMessage_Data { if m != nil { return m.Data2 } return nil } -// messages.recentStickersNotModified#b17f890 = messages.RecentStickers; -type TLMessagesRecentStickersNotModified struct { - Data2 *Messages_RecentStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage; +type TLEncryptedMessage struct { + Data2 *EncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesRecentStickersNotModified) Reset() { *m = TLMessagesRecentStickersNotModified{} } -func (m *TLMessagesRecentStickersNotModified) String() string { return proto.CompactTextString(m) } -func (*TLMessagesRecentStickersNotModified) ProtoMessage() {} -func (*TLMessagesRecentStickersNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{431} +func (m *TLEncryptedMessage) Reset() { *m = TLEncryptedMessage{} } +func (m *TLEncryptedMessage) String() string { return proto.CompactTextString(m) } +func (*TLEncryptedMessage) ProtoMessage() {} +func (*TLEncryptedMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{392} } -func (m *TLMessagesRecentStickersNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesRecentStickersNotModified.Unmarshal(m, b) +func (m *TLEncryptedMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLEncryptedMessage.Unmarshal(m, b) } -func (m *TLMessagesRecentStickersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesRecentStickersNotModified.Marshal(b, m, deterministic) +func (m *TLEncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLEncryptedMessage.Marshal(b, m, deterministic) } -func (dst *TLMessagesRecentStickersNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesRecentStickersNotModified.Merge(dst, src) +func (dst *TLEncryptedMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLEncryptedMessage.Merge(dst, src) } -func (m *TLMessagesRecentStickersNotModified) XXX_Size() int { - return xxx_messageInfo_TLMessagesRecentStickersNotModified.Size(m) +func (m *TLEncryptedMessage) XXX_Size() int { + return xxx_messageInfo_TLEncryptedMessage.Size(m) } -func (m *TLMessagesRecentStickersNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesRecentStickersNotModified.DiscardUnknown(m) +func (m *TLEncryptedMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLEncryptedMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesRecentStickersNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLEncryptedMessage proto.InternalMessageInfo -func (m *TLMessagesRecentStickersNotModified) GetData2() *Messages_RecentStickers_Data { +func (m *TLEncryptedMessage) GetData2() *EncryptedMessage_Data { if m != nil { return m.Data2 } return nil } -// messages.recentStickers#22f3afb3 hash:int packs:Vector stickers:Vector dates:Vector = messages.RecentStickers; -type TLMessagesRecentStickers struct { - Data2 *Messages_RecentStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage; +type TLEncryptedMessageService struct { + Data2 *EncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesRecentStickers) Reset() { *m = TLMessagesRecentStickers{} } -func (m *TLMessagesRecentStickers) String() string { return proto.CompactTextString(m) } -func (*TLMessagesRecentStickers) ProtoMessage() {} -func (*TLMessagesRecentStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{432} +func (m *TLEncryptedMessageService) Reset() { *m = TLEncryptedMessageService{} } +func (m *TLEncryptedMessageService) String() string { return proto.CompactTextString(m) } +func (*TLEncryptedMessageService) ProtoMessage() {} +func (*TLEncryptedMessageService) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{393} } -func (m *TLMessagesRecentStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesRecentStickers.Unmarshal(m, b) +func (m *TLEncryptedMessageService) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLEncryptedMessageService.Unmarshal(m, b) } -func (m *TLMessagesRecentStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesRecentStickers.Marshal(b, m, deterministic) +func (m *TLEncryptedMessageService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLEncryptedMessageService.Marshal(b, m, deterministic) } -func (dst *TLMessagesRecentStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesRecentStickers.Merge(dst, src) +func (dst *TLEncryptedMessageService) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLEncryptedMessageService.Merge(dst, src) } -func (m *TLMessagesRecentStickers) XXX_Size() int { - return xxx_messageInfo_TLMessagesRecentStickers.Size(m) +func (m *TLEncryptedMessageService) XXX_Size() int { + return xxx_messageInfo_TLEncryptedMessageService.Size(m) } -func (m *TLMessagesRecentStickers) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesRecentStickers.DiscardUnknown(m) +func (m *TLEncryptedMessageService) XXX_DiscardUnknown() { + xxx_messageInfo_TLEncryptedMessageService.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesRecentStickers proto.InternalMessageInfo +var xxx_messageInfo_TLEncryptedMessageService proto.InternalMessageInfo -func (m *TLMessagesRecentStickers) GetData2() *Messages_RecentStickers_Data { +func (m *TLEncryptedMessageService) GetData2() *EncryptedMessage_Data { if m != nil { return m.Data2 } @@ -20664,174 +19778,182 @@ func (m *TLMessagesRecentStickers) GetData2() *Messages_RecentStickers_Data { } // ///////////////////////////////////////////////////////////////////////////// -// payments_PaymentResult <-- -// + TL_payments_paymentResult -// + TL_payments_paymentVerficationNeeded +// StickerSetCovered <-- +// + TL_stickerSetCovered +// + TL_stickerSetMultiCovered // -type Payments_PaymentResult_Data struct { - Updates *Updates `protobuf:"bytes,1,opt,name=updates,proto3" json:"updates,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type StickerSetCovered_Data struct { + Set *StickerSet `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"` + Cover *Document `protobuf:"bytes,2,opt,name=cover,proto3" json:"cover,omitempty"` + Covers []*Document `protobuf:"bytes,3,rep,name=covers,proto3" json:"covers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Payments_PaymentResult_Data) Reset() { *m = Payments_PaymentResult_Data{} } -func (m *Payments_PaymentResult_Data) String() string { return proto.CompactTextString(m) } -func (*Payments_PaymentResult_Data) ProtoMessage() {} -func (*Payments_PaymentResult_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{433} +func (m *StickerSetCovered_Data) Reset() { *m = StickerSetCovered_Data{} } +func (m *StickerSetCovered_Data) String() string { return proto.CompactTextString(m) } +func (*StickerSetCovered_Data) ProtoMessage() {} +func (*StickerSetCovered_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{394} } -func (m *Payments_PaymentResult_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_PaymentResult_Data.Unmarshal(m, b) +func (m *StickerSetCovered_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StickerSetCovered_Data.Unmarshal(m, b) } -func (m *Payments_PaymentResult_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_PaymentResult_Data.Marshal(b, m, deterministic) +func (m *StickerSetCovered_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StickerSetCovered_Data.Marshal(b, m, deterministic) } -func (dst *Payments_PaymentResult_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_PaymentResult_Data.Merge(dst, src) +func (dst *StickerSetCovered_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_StickerSetCovered_Data.Merge(dst, src) } -func (m *Payments_PaymentResult_Data) XXX_Size() int { - return xxx_messageInfo_Payments_PaymentResult_Data.Size(m) +func (m *StickerSetCovered_Data) XXX_Size() int { + return xxx_messageInfo_StickerSetCovered_Data.Size(m) } -func (m *Payments_PaymentResult_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_PaymentResult_Data.DiscardUnknown(m) +func (m *StickerSetCovered_Data) XXX_DiscardUnknown() { + xxx_messageInfo_StickerSetCovered_Data.DiscardUnknown(m) } -var xxx_messageInfo_Payments_PaymentResult_Data proto.InternalMessageInfo +var xxx_messageInfo_StickerSetCovered_Data proto.InternalMessageInfo -func (m *Payments_PaymentResult_Data) GetUpdates() *Updates { +func (m *StickerSetCovered_Data) GetSet() *StickerSet { if m != nil { - return m.Updates + return m.Set } return nil } -func (m *Payments_PaymentResult_Data) GetUrl() string { +func (m *StickerSetCovered_Data) GetCover() *Document { if m != nil { - return m.Url + return m.Cover } - return "" + return nil } -type Payments_PaymentResult struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Payments_PaymentResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *StickerSetCovered_Data) GetCovers() []*Document { + if m != nil { + return m.Covers + } + return nil } -func (m *Payments_PaymentResult) Reset() { *m = Payments_PaymentResult{} } -func (m *Payments_PaymentResult) String() string { return proto.CompactTextString(m) } -func (*Payments_PaymentResult) ProtoMessage() {} -func (*Payments_PaymentResult) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{434} +type StickerSetCovered struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *StickerSetCovered_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Payments_PaymentResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_PaymentResult.Unmarshal(m, b) + +func (m *StickerSetCovered) Reset() { *m = StickerSetCovered{} } +func (m *StickerSetCovered) String() string { return proto.CompactTextString(m) } +func (*StickerSetCovered) ProtoMessage() {} +func (*StickerSetCovered) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{395} } -func (m *Payments_PaymentResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_PaymentResult.Marshal(b, m, deterministic) +func (m *StickerSetCovered) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StickerSetCovered.Unmarshal(m, b) } -func (dst *Payments_PaymentResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_PaymentResult.Merge(dst, src) +func (m *StickerSetCovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StickerSetCovered.Marshal(b, m, deterministic) } -func (m *Payments_PaymentResult) XXX_Size() int { - return xxx_messageInfo_Payments_PaymentResult.Size(m) +func (dst *StickerSetCovered) XXX_Merge(src proto.Message) { + xxx_messageInfo_StickerSetCovered.Merge(dst, src) } -func (m *Payments_PaymentResult) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_PaymentResult.DiscardUnknown(m) +func (m *StickerSetCovered) XXX_Size() int { + return xxx_messageInfo_StickerSetCovered.Size(m) +} +func (m *StickerSetCovered) XXX_DiscardUnknown() { + xxx_messageInfo_StickerSetCovered.DiscardUnknown(m) } -var xxx_messageInfo_Payments_PaymentResult proto.InternalMessageInfo +var xxx_messageInfo_StickerSetCovered proto.InternalMessageInfo -func (m *Payments_PaymentResult) GetConstructor() TLConstructor { +func (m *StickerSetCovered) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Payments_PaymentResult) GetData2() *Payments_PaymentResult_Data { +func (m *StickerSetCovered) GetData2() *StickerSetCovered_Data { if m != nil { return m.Data2 } return nil } -// payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult; -type TLPaymentsPaymentResult struct { - Data2 *Payments_PaymentResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered; +type TLStickerSetCovered struct { + Data2 *StickerSetCovered_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPaymentsPaymentResult) Reset() { *m = TLPaymentsPaymentResult{} } -func (m *TLPaymentsPaymentResult) String() string { return proto.CompactTextString(m) } -func (*TLPaymentsPaymentResult) ProtoMessage() {} -func (*TLPaymentsPaymentResult) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{435} +func (m *TLStickerSetCovered) Reset() { *m = TLStickerSetCovered{} } +func (m *TLStickerSetCovered) String() string { return proto.CompactTextString(m) } +func (*TLStickerSetCovered) ProtoMessage() {} +func (*TLStickerSetCovered) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{396} } -func (m *TLPaymentsPaymentResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPaymentsPaymentResult.Unmarshal(m, b) +func (m *TLStickerSetCovered) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStickerSetCovered.Unmarshal(m, b) } -func (m *TLPaymentsPaymentResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPaymentsPaymentResult.Marshal(b, m, deterministic) +func (m *TLStickerSetCovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStickerSetCovered.Marshal(b, m, deterministic) } -func (dst *TLPaymentsPaymentResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPaymentsPaymentResult.Merge(dst, src) +func (dst *TLStickerSetCovered) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStickerSetCovered.Merge(dst, src) } -func (m *TLPaymentsPaymentResult) XXX_Size() int { - return xxx_messageInfo_TLPaymentsPaymentResult.Size(m) +func (m *TLStickerSetCovered) XXX_Size() int { + return xxx_messageInfo_TLStickerSetCovered.Size(m) } -func (m *TLPaymentsPaymentResult) XXX_DiscardUnknown() { - xxx_messageInfo_TLPaymentsPaymentResult.DiscardUnknown(m) +func (m *TLStickerSetCovered) XXX_DiscardUnknown() { + xxx_messageInfo_TLStickerSetCovered.DiscardUnknown(m) } -var xxx_messageInfo_TLPaymentsPaymentResult proto.InternalMessageInfo +var xxx_messageInfo_TLStickerSetCovered proto.InternalMessageInfo -func (m *TLPaymentsPaymentResult) GetData2() *Payments_PaymentResult_Data { +func (m *TLStickerSetCovered) GetData2() *StickerSetCovered_Data { if m != nil { return m.Data2 } return nil } -// payments.paymentVerficationNeeded#6b56b921 url:string = payments.PaymentResult; -type TLPaymentsPaymentVerficationNeeded struct { - Data2 *Payments_PaymentResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered; +type TLStickerSetMultiCovered struct { + Data2 *StickerSetCovered_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPaymentsPaymentVerficationNeeded) Reset() { *m = TLPaymentsPaymentVerficationNeeded{} } -func (m *TLPaymentsPaymentVerficationNeeded) String() string { return proto.CompactTextString(m) } -func (*TLPaymentsPaymentVerficationNeeded) ProtoMessage() {} -func (*TLPaymentsPaymentVerficationNeeded) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{436} +func (m *TLStickerSetMultiCovered) Reset() { *m = TLStickerSetMultiCovered{} } +func (m *TLStickerSetMultiCovered) String() string { return proto.CompactTextString(m) } +func (*TLStickerSetMultiCovered) ProtoMessage() {} +func (*TLStickerSetMultiCovered) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{397} } -func (m *TLPaymentsPaymentVerficationNeeded) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.Unmarshal(m, b) +func (m *TLStickerSetMultiCovered) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStickerSetMultiCovered.Unmarshal(m, b) } -func (m *TLPaymentsPaymentVerficationNeeded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.Marshal(b, m, deterministic) +func (m *TLStickerSetMultiCovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStickerSetMultiCovered.Marshal(b, m, deterministic) } -func (dst *TLPaymentsPaymentVerficationNeeded) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.Merge(dst, src) +func (dst *TLStickerSetMultiCovered) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStickerSetMultiCovered.Merge(dst, src) } -func (m *TLPaymentsPaymentVerficationNeeded) XXX_Size() int { - return xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.Size(m) +func (m *TLStickerSetMultiCovered) XXX_Size() int { + return xxx_messageInfo_TLStickerSetMultiCovered.Size(m) } -func (m *TLPaymentsPaymentVerficationNeeded) XXX_DiscardUnknown() { - xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.DiscardUnknown(m) +func (m *TLStickerSetMultiCovered) XXX_DiscardUnknown() { + xxx_messageInfo_TLStickerSetMultiCovered.DiscardUnknown(m) } -var xxx_messageInfo_TLPaymentsPaymentVerficationNeeded proto.InternalMessageInfo +var xxx_messageInfo_TLStickerSetMultiCovered proto.InternalMessageInfo -func (m *TLPaymentsPaymentVerficationNeeded) GetData2() *Payments_PaymentResult_Data { +func (m *TLStickerSetMultiCovered) GetData2() *StickerSetCovered_Data { if m != nil { return m.Data2 } @@ -20839,1499 +19961,1319 @@ func (m *TLPaymentsPaymentVerficationNeeded) GetData2() *Payments_PaymentResult_ } // ///////////////////////////////////////////////////////////////////////////// -// InputMedia <-- -// + TL_inputMediaPhotoLayer46 -// + TL_inputMediaEmpty -// + TL_inputMediaUploadedPhoto -// + TL_inputMediaPhoto -// + TL_inputMediaGeoPoint -// + TL_inputMediaContact -// + TL_inputMediaUploadedDocument -// + TL_inputMediaDocument -// + TL_inputMediaVenue -// + TL_inputMediaGifExternal -// + TL_inputMediaPhotoExternal -// + TL_inputMediaDocumentExternal -// + TL_inputMediaGame -// + TL_inputMediaInvoice -// + TL_inputMediaGeoLive +// InputPhoneCall <-- +// + TL_inputPhoneCall // -type InputMedia_Data struct { - Id_1 *InputPhoto `protobuf:"bytes,1,opt,name=id_1,json=id1,proto3" json:"id_1,omitempty"` - Caption string `protobuf:"bytes,2,opt,name=caption,proto3" json:"caption,omitempty"` - File *InputFile `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` - Stickers []*InputDocument `protobuf:"bytes,4,rep,name=stickers,proto3" json:"stickers,omitempty"` - TtlSeconds int32 `protobuf:"varint,5,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` - GeoPoint *InputGeoPoint `protobuf:"bytes,6,opt,name=geo_point,json=geoPoint,proto3" json:"geo_point,omitempty"` - PhoneNumber string `protobuf:"bytes,7,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` - FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Vcard string `protobuf:"bytes,10,opt,name=vcard,proto3" json:"vcard,omitempty"` - NosoundVideo bool `protobuf:"varint,11,opt,name=nosound_video,json=nosoundVideo,proto3" json:"nosound_video,omitempty"` - Thumb *InputFile `protobuf:"bytes,12,opt,name=thumb,proto3" json:"thumb,omitempty"` - MimeType string `protobuf:"bytes,13,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - Attributes []*DocumentAttribute `protobuf:"bytes,14,rep,name=attributes,proto3" json:"attributes,omitempty"` - Id_15 *InputDocument `protobuf:"bytes,15,opt,name=id_15,json=id15,proto3" json:"id_15,omitempty"` - Title string `protobuf:"bytes,16,opt,name=title,proto3" json:"title,omitempty"` - Address string `protobuf:"bytes,17,opt,name=address,proto3" json:"address,omitempty"` - Provider string `protobuf:"bytes,18,opt,name=provider,proto3" json:"provider,omitempty"` - VenueId string `protobuf:"bytes,19,opt,name=venue_id,json=venueId,proto3" json:"venue_id,omitempty"` - VenueType string `protobuf:"bytes,20,opt,name=venue_type,json=venueType,proto3" json:"venue_type,omitempty"` - Url string `protobuf:"bytes,21,opt,name=url,proto3" json:"url,omitempty"` - Q string `protobuf:"bytes,22,opt,name=q,proto3" json:"q,omitempty"` - Id_23 *InputGame `protobuf:"bytes,23,opt,name=id_23,json=id23,proto3" json:"id_23,omitempty"` - Description string `protobuf:"bytes,24,opt,name=description,proto3" json:"description,omitempty"` - Photo *InputWebDocument `protobuf:"bytes,25,opt,name=photo,proto3" json:"photo,omitempty"` - Invoice *Invoice `protobuf:"bytes,26,opt,name=invoice,proto3" json:"invoice,omitempty"` - Payload []byte `protobuf:"bytes,27,opt,name=payload,proto3" json:"payload,omitempty"` - ProviderData *DataJSON `protobuf:"bytes,28,opt,name=provider_data,json=providerData,proto3" json:"provider_data,omitempty"` - StartParam string `protobuf:"bytes,29,opt,name=start_param,json=startParam,proto3" json:"start_param,omitempty"` - Period int32 `protobuf:"varint,30,opt,name=period,proto3" json:"period,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputPhoneCall_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputMedia_Data) Reset() { *m = InputMedia_Data{} } -func (m *InputMedia_Data) String() string { return proto.CompactTextString(m) } -func (*InputMedia_Data) ProtoMessage() {} -func (*InputMedia_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{437} +func (m *InputPhoneCall_Data) Reset() { *m = InputPhoneCall_Data{} } +func (m *InputPhoneCall_Data) String() string { return proto.CompactTextString(m) } +func (*InputPhoneCall_Data) ProtoMessage() {} +func (*InputPhoneCall_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{398} } -func (m *InputMedia_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputMedia_Data.Unmarshal(m, b) +func (m *InputPhoneCall_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPhoneCall_Data.Unmarshal(m, b) } -func (m *InputMedia_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputMedia_Data.Marshal(b, m, deterministic) +func (m *InputPhoneCall_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPhoneCall_Data.Marshal(b, m, deterministic) } -func (dst *InputMedia_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputMedia_Data.Merge(dst, src) +func (dst *InputPhoneCall_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPhoneCall_Data.Merge(dst, src) } -func (m *InputMedia_Data) XXX_Size() int { - return xxx_messageInfo_InputMedia_Data.Size(m) +func (m *InputPhoneCall_Data) XXX_Size() int { + return xxx_messageInfo_InputPhoneCall_Data.Size(m) } -func (m *InputMedia_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputMedia_Data.DiscardUnknown(m) +func (m *InputPhoneCall_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputPhoneCall_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputMedia_Data proto.InternalMessageInfo +var xxx_messageInfo_InputPhoneCall_Data proto.InternalMessageInfo -func (m *InputMedia_Data) GetId_1() *InputPhoto { +func (m *InputPhoneCall_Data) GetId() int64 { if m != nil { - return m.Id_1 + return m.Id } - return nil + return 0 } -func (m *InputMedia_Data) GetCaption() string { +func (m *InputPhoneCall_Data) GetAccessHash() int64 { if m != nil { - return m.Caption + return m.AccessHash } - return "" + return 0 } -func (m *InputMedia_Data) GetFile() *InputFile { - if m != nil { - return m.File - } - return nil +type InputPhoneCall struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputPhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputMedia_Data) GetStickers() []*InputDocument { - if m != nil { - return m.Stickers - } - return nil +func (m *InputPhoneCall) Reset() { *m = InputPhoneCall{} } +func (m *InputPhoneCall) String() string { return proto.CompactTextString(m) } +func (*InputPhoneCall) ProtoMessage() {} +func (*InputPhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{399} } - -func (m *InputMedia_Data) GetTtlSeconds() int32 { - if m != nil { - return m.TtlSeconds - } - return 0 +func (m *InputPhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPhoneCall.Unmarshal(m, b) } - -func (m *InputMedia_Data) GetGeoPoint() *InputGeoPoint { - if m != nil { - return m.GeoPoint - } - return nil +func (m *InputPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPhoneCall.Marshal(b, m, deterministic) } - -func (m *InputMedia_Data) GetPhoneNumber() string { - if m != nil { - return m.PhoneNumber - } - return "" +func (dst *InputPhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPhoneCall.Merge(dst, src) } - -func (m *InputMedia_Data) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" +func (m *InputPhoneCall) XXX_Size() int { + return xxx_messageInfo_InputPhoneCall.Size(m) } - -func (m *InputMedia_Data) GetLastName() string { - if m != nil { - return m.LastName - } - return "" +func (m *InputPhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_InputPhoneCall.DiscardUnknown(m) } -func (m *InputMedia_Data) GetVcard() string { - if m != nil { - return m.Vcard - } - return "" -} +var xxx_messageInfo_InputPhoneCall proto.InternalMessageInfo -func (m *InputMedia_Data) GetNosoundVideo() bool { +func (m *InputPhoneCall) GetConstructor() TLConstructor { if m != nil { - return m.NosoundVideo + return m.Constructor } - return false + return TLConstructor_CRC32_UNKNOWN } -func (m *InputMedia_Data) GetThumb() *InputFile { +func (m *InputPhoneCall) GetData2() *InputPhoneCall_Data { if m != nil { - return m.Thumb + return m.Data2 } return nil } -func (m *InputMedia_Data) GetMimeType() string { - if m != nil { - return m.MimeType - } - return "" +// inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall; +type TLInputPhoneCall struct { + Data2 *InputPhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputMedia_Data) GetAttributes() []*DocumentAttribute { - if m != nil { - return m.Attributes - } - return nil +func (m *TLInputPhoneCall) Reset() { *m = TLInputPhoneCall{} } +func (m *TLInputPhoneCall) String() string { return proto.CompactTextString(m) } +func (*TLInputPhoneCall) ProtoMessage() {} +func (*TLInputPhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{400} } - -func (m *InputMedia_Data) GetId_15() *InputDocument { - if m != nil { - return m.Id_15 - } - return nil +func (m *TLInputPhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPhoneCall.Unmarshal(m, b) } - -func (m *InputMedia_Data) GetTitle() string { - if m != nil { - return m.Title - } - return "" +func (m *TLInputPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPhoneCall.Marshal(b, m, deterministic) } - -func (m *InputMedia_Data) GetAddress() string { - if m != nil { - return m.Address - } - return "" +func (dst *TLInputPhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPhoneCall.Merge(dst, src) } - -func (m *InputMedia_Data) GetProvider() string { - if m != nil { - return m.Provider - } - return "" +func (m *TLInputPhoneCall) XXX_Size() int { + return xxx_messageInfo_TLInputPhoneCall.Size(m) } - -func (m *InputMedia_Data) GetVenueId() string { - if m != nil { - return m.VenueId - } - return "" +func (m *TLInputPhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPhoneCall.DiscardUnknown(m) } -func (m *InputMedia_Data) GetVenueType() string { - if m != nil { - return m.VenueType - } - return "" -} +var xxx_messageInfo_TLInputPhoneCall proto.InternalMessageInfo -func (m *InputMedia_Data) GetUrl() string { +func (m *TLInputPhoneCall) GetData2() *InputPhoneCall_Data { if m != nil { - return m.Url + return m.Data2 } - return "" + return nil } -func (m *InputMedia_Data) GetQ() string { - if m != nil { - return m.Q - } - return "" +// ///////////////////////////////////////////////////////////////////////////// +// help_PassportConfig <-- +// + TL_help_passportConfigNotModified +// + TL_help_passportConfig +// +type Help_PassportConfig_Data struct { + Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + CountriesLangs *DataJSON `protobuf:"bytes,2,opt,name=countries_langs,json=countriesLangs,proto3" json:"countries_langs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputMedia_Data) GetId_23() *InputGame { - if m != nil { - return m.Id_23 - } - return nil +func (m *Help_PassportConfig_Data) Reset() { *m = Help_PassportConfig_Data{} } +func (m *Help_PassportConfig_Data) String() string { return proto.CompactTextString(m) } +func (*Help_PassportConfig_Data) ProtoMessage() {} +func (*Help_PassportConfig_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{401} } - -func (m *InputMedia_Data) GetDescription() string { - if m != nil { - return m.Description - } - return "" +func (m *Help_PassportConfig_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_PassportConfig_Data.Unmarshal(m, b) } - -func (m *InputMedia_Data) GetPhoto() *InputWebDocument { - if m != nil { - return m.Photo - } - return nil +func (m *Help_PassportConfig_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_PassportConfig_Data.Marshal(b, m, deterministic) } - -func (m *InputMedia_Data) GetInvoice() *Invoice { - if m != nil { - return m.Invoice - } - return nil +func (dst *Help_PassportConfig_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_PassportConfig_Data.Merge(dst, src) } - -func (m *InputMedia_Data) GetPayload() []byte { - if m != nil { - return m.Payload - } - return nil +func (m *Help_PassportConfig_Data) XXX_Size() int { + return xxx_messageInfo_Help_PassportConfig_Data.Size(m) } - -func (m *InputMedia_Data) GetProviderData() *DataJSON { - if m != nil { - return m.ProviderData - } - return nil +func (m *Help_PassportConfig_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_PassportConfig_Data.DiscardUnknown(m) } -func (m *InputMedia_Data) GetStartParam() string { +var xxx_messageInfo_Help_PassportConfig_Data proto.InternalMessageInfo + +func (m *Help_PassportConfig_Data) GetHash() int32 { if m != nil { - return m.StartParam + return m.Hash } - return "" + return 0 } -func (m *InputMedia_Data) GetPeriod() int32 { +func (m *Help_PassportConfig_Data) GetCountriesLangs() *DataJSON { if m != nil { - return m.Period + return m.CountriesLangs } - return 0 + return nil } -type InputMedia struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_PassportConfig struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Help_PassportConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputMedia) Reset() { *m = InputMedia{} } -func (m *InputMedia) String() string { return proto.CompactTextString(m) } -func (*InputMedia) ProtoMessage() {} -func (*InputMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{438} +func (m *Help_PassportConfig) Reset() { *m = Help_PassportConfig{} } +func (m *Help_PassportConfig) String() string { return proto.CompactTextString(m) } +func (*Help_PassportConfig) ProtoMessage() {} +func (*Help_PassportConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{402} } -func (m *InputMedia) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputMedia.Unmarshal(m, b) +func (m *Help_PassportConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_PassportConfig.Unmarshal(m, b) } -func (m *InputMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputMedia.Marshal(b, m, deterministic) +func (m *Help_PassportConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_PassportConfig.Marshal(b, m, deterministic) } -func (dst *InputMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputMedia.Merge(dst, src) +func (dst *Help_PassportConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_PassportConfig.Merge(dst, src) } -func (m *InputMedia) XXX_Size() int { - return xxx_messageInfo_InputMedia.Size(m) +func (m *Help_PassportConfig) XXX_Size() int { + return xxx_messageInfo_Help_PassportConfig.Size(m) } -func (m *InputMedia) XXX_DiscardUnknown() { - xxx_messageInfo_InputMedia.DiscardUnknown(m) +func (m *Help_PassportConfig) XXX_DiscardUnknown() { + xxx_messageInfo_Help_PassportConfig.DiscardUnknown(m) } -var xxx_messageInfo_InputMedia proto.InternalMessageInfo +var xxx_messageInfo_Help_PassportConfig proto.InternalMessageInfo -func (m *InputMedia) GetConstructor() TLConstructor { +func (m *Help_PassportConfig) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputMedia) GetData2() *InputMedia_Data { +func (m *Help_PassportConfig) GetData2() *Help_PassportConfig_Data { if m != nil { return m.Data2 } return nil } -// inputMediaPhoto#e9bfb4f3 id:InputPhoto caption:string = InputMedia; -type TLInputMediaPhotoLayer46 struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.passportConfigNotModified#bfb9f457 = help.PassportConfig; +type TLHelpPassportConfigNotModified struct { + Data2 *Help_PassportConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaPhotoLayer46) Reset() { *m = TLInputMediaPhotoLayer46{} } -func (m *TLInputMediaPhotoLayer46) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaPhotoLayer46) ProtoMessage() {} -func (*TLInputMediaPhotoLayer46) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{439} +func (m *TLHelpPassportConfigNotModified) Reset() { *m = TLHelpPassportConfigNotModified{} } +func (m *TLHelpPassportConfigNotModified) String() string { return proto.CompactTextString(m) } +func (*TLHelpPassportConfigNotModified) ProtoMessage() {} +func (*TLHelpPassportConfigNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{403} } -func (m *TLInputMediaPhotoLayer46) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaPhotoLayer46.Unmarshal(m, b) +func (m *TLHelpPassportConfigNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpPassportConfigNotModified.Unmarshal(m, b) } -func (m *TLInputMediaPhotoLayer46) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaPhotoLayer46.Marshal(b, m, deterministic) +func (m *TLHelpPassportConfigNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpPassportConfigNotModified.Marshal(b, m, deterministic) } -func (dst *TLInputMediaPhotoLayer46) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaPhotoLayer46.Merge(dst, src) +func (dst *TLHelpPassportConfigNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpPassportConfigNotModified.Merge(dst, src) } -func (m *TLInputMediaPhotoLayer46) XXX_Size() int { - return xxx_messageInfo_TLInputMediaPhotoLayer46.Size(m) +func (m *TLHelpPassportConfigNotModified) XXX_Size() int { + return xxx_messageInfo_TLHelpPassportConfigNotModified.Size(m) } -func (m *TLInputMediaPhotoLayer46) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaPhotoLayer46.DiscardUnknown(m) +func (m *TLHelpPassportConfigNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpPassportConfigNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaPhotoLayer46 proto.InternalMessageInfo +var xxx_messageInfo_TLHelpPassportConfigNotModified proto.InternalMessageInfo -func (m *TLInputMediaPhotoLayer46) GetData2() *InputMedia_Data { +func (m *TLHelpPassportConfigNotModified) GetData2() *Help_PassportConfig_Data { if m != nil { return m.Data2 } return nil } -// inputMediaEmpty#9664f57f = InputMedia; -type TLInputMediaEmpty struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig; +type TLHelpPassportConfig struct { + Data2 *Help_PassportConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaEmpty) Reset() { *m = TLInputMediaEmpty{} } -func (m *TLInputMediaEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaEmpty) ProtoMessage() {} -func (*TLInputMediaEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{440} +func (m *TLHelpPassportConfig) Reset() { *m = TLHelpPassportConfig{} } +func (m *TLHelpPassportConfig) String() string { return proto.CompactTextString(m) } +func (*TLHelpPassportConfig) ProtoMessage() {} +func (*TLHelpPassportConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{404} } -func (m *TLInputMediaEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaEmpty.Unmarshal(m, b) +func (m *TLHelpPassportConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpPassportConfig.Unmarshal(m, b) } -func (m *TLInputMediaEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaEmpty.Marshal(b, m, deterministic) +func (m *TLHelpPassportConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpPassportConfig.Marshal(b, m, deterministic) } -func (dst *TLInputMediaEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaEmpty.Merge(dst, src) +func (dst *TLHelpPassportConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpPassportConfig.Merge(dst, src) } -func (m *TLInputMediaEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputMediaEmpty.Size(m) +func (m *TLHelpPassportConfig) XXX_Size() int { + return xxx_messageInfo_TLHelpPassportConfig.Size(m) } -func (m *TLInputMediaEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaEmpty.DiscardUnknown(m) +func (m *TLHelpPassportConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpPassportConfig.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLHelpPassportConfig proto.InternalMessageInfo -func (m *TLInputMediaEmpty) GetData2() *InputMedia_Data { +func (m *TLHelpPassportConfig) GetData2() *Help_PassportConfig_Data { if m != nil { return m.Data2 } return nil } -// inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; -type TLInputMediaUploadedPhoto struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// StickerPack <-- +// + TL_stickerPack +// +type StickerPack_Data struct { + Emoticon string `protobuf:"bytes,1,opt,name=emoticon,proto3" json:"emoticon,omitempty"` + Documents []int64 `protobuf:"varint,2,rep,packed,name=documents,proto3" json:"documents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaUploadedPhoto) Reset() { *m = TLInputMediaUploadedPhoto{} } -func (m *TLInputMediaUploadedPhoto) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaUploadedPhoto) ProtoMessage() {} -func (*TLInputMediaUploadedPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{441} +func (m *StickerPack_Data) Reset() { *m = StickerPack_Data{} } +func (m *StickerPack_Data) String() string { return proto.CompactTextString(m) } +func (*StickerPack_Data) ProtoMessage() {} +func (*StickerPack_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{405} } -func (m *TLInputMediaUploadedPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaUploadedPhoto.Unmarshal(m, b) +func (m *StickerPack_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StickerPack_Data.Unmarshal(m, b) } -func (m *TLInputMediaUploadedPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaUploadedPhoto.Marshal(b, m, deterministic) +func (m *StickerPack_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StickerPack_Data.Marshal(b, m, deterministic) } -func (dst *TLInputMediaUploadedPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaUploadedPhoto.Merge(dst, src) +func (dst *StickerPack_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_StickerPack_Data.Merge(dst, src) } -func (m *TLInputMediaUploadedPhoto) XXX_Size() int { - return xxx_messageInfo_TLInputMediaUploadedPhoto.Size(m) +func (m *StickerPack_Data) XXX_Size() int { + return xxx_messageInfo_StickerPack_Data.Size(m) } -func (m *TLInputMediaUploadedPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaUploadedPhoto.DiscardUnknown(m) +func (m *StickerPack_Data) XXX_DiscardUnknown() { + xxx_messageInfo_StickerPack_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaUploadedPhoto proto.InternalMessageInfo +var xxx_messageInfo_StickerPack_Data proto.InternalMessageInfo -func (m *TLInputMediaUploadedPhoto) GetData2() *InputMedia_Data { +func (m *StickerPack_Data) GetEmoticon() string { if m != nil { - return m.Data2 + return m.Emoticon + } + return "" +} + +func (m *StickerPack_Data) GetDocuments() []int64 { + if m != nil { + return m.Documents } return nil } -// inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia; -type TLInputMediaPhoto struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type StickerPack struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *StickerPack_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaPhoto) Reset() { *m = TLInputMediaPhoto{} } -func (m *TLInputMediaPhoto) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaPhoto) ProtoMessage() {} -func (*TLInputMediaPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{442} +func (m *StickerPack) Reset() { *m = StickerPack{} } +func (m *StickerPack) String() string { return proto.CompactTextString(m) } +func (*StickerPack) ProtoMessage() {} +func (*StickerPack) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{406} } -func (m *TLInputMediaPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaPhoto.Unmarshal(m, b) +func (m *StickerPack) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StickerPack.Unmarshal(m, b) } -func (m *TLInputMediaPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaPhoto.Marshal(b, m, deterministic) +func (m *StickerPack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StickerPack.Marshal(b, m, deterministic) } -func (dst *TLInputMediaPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaPhoto.Merge(dst, src) +func (dst *StickerPack) XXX_Merge(src proto.Message) { + xxx_messageInfo_StickerPack.Merge(dst, src) } -func (m *TLInputMediaPhoto) XXX_Size() int { - return xxx_messageInfo_TLInputMediaPhoto.Size(m) +func (m *StickerPack) XXX_Size() int { + return xxx_messageInfo_StickerPack.Size(m) } -func (m *TLInputMediaPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaPhoto.DiscardUnknown(m) +func (m *StickerPack) XXX_DiscardUnknown() { + xxx_messageInfo_StickerPack.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaPhoto proto.InternalMessageInfo +var xxx_messageInfo_StickerPack proto.InternalMessageInfo -func (m *TLInputMediaPhoto) GetData2() *InputMedia_Data { +func (m *StickerPack) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *StickerPack) GetData2() *StickerPack_Data { if m != nil { return m.Data2 } return nil } -// inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia; -type TLInputMediaGeoPoint struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack; +type TLStickerPack struct { + Data2 *StickerPack_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaGeoPoint) Reset() { *m = TLInputMediaGeoPoint{} } -func (m *TLInputMediaGeoPoint) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaGeoPoint) ProtoMessage() {} -func (*TLInputMediaGeoPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{443} +func (m *TLStickerPack) Reset() { *m = TLStickerPack{} } +func (m *TLStickerPack) String() string { return proto.CompactTextString(m) } +func (*TLStickerPack) ProtoMessage() {} +func (*TLStickerPack) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{407} } -func (m *TLInputMediaGeoPoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaGeoPoint.Unmarshal(m, b) +func (m *TLStickerPack) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLStickerPack.Unmarshal(m, b) } -func (m *TLInputMediaGeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaGeoPoint.Marshal(b, m, deterministic) +func (m *TLStickerPack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLStickerPack.Marshal(b, m, deterministic) } -func (dst *TLInputMediaGeoPoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaGeoPoint.Merge(dst, src) +func (dst *TLStickerPack) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLStickerPack.Merge(dst, src) } -func (m *TLInputMediaGeoPoint) XXX_Size() int { - return xxx_messageInfo_TLInputMediaGeoPoint.Size(m) +func (m *TLStickerPack) XXX_Size() int { + return xxx_messageInfo_TLStickerPack.Size(m) } -func (m *TLInputMediaGeoPoint) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaGeoPoint.DiscardUnknown(m) +func (m *TLStickerPack) XXX_DiscardUnknown() { + xxx_messageInfo_TLStickerPack.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaGeoPoint proto.InternalMessageInfo +var xxx_messageInfo_TLStickerPack proto.InternalMessageInfo -func (m *TLInputMediaGeoPoint) GetData2() *InputMedia_Data { +func (m *TLStickerPack) GetData2() *StickerPack_Data { if m != nil { return m.Data2 } return nil } -// inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia; -type TLInputMediaContact struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// BotInfo <-- +// + TL_botInfo +// +type BotInfo_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Commands []*BotCommand `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaContact) Reset() { *m = TLInputMediaContact{} } -func (m *TLInputMediaContact) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaContact) ProtoMessage() {} -func (*TLInputMediaContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{444} +func (m *BotInfo_Data) Reset() { *m = BotInfo_Data{} } +func (m *BotInfo_Data) String() string { return proto.CompactTextString(m) } +func (*BotInfo_Data) ProtoMessage() {} +func (*BotInfo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{408} } -func (m *TLInputMediaContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaContact.Unmarshal(m, b) +func (m *BotInfo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BotInfo_Data.Unmarshal(m, b) } -func (m *TLInputMediaContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaContact.Marshal(b, m, deterministic) +func (m *BotInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BotInfo_Data.Marshal(b, m, deterministic) } -func (dst *TLInputMediaContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaContact.Merge(dst, src) +func (dst *BotInfo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_BotInfo_Data.Merge(dst, src) } -func (m *TLInputMediaContact) XXX_Size() int { - return xxx_messageInfo_TLInputMediaContact.Size(m) +func (m *BotInfo_Data) XXX_Size() int { + return xxx_messageInfo_BotInfo_Data.Size(m) } -func (m *TLInputMediaContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaContact.DiscardUnknown(m) +func (m *BotInfo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_BotInfo_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaContact proto.InternalMessageInfo +var xxx_messageInfo_BotInfo_Data proto.InternalMessageInfo -func (m *TLInputMediaContact) GetData2() *InputMedia_Data { +func (m *BotInfo_Data) GetUserId() int32 { if m != nil { - return m.Data2 + return m.UserId } - return nil -} - -// inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; -type TLInputMediaUploadedDocument struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return 0 } -func (m *TLInputMediaUploadedDocument) Reset() { *m = TLInputMediaUploadedDocument{} } -func (m *TLInputMediaUploadedDocument) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaUploadedDocument) ProtoMessage() {} -func (*TLInputMediaUploadedDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{445} -} -func (m *TLInputMediaUploadedDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaUploadedDocument.Unmarshal(m, b) -} -func (m *TLInputMediaUploadedDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaUploadedDocument.Marshal(b, m, deterministic) -} -func (dst *TLInputMediaUploadedDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaUploadedDocument.Merge(dst, src) -} -func (m *TLInputMediaUploadedDocument) XXX_Size() int { - return xxx_messageInfo_TLInputMediaUploadedDocument.Size(m) -} -func (m *TLInputMediaUploadedDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaUploadedDocument.DiscardUnknown(m) +func (m *BotInfo_Data) GetDescription() string { + if m != nil { + return m.Description + } + return "" } -var xxx_messageInfo_TLInputMediaUploadedDocument proto.InternalMessageInfo - -func (m *TLInputMediaUploadedDocument) GetData2() *InputMedia_Data { +func (m *BotInfo_Data) GetCommands() []*BotCommand { if m != nil { - return m.Data2 + return m.Commands } return nil } -// inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia; -type TLInputMediaDocument struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type BotInfo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *BotInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaDocument) Reset() { *m = TLInputMediaDocument{} } -func (m *TLInputMediaDocument) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaDocument) ProtoMessage() {} -func (*TLInputMediaDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{446} +func (m *BotInfo) Reset() { *m = BotInfo{} } +func (m *BotInfo) String() string { return proto.CompactTextString(m) } +func (*BotInfo) ProtoMessage() {} +func (*BotInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{409} } -func (m *TLInputMediaDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaDocument.Unmarshal(m, b) +func (m *BotInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BotInfo.Unmarshal(m, b) } -func (m *TLInputMediaDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaDocument.Marshal(b, m, deterministic) +func (m *BotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BotInfo.Marshal(b, m, deterministic) } -func (dst *TLInputMediaDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaDocument.Merge(dst, src) +func (dst *BotInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_BotInfo.Merge(dst, src) } -func (m *TLInputMediaDocument) XXX_Size() int { - return xxx_messageInfo_TLInputMediaDocument.Size(m) +func (m *BotInfo) XXX_Size() int { + return xxx_messageInfo_BotInfo.Size(m) } -func (m *TLInputMediaDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaDocument.DiscardUnknown(m) +func (m *BotInfo) XXX_DiscardUnknown() { + xxx_messageInfo_BotInfo.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaDocument proto.InternalMessageInfo +var xxx_messageInfo_BotInfo proto.InternalMessageInfo -func (m *TLInputMediaDocument) GetData2() *InputMedia_Data { +func (m *BotInfo) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *BotInfo) GetData2() *BotInfo_Data { if m != nil { return m.Data2 } return nil } -// inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia; -type TLInputMediaVenue struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// botInfo#98e81d3a user_id:int description:string commands:Vector = BotInfo; +type TLBotInfo struct { + Data2 *BotInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaVenue) Reset() { *m = TLInputMediaVenue{} } -func (m *TLInputMediaVenue) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaVenue) ProtoMessage() {} -func (*TLInputMediaVenue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{447} +func (m *TLBotInfo) Reset() { *m = TLBotInfo{} } +func (m *TLBotInfo) String() string { return proto.CompactTextString(m) } +func (*TLBotInfo) ProtoMessage() {} +func (*TLBotInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{410} } -func (m *TLInputMediaVenue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaVenue.Unmarshal(m, b) +func (m *TLBotInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBotInfo.Unmarshal(m, b) } -func (m *TLInputMediaVenue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaVenue.Marshal(b, m, deterministic) +func (m *TLBotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBotInfo.Marshal(b, m, deterministic) } -func (dst *TLInputMediaVenue) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaVenue.Merge(dst, src) +func (dst *TLBotInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBotInfo.Merge(dst, src) } -func (m *TLInputMediaVenue) XXX_Size() int { - return xxx_messageInfo_TLInputMediaVenue.Size(m) +func (m *TLBotInfo) XXX_Size() int { + return xxx_messageInfo_TLBotInfo.Size(m) } -func (m *TLInputMediaVenue) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaVenue.DiscardUnknown(m) +func (m *TLBotInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLBotInfo.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaVenue proto.InternalMessageInfo +var xxx_messageInfo_TLBotInfo proto.InternalMessageInfo -func (m *TLInputMediaVenue) GetData2() *InputMedia_Data { +func (m *TLBotInfo) GetData2() *BotInfo_Data { if m != nil { return m.Data2 } return nil } -// inputMediaGifExternal#4843b0fd url:string q:string = InputMedia; -type TLInputMediaGifExternal struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// MessageRange <-- +// + TL_messageRange +// +type MessageRange_Data struct { + MinId int32 `protobuf:"varint,1,opt,name=min_id,json=minId,proto3" json:"min_id,omitempty"` + MaxId int32 `protobuf:"varint,2,opt,name=max_id,json=maxId,proto3" json:"max_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaGifExternal) Reset() { *m = TLInputMediaGifExternal{} } -func (m *TLInputMediaGifExternal) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaGifExternal) ProtoMessage() {} -func (*TLInputMediaGifExternal) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{448} +func (m *MessageRange_Data) Reset() { *m = MessageRange_Data{} } +func (m *MessageRange_Data) String() string { return proto.CompactTextString(m) } +func (*MessageRange_Data) ProtoMessage() {} +func (*MessageRange_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{411} } -func (m *TLInputMediaGifExternal) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaGifExternal.Unmarshal(m, b) +func (m *MessageRange_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageRange_Data.Unmarshal(m, b) } -func (m *TLInputMediaGifExternal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaGifExternal.Marshal(b, m, deterministic) +func (m *MessageRange_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageRange_Data.Marshal(b, m, deterministic) } -func (dst *TLInputMediaGifExternal) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaGifExternal.Merge(dst, src) +func (dst *MessageRange_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageRange_Data.Merge(dst, src) } -func (m *TLInputMediaGifExternal) XXX_Size() int { - return xxx_messageInfo_TLInputMediaGifExternal.Size(m) +func (m *MessageRange_Data) XXX_Size() int { + return xxx_messageInfo_MessageRange_Data.Size(m) } -func (m *TLInputMediaGifExternal) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaGifExternal.DiscardUnknown(m) +func (m *MessageRange_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MessageRange_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaGifExternal proto.InternalMessageInfo +var xxx_messageInfo_MessageRange_Data proto.InternalMessageInfo -func (m *TLInputMediaGifExternal) GetData2() *InputMedia_Data { +func (m *MessageRange_Data) GetMinId() int32 { if m != nil { - return m.Data2 + return m.MinId } - return nil + return 0 } -// inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia; -type TLInputMediaPhotoExternal struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MessageRange_Data) GetMaxId() int32 { + if m != nil { + return m.MaxId + } + return 0 } -func (m *TLInputMediaPhotoExternal) Reset() { *m = TLInputMediaPhotoExternal{} } -func (m *TLInputMediaPhotoExternal) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaPhotoExternal) ProtoMessage() {} -func (*TLInputMediaPhotoExternal) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{449} +type MessageRange struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MessageRange_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaPhotoExternal) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaPhotoExternal.Unmarshal(m, b) + +func (m *MessageRange) Reset() { *m = MessageRange{} } +func (m *MessageRange) String() string { return proto.CompactTextString(m) } +func (*MessageRange) ProtoMessage() {} +func (*MessageRange) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{412} } -func (m *TLInputMediaPhotoExternal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaPhotoExternal.Marshal(b, m, deterministic) +func (m *MessageRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageRange.Unmarshal(m, b) } -func (dst *TLInputMediaPhotoExternal) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaPhotoExternal.Merge(dst, src) +func (m *MessageRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageRange.Marshal(b, m, deterministic) } -func (m *TLInputMediaPhotoExternal) XXX_Size() int { - return xxx_messageInfo_TLInputMediaPhotoExternal.Size(m) +func (dst *MessageRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageRange.Merge(dst, src) } -func (m *TLInputMediaPhotoExternal) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaPhotoExternal.DiscardUnknown(m) +func (m *MessageRange) XXX_Size() int { + return xxx_messageInfo_MessageRange.Size(m) +} +func (m *MessageRange) XXX_DiscardUnknown() { + xxx_messageInfo_MessageRange.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaPhotoExternal proto.InternalMessageInfo +var xxx_messageInfo_MessageRange proto.InternalMessageInfo -func (m *TLInputMediaPhotoExternal) GetData2() *InputMedia_Data { +func (m *MessageRange) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *MessageRange) GetData2() *MessageRange_Data { if m != nil { return m.Data2 } return nil } -// inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia; -type TLInputMediaDocumentExternal struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageRange#ae30253 min_id:int max_id:int = MessageRange; +type TLMessageRange struct { + Data2 *MessageRange_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaDocumentExternal) Reset() { *m = TLInputMediaDocumentExternal{} } -func (m *TLInputMediaDocumentExternal) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaDocumentExternal) ProtoMessage() {} -func (*TLInputMediaDocumentExternal) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{450} +func (m *TLMessageRange) Reset() { *m = TLMessageRange{} } +func (m *TLMessageRange) String() string { return proto.CompactTextString(m) } +func (*TLMessageRange) ProtoMessage() {} +func (*TLMessageRange) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{413} } -func (m *TLInputMediaDocumentExternal) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaDocumentExternal.Unmarshal(m, b) +func (m *TLMessageRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageRange.Unmarshal(m, b) } -func (m *TLInputMediaDocumentExternal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaDocumentExternal.Marshal(b, m, deterministic) +func (m *TLMessageRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageRange.Marshal(b, m, deterministic) } -func (dst *TLInputMediaDocumentExternal) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaDocumentExternal.Merge(dst, src) +func (dst *TLMessageRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageRange.Merge(dst, src) } -func (m *TLInputMediaDocumentExternal) XXX_Size() int { - return xxx_messageInfo_TLInputMediaDocumentExternal.Size(m) +func (m *TLMessageRange) XXX_Size() int { + return xxx_messageInfo_TLMessageRange.Size(m) } -func (m *TLInputMediaDocumentExternal) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaDocumentExternal.DiscardUnknown(m) +func (m *TLMessageRange) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageRange.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaDocumentExternal proto.InternalMessageInfo +var xxx_messageInfo_TLMessageRange proto.InternalMessageInfo -func (m *TLInputMediaDocumentExternal) GetData2() *InputMedia_Data { +func (m *TLMessageRange) GetData2() *MessageRange_Data { if m != nil { return m.Data2 } return nil } -// inputMediaGame#d33f43f3 id:InputGame = InputMedia; -type TLInputMediaGame struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputCheckPasswordSRP <-- +// + TL_inputCheckPasswordEmpty +// + TL_inputCheckPasswordSRP +// +type InputCheckPasswordSRP_Data struct { + SrpId int64 `protobuf:"varint,1,opt,name=srp_id,json=srpId,proto3" json:"srp_id,omitempty"` + A []byte `protobuf:"bytes,2,opt,name=A,proto3" json:"A,omitempty"` + M1 []byte `protobuf:"bytes,3,opt,name=M1,proto3" json:"M1,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaGame) Reset() { *m = TLInputMediaGame{} } -func (m *TLInputMediaGame) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaGame) ProtoMessage() {} -func (*TLInputMediaGame) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{451} +func (m *InputCheckPasswordSRP_Data) Reset() { *m = InputCheckPasswordSRP_Data{} } +func (m *InputCheckPasswordSRP_Data) String() string { return proto.CompactTextString(m) } +func (*InputCheckPasswordSRP_Data) ProtoMessage() {} +func (*InputCheckPasswordSRP_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{414} } -func (m *TLInputMediaGame) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaGame.Unmarshal(m, b) +func (m *InputCheckPasswordSRP_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputCheckPasswordSRP_Data.Unmarshal(m, b) } -func (m *TLInputMediaGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaGame.Marshal(b, m, deterministic) +func (m *InputCheckPasswordSRP_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputCheckPasswordSRP_Data.Marshal(b, m, deterministic) } -func (dst *TLInputMediaGame) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaGame.Merge(dst, src) +func (dst *InputCheckPasswordSRP_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputCheckPasswordSRP_Data.Merge(dst, src) } -func (m *TLInputMediaGame) XXX_Size() int { - return xxx_messageInfo_TLInputMediaGame.Size(m) +func (m *InputCheckPasswordSRP_Data) XXX_Size() int { + return xxx_messageInfo_InputCheckPasswordSRP_Data.Size(m) } -func (m *TLInputMediaGame) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaGame.DiscardUnknown(m) +func (m *InputCheckPasswordSRP_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputCheckPasswordSRP_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaGame proto.InternalMessageInfo +var xxx_messageInfo_InputCheckPasswordSRP_Data proto.InternalMessageInfo -func (m *TLInputMediaGame) GetData2() *InputMedia_Data { +func (m *InputCheckPasswordSRP_Data) GetSrpId() int64 { if m != nil { - return m.Data2 + return m.SrpId } - return nil + return 0 } -// inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia; -type TLInputMediaInvoice struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputCheckPasswordSRP_Data) GetA() []byte { + if m != nil { + return m.A + } + return nil } -func (m *TLInputMediaInvoice) Reset() { *m = TLInputMediaInvoice{} } -func (m *TLInputMediaInvoice) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaInvoice) ProtoMessage() {} -func (*TLInputMediaInvoice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{452} -} -func (m *TLInputMediaInvoice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaInvoice.Unmarshal(m, b) -} -func (m *TLInputMediaInvoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaInvoice.Marshal(b, m, deterministic) -} -func (dst *TLInputMediaInvoice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaInvoice.Merge(dst, src) -} -func (m *TLInputMediaInvoice) XXX_Size() int { - return xxx_messageInfo_TLInputMediaInvoice.Size(m) -} -func (m *TLInputMediaInvoice) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaInvoice.DiscardUnknown(m) -} - -var xxx_messageInfo_TLInputMediaInvoice proto.InternalMessageInfo - -func (m *TLInputMediaInvoice) GetData2() *InputMedia_Data { +func (m *InputCheckPasswordSRP_Data) GetM1() []byte { if m != nil { - return m.Data2 + return m.M1 } return nil } -// inputMediaGeoLive#7b1a118f geo_point:InputGeoPoint period:int = InputMedia; -type TLInputMediaGeoLive struct { - Data2 *InputMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputCheckPasswordSRP struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputCheckPasswordSRP_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMediaGeoLive) Reset() { *m = TLInputMediaGeoLive{} } -func (m *TLInputMediaGeoLive) String() string { return proto.CompactTextString(m) } -func (*TLInputMediaGeoLive) ProtoMessage() {} -func (*TLInputMediaGeoLive) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{453} +func (m *InputCheckPasswordSRP) Reset() { *m = InputCheckPasswordSRP{} } +func (m *InputCheckPasswordSRP) String() string { return proto.CompactTextString(m) } +func (*InputCheckPasswordSRP) ProtoMessage() {} +func (*InputCheckPasswordSRP) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{415} } -func (m *TLInputMediaGeoLive) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMediaGeoLive.Unmarshal(m, b) +func (m *InputCheckPasswordSRP) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputCheckPasswordSRP.Unmarshal(m, b) } -func (m *TLInputMediaGeoLive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMediaGeoLive.Marshal(b, m, deterministic) +func (m *InputCheckPasswordSRP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputCheckPasswordSRP.Marshal(b, m, deterministic) } -func (dst *TLInputMediaGeoLive) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMediaGeoLive.Merge(dst, src) +func (dst *InputCheckPasswordSRP) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputCheckPasswordSRP.Merge(dst, src) } -func (m *TLInputMediaGeoLive) XXX_Size() int { - return xxx_messageInfo_TLInputMediaGeoLive.Size(m) +func (m *InputCheckPasswordSRP) XXX_Size() int { + return xxx_messageInfo_InputCheckPasswordSRP.Size(m) } -func (m *TLInputMediaGeoLive) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMediaGeoLive.DiscardUnknown(m) +func (m *InputCheckPasswordSRP) XXX_DiscardUnknown() { + xxx_messageInfo_InputCheckPasswordSRP.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMediaGeoLive proto.InternalMessageInfo +var xxx_messageInfo_InputCheckPasswordSRP proto.InternalMessageInfo -func (m *TLInputMediaGeoLive) GetData2() *InputMedia_Data { +func (m *InputCheckPasswordSRP) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputCheckPasswordSRP) GetData2() *InputCheckPasswordSRP_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// help_InviteText <-- -// + TL_help_inviteText -// -type Help_InviteText_Data struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP; +type TLInputCheckPasswordEmpty struct { + Data2 *InputCheckPasswordSRP_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_InviteText_Data) Reset() { *m = Help_InviteText_Data{} } -func (m *Help_InviteText_Data) String() string { return proto.CompactTextString(m) } -func (*Help_InviteText_Data) ProtoMessage() {} -func (*Help_InviteText_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{454} +func (m *TLInputCheckPasswordEmpty) Reset() { *m = TLInputCheckPasswordEmpty{} } +func (m *TLInputCheckPasswordEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputCheckPasswordEmpty) ProtoMessage() {} +func (*TLInputCheckPasswordEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{416} } -func (m *Help_InviteText_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_InviteText_Data.Unmarshal(m, b) +func (m *TLInputCheckPasswordEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputCheckPasswordEmpty.Unmarshal(m, b) } -func (m *Help_InviteText_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_InviteText_Data.Marshal(b, m, deterministic) +func (m *TLInputCheckPasswordEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputCheckPasswordEmpty.Marshal(b, m, deterministic) } -func (dst *Help_InviteText_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_InviteText_Data.Merge(dst, src) +func (dst *TLInputCheckPasswordEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputCheckPasswordEmpty.Merge(dst, src) } -func (m *Help_InviteText_Data) XXX_Size() int { - return xxx_messageInfo_Help_InviteText_Data.Size(m) +func (m *TLInputCheckPasswordEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputCheckPasswordEmpty.Size(m) } -func (m *Help_InviteText_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_InviteText_Data.DiscardUnknown(m) +func (m *TLInputCheckPasswordEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputCheckPasswordEmpty.DiscardUnknown(m) } -var xxx_messageInfo_Help_InviteText_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputCheckPasswordEmpty proto.InternalMessageInfo -func (m *Help_InviteText_Data) GetMessage() string { +func (m *TLInputCheckPasswordEmpty) GetData2() *InputCheckPasswordSRP_Data { if m != nil { - return m.Message + return m.Data2 } - return "" + return nil } -type Help_InviteText struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_InviteText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP; +type TLInputCheckPasswordSRP struct { + Data2 *InputCheckPasswordSRP_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_InviteText) Reset() { *m = Help_InviteText{} } -func (m *Help_InviteText) String() string { return proto.CompactTextString(m) } -func (*Help_InviteText) ProtoMessage() {} -func (*Help_InviteText) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{455} +func (m *TLInputCheckPasswordSRP) Reset() { *m = TLInputCheckPasswordSRP{} } +func (m *TLInputCheckPasswordSRP) String() string { return proto.CompactTextString(m) } +func (*TLInputCheckPasswordSRP) ProtoMessage() {} +func (*TLInputCheckPasswordSRP) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{417} } -func (m *Help_InviteText) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_InviteText.Unmarshal(m, b) +func (m *TLInputCheckPasswordSRP) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputCheckPasswordSRP.Unmarshal(m, b) } -func (m *Help_InviteText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_InviteText.Marshal(b, m, deterministic) +func (m *TLInputCheckPasswordSRP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputCheckPasswordSRP.Marshal(b, m, deterministic) } -func (dst *Help_InviteText) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_InviteText.Merge(dst, src) +func (dst *TLInputCheckPasswordSRP) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputCheckPasswordSRP.Merge(dst, src) } -func (m *Help_InviteText) XXX_Size() int { - return xxx_messageInfo_Help_InviteText.Size(m) +func (m *TLInputCheckPasswordSRP) XXX_Size() int { + return xxx_messageInfo_TLInputCheckPasswordSRP.Size(m) } -func (m *Help_InviteText) XXX_DiscardUnknown() { - xxx_messageInfo_Help_InviteText.DiscardUnknown(m) +func (m *TLInputCheckPasswordSRP) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputCheckPasswordSRP.DiscardUnknown(m) } -var xxx_messageInfo_Help_InviteText proto.InternalMessageInfo - -func (m *Help_InviteText) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputCheckPasswordSRP proto.InternalMessageInfo -func (m *Help_InviteText) GetData2() *Help_InviteText_Data { +func (m *TLInputCheckPasswordSRP) GetData2() *InputCheckPasswordSRP_Data { if m != nil { return m.Data2 } return nil } -// help.inviteText#18cb9f78 message:string = help.InviteText; -type TLHelpInviteText struct { - Data2 *Help_InviteText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// messages_Messages <-- +// + TL_messages_messages +// + TL_messages_messagesSlice +// + TL_messages_channelMessages +// + TL_messages_messagesNotModified +// +type Messages_Messages_Data struct { + Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` + Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + Pts int32 `protobuf:"varint,5,opt,name=pts,proto3" json:"pts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpInviteText) Reset() { *m = TLHelpInviteText{} } -func (m *TLHelpInviteText) String() string { return proto.CompactTextString(m) } -func (*TLHelpInviteText) ProtoMessage() {} -func (*TLHelpInviteText) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{456} +func (m *Messages_Messages_Data) Reset() { *m = Messages_Messages_Data{} } +func (m *Messages_Messages_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_Messages_Data) ProtoMessage() {} +func (*Messages_Messages_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{418} } -func (m *TLHelpInviteText) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpInviteText.Unmarshal(m, b) +func (m *Messages_Messages_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_Messages_Data.Unmarshal(m, b) } -func (m *TLHelpInviteText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpInviteText.Marshal(b, m, deterministic) +func (m *Messages_Messages_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_Messages_Data.Marshal(b, m, deterministic) } -func (dst *TLHelpInviteText) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpInviteText.Merge(dst, src) +func (dst *Messages_Messages_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_Messages_Data.Merge(dst, src) } -func (m *TLHelpInviteText) XXX_Size() int { - return xxx_messageInfo_TLHelpInviteText.Size(m) +func (m *Messages_Messages_Data) XXX_Size() int { + return xxx_messageInfo_Messages_Messages_Data.Size(m) } -func (m *TLHelpInviteText) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpInviteText.DiscardUnknown(m) +func (m *Messages_Messages_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_Messages_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpInviteText proto.InternalMessageInfo +var xxx_messageInfo_Messages_Messages_Data proto.InternalMessageInfo -func (m *TLHelpInviteText) GetData2() *Help_InviteText_Data { +func (m *Messages_Messages_Data) GetMessages() []*Message { if m != nil { - return m.Data2 + return m.Messages } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputPrivacyRule <-- -// + TL_inputPrivacyValueAllowContacts -// + TL_inputPrivacyValueAllowAll -// + TL_inputPrivacyValueAllowUsers -// + TL_inputPrivacyValueDisallowContacts -// + TL_inputPrivacyValueDisallowAll -// + TL_inputPrivacyValueDisallowUsers -// -type InputPrivacyRule_Data struct { - Users []*InputUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Messages_Messages_Data) GetChats() []*Chat { + if m != nil { + return m.Chats + } + return nil } -func (m *InputPrivacyRule_Data) Reset() { *m = InputPrivacyRule_Data{} } -func (m *InputPrivacyRule_Data) String() string { return proto.CompactTextString(m) } -func (*InputPrivacyRule_Data) ProtoMessage() {} -func (*InputPrivacyRule_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{457} -} -func (m *InputPrivacyRule_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPrivacyRule_Data.Unmarshal(m, b) -} -func (m *InputPrivacyRule_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPrivacyRule_Data.Marshal(b, m, deterministic) -} -func (dst *InputPrivacyRule_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPrivacyRule_Data.Merge(dst, src) -} -func (m *InputPrivacyRule_Data) XXX_Size() int { - return xxx_messageInfo_InputPrivacyRule_Data.Size(m) -} -func (m *InputPrivacyRule_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputPrivacyRule_Data.DiscardUnknown(m) +func (m *Messages_Messages_Data) GetUsers() []*User { + if m != nil { + return m.Users + } + return nil } -var xxx_messageInfo_InputPrivacyRule_Data proto.InternalMessageInfo +func (m *Messages_Messages_Data) GetCount() int32 { + if m != nil { + return m.Count + } + return 0 +} -func (m *InputPrivacyRule_Data) GetUsers() []*InputUser { +func (m *Messages_Messages_Data) GetPts() int32 { if m != nil { - return m.Users + return m.Pts } - return nil + return 0 } -type InputPrivacyRule struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_Messages struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputPrivacyRule) Reset() { *m = InputPrivacyRule{} } -func (m *InputPrivacyRule) String() string { return proto.CompactTextString(m) } -func (*InputPrivacyRule) ProtoMessage() {} -func (*InputPrivacyRule) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{458} +func (m *Messages_Messages) Reset() { *m = Messages_Messages{} } +func (m *Messages_Messages) String() string { return proto.CompactTextString(m) } +func (*Messages_Messages) ProtoMessage() {} +func (*Messages_Messages) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{419} } -func (m *InputPrivacyRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPrivacyRule.Unmarshal(m, b) +func (m *Messages_Messages) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_Messages.Unmarshal(m, b) } -func (m *InputPrivacyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPrivacyRule.Marshal(b, m, deterministic) +func (m *Messages_Messages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_Messages.Marshal(b, m, deterministic) } -func (dst *InputPrivacyRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPrivacyRule.Merge(dst, src) +func (dst *Messages_Messages) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_Messages.Merge(dst, src) } -func (m *InputPrivacyRule) XXX_Size() int { - return xxx_messageInfo_InputPrivacyRule.Size(m) +func (m *Messages_Messages) XXX_Size() int { + return xxx_messageInfo_Messages_Messages.Size(m) } -func (m *InputPrivacyRule) XXX_DiscardUnknown() { - xxx_messageInfo_InputPrivacyRule.DiscardUnknown(m) +func (m *Messages_Messages) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_Messages.DiscardUnknown(m) } -var xxx_messageInfo_InputPrivacyRule proto.InternalMessageInfo +var xxx_messageInfo_Messages_Messages proto.InternalMessageInfo -func (m *InputPrivacyRule) GetConstructor() TLConstructor { +func (m *Messages_Messages) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputPrivacyRule) GetData2() *InputPrivacyRule_Data { +func (m *Messages_Messages) GetData2() *Messages_Messages_Data { if m != nil { return m.Data2 } return nil } -// inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; -type TLInputPrivacyValueAllowContacts struct { - Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages; +type TLMessagesMessages struct { + Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPrivacyValueAllowContacts) Reset() { *m = TLInputPrivacyValueAllowContacts{} } -func (m *TLInputPrivacyValueAllowContacts) String() string { return proto.CompactTextString(m) } -func (*TLInputPrivacyValueAllowContacts) ProtoMessage() {} -func (*TLInputPrivacyValueAllowContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{459} +func (m *TLMessagesMessages) Reset() { *m = TLMessagesMessages{} } +func (m *TLMessagesMessages) String() string { return proto.CompactTextString(m) } +func (*TLMessagesMessages) ProtoMessage() {} +func (*TLMessagesMessages) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{420} } -func (m *TLInputPrivacyValueAllowContacts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPrivacyValueAllowContacts.Unmarshal(m, b) +func (m *TLMessagesMessages) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesMessages.Unmarshal(m, b) } -func (m *TLInputPrivacyValueAllowContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPrivacyValueAllowContacts.Marshal(b, m, deterministic) +func (m *TLMessagesMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesMessages.Marshal(b, m, deterministic) } -func (dst *TLInputPrivacyValueAllowContacts) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPrivacyValueAllowContacts.Merge(dst, src) +func (dst *TLMessagesMessages) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesMessages.Merge(dst, src) } -func (m *TLInputPrivacyValueAllowContacts) XXX_Size() int { - return xxx_messageInfo_TLInputPrivacyValueAllowContacts.Size(m) +func (m *TLMessagesMessages) XXX_Size() int { + return xxx_messageInfo_TLMessagesMessages.Size(m) } -func (m *TLInputPrivacyValueAllowContacts) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPrivacyValueAllowContacts.DiscardUnknown(m) +func (m *TLMessagesMessages) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesMessages.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPrivacyValueAllowContacts proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesMessages proto.InternalMessageInfo -func (m *TLInputPrivacyValueAllowContacts) GetData2() *InputPrivacyRule_Data { +func (m *TLMessagesMessages) GetData2() *Messages_Messages_Data { if m != nil { return m.Data2 } return nil } -// inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; -type TLInputPrivacyValueAllowAll struct { - Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.messagesSlice#b446ae3 count:int messages:Vector chats:Vector users:Vector = messages.Messages; +type TLMessagesMessagesSlice struct { + Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPrivacyValueAllowAll) Reset() { *m = TLInputPrivacyValueAllowAll{} } -func (m *TLInputPrivacyValueAllowAll) String() string { return proto.CompactTextString(m) } -func (*TLInputPrivacyValueAllowAll) ProtoMessage() {} -func (*TLInputPrivacyValueAllowAll) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{460} +func (m *TLMessagesMessagesSlice) Reset() { *m = TLMessagesMessagesSlice{} } +func (m *TLMessagesMessagesSlice) String() string { return proto.CompactTextString(m) } +func (*TLMessagesMessagesSlice) ProtoMessage() {} +func (*TLMessagesMessagesSlice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{421} } -func (m *TLInputPrivacyValueAllowAll) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPrivacyValueAllowAll.Unmarshal(m, b) +func (m *TLMessagesMessagesSlice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesMessagesSlice.Unmarshal(m, b) } -func (m *TLInputPrivacyValueAllowAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPrivacyValueAllowAll.Marshal(b, m, deterministic) +func (m *TLMessagesMessagesSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesMessagesSlice.Marshal(b, m, deterministic) } -func (dst *TLInputPrivacyValueAllowAll) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPrivacyValueAllowAll.Merge(dst, src) +func (dst *TLMessagesMessagesSlice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesMessagesSlice.Merge(dst, src) } -func (m *TLInputPrivacyValueAllowAll) XXX_Size() int { - return xxx_messageInfo_TLInputPrivacyValueAllowAll.Size(m) +func (m *TLMessagesMessagesSlice) XXX_Size() int { + return xxx_messageInfo_TLMessagesMessagesSlice.Size(m) } -func (m *TLInputPrivacyValueAllowAll) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPrivacyValueAllowAll.DiscardUnknown(m) +func (m *TLMessagesMessagesSlice) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesMessagesSlice.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPrivacyValueAllowAll proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesMessagesSlice proto.InternalMessageInfo -func (m *TLInputPrivacyValueAllowAll) GetData2() *InputPrivacyRule_Data { +func (m *TLMessagesMessagesSlice) GetData2() *Messages_Messages_Data { if m != nil { return m.Data2 } return nil } -// inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; -type TLInputPrivacyValueAllowUsers struct { - Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.channelMessages#99262e37 flags:# pts:int count:int messages:Vector chats:Vector users:Vector = messages.Messages; +type TLMessagesChannelMessages struct { + Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPrivacyValueAllowUsers) Reset() { *m = TLInputPrivacyValueAllowUsers{} } -func (m *TLInputPrivacyValueAllowUsers) String() string { return proto.CompactTextString(m) } -func (*TLInputPrivacyValueAllowUsers) ProtoMessage() {} -func (*TLInputPrivacyValueAllowUsers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{461} +func (m *TLMessagesChannelMessages) Reset() { *m = TLMessagesChannelMessages{} } +func (m *TLMessagesChannelMessages) String() string { return proto.CompactTextString(m) } +func (*TLMessagesChannelMessages) ProtoMessage() {} +func (*TLMessagesChannelMessages) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{422} } -func (m *TLInputPrivacyValueAllowUsers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPrivacyValueAllowUsers.Unmarshal(m, b) +func (m *TLMessagesChannelMessages) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesChannelMessages.Unmarshal(m, b) } -func (m *TLInputPrivacyValueAllowUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPrivacyValueAllowUsers.Marshal(b, m, deterministic) +func (m *TLMessagesChannelMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesChannelMessages.Marshal(b, m, deterministic) } -func (dst *TLInputPrivacyValueAllowUsers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPrivacyValueAllowUsers.Merge(dst, src) +func (dst *TLMessagesChannelMessages) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesChannelMessages.Merge(dst, src) } -func (m *TLInputPrivacyValueAllowUsers) XXX_Size() int { - return xxx_messageInfo_TLInputPrivacyValueAllowUsers.Size(m) +func (m *TLMessagesChannelMessages) XXX_Size() int { + return xxx_messageInfo_TLMessagesChannelMessages.Size(m) } -func (m *TLInputPrivacyValueAllowUsers) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPrivacyValueAllowUsers.DiscardUnknown(m) +func (m *TLMessagesChannelMessages) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesChannelMessages.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPrivacyValueAllowUsers proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesChannelMessages proto.InternalMessageInfo -func (m *TLInputPrivacyValueAllowUsers) GetData2() *InputPrivacyRule_Data { +func (m *TLMessagesChannelMessages) GetData2() *Messages_Messages_Data { if m != nil { return m.Data2 } return nil } -// inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule; -type TLInputPrivacyValueDisallowContacts struct { - Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.messagesNotModified#74535f21 count:int = messages.Messages; +type TLMessagesMessagesNotModified struct { + Data2 *Messages_Messages_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPrivacyValueDisallowContacts) Reset() { *m = TLInputPrivacyValueDisallowContacts{} } -func (m *TLInputPrivacyValueDisallowContacts) String() string { return proto.CompactTextString(m) } -func (*TLInputPrivacyValueDisallowContacts) ProtoMessage() {} -func (*TLInputPrivacyValueDisallowContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{462} +func (m *TLMessagesMessagesNotModified) Reset() { *m = TLMessagesMessagesNotModified{} } +func (m *TLMessagesMessagesNotModified) String() string { return proto.CompactTextString(m) } +func (*TLMessagesMessagesNotModified) ProtoMessage() {} +func (*TLMessagesMessagesNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{423} } -func (m *TLInputPrivacyValueDisallowContacts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPrivacyValueDisallowContacts.Unmarshal(m, b) +func (m *TLMessagesMessagesNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesMessagesNotModified.Unmarshal(m, b) } -func (m *TLInputPrivacyValueDisallowContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPrivacyValueDisallowContacts.Marshal(b, m, deterministic) +func (m *TLMessagesMessagesNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesMessagesNotModified.Marshal(b, m, deterministic) } -func (dst *TLInputPrivacyValueDisallowContacts) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPrivacyValueDisallowContacts.Merge(dst, src) +func (dst *TLMessagesMessagesNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesMessagesNotModified.Merge(dst, src) } -func (m *TLInputPrivacyValueDisallowContacts) XXX_Size() int { - return xxx_messageInfo_TLInputPrivacyValueDisallowContacts.Size(m) +func (m *TLMessagesMessagesNotModified) XXX_Size() int { + return xxx_messageInfo_TLMessagesMessagesNotModified.Size(m) } -func (m *TLInputPrivacyValueDisallowContacts) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPrivacyValueDisallowContacts.DiscardUnknown(m) +func (m *TLMessagesMessagesNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesMessagesNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPrivacyValueDisallowContacts proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesMessagesNotModified proto.InternalMessageInfo -func (m *TLInputPrivacyValueDisallowContacts) GetData2() *InputPrivacyRule_Data { +func (m *TLMessagesMessagesNotModified) GetData2() *Messages_Messages_Data { if m != nil { return m.Data2 } return nil } -// inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule; -type TLInputPrivacyValueDisallowAll struct { - Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputPrivacyValueDisallowAll) Reset() { *m = TLInputPrivacyValueDisallowAll{} } -func (m *TLInputPrivacyValueDisallowAll) String() string { return proto.CompactTextString(m) } -func (*TLInputPrivacyValueDisallowAll) ProtoMessage() {} -func (*TLInputPrivacyValueDisallowAll) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{463} -} -func (m *TLInputPrivacyValueDisallowAll) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPrivacyValueDisallowAll.Unmarshal(m, b) -} -func (m *TLInputPrivacyValueDisallowAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPrivacyValueDisallowAll.Marshal(b, m, deterministic) -} -func (dst *TLInputPrivacyValueDisallowAll) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPrivacyValueDisallowAll.Merge(dst, src) -} -func (m *TLInputPrivacyValueDisallowAll) XXX_Size() int { - return xxx_messageInfo_TLInputPrivacyValueDisallowAll.Size(m) -} -func (m *TLInputPrivacyValueDisallowAll) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPrivacyValueDisallowAll.DiscardUnknown(m) -} - -var xxx_messageInfo_TLInputPrivacyValueDisallowAll proto.InternalMessageInfo - -func (m *TLInputPrivacyValueDisallowAll) GetData2() *InputPrivacyRule_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule; -type TLInputPrivacyValueDisallowUsers struct { - Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// payments_ValidatedRequestedInfo <-- +// + TL_payments_validatedRequestedInfo +// +type Payments_ValidatedRequestedInfo_Data struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ShippingOptions []*ShippingOption `protobuf:"bytes,2,rep,name=shipping_options,json=shippingOptions,proto3" json:"shipping_options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPrivacyValueDisallowUsers) Reset() { *m = TLInputPrivacyValueDisallowUsers{} } -func (m *TLInputPrivacyValueDisallowUsers) String() string { return proto.CompactTextString(m) } -func (*TLInputPrivacyValueDisallowUsers) ProtoMessage() {} -func (*TLInputPrivacyValueDisallowUsers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{464} +func (m *Payments_ValidatedRequestedInfo_Data) Reset() { *m = Payments_ValidatedRequestedInfo_Data{} } +func (m *Payments_ValidatedRequestedInfo_Data) String() string { return proto.CompactTextString(m) } +func (*Payments_ValidatedRequestedInfo_Data) ProtoMessage() {} +func (*Payments_ValidatedRequestedInfo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{424} } -func (m *TLInputPrivacyValueDisallowUsers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPrivacyValueDisallowUsers.Unmarshal(m, b) +func (m *Payments_ValidatedRequestedInfo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.Unmarshal(m, b) } -func (m *TLInputPrivacyValueDisallowUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPrivacyValueDisallowUsers.Marshal(b, m, deterministic) +func (m *Payments_ValidatedRequestedInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.Marshal(b, m, deterministic) } -func (dst *TLInputPrivacyValueDisallowUsers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPrivacyValueDisallowUsers.Merge(dst, src) +func (dst *Payments_ValidatedRequestedInfo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.Merge(dst, src) } -func (m *TLInputPrivacyValueDisallowUsers) XXX_Size() int { - return xxx_messageInfo_TLInputPrivacyValueDisallowUsers.Size(m) +func (m *Payments_ValidatedRequestedInfo_Data) XXX_Size() int { + return xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.Size(m) } -func (m *TLInputPrivacyValueDisallowUsers) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPrivacyValueDisallowUsers.DiscardUnknown(m) +func (m *Payments_ValidatedRequestedInfo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPrivacyValueDisallowUsers proto.InternalMessageInfo +var xxx_messageInfo_Payments_ValidatedRequestedInfo_Data proto.InternalMessageInfo -func (m *TLInputPrivacyValueDisallowUsers) GetData2() *InputPrivacyRule_Data { +func (m *Payments_ValidatedRequestedInfo_Data) GetId() string { if m != nil { - return m.Data2 + return m.Id } - return nil -} - -// ///////////////////////////////////////////////////////////////////////////// -// account_Authorizations <-- -// + TL_account_authorizations -// -type Account_Authorizations_Data struct { - Authorizations []*Authorization `protobuf:"bytes,1,rep,name=authorizations,proto3" json:"authorizations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Account_Authorizations_Data) Reset() { *m = Account_Authorizations_Data{} } -func (m *Account_Authorizations_Data) String() string { return proto.CompactTextString(m) } -func (*Account_Authorizations_Data) ProtoMessage() {} -func (*Account_Authorizations_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{465} -} -func (m *Account_Authorizations_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_Authorizations_Data.Unmarshal(m, b) -} -func (m *Account_Authorizations_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_Authorizations_Data.Marshal(b, m, deterministic) -} -func (dst *Account_Authorizations_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_Authorizations_Data.Merge(dst, src) -} -func (m *Account_Authorizations_Data) XXX_Size() int { - return xxx_messageInfo_Account_Authorizations_Data.Size(m) -} -func (m *Account_Authorizations_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_Authorizations_Data.DiscardUnknown(m) + return "" } -var xxx_messageInfo_Account_Authorizations_Data proto.InternalMessageInfo - -func (m *Account_Authorizations_Data) GetAuthorizations() []*Authorization { +func (m *Payments_ValidatedRequestedInfo_Data) GetShippingOptions() []*ShippingOption { if m != nil { - return m.Authorizations + return m.ShippingOptions } return nil } -type Account_Authorizations struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_Authorizations_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Payments_ValidatedRequestedInfo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Payments_ValidatedRequestedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_Authorizations) Reset() { *m = Account_Authorizations{} } -func (m *Account_Authorizations) String() string { return proto.CompactTextString(m) } -func (*Account_Authorizations) ProtoMessage() {} -func (*Account_Authorizations) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{466} +func (m *Payments_ValidatedRequestedInfo) Reset() { *m = Payments_ValidatedRequestedInfo{} } +func (m *Payments_ValidatedRequestedInfo) String() string { return proto.CompactTextString(m) } +func (*Payments_ValidatedRequestedInfo) ProtoMessage() {} +func (*Payments_ValidatedRequestedInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{425} } -func (m *Account_Authorizations) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_Authorizations.Unmarshal(m, b) +func (m *Payments_ValidatedRequestedInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_ValidatedRequestedInfo.Unmarshal(m, b) } -func (m *Account_Authorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_Authorizations.Marshal(b, m, deterministic) +func (m *Payments_ValidatedRequestedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_ValidatedRequestedInfo.Marshal(b, m, deterministic) } -func (dst *Account_Authorizations) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_Authorizations.Merge(dst, src) +func (dst *Payments_ValidatedRequestedInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_ValidatedRequestedInfo.Merge(dst, src) } -func (m *Account_Authorizations) XXX_Size() int { - return xxx_messageInfo_Account_Authorizations.Size(m) +func (m *Payments_ValidatedRequestedInfo) XXX_Size() int { + return xxx_messageInfo_Payments_ValidatedRequestedInfo.Size(m) } -func (m *Account_Authorizations) XXX_DiscardUnknown() { - xxx_messageInfo_Account_Authorizations.DiscardUnknown(m) +func (m *Payments_ValidatedRequestedInfo) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_ValidatedRequestedInfo.DiscardUnknown(m) } -var xxx_messageInfo_Account_Authorizations proto.InternalMessageInfo +var xxx_messageInfo_Payments_ValidatedRequestedInfo proto.InternalMessageInfo -func (m *Account_Authorizations) GetConstructor() TLConstructor { +func (m *Payments_ValidatedRequestedInfo) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Account_Authorizations) GetData2() *Account_Authorizations_Data { +func (m *Payments_ValidatedRequestedInfo) GetData2() *Payments_ValidatedRequestedInfo_Data { if m != nil { return m.Data2 } return nil } -// account.authorizations#1250abde authorizations:Vector = account.Authorizations; -type TLAccountAuthorizations struct { - Data2 *Account_Authorizations_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; +type TLPaymentsValidatedRequestedInfo struct { + Data2 *Payments_ValidatedRequestedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountAuthorizations) Reset() { *m = TLAccountAuthorizations{} } -func (m *TLAccountAuthorizations) String() string { return proto.CompactTextString(m) } -func (*TLAccountAuthorizations) ProtoMessage() {} -func (*TLAccountAuthorizations) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{467} +func (m *TLPaymentsValidatedRequestedInfo) Reset() { *m = TLPaymentsValidatedRequestedInfo{} } +func (m *TLPaymentsValidatedRequestedInfo) String() string { return proto.CompactTextString(m) } +func (*TLPaymentsValidatedRequestedInfo) ProtoMessage() {} +func (*TLPaymentsValidatedRequestedInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{426} } -func (m *TLAccountAuthorizations) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountAuthorizations.Unmarshal(m, b) +func (m *TLPaymentsValidatedRequestedInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPaymentsValidatedRequestedInfo.Unmarshal(m, b) } -func (m *TLAccountAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountAuthorizations.Marshal(b, m, deterministic) +func (m *TLPaymentsValidatedRequestedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPaymentsValidatedRequestedInfo.Marshal(b, m, deterministic) } -func (dst *TLAccountAuthorizations) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountAuthorizations.Merge(dst, src) +func (dst *TLPaymentsValidatedRequestedInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPaymentsValidatedRequestedInfo.Merge(dst, src) } -func (m *TLAccountAuthorizations) XXX_Size() int { - return xxx_messageInfo_TLAccountAuthorizations.Size(m) +func (m *TLPaymentsValidatedRequestedInfo) XXX_Size() int { + return xxx_messageInfo_TLPaymentsValidatedRequestedInfo.Size(m) } -func (m *TLAccountAuthorizations) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountAuthorizations.DiscardUnknown(m) +func (m *TLPaymentsValidatedRequestedInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLPaymentsValidatedRequestedInfo.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountAuthorizations proto.InternalMessageInfo +var xxx_messageInfo_TLPaymentsValidatedRequestedInfo proto.InternalMessageInfo -func (m *TLAccountAuthorizations) GetData2() *Account_Authorizations_Data { +func (m *TLPaymentsValidatedRequestedInfo) GetData2() *Payments_ValidatedRequestedInfo_Data { if m != nil { return m.Data2 } @@ -22339,134 +21281,150 @@ func (m *TLAccountAuthorizations) GetData2() *Account_Authorizations_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ReceivedNotifyMessage <-- -// + TL_receivedNotifyMessage +// SchemeType <-- +// + TL_schemeType // -type ReceivedNotifyMessage_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Flags int32 `protobuf:"varint,2,opt,name=flags,proto3" json:"flags,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SchemeType_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` + Params []*SchemeParam `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ReceivedNotifyMessage_Data) Reset() { *m = ReceivedNotifyMessage_Data{} } -func (m *ReceivedNotifyMessage_Data) String() string { return proto.CompactTextString(m) } -func (*ReceivedNotifyMessage_Data) ProtoMessage() {} -func (*ReceivedNotifyMessage_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{468} +func (m *SchemeType_Data) Reset() { *m = SchemeType_Data{} } +func (m *SchemeType_Data) String() string { return proto.CompactTextString(m) } +func (*SchemeType_Data) ProtoMessage() {} +func (*SchemeType_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{427} } -func (m *ReceivedNotifyMessage_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReceivedNotifyMessage_Data.Unmarshal(m, b) +func (m *SchemeType_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemeType_Data.Unmarshal(m, b) } -func (m *ReceivedNotifyMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReceivedNotifyMessage_Data.Marshal(b, m, deterministic) +func (m *SchemeType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemeType_Data.Marshal(b, m, deterministic) } -func (dst *ReceivedNotifyMessage_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReceivedNotifyMessage_Data.Merge(dst, src) +func (dst *SchemeType_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemeType_Data.Merge(dst, src) } -func (m *ReceivedNotifyMessage_Data) XXX_Size() int { - return xxx_messageInfo_ReceivedNotifyMessage_Data.Size(m) +func (m *SchemeType_Data) XXX_Size() int { + return xxx_messageInfo_SchemeType_Data.Size(m) } -func (m *ReceivedNotifyMessage_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ReceivedNotifyMessage_Data.DiscardUnknown(m) +func (m *SchemeType_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SchemeType_Data.DiscardUnknown(m) } -var xxx_messageInfo_ReceivedNotifyMessage_Data proto.InternalMessageInfo +var xxx_messageInfo_SchemeType_Data proto.InternalMessageInfo -func (m *ReceivedNotifyMessage_Data) GetId() int32 { +func (m *SchemeType_Data) GetId() int32 { if m != nil { return m.Id } return 0 } -func (m *ReceivedNotifyMessage_Data) GetFlags() int32 { +func (m *SchemeType_Data) GetPredicate() string { if m != nil { - return m.Flags + return m.Predicate } - return 0 + return "" } -type ReceivedNotifyMessage struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ReceivedNotifyMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *SchemeType_Data) GetParams() []*SchemeParam { + if m != nil { + return m.Params + } + return nil } -func (m *ReceivedNotifyMessage) Reset() { *m = ReceivedNotifyMessage{} } -func (m *ReceivedNotifyMessage) String() string { return proto.CompactTextString(m) } -func (*ReceivedNotifyMessage) ProtoMessage() {} -func (*ReceivedNotifyMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{469} +func (m *SchemeType_Data) GetType() string { + if m != nil { + return m.Type + } + return "" } -func (m *ReceivedNotifyMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReceivedNotifyMessage.Unmarshal(m, b) + +type SchemeType struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SchemeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ReceivedNotifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReceivedNotifyMessage.Marshal(b, m, deterministic) + +func (m *SchemeType) Reset() { *m = SchemeType{} } +func (m *SchemeType) String() string { return proto.CompactTextString(m) } +func (*SchemeType) ProtoMessage() {} +func (*SchemeType) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{428} } -func (dst *ReceivedNotifyMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReceivedNotifyMessage.Merge(dst, src) +func (m *SchemeType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemeType.Unmarshal(m, b) } -func (m *ReceivedNotifyMessage) XXX_Size() int { - return xxx_messageInfo_ReceivedNotifyMessage.Size(m) +func (m *SchemeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemeType.Marshal(b, m, deterministic) } -func (m *ReceivedNotifyMessage) XXX_DiscardUnknown() { - xxx_messageInfo_ReceivedNotifyMessage.DiscardUnknown(m) +func (dst *SchemeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemeType.Merge(dst, src) +} +func (m *SchemeType) XXX_Size() int { + return xxx_messageInfo_SchemeType.Size(m) +} +func (m *SchemeType) XXX_DiscardUnknown() { + xxx_messageInfo_SchemeType.DiscardUnknown(m) } -var xxx_messageInfo_ReceivedNotifyMessage proto.InternalMessageInfo +var xxx_messageInfo_SchemeType proto.InternalMessageInfo -func (m *ReceivedNotifyMessage) GetConstructor() TLConstructor { +func (m *SchemeType) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ReceivedNotifyMessage) GetData2() *ReceivedNotifyMessage_Data { +func (m *SchemeType) GetData2() *SchemeType_Data { if m != nil { return m.Data2 } return nil } -// receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage; -type TLReceivedNotifyMessage struct { - Data2 *ReceivedNotifyMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// schemeType#a8e1e989 id:int predicate:string params:Vector type:string = SchemeType; +type TLSchemeType struct { + Data2 *SchemeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLReceivedNotifyMessage) Reset() { *m = TLReceivedNotifyMessage{} } -func (m *TLReceivedNotifyMessage) String() string { return proto.CompactTextString(m) } -func (*TLReceivedNotifyMessage) ProtoMessage() {} -func (*TLReceivedNotifyMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{470} +func (m *TLSchemeType) Reset() { *m = TLSchemeType{} } +func (m *TLSchemeType) String() string { return proto.CompactTextString(m) } +func (*TLSchemeType) ProtoMessage() {} +func (*TLSchemeType) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{429} } -func (m *TLReceivedNotifyMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLReceivedNotifyMessage.Unmarshal(m, b) +func (m *TLSchemeType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSchemeType.Unmarshal(m, b) } -func (m *TLReceivedNotifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLReceivedNotifyMessage.Marshal(b, m, deterministic) +func (m *TLSchemeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSchemeType.Marshal(b, m, deterministic) } -func (dst *TLReceivedNotifyMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLReceivedNotifyMessage.Merge(dst, src) +func (dst *TLSchemeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSchemeType.Merge(dst, src) } -func (m *TLReceivedNotifyMessage) XXX_Size() int { - return xxx_messageInfo_TLReceivedNotifyMessage.Size(m) +func (m *TLSchemeType) XXX_Size() int { + return xxx_messageInfo_TLSchemeType.Size(m) } -func (m *TLReceivedNotifyMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLReceivedNotifyMessage.DiscardUnknown(m) +func (m *TLSchemeType) XXX_DiscardUnknown() { + xxx_messageInfo_TLSchemeType.DiscardUnknown(m) } -var xxx_messageInfo_TLReceivedNotifyMessage proto.InternalMessageInfo +var xxx_messageInfo_TLSchemeType proto.InternalMessageInfo -func (m *TLReceivedNotifyMessage) GetData2() *ReceivedNotifyMessage_Data { +func (m *TLSchemeType) GetData2() *SchemeType_Data { if m != nil { return m.Data2 } @@ -22474,285 +21432,342 @@ func (m *TLReceivedNotifyMessage) GetData2() *ReceivedNotifyMessage_Data { } // ///////////////////////////////////////////////////////////////////////////// -// LangPackLanguage <-- -// + TL_langPackLanguage +// EncryptedChat <-- +// + TL_encryptedChatEmpty +// + TL_encryptedChatWaiting +// + TL_encryptedChatRequested +// + TL_encryptedChat +// + TL_encryptedChatDiscarded // -type LangPackLanguage_Data struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - NativeName string `protobuf:"bytes,2,opt,name=native_name,json=nativeName,proto3" json:"native_name,omitempty"` - LangCode string `protobuf:"bytes,3,opt,name=lang_code,json=langCode,proto3" json:"lang_code,omitempty"` +type EncryptedChat_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` + AdminId int32 `protobuf:"varint,4,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"` + ParticipantId int32 `protobuf:"varint,5,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` + GA []byte `protobuf:"bytes,6,opt,name=g_a,json=gA,proto3" json:"g_a,omitempty"` + GAOrB []byte `protobuf:"bytes,7,opt,name=g_a_or_b,json=gAOrB,proto3" json:"g_a_or_b,omitempty"` + KeyFingerprint int64 `protobuf:"varint,8,opt,name=key_fingerprint,json=keyFingerprint,proto3" json:"key_fingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *LangPackLanguage_Data) Reset() { *m = LangPackLanguage_Data{} } -func (m *LangPackLanguage_Data) String() string { return proto.CompactTextString(m) } -func (*LangPackLanguage_Data) ProtoMessage() {} -func (*LangPackLanguage_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{471} +func (m *EncryptedChat_Data) Reset() { *m = EncryptedChat_Data{} } +func (m *EncryptedChat_Data) String() string { return proto.CompactTextString(m) } +func (*EncryptedChat_Data) ProtoMessage() {} +func (*EncryptedChat_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{430} } -func (m *LangPackLanguage_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LangPackLanguage_Data.Unmarshal(m, b) +func (m *EncryptedChat_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EncryptedChat_Data.Unmarshal(m, b) } -func (m *LangPackLanguage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LangPackLanguage_Data.Marshal(b, m, deterministic) +func (m *EncryptedChat_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EncryptedChat_Data.Marshal(b, m, deterministic) } -func (dst *LangPackLanguage_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_LangPackLanguage_Data.Merge(dst, src) +func (dst *EncryptedChat_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedChat_Data.Merge(dst, src) } -func (m *LangPackLanguage_Data) XXX_Size() int { - return xxx_messageInfo_LangPackLanguage_Data.Size(m) +func (m *EncryptedChat_Data) XXX_Size() int { + return xxx_messageInfo_EncryptedChat_Data.Size(m) } -func (m *LangPackLanguage_Data) XXX_DiscardUnknown() { - xxx_messageInfo_LangPackLanguage_Data.DiscardUnknown(m) +func (m *EncryptedChat_Data) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptedChat_Data.DiscardUnknown(m) } -var xxx_messageInfo_LangPackLanguage_Data proto.InternalMessageInfo +var xxx_messageInfo_EncryptedChat_Data proto.InternalMessageInfo -func (m *LangPackLanguage_Data) GetName() string { +func (m *EncryptedChat_Data) GetId() int32 { if m != nil { - return m.Name + return m.Id } - return "" + return 0 } -func (m *LangPackLanguage_Data) GetNativeName() string { +func (m *EncryptedChat_Data) GetAccessHash() int64 { if m != nil { - return m.NativeName + return m.AccessHash } - return "" + return 0 } -func (m *LangPackLanguage_Data) GetLangCode() string { +func (m *EncryptedChat_Data) GetDate() int32 { if m != nil { - return m.LangCode + return m.Date } - return "" + return 0 } -type LangPackLanguage struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *LangPackLanguage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *EncryptedChat_Data) GetAdminId() int32 { + if m != nil { + return m.AdminId + } + return 0 } -func (m *LangPackLanguage) Reset() { *m = LangPackLanguage{} } -func (m *LangPackLanguage) String() string { return proto.CompactTextString(m) } -func (*LangPackLanguage) ProtoMessage() {} -func (*LangPackLanguage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{472} -} -func (m *LangPackLanguage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LangPackLanguage.Unmarshal(m, b) -} -func (m *LangPackLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LangPackLanguage.Marshal(b, m, deterministic) -} -func (dst *LangPackLanguage) XXX_Merge(src proto.Message) { - xxx_messageInfo_LangPackLanguage.Merge(dst, src) -} -func (m *LangPackLanguage) XXX_Size() int { - return xxx_messageInfo_LangPackLanguage.Size(m) -} -func (m *LangPackLanguage) XXX_DiscardUnknown() { - xxx_messageInfo_LangPackLanguage.DiscardUnknown(m) +func (m *EncryptedChat_Data) GetParticipantId() int32 { + if m != nil { + return m.ParticipantId + } + return 0 } -var xxx_messageInfo_LangPackLanguage proto.InternalMessageInfo - -func (m *LangPackLanguage) GetConstructor() TLConstructor { +func (m *EncryptedChat_Data) GetGA() []byte { if m != nil { - return m.Constructor + return m.GA } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *LangPackLanguage) GetData2() *LangPackLanguage_Data { +func (m *EncryptedChat_Data) GetGAOrB() []byte { if m != nil { - return m.Data2 + return m.GAOrB } return nil } -// langPackLanguage#117698f1 name:string native_name:string lang_code:string = LangPackLanguage; -type TLLangPackLanguage struct { - Data2 *LangPackLanguage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *EncryptedChat_Data) GetKeyFingerprint() int64 { + if m != nil { + return m.KeyFingerprint + } + return 0 } -func (m *TLLangPackLanguage) Reset() { *m = TLLangPackLanguage{} } -func (m *TLLangPackLanguage) String() string { return proto.CompactTextString(m) } -func (*TLLangPackLanguage) ProtoMessage() {} -func (*TLLangPackLanguage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{473} -} -func (m *TLLangPackLanguage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLLangPackLanguage.Unmarshal(m, b) -} -func (m *TLLangPackLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLLangPackLanguage.Marshal(b, m, deterministic) +type EncryptedChat struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (dst *TLLangPackLanguage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLLangPackLanguage.Merge(dst, src) + +func (m *EncryptedChat) Reset() { *m = EncryptedChat{} } +func (m *EncryptedChat) String() string { return proto.CompactTextString(m) } +func (*EncryptedChat) ProtoMessage() {} +func (*EncryptedChat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{431} } -func (m *TLLangPackLanguage) XXX_Size() int { - return xxx_messageInfo_TLLangPackLanguage.Size(m) +func (m *EncryptedChat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EncryptedChat.Unmarshal(m, b) } -func (m *TLLangPackLanguage) XXX_DiscardUnknown() { - xxx_messageInfo_TLLangPackLanguage.DiscardUnknown(m) +func (m *EncryptedChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EncryptedChat.Marshal(b, m, deterministic) +} +func (dst *EncryptedChat) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedChat.Merge(dst, src) +} +func (m *EncryptedChat) XXX_Size() int { + return xxx_messageInfo_EncryptedChat.Size(m) +} +func (m *EncryptedChat) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptedChat.DiscardUnknown(m) } -var xxx_messageInfo_TLLangPackLanguage proto.InternalMessageInfo +var xxx_messageInfo_EncryptedChat proto.InternalMessageInfo -func (m *TLLangPackLanguage) GetData2() *LangPackLanguage_Data { +func (m *EncryptedChat) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *EncryptedChat) GetData2() *EncryptedChat_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// channels_AdminLogResults <-- -// + TL_channels_adminLogResults -// -type Channels_AdminLogResults_Data struct { - Events []*ChannelAdminLogEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` - Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat; +type TLEncryptedChatEmpty struct { + Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Channels_AdminLogResults_Data) Reset() { *m = Channels_AdminLogResults_Data{} } -func (m *Channels_AdminLogResults_Data) String() string { return proto.CompactTextString(m) } -func (*Channels_AdminLogResults_Data) ProtoMessage() {} -func (*Channels_AdminLogResults_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{474} +func (m *TLEncryptedChatEmpty) Reset() { *m = TLEncryptedChatEmpty{} } +func (m *TLEncryptedChatEmpty) String() string { return proto.CompactTextString(m) } +func (*TLEncryptedChatEmpty) ProtoMessage() {} +func (*TLEncryptedChatEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{432} } -func (m *Channels_AdminLogResults_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Channels_AdminLogResults_Data.Unmarshal(m, b) +func (m *TLEncryptedChatEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLEncryptedChatEmpty.Unmarshal(m, b) } -func (m *Channels_AdminLogResults_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Channels_AdminLogResults_Data.Marshal(b, m, deterministic) +func (m *TLEncryptedChatEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLEncryptedChatEmpty.Marshal(b, m, deterministic) } -func (dst *Channels_AdminLogResults_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Channels_AdminLogResults_Data.Merge(dst, src) +func (dst *TLEncryptedChatEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLEncryptedChatEmpty.Merge(dst, src) } -func (m *Channels_AdminLogResults_Data) XXX_Size() int { - return xxx_messageInfo_Channels_AdminLogResults_Data.Size(m) +func (m *TLEncryptedChatEmpty) XXX_Size() int { + return xxx_messageInfo_TLEncryptedChatEmpty.Size(m) } -func (m *Channels_AdminLogResults_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Channels_AdminLogResults_Data.DiscardUnknown(m) +func (m *TLEncryptedChatEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLEncryptedChatEmpty.DiscardUnknown(m) } -var xxx_messageInfo_Channels_AdminLogResults_Data proto.InternalMessageInfo +var xxx_messageInfo_TLEncryptedChatEmpty proto.InternalMessageInfo -func (m *Channels_AdminLogResults_Data) GetEvents() []*ChannelAdminLogEvent { +func (m *TLEncryptedChatEmpty) GetData2() *EncryptedChat_Data { if m != nil { - return m.Events + return m.Data2 } return nil } -func (m *Channels_AdminLogResults_Data) GetChats() []*Chat { - if m != nil { - return m.Chats - } - return nil +// encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat; +type TLEncryptedChatWaiting struct { + Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Channels_AdminLogResults_Data) GetUsers() []*User { +func (m *TLEncryptedChatWaiting) Reset() { *m = TLEncryptedChatWaiting{} } +func (m *TLEncryptedChatWaiting) String() string { return proto.CompactTextString(m) } +func (*TLEncryptedChatWaiting) ProtoMessage() {} +func (*TLEncryptedChatWaiting) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{433} +} +func (m *TLEncryptedChatWaiting) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLEncryptedChatWaiting.Unmarshal(m, b) +} +func (m *TLEncryptedChatWaiting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLEncryptedChatWaiting.Marshal(b, m, deterministic) +} +func (dst *TLEncryptedChatWaiting) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLEncryptedChatWaiting.Merge(dst, src) +} +func (m *TLEncryptedChatWaiting) XXX_Size() int { + return xxx_messageInfo_TLEncryptedChatWaiting.Size(m) +} +func (m *TLEncryptedChatWaiting) XXX_DiscardUnknown() { + xxx_messageInfo_TLEncryptedChatWaiting.DiscardUnknown(m) +} + +var xxx_messageInfo_TLEncryptedChatWaiting proto.InternalMessageInfo + +func (m *TLEncryptedChatWaiting) GetData2() *EncryptedChat_Data { if m != nil { - return m.Users + return m.Data2 } return nil } -type Channels_AdminLogResults struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Channels_AdminLogResults_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// encryptedChatRequested#c878527e id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat; +type TLEncryptedChatRequested struct { + Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Channels_AdminLogResults) Reset() { *m = Channels_AdminLogResults{} } -func (m *Channels_AdminLogResults) String() string { return proto.CompactTextString(m) } -func (*Channels_AdminLogResults) ProtoMessage() {} -func (*Channels_AdminLogResults) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{475} +func (m *TLEncryptedChatRequested) Reset() { *m = TLEncryptedChatRequested{} } +func (m *TLEncryptedChatRequested) String() string { return proto.CompactTextString(m) } +func (*TLEncryptedChatRequested) ProtoMessage() {} +func (*TLEncryptedChatRequested) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{434} } -func (m *Channels_AdminLogResults) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Channels_AdminLogResults.Unmarshal(m, b) +func (m *TLEncryptedChatRequested) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLEncryptedChatRequested.Unmarshal(m, b) } -func (m *Channels_AdminLogResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Channels_AdminLogResults.Marshal(b, m, deterministic) +func (m *TLEncryptedChatRequested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLEncryptedChatRequested.Marshal(b, m, deterministic) } -func (dst *Channels_AdminLogResults) XXX_Merge(src proto.Message) { - xxx_messageInfo_Channels_AdminLogResults.Merge(dst, src) +func (dst *TLEncryptedChatRequested) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLEncryptedChatRequested.Merge(dst, src) } -func (m *Channels_AdminLogResults) XXX_Size() int { - return xxx_messageInfo_Channels_AdminLogResults.Size(m) +func (m *TLEncryptedChatRequested) XXX_Size() int { + return xxx_messageInfo_TLEncryptedChatRequested.Size(m) } -func (m *Channels_AdminLogResults) XXX_DiscardUnknown() { - xxx_messageInfo_Channels_AdminLogResults.DiscardUnknown(m) +func (m *TLEncryptedChatRequested) XXX_DiscardUnknown() { + xxx_messageInfo_TLEncryptedChatRequested.DiscardUnknown(m) } -var xxx_messageInfo_Channels_AdminLogResults proto.InternalMessageInfo +var xxx_messageInfo_TLEncryptedChatRequested proto.InternalMessageInfo -func (m *Channels_AdminLogResults) GetConstructor() TLConstructor { +func (m *TLEncryptedChatRequested) GetData2() *EncryptedChat_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *Channels_AdminLogResults) GetData2() *Channels_AdminLogResults_Data { +// encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat; +type TLEncryptedChat struct { + Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLEncryptedChat) Reset() { *m = TLEncryptedChat{} } +func (m *TLEncryptedChat) String() string { return proto.CompactTextString(m) } +func (*TLEncryptedChat) ProtoMessage() {} +func (*TLEncryptedChat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{435} +} +func (m *TLEncryptedChat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLEncryptedChat.Unmarshal(m, b) +} +func (m *TLEncryptedChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLEncryptedChat.Marshal(b, m, deterministic) +} +func (dst *TLEncryptedChat) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLEncryptedChat.Merge(dst, src) +} +func (m *TLEncryptedChat) XXX_Size() int { + return xxx_messageInfo_TLEncryptedChat.Size(m) +} +func (m *TLEncryptedChat) XXX_DiscardUnknown() { + xxx_messageInfo_TLEncryptedChat.DiscardUnknown(m) +} + +var xxx_messageInfo_TLEncryptedChat proto.InternalMessageInfo + +func (m *TLEncryptedChat) GetData2() *EncryptedChat_Data { if m != nil { return m.Data2 } return nil } -// channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; -type TLChannelsAdminLogResults struct { - Data2 *Channels_AdminLogResults_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat; +type TLEncryptedChatDiscarded struct { + Data2 *EncryptedChat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelsAdminLogResults) Reset() { *m = TLChannelsAdminLogResults{} } -func (m *TLChannelsAdminLogResults) String() string { return proto.CompactTextString(m) } -func (*TLChannelsAdminLogResults) ProtoMessage() {} -func (*TLChannelsAdminLogResults) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{476} +func (m *TLEncryptedChatDiscarded) Reset() { *m = TLEncryptedChatDiscarded{} } +func (m *TLEncryptedChatDiscarded) String() string { return proto.CompactTextString(m) } +func (*TLEncryptedChatDiscarded) ProtoMessage() {} +func (*TLEncryptedChatDiscarded) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{436} } -func (m *TLChannelsAdminLogResults) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelsAdminLogResults.Unmarshal(m, b) +func (m *TLEncryptedChatDiscarded) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLEncryptedChatDiscarded.Unmarshal(m, b) } -func (m *TLChannelsAdminLogResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelsAdminLogResults.Marshal(b, m, deterministic) +func (m *TLEncryptedChatDiscarded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLEncryptedChatDiscarded.Marshal(b, m, deterministic) } -func (dst *TLChannelsAdminLogResults) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelsAdminLogResults.Merge(dst, src) +func (dst *TLEncryptedChatDiscarded) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLEncryptedChatDiscarded.Merge(dst, src) } -func (m *TLChannelsAdminLogResults) XXX_Size() int { - return xxx_messageInfo_TLChannelsAdminLogResults.Size(m) +func (m *TLEncryptedChatDiscarded) XXX_Size() int { + return xxx_messageInfo_TLEncryptedChatDiscarded.Size(m) } -func (m *TLChannelsAdminLogResults) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelsAdminLogResults.DiscardUnknown(m) +func (m *TLEncryptedChatDiscarded) XXX_DiscardUnknown() { + xxx_messageInfo_TLEncryptedChatDiscarded.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelsAdminLogResults proto.InternalMessageInfo +var xxx_messageInfo_TLEncryptedChatDiscarded proto.InternalMessageInfo -func (m *TLChannelsAdminLogResults) GetData2() *Channels_AdminLogResults_Data { +func (m *TLEncryptedChatDiscarded) GetData2() *EncryptedChat_Data { if m != nil { return m.Data2 } @@ -22760,1210 +21775,1060 @@ func (m *TLChannelsAdminLogResults) GetData2() *Channels_AdminLogResults_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ChatPhoto <-- -// + TL_chatPhotoEmpty -// + TL_chatPhoto +// MessageEntity <-- +// + TL_messageEntityUnknown +// + TL_messageEntityMention +// + TL_messageEntityHashtag +// + TL_messageEntityBotCommand +// + TL_messageEntityUrl +// + TL_messageEntityEmail +// + TL_messageEntityBold +// + TL_messageEntityItalic +// + TL_messageEntityCode +// + TL_messageEntityPre +// + TL_messageEntityTextUrl +// + TL_messageEntityMentionName +// + TL_inputMessageEntityMentionName +// + TL_messageEntityPhone +// + TL_messageEntityCashtag // -type ChatPhoto_Data struct { - PhotoSmall *FileLocation `protobuf:"bytes,1,opt,name=photo_small,json=photoSmall,proto3" json:"photo_small,omitempty"` - PhotoBig *FileLocation `protobuf:"bytes,2,opt,name=photo_big,json=photoBig,proto3" json:"photo_big,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MessageEntity_Data struct { + Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` + Length int32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` + Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"` + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` + UserId_5 int32 `protobuf:"varint,5,opt,name=user_id_5,json=userId5,proto3" json:"user_id_5,omitempty"` + UserId_6 *InputUser `protobuf:"bytes,6,opt,name=user_id_6,json=userId6,proto3" json:"user_id_6,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatPhoto_Data) Reset() { *m = ChatPhoto_Data{} } -func (m *ChatPhoto_Data) String() string { return proto.CompactTextString(m) } -func (*ChatPhoto_Data) ProtoMessage() {} -func (*ChatPhoto_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{477} +func (m *MessageEntity_Data) Reset() { *m = MessageEntity_Data{} } +func (m *MessageEntity_Data) String() string { return proto.CompactTextString(m) } +func (*MessageEntity_Data) ProtoMessage() {} +func (*MessageEntity_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{437} } -func (m *ChatPhoto_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatPhoto_Data.Unmarshal(m, b) +func (m *MessageEntity_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageEntity_Data.Unmarshal(m, b) } -func (m *ChatPhoto_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatPhoto_Data.Marshal(b, m, deterministic) +func (m *MessageEntity_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageEntity_Data.Marshal(b, m, deterministic) } -func (dst *ChatPhoto_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatPhoto_Data.Merge(dst, src) +func (dst *MessageEntity_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageEntity_Data.Merge(dst, src) } -func (m *ChatPhoto_Data) XXX_Size() int { - return xxx_messageInfo_ChatPhoto_Data.Size(m) +func (m *MessageEntity_Data) XXX_Size() int { + return xxx_messageInfo_MessageEntity_Data.Size(m) } -func (m *ChatPhoto_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChatPhoto_Data.DiscardUnknown(m) +func (m *MessageEntity_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MessageEntity_Data.DiscardUnknown(m) } -var xxx_messageInfo_ChatPhoto_Data proto.InternalMessageInfo +var xxx_messageInfo_MessageEntity_Data proto.InternalMessageInfo -func (m *ChatPhoto_Data) GetPhotoSmall() *FileLocation { +func (m *MessageEntity_Data) GetOffset() int32 { if m != nil { - return m.PhotoSmall + return m.Offset } - return nil + return 0 } -func (m *ChatPhoto_Data) GetPhotoBig() *FileLocation { +func (m *MessageEntity_Data) GetLength() int32 { if m != nil { - return m.PhotoBig + return m.Length + } + return 0 +} + +func (m *MessageEntity_Data) GetLanguage() string { + if m != nil { + return m.Language + } + return "" +} + +func (m *MessageEntity_Data) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *MessageEntity_Data) GetUserId_5() int32 { + if m != nil { + return m.UserId_5 + } + return 0 +} + +func (m *MessageEntity_Data) GetUserId_6() *InputUser { + if m != nil { + return m.UserId_6 } return nil } -type ChatPhoto struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MessageEntity struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatPhoto) Reset() { *m = ChatPhoto{} } -func (m *ChatPhoto) String() string { return proto.CompactTextString(m) } -func (*ChatPhoto) ProtoMessage() {} -func (*ChatPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{478} +func (m *MessageEntity) Reset() { *m = MessageEntity{} } +func (m *MessageEntity) String() string { return proto.CompactTextString(m) } +func (*MessageEntity) ProtoMessage() {} +func (*MessageEntity) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{438} } -func (m *ChatPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatPhoto.Unmarshal(m, b) +func (m *MessageEntity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageEntity.Unmarshal(m, b) } -func (m *ChatPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatPhoto.Marshal(b, m, deterministic) +func (m *MessageEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageEntity.Marshal(b, m, deterministic) } -func (dst *ChatPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatPhoto.Merge(dst, src) +func (dst *MessageEntity) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageEntity.Merge(dst, src) } -func (m *ChatPhoto) XXX_Size() int { - return xxx_messageInfo_ChatPhoto.Size(m) +func (m *MessageEntity) XXX_Size() int { + return xxx_messageInfo_MessageEntity.Size(m) } -func (m *ChatPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_ChatPhoto.DiscardUnknown(m) +func (m *MessageEntity) XXX_DiscardUnknown() { + xxx_messageInfo_MessageEntity.DiscardUnknown(m) } -var xxx_messageInfo_ChatPhoto proto.InternalMessageInfo +var xxx_messageInfo_MessageEntity proto.InternalMessageInfo -func (m *ChatPhoto) GetConstructor() TLConstructor { +func (m *MessageEntity) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ChatPhoto) GetData2() *ChatPhoto_Data { +func (m *MessageEntity) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// chatPhotoEmpty#37c1011c = ChatPhoto; -type TLChatPhotoEmpty struct { - Data2 *ChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity; +type TLMessageEntityUnknown struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatPhotoEmpty) Reset() { *m = TLChatPhotoEmpty{} } -func (m *TLChatPhotoEmpty) String() string { return proto.CompactTextString(m) } -func (*TLChatPhotoEmpty) ProtoMessage() {} -func (*TLChatPhotoEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{479} +func (m *TLMessageEntityUnknown) Reset() { *m = TLMessageEntityUnknown{} } +func (m *TLMessageEntityUnknown) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityUnknown) ProtoMessage() {} +func (*TLMessageEntityUnknown) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{439} } -func (m *TLChatPhotoEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatPhotoEmpty.Unmarshal(m, b) +func (m *TLMessageEntityUnknown) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityUnknown.Unmarshal(m, b) } -func (m *TLChatPhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatPhotoEmpty.Marshal(b, m, deterministic) +func (m *TLMessageEntityUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityUnknown.Marshal(b, m, deterministic) } -func (dst *TLChatPhotoEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatPhotoEmpty.Merge(dst, src) +func (dst *TLMessageEntityUnknown) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityUnknown.Merge(dst, src) } -func (m *TLChatPhotoEmpty) XXX_Size() int { - return xxx_messageInfo_TLChatPhotoEmpty.Size(m) +func (m *TLMessageEntityUnknown) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityUnknown.Size(m) } -func (m *TLChatPhotoEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatPhotoEmpty.DiscardUnknown(m) +func (m *TLMessageEntityUnknown) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityUnknown.DiscardUnknown(m) } -var xxx_messageInfo_TLChatPhotoEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLMessageEntityUnknown proto.InternalMessageInfo -func (m *TLChatPhotoEmpty) GetData2() *ChatPhoto_Data { +func (m *TLMessageEntityUnknown) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto; -type TLChatPhoto struct { - Data2 *ChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityMention#fa04579d offset:int length:int = MessageEntity; +type TLMessageEntityMention struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatPhoto) Reset() { *m = TLChatPhoto{} } -func (m *TLChatPhoto) String() string { return proto.CompactTextString(m) } -func (*TLChatPhoto) ProtoMessage() {} -func (*TLChatPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{480} +func (m *TLMessageEntityMention) Reset() { *m = TLMessageEntityMention{} } +func (m *TLMessageEntityMention) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityMention) ProtoMessage() {} +func (*TLMessageEntityMention) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{440} } -func (m *TLChatPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatPhoto.Unmarshal(m, b) +func (m *TLMessageEntityMention) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityMention.Unmarshal(m, b) } -func (m *TLChatPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatPhoto.Marshal(b, m, deterministic) +func (m *TLMessageEntityMention) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityMention.Marshal(b, m, deterministic) } -func (dst *TLChatPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatPhoto.Merge(dst, src) +func (dst *TLMessageEntityMention) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityMention.Merge(dst, src) } -func (m *TLChatPhoto) XXX_Size() int { - return xxx_messageInfo_TLChatPhoto.Size(m) +func (m *TLMessageEntityMention) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityMention.Size(m) } -func (m *TLChatPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatPhoto.DiscardUnknown(m) +func (m *TLMessageEntityMention) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityMention.DiscardUnknown(m) } -var xxx_messageInfo_TLChatPhoto proto.InternalMessageInfo +var xxx_messageInfo_TLMessageEntityMention proto.InternalMessageInfo -func (m *TLChatPhoto) GetData2() *ChatPhoto_Data { +func (m *TLMessageEntityMention) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Message <-- -// + TL_messageEmpty -// + TL_message -// + TL_messageService -// -type Message_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Out bool `protobuf:"varint,2,opt,name=out,proto3" json:"out,omitempty"` - Mentioned bool `protobuf:"varint,3,opt,name=mentioned,proto3" json:"mentioned,omitempty"` - MediaUnread bool `protobuf:"varint,4,opt,name=media_unread,json=mediaUnread,proto3" json:"media_unread,omitempty"` - Silent bool `protobuf:"varint,5,opt,name=silent,proto3" json:"silent,omitempty"` - Post bool `protobuf:"varint,6,opt,name=post,proto3" json:"post,omitempty"` - FromId int32 `protobuf:"varint,7,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` - ToId *Peer `protobuf:"bytes,8,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` - FwdFrom *MessageFwdHeader `protobuf:"bytes,9,opt,name=fwd_from,json=fwdFrom,proto3" json:"fwd_from,omitempty"` - ViaBotId int32 `protobuf:"varint,10,opt,name=via_bot_id,json=viaBotId,proto3" json:"via_bot_id,omitempty"` - ReplyToMsgId int32 `protobuf:"varint,11,opt,name=reply_to_msg_id,json=replyToMsgId,proto3" json:"reply_to_msg_id,omitempty"` - Date int32 `protobuf:"varint,12,opt,name=date,proto3" json:"date,omitempty"` - Message string `protobuf:"bytes,13,opt,name=message,proto3" json:"message,omitempty"` - Media *MessageMedia `protobuf:"bytes,14,opt,name=media,proto3" json:"media,omitempty"` - ReplyMarkup *ReplyMarkup `protobuf:"bytes,15,opt,name=reply_markup,json=replyMarkup,proto3" json:"reply_markup,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,16,rep,name=entities,proto3" json:"entities,omitempty"` - Views int32 `protobuf:"varint,17,opt,name=views,proto3" json:"views,omitempty"` - EditDate int32 `protobuf:"varint,18,opt,name=edit_date,json=editDate,proto3" json:"edit_date,omitempty"` - PostAuthor string `protobuf:"bytes,19,opt,name=post_author,json=postAuthor,proto3" json:"post_author,omitempty"` - GroupedId int64 `protobuf:"varint,20,opt,name=grouped_id,json=groupedId,proto3" json:"grouped_id,omitempty"` - Action *MessageAction `protobuf:"bytes,21,opt,name=action,proto3" json:"action,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity; +type TLMessageEntityHashtag struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Message_Data) Reset() { *m = Message_Data{} } -func (m *Message_Data) String() string { return proto.CompactTextString(m) } -func (*Message_Data) ProtoMessage() {} -func (*Message_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{481} -} -func (m *Message_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Message_Data.Unmarshal(m, b) +func (m *TLMessageEntityHashtag) Reset() { *m = TLMessageEntityHashtag{} } +func (m *TLMessageEntityHashtag) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityHashtag) ProtoMessage() {} +func (*TLMessageEntityHashtag) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{441} } -func (m *Message_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Message_Data.Marshal(b, m, deterministic) +func (m *TLMessageEntityHashtag) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityHashtag.Unmarshal(m, b) } -func (dst *Message_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Message_Data.Merge(dst, src) +func (m *TLMessageEntityHashtag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityHashtag.Marshal(b, m, deterministic) } -func (m *Message_Data) XXX_Size() int { - return xxx_messageInfo_Message_Data.Size(m) +func (dst *TLMessageEntityHashtag) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityHashtag.Merge(dst, src) } -func (m *Message_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Message_Data.DiscardUnknown(m) +func (m *TLMessageEntityHashtag) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityHashtag.Size(m) } - -var xxx_messageInfo_Message_Data proto.InternalMessageInfo - -func (m *Message_Data) GetId() int32 { - if m != nil { - return m.Id - } - return 0 +func (m *TLMessageEntityHashtag) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityHashtag.DiscardUnknown(m) } -func (m *Message_Data) GetOut() bool { - if m != nil { - return m.Out - } - return false -} +var xxx_messageInfo_TLMessageEntityHashtag proto.InternalMessageInfo -func (m *Message_Data) GetMentioned() bool { +func (m *TLMessageEntityHashtag) GetData2() *MessageEntity_Data { if m != nil { - return m.Mentioned + return m.Data2 } - return false + return nil } -func (m *Message_Data) GetMediaUnread() bool { - if m != nil { - return m.MediaUnread - } - return false +// messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity; +type TLMessageEntityBotCommand struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Message_Data) GetSilent() bool { - if m != nil { - return m.Silent - } - return false +func (m *TLMessageEntityBotCommand) Reset() { *m = TLMessageEntityBotCommand{} } +func (m *TLMessageEntityBotCommand) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityBotCommand) ProtoMessage() {} +func (*TLMessageEntityBotCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{442} } - -func (m *Message_Data) GetPost() bool { - if m != nil { - return m.Post - } - return false +func (m *TLMessageEntityBotCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityBotCommand.Unmarshal(m, b) } - -func (m *Message_Data) GetFromId() int32 { - if m != nil { - return m.FromId - } - return 0 +func (m *TLMessageEntityBotCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityBotCommand.Marshal(b, m, deterministic) } - -func (m *Message_Data) GetToId() *Peer { - if m != nil { - return m.ToId - } - return nil +func (dst *TLMessageEntityBotCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityBotCommand.Merge(dst, src) } - -func (m *Message_Data) GetFwdFrom() *MessageFwdHeader { - if m != nil { - return m.FwdFrom - } - return nil +func (m *TLMessageEntityBotCommand) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityBotCommand.Size(m) } - -func (m *Message_Data) GetViaBotId() int32 { - if m != nil { - return m.ViaBotId - } - return 0 +func (m *TLMessageEntityBotCommand) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityBotCommand.DiscardUnknown(m) } -func (m *Message_Data) GetReplyToMsgId() int32 { - if m != nil { - return m.ReplyToMsgId - } - return 0 -} +var xxx_messageInfo_TLMessageEntityBotCommand proto.InternalMessageInfo -func (m *Message_Data) GetDate() int32 { +func (m *TLMessageEntityBotCommand) GetData2() *MessageEntity_Data { if m != nil { - return m.Date + return m.Data2 } - return 0 + return nil } -func (m *Message_Data) GetMessage() string { - if m != nil { - return m.Message - } - return "" +// messageEntityUrl#6ed02538 offset:int length:int = MessageEntity; +type TLMessageEntityUrl struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Message_Data) GetMedia() *MessageMedia { - if m != nil { - return m.Media - } - return nil +func (m *TLMessageEntityUrl) Reset() { *m = TLMessageEntityUrl{} } +func (m *TLMessageEntityUrl) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityUrl) ProtoMessage() {} +func (*TLMessageEntityUrl) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{443} } - -func (m *Message_Data) GetReplyMarkup() *ReplyMarkup { - if m != nil { - return m.ReplyMarkup - } - return nil +func (m *TLMessageEntityUrl) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityUrl.Unmarshal(m, b) } - -func (m *Message_Data) GetEntities() []*MessageEntity { - if m != nil { - return m.Entities - } - return nil +func (m *TLMessageEntityUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityUrl.Marshal(b, m, deterministic) } - -func (m *Message_Data) GetViews() int32 { - if m != nil { - return m.Views - } - return 0 +func (dst *TLMessageEntityUrl) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityUrl.Merge(dst, src) } - -func (m *Message_Data) GetEditDate() int32 { - if m != nil { - return m.EditDate - } - return 0 +func (m *TLMessageEntityUrl) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityUrl.Size(m) } - -func (m *Message_Data) GetPostAuthor() string { - if m != nil { - return m.PostAuthor - } - return "" +func (m *TLMessageEntityUrl) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityUrl.DiscardUnknown(m) } -func (m *Message_Data) GetGroupedId() int64 { - if m != nil { - return m.GroupedId - } - return 0 -} +var xxx_messageInfo_TLMessageEntityUrl proto.InternalMessageInfo -func (m *Message_Data) GetAction() *MessageAction { +func (m *TLMessageEntityUrl) GetData2() *MessageEntity_Data { if m != nil { - return m.Action + return m.Data2 } return nil } -type Message struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Message_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityEmail#64e475c2 offset:int length:int = MessageEntity; +type TLMessageEntityEmail struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Message) Reset() { *m = Message{} } -func (m *Message) String() string { return proto.CompactTextString(m) } -func (*Message) ProtoMessage() {} -func (*Message) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{482} +func (m *TLMessageEntityEmail) Reset() { *m = TLMessageEntityEmail{} } +func (m *TLMessageEntityEmail) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityEmail) ProtoMessage() {} +func (*TLMessageEntityEmail) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{444} } -func (m *Message) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Message.Unmarshal(m, b) +func (m *TLMessageEntityEmail) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityEmail.Unmarshal(m, b) } -func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Message.Marshal(b, m, deterministic) +func (m *TLMessageEntityEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityEmail.Marshal(b, m, deterministic) } -func (dst *Message) XXX_Merge(src proto.Message) { - xxx_messageInfo_Message.Merge(dst, src) +func (dst *TLMessageEntityEmail) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityEmail.Merge(dst, src) } -func (m *Message) XXX_Size() int { - return xxx_messageInfo_Message.Size(m) +func (m *TLMessageEntityEmail) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityEmail.Size(m) } -func (m *Message) XXX_DiscardUnknown() { - xxx_messageInfo_Message.DiscardUnknown(m) +func (m *TLMessageEntityEmail) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityEmail.DiscardUnknown(m) } -var xxx_messageInfo_Message proto.InternalMessageInfo - -func (m *Message) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLMessageEntityEmail proto.InternalMessageInfo -func (m *Message) GetData2() *Message_Data { +func (m *TLMessageEntityEmail) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// messageEmpty#83e5de54 id:int = Message; -type TLMessageEmpty struct { - Data2 *Message_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityBold#bd610bc9 offset:int length:int = MessageEntity; +type TLMessageEntityBold struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageEmpty) Reset() { *m = TLMessageEmpty{} } -func (m *TLMessageEmpty) String() string { return proto.CompactTextString(m) } -func (*TLMessageEmpty) ProtoMessage() {} -func (*TLMessageEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{483} +func (m *TLMessageEntityBold) Reset() { *m = TLMessageEntityBold{} } +func (m *TLMessageEntityBold) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityBold) ProtoMessage() {} +func (*TLMessageEntityBold) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{445} } -func (m *TLMessageEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageEmpty.Unmarshal(m, b) +func (m *TLMessageEntityBold) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityBold.Unmarshal(m, b) } -func (m *TLMessageEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageEmpty.Marshal(b, m, deterministic) +func (m *TLMessageEntityBold) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityBold.Marshal(b, m, deterministic) } -func (dst *TLMessageEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageEmpty.Merge(dst, src) +func (dst *TLMessageEntityBold) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityBold.Merge(dst, src) } -func (m *TLMessageEmpty) XXX_Size() int { - return xxx_messageInfo_TLMessageEmpty.Size(m) +func (m *TLMessageEntityBold) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityBold.Size(m) } -func (m *TLMessageEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageEmpty.DiscardUnknown(m) +func (m *TLMessageEntityBold) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityBold.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLMessageEntityBold proto.InternalMessageInfo -func (m *TLMessageEmpty) GetData2() *Message_Data { +func (m *TLMessageEntityBold) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// message#44f9b43d flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long = Message; -type TLMessage struct { - Data2 *Message_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityItalic#826f8b60 offset:int length:int = MessageEntity; +type TLMessageEntityItalic struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessage) Reset() { *m = TLMessage{} } -func (m *TLMessage) String() string { return proto.CompactTextString(m) } -func (*TLMessage) ProtoMessage() {} -func (*TLMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{484} +func (m *TLMessageEntityItalic) Reset() { *m = TLMessageEntityItalic{} } +func (m *TLMessageEntityItalic) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityItalic) ProtoMessage() {} +func (*TLMessageEntityItalic) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{446} } -func (m *TLMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessage.Unmarshal(m, b) +func (m *TLMessageEntityItalic) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityItalic.Unmarshal(m, b) } -func (m *TLMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessage.Marshal(b, m, deterministic) +func (m *TLMessageEntityItalic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityItalic.Marshal(b, m, deterministic) } -func (dst *TLMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessage.Merge(dst, src) +func (dst *TLMessageEntityItalic) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityItalic.Merge(dst, src) } -func (m *TLMessage) XXX_Size() int { - return xxx_messageInfo_TLMessage.Size(m) +func (m *TLMessageEntityItalic) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityItalic.Size(m) } -func (m *TLMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessage.DiscardUnknown(m) +func (m *TLMessageEntityItalic) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityItalic.DiscardUnknown(m) } -var xxx_messageInfo_TLMessage proto.InternalMessageInfo +var xxx_messageInfo_TLMessageEntityItalic proto.InternalMessageInfo -func (m *TLMessage) GetData2() *Message_Data { +func (m *TLMessageEntityItalic) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// messageService#9e19a1f6 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer reply_to_msg_id:flags.3?int date:int action:MessageAction = Message; -type TLMessageService struct { - Data2 *Message_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityCode#28a20571 offset:int length:int = MessageEntity; +type TLMessageEntityCode struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageService) Reset() { *m = TLMessageService{} } -func (m *TLMessageService) String() string { return proto.CompactTextString(m) } -func (*TLMessageService) ProtoMessage() {} -func (*TLMessageService) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{485} +func (m *TLMessageEntityCode) Reset() { *m = TLMessageEntityCode{} } +func (m *TLMessageEntityCode) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityCode) ProtoMessage() {} +func (*TLMessageEntityCode) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{447} } -func (m *TLMessageService) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageService.Unmarshal(m, b) +func (m *TLMessageEntityCode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityCode.Unmarshal(m, b) } -func (m *TLMessageService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageService.Marshal(b, m, deterministic) +func (m *TLMessageEntityCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityCode.Marshal(b, m, deterministic) } -func (dst *TLMessageService) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageService.Merge(dst, src) +func (dst *TLMessageEntityCode) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityCode.Merge(dst, src) } -func (m *TLMessageService) XXX_Size() int { - return xxx_messageInfo_TLMessageService.Size(m) +func (m *TLMessageEntityCode) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityCode.Size(m) } -func (m *TLMessageService) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageService.DiscardUnknown(m) +func (m *TLMessageEntityCode) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityCode.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageService proto.InternalMessageInfo +var xxx_messageInfo_TLMessageEntityCode proto.InternalMessageInfo -func (m *TLMessageService) GetData2() *Message_Data { +func (m *TLMessageEntityCode) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// help_PassportConfig <-- -// + TL_help_passportConfigNotModified -// + TL_help_passportConfig -// -type Help_PassportConfig_Data struct { - Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - CountriesLangs *DataJSON `protobuf:"bytes,2,opt,name=countries_langs,json=countriesLangs,proto3" json:"countries_langs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity; +type TLMessageEntityPre struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_PassportConfig_Data) Reset() { *m = Help_PassportConfig_Data{} } -func (m *Help_PassportConfig_Data) String() string { return proto.CompactTextString(m) } -func (*Help_PassportConfig_Data) ProtoMessage() {} -func (*Help_PassportConfig_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{486} +func (m *TLMessageEntityPre) Reset() { *m = TLMessageEntityPre{} } +func (m *TLMessageEntityPre) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityPre) ProtoMessage() {} +func (*TLMessageEntityPre) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{448} } -func (m *Help_PassportConfig_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_PassportConfig_Data.Unmarshal(m, b) +func (m *TLMessageEntityPre) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityPre.Unmarshal(m, b) } -func (m *Help_PassportConfig_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_PassportConfig_Data.Marshal(b, m, deterministic) +func (m *TLMessageEntityPre) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityPre.Marshal(b, m, deterministic) } -func (dst *Help_PassportConfig_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_PassportConfig_Data.Merge(dst, src) +func (dst *TLMessageEntityPre) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityPre.Merge(dst, src) } -func (m *Help_PassportConfig_Data) XXX_Size() int { - return xxx_messageInfo_Help_PassportConfig_Data.Size(m) +func (m *TLMessageEntityPre) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityPre.Size(m) } -func (m *Help_PassportConfig_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_PassportConfig_Data.DiscardUnknown(m) +func (m *TLMessageEntityPre) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityPre.DiscardUnknown(m) } -var xxx_messageInfo_Help_PassportConfig_Data proto.InternalMessageInfo - -func (m *Help_PassportConfig_Data) GetHash() int32 { - if m != nil { - return m.Hash - } - return 0 -} +var xxx_messageInfo_TLMessageEntityPre proto.InternalMessageInfo -func (m *Help_PassportConfig_Data) GetCountriesLangs() *DataJSON { +func (m *TLMessageEntityPre) GetData2() *MessageEntity_Data { if m != nil { - return m.CountriesLangs + return m.Data2 } return nil } -type Help_PassportConfig struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_PassportConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity; +type TLMessageEntityTextUrl struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_PassportConfig) Reset() { *m = Help_PassportConfig{} } -func (m *Help_PassportConfig) String() string { return proto.CompactTextString(m) } -func (*Help_PassportConfig) ProtoMessage() {} -func (*Help_PassportConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{487} +func (m *TLMessageEntityTextUrl) Reset() { *m = TLMessageEntityTextUrl{} } +func (m *TLMessageEntityTextUrl) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityTextUrl) ProtoMessage() {} +func (*TLMessageEntityTextUrl) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{449} } -func (m *Help_PassportConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_PassportConfig.Unmarshal(m, b) +func (m *TLMessageEntityTextUrl) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityTextUrl.Unmarshal(m, b) } -func (m *Help_PassportConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_PassportConfig.Marshal(b, m, deterministic) +func (m *TLMessageEntityTextUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityTextUrl.Marshal(b, m, deterministic) } -func (dst *Help_PassportConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_PassportConfig.Merge(dst, src) +func (dst *TLMessageEntityTextUrl) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityTextUrl.Merge(dst, src) } -func (m *Help_PassportConfig) XXX_Size() int { - return xxx_messageInfo_Help_PassportConfig.Size(m) +func (m *TLMessageEntityTextUrl) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityTextUrl.Size(m) } -func (m *Help_PassportConfig) XXX_DiscardUnknown() { - xxx_messageInfo_Help_PassportConfig.DiscardUnknown(m) +func (m *TLMessageEntityTextUrl) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityTextUrl.DiscardUnknown(m) } -var xxx_messageInfo_Help_PassportConfig proto.InternalMessageInfo - -func (m *Help_PassportConfig) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLMessageEntityTextUrl proto.InternalMessageInfo -func (m *Help_PassportConfig) GetData2() *Help_PassportConfig_Data { +func (m *TLMessageEntityTextUrl) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// help.passportConfigNotModified#bfb9f457 = help.PassportConfig; -type TLHelpPassportConfigNotModified struct { - Data2 *Help_PassportConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity; +type TLMessageEntityMentionName struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} -func (m *TLHelpPassportConfigNotModified) Reset() { *m = TLHelpPassportConfigNotModified{} } -func (m *TLHelpPassportConfigNotModified) String() string { return proto.CompactTextString(m) } -func (*TLHelpPassportConfigNotModified) ProtoMessage() {} -func (*TLHelpPassportConfigNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{488} +func (m *TLMessageEntityMentionName) Reset() { *m = TLMessageEntityMentionName{} } +func (m *TLMessageEntityMentionName) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityMentionName) ProtoMessage() {} +func (*TLMessageEntityMentionName) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{450} } -func (m *TLHelpPassportConfigNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpPassportConfigNotModified.Unmarshal(m, b) +func (m *TLMessageEntityMentionName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityMentionName.Unmarshal(m, b) } -func (m *TLHelpPassportConfigNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpPassportConfigNotModified.Marshal(b, m, deterministic) +func (m *TLMessageEntityMentionName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityMentionName.Marshal(b, m, deterministic) } -func (dst *TLHelpPassportConfigNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpPassportConfigNotModified.Merge(dst, src) +func (dst *TLMessageEntityMentionName) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityMentionName.Merge(dst, src) } -func (m *TLHelpPassportConfigNotModified) XXX_Size() int { - return xxx_messageInfo_TLHelpPassportConfigNotModified.Size(m) +func (m *TLMessageEntityMentionName) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityMentionName.Size(m) } -func (m *TLHelpPassportConfigNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpPassportConfigNotModified.DiscardUnknown(m) +func (m *TLMessageEntityMentionName) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityMentionName.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpPassportConfigNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLMessageEntityMentionName proto.InternalMessageInfo -func (m *TLHelpPassportConfigNotModified) GetData2() *Help_PassportConfig_Data { +func (m *TLMessageEntityMentionName) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig; -type TLHelpPassportConfig struct { - Data2 *Help_PassportConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity; +type TLInputMessageEntityMentionName struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpPassportConfig) Reset() { *m = TLHelpPassportConfig{} } -func (m *TLHelpPassportConfig) String() string { return proto.CompactTextString(m) } -func (*TLHelpPassportConfig) ProtoMessage() {} -func (*TLHelpPassportConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{489} +func (m *TLInputMessageEntityMentionName) Reset() { *m = TLInputMessageEntityMentionName{} } +func (m *TLInputMessageEntityMentionName) String() string { return proto.CompactTextString(m) } +func (*TLInputMessageEntityMentionName) ProtoMessage() {} +func (*TLInputMessageEntityMentionName) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{451} } -func (m *TLHelpPassportConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpPassportConfig.Unmarshal(m, b) +func (m *TLInputMessageEntityMentionName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessageEntityMentionName.Unmarshal(m, b) } -func (m *TLHelpPassportConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpPassportConfig.Marshal(b, m, deterministic) +func (m *TLInputMessageEntityMentionName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessageEntityMentionName.Marshal(b, m, deterministic) } -func (dst *TLHelpPassportConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpPassportConfig.Merge(dst, src) +func (dst *TLInputMessageEntityMentionName) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessageEntityMentionName.Merge(dst, src) } -func (m *TLHelpPassportConfig) XXX_Size() int { - return xxx_messageInfo_TLHelpPassportConfig.Size(m) +func (m *TLInputMessageEntityMentionName) XXX_Size() int { + return xxx_messageInfo_TLInputMessageEntityMentionName.Size(m) } -func (m *TLHelpPassportConfig) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpPassportConfig.DiscardUnknown(m) +func (m *TLInputMessageEntityMentionName) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessageEntityMentionName.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpPassportConfig proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessageEntityMentionName proto.InternalMessageInfo -func (m *TLHelpPassportConfig) GetData2() *Help_PassportConfig_Data { +func (m *TLInputMessageEntityMentionName) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// UserStatus <-- -// + TL_userStatusEmpty -// + TL_userStatusOnline -// + TL_userStatusOffline -// + TL_userStatusRecently -// + TL_userStatusLastWeek -// + TL_userStatusLastMonth -// -type UserStatus_Data struct { - Expires int32 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"` - WasOnline int32 `protobuf:"varint,2,opt,name=was_online,json=wasOnline,proto3" json:"was_online,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityPhone#9b69e34b offset:int length:int = MessageEntity; +type TLMessageEntityPhone struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UserStatus_Data) Reset() { *m = UserStatus_Data{} } -func (m *UserStatus_Data) String() string { return proto.CompactTextString(m) } -func (*UserStatus_Data) ProtoMessage() {} -func (*UserStatus_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{490} +func (m *TLMessageEntityPhone) Reset() { *m = TLMessageEntityPhone{} } +func (m *TLMessageEntityPhone) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityPhone) ProtoMessage() {} +func (*TLMessageEntityPhone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{452} } -func (m *UserStatus_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserStatus_Data.Unmarshal(m, b) +func (m *TLMessageEntityPhone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityPhone.Unmarshal(m, b) } -func (m *UserStatus_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserStatus_Data.Marshal(b, m, deterministic) +func (m *TLMessageEntityPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityPhone.Marshal(b, m, deterministic) } -func (dst *UserStatus_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserStatus_Data.Merge(dst, src) +func (dst *TLMessageEntityPhone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityPhone.Merge(dst, src) } -func (m *UserStatus_Data) XXX_Size() int { - return xxx_messageInfo_UserStatus_Data.Size(m) +func (m *TLMessageEntityPhone) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityPhone.Size(m) } -func (m *UserStatus_Data) XXX_DiscardUnknown() { - xxx_messageInfo_UserStatus_Data.DiscardUnknown(m) +func (m *TLMessageEntityPhone) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityPhone.DiscardUnknown(m) } -var xxx_messageInfo_UserStatus_Data proto.InternalMessageInfo - -func (m *UserStatus_Data) GetExpires() int32 { - if m != nil { - return m.Expires - } - return 0 -} +var xxx_messageInfo_TLMessageEntityPhone proto.InternalMessageInfo -func (m *UserStatus_Data) GetWasOnline() int32 { +func (m *TLMessageEntityPhone) GetData2() *MessageEntity_Data { if m != nil { - return m.WasOnline + return m.Data2 } - return 0 + return nil } -type UserStatus struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity; +type TLMessageEntityCashtag struct { + Data2 *MessageEntity_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UserStatus) Reset() { *m = UserStatus{} } -func (m *UserStatus) String() string { return proto.CompactTextString(m) } -func (*UserStatus) ProtoMessage() {} -func (*UserStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{491} +func (m *TLMessageEntityCashtag) Reset() { *m = TLMessageEntityCashtag{} } +func (m *TLMessageEntityCashtag) String() string { return proto.CompactTextString(m) } +func (*TLMessageEntityCashtag) ProtoMessage() {} +func (*TLMessageEntityCashtag) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{453} } -func (m *UserStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserStatus.Unmarshal(m, b) +func (m *TLMessageEntityCashtag) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEntityCashtag.Unmarshal(m, b) } -func (m *UserStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserStatus.Marshal(b, m, deterministic) +func (m *TLMessageEntityCashtag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEntityCashtag.Marshal(b, m, deterministic) } -func (dst *UserStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserStatus.Merge(dst, src) +func (dst *TLMessageEntityCashtag) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEntityCashtag.Merge(dst, src) } -func (m *UserStatus) XXX_Size() int { - return xxx_messageInfo_UserStatus.Size(m) +func (m *TLMessageEntityCashtag) XXX_Size() int { + return xxx_messageInfo_TLMessageEntityCashtag.Size(m) } -func (m *UserStatus) XXX_DiscardUnknown() { - xxx_messageInfo_UserStatus.DiscardUnknown(m) +func (m *TLMessageEntityCashtag) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEntityCashtag.DiscardUnknown(m) } -var xxx_messageInfo_UserStatus proto.InternalMessageInfo - -func (m *UserStatus) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLMessageEntityCashtag proto.InternalMessageInfo -func (m *UserStatus) GetData2() *UserStatus_Data { +func (m *TLMessageEntityCashtag) GetData2() *MessageEntity_Data { if m != nil { return m.Data2 } return nil } -// userStatusEmpty#9d05049 = UserStatus; -type TLUserStatusEmpty struct { - Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// ChannelAdminRights <-- +// + TL_channelAdminRights +// +type ChannelAdminRights_Data struct { + ChangeInfo bool `protobuf:"varint,1,opt,name=change_info,json=changeInfo,proto3" json:"change_info,omitempty"` + PostMessages bool `protobuf:"varint,2,opt,name=post_messages,json=postMessages,proto3" json:"post_messages,omitempty"` + EditMessages bool `protobuf:"varint,3,opt,name=edit_messages,json=editMessages,proto3" json:"edit_messages,omitempty"` + DeleteMessages bool `protobuf:"varint,4,opt,name=delete_messages,json=deleteMessages,proto3" json:"delete_messages,omitempty"` + BanUsers bool `protobuf:"varint,5,opt,name=ban_users,json=banUsers,proto3" json:"ban_users,omitempty"` + InviteUsers bool `protobuf:"varint,6,opt,name=invite_users,json=inviteUsers,proto3" json:"invite_users,omitempty"` + InviteLink bool `protobuf:"varint,7,opt,name=invite_link,json=inviteLink,proto3" json:"invite_link,omitempty"` + PinMessages bool `protobuf:"varint,8,opt,name=pin_messages,json=pinMessages,proto3" json:"pin_messages,omitempty"` + AddAdmins bool `protobuf:"varint,9,opt,name=add_admins,json=addAdmins,proto3" json:"add_admins,omitempty"` + ManageCall bool `protobuf:"varint,10,opt,name=manage_call,json=manageCall,proto3" json:"manage_call,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUserStatusEmpty) Reset() { *m = TLUserStatusEmpty{} } -func (m *TLUserStatusEmpty) String() string { return proto.CompactTextString(m) } -func (*TLUserStatusEmpty) ProtoMessage() {} -func (*TLUserStatusEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{492} +func (m *ChannelAdminRights_Data) Reset() { *m = ChannelAdminRights_Data{} } +func (m *ChannelAdminRights_Data) String() string { return proto.CompactTextString(m) } +func (*ChannelAdminRights_Data) ProtoMessage() {} +func (*ChannelAdminRights_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{454} } -func (m *TLUserStatusEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserStatusEmpty.Unmarshal(m, b) +func (m *ChannelAdminRights_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelAdminRights_Data.Unmarshal(m, b) } -func (m *TLUserStatusEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserStatusEmpty.Marshal(b, m, deterministic) +func (m *ChannelAdminRights_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelAdminRights_Data.Marshal(b, m, deterministic) } -func (dst *TLUserStatusEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserStatusEmpty.Merge(dst, src) +func (dst *ChannelAdminRights_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelAdminRights_Data.Merge(dst, src) } -func (m *TLUserStatusEmpty) XXX_Size() int { - return xxx_messageInfo_TLUserStatusEmpty.Size(m) +func (m *ChannelAdminRights_Data) XXX_Size() int { + return xxx_messageInfo_ChannelAdminRights_Data.Size(m) } -func (m *TLUserStatusEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserStatusEmpty.DiscardUnknown(m) +func (m *ChannelAdminRights_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelAdminRights_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUserStatusEmpty proto.InternalMessageInfo +var xxx_messageInfo_ChannelAdminRights_Data proto.InternalMessageInfo -func (m *TLUserStatusEmpty) GetData2() *UserStatus_Data { +func (m *ChannelAdminRights_Data) GetChangeInfo() bool { if m != nil { - return m.Data2 + return m.ChangeInfo } - return nil + return false } -// userStatusOnline#edb93949 expires:int = UserStatus; -type TLUserStatusOnline struct { - Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelAdminRights_Data) GetPostMessages() bool { + if m != nil { + return m.PostMessages + } + return false } -func (m *TLUserStatusOnline) Reset() { *m = TLUserStatusOnline{} } -func (m *TLUserStatusOnline) String() string { return proto.CompactTextString(m) } -func (*TLUserStatusOnline) ProtoMessage() {} -func (*TLUserStatusOnline) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{493} -} -func (m *TLUserStatusOnline) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserStatusOnline.Unmarshal(m, b) -} -func (m *TLUserStatusOnline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserStatusOnline.Marshal(b, m, deterministic) -} -func (dst *TLUserStatusOnline) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserStatusOnline.Merge(dst, src) -} -func (m *TLUserStatusOnline) XXX_Size() int { - return xxx_messageInfo_TLUserStatusOnline.Size(m) -} -func (m *TLUserStatusOnline) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserStatusOnline.DiscardUnknown(m) +func (m *ChannelAdminRights_Data) GetEditMessages() bool { + if m != nil { + return m.EditMessages + } + return false } -var xxx_messageInfo_TLUserStatusOnline proto.InternalMessageInfo - -func (m *TLUserStatusOnline) GetData2() *UserStatus_Data { +func (m *ChannelAdminRights_Data) GetDeleteMessages() bool { if m != nil { - return m.Data2 + return m.DeleteMessages } - return nil + return false } -// userStatusOffline#8c703f was_online:int = UserStatus; -type TLUserStatusOffline struct { - Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelAdminRights_Data) GetBanUsers() bool { + if m != nil { + return m.BanUsers + } + return false } -func (m *TLUserStatusOffline) Reset() { *m = TLUserStatusOffline{} } -func (m *TLUserStatusOffline) String() string { return proto.CompactTextString(m) } -func (*TLUserStatusOffline) ProtoMessage() {} -func (*TLUserStatusOffline) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{494} -} -func (m *TLUserStatusOffline) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserStatusOffline.Unmarshal(m, b) -} -func (m *TLUserStatusOffline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserStatusOffline.Marshal(b, m, deterministic) -} -func (dst *TLUserStatusOffline) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserStatusOffline.Merge(dst, src) +func (m *ChannelAdminRights_Data) GetInviteUsers() bool { + if m != nil { + return m.InviteUsers + } + return false } -func (m *TLUserStatusOffline) XXX_Size() int { - return xxx_messageInfo_TLUserStatusOffline.Size(m) + +func (m *ChannelAdminRights_Data) GetInviteLink() bool { + if m != nil { + return m.InviteLink + } + return false } -func (m *TLUserStatusOffline) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserStatusOffline.DiscardUnknown(m) + +func (m *ChannelAdminRights_Data) GetPinMessages() bool { + if m != nil { + return m.PinMessages + } + return false } -var xxx_messageInfo_TLUserStatusOffline proto.InternalMessageInfo +func (m *ChannelAdminRights_Data) GetAddAdmins() bool { + if m != nil { + return m.AddAdmins + } + return false +} -func (m *TLUserStatusOffline) GetData2() *UserStatus_Data { +func (m *ChannelAdminRights_Data) GetManageCall() bool { if m != nil { - return m.Data2 + return m.ManageCall } - return nil + return false } -// userStatusRecently#e26f42f1 = UserStatus; -type TLUserStatusRecently struct { - Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelAdminRights struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChannelAdminRights_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUserStatusRecently) Reset() { *m = TLUserStatusRecently{} } -func (m *TLUserStatusRecently) String() string { return proto.CompactTextString(m) } -func (*TLUserStatusRecently) ProtoMessage() {} -func (*TLUserStatusRecently) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{495} +func (m *ChannelAdminRights) Reset() { *m = ChannelAdminRights{} } +func (m *ChannelAdminRights) String() string { return proto.CompactTextString(m) } +func (*ChannelAdminRights) ProtoMessage() {} +func (*ChannelAdminRights) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{455} } -func (m *TLUserStatusRecently) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserStatusRecently.Unmarshal(m, b) +func (m *ChannelAdminRights) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelAdminRights.Unmarshal(m, b) } -func (m *TLUserStatusRecently) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserStatusRecently.Marshal(b, m, deterministic) +func (m *ChannelAdminRights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelAdminRights.Marshal(b, m, deterministic) } -func (dst *TLUserStatusRecently) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserStatusRecently.Merge(dst, src) +func (dst *ChannelAdminRights) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelAdminRights.Merge(dst, src) } -func (m *TLUserStatusRecently) XXX_Size() int { - return xxx_messageInfo_TLUserStatusRecently.Size(m) +func (m *ChannelAdminRights) XXX_Size() int { + return xxx_messageInfo_ChannelAdminRights.Size(m) } -func (m *TLUserStatusRecently) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserStatusRecently.DiscardUnknown(m) +func (m *ChannelAdminRights) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelAdminRights.DiscardUnknown(m) } -var xxx_messageInfo_TLUserStatusRecently proto.InternalMessageInfo +var xxx_messageInfo_ChannelAdminRights proto.InternalMessageInfo -func (m *TLUserStatusRecently) GetData2() *UserStatus_Data { +func (m *ChannelAdminRights) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *ChannelAdminRights) GetData2() *ChannelAdminRights_Data { if m != nil { return m.Data2 } return nil } -// userStatusLastWeek#7bf09fc = UserStatus; -type TLUserStatusLastWeek struct { - Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminRights#5d7ceba5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true invite_link:flags.6?true pin_messages:flags.7?true add_admins:flags.9?true manage_call:flags.10?true = ChannelAdminRights; +type TLChannelAdminRights struct { + Data2 *ChannelAdminRights_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUserStatusLastWeek) Reset() { *m = TLUserStatusLastWeek{} } -func (m *TLUserStatusLastWeek) String() string { return proto.CompactTextString(m) } -func (*TLUserStatusLastWeek) ProtoMessage() {} -func (*TLUserStatusLastWeek) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{496} +func (m *TLChannelAdminRights) Reset() { *m = TLChannelAdminRights{} } +func (m *TLChannelAdminRights) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminRights) ProtoMessage() {} +func (*TLChannelAdminRights) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{456} } -func (m *TLUserStatusLastWeek) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserStatusLastWeek.Unmarshal(m, b) +func (m *TLChannelAdminRights) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminRights.Unmarshal(m, b) } -func (m *TLUserStatusLastWeek) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserStatusLastWeek.Marshal(b, m, deterministic) +func (m *TLChannelAdminRights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminRights.Marshal(b, m, deterministic) } -func (dst *TLUserStatusLastWeek) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserStatusLastWeek.Merge(dst, src) +func (dst *TLChannelAdminRights) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminRights.Merge(dst, src) } -func (m *TLUserStatusLastWeek) XXX_Size() int { - return xxx_messageInfo_TLUserStatusLastWeek.Size(m) +func (m *TLChannelAdminRights) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminRights.Size(m) } -func (m *TLUserStatusLastWeek) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserStatusLastWeek.DiscardUnknown(m) +func (m *TLChannelAdminRights) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminRights.DiscardUnknown(m) } -var xxx_messageInfo_TLUserStatusLastWeek proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminRights proto.InternalMessageInfo -func (m *TLUserStatusLastWeek) GetData2() *UserStatus_Data { +func (m *TLChannelAdminRights) GetData2() *ChannelAdminRights_Data { if m != nil { return m.Data2 } return nil } -// userStatusLastMonth#77ebc742 = UserStatus; -type TLUserStatusLastMonth struct { - Data2 *UserStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// PopularContact <-- +// + TL_popularContact +// +type PopularContact_Data struct { + ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + Importers int32 `protobuf:"varint,2,opt,name=importers,proto3" json:"importers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUserStatusLastMonth) Reset() { *m = TLUserStatusLastMonth{} } -func (m *TLUserStatusLastMonth) String() string { return proto.CompactTextString(m) } -func (*TLUserStatusLastMonth) ProtoMessage() {} -func (*TLUserStatusLastMonth) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{497} +func (m *PopularContact_Data) Reset() { *m = PopularContact_Data{} } +func (m *PopularContact_Data) String() string { return proto.CompactTextString(m) } +func (*PopularContact_Data) ProtoMessage() {} +func (*PopularContact_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{457} } -func (m *TLUserStatusLastMonth) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserStatusLastMonth.Unmarshal(m, b) +func (m *PopularContact_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PopularContact_Data.Unmarshal(m, b) } -func (m *TLUserStatusLastMonth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserStatusLastMonth.Marshal(b, m, deterministic) +func (m *PopularContact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PopularContact_Data.Marshal(b, m, deterministic) } -func (dst *TLUserStatusLastMonth) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserStatusLastMonth.Merge(dst, src) +func (dst *PopularContact_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PopularContact_Data.Merge(dst, src) } -func (m *TLUserStatusLastMonth) XXX_Size() int { - return xxx_messageInfo_TLUserStatusLastMonth.Size(m) +func (m *PopularContact_Data) XXX_Size() int { + return xxx_messageInfo_PopularContact_Data.Size(m) } -func (m *TLUserStatusLastMonth) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserStatusLastMonth.DiscardUnknown(m) +func (m *PopularContact_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PopularContact_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUserStatusLastMonth proto.InternalMessageInfo +var xxx_messageInfo_PopularContact_Data proto.InternalMessageInfo -func (m *TLUserStatusLastMonth) GetData2() *UserStatus_Data { +func (m *PopularContact_Data) GetClientId() int64 { if m != nil { - return m.Data2 + return m.ClientId } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// messages_PeerDialogs <-- -// + TL_messages_peerDialogs -// -type Messages_PeerDialogs_Data struct { - Dialogs []*Dialog `protobuf:"bytes,1,rep,name=dialogs,proto3" json:"dialogs,omitempty"` - Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` - Chats []*Chat `protobuf:"bytes,3,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` - State *Updates_State `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Messages_PeerDialogs_Data) Reset() { *m = Messages_PeerDialogs_Data{} } -func (m *Messages_PeerDialogs_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_PeerDialogs_Data) ProtoMessage() {} -func (*Messages_PeerDialogs_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{498} -} -func (m *Messages_PeerDialogs_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_PeerDialogs_Data.Unmarshal(m, b) -} -func (m *Messages_PeerDialogs_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_PeerDialogs_Data.Marshal(b, m, deterministic) -} -func (dst *Messages_PeerDialogs_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_PeerDialogs_Data.Merge(dst, src) -} -func (m *Messages_PeerDialogs_Data) XXX_Size() int { - return xxx_messageInfo_Messages_PeerDialogs_Data.Size(m) -} -func (m *Messages_PeerDialogs_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_PeerDialogs_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_Messages_PeerDialogs_Data proto.InternalMessageInfo - -func (m *Messages_PeerDialogs_Data) GetDialogs() []*Dialog { - if m != nil { - return m.Dialogs - } - return nil -} - -func (m *Messages_PeerDialogs_Data) GetMessages() []*Message { - if m != nil { - return m.Messages - } - return nil -} - -func (m *Messages_PeerDialogs_Data) GetChats() []*Chat { - if m != nil { - return m.Chats - } - return nil -} - -func (m *Messages_PeerDialogs_Data) GetUsers() []*User { - if m != nil { - return m.Users - } - return nil -} - -func (m *Messages_PeerDialogs_Data) GetState() *Updates_State { +func (m *PopularContact_Data) GetImporters() int32 { if m != nil { - return m.State + return m.Importers } - return nil + return 0 } -type Messages_PeerDialogs struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_PeerDialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PopularContact struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PopularContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_PeerDialogs) Reset() { *m = Messages_PeerDialogs{} } -func (m *Messages_PeerDialogs) String() string { return proto.CompactTextString(m) } -func (*Messages_PeerDialogs) ProtoMessage() {} -func (*Messages_PeerDialogs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{499} +func (m *PopularContact) Reset() { *m = PopularContact{} } +func (m *PopularContact) String() string { return proto.CompactTextString(m) } +func (*PopularContact) ProtoMessage() {} +func (*PopularContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{458} } -func (m *Messages_PeerDialogs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_PeerDialogs.Unmarshal(m, b) +func (m *PopularContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PopularContact.Unmarshal(m, b) } -func (m *Messages_PeerDialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_PeerDialogs.Marshal(b, m, deterministic) +func (m *PopularContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PopularContact.Marshal(b, m, deterministic) } -func (dst *Messages_PeerDialogs) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_PeerDialogs.Merge(dst, src) +func (dst *PopularContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_PopularContact.Merge(dst, src) } -func (m *Messages_PeerDialogs) XXX_Size() int { - return xxx_messageInfo_Messages_PeerDialogs.Size(m) +func (m *PopularContact) XXX_Size() int { + return xxx_messageInfo_PopularContact.Size(m) } -func (m *Messages_PeerDialogs) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_PeerDialogs.DiscardUnknown(m) +func (m *PopularContact) XXX_DiscardUnknown() { + xxx_messageInfo_PopularContact.DiscardUnknown(m) } -var xxx_messageInfo_Messages_PeerDialogs proto.InternalMessageInfo +var xxx_messageInfo_PopularContact proto.InternalMessageInfo -func (m *Messages_PeerDialogs) GetConstructor() TLConstructor { +func (m *PopularContact) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_PeerDialogs) GetData2() *Messages_PeerDialogs_Data { +func (m *PopularContact) GetData2() *PopularContact_Data { if m != nil { return m.Data2 } return nil } -// messages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs; -type TLMessagesPeerDialogs struct { - Data2 *Messages_PeerDialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// popularContact#5ce14175 client_id:long importers:int = PopularContact; +type TLPopularContact struct { + Data2 *PopularContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesPeerDialogs) Reset() { *m = TLMessagesPeerDialogs{} } -func (m *TLMessagesPeerDialogs) String() string { return proto.CompactTextString(m) } -func (*TLMessagesPeerDialogs) ProtoMessage() {} -func (*TLMessagesPeerDialogs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{500} +func (m *TLPopularContact) Reset() { *m = TLPopularContact{} } +func (m *TLPopularContact) String() string { return proto.CompactTextString(m) } +func (*TLPopularContact) ProtoMessage() {} +func (*TLPopularContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{459} } -func (m *TLMessagesPeerDialogs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesPeerDialogs.Unmarshal(m, b) +func (m *TLPopularContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPopularContact.Unmarshal(m, b) } -func (m *TLMessagesPeerDialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesPeerDialogs.Marshal(b, m, deterministic) +func (m *TLPopularContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPopularContact.Marshal(b, m, deterministic) } -func (dst *TLMessagesPeerDialogs) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesPeerDialogs.Merge(dst, src) +func (dst *TLPopularContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPopularContact.Merge(dst, src) } -func (m *TLMessagesPeerDialogs) XXX_Size() int { - return xxx_messageInfo_TLMessagesPeerDialogs.Size(m) +func (m *TLPopularContact) XXX_Size() int { + return xxx_messageInfo_TLPopularContact.Size(m) } -func (m *TLMessagesPeerDialogs) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesPeerDialogs.DiscardUnknown(m) +func (m *TLPopularContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLPopularContact.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesPeerDialogs proto.InternalMessageInfo +var xxx_messageInfo_TLPopularContact proto.InternalMessageInfo -func (m *TLMessagesPeerDialogs) GetData2() *Messages_PeerDialogs_Data { +func (m *TLPopularContact) GetData2() *PopularContact_Data { if m != nil { return m.Data2 } @@ -23971,452 +22836,461 @@ func (m *TLMessagesPeerDialogs) GetData2() *Messages_PeerDialogs_Data { } // ///////////////////////////////////////////////////////////////////////////// -// MessageFwdHeader <-- -// + TL_messageFwdHeader +// Peer <-- +// + TL_peerUser +// + TL_peerChat +// + TL_peerChannel // -type MessageFwdHeader_Data struct { - FromId int32 `protobuf:"varint,1,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` - Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` +type Peer_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + ChatId int32 `protobuf:"varint,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` ChannelId int32 `protobuf:"varint,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - ChannelPost int32 `protobuf:"varint,4,opt,name=channel_post,json=channelPost,proto3" json:"channel_post,omitempty"` - PostAuthor string `protobuf:"bytes,5,opt,name=post_author,json=postAuthor,proto3" json:"post_author,omitempty"` - SavedFromPeer *Peer `protobuf:"bytes,6,opt,name=saved_from_peer,json=savedFromPeer,proto3" json:"saved_from_peer,omitempty"` - SavedFromMsgId int32 `protobuf:"varint,7,opt,name=saved_from_msg_id,json=savedFromMsgId,proto3" json:"saved_from_msg_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *MessageFwdHeader_Data) Reset() { *m = MessageFwdHeader_Data{} } -func (m *MessageFwdHeader_Data) String() string { return proto.CompactTextString(m) } -func (*MessageFwdHeader_Data) ProtoMessage() {} -func (*MessageFwdHeader_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{501} +func (m *Peer_Data) Reset() { *m = Peer_Data{} } +func (m *Peer_Data) String() string { return proto.CompactTextString(m) } +func (*Peer_Data) ProtoMessage() {} +func (*Peer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{460} } -func (m *MessageFwdHeader_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageFwdHeader_Data.Unmarshal(m, b) +func (m *Peer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Peer_Data.Unmarshal(m, b) } -func (m *MessageFwdHeader_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageFwdHeader_Data.Marshal(b, m, deterministic) +func (m *Peer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Peer_Data.Marshal(b, m, deterministic) } -func (dst *MessageFwdHeader_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageFwdHeader_Data.Merge(dst, src) +func (dst *Peer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Peer_Data.Merge(dst, src) } -func (m *MessageFwdHeader_Data) XXX_Size() int { - return xxx_messageInfo_MessageFwdHeader_Data.Size(m) +func (m *Peer_Data) XXX_Size() int { + return xxx_messageInfo_Peer_Data.Size(m) } -func (m *MessageFwdHeader_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MessageFwdHeader_Data.DiscardUnknown(m) +func (m *Peer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Peer_Data.DiscardUnknown(m) } -var xxx_messageInfo_MessageFwdHeader_Data proto.InternalMessageInfo +var xxx_messageInfo_Peer_Data proto.InternalMessageInfo -func (m *MessageFwdHeader_Data) GetFromId() int32 { +func (m *Peer_Data) GetUserId() int32 { if m != nil { - return m.FromId + return m.UserId } return 0 } -func (m *MessageFwdHeader_Data) GetDate() int32 { +func (m *Peer_Data) GetChatId() int32 { if m != nil { - return m.Date + return m.ChatId } return 0 } -func (m *MessageFwdHeader_Data) GetChannelId() int32 { +func (m *Peer_Data) GetChannelId() int32 { if m != nil { return m.ChannelId } return 0 } -func (m *MessageFwdHeader_Data) GetChannelPost() int32 { - if m != nil { - return m.ChannelPost - } - return 0 -} - -func (m *MessageFwdHeader_Data) GetPostAuthor() string { - if m != nil { - return m.PostAuthor - } - return "" -} - -func (m *MessageFwdHeader_Data) GetSavedFromPeer() *Peer { - if m != nil { - return m.SavedFromPeer - } - return nil -} - -func (m *MessageFwdHeader_Data) GetSavedFromMsgId() int32 { - if m != nil { - return m.SavedFromMsgId - } - return 0 -} - -type MessageFwdHeader struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MessageFwdHeader_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Peer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Peer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageFwdHeader) Reset() { *m = MessageFwdHeader{} } -func (m *MessageFwdHeader) String() string { return proto.CompactTextString(m) } -func (*MessageFwdHeader) ProtoMessage() {} -func (*MessageFwdHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{502} +func (m *Peer) Reset() { *m = Peer{} } +func (m *Peer) String() string { return proto.CompactTextString(m) } +func (*Peer) ProtoMessage() {} +func (*Peer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{461} } -func (m *MessageFwdHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageFwdHeader.Unmarshal(m, b) +func (m *Peer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Peer.Unmarshal(m, b) } -func (m *MessageFwdHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageFwdHeader.Marshal(b, m, deterministic) +func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Peer.Marshal(b, m, deterministic) } -func (dst *MessageFwdHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageFwdHeader.Merge(dst, src) +func (dst *Peer) XXX_Merge(src proto.Message) { + xxx_messageInfo_Peer.Merge(dst, src) } -func (m *MessageFwdHeader) XXX_Size() int { - return xxx_messageInfo_MessageFwdHeader.Size(m) +func (m *Peer) XXX_Size() int { + return xxx_messageInfo_Peer.Size(m) } -func (m *MessageFwdHeader) XXX_DiscardUnknown() { - xxx_messageInfo_MessageFwdHeader.DiscardUnknown(m) +func (m *Peer) XXX_DiscardUnknown() { + xxx_messageInfo_Peer.DiscardUnknown(m) } -var xxx_messageInfo_MessageFwdHeader proto.InternalMessageInfo +var xxx_messageInfo_Peer proto.InternalMessageInfo -func (m *MessageFwdHeader) GetConstructor() TLConstructor { +func (m *Peer) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MessageFwdHeader) GetData2() *MessageFwdHeader_Data { +func (m *Peer) GetData2() *Peer_Data { if m != nil { return m.Data2 } return nil } -// messageFwdHeader#559ebe6d flags:# from_id:flags.0?int date:int channel_id:flags.1?int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int = MessageFwdHeader; -type TLMessageFwdHeader struct { - Data2 *MessageFwdHeader_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// peerUser#9db1bc6d user_id:int = Peer; +type TLPeerUser struct { + Data2 *Peer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageFwdHeader) Reset() { *m = TLMessageFwdHeader{} } -func (m *TLMessageFwdHeader) String() string { return proto.CompactTextString(m) } -func (*TLMessageFwdHeader) ProtoMessage() {} -func (*TLMessageFwdHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{503} +func (m *TLPeerUser) Reset() { *m = TLPeerUser{} } +func (m *TLPeerUser) String() string { return proto.CompactTextString(m) } +func (*TLPeerUser) ProtoMessage() {} +func (*TLPeerUser) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{462} } -func (m *TLMessageFwdHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageFwdHeader.Unmarshal(m, b) +func (m *TLPeerUser) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPeerUser.Unmarshal(m, b) } -func (m *TLMessageFwdHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageFwdHeader.Marshal(b, m, deterministic) +func (m *TLPeerUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPeerUser.Marshal(b, m, deterministic) } -func (dst *TLMessageFwdHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageFwdHeader.Merge(dst, src) +func (dst *TLPeerUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPeerUser.Merge(dst, src) } -func (m *TLMessageFwdHeader) XXX_Size() int { - return xxx_messageInfo_TLMessageFwdHeader.Size(m) +func (m *TLPeerUser) XXX_Size() int { + return xxx_messageInfo_TLPeerUser.Size(m) } -func (m *TLMessageFwdHeader) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageFwdHeader.DiscardUnknown(m) +func (m *TLPeerUser) XXX_DiscardUnknown() { + xxx_messageInfo_TLPeerUser.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageFwdHeader proto.InternalMessageInfo +var xxx_messageInfo_TLPeerUser proto.InternalMessageInfo -func (m *TLMessageFwdHeader) GetData2() *MessageFwdHeader_Data { +func (m *TLPeerUser) GetData2() *Peer_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// account_WebAuthorizations <-- -// + TL_account_webAuthorizations -// -type Account_WebAuthorizations_Data struct { - Authorizations []*WebAuthorization `protobuf:"bytes,1,rep,name=authorizations,proto3" json:"authorizations,omitempty"` - Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// peerChat#bad0e5bb chat_id:int = Peer; +type TLPeerChat struct { + Data2 *Peer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_WebAuthorizations_Data) Reset() { *m = Account_WebAuthorizations_Data{} } -func (m *Account_WebAuthorizations_Data) String() string { return proto.CompactTextString(m) } -func (*Account_WebAuthorizations_Data) ProtoMessage() {} -func (*Account_WebAuthorizations_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{504} +func (m *TLPeerChat) Reset() { *m = TLPeerChat{} } +func (m *TLPeerChat) String() string { return proto.CompactTextString(m) } +func (*TLPeerChat) ProtoMessage() {} +func (*TLPeerChat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{463} } -func (m *Account_WebAuthorizations_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_WebAuthorizations_Data.Unmarshal(m, b) +func (m *TLPeerChat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPeerChat.Unmarshal(m, b) } -func (m *Account_WebAuthorizations_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_WebAuthorizations_Data.Marshal(b, m, deterministic) +func (m *TLPeerChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPeerChat.Marshal(b, m, deterministic) } -func (dst *Account_WebAuthorizations_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_WebAuthorizations_Data.Merge(dst, src) +func (dst *TLPeerChat) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPeerChat.Merge(dst, src) } -func (m *Account_WebAuthorizations_Data) XXX_Size() int { - return xxx_messageInfo_Account_WebAuthorizations_Data.Size(m) +func (m *TLPeerChat) XXX_Size() int { + return xxx_messageInfo_TLPeerChat.Size(m) } -func (m *Account_WebAuthorizations_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_WebAuthorizations_Data.DiscardUnknown(m) +func (m *TLPeerChat) XXX_DiscardUnknown() { + xxx_messageInfo_TLPeerChat.DiscardUnknown(m) } -var xxx_messageInfo_Account_WebAuthorizations_Data proto.InternalMessageInfo - -func (m *Account_WebAuthorizations_Data) GetAuthorizations() []*WebAuthorization { - if m != nil { - return m.Authorizations - } - return nil -} +var xxx_messageInfo_TLPeerChat proto.InternalMessageInfo -func (m *Account_WebAuthorizations_Data) GetUsers() []*User { +func (m *TLPeerChat) GetData2() *Peer_Data { if m != nil { - return m.Users + return m.Data2 } return nil } -type Account_WebAuthorizations struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_WebAuthorizations_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// peerChannel#bddde532 channel_id:int = Peer; +type TLPeerChannel struct { + Data2 *Peer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_WebAuthorizations) Reset() { *m = Account_WebAuthorizations{} } -func (m *Account_WebAuthorizations) String() string { return proto.CompactTextString(m) } -func (*Account_WebAuthorizations) ProtoMessage() {} -func (*Account_WebAuthorizations) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{505} +func (m *TLPeerChannel) Reset() { *m = TLPeerChannel{} } +func (m *TLPeerChannel) String() string { return proto.CompactTextString(m) } +func (*TLPeerChannel) ProtoMessage() {} +func (*TLPeerChannel) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{464} } -func (m *Account_WebAuthorizations) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_WebAuthorizations.Unmarshal(m, b) +func (m *TLPeerChannel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPeerChannel.Unmarshal(m, b) } -func (m *Account_WebAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_WebAuthorizations.Marshal(b, m, deterministic) +func (m *TLPeerChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPeerChannel.Marshal(b, m, deterministic) } -func (dst *Account_WebAuthorizations) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_WebAuthorizations.Merge(dst, src) +func (dst *TLPeerChannel) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPeerChannel.Merge(dst, src) } -func (m *Account_WebAuthorizations) XXX_Size() int { - return xxx_messageInfo_Account_WebAuthorizations.Size(m) +func (m *TLPeerChannel) XXX_Size() int { + return xxx_messageInfo_TLPeerChannel.Size(m) } -func (m *Account_WebAuthorizations) XXX_DiscardUnknown() { - xxx_messageInfo_Account_WebAuthorizations.DiscardUnknown(m) +func (m *TLPeerChannel) XXX_DiscardUnknown() { + xxx_messageInfo_TLPeerChannel.DiscardUnknown(m) } -var xxx_messageInfo_Account_WebAuthorizations proto.InternalMessageInfo - -func (m *Account_WebAuthorizations) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLPeerChannel proto.InternalMessageInfo -func (m *Account_WebAuthorizations) GetData2() *Account_WebAuthorizations_Data { +func (m *TLPeerChannel) GetData2() *Peer_Data { if m != nil { return m.Data2 } return nil } -// account.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations; -type TLAccountWebAuthorizations struct { - Data2 *Account_WebAuthorizations_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// FileLocation <-- +// + TL_fileLocationUnavailable +// + TL_fileLocation +// + TL_fileLocationLayer86 +// +type FileLocation_Data struct { + VolumeId int64 `protobuf:"varint,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` + LocalId int32 `protobuf:"varint,2,opt,name=local_id,json=localId,proto3" json:"local_id,omitempty"` + Secret int64 `protobuf:"varint,3,opt,name=secret,proto3" json:"secret,omitempty"` + DcId int32 `protobuf:"varint,4,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` + FileReference []byte `protobuf:"bytes,5,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountWebAuthorizations) Reset() { *m = TLAccountWebAuthorizations{} } -func (m *TLAccountWebAuthorizations) String() string { return proto.CompactTextString(m) } -func (*TLAccountWebAuthorizations) ProtoMessage() {} -func (*TLAccountWebAuthorizations) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{506} +func (m *FileLocation_Data) Reset() { *m = FileLocation_Data{} } +func (m *FileLocation_Data) String() string { return proto.CompactTextString(m) } +func (*FileLocation_Data) ProtoMessage() {} +func (*FileLocation_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{465} } -func (m *TLAccountWebAuthorizations) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountWebAuthorizations.Unmarshal(m, b) +func (m *FileLocation_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileLocation_Data.Unmarshal(m, b) } -func (m *TLAccountWebAuthorizations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountWebAuthorizations.Marshal(b, m, deterministic) +func (m *FileLocation_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileLocation_Data.Marshal(b, m, deterministic) } -func (dst *TLAccountWebAuthorizations) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountWebAuthorizations.Merge(dst, src) +func (dst *FileLocation_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileLocation_Data.Merge(dst, src) } -func (m *TLAccountWebAuthorizations) XXX_Size() int { - return xxx_messageInfo_TLAccountWebAuthorizations.Size(m) +func (m *FileLocation_Data) XXX_Size() int { + return xxx_messageInfo_FileLocation_Data.Size(m) } -func (m *TLAccountWebAuthorizations) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountWebAuthorizations.DiscardUnknown(m) +func (m *FileLocation_Data) XXX_DiscardUnknown() { + xxx_messageInfo_FileLocation_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountWebAuthorizations proto.InternalMessageInfo +var xxx_messageInfo_FileLocation_Data proto.InternalMessageInfo -func (m *TLAccountWebAuthorizations) GetData2() *Account_WebAuthorizations_Data { +func (m *FileLocation_Data) GetVolumeId() int64 { if m != nil { - return m.Data2 + return m.VolumeId } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// InputStickerSetItem <-- -// + TL_inputStickerSetItem -// -type InputStickerSetItem_Data struct { - Document *InputDocument `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` - Emoji string `protobuf:"bytes,2,opt,name=emoji,proto3" json:"emoji,omitempty"` - MaskCoords *MaskCoords `protobuf:"bytes,3,opt,name=mask_coords,json=maskCoords,proto3" json:"mask_coords,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *FileLocation_Data) GetLocalId() int32 { + if m != nil { + return m.LocalId + } + return 0 } -func (m *InputStickerSetItem_Data) Reset() { *m = InputStickerSetItem_Data{} } -func (m *InputStickerSetItem_Data) String() string { return proto.CompactTextString(m) } -func (*InputStickerSetItem_Data) ProtoMessage() {} -func (*InputStickerSetItem_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{507} -} -func (m *InputStickerSetItem_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputStickerSetItem_Data.Unmarshal(m, b) -} -func (m *InputStickerSetItem_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputStickerSetItem_Data.Marshal(b, m, deterministic) -} -func (dst *InputStickerSetItem_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputStickerSetItem_Data.Merge(dst, src) -} -func (m *InputStickerSetItem_Data) XXX_Size() int { - return xxx_messageInfo_InputStickerSetItem_Data.Size(m) -} -func (m *InputStickerSetItem_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputStickerSetItem_Data.DiscardUnknown(m) +func (m *FileLocation_Data) GetSecret() int64 { + if m != nil { + return m.Secret + } + return 0 } -var xxx_messageInfo_InputStickerSetItem_Data proto.InternalMessageInfo +func (m *FileLocation_Data) GetDcId() int32 { + if m != nil { + return m.DcId + } + return 0 +} -func (m *InputStickerSetItem_Data) GetDocument() *InputDocument { +func (m *FileLocation_Data) GetFileReference() []byte { if m != nil { - return m.Document + return m.FileReference } return nil } -func (m *InputStickerSetItem_Data) GetEmoji() string { +type FileLocation struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *FileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileLocation) Reset() { *m = FileLocation{} } +func (m *FileLocation) String() string { return proto.CompactTextString(m) } +func (*FileLocation) ProtoMessage() {} +func (*FileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{466} +} +func (m *FileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileLocation.Unmarshal(m, b) +} +func (m *FileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileLocation.Marshal(b, m, deterministic) +} +func (dst *FileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileLocation.Merge(dst, src) +} +func (m *FileLocation) XXX_Size() int { + return xxx_messageInfo_FileLocation.Size(m) +} +func (m *FileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_FileLocation.DiscardUnknown(m) +} + +var xxx_messageInfo_FileLocation proto.InternalMessageInfo + +func (m *FileLocation) GetConstructor() TLConstructor { if m != nil { - return m.Emoji + return m.Constructor } - return "" + return TLConstructor_CRC32_UNKNOWN } -func (m *InputStickerSetItem_Data) GetMaskCoords() *MaskCoords { +func (m *FileLocation) GetData2() *FileLocation_Data { if m != nil { - return m.MaskCoords + return m.Data2 } return nil } -type InputStickerSetItem struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputStickerSetItem_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// fileLocationUnavailable#7c596b46 volume_id:long local_id:int secret:long = FileLocation; +type TLFileLocationUnavailable struct { + Data2 *FileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputStickerSetItem) Reset() { *m = InputStickerSetItem{} } -func (m *InputStickerSetItem) String() string { return proto.CompactTextString(m) } -func (*InputStickerSetItem) ProtoMessage() {} -func (*InputStickerSetItem) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{508} +func (m *TLFileLocationUnavailable) Reset() { *m = TLFileLocationUnavailable{} } +func (m *TLFileLocationUnavailable) String() string { return proto.CompactTextString(m) } +func (*TLFileLocationUnavailable) ProtoMessage() {} +func (*TLFileLocationUnavailable) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{467} } -func (m *InputStickerSetItem) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputStickerSetItem.Unmarshal(m, b) +func (m *TLFileLocationUnavailable) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLFileLocationUnavailable.Unmarshal(m, b) } -func (m *InputStickerSetItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputStickerSetItem.Marshal(b, m, deterministic) +func (m *TLFileLocationUnavailable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLFileLocationUnavailable.Marshal(b, m, deterministic) } -func (dst *InputStickerSetItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputStickerSetItem.Merge(dst, src) +func (dst *TLFileLocationUnavailable) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLFileLocationUnavailable.Merge(dst, src) } -func (m *InputStickerSetItem) XXX_Size() int { - return xxx_messageInfo_InputStickerSetItem.Size(m) +func (m *TLFileLocationUnavailable) XXX_Size() int { + return xxx_messageInfo_TLFileLocationUnavailable.Size(m) } -func (m *InputStickerSetItem) XXX_DiscardUnknown() { - xxx_messageInfo_InputStickerSetItem.DiscardUnknown(m) +func (m *TLFileLocationUnavailable) XXX_DiscardUnknown() { + xxx_messageInfo_TLFileLocationUnavailable.DiscardUnknown(m) } -var xxx_messageInfo_InputStickerSetItem proto.InternalMessageInfo +var xxx_messageInfo_TLFileLocationUnavailable proto.InternalMessageInfo -func (m *InputStickerSetItem) GetConstructor() TLConstructor { +func (m *TLFileLocationUnavailable) GetData2() *FileLocation_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *InputStickerSetItem) GetData2() *InputStickerSetItem_Data { +// fileLocation#53d69076 dc_id:int volume_id:long local_id:int secret:long = FileLocation; +type TLFileLocation struct { + Data2 *FileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLFileLocation) Reset() { *m = TLFileLocation{} } +func (m *TLFileLocation) String() string { return proto.CompactTextString(m) } +func (*TLFileLocation) ProtoMessage() {} +func (*TLFileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{468} +} +func (m *TLFileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLFileLocation.Unmarshal(m, b) +} +func (m *TLFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLFileLocation.Marshal(b, m, deterministic) +} +func (dst *TLFileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLFileLocation.Merge(dst, src) +} +func (m *TLFileLocation) XXX_Size() int { + return xxx_messageInfo_TLFileLocation.Size(m) +} +func (m *TLFileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TLFileLocation.DiscardUnknown(m) +} + +var xxx_messageInfo_TLFileLocation proto.InternalMessageInfo + +func (m *TLFileLocation) GetData2() *FileLocation_Data { if m != nil { return m.Data2 } return nil } -// inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem; -type TLInputStickerSetItem struct { - Data2 *InputStickerSetItem_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// fileLocation#91d11eb dc_id:int volume_id:long local_id:int secret:long file_reference:bytes = FileLocation; +type TLFileLocationLayer86 struct { + Data2 *FileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputStickerSetItem) Reset() { *m = TLInputStickerSetItem{} } -func (m *TLInputStickerSetItem) String() string { return proto.CompactTextString(m) } -func (*TLInputStickerSetItem) ProtoMessage() {} -func (*TLInputStickerSetItem) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{509} +func (m *TLFileLocationLayer86) Reset() { *m = TLFileLocationLayer86{} } +func (m *TLFileLocationLayer86) String() string { return proto.CompactTextString(m) } +func (*TLFileLocationLayer86) ProtoMessage() {} +func (*TLFileLocationLayer86) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{469} } -func (m *TLInputStickerSetItem) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputStickerSetItem.Unmarshal(m, b) +func (m *TLFileLocationLayer86) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLFileLocationLayer86.Unmarshal(m, b) } -func (m *TLInputStickerSetItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputStickerSetItem.Marshal(b, m, deterministic) +func (m *TLFileLocationLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLFileLocationLayer86.Marshal(b, m, deterministic) } -func (dst *TLInputStickerSetItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputStickerSetItem.Merge(dst, src) +func (dst *TLFileLocationLayer86) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLFileLocationLayer86.Merge(dst, src) } -func (m *TLInputStickerSetItem) XXX_Size() int { - return xxx_messageInfo_TLInputStickerSetItem.Size(m) +func (m *TLFileLocationLayer86) XXX_Size() int { + return xxx_messageInfo_TLFileLocationLayer86.Size(m) } -func (m *TLInputStickerSetItem) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputStickerSetItem.DiscardUnknown(m) +func (m *TLFileLocationLayer86) XXX_DiscardUnknown() { + xxx_messageInfo_TLFileLocationLayer86.DiscardUnknown(m) } -var xxx_messageInfo_TLInputStickerSetItem proto.InternalMessageInfo +var xxx_messageInfo_TLFileLocationLayer86 proto.InternalMessageInfo -func (m *TLInputStickerSetItem) GetData2() *InputStickerSetItem_Data { +func (m *TLFileLocationLayer86) GetData2() *FileLocation_Data { if m != nil { return m.Data2 } @@ -24424,134 +23298,126 @@ func (m *TLInputStickerSetItem) GetData2() *InputStickerSetItem_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ImportedContact <-- -// + TL_importedContact +// auth_CheckedPhone <-- +// + TL_auth_checkedPhone // -type ImportedContact_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - ClientId int64 `protobuf:"varint,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` +type Auth_CheckedPhone_Data struct { + PhoneRegistered *Bool `protobuf:"bytes,1,opt,name=phone_registered,json=phoneRegistered,proto3" json:"phone_registered,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ImportedContact_Data) Reset() { *m = ImportedContact_Data{} } -func (m *ImportedContact_Data) String() string { return proto.CompactTextString(m) } -func (*ImportedContact_Data) ProtoMessage() {} -func (*ImportedContact_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{510} +func (m *Auth_CheckedPhone_Data) Reset() { *m = Auth_CheckedPhone_Data{} } +func (m *Auth_CheckedPhone_Data) String() string { return proto.CompactTextString(m) } +func (*Auth_CheckedPhone_Data) ProtoMessage() {} +func (*Auth_CheckedPhone_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{470} } -func (m *ImportedContact_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ImportedContact_Data.Unmarshal(m, b) +func (m *Auth_CheckedPhone_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_CheckedPhone_Data.Unmarshal(m, b) } -func (m *ImportedContact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ImportedContact_Data.Marshal(b, m, deterministic) +func (m *Auth_CheckedPhone_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_CheckedPhone_Data.Marshal(b, m, deterministic) } -func (dst *ImportedContact_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImportedContact_Data.Merge(dst, src) +func (dst *Auth_CheckedPhone_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_CheckedPhone_Data.Merge(dst, src) } -func (m *ImportedContact_Data) XXX_Size() int { - return xxx_messageInfo_ImportedContact_Data.Size(m) +func (m *Auth_CheckedPhone_Data) XXX_Size() int { + return xxx_messageInfo_Auth_CheckedPhone_Data.Size(m) } -func (m *ImportedContact_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ImportedContact_Data.DiscardUnknown(m) +func (m *Auth_CheckedPhone_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_CheckedPhone_Data.DiscardUnknown(m) } -var xxx_messageInfo_ImportedContact_Data proto.InternalMessageInfo - -func (m *ImportedContact_Data) GetUserId() int32 { - if m != nil { - return m.UserId - } - return 0 -} +var xxx_messageInfo_Auth_CheckedPhone_Data proto.InternalMessageInfo -func (m *ImportedContact_Data) GetClientId() int64 { +func (m *Auth_CheckedPhone_Data) GetPhoneRegistered() *Bool { if m != nil { - return m.ClientId + return m.PhoneRegistered } - return 0 + return nil } -type ImportedContact struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ImportedContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Auth_CheckedPhone struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Auth_CheckedPhone_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ImportedContact) Reset() { *m = ImportedContact{} } -func (m *ImportedContact) String() string { return proto.CompactTextString(m) } -func (*ImportedContact) ProtoMessage() {} -func (*ImportedContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{511} +func (m *Auth_CheckedPhone) Reset() { *m = Auth_CheckedPhone{} } +func (m *Auth_CheckedPhone) String() string { return proto.CompactTextString(m) } +func (*Auth_CheckedPhone) ProtoMessage() {} +func (*Auth_CheckedPhone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{471} } -func (m *ImportedContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ImportedContact.Unmarshal(m, b) +func (m *Auth_CheckedPhone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_CheckedPhone.Unmarshal(m, b) } -func (m *ImportedContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ImportedContact.Marshal(b, m, deterministic) +func (m *Auth_CheckedPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_CheckedPhone.Marshal(b, m, deterministic) } -func (dst *ImportedContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImportedContact.Merge(dst, src) +func (dst *Auth_CheckedPhone) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_CheckedPhone.Merge(dst, src) } -func (m *ImportedContact) XXX_Size() int { - return xxx_messageInfo_ImportedContact.Size(m) +func (m *Auth_CheckedPhone) XXX_Size() int { + return xxx_messageInfo_Auth_CheckedPhone.Size(m) } -func (m *ImportedContact) XXX_DiscardUnknown() { - xxx_messageInfo_ImportedContact.DiscardUnknown(m) +func (m *Auth_CheckedPhone) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_CheckedPhone.DiscardUnknown(m) } -var xxx_messageInfo_ImportedContact proto.InternalMessageInfo +var xxx_messageInfo_Auth_CheckedPhone proto.InternalMessageInfo -func (m *ImportedContact) GetConstructor() TLConstructor { +func (m *Auth_CheckedPhone) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ImportedContact) GetData2() *ImportedContact_Data { +func (m *Auth_CheckedPhone) GetData2() *Auth_CheckedPhone_Data { if m != nil { return m.Data2 } return nil } -// importedContact#d0028438 user_id:int client_id:long = ImportedContact; -type TLImportedContact struct { - Data2 *ImportedContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone; +type TLAuthCheckedPhone struct { + Data2 *Auth_CheckedPhone_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLImportedContact) Reset() { *m = TLImportedContact{} } -func (m *TLImportedContact) String() string { return proto.CompactTextString(m) } -func (*TLImportedContact) ProtoMessage() {} -func (*TLImportedContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{512} +func (m *TLAuthCheckedPhone) Reset() { *m = TLAuthCheckedPhone{} } +func (m *TLAuthCheckedPhone) String() string { return proto.CompactTextString(m) } +func (*TLAuthCheckedPhone) ProtoMessage() {} +func (*TLAuthCheckedPhone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{472} } -func (m *TLImportedContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLImportedContact.Unmarshal(m, b) +func (m *TLAuthCheckedPhone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthCheckedPhone.Unmarshal(m, b) } -func (m *TLImportedContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLImportedContact.Marshal(b, m, deterministic) +func (m *TLAuthCheckedPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthCheckedPhone.Marshal(b, m, deterministic) } -func (dst *TLImportedContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLImportedContact.Merge(dst, src) +func (dst *TLAuthCheckedPhone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthCheckedPhone.Merge(dst, src) } -func (m *TLImportedContact) XXX_Size() int { - return xxx_messageInfo_TLImportedContact.Size(m) +func (m *TLAuthCheckedPhone) XXX_Size() int { + return xxx_messageInfo_TLAuthCheckedPhone.Size(m) } -func (m *TLImportedContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLImportedContact.DiscardUnknown(m) +func (m *TLAuthCheckedPhone) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthCheckedPhone.DiscardUnknown(m) } -var xxx_messageInfo_TLImportedContact proto.InternalMessageInfo +var xxx_messageInfo_TLAuthCheckedPhone proto.InternalMessageInfo -func (m *TLImportedContact) GetData2() *ImportedContact_Data { +func (m *TLAuthCheckedPhone) GetData2() *Auth_CheckedPhone_Data { if m != nil { return m.Data2 } @@ -24559,285 +23425,342 @@ func (m *TLImportedContact) GetData2() *ImportedContact_Data { } // ///////////////////////////////////////////////////////////////////////////// -// updates_State <-- -// + TL_updates_state +// ChatFull <-- +// + TL_chatFull +// + TL_channelFull // -type Updates_State_Data struct { - Pts int32 `protobuf:"varint,1,opt,name=pts,proto3" json:"pts,omitempty"` - Qts int32 `protobuf:"varint,2,opt,name=qts,proto3" json:"qts,omitempty"` - Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` - Seq int32 `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"` - UnreadCount int32 `protobuf:"varint,5,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChatFull_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Participants *ChatParticipants `protobuf:"bytes,2,opt,name=participants,proto3" json:"participants,omitempty"` + ChatPhoto *Photo `protobuf:"bytes,3,opt,name=chat_photo,json=chatPhoto,proto3" json:"chat_photo,omitempty"` + NotifySettings *PeerNotifySettings `protobuf:"bytes,4,opt,name=notify_settings,json=notifySettings,proto3" json:"notify_settings,omitempty"` + ExportedInvite *ExportedChatInvite `protobuf:"bytes,5,opt,name=exported_invite,json=exportedInvite,proto3" json:"exported_invite,omitempty"` + BotInfo []*BotInfo `protobuf:"bytes,6,rep,name=bot_info,json=botInfo,proto3" json:"bot_info,omitempty"` + CanViewParticipants bool `protobuf:"varint,7,opt,name=can_view_participants,json=canViewParticipants,proto3" json:"can_view_participants,omitempty"` + CanSetUsername bool `protobuf:"varint,8,opt,name=can_set_username,json=canSetUsername,proto3" json:"can_set_username,omitempty"` + CanSetStickers bool `protobuf:"varint,9,opt,name=can_set_stickers,json=canSetStickers,proto3" json:"can_set_stickers,omitempty"` + HiddenPrehistory bool `protobuf:"varint,10,opt,name=hidden_prehistory,json=hiddenPrehistory,proto3" json:"hidden_prehistory,omitempty"` + About string `protobuf:"bytes,11,opt,name=about,proto3" json:"about,omitempty"` + ParticipantsCount int32 `protobuf:"varint,12,opt,name=participants_count,json=participantsCount,proto3" json:"participants_count,omitempty"` + AdminsCount int32 `protobuf:"varint,13,opt,name=admins_count,json=adminsCount,proto3" json:"admins_count,omitempty"` + KickedCount int32 `protobuf:"varint,14,opt,name=kicked_count,json=kickedCount,proto3" json:"kicked_count,omitempty"` + BannedCount int32 `protobuf:"varint,15,opt,name=banned_count,json=bannedCount,proto3" json:"banned_count,omitempty"` + ReadInboxMaxId int32 `protobuf:"varint,16,opt,name=read_inbox_max_id,json=readInboxMaxId,proto3" json:"read_inbox_max_id,omitempty"` + ReadOutboxMaxId int32 `protobuf:"varint,17,opt,name=read_outbox_max_id,json=readOutboxMaxId,proto3" json:"read_outbox_max_id,omitempty"` + UnreadCount int32 `protobuf:"varint,18,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` + MigratedFromChatId int32 `protobuf:"varint,19,opt,name=migrated_from_chat_id,json=migratedFromChatId,proto3" json:"migrated_from_chat_id,omitempty"` + MigratedFromMaxId int32 `protobuf:"varint,20,opt,name=migrated_from_max_id,json=migratedFromMaxId,proto3" json:"migrated_from_max_id,omitempty"` + PinnedMsgId int32 `protobuf:"varint,21,opt,name=pinned_msg_id,json=pinnedMsgId,proto3" json:"pinned_msg_id,omitempty"` + Stickerset *StickerSet `protobuf:"bytes,22,opt,name=stickerset,proto3" json:"stickerset,omitempty"` + AvailableMinId int32 `protobuf:"varint,23,opt,name=available_min_id,json=availableMinId,proto3" json:"available_min_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Updates_State_Data) Reset() { *m = Updates_State_Data{} } -func (m *Updates_State_Data) String() string { return proto.CompactTextString(m) } -func (*Updates_State_Data) ProtoMessage() {} -func (*Updates_State_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{513} +func (m *ChatFull_Data) Reset() { *m = ChatFull_Data{} } +func (m *ChatFull_Data) String() string { return proto.CompactTextString(m) } +func (*ChatFull_Data) ProtoMessage() {} +func (*ChatFull_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{473} } -func (m *Updates_State_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Updates_State_Data.Unmarshal(m, b) +func (m *ChatFull_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatFull_Data.Unmarshal(m, b) } -func (m *Updates_State_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Updates_State_Data.Marshal(b, m, deterministic) +func (m *ChatFull_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatFull_Data.Marshal(b, m, deterministic) } -func (dst *Updates_State_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Updates_State_Data.Merge(dst, src) +func (dst *ChatFull_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatFull_Data.Merge(dst, src) } -func (m *Updates_State_Data) XXX_Size() int { - return xxx_messageInfo_Updates_State_Data.Size(m) +func (m *ChatFull_Data) XXX_Size() int { + return xxx_messageInfo_ChatFull_Data.Size(m) } -func (m *Updates_State_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Updates_State_Data.DiscardUnknown(m) +func (m *ChatFull_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChatFull_Data.DiscardUnknown(m) } -var xxx_messageInfo_Updates_State_Data proto.InternalMessageInfo +var xxx_messageInfo_ChatFull_Data proto.InternalMessageInfo -func (m *Updates_State_Data) GetPts() int32 { +func (m *ChatFull_Data) GetId() int32 { if m != nil { - return m.Pts + return m.Id } return 0 } -func (m *Updates_State_Data) GetQts() int32 { +func (m *ChatFull_Data) GetParticipants() *ChatParticipants { if m != nil { - return m.Qts + return m.Participants } - return 0 + return nil } -func (m *Updates_State_Data) GetDate() int32 { +func (m *ChatFull_Data) GetChatPhoto() *Photo { if m != nil { - return m.Date + return m.ChatPhoto } - return 0 + return nil } -func (m *Updates_State_Data) GetSeq() int32 { +func (m *ChatFull_Data) GetNotifySettings() *PeerNotifySettings { if m != nil { - return m.Seq + return m.NotifySettings } - return 0 + return nil } -func (m *Updates_State_Data) GetUnreadCount() int32 { +func (m *ChatFull_Data) GetExportedInvite() *ExportedChatInvite { if m != nil { - return m.UnreadCount + return m.ExportedInvite } - return 0 + return nil } -type Updates_State struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Updates_State_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChatFull_Data) GetBotInfo() []*BotInfo { + if m != nil { + return m.BotInfo + } + return nil } -func (m *Updates_State) Reset() { *m = Updates_State{} } -func (m *Updates_State) String() string { return proto.CompactTextString(m) } -func (*Updates_State) ProtoMessage() {} -func (*Updates_State) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{514} -} -func (m *Updates_State) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Updates_State.Unmarshal(m, b) -} -func (m *Updates_State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Updates_State.Marshal(b, m, deterministic) -} -func (dst *Updates_State) XXX_Merge(src proto.Message) { - xxx_messageInfo_Updates_State.Merge(dst, src) -} -func (m *Updates_State) XXX_Size() int { - return xxx_messageInfo_Updates_State.Size(m) +func (m *ChatFull_Data) GetCanViewParticipants() bool { + if m != nil { + return m.CanViewParticipants + } + return false } -func (m *Updates_State) XXX_DiscardUnknown() { - xxx_messageInfo_Updates_State.DiscardUnknown(m) + +func (m *ChatFull_Data) GetCanSetUsername() bool { + if m != nil { + return m.CanSetUsername + } + return false } -var xxx_messageInfo_Updates_State proto.InternalMessageInfo +func (m *ChatFull_Data) GetCanSetStickers() bool { + if m != nil { + return m.CanSetStickers + } + return false +} -func (m *Updates_State) GetConstructor() TLConstructor { +func (m *ChatFull_Data) GetHiddenPrehistory() bool { if m != nil { - return m.Constructor + return m.HiddenPrehistory } - return TLConstructor_CRC32_UNKNOWN + return false } -func (m *Updates_State) GetData2() *Updates_State_Data { +func (m *ChatFull_Data) GetAbout() string { if m != nil { - return m.Data2 + return m.About } - return nil + return "" } -// updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; -type TLUpdatesState struct { - Data2 *Updates_State_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChatFull_Data) GetParticipantsCount() int32 { + if m != nil { + return m.ParticipantsCount + } + return 0 } -func (m *TLUpdatesState) Reset() { *m = TLUpdatesState{} } -func (m *TLUpdatesState) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesState) ProtoMessage() {} -func (*TLUpdatesState) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{515} -} -func (m *TLUpdatesState) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesState.Unmarshal(m, b) -} -func (m *TLUpdatesState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesState.Marshal(b, m, deterministic) -} -func (dst *TLUpdatesState) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesState.Merge(dst, src) -} -func (m *TLUpdatesState) XXX_Size() int { - return xxx_messageInfo_TLUpdatesState.Size(m) -} -func (m *TLUpdatesState) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesState.DiscardUnknown(m) +func (m *ChatFull_Data) GetAdminsCount() int32 { + if m != nil { + return m.AdminsCount + } + return 0 } -var xxx_messageInfo_TLUpdatesState proto.InternalMessageInfo - -func (m *TLUpdatesState) GetData2() *Updates_State_Data { +func (m *ChatFull_Data) GetKickedCount() int32 { if m != nil { - return m.Data2 + return m.KickedCount } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// AccountDaysTTL <-- -// + TL_accountDaysTTL -// -type AccountDaysTTL_Data struct { - Days int32 `protobuf:"varint,1,opt,name=days,proto3" json:"days,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChatFull_Data) GetBannedCount() int32 { + if m != nil { + return m.BannedCount + } + return 0 } -func (m *AccountDaysTTL_Data) Reset() { *m = AccountDaysTTL_Data{} } -func (m *AccountDaysTTL_Data) String() string { return proto.CompactTextString(m) } -func (*AccountDaysTTL_Data) ProtoMessage() {} -func (*AccountDaysTTL_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{516} +func (m *ChatFull_Data) GetReadInboxMaxId() int32 { + if m != nil { + return m.ReadInboxMaxId + } + return 0 } -func (m *AccountDaysTTL_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AccountDaysTTL_Data.Unmarshal(m, b) + +func (m *ChatFull_Data) GetReadOutboxMaxId() int32 { + if m != nil { + return m.ReadOutboxMaxId + } + return 0 } -func (m *AccountDaysTTL_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AccountDaysTTL_Data.Marshal(b, m, deterministic) + +func (m *ChatFull_Data) GetUnreadCount() int32 { + if m != nil { + return m.UnreadCount + } + return 0 } -func (dst *AccountDaysTTL_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountDaysTTL_Data.Merge(dst, src) + +func (m *ChatFull_Data) GetMigratedFromChatId() int32 { + if m != nil { + return m.MigratedFromChatId + } + return 0 } -func (m *AccountDaysTTL_Data) XXX_Size() int { - return xxx_messageInfo_AccountDaysTTL_Data.Size(m) + +func (m *ChatFull_Data) GetMigratedFromMaxId() int32 { + if m != nil { + return m.MigratedFromMaxId + } + return 0 } -func (m *AccountDaysTTL_Data) XXX_DiscardUnknown() { - xxx_messageInfo_AccountDaysTTL_Data.DiscardUnknown(m) + +func (m *ChatFull_Data) GetPinnedMsgId() int32 { + if m != nil { + return m.PinnedMsgId + } + return 0 } -var xxx_messageInfo_AccountDaysTTL_Data proto.InternalMessageInfo +func (m *ChatFull_Data) GetStickerset() *StickerSet { + if m != nil { + return m.Stickerset + } + return nil +} -func (m *AccountDaysTTL_Data) GetDays() int32 { +func (m *ChatFull_Data) GetAvailableMinId() int32 { if m != nil { - return m.Days + return m.AvailableMinId } return 0 } -type AccountDaysTTL struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *AccountDaysTTL_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChatFull struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *AccountDaysTTL) Reset() { *m = AccountDaysTTL{} } -func (m *AccountDaysTTL) String() string { return proto.CompactTextString(m) } -func (*AccountDaysTTL) ProtoMessage() {} -func (*AccountDaysTTL) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{517} +func (m *ChatFull) Reset() { *m = ChatFull{} } +func (m *ChatFull) String() string { return proto.CompactTextString(m) } +func (*ChatFull) ProtoMessage() {} +func (*ChatFull) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{474} } -func (m *AccountDaysTTL) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AccountDaysTTL.Unmarshal(m, b) +func (m *ChatFull) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatFull.Unmarshal(m, b) } -func (m *AccountDaysTTL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AccountDaysTTL.Marshal(b, m, deterministic) +func (m *ChatFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatFull.Marshal(b, m, deterministic) } -func (dst *AccountDaysTTL) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountDaysTTL.Merge(dst, src) +func (dst *ChatFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatFull.Merge(dst, src) } -func (m *AccountDaysTTL) XXX_Size() int { - return xxx_messageInfo_AccountDaysTTL.Size(m) +func (m *ChatFull) XXX_Size() int { + return xxx_messageInfo_ChatFull.Size(m) } -func (m *AccountDaysTTL) XXX_DiscardUnknown() { - xxx_messageInfo_AccountDaysTTL.DiscardUnknown(m) +func (m *ChatFull) XXX_DiscardUnknown() { + xxx_messageInfo_ChatFull.DiscardUnknown(m) } -var xxx_messageInfo_AccountDaysTTL proto.InternalMessageInfo +var xxx_messageInfo_ChatFull proto.InternalMessageInfo -func (m *AccountDaysTTL) GetConstructor() TLConstructor { +func (m *ChatFull) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *AccountDaysTTL) GetData2() *AccountDaysTTL_Data { +func (m *ChatFull) GetData2() *ChatFull_Data { if m != nil { return m.Data2 } return nil } -// accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; -type TLAccountDaysTTL struct { - Data2 *AccountDaysTTL_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatFull#2e02a614 id:int participants:ChatParticipants chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector = ChatFull; +type TLChatFull struct { + Data2 *ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountDaysTTL) Reset() { *m = TLAccountDaysTTL{} } -func (m *TLAccountDaysTTL) String() string { return proto.CompactTextString(m) } -func (*TLAccountDaysTTL) ProtoMessage() {} -func (*TLAccountDaysTTL) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{518} +func (m *TLChatFull) Reset() { *m = TLChatFull{} } +func (m *TLChatFull) String() string { return proto.CompactTextString(m) } +func (*TLChatFull) ProtoMessage() {} +func (*TLChatFull) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{475} } -func (m *TLAccountDaysTTL) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountDaysTTL.Unmarshal(m, b) +func (m *TLChatFull) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatFull.Unmarshal(m, b) } -func (m *TLAccountDaysTTL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountDaysTTL.Marshal(b, m, deterministic) +func (m *TLChatFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatFull.Marshal(b, m, deterministic) } -func (dst *TLAccountDaysTTL) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountDaysTTL.Merge(dst, src) +func (dst *TLChatFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatFull.Merge(dst, src) } -func (m *TLAccountDaysTTL) XXX_Size() int { - return xxx_messageInfo_TLAccountDaysTTL.Size(m) +func (m *TLChatFull) XXX_Size() int { + return xxx_messageInfo_TLChatFull.Size(m) } -func (m *TLAccountDaysTTL) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountDaysTTL.DiscardUnknown(m) +func (m *TLChatFull) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatFull.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountDaysTTL proto.InternalMessageInfo +var xxx_messageInfo_TLChatFull proto.InternalMessageInfo -func (m *TLAccountDaysTTL) GetData2() *AccountDaysTTL_Data { +func (m *TLChatFull) GetData2() *ChatFull_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// channelFull#76af5481 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int = ChatFull; +type TLChannelFull struct { + Data2 *ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLChannelFull) Reset() { *m = TLChannelFull{} } +func (m *TLChannelFull) String() string { return proto.CompactTextString(m) } +func (*TLChannelFull) ProtoMessage() {} +func (*TLChannelFull) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{476} +} +func (m *TLChannelFull) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelFull.Unmarshal(m, b) +} +func (m *TLChannelFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelFull.Marshal(b, m, deterministic) +} +func (dst *TLChannelFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelFull.Merge(dst, src) +} +func (m *TLChannelFull) XXX_Size() int { + return xxx_messageInfo_TLChannelFull.Size(m) +} +func (m *TLChannelFull) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelFull.DiscardUnknown(m) +} + +var xxx_messageInfo_TLChannelFull proto.InternalMessageInfo + +func (m *TLChannelFull) GetData2() *ChatFull_Data { if m != nil { return m.Data2 } @@ -24845,366 +23768,247 @@ func (m *TLAccountDaysTTL) GetData2() *AccountDaysTTL_Data { } // ///////////////////////////////////////////////////////////////////////////// -// contacts_Link <-- -// + TL_contacts_link +// contacts_TopPeers <-- +// + TL_contacts_topPeersNotModified +// + TL_contacts_topPeers +// + TL_contacts_topPeersDisabled // -type Contacts_Link_Data struct { - MyLink *ContactLink `protobuf:"bytes,1,opt,name=my_link,json=myLink,proto3" json:"my_link,omitempty"` - ForeignLink *ContactLink `protobuf:"bytes,2,opt,name=foreign_link,json=foreignLink,proto3" json:"foreign_link,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Contacts_TopPeers_Data struct { + Categories []*TopPeerCategoryPeers `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` + Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_Link_Data) Reset() { *m = Contacts_Link_Data{} } -func (m *Contacts_Link_Data) String() string { return proto.CompactTextString(m) } -func (*Contacts_Link_Data) ProtoMessage() {} -func (*Contacts_Link_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{519} +func (m *Contacts_TopPeers_Data) Reset() { *m = Contacts_TopPeers_Data{} } +func (m *Contacts_TopPeers_Data) String() string { return proto.CompactTextString(m) } +func (*Contacts_TopPeers_Data) ProtoMessage() {} +func (*Contacts_TopPeers_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{477} } -func (m *Contacts_Link_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_Link_Data.Unmarshal(m, b) +func (m *Contacts_TopPeers_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_TopPeers_Data.Unmarshal(m, b) } -func (m *Contacts_Link_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_Link_Data.Marshal(b, m, deterministic) +func (m *Contacts_TopPeers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_TopPeers_Data.Marshal(b, m, deterministic) } -func (dst *Contacts_Link_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_Link_Data.Merge(dst, src) +func (dst *Contacts_TopPeers_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_TopPeers_Data.Merge(dst, src) } -func (m *Contacts_Link_Data) XXX_Size() int { - return xxx_messageInfo_Contacts_Link_Data.Size(m) +func (m *Contacts_TopPeers_Data) XXX_Size() int { + return xxx_messageInfo_Contacts_TopPeers_Data.Size(m) } -func (m *Contacts_Link_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_Link_Data.DiscardUnknown(m) +func (m *Contacts_TopPeers_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_TopPeers_Data.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_Link_Data proto.InternalMessageInfo +var xxx_messageInfo_Contacts_TopPeers_Data proto.InternalMessageInfo -func (m *Contacts_Link_Data) GetMyLink() *ContactLink { +func (m *Contacts_TopPeers_Data) GetCategories() []*TopPeerCategoryPeers { if m != nil { - return m.MyLink + return m.Categories } return nil } -func (m *Contacts_Link_Data) GetForeignLink() *ContactLink { +func (m *Contacts_TopPeers_Data) GetChats() []*Chat { if m != nil { - return m.ForeignLink + return m.Chats } return nil } -func (m *Contacts_Link_Data) GetUser() *User { +func (m *Contacts_TopPeers_Data) GetUsers() []*User { if m != nil { - return m.User + return m.Users } return nil } -type Contacts_Link struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Contacts_Link_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Contacts_TopPeers struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Contacts_TopPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_Link) Reset() { *m = Contacts_Link{} } -func (m *Contacts_Link) String() string { return proto.CompactTextString(m) } -func (*Contacts_Link) ProtoMessage() {} -func (*Contacts_Link) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{520} +func (m *Contacts_TopPeers) Reset() { *m = Contacts_TopPeers{} } +func (m *Contacts_TopPeers) String() string { return proto.CompactTextString(m) } +func (*Contacts_TopPeers) ProtoMessage() {} +func (*Contacts_TopPeers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{478} } -func (m *Contacts_Link) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_Link.Unmarshal(m, b) +func (m *Contacts_TopPeers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_TopPeers.Unmarshal(m, b) } -func (m *Contacts_Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_Link.Marshal(b, m, deterministic) +func (m *Contacts_TopPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_TopPeers.Marshal(b, m, deterministic) } -func (dst *Contacts_Link) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_Link.Merge(dst, src) +func (dst *Contacts_TopPeers) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_TopPeers.Merge(dst, src) } -func (m *Contacts_Link) XXX_Size() int { - return xxx_messageInfo_Contacts_Link.Size(m) +func (m *Contacts_TopPeers) XXX_Size() int { + return xxx_messageInfo_Contacts_TopPeers.Size(m) } -func (m *Contacts_Link) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_Link.DiscardUnknown(m) +func (m *Contacts_TopPeers) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_TopPeers.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_Link proto.InternalMessageInfo +var xxx_messageInfo_Contacts_TopPeers proto.InternalMessageInfo -func (m *Contacts_Link) GetConstructor() TLConstructor { +func (m *Contacts_TopPeers) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Contacts_Link) GetData2() *Contacts_Link_Data { +func (m *Contacts_TopPeers) GetData2() *Contacts_TopPeers_Data { if m != nil { return m.Data2 } return nil } -// contacts.link#3ace484c my_link:ContactLink foreign_link:ContactLink user:User = contacts.Link; -type TLContactsLink struct { - Data2 *Contacts_Link_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// contacts.topPeersNotModified#de266ef5 = contacts.TopPeers; +type TLContactsTopPeersNotModified struct { + Data2 *Contacts_TopPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactsLink) Reset() { *m = TLContactsLink{} } -func (m *TLContactsLink) String() string { return proto.CompactTextString(m) } -func (*TLContactsLink) ProtoMessage() {} -func (*TLContactsLink) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{521} +func (m *TLContactsTopPeersNotModified) Reset() { *m = TLContactsTopPeersNotModified{} } +func (m *TLContactsTopPeersNotModified) String() string { return proto.CompactTextString(m) } +func (*TLContactsTopPeersNotModified) ProtoMessage() {} +func (*TLContactsTopPeersNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{479} } -func (m *TLContactsLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsLink.Unmarshal(m, b) +func (m *TLContactsTopPeersNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsTopPeersNotModified.Unmarshal(m, b) } -func (m *TLContactsLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsLink.Marshal(b, m, deterministic) +func (m *TLContactsTopPeersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsTopPeersNotModified.Marshal(b, m, deterministic) } -func (dst *TLContactsLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsLink.Merge(dst, src) +func (dst *TLContactsTopPeersNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsTopPeersNotModified.Merge(dst, src) } -func (m *TLContactsLink) XXX_Size() int { - return xxx_messageInfo_TLContactsLink.Size(m) +func (m *TLContactsTopPeersNotModified) XXX_Size() int { + return xxx_messageInfo_TLContactsTopPeersNotModified.Size(m) } -func (m *TLContactsLink) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsLink.DiscardUnknown(m) +func (m *TLContactsTopPeersNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsTopPeersNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLContactsLink proto.InternalMessageInfo +var xxx_messageInfo_TLContactsTopPeersNotModified proto.InternalMessageInfo -func (m *TLContactsLink) GetData2() *Contacts_Link_Data { +func (m *TLContactsTopPeersNotModified) GetData2() *Contacts_TopPeers_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// EncryptedFile <-- -// + TL_encryptedFileEmpty -// + TL_encryptedFile -// -type EncryptedFile_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` - DcId int32 `protobuf:"varint,4,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` - KeyFingerprint int32 `protobuf:"varint,5,opt,name=key_fingerprint,json=keyFingerprint,proto3" json:"key_fingerprint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers; +type TLContactsTopPeers struct { + Data2 *Contacts_TopPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EncryptedFile_Data) Reset() { *m = EncryptedFile_Data{} } -func (m *EncryptedFile_Data) String() string { return proto.CompactTextString(m) } -func (*EncryptedFile_Data) ProtoMessage() {} -func (*EncryptedFile_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{522} +func (m *TLContactsTopPeers) Reset() { *m = TLContactsTopPeers{} } +func (m *TLContactsTopPeers) String() string { return proto.CompactTextString(m) } +func (*TLContactsTopPeers) ProtoMessage() {} +func (*TLContactsTopPeers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{480} } -func (m *EncryptedFile_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EncryptedFile_Data.Unmarshal(m, b) +func (m *TLContactsTopPeers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsTopPeers.Unmarshal(m, b) } -func (m *EncryptedFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EncryptedFile_Data.Marshal(b, m, deterministic) +func (m *TLContactsTopPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsTopPeers.Marshal(b, m, deterministic) } -func (dst *EncryptedFile_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedFile_Data.Merge(dst, src) +func (dst *TLContactsTopPeers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsTopPeers.Merge(dst, src) } -func (m *EncryptedFile_Data) XXX_Size() int { - return xxx_messageInfo_EncryptedFile_Data.Size(m) +func (m *TLContactsTopPeers) XXX_Size() int { + return xxx_messageInfo_TLContactsTopPeers.Size(m) } -func (m *EncryptedFile_Data) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedFile_Data.DiscardUnknown(m) +func (m *TLContactsTopPeers) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsTopPeers.DiscardUnknown(m) } -var xxx_messageInfo_EncryptedFile_Data proto.InternalMessageInfo +var xxx_messageInfo_TLContactsTopPeers proto.InternalMessageInfo -func (m *EncryptedFile_Data) GetId() int64 { +func (m *TLContactsTopPeers) GetData2() *Contacts_TopPeers_Data { if m != nil { - return m.Id + return m.Data2 } - return 0 + return nil } -func (m *EncryptedFile_Data) GetAccessHash() int64 { - if m != nil { - return m.AccessHash - } - return 0 +// contacts.topPeersDisabled#b52c939d = contacts.TopPeers; +type TLContactsTopPeersDisabled struct { + Data2 *Contacts_TopPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EncryptedFile_Data) GetSize() int32 { - if m != nil { - return m.Size - } - return 0 +func (m *TLContactsTopPeersDisabled) Reset() { *m = TLContactsTopPeersDisabled{} } +func (m *TLContactsTopPeersDisabled) String() string { return proto.CompactTextString(m) } +func (*TLContactsTopPeersDisabled) ProtoMessage() {} +func (*TLContactsTopPeersDisabled) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{481} } - -func (m *EncryptedFile_Data) GetDcId() int32 { - if m != nil { - return m.DcId - } - return 0 +func (m *TLContactsTopPeersDisabled) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsTopPeersDisabled.Unmarshal(m, b) +} +func (m *TLContactsTopPeersDisabled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsTopPeersDisabled.Marshal(b, m, deterministic) +} +func (dst *TLContactsTopPeersDisabled) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsTopPeersDisabled.Merge(dst, src) +} +func (m *TLContactsTopPeersDisabled) XXX_Size() int { + return xxx_messageInfo_TLContactsTopPeersDisabled.Size(m) +} +func (m *TLContactsTopPeersDisabled) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsTopPeersDisabled.DiscardUnknown(m) } -func (m *EncryptedFile_Data) GetKeyFingerprint() int32 { +var xxx_messageInfo_TLContactsTopPeersDisabled proto.InternalMessageInfo + +func (m *TLContactsTopPeersDisabled) GetData2() *Contacts_TopPeers_Data { if m != nil { - return m.KeyFingerprint + return m.Data2 } - return 0 + return nil } -type EncryptedFile struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *EncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EncryptedFile) Reset() { *m = EncryptedFile{} } -func (m *EncryptedFile) String() string { return proto.CompactTextString(m) } -func (*EncryptedFile) ProtoMessage() {} -func (*EncryptedFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{523} -} -func (m *EncryptedFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EncryptedFile.Unmarshal(m, b) -} -func (m *EncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EncryptedFile.Marshal(b, m, deterministic) -} -func (dst *EncryptedFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedFile.Merge(dst, src) -} -func (m *EncryptedFile) XXX_Size() int { - return xxx_messageInfo_EncryptedFile.Size(m) -} -func (m *EncryptedFile) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedFile.DiscardUnknown(m) -} - -var xxx_messageInfo_EncryptedFile proto.InternalMessageInfo - -func (m *EncryptedFile) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} - -func (m *EncryptedFile) GetData2() *EncryptedFile_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// encryptedFileEmpty#c21f497e = EncryptedFile; -type TLEncryptedFileEmpty struct { - Data2 *EncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLEncryptedFileEmpty) Reset() { *m = TLEncryptedFileEmpty{} } -func (m *TLEncryptedFileEmpty) String() string { return proto.CompactTextString(m) } -func (*TLEncryptedFileEmpty) ProtoMessage() {} -func (*TLEncryptedFileEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{524} -} -func (m *TLEncryptedFileEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLEncryptedFileEmpty.Unmarshal(m, b) -} -func (m *TLEncryptedFileEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLEncryptedFileEmpty.Marshal(b, m, deterministic) -} -func (dst *TLEncryptedFileEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLEncryptedFileEmpty.Merge(dst, src) -} -func (m *TLEncryptedFileEmpty) XXX_Size() int { - return xxx_messageInfo_TLEncryptedFileEmpty.Size(m) -} -func (m *TLEncryptedFileEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLEncryptedFileEmpty.DiscardUnknown(m) -} - -var xxx_messageInfo_TLEncryptedFileEmpty proto.InternalMessageInfo - -func (m *TLEncryptedFileEmpty) GetData2() *EncryptedFile_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile; -type TLEncryptedFile struct { - Data2 *EncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLEncryptedFile) Reset() { *m = TLEncryptedFile{} } -func (m *TLEncryptedFile) String() string { return proto.CompactTextString(m) } -func (*TLEncryptedFile) ProtoMessage() {} -func (*TLEncryptedFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{525} -} -func (m *TLEncryptedFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLEncryptedFile.Unmarshal(m, b) -} -func (m *TLEncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLEncryptedFile.Marshal(b, m, deterministic) -} -func (dst *TLEncryptedFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLEncryptedFile.Merge(dst, src) -} -func (m *TLEncryptedFile) XXX_Size() int { - return xxx_messageInfo_TLEncryptedFile.Size(m) -} -func (m *TLEncryptedFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLEncryptedFile.DiscardUnknown(m) -} - -var xxx_messageInfo_TLEncryptedFile proto.InternalMessageInfo - -func (m *TLEncryptedFile) GetData2() *EncryptedFile_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// ///////////////////////////////////////////////////////////////////////////// -// messages_FeaturedStickers <-- -// + TL_messages_featuredStickersNotModified -// + TL_messages_featuredStickers -// -type Messages_FeaturedStickers_Data struct { - Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - Sets []*StickerSetCovered `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` - Unread []int64 `protobuf:"varint,3,rep,packed,name=unread,proto3" json:"unread,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// messages_FeaturedStickers <-- +// + TL_messages_featuredStickersNotModified +// + TL_messages_featuredStickers +// +type Messages_FeaturedStickers_Data struct { + Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + Sets []*StickerSetCovered `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` + Unread []int64 `protobuf:"varint,3,rep,packed,name=unread,proto3" json:"unread,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Messages_FeaturedStickers_Data) Reset() { *m = Messages_FeaturedStickers_Data{} } func (m *Messages_FeaturedStickers_Data) String() string { return proto.CompactTextString(m) } func (*Messages_FeaturedStickers_Data) ProtoMessage() {} func (*Messages_FeaturedStickers_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{526} + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{482} } func (m *Messages_FeaturedStickers_Data) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Messages_FeaturedStickers_Data.Unmarshal(m, b) @@ -25257,7 +24061,7 @@ func (m *Messages_FeaturedStickers) Reset() { *m = Messages_FeaturedStic func (m *Messages_FeaturedStickers) String() string { return proto.CompactTextString(m) } func (*Messages_FeaturedStickers) ProtoMessage() {} func (*Messages_FeaturedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{527} + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{483} } func (m *Messages_FeaturedStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Messages_FeaturedStickers.Unmarshal(m, b) @@ -25303,7 +24107,7 @@ func (m *TLMessagesFeaturedStickersNotModified) Reset() { *m = TLMessage func (m *TLMessagesFeaturedStickersNotModified) String() string { return proto.CompactTextString(m) } func (*TLMessagesFeaturedStickersNotModified) ProtoMessage() {} func (*TLMessagesFeaturedStickersNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{528} + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{484} } func (m *TLMessagesFeaturedStickersNotModified) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesFeaturedStickersNotModified.Unmarshal(m, b) @@ -25342,7 +24146,7 @@ func (m *TLMessagesFeaturedStickers) Reset() { *m = TLMessagesFeaturedSt func (m *TLMessagesFeaturedStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesFeaturedStickers) ProtoMessage() {} func (*TLMessagesFeaturedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{529} + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{485} } func (m *TLMessagesFeaturedStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesFeaturedStickers.Unmarshal(m, b) @@ -25370,184 +24174,198 @@ func (m *TLMessagesFeaturedStickers) GetData2() *Messages_FeaturedStickers_Data } // ///////////////////////////////////////////////////////////////////////////// -// channels_ChannelParticipants <-- -// + TL_channels_channelParticipants -// + TL_channels_channelParticipantsNotModified +// InputPrivacyKey <-- +// + TL_inputPrivacyKeyStatusTimestamp +// + TL_inputPrivacyKeyChatInvite +// + TL_inputPrivacyKeyPhoneCall // -type Channels_ChannelParticipants_Data struct { - Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` - Participants []*ChannelParticipant `protobuf:"bytes,2,rep,name=participants,proto3" json:"participants,omitempty"` - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` +type InputPrivacyKey_Data struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputPrivacyKey_Data) Reset() { *m = InputPrivacyKey_Data{} } +func (m *InputPrivacyKey_Data) String() string { return proto.CompactTextString(m) } +func (*InputPrivacyKey_Data) ProtoMessage() {} +func (*InputPrivacyKey_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{486} +} +func (m *InputPrivacyKey_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPrivacyKey_Data.Unmarshal(m, b) +} +func (m *InputPrivacyKey_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPrivacyKey_Data.Marshal(b, m, deterministic) +} +func (dst *InputPrivacyKey_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPrivacyKey_Data.Merge(dst, src) +} +func (m *InputPrivacyKey_Data) XXX_Size() int { + return xxx_messageInfo_InputPrivacyKey_Data.Size(m) +} +func (m *InputPrivacyKey_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputPrivacyKey_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_InputPrivacyKey_Data proto.InternalMessageInfo + +type InputPrivacyKey struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputPrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Channels_ChannelParticipants_Data) Reset() { *m = Channels_ChannelParticipants_Data{} } -func (m *Channels_ChannelParticipants_Data) String() string { return proto.CompactTextString(m) } -func (*Channels_ChannelParticipants_Data) ProtoMessage() {} -func (*Channels_ChannelParticipants_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{530} +func (m *InputPrivacyKey) Reset() { *m = InputPrivacyKey{} } +func (m *InputPrivacyKey) String() string { return proto.CompactTextString(m) } +func (*InputPrivacyKey) ProtoMessage() {} +func (*InputPrivacyKey) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{487} } -func (m *Channels_ChannelParticipants_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Channels_ChannelParticipants_Data.Unmarshal(m, b) +func (m *InputPrivacyKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPrivacyKey.Unmarshal(m, b) } -func (m *Channels_ChannelParticipants_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Channels_ChannelParticipants_Data.Marshal(b, m, deterministic) +func (m *InputPrivacyKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPrivacyKey.Marshal(b, m, deterministic) } -func (dst *Channels_ChannelParticipants_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Channels_ChannelParticipants_Data.Merge(dst, src) +func (dst *InputPrivacyKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPrivacyKey.Merge(dst, src) } -func (m *Channels_ChannelParticipants_Data) XXX_Size() int { - return xxx_messageInfo_Channels_ChannelParticipants_Data.Size(m) +func (m *InputPrivacyKey) XXX_Size() int { + return xxx_messageInfo_InputPrivacyKey.Size(m) } -func (m *Channels_ChannelParticipants_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Channels_ChannelParticipants_Data.DiscardUnknown(m) +func (m *InputPrivacyKey) XXX_DiscardUnknown() { + xxx_messageInfo_InputPrivacyKey.DiscardUnknown(m) } -var xxx_messageInfo_Channels_ChannelParticipants_Data proto.InternalMessageInfo - -func (m *Channels_ChannelParticipants_Data) GetCount() int32 { - if m != nil { - return m.Count - } - return 0 -} +var xxx_messageInfo_InputPrivacyKey proto.InternalMessageInfo -func (m *Channels_ChannelParticipants_Data) GetParticipants() []*ChannelParticipant { +func (m *InputPrivacyKey) GetConstructor() TLConstructor { if m != nil { - return m.Participants + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *Channels_ChannelParticipants_Data) GetUsers() []*User { +func (m *InputPrivacyKey) GetData2() *InputPrivacyKey_Data { if m != nil { - return m.Users + return m.Data2 } return nil } -type Channels_ChannelParticipants struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Channels_ChannelParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey; +type TLInputPrivacyKeyStatusTimestamp struct { + Data2 *InputPrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Channels_ChannelParticipants) Reset() { *m = Channels_ChannelParticipants{} } -func (m *Channels_ChannelParticipants) String() string { return proto.CompactTextString(m) } -func (*Channels_ChannelParticipants) ProtoMessage() {} -func (*Channels_ChannelParticipants) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{531} +func (m *TLInputPrivacyKeyStatusTimestamp) Reset() { *m = TLInputPrivacyKeyStatusTimestamp{} } +func (m *TLInputPrivacyKeyStatusTimestamp) String() string { return proto.CompactTextString(m) } +func (*TLInputPrivacyKeyStatusTimestamp) ProtoMessage() {} +func (*TLInputPrivacyKeyStatusTimestamp) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{488} } -func (m *Channels_ChannelParticipants) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Channels_ChannelParticipants.Unmarshal(m, b) +func (m *TLInputPrivacyKeyStatusTimestamp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.Unmarshal(m, b) } -func (m *Channels_ChannelParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Channels_ChannelParticipants.Marshal(b, m, deterministic) +func (m *TLInputPrivacyKeyStatusTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.Marshal(b, m, deterministic) } -func (dst *Channels_ChannelParticipants) XXX_Merge(src proto.Message) { - xxx_messageInfo_Channels_ChannelParticipants.Merge(dst, src) +func (dst *TLInputPrivacyKeyStatusTimestamp) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.Merge(dst, src) } -func (m *Channels_ChannelParticipants) XXX_Size() int { - return xxx_messageInfo_Channels_ChannelParticipants.Size(m) +func (m *TLInputPrivacyKeyStatusTimestamp) XXX_Size() int { + return xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.Size(m) } -func (m *Channels_ChannelParticipants) XXX_DiscardUnknown() { - xxx_messageInfo_Channels_ChannelParticipants.DiscardUnknown(m) +func (m *TLInputPrivacyKeyStatusTimestamp) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.DiscardUnknown(m) } -var xxx_messageInfo_Channels_ChannelParticipants proto.InternalMessageInfo - -func (m *Channels_ChannelParticipants) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp proto.InternalMessageInfo -func (m *Channels_ChannelParticipants) GetData2() *Channels_ChannelParticipants_Data { +func (m *TLInputPrivacyKeyStatusTimestamp) GetData2() *InputPrivacyKey_Data { if m != nil { return m.Data2 } return nil } -// channels.channelParticipants#f56ee2a8 count:int participants:Vector users:Vector = channels.ChannelParticipants; -type TLChannelsChannelParticipants struct { - Data2 *Channels_ChannelParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; +type TLInputPrivacyKeyChatInvite struct { + Data2 *InputPrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelsChannelParticipants) Reset() { *m = TLChannelsChannelParticipants{} } -func (m *TLChannelsChannelParticipants) String() string { return proto.CompactTextString(m) } -func (*TLChannelsChannelParticipants) ProtoMessage() {} -func (*TLChannelsChannelParticipants) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{532} +func (m *TLInputPrivacyKeyChatInvite) Reset() { *m = TLInputPrivacyKeyChatInvite{} } +func (m *TLInputPrivacyKeyChatInvite) String() string { return proto.CompactTextString(m) } +func (*TLInputPrivacyKeyChatInvite) ProtoMessage() {} +func (*TLInputPrivacyKeyChatInvite) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{489} } -func (m *TLChannelsChannelParticipants) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelsChannelParticipants.Unmarshal(m, b) +func (m *TLInputPrivacyKeyChatInvite) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPrivacyKeyChatInvite.Unmarshal(m, b) } -func (m *TLChannelsChannelParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelsChannelParticipants.Marshal(b, m, deterministic) +func (m *TLInputPrivacyKeyChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPrivacyKeyChatInvite.Marshal(b, m, deterministic) } -func (dst *TLChannelsChannelParticipants) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelsChannelParticipants.Merge(dst, src) +func (dst *TLInputPrivacyKeyChatInvite) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPrivacyKeyChatInvite.Merge(dst, src) } -func (m *TLChannelsChannelParticipants) XXX_Size() int { - return xxx_messageInfo_TLChannelsChannelParticipants.Size(m) +func (m *TLInputPrivacyKeyChatInvite) XXX_Size() int { + return xxx_messageInfo_TLInputPrivacyKeyChatInvite.Size(m) } -func (m *TLChannelsChannelParticipants) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelsChannelParticipants.DiscardUnknown(m) +func (m *TLInputPrivacyKeyChatInvite) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPrivacyKeyChatInvite.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelsChannelParticipants proto.InternalMessageInfo +var xxx_messageInfo_TLInputPrivacyKeyChatInvite proto.InternalMessageInfo -func (m *TLChannelsChannelParticipants) GetData2() *Channels_ChannelParticipants_Data { +func (m *TLInputPrivacyKeyChatInvite) GetData2() *InputPrivacyKey_Data { if m != nil { return m.Data2 } return nil } -// channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants; -type TLChannelsChannelParticipantsNotModified struct { - Data2 *Channels_ChannelParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey; +type TLInputPrivacyKeyPhoneCall struct { + Data2 *InputPrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelsChannelParticipantsNotModified) Reset() { - *m = TLChannelsChannelParticipantsNotModified{} -} -func (m *TLChannelsChannelParticipantsNotModified) String() string { return proto.CompactTextString(m) } -func (*TLChannelsChannelParticipantsNotModified) ProtoMessage() {} -func (*TLChannelsChannelParticipantsNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{533} +func (m *TLInputPrivacyKeyPhoneCall) Reset() { *m = TLInputPrivacyKeyPhoneCall{} } +func (m *TLInputPrivacyKeyPhoneCall) String() string { return proto.CompactTextString(m) } +func (*TLInputPrivacyKeyPhoneCall) ProtoMessage() {} +func (*TLInputPrivacyKeyPhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{490} } -func (m *TLChannelsChannelParticipantsNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelsChannelParticipantsNotModified.Unmarshal(m, b) +func (m *TLInputPrivacyKeyPhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPrivacyKeyPhoneCall.Unmarshal(m, b) } -func (m *TLChannelsChannelParticipantsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelsChannelParticipantsNotModified.Marshal(b, m, deterministic) +func (m *TLInputPrivacyKeyPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPrivacyKeyPhoneCall.Marshal(b, m, deterministic) } -func (dst *TLChannelsChannelParticipantsNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelsChannelParticipantsNotModified.Merge(dst, src) +func (dst *TLInputPrivacyKeyPhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPrivacyKeyPhoneCall.Merge(dst, src) } -func (m *TLChannelsChannelParticipantsNotModified) XXX_Size() int { - return xxx_messageInfo_TLChannelsChannelParticipantsNotModified.Size(m) +func (m *TLInputPrivacyKeyPhoneCall) XXX_Size() int { + return xxx_messageInfo_TLInputPrivacyKeyPhoneCall.Size(m) } -func (m *TLChannelsChannelParticipantsNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelsChannelParticipantsNotModified.DiscardUnknown(m) +func (m *TLInputPrivacyKeyPhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPrivacyKeyPhoneCall.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelsChannelParticipantsNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLInputPrivacyKeyPhoneCall proto.InternalMessageInfo -func (m *TLChannelsChannelParticipantsNotModified) GetData2() *Channels_ChannelParticipants_Data { +func (m *TLInputPrivacyKeyPhoneCall) GetData2() *InputPrivacyKey_Data { if m != nil { return m.Data2 } @@ -25555,277 +24373,206 @@ func (m *TLChannelsChannelParticipantsNotModified) GetData2() *Channels_ChannelP } // ///////////////////////////////////////////////////////////////////////////// -// messages_FoundGifs <-- -// + TL_messages_foundGifs +// account_Password <-- +// + TL_account_password // -type Messages_FoundGifs_Data struct { - NextOffset int32 `protobuf:"varint,1,opt,name=next_offset,json=nextOffset,proto3" json:"next_offset,omitempty"` - Results []*FoundGif `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_Password_Data struct { + HasRecovery bool `protobuf:"varint,1,opt,name=has_recovery,json=hasRecovery,proto3" json:"has_recovery,omitempty"` + HasSecureValues bool `protobuf:"varint,2,opt,name=has_secure_values,json=hasSecureValues,proto3" json:"has_secure_values,omitempty"` + HasPassword bool `protobuf:"varint,3,opt,name=has_password,json=hasPassword,proto3" json:"has_password,omitempty"` + CurrentAlgo *PasswordKdfAlgo `protobuf:"bytes,4,opt,name=current_algo,json=currentAlgo,proto3" json:"current_algo,omitempty"` + Srp_B []byte `protobuf:"bytes,5,opt,name=srp_B,json=srpB,proto3" json:"srp_B,omitempty"` + SrpId int64 `protobuf:"varint,6,opt,name=srp_id,json=srpId,proto3" json:"srp_id,omitempty"` + Hint string `protobuf:"bytes,7,opt,name=hint,proto3" json:"hint,omitempty"` + EmailUnconfirmedPattern string `protobuf:"bytes,8,opt,name=email_unconfirmed_pattern,json=emailUnconfirmedPattern,proto3" json:"email_unconfirmed_pattern,omitempty"` + NewAlgo *PasswordKdfAlgo `protobuf:"bytes,9,opt,name=new_algo,json=newAlgo,proto3" json:"new_algo,omitempty"` + NewSecureAlgo *SecurePasswordKdfAlgo `protobuf:"bytes,10,opt,name=new_secure_algo,json=newSecureAlgo,proto3" json:"new_secure_algo,omitempty"` + SecureRandom []byte `protobuf:"bytes,11,opt,name=secure_random,json=secureRandom,proto3" json:"secure_random,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_FoundGifs_Data) Reset() { *m = Messages_FoundGifs_Data{} } -func (m *Messages_FoundGifs_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_FoundGifs_Data) ProtoMessage() {} -func (*Messages_FoundGifs_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{534} +func (m *Account_Password_Data) Reset() { *m = Account_Password_Data{} } +func (m *Account_Password_Data) String() string { return proto.CompactTextString(m) } +func (*Account_Password_Data) ProtoMessage() {} +func (*Account_Password_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{491} } -func (m *Messages_FoundGifs_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_FoundGifs_Data.Unmarshal(m, b) +func (m *Account_Password_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_Password_Data.Unmarshal(m, b) } -func (m *Messages_FoundGifs_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_FoundGifs_Data.Marshal(b, m, deterministic) +func (m *Account_Password_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_Password_Data.Marshal(b, m, deterministic) } -func (dst *Messages_FoundGifs_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_FoundGifs_Data.Merge(dst, src) +func (dst *Account_Password_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_Password_Data.Merge(dst, src) } -func (m *Messages_FoundGifs_Data) XXX_Size() int { - return xxx_messageInfo_Messages_FoundGifs_Data.Size(m) +func (m *Account_Password_Data) XXX_Size() int { + return xxx_messageInfo_Account_Password_Data.Size(m) } -func (m *Messages_FoundGifs_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_FoundGifs_Data.DiscardUnknown(m) +func (m *Account_Password_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_Password_Data.DiscardUnknown(m) } -var xxx_messageInfo_Messages_FoundGifs_Data proto.InternalMessageInfo +var xxx_messageInfo_Account_Password_Data proto.InternalMessageInfo -func (m *Messages_FoundGifs_Data) GetNextOffset() int32 { +func (m *Account_Password_Data) GetHasRecovery() bool { if m != nil { - return m.NextOffset + return m.HasRecovery } - return 0 + return false } -func (m *Messages_FoundGifs_Data) GetResults() []*FoundGif { +func (m *Account_Password_Data) GetHasSecureValues() bool { if m != nil { - return m.Results + return m.HasSecureValues } - return nil -} - -type Messages_FoundGifs struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_FoundGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return false } -func (m *Messages_FoundGifs) Reset() { *m = Messages_FoundGifs{} } -func (m *Messages_FoundGifs) String() string { return proto.CompactTextString(m) } -func (*Messages_FoundGifs) ProtoMessage() {} -func (*Messages_FoundGifs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{535} -} -func (m *Messages_FoundGifs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_FoundGifs.Unmarshal(m, b) -} -func (m *Messages_FoundGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_FoundGifs.Marshal(b, m, deterministic) -} -func (dst *Messages_FoundGifs) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_FoundGifs.Merge(dst, src) -} -func (m *Messages_FoundGifs) XXX_Size() int { - return xxx_messageInfo_Messages_FoundGifs.Size(m) -} -func (m *Messages_FoundGifs) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_FoundGifs.DiscardUnknown(m) +func (m *Account_Password_Data) GetHasPassword() bool { + if m != nil { + return m.HasPassword + } + return false } -var xxx_messageInfo_Messages_FoundGifs proto.InternalMessageInfo - -func (m *Messages_FoundGifs) GetConstructor() TLConstructor { +func (m *Account_Password_Data) GetCurrentAlgo() *PasswordKdfAlgo { if m != nil { - return m.Constructor + return m.CurrentAlgo } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *Messages_FoundGifs) GetData2() *Messages_FoundGifs_Data { +func (m *Account_Password_Data) GetSrp_B() []byte { if m != nil { - return m.Data2 + return m.Srp_B } return nil } -// messages.foundGifs#450a1c0a next_offset:int results:Vector = messages.FoundGifs; -type TLMessagesFoundGifs struct { - Data2 *Messages_FoundGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Account_Password_Data) GetSrpId() int64 { + if m != nil { + return m.SrpId + } + return 0 } -func (m *TLMessagesFoundGifs) Reset() { *m = TLMessagesFoundGifs{} } -func (m *TLMessagesFoundGifs) String() string { return proto.CompactTextString(m) } -func (*TLMessagesFoundGifs) ProtoMessage() {} -func (*TLMessagesFoundGifs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{536} -} -func (m *TLMessagesFoundGifs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesFoundGifs.Unmarshal(m, b) -} -func (m *TLMessagesFoundGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesFoundGifs.Marshal(b, m, deterministic) -} -func (dst *TLMessagesFoundGifs) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesFoundGifs.Merge(dst, src) -} -func (m *TLMessagesFoundGifs) XXX_Size() int { - return xxx_messageInfo_TLMessagesFoundGifs.Size(m) -} -func (m *TLMessagesFoundGifs) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesFoundGifs.DiscardUnknown(m) +func (m *Account_Password_Data) GetHint() string { + if m != nil { + return m.Hint + } + return "" } -var xxx_messageInfo_TLMessagesFoundGifs proto.InternalMessageInfo +func (m *Account_Password_Data) GetEmailUnconfirmedPattern() string { + if m != nil { + return m.EmailUnconfirmedPattern + } + return "" +} -func (m *TLMessagesFoundGifs) GetData2() *Messages_FoundGifs_Data { +func (m *Account_Password_Data) GetNewAlgo() *PasswordKdfAlgo { if m != nil { - return m.Data2 + return m.NewAlgo } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputBotInlineMessageID <-- -// + TL_inputBotInlineMessageID -// -type InputBotInlineMessageID_Data struct { - DcId int32 `protobuf:"varint,1,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` - Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,3,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InputBotInlineMessageID_Data) Reset() { *m = InputBotInlineMessageID_Data{} } -func (m *InputBotInlineMessageID_Data) String() string { return proto.CompactTextString(m) } -func (*InputBotInlineMessageID_Data) ProtoMessage() {} -func (*InputBotInlineMessageID_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{537} -} -func (m *InputBotInlineMessageID_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputBotInlineMessageID_Data.Unmarshal(m, b) -} -func (m *InputBotInlineMessageID_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputBotInlineMessageID_Data.Marshal(b, m, deterministic) -} -func (dst *InputBotInlineMessageID_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputBotInlineMessageID_Data.Merge(dst, src) -} -func (m *InputBotInlineMessageID_Data) XXX_Size() int { - return xxx_messageInfo_InputBotInlineMessageID_Data.Size(m) -} -func (m *InputBotInlineMessageID_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputBotInlineMessageID_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_InputBotInlineMessageID_Data proto.InternalMessageInfo - -func (m *InputBotInlineMessageID_Data) GetDcId() int32 { - if m != nil { - return m.DcId - } - return 0 -} - -func (m *InputBotInlineMessageID_Data) GetId() int64 { +func (m *Account_Password_Data) GetNewSecureAlgo() *SecurePasswordKdfAlgo { if m != nil { - return m.Id + return m.NewSecureAlgo } - return 0 + return nil } -func (m *InputBotInlineMessageID_Data) GetAccessHash() int64 { +func (m *Account_Password_Data) GetSecureRandom() []byte { if m != nil { - return m.AccessHash + return m.SecureRandom } - return 0 + return nil } -type InputBotInlineMessageID struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputBotInlineMessageID_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_Password struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_Password_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputBotInlineMessageID) Reset() { *m = InputBotInlineMessageID{} } -func (m *InputBotInlineMessageID) String() string { return proto.CompactTextString(m) } -func (*InputBotInlineMessageID) ProtoMessage() {} -func (*InputBotInlineMessageID) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{538} +func (m *Account_Password) Reset() { *m = Account_Password{} } +func (m *Account_Password) String() string { return proto.CompactTextString(m) } +func (*Account_Password) ProtoMessage() {} +func (*Account_Password) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{492} } -func (m *InputBotInlineMessageID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputBotInlineMessageID.Unmarshal(m, b) +func (m *Account_Password) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_Password.Unmarshal(m, b) } -func (m *InputBotInlineMessageID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputBotInlineMessageID.Marshal(b, m, deterministic) +func (m *Account_Password) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_Password.Marshal(b, m, deterministic) } -func (dst *InputBotInlineMessageID) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputBotInlineMessageID.Merge(dst, src) +func (dst *Account_Password) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_Password.Merge(dst, src) } -func (m *InputBotInlineMessageID) XXX_Size() int { - return xxx_messageInfo_InputBotInlineMessageID.Size(m) +func (m *Account_Password) XXX_Size() int { + return xxx_messageInfo_Account_Password.Size(m) } -func (m *InputBotInlineMessageID) XXX_DiscardUnknown() { - xxx_messageInfo_InputBotInlineMessageID.DiscardUnknown(m) +func (m *Account_Password) XXX_DiscardUnknown() { + xxx_messageInfo_Account_Password.DiscardUnknown(m) } -var xxx_messageInfo_InputBotInlineMessageID proto.InternalMessageInfo +var xxx_messageInfo_Account_Password proto.InternalMessageInfo -func (m *InputBotInlineMessageID) GetConstructor() TLConstructor { +func (m *Account_Password) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputBotInlineMessageID) GetData2() *InputBotInlineMessageID_Data { +func (m *Account_Password) GetData2() *Account_Password_Data { if m != nil { return m.Data2 } return nil } -// inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID; -type TLInputBotInlineMessageID struct { - Data2 *InputBotInlineMessageID_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password; +type TLAccountPassword struct { + Data2 *Account_Password_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputBotInlineMessageID) Reset() { *m = TLInputBotInlineMessageID{} } -func (m *TLInputBotInlineMessageID) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineMessageID) ProtoMessage() {} -func (*TLInputBotInlineMessageID) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{539} +func (m *TLAccountPassword) Reset() { *m = TLAccountPassword{} } +func (m *TLAccountPassword) String() string { return proto.CompactTextString(m) } +func (*TLAccountPassword) ProtoMessage() {} +func (*TLAccountPassword) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{493} } -func (m *TLInputBotInlineMessageID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineMessageID.Unmarshal(m, b) +func (m *TLAccountPassword) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountPassword.Unmarshal(m, b) } -func (m *TLInputBotInlineMessageID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineMessageID.Marshal(b, m, deterministic) +func (m *TLAccountPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountPassword.Marshal(b, m, deterministic) } -func (dst *TLInputBotInlineMessageID) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineMessageID.Merge(dst, src) +func (dst *TLAccountPassword) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountPassword.Merge(dst, src) } -func (m *TLInputBotInlineMessageID) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineMessageID.Size(m) +func (m *TLAccountPassword) XXX_Size() int { + return xxx_messageInfo_TLAccountPassword.Size(m) } -func (m *TLInputBotInlineMessageID) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineMessageID.DiscardUnknown(m) +func (m *TLAccountPassword) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountPassword.DiscardUnknown(m) } -var xxx_messageInfo_TLInputBotInlineMessageID proto.InternalMessageInfo +var xxx_messageInfo_TLAccountPassword proto.InternalMessageInfo -func (m *TLInputBotInlineMessageID) GetData2() *InputBotInlineMessageID_Data { +func (m *TLAccountPassword) GetData2() *Account_Password_Data { if m != nil { return m.Data2 } @@ -25833,1731 +24580,1789 @@ func (m *TLInputBotInlineMessageID) GetData2() *InputBotInlineMessageID_Data { } // ///////////////////////////////////////////////////////////////////////////// -// account_TmpPassword <-- -// + TL_account_tmpPassword +// InputGame <-- +// + TL_inputGameID +// + TL_inputGameShortName // -type Account_TmpPassword_Data struct { - TmpPassword []byte `protobuf:"bytes,1,opt,name=tmp_password,json=tmpPassword,proto3" json:"tmp_password,omitempty"` - ValidUntil int32 `protobuf:"varint,2,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputGame_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + BotId *InputUser `protobuf:"bytes,3,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"` + ShortName string `protobuf:"bytes,4,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_TmpPassword_Data) Reset() { *m = Account_TmpPassword_Data{} } -func (m *Account_TmpPassword_Data) String() string { return proto.CompactTextString(m) } -func (*Account_TmpPassword_Data) ProtoMessage() {} -func (*Account_TmpPassword_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{540} +func (m *InputGame_Data) Reset() { *m = InputGame_Data{} } +func (m *InputGame_Data) String() string { return proto.CompactTextString(m) } +func (*InputGame_Data) ProtoMessage() {} +func (*InputGame_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{494} } -func (m *Account_TmpPassword_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_TmpPassword_Data.Unmarshal(m, b) +func (m *InputGame_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputGame_Data.Unmarshal(m, b) } -func (m *Account_TmpPassword_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_TmpPassword_Data.Marshal(b, m, deterministic) +func (m *InputGame_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputGame_Data.Marshal(b, m, deterministic) } -func (dst *Account_TmpPassword_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_TmpPassword_Data.Merge(dst, src) +func (dst *InputGame_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputGame_Data.Merge(dst, src) } -func (m *Account_TmpPassword_Data) XXX_Size() int { - return xxx_messageInfo_Account_TmpPassword_Data.Size(m) +func (m *InputGame_Data) XXX_Size() int { + return xxx_messageInfo_InputGame_Data.Size(m) } -func (m *Account_TmpPassword_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_TmpPassword_Data.DiscardUnknown(m) +func (m *InputGame_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputGame_Data.DiscardUnknown(m) } -var xxx_messageInfo_Account_TmpPassword_Data proto.InternalMessageInfo +var xxx_messageInfo_InputGame_Data proto.InternalMessageInfo -func (m *Account_TmpPassword_Data) GetTmpPassword() []byte { +func (m *InputGame_Data) GetId() int64 { if m != nil { - return m.TmpPassword + return m.Id } - return nil + return 0 } -func (m *Account_TmpPassword_Data) GetValidUntil() int32 { +func (m *InputGame_Data) GetAccessHash() int64 { if m != nil { - return m.ValidUntil + return m.AccessHash } return 0 } -type Account_TmpPassword struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_TmpPassword_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputGame_Data) GetBotId() *InputUser { + if m != nil { + return m.BotId + } + return nil } -func (m *Account_TmpPassword) Reset() { *m = Account_TmpPassword{} } -func (m *Account_TmpPassword) String() string { return proto.CompactTextString(m) } -func (*Account_TmpPassword) ProtoMessage() {} -func (*Account_TmpPassword) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{541} +func (m *InputGame_Data) GetShortName() string { + if m != nil { + return m.ShortName + } + return "" } -func (m *Account_TmpPassword) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_TmpPassword.Unmarshal(m, b) + +type InputGame struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputGame_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_TmpPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_TmpPassword.Marshal(b, m, deterministic) + +func (m *InputGame) Reset() { *m = InputGame{} } +func (m *InputGame) String() string { return proto.CompactTextString(m) } +func (*InputGame) ProtoMessage() {} +func (*InputGame) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{495} } -func (dst *Account_TmpPassword) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_TmpPassword.Merge(dst, src) +func (m *InputGame) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputGame.Unmarshal(m, b) } -func (m *Account_TmpPassword) XXX_Size() int { - return xxx_messageInfo_Account_TmpPassword.Size(m) +func (m *InputGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputGame.Marshal(b, m, deterministic) } -func (m *Account_TmpPassword) XXX_DiscardUnknown() { - xxx_messageInfo_Account_TmpPassword.DiscardUnknown(m) +func (dst *InputGame) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputGame.Merge(dst, src) +} +func (m *InputGame) XXX_Size() int { + return xxx_messageInfo_InputGame.Size(m) +} +func (m *InputGame) XXX_DiscardUnknown() { + xxx_messageInfo_InputGame.DiscardUnknown(m) } -var xxx_messageInfo_Account_TmpPassword proto.InternalMessageInfo +var xxx_messageInfo_InputGame proto.InternalMessageInfo -func (m *Account_TmpPassword) GetConstructor() TLConstructor { +func (m *InputGame) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Account_TmpPassword) GetData2() *Account_TmpPassword_Data { +func (m *InputGame) GetData2() *InputGame_Data { if m != nil { return m.Data2 } return nil } -// account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; -type TLAccountTmpPassword struct { - Data2 *Account_TmpPassword_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputGameID#32c3e77 id:long access_hash:long = InputGame; +type TLInputGameID struct { + Data2 *InputGame_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountTmpPassword) Reset() { *m = TLAccountTmpPassword{} } -func (m *TLAccountTmpPassword) String() string { return proto.CompactTextString(m) } -func (*TLAccountTmpPassword) ProtoMessage() {} -func (*TLAccountTmpPassword) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{542} +func (m *TLInputGameID) Reset() { *m = TLInputGameID{} } +func (m *TLInputGameID) String() string { return proto.CompactTextString(m) } +func (*TLInputGameID) ProtoMessage() {} +func (*TLInputGameID) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{496} } -func (m *TLAccountTmpPassword) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountTmpPassword.Unmarshal(m, b) +func (m *TLInputGameID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputGameID.Unmarshal(m, b) } -func (m *TLAccountTmpPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountTmpPassword.Marshal(b, m, deterministic) +func (m *TLInputGameID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputGameID.Marshal(b, m, deterministic) } -func (dst *TLAccountTmpPassword) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountTmpPassword.Merge(dst, src) +func (dst *TLInputGameID) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputGameID.Merge(dst, src) } -func (m *TLAccountTmpPassword) XXX_Size() int { - return xxx_messageInfo_TLAccountTmpPassword.Size(m) +func (m *TLInputGameID) XXX_Size() int { + return xxx_messageInfo_TLInputGameID.Size(m) } -func (m *TLAccountTmpPassword) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountTmpPassword.DiscardUnknown(m) +func (m *TLInputGameID) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputGameID.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountTmpPassword proto.InternalMessageInfo +var xxx_messageInfo_TLInputGameID proto.InternalMessageInfo -func (m *TLAccountTmpPassword) GetData2() *Account_TmpPassword_Data { +func (m *TLInputGameID) GetData2() *InputGame_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// MessageAction <-- -// + TL_messageActionEmpty -// + TL_messageActionChatCreate -// + TL_messageActionChatEditTitle -// + TL_messageActionChatEditPhoto -// + TL_messageActionChatDeletePhoto -// + TL_messageActionChatAddUser -// + TL_messageActionChatDeleteUser -// + TL_messageActionChatJoinedByLink -// + TL_messageActionChannelCreate -// + TL_messageActionChatMigrateTo -// + TL_messageActionChannelMigrateFrom -// + TL_messageActionPinMessage -// + TL_messageActionHistoryClear -// + TL_messageActionGameScore -// + TL_messageActionPaymentSentMe -// + TL_messageActionPaymentSent -// + TL_messageActionPhoneCall -// + TL_messageActionScreenshotTaken -// + TL_messageActionCustomAction -// + TL_messageActionBotAllowed -// + TL_messageActionSecureValuesSentMe -// + TL_messageActionSecureValuesSent -// -type MessageAction_Data struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Users []int32 `protobuf:"varint,2,rep,packed,name=users,proto3" json:"users,omitempty"` - Photo *Photo `protobuf:"bytes,3,opt,name=photo,proto3" json:"photo,omitempty"` - UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - InviterId int32 `protobuf:"varint,5,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` - ChannelId int32 `protobuf:"varint,6,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - ChatId int32 `protobuf:"varint,7,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - GameId int64 `protobuf:"varint,8,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"` - Score int32 `protobuf:"varint,9,opt,name=score,proto3" json:"score,omitempty"` - Currency string `protobuf:"bytes,10,opt,name=currency,proto3" json:"currency,omitempty"` - TotalAmount int64 `protobuf:"varint,11,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` - Payload []byte `protobuf:"bytes,12,opt,name=payload,proto3" json:"payload,omitempty"` - Info *PaymentRequestedInfo `protobuf:"bytes,13,opt,name=info,proto3" json:"info,omitempty"` - ShippingOptionId string `protobuf:"bytes,14,opt,name=shipping_option_id,json=shippingOptionId,proto3" json:"shipping_option_id,omitempty"` - Charge *PaymentCharge `protobuf:"bytes,15,opt,name=charge,proto3" json:"charge,omitempty"` - CallId int64 `protobuf:"varint,16,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"` - Reason *PhoneCallDiscardReason `protobuf:"bytes,17,opt,name=reason,proto3" json:"reason,omitempty"` - Duration int32 `protobuf:"varint,18,opt,name=duration,proto3" json:"duration,omitempty"` - Message string `protobuf:"bytes,19,opt,name=message,proto3" json:"message,omitempty"` - Domain string `protobuf:"bytes,20,opt,name=domain,proto3" json:"domain,omitempty"` - Values []*SecureValue `protobuf:"bytes,21,rep,name=values,proto3" json:"values,omitempty"` - Credentials *SecureCredentialsEncrypted `protobuf:"bytes,22,opt,name=credentials,proto3" json:"credentials,omitempty"` - Types []*SecureValueType `protobuf:"bytes,23,rep,name=types,proto3" json:"types,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame; +type TLInputGameShortName struct { + Data2 *InputGame_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageAction_Data) Reset() { *m = MessageAction_Data{} } -func (m *MessageAction_Data) String() string { return proto.CompactTextString(m) } -func (*MessageAction_Data) ProtoMessage() {} -func (*MessageAction_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{543} +func (m *TLInputGameShortName) Reset() { *m = TLInputGameShortName{} } +func (m *TLInputGameShortName) String() string { return proto.CompactTextString(m) } +func (*TLInputGameShortName) ProtoMessage() {} +func (*TLInputGameShortName) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{497} } -func (m *MessageAction_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageAction_Data.Unmarshal(m, b) +func (m *TLInputGameShortName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputGameShortName.Unmarshal(m, b) } -func (m *MessageAction_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageAction_Data.Marshal(b, m, deterministic) +func (m *TLInputGameShortName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputGameShortName.Marshal(b, m, deterministic) } -func (dst *MessageAction_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageAction_Data.Merge(dst, src) +func (dst *TLInputGameShortName) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputGameShortName.Merge(dst, src) } -func (m *MessageAction_Data) XXX_Size() int { - return xxx_messageInfo_MessageAction_Data.Size(m) +func (m *TLInputGameShortName) XXX_Size() int { + return xxx_messageInfo_TLInputGameShortName.Size(m) } -func (m *MessageAction_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MessageAction_Data.DiscardUnknown(m) +func (m *TLInputGameShortName) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputGameShortName.DiscardUnknown(m) } -var xxx_messageInfo_MessageAction_Data proto.InternalMessageInfo - -func (m *MessageAction_Data) GetTitle() string { - if m != nil { - return m.Title - } - return "" -} +var xxx_messageInfo_TLInputGameShortName proto.InternalMessageInfo -func (m *MessageAction_Data) GetUsers() []int32 { +func (m *TLInputGameShortName) GetData2() *InputGame_Data { if m != nil { - return m.Users + return m.Data2 } return nil } -func (m *MessageAction_Data) GetPhoto() *Photo { - if m != nil { - return m.Photo - } - return nil +// ///////////////////////////////////////////////////////////////////////////// +// InputDialogPeer <-- +// + TL_inputDialogPeer +// +type InputDialogPeer_Data struct { + Peer *InputPeer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageAction_Data) GetUserId() int32 { - if m != nil { - return m.UserId - } - return 0 +func (m *InputDialogPeer_Data) Reset() { *m = InputDialogPeer_Data{} } +func (m *InputDialogPeer_Data) String() string { return proto.CompactTextString(m) } +func (*InputDialogPeer_Data) ProtoMessage() {} +func (*InputDialogPeer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{498} } - -func (m *MessageAction_Data) GetInviterId() int32 { - if m != nil { - return m.InviterId - } - return 0 +func (m *InputDialogPeer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputDialogPeer_Data.Unmarshal(m, b) } - -func (m *MessageAction_Data) GetChannelId() int32 { - if m != nil { - return m.ChannelId - } - return 0 +func (m *InputDialogPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputDialogPeer_Data.Marshal(b, m, deterministic) +} +func (dst *InputDialogPeer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputDialogPeer_Data.Merge(dst, src) +} +func (m *InputDialogPeer_Data) XXX_Size() int { + return xxx_messageInfo_InputDialogPeer_Data.Size(m) +} +func (m *InputDialogPeer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputDialogPeer_Data.DiscardUnknown(m) } -func (m *MessageAction_Data) GetChatId() int32 { +var xxx_messageInfo_InputDialogPeer_Data proto.InternalMessageInfo + +func (m *InputDialogPeer_Data) GetPeer() *InputPeer { if m != nil { - return m.ChatId + return m.Peer } - return 0 + return nil } -func (m *MessageAction_Data) GetGameId() int64 { - if m != nil { - return m.GameId - } - return 0 +type InputDialogPeer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputDialogPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageAction_Data) GetScore() int32 { - if m != nil { - return m.Score - } - return 0 +func (m *InputDialogPeer) Reset() { *m = InputDialogPeer{} } +func (m *InputDialogPeer) String() string { return proto.CompactTextString(m) } +func (*InputDialogPeer) ProtoMessage() {} +func (*InputDialogPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{499} +} +func (m *InputDialogPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputDialogPeer.Unmarshal(m, b) +} +func (m *InputDialogPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputDialogPeer.Marshal(b, m, deterministic) +} +func (dst *InputDialogPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputDialogPeer.Merge(dst, src) +} +func (m *InputDialogPeer) XXX_Size() int { + return xxx_messageInfo_InputDialogPeer.Size(m) +} +func (m *InputDialogPeer) XXX_DiscardUnknown() { + xxx_messageInfo_InputDialogPeer.DiscardUnknown(m) } -func (m *MessageAction_Data) GetCurrency() string { +var xxx_messageInfo_InputDialogPeer proto.InternalMessageInfo + +func (m *InputDialogPeer) GetConstructor() TLConstructor { if m != nil { - return m.Currency + return m.Constructor } - return "" + return TLConstructor_CRC32_UNKNOWN } -func (m *MessageAction_Data) GetTotalAmount() int64 { +func (m *InputDialogPeer) GetData2() *InputDialogPeer_Data { if m != nil { - return m.TotalAmount + return m.Data2 } - return 0 + return nil } -func (m *MessageAction_Data) GetPayload() []byte { - if m != nil { - return m.Payload - } - return nil +// inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer; +type TLInputDialogPeer struct { + Data2 *InputDialogPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageAction_Data) GetInfo() *PaymentRequestedInfo { - if m != nil { - return m.Info - } - return nil +func (m *TLInputDialogPeer) Reset() { *m = TLInputDialogPeer{} } +func (m *TLInputDialogPeer) String() string { return proto.CompactTextString(m) } +func (*TLInputDialogPeer) ProtoMessage() {} +func (*TLInputDialogPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{500} } - -func (m *MessageAction_Data) GetShippingOptionId() string { - if m != nil { - return m.ShippingOptionId - } - return "" +func (m *TLInputDialogPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputDialogPeer.Unmarshal(m, b) } - -func (m *MessageAction_Data) GetCharge() *PaymentCharge { - if m != nil { - return m.Charge - } - return nil +func (m *TLInputDialogPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputDialogPeer.Marshal(b, m, deterministic) } - -func (m *MessageAction_Data) GetCallId() int64 { - if m != nil { - return m.CallId - } - return 0 +func (dst *TLInputDialogPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputDialogPeer.Merge(dst, src) +} +func (m *TLInputDialogPeer) XXX_Size() int { + return xxx_messageInfo_TLInputDialogPeer.Size(m) +} +func (m *TLInputDialogPeer) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputDialogPeer.DiscardUnknown(m) } -func (m *MessageAction_Data) GetReason() *PhoneCallDiscardReason { +var xxx_messageInfo_TLInputDialogPeer proto.InternalMessageInfo + +func (m *TLInputDialogPeer) GetData2() *InputDialogPeer_Data { if m != nil { - return m.Reason + return m.Data2 } return nil } -func (m *MessageAction_Data) GetDuration() int32 { - if m != nil { - return m.Duration - } - return 0 +// ///////////////////////////////////////////////////////////////////////////// +// auth_ExportedAuthorization <-- +// + TL_auth_exportedAuthorization +// +type Auth_ExportedAuthorization_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageAction_Data) GetMessage() string { - if m != nil { - return m.Message - } - return "" +func (m *Auth_ExportedAuthorization_Data) Reset() { *m = Auth_ExportedAuthorization_Data{} } +func (m *Auth_ExportedAuthorization_Data) String() string { return proto.CompactTextString(m) } +func (*Auth_ExportedAuthorization_Data) ProtoMessage() {} +func (*Auth_ExportedAuthorization_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{501} } - -func (m *MessageAction_Data) GetDomain() string { - if m != nil { - return m.Domain - } - return "" +func (m *Auth_ExportedAuthorization_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_ExportedAuthorization_Data.Unmarshal(m, b) } - -func (m *MessageAction_Data) GetValues() []*SecureValue { - if m != nil { - return m.Values - } - return nil +func (m *Auth_ExportedAuthorization_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_ExportedAuthorization_Data.Marshal(b, m, deterministic) +} +func (dst *Auth_ExportedAuthorization_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_ExportedAuthorization_Data.Merge(dst, src) +} +func (m *Auth_ExportedAuthorization_Data) XXX_Size() int { + return xxx_messageInfo_Auth_ExportedAuthorization_Data.Size(m) +} +func (m *Auth_ExportedAuthorization_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_ExportedAuthorization_Data.DiscardUnknown(m) } -func (m *MessageAction_Data) GetCredentials() *SecureCredentialsEncrypted { +var xxx_messageInfo_Auth_ExportedAuthorization_Data proto.InternalMessageInfo + +func (m *Auth_ExportedAuthorization_Data) GetId() int32 { if m != nil { - return m.Credentials + return m.Id } - return nil + return 0 } -func (m *MessageAction_Data) GetTypes() []*SecureValueType { +func (m *Auth_ExportedAuthorization_Data) GetBytes() []byte { if m != nil { - return m.Types + return m.Bytes } return nil } -type MessageAction struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Auth_ExportedAuthorization struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Auth_ExportedAuthorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageAction) Reset() { *m = MessageAction{} } -func (m *MessageAction) String() string { return proto.CompactTextString(m) } -func (*MessageAction) ProtoMessage() {} -func (*MessageAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{544} +func (m *Auth_ExportedAuthorization) Reset() { *m = Auth_ExportedAuthorization{} } +func (m *Auth_ExportedAuthorization) String() string { return proto.CompactTextString(m) } +func (*Auth_ExportedAuthorization) ProtoMessage() {} +func (*Auth_ExportedAuthorization) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{502} } -func (m *MessageAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageAction.Unmarshal(m, b) +func (m *Auth_ExportedAuthorization) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_ExportedAuthorization.Unmarshal(m, b) } -func (m *MessageAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageAction.Marshal(b, m, deterministic) +func (m *Auth_ExportedAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_ExportedAuthorization.Marshal(b, m, deterministic) } -func (dst *MessageAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageAction.Merge(dst, src) +func (dst *Auth_ExportedAuthorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_ExportedAuthorization.Merge(dst, src) } -func (m *MessageAction) XXX_Size() int { - return xxx_messageInfo_MessageAction.Size(m) +func (m *Auth_ExportedAuthorization) XXX_Size() int { + return xxx_messageInfo_Auth_ExportedAuthorization.Size(m) } -func (m *MessageAction) XXX_DiscardUnknown() { - xxx_messageInfo_MessageAction.DiscardUnknown(m) +func (m *Auth_ExportedAuthorization) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_ExportedAuthorization.DiscardUnknown(m) } -var xxx_messageInfo_MessageAction proto.InternalMessageInfo +var xxx_messageInfo_Auth_ExportedAuthorization proto.InternalMessageInfo -func (m *MessageAction) GetConstructor() TLConstructor { +func (m *Auth_ExportedAuthorization) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MessageAction) GetData2() *MessageAction_Data { +func (m *Auth_ExportedAuthorization) GetData2() *Auth_ExportedAuthorization_Data { if m != nil { return m.Data2 } return nil } -// messageActionEmpty#b6aef7b0 = MessageAction; -type TLMessageActionEmpty struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization; +type TLAuthExportedAuthorization struct { + Data2 *Auth_ExportedAuthorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionEmpty) Reset() { *m = TLMessageActionEmpty{} } -func (m *TLMessageActionEmpty) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionEmpty) ProtoMessage() {} -func (*TLMessageActionEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{545} +func (m *TLAuthExportedAuthorization) Reset() { *m = TLAuthExportedAuthorization{} } +func (m *TLAuthExportedAuthorization) String() string { return proto.CompactTextString(m) } +func (*TLAuthExportedAuthorization) ProtoMessage() {} +func (*TLAuthExportedAuthorization) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{503} } -func (m *TLMessageActionEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionEmpty.Unmarshal(m, b) +func (m *TLAuthExportedAuthorization) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthExportedAuthorization.Unmarshal(m, b) } -func (m *TLMessageActionEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionEmpty.Marshal(b, m, deterministic) +func (m *TLAuthExportedAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthExportedAuthorization.Marshal(b, m, deterministic) } -func (dst *TLMessageActionEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionEmpty.Merge(dst, src) +func (dst *TLAuthExportedAuthorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthExportedAuthorization.Merge(dst, src) } -func (m *TLMessageActionEmpty) XXX_Size() int { - return xxx_messageInfo_TLMessageActionEmpty.Size(m) +func (m *TLAuthExportedAuthorization) XXX_Size() int { + return xxx_messageInfo_TLAuthExportedAuthorization.Size(m) } -func (m *TLMessageActionEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionEmpty.DiscardUnknown(m) +func (m *TLAuthExportedAuthorization) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthExportedAuthorization.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLAuthExportedAuthorization proto.InternalMessageInfo -func (m *TLMessageActionEmpty) GetData2() *MessageAction_Data { +func (m *TLAuthExportedAuthorization) GetData2() *Auth_ExportedAuthorization_Data { if m != nil { return m.Data2 } return nil } -// messageActionChatCreate#a6638b9a title:string users:Vector = MessageAction; -type TLMessageActionChatCreate struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputPeerNotifySettings <-- +// + TL_inputPeerNotifySettings +// +type InputPeerNotifySettings_Data struct { + ShowPreviews *Bool `protobuf:"bytes,1,opt,name=show_previews,json=showPreviews,proto3" json:"show_previews,omitempty"` + Silent *Bool `protobuf:"bytes,2,opt,name=silent,proto3" json:"silent,omitempty"` + MuteUntil int32 `protobuf:"varint,3,opt,name=mute_until,json=muteUntil,proto3" json:"mute_until,omitempty"` + Sound string `protobuf:"bytes,4,opt,name=sound,proto3" json:"sound,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionChatCreate) Reset() { *m = TLMessageActionChatCreate{} } -func (m *TLMessageActionChatCreate) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChatCreate) ProtoMessage() {} -func (*TLMessageActionChatCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{546} +func (m *InputPeerNotifySettings_Data) Reset() { *m = InputPeerNotifySettings_Data{} } +func (m *InputPeerNotifySettings_Data) String() string { return proto.CompactTextString(m) } +func (*InputPeerNotifySettings_Data) ProtoMessage() {} +func (*InputPeerNotifySettings_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{504} } -func (m *TLMessageActionChatCreate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChatCreate.Unmarshal(m, b) +func (m *InputPeerNotifySettings_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPeerNotifySettings_Data.Unmarshal(m, b) } -func (m *TLMessageActionChatCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChatCreate.Marshal(b, m, deterministic) +func (m *InputPeerNotifySettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPeerNotifySettings_Data.Marshal(b, m, deterministic) } -func (dst *TLMessageActionChatCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChatCreate.Merge(dst, src) +func (dst *InputPeerNotifySettings_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPeerNotifySettings_Data.Merge(dst, src) } -func (m *TLMessageActionChatCreate) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChatCreate.Size(m) +func (m *InputPeerNotifySettings_Data) XXX_Size() int { + return xxx_messageInfo_InputPeerNotifySettings_Data.Size(m) } -func (m *TLMessageActionChatCreate) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChatCreate.DiscardUnknown(m) +func (m *InputPeerNotifySettings_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputPeerNotifySettings_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionChatCreate proto.InternalMessageInfo +var xxx_messageInfo_InputPeerNotifySettings_Data proto.InternalMessageInfo -func (m *TLMessageActionChatCreate) GetData2() *MessageAction_Data { +func (m *InputPeerNotifySettings_Data) GetShowPreviews() *Bool { if m != nil { - return m.Data2 + return m.ShowPreviews } return nil } -// messageActionChatEditTitle#b5a1ce5a title:string = MessageAction; -type TLMessageActionChatEditTitle struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputPeerNotifySettings_Data) GetSilent() *Bool { + if m != nil { + return m.Silent + } + return nil } -func (m *TLMessageActionChatEditTitle) Reset() { *m = TLMessageActionChatEditTitle{} } -func (m *TLMessageActionChatEditTitle) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChatEditTitle) ProtoMessage() {} -func (*TLMessageActionChatEditTitle) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{547} -} -func (m *TLMessageActionChatEditTitle) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChatEditTitle.Unmarshal(m, b) -} -func (m *TLMessageActionChatEditTitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChatEditTitle.Marshal(b, m, deterministic) -} -func (dst *TLMessageActionChatEditTitle) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChatEditTitle.Merge(dst, src) -} -func (m *TLMessageActionChatEditTitle) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChatEditTitle.Size(m) -} -func (m *TLMessageActionChatEditTitle) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChatEditTitle.DiscardUnknown(m) +func (m *InputPeerNotifySettings_Data) GetMuteUntil() int32 { + if m != nil { + return m.MuteUntil + } + return 0 } -var xxx_messageInfo_TLMessageActionChatEditTitle proto.InternalMessageInfo - -func (m *TLMessageActionChatEditTitle) GetData2() *MessageAction_Data { +func (m *InputPeerNotifySettings_Data) GetSound() string { if m != nil { - return m.Data2 + return m.Sound } - return nil + return "" } -// messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction; -type TLMessageActionChatEditPhoto struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputPeerNotifySettings struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputPeerNotifySettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionChatEditPhoto) Reset() { *m = TLMessageActionChatEditPhoto{} } -func (m *TLMessageActionChatEditPhoto) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChatEditPhoto) ProtoMessage() {} -func (*TLMessageActionChatEditPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{548} +func (m *InputPeerNotifySettings) Reset() { *m = InputPeerNotifySettings{} } +func (m *InputPeerNotifySettings) String() string { return proto.CompactTextString(m) } +func (*InputPeerNotifySettings) ProtoMessage() {} +func (*InputPeerNotifySettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{505} } -func (m *TLMessageActionChatEditPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChatEditPhoto.Unmarshal(m, b) +func (m *InputPeerNotifySettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPeerNotifySettings.Unmarshal(m, b) } -func (m *TLMessageActionChatEditPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChatEditPhoto.Marshal(b, m, deterministic) +func (m *InputPeerNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPeerNotifySettings.Marshal(b, m, deterministic) } -func (dst *TLMessageActionChatEditPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChatEditPhoto.Merge(dst, src) +func (dst *InputPeerNotifySettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPeerNotifySettings.Merge(dst, src) } -func (m *TLMessageActionChatEditPhoto) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChatEditPhoto.Size(m) +func (m *InputPeerNotifySettings) XXX_Size() int { + return xxx_messageInfo_InputPeerNotifySettings.Size(m) } -func (m *TLMessageActionChatEditPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChatEditPhoto.DiscardUnknown(m) +func (m *InputPeerNotifySettings) XXX_DiscardUnknown() { + xxx_messageInfo_InputPeerNotifySettings.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionChatEditPhoto proto.InternalMessageInfo +var xxx_messageInfo_InputPeerNotifySettings proto.InternalMessageInfo -func (m *TLMessageActionChatEditPhoto) GetData2() *MessageAction_Data { +func (m *InputPeerNotifySettings) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputPeerNotifySettings) GetData2() *InputPeerNotifySettings_Data { if m != nil { return m.Data2 } return nil } -// messageActionChatDeletePhoto#95e3fbef = MessageAction; -type TLMessageActionChatDeletePhoto struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings; +type TLInputPeerNotifySettings struct { + Data2 *InputPeerNotifySettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionChatDeletePhoto) Reset() { *m = TLMessageActionChatDeletePhoto{} } -func (m *TLMessageActionChatDeletePhoto) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChatDeletePhoto) ProtoMessage() {} -func (*TLMessageActionChatDeletePhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{549} +func (m *TLInputPeerNotifySettings) Reset() { *m = TLInputPeerNotifySettings{} } +func (m *TLInputPeerNotifySettings) String() string { return proto.CompactTextString(m) } +func (*TLInputPeerNotifySettings) ProtoMessage() {} +func (*TLInputPeerNotifySettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{506} } -func (m *TLMessageActionChatDeletePhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChatDeletePhoto.Unmarshal(m, b) +func (m *TLInputPeerNotifySettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPeerNotifySettings.Unmarshal(m, b) } -func (m *TLMessageActionChatDeletePhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChatDeletePhoto.Marshal(b, m, deterministic) +func (m *TLInputPeerNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPeerNotifySettings.Marshal(b, m, deterministic) } -func (dst *TLMessageActionChatDeletePhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChatDeletePhoto.Merge(dst, src) +func (dst *TLInputPeerNotifySettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPeerNotifySettings.Merge(dst, src) } -func (m *TLMessageActionChatDeletePhoto) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChatDeletePhoto.Size(m) +func (m *TLInputPeerNotifySettings) XXX_Size() int { + return xxx_messageInfo_TLInputPeerNotifySettings.Size(m) } -func (m *TLMessageActionChatDeletePhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChatDeletePhoto.DiscardUnknown(m) +func (m *TLInputPeerNotifySettings) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPeerNotifySettings.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionChatDeletePhoto proto.InternalMessageInfo +var xxx_messageInfo_TLInputPeerNotifySettings proto.InternalMessageInfo -func (m *TLMessageActionChatDeletePhoto) GetData2() *MessageAction_Data { +func (m *TLInputPeerNotifySettings) GetData2() *InputPeerNotifySettings_Data { if m != nil { return m.Data2 } return nil } -// messageActionChatAddUser#488a7337 users:Vector = MessageAction; -type TLMessageActionChatAddUser struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// photos_Photo <-- +// + TL_photos_photo +// +type Photos_Photo_Data struct { + Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"` + Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionChatAddUser) Reset() { *m = TLMessageActionChatAddUser{} } -func (m *TLMessageActionChatAddUser) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChatAddUser) ProtoMessage() {} -func (*TLMessageActionChatAddUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{550} +func (m *Photos_Photo_Data) Reset() { *m = Photos_Photo_Data{} } +func (m *Photos_Photo_Data) String() string { return proto.CompactTextString(m) } +func (*Photos_Photo_Data) ProtoMessage() {} +func (*Photos_Photo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{507} } -func (m *TLMessageActionChatAddUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChatAddUser.Unmarshal(m, b) +func (m *Photos_Photo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Photos_Photo_Data.Unmarshal(m, b) } -func (m *TLMessageActionChatAddUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChatAddUser.Marshal(b, m, deterministic) +func (m *Photos_Photo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Photos_Photo_Data.Marshal(b, m, deterministic) } -func (dst *TLMessageActionChatAddUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChatAddUser.Merge(dst, src) +func (dst *Photos_Photo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Photos_Photo_Data.Merge(dst, src) } -func (m *TLMessageActionChatAddUser) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChatAddUser.Size(m) +func (m *Photos_Photo_Data) XXX_Size() int { + return xxx_messageInfo_Photos_Photo_Data.Size(m) } -func (m *TLMessageActionChatAddUser) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChatAddUser.DiscardUnknown(m) +func (m *Photos_Photo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Photos_Photo_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionChatAddUser proto.InternalMessageInfo +var xxx_messageInfo_Photos_Photo_Data proto.InternalMessageInfo -func (m *TLMessageActionChatAddUser) GetData2() *MessageAction_Data { +func (m *Photos_Photo_Data) GetPhoto() *Photo { if m != nil { - return m.Data2 + return m.Photo } return nil } -// messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction; -type TLMessageActionChatDeleteUser struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Photos_Photo_Data) GetUsers() []*User { + if m != nil { + return m.Users + } + return nil } -func (m *TLMessageActionChatDeleteUser) Reset() { *m = TLMessageActionChatDeleteUser{} } -func (m *TLMessageActionChatDeleteUser) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChatDeleteUser) ProtoMessage() {} -func (*TLMessageActionChatDeleteUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{551} +type Photos_Photo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Photos_Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionChatDeleteUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChatDeleteUser.Unmarshal(m, b) + +func (m *Photos_Photo) Reset() { *m = Photos_Photo{} } +func (m *Photos_Photo) String() string { return proto.CompactTextString(m) } +func (*Photos_Photo) ProtoMessage() {} +func (*Photos_Photo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{508} } -func (m *TLMessageActionChatDeleteUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChatDeleteUser.Marshal(b, m, deterministic) +func (m *Photos_Photo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Photos_Photo.Unmarshal(m, b) } -func (dst *TLMessageActionChatDeleteUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChatDeleteUser.Merge(dst, src) +func (m *Photos_Photo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Photos_Photo.Marshal(b, m, deterministic) } -func (m *TLMessageActionChatDeleteUser) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChatDeleteUser.Size(m) +func (dst *Photos_Photo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Photos_Photo.Merge(dst, src) } -func (m *TLMessageActionChatDeleteUser) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChatDeleteUser.DiscardUnknown(m) +func (m *Photos_Photo) XXX_Size() int { + return xxx_messageInfo_Photos_Photo.Size(m) +} +func (m *Photos_Photo) XXX_DiscardUnknown() { + xxx_messageInfo_Photos_Photo.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionChatDeleteUser proto.InternalMessageInfo +var xxx_messageInfo_Photos_Photo proto.InternalMessageInfo -func (m *TLMessageActionChatDeleteUser) GetData2() *MessageAction_Data { +func (m *Photos_Photo) GetConstructor() TLConstructor { if m != nil { - return m.Data2 + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -// messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction; -type TLMessageActionChatJoinedByLink struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Photos_Photo) GetData2() *Photos_Photo_Data { + if m != nil { + return m.Data2 + } + return nil } -func (m *TLMessageActionChatJoinedByLink) Reset() { *m = TLMessageActionChatJoinedByLink{} } -func (m *TLMessageActionChatJoinedByLink) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChatJoinedByLink) ProtoMessage() {} -func (*TLMessageActionChatJoinedByLink) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{552} +// photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; +type TLPhotosPhoto struct { + Data2 *Photos_Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionChatJoinedByLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChatJoinedByLink.Unmarshal(m, b) + +func (m *TLPhotosPhoto) Reset() { *m = TLPhotosPhoto{} } +func (m *TLPhotosPhoto) String() string { return proto.CompactTextString(m) } +func (*TLPhotosPhoto) ProtoMessage() {} +func (*TLPhotosPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{509} } -func (m *TLMessageActionChatJoinedByLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChatJoinedByLink.Marshal(b, m, deterministic) +func (m *TLPhotosPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhotosPhoto.Unmarshal(m, b) } -func (dst *TLMessageActionChatJoinedByLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChatJoinedByLink.Merge(dst, src) +func (m *TLPhotosPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhotosPhoto.Marshal(b, m, deterministic) } -func (m *TLMessageActionChatJoinedByLink) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChatJoinedByLink.Size(m) +func (dst *TLPhotosPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhotosPhoto.Merge(dst, src) } -func (m *TLMessageActionChatJoinedByLink) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChatJoinedByLink.DiscardUnknown(m) +func (m *TLPhotosPhoto) XXX_Size() int { + return xxx_messageInfo_TLPhotosPhoto.Size(m) +} +func (m *TLPhotosPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhotosPhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionChatJoinedByLink proto.InternalMessageInfo +var xxx_messageInfo_TLPhotosPhoto proto.InternalMessageInfo -func (m *TLMessageActionChatJoinedByLink) GetData2() *MessageAction_Data { +func (m *TLPhotosPhoto) GetData2() *Photos_Photo_Data { if m != nil { return m.Data2 } return nil } -// messageActionChannelCreate#95d2ac92 title:string = MessageAction; -type TLMessageActionChannelCreate struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// MaskCoords <-- +// + TL_maskCoords +// +type MaskCoords_Data struct { + N int32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"` + X float64 `protobuf:"fixed64,2,opt,name=x,proto3" json:"x,omitempty"` + Y float64 `protobuf:"fixed64,3,opt,name=y,proto3" json:"y,omitempty"` + Zoom float64 `protobuf:"fixed64,4,opt,name=zoom,proto3" json:"zoom,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionChannelCreate) Reset() { *m = TLMessageActionChannelCreate{} } -func (m *TLMessageActionChannelCreate) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChannelCreate) ProtoMessage() {} -func (*TLMessageActionChannelCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{553} +func (m *MaskCoords_Data) Reset() { *m = MaskCoords_Data{} } +func (m *MaskCoords_Data) String() string { return proto.CompactTextString(m) } +func (*MaskCoords_Data) ProtoMessage() {} +func (*MaskCoords_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{510} } -func (m *TLMessageActionChannelCreate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChannelCreate.Unmarshal(m, b) +func (m *MaskCoords_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MaskCoords_Data.Unmarshal(m, b) } -func (m *TLMessageActionChannelCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChannelCreate.Marshal(b, m, deterministic) +func (m *MaskCoords_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MaskCoords_Data.Marshal(b, m, deterministic) } -func (dst *TLMessageActionChannelCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChannelCreate.Merge(dst, src) +func (dst *MaskCoords_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MaskCoords_Data.Merge(dst, src) } -func (m *TLMessageActionChannelCreate) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChannelCreate.Size(m) +func (m *MaskCoords_Data) XXX_Size() int { + return xxx_messageInfo_MaskCoords_Data.Size(m) } -func (m *TLMessageActionChannelCreate) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChannelCreate.DiscardUnknown(m) +func (m *MaskCoords_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MaskCoords_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionChannelCreate proto.InternalMessageInfo +var xxx_messageInfo_MaskCoords_Data proto.InternalMessageInfo -func (m *TLMessageActionChannelCreate) GetData2() *MessageAction_Data { +func (m *MaskCoords_Data) GetN() int32 { if m != nil { - return m.Data2 + return m.N } - return nil + return 0 } -// messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction; -type TLMessageActionChatMigrateTo struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MaskCoords_Data) GetX() float64 { + if m != nil { + return m.X + } + return 0 } -func (m *TLMessageActionChatMigrateTo) Reset() { *m = TLMessageActionChatMigrateTo{} } -func (m *TLMessageActionChatMigrateTo) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChatMigrateTo) ProtoMessage() {} -func (*TLMessageActionChatMigrateTo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{554} -} -func (m *TLMessageActionChatMigrateTo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChatMigrateTo.Unmarshal(m, b) -} -func (m *TLMessageActionChatMigrateTo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChatMigrateTo.Marshal(b, m, deterministic) -} -func (dst *TLMessageActionChatMigrateTo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChatMigrateTo.Merge(dst, src) -} -func (m *TLMessageActionChatMigrateTo) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChatMigrateTo.Size(m) -} -func (m *TLMessageActionChatMigrateTo) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChatMigrateTo.DiscardUnknown(m) +func (m *MaskCoords_Data) GetY() float64 { + if m != nil { + return m.Y + } + return 0 } -var xxx_messageInfo_TLMessageActionChatMigrateTo proto.InternalMessageInfo - -func (m *TLMessageActionChatMigrateTo) GetData2() *MessageAction_Data { +func (m *MaskCoords_Data) GetZoom() float64 { if m != nil { - return m.Data2 + return m.Zoom } - return nil + return 0 } -// messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction; -type TLMessageActionChannelMigrateFrom struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MaskCoords struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MaskCoords_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionChannelMigrateFrom) Reset() { *m = TLMessageActionChannelMigrateFrom{} } -func (m *TLMessageActionChannelMigrateFrom) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionChannelMigrateFrom) ProtoMessage() {} -func (*TLMessageActionChannelMigrateFrom) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{555} +func (m *MaskCoords) Reset() { *m = MaskCoords{} } +func (m *MaskCoords) String() string { return proto.CompactTextString(m) } +func (*MaskCoords) ProtoMessage() {} +func (*MaskCoords) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{511} } -func (m *TLMessageActionChannelMigrateFrom) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionChannelMigrateFrom.Unmarshal(m, b) +func (m *MaskCoords) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MaskCoords.Unmarshal(m, b) } -func (m *TLMessageActionChannelMigrateFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionChannelMigrateFrom.Marshal(b, m, deterministic) +func (m *MaskCoords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MaskCoords.Marshal(b, m, deterministic) } -func (dst *TLMessageActionChannelMigrateFrom) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionChannelMigrateFrom.Merge(dst, src) +func (dst *MaskCoords) XXX_Merge(src proto.Message) { + xxx_messageInfo_MaskCoords.Merge(dst, src) } -func (m *TLMessageActionChannelMigrateFrom) XXX_Size() int { - return xxx_messageInfo_TLMessageActionChannelMigrateFrom.Size(m) +func (m *MaskCoords) XXX_Size() int { + return xxx_messageInfo_MaskCoords.Size(m) } -func (m *TLMessageActionChannelMigrateFrom) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionChannelMigrateFrom.DiscardUnknown(m) +func (m *MaskCoords) XXX_DiscardUnknown() { + xxx_messageInfo_MaskCoords.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionChannelMigrateFrom proto.InternalMessageInfo +var xxx_messageInfo_MaskCoords proto.InternalMessageInfo -func (m *TLMessageActionChannelMigrateFrom) GetData2() *MessageAction_Data { +func (m *MaskCoords) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *MaskCoords) GetData2() *MaskCoords_Data { if m != nil { return m.Data2 } return nil } -// messageActionPinMessage#94bd38ed = MessageAction; -type TLMessageActionPinMessage struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords; +type TLMaskCoords struct { + Data2 *MaskCoords_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionPinMessage) Reset() { *m = TLMessageActionPinMessage{} } -func (m *TLMessageActionPinMessage) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionPinMessage) ProtoMessage() {} -func (*TLMessageActionPinMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{556} +func (m *TLMaskCoords) Reset() { *m = TLMaskCoords{} } +func (m *TLMaskCoords) String() string { return proto.CompactTextString(m) } +func (*TLMaskCoords) ProtoMessage() {} +func (*TLMaskCoords) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{512} } -func (m *TLMessageActionPinMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionPinMessage.Unmarshal(m, b) +func (m *TLMaskCoords) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMaskCoords.Unmarshal(m, b) } -func (m *TLMessageActionPinMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionPinMessage.Marshal(b, m, deterministic) +func (m *TLMaskCoords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMaskCoords.Marshal(b, m, deterministic) } -func (dst *TLMessageActionPinMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionPinMessage.Merge(dst, src) +func (dst *TLMaskCoords) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMaskCoords.Merge(dst, src) } -func (m *TLMessageActionPinMessage) XXX_Size() int { - return xxx_messageInfo_TLMessageActionPinMessage.Size(m) +func (m *TLMaskCoords) XXX_Size() int { + return xxx_messageInfo_TLMaskCoords.Size(m) } -func (m *TLMessageActionPinMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionPinMessage.DiscardUnknown(m) +func (m *TLMaskCoords) XXX_DiscardUnknown() { + xxx_messageInfo_TLMaskCoords.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionPinMessage proto.InternalMessageInfo +var xxx_messageInfo_TLMaskCoords proto.InternalMessageInfo -func (m *TLMessageActionPinMessage) GetData2() *MessageAction_Data { +func (m *TLMaskCoords) GetData2() *MaskCoords_Data { if m != nil { return m.Data2 } return nil } -// messageActionHistoryClear#9fbab604 = MessageAction; -type TLMessageActionHistoryClear struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// ChannelBannedRights <-- +// + TL_channelBannedRights +// +type ChannelBannedRights_Data struct { + ViewMessages bool `protobuf:"varint,1,opt,name=view_messages,json=viewMessages,proto3" json:"view_messages,omitempty"` + SendMessages bool `protobuf:"varint,2,opt,name=send_messages,json=sendMessages,proto3" json:"send_messages,omitempty"` + SendMedia bool `protobuf:"varint,3,opt,name=send_media,json=sendMedia,proto3" json:"send_media,omitempty"` + SendStickers bool `protobuf:"varint,4,opt,name=send_stickers,json=sendStickers,proto3" json:"send_stickers,omitempty"` + SendGifs bool `protobuf:"varint,5,opt,name=send_gifs,json=sendGifs,proto3" json:"send_gifs,omitempty"` + SendGames bool `protobuf:"varint,6,opt,name=send_games,json=sendGames,proto3" json:"send_games,omitempty"` + SendInline bool `protobuf:"varint,7,opt,name=send_inline,json=sendInline,proto3" json:"send_inline,omitempty"` + EmbedLinks bool `protobuf:"varint,8,opt,name=embed_links,json=embedLinks,proto3" json:"embed_links,omitempty"` + UntilDate int32 `protobuf:"varint,9,opt,name=until_date,json=untilDate,proto3" json:"until_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionHistoryClear) Reset() { *m = TLMessageActionHistoryClear{} } -func (m *TLMessageActionHistoryClear) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionHistoryClear) ProtoMessage() {} -func (*TLMessageActionHistoryClear) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{557} +func (m *ChannelBannedRights_Data) Reset() { *m = ChannelBannedRights_Data{} } +func (m *ChannelBannedRights_Data) String() string { return proto.CompactTextString(m) } +func (*ChannelBannedRights_Data) ProtoMessage() {} +func (*ChannelBannedRights_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{513} } -func (m *TLMessageActionHistoryClear) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionHistoryClear.Unmarshal(m, b) +func (m *ChannelBannedRights_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelBannedRights_Data.Unmarshal(m, b) } -func (m *TLMessageActionHistoryClear) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionHistoryClear.Marshal(b, m, deterministic) +func (m *ChannelBannedRights_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelBannedRights_Data.Marshal(b, m, deterministic) } -func (dst *TLMessageActionHistoryClear) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionHistoryClear.Merge(dst, src) +func (dst *ChannelBannedRights_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelBannedRights_Data.Merge(dst, src) } -func (m *TLMessageActionHistoryClear) XXX_Size() int { - return xxx_messageInfo_TLMessageActionHistoryClear.Size(m) +func (m *ChannelBannedRights_Data) XXX_Size() int { + return xxx_messageInfo_ChannelBannedRights_Data.Size(m) } -func (m *TLMessageActionHistoryClear) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionHistoryClear.DiscardUnknown(m) +func (m *ChannelBannedRights_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelBannedRights_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionHistoryClear proto.InternalMessageInfo +var xxx_messageInfo_ChannelBannedRights_Data proto.InternalMessageInfo -func (m *TLMessageActionHistoryClear) GetData2() *MessageAction_Data { +func (m *ChannelBannedRights_Data) GetViewMessages() bool { if m != nil { - return m.Data2 + return m.ViewMessages } - return nil + return false } -// messageActionGameScore#92a72876 game_id:long score:int = MessageAction; -type TLMessageActionGameScore struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelBannedRights_Data) GetSendMessages() bool { + if m != nil { + return m.SendMessages + } + return false } -func (m *TLMessageActionGameScore) Reset() { *m = TLMessageActionGameScore{} } -func (m *TLMessageActionGameScore) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionGameScore) ProtoMessage() {} -func (*TLMessageActionGameScore) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{558} -} -func (m *TLMessageActionGameScore) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionGameScore.Unmarshal(m, b) +func (m *ChannelBannedRights_Data) GetSendMedia() bool { + if m != nil { + return m.SendMedia + } + return false } -func (m *TLMessageActionGameScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionGameScore.Marshal(b, m, deterministic) + +func (m *ChannelBannedRights_Data) GetSendStickers() bool { + if m != nil { + return m.SendStickers + } + return false } -func (dst *TLMessageActionGameScore) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionGameScore.Merge(dst, src) + +func (m *ChannelBannedRights_Data) GetSendGifs() bool { + if m != nil { + return m.SendGifs + } + return false } -func (m *TLMessageActionGameScore) XXX_Size() int { - return xxx_messageInfo_TLMessageActionGameScore.Size(m) + +func (m *ChannelBannedRights_Data) GetSendGames() bool { + if m != nil { + return m.SendGames + } + return false } -func (m *TLMessageActionGameScore) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionGameScore.DiscardUnknown(m) + +func (m *ChannelBannedRights_Data) GetSendInline() bool { + if m != nil { + return m.SendInline + } + return false } -var xxx_messageInfo_TLMessageActionGameScore proto.InternalMessageInfo +func (m *ChannelBannedRights_Data) GetEmbedLinks() bool { + if m != nil { + return m.EmbedLinks + } + return false +} -func (m *TLMessageActionGameScore) GetData2() *MessageAction_Data { +func (m *ChannelBannedRights_Data) GetUntilDate() int32 { if m != nil { - return m.Data2 + return m.UntilDate } - return nil + return 0 } -// messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; -type TLMessageActionPaymentSentMe struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelBannedRights struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChannelBannedRights_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionPaymentSentMe) Reset() { *m = TLMessageActionPaymentSentMe{} } -func (m *TLMessageActionPaymentSentMe) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionPaymentSentMe) ProtoMessage() {} -func (*TLMessageActionPaymentSentMe) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{559} +func (m *ChannelBannedRights) Reset() { *m = ChannelBannedRights{} } +func (m *ChannelBannedRights) String() string { return proto.CompactTextString(m) } +func (*ChannelBannedRights) ProtoMessage() {} +func (*ChannelBannedRights) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{514} } -func (m *TLMessageActionPaymentSentMe) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionPaymentSentMe.Unmarshal(m, b) +func (m *ChannelBannedRights) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelBannedRights.Unmarshal(m, b) } -func (m *TLMessageActionPaymentSentMe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionPaymentSentMe.Marshal(b, m, deterministic) +func (m *ChannelBannedRights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelBannedRights.Marshal(b, m, deterministic) } -func (dst *TLMessageActionPaymentSentMe) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionPaymentSentMe.Merge(dst, src) +func (dst *ChannelBannedRights) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelBannedRights.Merge(dst, src) } -func (m *TLMessageActionPaymentSentMe) XXX_Size() int { - return xxx_messageInfo_TLMessageActionPaymentSentMe.Size(m) +func (m *ChannelBannedRights) XXX_Size() int { + return xxx_messageInfo_ChannelBannedRights.Size(m) } -func (m *TLMessageActionPaymentSentMe) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionPaymentSentMe.DiscardUnknown(m) +func (m *ChannelBannedRights) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelBannedRights.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionPaymentSentMe proto.InternalMessageInfo +var xxx_messageInfo_ChannelBannedRights proto.InternalMessageInfo -func (m *TLMessageActionPaymentSentMe) GetData2() *MessageAction_Data { +func (m *ChannelBannedRights) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *ChannelBannedRights) GetData2() *ChannelBannedRights_Data { if m != nil { return m.Data2 } return nil } -// messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; -type TLMessageActionPaymentSent struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelBannedRights#58cf4249 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true until_date:int = ChannelBannedRights; +type TLChannelBannedRights struct { + Data2 *ChannelBannedRights_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionPaymentSent) Reset() { *m = TLMessageActionPaymentSent{} } -func (m *TLMessageActionPaymentSent) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionPaymentSent) ProtoMessage() {} -func (*TLMessageActionPaymentSent) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{560} +func (m *TLChannelBannedRights) Reset() { *m = TLChannelBannedRights{} } +func (m *TLChannelBannedRights) String() string { return proto.CompactTextString(m) } +func (*TLChannelBannedRights) ProtoMessage() {} +func (*TLChannelBannedRights) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{515} } -func (m *TLMessageActionPaymentSent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionPaymentSent.Unmarshal(m, b) +func (m *TLChannelBannedRights) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelBannedRights.Unmarshal(m, b) } -func (m *TLMessageActionPaymentSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionPaymentSent.Marshal(b, m, deterministic) +func (m *TLChannelBannedRights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelBannedRights.Marshal(b, m, deterministic) } -func (dst *TLMessageActionPaymentSent) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionPaymentSent.Merge(dst, src) +func (dst *TLChannelBannedRights) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelBannedRights.Merge(dst, src) } -func (m *TLMessageActionPaymentSent) XXX_Size() int { - return xxx_messageInfo_TLMessageActionPaymentSent.Size(m) +func (m *TLChannelBannedRights) XXX_Size() int { + return xxx_messageInfo_TLChannelBannedRights.Size(m) } -func (m *TLMessageActionPaymentSent) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionPaymentSent.DiscardUnknown(m) +func (m *TLChannelBannedRights) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelBannedRights.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionPaymentSent proto.InternalMessageInfo +var xxx_messageInfo_TLChannelBannedRights proto.InternalMessageInfo -func (m *TLMessageActionPaymentSent) GetData2() *MessageAction_Data { +func (m *TLChannelBannedRights) GetData2() *ChannelBannedRights_Data { if m != nil { return m.Data2 } return nil } -// messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction; -type TLMessageActionPhoneCall struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// contacts_Link <-- +// + TL_contacts_link +// +type Contacts_Link_Data struct { + MyLink *ContactLink `protobuf:"bytes,1,opt,name=my_link,json=myLink,proto3" json:"my_link,omitempty"` + ForeignLink *ContactLink `protobuf:"bytes,2,opt,name=foreign_link,json=foreignLink,proto3" json:"foreign_link,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionPhoneCall) Reset() { *m = TLMessageActionPhoneCall{} } -func (m *TLMessageActionPhoneCall) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionPhoneCall) ProtoMessage() {} -func (*TLMessageActionPhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{561} +func (m *Contacts_Link_Data) Reset() { *m = Contacts_Link_Data{} } +func (m *Contacts_Link_Data) String() string { return proto.CompactTextString(m) } +func (*Contacts_Link_Data) ProtoMessage() {} +func (*Contacts_Link_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{516} } -func (m *TLMessageActionPhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionPhoneCall.Unmarshal(m, b) +func (m *Contacts_Link_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_Link_Data.Unmarshal(m, b) } -func (m *TLMessageActionPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionPhoneCall.Marshal(b, m, deterministic) +func (m *Contacts_Link_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_Link_Data.Marshal(b, m, deterministic) } -func (dst *TLMessageActionPhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionPhoneCall.Merge(dst, src) +func (dst *Contacts_Link_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_Link_Data.Merge(dst, src) } -func (m *TLMessageActionPhoneCall) XXX_Size() int { - return xxx_messageInfo_TLMessageActionPhoneCall.Size(m) +func (m *Contacts_Link_Data) XXX_Size() int { + return xxx_messageInfo_Contacts_Link_Data.Size(m) } -func (m *TLMessageActionPhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionPhoneCall.DiscardUnknown(m) +func (m *Contacts_Link_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_Link_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionPhoneCall proto.InternalMessageInfo +var xxx_messageInfo_Contacts_Link_Data proto.InternalMessageInfo -func (m *TLMessageActionPhoneCall) GetData2() *MessageAction_Data { +func (m *Contacts_Link_Data) GetMyLink() *ContactLink { if m != nil { - return m.Data2 + return m.MyLink } return nil } -// messageActionScreenshotTaken#4792929b = MessageAction; -type TLMessageActionScreenshotTaken struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLMessageActionScreenshotTaken) Reset() { *m = TLMessageActionScreenshotTaken{} } -func (m *TLMessageActionScreenshotTaken) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionScreenshotTaken) ProtoMessage() {} -func (*TLMessageActionScreenshotTaken) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{562} -} -func (m *TLMessageActionScreenshotTaken) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionScreenshotTaken.Unmarshal(m, b) -} -func (m *TLMessageActionScreenshotTaken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionScreenshotTaken.Marshal(b, m, deterministic) -} -func (dst *TLMessageActionScreenshotTaken) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionScreenshotTaken.Merge(dst, src) -} -func (m *TLMessageActionScreenshotTaken) XXX_Size() int { - return xxx_messageInfo_TLMessageActionScreenshotTaken.Size(m) -} -func (m *TLMessageActionScreenshotTaken) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionScreenshotTaken.DiscardUnknown(m) +func (m *Contacts_Link_Data) GetForeignLink() *ContactLink { + if m != nil { + return m.ForeignLink + } + return nil } -var xxx_messageInfo_TLMessageActionScreenshotTaken proto.InternalMessageInfo - -func (m *TLMessageActionScreenshotTaken) GetData2() *MessageAction_Data { +func (m *Contacts_Link_Data) GetUser() *User { if m != nil { - return m.Data2 + return m.User } return nil } -// messageActionCustomAction#fae69f56 message:string = MessageAction; -type TLMessageActionCustomAction struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +type Contacts_Link struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Contacts_Link_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionCustomAction) Reset() { *m = TLMessageActionCustomAction{} } -func (m *TLMessageActionCustomAction) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionCustomAction) ProtoMessage() {} -func (*TLMessageActionCustomAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{563} +func (m *Contacts_Link) Reset() { *m = Contacts_Link{} } +func (m *Contacts_Link) String() string { return proto.CompactTextString(m) } +func (*Contacts_Link) ProtoMessage() {} +func (*Contacts_Link) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{517} } -func (m *TLMessageActionCustomAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionCustomAction.Unmarshal(m, b) +func (m *Contacts_Link) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_Link.Unmarshal(m, b) } -func (m *TLMessageActionCustomAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionCustomAction.Marshal(b, m, deterministic) +func (m *Contacts_Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_Link.Marshal(b, m, deterministic) } -func (dst *TLMessageActionCustomAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionCustomAction.Merge(dst, src) +func (dst *Contacts_Link) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_Link.Merge(dst, src) } -func (m *TLMessageActionCustomAction) XXX_Size() int { - return xxx_messageInfo_TLMessageActionCustomAction.Size(m) +func (m *Contacts_Link) XXX_Size() int { + return xxx_messageInfo_Contacts_Link.Size(m) } -func (m *TLMessageActionCustomAction) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionCustomAction.DiscardUnknown(m) +func (m *Contacts_Link) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_Link.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionCustomAction proto.InternalMessageInfo +var xxx_messageInfo_Contacts_Link proto.InternalMessageInfo -func (m *TLMessageActionCustomAction) GetData2() *MessageAction_Data { +func (m *Contacts_Link) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Contacts_Link) GetData2() *Contacts_Link_Data { if m != nil { return m.Data2 } return nil } -// messageActionBotAllowed#abe9affe domain:string = MessageAction; -type TLMessageActionBotAllowed struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// contacts.link#3ace484c my_link:ContactLink foreign_link:ContactLink user:User = contacts.Link; +type TLContactsLink struct { + Data2 *Contacts_Link_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionBotAllowed) Reset() { *m = TLMessageActionBotAllowed{} } -func (m *TLMessageActionBotAllowed) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionBotAllowed) ProtoMessage() {} -func (*TLMessageActionBotAllowed) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{564} +func (m *TLContactsLink) Reset() { *m = TLContactsLink{} } +func (m *TLContactsLink) String() string { return proto.CompactTextString(m) } +func (*TLContactsLink) ProtoMessage() {} +func (*TLContactsLink) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{518} } -func (m *TLMessageActionBotAllowed) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionBotAllowed.Unmarshal(m, b) +func (m *TLContactsLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsLink.Unmarshal(m, b) } -func (m *TLMessageActionBotAllowed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionBotAllowed.Marshal(b, m, deterministic) +func (m *TLContactsLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsLink.Marshal(b, m, deterministic) } -func (dst *TLMessageActionBotAllowed) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionBotAllowed.Merge(dst, src) +func (dst *TLContactsLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsLink.Merge(dst, src) } -func (m *TLMessageActionBotAllowed) XXX_Size() int { - return xxx_messageInfo_TLMessageActionBotAllowed.Size(m) +func (m *TLContactsLink) XXX_Size() int { + return xxx_messageInfo_TLContactsLink.Size(m) } -func (m *TLMessageActionBotAllowed) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionBotAllowed.DiscardUnknown(m) +func (m *TLContactsLink) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsLink.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionBotAllowed proto.InternalMessageInfo +var xxx_messageInfo_TLContactsLink proto.InternalMessageInfo -func (m *TLMessageActionBotAllowed) GetData2() *MessageAction_Data { +func (m *TLContactsLink) GetData2() *Contacts_Link_Data { if m != nil { return m.Data2 } return nil } -// messageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction; -type TLMessageActionSecureValuesSentMe struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// PrivacyRule <-- +// + TL_privacyValueAllowContacts +// + TL_privacyValueAllowAll +// + TL_privacyValueAllowUsers +// + TL_privacyValueDisallowContacts +// + TL_privacyValueDisallowAll +// + TL_privacyValueDisallowUsers +// +type PrivacyRule_Data struct { + Users []int32 `protobuf:"varint,1,rep,packed,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionSecureValuesSentMe) Reset() { *m = TLMessageActionSecureValuesSentMe{} } -func (m *TLMessageActionSecureValuesSentMe) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionSecureValuesSentMe) ProtoMessage() {} -func (*TLMessageActionSecureValuesSentMe) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{565} +func (m *PrivacyRule_Data) Reset() { *m = PrivacyRule_Data{} } +func (m *PrivacyRule_Data) String() string { return proto.CompactTextString(m) } +func (*PrivacyRule_Data) ProtoMessage() {} +func (*PrivacyRule_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{519} } -func (m *TLMessageActionSecureValuesSentMe) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionSecureValuesSentMe.Unmarshal(m, b) +func (m *PrivacyRule_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PrivacyRule_Data.Unmarshal(m, b) } -func (m *TLMessageActionSecureValuesSentMe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionSecureValuesSentMe.Marshal(b, m, deterministic) +func (m *PrivacyRule_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PrivacyRule_Data.Marshal(b, m, deterministic) } -func (dst *TLMessageActionSecureValuesSentMe) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionSecureValuesSentMe.Merge(dst, src) +func (dst *PrivacyRule_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrivacyRule_Data.Merge(dst, src) } -func (m *TLMessageActionSecureValuesSentMe) XXX_Size() int { - return xxx_messageInfo_TLMessageActionSecureValuesSentMe.Size(m) +func (m *PrivacyRule_Data) XXX_Size() int { + return xxx_messageInfo_PrivacyRule_Data.Size(m) } -func (m *TLMessageActionSecureValuesSentMe) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionSecureValuesSentMe.DiscardUnknown(m) +func (m *PrivacyRule_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PrivacyRule_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionSecureValuesSentMe proto.InternalMessageInfo +var xxx_messageInfo_PrivacyRule_Data proto.InternalMessageInfo -func (m *TLMessageActionSecureValuesSentMe) GetData2() *MessageAction_Data { +func (m *PrivacyRule_Data) GetUsers() []int32 { if m != nil { - return m.Data2 + return m.Users } return nil } -// messageActionSecureValuesSent#d95c6154 types:Vector = MessageAction; -type TLMessageActionSecureValuesSent struct { - Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PrivacyRule struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageActionSecureValuesSent) Reset() { *m = TLMessageActionSecureValuesSent{} } -func (m *TLMessageActionSecureValuesSent) String() string { return proto.CompactTextString(m) } -func (*TLMessageActionSecureValuesSent) ProtoMessage() {} -func (*TLMessageActionSecureValuesSent) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{566} +func (m *PrivacyRule) Reset() { *m = PrivacyRule{} } +func (m *PrivacyRule) String() string { return proto.CompactTextString(m) } +func (*PrivacyRule) ProtoMessage() {} +func (*PrivacyRule) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{520} } -func (m *TLMessageActionSecureValuesSent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageActionSecureValuesSent.Unmarshal(m, b) +func (m *PrivacyRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PrivacyRule.Unmarshal(m, b) } -func (m *TLMessageActionSecureValuesSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageActionSecureValuesSent.Marshal(b, m, deterministic) +func (m *PrivacyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PrivacyRule.Marshal(b, m, deterministic) } -func (dst *TLMessageActionSecureValuesSent) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageActionSecureValuesSent.Merge(dst, src) +func (dst *PrivacyRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrivacyRule.Merge(dst, src) } -func (m *TLMessageActionSecureValuesSent) XXX_Size() int { - return xxx_messageInfo_TLMessageActionSecureValuesSent.Size(m) +func (m *PrivacyRule) XXX_Size() int { + return xxx_messageInfo_PrivacyRule.Size(m) } -func (m *TLMessageActionSecureValuesSent) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageActionSecureValuesSent.DiscardUnknown(m) +func (m *PrivacyRule) XXX_DiscardUnknown() { + xxx_messageInfo_PrivacyRule.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageActionSecureValuesSent proto.InternalMessageInfo +var xxx_messageInfo_PrivacyRule proto.InternalMessageInfo -func (m *TLMessageActionSecureValuesSent) GetData2() *MessageAction_Data { +func (m *PrivacyRule) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *PrivacyRule) GetData2() *PrivacyRule_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// updates_Difference <-- -// + TL_updates_differenceEmpty -// + TL_updates_difference -// + TL_updates_differenceSlice -// + TL_updates_differenceTooLong -// -type Updates_Difference_Data struct { - Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` - Seq int32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` - NewMessages []*Message `protobuf:"bytes,3,rep,name=new_messages,json=newMessages,proto3" json:"new_messages,omitempty"` - NewEncryptedMessages []*EncryptedMessage `protobuf:"bytes,4,rep,name=new_encrypted_messages,json=newEncryptedMessages,proto3" json:"new_encrypted_messages,omitempty"` - OtherUpdates []*Update `protobuf:"bytes,5,rep,name=other_updates,json=otherUpdates,proto3" json:"other_updates,omitempty"` - Chats []*Chat `protobuf:"bytes,6,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,7,rep,name=users,proto3" json:"users,omitempty"` - State *Updates_State `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"` - IntermediateState *Updates_State `protobuf:"bytes,9,opt,name=intermediate_state,json=intermediateState,proto3" json:"intermediate_state,omitempty"` - Pts int32 `protobuf:"varint,10,opt,name=pts,proto3" json:"pts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// privacyValueAllowContacts#fffe1bac = PrivacyRule; +type TLPrivacyValueAllowContacts struct { + Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Updates_Difference_Data) Reset() { *m = Updates_Difference_Data{} } -func (m *Updates_Difference_Data) String() string { return proto.CompactTextString(m) } -func (*Updates_Difference_Data) ProtoMessage() {} -func (*Updates_Difference_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{567} +func (m *TLPrivacyValueAllowContacts) Reset() { *m = TLPrivacyValueAllowContacts{} } +func (m *TLPrivacyValueAllowContacts) String() string { return proto.CompactTextString(m) } +func (*TLPrivacyValueAllowContacts) ProtoMessage() {} +func (*TLPrivacyValueAllowContacts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{521} } -func (m *Updates_Difference_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Updates_Difference_Data.Unmarshal(m, b) +func (m *TLPrivacyValueAllowContacts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPrivacyValueAllowContacts.Unmarshal(m, b) } -func (m *Updates_Difference_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Updates_Difference_Data.Marshal(b, m, deterministic) +func (m *TLPrivacyValueAllowContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPrivacyValueAllowContacts.Marshal(b, m, deterministic) } -func (dst *Updates_Difference_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Updates_Difference_Data.Merge(dst, src) +func (dst *TLPrivacyValueAllowContacts) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPrivacyValueAllowContacts.Merge(dst, src) } -func (m *Updates_Difference_Data) XXX_Size() int { - return xxx_messageInfo_Updates_Difference_Data.Size(m) +func (m *TLPrivacyValueAllowContacts) XXX_Size() int { + return xxx_messageInfo_TLPrivacyValueAllowContacts.Size(m) } -func (m *Updates_Difference_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Updates_Difference_Data.DiscardUnknown(m) +func (m *TLPrivacyValueAllowContacts) XXX_DiscardUnknown() { + xxx_messageInfo_TLPrivacyValueAllowContacts.DiscardUnknown(m) } -var xxx_messageInfo_Updates_Difference_Data proto.InternalMessageInfo +var xxx_messageInfo_TLPrivacyValueAllowContacts proto.InternalMessageInfo -func (m *Updates_Difference_Data) GetDate() int32 { +func (m *TLPrivacyValueAllowContacts) GetData2() *PrivacyRule_Data { if m != nil { - return m.Date + return m.Data2 } - return 0 + return nil } -func (m *Updates_Difference_Data) GetSeq() int32 { - if m != nil { - return m.Seq - } - return 0 +// privacyValueAllowAll#65427b82 = PrivacyRule; +type TLPrivacyValueAllowAll struct { + Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Updates_Difference_Data) GetNewMessages() []*Message { - if m != nil { - return m.NewMessages - } - return nil +func (m *TLPrivacyValueAllowAll) Reset() { *m = TLPrivacyValueAllowAll{} } +func (m *TLPrivacyValueAllowAll) String() string { return proto.CompactTextString(m) } +func (*TLPrivacyValueAllowAll) ProtoMessage() {} +func (*TLPrivacyValueAllowAll) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{522} } - -func (m *Updates_Difference_Data) GetNewEncryptedMessages() []*EncryptedMessage { - if m != nil { - return m.NewEncryptedMessages - } - return nil +func (m *TLPrivacyValueAllowAll) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPrivacyValueAllowAll.Unmarshal(m, b) } - -func (m *Updates_Difference_Data) GetOtherUpdates() []*Update { - if m != nil { - return m.OtherUpdates - } - return nil +func (m *TLPrivacyValueAllowAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPrivacyValueAllowAll.Marshal(b, m, deterministic) } - -func (m *Updates_Difference_Data) GetChats() []*Chat { - if m != nil { - return m.Chats - } - return nil +func (dst *TLPrivacyValueAllowAll) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPrivacyValueAllowAll.Merge(dst, src) } - -func (m *Updates_Difference_Data) GetUsers() []*User { - if m != nil { - return m.Users - } - return nil +func (m *TLPrivacyValueAllowAll) XXX_Size() int { + return xxx_messageInfo_TLPrivacyValueAllowAll.Size(m) } - -func (m *Updates_Difference_Data) GetState() *Updates_State { - if m != nil { - return m.State - } - return nil +func (m *TLPrivacyValueAllowAll) XXX_DiscardUnknown() { + xxx_messageInfo_TLPrivacyValueAllowAll.DiscardUnknown(m) } -func (m *Updates_Difference_Data) GetIntermediateState() *Updates_State { - if m != nil { - return m.IntermediateState - } - return nil -} +var xxx_messageInfo_TLPrivacyValueAllowAll proto.InternalMessageInfo -func (m *Updates_Difference_Data) GetPts() int32 { +func (m *TLPrivacyValueAllowAll) GetData2() *PrivacyRule_Data { if m != nil { - return m.Pts + return m.Data2 } - return 0 + return nil } -type Updates_Difference struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// privacyValueAllowUsers#4d5bbe0c users:Vector = PrivacyRule; +type TLPrivacyValueAllowUsers struct { + Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Updates_Difference) Reset() { *m = Updates_Difference{} } -func (m *Updates_Difference) String() string { return proto.CompactTextString(m) } -func (*Updates_Difference) ProtoMessage() {} -func (*Updates_Difference) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{568} +func (m *TLPrivacyValueAllowUsers) Reset() { *m = TLPrivacyValueAllowUsers{} } +func (m *TLPrivacyValueAllowUsers) String() string { return proto.CompactTextString(m) } +func (*TLPrivacyValueAllowUsers) ProtoMessage() {} +func (*TLPrivacyValueAllowUsers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{523} } -func (m *Updates_Difference) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Updates_Difference.Unmarshal(m, b) +func (m *TLPrivacyValueAllowUsers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPrivacyValueAllowUsers.Unmarshal(m, b) } -func (m *Updates_Difference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Updates_Difference.Marshal(b, m, deterministic) +func (m *TLPrivacyValueAllowUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPrivacyValueAllowUsers.Marshal(b, m, deterministic) } -func (dst *Updates_Difference) XXX_Merge(src proto.Message) { - xxx_messageInfo_Updates_Difference.Merge(dst, src) +func (dst *TLPrivacyValueAllowUsers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPrivacyValueAllowUsers.Merge(dst, src) } -func (m *Updates_Difference) XXX_Size() int { - return xxx_messageInfo_Updates_Difference.Size(m) +func (m *TLPrivacyValueAllowUsers) XXX_Size() int { + return xxx_messageInfo_TLPrivacyValueAllowUsers.Size(m) } -func (m *Updates_Difference) XXX_DiscardUnknown() { - xxx_messageInfo_Updates_Difference.DiscardUnknown(m) +func (m *TLPrivacyValueAllowUsers) XXX_DiscardUnknown() { + xxx_messageInfo_TLPrivacyValueAllowUsers.DiscardUnknown(m) } -var xxx_messageInfo_Updates_Difference proto.InternalMessageInfo - -func (m *Updates_Difference) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLPrivacyValueAllowUsers proto.InternalMessageInfo -func (m *Updates_Difference) GetData2() *Updates_Difference_Data { +func (m *TLPrivacyValueAllowUsers) GetData2() *PrivacyRule_Data { if m != nil { return m.Data2 } return nil } -// updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; -type TLUpdatesDifferenceEmpty struct { - Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// privacyValueDisallowContacts#f888fa1a = PrivacyRule; +type TLPrivacyValueDisallowContacts struct { + Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatesDifferenceEmpty) Reset() { *m = TLUpdatesDifferenceEmpty{} } -func (m *TLUpdatesDifferenceEmpty) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesDifferenceEmpty) ProtoMessage() {} -func (*TLUpdatesDifferenceEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{569} +func (m *TLPrivacyValueDisallowContacts) Reset() { *m = TLPrivacyValueDisallowContacts{} } +func (m *TLPrivacyValueDisallowContacts) String() string { return proto.CompactTextString(m) } +func (*TLPrivacyValueDisallowContacts) ProtoMessage() {} +func (*TLPrivacyValueDisallowContacts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{524} } -func (m *TLUpdatesDifferenceEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesDifferenceEmpty.Unmarshal(m, b) +func (m *TLPrivacyValueDisallowContacts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPrivacyValueDisallowContacts.Unmarshal(m, b) } -func (m *TLUpdatesDifferenceEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesDifferenceEmpty.Marshal(b, m, deterministic) +func (m *TLPrivacyValueDisallowContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPrivacyValueDisallowContacts.Marshal(b, m, deterministic) } -func (dst *TLUpdatesDifferenceEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesDifferenceEmpty.Merge(dst, src) +func (dst *TLPrivacyValueDisallowContacts) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPrivacyValueDisallowContacts.Merge(dst, src) } -func (m *TLUpdatesDifferenceEmpty) XXX_Size() int { - return xxx_messageInfo_TLUpdatesDifferenceEmpty.Size(m) +func (m *TLPrivacyValueDisallowContacts) XXX_Size() int { + return xxx_messageInfo_TLPrivacyValueDisallowContacts.Size(m) } -func (m *TLUpdatesDifferenceEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesDifferenceEmpty.DiscardUnknown(m) +func (m *TLPrivacyValueDisallowContacts) XXX_DiscardUnknown() { + xxx_messageInfo_TLPrivacyValueDisallowContacts.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatesDifferenceEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLPrivacyValueDisallowContacts proto.InternalMessageInfo -func (m *TLUpdatesDifferenceEmpty) GetData2() *Updates_Difference_Data { +func (m *TLPrivacyValueDisallowContacts) GetData2() *PrivacyRule_Data { if m != nil { return m.Data2 } return nil } -// updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; -type TLUpdatesDifference struct { - Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// privacyValueDisallowAll#8b73e763 = PrivacyRule; +type TLPrivacyValueDisallowAll struct { + Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatesDifference) Reset() { *m = TLUpdatesDifference{} } -func (m *TLUpdatesDifference) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesDifference) ProtoMessage() {} -func (*TLUpdatesDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{570} +func (m *TLPrivacyValueDisallowAll) Reset() { *m = TLPrivacyValueDisallowAll{} } +func (m *TLPrivacyValueDisallowAll) String() string { return proto.CompactTextString(m) } +func (*TLPrivacyValueDisallowAll) ProtoMessage() {} +func (*TLPrivacyValueDisallowAll) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{525} } -func (m *TLUpdatesDifference) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesDifference.Unmarshal(m, b) +func (m *TLPrivacyValueDisallowAll) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPrivacyValueDisallowAll.Unmarshal(m, b) } -func (m *TLUpdatesDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesDifference.Marshal(b, m, deterministic) +func (m *TLPrivacyValueDisallowAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPrivacyValueDisallowAll.Marshal(b, m, deterministic) } -func (dst *TLUpdatesDifference) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesDifference.Merge(dst, src) +func (dst *TLPrivacyValueDisallowAll) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPrivacyValueDisallowAll.Merge(dst, src) } -func (m *TLUpdatesDifference) XXX_Size() int { - return xxx_messageInfo_TLUpdatesDifference.Size(m) +func (m *TLPrivacyValueDisallowAll) XXX_Size() int { + return xxx_messageInfo_TLPrivacyValueDisallowAll.Size(m) } -func (m *TLUpdatesDifference) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesDifference.DiscardUnknown(m) +func (m *TLPrivacyValueDisallowAll) XXX_DiscardUnknown() { + xxx_messageInfo_TLPrivacyValueDisallowAll.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatesDifference proto.InternalMessageInfo +var xxx_messageInfo_TLPrivacyValueDisallowAll proto.InternalMessageInfo -func (m *TLUpdatesDifference) GetData2() *Updates_Difference_Data { +func (m *TLPrivacyValueDisallowAll) GetData2() *PrivacyRule_Data { if m != nil { return m.Data2 } return nil } -// updates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference; -type TLUpdatesDifferenceSlice struct { - Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// privacyValueDisallowUsers#c7f49b7 users:Vector = PrivacyRule; +type TLPrivacyValueDisallowUsers struct { + Data2 *PrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatesDifferenceSlice) Reset() { *m = TLUpdatesDifferenceSlice{} } -func (m *TLUpdatesDifferenceSlice) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesDifferenceSlice) ProtoMessage() {} -func (*TLUpdatesDifferenceSlice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{571} -} -func (m *TLUpdatesDifferenceSlice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesDifferenceSlice.Unmarshal(m, b) +func (m *TLPrivacyValueDisallowUsers) Reset() { *m = TLPrivacyValueDisallowUsers{} } +func (m *TLPrivacyValueDisallowUsers) String() string { return proto.CompactTextString(m) } +func (*TLPrivacyValueDisallowUsers) ProtoMessage() {} +func (*TLPrivacyValueDisallowUsers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{526} } -func (m *TLUpdatesDifferenceSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesDifferenceSlice.Marshal(b, m, deterministic) +func (m *TLPrivacyValueDisallowUsers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPrivacyValueDisallowUsers.Unmarshal(m, b) } -func (dst *TLUpdatesDifferenceSlice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesDifferenceSlice.Merge(dst, src) +func (m *TLPrivacyValueDisallowUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPrivacyValueDisallowUsers.Marshal(b, m, deterministic) } -func (m *TLUpdatesDifferenceSlice) XXX_Size() int { - return xxx_messageInfo_TLUpdatesDifferenceSlice.Size(m) +func (dst *TLPrivacyValueDisallowUsers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPrivacyValueDisallowUsers.Merge(dst, src) } -func (m *TLUpdatesDifferenceSlice) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesDifferenceSlice.DiscardUnknown(m) +func (m *TLPrivacyValueDisallowUsers) XXX_Size() int { + return xxx_messageInfo_TLPrivacyValueDisallowUsers.Size(m) +} +func (m *TLPrivacyValueDisallowUsers) XXX_DiscardUnknown() { + xxx_messageInfo_TLPrivacyValueDisallowUsers.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatesDifferenceSlice proto.InternalMessageInfo +var xxx_messageInfo_TLPrivacyValueDisallowUsers proto.InternalMessageInfo -func (m *TLUpdatesDifferenceSlice) GetData2() *Updates_Difference_Data { +func (m *TLPrivacyValueDisallowUsers) GetData2() *PrivacyRule_Data { if m != nil { return m.Data2 } return nil } -// updates.differenceTooLong#4afe8f6d pts:int = updates.Difference; -type TLUpdatesDifferenceTooLong struct { - Data2 *Updates_Difference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// BotInlineResult <-- +// + TL_botInlineResult +// + TL_botInlineMediaResult +// +type BotInlineResult_Data struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` + Thumb *WebDocument `protobuf:"bytes,6,opt,name=thumb,proto3" json:"thumb,omitempty"` + Content *WebDocument `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` + SendMessage *BotInlineMessage `protobuf:"bytes,8,opt,name=send_message,json=sendMessage,proto3" json:"send_message,omitempty"` + Photo *Photo `protobuf:"bytes,9,opt,name=photo,proto3" json:"photo,omitempty"` + Document *Document `protobuf:"bytes,10,opt,name=document,proto3" json:"document,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatesDifferenceTooLong) Reset() { *m = TLUpdatesDifferenceTooLong{} } -func (m *TLUpdatesDifferenceTooLong) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesDifferenceTooLong) ProtoMessage() {} -func (*TLUpdatesDifferenceTooLong) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{572} +func (m *BotInlineResult_Data) Reset() { *m = BotInlineResult_Data{} } +func (m *BotInlineResult_Data) String() string { return proto.CompactTextString(m) } +func (*BotInlineResult_Data) ProtoMessage() {} +func (*BotInlineResult_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{527} } -func (m *TLUpdatesDifferenceTooLong) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesDifferenceTooLong.Unmarshal(m, b) +func (m *BotInlineResult_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BotInlineResult_Data.Unmarshal(m, b) } -func (m *TLUpdatesDifferenceTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesDifferenceTooLong.Marshal(b, m, deterministic) +func (m *BotInlineResult_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BotInlineResult_Data.Marshal(b, m, deterministic) } -func (dst *TLUpdatesDifferenceTooLong) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesDifferenceTooLong.Merge(dst, src) +func (dst *BotInlineResult_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_BotInlineResult_Data.Merge(dst, src) } -func (m *TLUpdatesDifferenceTooLong) XXX_Size() int { - return xxx_messageInfo_TLUpdatesDifferenceTooLong.Size(m) +func (m *BotInlineResult_Data) XXX_Size() int { + return xxx_messageInfo_BotInlineResult_Data.Size(m) } -func (m *TLUpdatesDifferenceTooLong) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesDifferenceTooLong.DiscardUnknown(m) +func (m *BotInlineResult_Data) XXX_DiscardUnknown() { + xxx_messageInfo_BotInlineResult_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatesDifferenceTooLong proto.InternalMessageInfo +var xxx_messageInfo_BotInlineResult_Data proto.InternalMessageInfo -func (m *TLUpdatesDifferenceTooLong) GetData2() *Updates_Difference_Data { +func (m *BotInlineResult_Data) GetId() string { if m != nil { - return m.Data2 + return m.Id } - return nil + return "" } -// ///////////////////////////////////////////////////////////////////////////// -// MessageRange <-- -// + TL_messageRange -// -type MessageRange_Data struct { - MinId int32 `protobuf:"varint,1,opt,name=min_id,json=minId,proto3" json:"min_id,omitempty"` - MaxId int32 `protobuf:"varint,2,opt,name=max_id,json=maxId,proto3" json:"max_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *BotInlineResult_Data) GetType() string { + if m != nil { + return m.Type + } + return "" } -func (m *MessageRange_Data) Reset() { *m = MessageRange_Data{} } -func (m *MessageRange_Data) String() string { return proto.CompactTextString(m) } -func (*MessageRange_Data) ProtoMessage() {} -func (*MessageRange_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{573} -} -func (m *MessageRange_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageRange_Data.Unmarshal(m, b) +func (m *BotInlineResult_Data) GetTitle() string { + if m != nil { + return m.Title + } + return "" } -func (m *MessageRange_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageRange_Data.Marshal(b, m, deterministic) + +func (m *BotInlineResult_Data) GetDescription() string { + if m != nil { + return m.Description + } + return "" } -func (dst *MessageRange_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageRange_Data.Merge(dst, src) + +func (m *BotInlineResult_Data) GetUrl() string { + if m != nil { + return m.Url + } + return "" } -func (m *MessageRange_Data) XXX_Size() int { - return xxx_messageInfo_MessageRange_Data.Size(m) + +func (m *BotInlineResult_Data) GetThumb() *WebDocument { + if m != nil { + return m.Thumb + } + return nil } -func (m *MessageRange_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MessageRange_Data.DiscardUnknown(m) + +func (m *BotInlineResult_Data) GetContent() *WebDocument { + if m != nil { + return m.Content + } + return nil } -var xxx_messageInfo_MessageRange_Data proto.InternalMessageInfo +func (m *BotInlineResult_Data) GetSendMessage() *BotInlineMessage { + if m != nil { + return m.SendMessage + } + return nil +} -func (m *MessageRange_Data) GetMinId() int32 { +func (m *BotInlineResult_Data) GetPhoto() *Photo { if m != nil { - return m.MinId + return m.Photo } - return 0 + return nil } -func (m *MessageRange_Data) GetMaxId() int32 { +func (m *BotInlineResult_Data) GetDocument() *Document { if m != nil { - return m.MaxId + return m.Document } - return 0 + return nil } -type MessageRange struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MessageRange_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type BotInlineResult struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *BotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageRange) Reset() { *m = MessageRange{} } -func (m *MessageRange) String() string { return proto.CompactTextString(m) } -func (*MessageRange) ProtoMessage() {} -func (*MessageRange) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{574} +func (m *BotInlineResult) Reset() { *m = BotInlineResult{} } +func (m *BotInlineResult) String() string { return proto.CompactTextString(m) } +func (*BotInlineResult) ProtoMessage() {} +func (*BotInlineResult) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{528} } -func (m *MessageRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageRange.Unmarshal(m, b) +func (m *BotInlineResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BotInlineResult.Unmarshal(m, b) } -func (m *MessageRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageRange.Marshal(b, m, deterministic) +func (m *BotInlineResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BotInlineResult.Marshal(b, m, deterministic) } -func (dst *MessageRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageRange.Merge(dst, src) +func (dst *BotInlineResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_BotInlineResult.Merge(dst, src) } -func (m *MessageRange) XXX_Size() int { - return xxx_messageInfo_MessageRange.Size(m) +func (m *BotInlineResult) XXX_Size() int { + return xxx_messageInfo_BotInlineResult.Size(m) } -func (m *MessageRange) XXX_DiscardUnknown() { - xxx_messageInfo_MessageRange.DiscardUnknown(m) +func (m *BotInlineResult) XXX_DiscardUnknown() { + xxx_messageInfo_BotInlineResult.DiscardUnknown(m) } -var xxx_messageInfo_MessageRange proto.InternalMessageInfo +var xxx_messageInfo_BotInlineResult proto.InternalMessageInfo -func (m *MessageRange) GetConstructor() TLConstructor { +func (m *BotInlineResult) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MessageRange) GetData2() *MessageRange_Data { +func (m *BotInlineResult) GetData2() *BotInlineResult_Data { if m != nil { return m.Data2 } return nil } -// messageRange#ae30253 min_id:int max_id:int = MessageRange; -type TLMessageRange struct { - Data2 *MessageRange_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult; +type TLBotInlineResult struct { + Data2 *BotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageRange) Reset() { *m = TLMessageRange{} } -func (m *TLMessageRange) String() string { return proto.CompactTextString(m) } -func (*TLMessageRange) ProtoMessage() {} -func (*TLMessageRange) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{575} +func (m *TLBotInlineResult) Reset() { *m = TLBotInlineResult{} } +func (m *TLBotInlineResult) String() string { return proto.CompactTextString(m) } +func (*TLBotInlineResult) ProtoMessage() {} +func (*TLBotInlineResult) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{529} } -func (m *TLMessageRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageRange.Unmarshal(m, b) +func (m *TLBotInlineResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBotInlineResult.Unmarshal(m, b) } -func (m *TLMessageRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageRange.Marshal(b, m, deterministic) +func (m *TLBotInlineResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBotInlineResult.Marshal(b, m, deterministic) } -func (dst *TLMessageRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageRange.Merge(dst, src) +func (dst *TLBotInlineResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBotInlineResult.Merge(dst, src) } -func (m *TLMessageRange) XXX_Size() int { - return xxx_messageInfo_TLMessageRange.Size(m) +func (m *TLBotInlineResult) XXX_Size() int { + return xxx_messageInfo_TLBotInlineResult.Size(m) } -func (m *TLMessageRange) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageRange.DiscardUnknown(m) +func (m *TLBotInlineResult) XXX_DiscardUnknown() { + xxx_messageInfo_TLBotInlineResult.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageRange proto.InternalMessageInfo +var xxx_messageInfo_TLBotInlineResult proto.InternalMessageInfo -func (m *TLMessageRange) GetData2() *MessageRange_Data { +func (m *TLBotInlineResult) GetData2() *BotInlineResult_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult; +type TLBotInlineMediaResult struct { + Data2 *BotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLBotInlineMediaResult) Reset() { *m = TLBotInlineMediaResult{} } +func (m *TLBotInlineMediaResult) String() string { return proto.CompactTextString(m) } +func (*TLBotInlineMediaResult) ProtoMessage() {} +func (*TLBotInlineMediaResult) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{530} +} +func (m *TLBotInlineMediaResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBotInlineMediaResult.Unmarshal(m, b) +} +func (m *TLBotInlineMediaResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBotInlineMediaResult.Marshal(b, m, deterministic) +} +func (dst *TLBotInlineMediaResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBotInlineMediaResult.Merge(dst, src) +} +func (m *TLBotInlineMediaResult) XXX_Size() int { + return xxx_messageInfo_TLBotInlineMediaResult.Size(m) +} +func (m *TLBotInlineMediaResult) XXX_DiscardUnknown() { + xxx_messageInfo_TLBotInlineMediaResult.DiscardUnknown(m) +} + +var xxx_messageInfo_TLBotInlineMediaResult proto.InternalMessageInfo + +func (m *TLBotInlineMediaResult) GetData2() *BotInlineResult_Data { if m != nil { return m.Data2 } @@ -27565,1022 +26370,869 @@ func (m *TLMessageRange) GetData2() *MessageRange_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputWebFileLocation <-- -// + TL_inputWebFileLocation -// + TL_inputWebFileGeoPointLocation +// MessageMedia <-- +// + TL_messageMediaEmpty +// + TL_messageMediaPhoto +// + TL_messageMediaGeo +// + TL_messageMediaContact +// + TL_messageMediaUnsupported +// + TL_messageMediaDocument +// + TL_messageMediaWebPage +// + TL_messageMediaVenue +// + TL_messageMediaGame +// + TL_messageMediaInvoice +// + TL_messageMediaGeoLive // -type InputWebFileLocation_Data struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - GeoPoint *InputGeoPoint `protobuf:"bytes,3,opt,name=geo_point,json=geoPoint,proto3" json:"geo_point,omitempty"` - W int32 `protobuf:"varint,4,opt,name=w,proto3" json:"w,omitempty"` - H int32 `protobuf:"varint,5,opt,name=h,proto3" json:"h,omitempty"` - Zoom int32 `protobuf:"varint,6,opt,name=zoom,proto3" json:"zoom,omitempty"` - Scale int32 `protobuf:"varint,7,opt,name=scale,proto3" json:"scale,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MessageMedia_Data struct { + Photo_1 *Photo `protobuf:"bytes,1,opt,name=photo_1,json=photo1,proto3" json:"photo_1,omitempty"` + TtlSeconds int32 `protobuf:"varint,2,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` + Geo *GeoPoint `protobuf:"bytes,3,opt,name=geo,proto3" json:"geo,omitempty"` + PhoneNumber string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` + FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Vcard string `protobuf:"bytes,7,opt,name=vcard,proto3" json:"vcard,omitempty"` + UserId int32 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Document *Document `protobuf:"bytes,9,opt,name=document,proto3" json:"document,omitempty"` + Webpage *WebPage `protobuf:"bytes,10,opt,name=webpage,proto3" json:"webpage,omitempty"` + Title string `protobuf:"bytes,11,opt,name=title,proto3" json:"title,omitempty"` + Address string `protobuf:"bytes,12,opt,name=address,proto3" json:"address,omitempty"` + Provider string `protobuf:"bytes,13,opt,name=provider,proto3" json:"provider,omitempty"` + VenueId string `protobuf:"bytes,14,opt,name=venue_id,json=venueId,proto3" json:"venue_id,omitempty"` + VenueType string `protobuf:"bytes,15,opt,name=venue_type,json=venueType,proto3" json:"venue_type,omitempty"` + Game *Game `protobuf:"bytes,16,opt,name=game,proto3" json:"game,omitempty"` + ShippingAddressRequested bool `protobuf:"varint,17,opt,name=shipping_address_requested,json=shippingAddressRequested,proto3" json:"shipping_address_requested,omitempty"` + Test bool `protobuf:"varint,18,opt,name=test,proto3" json:"test,omitempty"` + Description string `protobuf:"bytes,19,opt,name=description,proto3" json:"description,omitempty"` + Photo_20 *WebDocument `protobuf:"bytes,20,opt,name=photo_20,json=photo20,proto3" json:"photo_20,omitempty"` + ReceiptMsgId int32 `protobuf:"varint,21,opt,name=receipt_msg_id,json=receiptMsgId,proto3" json:"receipt_msg_id,omitempty"` + Currency string `protobuf:"bytes,22,opt,name=currency,proto3" json:"currency,omitempty"` + TotalAmount int64 `protobuf:"varint,23,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` + StartParam string `protobuf:"bytes,24,opt,name=start_param,json=startParam,proto3" json:"start_param,omitempty"` + Period int32 `protobuf:"varint,25,opt,name=period,proto3" json:"period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputWebFileLocation_Data) Reset() { *m = InputWebFileLocation_Data{} } -func (m *InputWebFileLocation_Data) String() string { return proto.CompactTextString(m) } -func (*InputWebFileLocation_Data) ProtoMessage() {} -func (*InputWebFileLocation_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{576} +func (m *MessageMedia_Data) Reset() { *m = MessageMedia_Data{} } +func (m *MessageMedia_Data) String() string { return proto.CompactTextString(m) } +func (*MessageMedia_Data) ProtoMessage() {} +func (*MessageMedia_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{531} } -func (m *InputWebFileLocation_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputWebFileLocation_Data.Unmarshal(m, b) +func (m *MessageMedia_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageMedia_Data.Unmarshal(m, b) } -func (m *InputWebFileLocation_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputWebFileLocation_Data.Marshal(b, m, deterministic) +func (m *MessageMedia_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageMedia_Data.Marshal(b, m, deterministic) } -func (dst *InputWebFileLocation_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputWebFileLocation_Data.Merge(dst, src) +func (dst *MessageMedia_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageMedia_Data.Merge(dst, src) } -func (m *InputWebFileLocation_Data) XXX_Size() int { - return xxx_messageInfo_InputWebFileLocation_Data.Size(m) +func (m *MessageMedia_Data) XXX_Size() int { + return xxx_messageInfo_MessageMedia_Data.Size(m) } -func (m *InputWebFileLocation_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputWebFileLocation_Data.DiscardUnknown(m) +func (m *MessageMedia_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MessageMedia_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputWebFileLocation_Data proto.InternalMessageInfo +var xxx_messageInfo_MessageMedia_Data proto.InternalMessageInfo -func (m *InputWebFileLocation_Data) GetUrl() string { +func (m *MessageMedia_Data) GetPhoto_1() *Photo { if m != nil { - return m.Url + return m.Photo_1 } - return "" + return nil } -func (m *InputWebFileLocation_Data) GetAccessHash() int64 { +func (m *MessageMedia_Data) GetTtlSeconds() int32 { if m != nil { - return m.AccessHash + return m.TtlSeconds } return 0 } -func (m *InputWebFileLocation_Data) GetGeoPoint() *InputGeoPoint { +func (m *MessageMedia_Data) GetGeo() *GeoPoint { if m != nil { - return m.GeoPoint + return m.Geo } return nil } -func (m *InputWebFileLocation_Data) GetW() int32 { +func (m *MessageMedia_Data) GetPhoneNumber() string { if m != nil { - return m.W + return m.PhoneNumber } - return 0 + return "" } -func (m *InputWebFileLocation_Data) GetH() int32 { +func (m *MessageMedia_Data) GetFirstName() string { if m != nil { - return m.H + return m.FirstName } - return 0 + return "" } -func (m *InputWebFileLocation_Data) GetZoom() int32 { +func (m *MessageMedia_Data) GetLastName() string { if m != nil { - return m.Zoom + return m.LastName } - return 0 + return "" } -func (m *InputWebFileLocation_Data) GetScale() int32 { +func (m *MessageMedia_Data) GetVcard() string { if m != nil { - return m.Scale + return m.Vcard } - return 0 + return "" } -type InputWebFileLocation struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputWebFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MessageMedia_Data) GetUserId() int32 { + if m != nil { + return m.UserId + } + return 0 } -func (m *InputWebFileLocation) Reset() { *m = InputWebFileLocation{} } -func (m *InputWebFileLocation) String() string { return proto.CompactTextString(m) } -func (*InputWebFileLocation) ProtoMessage() {} -func (*InputWebFileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{577} -} -func (m *InputWebFileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputWebFileLocation.Unmarshal(m, b) +func (m *MessageMedia_Data) GetDocument() *Document { + if m != nil { + return m.Document + } + return nil } -func (m *InputWebFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputWebFileLocation.Marshal(b, m, deterministic) + +func (m *MessageMedia_Data) GetWebpage() *WebPage { + if m != nil { + return m.Webpage + } + return nil } -func (dst *InputWebFileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputWebFileLocation.Merge(dst, src) + +func (m *MessageMedia_Data) GetTitle() string { + if m != nil { + return m.Title + } + return "" } -func (m *InputWebFileLocation) XXX_Size() int { - return xxx_messageInfo_InputWebFileLocation.Size(m) + +func (m *MessageMedia_Data) GetAddress() string { + if m != nil { + return m.Address + } + return "" } -func (m *InputWebFileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_InputWebFileLocation.DiscardUnknown(m) + +func (m *MessageMedia_Data) GetProvider() string { + if m != nil { + return m.Provider + } + return "" } -var xxx_messageInfo_InputWebFileLocation proto.InternalMessageInfo +func (m *MessageMedia_Data) GetVenueId() string { + if m != nil { + return m.VenueId + } + return "" +} -func (m *InputWebFileLocation) GetConstructor() TLConstructor { +func (m *MessageMedia_Data) GetVenueType() string { if m != nil { - return m.Constructor + return m.VenueType } - return TLConstructor_CRC32_UNKNOWN + return "" } -func (m *InputWebFileLocation) GetData2() *InputWebFileLocation_Data { +func (m *MessageMedia_Data) GetGame() *Game { if m != nil { - return m.Data2 + return m.Game } return nil } -// inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation; -type TLInputWebFileLocation struct { - Data2 *InputWebFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MessageMedia_Data) GetShippingAddressRequested() bool { + if m != nil { + return m.ShippingAddressRequested + } + return false } -func (m *TLInputWebFileLocation) Reset() { *m = TLInputWebFileLocation{} } -func (m *TLInputWebFileLocation) String() string { return proto.CompactTextString(m) } -func (*TLInputWebFileLocation) ProtoMessage() {} -func (*TLInputWebFileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{578} -} -func (m *TLInputWebFileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputWebFileLocation.Unmarshal(m, b) -} -func (m *TLInputWebFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputWebFileLocation.Marshal(b, m, deterministic) -} -func (dst *TLInputWebFileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputWebFileLocation.Merge(dst, src) -} -func (m *TLInputWebFileLocation) XXX_Size() int { - return xxx_messageInfo_TLInputWebFileLocation.Size(m) -} -func (m *TLInputWebFileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputWebFileLocation.DiscardUnknown(m) +func (m *MessageMedia_Data) GetTest() bool { + if m != nil { + return m.Test + } + return false } -var xxx_messageInfo_TLInputWebFileLocation proto.InternalMessageInfo - -func (m *TLInputWebFileLocation) GetData2() *InputWebFileLocation_Data { +func (m *MessageMedia_Data) GetDescription() string { if m != nil { - return m.Data2 + return m.Description } - return nil -} - -// inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation; -type TLInputWebFileGeoPointLocation struct { - Data2 *InputWebFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputWebFileGeoPointLocation) Reset() { *m = TLInputWebFileGeoPointLocation{} } -func (m *TLInputWebFileGeoPointLocation) String() string { return proto.CompactTextString(m) } -func (*TLInputWebFileGeoPointLocation) ProtoMessage() {} -func (*TLInputWebFileGeoPointLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{579} -} -func (m *TLInputWebFileGeoPointLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputWebFileGeoPointLocation.Unmarshal(m, b) -} -func (m *TLInputWebFileGeoPointLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputWebFileGeoPointLocation.Marshal(b, m, deterministic) -} -func (dst *TLInputWebFileGeoPointLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputWebFileGeoPointLocation.Merge(dst, src) -} -func (m *TLInputWebFileGeoPointLocation) XXX_Size() int { - return xxx_messageInfo_TLInputWebFileGeoPointLocation.Size(m) -} -func (m *TLInputWebFileGeoPointLocation) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputWebFileGeoPointLocation.DiscardUnknown(m) + return "" } -var xxx_messageInfo_TLInputWebFileGeoPointLocation proto.InternalMessageInfo - -func (m *TLInputWebFileGeoPointLocation) GetData2() *InputWebFileLocation_Data { +func (m *MessageMedia_Data) GetPhoto_20() *WebDocument { if m != nil { - return m.Data2 + return m.Photo_20 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// payments_PaymentForm <-- -// + TL_payments_paymentForm -// -type Payments_PaymentForm_Data struct { - CanSaveCredentials bool `protobuf:"varint,1,opt,name=can_save_credentials,json=canSaveCredentials,proto3" json:"can_save_credentials,omitempty"` - PasswordMissing bool `protobuf:"varint,2,opt,name=password_missing,json=passwordMissing,proto3" json:"password_missing,omitempty"` - BotId int32 `protobuf:"varint,3,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"` - Invoice *Invoice `protobuf:"bytes,4,opt,name=invoice,proto3" json:"invoice,omitempty"` - ProviderId int32 `protobuf:"varint,5,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` - Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` - NativeProvider string `protobuf:"bytes,7,opt,name=native_provider,json=nativeProvider,proto3" json:"native_provider,omitempty"` - NativeParams *DataJSON `protobuf:"bytes,8,opt,name=native_params,json=nativeParams,proto3" json:"native_params,omitempty"` - SavedInfo *PaymentRequestedInfo `protobuf:"bytes,9,opt,name=saved_info,json=savedInfo,proto3" json:"saved_info,omitempty"` - SavedCredentials *PaymentSavedCredentials `protobuf:"bytes,10,opt,name=saved_credentials,json=savedCredentials,proto3" json:"saved_credentials,omitempty"` - Users []*User `protobuf:"bytes,11,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Payments_PaymentForm_Data) Reset() { *m = Payments_PaymentForm_Data{} } -func (m *Payments_PaymentForm_Data) String() string { return proto.CompactTextString(m) } -func (*Payments_PaymentForm_Data) ProtoMessage() {} -func (*Payments_PaymentForm_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{580} -} -func (m *Payments_PaymentForm_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_PaymentForm_Data.Unmarshal(m, b) -} -func (m *Payments_PaymentForm_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_PaymentForm_Data.Marshal(b, m, deterministic) -} -func (dst *Payments_PaymentForm_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_PaymentForm_Data.Merge(dst, src) -} -func (m *Payments_PaymentForm_Data) XXX_Size() int { - return xxx_messageInfo_Payments_PaymentForm_Data.Size(m) -} -func (m *Payments_PaymentForm_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_PaymentForm_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_Payments_PaymentForm_Data proto.InternalMessageInfo - -func (m *Payments_PaymentForm_Data) GetCanSaveCredentials() bool { - if m != nil { - return m.CanSaveCredentials - } - return false -} - -func (m *Payments_PaymentForm_Data) GetPasswordMissing() bool { - if m != nil { - return m.PasswordMissing - } - return false -} - -func (m *Payments_PaymentForm_Data) GetBotId() int32 { +func (m *MessageMedia_Data) GetReceiptMsgId() int32 { if m != nil { - return m.BotId + return m.ReceiptMsgId } return 0 } -func (m *Payments_PaymentForm_Data) GetInvoice() *Invoice { +func (m *MessageMedia_Data) GetCurrency() string { if m != nil { - return m.Invoice + return m.Currency } - return nil + return "" } -func (m *Payments_PaymentForm_Data) GetProviderId() int32 { +func (m *MessageMedia_Data) GetTotalAmount() int64 { if m != nil { - return m.ProviderId + return m.TotalAmount } return 0 } -func (m *Payments_PaymentForm_Data) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -func (m *Payments_PaymentForm_Data) GetNativeProvider() string { +func (m *MessageMedia_Data) GetStartParam() string { if m != nil { - return m.NativeProvider + return m.StartParam } return "" } -func (m *Payments_PaymentForm_Data) GetNativeParams() *DataJSON { - if m != nil { - return m.NativeParams - } - return nil -} - -func (m *Payments_PaymentForm_Data) GetSavedInfo() *PaymentRequestedInfo { - if m != nil { - return m.SavedInfo - } - return nil -} - -func (m *Payments_PaymentForm_Data) GetSavedCredentials() *PaymentSavedCredentials { - if m != nil { - return m.SavedCredentials - } - return nil -} - -func (m *Payments_PaymentForm_Data) GetUsers() []*User { +func (m *MessageMedia_Data) GetPeriod() int32 { if m != nil { - return m.Users + return m.Period } - return nil + return 0 } -type Payments_PaymentForm struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Payments_PaymentForm_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MessageMedia struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Payments_PaymentForm) Reset() { *m = Payments_PaymentForm{} } -func (m *Payments_PaymentForm) String() string { return proto.CompactTextString(m) } -func (*Payments_PaymentForm) ProtoMessage() {} -func (*Payments_PaymentForm) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{581} +func (m *MessageMedia) Reset() { *m = MessageMedia{} } +func (m *MessageMedia) String() string { return proto.CompactTextString(m) } +func (*MessageMedia) ProtoMessage() {} +func (*MessageMedia) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{532} } -func (m *Payments_PaymentForm) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_PaymentForm.Unmarshal(m, b) +func (m *MessageMedia) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageMedia.Unmarshal(m, b) } -func (m *Payments_PaymentForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_PaymentForm.Marshal(b, m, deterministic) +func (m *MessageMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageMedia.Marshal(b, m, deterministic) } -func (dst *Payments_PaymentForm) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_PaymentForm.Merge(dst, src) +func (dst *MessageMedia) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageMedia.Merge(dst, src) } -func (m *Payments_PaymentForm) XXX_Size() int { - return xxx_messageInfo_Payments_PaymentForm.Size(m) +func (m *MessageMedia) XXX_Size() int { + return xxx_messageInfo_MessageMedia.Size(m) } -func (m *Payments_PaymentForm) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_PaymentForm.DiscardUnknown(m) +func (m *MessageMedia) XXX_DiscardUnknown() { + xxx_messageInfo_MessageMedia.DiscardUnknown(m) } -var xxx_messageInfo_Payments_PaymentForm proto.InternalMessageInfo +var xxx_messageInfo_MessageMedia proto.InternalMessageInfo -func (m *Payments_PaymentForm) GetConstructor() TLConstructor { +func (m *MessageMedia) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Payments_PaymentForm) GetData2() *Payments_PaymentForm_Data { +func (m *MessageMedia) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; -type TLPaymentsPaymentForm struct { - Data2 *Payments_PaymentForm_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageMediaEmpty#3ded6320 = MessageMedia; +type TLMessageMediaEmpty struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPaymentsPaymentForm) Reset() { *m = TLPaymentsPaymentForm{} } -func (m *TLPaymentsPaymentForm) String() string { return proto.CompactTextString(m) } -func (*TLPaymentsPaymentForm) ProtoMessage() {} -func (*TLPaymentsPaymentForm) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{582} +func (m *TLMessageMediaEmpty) Reset() { *m = TLMessageMediaEmpty{} } +func (m *TLMessageMediaEmpty) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaEmpty) ProtoMessage() {} +func (*TLMessageMediaEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{533} } -func (m *TLPaymentsPaymentForm) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPaymentsPaymentForm.Unmarshal(m, b) +func (m *TLMessageMediaEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaEmpty.Unmarshal(m, b) } -func (m *TLPaymentsPaymentForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPaymentsPaymentForm.Marshal(b, m, deterministic) +func (m *TLMessageMediaEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaEmpty.Marshal(b, m, deterministic) } -func (dst *TLPaymentsPaymentForm) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPaymentsPaymentForm.Merge(dst, src) +func (dst *TLMessageMediaEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaEmpty.Merge(dst, src) } -func (m *TLPaymentsPaymentForm) XXX_Size() int { - return xxx_messageInfo_TLPaymentsPaymentForm.Size(m) +func (m *TLMessageMediaEmpty) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaEmpty.Size(m) } -func (m *TLPaymentsPaymentForm) XXX_DiscardUnknown() { - xxx_messageInfo_TLPaymentsPaymentForm.DiscardUnknown(m) +func (m *TLMessageMediaEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLPaymentsPaymentForm proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaEmpty proto.InternalMessageInfo -func (m *TLPaymentsPaymentForm) GetData2() *Payments_PaymentForm_Data { +func (m *TLMessageMediaEmpty) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// SecureValueType <-- -// + TL_secureValueTypePersonalDetails -// + TL_secureValueTypePassport -// + TL_secureValueTypeDriverLicense -// + TL_secureValueTypeIdentityCard -// + TL_secureValueTypeInternalPassport -// + TL_secureValueTypeAddress -// + TL_secureValueTypeUtilityBill -// + TL_secureValueTypeBankStatement -// + TL_secureValueTypeRentalAgreement -// + TL_secureValueTypePassportRegistration -// + TL_secureValueTypeTemporaryRegistration -// + TL_secureValueTypePhone -// + TL_secureValueTypeEmail -// -type SecureValueType_Data struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; +type TLMessageMediaPhoto struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureValueType_Data) Reset() { *m = SecureValueType_Data{} } -func (m *SecureValueType_Data) String() string { return proto.CompactTextString(m) } -func (*SecureValueType_Data) ProtoMessage() {} -func (*SecureValueType_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{583} +func (m *TLMessageMediaPhoto) Reset() { *m = TLMessageMediaPhoto{} } +func (m *TLMessageMediaPhoto) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaPhoto) ProtoMessage() {} +func (*TLMessageMediaPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{534} } -func (m *SecureValueType_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureValueType_Data.Unmarshal(m, b) +func (m *TLMessageMediaPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaPhoto.Unmarshal(m, b) } -func (m *SecureValueType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureValueType_Data.Marshal(b, m, deterministic) +func (m *TLMessageMediaPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaPhoto.Marshal(b, m, deterministic) } -func (dst *SecureValueType_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureValueType_Data.Merge(dst, src) +func (dst *TLMessageMediaPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaPhoto.Merge(dst, src) } -func (m *SecureValueType_Data) XXX_Size() int { - return xxx_messageInfo_SecureValueType_Data.Size(m) +func (m *TLMessageMediaPhoto) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaPhoto.Size(m) } -func (m *SecureValueType_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecureValueType_Data.DiscardUnknown(m) +func (m *TLMessageMediaPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaPhoto.DiscardUnknown(m) } -var xxx_messageInfo_SecureValueType_Data proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaPhoto proto.InternalMessageInfo -type SecureValueType struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *TLMessageMediaPhoto) GetData2() *MessageMedia_Data { + if m != nil { + return m.Data2 + } + return nil } -func (m *SecureValueType) Reset() { *m = SecureValueType{} } -func (m *SecureValueType) String() string { return proto.CompactTextString(m) } -func (*SecureValueType) ProtoMessage() {} -func (*SecureValueType) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{584} +// messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia; +type TLMessageMediaGeo struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureValueType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureValueType.Unmarshal(m, b) + +func (m *TLMessageMediaGeo) Reset() { *m = TLMessageMediaGeo{} } +func (m *TLMessageMediaGeo) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaGeo) ProtoMessage() {} +func (*TLMessageMediaGeo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{535} } -func (m *SecureValueType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureValueType.Marshal(b, m, deterministic) +func (m *TLMessageMediaGeo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaGeo.Unmarshal(m, b) } -func (dst *SecureValueType) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureValueType.Merge(dst, src) +func (m *TLMessageMediaGeo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaGeo.Marshal(b, m, deterministic) } -func (m *SecureValueType) XXX_Size() int { - return xxx_messageInfo_SecureValueType.Size(m) +func (dst *TLMessageMediaGeo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaGeo.Merge(dst, src) } -func (m *SecureValueType) XXX_DiscardUnknown() { - xxx_messageInfo_SecureValueType.DiscardUnknown(m) +func (m *TLMessageMediaGeo) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaGeo.Size(m) } - -var xxx_messageInfo_SecureValueType proto.InternalMessageInfo - -func (m *SecureValueType) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN +func (m *TLMessageMediaGeo) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaGeo.DiscardUnknown(m) } -func (m *SecureValueType) GetData2() *SecureValueType_Data { +var xxx_messageInfo_TLMessageMediaGeo proto.InternalMessageInfo + +func (m *TLMessageMediaGeo) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypePersonalDetails#9d2a81e3 = SecureValueType; -type TLSecureValueTypePersonalDetails struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia; +type TLMessageMediaContact struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypePersonalDetails) Reset() { *m = TLSecureValueTypePersonalDetails{} } -func (m *TLSecureValueTypePersonalDetails) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypePersonalDetails) ProtoMessage() {} -func (*TLSecureValueTypePersonalDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{585} +func (m *TLMessageMediaContact) Reset() { *m = TLMessageMediaContact{} } +func (m *TLMessageMediaContact) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaContact) ProtoMessage() {} +func (*TLMessageMediaContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{536} } -func (m *TLSecureValueTypePersonalDetails) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypePersonalDetails.Unmarshal(m, b) +func (m *TLMessageMediaContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaContact.Unmarshal(m, b) } -func (m *TLSecureValueTypePersonalDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypePersonalDetails.Marshal(b, m, deterministic) +func (m *TLMessageMediaContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaContact.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypePersonalDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypePersonalDetails.Merge(dst, src) +func (dst *TLMessageMediaContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaContact.Merge(dst, src) } -func (m *TLSecureValueTypePersonalDetails) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypePersonalDetails.Size(m) +func (m *TLMessageMediaContact) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaContact.Size(m) } -func (m *TLSecureValueTypePersonalDetails) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypePersonalDetails.DiscardUnknown(m) +func (m *TLMessageMediaContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaContact.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypePersonalDetails proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaContact proto.InternalMessageInfo -func (m *TLSecureValueTypePersonalDetails) GetData2() *SecureValueType_Data { +func (m *TLMessageMediaContact) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypePassport#3dac6a00 = SecureValueType; -type TLSecureValueTypePassport struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageMediaUnsupported#9f84f49e = MessageMedia; +type TLMessageMediaUnsupported struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypePassport) Reset() { *m = TLSecureValueTypePassport{} } -func (m *TLSecureValueTypePassport) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypePassport) ProtoMessage() {} -func (*TLSecureValueTypePassport) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{586} +func (m *TLMessageMediaUnsupported) Reset() { *m = TLMessageMediaUnsupported{} } +func (m *TLMessageMediaUnsupported) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaUnsupported) ProtoMessage() {} +func (*TLMessageMediaUnsupported) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{537} } -func (m *TLSecureValueTypePassport) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypePassport.Unmarshal(m, b) +func (m *TLMessageMediaUnsupported) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaUnsupported.Unmarshal(m, b) } -func (m *TLSecureValueTypePassport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypePassport.Marshal(b, m, deterministic) +func (m *TLMessageMediaUnsupported) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaUnsupported.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypePassport) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypePassport.Merge(dst, src) +func (dst *TLMessageMediaUnsupported) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaUnsupported.Merge(dst, src) } -func (m *TLSecureValueTypePassport) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypePassport.Size(m) +func (m *TLMessageMediaUnsupported) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaUnsupported.Size(m) } -func (m *TLSecureValueTypePassport) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypePassport.DiscardUnknown(m) +func (m *TLMessageMediaUnsupported) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaUnsupported.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypePassport proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaUnsupported proto.InternalMessageInfo -func (m *TLSecureValueTypePassport) GetData2() *SecureValueType_Data { +func (m *TLMessageMediaUnsupported) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypeDriverLicense#6e425c4 = SecureValueType; -type TLSecureValueTypeDriverLicense struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia; +type TLMessageMediaDocument struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypeDriverLicense) Reset() { *m = TLSecureValueTypeDriverLicense{} } -func (m *TLSecureValueTypeDriverLicense) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypeDriverLicense) ProtoMessage() {} -func (*TLSecureValueTypeDriverLicense) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{587} +func (m *TLMessageMediaDocument) Reset() { *m = TLMessageMediaDocument{} } +func (m *TLMessageMediaDocument) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaDocument) ProtoMessage() {} +func (*TLMessageMediaDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{538} } -func (m *TLSecureValueTypeDriverLicense) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypeDriverLicense.Unmarshal(m, b) +func (m *TLMessageMediaDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaDocument.Unmarshal(m, b) } -func (m *TLSecureValueTypeDriverLicense) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypeDriverLicense.Marshal(b, m, deterministic) +func (m *TLMessageMediaDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaDocument.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypeDriverLicense) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypeDriverLicense.Merge(dst, src) +func (dst *TLMessageMediaDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaDocument.Merge(dst, src) } -func (m *TLSecureValueTypeDriverLicense) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypeDriverLicense.Size(m) +func (m *TLMessageMediaDocument) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaDocument.Size(m) } -func (m *TLSecureValueTypeDriverLicense) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypeDriverLicense.DiscardUnknown(m) +func (m *TLMessageMediaDocument) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaDocument.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypeDriverLicense proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaDocument proto.InternalMessageInfo -func (m *TLSecureValueTypeDriverLicense) GetData2() *SecureValueType_Data { +func (m *TLMessageMediaDocument) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypeIdentityCard#a0d0744b = SecureValueType; -type TLSecureValueTypeIdentityCard struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLSecureValueTypeIdentityCard) Reset() { *m = TLSecureValueTypeIdentityCard{} } -func (m *TLSecureValueTypeIdentityCard) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypeIdentityCard) ProtoMessage() {} -func (*TLSecureValueTypeIdentityCard) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{588} +// messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia; +type TLMessageMediaWebPage struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypeIdentityCard) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypeIdentityCard.Unmarshal(m, b) + +func (m *TLMessageMediaWebPage) Reset() { *m = TLMessageMediaWebPage{} } +func (m *TLMessageMediaWebPage) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaWebPage) ProtoMessage() {} +func (*TLMessageMediaWebPage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{539} } -func (m *TLSecureValueTypeIdentityCard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypeIdentityCard.Marshal(b, m, deterministic) +func (m *TLMessageMediaWebPage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaWebPage.Unmarshal(m, b) } -func (dst *TLSecureValueTypeIdentityCard) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypeIdentityCard.Merge(dst, src) +func (m *TLMessageMediaWebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaWebPage.Marshal(b, m, deterministic) } -func (m *TLSecureValueTypeIdentityCard) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypeIdentityCard.Size(m) +func (dst *TLMessageMediaWebPage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaWebPage.Merge(dst, src) } -func (m *TLSecureValueTypeIdentityCard) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypeIdentityCard.DiscardUnknown(m) +func (m *TLMessageMediaWebPage) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaWebPage.Size(m) +} +func (m *TLMessageMediaWebPage) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaWebPage.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypeIdentityCard proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaWebPage proto.InternalMessageInfo -func (m *TLSecureValueTypeIdentityCard) GetData2() *SecureValueType_Data { +func (m *TLMessageMediaWebPage) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypeInternalPassport#99a48f23 = SecureValueType; -type TLSecureValueTypeInternalPassport struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia; +type TLMessageMediaVenue struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypeInternalPassport) Reset() { *m = TLSecureValueTypeInternalPassport{} } -func (m *TLSecureValueTypeInternalPassport) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypeInternalPassport) ProtoMessage() {} -func (*TLSecureValueTypeInternalPassport) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{589} +func (m *TLMessageMediaVenue) Reset() { *m = TLMessageMediaVenue{} } +func (m *TLMessageMediaVenue) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaVenue) ProtoMessage() {} +func (*TLMessageMediaVenue) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{540} } -func (m *TLSecureValueTypeInternalPassport) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypeInternalPassport.Unmarshal(m, b) +func (m *TLMessageMediaVenue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaVenue.Unmarshal(m, b) } -func (m *TLSecureValueTypeInternalPassport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypeInternalPassport.Marshal(b, m, deterministic) +func (m *TLMessageMediaVenue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaVenue.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypeInternalPassport) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypeInternalPassport.Merge(dst, src) +func (dst *TLMessageMediaVenue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaVenue.Merge(dst, src) } -func (m *TLSecureValueTypeInternalPassport) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypeInternalPassport.Size(m) +func (m *TLMessageMediaVenue) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaVenue.Size(m) } -func (m *TLSecureValueTypeInternalPassport) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypeInternalPassport.DiscardUnknown(m) +func (m *TLMessageMediaVenue) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaVenue.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypeInternalPassport proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaVenue proto.InternalMessageInfo -func (m *TLSecureValueTypeInternalPassport) GetData2() *SecureValueType_Data { +func (m *TLMessageMediaVenue) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypeAddress#cbe31e26 = SecureValueType; -type TLSecureValueTypeAddress struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageMediaGame#fdb19008 game:Game = MessageMedia; +type TLMessageMediaGame struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypeAddress) Reset() { *m = TLSecureValueTypeAddress{} } -func (m *TLSecureValueTypeAddress) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypeAddress) ProtoMessage() {} -func (*TLSecureValueTypeAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{590} +func (m *TLMessageMediaGame) Reset() { *m = TLMessageMediaGame{} } +func (m *TLMessageMediaGame) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaGame) ProtoMessage() {} +func (*TLMessageMediaGame) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{541} } -func (m *TLSecureValueTypeAddress) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypeAddress.Unmarshal(m, b) +func (m *TLMessageMediaGame) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaGame.Unmarshal(m, b) } -func (m *TLSecureValueTypeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypeAddress.Marshal(b, m, deterministic) +func (m *TLMessageMediaGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaGame.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypeAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypeAddress.Merge(dst, src) +func (dst *TLMessageMediaGame) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaGame.Merge(dst, src) } -func (m *TLSecureValueTypeAddress) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypeAddress.Size(m) +func (m *TLMessageMediaGame) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaGame.Size(m) } -func (m *TLSecureValueTypeAddress) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypeAddress.DiscardUnknown(m) +func (m *TLMessageMediaGame) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaGame.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypeAddress proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaGame proto.InternalMessageInfo -func (m *TLSecureValueTypeAddress) GetData2() *SecureValueType_Data { +func (m *TLMessageMediaGame) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypeUtilityBill#fc36954e = SecureValueType; -type TLSecureValueTypeUtilityBill struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; +type TLMessageMediaInvoice struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypeUtilityBill) Reset() { *m = TLSecureValueTypeUtilityBill{} } -func (m *TLSecureValueTypeUtilityBill) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypeUtilityBill) ProtoMessage() {} -func (*TLSecureValueTypeUtilityBill) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{591} +func (m *TLMessageMediaInvoice) Reset() { *m = TLMessageMediaInvoice{} } +func (m *TLMessageMediaInvoice) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaInvoice) ProtoMessage() {} +func (*TLMessageMediaInvoice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{542} } -func (m *TLSecureValueTypeUtilityBill) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypeUtilityBill.Unmarshal(m, b) +func (m *TLMessageMediaInvoice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaInvoice.Unmarshal(m, b) } -func (m *TLSecureValueTypeUtilityBill) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypeUtilityBill.Marshal(b, m, deterministic) +func (m *TLMessageMediaInvoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaInvoice.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypeUtilityBill) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypeUtilityBill.Merge(dst, src) +func (dst *TLMessageMediaInvoice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaInvoice.Merge(dst, src) } -func (m *TLSecureValueTypeUtilityBill) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypeUtilityBill.Size(m) +func (m *TLMessageMediaInvoice) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaInvoice.Size(m) } -func (m *TLSecureValueTypeUtilityBill) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypeUtilityBill.DiscardUnknown(m) +func (m *TLMessageMediaInvoice) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaInvoice.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypeUtilityBill proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaInvoice proto.InternalMessageInfo -func (m *TLSecureValueTypeUtilityBill) GetData2() *SecureValueType_Data { +func (m *TLMessageMediaInvoice) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypeBankStatement#89137c0d = SecureValueType; -type TLSecureValueTypeBankStatement struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia; +type TLMessageMediaGeoLive struct { + Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypeBankStatement) Reset() { *m = TLSecureValueTypeBankStatement{} } -func (m *TLSecureValueTypeBankStatement) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypeBankStatement) ProtoMessage() {} -func (*TLSecureValueTypeBankStatement) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{592} +func (m *TLMessageMediaGeoLive) Reset() { *m = TLMessageMediaGeoLive{} } +func (m *TLMessageMediaGeoLive) String() string { return proto.CompactTextString(m) } +func (*TLMessageMediaGeoLive) ProtoMessage() {} +func (*TLMessageMediaGeoLive) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{543} } -func (m *TLSecureValueTypeBankStatement) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypeBankStatement.Unmarshal(m, b) +func (m *TLMessageMediaGeoLive) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageMediaGeoLive.Unmarshal(m, b) } -func (m *TLSecureValueTypeBankStatement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypeBankStatement.Marshal(b, m, deterministic) +func (m *TLMessageMediaGeoLive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageMediaGeoLive.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypeBankStatement) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypeBankStatement.Merge(dst, src) +func (dst *TLMessageMediaGeoLive) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageMediaGeoLive.Merge(dst, src) } -func (m *TLSecureValueTypeBankStatement) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypeBankStatement.Size(m) +func (m *TLMessageMediaGeoLive) XXX_Size() int { + return xxx_messageInfo_TLMessageMediaGeoLive.Size(m) } -func (m *TLSecureValueTypeBankStatement) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypeBankStatement.DiscardUnknown(m) +func (m *TLMessageMediaGeoLive) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageMediaGeoLive.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypeBankStatement proto.InternalMessageInfo +var xxx_messageInfo_TLMessageMediaGeoLive proto.InternalMessageInfo -func (m *TLSecureValueTypeBankStatement) GetData2() *SecureValueType_Data { +func (m *TLMessageMediaGeoLive) GetData2() *MessageMedia_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypeRentalAgreement#8b883488 = SecureValueType; -type TLSecureValueTypeRentalAgreement struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputWebDocument <-- +// + TL_inputWebDocument +// +type InputWebDocument_Data struct { + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + Attributes []*DocumentAttribute `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypeRentalAgreement) Reset() { *m = TLSecureValueTypeRentalAgreement{} } -func (m *TLSecureValueTypeRentalAgreement) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypeRentalAgreement) ProtoMessage() {} -func (*TLSecureValueTypeRentalAgreement) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{593} +func (m *InputWebDocument_Data) Reset() { *m = InputWebDocument_Data{} } +func (m *InputWebDocument_Data) String() string { return proto.CompactTextString(m) } +func (*InputWebDocument_Data) ProtoMessage() {} +func (*InputWebDocument_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{544} } -func (m *TLSecureValueTypeRentalAgreement) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypeRentalAgreement.Unmarshal(m, b) +func (m *InputWebDocument_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputWebDocument_Data.Unmarshal(m, b) } -func (m *TLSecureValueTypeRentalAgreement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypeRentalAgreement.Marshal(b, m, deterministic) +func (m *InputWebDocument_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputWebDocument_Data.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypeRentalAgreement) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypeRentalAgreement.Merge(dst, src) +func (dst *InputWebDocument_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputWebDocument_Data.Merge(dst, src) } -func (m *TLSecureValueTypeRentalAgreement) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypeRentalAgreement.Size(m) +func (m *InputWebDocument_Data) XXX_Size() int { + return xxx_messageInfo_InputWebDocument_Data.Size(m) } -func (m *TLSecureValueTypeRentalAgreement) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypeRentalAgreement.DiscardUnknown(m) +func (m *InputWebDocument_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputWebDocument_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypeRentalAgreement proto.InternalMessageInfo +var xxx_messageInfo_InputWebDocument_Data proto.InternalMessageInfo -func (m *TLSecureValueTypeRentalAgreement) GetData2() *SecureValueType_Data { +func (m *InputWebDocument_Data) GetUrl() string { if m != nil { - return m.Data2 + return m.Url } - return nil + return "" } -// secureValueTypePassportRegistration#99e3806a = SecureValueType; -type TLSecureValueTypePassportRegistration struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputWebDocument_Data) GetSize() int32 { + if m != nil { + return m.Size + } + return 0 } -func (m *TLSecureValueTypePassportRegistration) Reset() { *m = TLSecureValueTypePassportRegistration{} } -func (m *TLSecureValueTypePassportRegistration) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypePassportRegistration) ProtoMessage() {} -func (*TLSecureValueTypePassportRegistration) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{594} -} -func (m *TLSecureValueTypePassportRegistration) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypePassportRegistration.Unmarshal(m, b) -} -func (m *TLSecureValueTypePassportRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypePassportRegistration.Marshal(b, m, deterministic) -} -func (dst *TLSecureValueTypePassportRegistration) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypePassportRegistration.Merge(dst, src) -} -func (m *TLSecureValueTypePassportRegistration) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypePassportRegistration.Size(m) -} -func (m *TLSecureValueTypePassportRegistration) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypePassportRegistration.DiscardUnknown(m) +func (m *InputWebDocument_Data) GetMimeType() string { + if m != nil { + return m.MimeType + } + return "" } -var xxx_messageInfo_TLSecureValueTypePassportRegistration proto.InternalMessageInfo - -func (m *TLSecureValueTypePassportRegistration) GetData2() *SecureValueType_Data { +func (m *InputWebDocument_Data) GetAttributes() []*DocumentAttribute { if m != nil { - return m.Data2 + return m.Attributes } return nil } -// secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType; -type TLSecureValueTypeTemporaryRegistration struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputWebDocument struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputWebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypeTemporaryRegistration) Reset() { - *m = TLSecureValueTypeTemporaryRegistration{} -} -func (m *TLSecureValueTypeTemporaryRegistration) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypeTemporaryRegistration) ProtoMessage() {} -func (*TLSecureValueTypeTemporaryRegistration) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{595} +func (m *InputWebDocument) Reset() { *m = InputWebDocument{} } +func (m *InputWebDocument) String() string { return proto.CompactTextString(m) } +func (*InputWebDocument) ProtoMessage() {} +func (*InputWebDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{545} } -func (m *TLSecureValueTypeTemporaryRegistration) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.Unmarshal(m, b) +func (m *InputWebDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputWebDocument.Unmarshal(m, b) } -func (m *TLSecureValueTypeTemporaryRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.Marshal(b, m, deterministic) +func (m *InputWebDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputWebDocument.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypeTemporaryRegistration) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.Merge(dst, src) +func (dst *InputWebDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputWebDocument.Merge(dst, src) } -func (m *TLSecureValueTypeTemporaryRegistration) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.Size(m) +func (m *InputWebDocument) XXX_Size() int { + return xxx_messageInfo_InputWebDocument.Size(m) } -func (m *TLSecureValueTypeTemporaryRegistration) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.DiscardUnknown(m) +func (m *InputWebDocument) XXX_DiscardUnknown() { + xxx_messageInfo_InputWebDocument.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypeTemporaryRegistration proto.InternalMessageInfo +var xxx_messageInfo_InputWebDocument proto.InternalMessageInfo -func (m *TLSecureValueTypeTemporaryRegistration) GetData2() *SecureValueType_Data { +func (m *InputWebDocument) GetConstructor() TLConstructor { if m != nil { - return m.Data2 + return m.Constructor } - return nil -} - -// secureValueTypePhone#b320aadb = SecureValueType; -type TLSecureValueTypePhone struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLSecureValueTypePhone) Reset() { *m = TLSecureValueTypePhone{} } -func (m *TLSecureValueTypePhone) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypePhone) ProtoMessage() {} -func (*TLSecureValueTypePhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{596} -} -func (m *TLSecureValueTypePhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypePhone.Unmarshal(m, b) -} -func (m *TLSecureValueTypePhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypePhone.Marshal(b, m, deterministic) -} -func (dst *TLSecureValueTypePhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypePhone.Merge(dst, src) -} -func (m *TLSecureValueTypePhone) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypePhone.Size(m) -} -func (m *TLSecureValueTypePhone) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypePhone.DiscardUnknown(m) + return TLConstructor_CRC32_UNKNOWN } -var xxx_messageInfo_TLSecureValueTypePhone proto.InternalMessageInfo - -func (m *TLSecureValueTypePhone) GetData2() *SecureValueType_Data { +func (m *InputWebDocument) GetData2() *InputWebDocument_Data { if m != nil { return m.Data2 } return nil } -// secureValueTypeEmail#8e3ca7ee = SecureValueType; -type TLSecureValueTypeEmail struct { - Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; +type TLInputWebDocument struct { + Data2 *InputWebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueTypeEmail) Reset() { *m = TLSecureValueTypeEmail{} } -func (m *TLSecureValueTypeEmail) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueTypeEmail) ProtoMessage() {} -func (*TLSecureValueTypeEmail) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{597} +func (m *TLInputWebDocument) Reset() { *m = TLInputWebDocument{} } +func (m *TLInputWebDocument) String() string { return proto.CompactTextString(m) } +func (*TLInputWebDocument) ProtoMessage() {} +func (*TLInputWebDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{546} } -func (m *TLSecureValueTypeEmail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueTypeEmail.Unmarshal(m, b) +func (m *TLInputWebDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputWebDocument.Unmarshal(m, b) } -func (m *TLSecureValueTypeEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueTypeEmail.Marshal(b, m, deterministic) +func (m *TLInputWebDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputWebDocument.Marshal(b, m, deterministic) } -func (dst *TLSecureValueTypeEmail) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueTypeEmail.Merge(dst, src) +func (dst *TLInputWebDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputWebDocument.Merge(dst, src) } -func (m *TLSecureValueTypeEmail) XXX_Size() int { - return xxx_messageInfo_TLSecureValueTypeEmail.Size(m) +func (m *TLInputWebDocument) XXX_Size() int { + return xxx_messageInfo_TLInputWebDocument.Size(m) } -func (m *TLSecureValueTypeEmail) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueTypeEmail.DiscardUnknown(m) +func (m *TLInputWebDocument) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputWebDocument.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueTypeEmail proto.InternalMessageInfo +var xxx_messageInfo_TLInputWebDocument proto.InternalMessageInfo -func (m *TLSecureValueTypeEmail) GetData2() *SecureValueType_Data { +func (m *TLInputWebDocument) GetData2() *InputWebDocument_Data { if m != nil { return m.Data2 } @@ -28588,500 +27240,532 @@ func (m *TLSecureValueTypeEmail) GetData2() *SecureValueType_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputPeerNotifySettings <-- -// + TL_inputPeerNotifySettings +// InputWebFileLocation <-- +// + TL_inputWebFileLocation +// + TL_inputWebFileGeoPointLocation // -type InputPeerNotifySettings_Data struct { - ShowPreviews *Bool `protobuf:"bytes,1,opt,name=show_previews,json=showPreviews,proto3" json:"show_previews,omitempty"` - Silent *Bool `protobuf:"bytes,2,opt,name=silent,proto3" json:"silent,omitempty"` - MuteUntil int32 `protobuf:"varint,3,opt,name=mute_until,json=muteUntil,proto3" json:"mute_until,omitempty"` - Sound string `protobuf:"bytes,4,opt,name=sound,proto3" json:"sound,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputWebFileLocation_Data struct { + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + GeoPoint *InputGeoPoint `protobuf:"bytes,3,opt,name=geo_point,json=geoPoint,proto3" json:"geo_point,omitempty"` + W int32 `protobuf:"varint,4,opt,name=w,proto3" json:"w,omitempty"` + H int32 `protobuf:"varint,5,opt,name=h,proto3" json:"h,omitempty"` + Zoom int32 `protobuf:"varint,6,opt,name=zoom,proto3" json:"zoom,omitempty"` + Scale int32 `protobuf:"varint,7,opt,name=scale,proto3" json:"scale,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputPeerNotifySettings_Data) Reset() { *m = InputPeerNotifySettings_Data{} } -func (m *InputPeerNotifySettings_Data) String() string { return proto.CompactTextString(m) } -func (*InputPeerNotifySettings_Data) ProtoMessage() {} -func (*InputPeerNotifySettings_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{598} +func (m *InputWebFileLocation_Data) Reset() { *m = InputWebFileLocation_Data{} } +func (m *InputWebFileLocation_Data) String() string { return proto.CompactTextString(m) } +func (*InputWebFileLocation_Data) ProtoMessage() {} +func (*InputWebFileLocation_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{547} } -func (m *InputPeerNotifySettings_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPeerNotifySettings_Data.Unmarshal(m, b) +func (m *InputWebFileLocation_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputWebFileLocation_Data.Unmarshal(m, b) } -func (m *InputPeerNotifySettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPeerNotifySettings_Data.Marshal(b, m, deterministic) +func (m *InputWebFileLocation_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputWebFileLocation_Data.Marshal(b, m, deterministic) } -func (dst *InputPeerNotifySettings_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPeerNotifySettings_Data.Merge(dst, src) +func (dst *InputWebFileLocation_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputWebFileLocation_Data.Merge(dst, src) } -func (m *InputPeerNotifySettings_Data) XXX_Size() int { - return xxx_messageInfo_InputPeerNotifySettings_Data.Size(m) +func (m *InputWebFileLocation_Data) XXX_Size() int { + return xxx_messageInfo_InputWebFileLocation_Data.Size(m) } -func (m *InputPeerNotifySettings_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputPeerNotifySettings_Data.DiscardUnknown(m) +func (m *InputWebFileLocation_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputWebFileLocation_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputPeerNotifySettings_Data proto.InternalMessageInfo +var xxx_messageInfo_InputWebFileLocation_Data proto.InternalMessageInfo -func (m *InputPeerNotifySettings_Data) GetShowPreviews() *Bool { +func (m *InputWebFileLocation_Data) GetUrl() string { if m != nil { - return m.ShowPreviews + return m.Url } - return nil + return "" } -func (m *InputPeerNotifySettings_Data) GetSilent() *Bool { +func (m *InputWebFileLocation_Data) GetAccessHash() int64 { if m != nil { - return m.Silent + return m.AccessHash + } + return 0 +} + +func (m *InputWebFileLocation_Data) GetGeoPoint() *InputGeoPoint { + if m != nil { + return m.GeoPoint } return nil } -func (m *InputPeerNotifySettings_Data) GetMuteUntil() int32 { +func (m *InputWebFileLocation_Data) GetW() int32 { if m != nil { - return m.MuteUntil + return m.W } return 0 } -func (m *InputPeerNotifySettings_Data) GetSound() string { +func (m *InputWebFileLocation_Data) GetH() int32 { if m != nil { - return m.Sound + return m.H } - return "" + return 0 } -type InputPeerNotifySettings struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputPeerNotifySettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputWebFileLocation_Data) GetZoom() int32 { + if m != nil { + return m.Zoom + } + return 0 } -func (m *InputPeerNotifySettings) Reset() { *m = InputPeerNotifySettings{} } -func (m *InputPeerNotifySettings) String() string { return proto.CompactTextString(m) } -func (*InputPeerNotifySettings) ProtoMessage() {} -func (*InputPeerNotifySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{599} +func (m *InputWebFileLocation_Data) GetScale() int32 { + if m != nil { + return m.Scale + } + return 0 } -func (m *InputPeerNotifySettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPeerNotifySettings.Unmarshal(m, b) + +type InputWebFileLocation struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputWebFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputPeerNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPeerNotifySettings.Marshal(b, m, deterministic) + +func (m *InputWebFileLocation) Reset() { *m = InputWebFileLocation{} } +func (m *InputWebFileLocation) String() string { return proto.CompactTextString(m) } +func (*InputWebFileLocation) ProtoMessage() {} +func (*InputWebFileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{548} } -func (dst *InputPeerNotifySettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPeerNotifySettings.Merge(dst, src) +func (m *InputWebFileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputWebFileLocation.Unmarshal(m, b) } -func (m *InputPeerNotifySettings) XXX_Size() int { - return xxx_messageInfo_InputPeerNotifySettings.Size(m) +func (m *InputWebFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputWebFileLocation.Marshal(b, m, deterministic) } -func (m *InputPeerNotifySettings) XXX_DiscardUnknown() { - xxx_messageInfo_InputPeerNotifySettings.DiscardUnknown(m) +func (dst *InputWebFileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputWebFileLocation.Merge(dst, src) +} +func (m *InputWebFileLocation) XXX_Size() int { + return xxx_messageInfo_InputWebFileLocation.Size(m) +} +func (m *InputWebFileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_InputWebFileLocation.DiscardUnknown(m) } -var xxx_messageInfo_InputPeerNotifySettings proto.InternalMessageInfo +var xxx_messageInfo_InputWebFileLocation proto.InternalMessageInfo -func (m *InputPeerNotifySettings) GetConstructor() TLConstructor { +func (m *InputWebFileLocation) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputPeerNotifySettings) GetData2() *InputPeerNotifySettings_Data { +func (m *InputWebFileLocation) GetData2() *InputWebFileLocation_Data { if m != nil { return m.Data2 } return nil } -// inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings; -type TLInputPeerNotifySettings struct { - Data2 *InputPeerNotifySettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation; +type TLInputWebFileLocation struct { + Data2 *InputWebFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPeerNotifySettings) Reset() { *m = TLInputPeerNotifySettings{} } -func (m *TLInputPeerNotifySettings) String() string { return proto.CompactTextString(m) } -func (*TLInputPeerNotifySettings) ProtoMessage() {} -func (*TLInputPeerNotifySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{600} +func (m *TLInputWebFileLocation) Reset() { *m = TLInputWebFileLocation{} } +func (m *TLInputWebFileLocation) String() string { return proto.CompactTextString(m) } +func (*TLInputWebFileLocation) ProtoMessage() {} +func (*TLInputWebFileLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{549} } -func (m *TLInputPeerNotifySettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPeerNotifySettings.Unmarshal(m, b) +func (m *TLInputWebFileLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputWebFileLocation.Unmarshal(m, b) } -func (m *TLInputPeerNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPeerNotifySettings.Marshal(b, m, deterministic) +func (m *TLInputWebFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputWebFileLocation.Marshal(b, m, deterministic) } -func (dst *TLInputPeerNotifySettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPeerNotifySettings.Merge(dst, src) +func (dst *TLInputWebFileLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputWebFileLocation.Merge(dst, src) } -func (m *TLInputPeerNotifySettings) XXX_Size() int { - return xxx_messageInfo_TLInputPeerNotifySettings.Size(m) +func (m *TLInputWebFileLocation) XXX_Size() int { + return xxx_messageInfo_TLInputWebFileLocation.Size(m) } -func (m *TLInputPeerNotifySettings) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPeerNotifySettings.DiscardUnknown(m) +func (m *TLInputWebFileLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputWebFileLocation.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPeerNotifySettings proto.InternalMessageInfo +var xxx_messageInfo_TLInputWebFileLocation proto.InternalMessageInfo -func (m *TLInputPeerNotifySettings) GetData2() *InputPeerNotifySettings_Data { +func (m *TLInputWebFileLocation) GetData2() *InputWebFileLocation_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// upload_WebFile <-- -// + TL_upload_webFile -// -type Upload_WebFile_Data struct { - Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` - MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - FileType *Storage_FileType `protobuf:"bytes,3,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"` - Mtime int32 `protobuf:"varint,4,opt,name=mtime,proto3" json:"mtime,omitempty"` - Bytes []byte `protobuf:"bytes,5,opt,name=bytes,proto3" json:"bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation; +type TLInputWebFileGeoPointLocation struct { + Data2 *InputWebFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Upload_WebFile_Data) Reset() { *m = Upload_WebFile_Data{} } -func (m *Upload_WebFile_Data) String() string { return proto.CompactTextString(m) } -func (*Upload_WebFile_Data) ProtoMessage() {} -func (*Upload_WebFile_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{601} +func (m *TLInputWebFileGeoPointLocation) Reset() { *m = TLInputWebFileGeoPointLocation{} } +func (m *TLInputWebFileGeoPointLocation) String() string { return proto.CompactTextString(m) } +func (*TLInputWebFileGeoPointLocation) ProtoMessage() {} +func (*TLInputWebFileGeoPointLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{550} } -func (m *Upload_WebFile_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Upload_WebFile_Data.Unmarshal(m, b) +func (m *TLInputWebFileGeoPointLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputWebFileGeoPointLocation.Unmarshal(m, b) } -func (m *Upload_WebFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Upload_WebFile_Data.Marshal(b, m, deterministic) +func (m *TLInputWebFileGeoPointLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputWebFileGeoPointLocation.Marshal(b, m, deterministic) } -func (dst *Upload_WebFile_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Upload_WebFile_Data.Merge(dst, src) +func (dst *TLInputWebFileGeoPointLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputWebFileGeoPointLocation.Merge(dst, src) } -func (m *Upload_WebFile_Data) XXX_Size() int { - return xxx_messageInfo_Upload_WebFile_Data.Size(m) +func (m *TLInputWebFileGeoPointLocation) XXX_Size() int { + return xxx_messageInfo_TLInputWebFileGeoPointLocation.Size(m) } -func (m *Upload_WebFile_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Upload_WebFile_Data.DiscardUnknown(m) +func (m *TLInputWebFileGeoPointLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputWebFileGeoPointLocation.DiscardUnknown(m) } -var xxx_messageInfo_Upload_WebFile_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputWebFileGeoPointLocation proto.InternalMessageInfo -func (m *Upload_WebFile_Data) GetSize() int32 { +func (m *TLInputWebFileGeoPointLocation) GetData2() *InputWebFileLocation_Data { if m != nil { - return m.Size + return m.Data2 } - return 0 + return nil } -func (m *Upload_WebFile_Data) GetMimeType() string { - if m != nil { - return m.MimeType - } - return "" +// ///////////////////////////////////////////////////////////////////////////// +// GeoPoint <-- +// + TL_geoPointEmpty +// + TL_geoPoint +// +type GeoPoint_Data struct { + Long float64 `protobuf:"fixed64,1,opt,name=long,proto3" json:"long,omitempty"` + Lat float64 `protobuf:"fixed64,2,opt,name=lat,proto3" json:"lat,omitempty"` + AccessHash int64 `protobuf:"varint,3,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Upload_WebFile_Data) GetFileType() *Storage_FileType { +func (m *GeoPoint_Data) Reset() { *m = GeoPoint_Data{} } +func (m *GeoPoint_Data) String() string { return proto.CompactTextString(m) } +func (*GeoPoint_Data) ProtoMessage() {} +func (*GeoPoint_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{551} +} +func (m *GeoPoint_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GeoPoint_Data.Unmarshal(m, b) +} +func (m *GeoPoint_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GeoPoint_Data.Marshal(b, m, deterministic) +} +func (dst *GeoPoint_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_GeoPoint_Data.Merge(dst, src) +} +func (m *GeoPoint_Data) XXX_Size() int { + return xxx_messageInfo_GeoPoint_Data.Size(m) +} +func (m *GeoPoint_Data) XXX_DiscardUnknown() { + xxx_messageInfo_GeoPoint_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_GeoPoint_Data proto.InternalMessageInfo + +func (m *GeoPoint_Data) GetLong() float64 { if m != nil { - return m.FileType + return m.Long } - return nil + return 0 } -func (m *Upload_WebFile_Data) GetMtime() int32 { +func (m *GeoPoint_Data) GetLat() float64 { if m != nil { - return m.Mtime + return m.Lat } return 0 } -func (m *Upload_WebFile_Data) GetBytes() []byte { +func (m *GeoPoint_Data) GetAccessHash() int64 { if m != nil { - return m.Bytes + return m.AccessHash } - return nil + return 0 } -type Upload_WebFile struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Upload_WebFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type GeoPoint struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *GeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Upload_WebFile) Reset() { *m = Upload_WebFile{} } -func (m *Upload_WebFile) String() string { return proto.CompactTextString(m) } -func (*Upload_WebFile) ProtoMessage() {} -func (*Upload_WebFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{602} +func (m *GeoPoint) Reset() { *m = GeoPoint{} } +func (m *GeoPoint) String() string { return proto.CompactTextString(m) } +func (*GeoPoint) ProtoMessage() {} +func (*GeoPoint) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{552} } -func (m *Upload_WebFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Upload_WebFile.Unmarshal(m, b) +func (m *GeoPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GeoPoint.Unmarshal(m, b) } -func (m *Upload_WebFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Upload_WebFile.Marshal(b, m, deterministic) +func (m *GeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GeoPoint.Marshal(b, m, deterministic) } -func (dst *Upload_WebFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_Upload_WebFile.Merge(dst, src) +func (dst *GeoPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_GeoPoint.Merge(dst, src) } -func (m *Upload_WebFile) XXX_Size() int { - return xxx_messageInfo_Upload_WebFile.Size(m) +func (m *GeoPoint) XXX_Size() int { + return xxx_messageInfo_GeoPoint.Size(m) } -func (m *Upload_WebFile) XXX_DiscardUnknown() { - xxx_messageInfo_Upload_WebFile.DiscardUnknown(m) +func (m *GeoPoint) XXX_DiscardUnknown() { + xxx_messageInfo_GeoPoint.DiscardUnknown(m) } -var xxx_messageInfo_Upload_WebFile proto.InternalMessageInfo +var xxx_messageInfo_GeoPoint proto.InternalMessageInfo -func (m *Upload_WebFile) GetConstructor() TLConstructor { +func (m *GeoPoint) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Upload_WebFile) GetData2() *Upload_WebFile_Data { +func (m *GeoPoint) GetData2() *GeoPoint_Data { if m != nil { return m.Data2 } return nil } -// upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; -type TLUploadWebFile struct { - Data2 *Upload_WebFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// geoPointEmpty#1117dd5f = GeoPoint; +type TLGeoPointEmpty struct { + Data2 *GeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUploadWebFile) Reset() { *m = TLUploadWebFile{} } -func (m *TLUploadWebFile) String() string { return proto.CompactTextString(m) } -func (*TLUploadWebFile) ProtoMessage() {} -func (*TLUploadWebFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{603} +func (m *TLGeoPointEmpty) Reset() { *m = TLGeoPointEmpty{} } +func (m *TLGeoPointEmpty) String() string { return proto.CompactTextString(m) } +func (*TLGeoPointEmpty) ProtoMessage() {} +func (*TLGeoPointEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{553} } -func (m *TLUploadWebFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUploadWebFile.Unmarshal(m, b) +func (m *TLGeoPointEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLGeoPointEmpty.Unmarshal(m, b) } -func (m *TLUploadWebFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUploadWebFile.Marshal(b, m, deterministic) +func (m *TLGeoPointEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLGeoPointEmpty.Marshal(b, m, deterministic) } -func (dst *TLUploadWebFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUploadWebFile.Merge(dst, src) +func (dst *TLGeoPointEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLGeoPointEmpty.Merge(dst, src) } -func (m *TLUploadWebFile) XXX_Size() int { - return xxx_messageInfo_TLUploadWebFile.Size(m) +func (m *TLGeoPointEmpty) XXX_Size() int { + return xxx_messageInfo_TLGeoPointEmpty.Size(m) } -func (m *TLUploadWebFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLUploadWebFile.DiscardUnknown(m) +func (m *TLGeoPointEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLGeoPointEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLUploadWebFile proto.InternalMessageInfo +var xxx_messageInfo_TLGeoPointEmpty proto.InternalMessageInfo -func (m *TLUploadWebFile) GetData2() *Upload_WebFile_Data { +func (m *TLGeoPointEmpty) GetData2() *GeoPoint_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputFile <-- -// + TL_inputFile -// + TL_inputFileBig -// -type InputFile_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Parts int32 `protobuf:"varint,2,opt,name=parts,proto3" json:"parts,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Md5Checksum string `protobuf:"bytes,4,opt,name=md5_checksum,json=md5Checksum,proto3" json:"md5_checksum,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// geoPoint#296f104 long:double lat:double access_hash:long = GeoPoint; +type TLGeoPoint struct { + Data2 *GeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputFile_Data) Reset() { *m = InputFile_Data{} } -func (m *InputFile_Data) String() string { return proto.CompactTextString(m) } -func (*InputFile_Data) ProtoMessage() {} -func (*InputFile_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{604} +func (m *TLGeoPoint) Reset() { *m = TLGeoPoint{} } +func (m *TLGeoPoint) String() string { return proto.CompactTextString(m) } +func (*TLGeoPoint) ProtoMessage() {} +func (*TLGeoPoint) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{554} } -func (m *InputFile_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputFile_Data.Unmarshal(m, b) +func (m *TLGeoPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLGeoPoint.Unmarshal(m, b) } -func (m *InputFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputFile_Data.Marshal(b, m, deterministic) +func (m *TLGeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLGeoPoint.Marshal(b, m, deterministic) } -func (dst *InputFile_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputFile_Data.Merge(dst, src) +func (dst *TLGeoPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLGeoPoint.Merge(dst, src) } -func (m *InputFile_Data) XXX_Size() int { - return xxx_messageInfo_InputFile_Data.Size(m) +func (m *TLGeoPoint) XXX_Size() int { + return xxx_messageInfo_TLGeoPoint.Size(m) } -func (m *InputFile_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputFile_Data.DiscardUnknown(m) +func (m *TLGeoPoint) XXX_DiscardUnknown() { + xxx_messageInfo_TLGeoPoint.DiscardUnknown(m) } -var xxx_messageInfo_InputFile_Data proto.InternalMessageInfo +var xxx_messageInfo_TLGeoPoint proto.InternalMessageInfo -func (m *InputFile_Data) GetId() int64 { +func (m *TLGeoPoint) GetData2() *GeoPoint_Data { if m != nil { - return m.Id + return m.Data2 } - return 0 + return nil } -func (m *InputFile_Data) GetParts() int32 { - if m != nil { - return m.Parts - } - return 0 +// ///////////////////////////////////////////////////////////////////////////// +// ContactStatus <-- +// + TL_contactStatus +// +type ContactStatus_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Status *UserStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputFile_Data) GetName() string { +func (m *ContactStatus_Data) Reset() { *m = ContactStatus_Data{} } +func (m *ContactStatus_Data) String() string { return proto.CompactTextString(m) } +func (*ContactStatus_Data) ProtoMessage() {} +func (*ContactStatus_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{555} +} +func (m *ContactStatus_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactStatus_Data.Unmarshal(m, b) +} +func (m *ContactStatus_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactStatus_Data.Marshal(b, m, deterministic) +} +func (dst *ContactStatus_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactStatus_Data.Merge(dst, src) +} +func (m *ContactStatus_Data) XXX_Size() int { + return xxx_messageInfo_ContactStatus_Data.Size(m) +} +func (m *ContactStatus_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ContactStatus_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_ContactStatus_Data proto.InternalMessageInfo + +func (m *ContactStatus_Data) GetUserId() int32 { if m != nil { - return m.Name + return m.UserId } - return "" + return 0 } -func (m *InputFile_Data) GetMd5Checksum() string { +func (m *ContactStatus_Data) GetStatus() *UserStatus { if m != nil { - return m.Md5Checksum + return m.Status } - return "" + return nil } -type InputFile struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactStatus struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ContactStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputFile) Reset() { *m = InputFile{} } -func (m *InputFile) String() string { return proto.CompactTextString(m) } -func (*InputFile) ProtoMessage() {} -func (*InputFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{605} +func (m *ContactStatus) Reset() { *m = ContactStatus{} } +func (m *ContactStatus) String() string { return proto.CompactTextString(m) } +func (*ContactStatus) ProtoMessage() {} +func (*ContactStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{556} } -func (m *InputFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputFile.Unmarshal(m, b) +func (m *ContactStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactStatus.Unmarshal(m, b) } -func (m *InputFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputFile.Marshal(b, m, deterministic) +func (m *ContactStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactStatus.Marshal(b, m, deterministic) } -func (dst *InputFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputFile.Merge(dst, src) +func (dst *ContactStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactStatus.Merge(dst, src) } -func (m *InputFile) XXX_Size() int { - return xxx_messageInfo_InputFile.Size(m) +func (m *ContactStatus) XXX_Size() int { + return xxx_messageInfo_ContactStatus.Size(m) } -func (m *InputFile) XXX_DiscardUnknown() { - xxx_messageInfo_InputFile.DiscardUnknown(m) +func (m *ContactStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ContactStatus.DiscardUnknown(m) } -var xxx_messageInfo_InputFile proto.InternalMessageInfo +var xxx_messageInfo_ContactStatus proto.InternalMessageInfo -func (m *InputFile) GetConstructor() TLConstructor { +func (m *ContactStatus) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputFile) GetData2() *InputFile_Data { +func (m *ContactStatus) GetData2() *ContactStatus_Data { if m != nil { return m.Data2 } return nil } -// inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile; -type TLInputFile struct { - Data2 *InputFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus; +type TLContactStatus struct { + Data2 *ContactStatus_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputFile) Reset() { *m = TLInputFile{} } -func (m *TLInputFile) String() string { return proto.CompactTextString(m) } -func (*TLInputFile) ProtoMessage() {} -func (*TLInputFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{606} +func (m *TLContactStatus) Reset() { *m = TLContactStatus{} } +func (m *TLContactStatus) String() string { return proto.CompactTextString(m) } +func (*TLContactStatus) ProtoMessage() {} +func (*TLContactStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{557} } -func (m *TLInputFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputFile.Unmarshal(m, b) +func (m *TLContactStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactStatus.Unmarshal(m, b) } -func (m *TLInputFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputFile.Marshal(b, m, deterministic) +func (m *TLContactStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactStatus.Marshal(b, m, deterministic) } -func (dst *TLInputFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputFile.Merge(dst, src) +func (dst *TLContactStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactStatus.Merge(dst, src) } -func (m *TLInputFile) XXX_Size() int { - return xxx_messageInfo_TLInputFile.Size(m) +func (m *TLContactStatus) XXX_Size() int { + return xxx_messageInfo_TLContactStatus.Size(m) } -func (m *TLInputFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputFile.DiscardUnknown(m) +func (m *TLContactStatus) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactStatus.DiscardUnknown(m) } -var xxx_messageInfo_TLInputFile proto.InternalMessageInfo +var xxx_messageInfo_TLContactStatus proto.InternalMessageInfo -func (m *TLInputFile) GetData2() *InputFile_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile; -type TLInputFileBig struct { - Data2 *InputFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputFileBig) Reset() { *m = TLInputFileBig{} } -func (m *TLInputFileBig) String() string { return proto.CompactTextString(m) } -func (*TLInputFileBig) ProtoMessage() {} -func (*TLInputFileBig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{607} -} -func (m *TLInputFileBig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputFileBig.Unmarshal(m, b) -} -func (m *TLInputFileBig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputFileBig.Marshal(b, m, deterministic) -} -func (dst *TLInputFileBig) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputFileBig.Merge(dst, src) -} -func (m *TLInputFileBig) XXX_Size() int { - return xxx_messageInfo_TLInputFileBig.Size(m) -} -func (m *TLInputFileBig) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputFileBig.DiscardUnknown(m) -} - -var xxx_messageInfo_TLInputFileBig proto.InternalMessageInfo - -func (m *TLInputFileBig) GetData2() *InputFile_Data { +func (m *TLContactStatus) GetData2() *ContactStatus_Data { if m != nil { return m.Data2 } @@ -29089,150 +27773,126 @@ func (m *TLInputFileBig) GetData2() *InputFile_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PeerNotifySettings <-- -// + TL_peerNotifySettings +// AccountDaysTTL <-- +// + TL_accountDaysTTL // -type PeerNotifySettings_Data struct { - ShowPreviews *Bool `protobuf:"bytes,1,opt,name=show_previews,json=showPreviews,proto3" json:"show_previews,omitempty"` - Silent *Bool `protobuf:"bytes,2,opt,name=silent,proto3" json:"silent,omitempty"` - MuteUntil int32 `protobuf:"varint,3,opt,name=mute_until,json=muteUntil,proto3" json:"mute_until,omitempty"` - Sound string `protobuf:"bytes,4,opt,name=sound,proto3" json:"sound,omitempty"` +type AccountDaysTTL_Data struct { + Days int32 `protobuf:"varint,1,opt,name=days,proto3" json:"days,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *PeerNotifySettings_Data) Reset() { *m = PeerNotifySettings_Data{} } -func (m *PeerNotifySettings_Data) String() string { return proto.CompactTextString(m) } -func (*PeerNotifySettings_Data) ProtoMessage() {} -func (*PeerNotifySettings_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{608} -} -func (m *PeerNotifySettings_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PeerNotifySettings_Data.Unmarshal(m, b) +func (m *AccountDaysTTL_Data) Reset() { *m = AccountDaysTTL_Data{} } +func (m *AccountDaysTTL_Data) String() string { return proto.CompactTextString(m) } +func (*AccountDaysTTL_Data) ProtoMessage() {} +func (*AccountDaysTTL_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{558} } -func (m *PeerNotifySettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PeerNotifySettings_Data.Marshal(b, m, deterministic) +func (m *AccountDaysTTL_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AccountDaysTTL_Data.Unmarshal(m, b) } -func (dst *PeerNotifySettings_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerNotifySettings_Data.Merge(dst, src) +func (m *AccountDaysTTL_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AccountDaysTTL_Data.Marshal(b, m, deterministic) } -func (m *PeerNotifySettings_Data) XXX_Size() int { - return xxx_messageInfo_PeerNotifySettings_Data.Size(m) +func (dst *AccountDaysTTL_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountDaysTTL_Data.Merge(dst, src) } -func (m *PeerNotifySettings_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PeerNotifySettings_Data.DiscardUnknown(m) +func (m *AccountDaysTTL_Data) XXX_Size() int { + return xxx_messageInfo_AccountDaysTTL_Data.Size(m) } - -var xxx_messageInfo_PeerNotifySettings_Data proto.InternalMessageInfo - -func (m *PeerNotifySettings_Data) GetShowPreviews() *Bool { - if m != nil { - return m.ShowPreviews - } - return nil +func (m *AccountDaysTTL_Data) XXX_DiscardUnknown() { + xxx_messageInfo_AccountDaysTTL_Data.DiscardUnknown(m) } -func (m *PeerNotifySettings_Data) GetSilent() *Bool { - if m != nil { - return m.Silent - } - return nil -} +var xxx_messageInfo_AccountDaysTTL_Data proto.InternalMessageInfo -func (m *PeerNotifySettings_Data) GetMuteUntil() int32 { +func (m *AccountDaysTTL_Data) GetDays() int32 { if m != nil { - return m.MuteUntil + return m.Days } return 0 } -func (m *PeerNotifySettings_Data) GetSound() string { - if m != nil { - return m.Sound - } - return "" -} - -type PeerNotifySettings struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PeerNotifySettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type AccountDaysTTL struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *AccountDaysTTL_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PeerNotifySettings) Reset() { *m = PeerNotifySettings{} } -func (m *PeerNotifySettings) String() string { return proto.CompactTextString(m) } -func (*PeerNotifySettings) ProtoMessage() {} -func (*PeerNotifySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{609} +func (m *AccountDaysTTL) Reset() { *m = AccountDaysTTL{} } +func (m *AccountDaysTTL) String() string { return proto.CompactTextString(m) } +func (*AccountDaysTTL) ProtoMessage() {} +func (*AccountDaysTTL) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{559} } -func (m *PeerNotifySettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PeerNotifySettings.Unmarshal(m, b) +func (m *AccountDaysTTL) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AccountDaysTTL.Unmarshal(m, b) } -func (m *PeerNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PeerNotifySettings.Marshal(b, m, deterministic) +func (m *AccountDaysTTL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AccountDaysTTL.Marshal(b, m, deterministic) } -func (dst *PeerNotifySettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerNotifySettings.Merge(dst, src) +func (dst *AccountDaysTTL) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountDaysTTL.Merge(dst, src) } -func (m *PeerNotifySettings) XXX_Size() int { - return xxx_messageInfo_PeerNotifySettings.Size(m) +func (m *AccountDaysTTL) XXX_Size() int { + return xxx_messageInfo_AccountDaysTTL.Size(m) } -func (m *PeerNotifySettings) XXX_DiscardUnknown() { - xxx_messageInfo_PeerNotifySettings.DiscardUnknown(m) +func (m *AccountDaysTTL) XXX_DiscardUnknown() { + xxx_messageInfo_AccountDaysTTL.DiscardUnknown(m) } -var xxx_messageInfo_PeerNotifySettings proto.InternalMessageInfo +var xxx_messageInfo_AccountDaysTTL proto.InternalMessageInfo -func (m *PeerNotifySettings) GetConstructor() TLConstructor { +func (m *AccountDaysTTL) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PeerNotifySettings) GetData2() *PeerNotifySettings_Data { +func (m *AccountDaysTTL) GetData2() *AccountDaysTTL_Data { if m != nil { return m.Data2 } return nil } -// peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings; -type TLPeerNotifySettings struct { - Data2 *PeerNotifySettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; +type TLAccountDaysTTL struct { + Data2 *AccountDaysTTL_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPeerNotifySettings) Reset() { *m = TLPeerNotifySettings{} } -func (m *TLPeerNotifySettings) String() string { return proto.CompactTextString(m) } -func (*TLPeerNotifySettings) ProtoMessage() {} -func (*TLPeerNotifySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{610} +func (m *TLAccountDaysTTL) Reset() { *m = TLAccountDaysTTL{} } +func (m *TLAccountDaysTTL) String() string { return proto.CompactTextString(m) } +func (*TLAccountDaysTTL) ProtoMessage() {} +func (*TLAccountDaysTTL) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{560} } -func (m *TLPeerNotifySettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPeerNotifySettings.Unmarshal(m, b) +func (m *TLAccountDaysTTL) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountDaysTTL.Unmarshal(m, b) } -func (m *TLPeerNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPeerNotifySettings.Marshal(b, m, deterministic) +func (m *TLAccountDaysTTL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountDaysTTL.Marshal(b, m, deterministic) } -func (dst *TLPeerNotifySettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPeerNotifySettings.Merge(dst, src) +func (dst *TLAccountDaysTTL) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountDaysTTL.Merge(dst, src) } -func (m *TLPeerNotifySettings) XXX_Size() int { - return xxx_messageInfo_TLPeerNotifySettings.Size(m) +func (m *TLAccountDaysTTL) XXX_Size() int { + return xxx_messageInfo_TLAccountDaysTTL.Size(m) } -func (m *TLPeerNotifySettings) XXX_DiscardUnknown() { - xxx_messageInfo_TLPeerNotifySettings.DiscardUnknown(m) +func (m *TLAccountDaysTTL) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountDaysTTL.DiscardUnknown(m) } -var xxx_messageInfo_TLPeerNotifySettings proto.InternalMessageInfo +var xxx_messageInfo_TLAccountDaysTTL proto.InternalMessageInfo -func (m *TLPeerNotifySettings) GetData2() *PeerNotifySettings_Data { +func (m *TLAccountDaysTTL) GetData2() *AccountDaysTTL_Data { if m != nil { return m.Data2 } @@ -29240,198 +27900,198 @@ func (m *TLPeerNotifySettings) GetData2() *PeerNotifySettings_Data { } // ///////////////////////////////////////////////////////////////////////////// -// WallPaper <-- -// + TL_wallPaper -// + TL_wallPaperSolid +// SecureRequiredType <-- +// + TL_secureRequiredType +// + TL_secureRequiredTypeOneOf // -type WallPaper_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Sizes []*PhotoSize `protobuf:"bytes,3,rep,name=sizes,proto3" json:"sizes,omitempty"` - Color int32 `protobuf:"varint,4,opt,name=color,proto3" json:"color,omitempty"` - BgColor int32 `protobuf:"varint,5,opt,name=bg_color,json=bgColor,proto3" json:"bg_color,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SecureRequiredType_Data struct { + NativeNames bool `protobuf:"varint,1,opt,name=native_names,json=nativeNames,proto3" json:"native_names,omitempty"` + SelfieRequired bool `protobuf:"varint,2,opt,name=selfie_required,json=selfieRequired,proto3" json:"selfie_required,omitempty"` + TranslationRequired bool `protobuf:"varint,3,opt,name=translation_required,json=translationRequired,proto3" json:"translation_required,omitempty"` + Type *SecureValueType `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + Types []*SecureRequiredType `protobuf:"bytes,5,rep,name=types,proto3" json:"types,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WallPaper_Data) Reset() { *m = WallPaper_Data{} } -func (m *WallPaper_Data) String() string { return proto.CompactTextString(m) } -func (*WallPaper_Data) ProtoMessage() {} -func (*WallPaper_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{611} +func (m *SecureRequiredType_Data) Reset() { *m = SecureRequiredType_Data{} } +func (m *SecureRequiredType_Data) String() string { return proto.CompactTextString(m) } +func (*SecureRequiredType_Data) ProtoMessage() {} +func (*SecureRequiredType_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{561} } -func (m *WallPaper_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WallPaper_Data.Unmarshal(m, b) +func (m *SecureRequiredType_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureRequiredType_Data.Unmarshal(m, b) } -func (m *WallPaper_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WallPaper_Data.Marshal(b, m, deterministic) +func (m *SecureRequiredType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureRequiredType_Data.Marshal(b, m, deterministic) } -func (dst *WallPaper_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_WallPaper_Data.Merge(dst, src) +func (dst *SecureRequiredType_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureRequiredType_Data.Merge(dst, src) } -func (m *WallPaper_Data) XXX_Size() int { - return xxx_messageInfo_WallPaper_Data.Size(m) +func (m *SecureRequiredType_Data) XXX_Size() int { + return xxx_messageInfo_SecureRequiredType_Data.Size(m) } -func (m *WallPaper_Data) XXX_DiscardUnknown() { - xxx_messageInfo_WallPaper_Data.DiscardUnknown(m) +func (m *SecureRequiredType_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecureRequiredType_Data.DiscardUnknown(m) } -var xxx_messageInfo_WallPaper_Data proto.InternalMessageInfo +var xxx_messageInfo_SecureRequiredType_Data proto.InternalMessageInfo -func (m *WallPaper_Data) GetId() int32 { +func (m *SecureRequiredType_Data) GetNativeNames() bool { if m != nil { - return m.Id + return m.NativeNames } - return 0 + return false } -func (m *WallPaper_Data) GetTitle() string { +func (m *SecureRequiredType_Data) GetSelfieRequired() bool { if m != nil { - return m.Title + return m.SelfieRequired } - return "" + return false } -func (m *WallPaper_Data) GetSizes() []*PhotoSize { +func (m *SecureRequiredType_Data) GetTranslationRequired() bool { if m != nil { - return m.Sizes + return m.TranslationRequired } - return nil + return false } -func (m *WallPaper_Data) GetColor() int32 { +func (m *SecureRequiredType_Data) GetType() *SecureValueType { if m != nil { - return m.Color + return m.Type } - return 0 + return nil } -func (m *WallPaper_Data) GetBgColor() int32 { +func (m *SecureRequiredType_Data) GetTypes() []*SecureRequiredType { if m != nil { - return m.BgColor + return m.Types } - return 0 + return nil } -type WallPaper struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *WallPaper_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SecureRequiredType struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SecureRequiredType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WallPaper) Reset() { *m = WallPaper{} } -func (m *WallPaper) String() string { return proto.CompactTextString(m) } -func (*WallPaper) ProtoMessage() {} -func (*WallPaper) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{612} +func (m *SecureRequiredType) Reset() { *m = SecureRequiredType{} } +func (m *SecureRequiredType) String() string { return proto.CompactTextString(m) } +func (*SecureRequiredType) ProtoMessage() {} +func (*SecureRequiredType) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{562} } -func (m *WallPaper) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WallPaper.Unmarshal(m, b) +func (m *SecureRequiredType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureRequiredType.Unmarshal(m, b) } -func (m *WallPaper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WallPaper.Marshal(b, m, deterministic) +func (m *SecureRequiredType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureRequiredType.Marshal(b, m, deterministic) } -func (dst *WallPaper) XXX_Merge(src proto.Message) { - xxx_messageInfo_WallPaper.Merge(dst, src) +func (dst *SecureRequiredType) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureRequiredType.Merge(dst, src) } -func (m *WallPaper) XXX_Size() int { - return xxx_messageInfo_WallPaper.Size(m) +func (m *SecureRequiredType) XXX_Size() int { + return xxx_messageInfo_SecureRequiredType.Size(m) } -func (m *WallPaper) XXX_DiscardUnknown() { - xxx_messageInfo_WallPaper.DiscardUnknown(m) +func (m *SecureRequiredType) XXX_DiscardUnknown() { + xxx_messageInfo_SecureRequiredType.DiscardUnknown(m) } -var xxx_messageInfo_WallPaper proto.InternalMessageInfo +var xxx_messageInfo_SecureRequiredType proto.InternalMessageInfo -func (m *WallPaper) GetConstructor() TLConstructor { +func (m *SecureRequiredType) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *WallPaper) GetData2() *WallPaper_Data { +func (m *SecureRequiredType) GetData2() *SecureRequiredType_Data { if m != nil { return m.Data2 } return nil } -// wallPaper#ccb03657 id:int title:string sizes:Vector color:int = WallPaper; -type TLWallPaper struct { - Data2 *WallPaper_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType; +type TLSecureRequiredType struct { + Data2 *SecureRequiredType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLWallPaper) Reset() { *m = TLWallPaper{} } -func (m *TLWallPaper) String() string { return proto.CompactTextString(m) } -func (*TLWallPaper) ProtoMessage() {} -func (*TLWallPaper) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{613} +func (m *TLSecureRequiredType) Reset() { *m = TLSecureRequiredType{} } +func (m *TLSecureRequiredType) String() string { return proto.CompactTextString(m) } +func (*TLSecureRequiredType) ProtoMessage() {} +func (*TLSecureRequiredType) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{563} } -func (m *TLWallPaper) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLWallPaper.Unmarshal(m, b) +func (m *TLSecureRequiredType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureRequiredType.Unmarshal(m, b) } -func (m *TLWallPaper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLWallPaper.Marshal(b, m, deterministic) +func (m *TLSecureRequiredType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureRequiredType.Marshal(b, m, deterministic) } -func (dst *TLWallPaper) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLWallPaper.Merge(dst, src) +func (dst *TLSecureRequiredType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureRequiredType.Merge(dst, src) } -func (m *TLWallPaper) XXX_Size() int { - return xxx_messageInfo_TLWallPaper.Size(m) +func (m *TLSecureRequiredType) XXX_Size() int { + return xxx_messageInfo_TLSecureRequiredType.Size(m) } -func (m *TLWallPaper) XXX_DiscardUnknown() { - xxx_messageInfo_TLWallPaper.DiscardUnknown(m) +func (m *TLSecureRequiredType) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureRequiredType.DiscardUnknown(m) } -var xxx_messageInfo_TLWallPaper proto.InternalMessageInfo +var xxx_messageInfo_TLSecureRequiredType proto.InternalMessageInfo -func (m *TLWallPaper) GetData2() *WallPaper_Data { +func (m *TLSecureRequiredType) GetData2() *SecureRequiredType_Data { if m != nil { return m.Data2 } return nil } -// wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper; -type TLWallPaperSolid struct { - Data2 *WallPaper_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureRequiredTypeOneOf#27477b4 types:Vector = SecureRequiredType; +type TLSecureRequiredTypeOneOf struct { + Data2 *SecureRequiredType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLWallPaperSolid) Reset() { *m = TLWallPaperSolid{} } -func (m *TLWallPaperSolid) String() string { return proto.CompactTextString(m) } -func (*TLWallPaperSolid) ProtoMessage() {} -func (*TLWallPaperSolid) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{614} +func (m *TLSecureRequiredTypeOneOf) Reset() { *m = TLSecureRequiredTypeOneOf{} } +func (m *TLSecureRequiredTypeOneOf) String() string { return proto.CompactTextString(m) } +func (*TLSecureRequiredTypeOneOf) ProtoMessage() {} +func (*TLSecureRequiredTypeOneOf) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{564} } -func (m *TLWallPaperSolid) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLWallPaperSolid.Unmarshal(m, b) +func (m *TLSecureRequiredTypeOneOf) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureRequiredTypeOneOf.Unmarshal(m, b) } -func (m *TLWallPaperSolid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLWallPaperSolid.Marshal(b, m, deterministic) +func (m *TLSecureRequiredTypeOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureRequiredTypeOneOf.Marshal(b, m, deterministic) } -func (dst *TLWallPaperSolid) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLWallPaperSolid.Merge(dst, src) +func (dst *TLSecureRequiredTypeOneOf) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureRequiredTypeOneOf.Merge(dst, src) } -func (m *TLWallPaperSolid) XXX_Size() int { - return xxx_messageInfo_TLWallPaperSolid.Size(m) +func (m *TLSecureRequiredTypeOneOf) XXX_Size() int { + return xxx_messageInfo_TLSecureRequiredTypeOneOf.Size(m) } -func (m *TLWallPaperSolid) XXX_DiscardUnknown() { - xxx_messageInfo_TLWallPaperSolid.DiscardUnknown(m) +func (m *TLSecureRequiredTypeOneOf) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureRequiredTypeOneOf.DiscardUnknown(m) } -var xxx_messageInfo_TLWallPaperSolid proto.InternalMessageInfo +var xxx_messageInfo_TLSecureRequiredTypeOneOf proto.InternalMessageInfo -func (m *TLWallPaperSolid) GetData2() *WallPaper_Data { +func (m *TLSecureRequiredTypeOneOf) GetData2() *SecureRequiredType_Data { if m != nil { return m.Data2 } @@ -29439,692 +28099,660 @@ func (m *TLWallPaperSolid) GetData2() *WallPaper_Data { } // ///////////////////////////////////////////////////////////////////////////// -// DcOption <-- -// + TL_dcOption +// Message <-- +// + TL_messageEmpty +// + TL_message +// + TL_messageService // -type DcOption_Data struct { - Ipv6 bool `protobuf:"varint,1,opt,name=ipv6,proto3" json:"ipv6,omitempty"` - MediaOnly bool `protobuf:"varint,2,opt,name=media_only,json=mediaOnly,proto3" json:"media_only,omitempty"` - TcpoOnly bool `protobuf:"varint,3,opt,name=tcpo_only,json=tcpoOnly,proto3" json:"tcpo_only,omitempty"` - Cdn bool `protobuf:"varint,4,opt,name=cdn,proto3" json:"cdn,omitempty"` - Static bool `protobuf:"varint,5,opt,name=static,proto3" json:"static,omitempty"` - Id int32 `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"` - IpAddress string `protobuf:"bytes,7,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - Port int32 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"` - Secret []byte `protobuf:"bytes,9,opt,name=secret,proto3" json:"secret,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Message_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Out bool `protobuf:"varint,2,opt,name=out,proto3" json:"out,omitempty"` + Mentioned bool `protobuf:"varint,3,opt,name=mentioned,proto3" json:"mentioned,omitempty"` + MediaUnread bool `protobuf:"varint,4,opt,name=media_unread,json=mediaUnread,proto3" json:"media_unread,omitempty"` + Silent bool `protobuf:"varint,5,opt,name=silent,proto3" json:"silent,omitempty"` + Post bool `protobuf:"varint,6,opt,name=post,proto3" json:"post,omitempty"` + FromId int32 `protobuf:"varint,7,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` + ToId *Peer `protobuf:"bytes,8,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` + FwdFrom *MessageFwdHeader `protobuf:"bytes,9,opt,name=fwd_from,json=fwdFrom,proto3" json:"fwd_from,omitempty"` + ViaBotId int32 `protobuf:"varint,10,opt,name=via_bot_id,json=viaBotId,proto3" json:"via_bot_id,omitempty"` + ReplyToMsgId int32 `protobuf:"varint,11,opt,name=reply_to_msg_id,json=replyToMsgId,proto3" json:"reply_to_msg_id,omitempty"` + Date int32 `protobuf:"varint,12,opt,name=date,proto3" json:"date,omitempty"` + Message string `protobuf:"bytes,13,opt,name=message,proto3" json:"message,omitempty"` + Media *MessageMedia `protobuf:"bytes,14,opt,name=media,proto3" json:"media,omitempty"` + ReplyMarkup *ReplyMarkup `protobuf:"bytes,15,opt,name=reply_markup,json=replyMarkup,proto3" json:"reply_markup,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,16,rep,name=entities,proto3" json:"entities,omitempty"` + Views int32 `protobuf:"varint,17,opt,name=views,proto3" json:"views,omitempty"` + EditDate int32 `protobuf:"varint,18,opt,name=edit_date,json=editDate,proto3" json:"edit_date,omitempty"` + PostAuthor string `protobuf:"bytes,19,opt,name=post_author,json=postAuthor,proto3" json:"post_author,omitempty"` + GroupedId int64 `protobuf:"varint,20,opt,name=grouped_id,json=groupedId,proto3" json:"grouped_id,omitempty"` + Action *MessageAction `protobuf:"bytes,21,opt,name=action,proto3" json:"action,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DcOption_Data) Reset() { *m = DcOption_Data{} } -func (m *DcOption_Data) String() string { return proto.CompactTextString(m) } -func (*DcOption_Data) ProtoMessage() {} -func (*DcOption_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{615} +func (m *Message_Data) Reset() { *m = Message_Data{} } +func (m *Message_Data) String() string { return proto.CompactTextString(m) } +func (*Message_Data) ProtoMessage() {} +func (*Message_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{565} } -func (m *DcOption_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DcOption_Data.Unmarshal(m, b) +func (m *Message_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Message_Data.Unmarshal(m, b) } -func (m *DcOption_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DcOption_Data.Marshal(b, m, deterministic) +func (m *Message_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Message_Data.Marshal(b, m, deterministic) } -func (dst *DcOption_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_DcOption_Data.Merge(dst, src) +func (dst *Message_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Message_Data.Merge(dst, src) } -func (m *DcOption_Data) XXX_Size() int { - return xxx_messageInfo_DcOption_Data.Size(m) +func (m *Message_Data) XXX_Size() int { + return xxx_messageInfo_Message_Data.Size(m) } -func (m *DcOption_Data) XXX_DiscardUnknown() { - xxx_messageInfo_DcOption_Data.DiscardUnknown(m) +func (m *Message_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Message_Data.DiscardUnknown(m) } -var xxx_messageInfo_DcOption_Data proto.InternalMessageInfo +var xxx_messageInfo_Message_Data proto.InternalMessageInfo -func (m *DcOption_Data) GetIpv6() bool { +func (m *Message_Data) GetId() int32 { if m != nil { - return m.Ipv6 + return m.Id } - return false + return 0 } -func (m *DcOption_Data) GetMediaOnly() bool { +func (m *Message_Data) GetOut() bool { if m != nil { - return m.MediaOnly + return m.Out } return false } -func (m *DcOption_Data) GetTcpoOnly() bool { +func (m *Message_Data) GetMentioned() bool { if m != nil { - return m.TcpoOnly + return m.Mentioned } return false } -func (m *DcOption_Data) GetCdn() bool { +func (m *Message_Data) GetMediaUnread() bool { if m != nil { - return m.Cdn + return m.MediaUnread } return false } -func (m *DcOption_Data) GetStatic() bool { +func (m *Message_Data) GetSilent() bool { if m != nil { - return m.Static + return m.Silent } return false } -func (m *DcOption_Data) GetId() int32 { +func (m *Message_Data) GetPost() bool { if m != nil { - return m.Id + return m.Post } - return 0 + return false } -func (m *DcOption_Data) GetIpAddress() string { +func (m *Message_Data) GetFromId() int32 { if m != nil { - return m.IpAddress + return m.FromId } - return "" + return 0 } -func (m *DcOption_Data) GetPort() int32 { +func (m *Message_Data) GetToId() *Peer { if m != nil { - return m.Port + return m.ToId } - return 0 + return nil } -func (m *DcOption_Data) GetSecret() []byte { +func (m *Message_Data) GetFwdFrom() *MessageFwdHeader { if m != nil { - return m.Secret + return m.FwdFrom } return nil } -type DcOption struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *DcOption_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Message_Data) GetViaBotId() int32 { + if m != nil { + return m.ViaBotId + } + return 0 } -func (m *DcOption) Reset() { *m = DcOption{} } -func (m *DcOption) String() string { return proto.CompactTextString(m) } -func (*DcOption) ProtoMessage() {} -func (*DcOption) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{616} -} -func (m *DcOption) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DcOption.Unmarshal(m, b) -} -func (m *DcOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DcOption.Marshal(b, m, deterministic) -} -func (dst *DcOption) XXX_Merge(src proto.Message) { - xxx_messageInfo_DcOption.Merge(dst, src) -} -func (m *DcOption) XXX_Size() int { - return xxx_messageInfo_DcOption.Size(m) -} -func (m *DcOption) XXX_DiscardUnknown() { - xxx_messageInfo_DcOption.DiscardUnknown(m) +func (m *Message_Data) GetReplyToMsgId() int32 { + if m != nil { + return m.ReplyToMsgId + } + return 0 } -var xxx_messageInfo_DcOption proto.InternalMessageInfo - -func (m *DcOption) GetConstructor() TLConstructor { +func (m *Message_Data) GetDate() int32 { if m != nil { - return m.Constructor + return m.Date } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *DcOption) GetData2() *DcOption_Data { +func (m *Message_Data) GetMessage() string { if m != nil { - return m.Data2 + return m.Message } - return nil + return "" } -// dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption; -type TLDcOption struct { - Data2 *DcOption_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Message_Data) GetMedia() *MessageMedia { + if m != nil { + return m.Media + } + return nil } -func (m *TLDcOption) Reset() { *m = TLDcOption{} } -func (m *TLDcOption) String() string { return proto.CompactTextString(m) } -func (*TLDcOption) ProtoMessage() {} -func (*TLDcOption) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{617} -} -func (m *TLDcOption) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDcOption.Unmarshal(m, b) -} -func (m *TLDcOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDcOption.Marshal(b, m, deterministic) -} -func (dst *TLDcOption) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDcOption.Merge(dst, src) -} -func (m *TLDcOption) XXX_Size() int { - return xxx_messageInfo_TLDcOption.Size(m) -} -func (m *TLDcOption) XXX_DiscardUnknown() { - xxx_messageInfo_TLDcOption.DiscardUnknown(m) +func (m *Message_Data) GetReplyMarkup() *ReplyMarkup { + if m != nil { + return m.ReplyMarkup + } + return nil } -var xxx_messageInfo_TLDcOption proto.InternalMessageInfo - -func (m *TLDcOption) GetData2() *DcOption_Data { +func (m *Message_Data) GetEntities() []*MessageEntity { if m != nil { - return m.Data2 + return m.Entities } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_SentEncryptedMessage <-- -// + TL_messages_sentEncryptedMessage -// + TL_messages_sentEncryptedFile -// -type Messages_SentEncryptedMessage_Data struct { - Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` - File *EncryptedFile `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Message_Data) GetViews() int32 { + if m != nil { + return m.Views + } + return 0 } -func (m *Messages_SentEncryptedMessage_Data) Reset() { *m = Messages_SentEncryptedMessage_Data{} } -func (m *Messages_SentEncryptedMessage_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_SentEncryptedMessage_Data) ProtoMessage() {} -func (*Messages_SentEncryptedMessage_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{618} -} -func (m *Messages_SentEncryptedMessage_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_SentEncryptedMessage_Data.Unmarshal(m, b) -} -func (m *Messages_SentEncryptedMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_SentEncryptedMessage_Data.Marshal(b, m, deterministic) -} -func (dst *Messages_SentEncryptedMessage_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_SentEncryptedMessage_Data.Merge(dst, src) -} -func (m *Messages_SentEncryptedMessage_Data) XXX_Size() int { - return xxx_messageInfo_Messages_SentEncryptedMessage_Data.Size(m) -} -func (m *Messages_SentEncryptedMessage_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_SentEncryptedMessage_Data.DiscardUnknown(m) +func (m *Message_Data) GetEditDate() int32 { + if m != nil { + return m.EditDate + } + return 0 } -var xxx_messageInfo_Messages_SentEncryptedMessage_Data proto.InternalMessageInfo +func (m *Message_Data) GetPostAuthor() string { + if m != nil { + return m.PostAuthor + } + return "" +} -func (m *Messages_SentEncryptedMessage_Data) GetDate() int32 { +func (m *Message_Data) GetGroupedId() int64 { if m != nil { - return m.Date + return m.GroupedId } return 0 } -func (m *Messages_SentEncryptedMessage_Data) GetFile() *EncryptedFile { +func (m *Message_Data) GetAction() *MessageAction { if m != nil { - return m.File + return m.Action } return nil } -type Messages_SentEncryptedMessage struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_SentEncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Message struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Message_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_SentEncryptedMessage) Reset() { *m = Messages_SentEncryptedMessage{} } -func (m *Messages_SentEncryptedMessage) String() string { return proto.CompactTextString(m) } -func (*Messages_SentEncryptedMessage) ProtoMessage() {} -func (*Messages_SentEncryptedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{619} +func (m *Message) Reset() { *m = Message{} } +func (m *Message) String() string { return proto.CompactTextString(m) } +func (*Message) ProtoMessage() {} +func (*Message) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{566} } -func (m *Messages_SentEncryptedMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_SentEncryptedMessage.Unmarshal(m, b) +func (m *Message) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Message.Unmarshal(m, b) } -func (m *Messages_SentEncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_SentEncryptedMessage.Marshal(b, m, deterministic) +func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Message.Marshal(b, m, deterministic) } -func (dst *Messages_SentEncryptedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_SentEncryptedMessage.Merge(dst, src) +func (dst *Message) XXX_Merge(src proto.Message) { + xxx_messageInfo_Message.Merge(dst, src) } -func (m *Messages_SentEncryptedMessage) XXX_Size() int { - return xxx_messageInfo_Messages_SentEncryptedMessage.Size(m) +func (m *Message) XXX_Size() int { + return xxx_messageInfo_Message.Size(m) } -func (m *Messages_SentEncryptedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_SentEncryptedMessage.DiscardUnknown(m) +func (m *Message) XXX_DiscardUnknown() { + xxx_messageInfo_Message.DiscardUnknown(m) } -var xxx_messageInfo_Messages_SentEncryptedMessage proto.InternalMessageInfo +var xxx_messageInfo_Message proto.InternalMessageInfo -func (m *Messages_SentEncryptedMessage) GetConstructor() TLConstructor { +func (m *Message) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_SentEncryptedMessage) GetData2() *Messages_SentEncryptedMessage_Data { +func (m *Message) GetData2() *Message_Data { if m != nil { return m.Data2 } return nil } -// messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage; -type TLMessagesSentEncryptedMessage struct { - Data2 *Messages_SentEncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageEmpty#83e5de54 id:int = Message; +type TLMessageEmpty struct { + Data2 *Message_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesSentEncryptedMessage) Reset() { *m = TLMessagesSentEncryptedMessage{} } -func (m *TLMessagesSentEncryptedMessage) String() string { return proto.CompactTextString(m) } -func (*TLMessagesSentEncryptedMessage) ProtoMessage() {} -func (*TLMessagesSentEncryptedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{620} +func (m *TLMessageEmpty) Reset() { *m = TLMessageEmpty{} } +func (m *TLMessageEmpty) String() string { return proto.CompactTextString(m) } +func (*TLMessageEmpty) ProtoMessage() {} +func (*TLMessageEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{567} } -func (m *TLMessagesSentEncryptedMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesSentEncryptedMessage.Unmarshal(m, b) +func (m *TLMessageEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageEmpty.Unmarshal(m, b) } -func (m *TLMessagesSentEncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesSentEncryptedMessage.Marshal(b, m, deterministic) +func (m *TLMessageEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageEmpty.Marshal(b, m, deterministic) } -func (dst *TLMessagesSentEncryptedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesSentEncryptedMessage.Merge(dst, src) +func (dst *TLMessageEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageEmpty.Merge(dst, src) } -func (m *TLMessagesSentEncryptedMessage) XXX_Size() int { - return xxx_messageInfo_TLMessagesSentEncryptedMessage.Size(m) +func (m *TLMessageEmpty) XXX_Size() int { + return xxx_messageInfo_TLMessageEmpty.Size(m) } -func (m *TLMessagesSentEncryptedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesSentEncryptedMessage.DiscardUnknown(m) +func (m *TLMessageEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesSentEncryptedMessage proto.InternalMessageInfo +var xxx_messageInfo_TLMessageEmpty proto.InternalMessageInfo -func (m *TLMessagesSentEncryptedMessage) GetData2() *Messages_SentEncryptedMessage_Data { +func (m *TLMessageEmpty) GetData2() *Message_Data { if m != nil { return m.Data2 } return nil } -// messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage; -type TLMessagesSentEncryptedFile struct { - Data2 *Messages_SentEncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// message#44f9b43d flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long = Message; +type TLMessage struct { + Data2 *Message_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesSentEncryptedFile) Reset() { *m = TLMessagesSentEncryptedFile{} } -func (m *TLMessagesSentEncryptedFile) String() string { return proto.CompactTextString(m) } -func (*TLMessagesSentEncryptedFile) ProtoMessage() {} -func (*TLMessagesSentEncryptedFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{621} +func (m *TLMessage) Reset() { *m = TLMessage{} } +func (m *TLMessage) String() string { return proto.CompactTextString(m) } +func (*TLMessage) ProtoMessage() {} +func (*TLMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{568} } -func (m *TLMessagesSentEncryptedFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesSentEncryptedFile.Unmarshal(m, b) +func (m *TLMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessage.Unmarshal(m, b) } -func (m *TLMessagesSentEncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesSentEncryptedFile.Marshal(b, m, deterministic) +func (m *TLMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessage.Marshal(b, m, deterministic) } -func (dst *TLMessagesSentEncryptedFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesSentEncryptedFile.Merge(dst, src) +func (dst *TLMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessage.Merge(dst, src) } -func (m *TLMessagesSentEncryptedFile) XXX_Size() int { - return xxx_messageInfo_TLMessagesSentEncryptedFile.Size(m) +func (m *TLMessage) XXX_Size() int { + return xxx_messageInfo_TLMessage.Size(m) } -func (m *TLMessagesSentEncryptedFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesSentEncryptedFile.DiscardUnknown(m) +func (m *TLMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesSentEncryptedFile proto.InternalMessageInfo +var xxx_messageInfo_TLMessage proto.InternalMessageInfo -func (m *TLMessagesSentEncryptedFile) GetData2() *Messages_SentEncryptedMessage_Data { +func (m *TLMessage) GetData2() *Message_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputBotInlineResult <-- -// + TL_inputBotInlineResult -// + TL_inputBotInlineResultPhoto -// + TL_inputBotInlineResultDocument -// + TL_inputBotInlineResultGame -// -type InputBotInlineResult_Data struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` - Thumb *InputWebDocument `protobuf:"bytes,6,opt,name=thumb,proto3" json:"thumb,omitempty"` - Content *InputWebDocument `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` - SendMessage *InputBotInlineMessage `protobuf:"bytes,8,opt,name=send_message,json=sendMessage,proto3" json:"send_message,omitempty"` - Photo *InputPhoto `protobuf:"bytes,9,opt,name=photo,proto3" json:"photo,omitempty"` - Document *InputDocument `protobuf:"bytes,10,opt,name=document,proto3" json:"document,omitempty"` - ShortName string `protobuf:"bytes,11,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageService#9e19a1f6 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer reply_to_msg_id:flags.3?int date:int action:MessageAction = Message; +type TLMessageService struct { + Data2 *Message_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputBotInlineResult_Data) Reset() { *m = InputBotInlineResult_Data{} } -func (m *InputBotInlineResult_Data) String() string { return proto.CompactTextString(m) } -func (*InputBotInlineResult_Data) ProtoMessage() {} -func (*InputBotInlineResult_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{622} +func (m *TLMessageService) Reset() { *m = TLMessageService{} } +func (m *TLMessageService) String() string { return proto.CompactTextString(m) } +func (*TLMessageService) ProtoMessage() {} +func (*TLMessageService) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{569} } -func (m *InputBotInlineResult_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputBotInlineResult_Data.Unmarshal(m, b) +func (m *TLMessageService) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageService.Unmarshal(m, b) } -func (m *InputBotInlineResult_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputBotInlineResult_Data.Marshal(b, m, deterministic) +func (m *TLMessageService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageService.Marshal(b, m, deterministic) } -func (dst *InputBotInlineResult_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputBotInlineResult_Data.Merge(dst, src) +func (dst *TLMessageService) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageService.Merge(dst, src) } -func (m *InputBotInlineResult_Data) XXX_Size() int { - return xxx_messageInfo_InputBotInlineResult_Data.Size(m) +func (m *TLMessageService) XXX_Size() int { + return xxx_messageInfo_TLMessageService.Size(m) } -func (m *InputBotInlineResult_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputBotInlineResult_Data.DiscardUnknown(m) +func (m *TLMessageService) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageService.DiscardUnknown(m) } -var xxx_messageInfo_InputBotInlineResult_Data proto.InternalMessageInfo +var xxx_messageInfo_TLMessageService proto.InternalMessageInfo -func (m *InputBotInlineResult_Data) GetId() string { +func (m *TLMessageService) GetData2() *Message_Data { if m != nil { - return m.Id + return m.Data2 } - return "" + return nil } -func (m *InputBotInlineResult_Data) GetType() string { - if m != nil { - return m.Type - } - return "" +// ///////////////////////////////////////////////////////////////////////////// +// messages_PeerDialogs <-- +// + TL_messages_peerDialogs +// +type Messages_PeerDialogs_Data struct { + Dialogs []*Dialog `protobuf:"bytes,1,rep,name=dialogs,proto3" json:"dialogs,omitempty"` + Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` + Chats []*Chat `protobuf:"bytes,3,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` + State *Updates_State `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputBotInlineResult_Data) GetTitle() string { - if m != nil { - return m.Title - } - return "" +func (m *Messages_PeerDialogs_Data) Reset() { *m = Messages_PeerDialogs_Data{} } +func (m *Messages_PeerDialogs_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_PeerDialogs_Data) ProtoMessage() {} +func (*Messages_PeerDialogs_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{570} } - -func (m *InputBotInlineResult_Data) GetDescription() string { - if m != nil { - return m.Description - } - return "" +func (m *Messages_PeerDialogs_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_PeerDialogs_Data.Unmarshal(m, b) } - -func (m *InputBotInlineResult_Data) GetUrl() string { - if m != nil { - return m.Url - } - return "" +func (m *Messages_PeerDialogs_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_PeerDialogs_Data.Marshal(b, m, deterministic) } - -func (m *InputBotInlineResult_Data) GetThumb() *InputWebDocument { - if m != nil { - return m.Thumb - } - return nil +func (dst *Messages_PeerDialogs_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_PeerDialogs_Data.Merge(dst, src) +} +func (m *Messages_PeerDialogs_Data) XXX_Size() int { + return xxx_messageInfo_Messages_PeerDialogs_Data.Size(m) +} +func (m *Messages_PeerDialogs_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_PeerDialogs_Data.DiscardUnknown(m) } -func (m *InputBotInlineResult_Data) GetContent() *InputWebDocument { +var xxx_messageInfo_Messages_PeerDialogs_Data proto.InternalMessageInfo + +func (m *Messages_PeerDialogs_Data) GetDialogs() []*Dialog { if m != nil { - return m.Content + return m.Dialogs } return nil } -func (m *InputBotInlineResult_Data) GetSendMessage() *InputBotInlineMessage { +func (m *Messages_PeerDialogs_Data) GetMessages() []*Message { if m != nil { - return m.SendMessage + return m.Messages } return nil } -func (m *InputBotInlineResult_Data) GetPhoto() *InputPhoto { +func (m *Messages_PeerDialogs_Data) GetChats() []*Chat { if m != nil { - return m.Photo + return m.Chats } return nil } -func (m *InputBotInlineResult_Data) GetDocument() *InputDocument { +func (m *Messages_PeerDialogs_Data) GetUsers() []*User { if m != nil { - return m.Document + return m.Users } return nil } -func (m *InputBotInlineResult_Data) GetShortName() string { +func (m *Messages_PeerDialogs_Data) GetState() *Updates_State { if m != nil { - return m.ShortName + return m.State } - return "" + return nil } -type InputBotInlineResult struct { +type Messages_PeerDialogs struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + Data2 *Messages_PeerDialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *InputBotInlineResult) Reset() { *m = InputBotInlineResult{} } -func (m *InputBotInlineResult) String() string { return proto.CompactTextString(m) } -func (*InputBotInlineResult) ProtoMessage() {} -func (*InputBotInlineResult) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{623} +func (m *Messages_PeerDialogs) Reset() { *m = Messages_PeerDialogs{} } +func (m *Messages_PeerDialogs) String() string { return proto.CompactTextString(m) } +func (*Messages_PeerDialogs) ProtoMessage() {} +func (*Messages_PeerDialogs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{571} } -func (m *InputBotInlineResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputBotInlineResult.Unmarshal(m, b) +func (m *Messages_PeerDialogs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_PeerDialogs.Unmarshal(m, b) } -func (m *InputBotInlineResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputBotInlineResult.Marshal(b, m, deterministic) +func (m *Messages_PeerDialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_PeerDialogs.Marshal(b, m, deterministic) } -func (dst *InputBotInlineResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputBotInlineResult.Merge(dst, src) +func (dst *Messages_PeerDialogs) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_PeerDialogs.Merge(dst, src) } -func (m *InputBotInlineResult) XXX_Size() int { - return xxx_messageInfo_InputBotInlineResult.Size(m) +func (m *Messages_PeerDialogs) XXX_Size() int { + return xxx_messageInfo_Messages_PeerDialogs.Size(m) } -func (m *InputBotInlineResult) XXX_DiscardUnknown() { - xxx_messageInfo_InputBotInlineResult.DiscardUnknown(m) +func (m *Messages_PeerDialogs) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_PeerDialogs.DiscardUnknown(m) } -var xxx_messageInfo_InputBotInlineResult proto.InternalMessageInfo +var xxx_messageInfo_Messages_PeerDialogs proto.InternalMessageInfo -func (m *InputBotInlineResult) GetConstructor() TLConstructor { +func (m *Messages_PeerDialogs) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputBotInlineResult) GetData2() *InputBotInlineResult_Data { +func (m *Messages_PeerDialogs) GetData2() *Messages_PeerDialogs_Data { if m != nil { return m.Data2 } return nil } -// inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult; -type TLInputBotInlineResult struct { - Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// messages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs; +type TLMessagesPeerDialogs struct { + Data2 *Messages_PeerDialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputBotInlineResult) Reset() { *m = TLInputBotInlineResult{} } -func (m *TLInputBotInlineResult) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineResult) ProtoMessage() {} -func (*TLInputBotInlineResult) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{624} +func (m *TLMessagesPeerDialogs) Reset() { *m = TLMessagesPeerDialogs{} } +func (m *TLMessagesPeerDialogs) String() string { return proto.CompactTextString(m) } +func (*TLMessagesPeerDialogs) ProtoMessage() {} +func (*TLMessagesPeerDialogs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{572} } -func (m *TLInputBotInlineResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineResult.Unmarshal(m, b) +func (m *TLMessagesPeerDialogs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesPeerDialogs.Unmarshal(m, b) } -func (m *TLInputBotInlineResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineResult.Marshal(b, m, deterministic) +func (m *TLMessagesPeerDialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesPeerDialogs.Marshal(b, m, deterministic) } -func (dst *TLInputBotInlineResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineResult.Merge(dst, src) +func (dst *TLMessagesPeerDialogs) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesPeerDialogs.Merge(dst, src) } -func (m *TLInputBotInlineResult) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineResult.Size(m) +func (m *TLMessagesPeerDialogs) XXX_Size() int { + return xxx_messageInfo_TLMessagesPeerDialogs.Size(m) } -func (m *TLInputBotInlineResult) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineResult.DiscardUnknown(m) +func (m *TLMessagesPeerDialogs) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesPeerDialogs.DiscardUnknown(m) } -var xxx_messageInfo_TLInputBotInlineResult proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesPeerDialogs proto.InternalMessageInfo -func (m *TLInputBotInlineResult) GetData2() *InputBotInlineResult_Data { +func (m *TLMessagesPeerDialogs) GetData2() *Messages_PeerDialogs_Data { if m != nil { return m.Data2 } return nil } -// inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult; -type TLInputBotInlineResultPhoto struct { - Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// PaymentCharge <-- +// + TL_paymentCharge +// +type PaymentCharge_Data struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProviderChargeId string `protobuf:"bytes,2,opt,name=provider_charge_id,json=providerChargeId,proto3" json:"provider_charge_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputBotInlineResultPhoto) Reset() { *m = TLInputBotInlineResultPhoto{} } -func (m *TLInputBotInlineResultPhoto) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineResultPhoto) ProtoMessage() {} -func (*TLInputBotInlineResultPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{625} +func (m *PaymentCharge_Data) Reset() { *m = PaymentCharge_Data{} } +func (m *PaymentCharge_Data) String() string { return proto.CompactTextString(m) } +func (*PaymentCharge_Data) ProtoMessage() {} +func (*PaymentCharge_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{573} } -func (m *TLInputBotInlineResultPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineResultPhoto.Unmarshal(m, b) +func (m *PaymentCharge_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PaymentCharge_Data.Unmarshal(m, b) } -func (m *TLInputBotInlineResultPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineResultPhoto.Marshal(b, m, deterministic) +func (m *PaymentCharge_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PaymentCharge_Data.Marshal(b, m, deterministic) } -func (dst *TLInputBotInlineResultPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineResultPhoto.Merge(dst, src) +func (dst *PaymentCharge_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PaymentCharge_Data.Merge(dst, src) } -func (m *TLInputBotInlineResultPhoto) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineResultPhoto.Size(m) +func (m *PaymentCharge_Data) XXX_Size() int { + return xxx_messageInfo_PaymentCharge_Data.Size(m) } -func (m *TLInputBotInlineResultPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineResultPhoto.DiscardUnknown(m) +func (m *PaymentCharge_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PaymentCharge_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputBotInlineResultPhoto proto.InternalMessageInfo +var xxx_messageInfo_PaymentCharge_Data proto.InternalMessageInfo -func (m *TLInputBotInlineResultPhoto) GetData2() *InputBotInlineResult_Data { +func (m *PaymentCharge_Data) GetId() string { if m != nil { - return m.Data2 + return m.Id } - return nil + return "" } -// inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult; -type TLInputBotInlineResultDocument struct { - Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PaymentCharge_Data) GetProviderChargeId() string { + if m != nil { + return m.ProviderChargeId + } + return "" } -func (m *TLInputBotInlineResultDocument) Reset() { *m = TLInputBotInlineResultDocument{} } -func (m *TLInputBotInlineResultDocument) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineResultDocument) ProtoMessage() {} -func (*TLInputBotInlineResultDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{626} +type PaymentCharge struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PaymentCharge_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputBotInlineResultDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineResultDocument.Unmarshal(m, b) + +func (m *PaymentCharge) Reset() { *m = PaymentCharge{} } +func (m *PaymentCharge) String() string { return proto.CompactTextString(m) } +func (*PaymentCharge) ProtoMessage() {} +func (*PaymentCharge) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{574} } -func (m *TLInputBotInlineResultDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineResultDocument.Marshal(b, m, deterministic) +func (m *PaymentCharge) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PaymentCharge.Unmarshal(m, b) } -func (dst *TLInputBotInlineResultDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineResultDocument.Merge(dst, src) +func (m *PaymentCharge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PaymentCharge.Marshal(b, m, deterministic) } -func (m *TLInputBotInlineResultDocument) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineResultDocument.Size(m) +func (dst *PaymentCharge) XXX_Merge(src proto.Message) { + xxx_messageInfo_PaymentCharge.Merge(dst, src) } -func (m *TLInputBotInlineResultDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineResultDocument.DiscardUnknown(m) +func (m *PaymentCharge) XXX_Size() int { + return xxx_messageInfo_PaymentCharge.Size(m) +} +func (m *PaymentCharge) XXX_DiscardUnknown() { + xxx_messageInfo_PaymentCharge.DiscardUnknown(m) } -var xxx_messageInfo_TLInputBotInlineResultDocument proto.InternalMessageInfo +var xxx_messageInfo_PaymentCharge proto.InternalMessageInfo -func (m *TLInputBotInlineResultDocument) GetData2() *InputBotInlineResult_Data { +func (m *PaymentCharge) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *PaymentCharge) GetData2() *PaymentCharge_Data { if m != nil { return m.Data2 } return nil } -// inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult; -type TLInputBotInlineResultGame struct { - Data2 *InputBotInlineResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; +type TLPaymentCharge struct { + Data2 *PaymentCharge_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputBotInlineResultGame) Reset() { *m = TLInputBotInlineResultGame{} } -func (m *TLInputBotInlineResultGame) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineResultGame) ProtoMessage() {} -func (*TLInputBotInlineResultGame) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{627} +func (m *TLPaymentCharge) Reset() { *m = TLPaymentCharge{} } +func (m *TLPaymentCharge) String() string { return proto.CompactTextString(m) } +func (*TLPaymentCharge) ProtoMessage() {} +func (*TLPaymentCharge) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{575} } -func (m *TLInputBotInlineResultGame) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineResultGame.Unmarshal(m, b) +func (m *TLPaymentCharge) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPaymentCharge.Unmarshal(m, b) } -func (m *TLInputBotInlineResultGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineResultGame.Marshal(b, m, deterministic) +func (m *TLPaymentCharge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPaymentCharge.Marshal(b, m, deterministic) } -func (dst *TLInputBotInlineResultGame) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineResultGame.Merge(dst, src) +func (dst *TLPaymentCharge) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPaymentCharge.Merge(dst, src) } -func (m *TLInputBotInlineResultGame) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineResultGame.Size(m) +func (m *TLPaymentCharge) XXX_Size() int { + return xxx_messageInfo_TLPaymentCharge.Size(m) } -func (m *TLInputBotInlineResultGame) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineResultGame.DiscardUnknown(m) +func (m *TLPaymentCharge) XXX_DiscardUnknown() { + xxx_messageInfo_TLPaymentCharge.DiscardUnknown(m) } -var xxx_messageInfo_TLInputBotInlineResultGame proto.InternalMessageInfo +var xxx_messageInfo_TLPaymentCharge proto.InternalMessageInfo -func (m *TLInputBotInlineResultGame) GetData2() *InputBotInlineResult_Data { +func (m *TLPaymentCharge) GetData2() *PaymentCharge_Data { if m != nil { return m.Data2 } @@ -30132,445 +28760,494 @@ func (m *TLInputBotInlineResultGame) GetData2() *InputBotInlineResult_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PhoneCallDiscardReason <-- -// + TL_phoneCallDiscardReasonMissed -// + TL_phoneCallDiscardReasonDisconnect -// + TL_phoneCallDiscardReasonHangup -// + TL_phoneCallDiscardReasonBusy +// Chat <-- +// + TL_chatEmpty +// + TL_chat +// + TL_chatForbidden +// + TL_channel +// + TL_channelForbidden // -type PhoneCallDiscardReason_Data struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Chat_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Creator bool `protobuf:"varint,2,opt,name=creator,proto3" json:"creator,omitempty"` + Kicked bool `protobuf:"varint,3,opt,name=kicked,proto3" json:"kicked,omitempty"` + Left bool `protobuf:"varint,4,opt,name=left,proto3" json:"left,omitempty"` + AdminsEnabled bool `protobuf:"varint,5,opt,name=admins_enabled,json=adminsEnabled,proto3" json:"admins_enabled,omitempty"` + Admin bool `protobuf:"varint,6,opt,name=admin,proto3" json:"admin,omitempty"` + Deactivated bool `protobuf:"varint,7,opt,name=deactivated,proto3" json:"deactivated,omitempty"` + Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` + Photo *ChatPhoto `protobuf:"bytes,9,opt,name=photo,proto3" json:"photo,omitempty"` + ParticipantsCount int32 `protobuf:"varint,10,opt,name=participants_count,json=participantsCount,proto3" json:"participants_count,omitempty"` + Date int32 `protobuf:"varint,11,opt,name=date,proto3" json:"date,omitempty"` + Version int32 `protobuf:"varint,12,opt,name=version,proto3" json:"version,omitempty"` + MigratedTo *InputChannel `protobuf:"bytes,13,opt,name=migrated_to,json=migratedTo,proto3" json:"migrated_to,omitempty"` + Editor bool `protobuf:"varint,14,opt,name=editor,proto3" json:"editor,omitempty"` + Broadcast bool `protobuf:"varint,15,opt,name=broadcast,proto3" json:"broadcast,omitempty"` + Verified bool `protobuf:"varint,16,opt,name=verified,proto3" json:"verified,omitempty"` + Megagroup bool `protobuf:"varint,17,opt,name=megagroup,proto3" json:"megagroup,omitempty"` + Restricted bool `protobuf:"varint,18,opt,name=restricted,proto3" json:"restricted,omitempty"` + Democracy bool `protobuf:"varint,19,opt,name=democracy,proto3" json:"democracy,omitempty"` + Signatures bool `protobuf:"varint,20,opt,name=signatures,proto3" json:"signatures,omitempty"` + Min bool `protobuf:"varint,21,opt,name=min,proto3" json:"min,omitempty"` + AccessHash int64 `protobuf:"varint,22,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + Username string `protobuf:"bytes,23,opt,name=username,proto3" json:"username,omitempty"` + RestrictionReason string `protobuf:"bytes,24,opt,name=restriction_reason,json=restrictionReason,proto3" json:"restriction_reason,omitempty"` + AdminRights *ChannelAdminRights `protobuf:"bytes,25,opt,name=admin_rights,json=adminRights,proto3" json:"admin_rights,omitempty"` + BannedRights *ChannelBannedRights `protobuf:"bytes,26,opt,name=banned_rights,json=bannedRights,proto3" json:"banned_rights,omitempty"` + UntilDate int32 `protobuf:"varint,27,opt,name=until_date,json=untilDate,proto3" json:"until_date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PhoneCallDiscardReason_Data) Reset() { *m = PhoneCallDiscardReason_Data{} } -func (m *PhoneCallDiscardReason_Data) String() string { return proto.CompactTextString(m) } -func (*PhoneCallDiscardReason_Data) ProtoMessage() {} -func (*PhoneCallDiscardReason_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{628} +func (m *Chat_Data) Reset() { *m = Chat_Data{} } +func (m *Chat_Data) String() string { return proto.CompactTextString(m) } +func (*Chat_Data) ProtoMessage() {} +func (*Chat_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{576} } -func (m *PhoneCallDiscardReason_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneCallDiscardReason_Data.Unmarshal(m, b) +func (m *Chat_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Chat_Data.Unmarshal(m, b) } -func (m *PhoneCallDiscardReason_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneCallDiscardReason_Data.Marshal(b, m, deterministic) +func (m *Chat_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Chat_Data.Marshal(b, m, deterministic) } -func (dst *PhoneCallDiscardReason_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneCallDiscardReason_Data.Merge(dst, src) +func (dst *Chat_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Chat_Data.Merge(dst, src) } -func (m *PhoneCallDiscardReason_Data) XXX_Size() int { - return xxx_messageInfo_PhoneCallDiscardReason_Data.Size(m) +func (m *Chat_Data) XXX_Size() int { + return xxx_messageInfo_Chat_Data.Size(m) } -func (m *PhoneCallDiscardReason_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneCallDiscardReason_Data.DiscardUnknown(m) +func (m *Chat_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Chat_Data.DiscardUnknown(m) } -var xxx_messageInfo_PhoneCallDiscardReason_Data proto.InternalMessageInfo +var xxx_messageInfo_Chat_Data proto.InternalMessageInfo -type PhoneCallDiscardReason struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Chat_Data) GetId() int32 { + if m != nil { + return m.Id + } + return 0 } -func (m *PhoneCallDiscardReason) Reset() { *m = PhoneCallDiscardReason{} } -func (m *PhoneCallDiscardReason) String() string { return proto.CompactTextString(m) } -func (*PhoneCallDiscardReason) ProtoMessage() {} -func (*PhoneCallDiscardReason) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{629} -} -func (m *PhoneCallDiscardReason) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneCallDiscardReason.Unmarshal(m, b) +func (m *Chat_Data) GetCreator() bool { + if m != nil { + return m.Creator + } + return false } -func (m *PhoneCallDiscardReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneCallDiscardReason.Marshal(b, m, deterministic) + +func (m *Chat_Data) GetKicked() bool { + if m != nil { + return m.Kicked + } + return false } -func (dst *PhoneCallDiscardReason) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneCallDiscardReason.Merge(dst, src) + +func (m *Chat_Data) GetLeft() bool { + if m != nil { + return m.Left + } + return false } -func (m *PhoneCallDiscardReason) XXX_Size() int { - return xxx_messageInfo_PhoneCallDiscardReason.Size(m) + +func (m *Chat_Data) GetAdminsEnabled() bool { + if m != nil { + return m.AdminsEnabled + } + return false } -func (m *PhoneCallDiscardReason) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneCallDiscardReason.DiscardUnknown(m) + +func (m *Chat_Data) GetAdmin() bool { + if m != nil { + return m.Admin + } + return false } -var xxx_messageInfo_PhoneCallDiscardReason proto.InternalMessageInfo +func (m *Chat_Data) GetDeactivated() bool { + if m != nil { + return m.Deactivated + } + return false +} -func (m *PhoneCallDiscardReason) GetConstructor() TLConstructor { +func (m *Chat_Data) GetTitle() string { if m != nil { - return m.Constructor + return m.Title } - return TLConstructor_CRC32_UNKNOWN + return "" } -func (m *PhoneCallDiscardReason) GetData2() *PhoneCallDiscardReason_Data { +func (m *Chat_Data) GetPhoto() *ChatPhoto { if m != nil { - return m.Data2 + return m.Photo } return nil } -// phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason; -type TLPhoneCallDiscardReasonMissed struct { - Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Chat_Data) GetParticipantsCount() int32 { + if m != nil { + return m.ParticipantsCount + } + return 0 } -func (m *TLPhoneCallDiscardReasonMissed) Reset() { *m = TLPhoneCallDiscardReasonMissed{} } -func (m *TLPhoneCallDiscardReasonMissed) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallDiscardReasonMissed) ProtoMessage() {} -func (*TLPhoneCallDiscardReasonMissed) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{630} -} -func (m *TLPhoneCallDiscardReasonMissed) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallDiscardReasonMissed.Unmarshal(m, b) +func (m *Chat_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 } -func (m *TLPhoneCallDiscardReasonMissed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallDiscardReasonMissed.Marshal(b, m, deterministic) + +func (m *Chat_Data) GetVersion() int32 { + if m != nil { + return m.Version + } + return 0 } -func (dst *TLPhoneCallDiscardReasonMissed) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallDiscardReasonMissed.Merge(dst, src) + +func (m *Chat_Data) GetMigratedTo() *InputChannel { + if m != nil { + return m.MigratedTo + } + return nil } -func (m *TLPhoneCallDiscardReasonMissed) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallDiscardReasonMissed.Size(m) + +func (m *Chat_Data) GetEditor() bool { + if m != nil { + return m.Editor + } + return false } -func (m *TLPhoneCallDiscardReasonMissed) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallDiscardReasonMissed.DiscardUnknown(m) + +func (m *Chat_Data) GetBroadcast() bool { + if m != nil { + return m.Broadcast + } + return false } -var xxx_messageInfo_TLPhoneCallDiscardReasonMissed proto.InternalMessageInfo +func (m *Chat_Data) GetVerified() bool { + if m != nil { + return m.Verified + } + return false +} -func (m *TLPhoneCallDiscardReasonMissed) GetData2() *PhoneCallDiscardReason_Data { +func (m *Chat_Data) GetMegagroup() bool { if m != nil { - return m.Data2 + return m.Megagroup } - return nil + return false } -// phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason; -type TLPhoneCallDiscardReasonDisconnect struct { - Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Chat_Data) GetRestricted() bool { + if m != nil { + return m.Restricted + } + return false } -func (m *TLPhoneCallDiscardReasonDisconnect) Reset() { *m = TLPhoneCallDiscardReasonDisconnect{} } -func (m *TLPhoneCallDiscardReasonDisconnect) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallDiscardReasonDisconnect) ProtoMessage() {} -func (*TLPhoneCallDiscardReasonDisconnect) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{631} +func (m *Chat_Data) GetDemocracy() bool { + if m != nil { + return m.Democracy + } + return false } -func (m *TLPhoneCallDiscardReasonDisconnect) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.Unmarshal(m, b) + +func (m *Chat_Data) GetSignatures() bool { + if m != nil { + return m.Signatures + } + return false } -func (m *TLPhoneCallDiscardReasonDisconnect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.Marshal(b, m, deterministic) + +func (m *Chat_Data) GetMin() bool { + if m != nil { + return m.Min + } + return false } -func (dst *TLPhoneCallDiscardReasonDisconnect) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.Merge(dst, src) + +func (m *Chat_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 } -func (m *TLPhoneCallDiscardReasonDisconnect) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.Size(m) + +func (m *Chat_Data) GetUsername() string { + if m != nil { + return m.Username + } + return "" } -func (m *TLPhoneCallDiscardReasonDisconnect) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect.DiscardUnknown(m) + +func (m *Chat_Data) GetRestrictionReason() string { + if m != nil { + return m.RestrictionReason + } + return "" } -var xxx_messageInfo_TLPhoneCallDiscardReasonDisconnect proto.InternalMessageInfo +func (m *Chat_Data) GetAdminRights() *ChannelAdminRights { + if m != nil { + return m.AdminRights + } + return nil +} -func (m *TLPhoneCallDiscardReasonDisconnect) GetData2() *PhoneCallDiscardReason_Data { +func (m *Chat_Data) GetBannedRights() *ChannelBannedRights { if m != nil { - return m.Data2 + return m.BannedRights } return nil } -// phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason; -type TLPhoneCallDiscardReasonHangup struct { - Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Chat_Data) GetUntilDate() int32 { + if m != nil { + return m.UntilDate + } + return 0 } -func (m *TLPhoneCallDiscardReasonHangup) Reset() { *m = TLPhoneCallDiscardReasonHangup{} } -func (m *TLPhoneCallDiscardReasonHangup) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallDiscardReasonHangup) ProtoMessage() {} -func (*TLPhoneCallDiscardReasonHangup) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{632} +type Chat struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneCallDiscardReasonHangup) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallDiscardReasonHangup.Unmarshal(m, b) + +func (m *Chat) Reset() { *m = Chat{} } +func (m *Chat) String() string { return proto.CompactTextString(m) } +func (*Chat) ProtoMessage() {} +func (*Chat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{577} } -func (m *TLPhoneCallDiscardReasonHangup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallDiscardReasonHangup.Marshal(b, m, deterministic) +func (m *Chat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Chat.Unmarshal(m, b) } -func (dst *TLPhoneCallDiscardReasonHangup) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallDiscardReasonHangup.Merge(dst, src) +func (m *Chat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Chat.Marshal(b, m, deterministic) } -func (m *TLPhoneCallDiscardReasonHangup) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallDiscardReasonHangup.Size(m) +func (dst *Chat) XXX_Merge(src proto.Message) { + xxx_messageInfo_Chat.Merge(dst, src) } -func (m *TLPhoneCallDiscardReasonHangup) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallDiscardReasonHangup.DiscardUnknown(m) +func (m *Chat) XXX_Size() int { + return xxx_messageInfo_Chat.Size(m) +} +func (m *Chat) XXX_DiscardUnknown() { + xxx_messageInfo_Chat.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneCallDiscardReasonHangup proto.InternalMessageInfo +var xxx_messageInfo_Chat proto.InternalMessageInfo -func (m *TLPhoneCallDiscardReasonHangup) GetData2() *PhoneCallDiscardReason_Data { +func (m *Chat) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Chat) GetData2() *Chat_Data { if m != nil { return m.Data2 } return nil } -// phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason; -type TLPhoneCallDiscardReasonBusy struct { - Data2 *PhoneCallDiscardReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatEmpty#9ba2d800 id:int = Chat; +type TLChatEmpty struct { + Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneCallDiscardReasonBusy) Reset() { *m = TLPhoneCallDiscardReasonBusy{} } -func (m *TLPhoneCallDiscardReasonBusy) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallDiscardReasonBusy) ProtoMessage() {} -func (*TLPhoneCallDiscardReasonBusy) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{633} +func (m *TLChatEmpty) Reset() { *m = TLChatEmpty{} } +func (m *TLChatEmpty) String() string { return proto.CompactTextString(m) } +func (*TLChatEmpty) ProtoMessage() {} +func (*TLChatEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{578} } -func (m *TLPhoneCallDiscardReasonBusy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallDiscardReasonBusy.Unmarshal(m, b) +func (m *TLChatEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatEmpty.Unmarshal(m, b) } -func (m *TLPhoneCallDiscardReasonBusy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallDiscardReasonBusy.Marshal(b, m, deterministic) +func (m *TLChatEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatEmpty.Marshal(b, m, deterministic) } -func (dst *TLPhoneCallDiscardReasonBusy) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallDiscardReasonBusy.Merge(dst, src) +func (dst *TLChatEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatEmpty.Merge(dst, src) } -func (m *TLPhoneCallDiscardReasonBusy) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallDiscardReasonBusy.Size(m) +func (m *TLChatEmpty) XXX_Size() int { + return xxx_messageInfo_TLChatEmpty.Size(m) } -func (m *TLPhoneCallDiscardReasonBusy) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallDiscardReasonBusy.DiscardUnknown(m) +func (m *TLChatEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneCallDiscardReasonBusy proto.InternalMessageInfo +var xxx_messageInfo_TLChatEmpty proto.InternalMessageInfo -func (m *TLPhoneCallDiscardReasonBusy) GetData2() *PhoneCallDiscardReason_Data { +func (m *TLChatEmpty) GetData2() *Chat_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// SecurePasswordKdfAlgo <-- -// + TL_securePasswordKdfAlgoUnknown -// + TL_securePasswordKdfAlgoPBKDF2 -// + TL_securePasswordKdfAlgoSHA512 -// -type SecurePasswordKdfAlgo_Data struct { - Salt []byte `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SecurePasswordKdfAlgo_Data) Reset() { *m = SecurePasswordKdfAlgo_Data{} } -func (m *SecurePasswordKdfAlgo_Data) String() string { return proto.CompactTextString(m) } -func (*SecurePasswordKdfAlgo_Data) ProtoMessage() {} -func (*SecurePasswordKdfAlgo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{634} -} -func (m *SecurePasswordKdfAlgo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurePasswordKdfAlgo_Data.Unmarshal(m, b) -} -func (m *SecurePasswordKdfAlgo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurePasswordKdfAlgo_Data.Marshal(b, m, deterministic) -} -func (dst *SecurePasswordKdfAlgo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurePasswordKdfAlgo_Data.Merge(dst, src) -} -func (m *SecurePasswordKdfAlgo_Data) XXX_Size() int { - return xxx_messageInfo_SecurePasswordKdfAlgo_Data.Size(m) -} -func (m *SecurePasswordKdfAlgo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecurePasswordKdfAlgo_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_SecurePasswordKdfAlgo_Data proto.InternalMessageInfo - -func (m *SecurePasswordKdfAlgo_Data) GetSalt() []byte { - if m != nil { - return m.Salt - } - return nil -} - -type SecurePasswordKdfAlgo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecurePasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chat#d91cdd54 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true admins_enabled:flags.3?true admin:flags.4?true deactivated:flags.5?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel = Chat; +type TLChat struct { + Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecurePasswordKdfAlgo) Reset() { *m = SecurePasswordKdfAlgo{} } -func (m *SecurePasswordKdfAlgo) String() string { return proto.CompactTextString(m) } -func (*SecurePasswordKdfAlgo) ProtoMessage() {} -func (*SecurePasswordKdfAlgo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{635} +func (m *TLChat) Reset() { *m = TLChat{} } +func (m *TLChat) String() string { return proto.CompactTextString(m) } +func (*TLChat) ProtoMessage() {} +func (*TLChat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{579} } -func (m *SecurePasswordKdfAlgo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurePasswordKdfAlgo.Unmarshal(m, b) +func (m *TLChat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChat.Unmarshal(m, b) } -func (m *SecurePasswordKdfAlgo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurePasswordKdfAlgo.Marshal(b, m, deterministic) +func (m *TLChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChat.Marshal(b, m, deterministic) } -func (dst *SecurePasswordKdfAlgo) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurePasswordKdfAlgo.Merge(dst, src) +func (dst *TLChat) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChat.Merge(dst, src) } -func (m *SecurePasswordKdfAlgo) XXX_Size() int { - return xxx_messageInfo_SecurePasswordKdfAlgo.Size(m) +func (m *TLChat) XXX_Size() int { + return xxx_messageInfo_TLChat.Size(m) } -func (m *SecurePasswordKdfAlgo) XXX_DiscardUnknown() { - xxx_messageInfo_SecurePasswordKdfAlgo.DiscardUnknown(m) +func (m *TLChat) XXX_DiscardUnknown() { + xxx_messageInfo_TLChat.DiscardUnknown(m) } -var xxx_messageInfo_SecurePasswordKdfAlgo proto.InternalMessageInfo - -func (m *SecurePasswordKdfAlgo) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLChat proto.InternalMessageInfo -func (m *SecurePasswordKdfAlgo) GetData2() *SecurePasswordKdfAlgo_Data { +func (m *TLChat) GetData2() *Chat_Data { if m != nil { return m.Data2 } return nil } -// securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo; -type TLSecurePasswordKdfAlgoUnknown struct { - Data2 *SecurePasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatForbidden#7328bdb id:int title:string = Chat; +type TLChatForbidden struct { + Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecurePasswordKdfAlgoUnknown) Reset() { *m = TLSecurePasswordKdfAlgoUnknown{} } -func (m *TLSecurePasswordKdfAlgoUnknown) String() string { return proto.CompactTextString(m) } -func (*TLSecurePasswordKdfAlgoUnknown) ProtoMessage() {} -func (*TLSecurePasswordKdfAlgoUnknown) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{636} +func (m *TLChatForbidden) Reset() { *m = TLChatForbidden{} } +func (m *TLChatForbidden) String() string { return proto.CompactTextString(m) } +func (*TLChatForbidden) ProtoMessage() {} +func (*TLChatForbidden) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{580} } -func (m *TLSecurePasswordKdfAlgoUnknown) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.Unmarshal(m, b) +func (m *TLChatForbidden) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatForbidden.Unmarshal(m, b) } -func (m *TLSecurePasswordKdfAlgoUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.Marshal(b, m, deterministic) +func (m *TLChatForbidden) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatForbidden.Marshal(b, m, deterministic) } -func (dst *TLSecurePasswordKdfAlgoUnknown) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.Merge(dst, src) +func (dst *TLChatForbidden) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatForbidden.Merge(dst, src) } -func (m *TLSecurePasswordKdfAlgoUnknown) XXX_Size() int { - return xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.Size(m) +func (m *TLChatForbidden) XXX_Size() int { + return xxx_messageInfo_TLChatForbidden.Size(m) } -func (m *TLSecurePasswordKdfAlgoUnknown) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.DiscardUnknown(m) +func (m *TLChatForbidden) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatForbidden.DiscardUnknown(m) } -var xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown proto.InternalMessageInfo +var xxx_messageInfo_TLChatForbidden proto.InternalMessageInfo -func (m *TLSecurePasswordKdfAlgoUnknown) GetData2() *SecurePasswordKdfAlgo_Data { +func (m *TLChatForbidden) GetData2() *Chat_Data { if m != nil { return m.Data2 } return nil } -// securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo; -type TLSecurePasswordKdfAlgoPBKDF2 struct { - Data2 *SecurePasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; +type TLChannel struct { + Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecurePasswordKdfAlgoPBKDF2) Reset() { *m = TLSecurePasswordKdfAlgoPBKDF2{} } -func (m *TLSecurePasswordKdfAlgoPBKDF2) String() string { return proto.CompactTextString(m) } -func (*TLSecurePasswordKdfAlgoPBKDF2) ProtoMessage() {} -func (*TLSecurePasswordKdfAlgoPBKDF2) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{637} +func (m *TLChannel) Reset() { *m = TLChannel{} } +func (m *TLChannel) String() string { return proto.CompactTextString(m) } +func (*TLChannel) ProtoMessage() {} +func (*TLChannel) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{581} } -func (m *TLSecurePasswordKdfAlgoPBKDF2) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.Unmarshal(m, b) +func (m *TLChannel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannel.Unmarshal(m, b) } -func (m *TLSecurePasswordKdfAlgoPBKDF2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.Marshal(b, m, deterministic) +func (m *TLChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannel.Marshal(b, m, deterministic) } -func (dst *TLSecurePasswordKdfAlgoPBKDF2) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.Merge(dst, src) +func (dst *TLChannel) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannel.Merge(dst, src) } -func (m *TLSecurePasswordKdfAlgoPBKDF2) XXX_Size() int { - return xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.Size(m) +func (m *TLChannel) XXX_Size() int { + return xxx_messageInfo_TLChannel.Size(m) } -func (m *TLSecurePasswordKdfAlgoPBKDF2) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.DiscardUnknown(m) +func (m *TLChannel) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannel.DiscardUnknown(m) } -var xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2 proto.InternalMessageInfo +var xxx_messageInfo_TLChannel proto.InternalMessageInfo -func (m *TLSecurePasswordKdfAlgoPBKDF2) GetData2() *SecurePasswordKdfAlgo_Data { +func (m *TLChannel) GetData2() *Chat_Data { if m != nil { return m.Data2 } return nil } -// securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo; -type TLSecurePasswordKdfAlgoSHA512 struct { - Data2 *SecurePasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat; +type TLChannelForbidden struct { + Data2 *Chat_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecurePasswordKdfAlgoSHA512) Reset() { *m = TLSecurePasswordKdfAlgoSHA512{} } -func (m *TLSecurePasswordKdfAlgoSHA512) String() string { return proto.CompactTextString(m) } -func (*TLSecurePasswordKdfAlgoSHA512) ProtoMessage() {} -func (*TLSecurePasswordKdfAlgoSHA512) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{638} +func (m *TLChannelForbidden) Reset() { *m = TLChannelForbidden{} } +func (m *TLChannelForbidden) String() string { return proto.CompactTextString(m) } +func (*TLChannelForbidden) ProtoMessage() {} +func (*TLChannelForbidden) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{582} } -func (m *TLSecurePasswordKdfAlgoSHA512) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.Unmarshal(m, b) +func (m *TLChannelForbidden) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelForbidden.Unmarshal(m, b) } -func (m *TLSecurePasswordKdfAlgoSHA512) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.Marshal(b, m, deterministic) +func (m *TLChannelForbidden) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelForbidden.Marshal(b, m, deterministic) } -func (dst *TLSecurePasswordKdfAlgoSHA512) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.Merge(dst, src) +func (dst *TLChannelForbidden) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelForbidden.Merge(dst, src) } -func (m *TLSecurePasswordKdfAlgoSHA512) XXX_Size() int { - return xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.Size(m) +func (m *TLChannelForbidden) XXX_Size() int { + return xxx_messageInfo_TLChannelForbidden.Size(m) } -func (m *TLSecurePasswordKdfAlgoSHA512) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.DiscardUnknown(m) +func (m *TLChannelForbidden) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelForbidden.DiscardUnknown(m) } -var xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512 proto.InternalMessageInfo +var xxx_messageInfo_TLChannelForbidden proto.InternalMessageInfo -func (m *TLSecurePasswordKdfAlgoSHA512) GetData2() *SecurePasswordKdfAlgo_Data { +func (m *TLChannelForbidden) GetData2() *Chat_Data { if m != nil { return m.Data2 } @@ -30578,597 +29255,580 @@ func (m *TLSecurePasswordKdfAlgoSHA512) GetData2() *SecurePasswordKdfAlgo_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ChatFull <-- -// + TL_chatFull -// + TL_channelFull +// PhotoSize <-- +// + TL_photoSizeEmpty +// + TL_photoSize +// + TL_photoCachedSize // -type ChatFull_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Participants *ChatParticipants `protobuf:"bytes,2,opt,name=participants,proto3" json:"participants,omitempty"` - ChatPhoto *Photo `protobuf:"bytes,3,opt,name=chat_photo,json=chatPhoto,proto3" json:"chat_photo,omitempty"` - NotifySettings *PeerNotifySettings `protobuf:"bytes,4,opt,name=notify_settings,json=notifySettings,proto3" json:"notify_settings,omitempty"` - ExportedInvite *ExportedChatInvite `protobuf:"bytes,5,opt,name=exported_invite,json=exportedInvite,proto3" json:"exported_invite,omitempty"` - BotInfo []*BotInfo `protobuf:"bytes,6,rep,name=bot_info,json=botInfo,proto3" json:"bot_info,omitempty"` - CanViewParticipants bool `protobuf:"varint,7,opt,name=can_view_participants,json=canViewParticipants,proto3" json:"can_view_participants,omitempty"` - CanSetUsername bool `protobuf:"varint,8,opt,name=can_set_username,json=canSetUsername,proto3" json:"can_set_username,omitempty"` - CanSetStickers bool `protobuf:"varint,9,opt,name=can_set_stickers,json=canSetStickers,proto3" json:"can_set_stickers,omitempty"` - HiddenPrehistory bool `protobuf:"varint,10,opt,name=hidden_prehistory,json=hiddenPrehistory,proto3" json:"hidden_prehistory,omitempty"` - About string `protobuf:"bytes,11,opt,name=about,proto3" json:"about,omitempty"` - ParticipantsCount int32 `protobuf:"varint,12,opt,name=participants_count,json=participantsCount,proto3" json:"participants_count,omitempty"` - AdminsCount int32 `protobuf:"varint,13,opt,name=admins_count,json=adminsCount,proto3" json:"admins_count,omitempty"` - KickedCount int32 `protobuf:"varint,14,opt,name=kicked_count,json=kickedCount,proto3" json:"kicked_count,omitempty"` - BannedCount int32 `protobuf:"varint,15,opt,name=banned_count,json=bannedCount,proto3" json:"banned_count,omitempty"` - ReadInboxMaxId int32 `protobuf:"varint,16,opt,name=read_inbox_max_id,json=readInboxMaxId,proto3" json:"read_inbox_max_id,omitempty"` - ReadOutboxMaxId int32 `protobuf:"varint,17,opt,name=read_outbox_max_id,json=readOutboxMaxId,proto3" json:"read_outbox_max_id,omitempty"` - UnreadCount int32 `protobuf:"varint,18,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` - MigratedFromChatId int32 `protobuf:"varint,19,opt,name=migrated_from_chat_id,json=migratedFromChatId,proto3" json:"migrated_from_chat_id,omitempty"` - MigratedFromMaxId int32 `protobuf:"varint,20,opt,name=migrated_from_max_id,json=migratedFromMaxId,proto3" json:"migrated_from_max_id,omitempty"` - PinnedMsgId int32 `protobuf:"varint,21,opt,name=pinned_msg_id,json=pinnedMsgId,proto3" json:"pinned_msg_id,omitempty"` - Stickerset *StickerSet `protobuf:"bytes,22,opt,name=stickerset,proto3" json:"stickerset,omitempty"` - AvailableMinId int32 `protobuf:"varint,23,opt,name=available_min_id,json=availableMinId,proto3" json:"available_min_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PhotoSize_Data struct { + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Location *FileLocation `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` + W int32 `protobuf:"varint,3,opt,name=w,proto3" json:"w,omitempty"` + H int32 `protobuf:"varint,4,opt,name=h,proto3" json:"h,omitempty"` + Size int32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` + Bytes []byte `protobuf:"bytes,6,opt,name=bytes,proto3" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatFull_Data) Reset() { *m = ChatFull_Data{} } -func (m *ChatFull_Data) String() string { return proto.CompactTextString(m) } -func (*ChatFull_Data) ProtoMessage() {} -func (*ChatFull_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{639} +func (m *PhotoSize_Data) Reset() { *m = PhotoSize_Data{} } +func (m *PhotoSize_Data) String() string { return proto.CompactTextString(m) } +func (*PhotoSize_Data) ProtoMessage() {} +func (*PhotoSize_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{583} } -func (m *ChatFull_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatFull_Data.Unmarshal(m, b) +func (m *PhotoSize_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhotoSize_Data.Unmarshal(m, b) } -func (m *ChatFull_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatFull_Data.Marshal(b, m, deterministic) +func (m *PhotoSize_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhotoSize_Data.Marshal(b, m, deterministic) } -func (dst *ChatFull_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatFull_Data.Merge(dst, src) +func (dst *PhotoSize_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhotoSize_Data.Merge(dst, src) } -func (m *ChatFull_Data) XXX_Size() int { - return xxx_messageInfo_ChatFull_Data.Size(m) +func (m *PhotoSize_Data) XXX_Size() int { + return xxx_messageInfo_PhotoSize_Data.Size(m) } -func (m *ChatFull_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChatFull_Data.DiscardUnknown(m) +func (m *PhotoSize_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PhotoSize_Data.DiscardUnknown(m) } -var xxx_messageInfo_ChatFull_Data proto.InternalMessageInfo +var xxx_messageInfo_PhotoSize_Data proto.InternalMessageInfo -func (m *ChatFull_Data) GetId() int32 { +func (m *PhotoSize_Data) GetType() string { if m != nil { - return m.Id + return m.Type } - return 0 + return "" } -func (m *ChatFull_Data) GetParticipants() *ChatParticipants { +func (m *PhotoSize_Data) GetLocation() *FileLocation { if m != nil { - return m.Participants + return m.Location } return nil } -func (m *ChatFull_Data) GetChatPhoto() *Photo { +func (m *PhotoSize_Data) GetW() int32 { if m != nil { - return m.ChatPhoto + return m.W } - return nil + return 0 } -func (m *ChatFull_Data) GetNotifySettings() *PeerNotifySettings { +func (m *PhotoSize_Data) GetH() int32 { if m != nil { - return m.NotifySettings + return m.H } - return nil + return 0 } -func (m *ChatFull_Data) GetExportedInvite() *ExportedChatInvite { +func (m *PhotoSize_Data) GetSize() int32 { if m != nil { - return m.ExportedInvite + return m.Size } - return nil + return 0 } -func (m *ChatFull_Data) GetBotInfo() []*BotInfo { +func (m *PhotoSize_Data) GetBytes() []byte { if m != nil { - return m.BotInfo + return m.Bytes } return nil } -func (m *ChatFull_Data) GetCanViewParticipants() bool { - if m != nil { - return m.CanViewParticipants - } - return false +type PhotoSize struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PhotoSize_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatFull_Data) GetCanSetUsername() bool { - if m != nil { - return m.CanSetUsername - } - return false +func (m *PhotoSize) Reset() { *m = PhotoSize{} } +func (m *PhotoSize) String() string { return proto.CompactTextString(m) } +func (*PhotoSize) ProtoMessage() {} +func (*PhotoSize) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{584} } - -func (m *ChatFull_Data) GetCanSetStickers() bool { - if m != nil { - return m.CanSetStickers - } - return false +func (m *PhotoSize) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhotoSize.Unmarshal(m, b) } - -func (m *ChatFull_Data) GetHiddenPrehistory() bool { - if m != nil { - return m.HiddenPrehistory - } - return false +func (m *PhotoSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhotoSize.Marshal(b, m, deterministic) } - -func (m *ChatFull_Data) GetAbout() string { - if m != nil { - return m.About - } - return "" +func (dst *PhotoSize) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhotoSize.Merge(dst, src) } - -func (m *ChatFull_Data) GetParticipantsCount() int32 { - if m != nil { - return m.ParticipantsCount - } - return 0 +func (m *PhotoSize) XXX_Size() int { + return xxx_messageInfo_PhotoSize.Size(m) } - -func (m *ChatFull_Data) GetAdminsCount() int32 { - if m != nil { - return m.AdminsCount - } - return 0 +func (m *PhotoSize) XXX_DiscardUnknown() { + xxx_messageInfo_PhotoSize.DiscardUnknown(m) } -func (m *ChatFull_Data) GetKickedCount() int32 { - if m != nil { - return m.KickedCount - } - return 0 -} +var xxx_messageInfo_PhotoSize proto.InternalMessageInfo -func (m *ChatFull_Data) GetBannedCount() int32 { +func (m *PhotoSize) GetConstructor() TLConstructor { if m != nil { - return m.BannedCount + return m.Constructor } - return 0 + return TLConstructor_CRC32_UNKNOWN } -func (m *ChatFull_Data) GetReadInboxMaxId() int32 { +func (m *PhotoSize) GetData2() *PhotoSize_Data { if m != nil { - return m.ReadInboxMaxId + return m.Data2 } - return 0 + return nil } -func (m *ChatFull_Data) GetReadOutboxMaxId() int32 { - if m != nil { - return m.ReadOutboxMaxId - } - return 0 +// photoSizeEmpty#e17e23c type:string = PhotoSize; +type TLPhotoSizeEmpty struct { + Data2 *PhotoSize_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatFull_Data) GetUnreadCount() int32 { - if m != nil { - return m.UnreadCount - } - return 0 +func (m *TLPhotoSizeEmpty) Reset() { *m = TLPhotoSizeEmpty{} } +func (m *TLPhotoSizeEmpty) String() string { return proto.CompactTextString(m) } +func (*TLPhotoSizeEmpty) ProtoMessage() {} +func (*TLPhotoSizeEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{585} } - -func (m *ChatFull_Data) GetMigratedFromChatId() int32 { - if m != nil { - return m.MigratedFromChatId - } - return 0 +func (m *TLPhotoSizeEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhotoSizeEmpty.Unmarshal(m, b) } - -func (m *ChatFull_Data) GetMigratedFromMaxId() int32 { - if m != nil { - return m.MigratedFromMaxId - } - return 0 +func (m *TLPhotoSizeEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhotoSizeEmpty.Marshal(b, m, deterministic) } - -func (m *ChatFull_Data) GetPinnedMsgId() int32 { - if m != nil { - return m.PinnedMsgId - } - return 0 +func (dst *TLPhotoSizeEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhotoSizeEmpty.Merge(dst, src) +} +func (m *TLPhotoSizeEmpty) XXX_Size() int { + return xxx_messageInfo_TLPhotoSizeEmpty.Size(m) +} +func (m *TLPhotoSizeEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhotoSizeEmpty.DiscardUnknown(m) } -func (m *ChatFull_Data) GetStickerset() *StickerSet { +var xxx_messageInfo_TLPhotoSizeEmpty proto.InternalMessageInfo + +func (m *TLPhotoSizeEmpty) GetData2() *PhotoSize_Data { if m != nil { - return m.Stickerset + return m.Data2 } return nil } -func (m *ChatFull_Data) GetAvailableMinId() int32 { - if m != nil { - return m.AvailableMinId - } - return 0 +// photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize; +type TLPhotoSize struct { + Data2 *PhotoSize_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -type ChatFull struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChatFull) Reset() { *m = ChatFull{} } -func (m *ChatFull) String() string { return proto.CompactTextString(m) } -func (*ChatFull) ProtoMessage() {} -func (*ChatFull) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{640} +func (m *TLPhotoSize) Reset() { *m = TLPhotoSize{} } +func (m *TLPhotoSize) String() string { return proto.CompactTextString(m) } +func (*TLPhotoSize) ProtoMessage() {} +func (*TLPhotoSize) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{586} } -func (m *ChatFull) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatFull.Unmarshal(m, b) +func (m *TLPhotoSize) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhotoSize.Unmarshal(m, b) } -func (m *ChatFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatFull.Marshal(b, m, deterministic) +func (m *TLPhotoSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhotoSize.Marshal(b, m, deterministic) } -func (dst *ChatFull) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatFull.Merge(dst, src) +func (dst *TLPhotoSize) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhotoSize.Merge(dst, src) } -func (m *ChatFull) XXX_Size() int { - return xxx_messageInfo_ChatFull.Size(m) +func (m *TLPhotoSize) XXX_Size() int { + return xxx_messageInfo_TLPhotoSize.Size(m) } -func (m *ChatFull) XXX_DiscardUnknown() { - xxx_messageInfo_ChatFull.DiscardUnknown(m) +func (m *TLPhotoSize) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhotoSize.DiscardUnknown(m) } -var xxx_messageInfo_ChatFull proto.InternalMessageInfo - -func (m *ChatFull) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLPhotoSize proto.InternalMessageInfo -func (m *ChatFull) GetData2() *ChatFull_Data { +func (m *TLPhotoSize) GetData2() *PhotoSize_Data { if m != nil { return m.Data2 } return nil } -// chatFull#2e02a614 id:int participants:ChatParticipants chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector = ChatFull; -type TLChatFull struct { - Data2 *ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize; +type TLPhotoCachedSize struct { + Data2 *PhotoSize_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatFull) Reset() { *m = TLChatFull{} } -func (m *TLChatFull) String() string { return proto.CompactTextString(m) } -func (*TLChatFull) ProtoMessage() {} -func (*TLChatFull) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{641} +func (m *TLPhotoCachedSize) Reset() { *m = TLPhotoCachedSize{} } +func (m *TLPhotoCachedSize) String() string { return proto.CompactTextString(m) } +func (*TLPhotoCachedSize) ProtoMessage() {} +func (*TLPhotoCachedSize) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{587} } -func (m *TLChatFull) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatFull.Unmarshal(m, b) +func (m *TLPhotoCachedSize) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhotoCachedSize.Unmarshal(m, b) } -func (m *TLChatFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatFull.Marshal(b, m, deterministic) +func (m *TLPhotoCachedSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhotoCachedSize.Marshal(b, m, deterministic) } -func (dst *TLChatFull) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatFull.Merge(dst, src) +func (dst *TLPhotoCachedSize) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhotoCachedSize.Merge(dst, src) } -func (m *TLChatFull) XXX_Size() int { - return xxx_messageInfo_TLChatFull.Size(m) +func (m *TLPhotoCachedSize) XXX_Size() int { + return xxx_messageInfo_TLPhotoCachedSize.Size(m) } -func (m *TLChatFull) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatFull.DiscardUnknown(m) +func (m *TLPhotoCachedSize) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhotoCachedSize.DiscardUnknown(m) } -var xxx_messageInfo_TLChatFull proto.InternalMessageInfo +var xxx_messageInfo_TLPhotoCachedSize proto.InternalMessageInfo -func (m *TLChatFull) GetData2() *ChatFull_Data { +func (m *TLPhotoCachedSize) GetData2() *PhotoSize_Data { if m != nil { return m.Data2 } return nil } -// channelFull#76af5481 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int = ChatFull; -type TLChannelFull struct { - Data2 *ChatFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// account_PasswordSettings <-- +// + TL_account_passwordSettings +// +type Account_PasswordSettings_Data struct { + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + SecureSettings *SecureSecretSettings `protobuf:"bytes,2,opt,name=secure_settings,json=secureSettings,proto3" json:"secure_settings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelFull) Reset() { *m = TLChannelFull{} } -func (m *TLChannelFull) String() string { return proto.CompactTextString(m) } -func (*TLChannelFull) ProtoMessage() {} -func (*TLChannelFull) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{642} +func (m *Account_PasswordSettings_Data) Reset() { *m = Account_PasswordSettings_Data{} } +func (m *Account_PasswordSettings_Data) String() string { return proto.CompactTextString(m) } +func (*Account_PasswordSettings_Data) ProtoMessage() {} +func (*Account_PasswordSettings_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{588} } -func (m *TLChannelFull) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelFull.Unmarshal(m, b) +func (m *Account_PasswordSettings_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_PasswordSettings_Data.Unmarshal(m, b) } -func (m *TLChannelFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelFull.Marshal(b, m, deterministic) +func (m *Account_PasswordSettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_PasswordSettings_Data.Marshal(b, m, deterministic) } -func (dst *TLChannelFull) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelFull.Merge(dst, src) +func (dst *Account_PasswordSettings_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_PasswordSettings_Data.Merge(dst, src) } -func (m *TLChannelFull) XXX_Size() int { - return xxx_messageInfo_TLChannelFull.Size(m) +func (m *Account_PasswordSettings_Data) XXX_Size() int { + return xxx_messageInfo_Account_PasswordSettings_Data.Size(m) } -func (m *TLChannelFull) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelFull.DiscardUnknown(m) +func (m *Account_PasswordSettings_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_PasswordSettings_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelFull proto.InternalMessageInfo +var xxx_messageInfo_Account_PasswordSettings_Data proto.InternalMessageInfo -func (m *TLChannelFull) GetData2() *ChatFull_Data { +func (m *Account_PasswordSettings_Data) GetEmail() string { if m != nil { - return m.Data2 + return m.Email + } + return "" +} + +func (m *Account_PasswordSettings_Data) GetSecureSettings() *SecureSecretSettings { + if m != nil { + return m.SecureSettings } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// auth_SentCodeType <-- -// + TL_auth_sentCodeTypeApp -// + TL_auth_sentCodeTypeSms -// + TL_auth_sentCodeTypeCall -// + TL_auth_sentCodeTypeFlashCall -// -type Auth_SentCodeType_Data struct { - Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` - Pattern string `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_PasswordSettings struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_PasswordSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_SentCodeType_Data) Reset() { *m = Auth_SentCodeType_Data{} } -func (m *Auth_SentCodeType_Data) String() string { return proto.CompactTextString(m) } -func (*Auth_SentCodeType_Data) ProtoMessage() {} -func (*Auth_SentCodeType_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{643} +func (m *Account_PasswordSettings) Reset() { *m = Account_PasswordSettings{} } +func (m *Account_PasswordSettings) String() string { return proto.CompactTextString(m) } +func (*Account_PasswordSettings) ProtoMessage() {} +func (*Account_PasswordSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{589} } -func (m *Auth_SentCodeType_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_SentCodeType_Data.Unmarshal(m, b) +func (m *Account_PasswordSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_PasswordSettings.Unmarshal(m, b) } -func (m *Auth_SentCodeType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_SentCodeType_Data.Marshal(b, m, deterministic) +func (m *Account_PasswordSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_PasswordSettings.Marshal(b, m, deterministic) } -func (dst *Auth_SentCodeType_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_SentCodeType_Data.Merge(dst, src) +func (dst *Account_PasswordSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_PasswordSettings.Merge(dst, src) } -func (m *Auth_SentCodeType_Data) XXX_Size() int { - return xxx_messageInfo_Auth_SentCodeType_Data.Size(m) +func (m *Account_PasswordSettings) XXX_Size() int { + return xxx_messageInfo_Account_PasswordSettings.Size(m) } -func (m *Auth_SentCodeType_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_SentCodeType_Data.DiscardUnknown(m) +func (m *Account_PasswordSettings) XXX_DiscardUnknown() { + xxx_messageInfo_Account_PasswordSettings.DiscardUnknown(m) } -var xxx_messageInfo_Auth_SentCodeType_Data proto.InternalMessageInfo +var xxx_messageInfo_Account_PasswordSettings proto.InternalMessageInfo -func (m *Auth_SentCodeType_Data) GetLength() int32 { +func (m *Account_PasswordSettings) GetConstructor() TLConstructor { if m != nil { - return m.Length + return m.Constructor } - return 0 + return TLConstructor_CRC32_UNKNOWN } -func (m *Auth_SentCodeType_Data) GetPattern() string { +func (m *Account_PasswordSettings) GetData2() *Account_PasswordSettings_Data { if m != nil { - return m.Pattern + return m.Data2 } - return "" + return nil } -type Auth_SentCodeType struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings; +type TLAccountPasswordSettings struct { + Data2 *Account_PasswordSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_SentCodeType) Reset() { *m = Auth_SentCodeType{} } -func (m *Auth_SentCodeType) String() string { return proto.CompactTextString(m) } -func (*Auth_SentCodeType) ProtoMessage() {} -func (*Auth_SentCodeType) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{644} +func (m *TLAccountPasswordSettings) Reset() { *m = TLAccountPasswordSettings{} } +func (m *TLAccountPasswordSettings) String() string { return proto.CompactTextString(m) } +func (*TLAccountPasswordSettings) ProtoMessage() {} +func (*TLAccountPasswordSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{590} } -func (m *Auth_SentCodeType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_SentCodeType.Unmarshal(m, b) +func (m *TLAccountPasswordSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountPasswordSettings.Unmarshal(m, b) } -func (m *Auth_SentCodeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_SentCodeType.Marshal(b, m, deterministic) +func (m *TLAccountPasswordSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountPasswordSettings.Marshal(b, m, deterministic) } -func (dst *Auth_SentCodeType) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_SentCodeType.Merge(dst, src) +func (dst *TLAccountPasswordSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountPasswordSettings.Merge(dst, src) } -func (m *Auth_SentCodeType) XXX_Size() int { - return xxx_messageInfo_Auth_SentCodeType.Size(m) +func (m *TLAccountPasswordSettings) XXX_Size() int { + return xxx_messageInfo_TLAccountPasswordSettings.Size(m) } -func (m *Auth_SentCodeType) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_SentCodeType.DiscardUnknown(m) +func (m *TLAccountPasswordSettings) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountPasswordSettings.DiscardUnknown(m) } -var xxx_messageInfo_Auth_SentCodeType proto.InternalMessageInfo - -func (m *Auth_SentCodeType) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLAccountPasswordSettings proto.InternalMessageInfo -func (m *Auth_SentCodeType) GetData2() *Auth_SentCodeType_Data { +func (m *TLAccountPasswordSettings) GetData2() *Account_PasswordSettings_Data { if m != nil { return m.Data2 } return nil } -// auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType; -type TLAuthSentCodeTypeApp struct { - Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// UserFull <-- +// + TL_userFull +// +type UserFull_Data struct { + Blocked bool `protobuf:"varint,1,opt,name=blocked,proto3" json:"blocked,omitempty"` + PhoneCallsAvailable bool `protobuf:"varint,2,opt,name=phone_calls_available,json=phoneCallsAvailable,proto3" json:"phone_calls_available,omitempty"` + PhoneCallsPrivate bool `protobuf:"varint,3,opt,name=phone_calls_private,json=phoneCallsPrivate,proto3" json:"phone_calls_private,omitempty"` + User *User `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` + About string `protobuf:"bytes,5,opt,name=about,proto3" json:"about,omitempty"` + Link *Contacts_Link `protobuf:"bytes,6,opt,name=link,proto3" json:"link,omitempty"` + ProfilePhoto *Photo `protobuf:"bytes,7,opt,name=profile_photo,json=profilePhoto,proto3" json:"profile_photo,omitempty"` + NotifySettings *PeerNotifySettings `protobuf:"bytes,8,opt,name=notify_settings,json=notifySettings,proto3" json:"notify_settings,omitempty"` + BotInfo *BotInfo `protobuf:"bytes,9,opt,name=bot_info,json=botInfo,proto3" json:"bot_info,omitempty"` + CommonChatsCount int32 `protobuf:"varint,10,opt,name=common_chats_count,json=commonChatsCount,proto3" json:"common_chats_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAuthSentCodeTypeApp) Reset() { *m = TLAuthSentCodeTypeApp{} } -func (m *TLAuthSentCodeTypeApp) String() string { return proto.CompactTextString(m) } -func (*TLAuthSentCodeTypeApp) ProtoMessage() {} -func (*TLAuthSentCodeTypeApp) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{645} +func (m *UserFull_Data) Reset() { *m = UserFull_Data{} } +func (m *UserFull_Data) String() string { return proto.CompactTextString(m) } +func (*UserFull_Data) ProtoMessage() {} +func (*UserFull_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{591} } -func (m *TLAuthSentCodeTypeApp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthSentCodeTypeApp.Unmarshal(m, b) +func (m *UserFull_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserFull_Data.Unmarshal(m, b) } -func (m *TLAuthSentCodeTypeApp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthSentCodeTypeApp.Marshal(b, m, deterministic) +func (m *UserFull_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserFull_Data.Marshal(b, m, deterministic) } -func (dst *TLAuthSentCodeTypeApp) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthSentCodeTypeApp.Merge(dst, src) +func (dst *UserFull_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserFull_Data.Merge(dst, src) } -func (m *TLAuthSentCodeTypeApp) XXX_Size() int { - return xxx_messageInfo_TLAuthSentCodeTypeApp.Size(m) +func (m *UserFull_Data) XXX_Size() int { + return xxx_messageInfo_UserFull_Data.Size(m) } -func (m *TLAuthSentCodeTypeApp) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthSentCodeTypeApp.DiscardUnknown(m) +func (m *UserFull_Data) XXX_DiscardUnknown() { + xxx_messageInfo_UserFull_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthSentCodeTypeApp proto.InternalMessageInfo +var xxx_messageInfo_UserFull_Data proto.InternalMessageInfo -func (m *TLAuthSentCodeTypeApp) GetData2() *Auth_SentCodeType_Data { +func (m *UserFull_Data) GetBlocked() bool { if m != nil { - return m.Data2 + return m.Blocked } - return nil + return false } -// auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType; -type TLAuthSentCodeTypeSms struct { - Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *UserFull_Data) GetPhoneCallsAvailable() bool { + if m != nil { + return m.PhoneCallsAvailable + } + return false } -func (m *TLAuthSentCodeTypeSms) Reset() { *m = TLAuthSentCodeTypeSms{} } -func (m *TLAuthSentCodeTypeSms) String() string { return proto.CompactTextString(m) } -func (*TLAuthSentCodeTypeSms) ProtoMessage() {} -func (*TLAuthSentCodeTypeSms) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{646} -} -func (m *TLAuthSentCodeTypeSms) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthSentCodeTypeSms.Unmarshal(m, b) +func (m *UserFull_Data) GetPhoneCallsPrivate() bool { + if m != nil { + return m.PhoneCallsPrivate + } + return false } -func (m *TLAuthSentCodeTypeSms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthSentCodeTypeSms.Marshal(b, m, deterministic) + +func (m *UserFull_Data) GetUser() *User { + if m != nil { + return m.User + } + return nil } -func (dst *TLAuthSentCodeTypeSms) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthSentCodeTypeSms.Merge(dst, src) + +func (m *UserFull_Data) GetAbout() string { + if m != nil { + return m.About + } + return "" } -func (m *TLAuthSentCodeTypeSms) XXX_Size() int { - return xxx_messageInfo_TLAuthSentCodeTypeSms.Size(m) + +func (m *UserFull_Data) GetLink() *Contacts_Link { + if m != nil { + return m.Link + } + return nil } -func (m *TLAuthSentCodeTypeSms) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthSentCodeTypeSms.DiscardUnknown(m) + +func (m *UserFull_Data) GetProfilePhoto() *Photo { + if m != nil { + return m.ProfilePhoto + } + return nil } -var xxx_messageInfo_TLAuthSentCodeTypeSms proto.InternalMessageInfo +func (m *UserFull_Data) GetNotifySettings() *PeerNotifySettings { + if m != nil { + return m.NotifySettings + } + return nil +} -func (m *TLAuthSentCodeTypeSms) GetData2() *Auth_SentCodeType_Data { +func (m *UserFull_Data) GetBotInfo() *BotInfo { if m != nil { - return m.Data2 + return m.BotInfo } return nil } -// auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType; -type TLAuthSentCodeTypeCall struct { - Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *UserFull_Data) GetCommonChatsCount() int32 { + if m != nil { + return m.CommonChatsCount + } + return 0 } -func (m *TLAuthSentCodeTypeCall) Reset() { *m = TLAuthSentCodeTypeCall{} } -func (m *TLAuthSentCodeTypeCall) String() string { return proto.CompactTextString(m) } -func (*TLAuthSentCodeTypeCall) ProtoMessage() {} -func (*TLAuthSentCodeTypeCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{647} +type UserFull struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *UserFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAuthSentCodeTypeCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthSentCodeTypeCall.Unmarshal(m, b) + +func (m *UserFull) Reset() { *m = UserFull{} } +func (m *UserFull) String() string { return proto.CompactTextString(m) } +func (*UserFull) ProtoMessage() {} +func (*UserFull) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{592} } -func (m *TLAuthSentCodeTypeCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthSentCodeTypeCall.Marshal(b, m, deterministic) +func (m *UserFull) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserFull.Unmarshal(m, b) } -func (dst *TLAuthSentCodeTypeCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthSentCodeTypeCall.Merge(dst, src) +func (m *UserFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserFull.Marshal(b, m, deterministic) } -func (m *TLAuthSentCodeTypeCall) XXX_Size() int { - return xxx_messageInfo_TLAuthSentCodeTypeCall.Size(m) +func (dst *UserFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserFull.Merge(dst, src) } -func (m *TLAuthSentCodeTypeCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthSentCodeTypeCall.DiscardUnknown(m) +func (m *UserFull) XXX_Size() int { + return xxx_messageInfo_UserFull.Size(m) +} +func (m *UserFull) XXX_DiscardUnknown() { + xxx_messageInfo_UserFull.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthSentCodeTypeCall proto.InternalMessageInfo +var xxx_messageInfo_UserFull proto.InternalMessageInfo -func (m *TLAuthSentCodeTypeCall) GetData2() *Auth_SentCodeType_Data { +func (m *UserFull) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *UserFull) GetData2() *UserFull_Data { if m != nil { return m.Data2 } return nil } -// auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType; -type TLAuthSentCodeTypeFlashCall struct { - Data2 *Auth_SentCodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; +type TLUserFull struct { + Data2 *UserFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAuthSentCodeTypeFlashCall) Reset() { *m = TLAuthSentCodeTypeFlashCall{} } -func (m *TLAuthSentCodeTypeFlashCall) String() string { return proto.CompactTextString(m) } -func (*TLAuthSentCodeTypeFlashCall) ProtoMessage() {} -func (*TLAuthSentCodeTypeFlashCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{648} +func (m *TLUserFull) Reset() { *m = TLUserFull{} } +func (m *TLUserFull) String() string { return proto.CompactTextString(m) } +func (*TLUserFull) ProtoMessage() {} +func (*TLUserFull) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{593} } -func (m *TLAuthSentCodeTypeFlashCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthSentCodeTypeFlashCall.Unmarshal(m, b) +func (m *TLUserFull) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserFull.Unmarshal(m, b) } -func (m *TLAuthSentCodeTypeFlashCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthSentCodeTypeFlashCall.Marshal(b, m, deterministic) +func (m *TLUserFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserFull.Marshal(b, m, deterministic) } -func (dst *TLAuthSentCodeTypeFlashCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthSentCodeTypeFlashCall.Merge(dst, src) +func (dst *TLUserFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserFull.Merge(dst, src) } -func (m *TLAuthSentCodeTypeFlashCall) XXX_Size() int { - return xxx_messageInfo_TLAuthSentCodeTypeFlashCall.Size(m) +func (m *TLUserFull) XXX_Size() int { + return xxx_messageInfo_TLUserFull.Size(m) } -func (m *TLAuthSentCodeTypeFlashCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthSentCodeTypeFlashCall.DiscardUnknown(m) +func (m *TLUserFull) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserFull.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthSentCodeTypeFlashCall proto.InternalMessageInfo +var xxx_messageInfo_TLUserFull proto.InternalMessageInfo -func (m *TLAuthSentCodeTypeFlashCall) GetData2() *Auth_SentCodeType_Data { +func (m *TLUserFull) GetData2() *UserFull_Data { if m != nil { return m.Data2 } @@ -31176,190 +29836,134 @@ func (m *TLAuthSentCodeTypeFlashCall) GetData2() *Auth_SentCodeType_Data { } // ///////////////////////////////////////////////////////////////////////////// -// help_ProxyData <-- -// + TL_help_proxyDataEmpty -// + TL_help_proxyDataPromo +// help_Support <-- +// + TL_help_support // -type Help_ProxyData_Data struct { - Expires int32 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"` - Peer *Peer `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"` - Chats []*Chat `protobuf:"bytes,3,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` +type Help_Support_Data struct { + PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Help_ProxyData_Data) Reset() { *m = Help_ProxyData_Data{} } -func (m *Help_ProxyData_Data) String() string { return proto.CompactTextString(m) } -func (*Help_ProxyData_Data) ProtoMessage() {} -func (*Help_ProxyData_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{649} +func (m *Help_Support_Data) Reset() { *m = Help_Support_Data{} } +func (m *Help_Support_Data) String() string { return proto.CompactTextString(m) } +func (*Help_Support_Data) ProtoMessage() {} +func (*Help_Support_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{594} } -func (m *Help_ProxyData_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_ProxyData_Data.Unmarshal(m, b) +func (m *Help_Support_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_Support_Data.Unmarshal(m, b) } -func (m *Help_ProxyData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_ProxyData_Data.Marshal(b, m, deterministic) +func (m *Help_Support_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_Support_Data.Marshal(b, m, deterministic) } -func (dst *Help_ProxyData_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_ProxyData_Data.Merge(dst, src) -} -func (m *Help_ProxyData_Data) XXX_Size() int { - return xxx_messageInfo_Help_ProxyData_Data.Size(m) +func (dst *Help_Support_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_Support_Data.Merge(dst, src) } -func (m *Help_ProxyData_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_ProxyData_Data.DiscardUnknown(m) +func (m *Help_Support_Data) XXX_Size() int { + return xxx_messageInfo_Help_Support_Data.Size(m) } - -var xxx_messageInfo_Help_ProxyData_Data proto.InternalMessageInfo - -func (m *Help_ProxyData_Data) GetExpires() int32 { - if m != nil { - return m.Expires - } - return 0 +func (m *Help_Support_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_Support_Data.DiscardUnknown(m) } -func (m *Help_ProxyData_Data) GetPeer() *Peer { - if m != nil { - return m.Peer - } - return nil -} +var xxx_messageInfo_Help_Support_Data proto.InternalMessageInfo -func (m *Help_ProxyData_Data) GetChats() []*Chat { +func (m *Help_Support_Data) GetPhoneNumber() string { if m != nil { - return m.Chats + return m.PhoneNumber } - return nil + return "" } -func (m *Help_ProxyData_Data) GetUsers() []*User { +func (m *Help_Support_Data) GetUser() *User { if m != nil { - return m.Users + return m.User } return nil } -type Help_ProxyData struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_ProxyData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_Support struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Help_Support_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_ProxyData) Reset() { *m = Help_ProxyData{} } -func (m *Help_ProxyData) String() string { return proto.CompactTextString(m) } -func (*Help_ProxyData) ProtoMessage() {} -func (*Help_ProxyData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{650} +func (m *Help_Support) Reset() { *m = Help_Support{} } +func (m *Help_Support) String() string { return proto.CompactTextString(m) } +func (*Help_Support) ProtoMessage() {} +func (*Help_Support) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{595} } -func (m *Help_ProxyData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_ProxyData.Unmarshal(m, b) +func (m *Help_Support) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_Support.Unmarshal(m, b) } -func (m *Help_ProxyData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_ProxyData.Marshal(b, m, deterministic) +func (m *Help_Support) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_Support.Marshal(b, m, deterministic) } -func (dst *Help_ProxyData) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_ProxyData.Merge(dst, src) +func (dst *Help_Support) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_Support.Merge(dst, src) } -func (m *Help_ProxyData) XXX_Size() int { - return xxx_messageInfo_Help_ProxyData.Size(m) +func (m *Help_Support) XXX_Size() int { + return xxx_messageInfo_Help_Support.Size(m) } -func (m *Help_ProxyData) XXX_DiscardUnknown() { - xxx_messageInfo_Help_ProxyData.DiscardUnknown(m) +func (m *Help_Support) XXX_DiscardUnknown() { + xxx_messageInfo_Help_Support.DiscardUnknown(m) } -var xxx_messageInfo_Help_ProxyData proto.InternalMessageInfo +var xxx_messageInfo_Help_Support proto.InternalMessageInfo -func (m *Help_ProxyData) GetConstructor() TLConstructor { +func (m *Help_Support) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Help_ProxyData) GetData2() *Help_ProxyData_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// help.proxyDataEmpty#e09e1fb8 expires:int = help.ProxyData; -type TLHelpProxyDataEmpty struct { - Data2 *Help_ProxyData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLHelpProxyDataEmpty) Reset() { *m = TLHelpProxyDataEmpty{} } -func (m *TLHelpProxyDataEmpty) String() string { return proto.CompactTextString(m) } -func (*TLHelpProxyDataEmpty) ProtoMessage() {} -func (*TLHelpProxyDataEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{651} -} -func (m *TLHelpProxyDataEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpProxyDataEmpty.Unmarshal(m, b) -} -func (m *TLHelpProxyDataEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpProxyDataEmpty.Marshal(b, m, deterministic) -} -func (dst *TLHelpProxyDataEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpProxyDataEmpty.Merge(dst, src) -} -func (m *TLHelpProxyDataEmpty) XXX_Size() int { - return xxx_messageInfo_TLHelpProxyDataEmpty.Size(m) -} -func (m *TLHelpProxyDataEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpProxyDataEmpty.DiscardUnknown(m) -} - -var xxx_messageInfo_TLHelpProxyDataEmpty proto.InternalMessageInfo - -func (m *TLHelpProxyDataEmpty) GetData2() *Help_ProxyData_Data { +func (m *Help_Support) GetData2() *Help_Support_Data { if m != nil { return m.Data2 } return nil } -// help.proxyDataPromo#2bf7ee23 expires:int peer:Peer chats:Vector users:Vector = help.ProxyData; -type TLHelpProxyDataPromo struct { - Data2 *Help_ProxyData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.support#17c6b5f6 phone_number:string user:User = help.Support; +type TLHelpSupport struct { + Data2 *Help_Support_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpProxyDataPromo) Reset() { *m = TLHelpProxyDataPromo{} } -func (m *TLHelpProxyDataPromo) String() string { return proto.CompactTextString(m) } -func (*TLHelpProxyDataPromo) ProtoMessage() {} -func (*TLHelpProxyDataPromo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{652} +func (m *TLHelpSupport) Reset() { *m = TLHelpSupport{} } +func (m *TLHelpSupport) String() string { return proto.CompactTextString(m) } +func (*TLHelpSupport) ProtoMessage() {} +func (*TLHelpSupport) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{596} } -func (m *TLHelpProxyDataPromo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpProxyDataPromo.Unmarshal(m, b) +func (m *TLHelpSupport) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpSupport.Unmarshal(m, b) } -func (m *TLHelpProxyDataPromo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpProxyDataPromo.Marshal(b, m, deterministic) +func (m *TLHelpSupport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpSupport.Marshal(b, m, deterministic) } -func (dst *TLHelpProxyDataPromo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpProxyDataPromo.Merge(dst, src) +func (dst *TLHelpSupport) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpSupport.Merge(dst, src) } -func (m *TLHelpProxyDataPromo) XXX_Size() int { - return xxx_messageInfo_TLHelpProxyDataPromo.Size(m) +func (m *TLHelpSupport) XXX_Size() int { + return xxx_messageInfo_TLHelpSupport.Size(m) } -func (m *TLHelpProxyDataPromo) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpProxyDataPromo.DiscardUnknown(m) +func (m *TLHelpSupport) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpSupport.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpProxyDataPromo proto.InternalMessageInfo +var xxx_messageInfo_TLHelpSupport proto.InternalMessageInfo -func (m *TLHelpProxyDataPromo) GetData2() *Help_ProxyData_Data { +func (m *TLHelpSupport) GetData2() *Help_Support_Data { if m != nil { return m.Data2 } @@ -31367,174 +29971,174 @@ func (m *TLHelpProxyDataPromo) GetData2() *Help_ProxyData_Data { } // ///////////////////////////////////////////////////////////////////////////// -// SecurePlainData <-- -// + TL_securePlainPhone -// + TL_securePlainEmail +// ChannelMessagesFilter <-- +// + TL_channelMessagesFilterEmpty +// + TL_channelMessagesFilter // -type SecurePlainData_Data struct { - Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelMessagesFilter_Data struct { + ExcludeNewMessages bool `protobuf:"varint,1,opt,name=exclude_new_messages,json=excludeNewMessages,proto3" json:"exclude_new_messages,omitempty"` + Ranges []*MessageRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecurePlainData_Data) Reset() { *m = SecurePlainData_Data{} } -func (m *SecurePlainData_Data) String() string { return proto.CompactTextString(m) } -func (*SecurePlainData_Data) ProtoMessage() {} -func (*SecurePlainData_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{653} +func (m *ChannelMessagesFilter_Data) Reset() { *m = ChannelMessagesFilter_Data{} } +func (m *ChannelMessagesFilter_Data) String() string { return proto.CompactTextString(m) } +func (*ChannelMessagesFilter_Data) ProtoMessage() {} +func (*ChannelMessagesFilter_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{597} } -func (m *SecurePlainData_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurePlainData_Data.Unmarshal(m, b) +func (m *ChannelMessagesFilter_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelMessagesFilter_Data.Unmarshal(m, b) } -func (m *SecurePlainData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurePlainData_Data.Marshal(b, m, deterministic) +func (m *ChannelMessagesFilter_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelMessagesFilter_Data.Marshal(b, m, deterministic) } -func (dst *SecurePlainData_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurePlainData_Data.Merge(dst, src) +func (dst *ChannelMessagesFilter_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelMessagesFilter_Data.Merge(dst, src) } -func (m *SecurePlainData_Data) XXX_Size() int { - return xxx_messageInfo_SecurePlainData_Data.Size(m) +func (m *ChannelMessagesFilter_Data) XXX_Size() int { + return xxx_messageInfo_ChannelMessagesFilter_Data.Size(m) } -func (m *SecurePlainData_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecurePlainData_Data.DiscardUnknown(m) +func (m *ChannelMessagesFilter_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelMessagesFilter_Data.DiscardUnknown(m) } -var xxx_messageInfo_SecurePlainData_Data proto.InternalMessageInfo +var xxx_messageInfo_ChannelMessagesFilter_Data proto.InternalMessageInfo -func (m *SecurePlainData_Data) GetPhone() string { +func (m *ChannelMessagesFilter_Data) GetExcludeNewMessages() bool { if m != nil { - return m.Phone + return m.ExcludeNewMessages } - return "" + return false } -func (m *SecurePlainData_Data) GetEmail() string { +func (m *ChannelMessagesFilter_Data) GetRanges() []*MessageRange { if m != nil { - return m.Email + return m.Ranges } - return "" + return nil } -type SecurePlainData struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecurePlainData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelMessagesFilter struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChannelMessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecurePlainData) Reset() { *m = SecurePlainData{} } -func (m *SecurePlainData) String() string { return proto.CompactTextString(m) } -func (*SecurePlainData) ProtoMessage() {} -func (*SecurePlainData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{654} +func (m *ChannelMessagesFilter) Reset() { *m = ChannelMessagesFilter{} } +func (m *ChannelMessagesFilter) String() string { return proto.CompactTextString(m) } +func (*ChannelMessagesFilter) ProtoMessage() {} +func (*ChannelMessagesFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{598} } -func (m *SecurePlainData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurePlainData.Unmarshal(m, b) +func (m *ChannelMessagesFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelMessagesFilter.Unmarshal(m, b) } -func (m *SecurePlainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurePlainData.Marshal(b, m, deterministic) +func (m *ChannelMessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelMessagesFilter.Marshal(b, m, deterministic) } -func (dst *SecurePlainData) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurePlainData.Merge(dst, src) +func (dst *ChannelMessagesFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelMessagesFilter.Merge(dst, src) } -func (m *SecurePlainData) XXX_Size() int { - return xxx_messageInfo_SecurePlainData.Size(m) +func (m *ChannelMessagesFilter) XXX_Size() int { + return xxx_messageInfo_ChannelMessagesFilter.Size(m) } -func (m *SecurePlainData) XXX_DiscardUnknown() { - xxx_messageInfo_SecurePlainData.DiscardUnknown(m) +func (m *ChannelMessagesFilter) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelMessagesFilter.DiscardUnknown(m) } -var xxx_messageInfo_SecurePlainData proto.InternalMessageInfo +var xxx_messageInfo_ChannelMessagesFilter proto.InternalMessageInfo -func (m *SecurePlainData) GetConstructor() TLConstructor { +func (m *ChannelMessagesFilter) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *SecurePlainData) GetData2() *SecurePlainData_Data { +func (m *ChannelMessagesFilter) GetData2() *ChannelMessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// securePlainPhone#7d6099dd phone:string = SecurePlainData; -type TLSecurePlainPhone struct { - Data2 *SecurePlainData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter; +type TLChannelMessagesFilterEmpty struct { + Data2 *ChannelMessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecurePlainPhone) Reset() { *m = TLSecurePlainPhone{} } -func (m *TLSecurePlainPhone) String() string { return proto.CompactTextString(m) } -func (*TLSecurePlainPhone) ProtoMessage() {} -func (*TLSecurePlainPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{655} +func (m *TLChannelMessagesFilterEmpty) Reset() { *m = TLChannelMessagesFilterEmpty{} } +func (m *TLChannelMessagesFilterEmpty) String() string { return proto.CompactTextString(m) } +func (*TLChannelMessagesFilterEmpty) ProtoMessage() {} +func (*TLChannelMessagesFilterEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{599} } -func (m *TLSecurePlainPhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecurePlainPhone.Unmarshal(m, b) +func (m *TLChannelMessagesFilterEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelMessagesFilterEmpty.Unmarshal(m, b) } -func (m *TLSecurePlainPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecurePlainPhone.Marshal(b, m, deterministic) +func (m *TLChannelMessagesFilterEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelMessagesFilterEmpty.Marshal(b, m, deterministic) } -func (dst *TLSecurePlainPhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecurePlainPhone.Merge(dst, src) +func (dst *TLChannelMessagesFilterEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelMessagesFilterEmpty.Merge(dst, src) } -func (m *TLSecurePlainPhone) XXX_Size() int { - return xxx_messageInfo_TLSecurePlainPhone.Size(m) +func (m *TLChannelMessagesFilterEmpty) XXX_Size() int { + return xxx_messageInfo_TLChannelMessagesFilterEmpty.Size(m) } -func (m *TLSecurePlainPhone) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecurePlainPhone.DiscardUnknown(m) +func (m *TLChannelMessagesFilterEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelMessagesFilterEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLSecurePlainPhone proto.InternalMessageInfo +var xxx_messageInfo_TLChannelMessagesFilterEmpty proto.InternalMessageInfo -func (m *TLSecurePlainPhone) GetData2() *SecurePlainData_Data { +func (m *TLChannelMessagesFilterEmpty) GetData2() *ChannelMessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// securePlainEmail#21ec5a5f email:string = SecurePlainData; -type TLSecurePlainEmail struct { - Data2 *SecurePlainData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter; +type TLChannelMessagesFilter struct { + Data2 *ChannelMessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecurePlainEmail) Reset() { *m = TLSecurePlainEmail{} } -func (m *TLSecurePlainEmail) String() string { return proto.CompactTextString(m) } -func (*TLSecurePlainEmail) ProtoMessage() {} -func (*TLSecurePlainEmail) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{656} +func (m *TLChannelMessagesFilter) Reset() { *m = TLChannelMessagesFilter{} } +func (m *TLChannelMessagesFilter) String() string { return proto.CompactTextString(m) } +func (*TLChannelMessagesFilter) ProtoMessage() {} +func (*TLChannelMessagesFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{600} } -func (m *TLSecurePlainEmail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecurePlainEmail.Unmarshal(m, b) +func (m *TLChannelMessagesFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelMessagesFilter.Unmarshal(m, b) } -func (m *TLSecurePlainEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecurePlainEmail.Marshal(b, m, deterministic) +func (m *TLChannelMessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelMessagesFilter.Marshal(b, m, deterministic) } -func (dst *TLSecurePlainEmail) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecurePlainEmail.Merge(dst, src) +func (dst *TLChannelMessagesFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelMessagesFilter.Merge(dst, src) } -func (m *TLSecurePlainEmail) XXX_Size() int { - return xxx_messageInfo_TLSecurePlainEmail.Size(m) +func (m *TLChannelMessagesFilter) XXX_Size() int { + return xxx_messageInfo_TLChannelMessagesFilter.Size(m) } -func (m *TLSecurePlainEmail) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecurePlainEmail.DiscardUnknown(m) +func (m *TLChannelMessagesFilter) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelMessagesFilter.DiscardUnknown(m) } -var xxx_messageInfo_TLSecurePlainEmail proto.InternalMessageInfo +var xxx_messageInfo_TLChannelMessagesFilter proto.InternalMessageInfo -func (m *TLSecurePlainEmail) GetData2() *SecurePlainData_Data { +func (m *TLChannelMessagesFilter) GetData2() *ChannelMessagesFilter_Data { if m != nil { return m.Data2 } @@ -31542,222 +30146,198 @@ func (m *TLSecurePlainEmail) GetData2() *SecurePlainData_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputPhoto <-- -// + TL_inputPhotoEmpty -// + TL_inputPhoto -// + TL_inputPhotoLayer86 +// Invoice <-- +// + TL_invoice // -type InputPhoto_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - FileReference []byte `protobuf:"bytes,3,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Invoice_Data struct { + Test bool `protobuf:"varint,1,opt,name=test,proto3" json:"test,omitempty"` + NameRequested bool `protobuf:"varint,2,opt,name=name_requested,json=nameRequested,proto3" json:"name_requested,omitempty"` + PhoneRequested bool `protobuf:"varint,3,opt,name=phone_requested,json=phoneRequested,proto3" json:"phone_requested,omitempty"` + EmailRequested bool `protobuf:"varint,4,opt,name=email_requested,json=emailRequested,proto3" json:"email_requested,omitempty"` + ShippingAddressRequested bool `protobuf:"varint,5,opt,name=shipping_address_requested,json=shippingAddressRequested,proto3" json:"shipping_address_requested,omitempty"` + Flexible bool `protobuf:"varint,6,opt,name=flexible,proto3" json:"flexible,omitempty"` + PhoneToProvider bool `protobuf:"varint,7,opt,name=phone_to_provider,json=phoneToProvider,proto3" json:"phone_to_provider,omitempty"` + EmailToProvider bool `protobuf:"varint,8,opt,name=email_to_provider,json=emailToProvider,proto3" json:"email_to_provider,omitempty"` + Currency string `protobuf:"bytes,9,opt,name=currency,proto3" json:"currency,omitempty"` + Prices []*LabeledPrice `protobuf:"bytes,10,rep,name=prices,proto3" json:"prices,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputPhoto_Data) Reset() { *m = InputPhoto_Data{} } -func (m *InputPhoto_Data) String() string { return proto.CompactTextString(m) } -func (*InputPhoto_Data) ProtoMessage() {} -func (*InputPhoto_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{657} +func (m *Invoice_Data) Reset() { *m = Invoice_Data{} } +func (m *Invoice_Data) String() string { return proto.CompactTextString(m) } +func (*Invoice_Data) ProtoMessage() {} +func (*Invoice_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{601} } -func (m *InputPhoto_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPhoto_Data.Unmarshal(m, b) +func (m *Invoice_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Invoice_Data.Unmarshal(m, b) } -func (m *InputPhoto_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPhoto_Data.Marshal(b, m, deterministic) +func (m *Invoice_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Invoice_Data.Marshal(b, m, deterministic) } -func (dst *InputPhoto_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPhoto_Data.Merge(dst, src) +func (dst *Invoice_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Invoice_Data.Merge(dst, src) } -func (m *InputPhoto_Data) XXX_Size() int { - return xxx_messageInfo_InputPhoto_Data.Size(m) +func (m *Invoice_Data) XXX_Size() int { + return xxx_messageInfo_Invoice_Data.Size(m) } -func (m *InputPhoto_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputPhoto_Data.DiscardUnknown(m) +func (m *Invoice_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Invoice_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputPhoto_Data proto.InternalMessageInfo +var xxx_messageInfo_Invoice_Data proto.InternalMessageInfo -func (m *InputPhoto_Data) GetId() int64 { +func (m *Invoice_Data) GetTest() bool { if m != nil { - return m.Id + return m.Test } - return 0 + return false } -func (m *InputPhoto_Data) GetAccessHash() int64 { +func (m *Invoice_Data) GetNameRequested() bool { if m != nil { - return m.AccessHash + return m.NameRequested } - return 0 + return false } -func (m *InputPhoto_Data) GetFileReference() []byte { +func (m *Invoice_Data) GetPhoneRequested() bool { if m != nil { - return m.FileReference + return m.PhoneRequested } - return nil + return false } -type InputPhoto struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Invoice_Data) GetEmailRequested() bool { + if m != nil { + return m.EmailRequested + } + return false } -func (m *InputPhoto) Reset() { *m = InputPhoto{} } -func (m *InputPhoto) String() string { return proto.CompactTextString(m) } -func (*InputPhoto) ProtoMessage() {} -func (*InputPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{658} -} -func (m *InputPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPhoto.Unmarshal(m, b) -} -func (m *InputPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPhoto.Marshal(b, m, deterministic) -} -func (dst *InputPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPhoto.Merge(dst, src) +func (m *Invoice_Data) GetShippingAddressRequested() bool { + if m != nil { + return m.ShippingAddressRequested + } + return false } -func (m *InputPhoto) XXX_Size() int { - return xxx_messageInfo_InputPhoto.Size(m) + +func (m *Invoice_Data) GetFlexible() bool { + if m != nil { + return m.Flexible + } + return false } -func (m *InputPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_InputPhoto.DiscardUnknown(m) + +func (m *Invoice_Data) GetPhoneToProvider() bool { + if m != nil { + return m.PhoneToProvider + } + return false } -var xxx_messageInfo_InputPhoto proto.InternalMessageInfo +func (m *Invoice_Data) GetEmailToProvider() bool { + if m != nil { + return m.EmailToProvider + } + return false +} -func (m *InputPhoto) GetConstructor() TLConstructor { +func (m *Invoice_Data) GetCurrency() string { if m != nil { - return m.Constructor + return m.Currency } - return TLConstructor_CRC32_UNKNOWN + return "" } -func (m *InputPhoto) GetData2() *InputPhoto_Data { +func (m *Invoice_Data) GetPrices() []*LabeledPrice { if m != nil { - return m.Data2 + return m.Prices } return nil } -// inputPhotoEmpty#1cd7bf0d = InputPhoto; -type TLInputPhotoEmpty struct { - Data2 *InputPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Invoice struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Invoice_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPhotoEmpty) Reset() { *m = TLInputPhotoEmpty{} } -func (m *TLInputPhotoEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputPhotoEmpty) ProtoMessage() {} -func (*TLInputPhotoEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{659} +func (m *Invoice) Reset() { *m = Invoice{} } +func (m *Invoice) String() string { return proto.CompactTextString(m) } +func (*Invoice) ProtoMessage() {} +func (*Invoice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{602} } -func (m *TLInputPhotoEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPhotoEmpty.Unmarshal(m, b) +func (m *Invoice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Invoice.Unmarshal(m, b) } -func (m *TLInputPhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPhotoEmpty.Marshal(b, m, deterministic) +func (m *Invoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Invoice.Marshal(b, m, deterministic) } -func (dst *TLInputPhotoEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPhotoEmpty.Merge(dst, src) +func (dst *Invoice) XXX_Merge(src proto.Message) { + xxx_messageInfo_Invoice.Merge(dst, src) } -func (m *TLInputPhotoEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputPhotoEmpty.Size(m) +func (m *Invoice) XXX_Size() int { + return xxx_messageInfo_Invoice.Size(m) } -func (m *TLInputPhotoEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPhotoEmpty.DiscardUnknown(m) +func (m *Invoice) XXX_DiscardUnknown() { + xxx_messageInfo_Invoice.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPhotoEmpty proto.InternalMessageInfo +var xxx_messageInfo_Invoice proto.InternalMessageInfo -func (m *TLInputPhotoEmpty) GetData2() *InputPhoto_Data { +func (m *Invoice) GetConstructor() TLConstructor { if m != nil { - return m.Data2 + return m.Constructor } - return nil -} - -// inputPhoto#fb95c6c4 id:long access_hash:long = InputPhoto; -type TLInputPhoto struct { - Data2 *InputPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputPhoto) Reset() { *m = TLInputPhoto{} } -func (m *TLInputPhoto) String() string { return proto.CompactTextString(m) } -func (*TLInputPhoto) ProtoMessage() {} -func (*TLInputPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{660} -} -func (m *TLInputPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPhoto.Unmarshal(m, b) -} -func (m *TLInputPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPhoto.Marshal(b, m, deterministic) -} -func (dst *TLInputPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPhoto.Merge(dst, src) -} -func (m *TLInputPhoto) XXX_Size() int { - return xxx_messageInfo_TLInputPhoto.Size(m) -} -func (m *TLInputPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPhoto.DiscardUnknown(m) + return TLConstructor_CRC32_UNKNOWN } -var xxx_messageInfo_TLInputPhoto proto.InternalMessageInfo - -func (m *TLInputPhoto) GetData2() *InputPhoto_Data { +func (m *Invoice) GetData2() *Invoice_Data { if m != nil { return m.Data2 } return nil } -// inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto; -type TLInputPhotoLayer86 struct { - Data2 *InputPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector = Invoice; +type TLInvoice struct { + Data2 *Invoice_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPhotoLayer86) Reset() { *m = TLInputPhotoLayer86{} } -func (m *TLInputPhotoLayer86) String() string { return proto.CompactTextString(m) } -func (*TLInputPhotoLayer86) ProtoMessage() {} -func (*TLInputPhotoLayer86) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{661} +func (m *TLInvoice) Reset() { *m = TLInvoice{} } +func (m *TLInvoice) String() string { return proto.CompactTextString(m) } +func (*TLInvoice) ProtoMessage() {} +func (*TLInvoice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{603} } -func (m *TLInputPhotoLayer86) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPhotoLayer86.Unmarshal(m, b) +func (m *TLInvoice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInvoice.Unmarshal(m, b) } -func (m *TLInputPhotoLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPhotoLayer86.Marshal(b, m, deterministic) +func (m *TLInvoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInvoice.Marshal(b, m, deterministic) } -func (dst *TLInputPhotoLayer86) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPhotoLayer86.Merge(dst, src) +func (dst *TLInvoice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInvoice.Merge(dst, src) } -func (m *TLInputPhotoLayer86) XXX_Size() int { - return xxx_messageInfo_TLInputPhotoLayer86.Size(m) +func (m *TLInvoice) XXX_Size() int { + return xxx_messageInfo_TLInvoice.Size(m) } -func (m *TLInputPhotoLayer86) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPhotoLayer86.DiscardUnknown(m) +func (m *TLInvoice) XXX_DiscardUnknown() { + xxx_messageInfo_TLInvoice.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPhotoLayer86 proto.InternalMessageInfo +var xxx_messageInfo_TLInvoice proto.InternalMessageInfo -func (m *TLInputPhotoLayer86) GetData2() *InputPhoto_Data { +func (m *TLInvoice) GetData2() *Invoice_Data { if m != nil { return m.Data2 } @@ -31765,222 +30345,182 @@ func (m *TLInputPhotoLayer86) GetData2() *InputPhoto_Data { } // ///////////////////////////////////////////////////////////////////////////// -// upload_File <-- -// + TL_upload_file -// + TL_upload_fileCdnRedirect +// help_DeepLinkInfo <-- +// + TL_help_deepLinkInfoEmpty +// + TL_help_deepLinkInfo // -type Upload_File_Data struct { - Type *Storage_FileType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Mtime int32 `protobuf:"varint,2,opt,name=mtime,proto3" json:"mtime,omitempty"` - Bytes []byte `protobuf:"bytes,3,opt,name=bytes,proto3" json:"bytes,omitempty"` - DcId int32 `protobuf:"varint,4,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` - FileToken []byte `protobuf:"bytes,5,opt,name=file_token,json=fileToken,proto3" json:"file_token,omitempty"` - EncryptionKey []byte `protobuf:"bytes,6,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"` - EncryptionIv []byte `protobuf:"bytes,7,opt,name=encryption_iv,json=encryptionIv,proto3" json:"encryption_iv,omitempty"` - FileHashes []*FileHash `protobuf:"bytes,8,rep,name=file_hashes,json=fileHashes,proto3" json:"file_hashes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_DeepLinkInfo_Data struct { + UpdateApp bool `protobuf:"varint,1,opt,name=update_app,json=updateApp,proto3" json:"update_app,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,3,rep,name=entities,proto3" json:"entities,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Upload_File_Data) Reset() { *m = Upload_File_Data{} } -func (m *Upload_File_Data) String() string { return proto.CompactTextString(m) } -func (*Upload_File_Data) ProtoMessage() {} -func (*Upload_File_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{662} -} -func (m *Upload_File_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Upload_File_Data.Unmarshal(m, b) -} -func (m *Upload_File_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Upload_File_Data.Marshal(b, m, deterministic) -} -func (dst *Upload_File_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Upload_File_Data.Merge(dst, src) -} -func (m *Upload_File_Data) XXX_Size() int { - return xxx_messageInfo_Upload_File_Data.Size(m) +func (m *Help_DeepLinkInfo_Data) Reset() { *m = Help_DeepLinkInfo_Data{} } +func (m *Help_DeepLinkInfo_Data) String() string { return proto.CompactTextString(m) } +func (*Help_DeepLinkInfo_Data) ProtoMessage() {} +func (*Help_DeepLinkInfo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{604} } -func (m *Upload_File_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Upload_File_Data.DiscardUnknown(m) +func (m *Help_DeepLinkInfo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_DeepLinkInfo_Data.Unmarshal(m, b) } - -var xxx_messageInfo_Upload_File_Data proto.InternalMessageInfo - -func (m *Upload_File_Data) GetType() *Storage_FileType { - if m != nil { - return m.Type - } - return nil +func (m *Help_DeepLinkInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_DeepLinkInfo_Data.Marshal(b, m, deterministic) } - -func (m *Upload_File_Data) GetMtime() int32 { - if m != nil { - return m.Mtime - } - return 0 +func (dst *Help_DeepLinkInfo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_DeepLinkInfo_Data.Merge(dst, src) } - -func (m *Upload_File_Data) GetBytes() []byte { - if m != nil { - return m.Bytes - } - return nil +func (m *Help_DeepLinkInfo_Data) XXX_Size() int { + return xxx_messageInfo_Help_DeepLinkInfo_Data.Size(m) } - -func (m *Upload_File_Data) GetDcId() int32 { - if m != nil { - return m.DcId - } - return 0 +func (m *Help_DeepLinkInfo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_DeepLinkInfo_Data.DiscardUnknown(m) } -func (m *Upload_File_Data) GetFileToken() []byte { - if m != nil { - return m.FileToken - } - return nil -} +var xxx_messageInfo_Help_DeepLinkInfo_Data proto.InternalMessageInfo -func (m *Upload_File_Data) GetEncryptionKey() []byte { +func (m *Help_DeepLinkInfo_Data) GetUpdateApp() bool { if m != nil { - return m.EncryptionKey + return m.UpdateApp } - return nil + return false } -func (m *Upload_File_Data) GetEncryptionIv() []byte { +func (m *Help_DeepLinkInfo_Data) GetMessage() string { if m != nil { - return m.EncryptionIv + return m.Message } - return nil + return "" } -func (m *Upload_File_Data) GetFileHashes() []*FileHash { +func (m *Help_DeepLinkInfo_Data) GetEntities() []*MessageEntity { if m != nil { - return m.FileHashes + return m.Entities } return nil } -type Upload_File struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Upload_File_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_DeepLinkInfo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Help_DeepLinkInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Upload_File) Reset() { *m = Upload_File{} } -func (m *Upload_File) String() string { return proto.CompactTextString(m) } -func (*Upload_File) ProtoMessage() {} -func (*Upload_File) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{663} +func (m *Help_DeepLinkInfo) Reset() { *m = Help_DeepLinkInfo{} } +func (m *Help_DeepLinkInfo) String() string { return proto.CompactTextString(m) } +func (*Help_DeepLinkInfo) ProtoMessage() {} +func (*Help_DeepLinkInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{605} } -func (m *Upload_File) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Upload_File.Unmarshal(m, b) +func (m *Help_DeepLinkInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_DeepLinkInfo.Unmarshal(m, b) } -func (m *Upload_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Upload_File.Marshal(b, m, deterministic) +func (m *Help_DeepLinkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_DeepLinkInfo.Marshal(b, m, deterministic) } -func (dst *Upload_File) XXX_Merge(src proto.Message) { - xxx_messageInfo_Upload_File.Merge(dst, src) +func (dst *Help_DeepLinkInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_DeepLinkInfo.Merge(dst, src) } -func (m *Upload_File) XXX_Size() int { - return xxx_messageInfo_Upload_File.Size(m) +func (m *Help_DeepLinkInfo) XXX_Size() int { + return xxx_messageInfo_Help_DeepLinkInfo.Size(m) } -func (m *Upload_File) XXX_DiscardUnknown() { - xxx_messageInfo_Upload_File.DiscardUnknown(m) +func (m *Help_DeepLinkInfo) XXX_DiscardUnknown() { + xxx_messageInfo_Help_DeepLinkInfo.DiscardUnknown(m) } -var xxx_messageInfo_Upload_File proto.InternalMessageInfo +var xxx_messageInfo_Help_DeepLinkInfo proto.InternalMessageInfo -func (m *Upload_File) GetConstructor() TLConstructor { +func (m *Help_DeepLinkInfo) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Upload_File) GetData2() *Upload_File_Data { +func (m *Help_DeepLinkInfo) GetData2() *Help_DeepLinkInfo_Data { if m != nil { return m.Data2 } return nil } -// upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; -type TLUploadFile struct { - Data2 *Upload_File_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo; +type TLHelpDeepLinkInfoEmpty struct { + Data2 *Help_DeepLinkInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUploadFile) Reset() { *m = TLUploadFile{} } -func (m *TLUploadFile) String() string { return proto.CompactTextString(m) } -func (*TLUploadFile) ProtoMessage() {} -func (*TLUploadFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{664} +func (m *TLHelpDeepLinkInfoEmpty) Reset() { *m = TLHelpDeepLinkInfoEmpty{} } +func (m *TLHelpDeepLinkInfoEmpty) String() string { return proto.CompactTextString(m) } +func (*TLHelpDeepLinkInfoEmpty) ProtoMessage() {} +func (*TLHelpDeepLinkInfoEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{606} } -func (m *TLUploadFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUploadFile.Unmarshal(m, b) +func (m *TLHelpDeepLinkInfoEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpDeepLinkInfoEmpty.Unmarshal(m, b) } -func (m *TLUploadFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUploadFile.Marshal(b, m, deterministic) +func (m *TLHelpDeepLinkInfoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpDeepLinkInfoEmpty.Marshal(b, m, deterministic) } -func (dst *TLUploadFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUploadFile.Merge(dst, src) +func (dst *TLHelpDeepLinkInfoEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpDeepLinkInfoEmpty.Merge(dst, src) } -func (m *TLUploadFile) XXX_Size() int { - return xxx_messageInfo_TLUploadFile.Size(m) +func (m *TLHelpDeepLinkInfoEmpty) XXX_Size() int { + return xxx_messageInfo_TLHelpDeepLinkInfoEmpty.Size(m) } -func (m *TLUploadFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLUploadFile.DiscardUnknown(m) +func (m *TLHelpDeepLinkInfoEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpDeepLinkInfoEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLUploadFile proto.InternalMessageInfo +var xxx_messageInfo_TLHelpDeepLinkInfoEmpty proto.InternalMessageInfo -func (m *TLUploadFile) GetData2() *Upload_File_Data { +func (m *TLHelpDeepLinkInfoEmpty) GetData2() *Help_DeepLinkInfo_Data { if m != nil { return m.Data2 } return nil } -// upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File; -type TLUploadFileCdnRedirect struct { - Data2 *Upload_File_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo; +type TLHelpDeepLinkInfo struct { + Data2 *Help_DeepLinkInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUploadFileCdnRedirect) Reset() { *m = TLUploadFileCdnRedirect{} } -func (m *TLUploadFileCdnRedirect) String() string { return proto.CompactTextString(m) } -func (*TLUploadFileCdnRedirect) ProtoMessage() {} -func (*TLUploadFileCdnRedirect) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{665} +func (m *TLHelpDeepLinkInfo) Reset() { *m = TLHelpDeepLinkInfo{} } +func (m *TLHelpDeepLinkInfo) String() string { return proto.CompactTextString(m) } +func (*TLHelpDeepLinkInfo) ProtoMessage() {} +func (*TLHelpDeepLinkInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{607} } -func (m *TLUploadFileCdnRedirect) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUploadFileCdnRedirect.Unmarshal(m, b) +func (m *TLHelpDeepLinkInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpDeepLinkInfo.Unmarshal(m, b) } -func (m *TLUploadFileCdnRedirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUploadFileCdnRedirect.Marshal(b, m, deterministic) +func (m *TLHelpDeepLinkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpDeepLinkInfo.Marshal(b, m, deterministic) } -func (dst *TLUploadFileCdnRedirect) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUploadFileCdnRedirect.Merge(dst, src) +func (dst *TLHelpDeepLinkInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpDeepLinkInfo.Merge(dst, src) } -func (m *TLUploadFileCdnRedirect) XXX_Size() int { - return xxx_messageInfo_TLUploadFileCdnRedirect.Size(m) +func (m *TLHelpDeepLinkInfo) XXX_Size() int { + return xxx_messageInfo_TLHelpDeepLinkInfo.Size(m) } -func (m *TLUploadFileCdnRedirect) XXX_DiscardUnknown() { - xxx_messageInfo_TLUploadFileCdnRedirect.DiscardUnknown(m) +func (m *TLHelpDeepLinkInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpDeepLinkInfo.DiscardUnknown(m) } -var xxx_messageInfo_TLUploadFileCdnRedirect proto.InternalMessageInfo +var xxx_messageInfo_TLHelpDeepLinkInfo proto.InternalMessageInfo -func (m *TLUploadFileCdnRedirect) GetData2() *Upload_File_Data { +func (m *TLHelpDeepLinkInfo) GetData2() *Help_DeepLinkInfo_Data { if m != nil { return m.Data2 } @@ -31988,222 +30528,182 @@ func (m *TLUploadFileCdnRedirect) GetData2() *Upload_File_Data { } // ///////////////////////////////////////////////////////////////////////////// -// FoundGif <-- -// + TL_foundGif -// + TL_foundGifCached +// UserProfilePhoto <-- +// + TL_userProfilePhotoEmpty +// + TL_userProfilePhoto // -type FoundGif_Data struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - ThumbUrl string `protobuf:"bytes,2,opt,name=thumb_url,json=thumbUrl,proto3" json:"thumb_url,omitempty"` - ContentUrl string `protobuf:"bytes,3,opt,name=content_url,json=contentUrl,proto3" json:"content_url,omitempty"` - ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` - W int32 `protobuf:"varint,5,opt,name=w,proto3" json:"w,omitempty"` - H int32 `protobuf:"varint,6,opt,name=h,proto3" json:"h,omitempty"` - Photo *Photo `protobuf:"bytes,7,opt,name=photo,proto3" json:"photo,omitempty"` - Document *Document `protobuf:"bytes,8,opt,name=document,proto3" json:"document,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type UserProfilePhoto_Data struct { + PhotoId int64 `protobuf:"varint,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"` + PhotoSmall *FileLocation `protobuf:"bytes,2,opt,name=photo_small,json=photoSmall,proto3" json:"photo_small,omitempty"` + PhotoBig *FileLocation `protobuf:"bytes,3,opt,name=photo_big,json=photoBig,proto3" json:"photo_big,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FoundGif_Data) Reset() { *m = FoundGif_Data{} } -func (m *FoundGif_Data) String() string { return proto.CompactTextString(m) } -func (*FoundGif_Data) ProtoMessage() {} -func (*FoundGif_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{666} -} -func (m *FoundGif_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FoundGif_Data.Unmarshal(m, b) -} -func (m *FoundGif_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FoundGif_Data.Marshal(b, m, deterministic) -} -func (dst *FoundGif_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_FoundGif_Data.Merge(dst, src) -} -func (m *FoundGif_Data) XXX_Size() int { - return xxx_messageInfo_FoundGif_Data.Size(m) +func (m *UserProfilePhoto_Data) Reset() { *m = UserProfilePhoto_Data{} } +func (m *UserProfilePhoto_Data) String() string { return proto.CompactTextString(m) } +func (*UserProfilePhoto_Data) ProtoMessage() {} +func (*UserProfilePhoto_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{608} } -func (m *FoundGif_Data) XXX_DiscardUnknown() { - xxx_messageInfo_FoundGif_Data.DiscardUnknown(m) +func (m *UserProfilePhoto_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserProfilePhoto_Data.Unmarshal(m, b) } - -var xxx_messageInfo_FoundGif_Data proto.InternalMessageInfo - -func (m *FoundGif_Data) GetUrl() string { - if m != nil { - return m.Url - } - return "" +func (m *UserProfilePhoto_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserProfilePhoto_Data.Marshal(b, m, deterministic) } - -func (m *FoundGif_Data) GetThumbUrl() string { - if m != nil { - return m.ThumbUrl - } - return "" +func (dst *UserProfilePhoto_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserProfilePhoto_Data.Merge(dst, src) } - -func (m *FoundGif_Data) GetContentUrl() string { - if m != nil { - return m.ContentUrl - } - return "" +func (m *UserProfilePhoto_Data) XXX_Size() int { + return xxx_messageInfo_UserProfilePhoto_Data.Size(m) } - -func (m *FoundGif_Data) GetContentType() string { - if m != nil { - return m.ContentType - } - return "" +func (m *UserProfilePhoto_Data) XXX_DiscardUnknown() { + xxx_messageInfo_UserProfilePhoto_Data.DiscardUnknown(m) } -func (m *FoundGif_Data) GetW() int32 { - if m != nil { - return m.W - } - return 0 -} +var xxx_messageInfo_UserProfilePhoto_Data proto.InternalMessageInfo -func (m *FoundGif_Data) GetH() int32 { +func (m *UserProfilePhoto_Data) GetPhotoId() int64 { if m != nil { - return m.H + return m.PhotoId } return 0 } -func (m *FoundGif_Data) GetPhoto() *Photo { +func (m *UserProfilePhoto_Data) GetPhotoSmall() *FileLocation { if m != nil { - return m.Photo + return m.PhotoSmall } return nil } -func (m *FoundGif_Data) GetDocument() *Document { +func (m *UserProfilePhoto_Data) GetPhotoBig() *FileLocation { if m != nil { - return m.Document + return m.PhotoBig } return nil } -type FoundGif struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *FoundGif_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type UserProfilePhoto struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *UserProfilePhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FoundGif) Reset() { *m = FoundGif{} } -func (m *FoundGif) String() string { return proto.CompactTextString(m) } -func (*FoundGif) ProtoMessage() {} -func (*FoundGif) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{667} +func (m *UserProfilePhoto) Reset() { *m = UserProfilePhoto{} } +func (m *UserProfilePhoto) String() string { return proto.CompactTextString(m) } +func (*UserProfilePhoto) ProtoMessage() {} +func (*UserProfilePhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{609} } -func (m *FoundGif) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FoundGif.Unmarshal(m, b) +func (m *UserProfilePhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserProfilePhoto.Unmarshal(m, b) } -func (m *FoundGif) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FoundGif.Marshal(b, m, deterministic) +func (m *UserProfilePhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserProfilePhoto.Marshal(b, m, deterministic) } -func (dst *FoundGif) XXX_Merge(src proto.Message) { - xxx_messageInfo_FoundGif.Merge(dst, src) +func (dst *UserProfilePhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserProfilePhoto.Merge(dst, src) } -func (m *FoundGif) XXX_Size() int { - return xxx_messageInfo_FoundGif.Size(m) +func (m *UserProfilePhoto) XXX_Size() int { + return xxx_messageInfo_UserProfilePhoto.Size(m) } -func (m *FoundGif) XXX_DiscardUnknown() { - xxx_messageInfo_FoundGif.DiscardUnknown(m) +func (m *UserProfilePhoto) XXX_DiscardUnknown() { + xxx_messageInfo_UserProfilePhoto.DiscardUnknown(m) } -var xxx_messageInfo_FoundGif proto.InternalMessageInfo +var xxx_messageInfo_UserProfilePhoto proto.InternalMessageInfo -func (m *FoundGif) GetConstructor() TLConstructor { +func (m *UserProfilePhoto) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *FoundGif) GetData2() *FoundGif_Data { +func (m *UserProfilePhoto) GetData2() *UserProfilePhoto_Data { if m != nil { return m.Data2 } return nil } -// foundGif#162ecc1f url:string thumb_url:string content_url:string content_type:string w:int h:int = FoundGif; -type TLFoundGif struct { - Data2 *FoundGif_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; +type TLUserProfilePhotoEmpty struct { + Data2 *UserProfilePhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLFoundGif) Reset() { *m = TLFoundGif{} } -func (m *TLFoundGif) String() string { return proto.CompactTextString(m) } -func (*TLFoundGif) ProtoMessage() {} -func (*TLFoundGif) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{668} +func (m *TLUserProfilePhotoEmpty) Reset() { *m = TLUserProfilePhotoEmpty{} } +func (m *TLUserProfilePhotoEmpty) String() string { return proto.CompactTextString(m) } +func (*TLUserProfilePhotoEmpty) ProtoMessage() {} +func (*TLUserProfilePhotoEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{610} } -func (m *TLFoundGif) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLFoundGif.Unmarshal(m, b) +func (m *TLUserProfilePhotoEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserProfilePhotoEmpty.Unmarshal(m, b) } -func (m *TLFoundGif) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLFoundGif.Marshal(b, m, deterministic) +func (m *TLUserProfilePhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserProfilePhotoEmpty.Marshal(b, m, deterministic) } -func (dst *TLFoundGif) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLFoundGif.Merge(dst, src) +func (dst *TLUserProfilePhotoEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserProfilePhotoEmpty.Merge(dst, src) } -func (m *TLFoundGif) XXX_Size() int { - return xxx_messageInfo_TLFoundGif.Size(m) +func (m *TLUserProfilePhotoEmpty) XXX_Size() int { + return xxx_messageInfo_TLUserProfilePhotoEmpty.Size(m) } -func (m *TLFoundGif) XXX_DiscardUnknown() { - xxx_messageInfo_TLFoundGif.DiscardUnknown(m) +func (m *TLUserProfilePhotoEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserProfilePhotoEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLFoundGif proto.InternalMessageInfo +var xxx_messageInfo_TLUserProfilePhotoEmpty proto.InternalMessageInfo -func (m *TLFoundGif) GetData2() *FoundGif_Data { +func (m *TLUserProfilePhotoEmpty) GetData2() *UserProfilePhoto_Data { if m != nil { return m.Data2 } return nil } -// foundGifCached#9c750409 url:string photo:Photo document:Document = FoundGif; -type TLFoundGifCached struct { - Data2 *FoundGif_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto; +type TLUserProfilePhoto struct { + Data2 *UserProfilePhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLFoundGifCached) Reset() { *m = TLFoundGifCached{} } -func (m *TLFoundGifCached) String() string { return proto.CompactTextString(m) } -func (*TLFoundGifCached) ProtoMessage() {} -func (*TLFoundGifCached) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{669} +func (m *TLUserProfilePhoto) Reset() { *m = TLUserProfilePhoto{} } +func (m *TLUserProfilePhoto) String() string { return proto.CompactTextString(m) } +func (*TLUserProfilePhoto) ProtoMessage() {} +func (*TLUserProfilePhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{611} } -func (m *TLFoundGifCached) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLFoundGifCached.Unmarshal(m, b) +func (m *TLUserProfilePhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUserProfilePhoto.Unmarshal(m, b) } -func (m *TLFoundGifCached) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLFoundGifCached.Marshal(b, m, deterministic) +func (m *TLUserProfilePhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUserProfilePhoto.Marshal(b, m, deterministic) } -func (dst *TLFoundGifCached) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLFoundGifCached.Merge(dst, src) +func (dst *TLUserProfilePhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUserProfilePhoto.Merge(dst, src) } -func (m *TLFoundGifCached) XXX_Size() int { - return xxx_messageInfo_TLFoundGifCached.Size(m) +func (m *TLUserProfilePhoto) XXX_Size() int { + return xxx_messageInfo_TLUserProfilePhoto.Size(m) } -func (m *TLFoundGifCached) XXX_DiscardUnknown() { - xxx_messageInfo_TLFoundGifCached.DiscardUnknown(m) +func (m *TLUserProfilePhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLUserProfilePhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLFoundGifCached proto.InternalMessageInfo +var xxx_messageInfo_TLUserProfilePhoto proto.InternalMessageInfo -func (m *TLFoundGifCached) GetData2() *FoundGif_Data { +func (m *TLUserProfilePhoto) GetData2() *UserProfilePhoto_Data { if m != nil { return m.Data2 } @@ -32211,500 +30711,524 @@ func (m *TLFoundGifCached) GetData2() *FoundGif_Data { } // ///////////////////////////////////////////////////////////////////////////// -// DialogPeer <-- -// + TL_dialogPeer +// ChatParticipants <-- +// + TL_chatParticipantsForbidden +// + TL_chatParticipants // -type DialogPeer_Data struct { - Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChatParticipants_Data struct { + ChatId int32 `protobuf:"varint,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + SelfParticipant *ChatParticipant `protobuf:"bytes,2,opt,name=self_participant,json=selfParticipant,proto3" json:"self_participant,omitempty"` + Participants []*ChatParticipant `protobuf:"bytes,3,rep,name=participants,proto3" json:"participants,omitempty"` + Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DialogPeer_Data) Reset() { *m = DialogPeer_Data{} } -func (m *DialogPeer_Data) String() string { return proto.CompactTextString(m) } -func (*DialogPeer_Data) ProtoMessage() {} -func (*DialogPeer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{670} +func (m *ChatParticipants_Data) Reset() { *m = ChatParticipants_Data{} } +func (m *ChatParticipants_Data) String() string { return proto.CompactTextString(m) } +func (*ChatParticipants_Data) ProtoMessage() {} +func (*ChatParticipants_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{612} } -func (m *DialogPeer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DialogPeer_Data.Unmarshal(m, b) +func (m *ChatParticipants_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatParticipants_Data.Unmarshal(m, b) } -func (m *DialogPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DialogPeer_Data.Marshal(b, m, deterministic) +func (m *ChatParticipants_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatParticipants_Data.Marshal(b, m, deterministic) } -func (dst *DialogPeer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_DialogPeer_Data.Merge(dst, src) +func (dst *ChatParticipants_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatParticipants_Data.Merge(dst, src) } -func (m *DialogPeer_Data) XXX_Size() int { - return xxx_messageInfo_DialogPeer_Data.Size(m) +func (m *ChatParticipants_Data) XXX_Size() int { + return xxx_messageInfo_ChatParticipants_Data.Size(m) } -func (m *DialogPeer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_DialogPeer_Data.DiscardUnknown(m) +func (m *ChatParticipants_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChatParticipants_Data.DiscardUnknown(m) } -var xxx_messageInfo_DialogPeer_Data proto.InternalMessageInfo +var xxx_messageInfo_ChatParticipants_Data proto.InternalMessageInfo -func (m *DialogPeer_Data) GetPeer() *Peer { +func (m *ChatParticipants_Data) GetChatId() int32 { if m != nil { - return m.Peer + return m.ChatId + } + return 0 +} + +func (m *ChatParticipants_Data) GetSelfParticipant() *ChatParticipant { + if m != nil { + return m.SelfParticipant } return nil } -type DialogPeer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *DialogPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChatParticipants_Data) GetParticipants() []*ChatParticipant { + if m != nil { + return m.Participants + } + return nil } -func (m *DialogPeer) Reset() { *m = DialogPeer{} } -func (m *DialogPeer) String() string { return proto.CompactTextString(m) } -func (*DialogPeer) ProtoMessage() {} -func (*DialogPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{671} +func (m *ChatParticipants_Data) GetVersion() int32 { + if m != nil { + return m.Version + } + return 0 } -func (m *DialogPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DialogPeer.Unmarshal(m, b) + +type ChatParticipants struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChatParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DialogPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DialogPeer.Marshal(b, m, deterministic) + +func (m *ChatParticipants) Reset() { *m = ChatParticipants{} } +func (m *ChatParticipants) String() string { return proto.CompactTextString(m) } +func (*ChatParticipants) ProtoMessage() {} +func (*ChatParticipants) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{613} } -func (dst *DialogPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_DialogPeer.Merge(dst, src) +func (m *ChatParticipants) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatParticipants.Unmarshal(m, b) } -func (m *DialogPeer) XXX_Size() int { - return xxx_messageInfo_DialogPeer.Size(m) +func (m *ChatParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatParticipants.Marshal(b, m, deterministic) } -func (m *DialogPeer) XXX_DiscardUnknown() { - xxx_messageInfo_DialogPeer.DiscardUnknown(m) +func (dst *ChatParticipants) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatParticipants.Merge(dst, src) +} +func (m *ChatParticipants) XXX_Size() int { + return xxx_messageInfo_ChatParticipants.Size(m) +} +func (m *ChatParticipants) XXX_DiscardUnknown() { + xxx_messageInfo_ChatParticipants.DiscardUnknown(m) } -var xxx_messageInfo_DialogPeer proto.InternalMessageInfo +var xxx_messageInfo_ChatParticipants proto.InternalMessageInfo -func (m *DialogPeer) GetConstructor() TLConstructor { +func (m *ChatParticipants) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *DialogPeer) GetData2() *DialogPeer_Data { +func (m *ChatParticipants) GetData2() *ChatParticipants_Data { if m != nil { return m.Data2 } return nil } -// dialogPeer#e56dbf05 peer:Peer = DialogPeer; -type TLDialogPeer struct { - Data2 *DialogPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants; +type TLChatParticipantsForbidden struct { + Data2 *ChatParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDialogPeer) Reset() { *m = TLDialogPeer{} } -func (m *TLDialogPeer) String() string { return proto.CompactTextString(m) } -func (*TLDialogPeer) ProtoMessage() {} -func (*TLDialogPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{672} +func (m *TLChatParticipantsForbidden) Reset() { *m = TLChatParticipantsForbidden{} } +func (m *TLChatParticipantsForbidden) String() string { return proto.CompactTextString(m) } +func (*TLChatParticipantsForbidden) ProtoMessage() {} +func (*TLChatParticipantsForbidden) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{614} } -func (m *TLDialogPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDialogPeer.Unmarshal(m, b) +func (m *TLChatParticipantsForbidden) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatParticipantsForbidden.Unmarshal(m, b) } -func (m *TLDialogPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDialogPeer.Marshal(b, m, deterministic) +func (m *TLChatParticipantsForbidden) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatParticipantsForbidden.Marshal(b, m, deterministic) } -func (dst *TLDialogPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDialogPeer.Merge(dst, src) +func (dst *TLChatParticipantsForbidden) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatParticipantsForbidden.Merge(dst, src) } -func (m *TLDialogPeer) XXX_Size() int { - return xxx_messageInfo_TLDialogPeer.Size(m) +func (m *TLChatParticipantsForbidden) XXX_Size() int { + return xxx_messageInfo_TLChatParticipantsForbidden.Size(m) } -func (m *TLDialogPeer) XXX_DiscardUnknown() { - xxx_messageInfo_TLDialogPeer.DiscardUnknown(m) +func (m *TLChatParticipantsForbidden) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatParticipantsForbidden.DiscardUnknown(m) } -var xxx_messageInfo_TLDialogPeer proto.InternalMessageInfo +var xxx_messageInfo_TLChatParticipantsForbidden proto.InternalMessageInfo -func (m *TLDialogPeer) GetData2() *DialogPeer_Data { +func (m *TLChatParticipantsForbidden) GetData2() *ChatParticipants_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_FoundStickerSets <-- -// + TL_messages_foundStickerSetsNotModified -// + TL_messages_foundStickerSets -// -type Messages_FoundStickerSets_Data struct { - Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - Sets []*StickerSetCovered `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatParticipants#3f460fed chat_id:int participants:Vector version:int = ChatParticipants; +type TLChatParticipants struct { + Data2 *ChatParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_FoundStickerSets_Data) Reset() { *m = Messages_FoundStickerSets_Data{} } -func (m *Messages_FoundStickerSets_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_FoundStickerSets_Data) ProtoMessage() {} -func (*Messages_FoundStickerSets_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{673} +func (m *TLChatParticipants) Reset() { *m = TLChatParticipants{} } +func (m *TLChatParticipants) String() string { return proto.CompactTextString(m) } +func (*TLChatParticipants) ProtoMessage() {} +func (*TLChatParticipants) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{615} } -func (m *Messages_FoundStickerSets_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_FoundStickerSets_Data.Unmarshal(m, b) +func (m *TLChatParticipants) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatParticipants.Unmarshal(m, b) } -func (m *Messages_FoundStickerSets_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_FoundStickerSets_Data.Marshal(b, m, deterministic) +func (m *TLChatParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatParticipants.Marshal(b, m, deterministic) } -func (dst *Messages_FoundStickerSets_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_FoundStickerSets_Data.Merge(dst, src) +func (dst *TLChatParticipants) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatParticipants.Merge(dst, src) } -func (m *Messages_FoundStickerSets_Data) XXX_Size() int { - return xxx_messageInfo_Messages_FoundStickerSets_Data.Size(m) +func (m *TLChatParticipants) XXX_Size() int { + return xxx_messageInfo_TLChatParticipants.Size(m) } -func (m *Messages_FoundStickerSets_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_FoundStickerSets_Data.DiscardUnknown(m) +func (m *TLChatParticipants) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatParticipants.DiscardUnknown(m) } -var xxx_messageInfo_Messages_FoundStickerSets_Data proto.InternalMessageInfo +var xxx_messageInfo_TLChatParticipants proto.InternalMessageInfo -func (m *Messages_FoundStickerSets_Data) GetHash() int32 { +func (m *TLChatParticipants) GetData2() *ChatParticipants_Data { if m != nil { - return m.Hash + return m.Data2 } - return 0 + return nil } -func (m *Messages_FoundStickerSets_Data) GetSets() []*StickerSetCovered { +// ///////////////////////////////////////////////////////////////////////////// +// InputNotifyPeer <-- +// + TL_inputNotifyPeer +// + TL_inputNotifyUsers +// + TL_inputNotifyChats +// +type InputNotifyPeer_Data struct { + Peer *InputPeer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputNotifyPeer_Data) Reset() { *m = InputNotifyPeer_Data{} } +func (m *InputNotifyPeer_Data) String() string { return proto.CompactTextString(m) } +func (*InputNotifyPeer_Data) ProtoMessage() {} +func (*InputNotifyPeer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{616} +} +func (m *InputNotifyPeer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputNotifyPeer_Data.Unmarshal(m, b) +} +func (m *InputNotifyPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputNotifyPeer_Data.Marshal(b, m, deterministic) +} +func (dst *InputNotifyPeer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputNotifyPeer_Data.Merge(dst, src) +} +func (m *InputNotifyPeer_Data) XXX_Size() int { + return xxx_messageInfo_InputNotifyPeer_Data.Size(m) +} +func (m *InputNotifyPeer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputNotifyPeer_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_InputNotifyPeer_Data proto.InternalMessageInfo + +func (m *InputNotifyPeer_Data) GetPeer() *InputPeer { if m != nil { - return m.Sets + return m.Peer } return nil } -type Messages_FoundStickerSets struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_FoundStickerSets_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputNotifyPeer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputNotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_FoundStickerSets) Reset() { *m = Messages_FoundStickerSets{} } -func (m *Messages_FoundStickerSets) String() string { return proto.CompactTextString(m) } -func (*Messages_FoundStickerSets) ProtoMessage() {} -func (*Messages_FoundStickerSets) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{674} +func (m *InputNotifyPeer) Reset() { *m = InputNotifyPeer{} } +func (m *InputNotifyPeer) String() string { return proto.CompactTextString(m) } +func (*InputNotifyPeer) ProtoMessage() {} +func (*InputNotifyPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{617} } -func (m *Messages_FoundStickerSets) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_FoundStickerSets.Unmarshal(m, b) +func (m *InputNotifyPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputNotifyPeer.Unmarshal(m, b) } -func (m *Messages_FoundStickerSets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_FoundStickerSets.Marshal(b, m, deterministic) +func (m *InputNotifyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputNotifyPeer.Marshal(b, m, deterministic) } -func (dst *Messages_FoundStickerSets) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_FoundStickerSets.Merge(dst, src) +func (dst *InputNotifyPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputNotifyPeer.Merge(dst, src) } -func (m *Messages_FoundStickerSets) XXX_Size() int { - return xxx_messageInfo_Messages_FoundStickerSets.Size(m) +func (m *InputNotifyPeer) XXX_Size() int { + return xxx_messageInfo_InputNotifyPeer.Size(m) } -func (m *Messages_FoundStickerSets) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_FoundStickerSets.DiscardUnknown(m) +func (m *InputNotifyPeer) XXX_DiscardUnknown() { + xxx_messageInfo_InputNotifyPeer.DiscardUnknown(m) } -var xxx_messageInfo_Messages_FoundStickerSets proto.InternalMessageInfo +var xxx_messageInfo_InputNotifyPeer proto.InternalMessageInfo -func (m *Messages_FoundStickerSets) GetConstructor() TLConstructor { +func (m *InputNotifyPeer) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_FoundStickerSets) GetData2() *Messages_FoundStickerSets_Data { +func (m *InputNotifyPeer) GetData2() *InputNotifyPeer_Data { if m != nil { return m.Data2 } return nil } -// messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets; -type TLMessagesFoundStickerSetsNotModified struct { - Data2 *Messages_FoundStickerSets_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer; +type TLInputNotifyPeer struct { + Data2 *InputNotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesFoundStickerSetsNotModified) Reset() { *m = TLMessagesFoundStickerSetsNotModified{} } -func (m *TLMessagesFoundStickerSetsNotModified) String() string { return proto.CompactTextString(m) } -func (*TLMessagesFoundStickerSetsNotModified) ProtoMessage() {} -func (*TLMessagesFoundStickerSetsNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{675} +func (m *TLInputNotifyPeer) Reset() { *m = TLInputNotifyPeer{} } +func (m *TLInputNotifyPeer) String() string { return proto.CompactTextString(m) } +func (*TLInputNotifyPeer) ProtoMessage() {} +func (*TLInputNotifyPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{618} } -func (m *TLMessagesFoundStickerSetsNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.Unmarshal(m, b) +func (m *TLInputNotifyPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputNotifyPeer.Unmarshal(m, b) } -func (m *TLMessagesFoundStickerSetsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.Marshal(b, m, deterministic) +func (m *TLInputNotifyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputNotifyPeer.Marshal(b, m, deterministic) } -func (dst *TLMessagesFoundStickerSetsNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.Merge(dst, src) +func (dst *TLInputNotifyPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputNotifyPeer.Merge(dst, src) } -func (m *TLMessagesFoundStickerSetsNotModified) XXX_Size() int { - return xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.Size(m) +func (m *TLInputNotifyPeer) XXX_Size() int { + return xxx_messageInfo_TLInputNotifyPeer.Size(m) } -func (m *TLMessagesFoundStickerSetsNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesFoundStickerSetsNotModified.DiscardUnknown(m) +func (m *TLInputNotifyPeer) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputNotifyPeer.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesFoundStickerSetsNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLInputNotifyPeer proto.InternalMessageInfo -func (m *TLMessagesFoundStickerSetsNotModified) GetData2() *Messages_FoundStickerSets_Data { +func (m *TLInputNotifyPeer) GetData2() *InputNotifyPeer_Data { if m != nil { return m.Data2 } return nil } -// messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets; -type TLMessagesFoundStickerSets struct { - Data2 *Messages_FoundStickerSets_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputNotifyUsers#193b4417 = InputNotifyPeer; +type TLInputNotifyUsers struct { + Data2 *InputNotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesFoundStickerSets) Reset() { *m = TLMessagesFoundStickerSets{} } -func (m *TLMessagesFoundStickerSets) String() string { return proto.CompactTextString(m) } -func (*TLMessagesFoundStickerSets) ProtoMessage() {} -func (*TLMessagesFoundStickerSets) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{676} +func (m *TLInputNotifyUsers) Reset() { *m = TLInputNotifyUsers{} } +func (m *TLInputNotifyUsers) String() string { return proto.CompactTextString(m) } +func (*TLInputNotifyUsers) ProtoMessage() {} +func (*TLInputNotifyUsers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{619} } -func (m *TLMessagesFoundStickerSets) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesFoundStickerSets.Unmarshal(m, b) +func (m *TLInputNotifyUsers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputNotifyUsers.Unmarshal(m, b) } -func (m *TLMessagesFoundStickerSets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesFoundStickerSets.Marshal(b, m, deterministic) +func (m *TLInputNotifyUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputNotifyUsers.Marshal(b, m, deterministic) } -func (dst *TLMessagesFoundStickerSets) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesFoundStickerSets.Merge(dst, src) +func (dst *TLInputNotifyUsers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputNotifyUsers.Merge(dst, src) } -func (m *TLMessagesFoundStickerSets) XXX_Size() int { - return xxx_messageInfo_TLMessagesFoundStickerSets.Size(m) +func (m *TLInputNotifyUsers) XXX_Size() int { + return xxx_messageInfo_TLInputNotifyUsers.Size(m) } -func (m *TLMessagesFoundStickerSets) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesFoundStickerSets.DiscardUnknown(m) +func (m *TLInputNotifyUsers) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputNotifyUsers.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesFoundStickerSets proto.InternalMessageInfo +var xxx_messageInfo_TLInputNotifyUsers proto.InternalMessageInfo -func (m *TLMessagesFoundStickerSets) GetData2() *Messages_FoundStickerSets_Data { +func (m *TLInputNotifyUsers) GetData2() *InputNotifyPeer_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// UserFull <-- -// + TL_userFull -// -type UserFull_Data struct { - Blocked bool `protobuf:"varint,1,opt,name=blocked,proto3" json:"blocked,omitempty"` - PhoneCallsAvailable bool `protobuf:"varint,2,opt,name=phone_calls_available,json=phoneCallsAvailable,proto3" json:"phone_calls_available,omitempty"` - PhoneCallsPrivate bool `protobuf:"varint,3,opt,name=phone_calls_private,json=phoneCallsPrivate,proto3" json:"phone_calls_private,omitempty"` - User *User `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` - About string `protobuf:"bytes,5,opt,name=about,proto3" json:"about,omitempty"` - Link *Contacts_Link `protobuf:"bytes,6,opt,name=link,proto3" json:"link,omitempty"` - ProfilePhoto *Photo `protobuf:"bytes,7,opt,name=profile_photo,json=profilePhoto,proto3" json:"profile_photo,omitempty"` - NotifySettings *PeerNotifySettings `protobuf:"bytes,8,opt,name=notify_settings,json=notifySettings,proto3" json:"notify_settings,omitempty"` - BotInfo *BotInfo `protobuf:"bytes,9,opt,name=bot_info,json=botInfo,proto3" json:"bot_info,omitempty"` - CommonChatsCount int32 `protobuf:"varint,10,opt,name=common_chats_count,json=commonChatsCount,proto3" json:"common_chats_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputNotifyChats#4a95e84e = InputNotifyPeer; +type TLInputNotifyChats struct { + Data2 *InputNotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UserFull_Data) Reset() { *m = UserFull_Data{} } -func (m *UserFull_Data) String() string { return proto.CompactTextString(m) } -func (*UserFull_Data) ProtoMessage() {} -func (*UserFull_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{677} +func (m *TLInputNotifyChats) Reset() { *m = TLInputNotifyChats{} } +func (m *TLInputNotifyChats) String() string { return proto.CompactTextString(m) } +func (*TLInputNotifyChats) ProtoMessage() {} +func (*TLInputNotifyChats) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{620} } -func (m *UserFull_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserFull_Data.Unmarshal(m, b) +func (m *TLInputNotifyChats) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputNotifyChats.Unmarshal(m, b) } -func (m *UserFull_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserFull_Data.Marshal(b, m, deterministic) +func (m *TLInputNotifyChats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputNotifyChats.Marshal(b, m, deterministic) } -func (dst *UserFull_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserFull_Data.Merge(dst, src) +func (dst *TLInputNotifyChats) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputNotifyChats.Merge(dst, src) } -func (m *UserFull_Data) XXX_Size() int { - return xxx_messageInfo_UserFull_Data.Size(m) +func (m *TLInputNotifyChats) XXX_Size() int { + return xxx_messageInfo_TLInputNotifyChats.Size(m) } -func (m *UserFull_Data) XXX_DiscardUnknown() { - xxx_messageInfo_UserFull_Data.DiscardUnknown(m) +func (m *TLInputNotifyChats) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputNotifyChats.DiscardUnknown(m) } -var xxx_messageInfo_UserFull_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputNotifyChats proto.InternalMessageInfo -func (m *UserFull_Data) GetBlocked() bool { +func (m *TLInputNotifyChats) GetData2() *InputNotifyPeer_Data { if m != nil { - return m.Blocked + return m.Data2 } - return false + return nil } -func (m *UserFull_Data) GetPhoneCallsAvailable() bool { - if m != nil { - return m.PhoneCallsAvailable - } - return false +// ///////////////////////////////////////////////////////////////////////////// +// DataJSON <-- +// + TL_dataJSON +// +type DataJSON_Data struct { + Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UserFull_Data) GetPhoneCallsPrivate() bool { - if m != nil { - return m.PhoneCallsPrivate - } - return false +func (m *DataJSON_Data) Reset() { *m = DataJSON_Data{} } +func (m *DataJSON_Data) String() string { return proto.CompactTextString(m) } +func (*DataJSON_Data) ProtoMessage() {} +func (*DataJSON_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{621} } - -func (m *UserFull_Data) GetUser() *User { - if m != nil { - return m.User - } - return nil +func (m *DataJSON_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DataJSON_Data.Unmarshal(m, b) } - -func (m *UserFull_Data) GetAbout() string { - if m != nil { - return m.About - } - return "" +func (m *DataJSON_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DataJSON_Data.Marshal(b, m, deterministic) } - -func (m *UserFull_Data) GetLink() *Contacts_Link { - if m != nil { - return m.Link - } - return nil +func (dst *DataJSON_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataJSON_Data.Merge(dst, src) } - -func (m *UserFull_Data) GetProfilePhoto() *Photo { - if m != nil { - return m.ProfilePhoto - } - return nil +func (m *DataJSON_Data) XXX_Size() int { + return xxx_messageInfo_DataJSON_Data.Size(m) } - -func (m *UserFull_Data) GetNotifySettings() *PeerNotifySettings { - if m != nil { - return m.NotifySettings - } - return nil +func (m *DataJSON_Data) XXX_DiscardUnknown() { + xxx_messageInfo_DataJSON_Data.DiscardUnknown(m) } -func (m *UserFull_Data) GetBotInfo() *BotInfo { - if m != nil { - return m.BotInfo - } - return nil -} +var xxx_messageInfo_DataJSON_Data proto.InternalMessageInfo -func (m *UserFull_Data) GetCommonChatsCount() int32 { +func (m *DataJSON_Data) GetData() string { if m != nil { - return m.CommonChatsCount + return m.Data } - return 0 + return "" } -type UserFull struct { +type DataJSON struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *UserFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + Data2 *DataJSON_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *UserFull) Reset() { *m = UserFull{} } -func (m *UserFull) String() string { return proto.CompactTextString(m) } -func (*UserFull) ProtoMessage() {} -func (*UserFull) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{678} +func (m *DataJSON) Reset() { *m = DataJSON{} } +func (m *DataJSON) String() string { return proto.CompactTextString(m) } +func (*DataJSON) ProtoMessage() {} +func (*DataJSON) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{622} } -func (m *UserFull) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserFull.Unmarshal(m, b) +func (m *DataJSON) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DataJSON.Unmarshal(m, b) } -func (m *UserFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserFull.Marshal(b, m, deterministic) +func (m *DataJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DataJSON.Marshal(b, m, deterministic) } -func (dst *UserFull) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserFull.Merge(dst, src) +func (dst *DataJSON) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataJSON.Merge(dst, src) } -func (m *UserFull) XXX_Size() int { - return xxx_messageInfo_UserFull.Size(m) +func (m *DataJSON) XXX_Size() int { + return xxx_messageInfo_DataJSON.Size(m) } -func (m *UserFull) XXX_DiscardUnknown() { - xxx_messageInfo_UserFull.DiscardUnknown(m) +func (m *DataJSON) XXX_DiscardUnknown() { + xxx_messageInfo_DataJSON.DiscardUnknown(m) } -var xxx_messageInfo_UserFull proto.InternalMessageInfo +var xxx_messageInfo_DataJSON proto.InternalMessageInfo -func (m *UserFull) GetConstructor() TLConstructor { +func (m *DataJSON) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *UserFull) GetData2() *UserFull_Data { +func (m *DataJSON) GetData2() *DataJSON_Data { if m != nil { return m.Data2 } return nil } -// userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; -type TLUserFull struct { - Data2 *UserFull_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// dataJSON#7d748d04 data:string = DataJSON; +type TLDataJSON struct { + Data2 *DataJSON_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLUserFull) Reset() { *m = TLUserFull{} } -func (m *TLUserFull) String() string { return proto.CompactTextString(m) } -func (*TLUserFull) ProtoMessage() {} -func (*TLUserFull) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{679} +func (m *TLDataJSON) Reset() { *m = TLDataJSON{} } +func (m *TLDataJSON) String() string { return proto.CompactTextString(m) } +func (*TLDataJSON) ProtoMessage() {} +func (*TLDataJSON) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{623} } -func (m *TLUserFull) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserFull.Unmarshal(m, b) +func (m *TLDataJSON) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDataJSON.Unmarshal(m, b) } -func (m *TLUserFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserFull.Marshal(b, m, deterministic) +func (m *TLDataJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDataJSON.Marshal(b, m, deterministic) } -func (dst *TLUserFull) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserFull.Merge(dst, src) +func (dst *TLDataJSON) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDataJSON.Merge(dst, src) } -func (m *TLUserFull) XXX_Size() int { - return xxx_messageInfo_TLUserFull.Size(m) +func (m *TLDataJSON) XXX_Size() int { + return xxx_messageInfo_TLDataJSON.Size(m) } -func (m *TLUserFull) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserFull.DiscardUnknown(m) +func (m *TLDataJSON) XXX_DiscardUnknown() { + xxx_messageInfo_TLDataJSON.DiscardUnknown(m) } -var xxx_messageInfo_TLUserFull proto.InternalMessageInfo +var xxx_messageInfo_TLDataJSON proto.InternalMessageInfo -func (m *TLUserFull) GetData2() *UserFull_Data { +func (m *TLDataJSON) GetData2() *DataJSON_Data { if m != nil { return m.Data2 } @@ -32712,142 +31236,190 @@ func (m *TLUserFull) GetData2() *UserFull_Data { } // ///////////////////////////////////////////////////////////////////////////// -// HighScore <-- -// + TL_highScore +// WebAuthorization <-- +// + TL_webAuthorization // -type HighScore_Data struct { - Pos int32 `protobuf:"varint,1,opt,name=pos,proto3" json:"pos,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Score int32 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"` +type WebAuthorization_Data struct { + Hash int64 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + BotId int32 `protobuf:"varint,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"` + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + Browser string `protobuf:"bytes,4,opt,name=browser,proto3" json:"browser,omitempty"` + Platform string `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"` + DateCreated int32 `protobuf:"varint,6,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"` + DateActive int32 `protobuf:"varint,7,opt,name=date_active,json=dateActive,proto3" json:"date_active,omitempty"` + Ip string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip,omitempty"` + Region string `protobuf:"bytes,9,opt,name=region,proto3" json:"region,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *HighScore_Data) Reset() { *m = HighScore_Data{} } -func (m *HighScore_Data) String() string { return proto.CompactTextString(m) } -func (*HighScore_Data) ProtoMessage() {} -func (*HighScore_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{680} +func (m *WebAuthorization_Data) Reset() { *m = WebAuthorization_Data{} } +func (m *WebAuthorization_Data) String() string { return proto.CompactTextString(m) } +func (*WebAuthorization_Data) ProtoMessage() {} +func (*WebAuthorization_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{624} } -func (m *HighScore_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HighScore_Data.Unmarshal(m, b) +func (m *WebAuthorization_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WebAuthorization_Data.Unmarshal(m, b) } -func (m *HighScore_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HighScore_Data.Marshal(b, m, deterministic) +func (m *WebAuthorization_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WebAuthorization_Data.Marshal(b, m, deterministic) } -func (dst *HighScore_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_HighScore_Data.Merge(dst, src) +func (dst *WebAuthorization_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_WebAuthorization_Data.Merge(dst, src) } -func (m *HighScore_Data) XXX_Size() int { - return xxx_messageInfo_HighScore_Data.Size(m) +func (m *WebAuthorization_Data) XXX_Size() int { + return xxx_messageInfo_WebAuthorization_Data.Size(m) } -func (m *HighScore_Data) XXX_DiscardUnknown() { - xxx_messageInfo_HighScore_Data.DiscardUnknown(m) +func (m *WebAuthorization_Data) XXX_DiscardUnknown() { + xxx_messageInfo_WebAuthorization_Data.DiscardUnknown(m) } -var xxx_messageInfo_HighScore_Data proto.InternalMessageInfo +var xxx_messageInfo_WebAuthorization_Data proto.InternalMessageInfo -func (m *HighScore_Data) GetPos() int32 { +func (m *WebAuthorization_Data) GetHash() int64 { if m != nil { - return m.Pos + return m.Hash } return 0 } -func (m *HighScore_Data) GetUserId() int32 { +func (m *WebAuthorization_Data) GetBotId() int32 { if m != nil { - return m.UserId + return m.BotId } return 0 } -func (m *HighScore_Data) GetScore() int32 { +func (m *WebAuthorization_Data) GetDomain() string { if m != nil { - return m.Score + return m.Domain + } + return "" +} + +func (m *WebAuthorization_Data) GetBrowser() string { + if m != nil { + return m.Browser + } + return "" +} + +func (m *WebAuthorization_Data) GetPlatform() string { + if m != nil { + return m.Platform + } + return "" +} + +func (m *WebAuthorization_Data) GetDateCreated() int32 { + if m != nil { + return m.DateCreated } return 0 } -type HighScore struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *HighScore_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *WebAuthorization_Data) GetDateActive() int32 { + if m != nil { + return m.DateActive + } + return 0 } -func (m *HighScore) Reset() { *m = HighScore{} } -func (m *HighScore) String() string { return proto.CompactTextString(m) } -func (*HighScore) ProtoMessage() {} -func (*HighScore) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{681} +func (m *WebAuthorization_Data) GetIp() string { + if m != nil { + return m.Ip + } + return "" } -func (m *HighScore) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HighScore.Unmarshal(m, b) + +func (m *WebAuthorization_Data) GetRegion() string { + if m != nil { + return m.Region + } + return "" } -func (m *HighScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HighScore.Marshal(b, m, deterministic) + +type WebAuthorization struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *WebAuthorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (dst *HighScore) XXX_Merge(src proto.Message) { - xxx_messageInfo_HighScore.Merge(dst, src) + +func (m *WebAuthorization) Reset() { *m = WebAuthorization{} } +func (m *WebAuthorization) String() string { return proto.CompactTextString(m) } +func (*WebAuthorization) ProtoMessage() {} +func (*WebAuthorization) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{625} } -func (m *HighScore) XXX_Size() int { - return xxx_messageInfo_HighScore.Size(m) +func (m *WebAuthorization) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WebAuthorization.Unmarshal(m, b) } -func (m *HighScore) XXX_DiscardUnknown() { - xxx_messageInfo_HighScore.DiscardUnknown(m) +func (m *WebAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WebAuthorization.Marshal(b, m, deterministic) +} +func (dst *WebAuthorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_WebAuthorization.Merge(dst, src) +} +func (m *WebAuthorization) XXX_Size() int { + return xxx_messageInfo_WebAuthorization.Size(m) +} +func (m *WebAuthorization) XXX_DiscardUnknown() { + xxx_messageInfo_WebAuthorization.DiscardUnknown(m) } -var xxx_messageInfo_HighScore proto.InternalMessageInfo +var xxx_messageInfo_WebAuthorization proto.InternalMessageInfo -func (m *HighScore) GetConstructor() TLConstructor { +func (m *WebAuthorization) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *HighScore) GetData2() *HighScore_Data { +func (m *WebAuthorization) GetData2() *WebAuthorization_Data { if m != nil { return m.Data2 } return nil } -// highScore#58fffcd0 pos:int user_id:int score:int = HighScore; -type TLHighScore struct { - Data2 *HighScore_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization; +type TLWebAuthorization struct { + Data2 *WebAuthorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHighScore) Reset() { *m = TLHighScore{} } -func (m *TLHighScore) String() string { return proto.CompactTextString(m) } -func (*TLHighScore) ProtoMessage() {} -func (*TLHighScore) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{682} +func (m *TLWebAuthorization) Reset() { *m = TLWebAuthorization{} } +func (m *TLWebAuthorization) String() string { return proto.CompactTextString(m) } +func (*TLWebAuthorization) ProtoMessage() {} +func (*TLWebAuthorization) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{626} } -func (m *TLHighScore) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHighScore.Unmarshal(m, b) +func (m *TLWebAuthorization) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLWebAuthorization.Unmarshal(m, b) } -func (m *TLHighScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHighScore.Marshal(b, m, deterministic) +func (m *TLWebAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLWebAuthorization.Marshal(b, m, deterministic) } -func (dst *TLHighScore) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHighScore.Merge(dst, src) +func (dst *TLWebAuthorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLWebAuthorization.Merge(dst, src) } -func (m *TLHighScore) XXX_Size() int { - return xxx_messageInfo_TLHighScore.Size(m) +func (m *TLWebAuthorization) XXX_Size() int { + return xxx_messageInfo_TLWebAuthorization.Size(m) } -func (m *TLHighScore) XXX_DiscardUnknown() { - xxx_messageInfo_TLHighScore.DiscardUnknown(m) +func (m *TLWebAuthorization) XXX_DiscardUnknown() { + xxx_messageInfo_TLWebAuthorization.DiscardUnknown(m) } -var xxx_messageInfo_TLHighScore proto.InternalMessageInfo +var xxx_messageInfo_TLWebAuthorization proto.InternalMessageInfo -func (m *TLHighScore) GetData2() *HighScore_Data { +func (m *TLWebAuthorization) GetData2() *WebAuthorization_Data { if m != nil { return m.Data2 } @@ -32855,158 +31427,190 @@ func (m *TLHighScore) GetData2() *HighScore_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PhoneConnection <-- -// + TL_phoneConnection +// DcOption <-- +// + TL_dcOption // -type PhoneConnection_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` - Ipv6 string `protobuf:"bytes,3,opt,name=ipv6,proto3" json:"ipv6,omitempty"` - Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` - PeerTag []byte `protobuf:"bytes,5,opt,name=peer_tag,json=peerTag,proto3" json:"peer_tag,omitempty"` +type DcOption_Data struct { + Ipv6 bool `protobuf:"varint,1,opt,name=ipv6,proto3" json:"ipv6,omitempty"` + MediaOnly bool `protobuf:"varint,2,opt,name=media_only,json=mediaOnly,proto3" json:"media_only,omitempty"` + TcpoOnly bool `protobuf:"varint,3,opt,name=tcpo_only,json=tcpoOnly,proto3" json:"tcpo_only,omitempty"` + Cdn bool `protobuf:"varint,4,opt,name=cdn,proto3" json:"cdn,omitempty"` + Static bool `protobuf:"varint,5,opt,name=static,proto3" json:"static,omitempty"` + Id int32 `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"` + IpAddress string `protobuf:"bytes,7,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + Port int32 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"` + Secret []byte `protobuf:"bytes,9,opt,name=secret,proto3" json:"secret,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *PhoneConnection_Data) Reset() { *m = PhoneConnection_Data{} } -func (m *PhoneConnection_Data) String() string { return proto.CompactTextString(m) } -func (*PhoneConnection_Data) ProtoMessage() {} -func (*PhoneConnection_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{683} +func (m *DcOption_Data) Reset() { *m = DcOption_Data{} } +func (m *DcOption_Data) String() string { return proto.CompactTextString(m) } +func (*DcOption_Data) ProtoMessage() {} +func (*DcOption_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{627} } -func (m *PhoneConnection_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneConnection_Data.Unmarshal(m, b) +func (m *DcOption_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DcOption_Data.Unmarshal(m, b) } -func (m *PhoneConnection_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneConnection_Data.Marshal(b, m, deterministic) +func (m *DcOption_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DcOption_Data.Marshal(b, m, deterministic) } -func (dst *PhoneConnection_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneConnection_Data.Merge(dst, src) +func (dst *DcOption_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_DcOption_Data.Merge(dst, src) } -func (m *PhoneConnection_Data) XXX_Size() int { - return xxx_messageInfo_PhoneConnection_Data.Size(m) +func (m *DcOption_Data) XXX_Size() int { + return xxx_messageInfo_DcOption_Data.Size(m) } -func (m *PhoneConnection_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneConnection_Data.DiscardUnknown(m) +func (m *DcOption_Data) XXX_DiscardUnknown() { + xxx_messageInfo_DcOption_Data.DiscardUnknown(m) } -var xxx_messageInfo_PhoneConnection_Data proto.InternalMessageInfo +var xxx_messageInfo_DcOption_Data proto.InternalMessageInfo -func (m *PhoneConnection_Data) GetId() int64 { +func (m *DcOption_Data) GetIpv6() bool { if m != nil { - return m.Id + return m.Ipv6 } - return 0 + return false } -func (m *PhoneConnection_Data) GetIp() string { +func (m *DcOption_Data) GetMediaOnly() bool { if m != nil { - return m.Ip + return m.MediaOnly } - return "" + return false } -func (m *PhoneConnection_Data) GetIpv6() string { +func (m *DcOption_Data) GetTcpoOnly() bool { if m != nil { - return m.Ipv6 + return m.TcpoOnly + } + return false +} + +func (m *DcOption_Data) GetCdn() bool { + if m != nil { + return m.Cdn + } + return false +} + +func (m *DcOption_Data) GetStatic() bool { + if m != nil { + return m.Static + } + return false +} + +func (m *DcOption_Data) GetId() int32 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *DcOption_Data) GetIpAddress() string { + if m != nil { + return m.IpAddress } return "" } -func (m *PhoneConnection_Data) GetPort() int32 { +func (m *DcOption_Data) GetPort() int32 { if m != nil { return m.Port } return 0 } -func (m *PhoneConnection_Data) GetPeerTag() []byte { +func (m *DcOption_Data) GetSecret() []byte { if m != nil { - return m.PeerTag + return m.Secret } return nil } -type PhoneConnection struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PhoneConnection_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DcOption struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *DcOption_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PhoneConnection) Reset() { *m = PhoneConnection{} } -func (m *PhoneConnection) String() string { return proto.CompactTextString(m) } -func (*PhoneConnection) ProtoMessage() {} -func (*PhoneConnection) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{684} +func (m *DcOption) Reset() { *m = DcOption{} } +func (m *DcOption) String() string { return proto.CompactTextString(m) } +func (*DcOption) ProtoMessage() {} +func (*DcOption) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{628} } -func (m *PhoneConnection) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneConnection.Unmarshal(m, b) +func (m *DcOption) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DcOption.Unmarshal(m, b) } -func (m *PhoneConnection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneConnection.Marshal(b, m, deterministic) +func (m *DcOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DcOption.Marshal(b, m, deterministic) } -func (dst *PhoneConnection) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneConnection.Merge(dst, src) +func (dst *DcOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DcOption.Merge(dst, src) } -func (m *PhoneConnection) XXX_Size() int { - return xxx_messageInfo_PhoneConnection.Size(m) +func (m *DcOption) XXX_Size() int { + return xxx_messageInfo_DcOption.Size(m) } -func (m *PhoneConnection) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneConnection.DiscardUnknown(m) +func (m *DcOption) XXX_DiscardUnknown() { + xxx_messageInfo_DcOption.DiscardUnknown(m) } -var xxx_messageInfo_PhoneConnection proto.InternalMessageInfo +var xxx_messageInfo_DcOption proto.InternalMessageInfo -func (m *PhoneConnection) GetConstructor() TLConstructor { +func (m *DcOption) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PhoneConnection) GetData2() *PhoneConnection_Data { +func (m *DcOption) GetData2() *DcOption_Data { if m != nil { return m.Data2 } return nil } -// phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; -type TLPhoneConnection struct { - Data2 *PhoneConnection_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLPhoneConnection) Reset() { *m = TLPhoneConnection{} } -func (m *TLPhoneConnection) String() string { return proto.CompactTextString(m) } -func (*TLPhoneConnection) ProtoMessage() {} -func (*TLPhoneConnection) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{685} +// dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption; +type TLDcOption struct { + Data2 *DcOption_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneConnection) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneConnection.Unmarshal(m, b) + +func (m *TLDcOption) Reset() { *m = TLDcOption{} } +func (m *TLDcOption) String() string { return proto.CompactTextString(m) } +func (*TLDcOption) ProtoMessage() {} +func (*TLDcOption) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{629} } -func (m *TLPhoneConnection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneConnection.Marshal(b, m, deterministic) +func (m *TLDcOption) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDcOption.Unmarshal(m, b) } -func (dst *TLPhoneConnection) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneConnection.Merge(dst, src) +func (m *TLDcOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDcOption.Marshal(b, m, deterministic) } -func (m *TLPhoneConnection) XXX_Size() int { - return xxx_messageInfo_TLPhoneConnection.Size(m) +func (dst *TLDcOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDcOption.Merge(dst, src) } -func (m *TLPhoneConnection) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneConnection.DiscardUnknown(m) +func (m *TLDcOption) XXX_Size() int { + return xxx_messageInfo_TLDcOption.Size(m) +} +func (m *TLDcOption) XXX_DiscardUnknown() { + xxx_messageInfo_TLDcOption.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneConnection proto.InternalMessageInfo +var xxx_messageInfo_TLDcOption proto.InternalMessageInfo -func (m *TLPhoneConnection) GetData2() *PhoneConnection_Data { +func (m *TLDcOption) GetData2() *DcOption_Data { if m != nil { return m.Data2 } @@ -33014,645 +31618,539 @@ func (m *TLPhoneConnection) GetData2() *PhoneConnection_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PasswordKdfAlgo <-- -// + TL_passwordKdfAlgoUnknown -// + TL_passwordKdfAlgoModPow +// help_InviteText <-- +// + TL_help_inviteText // -type PasswordKdfAlgo_Data struct { - Salt1 []byte `protobuf:"bytes,1,opt,name=salt1,proto3" json:"salt1,omitempty"` - Salt2 []byte `protobuf:"bytes,2,opt,name=salt2,proto3" json:"salt2,omitempty"` - G int32 `protobuf:"varint,3,opt,name=g,proto3" json:"g,omitempty"` - P []byte `protobuf:"bytes,4,opt,name=p,proto3" json:"p,omitempty"` +type Help_InviteText_Data struct { + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *PasswordKdfAlgo_Data) Reset() { *m = PasswordKdfAlgo_Data{} } -func (m *PasswordKdfAlgo_Data) String() string { return proto.CompactTextString(m) } -func (*PasswordKdfAlgo_Data) ProtoMessage() {} -func (*PasswordKdfAlgo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{686} -} -func (m *PasswordKdfAlgo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordKdfAlgo_Data.Unmarshal(m, b) -} -func (m *PasswordKdfAlgo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordKdfAlgo_Data.Marshal(b, m, deterministic) +func (m *Help_InviteText_Data) Reset() { *m = Help_InviteText_Data{} } +func (m *Help_InviteText_Data) String() string { return proto.CompactTextString(m) } +func (*Help_InviteText_Data) ProtoMessage() {} +func (*Help_InviteText_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{630} } -func (dst *PasswordKdfAlgo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordKdfAlgo_Data.Merge(dst, src) +func (m *Help_InviteText_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_InviteText_Data.Unmarshal(m, b) } -func (m *PasswordKdfAlgo_Data) XXX_Size() int { - return xxx_messageInfo_PasswordKdfAlgo_Data.Size(m) +func (m *Help_InviteText_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_InviteText_Data.Marshal(b, m, deterministic) } -func (m *PasswordKdfAlgo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordKdfAlgo_Data.DiscardUnknown(m) +func (dst *Help_InviteText_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_InviteText_Data.Merge(dst, src) } - -var xxx_messageInfo_PasswordKdfAlgo_Data proto.InternalMessageInfo - -func (m *PasswordKdfAlgo_Data) GetSalt1() []byte { - if m != nil { - return m.Salt1 - } - return nil +func (m *Help_InviteText_Data) XXX_Size() int { + return xxx_messageInfo_Help_InviteText_Data.Size(m) } - -func (m *PasswordKdfAlgo_Data) GetSalt2() []byte { - if m != nil { - return m.Salt2 - } - return nil +func (m *Help_InviteText_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_InviteText_Data.DiscardUnknown(m) } -func (m *PasswordKdfAlgo_Data) GetG() int32 { - if m != nil { - return m.G - } - return 0 -} +var xxx_messageInfo_Help_InviteText_Data proto.InternalMessageInfo -func (m *PasswordKdfAlgo_Data) GetP() []byte { +func (m *Help_InviteText_Data) GetMessage() string { if m != nil { - return m.P + return m.Message } - return nil + return "" } -type PasswordKdfAlgo struct { +type Help_InviteText struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + Data2 *Help_InviteText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *PasswordKdfAlgo) Reset() { *m = PasswordKdfAlgo{} } -func (m *PasswordKdfAlgo) String() string { return proto.CompactTextString(m) } -func (*PasswordKdfAlgo) ProtoMessage() {} -func (*PasswordKdfAlgo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{687} +func (m *Help_InviteText) Reset() { *m = Help_InviteText{} } +func (m *Help_InviteText) String() string { return proto.CompactTextString(m) } +func (*Help_InviteText) ProtoMessage() {} +func (*Help_InviteText) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{631} } -func (m *PasswordKdfAlgo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordKdfAlgo.Unmarshal(m, b) +func (m *Help_InviteText) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_InviteText.Unmarshal(m, b) } -func (m *PasswordKdfAlgo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordKdfAlgo.Marshal(b, m, deterministic) +func (m *Help_InviteText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_InviteText.Marshal(b, m, deterministic) } -func (dst *PasswordKdfAlgo) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordKdfAlgo.Merge(dst, src) +func (dst *Help_InviteText) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_InviteText.Merge(dst, src) } -func (m *PasswordKdfAlgo) XXX_Size() int { - return xxx_messageInfo_PasswordKdfAlgo.Size(m) +func (m *Help_InviteText) XXX_Size() int { + return xxx_messageInfo_Help_InviteText.Size(m) } -func (m *PasswordKdfAlgo) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordKdfAlgo.DiscardUnknown(m) +func (m *Help_InviteText) XXX_DiscardUnknown() { + xxx_messageInfo_Help_InviteText.DiscardUnknown(m) } -var xxx_messageInfo_PasswordKdfAlgo proto.InternalMessageInfo +var xxx_messageInfo_Help_InviteText proto.InternalMessageInfo -func (m *PasswordKdfAlgo) GetConstructor() TLConstructor { +func (m *Help_InviteText) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PasswordKdfAlgo) GetData2() *PasswordKdfAlgo_Data { +func (m *Help_InviteText) GetData2() *Help_InviteText_Data { if m != nil { return m.Data2 } return nil } -// passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo; -type TLPasswordKdfAlgoUnknown struct { - Data2 *PasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// help.inviteText#18cb9f78 message:string = help.InviteText; +type TLHelpInviteText struct { + Data2 *Help_InviteText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLPasswordKdfAlgoUnknown) Reset() { *m = TLPasswordKdfAlgoUnknown{} } -func (m *TLPasswordKdfAlgoUnknown) String() string { return proto.CompactTextString(m) } -func (*TLPasswordKdfAlgoUnknown) ProtoMessage() {} -func (*TLPasswordKdfAlgoUnknown) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{688} +func (m *TLHelpInviteText) Reset() { *m = TLHelpInviteText{} } +func (m *TLHelpInviteText) String() string { return proto.CompactTextString(m) } +func (*TLHelpInviteText) ProtoMessage() {} +func (*TLHelpInviteText) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{632} } -func (m *TLPasswordKdfAlgoUnknown) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPasswordKdfAlgoUnknown.Unmarshal(m, b) +func (m *TLHelpInviteText) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpInviteText.Unmarshal(m, b) } -func (m *TLPasswordKdfAlgoUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPasswordKdfAlgoUnknown.Marshal(b, m, deterministic) +func (m *TLHelpInviteText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpInviteText.Marshal(b, m, deterministic) } -func (dst *TLPasswordKdfAlgoUnknown) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPasswordKdfAlgoUnknown.Merge(dst, src) +func (dst *TLHelpInviteText) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpInviteText.Merge(dst, src) } -func (m *TLPasswordKdfAlgoUnknown) XXX_Size() int { - return xxx_messageInfo_TLPasswordKdfAlgoUnknown.Size(m) +func (m *TLHelpInviteText) XXX_Size() int { + return xxx_messageInfo_TLHelpInviteText.Size(m) } -func (m *TLPasswordKdfAlgoUnknown) XXX_DiscardUnknown() { - xxx_messageInfo_TLPasswordKdfAlgoUnknown.DiscardUnknown(m) +func (m *TLHelpInviteText) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpInviteText.DiscardUnknown(m) } -var xxx_messageInfo_TLPasswordKdfAlgoUnknown proto.InternalMessageInfo +var xxx_messageInfo_TLHelpInviteText proto.InternalMessageInfo -func (m *TLPasswordKdfAlgoUnknown) GetData2() *PasswordKdfAlgo_Data { +func (m *TLHelpInviteText) GetData2() *Help_InviteText_Data { if m != nil { return m.Data2 } return nil } -// passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo; -type TLPasswordKdfAlgoModPow struct { - Data2 *PasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// TopPeer <-- +// + TL_topPeer +// +type TopPeer_Data struct { + Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + Rating float64 `protobuf:"fixed64,2,opt,name=rating,proto3" json:"rating,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPasswordKdfAlgoModPow) Reset() { *m = TLPasswordKdfAlgoModPow{} } -func (m *TLPasswordKdfAlgoModPow) String() string { return proto.CompactTextString(m) } -func (*TLPasswordKdfAlgoModPow) ProtoMessage() {} -func (*TLPasswordKdfAlgoModPow) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{689} +func (m *TopPeer_Data) Reset() { *m = TopPeer_Data{} } +func (m *TopPeer_Data) String() string { return proto.CompactTextString(m) } +func (*TopPeer_Data) ProtoMessage() {} +func (*TopPeer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{633} } -func (m *TLPasswordKdfAlgoModPow) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPasswordKdfAlgoModPow.Unmarshal(m, b) +func (m *TopPeer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TopPeer_Data.Unmarshal(m, b) } -func (m *TLPasswordKdfAlgoModPow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPasswordKdfAlgoModPow.Marshal(b, m, deterministic) +func (m *TopPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TopPeer_Data.Marshal(b, m, deterministic) } -func (dst *TLPasswordKdfAlgoModPow) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPasswordKdfAlgoModPow.Merge(dst, src) +func (dst *TopPeer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopPeer_Data.Merge(dst, src) } -func (m *TLPasswordKdfAlgoModPow) XXX_Size() int { - return xxx_messageInfo_TLPasswordKdfAlgoModPow.Size(m) +func (m *TopPeer_Data) XXX_Size() int { + return xxx_messageInfo_TopPeer_Data.Size(m) } -func (m *TLPasswordKdfAlgoModPow) XXX_DiscardUnknown() { - xxx_messageInfo_TLPasswordKdfAlgoModPow.DiscardUnknown(m) +func (m *TopPeer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_TopPeer_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPasswordKdfAlgoModPow proto.InternalMessageInfo +var xxx_messageInfo_TopPeer_Data proto.InternalMessageInfo -func (m *TLPasswordKdfAlgoModPow) GetData2() *PasswordKdfAlgo_Data { +func (m *TopPeer_Data) GetPeer() *Peer { if m != nil { - return m.Data2 + return m.Peer } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputFileLocation <-- -// + TL_inputDocumentFileLocationLayer11 -// + TL_inputFileLocation -// + TL_inputEncryptedFileLocation -// + TL_inputDocumentFileLocation -// + TL_inputSecureFileLocation -// + TL_inputTakeoutFileLocation -// + TL_inputFileLocationLayer86 -// + TL_inputDocumentFileLocationLayer86 -// -type InputFileLocation_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - VolumeId int64 `protobuf:"varint,3,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - LocalId int32 `protobuf:"varint,4,opt,name=local_id,json=localId,proto3" json:"local_id,omitempty"` - Secret int64 `protobuf:"varint,5,opt,name=secret,proto3" json:"secret,omitempty"` - Version int32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` - FileReference []byte `protobuf:"bytes,7,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *TopPeer_Data) GetRating() float64 { + if m != nil { + return m.Rating + } + return 0 } -func (m *InputFileLocation_Data) Reset() { *m = InputFileLocation_Data{} } -func (m *InputFileLocation_Data) String() string { return proto.CompactTextString(m) } -func (*InputFileLocation_Data) ProtoMessage() {} -func (*InputFileLocation_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{690} +type TopPeer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *TopPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputFileLocation_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputFileLocation_Data.Unmarshal(m, b) + +func (m *TopPeer) Reset() { *m = TopPeer{} } +func (m *TopPeer) String() string { return proto.CompactTextString(m) } +func (*TopPeer) ProtoMessage() {} +func (*TopPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{634} } -func (m *InputFileLocation_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputFileLocation_Data.Marshal(b, m, deterministic) +func (m *TopPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TopPeer.Unmarshal(m, b) } -func (dst *InputFileLocation_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputFileLocation_Data.Merge(dst, src) +func (m *TopPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TopPeer.Marshal(b, m, deterministic) } -func (m *InputFileLocation_Data) XXX_Size() int { - return xxx_messageInfo_InputFileLocation_Data.Size(m) +func (dst *TopPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopPeer.Merge(dst, src) } -func (m *InputFileLocation_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputFileLocation_Data.DiscardUnknown(m) +func (m *TopPeer) XXX_Size() int { + return xxx_messageInfo_TopPeer.Size(m) +} +func (m *TopPeer) XXX_DiscardUnknown() { + xxx_messageInfo_TopPeer.DiscardUnknown(m) } -var xxx_messageInfo_InputFileLocation_Data proto.InternalMessageInfo +var xxx_messageInfo_TopPeer proto.InternalMessageInfo -func (m *InputFileLocation_Data) GetId() int64 { +func (m *TopPeer) GetConstructor() TLConstructor { if m != nil { - return m.Id + return m.Constructor } - return 0 + return TLConstructor_CRC32_UNKNOWN } -func (m *InputFileLocation_Data) GetAccessHash() int64 { +func (m *TopPeer) GetData2() *TopPeer_Data { if m != nil { - return m.AccessHash + return m.Data2 } - return 0 + return nil } -func (m *InputFileLocation_Data) GetVolumeId() int64 { - if m != nil { - return m.VolumeId - } - return 0 +// topPeer#edcdc05b peer:Peer rating:double = TopPeer; +type TLTopPeer struct { + Data2 *TopPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputFileLocation_Data) GetLocalId() int32 { - if m != nil { - return m.LocalId - } - return 0 +func (m *TLTopPeer) Reset() { *m = TLTopPeer{} } +func (m *TLTopPeer) String() string { return proto.CompactTextString(m) } +func (*TLTopPeer) ProtoMessage() {} +func (*TLTopPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{635} +} +func (m *TLTopPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTopPeer.Unmarshal(m, b) +} +func (m *TLTopPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTopPeer.Marshal(b, m, deterministic) +} +func (dst *TLTopPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTopPeer.Merge(dst, src) +} +func (m *TLTopPeer) XXX_Size() int { + return xxx_messageInfo_TLTopPeer.Size(m) +} +func (m *TLTopPeer) XXX_DiscardUnknown() { + xxx_messageInfo_TLTopPeer.DiscardUnknown(m) } -func (m *InputFileLocation_Data) GetSecret() int64 { +var xxx_messageInfo_TLTopPeer proto.InternalMessageInfo + +func (m *TLTopPeer) GetData2() *TopPeer_Data { if m != nil { - return m.Secret + return m.Data2 } - return 0 + return nil } -func (m *InputFileLocation_Data) GetVersion() int32 { +// ///////////////////////////////////////////////////////////////////////////// +// CdnPublicKey <-- +// + TL_cdnPublicKey +// +type CdnPublicKey_Data struct { + DcId int32 `protobuf:"varint,1,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` + PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CdnPublicKey_Data) Reset() { *m = CdnPublicKey_Data{} } +func (m *CdnPublicKey_Data) String() string { return proto.CompactTextString(m) } +func (*CdnPublicKey_Data) ProtoMessage() {} +func (*CdnPublicKey_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{636} +} +func (m *CdnPublicKey_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CdnPublicKey_Data.Unmarshal(m, b) +} +func (m *CdnPublicKey_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CdnPublicKey_Data.Marshal(b, m, deterministic) +} +func (dst *CdnPublicKey_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_CdnPublicKey_Data.Merge(dst, src) +} +func (m *CdnPublicKey_Data) XXX_Size() int { + return xxx_messageInfo_CdnPublicKey_Data.Size(m) +} +func (m *CdnPublicKey_Data) XXX_DiscardUnknown() { + xxx_messageInfo_CdnPublicKey_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_CdnPublicKey_Data proto.InternalMessageInfo + +func (m *CdnPublicKey_Data) GetDcId() int32 { if m != nil { - return m.Version + return m.DcId } return 0 } -func (m *InputFileLocation_Data) GetFileReference() []byte { +func (m *CdnPublicKey_Data) GetPublicKey() string { if m != nil { - return m.FileReference + return m.PublicKey } - return nil + return "" } -type InputFileLocation struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type CdnPublicKey struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *CdnPublicKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputFileLocation) Reset() { *m = InputFileLocation{} } -func (m *InputFileLocation) String() string { return proto.CompactTextString(m) } -func (*InputFileLocation) ProtoMessage() {} -func (*InputFileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{691} +func (m *CdnPublicKey) Reset() { *m = CdnPublicKey{} } +func (m *CdnPublicKey) String() string { return proto.CompactTextString(m) } +func (*CdnPublicKey) ProtoMessage() {} +func (*CdnPublicKey) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{637} } -func (m *InputFileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputFileLocation.Unmarshal(m, b) +func (m *CdnPublicKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CdnPublicKey.Unmarshal(m, b) } -func (m *InputFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputFileLocation.Marshal(b, m, deterministic) +func (m *CdnPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CdnPublicKey.Marshal(b, m, deterministic) } -func (dst *InputFileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputFileLocation.Merge(dst, src) +func (dst *CdnPublicKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_CdnPublicKey.Merge(dst, src) } -func (m *InputFileLocation) XXX_Size() int { - return xxx_messageInfo_InputFileLocation.Size(m) +func (m *CdnPublicKey) XXX_Size() int { + return xxx_messageInfo_CdnPublicKey.Size(m) } -func (m *InputFileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_InputFileLocation.DiscardUnknown(m) +func (m *CdnPublicKey) XXX_DiscardUnknown() { + xxx_messageInfo_CdnPublicKey.DiscardUnknown(m) } -var xxx_messageInfo_InputFileLocation proto.InternalMessageInfo +var xxx_messageInfo_CdnPublicKey proto.InternalMessageInfo -func (m *InputFileLocation) GetConstructor() TLConstructor { +func (m *CdnPublicKey) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputFileLocation) GetData2() *InputFileLocation_Data { +func (m *CdnPublicKey) GetData2() *CdnPublicKey_Data { if m != nil { return m.Data2 } return nil } -// inputDocumentFileLocation#4e45abe9 id:long access_hash:long = InputFileLocation; -type TLInputDocumentFileLocationLayer11 struct { - Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey; +type TLCdnPublicKey struct { + Data2 *CdnPublicKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputDocumentFileLocationLayer11) Reset() { *m = TLInputDocumentFileLocationLayer11{} } -func (m *TLInputDocumentFileLocationLayer11) String() string { return proto.CompactTextString(m) } -func (*TLInputDocumentFileLocationLayer11) ProtoMessage() {} -func (*TLInputDocumentFileLocationLayer11) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{692} +func (m *TLCdnPublicKey) Reset() { *m = TLCdnPublicKey{} } +func (m *TLCdnPublicKey) String() string { return proto.CompactTextString(m) } +func (*TLCdnPublicKey) ProtoMessage() {} +func (*TLCdnPublicKey) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{638} } -func (m *TLInputDocumentFileLocationLayer11) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputDocumentFileLocationLayer11.Unmarshal(m, b) +func (m *TLCdnPublicKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLCdnPublicKey.Unmarshal(m, b) } -func (m *TLInputDocumentFileLocationLayer11) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputDocumentFileLocationLayer11.Marshal(b, m, deterministic) +func (m *TLCdnPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLCdnPublicKey.Marshal(b, m, deterministic) } -func (dst *TLInputDocumentFileLocationLayer11) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputDocumentFileLocationLayer11.Merge(dst, src) +func (dst *TLCdnPublicKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLCdnPublicKey.Merge(dst, src) } -func (m *TLInputDocumentFileLocationLayer11) XXX_Size() int { - return xxx_messageInfo_TLInputDocumentFileLocationLayer11.Size(m) +func (m *TLCdnPublicKey) XXX_Size() int { + return xxx_messageInfo_TLCdnPublicKey.Size(m) } -func (m *TLInputDocumentFileLocationLayer11) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputDocumentFileLocationLayer11.DiscardUnknown(m) +func (m *TLCdnPublicKey) XXX_DiscardUnknown() { + xxx_messageInfo_TLCdnPublicKey.DiscardUnknown(m) } -var xxx_messageInfo_TLInputDocumentFileLocationLayer11 proto.InternalMessageInfo +var xxx_messageInfo_TLCdnPublicKey proto.InternalMessageInfo -func (m *TLInputDocumentFileLocationLayer11) GetData2() *InputFileLocation_Data { +func (m *TLCdnPublicKey) GetData2() *CdnPublicKey_Data { if m != nil { return m.Data2 } return nil } -// inputFileLocation#14637196 volume_id:long local_id:int secret:long = InputFileLocation; -type TLInputFileLocation struct { - Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// SecureCredentialsEncrypted <-- +// + TL_secureCredentialsEncrypted +// +type SecureCredentialsEncrypted_Data struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Secret []byte `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputFileLocation) Reset() { *m = TLInputFileLocation{} } -func (m *TLInputFileLocation) String() string { return proto.CompactTextString(m) } -func (*TLInputFileLocation) ProtoMessage() {} -func (*TLInputFileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{693} -} -func (m *TLInputFileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputFileLocation.Unmarshal(m, b) -} -func (m *TLInputFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputFileLocation.Marshal(b, m, deterministic) -} -func (dst *TLInputFileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputFileLocation.Merge(dst, src) -} -func (m *TLInputFileLocation) XXX_Size() int { - return xxx_messageInfo_TLInputFileLocation.Size(m) -} -func (m *TLInputFileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputFileLocation.DiscardUnknown(m) -} - -var xxx_messageInfo_TLInputFileLocation proto.InternalMessageInfo - -func (m *TLInputFileLocation) GetData2() *InputFileLocation_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation; -type TLInputEncryptedFileLocation struct { - Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputEncryptedFileLocation) Reset() { *m = TLInputEncryptedFileLocation{} } -func (m *TLInputEncryptedFileLocation) String() string { return proto.CompactTextString(m) } -func (*TLInputEncryptedFileLocation) ProtoMessage() {} -func (*TLInputEncryptedFileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{694} +func (m *SecureCredentialsEncrypted_Data) Reset() { *m = SecureCredentialsEncrypted_Data{} } +func (m *SecureCredentialsEncrypted_Data) String() string { return proto.CompactTextString(m) } +func (*SecureCredentialsEncrypted_Data) ProtoMessage() {} +func (*SecureCredentialsEncrypted_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{639} } -func (m *TLInputEncryptedFileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputEncryptedFileLocation.Unmarshal(m, b) +func (m *SecureCredentialsEncrypted_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureCredentialsEncrypted_Data.Unmarshal(m, b) } -func (m *TLInputEncryptedFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputEncryptedFileLocation.Marshal(b, m, deterministic) +func (m *SecureCredentialsEncrypted_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureCredentialsEncrypted_Data.Marshal(b, m, deterministic) } -func (dst *TLInputEncryptedFileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputEncryptedFileLocation.Merge(dst, src) +func (dst *SecureCredentialsEncrypted_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureCredentialsEncrypted_Data.Merge(dst, src) } -func (m *TLInputEncryptedFileLocation) XXX_Size() int { - return xxx_messageInfo_TLInputEncryptedFileLocation.Size(m) +func (m *SecureCredentialsEncrypted_Data) XXX_Size() int { + return xxx_messageInfo_SecureCredentialsEncrypted_Data.Size(m) } -func (m *TLInputEncryptedFileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputEncryptedFileLocation.DiscardUnknown(m) +func (m *SecureCredentialsEncrypted_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecureCredentialsEncrypted_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputEncryptedFileLocation proto.InternalMessageInfo +var xxx_messageInfo_SecureCredentialsEncrypted_Data proto.InternalMessageInfo -func (m *TLInputEncryptedFileLocation) GetData2() *InputFileLocation_Data { +func (m *SecureCredentialsEncrypted_Data) GetData() []byte { if m != nil { - return m.Data2 + return m.Data } return nil } -// inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputFileLocation; -type TLInputDocumentFileLocation struct { - Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputDocumentFileLocation) Reset() { *m = TLInputDocumentFileLocation{} } -func (m *TLInputDocumentFileLocation) String() string { return proto.CompactTextString(m) } -func (*TLInputDocumentFileLocation) ProtoMessage() {} -func (*TLInputDocumentFileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{695} -} -func (m *TLInputDocumentFileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputDocumentFileLocation.Unmarshal(m, b) -} -func (m *TLInputDocumentFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputDocumentFileLocation.Marshal(b, m, deterministic) -} -func (dst *TLInputDocumentFileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputDocumentFileLocation.Merge(dst, src) -} -func (m *TLInputDocumentFileLocation) XXX_Size() int { - return xxx_messageInfo_TLInputDocumentFileLocation.Size(m) -} -func (m *TLInputDocumentFileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputDocumentFileLocation.DiscardUnknown(m) -} - -var xxx_messageInfo_TLInputDocumentFileLocation proto.InternalMessageInfo - -func (m *TLInputDocumentFileLocation) GetData2() *InputFileLocation_Data { +func (m *SecureCredentialsEncrypted_Data) GetHash() []byte { if m != nil { - return m.Data2 + return m.Hash } return nil } -// inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation; -type TLInputSecureFileLocation struct { - Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputSecureFileLocation) Reset() { *m = TLInputSecureFileLocation{} } -func (m *TLInputSecureFileLocation) String() string { return proto.CompactTextString(m) } -func (*TLInputSecureFileLocation) ProtoMessage() {} -func (*TLInputSecureFileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{696} -} -func (m *TLInputSecureFileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputSecureFileLocation.Unmarshal(m, b) -} -func (m *TLInputSecureFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputSecureFileLocation.Marshal(b, m, deterministic) -} -func (dst *TLInputSecureFileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputSecureFileLocation.Merge(dst, src) -} -func (m *TLInputSecureFileLocation) XXX_Size() int { - return xxx_messageInfo_TLInputSecureFileLocation.Size(m) -} -func (m *TLInputSecureFileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputSecureFileLocation.DiscardUnknown(m) -} - -var xxx_messageInfo_TLInputSecureFileLocation proto.InternalMessageInfo - -func (m *TLInputSecureFileLocation) GetData2() *InputFileLocation_Data { +func (m *SecureCredentialsEncrypted_Data) GetSecret() []byte { if m != nil { - return m.Data2 + return m.Secret } return nil } -// inputTakeoutFileLocation#29be5899 = InputFileLocation; -type TLInputTakeoutFileLocation struct { - Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SecureCredentialsEncrypted struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SecureCredentialsEncrypted_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputTakeoutFileLocation) Reset() { *m = TLInputTakeoutFileLocation{} } -func (m *TLInputTakeoutFileLocation) String() string { return proto.CompactTextString(m) } -func (*TLInputTakeoutFileLocation) ProtoMessage() {} -func (*TLInputTakeoutFileLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{697} +func (m *SecureCredentialsEncrypted) Reset() { *m = SecureCredentialsEncrypted{} } +func (m *SecureCredentialsEncrypted) String() string { return proto.CompactTextString(m) } +func (*SecureCredentialsEncrypted) ProtoMessage() {} +func (*SecureCredentialsEncrypted) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{640} } -func (m *TLInputTakeoutFileLocation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputTakeoutFileLocation.Unmarshal(m, b) +func (m *SecureCredentialsEncrypted) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureCredentialsEncrypted.Unmarshal(m, b) } -func (m *TLInputTakeoutFileLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputTakeoutFileLocation.Marshal(b, m, deterministic) +func (m *SecureCredentialsEncrypted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureCredentialsEncrypted.Marshal(b, m, deterministic) } -func (dst *TLInputTakeoutFileLocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputTakeoutFileLocation.Merge(dst, src) +func (dst *SecureCredentialsEncrypted) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureCredentialsEncrypted.Merge(dst, src) } -func (m *TLInputTakeoutFileLocation) XXX_Size() int { - return xxx_messageInfo_TLInputTakeoutFileLocation.Size(m) +func (m *SecureCredentialsEncrypted) XXX_Size() int { + return xxx_messageInfo_SecureCredentialsEncrypted.Size(m) } -func (m *TLInputTakeoutFileLocation) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputTakeoutFileLocation.DiscardUnknown(m) +func (m *SecureCredentialsEncrypted) XXX_DiscardUnknown() { + xxx_messageInfo_SecureCredentialsEncrypted.DiscardUnknown(m) } -var xxx_messageInfo_TLInputTakeoutFileLocation proto.InternalMessageInfo +var xxx_messageInfo_SecureCredentialsEncrypted proto.InternalMessageInfo -func (m *TLInputTakeoutFileLocation) GetData2() *InputFileLocation_Data { +func (m *SecureCredentialsEncrypted) GetConstructor() TLConstructor { if m != nil { - return m.Data2 + return m.Constructor } - return nil -} - -// inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation; -type TLInputFileLocationLayer86 struct { - Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInputFileLocationLayer86) Reset() { *m = TLInputFileLocationLayer86{} } -func (m *TLInputFileLocationLayer86) String() string { return proto.CompactTextString(m) } -func (*TLInputFileLocationLayer86) ProtoMessage() {} -func (*TLInputFileLocationLayer86) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{698} -} -func (m *TLInputFileLocationLayer86) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputFileLocationLayer86.Unmarshal(m, b) -} -func (m *TLInputFileLocationLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputFileLocationLayer86.Marshal(b, m, deterministic) -} -func (dst *TLInputFileLocationLayer86) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputFileLocationLayer86.Merge(dst, src) -} -func (m *TLInputFileLocationLayer86) XXX_Size() int { - return xxx_messageInfo_TLInputFileLocationLayer86.Size(m) -} -func (m *TLInputFileLocationLayer86) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputFileLocationLayer86.DiscardUnknown(m) + return TLConstructor_CRC32_UNKNOWN } -var xxx_messageInfo_TLInputFileLocationLayer86 proto.InternalMessageInfo - -func (m *TLInputFileLocationLayer86) GetData2() *InputFileLocation_Data { +func (m *SecureCredentialsEncrypted) GetData2() *SecureCredentialsEncrypted_Data { if m != nil { return m.Data2 } return nil } -// inputDocumentFileLocation#196683d9 id:long access_hash:long file_reference:bytes = InputFileLocation; -type TLInputDocumentFileLocationLayer86 struct { - Data2 *InputFileLocation_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted; +type TLSecureCredentialsEncrypted struct { + Data2 *SecureCredentialsEncrypted_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputDocumentFileLocationLayer86) Reset() { *m = TLInputDocumentFileLocationLayer86{} } -func (m *TLInputDocumentFileLocationLayer86) String() string { return proto.CompactTextString(m) } -func (*TLInputDocumentFileLocationLayer86) ProtoMessage() {} -func (*TLInputDocumentFileLocationLayer86) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{699} +func (m *TLSecureCredentialsEncrypted) Reset() { *m = TLSecureCredentialsEncrypted{} } +func (m *TLSecureCredentialsEncrypted) String() string { return proto.CompactTextString(m) } +func (*TLSecureCredentialsEncrypted) ProtoMessage() {} +func (*TLSecureCredentialsEncrypted) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{641} } -func (m *TLInputDocumentFileLocationLayer86) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputDocumentFileLocationLayer86.Unmarshal(m, b) +func (m *TLSecureCredentialsEncrypted) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureCredentialsEncrypted.Unmarshal(m, b) } -func (m *TLInputDocumentFileLocationLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputDocumentFileLocationLayer86.Marshal(b, m, deterministic) +func (m *TLSecureCredentialsEncrypted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureCredentialsEncrypted.Marshal(b, m, deterministic) } -func (dst *TLInputDocumentFileLocationLayer86) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputDocumentFileLocationLayer86.Merge(dst, src) +func (dst *TLSecureCredentialsEncrypted) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureCredentialsEncrypted.Merge(dst, src) } -func (m *TLInputDocumentFileLocationLayer86) XXX_Size() int { - return xxx_messageInfo_TLInputDocumentFileLocationLayer86.Size(m) +func (m *TLSecureCredentialsEncrypted) XXX_Size() int { + return xxx_messageInfo_TLSecureCredentialsEncrypted.Size(m) } -func (m *TLInputDocumentFileLocationLayer86) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputDocumentFileLocationLayer86.DiscardUnknown(m) +func (m *TLSecureCredentialsEncrypted) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureCredentialsEncrypted.DiscardUnknown(m) } -var xxx_messageInfo_TLInputDocumentFileLocationLayer86 proto.InternalMessageInfo +var xxx_messageInfo_TLSecureCredentialsEncrypted proto.InternalMessageInfo -func (m *TLInputDocumentFileLocationLayer86) GetData2() *InputFileLocation_Data { +func (m *TLSecureCredentialsEncrypted) GetData2() *SecureCredentialsEncrypted_Data { if m != nil { return m.Data2 } @@ -33660,588 +32158,604 @@ func (m *TLInputDocumentFileLocationLayer86) GetData2() *InputFileLocation_Data } // ///////////////////////////////////////////////////////////////////////////// -// Peer <-- -// + TL_peerUser -// + TL_peerChat -// + TL_peerChannel +// PasswordKdfAlgo <-- +// + TL_passwordKdfAlgoUnknown +// + TL_passwordKdfAlgoModPow // -type Peer_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - ChatId int32 `protobuf:"varint,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - ChannelId int32 `protobuf:"varint,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` +type PasswordKdfAlgo_Data struct { + Salt1 []byte `protobuf:"bytes,1,opt,name=salt1,proto3" json:"salt1,omitempty"` + Salt2 []byte `protobuf:"bytes,2,opt,name=salt2,proto3" json:"salt2,omitempty"` + G int32 `protobuf:"varint,3,opt,name=g,proto3" json:"g,omitempty"` + P []byte `protobuf:"bytes,4,opt,name=p,proto3" json:"p,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Peer_Data) Reset() { *m = Peer_Data{} } -func (m *Peer_Data) String() string { return proto.CompactTextString(m) } -func (*Peer_Data) ProtoMessage() {} -func (*Peer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{700} +func (m *PasswordKdfAlgo_Data) Reset() { *m = PasswordKdfAlgo_Data{} } +func (m *PasswordKdfAlgo_Data) String() string { return proto.CompactTextString(m) } +func (*PasswordKdfAlgo_Data) ProtoMessage() {} +func (*PasswordKdfAlgo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{642} } -func (m *Peer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Peer_Data.Unmarshal(m, b) +func (m *PasswordKdfAlgo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordKdfAlgo_Data.Unmarshal(m, b) } -func (m *Peer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Peer_Data.Marshal(b, m, deterministic) +func (m *PasswordKdfAlgo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordKdfAlgo_Data.Marshal(b, m, deterministic) } -func (dst *Peer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Peer_Data.Merge(dst, src) +func (dst *PasswordKdfAlgo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordKdfAlgo_Data.Merge(dst, src) } -func (m *Peer_Data) XXX_Size() int { - return xxx_messageInfo_Peer_Data.Size(m) +func (m *PasswordKdfAlgo_Data) XXX_Size() int { + return xxx_messageInfo_PasswordKdfAlgo_Data.Size(m) } -func (m *Peer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Peer_Data.DiscardUnknown(m) +func (m *PasswordKdfAlgo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordKdfAlgo_Data.DiscardUnknown(m) } -var xxx_messageInfo_Peer_Data proto.InternalMessageInfo +var xxx_messageInfo_PasswordKdfAlgo_Data proto.InternalMessageInfo -func (m *Peer_Data) GetUserId() int32 { +func (m *PasswordKdfAlgo_Data) GetSalt1() []byte { if m != nil { - return m.UserId + return m.Salt1 } - return 0 + return nil } -func (m *Peer_Data) GetChatId() int32 { +func (m *PasswordKdfAlgo_Data) GetSalt2() []byte { if m != nil { - return m.ChatId + return m.Salt2 } - return 0 + return nil } -func (m *Peer_Data) GetChannelId() int32 { +func (m *PasswordKdfAlgo_Data) GetG() int32 { if m != nil { - return m.ChannelId + return m.G } return 0 } -type Peer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Peer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PasswordKdfAlgo_Data) GetP() []byte { + if m != nil { + return m.P + } + return nil } -func (m *Peer) Reset() { *m = Peer{} } -func (m *Peer) String() string { return proto.CompactTextString(m) } -func (*Peer) ProtoMessage() {} -func (*Peer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{701} +type PasswordKdfAlgo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Peer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Peer.Unmarshal(m, b) + +func (m *PasswordKdfAlgo) Reset() { *m = PasswordKdfAlgo{} } +func (m *PasswordKdfAlgo) String() string { return proto.CompactTextString(m) } +func (*PasswordKdfAlgo) ProtoMessage() {} +func (*PasswordKdfAlgo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{643} } -func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Peer.Marshal(b, m, deterministic) +func (m *PasswordKdfAlgo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PasswordKdfAlgo.Unmarshal(m, b) } -func (dst *Peer) XXX_Merge(src proto.Message) { - xxx_messageInfo_Peer.Merge(dst, src) +func (m *PasswordKdfAlgo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PasswordKdfAlgo.Marshal(b, m, deterministic) } -func (m *Peer) XXX_Size() int { - return xxx_messageInfo_Peer.Size(m) +func (dst *PasswordKdfAlgo) XXX_Merge(src proto.Message) { + xxx_messageInfo_PasswordKdfAlgo.Merge(dst, src) } -func (m *Peer) XXX_DiscardUnknown() { - xxx_messageInfo_Peer.DiscardUnknown(m) +func (m *PasswordKdfAlgo) XXX_Size() int { + return xxx_messageInfo_PasswordKdfAlgo.Size(m) +} +func (m *PasswordKdfAlgo) XXX_DiscardUnknown() { + xxx_messageInfo_PasswordKdfAlgo.DiscardUnknown(m) } -var xxx_messageInfo_Peer proto.InternalMessageInfo +var xxx_messageInfo_PasswordKdfAlgo proto.InternalMessageInfo -func (m *Peer) GetConstructor() TLConstructor { +func (m *PasswordKdfAlgo) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Peer) GetData2() *Peer_Data { +func (m *PasswordKdfAlgo) GetData2() *PasswordKdfAlgo_Data { if m != nil { return m.Data2 } return nil } -// peerUser#9db1bc6d user_id:int = Peer; -type TLPeerUser struct { - Data2 *Peer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo; +type TLPasswordKdfAlgoUnknown struct { + Data2 *PasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPeerUser) Reset() { *m = TLPeerUser{} } -func (m *TLPeerUser) String() string { return proto.CompactTextString(m) } -func (*TLPeerUser) ProtoMessage() {} -func (*TLPeerUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{702} +func (m *TLPasswordKdfAlgoUnknown) Reset() { *m = TLPasswordKdfAlgoUnknown{} } +func (m *TLPasswordKdfAlgoUnknown) String() string { return proto.CompactTextString(m) } +func (*TLPasswordKdfAlgoUnknown) ProtoMessage() {} +func (*TLPasswordKdfAlgoUnknown) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{644} } -func (m *TLPeerUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPeerUser.Unmarshal(m, b) +func (m *TLPasswordKdfAlgoUnknown) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPasswordKdfAlgoUnknown.Unmarshal(m, b) } -func (m *TLPeerUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPeerUser.Marshal(b, m, deterministic) +func (m *TLPasswordKdfAlgoUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPasswordKdfAlgoUnknown.Marshal(b, m, deterministic) } -func (dst *TLPeerUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPeerUser.Merge(dst, src) +func (dst *TLPasswordKdfAlgoUnknown) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPasswordKdfAlgoUnknown.Merge(dst, src) } -func (m *TLPeerUser) XXX_Size() int { - return xxx_messageInfo_TLPeerUser.Size(m) +func (m *TLPasswordKdfAlgoUnknown) XXX_Size() int { + return xxx_messageInfo_TLPasswordKdfAlgoUnknown.Size(m) } -func (m *TLPeerUser) XXX_DiscardUnknown() { - xxx_messageInfo_TLPeerUser.DiscardUnknown(m) +func (m *TLPasswordKdfAlgoUnknown) XXX_DiscardUnknown() { + xxx_messageInfo_TLPasswordKdfAlgoUnknown.DiscardUnknown(m) } -var xxx_messageInfo_TLPeerUser proto.InternalMessageInfo +var xxx_messageInfo_TLPasswordKdfAlgoUnknown proto.InternalMessageInfo -func (m *TLPeerUser) GetData2() *Peer_Data { +func (m *TLPasswordKdfAlgoUnknown) GetData2() *PasswordKdfAlgo_Data { if m != nil { return m.Data2 } return nil } -// peerChat#bad0e5bb chat_id:int = Peer; -type TLPeerChat struct { - Data2 *Peer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo; +type TLPasswordKdfAlgoModPow struct { + Data2 *PasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPeerChat) Reset() { *m = TLPeerChat{} } -func (m *TLPeerChat) String() string { return proto.CompactTextString(m) } -func (*TLPeerChat) ProtoMessage() {} -func (*TLPeerChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{703} +func (m *TLPasswordKdfAlgoModPow) Reset() { *m = TLPasswordKdfAlgoModPow{} } +func (m *TLPasswordKdfAlgoModPow) String() string { return proto.CompactTextString(m) } +func (*TLPasswordKdfAlgoModPow) ProtoMessage() {} +func (*TLPasswordKdfAlgoModPow) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{645} } -func (m *TLPeerChat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPeerChat.Unmarshal(m, b) +func (m *TLPasswordKdfAlgoModPow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPasswordKdfAlgoModPow.Unmarshal(m, b) } -func (m *TLPeerChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPeerChat.Marshal(b, m, deterministic) +func (m *TLPasswordKdfAlgoModPow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPasswordKdfAlgoModPow.Marshal(b, m, deterministic) } -func (dst *TLPeerChat) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPeerChat.Merge(dst, src) +func (dst *TLPasswordKdfAlgoModPow) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPasswordKdfAlgoModPow.Merge(dst, src) } -func (m *TLPeerChat) XXX_Size() int { - return xxx_messageInfo_TLPeerChat.Size(m) +func (m *TLPasswordKdfAlgoModPow) XXX_Size() int { + return xxx_messageInfo_TLPasswordKdfAlgoModPow.Size(m) } -func (m *TLPeerChat) XXX_DiscardUnknown() { - xxx_messageInfo_TLPeerChat.DiscardUnknown(m) +func (m *TLPasswordKdfAlgoModPow) XXX_DiscardUnknown() { + xxx_messageInfo_TLPasswordKdfAlgoModPow.DiscardUnknown(m) } -var xxx_messageInfo_TLPeerChat proto.InternalMessageInfo +var xxx_messageInfo_TLPasswordKdfAlgoModPow proto.InternalMessageInfo -func (m *TLPeerChat) GetData2() *Peer_Data { +func (m *TLPasswordKdfAlgoModPow) GetData2() *PasswordKdfAlgo_Data { if m != nil { return m.Data2 } return nil } -// peerChannel#bddde532 channel_id:int = Peer; -type TLPeerChannel struct { - Data2 *Peer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// ///////////////////////////////////////////////////////////////////////////// +// messages_Dialogs <-- +// + TL_messages_dialogs +// + TL_messages_dialogsSlice +// + TL_messages_dialogsNotModified +// +type Messages_Dialogs_Data struct { + Dialogs []*Dialog `protobuf:"bytes,1,rep,name=dialogs,proto3" json:"dialogs,omitempty"` + Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` + Chats []*Chat `protobuf:"bytes,3,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` + Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLPeerChannel) Reset() { *m = TLPeerChannel{} } -func (m *TLPeerChannel) String() string { return proto.CompactTextString(m) } -func (*TLPeerChannel) ProtoMessage() {} -func (*TLPeerChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{704} +func (m *Messages_Dialogs_Data) Reset() { *m = Messages_Dialogs_Data{} } +func (m *Messages_Dialogs_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_Dialogs_Data) ProtoMessage() {} +func (*Messages_Dialogs_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{646} } -func (m *TLPeerChannel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPeerChannel.Unmarshal(m, b) +func (m *Messages_Dialogs_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_Dialogs_Data.Unmarshal(m, b) } -func (m *TLPeerChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPeerChannel.Marshal(b, m, deterministic) +func (m *Messages_Dialogs_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_Dialogs_Data.Marshal(b, m, deterministic) } -func (dst *TLPeerChannel) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPeerChannel.Merge(dst, src) +func (dst *Messages_Dialogs_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_Dialogs_Data.Merge(dst, src) } -func (m *TLPeerChannel) XXX_Size() int { - return xxx_messageInfo_TLPeerChannel.Size(m) +func (m *Messages_Dialogs_Data) XXX_Size() int { + return xxx_messageInfo_Messages_Dialogs_Data.Size(m) } -func (m *TLPeerChannel) XXX_DiscardUnknown() { - xxx_messageInfo_TLPeerChannel.DiscardUnknown(m) +func (m *Messages_Dialogs_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_Dialogs_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPeerChannel proto.InternalMessageInfo +var xxx_messageInfo_Messages_Dialogs_Data proto.InternalMessageInfo -func (m *TLPeerChannel) GetData2() *Peer_Data { +func (m *Messages_Dialogs_Data) GetDialogs() []*Dialog { if m != nil { - return m.Data2 + return m.Dialogs } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// UserProfilePhoto <-- -// + TL_userProfilePhotoEmpty -// + TL_userProfilePhoto -// -type UserProfilePhoto_Data struct { - PhotoId int64 `protobuf:"varint,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"` - PhotoSmall *FileLocation `protobuf:"bytes,2,opt,name=photo_small,json=photoSmall,proto3" json:"photo_small,omitempty"` - PhotoBig *FileLocation `protobuf:"bytes,3,opt,name=photo_big,json=photoBig,proto3" json:"photo_big,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserProfilePhoto_Data) Reset() { *m = UserProfilePhoto_Data{} } -func (m *UserProfilePhoto_Data) String() string { return proto.CompactTextString(m) } -func (*UserProfilePhoto_Data) ProtoMessage() {} -func (*UserProfilePhoto_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{705} -} -func (m *UserProfilePhoto_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserProfilePhoto_Data.Unmarshal(m, b) -} -func (m *UserProfilePhoto_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserProfilePhoto_Data.Marshal(b, m, deterministic) -} -func (dst *UserProfilePhoto_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserProfilePhoto_Data.Merge(dst, src) -} -func (m *UserProfilePhoto_Data) XXX_Size() int { - return xxx_messageInfo_UserProfilePhoto_Data.Size(m) -} -func (m *UserProfilePhoto_Data) XXX_DiscardUnknown() { - xxx_messageInfo_UserProfilePhoto_Data.DiscardUnknown(m) +func (m *Messages_Dialogs_Data) GetMessages() []*Message { + if m != nil { + return m.Messages + } + return nil } -var xxx_messageInfo_UserProfilePhoto_Data proto.InternalMessageInfo - -func (m *UserProfilePhoto_Data) GetPhotoId() int64 { +func (m *Messages_Dialogs_Data) GetChats() []*Chat { if m != nil { - return m.PhotoId + return m.Chats } - return 0 + return nil } -func (m *UserProfilePhoto_Data) GetPhotoSmall() *FileLocation { +func (m *Messages_Dialogs_Data) GetUsers() []*User { if m != nil { - return m.PhotoSmall + return m.Users } return nil } -func (m *UserProfilePhoto_Data) GetPhotoBig() *FileLocation { +func (m *Messages_Dialogs_Data) GetCount() int32 { if m != nil { - return m.PhotoBig + return m.Count } - return nil + return 0 } -type UserProfilePhoto struct { +type Messages_Dialogs struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *UserProfilePhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + Data2 *Messages_Dialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *UserProfilePhoto) Reset() { *m = UserProfilePhoto{} } -func (m *UserProfilePhoto) String() string { return proto.CompactTextString(m) } -func (*UserProfilePhoto) ProtoMessage() {} -func (*UserProfilePhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{706} +func (m *Messages_Dialogs) Reset() { *m = Messages_Dialogs{} } +func (m *Messages_Dialogs) String() string { return proto.CompactTextString(m) } +func (*Messages_Dialogs) ProtoMessage() {} +func (*Messages_Dialogs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{647} } -func (m *UserProfilePhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserProfilePhoto.Unmarshal(m, b) +func (m *Messages_Dialogs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_Dialogs.Unmarshal(m, b) } -func (m *UserProfilePhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserProfilePhoto.Marshal(b, m, deterministic) +func (m *Messages_Dialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_Dialogs.Marshal(b, m, deterministic) } -func (dst *UserProfilePhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserProfilePhoto.Merge(dst, src) +func (dst *Messages_Dialogs) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_Dialogs.Merge(dst, src) } -func (m *UserProfilePhoto) XXX_Size() int { - return xxx_messageInfo_UserProfilePhoto.Size(m) +func (m *Messages_Dialogs) XXX_Size() int { + return xxx_messageInfo_Messages_Dialogs.Size(m) } -func (m *UserProfilePhoto) XXX_DiscardUnknown() { - xxx_messageInfo_UserProfilePhoto.DiscardUnknown(m) +func (m *Messages_Dialogs) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_Dialogs.DiscardUnknown(m) } -var xxx_messageInfo_UserProfilePhoto proto.InternalMessageInfo +var xxx_messageInfo_Messages_Dialogs proto.InternalMessageInfo -func (m *UserProfilePhoto) GetConstructor() TLConstructor { +func (m *Messages_Dialogs) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *UserProfilePhoto) GetData2() *UserProfilePhoto_Data { +func (m *Messages_Dialogs) GetData2() *Messages_Dialogs_Data { if m != nil { return m.Data2 } return nil } -// userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; -type TLUserProfilePhotoEmpty struct { - Data2 *UserProfilePhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; +type TLMessagesDialogs struct { + Data2 *Messages_Dialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLUserProfilePhotoEmpty) Reset() { *m = TLUserProfilePhotoEmpty{} } -func (m *TLUserProfilePhotoEmpty) String() string { return proto.CompactTextString(m) } -func (*TLUserProfilePhotoEmpty) ProtoMessage() {} -func (*TLUserProfilePhotoEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{707} +func (m *TLMessagesDialogs) Reset() { *m = TLMessagesDialogs{} } +func (m *TLMessagesDialogs) String() string { return proto.CompactTextString(m) } +func (*TLMessagesDialogs) ProtoMessage() {} +func (*TLMessagesDialogs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{648} } -func (m *TLUserProfilePhotoEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserProfilePhotoEmpty.Unmarshal(m, b) +func (m *TLMessagesDialogs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesDialogs.Unmarshal(m, b) } -func (m *TLUserProfilePhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserProfilePhotoEmpty.Marshal(b, m, deterministic) +func (m *TLMessagesDialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesDialogs.Marshal(b, m, deterministic) } -func (dst *TLUserProfilePhotoEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserProfilePhotoEmpty.Merge(dst, src) +func (dst *TLMessagesDialogs) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesDialogs.Merge(dst, src) } -func (m *TLUserProfilePhotoEmpty) XXX_Size() int { - return xxx_messageInfo_TLUserProfilePhotoEmpty.Size(m) +func (m *TLMessagesDialogs) XXX_Size() int { + return xxx_messageInfo_TLMessagesDialogs.Size(m) } -func (m *TLUserProfilePhotoEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserProfilePhotoEmpty.DiscardUnknown(m) +func (m *TLMessagesDialogs) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesDialogs.DiscardUnknown(m) } -var xxx_messageInfo_TLUserProfilePhotoEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesDialogs proto.InternalMessageInfo -func (m *TLUserProfilePhotoEmpty) GetData2() *UserProfilePhoto_Data { +func (m *TLMessagesDialogs) GetData2() *Messages_Dialogs_Data { if m != nil { return m.Data2 } return nil } -// userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto; -type TLUserProfilePhoto struct { - Data2 *UserProfilePhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; +type TLMessagesDialogsSlice struct { + Data2 *Messages_Dialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLUserProfilePhoto) Reset() { *m = TLUserProfilePhoto{} } -func (m *TLUserProfilePhoto) String() string { return proto.CompactTextString(m) } -func (*TLUserProfilePhoto) ProtoMessage() {} -func (*TLUserProfilePhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{708} +func (m *TLMessagesDialogsSlice) Reset() { *m = TLMessagesDialogsSlice{} } +func (m *TLMessagesDialogsSlice) String() string { return proto.CompactTextString(m) } +func (*TLMessagesDialogsSlice) ProtoMessage() {} +func (*TLMessagesDialogsSlice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{649} } -func (m *TLUserProfilePhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserProfilePhoto.Unmarshal(m, b) +func (m *TLMessagesDialogsSlice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesDialogsSlice.Unmarshal(m, b) } -func (m *TLUserProfilePhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserProfilePhoto.Marshal(b, m, deterministic) +func (m *TLMessagesDialogsSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesDialogsSlice.Marshal(b, m, deterministic) } -func (dst *TLUserProfilePhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserProfilePhoto.Merge(dst, src) +func (dst *TLMessagesDialogsSlice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesDialogsSlice.Merge(dst, src) } -func (m *TLUserProfilePhoto) XXX_Size() int { - return xxx_messageInfo_TLUserProfilePhoto.Size(m) +func (m *TLMessagesDialogsSlice) XXX_Size() int { + return xxx_messageInfo_TLMessagesDialogsSlice.Size(m) } -func (m *TLUserProfilePhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserProfilePhoto.DiscardUnknown(m) +func (m *TLMessagesDialogsSlice) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesDialogsSlice.DiscardUnknown(m) } -var xxx_messageInfo_TLUserProfilePhoto proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesDialogsSlice proto.InternalMessageInfo -func (m *TLUserProfilePhoto) GetData2() *UserProfilePhoto_Data { +func (m *TLMessagesDialogsSlice) GetData2() *Messages_Dialogs_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// contacts_Blocked <-- -// + TL_contacts_blocked -// + TL_contacts_blockedSlice -// -type Contacts_Blocked_Data struct { - Blocked []*ContactBlocked `protobuf:"bytes,1,rep,name=blocked,proto3" json:"blocked,omitempty"` - Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` - Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs; +type TLMessagesDialogsNotModified struct { + Data2 *Messages_Dialogs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_Blocked_Data) Reset() { *m = Contacts_Blocked_Data{} } -func (m *Contacts_Blocked_Data) String() string { return proto.CompactTextString(m) } -func (*Contacts_Blocked_Data) ProtoMessage() {} -func (*Contacts_Blocked_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{709} +func (m *TLMessagesDialogsNotModified) Reset() { *m = TLMessagesDialogsNotModified{} } +func (m *TLMessagesDialogsNotModified) String() string { return proto.CompactTextString(m) } +func (*TLMessagesDialogsNotModified) ProtoMessage() {} +func (*TLMessagesDialogsNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{650} } -func (m *Contacts_Blocked_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_Blocked_Data.Unmarshal(m, b) +func (m *TLMessagesDialogsNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesDialogsNotModified.Unmarshal(m, b) } -func (m *Contacts_Blocked_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_Blocked_Data.Marshal(b, m, deterministic) +func (m *TLMessagesDialogsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesDialogsNotModified.Marshal(b, m, deterministic) } -func (dst *Contacts_Blocked_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_Blocked_Data.Merge(dst, src) +func (dst *TLMessagesDialogsNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesDialogsNotModified.Merge(dst, src) } -func (m *Contacts_Blocked_Data) XXX_Size() int { - return xxx_messageInfo_Contacts_Blocked_Data.Size(m) +func (m *TLMessagesDialogsNotModified) XXX_Size() int { + return xxx_messageInfo_TLMessagesDialogsNotModified.Size(m) } -func (m *Contacts_Blocked_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_Blocked_Data.DiscardUnknown(m) +func (m *TLMessagesDialogsNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesDialogsNotModified.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_Blocked_Data proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesDialogsNotModified proto.InternalMessageInfo -func (m *Contacts_Blocked_Data) GetBlocked() []*ContactBlocked { +func (m *TLMessagesDialogsNotModified) GetData2() *Messages_Dialogs_Data { if m != nil { - return m.Blocked + return m.Data2 } return nil } -func (m *Contacts_Blocked_Data) GetUsers() []*User { +// ///////////////////////////////////////////////////////////////////////////// +// messages_AllStickers <-- +// + TL_messages_allStickersNotModified +// + TL_messages_allStickers +// +type Messages_AllStickers_Data struct { + Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + Sets []*StickerSet `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Messages_AllStickers_Data) Reset() { *m = Messages_AllStickers_Data{} } +func (m *Messages_AllStickers_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_AllStickers_Data) ProtoMessage() {} +func (*Messages_AllStickers_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{651} +} +func (m *Messages_AllStickers_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_AllStickers_Data.Unmarshal(m, b) +} +func (m *Messages_AllStickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_AllStickers_Data.Marshal(b, m, deterministic) +} +func (dst *Messages_AllStickers_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_AllStickers_Data.Merge(dst, src) +} +func (m *Messages_AllStickers_Data) XXX_Size() int { + return xxx_messageInfo_Messages_AllStickers_Data.Size(m) +} +func (m *Messages_AllStickers_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_AllStickers_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_Messages_AllStickers_Data proto.InternalMessageInfo + +func (m *Messages_AllStickers_Data) GetHash() int32 { if m != nil { - return m.Users + return m.Hash } - return nil + return 0 } -func (m *Contacts_Blocked_Data) GetCount() int32 { +func (m *Messages_AllStickers_Data) GetSets() []*StickerSet { if m != nil { - return m.Count + return m.Sets } - return 0 + return nil } -type Contacts_Blocked struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Contacts_Blocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_AllStickers struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_AllStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_Blocked) Reset() { *m = Contacts_Blocked{} } -func (m *Contacts_Blocked) String() string { return proto.CompactTextString(m) } -func (*Contacts_Blocked) ProtoMessage() {} -func (*Contacts_Blocked) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{710} +func (m *Messages_AllStickers) Reset() { *m = Messages_AllStickers{} } +func (m *Messages_AllStickers) String() string { return proto.CompactTextString(m) } +func (*Messages_AllStickers) ProtoMessage() {} +func (*Messages_AllStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{652} } -func (m *Contacts_Blocked) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_Blocked.Unmarshal(m, b) +func (m *Messages_AllStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_AllStickers.Unmarshal(m, b) } -func (m *Contacts_Blocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_Blocked.Marshal(b, m, deterministic) +func (m *Messages_AllStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_AllStickers.Marshal(b, m, deterministic) } -func (dst *Contacts_Blocked) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_Blocked.Merge(dst, src) +func (dst *Messages_AllStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_AllStickers.Merge(dst, src) } -func (m *Contacts_Blocked) XXX_Size() int { - return xxx_messageInfo_Contacts_Blocked.Size(m) +func (m *Messages_AllStickers) XXX_Size() int { + return xxx_messageInfo_Messages_AllStickers.Size(m) } -func (m *Contacts_Blocked) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_Blocked.DiscardUnknown(m) +func (m *Messages_AllStickers) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_AllStickers.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_Blocked proto.InternalMessageInfo +var xxx_messageInfo_Messages_AllStickers proto.InternalMessageInfo -func (m *Contacts_Blocked) GetConstructor() TLConstructor { +func (m *Messages_AllStickers) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Contacts_Blocked) GetData2() *Contacts_Blocked_Data { +func (m *Messages_AllStickers) GetData2() *Messages_AllStickers_Data { if m != nil { return m.Data2 } return nil } -// contacts.blocked#1c138d15 blocked:Vector users:Vector = contacts.Blocked; -type TLContactsBlocked struct { - Data2 *Contacts_Blocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.allStickersNotModified#e86602c3 = messages.AllStickers; +type TLMessagesAllStickersNotModified struct { + Data2 *Messages_AllStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactsBlocked) Reset() { *m = TLContactsBlocked{} } -func (m *TLContactsBlocked) String() string { return proto.CompactTextString(m) } -func (*TLContactsBlocked) ProtoMessage() {} -func (*TLContactsBlocked) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{711} +func (m *TLMessagesAllStickersNotModified) Reset() { *m = TLMessagesAllStickersNotModified{} } +func (m *TLMessagesAllStickersNotModified) String() string { return proto.CompactTextString(m) } +func (*TLMessagesAllStickersNotModified) ProtoMessage() {} +func (*TLMessagesAllStickersNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{653} } -func (m *TLContactsBlocked) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsBlocked.Unmarshal(m, b) +func (m *TLMessagesAllStickersNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesAllStickersNotModified.Unmarshal(m, b) } -func (m *TLContactsBlocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsBlocked.Marshal(b, m, deterministic) +func (m *TLMessagesAllStickersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesAllStickersNotModified.Marshal(b, m, deterministic) } -func (dst *TLContactsBlocked) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsBlocked.Merge(dst, src) +func (dst *TLMessagesAllStickersNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesAllStickersNotModified.Merge(dst, src) } -func (m *TLContactsBlocked) XXX_Size() int { - return xxx_messageInfo_TLContactsBlocked.Size(m) +func (m *TLMessagesAllStickersNotModified) XXX_Size() int { + return xxx_messageInfo_TLMessagesAllStickersNotModified.Size(m) } -func (m *TLContactsBlocked) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsBlocked.DiscardUnknown(m) +func (m *TLMessagesAllStickersNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesAllStickersNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLContactsBlocked proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesAllStickersNotModified proto.InternalMessageInfo -func (m *TLContactsBlocked) GetData2() *Contacts_Blocked_Data { +func (m *TLMessagesAllStickersNotModified) GetData2() *Messages_AllStickers_Data { if m != nil { return m.Data2 } return nil } -// contacts.blockedSlice#900802a1 count:int blocked:Vector users:Vector = contacts.Blocked; -type TLContactsBlockedSlice struct { - Data2 *Contacts_Blocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers; +type TLMessagesAllStickers struct { + Data2 *Messages_AllStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactsBlockedSlice) Reset() { *m = TLContactsBlockedSlice{} } -func (m *TLContactsBlockedSlice) String() string { return proto.CompactTextString(m) } -func (*TLContactsBlockedSlice) ProtoMessage() {} -func (*TLContactsBlockedSlice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{712} +func (m *TLMessagesAllStickers) Reset() { *m = TLMessagesAllStickers{} } +func (m *TLMessagesAllStickers) String() string { return proto.CompactTextString(m) } +func (*TLMessagesAllStickers) ProtoMessage() {} +func (*TLMessagesAllStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{654} } -func (m *TLContactsBlockedSlice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsBlockedSlice.Unmarshal(m, b) +func (m *TLMessagesAllStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesAllStickers.Unmarshal(m, b) } -func (m *TLContactsBlockedSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsBlockedSlice.Marshal(b, m, deterministic) +func (m *TLMessagesAllStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesAllStickers.Marshal(b, m, deterministic) } -func (dst *TLContactsBlockedSlice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsBlockedSlice.Merge(dst, src) +func (dst *TLMessagesAllStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesAllStickers.Merge(dst, src) } -func (m *TLContactsBlockedSlice) XXX_Size() int { - return xxx_messageInfo_TLContactsBlockedSlice.Size(m) +func (m *TLMessagesAllStickers) XXX_Size() int { + return xxx_messageInfo_TLMessagesAllStickers.Size(m) } -func (m *TLContactsBlockedSlice) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsBlockedSlice.DiscardUnknown(m) +func (m *TLMessagesAllStickers) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesAllStickers.DiscardUnknown(m) } -var xxx_messageInfo_TLContactsBlockedSlice proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesAllStickers proto.InternalMessageInfo -func (m *TLContactsBlockedSlice) GetData2() *Contacts_Blocked_Data { +func (m *TLMessagesAllStickers) GetData2() *Messages_AllStickers_Data { if m != nil { return m.Data2 } @@ -34249,126 +32763,158 @@ func (m *TLContactsBlockedSlice) GetData2() *Contacts_Blocked_Data { } // ///////////////////////////////////////////////////////////////////////////// -// auth_PasswordRecovery <-- -// + TL_auth_passwordRecovery +// account_PasswordInputSettings <-- +// + TL_account_passwordInputSettings // -type Auth_PasswordRecovery_Data struct { - EmailPattern string `protobuf:"bytes,1,opt,name=email_pattern,json=emailPattern,proto3" json:"email_pattern,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_PasswordInputSettings_Data struct { + NewAlgo *PasswordKdfAlgo `protobuf:"bytes,1,opt,name=new_algo,json=newAlgo,proto3" json:"new_algo,omitempty"` + NewPasswordHash []byte `protobuf:"bytes,2,opt,name=new_password_hash,json=newPasswordHash,proto3" json:"new_password_hash,omitempty"` + Hint string `protobuf:"bytes,3,opt,name=hint,proto3" json:"hint,omitempty"` + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` + NewSecureSettings *SecureSecretSettings `protobuf:"bytes,5,opt,name=new_secure_settings,json=newSecureSettings,proto3" json:"new_secure_settings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_PasswordRecovery_Data) Reset() { *m = Auth_PasswordRecovery_Data{} } -func (m *Auth_PasswordRecovery_Data) String() string { return proto.CompactTextString(m) } -func (*Auth_PasswordRecovery_Data) ProtoMessage() {} -func (*Auth_PasswordRecovery_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{713} +func (m *Account_PasswordInputSettings_Data) Reset() { *m = Account_PasswordInputSettings_Data{} } +func (m *Account_PasswordInputSettings_Data) String() string { return proto.CompactTextString(m) } +func (*Account_PasswordInputSettings_Data) ProtoMessage() {} +func (*Account_PasswordInputSettings_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{655} } -func (m *Auth_PasswordRecovery_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_PasswordRecovery_Data.Unmarshal(m, b) +func (m *Account_PasswordInputSettings_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_PasswordInputSettings_Data.Unmarshal(m, b) } -func (m *Auth_PasswordRecovery_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_PasswordRecovery_Data.Marshal(b, m, deterministic) +func (m *Account_PasswordInputSettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_PasswordInputSettings_Data.Marshal(b, m, deterministic) } -func (dst *Auth_PasswordRecovery_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_PasswordRecovery_Data.Merge(dst, src) +func (dst *Account_PasswordInputSettings_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_PasswordInputSettings_Data.Merge(dst, src) } -func (m *Auth_PasswordRecovery_Data) XXX_Size() int { - return xxx_messageInfo_Auth_PasswordRecovery_Data.Size(m) +func (m *Account_PasswordInputSettings_Data) XXX_Size() int { + return xxx_messageInfo_Account_PasswordInputSettings_Data.Size(m) } -func (m *Auth_PasswordRecovery_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_PasswordRecovery_Data.DiscardUnknown(m) +func (m *Account_PasswordInputSettings_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_PasswordInputSettings_Data.DiscardUnknown(m) } -var xxx_messageInfo_Auth_PasswordRecovery_Data proto.InternalMessageInfo +var xxx_messageInfo_Account_PasswordInputSettings_Data proto.InternalMessageInfo -func (m *Auth_PasswordRecovery_Data) GetEmailPattern() string { +func (m *Account_PasswordInputSettings_Data) GetNewAlgo() *PasswordKdfAlgo { if m != nil { - return m.EmailPattern + return m.NewAlgo } - return "" + return nil } -type Auth_PasswordRecovery struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Auth_PasswordRecovery_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Account_PasswordInputSettings_Data) GetNewPasswordHash() []byte { + if m != nil { + return m.NewPasswordHash + } + return nil } -func (m *Auth_PasswordRecovery) Reset() { *m = Auth_PasswordRecovery{} } -func (m *Auth_PasswordRecovery) String() string { return proto.CompactTextString(m) } -func (*Auth_PasswordRecovery) ProtoMessage() {} -func (*Auth_PasswordRecovery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{714} -} -func (m *Auth_PasswordRecovery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_PasswordRecovery.Unmarshal(m, b) -} -func (m *Auth_PasswordRecovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_PasswordRecovery.Marshal(b, m, deterministic) -} -func (dst *Auth_PasswordRecovery) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_PasswordRecovery.Merge(dst, src) -} -func (m *Auth_PasswordRecovery) XXX_Size() int { - return xxx_messageInfo_Auth_PasswordRecovery.Size(m) -} -func (m *Auth_PasswordRecovery) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_PasswordRecovery.DiscardUnknown(m) +func (m *Account_PasswordInputSettings_Data) GetHint() string { + if m != nil { + return m.Hint + } + return "" } -var xxx_messageInfo_Auth_PasswordRecovery proto.InternalMessageInfo - -func (m *Auth_PasswordRecovery) GetConstructor() TLConstructor { +func (m *Account_PasswordInputSettings_Data) GetEmail() string { if m != nil { - return m.Constructor + return m.Email } - return TLConstructor_CRC32_UNKNOWN + return "" } -func (m *Auth_PasswordRecovery) GetData2() *Auth_PasswordRecovery_Data { +func (m *Account_PasswordInputSettings_Data) GetNewSecureSettings() *SecureSecretSettings { if m != nil { - return m.Data2 + return m.NewSecureSettings } return nil } -// auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; -type TLAuthPasswordRecovery struct { - Data2 *Auth_PasswordRecovery_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type Account_PasswordInputSettings struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_PasswordInputSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} -func (m *TLAuthPasswordRecovery) Reset() { *m = TLAuthPasswordRecovery{} } -func (m *TLAuthPasswordRecovery) String() string { return proto.CompactTextString(m) } -func (*TLAuthPasswordRecovery) ProtoMessage() {} -func (*TLAuthPasswordRecovery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{715} +func (m *Account_PasswordInputSettings) Reset() { *m = Account_PasswordInputSettings{} } +func (m *Account_PasswordInputSettings) String() string { return proto.CompactTextString(m) } +func (*Account_PasswordInputSettings) ProtoMessage() {} +func (*Account_PasswordInputSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{656} } -func (m *TLAuthPasswordRecovery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthPasswordRecovery.Unmarshal(m, b) +func (m *Account_PasswordInputSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_PasswordInputSettings.Unmarshal(m, b) } -func (m *TLAuthPasswordRecovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthPasswordRecovery.Marshal(b, m, deterministic) +func (m *Account_PasswordInputSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_PasswordInputSettings.Marshal(b, m, deterministic) } -func (dst *TLAuthPasswordRecovery) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthPasswordRecovery.Merge(dst, src) +func (dst *Account_PasswordInputSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_PasswordInputSettings.Merge(dst, src) } -func (m *TLAuthPasswordRecovery) XXX_Size() int { - return xxx_messageInfo_TLAuthPasswordRecovery.Size(m) +func (m *Account_PasswordInputSettings) XXX_Size() int { + return xxx_messageInfo_Account_PasswordInputSettings.Size(m) } -func (m *TLAuthPasswordRecovery) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthPasswordRecovery.DiscardUnknown(m) +func (m *Account_PasswordInputSettings) XXX_DiscardUnknown() { + xxx_messageInfo_Account_PasswordInputSettings.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthPasswordRecovery proto.InternalMessageInfo +var xxx_messageInfo_Account_PasswordInputSettings proto.InternalMessageInfo -func (m *TLAuthPasswordRecovery) GetData2() *Auth_PasswordRecovery_Data { +func (m *Account_PasswordInputSettings) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Account_PasswordInputSettings) GetData2() *Account_PasswordInputSettings_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings; +type TLAccountPasswordInputSettings struct { + Data2 *Account_PasswordInputSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLAccountPasswordInputSettings) Reset() { *m = TLAccountPasswordInputSettings{} } +func (m *TLAccountPasswordInputSettings) String() string { return proto.CompactTextString(m) } +func (*TLAccountPasswordInputSettings) ProtoMessage() {} +func (*TLAccountPasswordInputSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{657} +} +func (m *TLAccountPasswordInputSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountPasswordInputSettings.Unmarshal(m, b) +} +func (m *TLAccountPasswordInputSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountPasswordInputSettings.Marshal(b, m, deterministic) +} +func (dst *TLAccountPasswordInputSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountPasswordInputSettings.Merge(dst, src) +} +func (m *TLAccountPasswordInputSettings) XXX_Size() int { + return xxx_messageInfo_TLAccountPasswordInputSettings.Size(m) +} +func (m *TLAccountPasswordInputSettings) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountPasswordInputSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_TLAccountPasswordInputSettings proto.InternalMessageInfo + +func (m *TLAccountPasswordInputSettings) GetData2() *Account_PasswordInputSettings_Data { if m != nil { return m.Data2 } @@ -34376,126 +32922,158 @@ func (m *TLAuthPasswordRecovery) GetData2() *Auth_PasswordRecovery_Data { } // ///////////////////////////////////////////////////////////////////////////// -// DataJSON <-- -// + TL_dataJSON +// upload_WebFile <-- +// + TL_upload_webFile // -type DataJSON_Data struct { - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Upload_WebFile_Data struct { + Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` + MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + FileType *Storage_FileType `protobuf:"bytes,3,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"` + Mtime int32 `protobuf:"varint,4,opt,name=mtime,proto3" json:"mtime,omitempty"` + Bytes []byte `protobuf:"bytes,5,opt,name=bytes,proto3" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DataJSON_Data) Reset() { *m = DataJSON_Data{} } -func (m *DataJSON_Data) String() string { return proto.CompactTextString(m) } -func (*DataJSON_Data) ProtoMessage() {} -func (*DataJSON_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{716} +func (m *Upload_WebFile_Data) Reset() { *m = Upload_WebFile_Data{} } +func (m *Upload_WebFile_Data) String() string { return proto.CompactTextString(m) } +func (*Upload_WebFile_Data) ProtoMessage() {} +func (*Upload_WebFile_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{658} } -func (m *DataJSON_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataJSON_Data.Unmarshal(m, b) +func (m *Upload_WebFile_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Upload_WebFile_Data.Unmarshal(m, b) } -func (m *DataJSON_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataJSON_Data.Marshal(b, m, deterministic) +func (m *Upload_WebFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Upload_WebFile_Data.Marshal(b, m, deterministic) } -func (dst *DataJSON_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataJSON_Data.Merge(dst, src) +func (dst *Upload_WebFile_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Upload_WebFile_Data.Merge(dst, src) } -func (m *DataJSON_Data) XXX_Size() int { - return xxx_messageInfo_DataJSON_Data.Size(m) +func (m *Upload_WebFile_Data) XXX_Size() int { + return xxx_messageInfo_Upload_WebFile_Data.Size(m) } -func (m *DataJSON_Data) XXX_DiscardUnknown() { - xxx_messageInfo_DataJSON_Data.DiscardUnknown(m) +func (m *Upload_WebFile_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Upload_WebFile_Data.DiscardUnknown(m) } -var xxx_messageInfo_DataJSON_Data proto.InternalMessageInfo +var xxx_messageInfo_Upload_WebFile_Data proto.InternalMessageInfo -func (m *DataJSON_Data) GetData() string { +func (m *Upload_WebFile_Data) GetSize() int32 { if m != nil { - return m.Data + return m.Size + } + return 0 +} + +func (m *Upload_WebFile_Data) GetMimeType() string { + if m != nil { + return m.MimeType } return "" } -type DataJSON struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *DataJSON_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Upload_WebFile_Data) GetFileType() *Storage_FileType { + if m != nil { + return m.FileType + } + return nil } -func (m *DataJSON) Reset() { *m = DataJSON{} } -func (m *DataJSON) String() string { return proto.CompactTextString(m) } -func (*DataJSON) ProtoMessage() {} -func (*DataJSON) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{717} +func (m *Upload_WebFile_Data) GetMtime() int32 { + if m != nil { + return m.Mtime + } + return 0 } -func (m *DataJSON) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataJSON.Unmarshal(m, b) + +func (m *Upload_WebFile_Data) GetBytes() []byte { + if m != nil { + return m.Bytes + } + return nil } -func (m *DataJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataJSON.Marshal(b, m, deterministic) + +type Upload_WebFile struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Upload_WebFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (dst *DataJSON) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataJSON.Merge(dst, src) + +func (m *Upload_WebFile) Reset() { *m = Upload_WebFile{} } +func (m *Upload_WebFile) String() string { return proto.CompactTextString(m) } +func (*Upload_WebFile) ProtoMessage() {} +func (*Upload_WebFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{659} } -func (m *DataJSON) XXX_Size() int { - return xxx_messageInfo_DataJSON.Size(m) +func (m *Upload_WebFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Upload_WebFile.Unmarshal(m, b) } -func (m *DataJSON) XXX_DiscardUnknown() { - xxx_messageInfo_DataJSON.DiscardUnknown(m) +func (m *Upload_WebFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Upload_WebFile.Marshal(b, m, deterministic) +} +func (dst *Upload_WebFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_Upload_WebFile.Merge(dst, src) +} +func (m *Upload_WebFile) XXX_Size() int { + return xxx_messageInfo_Upload_WebFile.Size(m) +} +func (m *Upload_WebFile) XXX_DiscardUnknown() { + xxx_messageInfo_Upload_WebFile.DiscardUnknown(m) } -var xxx_messageInfo_DataJSON proto.InternalMessageInfo +var xxx_messageInfo_Upload_WebFile proto.InternalMessageInfo -func (m *DataJSON) GetConstructor() TLConstructor { +func (m *Upload_WebFile) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *DataJSON) GetData2() *DataJSON_Data { +func (m *Upload_WebFile) GetData2() *Upload_WebFile_Data { if m != nil { return m.Data2 } return nil } -// dataJSON#7d748d04 data:string = DataJSON; -type TLDataJSON struct { - Data2 *DataJSON_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; +type TLUploadWebFile struct { + Data2 *Upload_WebFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDataJSON) Reset() { *m = TLDataJSON{} } -func (m *TLDataJSON) String() string { return proto.CompactTextString(m) } -func (*TLDataJSON) ProtoMessage() {} -func (*TLDataJSON) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{718} +func (m *TLUploadWebFile) Reset() { *m = TLUploadWebFile{} } +func (m *TLUploadWebFile) String() string { return proto.CompactTextString(m) } +func (*TLUploadWebFile) ProtoMessage() {} +func (*TLUploadWebFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{660} } -func (m *TLDataJSON) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDataJSON.Unmarshal(m, b) +func (m *TLUploadWebFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUploadWebFile.Unmarshal(m, b) } -func (m *TLDataJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDataJSON.Marshal(b, m, deterministic) +func (m *TLUploadWebFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUploadWebFile.Marshal(b, m, deterministic) } -func (dst *TLDataJSON) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDataJSON.Merge(dst, src) +func (dst *TLUploadWebFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUploadWebFile.Merge(dst, src) } -func (m *TLDataJSON) XXX_Size() int { - return xxx_messageInfo_TLDataJSON.Size(m) +func (m *TLUploadWebFile) XXX_Size() int { + return xxx_messageInfo_TLUploadWebFile.Size(m) } -func (m *TLDataJSON) XXX_DiscardUnknown() { - xxx_messageInfo_TLDataJSON.DiscardUnknown(m) +func (m *TLUploadWebFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLUploadWebFile.DiscardUnknown(m) } -var xxx_messageInfo_TLDataJSON proto.InternalMessageInfo +var xxx_messageInfo_TLUploadWebFile proto.InternalMessageInfo -func (m *TLDataJSON) GetData2() *DataJSON_Data { +func (m *TLUploadWebFile) GetData2() *Upload_WebFile_Data { if m != nil { return m.Data2 } @@ -34503,636 +33081,669 @@ func (m *TLDataJSON) GetData2() *DataJSON_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PaymentCharge <-- -// + TL_paymentCharge +// SecurePlainData <-- +// + TL_securePlainPhone +// + TL_securePlainEmail // -type PaymentCharge_Data struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProviderChargeId string `protobuf:"bytes,2,opt,name=provider_charge_id,json=providerChargeId,proto3" json:"provider_charge_id,omitempty"` +type SecurePlainData_Data struct { + Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` + Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *PaymentCharge_Data) Reset() { *m = PaymentCharge_Data{} } -func (m *PaymentCharge_Data) String() string { return proto.CompactTextString(m) } -func (*PaymentCharge_Data) ProtoMessage() {} -func (*PaymentCharge_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{719} +func (m *SecurePlainData_Data) Reset() { *m = SecurePlainData_Data{} } +func (m *SecurePlainData_Data) String() string { return proto.CompactTextString(m) } +func (*SecurePlainData_Data) ProtoMessage() {} +func (*SecurePlainData_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{661} } -func (m *PaymentCharge_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PaymentCharge_Data.Unmarshal(m, b) +func (m *SecurePlainData_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecurePlainData_Data.Unmarshal(m, b) } -func (m *PaymentCharge_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PaymentCharge_Data.Marshal(b, m, deterministic) +func (m *SecurePlainData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecurePlainData_Data.Marshal(b, m, deterministic) } -func (dst *PaymentCharge_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PaymentCharge_Data.Merge(dst, src) +func (dst *SecurePlainData_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecurePlainData_Data.Merge(dst, src) } -func (m *PaymentCharge_Data) XXX_Size() int { - return xxx_messageInfo_PaymentCharge_Data.Size(m) +func (m *SecurePlainData_Data) XXX_Size() int { + return xxx_messageInfo_SecurePlainData_Data.Size(m) } -func (m *PaymentCharge_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PaymentCharge_Data.DiscardUnknown(m) +func (m *SecurePlainData_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecurePlainData_Data.DiscardUnknown(m) } -var xxx_messageInfo_PaymentCharge_Data proto.InternalMessageInfo +var xxx_messageInfo_SecurePlainData_Data proto.InternalMessageInfo -func (m *PaymentCharge_Data) GetId() string { +func (m *SecurePlainData_Data) GetPhone() string { if m != nil { - return m.Id + return m.Phone } return "" } -func (m *PaymentCharge_Data) GetProviderChargeId() string { +func (m *SecurePlainData_Data) GetEmail() string { if m != nil { - return m.ProviderChargeId + return m.Email } return "" } -type PaymentCharge struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PaymentCharge_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SecurePlainData struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SecurePlainData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PaymentCharge) Reset() { *m = PaymentCharge{} } -func (m *PaymentCharge) String() string { return proto.CompactTextString(m) } -func (*PaymentCharge) ProtoMessage() {} -func (*PaymentCharge) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{720} +func (m *SecurePlainData) Reset() { *m = SecurePlainData{} } +func (m *SecurePlainData) String() string { return proto.CompactTextString(m) } +func (*SecurePlainData) ProtoMessage() {} +func (*SecurePlainData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{662} } -func (m *PaymentCharge) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PaymentCharge.Unmarshal(m, b) +func (m *SecurePlainData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecurePlainData.Unmarshal(m, b) } -func (m *PaymentCharge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PaymentCharge.Marshal(b, m, deterministic) +func (m *SecurePlainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecurePlainData.Marshal(b, m, deterministic) } -func (dst *PaymentCharge) XXX_Merge(src proto.Message) { - xxx_messageInfo_PaymentCharge.Merge(dst, src) +func (dst *SecurePlainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecurePlainData.Merge(dst, src) } -func (m *PaymentCharge) XXX_Size() int { - return xxx_messageInfo_PaymentCharge.Size(m) +func (m *SecurePlainData) XXX_Size() int { + return xxx_messageInfo_SecurePlainData.Size(m) } -func (m *PaymentCharge) XXX_DiscardUnknown() { - xxx_messageInfo_PaymentCharge.DiscardUnknown(m) +func (m *SecurePlainData) XXX_DiscardUnknown() { + xxx_messageInfo_SecurePlainData.DiscardUnknown(m) } -var xxx_messageInfo_PaymentCharge proto.InternalMessageInfo +var xxx_messageInfo_SecurePlainData proto.InternalMessageInfo -func (m *PaymentCharge) GetConstructor() TLConstructor { +func (m *SecurePlainData) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PaymentCharge) GetData2() *PaymentCharge_Data { +func (m *SecurePlainData) GetData2() *SecurePlainData_Data { if m != nil { return m.Data2 } return nil } -// paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; -type TLPaymentCharge struct { - Data2 *PaymentCharge_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// securePlainPhone#7d6099dd phone:string = SecurePlainData; +type TLSecurePlainPhone struct { + Data2 *SecurePlainData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPaymentCharge) Reset() { *m = TLPaymentCharge{} } -func (m *TLPaymentCharge) String() string { return proto.CompactTextString(m) } -func (*TLPaymentCharge) ProtoMessage() {} -func (*TLPaymentCharge) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{721} +func (m *TLSecurePlainPhone) Reset() { *m = TLSecurePlainPhone{} } +func (m *TLSecurePlainPhone) String() string { return proto.CompactTextString(m) } +func (*TLSecurePlainPhone) ProtoMessage() {} +func (*TLSecurePlainPhone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{663} } -func (m *TLPaymentCharge) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPaymentCharge.Unmarshal(m, b) +func (m *TLSecurePlainPhone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecurePlainPhone.Unmarshal(m, b) } -func (m *TLPaymentCharge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPaymentCharge.Marshal(b, m, deterministic) +func (m *TLSecurePlainPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecurePlainPhone.Marshal(b, m, deterministic) } -func (dst *TLPaymentCharge) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPaymentCharge.Merge(dst, src) +func (dst *TLSecurePlainPhone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecurePlainPhone.Merge(dst, src) } -func (m *TLPaymentCharge) XXX_Size() int { - return xxx_messageInfo_TLPaymentCharge.Size(m) +func (m *TLSecurePlainPhone) XXX_Size() int { + return xxx_messageInfo_TLSecurePlainPhone.Size(m) } -func (m *TLPaymentCharge) XXX_DiscardUnknown() { - xxx_messageInfo_TLPaymentCharge.DiscardUnknown(m) +func (m *TLSecurePlainPhone) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecurePlainPhone.DiscardUnknown(m) } -var xxx_messageInfo_TLPaymentCharge proto.InternalMessageInfo +var xxx_messageInfo_TLSecurePlainPhone proto.InternalMessageInfo -func (m *TLPaymentCharge) GetData2() *PaymentCharge_Data { +func (m *TLSecurePlainPhone) GetData2() *SecurePlainData_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputPaymentCredentials <-- -// + TL_inputPaymentCredentialsSaved -// + TL_inputPaymentCredentials -// + TL_inputPaymentCredentialsApplePay -// + TL_inputPaymentCredentialsAndroidPay -// -type InputPaymentCredentials_Data struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TmpPassword []byte `protobuf:"bytes,2,opt,name=tmp_password,json=tmpPassword,proto3" json:"tmp_password,omitempty"` - Save bool `protobuf:"varint,3,opt,name=save,proto3" json:"save,omitempty"` - Data *DataJSON `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` - PaymentData *DataJSON `protobuf:"bytes,5,opt,name=payment_data,json=paymentData,proto3" json:"payment_data,omitempty"` - PaymentToken *DataJSON `protobuf:"bytes,6,opt,name=payment_token,json=paymentToken,proto3" json:"payment_token,omitempty"` - GoogleTransactionId string `protobuf:"bytes,7,opt,name=google_transaction_id,json=googleTransactionId,proto3" json:"google_transaction_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// securePlainEmail#21ec5a5f email:string = SecurePlainData; +type TLSecurePlainEmail struct { + Data2 *SecurePlainData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputPaymentCredentials_Data) Reset() { *m = InputPaymentCredentials_Data{} } -func (m *InputPaymentCredentials_Data) String() string { return proto.CompactTextString(m) } -func (*InputPaymentCredentials_Data) ProtoMessage() {} -func (*InputPaymentCredentials_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{722} +func (m *TLSecurePlainEmail) Reset() { *m = TLSecurePlainEmail{} } +func (m *TLSecurePlainEmail) String() string { return proto.CompactTextString(m) } +func (*TLSecurePlainEmail) ProtoMessage() {} +func (*TLSecurePlainEmail) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{664} } -func (m *InputPaymentCredentials_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPaymentCredentials_Data.Unmarshal(m, b) +func (m *TLSecurePlainEmail) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecurePlainEmail.Unmarshal(m, b) } -func (m *InputPaymentCredentials_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPaymentCredentials_Data.Marshal(b, m, deterministic) +func (m *TLSecurePlainEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecurePlainEmail.Marshal(b, m, deterministic) } -func (dst *InputPaymentCredentials_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPaymentCredentials_Data.Merge(dst, src) +func (dst *TLSecurePlainEmail) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecurePlainEmail.Merge(dst, src) } -func (m *InputPaymentCredentials_Data) XXX_Size() int { - return xxx_messageInfo_InputPaymentCredentials_Data.Size(m) +func (m *TLSecurePlainEmail) XXX_Size() int { + return xxx_messageInfo_TLSecurePlainEmail.Size(m) } -func (m *InputPaymentCredentials_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputPaymentCredentials_Data.DiscardUnknown(m) +func (m *TLSecurePlainEmail) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecurePlainEmail.DiscardUnknown(m) } -var xxx_messageInfo_InputPaymentCredentials_Data proto.InternalMessageInfo +var xxx_messageInfo_TLSecurePlainEmail proto.InternalMessageInfo -func (m *InputPaymentCredentials_Data) GetId() string { +func (m *TLSecurePlainEmail) GetData2() *SecurePlainData_Data { if m != nil { - return m.Id + return m.Data2 } - return "" + return nil } -func (m *InputPaymentCredentials_Data) GetTmpPassword() []byte { - if m != nil { - return m.TmpPassword - } - return nil +// ///////////////////////////////////////////////////////////////////////////// +// SecureValueError <-- +// + TL_secureValueErrorData +// + TL_secureValueErrorFrontSide +// + TL_secureValueErrorReverseSide +// + TL_secureValueErrorSelfie +// + TL_secureValueErrorFile +// + TL_secureValueErrorFiles +// + TL_secureValueError +// + TL_secureValueErrorTranslationFile +// + TL_secureValueErrorTranslationFiles +// +type SecureValueError_Data struct { + Type *SecureValueType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + DataHash []byte `protobuf:"bytes,2,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` + Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` + Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` + FileHash_5 []byte `protobuf:"bytes,5,opt,name=file_hash_5,json=fileHash5,proto3" json:"file_hash_5,omitempty"` + FileHash_6 [][]byte `protobuf:"bytes,6,rep,name=file_hash_6,json=fileHash6,proto3" json:"file_hash_6,omitempty"` + Hash []byte `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputPaymentCredentials_Data) GetSave() bool { - if m != nil { - return m.Save - } - return false +func (m *SecureValueError_Data) Reset() { *m = SecureValueError_Data{} } +func (m *SecureValueError_Data) String() string { return proto.CompactTextString(m) } +func (*SecureValueError_Data) ProtoMessage() {} +func (*SecureValueError_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{665} +} +func (m *SecureValueError_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureValueError_Data.Unmarshal(m, b) +} +func (m *SecureValueError_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureValueError_Data.Marshal(b, m, deterministic) +} +func (dst *SecureValueError_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureValueError_Data.Merge(dst, src) +} +func (m *SecureValueError_Data) XXX_Size() int { + return xxx_messageInfo_SecureValueError_Data.Size(m) +} +func (m *SecureValueError_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecureValueError_Data.DiscardUnknown(m) } -func (m *InputPaymentCredentials_Data) GetData() *DataJSON { +var xxx_messageInfo_SecureValueError_Data proto.InternalMessageInfo + +func (m *SecureValueError_Data) GetType() *SecureValueType { if m != nil { - return m.Data + return m.Type } return nil } -func (m *InputPaymentCredentials_Data) GetPaymentData() *DataJSON { +func (m *SecureValueError_Data) GetDataHash() []byte { if m != nil { - return m.PaymentData + return m.DataHash } return nil } -func (m *InputPaymentCredentials_Data) GetPaymentToken() *DataJSON { +func (m *SecureValueError_Data) GetField() string { if m != nil { - return m.PaymentToken + return m.Field } - return nil + return "" } -func (m *InputPaymentCredentials_Data) GetGoogleTransactionId() string { +func (m *SecureValueError_Data) GetText() string { if m != nil { - return m.GoogleTransactionId + return m.Text } return "" } -type InputPaymentCredentials struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *SecureValueError_Data) GetFileHash_5() []byte { + if m != nil { + return m.FileHash_5 + } + return nil } -func (m *InputPaymentCredentials) Reset() { *m = InputPaymentCredentials{} } -func (m *InputPaymentCredentials) String() string { return proto.CompactTextString(m) } -func (*InputPaymentCredentials) ProtoMessage() {} -func (*InputPaymentCredentials) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{723} +func (m *SecureValueError_Data) GetFileHash_6() [][]byte { + if m != nil { + return m.FileHash_6 + } + return nil } -func (m *InputPaymentCredentials) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPaymentCredentials.Unmarshal(m, b) + +func (m *SecureValueError_Data) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil } -func (m *InputPaymentCredentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPaymentCredentials.Marshal(b, m, deterministic) + +type SecureValueError struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (dst *InputPaymentCredentials) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPaymentCredentials.Merge(dst, src) + +func (m *SecureValueError) Reset() { *m = SecureValueError{} } +func (m *SecureValueError) String() string { return proto.CompactTextString(m) } +func (*SecureValueError) ProtoMessage() {} +func (*SecureValueError) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{666} } -func (m *InputPaymentCredentials) XXX_Size() int { - return xxx_messageInfo_InputPaymentCredentials.Size(m) +func (m *SecureValueError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureValueError.Unmarshal(m, b) } -func (m *InputPaymentCredentials) XXX_DiscardUnknown() { - xxx_messageInfo_InputPaymentCredentials.DiscardUnknown(m) +func (m *SecureValueError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureValueError.Marshal(b, m, deterministic) +} +func (dst *SecureValueError) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureValueError.Merge(dst, src) +} +func (m *SecureValueError) XXX_Size() int { + return xxx_messageInfo_SecureValueError.Size(m) +} +func (m *SecureValueError) XXX_DiscardUnknown() { + xxx_messageInfo_SecureValueError.DiscardUnknown(m) } -var xxx_messageInfo_InputPaymentCredentials proto.InternalMessageInfo +var xxx_messageInfo_SecureValueError proto.InternalMessageInfo -func (m *InputPaymentCredentials) GetConstructor() TLConstructor { +func (m *SecureValueError) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputPaymentCredentials) GetData2() *InputPaymentCredentials_Data { +func (m *SecureValueError) GetData2() *SecureValueError_Data { if m != nil { return m.Data2 } return nil } -// inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; -type TLInputPaymentCredentialsSaved struct { - Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError; +type TLSecureValueErrorData struct { + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPaymentCredentialsSaved) Reset() { *m = TLInputPaymentCredentialsSaved{} } -func (m *TLInputPaymentCredentialsSaved) String() string { return proto.CompactTextString(m) } -func (*TLInputPaymentCredentialsSaved) ProtoMessage() {} -func (*TLInputPaymentCredentialsSaved) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{724} +func (m *TLSecureValueErrorData) Reset() { *m = TLSecureValueErrorData{} } +func (m *TLSecureValueErrorData) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueErrorData) ProtoMessage() {} +func (*TLSecureValueErrorData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{667} } -func (m *TLInputPaymentCredentialsSaved) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPaymentCredentialsSaved.Unmarshal(m, b) +func (m *TLSecureValueErrorData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueErrorData.Unmarshal(m, b) } -func (m *TLInputPaymentCredentialsSaved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPaymentCredentialsSaved.Marshal(b, m, deterministic) +func (m *TLSecureValueErrorData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueErrorData.Marshal(b, m, deterministic) } -func (dst *TLInputPaymentCredentialsSaved) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPaymentCredentialsSaved.Merge(dst, src) +func (dst *TLSecureValueErrorData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueErrorData.Merge(dst, src) } -func (m *TLInputPaymentCredentialsSaved) XXX_Size() int { - return xxx_messageInfo_TLInputPaymentCredentialsSaved.Size(m) +func (m *TLSecureValueErrorData) XXX_Size() int { + return xxx_messageInfo_TLSecureValueErrorData.Size(m) } -func (m *TLInputPaymentCredentialsSaved) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPaymentCredentialsSaved.DiscardUnknown(m) +func (m *TLSecureValueErrorData) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueErrorData.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPaymentCredentialsSaved proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueErrorData proto.InternalMessageInfo -func (m *TLInputPaymentCredentialsSaved) GetData2() *InputPaymentCredentials_Data { +func (m *TLSecureValueErrorData) GetData2() *SecureValueError_Data { if m != nil { return m.Data2 } return nil } -// inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; -type TLInputPaymentCredentials struct { - Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError; +type TLSecureValueErrorFrontSide struct { + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPaymentCredentials) Reset() { *m = TLInputPaymentCredentials{} } -func (m *TLInputPaymentCredentials) String() string { return proto.CompactTextString(m) } -func (*TLInputPaymentCredentials) ProtoMessage() {} -func (*TLInputPaymentCredentials) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{725} +func (m *TLSecureValueErrorFrontSide) Reset() { *m = TLSecureValueErrorFrontSide{} } +func (m *TLSecureValueErrorFrontSide) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueErrorFrontSide) ProtoMessage() {} +func (*TLSecureValueErrorFrontSide) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{668} } -func (m *TLInputPaymentCredentials) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPaymentCredentials.Unmarshal(m, b) +func (m *TLSecureValueErrorFrontSide) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueErrorFrontSide.Unmarshal(m, b) } -func (m *TLInputPaymentCredentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPaymentCredentials.Marshal(b, m, deterministic) +func (m *TLSecureValueErrorFrontSide) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueErrorFrontSide.Marshal(b, m, deterministic) } -func (dst *TLInputPaymentCredentials) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPaymentCredentials.Merge(dst, src) +func (dst *TLSecureValueErrorFrontSide) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueErrorFrontSide.Merge(dst, src) } -func (m *TLInputPaymentCredentials) XXX_Size() int { - return xxx_messageInfo_TLInputPaymentCredentials.Size(m) +func (m *TLSecureValueErrorFrontSide) XXX_Size() int { + return xxx_messageInfo_TLSecureValueErrorFrontSide.Size(m) } -func (m *TLInputPaymentCredentials) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPaymentCredentials.DiscardUnknown(m) +func (m *TLSecureValueErrorFrontSide) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueErrorFrontSide.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPaymentCredentials proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueErrorFrontSide proto.InternalMessageInfo -func (m *TLInputPaymentCredentials) GetData2() *InputPaymentCredentials_Data { +func (m *TLSecureValueErrorFrontSide) GetData2() *SecureValueError_Data { if m != nil { return m.Data2 } return nil } -// inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials; -type TLInputPaymentCredentialsApplePay struct { - Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError; +type TLSecureValueErrorReverseSide struct { + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPaymentCredentialsApplePay) Reset() { *m = TLInputPaymentCredentialsApplePay{} } -func (m *TLInputPaymentCredentialsApplePay) String() string { return proto.CompactTextString(m) } -func (*TLInputPaymentCredentialsApplePay) ProtoMessage() {} -func (*TLInputPaymentCredentialsApplePay) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{726} +func (m *TLSecureValueErrorReverseSide) Reset() { *m = TLSecureValueErrorReverseSide{} } +func (m *TLSecureValueErrorReverseSide) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueErrorReverseSide) ProtoMessage() {} +func (*TLSecureValueErrorReverseSide) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{669} } -func (m *TLInputPaymentCredentialsApplePay) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPaymentCredentialsApplePay.Unmarshal(m, b) +func (m *TLSecureValueErrorReverseSide) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueErrorReverseSide.Unmarshal(m, b) } -func (m *TLInputPaymentCredentialsApplePay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPaymentCredentialsApplePay.Marshal(b, m, deterministic) +func (m *TLSecureValueErrorReverseSide) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueErrorReverseSide.Marshal(b, m, deterministic) } -func (dst *TLInputPaymentCredentialsApplePay) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPaymentCredentialsApplePay.Merge(dst, src) +func (dst *TLSecureValueErrorReverseSide) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueErrorReverseSide.Merge(dst, src) } -func (m *TLInputPaymentCredentialsApplePay) XXX_Size() int { - return xxx_messageInfo_TLInputPaymentCredentialsApplePay.Size(m) +func (m *TLSecureValueErrorReverseSide) XXX_Size() int { + return xxx_messageInfo_TLSecureValueErrorReverseSide.Size(m) } -func (m *TLInputPaymentCredentialsApplePay) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPaymentCredentialsApplePay.DiscardUnknown(m) +func (m *TLSecureValueErrorReverseSide) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueErrorReverseSide.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPaymentCredentialsApplePay proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueErrorReverseSide proto.InternalMessageInfo -func (m *TLInputPaymentCredentialsApplePay) GetData2() *InputPaymentCredentials_Data { +func (m *TLSecureValueErrorReverseSide) GetData2() *SecureValueError_Data { if m != nil { return m.Data2 } return nil } -// inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials; -type TLInputPaymentCredentialsAndroidPay struct { - Data2 *InputPaymentCredentials_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError; +type TLSecureValueErrorSelfie struct { + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPaymentCredentialsAndroidPay) Reset() { *m = TLInputPaymentCredentialsAndroidPay{} } -func (m *TLInputPaymentCredentialsAndroidPay) String() string { return proto.CompactTextString(m) } -func (*TLInputPaymentCredentialsAndroidPay) ProtoMessage() {} -func (*TLInputPaymentCredentialsAndroidPay) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{727} +func (m *TLSecureValueErrorSelfie) Reset() { *m = TLSecureValueErrorSelfie{} } +func (m *TLSecureValueErrorSelfie) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueErrorSelfie) ProtoMessage() {} +func (*TLSecureValueErrorSelfie) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{670} } -func (m *TLInputPaymentCredentialsAndroidPay) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.Unmarshal(m, b) +func (m *TLSecureValueErrorSelfie) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueErrorSelfie.Unmarshal(m, b) } -func (m *TLInputPaymentCredentialsAndroidPay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.Marshal(b, m, deterministic) +func (m *TLSecureValueErrorSelfie) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueErrorSelfie.Marshal(b, m, deterministic) } -func (dst *TLInputPaymentCredentialsAndroidPay) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.Merge(dst, src) +func (dst *TLSecureValueErrorSelfie) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueErrorSelfie.Merge(dst, src) } -func (m *TLInputPaymentCredentialsAndroidPay) XXX_Size() int { - return xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.Size(m) +func (m *TLSecureValueErrorSelfie) XXX_Size() int { + return xxx_messageInfo_TLSecureValueErrorSelfie.Size(m) } -func (m *TLInputPaymentCredentialsAndroidPay) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPaymentCredentialsAndroidPay.DiscardUnknown(m) +func (m *TLSecureValueErrorSelfie) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueErrorSelfie.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPaymentCredentialsAndroidPay proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueErrorSelfie proto.InternalMessageInfo -func (m *TLInputPaymentCredentialsAndroidPay) GetData2() *InputPaymentCredentials_Data { +func (m *TLSecureValueErrorSelfie) GetData2() *SecureValueError_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputNotifyPeer <-- -// + TL_inputNotifyPeer -// + TL_inputNotifyUsers -// + TL_inputNotifyChats -// -type InputNotifyPeer_Data struct { - Peer *InputPeer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError; +type TLSecureValueErrorFile struct { + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputNotifyPeer_Data) Reset() { *m = InputNotifyPeer_Data{} } -func (m *InputNotifyPeer_Data) String() string { return proto.CompactTextString(m) } -func (*InputNotifyPeer_Data) ProtoMessage() {} -func (*InputNotifyPeer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{728} +func (m *TLSecureValueErrorFile) Reset() { *m = TLSecureValueErrorFile{} } +func (m *TLSecureValueErrorFile) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueErrorFile) ProtoMessage() {} +func (*TLSecureValueErrorFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{671} } -func (m *InputNotifyPeer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputNotifyPeer_Data.Unmarshal(m, b) +func (m *TLSecureValueErrorFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueErrorFile.Unmarshal(m, b) } -func (m *InputNotifyPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputNotifyPeer_Data.Marshal(b, m, deterministic) +func (m *TLSecureValueErrorFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueErrorFile.Marshal(b, m, deterministic) } -func (dst *InputNotifyPeer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputNotifyPeer_Data.Merge(dst, src) +func (dst *TLSecureValueErrorFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueErrorFile.Merge(dst, src) } -func (m *InputNotifyPeer_Data) XXX_Size() int { - return xxx_messageInfo_InputNotifyPeer_Data.Size(m) +func (m *TLSecureValueErrorFile) XXX_Size() int { + return xxx_messageInfo_TLSecureValueErrorFile.Size(m) } -func (m *InputNotifyPeer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputNotifyPeer_Data.DiscardUnknown(m) +func (m *TLSecureValueErrorFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueErrorFile.DiscardUnknown(m) } -var xxx_messageInfo_InputNotifyPeer_Data proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueErrorFile proto.InternalMessageInfo -func (m *InputNotifyPeer_Data) GetPeer() *InputPeer { +func (m *TLSecureValueErrorFile) GetData2() *SecureValueError_Data { if m != nil { - return m.Peer + return m.Data2 } return nil } -type InputNotifyPeer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputNotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError; +type TLSecureValueErrorFiles struct { + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputNotifyPeer) Reset() { *m = InputNotifyPeer{} } -func (m *InputNotifyPeer) String() string { return proto.CompactTextString(m) } -func (*InputNotifyPeer) ProtoMessage() {} -func (*InputNotifyPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{729} +func (m *TLSecureValueErrorFiles) Reset() { *m = TLSecureValueErrorFiles{} } +func (m *TLSecureValueErrorFiles) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueErrorFiles) ProtoMessage() {} +func (*TLSecureValueErrorFiles) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{672} } -func (m *InputNotifyPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputNotifyPeer.Unmarshal(m, b) +func (m *TLSecureValueErrorFiles) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueErrorFiles.Unmarshal(m, b) } -func (m *InputNotifyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputNotifyPeer.Marshal(b, m, deterministic) +func (m *TLSecureValueErrorFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueErrorFiles.Marshal(b, m, deterministic) } -func (dst *InputNotifyPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputNotifyPeer.Merge(dst, src) +func (dst *TLSecureValueErrorFiles) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueErrorFiles.Merge(dst, src) } -func (m *InputNotifyPeer) XXX_Size() int { - return xxx_messageInfo_InputNotifyPeer.Size(m) +func (m *TLSecureValueErrorFiles) XXX_Size() int { + return xxx_messageInfo_TLSecureValueErrorFiles.Size(m) } -func (m *InputNotifyPeer) XXX_DiscardUnknown() { - xxx_messageInfo_InputNotifyPeer.DiscardUnknown(m) +func (m *TLSecureValueErrorFiles) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueErrorFiles.DiscardUnknown(m) } -var xxx_messageInfo_InputNotifyPeer proto.InternalMessageInfo - -func (m *InputNotifyPeer) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLSecureValueErrorFiles proto.InternalMessageInfo -func (m *InputNotifyPeer) GetData2() *InputNotifyPeer_Data { +func (m *TLSecureValueErrorFiles) GetData2() *SecureValueError_Data { if m != nil { return m.Data2 } return nil } -// inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer; -type TLInputNotifyPeer struct { - Data2 *InputNotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError; +type TLSecureValueError struct { + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputNotifyPeer) Reset() { *m = TLInputNotifyPeer{} } -func (m *TLInputNotifyPeer) String() string { return proto.CompactTextString(m) } -func (*TLInputNotifyPeer) ProtoMessage() {} -func (*TLInputNotifyPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{730} +func (m *TLSecureValueError) Reset() { *m = TLSecureValueError{} } +func (m *TLSecureValueError) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueError) ProtoMessage() {} +func (*TLSecureValueError) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{673} } -func (m *TLInputNotifyPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputNotifyPeer.Unmarshal(m, b) +func (m *TLSecureValueError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueError.Unmarshal(m, b) } -func (m *TLInputNotifyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputNotifyPeer.Marshal(b, m, deterministic) +func (m *TLSecureValueError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueError.Marshal(b, m, deterministic) } -func (dst *TLInputNotifyPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputNotifyPeer.Merge(dst, src) +func (dst *TLSecureValueError) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueError.Merge(dst, src) } -func (m *TLInputNotifyPeer) XXX_Size() int { - return xxx_messageInfo_TLInputNotifyPeer.Size(m) +func (m *TLSecureValueError) XXX_Size() int { + return xxx_messageInfo_TLSecureValueError.Size(m) } -func (m *TLInputNotifyPeer) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputNotifyPeer.DiscardUnknown(m) +func (m *TLSecureValueError) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueError.DiscardUnknown(m) } -var xxx_messageInfo_TLInputNotifyPeer proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueError proto.InternalMessageInfo -func (m *TLInputNotifyPeer) GetData2() *InputNotifyPeer_Data { +func (m *TLSecureValueError) GetData2() *SecureValueError_Data { if m != nil { return m.Data2 } return nil } -// inputNotifyUsers#193b4417 = InputNotifyPeer; -type TLInputNotifyUsers struct { - Data2 *InputNotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError; +type TLSecureValueErrorTranslationFile struct { + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputNotifyUsers) Reset() { *m = TLInputNotifyUsers{} } -func (m *TLInputNotifyUsers) String() string { return proto.CompactTextString(m) } -func (*TLInputNotifyUsers) ProtoMessage() {} -func (*TLInputNotifyUsers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{731} +func (m *TLSecureValueErrorTranslationFile) Reset() { *m = TLSecureValueErrorTranslationFile{} } +func (m *TLSecureValueErrorTranslationFile) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueErrorTranslationFile) ProtoMessage() {} +func (*TLSecureValueErrorTranslationFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{674} } -func (m *TLInputNotifyUsers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputNotifyUsers.Unmarshal(m, b) +func (m *TLSecureValueErrorTranslationFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueErrorTranslationFile.Unmarshal(m, b) } -func (m *TLInputNotifyUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputNotifyUsers.Marshal(b, m, deterministic) +func (m *TLSecureValueErrorTranslationFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueErrorTranslationFile.Marshal(b, m, deterministic) } -func (dst *TLInputNotifyUsers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputNotifyUsers.Merge(dst, src) +func (dst *TLSecureValueErrorTranslationFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueErrorTranslationFile.Merge(dst, src) } -func (m *TLInputNotifyUsers) XXX_Size() int { - return xxx_messageInfo_TLInputNotifyUsers.Size(m) +func (m *TLSecureValueErrorTranslationFile) XXX_Size() int { + return xxx_messageInfo_TLSecureValueErrorTranslationFile.Size(m) } -func (m *TLInputNotifyUsers) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputNotifyUsers.DiscardUnknown(m) +func (m *TLSecureValueErrorTranslationFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueErrorTranslationFile.DiscardUnknown(m) } -var xxx_messageInfo_TLInputNotifyUsers proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueErrorTranslationFile proto.InternalMessageInfo -func (m *TLInputNotifyUsers) GetData2() *InputNotifyPeer_Data { +func (m *TLSecureValueErrorTranslationFile) GetData2() *SecureValueError_Data { if m != nil { return m.Data2 } return nil } -// inputNotifyChats#4a95e84e = InputNotifyPeer; -type TLInputNotifyChats struct { - Data2 *InputNotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError; +type TLSecureValueErrorTranslationFiles struct { + Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputNotifyChats) Reset() { *m = TLInputNotifyChats{} } -func (m *TLInputNotifyChats) String() string { return proto.CompactTextString(m) } -func (*TLInputNotifyChats) ProtoMessage() {} -func (*TLInputNotifyChats) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{732} +func (m *TLSecureValueErrorTranslationFiles) Reset() { *m = TLSecureValueErrorTranslationFiles{} } +func (m *TLSecureValueErrorTranslationFiles) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueErrorTranslationFiles) ProtoMessage() {} +func (*TLSecureValueErrorTranslationFiles) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{675} } -func (m *TLInputNotifyChats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputNotifyChats.Unmarshal(m, b) +func (m *TLSecureValueErrorTranslationFiles) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueErrorTranslationFiles.Unmarshal(m, b) } -func (m *TLInputNotifyChats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputNotifyChats.Marshal(b, m, deterministic) +func (m *TLSecureValueErrorTranslationFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueErrorTranslationFiles.Marshal(b, m, deterministic) } -func (dst *TLInputNotifyChats) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputNotifyChats.Merge(dst, src) +func (dst *TLSecureValueErrorTranslationFiles) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueErrorTranslationFiles.Merge(dst, src) } -func (m *TLInputNotifyChats) XXX_Size() int { - return xxx_messageInfo_TLInputNotifyChats.Size(m) +func (m *TLSecureValueErrorTranslationFiles) XXX_Size() int { + return xxx_messageInfo_TLSecureValueErrorTranslationFiles.Size(m) } -func (m *TLInputNotifyChats) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputNotifyChats.DiscardUnknown(m) +func (m *TLSecureValueErrorTranslationFiles) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueErrorTranslationFiles.DiscardUnknown(m) } -var xxx_messageInfo_TLInputNotifyChats proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueErrorTranslationFiles proto.InternalMessageInfo -func (m *TLInputNotifyChats) GetData2() *InputNotifyPeer_Data { +func (m *TLSecureValueErrorTranslationFiles) GetData2() *SecureValueError_Data { if m != nil { return m.Data2 } @@ -35140,278 +33751,326 @@ func (m *TLInputNotifyChats) GetData2() *InputNotifyPeer_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputEncryptedFile <-- -// + TL_inputEncryptedFileEmpty -// + TL_inputEncryptedFileUploaded -// + TL_inputEncryptedFile -// + TL_inputEncryptedFileBigUploaded +// InputPrivacyRule <-- +// + TL_inputPrivacyValueAllowContacts +// + TL_inputPrivacyValueAllowAll +// + TL_inputPrivacyValueAllowUsers +// + TL_inputPrivacyValueDisallowContacts +// + TL_inputPrivacyValueDisallowAll +// + TL_inputPrivacyValueDisallowUsers // -type InputEncryptedFile_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Parts int32 `protobuf:"varint,2,opt,name=parts,proto3" json:"parts,omitempty"` - Md5Checksum string `protobuf:"bytes,3,opt,name=md5_checksum,json=md5Checksum,proto3" json:"md5_checksum,omitempty"` - KeyFingerprint int32 `protobuf:"varint,4,opt,name=key_fingerprint,json=keyFingerprint,proto3" json:"key_fingerprint,omitempty"` - AccessHash int64 `protobuf:"varint,5,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type InputPrivacyRule_Data struct { + Users []*InputUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} -func (m *InputEncryptedFile_Data) Reset() { *m = InputEncryptedFile_Data{} } -func (m *InputEncryptedFile_Data) String() string { return proto.CompactTextString(m) } -func (*InputEncryptedFile_Data) ProtoMessage() {} -func (*InputEncryptedFile_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{733} +func (m *InputPrivacyRule_Data) Reset() { *m = InputPrivacyRule_Data{} } +func (m *InputPrivacyRule_Data) String() string { return proto.CompactTextString(m) } +func (*InputPrivacyRule_Data) ProtoMessage() {} +func (*InputPrivacyRule_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{676} } -func (m *InputEncryptedFile_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputEncryptedFile_Data.Unmarshal(m, b) +func (m *InputPrivacyRule_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPrivacyRule_Data.Unmarshal(m, b) } -func (m *InputEncryptedFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputEncryptedFile_Data.Marshal(b, m, deterministic) +func (m *InputPrivacyRule_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPrivacyRule_Data.Marshal(b, m, deterministic) } -func (dst *InputEncryptedFile_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputEncryptedFile_Data.Merge(dst, src) +func (dst *InputPrivacyRule_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPrivacyRule_Data.Merge(dst, src) } -func (m *InputEncryptedFile_Data) XXX_Size() int { - return xxx_messageInfo_InputEncryptedFile_Data.Size(m) +func (m *InputPrivacyRule_Data) XXX_Size() int { + return xxx_messageInfo_InputPrivacyRule_Data.Size(m) } -func (m *InputEncryptedFile_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputEncryptedFile_Data.DiscardUnknown(m) +func (m *InputPrivacyRule_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputPrivacyRule_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputEncryptedFile_Data proto.InternalMessageInfo +var xxx_messageInfo_InputPrivacyRule_Data proto.InternalMessageInfo -func (m *InputEncryptedFile_Data) GetId() int64 { +func (m *InputPrivacyRule_Data) GetUsers() []*InputUser { if m != nil { - return m.Id + return m.Users } - return 0 + return nil } -func (m *InputEncryptedFile_Data) GetParts() int32 { - if m != nil { - return m.Parts - } - return 0 +type InputPrivacyRule struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputEncryptedFile_Data) GetMd5Checksum() string { - if m != nil { - return m.Md5Checksum - } - return "" +func (m *InputPrivacyRule) Reset() { *m = InputPrivacyRule{} } +func (m *InputPrivacyRule) String() string { return proto.CompactTextString(m) } +func (*InputPrivacyRule) ProtoMessage() {} +func (*InputPrivacyRule) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{677} +} +func (m *InputPrivacyRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPrivacyRule.Unmarshal(m, b) +} +func (m *InputPrivacyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPrivacyRule.Marshal(b, m, deterministic) +} +func (dst *InputPrivacyRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPrivacyRule.Merge(dst, src) +} +func (m *InputPrivacyRule) XXX_Size() int { + return xxx_messageInfo_InputPrivacyRule.Size(m) +} +func (m *InputPrivacyRule) XXX_DiscardUnknown() { + xxx_messageInfo_InputPrivacyRule.DiscardUnknown(m) } -func (m *InputEncryptedFile_Data) GetKeyFingerprint() int32 { +var xxx_messageInfo_InputPrivacyRule proto.InternalMessageInfo + +func (m *InputPrivacyRule) GetConstructor() TLConstructor { if m != nil { - return m.KeyFingerprint + return m.Constructor } - return 0 + return TLConstructor_CRC32_UNKNOWN } -func (m *InputEncryptedFile_Data) GetAccessHash() int64 { +func (m *InputPrivacyRule) GetData2() *InputPrivacyRule_Data { if m != nil { - return m.AccessHash + return m.Data2 } - return 0 + return nil } -type InputEncryptedFile struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; +type TLInputPrivacyValueAllowContacts struct { + Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputEncryptedFile) Reset() { *m = InputEncryptedFile{} } -func (m *InputEncryptedFile) String() string { return proto.CompactTextString(m) } -func (*InputEncryptedFile) ProtoMessage() {} -func (*InputEncryptedFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{734} +func (m *TLInputPrivacyValueAllowContacts) Reset() { *m = TLInputPrivacyValueAllowContacts{} } +func (m *TLInputPrivacyValueAllowContacts) String() string { return proto.CompactTextString(m) } +func (*TLInputPrivacyValueAllowContacts) ProtoMessage() {} +func (*TLInputPrivacyValueAllowContacts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{678} } -func (m *InputEncryptedFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputEncryptedFile.Unmarshal(m, b) +func (m *TLInputPrivacyValueAllowContacts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPrivacyValueAllowContacts.Unmarshal(m, b) } -func (m *InputEncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputEncryptedFile.Marshal(b, m, deterministic) +func (m *TLInputPrivacyValueAllowContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPrivacyValueAllowContacts.Marshal(b, m, deterministic) } -func (dst *InputEncryptedFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputEncryptedFile.Merge(dst, src) +func (dst *TLInputPrivacyValueAllowContacts) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPrivacyValueAllowContacts.Merge(dst, src) } -func (m *InputEncryptedFile) XXX_Size() int { - return xxx_messageInfo_InputEncryptedFile.Size(m) +func (m *TLInputPrivacyValueAllowContacts) XXX_Size() int { + return xxx_messageInfo_TLInputPrivacyValueAllowContacts.Size(m) } -func (m *InputEncryptedFile) XXX_DiscardUnknown() { - xxx_messageInfo_InputEncryptedFile.DiscardUnknown(m) +func (m *TLInputPrivacyValueAllowContacts) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPrivacyValueAllowContacts.DiscardUnknown(m) } -var xxx_messageInfo_InputEncryptedFile proto.InternalMessageInfo +var xxx_messageInfo_TLInputPrivacyValueAllowContacts proto.InternalMessageInfo -func (m *InputEncryptedFile) GetConstructor() TLConstructor { +func (m *TLInputPrivacyValueAllowContacts) GetData2() *InputPrivacyRule_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *InputEncryptedFile) GetData2() *InputEncryptedFile_Data { +// inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; +type TLInputPrivacyValueAllowAll struct { + Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputPrivacyValueAllowAll) Reset() { *m = TLInputPrivacyValueAllowAll{} } +func (m *TLInputPrivacyValueAllowAll) String() string { return proto.CompactTextString(m) } +func (*TLInputPrivacyValueAllowAll) ProtoMessage() {} +func (*TLInputPrivacyValueAllowAll) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{679} +} +func (m *TLInputPrivacyValueAllowAll) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPrivacyValueAllowAll.Unmarshal(m, b) +} +func (m *TLInputPrivacyValueAllowAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPrivacyValueAllowAll.Marshal(b, m, deterministic) +} +func (dst *TLInputPrivacyValueAllowAll) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPrivacyValueAllowAll.Merge(dst, src) +} +func (m *TLInputPrivacyValueAllowAll) XXX_Size() int { + return xxx_messageInfo_TLInputPrivacyValueAllowAll.Size(m) +} +func (m *TLInputPrivacyValueAllowAll) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPrivacyValueAllowAll.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputPrivacyValueAllowAll proto.InternalMessageInfo + +func (m *TLInputPrivacyValueAllowAll) GetData2() *InputPrivacyRule_Data { if m != nil { return m.Data2 } return nil } -// inputEncryptedFileEmpty#1837c364 = InputEncryptedFile; -type TLInputEncryptedFileEmpty struct { - Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; +type TLInputPrivacyValueAllowUsers struct { + Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputEncryptedFileEmpty) Reset() { *m = TLInputEncryptedFileEmpty{} } -func (m *TLInputEncryptedFileEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputEncryptedFileEmpty) ProtoMessage() {} -func (*TLInputEncryptedFileEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{735} +func (m *TLInputPrivacyValueAllowUsers) Reset() { *m = TLInputPrivacyValueAllowUsers{} } +func (m *TLInputPrivacyValueAllowUsers) String() string { return proto.CompactTextString(m) } +func (*TLInputPrivacyValueAllowUsers) ProtoMessage() {} +func (*TLInputPrivacyValueAllowUsers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{680} } -func (m *TLInputEncryptedFileEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputEncryptedFileEmpty.Unmarshal(m, b) +func (m *TLInputPrivacyValueAllowUsers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPrivacyValueAllowUsers.Unmarshal(m, b) } -func (m *TLInputEncryptedFileEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputEncryptedFileEmpty.Marshal(b, m, deterministic) +func (m *TLInputPrivacyValueAllowUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPrivacyValueAllowUsers.Marshal(b, m, deterministic) } -func (dst *TLInputEncryptedFileEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputEncryptedFileEmpty.Merge(dst, src) +func (dst *TLInputPrivacyValueAllowUsers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPrivacyValueAllowUsers.Merge(dst, src) } -func (m *TLInputEncryptedFileEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputEncryptedFileEmpty.Size(m) +func (m *TLInputPrivacyValueAllowUsers) XXX_Size() int { + return xxx_messageInfo_TLInputPrivacyValueAllowUsers.Size(m) } -func (m *TLInputEncryptedFileEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputEncryptedFileEmpty.DiscardUnknown(m) +func (m *TLInputPrivacyValueAllowUsers) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPrivacyValueAllowUsers.DiscardUnknown(m) } -var xxx_messageInfo_TLInputEncryptedFileEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLInputPrivacyValueAllowUsers proto.InternalMessageInfo -func (m *TLInputEncryptedFileEmpty) GetData2() *InputEncryptedFile_Data { +func (m *TLInputPrivacyValueAllowUsers) GetData2() *InputPrivacyRule_Data { if m != nil { return m.Data2 } return nil } -// inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile; -type TLInputEncryptedFileUploaded struct { - Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule; +type TLInputPrivacyValueDisallowContacts struct { + Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputEncryptedFileUploaded) Reset() { *m = TLInputEncryptedFileUploaded{} } -func (m *TLInputEncryptedFileUploaded) String() string { return proto.CompactTextString(m) } -func (*TLInputEncryptedFileUploaded) ProtoMessage() {} -func (*TLInputEncryptedFileUploaded) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{736} +func (m *TLInputPrivacyValueDisallowContacts) Reset() { *m = TLInputPrivacyValueDisallowContacts{} } +func (m *TLInputPrivacyValueDisallowContacts) String() string { return proto.CompactTextString(m) } +func (*TLInputPrivacyValueDisallowContacts) ProtoMessage() {} +func (*TLInputPrivacyValueDisallowContacts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{681} } -func (m *TLInputEncryptedFileUploaded) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputEncryptedFileUploaded.Unmarshal(m, b) +func (m *TLInputPrivacyValueDisallowContacts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPrivacyValueDisallowContacts.Unmarshal(m, b) } -func (m *TLInputEncryptedFileUploaded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputEncryptedFileUploaded.Marshal(b, m, deterministic) +func (m *TLInputPrivacyValueDisallowContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPrivacyValueDisallowContacts.Marshal(b, m, deterministic) } -func (dst *TLInputEncryptedFileUploaded) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputEncryptedFileUploaded.Merge(dst, src) +func (dst *TLInputPrivacyValueDisallowContacts) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPrivacyValueDisallowContacts.Merge(dst, src) } -func (m *TLInputEncryptedFileUploaded) XXX_Size() int { - return xxx_messageInfo_TLInputEncryptedFileUploaded.Size(m) +func (m *TLInputPrivacyValueDisallowContacts) XXX_Size() int { + return xxx_messageInfo_TLInputPrivacyValueDisallowContacts.Size(m) } -func (m *TLInputEncryptedFileUploaded) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputEncryptedFileUploaded.DiscardUnknown(m) +func (m *TLInputPrivacyValueDisallowContacts) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPrivacyValueDisallowContacts.DiscardUnknown(m) } -var xxx_messageInfo_TLInputEncryptedFileUploaded proto.InternalMessageInfo +var xxx_messageInfo_TLInputPrivacyValueDisallowContacts proto.InternalMessageInfo -func (m *TLInputEncryptedFileUploaded) GetData2() *InputEncryptedFile_Data { +func (m *TLInputPrivacyValueDisallowContacts) GetData2() *InputPrivacyRule_Data { if m != nil { return m.Data2 } return nil } -// inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile; -type TLInputEncryptedFile struct { - Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule; +type TLInputPrivacyValueDisallowAll struct { + Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputEncryptedFile) Reset() { *m = TLInputEncryptedFile{} } -func (m *TLInputEncryptedFile) String() string { return proto.CompactTextString(m) } -func (*TLInputEncryptedFile) ProtoMessage() {} -func (*TLInputEncryptedFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{737} +func (m *TLInputPrivacyValueDisallowAll) Reset() { *m = TLInputPrivacyValueDisallowAll{} } +func (m *TLInputPrivacyValueDisallowAll) String() string { return proto.CompactTextString(m) } +func (*TLInputPrivacyValueDisallowAll) ProtoMessage() {} +func (*TLInputPrivacyValueDisallowAll) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{682} } -func (m *TLInputEncryptedFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputEncryptedFile.Unmarshal(m, b) +func (m *TLInputPrivacyValueDisallowAll) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPrivacyValueDisallowAll.Unmarshal(m, b) } -func (m *TLInputEncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputEncryptedFile.Marshal(b, m, deterministic) +func (m *TLInputPrivacyValueDisallowAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPrivacyValueDisallowAll.Marshal(b, m, deterministic) } -func (dst *TLInputEncryptedFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputEncryptedFile.Merge(dst, src) +func (dst *TLInputPrivacyValueDisallowAll) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPrivacyValueDisallowAll.Merge(dst, src) } -func (m *TLInputEncryptedFile) XXX_Size() int { - return xxx_messageInfo_TLInputEncryptedFile.Size(m) +func (m *TLInputPrivacyValueDisallowAll) XXX_Size() int { + return xxx_messageInfo_TLInputPrivacyValueDisallowAll.Size(m) } -func (m *TLInputEncryptedFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputEncryptedFile.DiscardUnknown(m) +func (m *TLInputPrivacyValueDisallowAll) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPrivacyValueDisallowAll.DiscardUnknown(m) } -var xxx_messageInfo_TLInputEncryptedFile proto.InternalMessageInfo +var xxx_messageInfo_TLInputPrivacyValueDisallowAll proto.InternalMessageInfo -func (m *TLInputEncryptedFile) GetData2() *InputEncryptedFile_Data { +func (m *TLInputPrivacyValueDisallowAll) GetData2() *InputPrivacyRule_Data { if m != nil { return m.Data2 } return nil } -// inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile; -type TLInputEncryptedFileBigUploaded struct { - Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule; +type TLInputPrivacyValueDisallowUsers struct { + Data2 *InputPrivacyRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputEncryptedFileBigUploaded) Reset() { *m = TLInputEncryptedFileBigUploaded{} } -func (m *TLInputEncryptedFileBigUploaded) String() string { return proto.CompactTextString(m) } -func (*TLInputEncryptedFileBigUploaded) ProtoMessage() {} -func (*TLInputEncryptedFileBigUploaded) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{738} +func (m *TLInputPrivacyValueDisallowUsers) Reset() { *m = TLInputPrivacyValueDisallowUsers{} } +func (m *TLInputPrivacyValueDisallowUsers) String() string { return proto.CompactTextString(m) } +func (*TLInputPrivacyValueDisallowUsers) ProtoMessage() {} +func (*TLInputPrivacyValueDisallowUsers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{683} } -func (m *TLInputEncryptedFileBigUploaded) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputEncryptedFileBigUploaded.Unmarshal(m, b) +func (m *TLInputPrivacyValueDisallowUsers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPrivacyValueDisallowUsers.Unmarshal(m, b) } -func (m *TLInputEncryptedFileBigUploaded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputEncryptedFileBigUploaded.Marshal(b, m, deterministic) +func (m *TLInputPrivacyValueDisallowUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPrivacyValueDisallowUsers.Marshal(b, m, deterministic) } -func (dst *TLInputEncryptedFileBigUploaded) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputEncryptedFileBigUploaded.Merge(dst, src) +func (dst *TLInputPrivacyValueDisallowUsers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPrivacyValueDisallowUsers.Merge(dst, src) } -func (m *TLInputEncryptedFileBigUploaded) XXX_Size() int { - return xxx_messageInfo_TLInputEncryptedFileBigUploaded.Size(m) +func (m *TLInputPrivacyValueDisallowUsers) XXX_Size() int { + return xxx_messageInfo_TLInputPrivacyValueDisallowUsers.Size(m) } -func (m *TLInputEncryptedFileBigUploaded) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputEncryptedFileBigUploaded.DiscardUnknown(m) +func (m *TLInputPrivacyValueDisallowUsers) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPrivacyValueDisallowUsers.DiscardUnknown(m) } -var xxx_messageInfo_TLInputEncryptedFileBigUploaded proto.InternalMessageInfo +var xxx_messageInfo_TLInputPrivacyValueDisallowUsers proto.InternalMessageInfo -func (m *TLInputEncryptedFileBigUploaded) GetData2() *InputEncryptedFile_Data { +func (m *TLInputPrivacyValueDisallowUsers) GetData2() *InputPrivacyRule_Data { if m != nil { return m.Data2 } @@ -35419,222 +34078,222 @@ func (m *TLInputEncryptedFileBigUploaded) GetData2() *InputEncryptedFile_Data { } // ///////////////////////////////////////////////////////////////////////////// -// contacts_TopPeers <-- -// + TL_contacts_topPeersNotModified -// + TL_contacts_topPeers -// + TL_contacts_topPeersDisabled +// FoundGif <-- +// + TL_foundGif +// + TL_foundGifCached // -type Contacts_TopPeers_Data struct { - Categories []*TopPeerCategoryPeers `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` - Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type FoundGif_Data struct { + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + ThumbUrl string `protobuf:"bytes,2,opt,name=thumb_url,json=thumbUrl,proto3" json:"thumb_url,omitempty"` + ContentUrl string `protobuf:"bytes,3,opt,name=content_url,json=contentUrl,proto3" json:"content_url,omitempty"` + ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` + W int32 `protobuf:"varint,5,opt,name=w,proto3" json:"w,omitempty"` + H int32 `protobuf:"varint,6,opt,name=h,proto3" json:"h,omitempty"` + Photo *Photo `protobuf:"bytes,7,opt,name=photo,proto3" json:"photo,omitempty"` + Document *Document `protobuf:"bytes,8,opt,name=document,proto3" json:"document,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_TopPeers_Data) Reset() { *m = Contacts_TopPeers_Data{} } -func (m *Contacts_TopPeers_Data) String() string { return proto.CompactTextString(m) } -func (*Contacts_TopPeers_Data) ProtoMessage() {} -func (*Contacts_TopPeers_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{739} +func (m *FoundGif_Data) Reset() { *m = FoundGif_Data{} } +func (m *FoundGif_Data) String() string { return proto.CompactTextString(m) } +func (*FoundGif_Data) ProtoMessage() {} +func (*FoundGif_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{684} } -func (m *Contacts_TopPeers_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_TopPeers_Data.Unmarshal(m, b) +func (m *FoundGif_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FoundGif_Data.Unmarshal(m, b) } -func (m *Contacts_TopPeers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_TopPeers_Data.Marshal(b, m, deterministic) +func (m *FoundGif_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FoundGif_Data.Marshal(b, m, deterministic) } -func (dst *Contacts_TopPeers_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_TopPeers_Data.Merge(dst, src) +func (dst *FoundGif_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_FoundGif_Data.Merge(dst, src) } -func (m *Contacts_TopPeers_Data) XXX_Size() int { - return xxx_messageInfo_Contacts_TopPeers_Data.Size(m) +func (m *FoundGif_Data) XXX_Size() int { + return xxx_messageInfo_FoundGif_Data.Size(m) } -func (m *Contacts_TopPeers_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_TopPeers_Data.DiscardUnknown(m) +func (m *FoundGif_Data) XXX_DiscardUnknown() { + xxx_messageInfo_FoundGif_Data.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_TopPeers_Data proto.InternalMessageInfo +var xxx_messageInfo_FoundGif_Data proto.InternalMessageInfo -func (m *Contacts_TopPeers_Data) GetCategories() []*TopPeerCategoryPeers { +func (m *FoundGif_Data) GetUrl() string { if m != nil { - return m.Categories + return m.Url } - return nil + return "" } -func (m *Contacts_TopPeers_Data) GetChats() []*Chat { +func (m *FoundGif_Data) GetThumbUrl() string { if m != nil { - return m.Chats + return m.ThumbUrl + } + return "" +} + +func (m *FoundGif_Data) GetContentUrl() string { + if m != nil { + return m.ContentUrl + } + return "" +} + +func (m *FoundGif_Data) GetContentType() string { + if m != nil { + return m.ContentType + } + return "" +} + +func (m *FoundGif_Data) GetW() int32 { + if m != nil { + return m.W + } + return 0 +} + +func (m *FoundGif_Data) GetH() int32 { + if m != nil { + return m.H + } + return 0 +} + +func (m *FoundGif_Data) GetPhoto() *Photo { + if m != nil { + return m.Photo } return nil } -func (m *Contacts_TopPeers_Data) GetUsers() []*User { +func (m *FoundGif_Data) GetDocument() *Document { if m != nil { - return m.Users + return m.Document } return nil } -type Contacts_TopPeers struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Contacts_TopPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type FoundGif struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *FoundGif_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_TopPeers) Reset() { *m = Contacts_TopPeers{} } -func (m *Contacts_TopPeers) String() string { return proto.CompactTextString(m) } -func (*Contacts_TopPeers) ProtoMessage() {} -func (*Contacts_TopPeers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{740} +func (m *FoundGif) Reset() { *m = FoundGif{} } +func (m *FoundGif) String() string { return proto.CompactTextString(m) } +func (*FoundGif) ProtoMessage() {} +func (*FoundGif) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{685} } -func (m *Contacts_TopPeers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_TopPeers.Unmarshal(m, b) +func (m *FoundGif) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FoundGif.Unmarshal(m, b) } -func (m *Contacts_TopPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_TopPeers.Marshal(b, m, deterministic) +func (m *FoundGif) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FoundGif.Marshal(b, m, deterministic) } -func (dst *Contacts_TopPeers) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_TopPeers.Merge(dst, src) +func (dst *FoundGif) XXX_Merge(src proto.Message) { + xxx_messageInfo_FoundGif.Merge(dst, src) } -func (m *Contacts_TopPeers) XXX_Size() int { - return xxx_messageInfo_Contacts_TopPeers.Size(m) +func (m *FoundGif) XXX_Size() int { + return xxx_messageInfo_FoundGif.Size(m) } -func (m *Contacts_TopPeers) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_TopPeers.DiscardUnknown(m) +func (m *FoundGif) XXX_DiscardUnknown() { + xxx_messageInfo_FoundGif.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_TopPeers proto.InternalMessageInfo +var xxx_messageInfo_FoundGif proto.InternalMessageInfo -func (m *Contacts_TopPeers) GetConstructor() TLConstructor { +func (m *FoundGif) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Contacts_TopPeers) GetData2() *Contacts_TopPeers_Data { +func (m *FoundGif) GetData2() *FoundGif_Data { if m != nil { return m.Data2 } return nil } -// contacts.topPeersNotModified#de266ef5 = contacts.TopPeers; -type TLContactsTopPeersNotModified struct { - Data2 *Contacts_TopPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// foundGif#162ecc1f url:string thumb_url:string content_url:string content_type:string w:int h:int = FoundGif; +type TLFoundGif struct { + Data2 *FoundGif_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactsTopPeersNotModified) Reset() { *m = TLContactsTopPeersNotModified{} } -func (m *TLContactsTopPeersNotModified) String() string { return proto.CompactTextString(m) } -func (*TLContactsTopPeersNotModified) ProtoMessage() {} -func (*TLContactsTopPeersNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{741} -} -func (m *TLContactsTopPeersNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsTopPeersNotModified.Unmarshal(m, b) -} -func (m *TLContactsTopPeersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsTopPeersNotModified.Marshal(b, m, deterministic) -} -func (dst *TLContactsTopPeersNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsTopPeersNotModified.Merge(dst, src) -} -func (m *TLContactsTopPeersNotModified) XXX_Size() int { - return xxx_messageInfo_TLContactsTopPeersNotModified.Size(m) -} -func (m *TLContactsTopPeersNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsTopPeersNotModified.DiscardUnknown(m) -} - -var xxx_messageInfo_TLContactsTopPeersNotModified proto.InternalMessageInfo - -func (m *TLContactsTopPeersNotModified) GetData2() *Contacts_TopPeers_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers; -type TLContactsTopPeers struct { - Data2 *Contacts_TopPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLContactsTopPeers) Reset() { *m = TLContactsTopPeers{} } -func (m *TLContactsTopPeers) String() string { return proto.CompactTextString(m) } -func (*TLContactsTopPeers) ProtoMessage() {} -func (*TLContactsTopPeers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{742} +func (m *TLFoundGif) Reset() { *m = TLFoundGif{} } +func (m *TLFoundGif) String() string { return proto.CompactTextString(m) } +func (*TLFoundGif) ProtoMessage() {} +func (*TLFoundGif) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{686} } -func (m *TLContactsTopPeers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsTopPeers.Unmarshal(m, b) +func (m *TLFoundGif) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLFoundGif.Unmarshal(m, b) } -func (m *TLContactsTopPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsTopPeers.Marshal(b, m, deterministic) +func (m *TLFoundGif) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLFoundGif.Marshal(b, m, deterministic) } -func (dst *TLContactsTopPeers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsTopPeers.Merge(dst, src) +func (dst *TLFoundGif) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLFoundGif.Merge(dst, src) } -func (m *TLContactsTopPeers) XXX_Size() int { - return xxx_messageInfo_TLContactsTopPeers.Size(m) +func (m *TLFoundGif) XXX_Size() int { + return xxx_messageInfo_TLFoundGif.Size(m) } -func (m *TLContactsTopPeers) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsTopPeers.DiscardUnknown(m) +func (m *TLFoundGif) XXX_DiscardUnknown() { + xxx_messageInfo_TLFoundGif.DiscardUnknown(m) } -var xxx_messageInfo_TLContactsTopPeers proto.InternalMessageInfo +var xxx_messageInfo_TLFoundGif proto.InternalMessageInfo -func (m *TLContactsTopPeers) GetData2() *Contacts_TopPeers_Data { +func (m *TLFoundGif) GetData2() *FoundGif_Data { if m != nil { return m.Data2 } return nil } -// contacts.topPeersDisabled#b52c939d = contacts.TopPeers; -type TLContactsTopPeersDisabled struct { - Data2 *Contacts_TopPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// foundGifCached#9c750409 url:string photo:Photo document:Document = FoundGif; +type TLFoundGifCached struct { + Data2 *FoundGif_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactsTopPeersDisabled) Reset() { *m = TLContactsTopPeersDisabled{} } -func (m *TLContactsTopPeersDisabled) String() string { return proto.CompactTextString(m) } -func (*TLContactsTopPeersDisabled) ProtoMessage() {} -func (*TLContactsTopPeersDisabled) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{743} +func (m *TLFoundGifCached) Reset() { *m = TLFoundGifCached{} } +func (m *TLFoundGifCached) String() string { return proto.CompactTextString(m) } +func (*TLFoundGifCached) ProtoMessage() {} +func (*TLFoundGifCached) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{687} } -func (m *TLContactsTopPeersDisabled) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsTopPeersDisabled.Unmarshal(m, b) +func (m *TLFoundGifCached) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLFoundGifCached.Unmarshal(m, b) } -func (m *TLContactsTopPeersDisabled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsTopPeersDisabled.Marshal(b, m, deterministic) +func (m *TLFoundGifCached) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLFoundGifCached.Marshal(b, m, deterministic) } -func (dst *TLContactsTopPeersDisabled) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsTopPeersDisabled.Merge(dst, src) +func (dst *TLFoundGifCached) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLFoundGifCached.Merge(dst, src) } -func (m *TLContactsTopPeersDisabled) XXX_Size() int { - return xxx_messageInfo_TLContactsTopPeersDisabled.Size(m) +func (m *TLFoundGifCached) XXX_Size() int { + return xxx_messageInfo_TLFoundGifCached.Size(m) } -func (m *TLContactsTopPeersDisabled) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsTopPeersDisabled.DiscardUnknown(m) +func (m *TLFoundGifCached) XXX_DiscardUnknown() { + xxx_messageInfo_TLFoundGifCached.DiscardUnknown(m) } -var xxx_messageInfo_TLContactsTopPeersDisabled proto.InternalMessageInfo +var xxx_messageInfo_TLFoundGifCached proto.InternalMessageInfo -func (m *TLContactsTopPeersDisabled) GetData2() *Contacts_TopPeers_Data { +func (m *TLFoundGifCached) GetData2() *FoundGif_Data { if m != nil { return m.Data2 } @@ -35642,134 +34301,134 @@ func (m *TLContactsTopPeersDisabled) GetData2() *Contacts_TopPeers_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputPhoneCall <-- -// + TL_inputPhoneCall +// ExportedMessageLink <-- +// + TL_exportedMessageLink // -type InputPhoneCall_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` +type ExportedMessageLink_Data struct { + Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` + Html string `protobuf:"bytes,2,opt,name=html,proto3" json:"html,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *InputPhoneCall_Data) Reset() { *m = InputPhoneCall_Data{} } -func (m *InputPhoneCall_Data) String() string { return proto.CompactTextString(m) } -func (*InputPhoneCall_Data) ProtoMessage() {} -func (*InputPhoneCall_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{744} +func (m *ExportedMessageLink_Data) Reset() { *m = ExportedMessageLink_Data{} } +func (m *ExportedMessageLink_Data) String() string { return proto.CompactTextString(m) } +func (*ExportedMessageLink_Data) ProtoMessage() {} +func (*ExportedMessageLink_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{688} } -func (m *InputPhoneCall_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPhoneCall_Data.Unmarshal(m, b) +func (m *ExportedMessageLink_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportedMessageLink_Data.Unmarshal(m, b) } -func (m *InputPhoneCall_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPhoneCall_Data.Marshal(b, m, deterministic) +func (m *ExportedMessageLink_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportedMessageLink_Data.Marshal(b, m, deterministic) } -func (dst *InputPhoneCall_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPhoneCall_Data.Merge(dst, src) +func (dst *ExportedMessageLink_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportedMessageLink_Data.Merge(dst, src) } -func (m *InputPhoneCall_Data) XXX_Size() int { - return xxx_messageInfo_InputPhoneCall_Data.Size(m) +func (m *ExportedMessageLink_Data) XXX_Size() int { + return xxx_messageInfo_ExportedMessageLink_Data.Size(m) } -func (m *InputPhoneCall_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputPhoneCall_Data.DiscardUnknown(m) +func (m *ExportedMessageLink_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ExportedMessageLink_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputPhoneCall_Data proto.InternalMessageInfo +var xxx_messageInfo_ExportedMessageLink_Data proto.InternalMessageInfo -func (m *InputPhoneCall_Data) GetId() int64 { +func (m *ExportedMessageLink_Data) GetLink() string { if m != nil { - return m.Id + return m.Link } - return 0 + return "" } -func (m *InputPhoneCall_Data) GetAccessHash() int64 { +func (m *ExportedMessageLink_Data) GetHtml() string { if m != nil { - return m.AccessHash + return m.Html } - return 0 + return "" } -type InputPhoneCall struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputPhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ExportedMessageLink struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ExportedMessageLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputPhoneCall) Reset() { *m = InputPhoneCall{} } -func (m *InputPhoneCall) String() string { return proto.CompactTextString(m) } -func (*InputPhoneCall) ProtoMessage() {} -func (*InputPhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{745} +func (m *ExportedMessageLink) Reset() { *m = ExportedMessageLink{} } +func (m *ExportedMessageLink) String() string { return proto.CompactTextString(m) } +func (*ExportedMessageLink) ProtoMessage() {} +func (*ExportedMessageLink) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{689} } -func (m *InputPhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPhoneCall.Unmarshal(m, b) +func (m *ExportedMessageLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportedMessageLink.Unmarshal(m, b) } -func (m *InputPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPhoneCall.Marshal(b, m, deterministic) +func (m *ExportedMessageLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportedMessageLink.Marshal(b, m, deterministic) } -func (dst *InputPhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPhoneCall.Merge(dst, src) +func (dst *ExportedMessageLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportedMessageLink.Merge(dst, src) } -func (m *InputPhoneCall) XXX_Size() int { - return xxx_messageInfo_InputPhoneCall.Size(m) +func (m *ExportedMessageLink) XXX_Size() int { + return xxx_messageInfo_ExportedMessageLink.Size(m) } -func (m *InputPhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_InputPhoneCall.DiscardUnknown(m) +func (m *ExportedMessageLink) XXX_DiscardUnknown() { + xxx_messageInfo_ExportedMessageLink.DiscardUnknown(m) } -var xxx_messageInfo_InputPhoneCall proto.InternalMessageInfo +var xxx_messageInfo_ExportedMessageLink proto.InternalMessageInfo -func (m *InputPhoneCall) GetConstructor() TLConstructor { +func (m *ExportedMessageLink) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputPhoneCall) GetData2() *InputPhoneCall_Data { +func (m *ExportedMessageLink) GetData2() *ExportedMessageLink_Data { if m != nil { return m.Data2 } return nil } -// inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall; -type TLInputPhoneCall struct { - Data2 *InputPhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink; +type TLExportedMessageLink struct { + Data2 *ExportedMessageLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPhoneCall) Reset() { *m = TLInputPhoneCall{} } -func (m *TLInputPhoneCall) String() string { return proto.CompactTextString(m) } -func (*TLInputPhoneCall) ProtoMessage() {} -func (*TLInputPhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{746} +func (m *TLExportedMessageLink) Reset() { *m = TLExportedMessageLink{} } +func (m *TLExportedMessageLink) String() string { return proto.CompactTextString(m) } +func (*TLExportedMessageLink) ProtoMessage() {} +func (*TLExportedMessageLink) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{690} } -func (m *TLInputPhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPhoneCall.Unmarshal(m, b) +func (m *TLExportedMessageLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLExportedMessageLink.Unmarshal(m, b) } -func (m *TLInputPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPhoneCall.Marshal(b, m, deterministic) +func (m *TLExportedMessageLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLExportedMessageLink.Marshal(b, m, deterministic) } -func (dst *TLInputPhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPhoneCall.Merge(dst, src) +func (dst *TLExportedMessageLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLExportedMessageLink.Merge(dst, src) } -func (m *TLInputPhoneCall) XXX_Size() int { - return xxx_messageInfo_TLInputPhoneCall.Size(m) +func (m *TLExportedMessageLink) XXX_Size() int { + return xxx_messageInfo_TLExportedMessageLink.Size(m) } -func (m *TLInputPhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPhoneCall.DiscardUnknown(m) +func (m *TLExportedMessageLink) XXX_DiscardUnknown() { + xxx_messageInfo_TLExportedMessageLink.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPhoneCall proto.InternalMessageInfo +var xxx_messageInfo_TLExportedMessageLink proto.InternalMessageInfo -func (m *TLInputPhoneCall) GetData2() *InputPhoneCall_Data { +func (m *TLExportedMessageLink) GetData2() *ExportedMessageLink_Data { if m != nil { return m.Data2 } @@ -35777,150 +34436,134 @@ func (m *TLInputPhoneCall) GetData2() *InputPhoneCall_Data { } // ///////////////////////////////////////////////////////////////////////////// -// LangPackDifference <-- -// + TL_langPackDifference +// Contact <-- +// + TL_contact // -type LangPackDifference_Data struct { - LangCode string `protobuf:"bytes,1,opt,name=lang_code,json=langCode,proto3" json:"lang_code,omitempty"` - FromVersion int32 `protobuf:"varint,2,opt,name=from_version,json=fromVersion,proto3" json:"from_version,omitempty"` - Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` - Strings []*LangPackString `protobuf:"bytes,4,rep,name=strings,proto3" json:"strings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Contact_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Mutual *Bool `protobuf:"bytes,2,opt,name=mutual,proto3" json:"mutual,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LangPackDifference_Data) Reset() { *m = LangPackDifference_Data{} } -func (m *LangPackDifference_Data) String() string { return proto.CompactTextString(m) } -func (*LangPackDifference_Data) ProtoMessage() {} -func (*LangPackDifference_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{747} -} -func (m *LangPackDifference_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LangPackDifference_Data.Unmarshal(m, b) +func (m *Contact_Data) Reset() { *m = Contact_Data{} } +func (m *Contact_Data) String() string { return proto.CompactTextString(m) } +func (*Contact_Data) ProtoMessage() {} +func (*Contact_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{691} } -func (m *LangPackDifference_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LangPackDifference_Data.Marshal(b, m, deterministic) +func (m *Contact_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contact_Data.Unmarshal(m, b) } -func (dst *LangPackDifference_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_LangPackDifference_Data.Merge(dst, src) +func (m *Contact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contact_Data.Marshal(b, m, deterministic) } -func (m *LangPackDifference_Data) XXX_Size() int { - return xxx_messageInfo_LangPackDifference_Data.Size(m) +func (dst *Contact_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contact_Data.Merge(dst, src) } -func (m *LangPackDifference_Data) XXX_DiscardUnknown() { - xxx_messageInfo_LangPackDifference_Data.DiscardUnknown(m) +func (m *Contact_Data) XXX_Size() int { + return xxx_messageInfo_Contact_Data.Size(m) } - -var xxx_messageInfo_LangPackDifference_Data proto.InternalMessageInfo - -func (m *LangPackDifference_Data) GetLangCode() string { - if m != nil { - return m.LangCode - } - return "" +func (m *Contact_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Contact_Data.DiscardUnknown(m) } -func (m *LangPackDifference_Data) GetFromVersion() int32 { - if m != nil { - return m.FromVersion - } - return 0 -} +var xxx_messageInfo_Contact_Data proto.InternalMessageInfo -func (m *LangPackDifference_Data) GetVersion() int32 { +func (m *Contact_Data) GetUserId() int32 { if m != nil { - return m.Version + return m.UserId } return 0 } -func (m *LangPackDifference_Data) GetStrings() []*LangPackString { +func (m *Contact_Data) GetMutual() *Bool { if m != nil { - return m.Strings + return m.Mutual } return nil } -type LangPackDifference struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *LangPackDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Contact struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Contact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LangPackDifference) Reset() { *m = LangPackDifference{} } -func (m *LangPackDifference) String() string { return proto.CompactTextString(m) } -func (*LangPackDifference) ProtoMessage() {} -func (*LangPackDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{748} +func (m *Contact) Reset() { *m = Contact{} } +func (m *Contact) String() string { return proto.CompactTextString(m) } +func (*Contact) ProtoMessage() {} +func (*Contact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{692} } -func (m *LangPackDifference) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LangPackDifference.Unmarshal(m, b) +func (m *Contact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contact.Unmarshal(m, b) } -func (m *LangPackDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LangPackDifference.Marshal(b, m, deterministic) +func (m *Contact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contact.Marshal(b, m, deterministic) } -func (dst *LangPackDifference) XXX_Merge(src proto.Message) { - xxx_messageInfo_LangPackDifference.Merge(dst, src) +func (dst *Contact) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contact.Merge(dst, src) } -func (m *LangPackDifference) XXX_Size() int { - return xxx_messageInfo_LangPackDifference.Size(m) +func (m *Contact) XXX_Size() int { + return xxx_messageInfo_Contact.Size(m) } -func (m *LangPackDifference) XXX_DiscardUnknown() { - xxx_messageInfo_LangPackDifference.DiscardUnknown(m) +func (m *Contact) XXX_DiscardUnknown() { + xxx_messageInfo_Contact.DiscardUnknown(m) } -var xxx_messageInfo_LangPackDifference proto.InternalMessageInfo +var xxx_messageInfo_Contact proto.InternalMessageInfo -func (m *LangPackDifference) GetConstructor() TLConstructor { +func (m *Contact) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *LangPackDifference) GetData2() *LangPackDifference_Data { +func (m *Contact) GetData2() *Contact_Data { if m != nil { return m.Data2 } return nil } -// langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference; -type TLLangPackDifference struct { - Data2 *LangPackDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// contact#f911c994 user_id:int mutual:Bool = Contact; +type TLContact struct { + Data2 *Contact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLLangPackDifference) Reset() { *m = TLLangPackDifference{} } -func (m *TLLangPackDifference) String() string { return proto.CompactTextString(m) } -func (*TLLangPackDifference) ProtoMessage() {} -func (*TLLangPackDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{749} +func (m *TLContact) Reset() { *m = TLContact{} } +func (m *TLContact) String() string { return proto.CompactTextString(m) } +func (*TLContact) ProtoMessage() {} +func (*TLContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{693} } -func (m *TLLangPackDifference) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLLangPackDifference.Unmarshal(m, b) +func (m *TLContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContact.Unmarshal(m, b) } -func (m *TLLangPackDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLLangPackDifference.Marshal(b, m, deterministic) +func (m *TLContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContact.Marshal(b, m, deterministic) } -func (dst *TLLangPackDifference) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLLangPackDifference.Merge(dst, src) +func (dst *TLContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContact.Merge(dst, src) } -func (m *TLLangPackDifference) XXX_Size() int { - return xxx_messageInfo_TLLangPackDifference.Size(m) +func (m *TLContact) XXX_Size() int { + return xxx_messageInfo_TLContact.Size(m) } -func (m *TLLangPackDifference) XXX_DiscardUnknown() { - xxx_messageInfo_TLLangPackDifference.DiscardUnknown(m) +func (m *TLContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLContact.DiscardUnknown(m) } -var xxx_messageInfo_TLLangPackDifference proto.InternalMessageInfo +var xxx_messageInfo_TLContact proto.InternalMessageInfo -func (m *TLLangPackDifference) GetData2() *LangPackDifference_Data { +func (m *TLContact) GetData2() *Contact_Data { if m != nil { return m.Data2 } @@ -35928,317 +34571,333 @@ func (m *TLLangPackDifference) GetData2() *LangPackDifference_Data { } // ///////////////////////////////////////////////////////////////////////////// -// FileHash <-- -// + TL_fileHash +// EncryptedFile <-- +// + TL_encryptedFileEmpty +// + TL_encryptedFile // -type FileHash_Data struct { - Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` +type EncryptedFile_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + DcId int32 `protobuf:"varint,4,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` + KeyFingerprint int32 `protobuf:"varint,5,opt,name=key_fingerprint,json=keyFingerprint,proto3" json:"key_fingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *FileHash_Data) Reset() { *m = FileHash_Data{} } -func (m *FileHash_Data) String() string { return proto.CompactTextString(m) } -func (*FileHash_Data) ProtoMessage() {} -func (*FileHash_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{750} +func (m *EncryptedFile_Data) Reset() { *m = EncryptedFile_Data{} } +func (m *EncryptedFile_Data) String() string { return proto.CompactTextString(m) } +func (*EncryptedFile_Data) ProtoMessage() {} +func (*EncryptedFile_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{694} } -func (m *FileHash_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FileHash_Data.Unmarshal(m, b) +func (m *EncryptedFile_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EncryptedFile_Data.Unmarshal(m, b) } -func (m *FileHash_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FileHash_Data.Marshal(b, m, deterministic) +func (m *EncryptedFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EncryptedFile_Data.Marshal(b, m, deterministic) } -func (dst *FileHash_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileHash_Data.Merge(dst, src) +func (dst *EncryptedFile_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedFile_Data.Merge(dst, src) } -func (m *FileHash_Data) XXX_Size() int { - return xxx_messageInfo_FileHash_Data.Size(m) +func (m *EncryptedFile_Data) XXX_Size() int { + return xxx_messageInfo_EncryptedFile_Data.Size(m) } -func (m *FileHash_Data) XXX_DiscardUnknown() { - xxx_messageInfo_FileHash_Data.DiscardUnknown(m) +func (m *EncryptedFile_Data) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptedFile_Data.DiscardUnknown(m) } -var xxx_messageInfo_FileHash_Data proto.InternalMessageInfo +var xxx_messageInfo_EncryptedFile_Data proto.InternalMessageInfo -func (m *FileHash_Data) GetOffset() int32 { +func (m *EncryptedFile_Data) GetId() int64 { if m != nil { - return m.Offset + return m.Id } return 0 } -func (m *FileHash_Data) GetLimit() int32 { +func (m *EncryptedFile_Data) GetAccessHash() int64 { if m != nil { - return m.Limit + return m.AccessHash } return 0 } -func (m *FileHash_Data) GetHash() []byte { +func (m *EncryptedFile_Data) GetSize() int32 { if m != nil { - return m.Hash + return m.Size } - return nil + return 0 } -type FileHash struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *FileHash_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *EncryptedFile_Data) GetDcId() int32 { + if m != nil { + return m.DcId + } + return 0 } -func (m *FileHash) Reset() { *m = FileHash{} } -func (m *FileHash) String() string { return proto.CompactTextString(m) } -func (*FileHash) ProtoMessage() {} -func (*FileHash) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{751} +func (m *EncryptedFile_Data) GetKeyFingerprint() int32 { + if m != nil { + return m.KeyFingerprint + } + return 0 } -func (m *FileHash) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FileHash.Unmarshal(m, b) + +type EncryptedFile struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *EncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FileHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FileHash.Marshal(b, m, deterministic) + +func (m *EncryptedFile) Reset() { *m = EncryptedFile{} } +func (m *EncryptedFile) String() string { return proto.CompactTextString(m) } +func (*EncryptedFile) ProtoMessage() {} +func (*EncryptedFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{695} } -func (dst *FileHash) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileHash.Merge(dst, src) +func (m *EncryptedFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EncryptedFile.Unmarshal(m, b) } -func (m *FileHash) XXX_Size() int { - return xxx_messageInfo_FileHash.Size(m) +func (m *EncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EncryptedFile.Marshal(b, m, deterministic) } -func (m *FileHash) XXX_DiscardUnknown() { - xxx_messageInfo_FileHash.DiscardUnknown(m) +func (dst *EncryptedFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedFile.Merge(dst, src) +} +func (m *EncryptedFile) XXX_Size() int { + return xxx_messageInfo_EncryptedFile.Size(m) +} +func (m *EncryptedFile) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptedFile.DiscardUnknown(m) } -var xxx_messageInfo_FileHash proto.InternalMessageInfo +var xxx_messageInfo_EncryptedFile proto.InternalMessageInfo -func (m *FileHash) GetConstructor() TLConstructor { +func (m *EncryptedFile) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *FileHash) GetData2() *FileHash_Data { +func (m *EncryptedFile) GetData2() *EncryptedFile_Data { if m != nil { return m.Data2 } return nil } -// fileHash#6242c773 offset:int limit:int hash:bytes = FileHash; -type TLFileHash struct { - Data2 *FileHash_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// encryptedFileEmpty#c21f497e = EncryptedFile; +type TLEncryptedFileEmpty struct { + Data2 *EncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLFileHash) Reset() { *m = TLFileHash{} } -func (m *TLFileHash) String() string { return proto.CompactTextString(m) } -func (*TLFileHash) ProtoMessage() {} -func (*TLFileHash) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{752} +func (m *TLEncryptedFileEmpty) Reset() { *m = TLEncryptedFileEmpty{} } +func (m *TLEncryptedFileEmpty) String() string { return proto.CompactTextString(m) } +func (*TLEncryptedFileEmpty) ProtoMessage() {} +func (*TLEncryptedFileEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{696} } -func (m *TLFileHash) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLFileHash.Unmarshal(m, b) +func (m *TLEncryptedFileEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLEncryptedFileEmpty.Unmarshal(m, b) } -func (m *TLFileHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLFileHash.Marshal(b, m, deterministic) +func (m *TLEncryptedFileEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLEncryptedFileEmpty.Marshal(b, m, deterministic) } -func (dst *TLFileHash) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLFileHash.Merge(dst, src) +func (dst *TLEncryptedFileEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLEncryptedFileEmpty.Merge(dst, src) } -func (m *TLFileHash) XXX_Size() int { - return xxx_messageInfo_TLFileHash.Size(m) +func (m *TLEncryptedFileEmpty) XXX_Size() int { + return xxx_messageInfo_TLEncryptedFileEmpty.Size(m) } -func (m *TLFileHash) XXX_DiscardUnknown() { - xxx_messageInfo_TLFileHash.DiscardUnknown(m) +func (m *TLEncryptedFileEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLEncryptedFileEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLFileHash proto.InternalMessageInfo +var xxx_messageInfo_TLEncryptedFileEmpty proto.InternalMessageInfo -func (m *TLFileHash) GetData2() *FileHash_Data { +func (m *TLEncryptedFileEmpty) GetData2() *EncryptedFile_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputGeoPoint <-- -// + TL_inputGeoPointEmpty -// + TL_inputGeoPoint -// -type InputGeoPoint_Data struct { - Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"` - Long float64 `protobuf:"fixed64,2,opt,name=long,proto3" json:"long,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile; +type TLEncryptedFile struct { + Data2 *EncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputGeoPoint_Data) Reset() { *m = InputGeoPoint_Data{} } -func (m *InputGeoPoint_Data) String() string { return proto.CompactTextString(m) } -func (*InputGeoPoint_Data) ProtoMessage() {} -func (*InputGeoPoint_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{753} +func (m *TLEncryptedFile) Reset() { *m = TLEncryptedFile{} } +func (m *TLEncryptedFile) String() string { return proto.CompactTextString(m) } +func (*TLEncryptedFile) ProtoMessage() {} +func (*TLEncryptedFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{697} } -func (m *InputGeoPoint_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputGeoPoint_Data.Unmarshal(m, b) +func (m *TLEncryptedFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLEncryptedFile.Unmarshal(m, b) } -func (m *InputGeoPoint_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputGeoPoint_Data.Marshal(b, m, deterministic) +func (m *TLEncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLEncryptedFile.Marshal(b, m, deterministic) } -func (dst *InputGeoPoint_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputGeoPoint_Data.Merge(dst, src) +func (dst *TLEncryptedFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLEncryptedFile.Merge(dst, src) } -func (m *InputGeoPoint_Data) XXX_Size() int { - return xxx_messageInfo_InputGeoPoint_Data.Size(m) +func (m *TLEncryptedFile) XXX_Size() int { + return xxx_messageInfo_TLEncryptedFile.Size(m) } -func (m *InputGeoPoint_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputGeoPoint_Data.DiscardUnknown(m) +func (m *TLEncryptedFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLEncryptedFile.DiscardUnknown(m) } -var xxx_messageInfo_InputGeoPoint_Data proto.InternalMessageInfo - -func (m *InputGeoPoint_Data) GetLat() float64 { - if m != nil { - return m.Lat - } - return 0 -} +var xxx_messageInfo_TLEncryptedFile proto.InternalMessageInfo -func (m *InputGeoPoint_Data) GetLong() float64 { +func (m *TLEncryptedFile) GetData2() *EncryptedFile_Data { if m != nil { - return m.Long + return m.Data2 } - return 0 + return nil } -type InputGeoPoint struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputGeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// phone_PhoneCall <-- +// + TL_phone_phoneCall +// +type Phone_PhoneCall_Data struct { + PhoneCall *PhoneCall `protobuf:"bytes,1,opt,name=phone_call,json=phoneCall,proto3" json:"phone_call,omitempty"` + Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputGeoPoint) Reset() { *m = InputGeoPoint{} } -func (m *InputGeoPoint) String() string { return proto.CompactTextString(m) } -func (*InputGeoPoint) ProtoMessage() {} -func (*InputGeoPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{754} +func (m *Phone_PhoneCall_Data) Reset() { *m = Phone_PhoneCall_Data{} } +func (m *Phone_PhoneCall_Data) String() string { return proto.CompactTextString(m) } +func (*Phone_PhoneCall_Data) ProtoMessage() {} +func (*Phone_PhoneCall_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{698} } -func (m *InputGeoPoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputGeoPoint.Unmarshal(m, b) +func (m *Phone_PhoneCall_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Phone_PhoneCall_Data.Unmarshal(m, b) } -func (m *InputGeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputGeoPoint.Marshal(b, m, deterministic) +func (m *Phone_PhoneCall_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Phone_PhoneCall_Data.Marshal(b, m, deterministic) } -func (dst *InputGeoPoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputGeoPoint.Merge(dst, src) +func (dst *Phone_PhoneCall_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Phone_PhoneCall_Data.Merge(dst, src) } -func (m *InputGeoPoint) XXX_Size() int { - return xxx_messageInfo_InputGeoPoint.Size(m) +func (m *Phone_PhoneCall_Data) XXX_Size() int { + return xxx_messageInfo_Phone_PhoneCall_Data.Size(m) } -func (m *InputGeoPoint) XXX_DiscardUnknown() { - xxx_messageInfo_InputGeoPoint.DiscardUnknown(m) +func (m *Phone_PhoneCall_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Phone_PhoneCall_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputGeoPoint proto.InternalMessageInfo +var xxx_messageInfo_Phone_PhoneCall_Data proto.InternalMessageInfo -func (m *InputGeoPoint) GetConstructor() TLConstructor { +func (m *Phone_PhoneCall_Data) GetPhoneCall() *PhoneCall { if m != nil { - return m.Constructor + return m.PhoneCall } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *InputGeoPoint) GetData2() *InputGeoPoint_Data { +func (m *Phone_PhoneCall_Data) GetUsers() []*User { if m != nil { - return m.Data2 + return m.Users } return nil } -// inputGeoPointEmpty#e4c123d6 = InputGeoPoint; -type TLInputGeoPointEmpty struct { - Data2 *InputGeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Phone_PhoneCall struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Phone_PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputGeoPointEmpty) Reset() { *m = TLInputGeoPointEmpty{} } -func (m *TLInputGeoPointEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputGeoPointEmpty) ProtoMessage() {} -func (*TLInputGeoPointEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{755} +func (m *Phone_PhoneCall) Reset() { *m = Phone_PhoneCall{} } +func (m *Phone_PhoneCall) String() string { return proto.CompactTextString(m) } +func (*Phone_PhoneCall) ProtoMessage() {} +func (*Phone_PhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{699} } -func (m *TLInputGeoPointEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputGeoPointEmpty.Unmarshal(m, b) +func (m *Phone_PhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Phone_PhoneCall.Unmarshal(m, b) } -func (m *TLInputGeoPointEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputGeoPointEmpty.Marshal(b, m, deterministic) +func (m *Phone_PhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Phone_PhoneCall.Marshal(b, m, deterministic) } -func (dst *TLInputGeoPointEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputGeoPointEmpty.Merge(dst, src) +func (dst *Phone_PhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_Phone_PhoneCall.Merge(dst, src) } -func (m *TLInputGeoPointEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputGeoPointEmpty.Size(m) +func (m *Phone_PhoneCall) XXX_Size() int { + return xxx_messageInfo_Phone_PhoneCall.Size(m) } -func (m *TLInputGeoPointEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputGeoPointEmpty.DiscardUnknown(m) +func (m *Phone_PhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_Phone_PhoneCall.DiscardUnknown(m) } -var xxx_messageInfo_TLInputGeoPointEmpty proto.InternalMessageInfo +var xxx_messageInfo_Phone_PhoneCall proto.InternalMessageInfo -func (m *TLInputGeoPointEmpty) GetData2() *InputGeoPoint_Data { +func (m *Phone_PhoneCall) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Phone_PhoneCall) GetData2() *Phone_PhoneCall_Data { if m != nil { return m.Data2 } return nil } -// inputGeoPoint#f3b7acc9 lat:double long:double = InputGeoPoint; -type TLInputGeoPoint struct { - Data2 *InputGeoPoint_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall; +type TLPhonePhoneCall struct { + Data2 *Phone_PhoneCall_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputGeoPoint) Reset() { *m = TLInputGeoPoint{} } -func (m *TLInputGeoPoint) String() string { return proto.CompactTextString(m) } -func (*TLInputGeoPoint) ProtoMessage() {} -func (*TLInputGeoPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{756} +func (m *TLPhonePhoneCall) Reset() { *m = TLPhonePhoneCall{} } +func (m *TLPhonePhoneCall) String() string { return proto.CompactTextString(m) } +func (*TLPhonePhoneCall) ProtoMessage() {} +func (*TLPhonePhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{700} } -func (m *TLInputGeoPoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputGeoPoint.Unmarshal(m, b) +func (m *TLPhonePhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPhonePhoneCall.Unmarshal(m, b) } -func (m *TLInputGeoPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputGeoPoint.Marshal(b, m, deterministic) +func (m *TLPhonePhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPhonePhoneCall.Marshal(b, m, deterministic) } -func (dst *TLInputGeoPoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputGeoPoint.Merge(dst, src) +func (dst *TLPhonePhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPhonePhoneCall.Merge(dst, src) } -func (m *TLInputGeoPoint) XXX_Size() int { - return xxx_messageInfo_TLInputGeoPoint.Size(m) +func (m *TLPhonePhoneCall) XXX_Size() int { + return xxx_messageInfo_TLPhonePhoneCall.Size(m) } -func (m *TLInputGeoPoint) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputGeoPoint.DiscardUnknown(m) +func (m *TLPhonePhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLPhonePhoneCall.DiscardUnknown(m) } -var xxx_messageInfo_TLInputGeoPoint proto.InternalMessageInfo +var xxx_messageInfo_TLPhonePhoneCall proto.InternalMessageInfo -func (m *TLInputGeoPoint) GetData2() *InputGeoPoint_Data { +func (m *TLPhonePhoneCall) GetData2() *Phone_PhoneCall_Data { if m != nil { return m.Data2 } @@ -36246,517 +34905,524 @@ func (m *TLInputGeoPoint) GetData2() *InputGeoPoint_Data { } // ///////////////////////////////////////////////////////////////////////////// -// auth_ExportedAuthorization <-- -// + TL_auth_exportedAuthorization +// messages_SavedGifs <-- +// + TL_messages_savedGifsNotModified +// + TL_messages_savedGifs // -type Auth_ExportedAuthorization_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_SavedGifs_Data struct { + Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + Gifs []*Document `protobuf:"bytes,2,rep,name=gifs,proto3" json:"gifs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_ExportedAuthorization_Data) Reset() { *m = Auth_ExportedAuthorization_Data{} } -func (m *Auth_ExportedAuthorization_Data) String() string { return proto.CompactTextString(m) } -func (*Auth_ExportedAuthorization_Data) ProtoMessage() {} -func (*Auth_ExportedAuthorization_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{757} +func (m *Messages_SavedGifs_Data) Reset() { *m = Messages_SavedGifs_Data{} } +func (m *Messages_SavedGifs_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_SavedGifs_Data) ProtoMessage() {} +func (*Messages_SavedGifs_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{701} } -func (m *Auth_ExportedAuthorization_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_ExportedAuthorization_Data.Unmarshal(m, b) +func (m *Messages_SavedGifs_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_SavedGifs_Data.Unmarshal(m, b) } -func (m *Auth_ExportedAuthorization_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_ExportedAuthorization_Data.Marshal(b, m, deterministic) +func (m *Messages_SavedGifs_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_SavedGifs_Data.Marshal(b, m, deterministic) } -func (dst *Auth_ExportedAuthorization_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_ExportedAuthorization_Data.Merge(dst, src) +func (dst *Messages_SavedGifs_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_SavedGifs_Data.Merge(dst, src) } -func (m *Auth_ExportedAuthorization_Data) XXX_Size() int { - return xxx_messageInfo_Auth_ExportedAuthorization_Data.Size(m) +func (m *Messages_SavedGifs_Data) XXX_Size() int { + return xxx_messageInfo_Messages_SavedGifs_Data.Size(m) } -func (m *Auth_ExportedAuthorization_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_ExportedAuthorization_Data.DiscardUnknown(m) +func (m *Messages_SavedGifs_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_SavedGifs_Data.DiscardUnknown(m) } -var xxx_messageInfo_Auth_ExportedAuthorization_Data proto.InternalMessageInfo +var xxx_messageInfo_Messages_SavedGifs_Data proto.InternalMessageInfo -func (m *Auth_ExportedAuthorization_Data) GetId() int32 { +func (m *Messages_SavedGifs_Data) GetHash() int32 { if m != nil { - return m.Id + return m.Hash } return 0 } -func (m *Auth_ExportedAuthorization_Data) GetBytes() []byte { +func (m *Messages_SavedGifs_Data) GetGifs() []*Document { if m != nil { - return m.Bytes + return m.Gifs } return nil } -type Auth_ExportedAuthorization struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Auth_ExportedAuthorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_SavedGifs struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_SavedGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_ExportedAuthorization) Reset() { *m = Auth_ExportedAuthorization{} } -func (m *Auth_ExportedAuthorization) String() string { return proto.CompactTextString(m) } -func (*Auth_ExportedAuthorization) ProtoMessage() {} -func (*Auth_ExportedAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{758} +func (m *Messages_SavedGifs) Reset() { *m = Messages_SavedGifs{} } +func (m *Messages_SavedGifs) String() string { return proto.CompactTextString(m) } +func (*Messages_SavedGifs) ProtoMessage() {} +func (*Messages_SavedGifs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{702} } -func (m *Auth_ExportedAuthorization) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_ExportedAuthorization.Unmarshal(m, b) +func (m *Messages_SavedGifs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_SavedGifs.Unmarshal(m, b) } -func (m *Auth_ExportedAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_ExportedAuthorization.Marshal(b, m, deterministic) +func (m *Messages_SavedGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_SavedGifs.Marshal(b, m, deterministic) } -func (dst *Auth_ExportedAuthorization) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_ExportedAuthorization.Merge(dst, src) +func (dst *Messages_SavedGifs) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_SavedGifs.Merge(dst, src) } -func (m *Auth_ExportedAuthorization) XXX_Size() int { - return xxx_messageInfo_Auth_ExportedAuthorization.Size(m) +func (m *Messages_SavedGifs) XXX_Size() int { + return xxx_messageInfo_Messages_SavedGifs.Size(m) } -func (m *Auth_ExportedAuthorization) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_ExportedAuthorization.DiscardUnknown(m) +func (m *Messages_SavedGifs) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_SavedGifs.DiscardUnknown(m) } -var xxx_messageInfo_Auth_ExportedAuthorization proto.InternalMessageInfo +var xxx_messageInfo_Messages_SavedGifs proto.InternalMessageInfo -func (m *Auth_ExportedAuthorization) GetConstructor() TLConstructor { +func (m *Messages_SavedGifs) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Auth_ExportedAuthorization) GetData2() *Auth_ExportedAuthorization_Data { +func (m *Messages_SavedGifs) GetData2() *Messages_SavedGifs_Data { if m != nil { return m.Data2 } return nil } -// auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization; -type TLAuthExportedAuthorization struct { - Data2 *Auth_ExportedAuthorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs; +type TLMessagesSavedGifsNotModified struct { + Data2 *Messages_SavedGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAuthExportedAuthorization) Reset() { *m = TLAuthExportedAuthorization{} } -func (m *TLAuthExportedAuthorization) String() string { return proto.CompactTextString(m) } -func (*TLAuthExportedAuthorization) ProtoMessage() {} -func (*TLAuthExportedAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{759} +func (m *TLMessagesSavedGifsNotModified) Reset() { *m = TLMessagesSavedGifsNotModified{} } +func (m *TLMessagesSavedGifsNotModified) String() string { return proto.CompactTextString(m) } +func (*TLMessagesSavedGifsNotModified) ProtoMessage() {} +func (*TLMessagesSavedGifsNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{703} } -func (m *TLAuthExportedAuthorization) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthExportedAuthorization.Unmarshal(m, b) +func (m *TLMessagesSavedGifsNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesSavedGifsNotModified.Unmarshal(m, b) } -func (m *TLAuthExportedAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthExportedAuthorization.Marshal(b, m, deterministic) +func (m *TLMessagesSavedGifsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesSavedGifsNotModified.Marshal(b, m, deterministic) } -func (dst *TLAuthExportedAuthorization) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthExportedAuthorization.Merge(dst, src) +func (dst *TLMessagesSavedGifsNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesSavedGifsNotModified.Merge(dst, src) } -func (m *TLAuthExportedAuthorization) XXX_Size() int { - return xxx_messageInfo_TLAuthExportedAuthorization.Size(m) +func (m *TLMessagesSavedGifsNotModified) XXX_Size() int { + return xxx_messageInfo_TLMessagesSavedGifsNotModified.Size(m) } -func (m *TLAuthExportedAuthorization) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthExportedAuthorization.DiscardUnknown(m) +func (m *TLMessagesSavedGifsNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesSavedGifsNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthExportedAuthorization proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesSavedGifsNotModified proto.InternalMessageInfo -func (m *TLAuthExportedAuthorization) GetData2() *Auth_ExportedAuthorization_Data { +func (m *TLMessagesSavedGifsNotModified) GetData2() *Messages_SavedGifs_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// WebPage <-- -// + TL_webPageEmpty -// + TL_webPagePending -// + TL_webPage -// + TL_webPageNotModified -// -type WebPage_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` - DisplayUrl string `protobuf:"bytes,4,opt,name=display_url,json=displayUrl,proto3" json:"display_url,omitempty"` - Hash int32 `protobuf:"varint,5,opt,name=hash,proto3" json:"hash,omitempty"` - Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` - SiteName string `protobuf:"bytes,7,opt,name=site_name,json=siteName,proto3" json:"site_name,omitempty"` - Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"` - Photo *Photo `protobuf:"bytes,10,opt,name=photo,proto3" json:"photo,omitempty"` - EmbedUrl string `protobuf:"bytes,11,opt,name=embed_url,json=embedUrl,proto3" json:"embed_url,omitempty"` - EmbedType string `protobuf:"bytes,12,opt,name=embed_type,json=embedType,proto3" json:"embed_type,omitempty"` - EmbedWidth int32 `protobuf:"varint,13,opt,name=embed_width,json=embedWidth,proto3" json:"embed_width,omitempty"` - EmbedHeight int32 `protobuf:"varint,14,opt,name=embed_height,json=embedHeight,proto3" json:"embed_height,omitempty"` - Duration int32 `protobuf:"varint,15,opt,name=duration,proto3" json:"duration,omitempty"` - Author string `protobuf:"bytes,16,opt,name=author,proto3" json:"author,omitempty"` - Document *Document `protobuf:"bytes,17,opt,name=document,proto3" json:"document,omitempty"` - CachedPage *Page `protobuf:"bytes,18,opt,name=cached_page,json=cachedPage,proto3" json:"cached_page,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.savedGifs#2e0709a5 hash:int gifs:Vector = messages.SavedGifs; +type TLMessagesSavedGifs struct { + Data2 *Messages_SavedGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WebPage_Data) Reset() { *m = WebPage_Data{} } -func (m *WebPage_Data) String() string { return proto.CompactTextString(m) } -func (*WebPage_Data) ProtoMessage() {} -func (*WebPage_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{760} -} -func (m *WebPage_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WebPage_Data.Unmarshal(m, b) +func (m *TLMessagesSavedGifs) Reset() { *m = TLMessagesSavedGifs{} } +func (m *TLMessagesSavedGifs) String() string { return proto.CompactTextString(m) } +func (*TLMessagesSavedGifs) ProtoMessage() {} +func (*TLMessagesSavedGifs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{704} } -func (m *WebPage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WebPage_Data.Marshal(b, m, deterministic) +func (m *TLMessagesSavedGifs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesSavedGifs.Unmarshal(m, b) } -func (dst *WebPage_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebPage_Data.Merge(dst, src) +func (m *TLMessagesSavedGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesSavedGifs.Marshal(b, m, deterministic) } -func (m *WebPage_Data) XXX_Size() int { - return xxx_messageInfo_WebPage_Data.Size(m) +func (dst *TLMessagesSavedGifs) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesSavedGifs.Merge(dst, src) } -func (m *WebPage_Data) XXX_DiscardUnknown() { - xxx_messageInfo_WebPage_Data.DiscardUnknown(m) +func (m *TLMessagesSavedGifs) XXX_Size() int { + return xxx_messageInfo_TLMessagesSavedGifs.Size(m) } - -var xxx_messageInfo_WebPage_Data proto.InternalMessageInfo - -func (m *WebPage_Data) GetId() int64 { - if m != nil { - return m.Id - } - return 0 +func (m *TLMessagesSavedGifs) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesSavedGifs.DiscardUnknown(m) } -func (m *WebPage_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 -} +var xxx_messageInfo_TLMessagesSavedGifs proto.InternalMessageInfo -func (m *WebPage_Data) GetUrl() string { +func (m *TLMessagesSavedGifs) GetData2() *Messages_SavedGifs_Data { if m != nil { - return m.Url + return m.Data2 } - return "" + return nil } -func (m *WebPage_Data) GetDisplayUrl() string { - if m != nil { - return m.DisplayUrl - } - return "" +// ///////////////////////////////////////////////////////////////////////////// +// messages_BotResults <-- +// + TL_messages_botResults +// +type Messages_BotResults_Data struct { + Gallery bool `protobuf:"varint,1,opt,name=gallery,proto3" json:"gallery,omitempty"` + QueryId int64 `protobuf:"varint,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + NextOffset string `protobuf:"bytes,3,opt,name=next_offset,json=nextOffset,proto3" json:"next_offset,omitempty"` + SwitchPm *InlineBotSwitchPM `protobuf:"bytes,4,opt,name=switch_pm,json=switchPm,proto3" json:"switch_pm,omitempty"` + Results []*BotInlineResult `protobuf:"bytes,5,rep,name=results,proto3" json:"results,omitempty"` + CacheTime int32 `protobuf:"varint,6,opt,name=cache_time,json=cacheTime,proto3" json:"cache_time,omitempty"` + Users []*User `protobuf:"bytes,7,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WebPage_Data) GetHash() int32 { - if m != nil { - return m.Hash - } - return 0 +func (m *Messages_BotResults_Data) Reset() { *m = Messages_BotResults_Data{} } +func (m *Messages_BotResults_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_BotResults_Data) ProtoMessage() {} +func (*Messages_BotResults_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{705} } - -func (m *WebPage_Data) GetType() string { - if m != nil { - return m.Type - } - return "" +func (m *Messages_BotResults_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_BotResults_Data.Unmarshal(m, b) +} +func (m *Messages_BotResults_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_BotResults_Data.Marshal(b, m, deterministic) +} +func (dst *Messages_BotResults_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_BotResults_Data.Merge(dst, src) +} +func (m *Messages_BotResults_Data) XXX_Size() int { + return xxx_messageInfo_Messages_BotResults_Data.Size(m) +} +func (m *Messages_BotResults_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_BotResults_Data.DiscardUnknown(m) } -func (m *WebPage_Data) GetSiteName() string { +var xxx_messageInfo_Messages_BotResults_Data proto.InternalMessageInfo + +func (m *Messages_BotResults_Data) GetGallery() bool { if m != nil { - return m.SiteName + return m.Gallery } - return "" + return false } -func (m *WebPage_Data) GetTitle() string { +func (m *Messages_BotResults_Data) GetQueryId() int64 { if m != nil { - return m.Title + return m.QueryId } - return "" + return 0 } -func (m *WebPage_Data) GetDescription() string { +func (m *Messages_BotResults_Data) GetNextOffset() string { if m != nil { - return m.Description + return m.NextOffset } return "" } -func (m *WebPage_Data) GetPhoto() *Photo { +func (m *Messages_BotResults_Data) GetSwitchPm() *InlineBotSwitchPM { if m != nil { - return m.Photo + return m.SwitchPm } return nil } -func (m *WebPage_Data) GetEmbedUrl() string { - if m != nil { - return m.EmbedUrl - } - return "" -} - -func (m *WebPage_Data) GetEmbedType() string { +func (m *Messages_BotResults_Data) GetResults() []*BotInlineResult { if m != nil { - return m.EmbedType + return m.Results } - return "" + return nil } -func (m *WebPage_Data) GetEmbedWidth() int32 { +func (m *Messages_BotResults_Data) GetCacheTime() int32 { if m != nil { - return m.EmbedWidth + return m.CacheTime } return 0 } -func (m *WebPage_Data) GetEmbedHeight() int32 { +func (m *Messages_BotResults_Data) GetUsers() []*User { if m != nil { - return m.EmbedHeight + return m.Users } - return 0 + return nil } -func (m *WebPage_Data) GetDuration() int32 { - if m != nil { - return m.Duration - } - return 0 +type Messages_BotResults struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_BotResults_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WebPage_Data) GetAuthor() string { - if m != nil { - return m.Author - } - return "" +func (m *Messages_BotResults) Reset() { *m = Messages_BotResults{} } +func (m *Messages_BotResults) String() string { return proto.CompactTextString(m) } +func (*Messages_BotResults) ProtoMessage() {} +func (*Messages_BotResults) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{706} +} +func (m *Messages_BotResults) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_BotResults.Unmarshal(m, b) +} +func (m *Messages_BotResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_BotResults.Marshal(b, m, deterministic) +} +func (dst *Messages_BotResults) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_BotResults.Merge(dst, src) +} +func (m *Messages_BotResults) XXX_Size() int { + return xxx_messageInfo_Messages_BotResults.Size(m) +} +func (m *Messages_BotResults) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_BotResults.DiscardUnknown(m) } -func (m *WebPage_Data) GetDocument() *Document { +var xxx_messageInfo_Messages_BotResults proto.InternalMessageInfo + +func (m *Messages_BotResults) GetConstructor() TLConstructor { if m != nil { - return m.Document + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *WebPage_Data) GetCachedPage() *Page { +func (m *Messages_BotResults) GetData2() *Messages_BotResults_Data { if m != nil { - return m.CachedPage + return m.Data2 } return nil } -type WebPage struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector cache_time:int users:Vector = messages.BotResults; +type TLMessagesBotResults struct { + Data2 *Messages_BotResults_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WebPage) Reset() { *m = WebPage{} } -func (m *WebPage) String() string { return proto.CompactTextString(m) } -func (*WebPage) ProtoMessage() {} -func (*WebPage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{761} +func (m *TLMessagesBotResults) Reset() { *m = TLMessagesBotResults{} } +func (m *TLMessagesBotResults) String() string { return proto.CompactTextString(m) } +func (*TLMessagesBotResults) ProtoMessage() {} +func (*TLMessagesBotResults) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{707} } -func (m *WebPage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WebPage.Unmarshal(m, b) +func (m *TLMessagesBotResults) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesBotResults.Unmarshal(m, b) } -func (m *WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WebPage.Marshal(b, m, deterministic) +func (m *TLMessagesBotResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesBotResults.Marshal(b, m, deterministic) } -func (dst *WebPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebPage.Merge(dst, src) +func (dst *TLMessagesBotResults) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesBotResults.Merge(dst, src) } -func (m *WebPage) XXX_Size() int { - return xxx_messageInfo_WebPage.Size(m) +func (m *TLMessagesBotResults) XXX_Size() int { + return xxx_messageInfo_TLMessagesBotResults.Size(m) } -func (m *WebPage) XXX_DiscardUnknown() { - xxx_messageInfo_WebPage.DiscardUnknown(m) +func (m *TLMessagesBotResults) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesBotResults.DiscardUnknown(m) } -var xxx_messageInfo_WebPage proto.InternalMessageInfo - -func (m *WebPage) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLMessagesBotResults proto.InternalMessageInfo -func (m *WebPage) GetData2() *WebPage_Data { +func (m *TLMessagesBotResults) GetData2() *Messages_BotResults_Data { if m != nil { return m.Data2 } return nil } -// webPageEmpty#eb1477e8 id:long = WebPage; -type TLWebPageEmpty struct { - Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// upload_CdnFile <-- +// + TL_upload_cdnFileReuploadNeeded +// + TL_upload_cdnFile +// +type Upload_CdnFile_Data struct { + RequestToken []byte `protobuf:"bytes,1,opt,name=request_token,json=requestToken,proto3" json:"request_token,omitempty"` + Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLWebPageEmpty) Reset() { *m = TLWebPageEmpty{} } -func (m *TLWebPageEmpty) String() string { return proto.CompactTextString(m) } -func (*TLWebPageEmpty) ProtoMessage() {} -func (*TLWebPageEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{762} +func (m *Upload_CdnFile_Data) Reset() { *m = Upload_CdnFile_Data{} } +func (m *Upload_CdnFile_Data) String() string { return proto.CompactTextString(m) } +func (*Upload_CdnFile_Data) ProtoMessage() {} +func (*Upload_CdnFile_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{708} } -func (m *TLWebPageEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLWebPageEmpty.Unmarshal(m, b) +func (m *Upload_CdnFile_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Upload_CdnFile_Data.Unmarshal(m, b) } -func (m *TLWebPageEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLWebPageEmpty.Marshal(b, m, deterministic) +func (m *Upload_CdnFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Upload_CdnFile_Data.Marshal(b, m, deterministic) } -func (dst *TLWebPageEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLWebPageEmpty.Merge(dst, src) +func (dst *Upload_CdnFile_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Upload_CdnFile_Data.Merge(dst, src) } -func (m *TLWebPageEmpty) XXX_Size() int { - return xxx_messageInfo_TLWebPageEmpty.Size(m) +func (m *Upload_CdnFile_Data) XXX_Size() int { + return xxx_messageInfo_Upload_CdnFile_Data.Size(m) } -func (m *TLWebPageEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLWebPageEmpty.DiscardUnknown(m) +func (m *Upload_CdnFile_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Upload_CdnFile_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLWebPageEmpty proto.InternalMessageInfo +var xxx_messageInfo_Upload_CdnFile_Data proto.InternalMessageInfo -func (m *TLWebPageEmpty) GetData2() *WebPage_Data { +func (m *Upload_CdnFile_Data) GetRequestToken() []byte { if m != nil { - return m.Data2 + return m.RequestToken } return nil } -// webPagePending#c586da1c id:long date:int = WebPage; -type TLWebPagePending struct { - Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Upload_CdnFile_Data) GetBytes() []byte { + if m != nil { + return m.Bytes + } + return nil } -func (m *TLWebPagePending) Reset() { *m = TLWebPagePending{} } -func (m *TLWebPagePending) String() string { return proto.CompactTextString(m) } -func (*TLWebPagePending) ProtoMessage() {} -func (*TLWebPagePending) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{763} +type Upload_CdnFile struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Upload_CdnFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLWebPagePending) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLWebPagePending.Unmarshal(m, b) + +func (m *Upload_CdnFile) Reset() { *m = Upload_CdnFile{} } +func (m *Upload_CdnFile) String() string { return proto.CompactTextString(m) } +func (*Upload_CdnFile) ProtoMessage() {} +func (*Upload_CdnFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{709} } -func (m *TLWebPagePending) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLWebPagePending.Marshal(b, m, deterministic) +func (m *Upload_CdnFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Upload_CdnFile.Unmarshal(m, b) } -func (dst *TLWebPagePending) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLWebPagePending.Merge(dst, src) +func (m *Upload_CdnFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Upload_CdnFile.Marshal(b, m, deterministic) } -func (m *TLWebPagePending) XXX_Size() int { - return xxx_messageInfo_TLWebPagePending.Size(m) +func (dst *Upload_CdnFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_Upload_CdnFile.Merge(dst, src) } -func (m *TLWebPagePending) XXX_DiscardUnknown() { - xxx_messageInfo_TLWebPagePending.DiscardUnknown(m) +func (m *Upload_CdnFile) XXX_Size() int { + return xxx_messageInfo_Upload_CdnFile.Size(m) +} +func (m *Upload_CdnFile) XXX_DiscardUnknown() { + xxx_messageInfo_Upload_CdnFile.DiscardUnknown(m) } -var xxx_messageInfo_TLWebPagePending proto.InternalMessageInfo +var xxx_messageInfo_Upload_CdnFile proto.InternalMessageInfo -func (m *TLWebPagePending) GetData2() *WebPage_Data { +func (m *Upload_CdnFile) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Upload_CdnFile) GetData2() *Upload_CdnFile_Data { if m != nil { return m.Data2 } return nil } -// webPage#5f07b4bc flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page = WebPage; -type TLWebPage struct { - Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile; +type TLUploadCdnFileReuploadNeeded struct { + Data2 *Upload_CdnFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLWebPage) Reset() { *m = TLWebPage{} } -func (m *TLWebPage) String() string { return proto.CompactTextString(m) } -func (*TLWebPage) ProtoMessage() {} -func (*TLWebPage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{764} +func (m *TLUploadCdnFileReuploadNeeded) Reset() { *m = TLUploadCdnFileReuploadNeeded{} } +func (m *TLUploadCdnFileReuploadNeeded) String() string { return proto.CompactTextString(m) } +func (*TLUploadCdnFileReuploadNeeded) ProtoMessage() {} +func (*TLUploadCdnFileReuploadNeeded) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{710} } -func (m *TLWebPage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLWebPage.Unmarshal(m, b) +func (m *TLUploadCdnFileReuploadNeeded) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUploadCdnFileReuploadNeeded.Unmarshal(m, b) } -func (m *TLWebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLWebPage.Marshal(b, m, deterministic) +func (m *TLUploadCdnFileReuploadNeeded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUploadCdnFileReuploadNeeded.Marshal(b, m, deterministic) } -func (dst *TLWebPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLWebPage.Merge(dst, src) +func (dst *TLUploadCdnFileReuploadNeeded) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUploadCdnFileReuploadNeeded.Merge(dst, src) } -func (m *TLWebPage) XXX_Size() int { - return xxx_messageInfo_TLWebPage.Size(m) +func (m *TLUploadCdnFileReuploadNeeded) XXX_Size() int { + return xxx_messageInfo_TLUploadCdnFileReuploadNeeded.Size(m) } -func (m *TLWebPage) XXX_DiscardUnknown() { - xxx_messageInfo_TLWebPage.DiscardUnknown(m) +func (m *TLUploadCdnFileReuploadNeeded) XXX_DiscardUnknown() { + xxx_messageInfo_TLUploadCdnFileReuploadNeeded.DiscardUnknown(m) } -var xxx_messageInfo_TLWebPage proto.InternalMessageInfo +var xxx_messageInfo_TLUploadCdnFileReuploadNeeded proto.InternalMessageInfo -func (m *TLWebPage) GetData2() *WebPage_Data { +func (m *TLUploadCdnFileReuploadNeeded) GetData2() *Upload_CdnFile_Data { if m != nil { return m.Data2 } return nil } -// webPageNotModified#85849473 = WebPage; -type TLWebPageNotModified struct { - Data2 *WebPage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile; +type TLUploadCdnFile struct { + Data2 *Upload_CdnFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLWebPageNotModified) Reset() { *m = TLWebPageNotModified{} } -func (m *TLWebPageNotModified) String() string { return proto.CompactTextString(m) } -func (*TLWebPageNotModified) ProtoMessage() {} -func (*TLWebPageNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{765} +func (m *TLUploadCdnFile) Reset() { *m = TLUploadCdnFile{} } +func (m *TLUploadCdnFile) String() string { return proto.CompactTextString(m) } +func (*TLUploadCdnFile) ProtoMessage() {} +func (*TLUploadCdnFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{711} } -func (m *TLWebPageNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLWebPageNotModified.Unmarshal(m, b) +func (m *TLUploadCdnFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUploadCdnFile.Unmarshal(m, b) } -func (m *TLWebPageNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLWebPageNotModified.Marshal(b, m, deterministic) +func (m *TLUploadCdnFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUploadCdnFile.Marshal(b, m, deterministic) } -func (dst *TLWebPageNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLWebPageNotModified.Merge(dst, src) +func (dst *TLUploadCdnFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUploadCdnFile.Merge(dst, src) } -func (m *TLWebPageNotModified) XXX_Size() int { - return xxx_messageInfo_TLWebPageNotModified.Size(m) +func (m *TLUploadCdnFile) XXX_Size() int { + return xxx_messageInfo_TLUploadCdnFile.Size(m) } -func (m *TLWebPageNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLWebPageNotModified.DiscardUnknown(m) +func (m *TLUploadCdnFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLUploadCdnFile.DiscardUnknown(m) } -var xxx_messageInfo_TLWebPageNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLUploadCdnFile proto.InternalMessageInfo -func (m *TLWebPageNotModified) GetData2() *WebPage_Data { +func (m *TLUploadCdnFile) GetData2() *Upload_CdnFile_Data { if m != nil { return m.Data2 } @@ -36764,357 +35430,262 @@ func (m *TLWebPageNotModified) GetData2() *WebPage_Data { } // ///////////////////////////////////////////////////////////////////////////// -// help_RecentMeUrls <-- -// + TL_help_recentMeUrls +// LangPackString <-- +// + TL_langPackString +// + TL_langPackStringPluralized +// + TL_langPackStringDeleted // -type Help_RecentMeUrls_Data struct { - Urls []*RecentMeUrl `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"` - Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type LangPackString_Data struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + ZeroValue string `protobuf:"bytes,3,opt,name=zero_value,json=zeroValue,proto3" json:"zero_value,omitempty"` + OneValue string `protobuf:"bytes,4,opt,name=one_value,json=oneValue,proto3" json:"one_value,omitempty"` + TwoValue string `protobuf:"bytes,5,opt,name=two_value,json=twoValue,proto3" json:"two_value,omitempty"` + FewValue string `protobuf:"bytes,6,opt,name=few_value,json=fewValue,proto3" json:"few_value,omitempty"` + ManyValue string `protobuf:"bytes,7,opt,name=many_value,json=manyValue,proto3" json:"many_value,omitempty"` + OtherValue string `protobuf:"bytes,8,opt,name=other_value,json=otherValue,proto3" json:"other_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_RecentMeUrls_Data) Reset() { *m = Help_RecentMeUrls_Data{} } -func (m *Help_RecentMeUrls_Data) String() string { return proto.CompactTextString(m) } -func (*Help_RecentMeUrls_Data) ProtoMessage() {} -func (*Help_RecentMeUrls_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{766} +func (m *LangPackString_Data) Reset() { *m = LangPackString_Data{} } +func (m *LangPackString_Data) String() string { return proto.CompactTextString(m) } +func (*LangPackString_Data) ProtoMessage() {} +func (*LangPackString_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{712} } -func (m *Help_RecentMeUrls_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_RecentMeUrls_Data.Unmarshal(m, b) +func (m *LangPackString_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LangPackString_Data.Unmarshal(m, b) } -func (m *Help_RecentMeUrls_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_RecentMeUrls_Data.Marshal(b, m, deterministic) +func (m *LangPackString_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LangPackString_Data.Marshal(b, m, deterministic) } -func (dst *Help_RecentMeUrls_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_RecentMeUrls_Data.Merge(dst, src) +func (dst *LangPackString_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_LangPackString_Data.Merge(dst, src) } -func (m *Help_RecentMeUrls_Data) XXX_Size() int { - return xxx_messageInfo_Help_RecentMeUrls_Data.Size(m) +func (m *LangPackString_Data) XXX_Size() int { + return xxx_messageInfo_LangPackString_Data.Size(m) } -func (m *Help_RecentMeUrls_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_RecentMeUrls_Data.DiscardUnknown(m) +func (m *LangPackString_Data) XXX_DiscardUnknown() { + xxx_messageInfo_LangPackString_Data.DiscardUnknown(m) } -var xxx_messageInfo_Help_RecentMeUrls_Data proto.InternalMessageInfo +var xxx_messageInfo_LangPackString_Data proto.InternalMessageInfo -func (m *Help_RecentMeUrls_Data) GetUrls() []*RecentMeUrl { +func (m *LangPackString_Data) GetKey() string { if m != nil { - return m.Urls + return m.Key } - return nil + return "" } -func (m *Help_RecentMeUrls_Data) GetChats() []*Chat { +func (m *LangPackString_Data) GetValue() string { if m != nil { - return m.Chats + return m.Value } - return nil + return "" } -func (m *Help_RecentMeUrls_Data) GetUsers() []*User { +func (m *LangPackString_Data) GetZeroValue() string { if m != nil { - return m.Users + return m.ZeroValue } - return nil + return "" } -type Help_RecentMeUrls struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_RecentMeUrls_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *LangPackString_Data) GetOneValue() string { + if m != nil { + return m.OneValue + } + return "" } -func (m *Help_RecentMeUrls) Reset() { *m = Help_RecentMeUrls{} } -func (m *Help_RecentMeUrls) String() string { return proto.CompactTextString(m) } -func (*Help_RecentMeUrls) ProtoMessage() {} -func (*Help_RecentMeUrls) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{767} -} -func (m *Help_RecentMeUrls) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_RecentMeUrls.Unmarshal(m, b) -} -func (m *Help_RecentMeUrls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_RecentMeUrls.Marshal(b, m, deterministic) -} -func (dst *Help_RecentMeUrls) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_RecentMeUrls.Merge(dst, src) -} -func (m *Help_RecentMeUrls) XXX_Size() int { - return xxx_messageInfo_Help_RecentMeUrls.Size(m) -} -func (m *Help_RecentMeUrls) XXX_DiscardUnknown() { - xxx_messageInfo_Help_RecentMeUrls.DiscardUnknown(m) +func (m *LangPackString_Data) GetTwoValue() string { + if m != nil { + return m.TwoValue + } + return "" } -var xxx_messageInfo_Help_RecentMeUrls proto.InternalMessageInfo +func (m *LangPackString_Data) GetFewValue() string { + if m != nil { + return m.FewValue + } + return "" +} -func (m *Help_RecentMeUrls) GetConstructor() TLConstructor { +func (m *LangPackString_Data) GetManyValue() string { if m != nil { - return m.Constructor + return m.ManyValue } - return TLConstructor_CRC32_UNKNOWN + return "" } -func (m *Help_RecentMeUrls) GetData2() *Help_RecentMeUrls_Data { +func (m *LangPackString_Data) GetOtherValue() string { if m != nil { - return m.Data2 + return m.OtherValue } - return nil + return "" } -// help.recentMeUrls#e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls; -type TLHelpRecentMeUrls struct { - Data2 *Help_RecentMeUrls_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLHelpRecentMeUrls) Reset() { *m = TLHelpRecentMeUrls{} } -func (m *TLHelpRecentMeUrls) String() string { return proto.CompactTextString(m) } -func (*TLHelpRecentMeUrls) ProtoMessage() {} -func (*TLHelpRecentMeUrls) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{768} -} -func (m *TLHelpRecentMeUrls) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpRecentMeUrls.Unmarshal(m, b) -} -func (m *TLHelpRecentMeUrls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpRecentMeUrls.Marshal(b, m, deterministic) -} -func (dst *TLHelpRecentMeUrls) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpRecentMeUrls.Merge(dst, src) -} -func (m *TLHelpRecentMeUrls) XXX_Size() int { - return xxx_messageInfo_TLHelpRecentMeUrls.Size(m) -} -func (m *TLHelpRecentMeUrls) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpRecentMeUrls.DiscardUnknown(m) -} - -var xxx_messageInfo_TLHelpRecentMeUrls proto.InternalMessageInfo - -func (m *TLHelpRecentMeUrls) GetData2() *Help_RecentMeUrls_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// ///////////////////////////////////////////////////////////////////////////// -// SecureFile <-- -// + TL_secureFileEmpty -// + TL_secureFile -// -type SecureFile_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` - DcId int32 `protobuf:"varint,4,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` - Date int32 `protobuf:"varint,5,opt,name=date,proto3" json:"date,omitempty"` - FileHash []byte `protobuf:"bytes,6,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"` - Secret []byte `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type LangPackString struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *LangPackString_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureFile_Data) Reset() { *m = SecureFile_Data{} } -func (m *SecureFile_Data) String() string { return proto.CompactTextString(m) } -func (*SecureFile_Data) ProtoMessage() {} -func (*SecureFile_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{769} -} -func (m *SecureFile_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureFile_Data.Unmarshal(m, b) -} -func (m *SecureFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureFile_Data.Marshal(b, m, deterministic) -} -func (dst *SecureFile_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureFile_Data.Merge(dst, src) -} -func (m *SecureFile_Data) XXX_Size() int { - return xxx_messageInfo_SecureFile_Data.Size(m) +func (m *LangPackString) Reset() { *m = LangPackString{} } +func (m *LangPackString) String() string { return proto.CompactTextString(m) } +func (*LangPackString) ProtoMessage() {} +func (*LangPackString) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{713} } -func (m *SecureFile_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecureFile_Data.DiscardUnknown(m) +func (m *LangPackString) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LangPackString.Unmarshal(m, b) } - -var xxx_messageInfo_SecureFile_Data proto.InternalMessageInfo - -func (m *SecureFile_Data) GetId() int64 { - if m != nil { - return m.Id - } - return 0 +func (m *LangPackString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LangPackString.Marshal(b, m, deterministic) } - -func (m *SecureFile_Data) GetAccessHash() int64 { - if m != nil { - return m.AccessHash - } - return 0 +func (dst *LangPackString) XXX_Merge(src proto.Message) { + xxx_messageInfo_LangPackString.Merge(dst, src) } - -func (m *SecureFile_Data) GetSize() int32 { - if m != nil { - return m.Size - } - return 0 +func (m *LangPackString) XXX_Size() int { + return xxx_messageInfo_LangPackString.Size(m) } - -func (m *SecureFile_Data) GetDcId() int32 { - if m != nil { - return m.DcId - } - return 0 +func (m *LangPackString) XXX_DiscardUnknown() { + xxx_messageInfo_LangPackString.DiscardUnknown(m) } -func (m *SecureFile_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 -} +var xxx_messageInfo_LangPackString proto.InternalMessageInfo -func (m *SecureFile_Data) GetFileHash() []byte { +func (m *LangPackString) GetConstructor() TLConstructor { if m != nil { - return m.FileHash + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *SecureFile_Data) GetSecret() []byte { +func (m *LangPackString) GetData2() *LangPackString_Data { if m != nil { - return m.Secret + return m.Data2 } return nil } -type SecureFile struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// langPackString#cad181f6 key:string value:string = LangPackString; +type TLLangPackString struct { + Data2 *LangPackString_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureFile) Reset() { *m = SecureFile{} } -func (m *SecureFile) String() string { return proto.CompactTextString(m) } -func (*SecureFile) ProtoMessage() {} -func (*SecureFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{770} +func (m *TLLangPackString) Reset() { *m = TLLangPackString{} } +func (m *TLLangPackString) String() string { return proto.CompactTextString(m) } +func (*TLLangPackString) ProtoMessage() {} +func (*TLLangPackString) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{714} } -func (m *SecureFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureFile.Unmarshal(m, b) +func (m *TLLangPackString) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLLangPackString.Unmarshal(m, b) } -func (m *SecureFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureFile.Marshal(b, m, deterministic) +func (m *TLLangPackString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLLangPackString.Marshal(b, m, deterministic) } -func (dst *SecureFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureFile.Merge(dst, src) +func (dst *TLLangPackString) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLLangPackString.Merge(dst, src) } -func (m *SecureFile) XXX_Size() int { - return xxx_messageInfo_SecureFile.Size(m) +func (m *TLLangPackString) XXX_Size() int { + return xxx_messageInfo_TLLangPackString.Size(m) } -func (m *SecureFile) XXX_DiscardUnknown() { - xxx_messageInfo_SecureFile.DiscardUnknown(m) +func (m *TLLangPackString) XXX_DiscardUnknown() { + xxx_messageInfo_TLLangPackString.DiscardUnknown(m) } -var xxx_messageInfo_SecureFile proto.InternalMessageInfo - -func (m *SecureFile) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLLangPackString proto.InternalMessageInfo -func (m *SecureFile) GetData2() *SecureFile_Data { +func (m *TLLangPackString) GetData2() *LangPackString_Data { if m != nil { return m.Data2 } return nil } -// secureFileEmpty#64199744 = SecureFile; -type TLSecureFileEmpty struct { - Data2 *SecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString; +type TLLangPackStringPluralized struct { + Data2 *LangPackString_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureFileEmpty) Reset() { *m = TLSecureFileEmpty{} } -func (m *TLSecureFileEmpty) String() string { return proto.CompactTextString(m) } -func (*TLSecureFileEmpty) ProtoMessage() {} -func (*TLSecureFileEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{771} +func (m *TLLangPackStringPluralized) Reset() { *m = TLLangPackStringPluralized{} } +func (m *TLLangPackStringPluralized) String() string { return proto.CompactTextString(m) } +func (*TLLangPackStringPluralized) ProtoMessage() {} +func (*TLLangPackStringPluralized) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{715} } -func (m *TLSecureFileEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureFileEmpty.Unmarshal(m, b) +func (m *TLLangPackStringPluralized) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLLangPackStringPluralized.Unmarshal(m, b) } -func (m *TLSecureFileEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureFileEmpty.Marshal(b, m, deterministic) +func (m *TLLangPackStringPluralized) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLLangPackStringPluralized.Marshal(b, m, deterministic) } -func (dst *TLSecureFileEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureFileEmpty.Merge(dst, src) +func (dst *TLLangPackStringPluralized) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLLangPackStringPluralized.Merge(dst, src) } -func (m *TLSecureFileEmpty) XXX_Size() int { - return xxx_messageInfo_TLSecureFileEmpty.Size(m) +func (m *TLLangPackStringPluralized) XXX_Size() int { + return xxx_messageInfo_TLLangPackStringPluralized.Size(m) } -func (m *TLSecureFileEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureFileEmpty.DiscardUnknown(m) +func (m *TLLangPackStringPluralized) XXX_DiscardUnknown() { + xxx_messageInfo_TLLangPackStringPluralized.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureFileEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLLangPackStringPluralized proto.InternalMessageInfo -func (m *TLSecureFileEmpty) GetData2() *SecureFile_Data { +func (m *TLLangPackStringPluralized) GetData2() *LangPackString_Data { if m != nil { return m.Data2 } return nil } -// secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile; -type TLSecureFile struct { - Data2 *SecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// langPackStringDeleted#2979eeb2 key:string = LangPackString; +type TLLangPackStringDeleted struct { + Data2 *LangPackString_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureFile) Reset() { *m = TLSecureFile{} } -func (m *TLSecureFile) String() string { return proto.CompactTextString(m) } -func (*TLSecureFile) ProtoMessage() {} -func (*TLSecureFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{772} +func (m *TLLangPackStringDeleted) Reset() { *m = TLLangPackStringDeleted{} } +func (m *TLLangPackStringDeleted) String() string { return proto.CompactTextString(m) } +func (*TLLangPackStringDeleted) ProtoMessage() {} +func (*TLLangPackStringDeleted) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{716} } -func (m *TLSecureFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureFile.Unmarshal(m, b) +func (m *TLLangPackStringDeleted) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLLangPackStringDeleted.Unmarshal(m, b) } -func (m *TLSecureFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureFile.Marshal(b, m, deterministic) +func (m *TLLangPackStringDeleted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLLangPackStringDeleted.Marshal(b, m, deterministic) } -func (dst *TLSecureFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureFile.Merge(dst, src) +func (dst *TLLangPackStringDeleted) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLLangPackStringDeleted.Merge(dst, src) } -func (m *TLSecureFile) XXX_Size() int { - return xxx_messageInfo_TLSecureFile.Size(m) +func (m *TLLangPackStringDeleted) XXX_Size() int { + return xxx_messageInfo_TLLangPackStringDeleted.Size(m) } -func (m *TLSecureFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureFile.DiscardUnknown(m) +func (m *TLLangPackStringDeleted) XXX_DiscardUnknown() { + xxx_messageInfo_TLLangPackStringDeleted.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureFile proto.InternalMessageInfo +var xxx_messageInfo_TLLangPackStringDeleted proto.InternalMessageInfo -func (m *TLSecureFile) GetData2() *SecureFile_Data { +func (m *TLLangPackStringDeleted) GetData2() *LangPackString_Data { if m != nil { return m.Data2 } @@ -37122,533 +35693,590 @@ func (m *TLSecureFile) GetData2() *SecureFile_Data { } // ///////////////////////////////////////////////////////////////////////////// -// BotInlineMessage <-- -// + TL_botInlineMessageMediaAuto -// + TL_botInlineMessageText -// + TL_botInlineMessageMediaGeo -// + TL_botInlineMessageMediaVenue -// + TL_botInlineMessageMediaContact +// Updates <-- +// + TL_updateAccountResetAuthorization +// + TL_updatesTooLong +// + TL_updateShortMessage +// + TL_updateShortChatMessage +// + TL_updateShort +// + TL_updatesCombined +// + TL_updates +// + TL_updateShortSentMessage // -type BotInlineMessage_Data struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` - ReplyMarkup *ReplyMarkup `protobuf:"bytes,3,opt,name=reply_markup,json=replyMarkup,proto3" json:"reply_markup,omitempty"` - NoWebpage bool `protobuf:"varint,4,opt,name=no_webpage,json=noWebpage,proto3" json:"no_webpage,omitempty"` - Geo *GeoPoint `protobuf:"bytes,5,opt,name=geo,proto3" json:"geo,omitempty"` - Period int32 `protobuf:"varint,6,opt,name=period,proto3" json:"period,omitempty"` - Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` - Address string `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"` - Provider string `protobuf:"bytes,9,opt,name=provider,proto3" json:"provider,omitempty"` - VenueId string `protobuf:"bytes,10,opt,name=venue_id,json=venueId,proto3" json:"venue_id,omitempty"` - VenueType string `protobuf:"bytes,11,opt,name=venue_type,json=venueType,proto3" json:"venue_type,omitempty"` - PhoneNumber string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` - FirstName string `protobuf:"bytes,13,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,14,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Vcard string `protobuf:"bytes,15,opt,name=vcard,proto3" json:"vcard,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Updates_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + AuthKeyId int64 `protobuf:"varint,2,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` + Out bool `protobuf:"varint,3,opt,name=out,proto3" json:"out,omitempty"` + Mentioned bool `protobuf:"varint,4,opt,name=mentioned,proto3" json:"mentioned,omitempty"` + MediaUnread bool `protobuf:"varint,5,opt,name=media_unread,json=mediaUnread,proto3" json:"media_unread,omitempty"` + Silent bool `protobuf:"varint,6,opt,name=silent,proto3" json:"silent,omitempty"` + Id int32 `protobuf:"varint,7,opt,name=id,proto3" json:"id,omitempty"` + Message string `protobuf:"bytes,8,opt,name=message,proto3" json:"message,omitempty"` + Pts int32 `protobuf:"varint,9,opt,name=pts,proto3" json:"pts,omitempty"` + PtsCount int32 `protobuf:"varint,10,opt,name=pts_count,json=ptsCount,proto3" json:"pts_count,omitempty"` + Date int32 `protobuf:"varint,11,opt,name=date,proto3" json:"date,omitempty"` + FwdFrom *MessageFwdHeader `protobuf:"bytes,12,opt,name=fwd_from,json=fwdFrom,proto3" json:"fwd_from,omitempty"` + ViaBotId int32 `protobuf:"varint,13,opt,name=via_bot_id,json=viaBotId,proto3" json:"via_bot_id,omitempty"` + ReplyToMsgId int32 `protobuf:"varint,14,opt,name=reply_to_msg_id,json=replyToMsgId,proto3" json:"reply_to_msg_id,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,15,rep,name=entities,proto3" json:"entities,omitempty"` + FromId int32 `protobuf:"varint,16,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` + ChatId int32 `protobuf:"varint,17,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Update *Update `protobuf:"bytes,18,opt,name=update,proto3" json:"update,omitempty"` + Updates []*Update `protobuf:"bytes,19,rep,name=updates,proto3" json:"updates,omitempty"` + Users []*User `protobuf:"bytes,20,rep,name=users,proto3" json:"users,omitempty"` + Chats []*Chat `protobuf:"bytes,21,rep,name=chats,proto3" json:"chats,omitempty"` + SeqStart int32 `protobuf:"varint,22,opt,name=seq_start,json=seqStart,proto3" json:"seq_start,omitempty"` + Seq int32 `protobuf:"varint,23,opt,name=seq,proto3" json:"seq,omitempty"` + Media *MessageMedia `protobuf:"bytes,24,opt,name=media,proto3" json:"media,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BotInlineMessage_Data) Reset() { *m = BotInlineMessage_Data{} } -func (m *BotInlineMessage_Data) String() string { return proto.CompactTextString(m) } -func (*BotInlineMessage_Data) ProtoMessage() {} -func (*BotInlineMessage_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{773} +func (m *Updates_Data) Reset() { *m = Updates_Data{} } +func (m *Updates_Data) String() string { return proto.CompactTextString(m) } +func (*Updates_Data) ProtoMessage() {} +func (*Updates_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{717} } -func (m *BotInlineMessage_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BotInlineMessage_Data.Unmarshal(m, b) +func (m *Updates_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Updates_Data.Unmarshal(m, b) } -func (m *BotInlineMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BotInlineMessage_Data.Marshal(b, m, deterministic) +func (m *Updates_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Updates_Data.Marshal(b, m, deterministic) } -func (dst *BotInlineMessage_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_BotInlineMessage_Data.Merge(dst, src) +func (dst *Updates_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Updates_Data.Merge(dst, src) } -func (m *BotInlineMessage_Data) XXX_Size() int { - return xxx_messageInfo_BotInlineMessage_Data.Size(m) +func (m *Updates_Data) XXX_Size() int { + return xxx_messageInfo_Updates_Data.Size(m) } -func (m *BotInlineMessage_Data) XXX_DiscardUnknown() { - xxx_messageInfo_BotInlineMessage_Data.DiscardUnknown(m) +func (m *Updates_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Updates_Data.DiscardUnknown(m) } -var xxx_messageInfo_BotInlineMessage_Data proto.InternalMessageInfo +var xxx_messageInfo_Updates_Data proto.InternalMessageInfo -func (m *BotInlineMessage_Data) GetMessage() string { +func (m *Updates_Data) GetUserId() int32 { if m != nil { - return m.Message + return m.UserId } - return "" + return 0 } -func (m *BotInlineMessage_Data) GetEntities() []*MessageEntity { +func (m *Updates_Data) GetAuthKeyId() int64 { if m != nil { - return m.Entities + return m.AuthKeyId } - return nil + return 0 } -func (m *BotInlineMessage_Data) GetReplyMarkup() *ReplyMarkup { +func (m *Updates_Data) GetOut() bool { if m != nil { - return m.ReplyMarkup + return m.Out } - return nil + return false } -func (m *BotInlineMessage_Data) GetNoWebpage() bool { +func (m *Updates_Data) GetMentioned() bool { if m != nil { - return m.NoWebpage + return m.Mentioned } return false } -func (m *BotInlineMessage_Data) GetGeo() *GeoPoint { +func (m *Updates_Data) GetMediaUnread() bool { if m != nil { - return m.Geo + return m.MediaUnread } - return nil + return false } -func (m *BotInlineMessage_Data) GetPeriod() int32 { +func (m *Updates_Data) GetSilent() bool { if m != nil { - return m.Period + return m.Silent } - return 0 + return false } -func (m *BotInlineMessage_Data) GetTitle() string { +func (m *Updates_Data) GetId() int32 { if m != nil { - return m.Title + return m.Id } - return "" + return 0 } -func (m *BotInlineMessage_Data) GetAddress() string { +func (m *Updates_Data) GetMessage() string { if m != nil { - return m.Address + return m.Message } return "" } -func (m *BotInlineMessage_Data) GetProvider() string { +func (m *Updates_Data) GetPts() int32 { if m != nil { - return m.Provider + return m.Pts } - return "" + return 0 } -func (m *BotInlineMessage_Data) GetVenueId() string { +func (m *Updates_Data) GetPtsCount() int32 { if m != nil { - return m.VenueId + return m.PtsCount } - return "" + return 0 } -func (m *BotInlineMessage_Data) GetVenueType() string { +func (m *Updates_Data) GetDate() int32 { if m != nil { - return m.VenueType + return m.Date } - return "" + return 0 } -func (m *BotInlineMessage_Data) GetPhoneNumber() string { +func (m *Updates_Data) GetFwdFrom() *MessageFwdHeader { if m != nil { - return m.PhoneNumber + return m.FwdFrom } - return "" + return nil } -func (m *BotInlineMessage_Data) GetFirstName() string { +func (m *Updates_Data) GetViaBotId() int32 { if m != nil { - return m.FirstName + return m.ViaBotId } - return "" + return 0 } -func (m *BotInlineMessage_Data) GetLastName() string { +func (m *Updates_Data) GetReplyToMsgId() int32 { if m != nil { - return m.LastName + return m.ReplyToMsgId } - return "" + return 0 } -func (m *BotInlineMessage_Data) GetVcard() string { +func (m *Updates_Data) GetEntities() []*MessageEntity { if m != nil { - return m.Vcard + return m.Entities } - return "" + return nil } -type BotInlineMessage struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Updates_Data) GetFromId() int32 { + if m != nil { + return m.FromId + } + return 0 } -func (m *BotInlineMessage) Reset() { *m = BotInlineMessage{} } -func (m *BotInlineMessage) String() string { return proto.CompactTextString(m) } -func (*BotInlineMessage) ProtoMessage() {} -func (*BotInlineMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{774} -} -func (m *BotInlineMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BotInlineMessage.Unmarshal(m, b) -} -func (m *BotInlineMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BotInlineMessage.Marshal(b, m, deterministic) -} -func (dst *BotInlineMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_BotInlineMessage.Merge(dst, src) -} -func (m *BotInlineMessage) XXX_Size() int { - return xxx_messageInfo_BotInlineMessage.Size(m) -} -func (m *BotInlineMessage) XXX_DiscardUnknown() { - xxx_messageInfo_BotInlineMessage.DiscardUnknown(m) +func (m *Updates_Data) GetChatId() int32 { + if m != nil { + return m.ChatId + } + return 0 } -var xxx_messageInfo_BotInlineMessage proto.InternalMessageInfo - -func (m *BotInlineMessage) GetConstructor() TLConstructor { +func (m *Updates_Data) GetUpdate() *Update { if m != nil { - return m.Constructor + return m.Update } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *BotInlineMessage) GetData2() *BotInlineMessage_Data { +func (m *Updates_Data) GetUpdates() []*Update { if m != nil { - return m.Data2 + return m.Updates } return nil } -// botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -type TLBotInlineMessageMediaAuto struct { - Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Updates_Data) GetUsers() []*User { + if m != nil { + return m.Users + } + return nil } -func (m *TLBotInlineMessageMediaAuto) Reset() { *m = TLBotInlineMessageMediaAuto{} } -func (m *TLBotInlineMessageMediaAuto) String() string { return proto.CompactTextString(m) } -func (*TLBotInlineMessageMediaAuto) ProtoMessage() {} -func (*TLBotInlineMessageMediaAuto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{775} +func (m *Updates_Data) GetChats() []*Chat { + if m != nil { + return m.Chats + } + return nil } -func (m *TLBotInlineMessageMediaAuto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBotInlineMessageMediaAuto.Unmarshal(m, b) + +func (m *Updates_Data) GetSeqStart() int32 { + if m != nil { + return m.SeqStart + } + return 0 } -func (m *TLBotInlineMessageMediaAuto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBotInlineMessageMediaAuto.Marshal(b, m, deterministic) + +func (m *Updates_Data) GetSeq() int32 { + if m != nil { + return m.Seq + } + return 0 } -func (dst *TLBotInlineMessageMediaAuto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBotInlineMessageMediaAuto.Merge(dst, src) + +func (m *Updates_Data) GetMedia() *MessageMedia { + if m != nil { + return m.Media + } + return nil } -func (m *TLBotInlineMessageMediaAuto) XXX_Size() int { - return xxx_messageInfo_TLBotInlineMessageMediaAuto.Size(m) + +type Updates struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBotInlineMessageMediaAuto) XXX_DiscardUnknown() { - xxx_messageInfo_TLBotInlineMessageMediaAuto.DiscardUnknown(m) + +func (m *Updates) Reset() { *m = Updates{} } +func (m *Updates) String() string { return proto.CompactTextString(m) } +func (*Updates) ProtoMessage() {} +func (*Updates) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{718} +} +func (m *Updates) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Updates.Unmarshal(m, b) +} +func (m *Updates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Updates.Marshal(b, m, deterministic) +} +func (dst *Updates) XXX_Merge(src proto.Message) { + xxx_messageInfo_Updates.Merge(dst, src) +} +func (m *Updates) XXX_Size() int { + return xxx_messageInfo_Updates.Size(m) +} +func (m *Updates) XXX_DiscardUnknown() { + xxx_messageInfo_Updates.DiscardUnknown(m) } -var xxx_messageInfo_TLBotInlineMessageMediaAuto proto.InternalMessageInfo +var xxx_messageInfo_Updates proto.InternalMessageInfo -func (m *TLBotInlineMessageMediaAuto) GetData2() *BotInlineMessage_Data { +func (m *Updates) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Updates) GetData2() *Updates_Data { if m != nil { return m.Data2 } return nil } -// botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -type TLBotInlineMessageText struct { - Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateAccountResetAuthorization user_id:int auth_key_id:long = Updates; +type TLUpdateAccountResetAuthorization struct { + Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBotInlineMessageText) Reset() { *m = TLBotInlineMessageText{} } -func (m *TLBotInlineMessageText) String() string { return proto.CompactTextString(m) } -func (*TLBotInlineMessageText) ProtoMessage() {} -func (*TLBotInlineMessageText) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{776} +func (m *TLUpdateAccountResetAuthorization) Reset() { *m = TLUpdateAccountResetAuthorization{} } +func (m *TLUpdateAccountResetAuthorization) String() string { return proto.CompactTextString(m) } +func (*TLUpdateAccountResetAuthorization) ProtoMessage() {} +func (*TLUpdateAccountResetAuthorization) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{719} } -func (m *TLBotInlineMessageText) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBotInlineMessageText.Unmarshal(m, b) +func (m *TLUpdateAccountResetAuthorization) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateAccountResetAuthorization.Unmarshal(m, b) } -func (m *TLBotInlineMessageText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBotInlineMessageText.Marshal(b, m, deterministic) +func (m *TLUpdateAccountResetAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateAccountResetAuthorization.Marshal(b, m, deterministic) } -func (dst *TLBotInlineMessageText) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBotInlineMessageText.Merge(dst, src) +func (dst *TLUpdateAccountResetAuthorization) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateAccountResetAuthorization.Merge(dst, src) } -func (m *TLBotInlineMessageText) XXX_Size() int { - return xxx_messageInfo_TLBotInlineMessageText.Size(m) +func (m *TLUpdateAccountResetAuthorization) XXX_Size() int { + return xxx_messageInfo_TLUpdateAccountResetAuthorization.Size(m) } -func (m *TLBotInlineMessageText) XXX_DiscardUnknown() { - xxx_messageInfo_TLBotInlineMessageText.DiscardUnknown(m) +func (m *TLUpdateAccountResetAuthorization) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateAccountResetAuthorization.DiscardUnknown(m) } -var xxx_messageInfo_TLBotInlineMessageText proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateAccountResetAuthorization proto.InternalMessageInfo -func (m *TLBotInlineMessageText) GetData2() *BotInlineMessage_Data { +func (m *TLUpdateAccountResetAuthorization) GetData2() *Updates_Data { if m != nil { return m.Data2 } return nil } -// botInlineMessageMediaGeo#b722de65 flags:# geo:GeoPoint period:int reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -type TLBotInlineMessageMediaGeo struct { - Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updatesTooLong#e317af7e = Updates; +type TLUpdatesTooLong struct { + Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBotInlineMessageMediaGeo) Reset() { *m = TLBotInlineMessageMediaGeo{} } -func (m *TLBotInlineMessageMediaGeo) String() string { return proto.CompactTextString(m) } -func (*TLBotInlineMessageMediaGeo) ProtoMessage() {} -func (*TLBotInlineMessageMediaGeo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{777} +func (m *TLUpdatesTooLong) Reset() { *m = TLUpdatesTooLong{} } +func (m *TLUpdatesTooLong) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesTooLong) ProtoMessage() {} +func (*TLUpdatesTooLong) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{720} } -func (m *TLBotInlineMessageMediaGeo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBotInlineMessageMediaGeo.Unmarshal(m, b) +func (m *TLUpdatesTooLong) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesTooLong.Unmarshal(m, b) } -func (m *TLBotInlineMessageMediaGeo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBotInlineMessageMediaGeo.Marshal(b, m, deterministic) +func (m *TLUpdatesTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesTooLong.Marshal(b, m, deterministic) } -func (dst *TLBotInlineMessageMediaGeo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBotInlineMessageMediaGeo.Merge(dst, src) +func (dst *TLUpdatesTooLong) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesTooLong.Merge(dst, src) } -func (m *TLBotInlineMessageMediaGeo) XXX_Size() int { - return xxx_messageInfo_TLBotInlineMessageMediaGeo.Size(m) +func (m *TLUpdatesTooLong) XXX_Size() int { + return xxx_messageInfo_TLUpdatesTooLong.Size(m) } -func (m *TLBotInlineMessageMediaGeo) XXX_DiscardUnknown() { - xxx_messageInfo_TLBotInlineMessageMediaGeo.DiscardUnknown(m) +func (m *TLUpdatesTooLong) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesTooLong.DiscardUnknown(m) } -var xxx_messageInfo_TLBotInlineMessageMediaGeo proto.InternalMessageInfo +var xxx_messageInfo_TLUpdatesTooLong proto.InternalMessageInfo -func (m *TLBotInlineMessageMediaGeo) GetData2() *BotInlineMessage_Data { +func (m *TLUpdatesTooLong) GetData2() *Updates_Data { if m != nil { return m.Data2 } return nil } -// botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -type TLBotInlineMessageMediaVenue struct { - Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateShortMessage#914fbf11 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; +type TLUpdateShortMessage struct { + Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBotInlineMessageMediaVenue) Reset() { *m = TLBotInlineMessageMediaVenue{} } -func (m *TLBotInlineMessageMediaVenue) String() string { return proto.CompactTextString(m) } -func (*TLBotInlineMessageMediaVenue) ProtoMessage() {} -func (*TLBotInlineMessageMediaVenue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{778} +func (m *TLUpdateShortMessage) Reset() { *m = TLUpdateShortMessage{} } +func (m *TLUpdateShortMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateShortMessage) ProtoMessage() {} +func (*TLUpdateShortMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{721} } -func (m *TLBotInlineMessageMediaVenue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBotInlineMessageMediaVenue.Unmarshal(m, b) +func (m *TLUpdateShortMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateShortMessage.Unmarshal(m, b) } -func (m *TLBotInlineMessageMediaVenue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBotInlineMessageMediaVenue.Marshal(b, m, deterministic) +func (m *TLUpdateShortMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateShortMessage.Marshal(b, m, deterministic) } -func (dst *TLBotInlineMessageMediaVenue) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBotInlineMessageMediaVenue.Merge(dst, src) +func (dst *TLUpdateShortMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateShortMessage.Merge(dst, src) } -func (m *TLBotInlineMessageMediaVenue) XXX_Size() int { - return xxx_messageInfo_TLBotInlineMessageMediaVenue.Size(m) +func (m *TLUpdateShortMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateShortMessage.Size(m) } -func (m *TLBotInlineMessageMediaVenue) XXX_DiscardUnknown() { - xxx_messageInfo_TLBotInlineMessageMediaVenue.DiscardUnknown(m) +func (m *TLUpdateShortMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateShortMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLBotInlineMessageMediaVenue proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateShortMessage proto.InternalMessageInfo -func (m *TLBotInlineMessageMediaVenue) GetData2() *BotInlineMessage_Data { +func (m *TLUpdateShortMessage) GetData2() *Updates_Data { if m != nil { return m.Data2 } return nil } -// botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -type TLBotInlineMessageMediaContact struct { - Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateShortChatMessage#16812688 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; +type TLUpdateShortChatMessage struct { + Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBotInlineMessageMediaContact) Reset() { *m = TLBotInlineMessageMediaContact{} } -func (m *TLBotInlineMessageMediaContact) String() string { return proto.CompactTextString(m) } -func (*TLBotInlineMessageMediaContact) ProtoMessage() {} -func (*TLBotInlineMessageMediaContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{779} +func (m *TLUpdateShortChatMessage) Reset() { *m = TLUpdateShortChatMessage{} } +func (m *TLUpdateShortChatMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateShortChatMessage) ProtoMessage() {} +func (*TLUpdateShortChatMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{722} } -func (m *TLBotInlineMessageMediaContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBotInlineMessageMediaContact.Unmarshal(m, b) +func (m *TLUpdateShortChatMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateShortChatMessage.Unmarshal(m, b) } -func (m *TLBotInlineMessageMediaContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBotInlineMessageMediaContact.Marshal(b, m, deterministic) +func (m *TLUpdateShortChatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateShortChatMessage.Marshal(b, m, deterministic) } -func (dst *TLBotInlineMessageMediaContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBotInlineMessageMediaContact.Merge(dst, src) +func (dst *TLUpdateShortChatMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateShortChatMessage.Merge(dst, src) } -func (m *TLBotInlineMessageMediaContact) XXX_Size() int { - return xxx_messageInfo_TLBotInlineMessageMediaContact.Size(m) +func (m *TLUpdateShortChatMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateShortChatMessage.Size(m) } -func (m *TLBotInlineMessageMediaContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLBotInlineMessageMediaContact.DiscardUnknown(m) +func (m *TLUpdateShortChatMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateShortChatMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLBotInlineMessageMediaContact proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateShortChatMessage proto.InternalMessageInfo -func (m *TLBotInlineMessageMediaContact) GetData2() *BotInlineMessage_Data { +func (m *TLUpdateShortChatMessage) GetData2() *Updates_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_ArchivedStickers <-- -// + TL_messages_archivedStickers -// -type Messages_ArchivedStickers_Data struct { - Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` - Sets []*StickerSetCovered `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateShort#78d4dec1 update:Update date:int = Updates; +type TLUpdateShort struct { + Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_ArchivedStickers_Data) Reset() { *m = Messages_ArchivedStickers_Data{} } -func (m *Messages_ArchivedStickers_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_ArchivedStickers_Data) ProtoMessage() {} -func (*Messages_ArchivedStickers_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{780} +func (m *TLUpdateShort) Reset() { *m = TLUpdateShort{} } +func (m *TLUpdateShort) String() string { return proto.CompactTextString(m) } +func (*TLUpdateShort) ProtoMessage() {} +func (*TLUpdateShort) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{723} } -func (m *Messages_ArchivedStickers_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_ArchivedStickers_Data.Unmarshal(m, b) +func (m *TLUpdateShort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateShort.Unmarshal(m, b) } -func (m *Messages_ArchivedStickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_ArchivedStickers_Data.Marshal(b, m, deterministic) +func (m *TLUpdateShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateShort.Marshal(b, m, deterministic) } -func (dst *Messages_ArchivedStickers_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_ArchivedStickers_Data.Merge(dst, src) +func (dst *TLUpdateShort) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateShort.Merge(dst, src) } -func (m *Messages_ArchivedStickers_Data) XXX_Size() int { - return xxx_messageInfo_Messages_ArchivedStickers_Data.Size(m) +func (m *TLUpdateShort) XXX_Size() int { + return xxx_messageInfo_TLUpdateShort.Size(m) } -func (m *Messages_ArchivedStickers_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_ArchivedStickers_Data.DiscardUnknown(m) +func (m *TLUpdateShort) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateShort.DiscardUnknown(m) } -var xxx_messageInfo_Messages_ArchivedStickers_Data proto.InternalMessageInfo - -func (m *Messages_ArchivedStickers_Data) GetCount() int32 { - if m != nil { - return m.Count - } - return 0 -} +var xxx_messageInfo_TLUpdateShort proto.InternalMessageInfo -func (m *Messages_ArchivedStickers_Data) GetSets() []*StickerSetCovered { +func (m *TLUpdateShort) GetData2() *Updates_Data { if m != nil { - return m.Sets + return m.Data2 } return nil } -type Messages_ArchivedStickers struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_ArchivedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates; +type TLUpdatesCombined struct { + Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_ArchivedStickers) Reset() { *m = Messages_ArchivedStickers{} } -func (m *Messages_ArchivedStickers) String() string { return proto.CompactTextString(m) } -func (*Messages_ArchivedStickers) ProtoMessage() {} -func (*Messages_ArchivedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{781} +func (m *TLUpdatesCombined) Reset() { *m = TLUpdatesCombined{} } +func (m *TLUpdatesCombined) String() string { return proto.CompactTextString(m) } +func (*TLUpdatesCombined) ProtoMessage() {} +func (*TLUpdatesCombined) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{724} } -func (m *Messages_ArchivedStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_ArchivedStickers.Unmarshal(m, b) +func (m *TLUpdatesCombined) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatesCombined.Unmarshal(m, b) } -func (m *Messages_ArchivedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_ArchivedStickers.Marshal(b, m, deterministic) +func (m *TLUpdatesCombined) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatesCombined.Marshal(b, m, deterministic) } -func (dst *Messages_ArchivedStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_ArchivedStickers.Merge(dst, src) +func (dst *TLUpdatesCombined) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatesCombined.Merge(dst, src) } -func (m *Messages_ArchivedStickers) XXX_Size() int { - return xxx_messageInfo_Messages_ArchivedStickers.Size(m) +func (m *TLUpdatesCombined) XXX_Size() int { + return xxx_messageInfo_TLUpdatesCombined.Size(m) } -func (m *Messages_ArchivedStickers) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_ArchivedStickers.DiscardUnknown(m) +func (m *TLUpdatesCombined) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatesCombined.DiscardUnknown(m) } -var xxx_messageInfo_Messages_ArchivedStickers proto.InternalMessageInfo +var xxx_messageInfo_TLUpdatesCombined proto.InternalMessageInfo -func (m *Messages_ArchivedStickers) GetConstructor() TLConstructor { +func (m *TLUpdatesCombined) GetData2() *Updates_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *Messages_ArchivedStickers) GetData2() *Messages_ArchivedStickers_Data { +// updates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates; +type TLUpdates struct { + Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLUpdates) Reset() { *m = TLUpdates{} } +func (m *TLUpdates) String() string { return proto.CompactTextString(m) } +func (*TLUpdates) ProtoMessage() {} +func (*TLUpdates) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{725} +} +func (m *TLUpdates) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdates.Unmarshal(m, b) +} +func (m *TLUpdates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdates.Marshal(b, m, deterministic) +} +func (dst *TLUpdates) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdates.Merge(dst, src) +} +func (m *TLUpdates) XXX_Size() int { + return xxx_messageInfo_TLUpdates.Size(m) +} +func (m *TLUpdates) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdates.DiscardUnknown(m) +} + +var xxx_messageInfo_TLUpdates proto.InternalMessageInfo + +func (m *TLUpdates) GetData2() *Updates_Data { if m != nil { return m.Data2 } return nil } -// messages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers; -type TLMessagesArchivedStickers struct { - Data2 *Messages_ArchivedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates; +type TLUpdateShortSentMessage struct { + Data2 *Updates_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesArchivedStickers) Reset() { *m = TLMessagesArchivedStickers{} } -func (m *TLMessagesArchivedStickers) String() string { return proto.CompactTextString(m) } -func (*TLMessagesArchivedStickers) ProtoMessage() {} -func (*TLMessagesArchivedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{782} +func (m *TLUpdateShortSentMessage) Reset() { *m = TLUpdateShortSentMessage{} } +func (m *TLUpdateShortSentMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateShortSentMessage) ProtoMessage() {} +func (*TLUpdateShortSentMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{726} } -func (m *TLMessagesArchivedStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesArchivedStickers.Unmarshal(m, b) +func (m *TLUpdateShortSentMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateShortSentMessage.Unmarshal(m, b) } -func (m *TLMessagesArchivedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesArchivedStickers.Marshal(b, m, deterministic) +func (m *TLUpdateShortSentMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateShortSentMessage.Marshal(b, m, deterministic) } -func (dst *TLMessagesArchivedStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesArchivedStickers.Merge(dst, src) +func (dst *TLUpdateShortSentMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateShortSentMessage.Merge(dst, src) } -func (m *TLMessagesArchivedStickers) XXX_Size() int { - return xxx_messageInfo_TLMessagesArchivedStickers.Size(m) +func (m *TLUpdateShortSentMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateShortSentMessage.Size(m) } -func (m *TLMessagesArchivedStickers) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesArchivedStickers.DiscardUnknown(m) +func (m *TLUpdateShortSentMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateShortSentMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesArchivedStickers proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateShortSentMessage proto.InternalMessageInfo -func (m *TLMessagesArchivedStickers) GetData2() *Messages_ArchivedStickers_Data { +func (m *TLUpdateShortSentMessage) GetData2() *Updates_Data { if m != nil { return m.Data2 } @@ -37656,198 +36284,222 @@ func (m *TLMessagesArchivedStickers) GetData2() *Messages_ArchivedStickers_Data } // ///////////////////////////////////////////////////////////////////////////// -// Invoice <-- -// + TL_invoice +// InputPhoto <-- +// + TL_inputPhotoEmpty +// + TL_inputPhoto +// + TL_inputPhotoLayer86 // -type Invoice_Data struct { - Test bool `protobuf:"varint,1,opt,name=test,proto3" json:"test,omitempty"` - NameRequested bool `protobuf:"varint,2,opt,name=name_requested,json=nameRequested,proto3" json:"name_requested,omitempty"` - PhoneRequested bool `protobuf:"varint,3,opt,name=phone_requested,json=phoneRequested,proto3" json:"phone_requested,omitempty"` - EmailRequested bool `protobuf:"varint,4,opt,name=email_requested,json=emailRequested,proto3" json:"email_requested,omitempty"` - ShippingAddressRequested bool `protobuf:"varint,5,opt,name=shipping_address_requested,json=shippingAddressRequested,proto3" json:"shipping_address_requested,omitempty"` - Flexible bool `protobuf:"varint,6,opt,name=flexible,proto3" json:"flexible,omitempty"` - PhoneToProvider bool `protobuf:"varint,7,opt,name=phone_to_provider,json=phoneToProvider,proto3" json:"phone_to_provider,omitempty"` - EmailToProvider bool `protobuf:"varint,8,opt,name=email_to_provider,json=emailToProvider,proto3" json:"email_to_provider,omitempty"` - Currency string `protobuf:"bytes,9,opt,name=currency,proto3" json:"currency,omitempty"` - Prices []*LabeledPrice `protobuf:"bytes,10,rep,name=prices,proto3" json:"prices,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputPhoto_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + FileReference []byte `protobuf:"bytes,3,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Invoice_Data) Reset() { *m = Invoice_Data{} } -func (m *Invoice_Data) String() string { return proto.CompactTextString(m) } -func (*Invoice_Data) ProtoMessage() {} -func (*Invoice_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{783} +func (m *InputPhoto_Data) Reset() { *m = InputPhoto_Data{} } +func (m *InputPhoto_Data) String() string { return proto.CompactTextString(m) } +func (*InputPhoto_Data) ProtoMessage() {} +func (*InputPhoto_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{727} } -func (m *Invoice_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Invoice_Data.Unmarshal(m, b) +func (m *InputPhoto_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPhoto_Data.Unmarshal(m, b) } -func (m *Invoice_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Invoice_Data.Marshal(b, m, deterministic) +func (m *InputPhoto_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPhoto_Data.Marshal(b, m, deterministic) } -func (dst *Invoice_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Invoice_Data.Merge(dst, src) +func (dst *InputPhoto_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPhoto_Data.Merge(dst, src) } -func (m *Invoice_Data) XXX_Size() int { - return xxx_messageInfo_Invoice_Data.Size(m) +func (m *InputPhoto_Data) XXX_Size() int { + return xxx_messageInfo_InputPhoto_Data.Size(m) } -func (m *Invoice_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Invoice_Data.DiscardUnknown(m) +func (m *InputPhoto_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputPhoto_Data.DiscardUnknown(m) } -var xxx_messageInfo_Invoice_Data proto.InternalMessageInfo - -func (m *Invoice_Data) GetTest() bool { - if m != nil { - return m.Test - } - return false -} +var xxx_messageInfo_InputPhoto_Data proto.InternalMessageInfo -func (m *Invoice_Data) GetNameRequested() bool { +func (m *InputPhoto_Data) GetId() int64 { if m != nil { - return m.NameRequested + return m.Id } - return false + return 0 } -func (m *Invoice_Data) GetPhoneRequested() bool { +func (m *InputPhoto_Data) GetAccessHash() int64 { if m != nil { - return m.PhoneRequested + return m.AccessHash } - return false + return 0 } -func (m *Invoice_Data) GetEmailRequested() bool { +func (m *InputPhoto_Data) GetFileReference() []byte { if m != nil { - return m.EmailRequested + return m.FileReference } - return false + return nil } -func (m *Invoice_Data) GetShippingAddressRequested() bool { - if m != nil { - return m.ShippingAddressRequested - } - return false +type InputPhoto struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Invoice_Data) GetFlexible() bool { - if m != nil { - return m.Flexible - } - return false +func (m *InputPhoto) Reset() { *m = InputPhoto{} } +func (m *InputPhoto) String() string { return proto.CompactTextString(m) } +func (*InputPhoto) ProtoMessage() {} +func (*InputPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{728} } - -func (m *Invoice_Data) GetPhoneToProvider() bool { - if m != nil { - return m.PhoneToProvider - } - return false +func (m *InputPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPhoto.Unmarshal(m, b) } - -func (m *Invoice_Data) GetEmailToProvider() bool { - if m != nil { - return m.EmailToProvider - } - return false +func (m *InputPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPhoto.Marshal(b, m, deterministic) +} +func (dst *InputPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPhoto.Merge(dst, src) +} +func (m *InputPhoto) XXX_Size() int { + return xxx_messageInfo_InputPhoto.Size(m) +} +func (m *InputPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_InputPhoto.DiscardUnknown(m) } -func (m *Invoice_Data) GetCurrency() string { +var xxx_messageInfo_InputPhoto proto.InternalMessageInfo + +func (m *InputPhoto) GetConstructor() TLConstructor { if m != nil { - return m.Currency + return m.Constructor } - return "" + return TLConstructor_CRC32_UNKNOWN } -func (m *Invoice_Data) GetPrices() []*LabeledPrice { +func (m *InputPhoto) GetData2() *InputPhoto_Data { if m != nil { - return m.Prices + return m.Data2 } return nil } -type Invoice struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Invoice_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPhotoEmpty#1cd7bf0d = InputPhoto; +type TLInputPhotoEmpty struct { + Data2 *InputPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Invoice) Reset() { *m = Invoice{} } -func (m *Invoice) String() string { return proto.CompactTextString(m) } -func (*Invoice) ProtoMessage() {} -func (*Invoice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{784} +func (m *TLInputPhotoEmpty) Reset() { *m = TLInputPhotoEmpty{} } +func (m *TLInputPhotoEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputPhotoEmpty) ProtoMessage() {} +func (*TLInputPhotoEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{729} } -func (m *Invoice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Invoice.Unmarshal(m, b) +func (m *TLInputPhotoEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPhotoEmpty.Unmarshal(m, b) } -func (m *Invoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Invoice.Marshal(b, m, deterministic) +func (m *TLInputPhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPhotoEmpty.Marshal(b, m, deterministic) } -func (dst *Invoice) XXX_Merge(src proto.Message) { - xxx_messageInfo_Invoice.Merge(dst, src) +func (dst *TLInputPhotoEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPhotoEmpty.Merge(dst, src) } -func (m *Invoice) XXX_Size() int { - return xxx_messageInfo_Invoice.Size(m) +func (m *TLInputPhotoEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputPhotoEmpty.Size(m) } -func (m *Invoice) XXX_DiscardUnknown() { - xxx_messageInfo_Invoice.DiscardUnknown(m) +func (m *TLInputPhotoEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPhotoEmpty.DiscardUnknown(m) } -var xxx_messageInfo_Invoice proto.InternalMessageInfo +var xxx_messageInfo_TLInputPhotoEmpty proto.InternalMessageInfo -func (m *Invoice) GetConstructor() TLConstructor { +func (m *TLInputPhotoEmpty) GetData2() *InputPhoto_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *Invoice) GetData2() *Invoice_Data { +// inputPhoto#fb95c6c4 id:long access_hash:long = InputPhoto; +type TLInputPhoto struct { + Data2 *InputPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputPhoto) Reset() { *m = TLInputPhoto{} } +func (m *TLInputPhoto) String() string { return proto.CompactTextString(m) } +func (*TLInputPhoto) ProtoMessage() {} +func (*TLInputPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{730} +} +func (m *TLInputPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPhoto.Unmarshal(m, b) +} +func (m *TLInputPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPhoto.Marshal(b, m, deterministic) +} +func (dst *TLInputPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPhoto.Merge(dst, src) +} +func (m *TLInputPhoto) XXX_Size() int { + return xxx_messageInfo_TLInputPhoto.Size(m) +} +func (m *TLInputPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPhoto.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputPhoto proto.InternalMessageInfo + +func (m *TLInputPhoto) GetData2() *InputPhoto_Data { if m != nil { return m.Data2 } return nil } -// invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector = Invoice; -type TLInvoice struct { - Data2 *Invoice_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto; +type TLInputPhotoLayer86 struct { + Data2 *InputPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInvoice) Reset() { *m = TLInvoice{} } -func (m *TLInvoice) String() string { return proto.CompactTextString(m) } -func (*TLInvoice) ProtoMessage() {} -func (*TLInvoice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{785} +func (m *TLInputPhotoLayer86) Reset() { *m = TLInputPhotoLayer86{} } +func (m *TLInputPhotoLayer86) String() string { return proto.CompactTextString(m) } +func (*TLInputPhotoLayer86) ProtoMessage() {} +func (*TLInputPhotoLayer86) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{731} } -func (m *TLInvoice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInvoice.Unmarshal(m, b) +func (m *TLInputPhotoLayer86) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPhotoLayer86.Unmarshal(m, b) } -func (m *TLInvoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInvoice.Marshal(b, m, deterministic) +func (m *TLInputPhotoLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPhotoLayer86.Marshal(b, m, deterministic) } -func (dst *TLInvoice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInvoice.Merge(dst, src) +func (dst *TLInputPhotoLayer86) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPhotoLayer86.Merge(dst, src) } -func (m *TLInvoice) XXX_Size() int { - return xxx_messageInfo_TLInvoice.Size(m) +func (m *TLInputPhotoLayer86) XXX_Size() int { + return xxx_messageInfo_TLInputPhotoLayer86.Size(m) } -func (m *TLInvoice) XXX_DiscardUnknown() { - xxx_messageInfo_TLInvoice.DiscardUnknown(m) +func (m *TLInputPhotoLayer86) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPhotoLayer86.DiscardUnknown(m) } -var xxx_messageInfo_TLInvoice proto.InternalMessageInfo +var xxx_messageInfo_TLInputPhotoLayer86 proto.InternalMessageInfo -func (m *TLInvoice) GetData2() *Invoice_Data { +func (m *TLInputPhotoLayer86) GetData2() *InputPhoto_Data { if m != nil { return m.Data2 } @@ -37855,341 +36507,293 @@ func (m *TLInvoice) GetData2() *Invoice_Data { } // ///////////////////////////////////////////////////////////////////////////// -// CdnPublicKey <-- -// + TL_cdnPublicKey +// ExportedChatInvite <-- +// + TL_chatInviteEmpty +// + TL_chatInviteExported // -type CdnPublicKey_Data struct { - DcId int32 `protobuf:"varint,1,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` - PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` +type ExportedChatInvite_Data struct { + Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *CdnPublicKey_Data) Reset() { *m = CdnPublicKey_Data{} } -func (m *CdnPublicKey_Data) String() string { return proto.CompactTextString(m) } -func (*CdnPublicKey_Data) ProtoMessage() {} -func (*CdnPublicKey_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{786} +func (m *ExportedChatInvite_Data) Reset() { *m = ExportedChatInvite_Data{} } +func (m *ExportedChatInvite_Data) String() string { return proto.CompactTextString(m) } +func (*ExportedChatInvite_Data) ProtoMessage() {} +func (*ExportedChatInvite_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{732} } -func (m *CdnPublicKey_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CdnPublicKey_Data.Unmarshal(m, b) +func (m *ExportedChatInvite_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportedChatInvite_Data.Unmarshal(m, b) } -func (m *CdnPublicKey_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CdnPublicKey_Data.Marshal(b, m, deterministic) +func (m *ExportedChatInvite_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportedChatInvite_Data.Marshal(b, m, deterministic) } -func (dst *CdnPublicKey_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_CdnPublicKey_Data.Merge(dst, src) +func (dst *ExportedChatInvite_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportedChatInvite_Data.Merge(dst, src) } -func (m *CdnPublicKey_Data) XXX_Size() int { - return xxx_messageInfo_CdnPublicKey_Data.Size(m) +func (m *ExportedChatInvite_Data) XXX_Size() int { + return xxx_messageInfo_ExportedChatInvite_Data.Size(m) } -func (m *CdnPublicKey_Data) XXX_DiscardUnknown() { - xxx_messageInfo_CdnPublicKey_Data.DiscardUnknown(m) +func (m *ExportedChatInvite_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ExportedChatInvite_Data.DiscardUnknown(m) } -var xxx_messageInfo_CdnPublicKey_Data proto.InternalMessageInfo - -func (m *CdnPublicKey_Data) GetDcId() int32 { - if m != nil { - return m.DcId - } - return 0 -} +var xxx_messageInfo_ExportedChatInvite_Data proto.InternalMessageInfo -func (m *CdnPublicKey_Data) GetPublicKey() string { +func (m *ExportedChatInvite_Data) GetLink() string { if m != nil { - return m.PublicKey + return m.Link } return "" } -type CdnPublicKey struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *CdnPublicKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ExportedChatInvite struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ExportedChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CdnPublicKey) Reset() { *m = CdnPublicKey{} } -func (m *CdnPublicKey) String() string { return proto.CompactTextString(m) } -func (*CdnPublicKey) ProtoMessage() {} -func (*CdnPublicKey) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{787} +func (m *ExportedChatInvite) Reset() { *m = ExportedChatInvite{} } +func (m *ExportedChatInvite) String() string { return proto.CompactTextString(m) } +func (*ExportedChatInvite) ProtoMessage() {} +func (*ExportedChatInvite) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{733} } -func (m *CdnPublicKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CdnPublicKey.Unmarshal(m, b) +func (m *ExportedChatInvite) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExportedChatInvite.Unmarshal(m, b) } -func (m *CdnPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CdnPublicKey.Marshal(b, m, deterministic) +func (m *ExportedChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExportedChatInvite.Marshal(b, m, deterministic) } -func (dst *CdnPublicKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_CdnPublicKey.Merge(dst, src) +func (dst *ExportedChatInvite) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportedChatInvite.Merge(dst, src) } -func (m *CdnPublicKey) XXX_Size() int { - return xxx_messageInfo_CdnPublicKey.Size(m) +func (m *ExportedChatInvite) XXX_Size() int { + return xxx_messageInfo_ExportedChatInvite.Size(m) } -func (m *CdnPublicKey) XXX_DiscardUnknown() { - xxx_messageInfo_CdnPublicKey.DiscardUnknown(m) +func (m *ExportedChatInvite) XXX_DiscardUnknown() { + xxx_messageInfo_ExportedChatInvite.DiscardUnknown(m) } -var xxx_messageInfo_CdnPublicKey proto.InternalMessageInfo +var xxx_messageInfo_ExportedChatInvite proto.InternalMessageInfo -func (m *CdnPublicKey) GetConstructor() TLConstructor { +func (m *ExportedChatInvite) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *CdnPublicKey) GetData2() *CdnPublicKey_Data { +func (m *ExportedChatInvite) GetData2() *ExportedChatInvite_Data { if m != nil { return m.Data2 } return nil } -// cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey; -type TLCdnPublicKey struct { - Data2 *CdnPublicKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatInviteEmpty#69df3769 = ExportedChatInvite; +type TLChatInviteEmpty struct { + Data2 *ExportedChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLCdnPublicKey) Reset() { *m = TLCdnPublicKey{} } -func (m *TLCdnPublicKey) String() string { return proto.CompactTextString(m) } -func (*TLCdnPublicKey) ProtoMessage() {} -func (*TLCdnPublicKey) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{788} +func (m *TLChatInviteEmpty) Reset() { *m = TLChatInviteEmpty{} } +func (m *TLChatInviteEmpty) String() string { return proto.CompactTextString(m) } +func (*TLChatInviteEmpty) ProtoMessage() {} +func (*TLChatInviteEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{734} } -func (m *TLCdnPublicKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLCdnPublicKey.Unmarshal(m, b) +func (m *TLChatInviteEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatInviteEmpty.Unmarshal(m, b) } -func (m *TLCdnPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLCdnPublicKey.Marshal(b, m, deterministic) +func (m *TLChatInviteEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatInviteEmpty.Marshal(b, m, deterministic) } -func (dst *TLCdnPublicKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLCdnPublicKey.Merge(dst, src) +func (dst *TLChatInviteEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatInviteEmpty.Merge(dst, src) } -func (m *TLCdnPublicKey) XXX_Size() int { - return xxx_messageInfo_TLCdnPublicKey.Size(m) +func (m *TLChatInviteEmpty) XXX_Size() int { + return xxx_messageInfo_TLChatInviteEmpty.Size(m) } -func (m *TLCdnPublicKey) XXX_DiscardUnknown() { - xxx_messageInfo_TLCdnPublicKey.DiscardUnknown(m) +func (m *TLChatInviteEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatInviteEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLCdnPublicKey proto.InternalMessageInfo +var xxx_messageInfo_TLChatInviteEmpty proto.InternalMessageInfo -func (m *TLCdnPublicKey) GetData2() *CdnPublicKey_Data { +func (m *TLChatInviteEmpty) GetData2() *ExportedChatInvite_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Dialog <-- -// + TL_dialog -// -type Dialog_Data struct { - Pinned bool `protobuf:"varint,1,opt,name=pinned,proto3" json:"pinned,omitempty"` - UnreadMark bool `protobuf:"varint,2,opt,name=unread_mark,json=unreadMark,proto3" json:"unread_mark,omitempty"` - Peer *Peer `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"` - TopMessage int32 `protobuf:"varint,4,opt,name=top_message,json=topMessage,proto3" json:"top_message,omitempty"` - ReadInboxMaxId int32 `protobuf:"varint,5,opt,name=read_inbox_max_id,json=readInboxMaxId,proto3" json:"read_inbox_max_id,omitempty"` - ReadOutboxMaxId int32 `protobuf:"varint,6,opt,name=read_outbox_max_id,json=readOutboxMaxId,proto3" json:"read_outbox_max_id,omitempty"` - UnreadCount int32 `protobuf:"varint,7,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` - UnreadMentionsCount int32 `protobuf:"varint,8,opt,name=unread_mentions_count,json=unreadMentionsCount,proto3" json:"unread_mentions_count,omitempty"` - NotifySettings *PeerNotifySettings `protobuf:"bytes,9,opt,name=notify_settings,json=notifySettings,proto3" json:"notify_settings,omitempty"` - Pts int32 `protobuf:"varint,10,opt,name=pts,proto3" json:"pts,omitempty"` - Draft *DraftMessage `protobuf:"bytes,11,opt,name=draft,proto3" json:"draft,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatInviteExported#fc2e05bc link:string = ExportedChatInvite; +type TLChatInviteExported struct { + Data2 *ExportedChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Dialog_Data) Reset() { *m = Dialog_Data{} } -func (m *Dialog_Data) String() string { return proto.CompactTextString(m) } -func (*Dialog_Data) ProtoMessage() {} -func (*Dialog_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{789} +func (m *TLChatInviteExported) Reset() { *m = TLChatInviteExported{} } +func (m *TLChatInviteExported) String() string { return proto.CompactTextString(m) } +func (*TLChatInviteExported) ProtoMessage() {} +func (*TLChatInviteExported) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{735} } -func (m *Dialog_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Dialog_Data.Unmarshal(m, b) +func (m *TLChatInviteExported) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatInviteExported.Unmarshal(m, b) } -func (m *Dialog_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Dialog_Data.Marshal(b, m, deterministic) +func (m *TLChatInviteExported) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatInviteExported.Marshal(b, m, deterministic) } -func (dst *Dialog_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Dialog_Data.Merge(dst, src) +func (dst *TLChatInviteExported) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatInviteExported.Merge(dst, src) } -func (m *Dialog_Data) XXX_Size() int { - return xxx_messageInfo_Dialog_Data.Size(m) +func (m *TLChatInviteExported) XXX_Size() int { + return xxx_messageInfo_TLChatInviteExported.Size(m) } -func (m *Dialog_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Dialog_Data.DiscardUnknown(m) +func (m *TLChatInviteExported) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatInviteExported.DiscardUnknown(m) } -var xxx_messageInfo_Dialog_Data proto.InternalMessageInfo +var xxx_messageInfo_TLChatInviteExported proto.InternalMessageInfo -func (m *Dialog_Data) GetPinned() bool { +func (m *TLChatInviteExported) GetData2() *ExportedChatInvite_Data { if m != nil { - return m.Pinned + return m.Data2 } - return false + return nil } -func (m *Dialog_Data) GetUnreadMark() bool { - if m != nil { - return m.UnreadMark - } - return false +// ///////////////////////////////////////////////////////////////////////////// +// account_Takeout <-- +// + TL_account_takeout +// +type Account_Takeout_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Dialog_Data) GetPeer() *Peer { - if m != nil { - return m.Peer - } - return nil +func (m *Account_Takeout_Data) Reset() { *m = Account_Takeout_Data{} } +func (m *Account_Takeout_Data) String() string { return proto.CompactTextString(m) } +func (*Account_Takeout_Data) ProtoMessage() {} +func (*Account_Takeout_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{736} } - -func (m *Dialog_Data) GetTopMessage() int32 { - if m != nil { - return m.TopMessage - } - return 0 +func (m *Account_Takeout_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_Takeout_Data.Unmarshal(m, b) } - -func (m *Dialog_Data) GetReadInboxMaxId() int32 { - if m != nil { - return m.ReadInboxMaxId - } - return 0 +func (m *Account_Takeout_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_Takeout_Data.Marshal(b, m, deterministic) } - -func (m *Dialog_Data) GetReadOutboxMaxId() int32 { - if m != nil { - return m.ReadOutboxMaxId - } - return 0 +func (dst *Account_Takeout_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_Takeout_Data.Merge(dst, src) } - -func (m *Dialog_Data) GetUnreadCount() int32 { - if m != nil { - return m.UnreadCount - } - return 0 +func (m *Account_Takeout_Data) XXX_Size() int { + return xxx_messageInfo_Account_Takeout_Data.Size(m) } - -func (m *Dialog_Data) GetUnreadMentionsCount() int32 { - if m != nil { - return m.UnreadMentionsCount - } - return 0 +func (m *Account_Takeout_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Account_Takeout_Data.DiscardUnknown(m) } -func (m *Dialog_Data) GetNotifySettings() *PeerNotifySettings { - if m != nil { - return m.NotifySettings - } - return nil -} +var xxx_messageInfo_Account_Takeout_Data proto.InternalMessageInfo -func (m *Dialog_Data) GetPts() int32 { +func (m *Account_Takeout_Data) GetId() int64 { if m != nil { - return m.Pts + return m.Id } return 0 } -func (m *Dialog_Data) GetDraft() *DraftMessage { - if m != nil { - return m.Draft - } - return nil -} - -type Dialog struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Dialog_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Account_Takeout struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Account_Takeout_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Dialog) Reset() { *m = Dialog{} } -func (m *Dialog) String() string { return proto.CompactTextString(m) } -func (*Dialog) ProtoMessage() {} -func (*Dialog) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{790} +func (m *Account_Takeout) Reset() { *m = Account_Takeout{} } +func (m *Account_Takeout) String() string { return proto.CompactTextString(m) } +func (*Account_Takeout) ProtoMessage() {} +func (*Account_Takeout) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{737} } -func (m *Dialog) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Dialog.Unmarshal(m, b) +func (m *Account_Takeout) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Account_Takeout.Unmarshal(m, b) } -func (m *Dialog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Dialog.Marshal(b, m, deterministic) +func (m *Account_Takeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Account_Takeout.Marshal(b, m, deterministic) } -func (dst *Dialog) XXX_Merge(src proto.Message) { - xxx_messageInfo_Dialog.Merge(dst, src) +func (dst *Account_Takeout) XXX_Merge(src proto.Message) { + xxx_messageInfo_Account_Takeout.Merge(dst, src) } -func (m *Dialog) XXX_Size() int { - return xxx_messageInfo_Dialog.Size(m) +func (m *Account_Takeout) XXX_Size() int { + return xxx_messageInfo_Account_Takeout.Size(m) } -func (m *Dialog) XXX_DiscardUnknown() { - xxx_messageInfo_Dialog.DiscardUnknown(m) +func (m *Account_Takeout) XXX_DiscardUnknown() { + xxx_messageInfo_Account_Takeout.DiscardUnknown(m) } -var xxx_messageInfo_Dialog proto.InternalMessageInfo +var xxx_messageInfo_Account_Takeout proto.InternalMessageInfo -func (m *Dialog) GetConstructor() TLConstructor { +func (m *Account_Takeout) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Dialog) GetData2() *Dialog_Data { +func (m *Account_Takeout) GetData2() *Account_Takeout_Data { if m != nil { return m.Data2 } return nil } -// dialog#e4def5db flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog; -type TLDialog struct { - Data2 *Dialog_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// account.takeout#4dba4501 id:long = account.Takeout; +type TLAccountTakeout struct { + Data2 *Account_Takeout_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDialog) Reset() { *m = TLDialog{} } -func (m *TLDialog) String() string { return proto.CompactTextString(m) } -func (*TLDialog) ProtoMessage() {} -func (*TLDialog) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{791} +func (m *TLAccountTakeout) Reset() { *m = TLAccountTakeout{} } +func (m *TLAccountTakeout) String() string { return proto.CompactTextString(m) } +func (*TLAccountTakeout) ProtoMessage() {} +func (*TLAccountTakeout) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{738} } -func (m *TLDialog) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDialog.Unmarshal(m, b) +func (m *TLAccountTakeout) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccountTakeout.Unmarshal(m, b) } -func (m *TLDialog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDialog.Marshal(b, m, deterministic) +func (m *TLAccountTakeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccountTakeout.Marshal(b, m, deterministic) } -func (dst *TLDialog) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDialog.Merge(dst, src) +func (dst *TLAccountTakeout) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccountTakeout.Merge(dst, src) } -func (m *TLDialog) XXX_Size() int { - return xxx_messageInfo_TLDialog.Size(m) +func (m *TLAccountTakeout) XXX_Size() int { + return xxx_messageInfo_TLAccountTakeout.Size(m) } -func (m *TLDialog) XXX_DiscardUnknown() { - xxx_messageInfo_TLDialog.DiscardUnknown(m) +func (m *TLAccountTakeout) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccountTakeout.DiscardUnknown(m) } -var xxx_messageInfo_TLDialog proto.InternalMessageInfo +var xxx_messageInfo_TLAccountTakeout proto.InternalMessageInfo -func (m *TLDialog) GetData2() *Dialog_Data { +func (m *TLAccountTakeout) GetData2() *Account_Takeout_Data { if m != nil { return m.Data2 } @@ -38197,190 +36801,190 @@ func (m *TLDialog) GetData2() *Dialog_Data { } // ///////////////////////////////////////////////////////////////////////////// -// messages_DhConfig <-- -// + TL_messages_dhConfigNotModified -// + TL_messages_dhConfig +// InputFile <-- +// + TL_inputFile +// + TL_inputFileBig // -type Messages_DhConfig_Data struct { - Random []byte `protobuf:"bytes,1,opt,name=random,proto3" json:"random,omitempty"` - G int32 `protobuf:"varint,2,opt,name=g,proto3" json:"g,omitempty"` - P []byte `protobuf:"bytes,3,opt,name=p,proto3" json:"p,omitempty"` - Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` +type InputFile_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Parts int32 `protobuf:"varint,2,opt,name=parts,proto3" json:"parts,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Md5Checksum string `protobuf:"bytes,4,opt,name=md5_checksum,json=md5Checksum,proto3" json:"md5_checksum,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Messages_DhConfig_Data) Reset() { *m = Messages_DhConfig_Data{} } -func (m *Messages_DhConfig_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_DhConfig_Data) ProtoMessage() {} -func (*Messages_DhConfig_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{792} +func (m *InputFile_Data) Reset() { *m = InputFile_Data{} } +func (m *InputFile_Data) String() string { return proto.CompactTextString(m) } +func (*InputFile_Data) ProtoMessage() {} +func (*InputFile_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{739} } -func (m *Messages_DhConfig_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_DhConfig_Data.Unmarshal(m, b) +func (m *InputFile_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputFile_Data.Unmarshal(m, b) } -func (m *Messages_DhConfig_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_DhConfig_Data.Marshal(b, m, deterministic) +func (m *InputFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputFile_Data.Marshal(b, m, deterministic) } -func (dst *Messages_DhConfig_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_DhConfig_Data.Merge(dst, src) +func (dst *InputFile_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputFile_Data.Merge(dst, src) } -func (m *Messages_DhConfig_Data) XXX_Size() int { - return xxx_messageInfo_Messages_DhConfig_Data.Size(m) +func (m *InputFile_Data) XXX_Size() int { + return xxx_messageInfo_InputFile_Data.Size(m) } -func (m *Messages_DhConfig_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_DhConfig_Data.DiscardUnknown(m) +func (m *InputFile_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputFile_Data.DiscardUnknown(m) } -var xxx_messageInfo_Messages_DhConfig_Data proto.InternalMessageInfo +var xxx_messageInfo_InputFile_Data proto.InternalMessageInfo -func (m *Messages_DhConfig_Data) GetRandom() []byte { +func (m *InputFile_Data) GetId() int64 { if m != nil { - return m.Random + return m.Id } - return nil + return 0 } -func (m *Messages_DhConfig_Data) GetG() int32 { +func (m *InputFile_Data) GetParts() int32 { if m != nil { - return m.G + return m.Parts } return 0 } -func (m *Messages_DhConfig_Data) GetP() []byte { +func (m *InputFile_Data) GetName() string { if m != nil { - return m.P + return m.Name } - return nil + return "" } -func (m *Messages_DhConfig_Data) GetVersion() int32 { +func (m *InputFile_Data) GetMd5Checksum() string { if m != nil { - return m.Version + return m.Md5Checksum } - return 0 + return "" } -type Messages_DhConfig struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_DhConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputFile struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_DhConfig) Reset() { *m = Messages_DhConfig{} } -func (m *Messages_DhConfig) String() string { return proto.CompactTextString(m) } -func (*Messages_DhConfig) ProtoMessage() {} -func (*Messages_DhConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{793} +func (m *InputFile) Reset() { *m = InputFile{} } +func (m *InputFile) String() string { return proto.CompactTextString(m) } +func (*InputFile) ProtoMessage() {} +func (*InputFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{740} } -func (m *Messages_DhConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_DhConfig.Unmarshal(m, b) +func (m *InputFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputFile.Unmarshal(m, b) } -func (m *Messages_DhConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_DhConfig.Marshal(b, m, deterministic) +func (m *InputFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputFile.Marshal(b, m, deterministic) } -func (dst *Messages_DhConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_DhConfig.Merge(dst, src) +func (dst *InputFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputFile.Merge(dst, src) } -func (m *Messages_DhConfig) XXX_Size() int { - return xxx_messageInfo_Messages_DhConfig.Size(m) +func (m *InputFile) XXX_Size() int { + return xxx_messageInfo_InputFile.Size(m) } -func (m *Messages_DhConfig) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_DhConfig.DiscardUnknown(m) +func (m *InputFile) XXX_DiscardUnknown() { + xxx_messageInfo_InputFile.DiscardUnknown(m) } -var xxx_messageInfo_Messages_DhConfig proto.InternalMessageInfo +var xxx_messageInfo_InputFile proto.InternalMessageInfo -func (m *Messages_DhConfig) GetConstructor() TLConstructor { +func (m *InputFile) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_DhConfig) GetData2() *Messages_DhConfig_Data { +func (m *InputFile) GetData2() *InputFile_Data { if m != nil { return m.Data2 } return nil } -// messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig; -type TLMessagesDhConfigNotModified struct { - Data2 *Messages_DhConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile; +type TLInputFile struct { + Data2 *InputFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesDhConfigNotModified) Reset() { *m = TLMessagesDhConfigNotModified{} } -func (m *TLMessagesDhConfigNotModified) String() string { return proto.CompactTextString(m) } -func (*TLMessagesDhConfigNotModified) ProtoMessage() {} -func (*TLMessagesDhConfigNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{794} +func (m *TLInputFile) Reset() { *m = TLInputFile{} } +func (m *TLInputFile) String() string { return proto.CompactTextString(m) } +func (*TLInputFile) ProtoMessage() {} +func (*TLInputFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{741} } -func (m *TLMessagesDhConfigNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesDhConfigNotModified.Unmarshal(m, b) +func (m *TLInputFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputFile.Unmarshal(m, b) } -func (m *TLMessagesDhConfigNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesDhConfigNotModified.Marshal(b, m, deterministic) +func (m *TLInputFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputFile.Marshal(b, m, deterministic) } -func (dst *TLMessagesDhConfigNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesDhConfigNotModified.Merge(dst, src) +func (dst *TLInputFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputFile.Merge(dst, src) } -func (m *TLMessagesDhConfigNotModified) XXX_Size() int { - return xxx_messageInfo_TLMessagesDhConfigNotModified.Size(m) +func (m *TLInputFile) XXX_Size() int { + return xxx_messageInfo_TLInputFile.Size(m) } -func (m *TLMessagesDhConfigNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesDhConfigNotModified.DiscardUnknown(m) +func (m *TLInputFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputFile.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesDhConfigNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLInputFile proto.InternalMessageInfo -func (m *TLMessagesDhConfigNotModified) GetData2() *Messages_DhConfig_Data { +func (m *TLInputFile) GetData2() *InputFile_Data { if m != nil { return m.Data2 } return nil } -// messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig; -type TLMessagesDhConfig struct { - Data2 *Messages_DhConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile; +type TLInputFileBig struct { + Data2 *InputFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesDhConfig) Reset() { *m = TLMessagesDhConfig{} } -func (m *TLMessagesDhConfig) String() string { return proto.CompactTextString(m) } -func (*TLMessagesDhConfig) ProtoMessage() {} -func (*TLMessagesDhConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{795} +func (m *TLInputFileBig) Reset() { *m = TLInputFileBig{} } +func (m *TLInputFileBig) String() string { return proto.CompactTextString(m) } +func (*TLInputFileBig) ProtoMessage() {} +func (*TLInputFileBig) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{742} } -func (m *TLMessagesDhConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesDhConfig.Unmarshal(m, b) +func (m *TLInputFileBig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputFileBig.Unmarshal(m, b) } -func (m *TLMessagesDhConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesDhConfig.Marshal(b, m, deterministic) +func (m *TLInputFileBig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputFileBig.Marshal(b, m, deterministic) } -func (dst *TLMessagesDhConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesDhConfig.Merge(dst, src) +func (dst *TLInputFileBig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputFileBig.Merge(dst, src) } -func (m *TLMessagesDhConfig) XXX_Size() int { - return xxx_messageInfo_TLMessagesDhConfig.Size(m) +func (m *TLInputFileBig) XXX_Size() int { + return xxx_messageInfo_TLInputFileBig.Size(m) } -func (m *TLMessagesDhConfig) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesDhConfig.DiscardUnknown(m) +func (m *TLInputFileBig) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputFileBig.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesDhConfig proto.InternalMessageInfo +var xxx_messageInfo_TLInputFileBig proto.InternalMessageInfo -func (m *TLMessagesDhConfig) GetData2() *Messages_DhConfig_Data { +func (m *TLInputFileBig) GetData2() *InputFile_Data { if m != nil { return m.Data2 } @@ -38388,142 +36992,142 @@ func (m *TLMessagesDhConfig) GetData2() *Messages_DhConfig_Data { } // ///////////////////////////////////////////////////////////////////////////// -// TopPeerCategoryPeers <-- -// + TL_topPeerCategoryPeers +// messages_AffectedHistory <-- +// + TL_messages_affectedHistory // -type TopPeerCategoryPeers_Data struct { - Category *TopPeerCategory `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` - Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - Peers []*TopPeer `protobuf:"bytes,3,rep,name=peers,proto3" json:"peers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_AffectedHistory_Data struct { + Pts int32 `protobuf:"varint,1,opt,name=pts,proto3" json:"pts,omitempty"` + PtsCount int32 `protobuf:"varint,2,opt,name=pts_count,json=ptsCount,proto3" json:"pts_count,omitempty"` + Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TopPeerCategoryPeers_Data) Reset() { *m = TopPeerCategoryPeers_Data{} } -func (m *TopPeerCategoryPeers_Data) String() string { return proto.CompactTextString(m) } -func (*TopPeerCategoryPeers_Data) ProtoMessage() {} -func (*TopPeerCategoryPeers_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{796} +func (m *Messages_AffectedHistory_Data) Reset() { *m = Messages_AffectedHistory_Data{} } +func (m *Messages_AffectedHistory_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_AffectedHistory_Data) ProtoMessage() {} +func (*Messages_AffectedHistory_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{743} } -func (m *TopPeerCategoryPeers_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TopPeerCategoryPeers_Data.Unmarshal(m, b) +func (m *Messages_AffectedHistory_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_AffectedHistory_Data.Unmarshal(m, b) } -func (m *TopPeerCategoryPeers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TopPeerCategoryPeers_Data.Marshal(b, m, deterministic) +func (m *Messages_AffectedHistory_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_AffectedHistory_Data.Marshal(b, m, deterministic) } -func (dst *TopPeerCategoryPeers_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_TopPeerCategoryPeers_Data.Merge(dst, src) +func (dst *Messages_AffectedHistory_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_AffectedHistory_Data.Merge(dst, src) } -func (m *TopPeerCategoryPeers_Data) XXX_Size() int { - return xxx_messageInfo_TopPeerCategoryPeers_Data.Size(m) +func (m *Messages_AffectedHistory_Data) XXX_Size() int { + return xxx_messageInfo_Messages_AffectedHistory_Data.Size(m) } -func (m *TopPeerCategoryPeers_Data) XXX_DiscardUnknown() { - xxx_messageInfo_TopPeerCategoryPeers_Data.DiscardUnknown(m) +func (m *Messages_AffectedHistory_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_AffectedHistory_Data.DiscardUnknown(m) } -var xxx_messageInfo_TopPeerCategoryPeers_Data proto.InternalMessageInfo +var xxx_messageInfo_Messages_AffectedHistory_Data proto.InternalMessageInfo -func (m *TopPeerCategoryPeers_Data) GetCategory() *TopPeerCategory { +func (m *Messages_AffectedHistory_Data) GetPts() int32 { if m != nil { - return m.Category + return m.Pts } - return nil + return 0 } -func (m *TopPeerCategoryPeers_Data) GetCount() int32 { +func (m *Messages_AffectedHistory_Data) GetPtsCount() int32 { if m != nil { - return m.Count + return m.PtsCount } return 0 } -func (m *TopPeerCategoryPeers_Data) GetPeers() []*TopPeer { +func (m *Messages_AffectedHistory_Data) GetOffset() int32 { if m != nil { - return m.Peers + return m.Offset } - return nil + return 0 } -type TopPeerCategoryPeers struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *TopPeerCategoryPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_AffectedHistory struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_AffectedHistory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TopPeerCategoryPeers) Reset() { *m = TopPeerCategoryPeers{} } -func (m *TopPeerCategoryPeers) String() string { return proto.CompactTextString(m) } -func (*TopPeerCategoryPeers) ProtoMessage() {} -func (*TopPeerCategoryPeers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{797} +func (m *Messages_AffectedHistory) Reset() { *m = Messages_AffectedHistory{} } +func (m *Messages_AffectedHistory) String() string { return proto.CompactTextString(m) } +func (*Messages_AffectedHistory) ProtoMessage() {} +func (*Messages_AffectedHistory) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{744} } -func (m *TopPeerCategoryPeers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TopPeerCategoryPeers.Unmarshal(m, b) +func (m *Messages_AffectedHistory) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_AffectedHistory.Unmarshal(m, b) } -func (m *TopPeerCategoryPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TopPeerCategoryPeers.Marshal(b, m, deterministic) +func (m *Messages_AffectedHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_AffectedHistory.Marshal(b, m, deterministic) } -func (dst *TopPeerCategoryPeers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TopPeerCategoryPeers.Merge(dst, src) +func (dst *Messages_AffectedHistory) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_AffectedHistory.Merge(dst, src) } -func (m *TopPeerCategoryPeers) XXX_Size() int { - return xxx_messageInfo_TopPeerCategoryPeers.Size(m) +func (m *Messages_AffectedHistory) XXX_Size() int { + return xxx_messageInfo_Messages_AffectedHistory.Size(m) } -func (m *TopPeerCategoryPeers) XXX_DiscardUnknown() { - xxx_messageInfo_TopPeerCategoryPeers.DiscardUnknown(m) +func (m *Messages_AffectedHistory) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_AffectedHistory.DiscardUnknown(m) } -var xxx_messageInfo_TopPeerCategoryPeers proto.InternalMessageInfo +var xxx_messageInfo_Messages_AffectedHistory proto.InternalMessageInfo -func (m *TopPeerCategoryPeers) GetConstructor() TLConstructor { +func (m *Messages_AffectedHistory) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *TopPeerCategoryPeers) GetData2() *TopPeerCategoryPeers_Data { +func (m *Messages_AffectedHistory) GetData2() *Messages_AffectedHistory_Data { if m != nil { return m.Data2 } return nil } -// topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers; -type TLTopPeerCategoryPeers struct { - Data2 *TopPeerCategoryPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory; +type TLMessagesAffectedHistory struct { + Data2 *Messages_AffectedHistory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTopPeerCategoryPeers) Reset() { *m = TLTopPeerCategoryPeers{} } -func (m *TLTopPeerCategoryPeers) String() string { return proto.CompactTextString(m) } -func (*TLTopPeerCategoryPeers) ProtoMessage() {} -func (*TLTopPeerCategoryPeers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{798} +func (m *TLMessagesAffectedHistory) Reset() { *m = TLMessagesAffectedHistory{} } +func (m *TLMessagesAffectedHistory) String() string { return proto.CompactTextString(m) } +func (*TLMessagesAffectedHistory) ProtoMessage() {} +func (*TLMessagesAffectedHistory) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{745} } -func (m *TLTopPeerCategoryPeers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTopPeerCategoryPeers.Unmarshal(m, b) +func (m *TLMessagesAffectedHistory) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesAffectedHistory.Unmarshal(m, b) } -func (m *TLTopPeerCategoryPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTopPeerCategoryPeers.Marshal(b, m, deterministic) +func (m *TLMessagesAffectedHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesAffectedHistory.Marshal(b, m, deterministic) } -func (dst *TLTopPeerCategoryPeers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTopPeerCategoryPeers.Merge(dst, src) +func (dst *TLMessagesAffectedHistory) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesAffectedHistory.Merge(dst, src) } -func (m *TLTopPeerCategoryPeers) XXX_Size() int { - return xxx_messageInfo_TLTopPeerCategoryPeers.Size(m) +func (m *TLMessagesAffectedHistory) XXX_Size() int { + return xxx_messageInfo_TLMessagesAffectedHistory.Size(m) } -func (m *TLTopPeerCategoryPeers) XXX_DiscardUnknown() { - xxx_messageInfo_TLTopPeerCategoryPeers.DiscardUnknown(m) +func (m *TLMessagesAffectedHistory) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesAffectedHistory.DiscardUnknown(m) } -var xxx_messageInfo_TLTopPeerCategoryPeers proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesAffectedHistory proto.InternalMessageInfo -func (m *TLTopPeerCategoryPeers) GetData2() *TopPeerCategoryPeers_Data { +func (m *TLMessagesAffectedHistory) GetData2() *Messages_AffectedHistory_Data { if m != nil { return m.Data2 } @@ -38531,349 +37135,349 @@ func (m *TLTopPeerCategoryPeers) GetData2() *TopPeerCategoryPeers_Data { } // ///////////////////////////////////////////////////////////////////////////// -// account_AuthorizationForm <-- -// + TL_account_authorizationForm +// LangPackLanguage <-- +// + TL_langPackLanguage // -type Account_AuthorizationForm_Data struct { - RequiredTypes []*SecureRequiredType `protobuf:"bytes,1,rep,name=required_types,json=requiredTypes,proto3" json:"required_types,omitempty"` - Values []*SecureValue `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` - Errors []*SecureValueError `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` - Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` - PrivacyPolicyUrl string `protobuf:"bytes,5,opt,name=privacy_policy_url,json=privacyPolicyUrl,proto3" json:"privacy_policy_url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type LangPackLanguage_Data struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + NativeName string `protobuf:"bytes,2,opt,name=native_name,json=nativeName,proto3" json:"native_name,omitempty"` + LangCode string `protobuf:"bytes,3,opt,name=lang_code,json=langCode,proto3" json:"lang_code,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_AuthorizationForm_Data) Reset() { *m = Account_AuthorizationForm_Data{} } -func (m *Account_AuthorizationForm_Data) String() string { return proto.CompactTextString(m) } -func (*Account_AuthorizationForm_Data) ProtoMessage() {} -func (*Account_AuthorizationForm_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{799} +func (m *LangPackLanguage_Data) Reset() { *m = LangPackLanguage_Data{} } +func (m *LangPackLanguage_Data) String() string { return proto.CompactTextString(m) } +func (*LangPackLanguage_Data) ProtoMessage() {} +func (*LangPackLanguage_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{746} } -func (m *Account_AuthorizationForm_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_AuthorizationForm_Data.Unmarshal(m, b) +func (m *LangPackLanguage_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LangPackLanguage_Data.Unmarshal(m, b) } -func (m *Account_AuthorizationForm_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_AuthorizationForm_Data.Marshal(b, m, deterministic) +func (m *LangPackLanguage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LangPackLanguage_Data.Marshal(b, m, deterministic) } -func (dst *Account_AuthorizationForm_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_AuthorizationForm_Data.Merge(dst, src) +func (dst *LangPackLanguage_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_LangPackLanguage_Data.Merge(dst, src) } -func (m *Account_AuthorizationForm_Data) XXX_Size() int { - return xxx_messageInfo_Account_AuthorizationForm_Data.Size(m) +func (m *LangPackLanguage_Data) XXX_Size() int { + return xxx_messageInfo_LangPackLanguage_Data.Size(m) } -func (m *Account_AuthorizationForm_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_AuthorizationForm_Data.DiscardUnknown(m) +func (m *LangPackLanguage_Data) XXX_DiscardUnknown() { + xxx_messageInfo_LangPackLanguage_Data.DiscardUnknown(m) } -var xxx_messageInfo_Account_AuthorizationForm_Data proto.InternalMessageInfo +var xxx_messageInfo_LangPackLanguage_Data proto.InternalMessageInfo -func (m *Account_AuthorizationForm_Data) GetRequiredTypes() []*SecureRequiredType { +func (m *LangPackLanguage_Data) GetName() string { if m != nil { - return m.RequiredTypes + return m.Name } - return nil + return "" } -func (m *Account_AuthorizationForm_Data) GetValues() []*SecureValue { +func (m *LangPackLanguage_Data) GetNativeName() string { if m != nil { - return m.Values + return m.NativeName } - return nil + return "" } -func (m *Account_AuthorizationForm_Data) GetErrors() []*SecureValueError { +func (m *LangPackLanguage_Data) GetLangCode() string { if m != nil { - return m.Errors + return m.LangCode } - return nil + return "" } -func (m *Account_AuthorizationForm_Data) GetUsers() []*User { +type LangPackLanguage struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *LangPackLanguage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LangPackLanguage) Reset() { *m = LangPackLanguage{} } +func (m *LangPackLanguage) String() string { return proto.CompactTextString(m) } +func (*LangPackLanguage) ProtoMessage() {} +func (*LangPackLanguage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{747} +} +func (m *LangPackLanguage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LangPackLanguage.Unmarshal(m, b) +} +func (m *LangPackLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LangPackLanguage.Marshal(b, m, deterministic) +} +func (dst *LangPackLanguage) XXX_Merge(src proto.Message) { + xxx_messageInfo_LangPackLanguage.Merge(dst, src) +} +func (m *LangPackLanguage) XXX_Size() int { + return xxx_messageInfo_LangPackLanguage.Size(m) +} +func (m *LangPackLanguage) XXX_DiscardUnknown() { + xxx_messageInfo_LangPackLanguage.DiscardUnknown(m) +} + +var xxx_messageInfo_LangPackLanguage proto.InternalMessageInfo + +func (m *LangPackLanguage) GetConstructor() TLConstructor { if m != nil { - return m.Users + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *Account_AuthorizationForm_Data) GetPrivacyPolicyUrl() string { +func (m *LangPackLanguage) GetData2() *LangPackLanguage_Data { if m != nil { - return m.PrivacyPolicyUrl + return m.Data2 } - return "" + return nil } -type Account_AuthorizationForm struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_AuthorizationForm_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// langPackLanguage#117698f1 name:string native_name:string lang_code:string = LangPackLanguage; +type TLLangPackLanguage struct { + Data2 *LangPackLanguage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_AuthorizationForm) Reset() { *m = Account_AuthorizationForm{} } -func (m *Account_AuthorizationForm) String() string { return proto.CompactTextString(m) } -func (*Account_AuthorizationForm) ProtoMessage() {} -func (*Account_AuthorizationForm) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{800} +func (m *TLLangPackLanguage) Reset() { *m = TLLangPackLanguage{} } +func (m *TLLangPackLanguage) String() string { return proto.CompactTextString(m) } +func (*TLLangPackLanguage) ProtoMessage() {} +func (*TLLangPackLanguage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{748} } -func (m *Account_AuthorizationForm) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_AuthorizationForm.Unmarshal(m, b) +func (m *TLLangPackLanguage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLLangPackLanguage.Unmarshal(m, b) } -func (m *Account_AuthorizationForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_AuthorizationForm.Marshal(b, m, deterministic) +func (m *TLLangPackLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLLangPackLanguage.Marshal(b, m, deterministic) } -func (dst *Account_AuthorizationForm) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_AuthorizationForm.Merge(dst, src) +func (dst *TLLangPackLanguage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLLangPackLanguage.Merge(dst, src) } -func (m *Account_AuthorizationForm) XXX_Size() int { - return xxx_messageInfo_Account_AuthorizationForm.Size(m) +func (m *TLLangPackLanguage) XXX_Size() int { + return xxx_messageInfo_TLLangPackLanguage.Size(m) } -func (m *Account_AuthorizationForm) XXX_DiscardUnknown() { - xxx_messageInfo_Account_AuthorizationForm.DiscardUnknown(m) +func (m *TLLangPackLanguage) XXX_DiscardUnknown() { + xxx_messageInfo_TLLangPackLanguage.DiscardUnknown(m) } -var xxx_messageInfo_Account_AuthorizationForm proto.InternalMessageInfo - -func (m *Account_AuthorizationForm) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLLangPackLanguage proto.InternalMessageInfo -func (m *Account_AuthorizationForm) GetData2() *Account_AuthorizationForm_Data { +func (m *TLLangPackLanguage) GetData2() *LangPackLanguage_Data { if m != nil { return m.Data2 } return nil } -// account.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm; -type TLAccountAuthorizationForm struct { - Data2 *Account_AuthorizationForm_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// Dialog <-- +// + TL_dialog +// +type Dialog_Data struct { + Pinned bool `protobuf:"varint,1,opt,name=pinned,proto3" json:"pinned,omitempty"` + UnreadMark bool `protobuf:"varint,2,opt,name=unread_mark,json=unreadMark,proto3" json:"unread_mark,omitempty"` + Peer *Peer `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"` + TopMessage int32 `protobuf:"varint,4,opt,name=top_message,json=topMessage,proto3" json:"top_message,omitempty"` + ReadInboxMaxId int32 `protobuf:"varint,5,opt,name=read_inbox_max_id,json=readInboxMaxId,proto3" json:"read_inbox_max_id,omitempty"` + ReadOutboxMaxId int32 `protobuf:"varint,6,opt,name=read_outbox_max_id,json=readOutboxMaxId,proto3" json:"read_outbox_max_id,omitempty"` + UnreadCount int32 `protobuf:"varint,7,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` + UnreadMentionsCount int32 `protobuf:"varint,8,opt,name=unread_mentions_count,json=unreadMentionsCount,proto3" json:"unread_mentions_count,omitempty"` + NotifySettings *PeerNotifySettings `protobuf:"bytes,9,opt,name=notify_settings,json=notifySettings,proto3" json:"notify_settings,omitempty"` + Pts int32 `protobuf:"varint,10,opt,name=pts,proto3" json:"pts,omitempty"` + Draft *DraftMessage `protobuf:"bytes,11,opt,name=draft,proto3" json:"draft,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountAuthorizationForm) Reset() { *m = TLAccountAuthorizationForm{} } -func (m *TLAccountAuthorizationForm) String() string { return proto.CompactTextString(m) } -func (*TLAccountAuthorizationForm) ProtoMessage() {} -func (*TLAccountAuthorizationForm) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{801} +func (m *Dialog_Data) Reset() { *m = Dialog_Data{} } +func (m *Dialog_Data) String() string { return proto.CompactTextString(m) } +func (*Dialog_Data) ProtoMessage() {} +func (*Dialog_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{749} } -func (m *TLAccountAuthorizationForm) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountAuthorizationForm.Unmarshal(m, b) +func (m *Dialog_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Dialog_Data.Unmarshal(m, b) } -func (m *TLAccountAuthorizationForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountAuthorizationForm.Marshal(b, m, deterministic) +func (m *Dialog_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Dialog_Data.Marshal(b, m, deterministic) } -func (dst *TLAccountAuthorizationForm) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountAuthorizationForm.Merge(dst, src) +func (dst *Dialog_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Dialog_Data.Merge(dst, src) } -func (m *TLAccountAuthorizationForm) XXX_Size() int { - return xxx_messageInfo_TLAccountAuthorizationForm.Size(m) +func (m *Dialog_Data) XXX_Size() int { + return xxx_messageInfo_Dialog_Data.Size(m) } -func (m *TLAccountAuthorizationForm) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountAuthorizationForm.DiscardUnknown(m) +func (m *Dialog_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Dialog_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountAuthorizationForm proto.InternalMessageInfo +var xxx_messageInfo_Dialog_Data proto.InternalMessageInfo -func (m *TLAccountAuthorizationForm) GetData2() *Account_AuthorizationForm_Data { +func (m *Dialog_Data) GetPinned() bool { if m != nil { - return m.Data2 + return m.Pinned } - return nil + return false } -// ///////////////////////////////////////////////////////////////////////////// -// InputGame <-- -// + TL_inputGameID -// + TL_inputGameShortName -// -type InputGame_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - BotId *InputUser `protobuf:"bytes,3,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"` - ShortName string `protobuf:"bytes,4,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Dialog_Data) GetUnreadMark() bool { + if m != nil { + return m.UnreadMark + } + return false } -func (m *InputGame_Data) Reset() { *m = InputGame_Data{} } -func (m *InputGame_Data) String() string { return proto.CompactTextString(m) } -func (*InputGame_Data) ProtoMessage() {} -func (*InputGame_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{802} -} -func (m *InputGame_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputGame_Data.Unmarshal(m, b) -} -func (m *InputGame_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputGame_Data.Marshal(b, m, deterministic) -} -func (dst *InputGame_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputGame_Data.Merge(dst, src) -} -func (m *InputGame_Data) XXX_Size() int { - return xxx_messageInfo_InputGame_Data.Size(m) -} -func (m *InputGame_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputGame_Data.DiscardUnknown(m) +func (m *Dialog_Data) GetPeer() *Peer { + if m != nil { + return m.Peer + } + return nil } -var xxx_messageInfo_InputGame_Data proto.InternalMessageInfo - -func (m *InputGame_Data) GetId() int64 { +func (m *Dialog_Data) GetTopMessage() int32 { if m != nil { - return m.Id + return m.TopMessage } return 0 } -func (m *InputGame_Data) GetAccessHash() int64 { +func (m *Dialog_Data) GetReadInboxMaxId() int32 { if m != nil { - return m.AccessHash + return m.ReadInboxMaxId } return 0 } -func (m *InputGame_Data) GetBotId() *InputUser { +func (m *Dialog_Data) GetReadOutboxMaxId() int32 { if m != nil { - return m.BotId + return m.ReadOutboxMaxId } - return nil + return 0 } -func (m *InputGame_Data) GetShortName() string { +func (m *Dialog_Data) GetUnreadCount() int32 { if m != nil { - return m.ShortName + return m.UnreadCount } - return "" + return 0 } -type InputGame struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputGame_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Dialog_Data) GetUnreadMentionsCount() int32 { + if m != nil { + return m.UnreadMentionsCount + } + return 0 } -func (m *InputGame) Reset() { *m = InputGame{} } -func (m *InputGame) String() string { return proto.CompactTextString(m) } -func (*InputGame) ProtoMessage() {} -func (*InputGame) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{803} -} -func (m *InputGame) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputGame.Unmarshal(m, b) -} -func (m *InputGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputGame.Marshal(b, m, deterministic) -} -func (dst *InputGame) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputGame.Merge(dst, src) -} -func (m *InputGame) XXX_Size() int { - return xxx_messageInfo_InputGame.Size(m) -} -func (m *InputGame) XXX_DiscardUnknown() { - xxx_messageInfo_InputGame.DiscardUnknown(m) +func (m *Dialog_Data) GetNotifySettings() *PeerNotifySettings { + if m != nil { + return m.NotifySettings + } + return nil } -var xxx_messageInfo_InputGame proto.InternalMessageInfo - -func (m *InputGame) GetConstructor() TLConstructor { +func (m *Dialog_Data) GetPts() int32 { if m != nil { - return m.Constructor + return m.Pts } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *InputGame) GetData2() *InputGame_Data { +func (m *Dialog_Data) GetDraft() *DraftMessage { if m != nil { - return m.Data2 + return m.Draft } return nil } -// inputGameID#32c3e77 id:long access_hash:long = InputGame; -type TLInputGameID struct { - Data2 *InputGame_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Dialog struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Dialog_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputGameID) Reset() { *m = TLInputGameID{} } -func (m *TLInputGameID) String() string { return proto.CompactTextString(m) } -func (*TLInputGameID) ProtoMessage() {} -func (*TLInputGameID) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{804} +func (m *Dialog) Reset() { *m = Dialog{} } +func (m *Dialog) String() string { return proto.CompactTextString(m) } +func (*Dialog) ProtoMessage() {} +func (*Dialog) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{750} } -func (m *TLInputGameID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputGameID.Unmarshal(m, b) +func (m *Dialog) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Dialog.Unmarshal(m, b) } -func (m *TLInputGameID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputGameID.Marshal(b, m, deterministic) +func (m *Dialog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Dialog.Marshal(b, m, deterministic) } -func (dst *TLInputGameID) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputGameID.Merge(dst, src) +func (dst *Dialog) XXX_Merge(src proto.Message) { + xxx_messageInfo_Dialog.Merge(dst, src) } -func (m *TLInputGameID) XXX_Size() int { - return xxx_messageInfo_TLInputGameID.Size(m) +func (m *Dialog) XXX_Size() int { + return xxx_messageInfo_Dialog.Size(m) } -func (m *TLInputGameID) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputGameID.DiscardUnknown(m) +func (m *Dialog) XXX_DiscardUnknown() { + xxx_messageInfo_Dialog.DiscardUnknown(m) } -var xxx_messageInfo_TLInputGameID proto.InternalMessageInfo +var xxx_messageInfo_Dialog proto.InternalMessageInfo -func (m *TLInputGameID) GetData2() *InputGame_Data { +func (m *Dialog) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Dialog) GetData2() *Dialog_Data { if m != nil { return m.Data2 } return nil } -// inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame; -type TLInputGameShortName struct { - Data2 *InputGame_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// dialog#e4def5db flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog; +type TLDialog struct { + Data2 *Dialog_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputGameShortName) Reset() { *m = TLInputGameShortName{} } -func (m *TLInputGameShortName) String() string { return proto.CompactTextString(m) } -func (*TLInputGameShortName) ProtoMessage() {} -func (*TLInputGameShortName) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{805} +func (m *TLDialog) Reset() { *m = TLDialog{} } +func (m *TLDialog) String() string { return proto.CompactTextString(m) } +func (*TLDialog) ProtoMessage() {} +func (*TLDialog) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{751} } -func (m *TLInputGameShortName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputGameShortName.Unmarshal(m, b) +func (m *TLDialog) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDialog.Unmarshal(m, b) } -func (m *TLInputGameShortName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputGameShortName.Marshal(b, m, deterministic) +func (m *TLDialog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDialog.Marshal(b, m, deterministic) } -func (dst *TLInputGameShortName) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputGameShortName.Merge(dst, src) +func (dst *TLDialog) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDialog.Merge(dst, src) } -func (m *TLInputGameShortName) XXX_Size() int { - return xxx_messageInfo_TLInputGameShortName.Size(m) +func (m *TLDialog) XXX_Size() int { + return xxx_messageInfo_TLDialog.Size(m) } -func (m *TLInputGameShortName) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputGameShortName.DiscardUnknown(m) +func (m *TLDialog) XXX_DiscardUnknown() { + xxx_messageInfo_TLDialog.DiscardUnknown(m) } -var xxx_messageInfo_TLInputGameShortName proto.InternalMessageInfo +var xxx_messageInfo_TLDialog proto.InternalMessageInfo -func (m *TLInputGameShortName) GetData2() *InputGame_Data { +func (m *TLDialog) GetData2() *Dialog_Data { if m != nil { return m.Data2 } @@ -38881,4021 +37485,3803 @@ func (m *TLInputGameShortName) GetData2() *InputGame_Data { } // ///////////////////////////////////////////////////////////////////////////// -// SecureValueHash <-- -// + TL_secureValueHash +// Update <-- +// + TL_updateNewMessage +// + TL_updateMessageID +// + TL_updateDeleteMessages +// + TL_updateUserTyping +// + TL_updateChatUserTyping +// + TL_updateChatParticipants +// + TL_updateUserStatus +// + TL_updateUserName +// + TL_updateUserPhoto +// + TL_updateContactRegistered +// + TL_updateContactLink +// + TL_updateNewEncryptedMessage +// + TL_updateEncryptedChatTyping +// + TL_updateEncryption +// + TL_updateEncryptedMessagesRead +// + TL_updateChatParticipantAdd +// + TL_updateChatParticipantDelete +// + TL_updateDcOptions +// + TL_updateUserBlocked +// + TL_updateNotifySettings +// + TL_updateServiceNotification +// + TL_updatePrivacy +// + TL_updateUserPhone +// + TL_updateReadHistoryInbox +// + TL_updateReadHistoryOutbox +// + TL_updateWebPage +// + TL_updateReadMessagesContents +// + TL_updateChannelTooLong +// + TL_updateChannel +// + TL_updateNewChannelMessage +// + TL_updateReadChannelInbox +// + TL_updateDeleteChannelMessages +// + TL_updateChannelMessageViews +// + TL_updateChatAdmins +// + TL_updateChatParticipantAdmin +// + TL_updateNewStickerSet +// + TL_updateStickerSetsOrder +// + TL_updateStickerSets +// + TL_updateSavedGifs +// + TL_updateBotInlineQuery +// + TL_updateBotInlineSend +// + TL_updateEditChannelMessage +// + TL_updateChannelPinnedMessage +// + TL_updateBotCallbackQuery +// + TL_updateEditMessage +// + TL_updateInlineBotCallbackQuery +// + TL_updateReadChannelOutbox +// + TL_updateDraftMessage +// + TL_updateReadFeaturedStickers +// + TL_updateRecentStickers +// + TL_updateConfig +// + TL_updatePtsChanged +// + TL_updateChannelWebPage +// + TL_updateDialogPinned +// + TL_updatePinnedDialogs +// + TL_updateBotWebhookJSON +// + TL_updateBotWebhookJSONQuery +// + TL_updateBotShippingQuery +// + TL_updateBotPrecheckoutQuery +// + TL_updatePhoneCall +// + TL_updateLangPackTooLong +// + TL_updateLangPack +// + TL_updateFavedStickers +// + TL_updateChannelReadMessagesContents +// + TL_updateContactsReset +// + TL_updateChannelAvailableMessages +// + TL_updateDialogUnreadMark // -type SecureValueHash_Data struct { - Type *SecureValueType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Update_Data struct { + Message_1 *Message `protobuf:"bytes,1,opt,name=message_1,json=message1,proto3" json:"message_1,omitempty"` + Pts int32 `protobuf:"varint,2,opt,name=pts,proto3" json:"pts,omitempty"` + PtsCount int32 `protobuf:"varint,3,opt,name=pts_count,json=ptsCount,proto3" json:"pts_count,omitempty"` + Id_4 int32 `protobuf:"varint,4,opt,name=id_4,json=id4,proto3" json:"id_4,omitempty"` + RandomId int64 `protobuf:"varint,5,opt,name=random_id,json=randomId,proto3" json:"random_id,omitempty"` + Messages []int32 `protobuf:"varint,6,rep,packed,name=messages,proto3" json:"messages,omitempty"` + UserId int32 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Action *SendMessageAction `protobuf:"bytes,8,opt,name=action,proto3" json:"action,omitempty"` + ChatId int32 `protobuf:"varint,9,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + Participants *ChatParticipants `protobuf:"bytes,10,opt,name=participants,proto3" json:"participants,omitempty"` + Status *UserStatus `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"` + FirstName string `protobuf:"bytes,12,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,13,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Username string `protobuf:"bytes,14,opt,name=username,proto3" json:"username,omitempty"` + Date int32 `protobuf:"varint,15,opt,name=date,proto3" json:"date,omitempty"` + Photo *UserProfilePhoto `protobuf:"bytes,16,opt,name=photo,proto3" json:"photo,omitempty"` + Previous *Bool `protobuf:"bytes,17,opt,name=previous,proto3" json:"previous,omitempty"` + MyLink *ContactLink `protobuf:"bytes,18,opt,name=my_link,json=myLink,proto3" json:"my_link,omitempty"` + ForeignLink *ContactLink `protobuf:"bytes,19,opt,name=foreign_link,json=foreignLink,proto3" json:"foreign_link,omitempty"` + Message_20 *EncryptedMessage `protobuf:"bytes,20,opt,name=message_20,json=message20,proto3" json:"message_20,omitempty"` + Qts int32 `protobuf:"varint,21,opt,name=qts,proto3" json:"qts,omitempty"` + Chat *EncryptedChat `protobuf:"bytes,22,opt,name=chat,proto3" json:"chat,omitempty"` + MaxDate int32 `protobuf:"varint,23,opt,name=max_date,json=maxDate,proto3" json:"max_date,omitempty"` + InviterId int32 `protobuf:"varint,24,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` + Version int32 `protobuf:"varint,25,opt,name=version,proto3" json:"version,omitempty"` + DcOptions []*DcOption `protobuf:"bytes,26,rep,name=dc_options,json=dcOptions,proto3" json:"dc_options,omitempty"` + Blocked *Bool `protobuf:"bytes,27,opt,name=blocked,proto3" json:"blocked,omitempty"` + Peer_28 *NotifyPeer `protobuf:"bytes,28,opt,name=peer_28,json=peer28,proto3" json:"peer_28,omitempty"` + NotifySettings *PeerNotifySettings `protobuf:"bytes,29,opt,name=notify_settings,json=notifySettings,proto3" json:"notify_settings,omitempty"` + Popup bool `protobuf:"varint,30,opt,name=popup,proto3" json:"popup,omitempty"` + InboxDate int32 `protobuf:"varint,31,opt,name=inbox_date,json=inboxDate,proto3" json:"inbox_date,omitempty"` + Type string `protobuf:"bytes,32,opt,name=type,proto3" json:"type,omitempty"` + Message_33 string `protobuf:"bytes,33,opt,name=message_33,json=message33,proto3" json:"message_33,omitempty"` + Media *MessageMedia `protobuf:"bytes,34,opt,name=media,proto3" json:"media,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,35,rep,name=entities,proto3" json:"entities,omitempty"` + Key *PrivacyKey `protobuf:"bytes,36,opt,name=key,proto3" json:"key,omitempty"` + Rules []*PrivacyRule `protobuf:"bytes,37,rep,name=rules,proto3" json:"rules,omitempty"` + Phone string `protobuf:"bytes,38,opt,name=phone,proto3" json:"phone,omitempty"` + Peer_39 *Peer `protobuf:"bytes,39,opt,name=peer_39,json=peer39,proto3" json:"peer_39,omitempty"` + MaxId int32 `protobuf:"varint,40,opt,name=max_id,json=maxId,proto3" json:"max_id,omitempty"` + Webpage *WebPage `protobuf:"bytes,41,opt,name=webpage,proto3" json:"webpage,omitempty"` + ChannelId int32 `protobuf:"varint,42,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + Views int32 `protobuf:"varint,43,opt,name=views,proto3" json:"views,omitempty"` + Enabled *Bool `protobuf:"bytes,44,opt,name=enabled,proto3" json:"enabled,omitempty"` + IsAdmin *Bool `protobuf:"bytes,45,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` + Stickerset *Messages_StickerSet `protobuf:"bytes,46,opt,name=stickerset,proto3" json:"stickerset,omitempty"` + Masks bool `protobuf:"varint,47,opt,name=masks,proto3" json:"masks,omitempty"` + Order_48 []int64 `protobuf:"varint,48,rep,packed,name=order_48,json=order48,proto3" json:"order_48,omitempty"` + QueryId int64 `protobuf:"varint,49,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + Query string `protobuf:"bytes,50,opt,name=query,proto3" json:"query,omitempty"` + Geo *GeoPoint `protobuf:"bytes,51,opt,name=geo,proto3" json:"geo,omitempty"` + Offset string `protobuf:"bytes,52,opt,name=offset,proto3" json:"offset,omitempty"` + Id_53 string `protobuf:"bytes,53,opt,name=id_53,json=id53,proto3" json:"id_53,omitempty"` + MsgId_54 *InputBotInlineMessageID `protobuf:"bytes,54,opt,name=msg_id_54,json=msgId54,proto3" json:"msg_id_54,omitempty"` + MsgId_55 int32 `protobuf:"varint,55,opt,name=msg_id_55,json=msgId55,proto3" json:"msg_id_55,omitempty"` + ChatInstance int64 `protobuf:"varint,56,opt,name=chat_instance,json=chatInstance,proto3" json:"chat_instance,omitempty"` + Data_57 []byte `protobuf:"bytes,57,opt,name=data_57,json=data57,proto3" json:"data_57,omitempty"` + GameShortName string `protobuf:"bytes,58,opt,name=game_short_name,json=gameShortName,proto3" json:"game_short_name,omitempty"` + Draft *DraftMessage `protobuf:"bytes,59,opt,name=draft,proto3" json:"draft,omitempty"` + Pinned bool `protobuf:"varint,60,opt,name=pinned,proto3" json:"pinned,omitempty"` + Peer_61 *DialogPeer `protobuf:"bytes,61,opt,name=peer_61,json=peer61,proto3" json:"peer_61,omitempty"` + Order_62 []*DialogPeer `protobuf:"bytes,62,rep,name=order_62,json=order62,proto3" json:"order_62,omitempty"` + Data_63 *DataJSON `protobuf:"bytes,63,opt,name=data_63,json=data63,proto3" json:"data_63,omitempty"` + Timeout int32 `protobuf:"varint,64,opt,name=timeout,proto3" json:"timeout,omitempty"` + Payload []byte `protobuf:"bytes,65,opt,name=payload,proto3" json:"payload,omitempty"` + ShippingAddress *PostAddress `protobuf:"bytes,66,opt,name=shipping_address,json=shippingAddress,proto3" json:"shipping_address,omitempty"` + Info *PaymentRequestedInfo `protobuf:"bytes,67,opt,name=info,proto3" json:"info,omitempty"` + ShippingOptionId string `protobuf:"bytes,68,opt,name=shipping_option_id,json=shippingOptionId,proto3" json:"shipping_option_id,omitempty"` + Currency string `protobuf:"bytes,69,opt,name=currency,proto3" json:"currency,omitempty"` + TotalAmount int64 `protobuf:"varint,70,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` + PhoneCall *PhoneCall `protobuf:"bytes,71,opt,name=phone_call,json=phoneCall,proto3" json:"phone_call,omitempty"` + Difference *LangPackDifference `protobuf:"bytes,72,opt,name=difference,proto3" json:"difference,omitempty"` + AvailableMinId int32 `protobuf:"varint,73,opt,name=available_min_id,json=availableMinId,proto3" json:"available_min_id,omitempty"` + Unread bool `protobuf:"varint,74,opt,name=unread,proto3" json:"unread,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureValueHash_Data) Reset() { *m = SecureValueHash_Data{} } -func (m *SecureValueHash_Data) String() string { return proto.CompactTextString(m) } -func (*SecureValueHash_Data) ProtoMessage() {} -func (*SecureValueHash_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{806} +func (m *Update_Data) Reset() { *m = Update_Data{} } +func (m *Update_Data) String() string { return proto.CompactTextString(m) } +func (*Update_Data) ProtoMessage() {} +func (*Update_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{752} } -func (m *SecureValueHash_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureValueHash_Data.Unmarshal(m, b) +func (m *Update_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Update_Data.Unmarshal(m, b) } -func (m *SecureValueHash_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureValueHash_Data.Marshal(b, m, deterministic) +func (m *Update_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Update_Data.Marshal(b, m, deterministic) } -func (dst *SecureValueHash_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureValueHash_Data.Merge(dst, src) +func (dst *Update_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Update_Data.Merge(dst, src) } -func (m *SecureValueHash_Data) XXX_Size() int { - return xxx_messageInfo_SecureValueHash_Data.Size(m) +func (m *Update_Data) XXX_Size() int { + return xxx_messageInfo_Update_Data.Size(m) } -func (m *SecureValueHash_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecureValueHash_Data.DiscardUnknown(m) +func (m *Update_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Update_Data.DiscardUnknown(m) } -var xxx_messageInfo_SecureValueHash_Data proto.InternalMessageInfo +var xxx_messageInfo_Update_Data proto.InternalMessageInfo -func (m *SecureValueHash_Data) GetType() *SecureValueType { +func (m *Update_Data) GetMessage_1() *Message { if m != nil { - return m.Type + return m.Message_1 } return nil } -func (m *SecureValueHash_Data) GetHash() []byte { +func (m *Update_Data) GetPts() int32 { if m != nil { - return m.Hash + return m.Pts } - return nil + return 0 } -type SecureValueHash struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecureValueHash_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetPtsCount() int32 { + if m != nil { + return m.PtsCount + } + return 0 } -func (m *SecureValueHash) Reset() { *m = SecureValueHash{} } -func (m *SecureValueHash) String() string { return proto.CompactTextString(m) } -func (*SecureValueHash) ProtoMessage() {} -func (*SecureValueHash) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{807} -} -func (m *SecureValueHash) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureValueHash.Unmarshal(m, b) -} -func (m *SecureValueHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureValueHash.Marshal(b, m, deterministic) -} -func (dst *SecureValueHash) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureValueHash.Merge(dst, src) -} -func (m *SecureValueHash) XXX_Size() int { - return xxx_messageInfo_SecureValueHash.Size(m) -} -func (m *SecureValueHash) XXX_DiscardUnknown() { - xxx_messageInfo_SecureValueHash.DiscardUnknown(m) +func (m *Update_Data) GetId_4() int32 { + if m != nil { + return m.Id_4 + } + return 0 } -var xxx_messageInfo_SecureValueHash proto.InternalMessageInfo - -func (m *SecureValueHash) GetConstructor() TLConstructor { +func (m *Update_Data) GetRandomId() int64 { if m != nil { - return m.Constructor + return m.RandomId } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *SecureValueHash) GetData2() *SecureValueHash_Data { +func (m *Update_Data) GetMessages() []int32 { if m != nil { - return m.Data2 + return m.Messages } return nil } -// secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash; -type TLSecureValueHash struct { - Data2 *SecureValueHash_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetUserId() int32 { + if m != nil { + return m.UserId + } + return 0 } -func (m *TLSecureValueHash) Reset() { *m = TLSecureValueHash{} } -func (m *TLSecureValueHash) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueHash) ProtoMessage() {} -func (*TLSecureValueHash) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{808} -} -func (m *TLSecureValueHash) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueHash.Unmarshal(m, b) -} -func (m *TLSecureValueHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueHash.Marshal(b, m, deterministic) -} -func (dst *TLSecureValueHash) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueHash.Merge(dst, src) -} -func (m *TLSecureValueHash) XXX_Size() int { - return xxx_messageInfo_TLSecureValueHash.Size(m) -} -func (m *TLSecureValueHash) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueHash.DiscardUnknown(m) +func (m *Update_Data) GetAction() *SendMessageAction { + if m != nil { + return m.Action + } + return nil } -var xxx_messageInfo_TLSecureValueHash proto.InternalMessageInfo +func (m *Update_Data) GetChatId() int32 { + if m != nil { + return m.ChatId + } + return 0 +} -func (m *TLSecureValueHash) GetData2() *SecureValueHash_Data { +func (m *Update_Data) GetParticipants() *ChatParticipants { if m != nil { - return m.Data2 + return m.Participants } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputPrivacyKey <-- -// + TL_inputPrivacyKeyStatusTimestamp -// + TL_inputPrivacyKeyChatInvite -// + TL_inputPrivacyKeyPhoneCall -// -type InputPrivacyKey_Data struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetStatus() *UserStatus { + if m != nil { + return m.Status + } + return nil } -func (m *InputPrivacyKey_Data) Reset() { *m = InputPrivacyKey_Data{} } -func (m *InputPrivacyKey_Data) String() string { return proto.CompactTextString(m) } -func (*InputPrivacyKey_Data) ProtoMessage() {} -func (*InputPrivacyKey_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{809} -} -func (m *InputPrivacyKey_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPrivacyKey_Data.Unmarshal(m, b) -} -func (m *InputPrivacyKey_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPrivacyKey_Data.Marshal(b, m, deterministic) -} -func (dst *InputPrivacyKey_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPrivacyKey_Data.Merge(dst, src) -} -func (m *InputPrivacyKey_Data) XXX_Size() int { - return xxx_messageInfo_InputPrivacyKey_Data.Size(m) -} -func (m *InputPrivacyKey_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputPrivacyKey_Data.DiscardUnknown(m) +func (m *Update_Data) GetFirstName() string { + if m != nil { + return m.FirstName + } + return "" } -var xxx_messageInfo_InputPrivacyKey_Data proto.InternalMessageInfo - -type InputPrivacyKey struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputPrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetLastName() string { + if m != nil { + return m.LastName + } + return "" } -func (m *InputPrivacyKey) Reset() { *m = InputPrivacyKey{} } -func (m *InputPrivacyKey) String() string { return proto.CompactTextString(m) } -func (*InputPrivacyKey) ProtoMessage() {} -func (*InputPrivacyKey) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{810} -} -func (m *InputPrivacyKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputPrivacyKey.Unmarshal(m, b) -} -func (m *InputPrivacyKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputPrivacyKey.Marshal(b, m, deterministic) -} -func (dst *InputPrivacyKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputPrivacyKey.Merge(dst, src) -} -func (m *InputPrivacyKey) XXX_Size() int { - return xxx_messageInfo_InputPrivacyKey.Size(m) -} -func (m *InputPrivacyKey) XXX_DiscardUnknown() { - xxx_messageInfo_InputPrivacyKey.DiscardUnknown(m) +func (m *Update_Data) GetUsername() string { + if m != nil { + return m.Username + } + return "" } -var xxx_messageInfo_InputPrivacyKey proto.InternalMessageInfo - -func (m *InputPrivacyKey) GetConstructor() TLConstructor { +func (m *Update_Data) GetDate() int32 { if m != nil { - return m.Constructor + return m.Date } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *InputPrivacyKey) GetData2() *InputPrivacyKey_Data { +func (m *Update_Data) GetPhoto() *UserProfilePhoto { if m != nil { - return m.Data2 + return m.Photo } return nil } -// inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey; -type TLInputPrivacyKeyStatusTimestamp struct { - Data2 *InputPrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetPrevious() *Bool { + if m != nil { + return m.Previous + } + return nil } -func (m *TLInputPrivacyKeyStatusTimestamp) Reset() { *m = TLInputPrivacyKeyStatusTimestamp{} } -func (m *TLInputPrivacyKeyStatusTimestamp) String() string { return proto.CompactTextString(m) } -func (*TLInputPrivacyKeyStatusTimestamp) ProtoMessage() {} -func (*TLInputPrivacyKeyStatusTimestamp) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{811} -} -func (m *TLInputPrivacyKeyStatusTimestamp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.Unmarshal(m, b) -} -func (m *TLInputPrivacyKeyStatusTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.Marshal(b, m, deterministic) -} -func (dst *TLInputPrivacyKeyStatusTimestamp) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.Merge(dst, src) -} -func (m *TLInputPrivacyKeyStatusTimestamp) XXX_Size() int { - return xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.Size(m) -} -func (m *TLInputPrivacyKeyStatusTimestamp) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp.DiscardUnknown(m) +func (m *Update_Data) GetMyLink() *ContactLink { + if m != nil { + return m.MyLink + } + return nil } -var xxx_messageInfo_TLInputPrivacyKeyStatusTimestamp proto.InternalMessageInfo - -func (m *TLInputPrivacyKeyStatusTimestamp) GetData2() *InputPrivacyKey_Data { +func (m *Update_Data) GetForeignLink() *ContactLink { if m != nil { - return m.Data2 + return m.ForeignLink } return nil } -// inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; -type TLInputPrivacyKeyChatInvite struct { - Data2 *InputPrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetMessage_20() *EncryptedMessage { + if m != nil { + return m.Message_20 + } + return nil } -func (m *TLInputPrivacyKeyChatInvite) Reset() { *m = TLInputPrivacyKeyChatInvite{} } -func (m *TLInputPrivacyKeyChatInvite) String() string { return proto.CompactTextString(m) } -func (*TLInputPrivacyKeyChatInvite) ProtoMessage() {} -func (*TLInputPrivacyKeyChatInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{812} -} -func (m *TLInputPrivacyKeyChatInvite) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPrivacyKeyChatInvite.Unmarshal(m, b) -} -func (m *TLInputPrivacyKeyChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPrivacyKeyChatInvite.Marshal(b, m, deterministic) +func (m *Update_Data) GetQts() int32 { + if m != nil { + return m.Qts + } + return 0 } -func (dst *TLInputPrivacyKeyChatInvite) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPrivacyKeyChatInvite.Merge(dst, src) + +func (m *Update_Data) GetChat() *EncryptedChat { + if m != nil { + return m.Chat + } + return nil } -func (m *TLInputPrivacyKeyChatInvite) XXX_Size() int { - return xxx_messageInfo_TLInputPrivacyKeyChatInvite.Size(m) + +func (m *Update_Data) GetMaxDate() int32 { + if m != nil { + return m.MaxDate + } + return 0 } -func (m *TLInputPrivacyKeyChatInvite) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPrivacyKeyChatInvite.DiscardUnknown(m) + +func (m *Update_Data) GetInviterId() int32 { + if m != nil { + return m.InviterId + } + return 0 } -var xxx_messageInfo_TLInputPrivacyKeyChatInvite proto.InternalMessageInfo +func (m *Update_Data) GetVersion() int32 { + if m != nil { + return m.Version + } + return 0 +} -func (m *TLInputPrivacyKeyChatInvite) GetData2() *InputPrivacyKey_Data { +func (m *Update_Data) GetDcOptions() []*DcOption { if m != nil { - return m.Data2 + return m.DcOptions } return nil } -// inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey; -type TLInputPrivacyKeyPhoneCall struct { - Data2 *InputPrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetBlocked() *Bool { + if m != nil { + return m.Blocked + } + return nil } -func (m *TLInputPrivacyKeyPhoneCall) Reset() { *m = TLInputPrivacyKeyPhoneCall{} } -func (m *TLInputPrivacyKeyPhoneCall) String() string { return proto.CompactTextString(m) } -func (*TLInputPrivacyKeyPhoneCall) ProtoMessage() {} -func (*TLInputPrivacyKeyPhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{813} +func (m *Update_Data) GetPeer_28() *NotifyPeer { + if m != nil { + return m.Peer_28 + } + return nil } -func (m *TLInputPrivacyKeyPhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPrivacyKeyPhoneCall.Unmarshal(m, b) + +func (m *Update_Data) GetNotifySettings() *PeerNotifySettings { + if m != nil { + return m.NotifySettings + } + return nil } -func (m *TLInputPrivacyKeyPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPrivacyKeyPhoneCall.Marshal(b, m, deterministic) + +func (m *Update_Data) GetPopup() bool { + if m != nil { + return m.Popup + } + return false } -func (dst *TLInputPrivacyKeyPhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPrivacyKeyPhoneCall.Merge(dst, src) + +func (m *Update_Data) GetInboxDate() int32 { + if m != nil { + return m.InboxDate + } + return 0 } -func (m *TLInputPrivacyKeyPhoneCall) XXX_Size() int { - return xxx_messageInfo_TLInputPrivacyKeyPhoneCall.Size(m) + +func (m *Update_Data) GetType() string { + if m != nil { + return m.Type + } + return "" } -func (m *TLInputPrivacyKeyPhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPrivacyKeyPhoneCall.DiscardUnknown(m) + +func (m *Update_Data) GetMessage_33() string { + if m != nil { + return m.Message_33 + } + return "" } -var xxx_messageInfo_TLInputPrivacyKeyPhoneCall proto.InternalMessageInfo +func (m *Update_Data) GetMedia() *MessageMedia { + if m != nil { + return m.Media + } + return nil +} -func (m *TLInputPrivacyKeyPhoneCall) GetData2() *InputPrivacyKey_Data { +func (m *Update_Data) GetEntities() []*MessageEntity { if m != nil { - return m.Data2 + return m.Entities } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputBotInlineMessage <-- -// + TL_inputBotInlineMessageMediaAuto -// + TL_inputBotInlineMessageText -// + TL_inputBotInlineMessageMediaGeo -// + TL_inputBotInlineMessageMediaVenue -// + TL_inputBotInlineMessageMediaContact -// + TL_inputBotInlineMessageGame -// -type InputBotInlineMessage_Data struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` - ReplyMarkup *ReplyMarkup `protobuf:"bytes,3,opt,name=reply_markup,json=replyMarkup,proto3" json:"reply_markup,omitempty"` - NoWebpage bool `protobuf:"varint,4,opt,name=no_webpage,json=noWebpage,proto3" json:"no_webpage,omitempty"` - GeoPoint *InputGeoPoint `protobuf:"bytes,5,opt,name=geo_point,json=geoPoint,proto3" json:"geo_point,omitempty"` - Period int32 `protobuf:"varint,6,opt,name=period,proto3" json:"period,omitempty"` - Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` - Address string `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"` - Provider string `protobuf:"bytes,9,opt,name=provider,proto3" json:"provider,omitempty"` - VenueId string `protobuf:"bytes,10,opt,name=venue_id,json=venueId,proto3" json:"venue_id,omitempty"` - VenueType string `protobuf:"bytes,11,opt,name=venue_type,json=venueType,proto3" json:"venue_type,omitempty"` - PhoneNumber string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` - FirstName string `protobuf:"bytes,13,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,14,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Vcard string `protobuf:"bytes,15,opt,name=vcard,proto3" json:"vcard,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetKey() *PrivacyKey { + if m != nil { + return m.Key + } + return nil } -func (m *InputBotInlineMessage_Data) Reset() { *m = InputBotInlineMessage_Data{} } -func (m *InputBotInlineMessage_Data) String() string { return proto.CompactTextString(m) } -func (*InputBotInlineMessage_Data) ProtoMessage() {} -func (*InputBotInlineMessage_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{814} +func (m *Update_Data) GetRules() []*PrivacyRule { + if m != nil { + return m.Rules + } + return nil } -func (m *InputBotInlineMessage_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputBotInlineMessage_Data.Unmarshal(m, b) + +func (m *Update_Data) GetPhone() string { + if m != nil { + return m.Phone + } + return "" } -func (m *InputBotInlineMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputBotInlineMessage_Data.Marshal(b, m, deterministic) + +func (m *Update_Data) GetPeer_39() *Peer { + if m != nil { + return m.Peer_39 + } + return nil } -func (dst *InputBotInlineMessage_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputBotInlineMessage_Data.Merge(dst, src) + +func (m *Update_Data) GetMaxId() int32 { + if m != nil { + return m.MaxId + } + return 0 } -func (m *InputBotInlineMessage_Data) XXX_Size() int { - return xxx_messageInfo_InputBotInlineMessage_Data.Size(m) + +func (m *Update_Data) GetWebpage() *WebPage { + if m != nil { + return m.Webpage + } + return nil } -func (m *InputBotInlineMessage_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputBotInlineMessage_Data.DiscardUnknown(m) + +func (m *Update_Data) GetChannelId() int32 { + if m != nil { + return m.ChannelId + } + return 0 } -var xxx_messageInfo_InputBotInlineMessage_Data proto.InternalMessageInfo +func (m *Update_Data) GetViews() int32 { + if m != nil { + return m.Views + } + return 0 +} -func (m *InputBotInlineMessage_Data) GetMessage() string { +func (m *Update_Data) GetEnabled() *Bool { if m != nil { - return m.Message + return m.Enabled } - return "" + return nil } -func (m *InputBotInlineMessage_Data) GetEntities() []*MessageEntity { +func (m *Update_Data) GetIsAdmin() *Bool { if m != nil { - return m.Entities + return m.IsAdmin } return nil } -func (m *InputBotInlineMessage_Data) GetReplyMarkup() *ReplyMarkup { +func (m *Update_Data) GetStickerset() *Messages_StickerSet { if m != nil { - return m.ReplyMarkup + return m.Stickerset } return nil } -func (m *InputBotInlineMessage_Data) GetNoWebpage() bool { +func (m *Update_Data) GetMasks() bool { if m != nil { - return m.NoWebpage + return m.Masks } return false } -func (m *InputBotInlineMessage_Data) GetGeoPoint() *InputGeoPoint { +func (m *Update_Data) GetOrder_48() []int64 { if m != nil { - return m.GeoPoint + return m.Order_48 } return nil } -func (m *InputBotInlineMessage_Data) GetPeriod() int32 { +func (m *Update_Data) GetQueryId() int64 { if m != nil { - return m.Period + return m.QueryId } return 0 } -func (m *InputBotInlineMessage_Data) GetTitle() string { +func (m *Update_Data) GetQuery() string { if m != nil { - return m.Title + return m.Query } return "" } -func (m *InputBotInlineMessage_Data) GetAddress() string { +func (m *Update_Data) GetGeo() *GeoPoint { if m != nil { - return m.Address + return m.Geo } - return "" + return nil } -func (m *InputBotInlineMessage_Data) GetProvider() string { +func (m *Update_Data) GetOffset() string { if m != nil { - return m.Provider + return m.Offset } return "" } -func (m *InputBotInlineMessage_Data) GetVenueId() string { +func (m *Update_Data) GetId_53() string { if m != nil { - return m.VenueId + return m.Id_53 } return "" } -func (m *InputBotInlineMessage_Data) GetVenueType() string { +func (m *Update_Data) GetMsgId_54() *InputBotInlineMessageID { if m != nil { - return m.VenueType + return m.MsgId_54 } - return "" + return nil } -func (m *InputBotInlineMessage_Data) GetPhoneNumber() string { +func (m *Update_Data) GetMsgId_55() int32 { if m != nil { - return m.PhoneNumber + return m.MsgId_55 } - return "" + return 0 } -func (m *InputBotInlineMessage_Data) GetFirstName() string { +func (m *Update_Data) GetChatInstance() int64 { if m != nil { - return m.FirstName + return m.ChatInstance } - return "" + return 0 } -func (m *InputBotInlineMessage_Data) GetLastName() string { +func (m *Update_Data) GetData_57() []byte { if m != nil { - return m.LastName + return m.Data_57 } - return "" + return nil } -func (m *InputBotInlineMessage_Data) GetVcard() string { +func (m *Update_Data) GetGameShortName() string { if m != nil { - return m.Vcard + return m.GameShortName } return "" } -type InputBotInlineMessage struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetDraft() *DraftMessage { + if m != nil { + return m.Draft + } + return nil } -func (m *InputBotInlineMessage) Reset() { *m = InputBotInlineMessage{} } -func (m *InputBotInlineMessage) String() string { return proto.CompactTextString(m) } -func (*InputBotInlineMessage) ProtoMessage() {} -func (*InputBotInlineMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{815} -} -func (m *InputBotInlineMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputBotInlineMessage.Unmarshal(m, b) -} -func (m *InputBotInlineMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputBotInlineMessage.Marshal(b, m, deterministic) -} -func (dst *InputBotInlineMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputBotInlineMessage.Merge(dst, src) -} -func (m *InputBotInlineMessage) XXX_Size() int { - return xxx_messageInfo_InputBotInlineMessage.Size(m) -} -func (m *InputBotInlineMessage) XXX_DiscardUnknown() { - xxx_messageInfo_InputBotInlineMessage.DiscardUnknown(m) +func (m *Update_Data) GetPinned() bool { + if m != nil { + return m.Pinned + } + return false } -var xxx_messageInfo_InputBotInlineMessage proto.InternalMessageInfo - -func (m *InputBotInlineMessage) GetConstructor() TLConstructor { +func (m *Update_Data) GetPeer_61() *DialogPeer { if m != nil { - return m.Constructor + return m.Peer_61 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *InputBotInlineMessage) GetData2() *InputBotInlineMessage_Data { +func (m *Update_Data) GetOrder_62() []*DialogPeer { if m != nil { - return m.Data2 + return m.Order_62 } return nil } -// inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -type TLInputBotInlineMessageMediaAuto struct { - Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetData_63() *DataJSON { + if m != nil { + return m.Data_63 + } + return nil } -func (m *TLInputBotInlineMessageMediaAuto) Reset() { *m = TLInputBotInlineMessageMediaAuto{} } -func (m *TLInputBotInlineMessageMediaAuto) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineMessageMediaAuto) ProtoMessage() {} -func (*TLInputBotInlineMessageMediaAuto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{816} -} -func (m *TLInputBotInlineMessageMediaAuto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineMessageMediaAuto.Unmarshal(m, b) -} -func (m *TLInputBotInlineMessageMediaAuto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineMessageMediaAuto.Marshal(b, m, deterministic) -} -func (dst *TLInputBotInlineMessageMediaAuto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineMessageMediaAuto.Merge(dst, src) -} -func (m *TLInputBotInlineMessageMediaAuto) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineMessageMediaAuto.Size(m) -} -func (m *TLInputBotInlineMessageMediaAuto) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineMessageMediaAuto.DiscardUnknown(m) +func (m *Update_Data) GetTimeout() int32 { + if m != nil { + return m.Timeout + } + return 0 } -var xxx_messageInfo_TLInputBotInlineMessageMediaAuto proto.InternalMessageInfo - -func (m *TLInputBotInlineMessageMediaAuto) GetData2() *InputBotInlineMessage_Data { +func (m *Update_Data) GetPayload() []byte { if m != nil { - return m.Data2 + return m.Payload } return nil } -// inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -type TLInputBotInlineMessageText struct { - Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Update_Data) GetShippingAddress() *PostAddress { + if m != nil { + return m.ShippingAddress + } + return nil } -func (m *TLInputBotInlineMessageText) Reset() { *m = TLInputBotInlineMessageText{} } -func (m *TLInputBotInlineMessageText) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineMessageText) ProtoMessage() {} -func (*TLInputBotInlineMessageText) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{817} +func (m *Update_Data) GetInfo() *PaymentRequestedInfo { + if m != nil { + return m.Info + } + return nil } -func (m *TLInputBotInlineMessageText) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineMessageText.Unmarshal(m, b) + +func (m *Update_Data) GetShippingOptionId() string { + if m != nil { + return m.ShippingOptionId + } + return "" } -func (m *TLInputBotInlineMessageText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineMessageText.Marshal(b, m, deterministic) + +func (m *Update_Data) GetCurrency() string { + if m != nil { + return m.Currency + } + return "" } -func (dst *TLInputBotInlineMessageText) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineMessageText.Merge(dst, src) + +func (m *Update_Data) GetTotalAmount() int64 { + if m != nil { + return m.TotalAmount + } + return 0 } -func (m *TLInputBotInlineMessageText) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineMessageText.Size(m) + +func (m *Update_Data) GetPhoneCall() *PhoneCall { + if m != nil { + return m.PhoneCall + } + return nil } -func (m *TLInputBotInlineMessageText) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineMessageText.DiscardUnknown(m) + +func (m *Update_Data) GetDifference() *LangPackDifference { + if m != nil { + return m.Difference + } + return nil } -var xxx_messageInfo_TLInputBotInlineMessageText proto.InternalMessageInfo +func (m *Update_Data) GetAvailableMinId() int32 { + if m != nil { + return m.AvailableMinId + } + return 0 +} -func (m *TLInputBotInlineMessageText) GetData2() *InputBotInlineMessage_Data { +func (m *Update_Data) GetUnread() bool { if m != nil { - return m.Data2 + return m.Unread } - return nil + return false } -// inputBotInlineMessageMediaGeo#c1b15d65 flags:# geo_point:InputGeoPoint period:int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -type TLInputBotInlineMessageMediaGeo struct { - Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Update struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputBotInlineMessageMediaGeo) Reset() { *m = TLInputBotInlineMessageMediaGeo{} } -func (m *TLInputBotInlineMessageMediaGeo) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineMessageMediaGeo) ProtoMessage() {} -func (*TLInputBotInlineMessageMediaGeo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{818} +func (m *Update) Reset() { *m = Update{} } +func (m *Update) String() string { return proto.CompactTextString(m) } +func (*Update) ProtoMessage() {} +func (*Update) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{753} } -func (m *TLInputBotInlineMessageMediaGeo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineMessageMediaGeo.Unmarshal(m, b) +func (m *Update) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Update.Unmarshal(m, b) } -func (m *TLInputBotInlineMessageMediaGeo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineMessageMediaGeo.Marshal(b, m, deterministic) +func (m *Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Update.Marshal(b, m, deterministic) } -func (dst *TLInputBotInlineMessageMediaGeo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineMessageMediaGeo.Merge(dst, src) +func (dst *Update) XXX_Merge(src proto.Message) { + xxx_messageInfo_Update.Merge(dst, src) } -func (m *TLInputBotInlineMessageMediaGeo) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineMessageMediaGeo.Size(m) +func (m *Update) XXX_Size() int { + return xxx_messageInfo_Update.Size(m) } -func (m *TLInputBotInlineMessageMediaGeo) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineMessageMediaGeo.DiscardUnknown(m) +func (m *Update) XXX_DiscardUnknown() { + xxx_messageInfo_Update.DiscardUnknown(m) } -var xxx_messageInfo_TLInputBotInlineMessageMediaGeo proto.InternalMessageInfo +var xxx_messageInfo_Update proto.InternalMessageInfo -func (m *TLInputBotInlineMessageMediaGeo) GetData2() *InputBotInlineMessage_Data { +func (m *Update) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Update) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -type TLInputBotInlineMessageMediaVenue struct { - Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update; +type TLUpdateNewMessage struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputBotInlineMessageMediaVenue) Reset() { *m = TLInputBotInlineMessageMediaVenue{} } -func (m *TLInputBotInlineMessageMediaVenue) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineMessageMediaVenue) ProtoMessage() {} -func (*TLInputBotInlineMessageMediaVenue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{819} +func (m *TLUpdateNewMessage) Reset() { *m = TLUpdateNewMessage{} } +func (m *TLUpdateNewMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateNewMessage) ProtoMessage() {} +func (*TLUpdateNewMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{754} } -func (m *TLInputBotInlineMessageMediaVenue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineMessageMediaVenue.Unmarshal(m, b) +func (m *TLUpdateNewMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateNewMessage.Unmarshal(m, b) } -func (m *TLInputBotInlineMessageMediaVenue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineMessageMediaVenue.Marshal(b, m, deterministic) +func (m *TLUpdateNewMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateNewMessage.Marshal(b, m, deterministic) } -func (dst *TLInputBotInlineMessageMediaVenue) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineMessageMediaVenue.Merge(dst, src) +func (dst *TLUpdateNewMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateNewMessage.Merge(dst, src) } -func (m *TLInputBotInlineMessageMediaVenue) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineMessageMediaVenue.Size(m) +func (m *TLUpdateNewMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateNewMessage.Size(m) } -func (m *TLInputBotInlineMessageMediaVenue) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineMessageMediaVenue.DiscardUnknown(m) +func (m *TLUpdateNewMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateNewMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLInputBotInlineMessageMediaVenue proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateNewMessage proto.InternalMessageInfo -func (m *TLInputBotInlineMessageMediaVenue) GetData2() *InputBotInlineMessage_Data { +func (m *TLUpdateNewMessage) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -type TLInputBotInlineMessageMediaContact struct { - Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateMessageID#4e90bfd6 id:int random_id:long = Update; +type TLUpdateMessageID struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputBotInlineMessageMediaContact) Reset() { *m = TLInputBotInlineMessageMediaContact{} } -func (m *TLInputBotInlineMessageMediaContact) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineMessageMediaContact) ProtoMessage() {} -func (*TLInputBotInlineMessageMediaContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{820} +func (m *TLUpdateMessageID) Reset() { *m = TLUpdateMessageID{} } +func (m *TLUpdateMessageID) String() string { return proto.CompactTextString(m) } +func (*TLUpdateMessageID) ProtoMessage() {} +func (*TLUpdateMessageID) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{755} } -func (m *TLInputBotInlineMessageMediaContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineMessageMediaContact.Unmarshal(m, b) +func (m *TLUpdateMessageID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateMessageID.Unmarshal(m, b) } -func (m *TLInputBotInlineMessageMediaContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineMessageMediaContact.Marshal(b, m, deterministic) +func (m *TLUpdateMessageID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateMessageID.Marshal(b, m, deterministic) } -func (dst *TLInputBotInlineMessageMediaContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineMessageMediaContact.Merge(dst, src) +func (dst *TLUpdateMessageID) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateMessageID.Merge(dst, src) } -func (m *TLInputBotInlineMessageMediaContact) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineMessageMediaContact.Size(m) +func (m *TLUpdateMessageID) XXX_Size() int { + return xxx_messageInfo_TLUpdateMessageID.Size(m) } -func (m *TLInputBotInlineMessageMediaContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineMessageMediaContact.DiscardUnknown(m) +func (m *TLUpdateMessageID) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateMessageID.DiscardUnknown(m) } -var xxx_messageInfo_TLInputBotInlineMessageMediaContact proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateMessageID proto.InternalMessageInfo -func (m *TLInputBotInlineMessageMediaContact) GetData2() *InputBotInlineMessage_Data { +func (m *TLUpdateMessageID) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -type TLInputBotInlineMessageGame struct { - Data2 *InputBotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update; +type TLUpdateDeleteMessages struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputBotInlineMessageGame) Reset() { *m = TLInputBotInlineMessageGame{} } -func (m *TLInputBotInlineMessageGame) String() string { return proto.CompactTextString(m) } -func (*TLInputBotInlineMessageGame) ProtoMessage() {} -func (*TLInputBotInlineMessageGame) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{821} +func (m *TLUpdateDeleteMessages) Reset() { *m = TLUpdateDeleteMessages{} } +func (m *TLUpdateDeleteMessages) String() string { return proto.CompactTextString(m) } +func (*TLUpdateDeleteMessages) ProtoMessage() {} +func (*TLUpdateDeleteMessages) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{756} } -func (m *TLInputBotInlineMessageGame) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputBotInlineMessageGame.Unmarshal(m, b) +func (m *TLUpdateDeleteMessages) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateDeleteMessages.Unmarshal(m, b) } -func (m *TLInputBotInlineMessageGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputBotInlineMessageGame.Marshal(b, m, deterministic) +func (m *TLUpdateDeleteMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateDeleteMessages.Marshal(b, m, deterministic) } -func (dst *TLInputBotInlineMessageGame) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputBotInlineMessageGame.Merge(dst, src) +func (dst *TLUpdateDeleteMessages) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateDeleteMessages.Merge(dst, src) } -func (m *TLInputBotInlineMessageGame) XXX_Size() int { - return xxx_messageInfo_TLInputBotInlineMessageGame.Size(m) +func (m *TLUpdateDeleteMessages) XXX_Size() int { + return xxx_messageInfo_TLUpdateDeleteMessages.Size(m) } -func (m *TLInputBotInlineMessageGame) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputBotInlineMessageGame.DiscardUnknown(m) +func (m *TLUpdateDeleteMessages) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateDeleteMessages.DiscardUnknown(m) } -var xxx_messageInfo_TLInputBotInlineMessageGame proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateDeleteMessages proto.InternalMessageInfo -func (m *TLInputBotInlineMessageGame) GetData2() *InputBotInlineMessage_Data { +func (m *TLUpdateDeleteMessages) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// TopPeer <-- -// + TL_topPeer -// -type TopPeer_Data struct { - Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - Rating float64 `protobuf:"fixed64,2,opt,name=rating,proto3" json:"rating,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update; +type TLUpdateUserTyping struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TopPeer_Data) Reset() { *m = TopPeer_Data{} } -func (m *TopPeer_Data) String() string { return proto.CompactTextString(m) } -func (*TopPeer_Data) ProtoMessage() {} -func (*TopPeer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{822} +func (m *TLUpdateUserTyping) Reset() { *m = TLUpdateUserTyping{} } +func (m *TLUpdateUserTyping) String() string { return proto.CompactTextString(m) } +func (*TLUpdateUserTyping) ProtoMessage() {} +func (*TLUpdateUserTyping) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{757} } -func (m *TopPeer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TopPeer_Data.Unmarshal(m, b) +func (m *TLUpdateUserTyping) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateUserTyping.Unmarshal(m, b) } -func (m *TopPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TopPeer_Data.Marshal(b, m, deterministic) +func (m *TLUpdateUserTyping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateUserTyping.Marshal(b, m, deterministic) } -func (dst *TopPeer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_TopPeer_Data.Merge(dst, src) +func (dst *TLUpdateUserTyping) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateUserTyping.Merge(dst, src) } -func (m *TopPeer_Data) XXX_Size() int { - return xxx_messageInfo_TopPeer_Data.Size(m) +func (m *TLUpdateUserTyping) XXX_Size() int { + return xxx_messageInfo_TLUpdateUserTyping.Size(m) } -func (m *TopPeer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_TopPeer_Data.DiscardUnknown(m) +func (m *TLUpdateUserTyping) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateUserTyping.DiscardUnknown(m) } -var xxx_messageInfo_TopPeer_Data proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateUserTyping proto.InternalMessageInfo -func (m *TopPeer_Data) GetPeer() *Peer { +func (m *TLUpdateUserTyping) GetData2() *Update_Data { if m != nil { - return m.Peer + return m.Data2 } return nil } -func (m *TopPeer_Data) GetRating() float64 { - if m != nil { - return m.Rating - } - return 0 -} - -type TopPeer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *TopPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update; +type TLUpdateChatUserTyping struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TopPeer) Reset() { *m = TopPeer{} } -func (m *TopPeer) String() string { return proto.CompactTextString(m) } -func (*TopPeer) ProtoMessage() {} -func (*TopPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{823} +func (m *TLUpdateChatUserTyping) Reset() { *m = TLUpdateChatUserTyping{} } +func (m *TLUpdateChatUserTyping) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChatUserTyping) ProtoMessage() {} +func (*TLUpdateChatUserTyping) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{758} } -func (m *TopPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TopPeer.Unmarshal(m, b) +func (m *TLUpdateChatUserTyping) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChatUserTyping.Unmarshal(m, b) } -func (m *TopPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TopPeer.Marshal(b, m, deterministic) +func (m *TLUpdateChatUserTyping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChatUserTyping.Marshal(b, m, deterministic) } -func (dst *TopPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_TopPeer.Merge(dst, src) +func (dst *TLUpdateChatUserTyping) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChatUserTyping.Merge(dst, src) } -func (m *TopPeer) XXX_Size() int { - return xxx_messageInfo_TopPeer.Size(m) +func (m *TLUpdateChatUserTyping) XXX_Size() int { + return xxx_messageInfo_TLUpdateChatUserTyping.Size(m) } -func (m *TopPeer) XXX_DiscardUnknown() { - xxx_messageInfo_TopPeer.DiscardUnknown(m) +func (m *TLUpdateChatUserTyping) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChatUserTyping.DiscardUnknown(m) } -var xxx_messageInfo_TopPeer proto.InternalMessageInfo - -func (m *TopPeer) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateChatUserTyping proto.InternalMessageInfo -func (m *TopPeer) GetData2() *TopPeer_Data { +func (m *TLUpdateChatUserTyping) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// topPeer#edcdc05b peer:Peer rating:double = TopPeer; -type TLTopPeer struct { - Data2 *TopPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateChatParticipants#7761198 participants:ChatParticipants = Update; +type TLUpdateChatParticipants struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTopPeer) Reset() { *m = TLTopPeer{} } -func (m *TLTopPeer) String() string { return proto.CompactTextString(m) } -func (*TLTopPeer) ProtoMessage() {} -func (*TLTopPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{824} +func (m *TLUpdateChatParticipants) Reset() { *m = TLUpdateChatParticipants{} } +func (m *TLUpdateChatParticipants) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChatParticipants) ProtoMessage() {} +func (*TLUpdateChatParticipants) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{759} } -func (m *TLTopPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTopPeer.Unmarshal(m, b) +func (m *TLUpdateChatParticipants) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChatParticipants.Unmarshal(m, b) } -func (m *TLTopPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTopPeer.Marshal(b, m, deterministic) +func (m *TLUpdateChatParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChatParticipants.Marshal(b, m, deterministic) } -func (dst *TLTopPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTopPeer.Merge(dst, src) +func (dst *TLUpdateChatParticipants) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChatParticipants.Merge(dst, src) } -func (m *TLTopPeer) XXX_Size() int { - return xxx_messageInfo_TLTopPeer.Size(m) +func (m *TLUpdateChatParticipants) XXX_Size() int { + return xxx_messageInfo_TLUpdateChatParticipants.Size(m) } -func (m *TLTopPeer) XXX_DiscardUnknown() { - xxx_messageInfo_TLTopPeer.DiscardUnknown(m) +func (m *TLUpdateChatParticipants) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChatParticipants.DiscardUnknown(m) } -var xxx_messageInfo_TLTopPeer proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateChatParticipants proto.InternalMessageInfo -func (m *TLTopPeer) GetData2() *TopPeer_Data { +func (m *TLUpdateChatParticipants) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_HighScores <-- -// + TL_messages_highScores -// -type Messages_HighScores_Data struct { - Scores []*HighScore `protobuf:"bytes,1,rep,name=scores,proto3" json:"scores,omitempty"` - Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` +// updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update; +type TLUpdateUserStatus struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Messages_HighScores_Data) Reset() { *m = Messages_HighScores_Data{} } -func (m *Messages_HighScores_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_HighScores_Data) ProtoMessage() {} -func (*Messages_HighScores_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{825} -} -func (m *Messages_HighScores_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_HighScores_Data.Unmarshal(m, b) +func (m *TLUpdateUserStatus) Reset() { *m = TLUpdateUserStatus{} } +func (m *TLUpdateUserStatus) String() string { return proto.CompactTextString(m) } +func (*TLUpdateUserStatus) ProtoMessage() {} +func (*TLUpdateUserStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{760} } -func (m *Messages_HighScores_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_HighScores_Data.Marshal(b, m, deterministic) +func (m *TLUpdateUserStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateUserStatus.Unmarshal(m, b) } -func (dst *Messages_HighScores_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_HighScores_Data.Merge(dst, src) +func (m *TLUpdateUserStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateUserStatus.Marshal(b, m, deterministic) } -func (m *Messages_HighScores_Data) XXX_Size() int { - return xxx_messageInfo_Messages_HighScores_Data.Size(m) +func (dst *TLUpdateUserStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateUserStatus.Merge(dst, src) } -func (m *Messages_HighScores_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_HighScores_Data.DiscardUnknown(m) +func (m *TLUpdateUserStatus) XXX_Size() int { + return xxx_messageInfo_TLUpdateUserStatus.Size(m) } - -var xxx_messageInfo_Messages_HighScores_Data proto.InternalMessageInfo - -func (m *Messages_HighScores_Data) GetScores() []*HighScore { - if m != nil { - return m.Scores - } - return nil +func (m *TLUpdateUserStatus) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateUserStatus.DiscardUnknown(m) } -func (m *Messages_HighScores_Data) GetUsers() []*User { +var xxx_messageInfo_TLUpdateUserStatus proto.InternalMessageInfo + +func (m *TLUpdateUserStatus) GetData2() *Update_Data { if m != nil { - return m.Users + return m.Data2 } return nil } -type Messages_HighScores struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_HighScores_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update; +type TLUpdateUserName struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_HighScores) Reset() { *m = Messages_HighScores{} } -func (m *Messages_HighScores) String() string { return proto.CompactTextString(m) } -func (*Messages_HighScores) ProtoMessage() {} -func (*Messages_HighScores) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{826} +func (m *TLUpdateUserName) Reset() { *m = TLUpdateUserName{} } +func (m *TLUpdateUserName) String() string { return proto.CompactTextString(m) } +func (*TLUpdateUserName) ProtoMessage() {} +func (*TLUpdateUserName) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{761} } -func (m *Messages_HighScores) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_HighScores.Unmarshal(m, b) +func (m *TLUpdateUserName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateUserName.Unmarshal(m, b) } -func (m *Messages_HighScores) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_HighScores.Marshal(b, m, deterministic) +func (m *TLUpdateUserName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateUserName.Marshal(b, m, deterministic) } -func (dst *Messages_HighScores) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_HighScores.Merge(dst, src) +func (dst *TLUpdateUserName) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateUserName.Merge(dst, src) } -func (m *Messages_HighScores) XXX_Size() int { - return xxx_messageInfo_Messages_HighScores.Size(m) +func (m *TLUpdateUserName) XXX_Size() int { + return xxx_messageInfo_TLUpdateUserName.Size(m) } -func (m *Messages_HighScores) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_HighScores.DiscardUnknown(m) +func (m *TLUpdateUserName) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateUserName.DiscardUnknown(m) } -var xxx_messageInfo_Messages_HighScores proto.InternalMessageInfo - -func (m *Messages_HighScores) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateUserName proto.InternalMessageInfo -func (m *Messages_HighScores) GetData2() *Messages_HighScores_Data { +func (m *TLUpdateUserName) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores; -type TLMessagesHighScores struct { - Data2 *Messages_HighScores_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update; +type TLUpdateUserPhoto struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesHighScores) Reset() { *m = TLMessagesHighScores{} } -func (m *TLMessagesHighScores) String() string { return proto.CompactTextString(m) } -func (*TLMessagesHighScores) ProtoMessage() {} -func (*TLMessagesHighScores) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{827} +func (m *TLUpdateUserPhoto) Reset() { *m = TLUpdateUserPhoto{} } +func (m *TLUpdateUserPhoto) String() string { return proto.CompactTextString(m) } +func (*TLUpdateUserPhoto) ProtoMessage() {} +func (*TLUpdateUserPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{762} } -func (m *TLMessagesHighScores) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesHighScores.Unmarshal(m, b) +func (m *TLUpdateUserPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateUserPhoto.Unmarshal(m, b) } -func (m *TLMessagesHighScores) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesHighScores.Marshal(b, m, deterministic) +func (m *TLUpdateUserPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateUserPhoto.Marshal(b, m, deterministic) } -func (dst *TLMessagesHighScores) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesHighScores.Merge(dst, src) +func (dst *TLUpdateUserPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateUserPhoto.Merge(dst, src) } -func (m *TLMessagesHighScores) XXX_Size() int { - return xxx_messageInfo_TLMessagesHighScores.Size(m) +func (m *TLUpdateUserPhoto) XXX_Size() int { + return xxx_messageInfo_TLUpdateUserPhoto.Size(m) } -func (m *TLMessagesHighScores) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesHighScores.DiscardUnknown(m) +func (m *TLUpdateUserPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateUserPhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesHighScores proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateUserPhoto proto.InternalMessageInfo -func (m *TLMessagesHighScores) GetData2() *Messages_HighScores_Data { +func (m *TLUpdateUserPhoto) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// payments_SavedInfo <-- -// + TL_payments_savedInfo -// -type Payments_SavedInfo_Data struct { - HasSavedCredentials bool `protobuf:"varint,1,opt,name=has_saved_credentials,json=hasSavedCredentials,proto3" json:"has_saved_credentials,omitempty"` - SavedInfo *PaymentRequestedInfo `protobuf:"bytes,2,opt,name=saved_info,json=savedInfo,proto3" json:"saved_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateContactRegistered#2575bbb9 user_id:int date:int = Update; +type TLUpdateContactRegistered struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Payments_SavedInfo_Data) Reset() { *m = Payments_SavedInfo_Data{} } -func (m *Payments_SavedInfo_Data) String() string { return proto.CompactTextString(m) } -func (*Payments_SavedInfo_Data) ProtoMessage() {} -func (*Payments_SavedInfo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{828} +func (m *TLUpdateContactRegistered) Reset() { *m = TLUpdateContactRegistered{} } +func (m *TLUpdateContactRegistered) String() string { return proto.CompactTextString(m) } +func (*TLUpdateContactRegistered) ProtoMessage() {} +func (*TLUpdateContactRegistered) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{763} } -func (m *Payments_SavedInfo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_SavedInfo_Data.Unmarshal(m, b) +func (m *TLUpdateContactRegistered) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateContactRegistered.Unmarshal(m, b) } -func (m *Payments_SavedInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_SavedInfo_Data.Marshal(b, m, deterministic) +func (m *TLUpdateContactRegistered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateContactRegistered.Marshal(b, m, deterministic) } -func (dst *Payments_SavedInfo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_SavedInfo_Data.Merge(dst, src) +func (dst *TLUpdateContactRegistered) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateContactRegistered.Merge(dst, src) } -func (m *Payments_SavedInfo_Data) XXX_Size() int { - return xxx_messageInfo_Payments_SavedInfo_Data.Size(m) +func (m *TLUpdateContactRegistered) XXX_Size() int { + return xxx_messageInfo_TLUpdateContactRegistered.Size(m) } -func (m *Payments_SavedInfo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_SavedInfo_Data.DiscardUnknown(m) +func (m *TLUpdateContactRegistered) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateContactRegistered.DiscardUnknown(m) } -var xxx_messageInfo_Payments_SavedInfo_Data proto.InternalMessageInfo - -func (m *Payments_SavedInfo_Data) GetHasSavedCredentials() bool { - if m != nil { - return m.HasSavedCredentials - } - return false -} +var xxx_messageInfo_TLUpdateContactRegistered proto.InternalMessageInfo -func (m *Payments_SavedInfo_Data) GetSavedInfo() *PaymentRequestedInfo { +func (m *TLUpdateContactRegistered) GetData2() *Update_Data { if m != nil { - return m.SavedInfo + return m.Data2 } return nil } -type Payments_SavedInfo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Payments_SavedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateContactLink#9d2e67c5 user_id:int my_link:ContactLink foreign_link:ContactLink = Update; +type TLUpdateContactLink struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Payments_SavedInfo) Reset() { *m = Payments_SavedInfo{} } -func (m *Payments_SavedInfo) String() string { return proto.CompactTextString(m) } -func (*Payments_SavedInfo) ProtoMessage() {} -func (*Payments_SavedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{829} +func (m *TLUpdateContactLink) Reset() { *m = TLUpdateContactLink{} } +func (m *TLUpdateContactLink) String() string { return proto.CompactTextString(m) } +func (*TLUpdateContactLink) ProtoMessage() {} +func (*TLUpdateContactLink) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{764} } -func (m *Payments_SavedInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_SavedInfo.Unmarshal(m, b) +func (m *TLUpdateContactLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateContactLink.Unmarshal(m, b) } -func (m *Payments_SavedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_SavedInfo.Marshal(b, m, deterministic) +func (m *TLUpdateContactLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateContactLink.Marshal(b, m, deterministic) } -func (dst *Payments_SavedInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_SavedInfo.Merge(dst, src) +func (dst *TLUpdateContactLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateContactLink.Merge(dst, src) } -func (m *Payments_SavedInfo) XXX_Size() int { - return xxx_messageInfo_Payments_SavedInfo.Size(m) +func (m *TLUpdateContactLink) XXX_Size() int { + return xxx_messageInfo_TLUpdateContactLink.Size(m) } -func (m *Payments_SavedInfo) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_SavedInfo.DiscardUnknown(m) +func (m *TLUpdateContactLink) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateContactLink.DiscardUnknown(m) } -var xxx_messageInfo_Payments_SavedInfo proto.InternalMessageInfo - -func (m *Payments_SavedInfo) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateContactLink proto.InternalMessageInfo -func (m *Payments_SavedInfo) GetData2() *Payments_SavedInfo_Data { +func (m *TLUpdateContactLink) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; -type TLPaymentsSavedInfo struct { - Data2 *Payments_SavedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update; +type TLUpdateNewEncryptedMessage struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPaymentsSavedInfo) Reset() { *m = TLPaymentsSavedInfo{} } -func (m *TLPaymentsSavedInfo) String() string { return proto.CompactTextString(m) } -func (*TLPaymentsSavedInfo) ProtoMessage() {} -func (*TLPaymentsSavedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{830} +func (m *TLUpdateNewEncryptedMessage) Reset() { *m = TLUpdateNewEncryptedMessage{} } +func (m *TLUpdateNewEncryptedMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateNewEncryptedMessage) ProtoMessage() {} +func (*TLUpdateNewEncryptedMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{765} } -func (m *TLPaymentsSavedInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPaymentsSavedInfo.Unmarshal(m, b) +func (m *TLUpdateNewEncryptedMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateNewEncryptedMessage.Unmarshal(m, b) } -func (m *TLPaymentsSavedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPaymentsSavedInfo.Marshal(b, m, deterministic) +func (m *TLUpdateNewEncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateNewEncryptedMessage.Marshal(b, m, deterministic) } -func (dst *TLPaymentsSavedInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPaymentsSavedInfo.Merge(dst, src) +func (dst *TLUpdateNewEncryptedMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateNewEncryptedMessage.Merge(dst, src) } -func (m *TLPaymentsSavedInfo) XXX_Size() int { - return xxx_messageInfo_TLPaymentsSavedInfo.Size(m) +func (m *TLUpdateNewEncryptedMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateNewEncryptedMessage.Size(m) } -func (m *TLPaymentsSavedInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLPaymentsSavedInfo.DiscardUnknown(m) +func (m *TLUpdateNewEncryptedMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateNewEncryptedMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLPaymentsSavedInfo proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateNewEncryptedMessage proto.InternalMessageInfo -func (m *TLPaymentsSavedInfo) GetData2() *Payments_SavedInfo_Data { +func (m *TLUpdateNewEncryptedMessage) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// MessageMedia <-- -// + TL_messageMediaEmpty -// + TL_messageMediaPhoto -// + TL_messageMediaGeo -// + TL_messageMediaContact -// + TL_messageMediaUnsupported -// + TL_messageMediaDocument -// + TL_messageMediaWebPage -// + TL_messageMediaVenue -// + TL_messageMediaGame -// + TL_messageMediaInvoice -// + TL_messageMediaGeoLive -// -type MessageMedia_Data struct { - Photo_1 *Photo `protobuf:"bytes,1,opt,name=photo_1,json=photo1,proto3" json:"photo_1,omitempty"` - TtlSeconds int32 `protobuf:"varint,2,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` - Geo *GeoPoint `protobuf:"bytes,3,opt,name=geo,proto3" json:"geo,omitempty"` - PhoneNumber string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` - FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Vcard string `protobuf:"bytes,7,opt,name=vcard,proto3" json:"vcard,omitempty"` - UserId int32 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Document *Document `protobuf:"bytes,9,opt,name=document,proto3" json:"document,omitempty"` - Webpage *WebPage `protobuf:"bytes,10,opt,name=webpage,proto3" json:"webpage,omitempty"` - Title string `protobuf:"bytes,11,opt,name=title,proto3" json:"title,omitempty"` - Address string `protobuf:"bytes,12,opt,name=address,proto3" json:"address,omitempty"` - Provider string `protobuf:"bytes,13,opt,name=provider,proto3" json:"provider,omitempty"` - VenueId string `protobuf:"bytes,14,opt,name=venue_id,json=venueId,proto3" json:"venue_id,omitempty"` - VenueType string `protobuf:"bytes,15,opt,name=venue_type,json=venueType,proto3" json:"venue_type,omitempty"` - Game *Game `protobuf:"bytes,16,opt,name=game,proto3" json:"game,omitempty"` - ShippingAddressRequested bool `protobuf:"varint,17,opt,name=shipping_address_requested,json=shippingAddressRequested,proto3" json:"shipping_address_requested,omitempty"` - Test bool `protobuf:"varint,18,opt,name=test,proto3" json:"test,omitempty"` - Description string `protobuf:"bytes,19,opt,name=description,proto3" json:"description,omitempty"` - Photo_20 *WebDocument `protobuf:"bytes,20,opt,name=photo_20,json=photo20,proto3" json:"photo_20,omitempty"` - ReceiptMsgId int32 `protobuf:"varint,21,opt,name=receipt_msg_id,json=receiptMsgId,proto3" json:"receipt_msg_id,omitempty"` - Currency string `protobuf:"bytes,22,opt,name=currency,proto3" json:"currency,omitempty"` - TotalAmount int64 `protobuf:"varint,23,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` - StartParam string `protobuf:"bytes,24,opt,name=start_param,json=startParam,proto3" json:"start_param,omitempty"` - Period int32 `protobuf:"varint,25,opt,name=period,proto3" json:"period,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateEncryptedChatTyping#1710f156 chat_id:int = Update; +type TLUpdateEncryptedChatTyping struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageMedia_Data) Reset() { *m = MessageMedia_Data{} } -func (m *MessageMedia_Data) String() string { return proto.CompactTextString(m) } -func (*MessageMedia_Data) ProtoMessage() {} -func (*MessageMedia_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{831} +func (m *TLUpdateEncryptedChatTyping) Reset() { *m = TLUpdateEncryptedChatTyping{} } +func (m *TLUpdateEncryptedChatTyping) String() string { return proto.CompactTextString(m) } +func (*TLUpdateEncryptedChatTyping) ProtoMessage() {} +func (*TLUpdateEncryptedChatTyping) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{766} } -func (m *MessageMedia_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageMedia_Data.Unmarshal(m, b) +func (m *TLUpdateEncryptedChatTyping) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateEncryptedChatTyping.Unmarshal(m, b) } -func (m *MessageMedia_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageMedia_Data.Marshal(b, m, deterministic) +func (m *TLUpdateEncryptedChatTyping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateEncryptedChatTyping.Marshal(b, m, deterministic) } -func (dst *MessageMedia_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageMedia_Data.Merge(dst, src) +func (dst *TLUpdateEncryptedChatTyping) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateEncryptedChatTyping.Merge(dst, src) } -func (m *MessageMedia_Data) XXX_Size() int { - return xxx_messageInfo_MessageMedia_Data.Size(m) +func (m *TLUpdateEncryptedChatTyping) XXX_Size() int { + return xxx_messageInfo_TLUpdateEncryptedChatTyping.Size(m) } -func (m *MessageMedia_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MessageMedia_Data.DiscardUnknown(m) +func (m *TLUpdateEncryptedChatTyping) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateEncryptedChatTyping.DiscardUnknown(m) } -var xxx_messageInfo_MessageMedia_Data proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateEncryptedChatTyping proto.InternalMessageInfo -func (m *MessageMedia_Data) GetPhoto_1() *Photo { +func (m *TLUpdateEncryptedChatTyping) GetData2() *Update_Data { if m != nil { - return m.Photo_1 + return m.Data2 } return nil } -func (m *MessageMedia_Data) GetTtlSeconds() int32 { - if m != nil { - return m.TtlSeconds - } - return 0 +// updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update; +type TLUpdateEncryption struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageMedia_Data) GetGeo() *GeoPoint { - if m != nil { - return m.Geo - } - return nil +func (m *TLUpdateEncryption) Reset() { *m = TLUpdateEncryption{} } +func (m *TLUpdateEncryption) String() string { return proto.CompactTextString(m) } +func (*TLUpdateEncryption) ProtoMessage() {} +func (*TLUpdateEncryption) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{767} } - -func (m *MessageMedia_Data) GetPhoneNumber() string { - if m != nil { - return m.PhoneNumber - } - return "" +func (m *TLUpdateEncryption) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateEncryption.Unmarshal(m, b) } - -func (m *MessageMedia_Data) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" +func (m *TLUpdateEncryption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateEncryption.Marshal(b, m, deterministic) } - -func (m *MessageMedia_Data) GetLastName() string { - if m != nil { - return m.LastName - } - return "" +func (dst *TLUpdateEncryption) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateEncryption.Merge(dst, src) } - -func (m *MessageMedia_Data) GetVcard() string { - if m != nil { - return m.Vcard - } - return "" +func (m *TLUpdateEncryption) XXX_Size() int { + return xxx_messageInfo_TLUpdateEncryption.Size(m) } - -func (m *MessageMedia_Data) GetUserId() int32 { - if m != nil { - return m.UserId - } - return 0 +func (m *TLUpdateEncryption) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateEncryption.DiscardUnknown(m) } -func (m *MessageMedia_Data) GetDocument() *Document { - if m != nil { - return m.Document - } - return nil -} +var xxx_messageInfo_TLUpdateEncryption proto.InternalMessageInfo -func (m *MessageMedia_Data) GetWebpage() *WebPage { +func (m *TLUpdateEncryption) GetData2() *Update_Data { if m != nil { - return m.Webpage + return m.Data2 } return nil } -func (m *MessageMedia_Data) GetTitle() string { - if m != nil { - return m.Title - } - return "" +// updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update; +type TLUpdateEncryptedMessagesRead struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageMedia_Data) GetAddress() string { - if m != nil { - return m.Address - } - return "" +func (m *TLUpdateEncryptedMessagesRead) Reset() { *m = TLUpdateEncryptedMessagesRead{} } +func (m *TLUpdateEncryptedMessagesRead) String() string { return proto.CompactTextString(m) } +func (*TLUpdateEncryptedMessagesRead) ProtoMessage() {} +func (*TLUpdateEncryptedMessagesRead) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{768} } - -func (m *MessageMedia_Data) GetProvider() string { - if m != nil { - return m.Provider - } - return "" +func (m *TLUpdateEncryptedMessagesRead) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateEncryptedMessagesRead.Unmarshal(m, b) } - -func (m *MessageMedia_Data) GetVenueId() string { - if m != nil { - return m.VenueId - } - return "" +func (m *TLUpdateEncryptedMessagesRead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateEncryptedMessagesRead.Marshal(b, m, deterministic) } - -func (m *MessageMedia_Data) GetVenueType() string { - if m != nil { - return m.VenueType - } - return "" +func (dst *TLUpdateEncryptedMessagesRead) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateEncryptedMessagesRead.Merge(dst, src) } - -func (m *MessageMedia_Data) GetGame() *Game { - if m != nil { - return m.Game - } - return nil +func (m *TLUpdateEncryptedMessagesRead) XXX_Size() int { + return xxx_messageInfo_TLUpdateEncryptedMessagesRead.Size(m) } - -func (m *MessageMedia_Data) GetShippingAddressRequested() bool { - if m != nil { - return m.ShippingAddressRequested - } - return false +func (m *TLUpdateEncryptedMessagesRead) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateEncryptedMessagesRead.DiscardUnknown(m) } -func (m *MessageMedia_Data) GetTest() bool { - if m != nil { - return m.Test - } - return false -} +var xxx_messageInfo_TLUpdateEncryptedMessagesRead proto.InternalMessageInfo -func (m *MessageMedia_Data) GetDescription() string { +func (m *TLUpdateEncryptedMessagesRead) GetData2() *Update_Data { if m != nil { - return m.Description + return m.Data2 } - return "" + return nil } -func (m *MessageMedia_Data) GetPhoto_20() *WebDocument { - if m != nil { - return m.Photo_20 - } - return nil +// updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update; +type TLUpdateChatParticipantAdd struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageMedia_Data) GetReceiptMsgId() int32 { - if m != nil { - return m.ReceiptMsgId - } - return 0 +func (m *TLUpdateChatParticipantAdd) Reset() { *m = TLUpdateChatParticipantAdd{} } +func (m *TLUpdateChatParticipantAdd) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChatParticipantAdd) ProtoMessage() {} +func (*TLUpdateChatParticipantAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{769} } - -func (m *MessageMedia_Data) GetCurrency() string { - if m != nil { - return m.Currency - } - return "" +func (m *TLUpdateChatParticipantAdd) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChatParticipantAdd.Unmarshal(m, b) } - -func (m *MessageMedia_Data) GetTotalAmount() int64 { - if m != nil { - return m.TotalAmount - } - return 0 +func (m *TLUpdateChatParticipantAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChatParticipantAdd.Marshal(b, m, deterministic) } - -func (m *MessageMedia_Data) GetStartParam() string { - if m != nil { - return m.StartParam - } - return "" +func (dst *TLUpdateChatParticipantAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChatParticipantAdd.Merge(dst, src) +} +func (m *TLUpdateChatParticipantAdd) XXX_Size() int { + return xxx_messageInfo_TLUpdateChatParticipantAdd.Size(m) +} +func (m *TLUpdateChatParticipantAdd) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChatParticipantAdd.DiscardUnknown(m) } -func (m *MessageMedia_Data) GetPeriod() int32 { +var xxx_messageInfo_TLUpdateChatParticipantAdd proto.InternalMessageInfo + +func (m *TLUpdateChatParticipantAdd) GetData2() *Update_Data { if m != nil { - return m.Period + return m.Data2 } - return 0 + return nil } -type MessageMedia struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update; +type TLUpdateChatParticipantDelete struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessageMedia) Reset() { *m = MessageMedia{} } -func (m *MessageMedia) String() string { return proto.CompactTextString(m) } -func (*MessageMedia) ProtoMessage() {} -func (*MessageMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{832} +func (m *TLUpdateChatParticipantDelete) Reset() { *m = TLUpdateChatParticipantDelete{} } +func (m *TLUpdateChatParticipantDelete) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChatParticipantDelete) ProtoMessage() {} +func (*TLUpdateChatParticipantDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{770} } -func (m *MessageMedia) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessageMedia.Unmarshal(m, b) +func (m *TLUpdateChatParticipantDelete) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChatParticipantDelete.Unmarshal(m, b) } -func (m *MessageMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessageMedia.Marshal(b, m, deterministic) +func (m *TLUpdateChatParticipantDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChatParticipantDelete.Marshal(b, m, deterministic) } -func (dst *MessageMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageMedia.Merge(dst, src) +func (dst *TLUpdateChatParticipantDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChatParticipantDelete.Merge(dst, src) } -func (m *MessageMedia) XXX_Size() int { - return xxx_messageInfo_MessageMedia.Size(m) +func (m *TLUpdateChatParticipantDelete) XXX_Size() int { + return xxx_messageInfo_TLUpdateChatParticipantDelete.Size(m) } -func (m *MessageMedia) XXX_DiscardUnknown() { - xxx_messageInfo_MessageMedia.DiscardUnknown(m) +func (m *TLUpdateChatParticipantDelete) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChatParticipantDelete.DiscardUnknown(m) } -var xxx_messageInfo_MessageMedia proto.InternalMessageInfo - -func (m *MessageMedia) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateChatParticipantDelete proto.InternalMessageInfo -func (m *MessageMedia) GetData2() *MessageMedia_Data { +func (m *TLUpdateChatParticipantDelete) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaEmpty#3ded6320 = MessageMedia; -type TLMessageMediaEmpty struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateDcOptions#8e5e9873 dc_options:Vector = Update; +type TLUpdateDcOptions struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaEmpty) Reset() { *m = TLMessageMediaEmpty{} } -func (m *TLMessageMediaEmpty) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaEmpty) ProtoMessage() {} -func (*TLMessageMediaEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{833} +func (m *TLUpdateDcOptions) Reset() { *m = TLUpdateDcOptions{} } +func (m *TLUpdateDcOptions) String() string { return proto.CompactTextString(m) } +func (*TLUpdateDcOptions) ProtoMessage() {} +func (*TLUpdateDcOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{771} } -func (m *TLMessageMediaEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaEmpty.Unmarshal(m, b) +func (m *TLUpdateDcOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateDcOptions.Unmarshal(m, b) } -func (m *TLMessageMediaEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaEmpty.Marshal(b, m, deterministic) +func (m *TLUpdateDcOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateDcOptions.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaEmpty.Merge(dst, src) +func (dst *TLUpdateDcOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateDcOptions.Merge(dst, src) } -func (m *TLMessageMediaEmpty) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaEmpty.Size(m) +func (m *TLUpdateDcOptions) XXX_Size() int { + return xxx_messageInfo_TLUpdateDcOptions.Size(m) } -func (m *TLMessageMediaEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaEmpty.DiscardUnknown(m) +func (m *TLUpdateDcOptions) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateDcOptions.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateDcOptions proto.InternalMessageInfo -func (m *TLMessageMediaEmpty) GetData2() *MessageMedia_Data { +func (m *TLUpdateDcOptions) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; -type TLMessageMediaPhoto struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; +type TLUpdateUserBlocked struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaPhoto) Reset() { *m = TLMessageMediaPhoto{} } -func (m *TLMessageMediaPhoto) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaPhoto) ProtoMessage() {} -func (*TLMessageMediaPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{834} +func (m *TLUpdateUserBlocked) Reset() { *m = TLUpdateUserBlocked{} } +func (m *TLUpdateUserBlocked) String() string { return proto.CompactTextString(m) } +func (*TLUpdateUserBlocked) ProtoMessage() {} +func (*TLUpdateUserBlocked) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{772} } -func (m *TLMessageMediaPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaPhoto.Unmarshal(m, b) +func (m *TLUpdateUserBlocked) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateUserBlocked.Unmarshal(m, b) } -func (m *TLMessageMediaPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaPhoto.Marshal(b, m, deterministic) +func (m *TLUpdateUserBlocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateUserBlocked.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaPhoto.Merge(dst, src) +func (dst *TLUpdateUserBlocked) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateUserBlocked.Merge(dst, src) } -func (m *TLMessageMediaPhoto) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaPhoto.Size(m) +func (m *TLUpdateUserBlocked) XXX_Size() int { + return xxx_messageInfo_TLUpdateUserBlocked.Size(m) } -func (m *TLMessageMediaPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaPhoto.DiscardUnknown(m) +func (m *TLUpdateUserBlocked) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateUserBlocked.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaPhoto proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateUserBlocked proto.InternalMessageInfo -func (m *TLMessageMediaPhoto) GetData2() *MessageMedia_Data { +func (m *TLUpdateUserBlocked) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia; -type TLMessageMediaGeo struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; +type TLUpdateNotifySettings struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaGeo) Reset() { *m = TLMessageMediaGeo{} } -func (m *TLMessageMediaGeo) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaGeo) ProtoMessage() {} -func (*TLMessageMediaGeo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{835} +func (m *TLUpdateNotifySettings) Reset() { *m = TLUpdateNotifySettings{} } +func (m *TLUpdateNotifySettings) String() string { return proto.CompactTextString(m) } +func (*TLUpdateNotifySettings) ProtoMessage() {} +func (*TLUpdateNotifySettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{773} } -func (m *TLMessageMediaGeo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaGeo.Unmarshal(m, b) +func (m *TLUpdateNotifySettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateNotifySettings.Unmarshal(m, b) } -func (m *TLMessageMediaGeo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaGeo.Marshal(b, m, deterministic) +func (m *TLUpdateNotifySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateNotifySettings.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaGeo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaGeo.Merge(dst, src) +func (dst *TLUpdateNotifySettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateNotifySettings.Merge(dst, src) } -func (m *TLMessageMediaGeo) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaGeo.Size(m) +func (m *TLUpdateNotifySettings) XXX_Size() int { + return xxx_messageInfo_TLUpdateNotifySettings.Size(m) } -func (m *TLMessageMediaGeo) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaGeo.DiscardUnknown(m) +func (m *TLUpdateNotifySettings) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateNotifySettings.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaGeo proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateNotifySettings proto.InternalMessageInfo -func (m *TLMessageMediaGeo) GetData2() *MessageMedia_Data { +func (m *TLUpdateNotifySettings) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia; -type TLMessageMediaContact struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update; +type TLUpdateServiceNotification struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaContact) Reset() { *m = TLMessageMediaContact{} } -func (m *TLMessageMediaContact) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaContact) ProtoMessage() {} -func (*TLMessageMediaContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{836} +func (m *TLUpdateServiceNotification) Reset() { *m = TLUpdateServiceNotification{} } +func (m *TLUpdateServiceNotification) String() string { return proto.CompactTextString(m) } +func (*TLUpdateServiceNotification) ProtoMessage() {} +func (*TLUpdateServiceNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{774} } -func (m *TLMessageMediaContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaContact.Unmarshal(m, b) +func (m *TLUpdateServiceNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateServiceNotification.Unmarshal(m, b) } -func (m *TLMessageMediaContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaContact.Marshal(b, m, deterministic) +func (m *TLUpdateServiceNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateServiceNotification.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaContact.Merge(dst, src) +func (dst *TLUpdateServiceNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateServiceNotification.Merge(dst, src) } -func (m *TLMessageMediaContact) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaContact.Size(m) +func (m *TLUpdateServiceNotification) XXX_Size() int { + return xxx_messageInfo_TLUpdateServiceNotification.Size(m) } -func (m *TLMessageMediaContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaContact.DiscardUnknown(m) +func (m *TLUpdateServiceNotification) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateServiceNotification.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaContact proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateServiceNotification proto.InternalMessageInfo -func (m *TLMessageMediaContact) GetData2() *MessageMedia_Data { +func (m *TLUpdateServiceNotification) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaUnsupported#9f84f49e = MessageMedia; -type TLMessageMediaUnsupported struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update; +type TLUpdatePrivacy struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaUnsupported) Reset() { *m = TLMessageMediaUnsupported{} } -func (m *TLMessageMediaUnsupported) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaUnsupported) ProtoMessage() {} -func (*TLMessageMediaUnsupported) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{837} +func (m *TLUpdatePrivacy) Reset() { *m = TLUpdatePrivacy{} } +func (m *TLUpdatePrivacy) String() string { return proto.CompactTextString(m) } +func (*TLUpdatePrivacy) ProtoMessage() {} +func (*TLUpdatePrivacy) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{775} } -func (m *TLMessageMediaUnsupported) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaUnsupported.Unmarshal(m, b) +func (m *TLUpdatePrivacy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatePrivacy.Unmarshal(m, b) } -func (m *TLMessageMediaUnsupported) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaUnsupported.Marshal(b, m, deterministic) +func (m *TLUpdatePrivacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatePrivacy.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaUnsupported) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaUnsupported.Merge(dst, src) +func (dst *TLUpdatePrivacy) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatePrivacy.Merge(dst, src) } -func (m *TLMessageMediaUnsupported) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaUnsupported.Size(m) +func (m *TLUpdatePrivacy) XXX_Size() int { + return xxx_messageInfo_TLUpdatePrivacy.Size(m) } -func (m *TLMessageMediaUnsupported) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaUnsupported.DiscardUnknown(m) +func (m *TLUpdatePrivacy) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatePrivacy.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaUnsupported proto.InternalMessageInfo +var xxx_messageInfo_TLUpdatePrivacy proto.InternalMessageInfo -func (m *TLMessageMediaUnsupported) GetData2() *MessageMedia_Data { +func (m *TLUpdatePrivacy) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia; -type TLMessageMediaDocument struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateUserPhone#12b9417b user_id:int phone:string = Update; +type TLUpdateUserPhone struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaDocument) Reset() { *m = TLMessageMediaDocument{} } -func (m *TLMessageMediaDocument) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaDocument) ProtoMessage() {} -func (*TLMessageMediaDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{838} +func (m *TLUpdateUserPhone) Reset() { *m = TLUpdateUserPhone{} } +func (m *TLUpdateUserPhone) String() string { return proto.CompactTextString(m) } +func (*TLUpdateUserPhone) ProtoMessage() {} +func (*TLUpdateUserPhone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{776} } -func (m *TLMessageMediaDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaDocument.Unmarshal(m, b) +func (m *TLUpdateUserPhone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateUserPhone.Unmarshal(m, b) } -func (m *TLMessageMediaDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaDocument.Marshal(b, m, deterministic) +func (m *TLUpdateUserPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateUserPhone.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaDocument.Merge(dst, src) +func (dst *TLUpdateUserPhone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateUserPhone.Merge(dst, src) } -func (m *TLMessageMediaDocument) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaDocument.Size(m) +func (m *TLUpdateUserPhone) XXX_Size() int { + return xxx_messageInfo_TLUpdateUserPhone.Size(m) } -func (m *TLMessageMediaDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaDocument.DiscardUnknown(m) +func (m *TLUpdateUserPhone) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateUserPhone.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaDocument proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateUserPhone proto.InternalMessageInfo -func (m *TLMessageMediaDocument) GetData2() *MessageMedia_Data { +func (m *TLUpdateUserPhone) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia; -type TLMessageMediaWebPage struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateReadHistoryInbox#9961fd5c peer:Peer max_id:int pts:int pts_count:int = Update; +type TLUpdateReadHistoryInbox struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaWebPage) Reset() { *m = TLMessageMediaWebPage{} } -func (m *TLMessageMediaWebPage) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaWebPage) ProtoMessage() {} -func (*TLMessageMediaWebPage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{839} +func (m *TLUpdateReadHistoryInbox) Reset() { *m = TLUpdateReadHistoryInbox{} } +func (m *TLUpdateReadHistoryInbox) String() string { return proto.CompactTextString(m) } +func (*TLUpdateReadHistoryInbox) ProtoMessage() {} +func (*TLUpdateReadHistoryInbox) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{777} } -func (m *TLMessageMediaWebPage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaWebPage.Unmarshal(m, b) +func (m *TLUpdateReadHistoryInbox) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateReadHistoryInbox.Unmarshal(m, b) } -func (m *TLMessageMediaWebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaWebPage.Marshal(b, m, deterministic) +func (m *TLUpdateReadHistoryInbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateReadHistoryInbox.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaWebPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaWebPage.Merge(dst, src) +func (dst *TLUpdateReadHistoryInbox) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateReadHistoryInbox.Merge(dst, src) } -func (m *TLMessageMediaWebPage) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaWebPage.Size(m) +func (m *TLUpdateReadHistoryInbox) XXX_Size() int { + return xxx_messageInfo_TLUpdateReadHistoryInbox.Size(m) } -func (m *TLMessageMediaWebPage) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaWebPage.DiscardUnknown(m) +func (m *TLUpdateReadHistoryInbox) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateReadHistoryInbox.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaWebPage proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateReadHistoryInbox proto.InternalMessageInfo -func (m *TLMessageMediaWebPage) GetData2() *MessageMedia_Data { +func (m *TLUpdateReadHistoryInbox) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia; -type TLMessageMediaVenue struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update; +type TLUpdateReadHistoryOutbox struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaVenue) Reset() { *m = TLMessageMediaVenue{} } -func (m *TLMessageMediaVenue) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaVenue) ProtoMessage() {} -func (*TLMessageMediaVenue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{840} +func (m *TLUpdateReadHistoryOutbox) Reset() { *m = TLUpdateReadHistoryOutbox{} } +func (m *TLUpdateReadHistoryOutbox) String() string { return proto.CompactTextString(m) } +func (*TLUpdateReadHistoryOutbox) ProtoMessage() {} +func (*TLUpdateReadHistoryOutbox) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{778} } -func (m *TLMessageMediaVenue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaVenue.Unmarshal(m, b) +func (m *TLUpdateReadHistoryOutbox) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateReadHistoryOutbox.Unmarshal(m, b) } -func (m *TLMessageMediaVenue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaVenue.Marshal(b, m, deterministic) +func (m *TLUpdateReadHistoryOutbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateReadHistoryOutbox.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaVenue) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaVenue.Merge(dst, src) +func (dst *TLUpdateReadHistoryOutbox) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateReadHistoryOutbox.Merge(dst, src) } -func (m *TLMessageMediaVenue) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaVenue.Size(m) +func (m *TLUpdateReadHistoryOutbox) XXX_Size() int { + return xxx_messageInfo_TLUpdateReadHistoryOutbox.Size(m) } -func (m *TLMessageMediaVenue) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaVenue.DiscardUnknown(m) +func (m *TLUpdateReadHistoryOutbox) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateReadHistoryOutbox.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaVenue proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateReadHistoryOutbox proto.InternalMessageInfo -func (m *TLMessageMediaVenue) GetData2() *MessageMedia_Data { +func (m *TLUpdateReadHistoryOutbox) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaGame#fdb19008 game:Game = MessageMedia; -type TLMessageMediaGame struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update; +type TLUpdateWebPage struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaGame) Reset() { *m = TLMessageMediaGame{} } -func (m *TLMessageMediaGame) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaGame) ProtoMessage() {} -func (*TLMessageMediaGame) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{841} +func (m *TLUpdateWebPage) Reset() { *m = TLUpdateWebPage{} } +func (m *TLUpdateWebPage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateWebPage) ProtoMessage() {} +func (*TLUpdateWebPage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{779} } -func (m *TLMessageMediaGame) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaGame.Unmarshal(m, b) +func (m *TLUpdateWebPage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateWebPage.Unmarshal(m, b) } -func (m *TLMessageMediaGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaGame.Marshal(b, m, deterministic) +func (m *TLUpdateWebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateWebPage.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaGame) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaGame.Merge(dst, src) +func (dst *TLUpdateWebPage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateWebPage.Merge(dst, src) } -func (m *TLMessageMediaGame) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaGame.Size(m) +func (m *TLUpdateWebPage) XXX_Size() int { + return xxx_messageInfo_TLUpdateWebPage.Size(m) } -func (m *TLMessageMediaGame) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaGame.DiscardUnknown(m) +func (m *TLUpdateWebPage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateWebPage.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaGame proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateWebPage proto.InternalMessageInfo -func (m *TLMessageMediaGame) GetData2() *MessageMedia_Data { +func (m *TLUpdateWebPage) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; -type TLMessageMediaInvoice struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// updateReadMessagesContents#68c13933 messages:Vector pts:int pts_count:int = Update; +type TLUpdateReadMessagesContents struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} -func (m *TLMessageMediaInvoice) Reset() { *m = TLMessageMediaInvoice{} } -func (m *TLMessageMediaInvoice) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaInvoice) ProtoMessage() {} -func (*TLMessageMediaInvoice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{842} +func (m *TLUpdateReadMessagesContents) Reset() { *m = TLUpdateReadMessagesContents{} } +func (m *TLUpdateReadMessagesContents) String() string { return proto.CompactTextString(m) } +func (*TLUpdateReadMessagesContents) ProtoMessage() {} +func (*TLUpdateReadMessagesContents) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{780} } -func (m *TLMessageMediaInvoice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaInvoice.Unmarshal(m, b) +func (m *TLUpdateReadMessagesContents) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateReadMessagesContents.Unmarshal(m, b) } -func (m *TLMessageMediaInvoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaInvoice.Marshal(b, m, deterministic) +func (m *TLUpdateReadMessagesContents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateReadMessagesContents.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaInvoice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaInvoice.Merge(dst, src) +func (dst *TLUpdateReadMessagesContents) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateReadMessagesContents.Merge(dst, src) } -func (m *TLMessageMediaInvoice) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaInvoice.Size(m) +func (m *TLUpdateReadMessagesContents) XXX_Size() int { + return xxx_messageInfo_TLUpdateReadMessagesContents.Size(m) } -func (m *TLMessageMediaInvoice) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaInvoice.DiscardUnknown(m) +func (m *TLUpdateReadMessagesContents) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateReadMessagesContents.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaInvoice proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateReadMessagesContents proto.InternalMessageInfo -func (m *TLMessageMediaInvoice) GetData2() *MessageMedia_Data { +func (m *TLUpdateReadMessagesContents) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia; -type TLMessageMediaGeoLive struct { - Data2 *MessageMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update; +type TLUpdateChannelTooLong struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessageMediaGeoLive) Reset() { *m = TLMessageMediaGeoLive{} } -func (m *TLMessageMediaGeoLive) String() string { return proto.CompactTextString(m) } -func (*TLMessageMediaGeoLive) ProtoMessage() {} -func (*TLMessageMediaGeoLive) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{843} +func (m *TLUpdateChannelTooLong) Reset() { *m = TLUpdateChannelTooLong{} } +func (m *TLUpdateChannelTooLong) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChannelTooLong) ProtoMessage() {} +func (*TLUpdateChannelTooLong) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{781} } -func (m *TLMessageMediaGeoLive) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessageMediaGeoLive.Unmarshal(m, b) +func (m *TLUpdateChannelTooLong) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChannelTooLong.Unmarshal(m, b) } -func (m *TLMessageMediaGeoLive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessageMediaGeoLive.Marshal(b, m, deterministic) +func (m *TLUpdateChannelTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChannelTooLong.Marshal(b, m, deterministic) } -func (dst *TLMessageMediaGeoLive) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessageMediaGeoLive.Merge(dst, src) +func (dst *TLUpdateChannelTooLong) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChannelTooLong.Merge(dst, src) } -func (m *TLMessageMediaGeoLive) XXX_Size() int { - return xxx_messageInfo_TLMessageMediaGeoLive.Size(m) +func (m *TLUpdateChannelTooLong) XXX_Size() int { + return xxx_messageInfo_TLUpdateChannelTooLong.Size(m) } -func (m *TLMessageMediaGeoLive) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessageMediaGeoLive.DiscardUnknown(m) +func (m *TLUpdateChannelTooLong) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChannelTooLong.DiscardUnknown(m) } -var xxx_messageInfo_TLMessageMediaGeoLive proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateChannelTooLong proto.InternalMessageInfo -func (m *TLMessageMediaGeoLive) GetData2() *MessageMedia_Data { +func (m *TLUpdateChannelTooLong) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// BotInfo <-- -// + TL_botInfo -// -type BotInfo_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Commands []*BotCommand `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateChannel#b6d45656 channel_id:int = Update; +type TLUpdateChannel struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BotInfo_Data) Reset() { *m = BotInfo_Data{} } -func (m *BotInfo_Data) String() string { return proto.CompactTextString(m) } -func (*BotInfo_Data) ProtoMessage() {} -func (*BotInfo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{844} -} -func (m *BotInfo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BotInfo_Data.Unmarshal(m, b) +func (m *TLUpdateChannel) Reset() { *m = TLUpdateChannel{} } +func (m *TLUpdateChannel) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChannel) ProtoMessage() {} +func (*TLUpdateChannel) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{782} } -func (m *BotInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BotInfo_Data.Marshal(b, m, deterministic) +func (m *TLUpdateChannel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChannel.Unmarshal(m, b) } -func (dst *BotInfo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_BotInfo_Data.Merge(dst, src) +func (m *TLUpdateChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChannel.Marshal(b, m, deterministic) } -func (m *BotInfo_Data) XXX_Size() int { - return xxx_messageInfo_BotInfo_Data.Size(m) +func (dst *TLUpdateChannel) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChannel.Merge(dst, src) } -func (m *BotInfo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_BotInfo_Data.DiscardUnknown(m) +func (m *TLUpdateChannel) XXX_Size() int { + return xxx_messageInfo_TLUpdateChannel.Size(m) } - -var xxx_messageInfo_BotInfo_Data proto.InternalMessageInfo - -func (m *BotInfo_Data) GetUserId() int32 { - if m != nil { - return m.UserId - } - return 0 +func (m *TLUpdateChannel) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChannel.DiscardUnknown(m) } -func (m *BotInfo_Data) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} +var xxx_messageInfo_TLUpdateChannel proto.InternalMessageInfo -func (m *BotInfo_Data) GetCommands() []*BotCommand { +func (m *TLUpdateChannel) GetData2() *Update_Data { if m != nil { - return m.Commands + return m.Data2 } return nil } -type BotInfo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *BotInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update; +type TLUpdateNewChannelMessage struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BotInfo) Reset() { *m = BotInfo{} } -func (m *BotInfo) String() string { return proto.CompactTextString(m) } -func (*BotInfo) ProtoMessage() {} -func (*BotInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{845} +func (m *TLUpdateNewChannelMessage) Reset() { *m = TLUpdateNewChannelMessage{} } +func (m *TLUpdateNewChannelMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateNewChannelMessage) ProtoMessage() {} +func (*TLUpdateNewChannelMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{783} } -func (m *BotInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BotInfo.Unmarshal(m, b) +func (m *TLUpdateNewChannelMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateNewChannelMessage.Unmarshal(m, b) } -func (m *BotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BotInfo.Marshal(b, m, deterministic) +func (m *TLUpdateNewChannelMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateNewChannelMessage.Marshal(b, m, deterministic) } -func (dst *BotInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_BotInfo.Merge(dst, src) +func (dst *TLUpdateNewChannelMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateNewChannelMessage.Merge(dst, src) } -func (m *BotInfo) XXX_Size() int { - return xxx_messageInfo_BotInfo.Size(m) +func (m *TLUpdateNewChannelMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateNewChannelMessage.Size(m) } -func (m *BotInfo) XXX_DiscardUnknown() { - xxx_messageInfo_BotInfo.DiscardUnknown(m) +func (m *TLUpdateNewChannelMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateNewChannelMessage.DiscardUnknown(m) } -var xxx_messageInfo_BotInfo proto.InternalMessageInfo - -func (m *BotInfo) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateNewChannelMessage proto.InternalMessageInfo -func (m *BotInfo) GetData2() *BotInfo_Data { +func (m *TLUpdateNewChannelMessage) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// botInfo#98e81d3a user_id:int description:string commands:Vector = BotInfo; -type TLBotInfo struct { - Data2 *BotInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateReadChannelInbox#4214f37f channel_id:int max_id:int = Update; +type TLUpdateReadChannelInbox struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBotInfo) Reset() { *m = TLBotInfo{} } -func (m *TLBotInfo) String() string { return proto.CompactTextString(m) } -func (*TLBotInfo) ProtoMessage() {} -func (*TLBotInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{846} +func (m *TLUpdateReadChannelInbox) Reset() { *m = TLUpdateReadChannelInbox{} } +func (m *TLUpdateReadChannelInbox) String() string { return proto.CompactTextString(m) } +func (*TLUpdateReadChannelInbox) ProtoMessage() {} +func (*TLUpdateReadChannelInbox) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{784} } -func (m *TLBotInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBotInfo.Unmarshal(m, b) +func (m *TLUpdateReadChannelInbox) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateReadChannelInbox.Unmarshal(m, b) } -func (m *TLBotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBotInfo.Marshal(b, m, deterministic) +func (m *TLUpdateReadChannelInbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateReadChannelInbox.Marshal(b, m, deterministic) } -func (dst *TLBotInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBotInfo.Merge(dst, src) +func (dst *TLUpdateReadChannelInbox) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateReadChannelInbox.Merge(dst, src) } -func (m *TLBotInfo) XXX_Size() int { - return xxx_messageInfo_TLBotInfo.Size(m) +func (m *TLUpdateReadChannelInbox) XXX_Size() int { + return xxx_messageInfo_TLUpdateReadChannelInbox.Size(m) } -func (m *TLBotInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLBotInfo.DiscardUnknown(m) +func (m *TLUpdateReadChannelInbox) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateReadChannelInbox.DiscardUnknown(m) } -var xxx_messageInfo_TLBotInfo proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateReadChannelInbox proto.InternalMessageInfo -func (m *TLBotInfo) GetData2() *BotInfo_Data { +func (m *TLUpdateReadChannelInbox) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// updates_ChannelDifference <-- -// + TL_updates_channelDifferenceEmpty -// + TL_updates_channelDifferenceTooLong -// + TL_updates_channelDifference -// -type Updates_ChannelDifference_Data struct { - Final bool `protobuf:"varint,1,opt,name=final,proto3" json:"final,omitempty"` - Pts int32 `protobuf:"varint,2,opt,name=pts,proto3" json:"pts,omitempty"` - Timeout int32 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` - TopMessage int32 `protobuf:"varint,4,opt,name=top_message,json=topMessage,proto3" json:"top_message,omitempty"` - ReadInboxMaxId int32 `protobuf:"varint,5,opt,name=read_inbox_max_id,json=readInboxMaxId,proto3" json:"read_inbox_max_id,omitempty"` - ReadOutboxMaxId int32 `protobuf:"varint,6,opt,name=read_outbox_max_id,json=readOutboxMaxId,proto3" json:"read_outbox_max_id,omitempty"` - UnreadCount int32 `protobuf:"varint,7,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` - UnreadMentionsCount int32 `protobuf:"varint,8,opt,name=unread_mentions_count,json=unreadMentionsCount,proto3" json:"unread_mentions_count,omitempty"` - Messages []*Message `protobuf:"bytes,9,rep,name=messages,proto3" json:"messages,omitempty"` - Chats []*Chat `protobuf:"bytes,10,rep,name=chats,proto3" json:"chats,omitempty"` - Users []*User `protobuf:"bytes,11,rep,name=users,proto3" json:"users,omitempty"` - NewMessages []*Message `protobuf:"bytes,12,rep,name=new_messages,json=newMessages,proto3" json:"new_messages,omitempty"` - OtherUpdates []*Update `protobuf:"bytes,13,rep,name=other_updates,json=otherUpdates,proto3" json:"other_updates,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector pts:int pts_count:int = Update; +type TLUpdateDeleteChannelMessages struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Updates_ChannelDifference_Data) Reset() { *m = Updates_ChannelDifference_Data{} } -func (m *Updates_ChannelDifference_Data) String() string { return proto.CompactTextString(m) } -func (*Updates_ChannelDifference_Data) ProtoMessage() {} -func (*Updates_ChannelDifference_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{847} -} -func (m *Updates_ChannelDifference_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Updates_ChannelDifference_Data.Unmarshal(m, b) -} -func (m *Updates_ChannelDifference_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Updates_ChannelDifference_Data.Marshal(b, m, deterministic) +func (m *TLUpdateDeleteChannelMessages) Reset() { *m = TLUpdateDeleteChannelMessages{} } +func (m *TLUpdateDeleteChannelMessages) String() string { return proto.CompactTextString(m) } +func (*TLUpdateDeleteChannelMessages) ProtoMessage() {} +func (*TLUpdateDeleteChannelMessages) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{785} } -func (dst *Updates_ChannelDifference_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Updates_ChannelDifference_Data.Merge(dst, src) +func (m *TLUpdateDeleteChannelMessages) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateDeleteChannelMessages.Unmarshal(m, b) } -func (m *Updates_ChannelDifference_Data) XXX_Size() int { - return xxx_messageInfo_Updates_ChannelDifference_Data.Size(m) +func (m *TLUpdateDeleteChannelMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateDeleteChannelMessages.Marshal(b, m, deterministic) } -func (m *Updates_ChannelDifference_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Updates_ChannelDifference_Data.DiscardUnknown(m) +func (dst *TLUpdateDeleteChannelMessages) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateDeleteChannelMessages.Merge(dst, src) } - -var xxx_messageInfo_Updates_ChannelDifference_Data proto.InternalMessageInfo - -func (m *Updates_ChannelDifference_Data) GetFinal() bool { - if m != nil { - return m.Final - } - return false +func (m *TLUpdateDeleteChannelMessages) XXX_Size() int { + return xxx_messageInfo_TLUpdateDeleteChannelMessages.Size(m) } - -func (m *Updates_ChannelDifference_Data) GetPts() int32 { - if m != nil { - return m.Pts - } - return 0 +func (m *TLUpdateDeleteChannelMessages) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateDeleteChannelMessages.DiscardUnknown(m) } -func (m *Updates_ChannelDifference_Data) GetTimeout() int32 { - if m != nil { - return m.Timeout - } - return 0 -} +var xxx_messageInfo_TLUpdateDeleteChannelMessages proto.InternalMessageInfo -func (m *Updates_ChannelDifference_Data) GetTopMessage() int32 { +func (m *TLUpdateDeleteChannelMessages) GetData2() *Update_Data { if m != nil { - return m.TopMessage + return m.Data2 } - return 0 + return nil } -func (m *Updates_ChannelDifference_Data) GetReadInboxMaxId() int32 { - if m != nil { - return m.ReadInboxMaxId - } - return 0 +// updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update; +type TLUpdateChannelMessageViews struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Updates_ChannelDifference_Data) GetReadOutboxMaxId() int32 { - if m != nil { - return m.ReadOutboxMaxId - } - return 0 +func (m *TLUpdateChannelMessageViews) Reset() { *m = TLUpdateChannelMessageViews{} } +func (m *TLUpdateChannelMessageViews) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChannelMessageViews) ProtoMessage() {} +func (*TLUpdateChannelMessageViews) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{786} } - -func (m *Updates_ChannelDifference_Data) GetUnreadCount() int32 { - if m != nil { - return m.UnreadCount - } - return 0 +func (m *TLUpdateChannelMessageViews) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChannelMessageViews.Unmarshal(m, b) } - -func (m *Updates_ChannelDifference_Data) GetUnreadMentionsCount() int32 { - if m != nil { - return m.UnreadMentionsCount - } - return 0 +func (m *TLUpdateChannelMessageViews) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChannelMessageViews.Marshal(b, m, deterministic) } - -func (m *Updates_ChannelDifference_Data) GetMessages() []*Message { - if m != nil { - return m.Messages - } - return nil +func (dst *TLUpdateChannelMessageViews) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChannelMessageViews.Merge(dst, src) } - -func (m *Updates_ChannelDifference_Data) GetChats() []*Chat { - if m != nil { - return m.Chats - } - return nil +func (m *TLUpdateChannelMessageViews) XXX_Size() int { + return xxx_messageInfo_TLUpdateChannelMessageViews.Size(m) } - -func (m *Updates_ChannelDifference_Data) GetUsers() []*User { - if m != nil { - return m.Users - } - return nil +func (m *TLUpdateChannelMessageViews) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChannelMessageViews.DiscardUnknown(m) } -func (m *Updates_ChannelDifference_Data) GetNewMessages() []*Message { - if m != nil { - return m.NewMessages - } - return nil -} +var xxx_messageInfo_TLUpdateChannelMessageViews proto.InternalMessageInfo -func (m *Updates_ChannelDifference_Data) GetOtherUpdates() []*Update { +func (m *TLUpdateChannelMessageViews) GetData2() *Update_Data { if m != nil { - return m.OtherUpdates + return m.Data2 } return nil } -type Updates_ChannelDifference struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Updates_ChannelDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateChatAdmins#6e947941 chat_id:int enabled:Bool version:int = Update; +type TLUpdateChatAdmins struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Updates_ChannelDifference) Reset() { *m = Updates_ChannelDifference{} } -func (m *Updates_ChannelDifference) String() string { return proto.CompactTextString(m) } -func (*Updates_ChannelDifference) ProtoMessage() {} -func (*Updates_ChannelDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{848} +func (m *TLUpdateChatAdmins) Reset() { *m = TLUpdateChatAdmins{} } +func (m *TLUpdateChatAdmins) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChatAdmins) ProtoMessage() {} +func (*TLUpdateChatAdmins) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{787} } -func (m *Updates_ChannelDifference) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Updates_ChannelDifference.Unmarshal(m, b) +func (m *TLUpdateChatAdmins) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChatAdmins.Unmarshal(m, b) } -func (m *Updates_ChannelDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Updates_ChannelDifference.Marshal(b, m, deterministic) +func (m *TLUpdateChatAdmins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChatAdmins.Marshal(b, m, deterministic) } -func (dst *Updates_ChannelDifference) XXX_Merge(src proto.Message) { - xxx_messageInfo_Updates_ChannelDifference.Merge(dst, src) +func (dst *TLUpdateChatAdmins) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChatAdmins.Merge(dst, src) } -func (m *Updates_ChannelDifference) XXX_Size() int { - return xxx_messageInfo_Updates_ChannelDifference.Size(m) +func (m *TLUpdateChatAdmins) XXX_Size() int { + return xxx_messageInfo_TLUpdateChatAdmins.Size(m) } -func (m *Updates_ChannelDifference) XXX_DiscardUnknown() { - xxx_messageInfo_Updates_ChannelDifference.DiscardUnknown(m) +func (m *TLUpdateChatAdmins) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChatAdmins.DiscardUnknown(m) } -var xxx_messageInfo_Updates_ChannelDifference proto.InternalMessageInfo - -func (m *Updates_ChannelDifference) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateChatAdmins proto.InternalMessageInfo -func (m *Updates_ChannelDifference) GetData2() *Updates_ChannelDifference_Data { +func (m *TLUpdateChatAdmins) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference; -type TLUpdatesChannelDifferenceEmpty struct { - Data2 *Updates_ChannelDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update; +type TLUpdateChatParticipantAdmin struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatesChannelDifferenceEmpty) Reset() { *m = TLUpdatesChannelDifferenceEmpty{} } -func (m *TLUpdatesChannelDifferenceEmpty) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesChannelDifferenceEmpty) ProtoMessage() {} -func (*TLUpdatesChannelDifferenceEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{849} +func (m *TLUpdateChatParticipantAdmin) Reset() { *m = TLUpdateChatParticipantAdmin{} } +func (m *TLUpdateChatParticipantAdmin) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChatParticipantAdmin) ProtoMessage() {} +func (*TLUpdateChatParticipantAdmin) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{788} } -func (m *TLUpdatesChannelDifferenceEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.Unmarshal(m, b) +func (m *TLUpdateChatParticipantAdmin) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChatParticipantAdmin.Unmarshal(m, b) } -func (m *TLUpdatesChannelDifferenceEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.Marshal(b, m, deterministic) +func (m *TLUpdateChatParticipantAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChatParticipantAdmin.Marshal(b, m, deterministic) } -func (dst *TLUpdatesChannelDifferenceEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.Merge(dst, src) +func (dst *TLUpdateChatParticipantAdmin) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChatParticipantAdmin.Merge(dst, src) } -func (m *TLUpdatesChannelDifferenceEmpty) XXX_Size() int { - return xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.Size(m) +func (m *TLUpdateChatParticipantAdmin) XXX_Size() int { + return xxx_messageInfo_TLUpdateChatParticipantAdmin.Size(m) } -func (m *TLUpdatesChannelDifferenceEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesChannelDifferenceEmpty.DiscardUnknown(m) +func (m *TLUpdateChatParticipantAdmin) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChatParticipantAdmin.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatesChannelDifferenceEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateChatParticipantAdmin proto.InternalMessageInfo -func (m *TLUpdatesChannelDifferenceEmpty) GetData2() *Updates_ChannelDifference_Data { +func (m *TLUpdateChatParticipantAdmin) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// updates.channelDifferenceTooLong#6a9d7b35 flags:# final:flags.0?true pts:int timeout:flags.1?int top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int messages:Vector chats:Vector users:Vector = updates.ChannelDifference; -type TLUpdatesChannelDifferenceTooLong struct { - Data2 *Updates_ChannelDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; +type TLUpdateNewStickerSet struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatesChannelDifferenceTooLong) Reset() { *m = TLUpdatesChannelDifferenceTooLong{} } -func (m *TLUpdatesChannelDifferenceTooLong) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesChannelDifferenceTooLong) ProtoMessage() {} -func (*TLUpdatesChannelDifferenceTooLong) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{850} -} -func (m *TLUpdatesChannelDifferenceTooLong) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.Unmarshal(m, b) +func (m *TLUpdateNewStickerSet) Reset() { *m = TLUpdateNewStickerSet{} } +func (m *TLUpdateNewStickerSet) String() string { return proto.CompactTextString(m) } +func (*TLUpdateNewStickerSet) ProtoMessage() {} +func (*TLUpdateNewStickerSet) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{789} } -func (m *TLUpdatesChannelDifferenceTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.Marshal(b, m, deterministic) +func (m *TLUpdateNewStickerSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateNewStickerSet.Unmarshal(m, b) } -func (dst *TLUpdatesChannelDifferenceTooLong) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.Merge(dst, src) +func (m *TLUpdateNewStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateNewStickerSet.Marshal(b, m, deterministic) } -func (m *TLUpdatesChannelDifferenceTooLong) XXX_Size() int { - return xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.Size(m) +func (dst *TLUpdateNewStickerSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateNewStickerSet.Merge(dst, src) } -func (m *TLUpdatesChannelDifferenceTooLong) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesChannelDifferenceTooLong.DiscardUnknown(m) +func (m *TLUpdateNewStickerSet) XXX_Size() int { + return xxx_messageInfo_TLUpdateNewStickerSet.Size(m) +} +func (m *TLUpdateNewStickerSet) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateNewStickerSet.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatesChannelDifferenceTooLong proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateNewStickerSet proto.InternalMessageInfo -func (m *TLUpdatesChannelDifferenceTooLong) GetData2() *Updates_ChannelDifference_Data { +func (m *TLUpdateNewStickerSet) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference; -type TLUpdatesChannelDifference struct { - Data2 *Updates_ChannelDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector = Update; +type TLUpdateStickerSetsOrder struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUpdatesChannelDifference) Reset() { *m = TLUpdatesChannelDifference{} } -func (m *TLUpdatesChannelDifference) String() string { return proto.CompactTextString(m) } -func (*TLUpdatesChannelDifference) ProtoMessage() {} -func (*TLUpdatesChannelDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{851} +func (m *TLUpdateStickerSetsOrder) Reset() { *m = TLUpdateStickerSetsOrder{} } +func (m *TLUpdateStickerSetsOrder) String() string { return proto.CompactTextString(m) } +func (*TLUpdateStickerSetsOrder) ProtoMessage() {} +func (*TLUpdateStickerSetsOrder) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{790} } -func (m *TLUpdatesChannelDifference) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUpdatesChannelDifference.Unmarshal(m, b) +func (m *TLUpdateStickerSetsOrder) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateStickerSetsOrder.Unmarshal(m, b) } -func (m *TLUpdatesChannelDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUpdatesChannelDifference.Marshal(b, m, deterministic) +func (m *TLUpdateStickerSetsOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateStickerSetsOrder.Marshal(b, m, deterministic) } -func (dst *TLUpdatesChannelDifference) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUpdatesChannelDifference.Merge(dst, src) +func (dst *TLUpdateStickerSetsOrder) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateStickerSetsOrder.Merge(dst, src) } -func (m *TLUpdatesChannelDifference) XXX_Size() int { - return xxx_messageInfo_TLUpdatesChannelDifference.Size(m) +func (m *TLUpdateStickerSetsOrder) XXX_Size() int { + return xxx_messageInfo_TLUpdateStickerSetsOrder.Size(m) } -func (m *TLUpdatesChannelDifference) XXX_DiscardUnknown() { - xxx_messageInfo_TLUpdatesChannelDifference.DiscardUnknown(m) +func (m *TLUpdateStickerSetsOrder) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateStickerSetsOrder.DiscardUnknown(m) } -var xxx_messageInfo_TLUpdatesChannelDifference proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateStickerSetsOrder proto.InternalMessageInfo -func (m *TLUpdatesChannelDifference) GetData2() *Updates_ChannelDifference_Data { +func (m *TLUpdateStickerSetsOrder) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Page <-- -// + TL_pagePart -// + TL_pageFull -// -type Page_Data struct { - Blocks []*PageBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` - Photos []*Photo `protobuf:"bytes,2,rep,name=photos,proto3" json:"photos,omitempty"` - Documents []*Document `protobuf:"bytes,3,rep,name=documents,proto3" json:"documents,omitempty"` +// updateStickerSets#43ae3dec = Update; +type TLUpdateStickerSets struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Page_Data) Reset() { *m = Page_Data{} } -func (m *Page_Data) String() string { return proto.CompactTextString(m) } -func (*Page_Data) ProtoMessage() {} -func (*Page_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{852} -} -func (m *Page_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Page_Data.Unmarshal(m, b) +func (m *TLUpdateStickerSets) Reset() { *m = TLUpdateStickerSets{} } +func (m *TLUpdateStickerSets) String() string { return proto.CompactTextString(m) } +func (*TLUpdateStickerSets) ProtoMessage() {} +func (*TLUpdateStickerSets) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{791} } -func (m *Page_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Page_Data.Marshal(b, m, deterministic) +func (m *TLUpdateStickerSets) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateStickerSets.Unmarshal(m, b) } -func (dst *Page_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Page_Data.Merge(dst, src) +func (m *TLUpdateStickerSets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateStickerSets.Marshal(b, m, deterministic) } -func (m *Page_Data) XXX_Size() int { - return xxx_messageInfo_Page_Data.Size(m) +func (dst *TLUpdateStickerSets) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateStickerSets.Merge(dst, src) } -func (m *Page_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Page_Data.DiscardUnknown(m) +func (m *TLUpdateStickerSets) XXX_Size() int { + return xxx_messageInfo_TLUpdateStickerSets.Size(m) } - -var xxx_messageInfo_Page_Data proto.InternalMessageInfo - -func (m *Page_Data) GetBlocks() []*PageBlock { - if m != nil { - return m.Blocks - } - return nil +func (m *TLUpdateStickerSets) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateStickerSets.DiscardUnknown(m) } -func (m *Page_Data) GetPhotos() []*Photo { - if m != nil { - return m.Photos - } - return nil -} +var xxx_messageInfo_TLUpdateStickerSets proto.InternalMessageInfo -func (m *Page_Data) GetDocuments() []*Document { +func (m *TLUpdateStickerSets) GetData2() *Update_Data { if m != nil { - return m.Documents + return m.Data2 } return nil } -type Page struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Page_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateSavedGifs#9375341e = Update; +type TLUpdateSavedGifs struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Page) Reset() { *m = Page{} } -func (m *Page) String() string { return proto.CompactTextString(m) } -func (*Page) ProtoMessage() {} -func (*Page) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{853} +func (m *TLUpdateSavedGifs) Reset() { *m = TLUpdateSavedGifs{} } +func (m *TLUpdateSavedGifs) String() string { return proto.CompactTextString(m) } +func (*TLUpdateSavedGifs) ProtoMessage() {} +func (*TLUpdateSavedGifs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{792} } -func (m *Page) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Page.Unmarshal(m, b) +func (m *TLUpdateSavedGifs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateSavedGifs.Unmarshal(m, b) } -func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Page.Marshal(b, m, deterministic) +func (m *TLUpdateSavedGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateSavedGifs.Marshal(b, m, deterministic) } -func (dst *Page) XXX_Merge(src proto.Message) { - xxx_messageInfo_Page.Merge(dst, src) +func (dst *TLUpdateSavedGifs) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateSavedGifs.Merge(dst, src) } -func (m *Page) XXX_Size() int { - return xxx_messageInfo_Page.Size(m) +func (m *TLUpdateSavedGifs) XXX_Size() int { + return xxx_messageInfo_TLUpdateSavedGifs.Size(m) } -func (m *Page) XXX_DiscardUnknown() { - xxx_messageInfo_Page.DiscardUnknown(m) +func (m *TLUpdateSavedGifs) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateSavedGifs.DiscardUnknown(m) } -var xxx_messageInfo_Page proto.InternalMessageInfo - -func (m *Page) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateSavedGifs proto.InternalMessageInfo -func (m *Page) GetData2() *Page_Data { +func (m *TLUpdateSavedGifs) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// pagePart#8e3f9ebe blocks:Vector photos:Vector documents:Vector = Page; -type TLPagePart struct { - Data2 *Page_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update; +type TLUpdateBotInlineQuery struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPagePart) Reset() { *m = TLPagePart{} } -func (m *TLPagePart) String() string { return proto.CompactTextString(m) } -func (*TLPagePart) ProtoMessage() {} -func (*TLPagePart) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{854} +func (m *TLUpdateBotInlineQuery) Reset() { *m = TLUpdateBotInlineQuery{} } +func (m *TLUpdateBotInlineQuery) String() string { return proto.CompactTextString(m) } +func (*TLUpdateBotInlineQuery) ProtoMessage() {} +func (*TLUpdateBotInlineQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{793} } -func (m *TLPagePart) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPagePart.Unmarshal(m, b) +func (m *TLUpdateBotInlineQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateBotInlineQuery.Unmarshal(m, b) } -func (m *TLPagePart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPagePart.Marshal(b, m, deterministic) +func (m *TLUpdateBotInlineQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateBotInlineQuery.Marshal(b, m, deterministic) } -func (dst *TLPagePart) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPagePart.Merge(dst, src) +func (dst *TLUpdateBotInlineQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateBotInlineQuery.Merge(dst, src) } -func (m *TLPagePart) XXX_Size() int { - return xxx_messageInfo_TLPagePart.Size(m) +func (m *TLUpdateBotInlineQuery) XXX_Size() int { + return xxx_messageInfo_TLUpdateBotInlineQuery.Size(m) } -func (m *TLPagePart) XXX_DiscardUnknown() { - xxx_messageInfo_TLPagePart.DiscardUnknown(m) +func (m *TLUpdateBotInlineQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateBotInlineQuery.DiscardUnknown(m) } -var xxx_messageInfo_TLPagePart proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateBotInlineQuery proto.InternalMessageInfo -func (m *TLPagePart) GetData2() *Page_Data { +func (m *TLUpdateBotInlineQuery) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// pageFull#556ec7aa blocks:Vector photos:Vector documents:Vector = Page; -type TLPageFull struct { - Data2 *Page_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update; +type TLUpdateBotInlineSend struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageFull) Reset() { *m = TLPageFull{} } -func (m *TLPageFull) String() string { return proto.CompactTextString(m) } -func (*TLPageFull) ProtoMessage() {} -func (*TLPageFull) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{855} +func (m *TLUpdateBotInlineSend) Reset() { *m = TLUpdateBotInlineSend{} } +func (m *TLUpdateBotInlineSend) String() string { return proto.CompactTextString(m) } +func (*TLUpdateBotInlineSend) ProtoMessage() {} +func (*TLUpdateBotInlineSend) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{794} } -func (m *TLPageFull) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageFull.Unmarshal(m, b) +func (m *TLUpdateBotInlineSend) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateBotInlineSend.Unmarshal(m, b) } -func (m *TLPageFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageFull.Marshal(b, m, deterministic) +func (m *TLUpdateBotInlineSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateBotInlineSend.Marshal(b, m, deterministic) } -func (dst *TLPageFull) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageFull.Merge(dst, src) +func (dst *TLUpdateBotInlineSend) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateBotInlineSend.Merge(dst, src) } -func (m *TLPageFull) XXX_Size() int { - return xxx_messageInfo_TLPageFull.Size(m) +func (m *TLUpdateBotInlineSend) XXX_Size() int { + return xxx_messageInfo_TLUpdateBotInlineSend.Size(m) } -func (m *TLPageFull) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageFull.DiscardUnknown(m) +func (m *TLUpdateBotInlineSend) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateBotInlineSend.DiscardUnknown(m) } -var xxx_messageInfo_TLPageFull proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateBotInlineSend proto.InternalMessageInfo -func (m *TLPageFull) GetData2() *Page_Data { +func (m *TLUpdateBotInlineSend) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputWebDocument <-- -// + TL_inputWebDocument -// -type InputWebDocument_Data struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - Attributes []*DocumentAttribute `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update; +type TLUpdateEditChannelMessage struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputWebDocument_Data) Reset() { *m = InputWebDocument_Data{} } -func (m *InputWebDocument_Data) String() string { return proto.CompactTextString(m) } -func (*InputWebDocument_Data) ProtoMessage() {} -func (*InputWebDocument_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{856} +func (m *TLUpdateEditChannelMessage) Reset() { *m = TLUpdateEditChannelMessage{} } +func (m *TLUpdateEditChannelMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateEditChannelMessage) ProtoMessage() {} +func (*TLUpdateEditChannelMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{795} } -func (m *InputWebDocument_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputWebDocument_Data.Unmarshal(m, b) +func (m *TLUpdateEditChannelMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateEditChannelMessage.Unmarshal(m, b) } -func (m *InputWebDocument_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputWebDocument_Data.Marshal(b, m, deterministic) +func (m *TLUpdateEditChannelMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateEditChannelMessage.Marshal(b, m, deterministic) } -func (dst *InputWebDocument_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputWebDocument_Data.Merge(dst, src) +func (dst *TLUpdateEditChannelMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateEditChannelMessage.Merge(dst, src) } -func (m *InputWebDocument_Data) XXX_Size() int { - return xxx_messageInfo_InputWebDocument_Data.Size(m) +func (m *TLUpdateEditChannelMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateEditChannelMessage.Size(m) } -func (m *InputWebDocument_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputWebDocument_Data.DiscardUnknown(m) +func (m *TLUpdateEditChannelMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateEditChannelMessage.DiscardUnknown(m) } -var xxx_messageInfo_InputWebDocument_Data proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateEditChannelMessage proto.InternalMessageInfo -func (m *InputWebDocument_Data) GetUrl() string { +func (m *TLUpdateEditChannelMessage) GetData2() *Update_Data { if m != nil { - return m.Url + return m.Data2 } - return "" + return nil } -func (m *InputWebDocument_Data) GetSize() int32 { - if m != nil { - return m.Size - } - return 0 +// updateChannelPinnedMessage#98592475 channel_id:int id:int = Update; +type TLUpdateChannelPinnedMessage struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputWebDocument_Data) GetMimeType() string { - if m != nil { - return m.MimeType - } - return "" +func (m *TLUpdateChannelPinnedMessage) Reset() { *m = TLUpdateChannelPinnedMessage{} } +func (m *TLUpdateChannelPinnedMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChannelPinnedMessage) ProtoMessage() {} +func (*TLUpdateChannelPinnedMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{796} +} +func (m *TLUpdateChannelPinnedMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChannelPinnedMessage.Unmarshal(m, b) +} +func (m *TLUpdateChannelPinnedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChannelPinnedMessage.Marshal(b, m, deterministic) +} +func (dst *TLUpdateChannelPinnedMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChannelPinnedMessage.Merge(dst, src) +} +func (m *TLUpdateChannelPinnedMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateChannelPinnedMessage.Size(m) +} +func (m *TLUpdateChannelPinnedMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChannelPinnedMessage.DiscardUnknown(m) } -func (m *InputWebDocument_Data) GetAttributes() []*DocumentAttribute { +var xxx_messageInfo_TLUpdateChannelPinnedMessage proto.InternalMessageInfo + +func (m *TLUpdateChannelPinnedMessage) GetData2() *Update_Data { if m != nil { - return m.Attributes + return m.Data2 } return nil } -type InputWebDocument struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputWebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; +type TLUpdateBotCallbackQuery struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputWebDocument) Reset() { *m = InputWebDocument{} } -func (m *InputWebDocument) String() string { return proto.CompactTextString(m) } -func (*InputWebDocument) ProtoMessage() {} -func (*InputWebDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{857} +func (m *TLUpdateBotCallbackQuery) Reset() { *m = TLUpdateBotCallbackQuery{} } +func (m *TLUpdateBotCallbackQuery) String() string { return proto.CompactTextString(m) } +func (*TLUpdateBotCallbackQuery) ProtoMessage() {} +func (*TLUpdateBotCallbackQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{797} } -func (m *InputWebDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputWebDocument.Unmarshal(m, b) +func (m *TLUpdateBotCallbackQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateBotCallbackQuery.Unmarshal(m, b) } -func (m *InputWebDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputWebDocument.Marshal(b, m, deterministic) +func (m *TLUpdateBotCallbackQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateBotCallbackQuery.Marshal(b, m, deterministic) } -func (dst *InputWebDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputWebDocument.Merge(dst, src) +func (dst *TLUpdateBotCallbackQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateBotCallbackQuery.Merge(dst, src) } -func (m *InputWebDocument) XXX_Size() int { - return xxx_messageInfo_InputWebDocument.Size(m) +func (m *TLUpdateBotCallbackQuery) XXX_Size() int { + return xxx_messageInfo_TLUpdateBotCallbackQuery.Size(m) } -func (m *InputWebDocument) XXX_DiscardUnknown() { - xxx_messageInfo_InputWebDocument.DiscardUnknown(m) +func (m *TLUpdateBotCallbackQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateBotCallbackQuery.DiscardUnknown(m) } -var xxx_messageInfo_InputWebDocument proto.InternalMessageInfo - -func (m *InputWebDocument) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateBotCallbackQuery proto.InternalMessageInfo -func (m *InputWebDocument) GetData2() *InputWebDocument_Data { +func (m *TLUpdateBotCallbackQuery) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; -type TLInputWebDocument struct { - Data2 *InputWebDocument_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update; +type TLUpdateEditMessage struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputWebDocument) Reset() { *m = TLInputWebDocument{} } -func (m *TLInputWebDocument) String() string { return proto.CompactTextString(m) } -func (*TLInputWebDocument) ProtoMessage() {} -func (*TLInputWebDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{858} +func (m *TLUpdateEditMessage) Reset() { *m = TLUpdateEditMessage{} } +func (m *TLUpdateEditMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateEditMessage) ProtoMessage() {} +func (*TLUpdateEditMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{798} } -func (m *TLInputWebDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputWebDocument.Unmarshal(m, b) +func (m *TLUpdateEditMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateEditMessage.Unmarshal(m, b) } -func (m *TLInputWebDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputWebDocument.Marshal(b, m, deterministic) +func (m *TLUpdateEditMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateEditMessage.Marshal(b, m, deterministic) } -func (dst *TLInputWebDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputWebDocument.Merge(dst, src) +func (dst *TLUpdateEditMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateEditMessage.Merge(dst, src) } -func (m *TLInputWebDocument) XXX_Size() int { - return xxx_messageInfo_TLInputWebDocument.Size(m) +func (m *TLUpdateEditMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateEditMessage.Size(m) } -func (m *TLInputWebDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputWebDocument.DiscardUnknown(m) +func (m *TLUpdateEditMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateEditMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLInputWebDocument proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateEditMessage proto.InternalMessageInfo -func (m *TLInputWebDocument) GetData2() *InputWebDocument_Data { +func (m *TLUpdateEditMessage) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// CdnConfig <-- -// + TL_cdnConfig -// -type CdnConfig_Data struct { - PublicKeys []*CdnPublicKey `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; +type TLUpdateInlineBotCallbackQuery struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CdnConfig_Data) Reset() { *m = CdnConfig_Data{} } -func (m *CdnConfig_Data) String() string { return proto.CompactTextString(m) } -func (*CdnConfig_Data) ProtoMessage() {} -func (*CdnConfig_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{859} +func (m *TLUpdateInlineBotCallbackQuery) Reset() { *m = TLUpdateInlineBotCallbackQuery{} } +func (m *TLUpdateInlineBotCallbackQuery) String() string { return proto.CompactTextString(m) } +func (*TLUpdateInlineBotCallbackQuery) ProtoMessage() {} +func (*TLUpdateInlineBotCallbackQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{799} } -func (m *CdnConfig_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CdnConfig_Data.Unmarshal(m, b) +func (m *TLUpdateInlineBotCallbackQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateInlineBotCallbackQuery.Unmarshal(m, b) } -func (m *CdnConfig_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CdnConfig_Data.Marshal(b, m, deterministic) +func (m *TLUpdateInlineBotCallbackQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateInlineBotCallbackQuery.Marshal(b, m, deterministic) } -func (dst *CdnConfig_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_CdnConfig_Data.Merge(dst, src) +func (dst *TLUpdateInlineBotCallbackQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateInlineBotCallbackQuery.Merge(dst, src) } -func (m *CdnConfig_Data) XXX_Size() int { - return xxx_messageInfo_CdnConfig_Data.Size(m) +func (m *TLUpdateInlineBotCallbackQuery) XXX_Size() int { + return xxx_messageInfo_TLUpdateInlineBotCallbackQuery.Size(m) } -func (m *CdnConfig_Data) XXX_DiscardUnknown() { - xxx_messageInfo_CdnConfig_Data.DiscardUnknown(m) +func (m *TLUpdateInlineBotCallbackQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateInlineBotCallbackQuery.DiscardUnknown(m) } -var xxx_messageInfo_CdnConfig_Data proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateInlineBotCallbackQuery proto.InternalMessageInfo -func (m *CdnConfig_Data) GetPublicKeys() []*CdnPublicKey { +func (m *TLUpdateInlineBotCallbackQuery) GetData2() *Update_Data { if m != nil { - return m.PublicKeys + return m.Data2 } return nil } -type CdnConfig struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *CdnConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update; +type TLUpdateReadChannelOutbox struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CdnConfig) Reset() { *m = CdnConfig{} } -func (m *CdnConfig) String() string { return proto.CompactTextString(m) } -func (*CdnConfig) ProtoMessage() {} -func (*CdnConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{860} +func (m *TLUpdateReadChannelOutbox) Reset() { *m = TLUpdateReadChannelOutbox{} } +func (m *TLUpdateReadChannelOutbox) String() string { return proto.CompactTextString(m) } +func (*TLUpdateReadChannelOutbox) ProtoMessage() {} +func (*TLUpdateReadChannelOutbox) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{800} } -func (m *CdnConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CdnConfig.Unmarshal(m, b) +func (m *TLUpdateReadChannelOutbox) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateReadChannelOutbox.Unmarshal(m, b) } -func (m *CdnConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CdnConfig.Marshal(b, m, deterministic) +func (m *TLUpdateReadChannelOutbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateReadChannelOutbox.Marshal(b, m, deterministic) } -func (dst *CdnConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_CdnConfig.Merge(dst, src) +func (dst *TLUpdateReadChannelOutbox) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateReadChannelOutbox.Merge(dst, src) } -func (m *CdnConfig) XXX_Size() int { - return xxx_messageInfo_CdnConfig.Size(m) +func (m *TLUpdateReadChannelOutbox) XXX_Size() int { + return xxx_messageInfo_TLUpdateReadChannelOutbox.Size(m) } -func (m *CdnConfig) XXX_DiscardUnknown() { - xxx_messageInfo_CdnConfig.DiscardUnknown(m) +func (m *TLUpdateReadChannelOutbox) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateReadChannelOutbox.DiscardUnknown(m) } -var xxx_messageInfo_CdnConfig proto.InternalMessageInfo - -func (m *CdnConfig) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateReadChannelOutbox proto.InternalMessageInfo -func (m *CdnConfig) GetData2() *CdnConfig_Data { +func (m *TLUpdateReadChannelOutbox) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// cdnConfig#5725e40a public_keys:Vector = CdnConfig; -type TLCdnConfig struct { - Data2 *CdnConfig_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update; +type TLUpdateDraftMessage struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLCdnConfig) Reset() { *m = TLCdnConfig{} } -func (m *TLCdnConfig) String() string { return proto.CompactTextString(m) } -func (*TLCdnConfig) ProtoMessage() {} -func (*TLCdnConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{861} +func (m *TLUpdateDraftMessage) Reset() { *m = TLUpdateDraftMessage{} } +func (m *TLUpdateDraftMessage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateDraftMessage) ProtoMessage() {} +func (*TLUpdateDraftMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{801} } -func (m *TLCdnConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLCdnConfig.Unmarshal(m, b) +func (m *TLUpdateDraftMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateDraftMessage.Unmarshal(m, b) } -func (m *TLCdnConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLCdnConfig.Marshal(b, m, deterministic) +func (m *TLUpdateDraftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateDraftMessage.Marshal(b, m, deterministic) } -func (dst *TLCdnConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLCdnConfig.Merge(dst, src) +func (dst *TLUpdateDraftMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateDraftMessage.Merge(dst, src) } -func (m *TLCdnConfig) XXX_Size() int { - return xxx_messageInfo_TLCdnConfig.Size(m) +func (m *TLUpdateDraftMessage) XXX_Size() int { + return xxx_messageInfo_TLUpdateDraftMessage.Size(m) } -func (m *TLCdnConfig) XXX_DiscardUnknown() { - xxx_messageInfo_TLCdnConfig.DiscardUnknown(m) +func (m *TLUpdateDraftMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateDraftMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLCdnConfig proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateDraftMessage proto.InternalMessageInfo -func (m *TLCdnConfig) GetData2() *CdnConfig_Data { +func (m *TLUpdateDraftMessage) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// auth_SentCode <-- -// + TL_auth_sentCode -// -type Auth_SentCode_Data struct { - PhoneRegistered bool `protobuf:"varint,1,opt,name=phone_registered,json=phoneRegistered,proto3" json:"phone_registered,omitempty"` - Type *Auth_SentCodeType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - PhoneCodeHash string `protobuf:"bytes,3,opt,name=phone_code_hash,json=phoneCodeHash,proto3" json:"phone_code_hash,omitempty"` - NextType *Auth_CodeType `protobuf:"bytes,4,opt,name=next_type,json=nextType,proto3" json:"next_type,omitempty"` - Timeout int32 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` - TermsOfService *Help_TermsOfService `protobuf:"bytes,6,opt,name=terms_of_service,json=termsOfService,proto3" json:"terms_of_service,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateReadFeaturedStickers#571d2742 = Update; +type TLUpdateReadFeaturedStickers struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_SentCode_Data) Reset() { *m = Auth_SentCode_Data{} } -func (m *Auth_SentCode_Data) String() string { return proto.CompactTextString(m) } -func (*Auth_SentCode_Data) ProtoMessage() {} -func (*Auth_SentCode_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{862} +func (m *TLUpdateReadFeaturedStickers) Reset() { *m = TLUpdateReadFeaturedStickers{} } +func (m *TLUpdateReadFeaturedStickers) String() string { return proto.CompactTextString(m) } +func (*TLUpdateReadFeaturedStickers) ProtoMessage() {} +func (*TLUpdateReadFeaturedStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{802} } -func (m *Auth_SentCode_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_SentCode_Data.Unmarshal(m, b) +func (m *TLUpdateReadFeaturedStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateReadFeaturedStickers.Unmarshal(m, b) } -func (m *Auth_SentCode_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_SentCode_Data.Marshal(b, m, deterministic) +func (m *TLUpdateReadFeaturedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateReadFeaturedStickers.Marshal(b, m, deterministic) } -func (dst *Auth_SentCode_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_SentCode_Data.Merge(dst, src) +func (dst *TLUpdateReadFeaturedStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateReadFeaturedStickers.Merge(dst, src) } -func (m *Auth_SentCode_Data) XXX_Size() int { - return xxx_messageInfo_Auth_SentCode_Data.Size(m) +func (m *TLUpdateReadFeaturedStickers) XXX_Size() int { + return xxx_messageInfo_TLUpdateReadFeaturedStickers.Size(m) } -func (m *Auth_SentCode_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_SentCode_Data.DiscardUnknown(m) +func (m *TLUpdateReadFeaturedStickers) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateReadFeaturedStickers.DiscardUnknown(m) } -var xxx_messageInfo_Auth_SentCode_Data proto.InternalMessageInfo - -func (m *Auth_SentCode_Data) GetPhoneRegistered() bool { - if m != nil { - return m.PhoneRegistered - } - return false -} +var xxx_messageInfo_TLUpdateReadFeaturedStickers proto.InternalMessageInfo -func (m *Auth_SentCode_Data) GetType() *Auth_SentCodeType { +func (m *TLUpdateReadFeaturedStickers) GetData2() *Update_Data { if m != nil { - return m.Type + return m.Data2 } return nil } -func (m *Auth_SentCode_Data) GetPhoneCodeHash() string { - if m != nil { - return m.PhoneCodeHash - } - return "" +// updateRecentStickers#9a422c20 = Update; +type TLUpdateRecentStickers struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_SentCode_Data) GetNextType() *Auth_CodeType { - if m != nil { - return m.NextType - } - return nil +func (m *TLUpdateRecentStickers) Reset() { *m = TLUpdateRecentStickers{} } +func (m *TLUpdateRecentStickers) String() string { return proto.CompactTextString(m) } +func (*TLUpdateRecentStickers) ProtoMessage() {} +func (*TLUpdateRecentStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{803} } - -func (m *Auth_SentCode_Data) GetTimeout() int32 { - if m != nil { - return m.Timeout - } - return 0 +func (m *TLUpdateRecentStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateRecentStickers.Unmarshal(m, b) +} +func (m *TLUpdateRecentStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateRecentStickers.Marshal(b, m, deterministic) +} +func (dst *TLUpdateRecentStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateRecentStickers.Merge(dst, src) +} +func (m *TLUpdateRecentStickers) XXX_Size() int { + return xxx_messageInfo_TLUpdateRecentStickers.Size(m) +} +func (m *TLUpdateRecentStickers) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateRecentStickers.DiscardUnknown(m) } -func (m *Auth_SentCode_Data) GetTermsOfService() *Help_TermsOfService { +var xxx_messageInfo_TLUpdateRecentStickers proto.InternalMessageInfo + +func (m *TLUpdateRecentStickers) GetData2() *Update_Data { if m != nil { - return m.TermsOfService + return m.Data2 } return nil } -type Auth_SentCode struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Auth_SentCode_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateConfig#a229dd06 = Update; +type TLUpdateConfig struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_SentCode) Reset() { *m = Auth_SentCode{} } -func (m *Auth_SentCode) String() string { return proto.CompactTextString(m) } -func (*Auth_SentCode) ProtoMessage() {} -func (*Auth_SentCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{863} +func (m *TLUpdateConfig) Reset() { *m = TLUpdateConfig{} } +func (m *TLUpdateConfig) String() string { return proto.CompactTextString(m) } +func (*TLUpdateConfig) ProtoMessage() {} +func (*TLUpdateConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{804} } -func (m *Auth_SentCode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_SentCode.Unmarshal(m, b) +func (m *TLUpdateConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateConfig.Unmarshal(m, b) } -func (m *Auth_SentCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_SentCode.Marshal(b, m, deterministic) +func (m *TLUpdateConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateConfig.Marshal(b, m, deterministic) } -func (dst *Auth_SentCode) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_SentCode.Merge(dst, src) +func (dst *TLUpdateConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateConfig.Merge(dst, src) } -func (m *Auth_SentCode) XXX_Size() int { - return xxx_messageInfo_Auth_SentCode.Size(m) +func (m *TLUpdateConfig) XXX_Size() int { + return xxx_messageInfo_TLUpdateConfig.Size(m) } -func (m *Auth_SentCode) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_SentCode.DiscardUnknown(m) +func (m *TLUpdateConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateConfig.DiscardUnknown(m) } -var xxx_messageInfo_Auth_SentCode proto.InternalMessageInfo - -func (m *Auth_SentCode) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdateConfig proto.InternalMessageInfo -func (m *Auth_SentCode) GetData2() *Auth_SentCode_Data { +func (m *TLUpdateConfig) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// auth.sentCode#38faab5f flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int terms_of_service:flags.3?help.TermsOfService = auth.SentCode; -type TLAuthSentCode struct { - Data2 *Auth_SentCode_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updatePtsChanged#3354678f = Update; +type TLUpdatePtsChanged struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAuthSentCode) Reset() { *m = TLAuthSentCode{} } -func (m *TLAuthSentCode) String() string { return proto.CompactTextString(m) } -func (*TLAuthSentCode) ProtoMessage() {} -func (*TLAuthSentCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{864} +func (m *TLUpdatePtsChanged) Reset() { *m = TLUpdatePtsChanged{} } +func (m *TLUpdatePtsChanged) String() string { return proto.CompactTextString(m) } +func (*TLUpdatePtsChanged) ProtoMessage() {} +func (*TLUpdatePtsChanged) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{805} } -func (m *TLAuthSentCode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthSentCode.Unmarshal(m, b) +func (m *TLUpdatePtsChanged) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatePtsChanged.Unmarshal(m, b) } -func (m *TLAuthSentCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthSentCode.Marshal(b, m, deterministic) +func (m *TLUpdatePtsChanged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatePtsChanged.Marshal(b, m, deterministic) } -func (dst *TLAuthSentCode) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthSentCode.Merge(dst, src) +func (dst *TLUpdatePtsChanged) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatePtsChanged.Merge(dst, src) } -func (m *TLAuthSentCode) XXX_Size() int { - return xxx_messageInfo_TLAuthSentCode.Size(m) +func (m *TLUpdatePtsChanged) XXX_Size() int { + return xxx_messageInfo_TLUpdatePtsChanged.Size(m) } -func (m *TLAuthSentCode) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthSentCode.DiscardUnknown(m) +func (m *TLUpdatePtsChanged) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatePtsChanged.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthSentCode proto.InternalMessageInfo +var xxx_messageInfo_TLUpdatePtsChanged proto.InternalMessageInfo -func (m *TLAuthSentCode) GetData2() *Auth_SentCode_Data { +func (m *TLUpdatePtsChanged) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// help_TermsOfService <-- -// + TL_help_termsOfService -// -type Help_TermsOfService_Data struct { - Popup bool `protobuf:"varint,1,opt,name=popup,proto3" json:"popup,omitempty"` - Id *DataJSON `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` - Entities []*MessageEntity `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"` - MinAgeConfirm int32 `protobuf:"varint,5,opt,name=min_age_confirm,json=minAgeConfirm,proto3" json:"min_age_confirm,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update; +type TLUpdateChannelWebPage struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_TermsOfService_Data) Reset() { *m = Help_TermsOfService_Data{} } -func (m *Help_TermsOfService_Data) String() string { return proto.CompactTextString(m) } -func (*Help_TermsOfService_Data) ProtoMessage() {} -func (*Help_TermsOfService_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{865} +func (m *TLUpdateChannelWebPage) Reset() { *m = TLUpdateChannelWebPage{} } +func (m *TLUpdateChannelWebPage) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChannelWebPage) ProtoMessage() {} +func (*TLUpdateChannelWebPage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{806} } -func (m *Help_TermsOfService_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_TermsOfService_Data.Unmarshal(m, b) +func (m *TLUpdateChannelWebPage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChannelWebPage.Unmarshal(m, b) } -func (m *Help_TermsOfService_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_TermsOfService_Data.Marshal(b, m, deterministic) +func (m *TLUpdateChannelWebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChannelWebPage.Marshal(b, m, deterministic) } -func (dst *Help_TermsOfService_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_TermsOfService_Data.Merge(dst, src) +func (dst *TLUpdateChannelWebPage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChannelWebPage.Merge(dst, src) } -func (m *Help_TermsOfService_Data) XXX_Size() int { - return xxx_messageInfo_Help_TermsOfService_Data.Size(m) +func (m *TLUpdateChannelWebPage) XXX_Size() int { + return xxx_messageInfo_TLUpdateChannelWebPage.Size(m) } -func (m *Help_TermsOfService_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_TermsOfService_Data.DiscardUnknown(m) +func (m *TLUpdateChannelWebPage) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChannelWebPage.DiscardUnknown(m) } -var xxx_messageInfo_Help_TermsOfService_Data proto.InternalMessageInfo - -func (m *Help_TermsOfService_Data) GetPopup() bool { - if m != nil { - return m.Popup - } - return false -} +var xxx_messageInfo_TLUpdateChannelWebPage proto.InternalMessageInfo -func (m *Help_TermsOfService_Data) GetId() *DataJSON { +func (m *TLUpdateChannelWebPage) GetData2() *Update_Data { if m != nil { - return m.Id + return m.Data2 } return nil } -func (m *Help_TermsOfService_Data) GetText() string { - if m != nil { - return m.Text - } - return "" +// updateDialogPinned#19d27f3c flags:# pinned:flags.0?true peer:DialogPeer = Update; +type TLUpdateDialogPinned struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_TermsOfService_Data) GetEntities() []*MessageEntity { - if m != nil { - return m.Entities - } - return nil +func (m *TLUpdateDialogPinned) Reset() { *m = TLUpdateDialogPinned{} } +func (m *TLUpdateDialogPinned) String() string { return proto.CompactTextString(m) } +func (*TLUpdateDialogPinned) ProtoMessage() {} +func (*TLUpdateDialogPinned) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{807} +} +func (m *TLUpdateDialogPinned) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateDialogPinned.Unmarshal(m, b) +} +func (m *TLUpdateDialogPinned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateDialogPinned.Marshal(b, m, deterministic) +} +func (dst *TLUpdateDialogPinned) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateDialogPinned.Merge(dst, src) +} +func (m *TLUpdateDialogPinned) XXX_Size() int { + return xxx_messageInfo_TLUpdateDialogPinned.Size(m) +} +func (m *TLUpdateDialogPinned) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateDialogPinned.DiscardUnknown(m) } -func (m *Help_TermsOfService_Data) GetMinAgeConfirm() int32 { +var xxx_messageInfo_TLUpdateDialogPinned proto.InternalMessageInfo + +func (m *TLUpdateDialogPinned) GetData2() *Update_Data { if m != nil { - return m.MinAgeConfirm + return m.Data2 } - return 0 + return nil } -type Help_TermsOfService struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_TermsOfService_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updatePinnedDialogs#ea4cb65b flags:# order:flags.0?Vector = Update; +type TLUpdatePinnedDialogs struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_TermsOfService) Reset() { *m = Help_TermsOfService{} } -func (m *Help_TermsOfService) String() string { return proto.CompactTextString(m) } -func (*Help_TermsOfService) ProtoMessage() {} -func (*Help_TermsOfService) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{866} +func (m *TLUpdatePinnedDialogs) Reset() { *m = TLUpdatePinnedDialogs{} } +func (m *TLUpdatePinnedDialogs) String() string { return proto.CompactTextString(m) } +func (*TLUpdatePinnedDialogs) ProtoMessage() {} +func (*TLUpdatePinnedDialogs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{808} } -func (m *Help_TermsOfService) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_TermsOfService.Unmarshal(m, b) +func (m *TLUpdatePinnedDialogs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatePinnedDialogs.Unmarshal(m, b) } -func (m *Help_TermsOfService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_TermsOfService.Marshal(b, m, deterministic) +func (m *TLUpdatePinnedDialogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatePinnedDialogs.Marshal(b, m, deterministic) } -func (dst *Help_TermsOfService) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_TermsOfService.Merge(dst, src) +func (dst *TLUpdatePinnedDialogs) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatePinnedDialogs.Merge(dst, src) } -func (m *Help_TermsOfService) XXX_Size() int { - return xxx_messageInfo_Help_TermsOfService.Size(m) +func (m *TLUpdatePinnedDialogs) XXX_Size() int { + return xxx_messageInfo_TLUpdatePinnedDialogs.Size(m) } -func (m *Help_TermsOfService) XXX_DiscardUnknown() { - xxx_messageInfo_Help_TermsOfService.DiscardUnknown(m) +func (m *TLUpdatePinnedDialogs) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatePinnedDialogs.DiscardUnknown(m) } -var xxx_messageInfo_Help_TermsOfService proto.InternalMessageInfo - -func (m *Help_TermsOfService) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLUpdatePinnedDialogs proto.InternalMessageInfo -func (m *Help_TermsOfService) GetData2() *Help_TermsOfService_Data { +func (m *TLUpdatePinnedDialogs) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService; -type TLHelpTermsOfService struct { - Data2 *Help_TermsOfService_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; +type TLUpdateBotWebhookJSON struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpTermsOfService) Reset() { *m = TLHelpTermsOfService{} } -func (m *TLHelpTermsOfService) String() string { return proto.CompactTextString(m) } -func (*TLHelpTermsOfService) ProtoMessage() {} -func (*TLHelpTermsOfService) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{867} +func (m *TLUpdateBotWebhookJSON) Reset() { *m = TLUpdateBotWebhookJSON{} } +func (m *TLUpdateBotWebhookJSON) String() string { return proto.CompactTextString(m) } +func (*TLUpdateBotWebhookJSON) ProtoMessage() {} +func (*TLUpdateBotWebhookJSON) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{809} } -func (m *TLHelpTermsOfService) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpTermsOfService.Unmarshal(m, b) +func (m *TLUpdateBotWebhookJSON) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateBotWebhookJSON.Unmarshal(m, b) } -func (m *TLHelpTermsOfService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpTermsOfService.Marshal(b, m, deterministic) +func (m *TLUpdateBotWebhookJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateBotWebhookJSON.Marshal(b, m, deterministic) } -func (dst *TLHelpTermsOfService) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpTermsOfService.Merge(dst, src) +func (dst *TLUpdateBotWebhookJSON) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateBotWebhookJSON.Merge(dst, src) } -func (m *TLHelpTermsOfService) XXX_Size() int { - return xxx_messageInfo_TLHelpTermsOfService.Size(m) +func (m *TLUpdateBotWebhookJSON) XXX_Size() int { + return xxx_messageInfo_TLUpdateBotWebhookJSON.Size(m) } -func (m *TLHelpTermsOfService) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpTermsOfService.DiscardUnknown(m) +func (m *TLUpdateBotWebhookJSON) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateBotWebhookJSON.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpTermsOfService proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateBotWebhookJSON proto.InternalMessageInfo -func (m *TLHelpTermsOfService) GetData2() *Help_TermsOfService_Data { +func (m *TLUpdateBotWebhookJSON) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// TopPeerCategory <-- -// + TL_topPeerCategoryBotsPM -// + TL_topPeerCategoryBotsInline -// + TL_topPeerCategoryCorrespondents -// + TL_topPeerCategoryGroups -// + TL_topPeerCategoryChannels -// + TL_topPeerCategoryPhoneCalls -// -type TopPeerCategory_Data struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TopPeerCategory_Data) Reset() { *m = TopPeerCategory_Data{} } -func (m *TopPeerCategory_Data) String() string { return proto.CompactTextString(m) } -func (*TopPeerCategory_Data) ProtoMessage() {} -func (*TopPeerCategory_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{868} +// updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; +type TLUpdateBotWebhookJSONQuery struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TopPeerCategory_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TopPeerCategory_Data.Unmarshal(m, b) + +func (m *TLUpdateBotWebhookJSONQuery) Reset() { *m = TLUpdateBotWebhookJSONQuery{} } +func (m *TLUpdateBotWebhookJSONQuery) String() string { return proto.CompactTextString(m) } +func (*TLUpdateBotWebhookJSONQuery) ProtoMessage() {} +func (*TLUpdateBotWebhookJSONQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{810} } -func (m *TopPeerCategory_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TopPeerCategory_Data.Marshal(b, m, deterministic) +func (m *TLUpdateBotWebhookJSONQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateBotWebhookJSONQuery.Unmarshal(m, b) } -func (dst *TopPeerCategory_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_TopPeerCategory_Data.Merge(dst, src) +func (m *TLUpdateBotWebhookJSONQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateBotWebhookJSONQuery.Marshal(b, m, deterministic) } -func (m *TopPeerCategory_Data) XXX_Size() int { - return xxx_messageInfo_TopPeerCategory_Data.Size(m) +func (dst *TLUpdateBotWebhookJSONQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateBotWebhookJSONQuery.Merge(dst, src) } -func (m *TopPeerCategory_Data) XXX_DiscardUnknown() { - xxx_messageInfo_TopPeerCategory_Data.DiscardUnknown(m) +func (m *TLUpdateBotWebhookJSONQuery) XXX_Size() int { + return xxx_messageInfo_TLUpdateBotWebhookJSONQuery.Size(m) +} +func (m *TLUpdateBotWebhookJSONQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateBotWebhookJSONQuery.DiscardUnknown(m) } -var xxx_messageInfo_TopPeerCategory_Data proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateBotWebhookJSONQuery proto.InternalMessageInfo -type TopPeerCategory struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *TLUpdateBotWebhookJSONQuery) GetData2() *Update_Data { + if m != nil { + return m.Data2 + } + return nil } -func (m *TopPeerCategory) Reset() { *m = TopPeerCategory{} } -func (m *TopPeerCategory) String() string { return proto.CompactTextString(m) } -func (*TopPeerCategory) ProtoMessage() {} -func (*TopPeerCategory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{869} +// updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; +type TLUpdateBotShippingQuery struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TopPeerCategory) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TopPeerCategory.Unmarshal(m, b) + +func (m *TLUpdateBotShippingQuery) Reset() { *m = TLUpdateBotShippingQuery{} } +func (m *TLUpdateBotShippingQuery) String() string { return proto.CompactTextString(m) } +func (*TLUpdateBotShippingQuery) ProtoMessage() {} +func (*TLUpdateBotShippingQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{811} } -func (m *TopPeerCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TopPeerCategory.Marshal(b, m, deterministic) +func (m *TLUpdateBotShippingQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateBotShippingQuery.Unmarshal(m, b) } -func (dst *TopPeerCategory) XXX_Merge(src proto.Message) { - xxx_messageInfo_TopPeerCategory.Merge(dst, src) +func (m *TLUpdateBotShippingQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateBotShippingQuery.Marshal(b, m, deterministic) } -func (m *TopPeerCategory) XXX_Size() int { - return xxx_messageInfo_TopPeerCategory.Size(m) +func (dst *TLUpdateBotShippingQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateBotShippingQuery.Merge(dst, src) } -func (m *TopPeerCategory) XXX_DiscardUnknown() { - xxx_messageInfo_TopPeerCategory.DiscardUnknown(m) +func (m *TLUpdateBotShippingQuery) XXX_Size() int { + return xxx_messageInfo_TLUpdateBotShippingQuery.Size(m) } - -var xxx_messageInfo_TopPeerCategory proto.InternalMessageInfo - -func (m *TopPeerCategory) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN +func (m *TLUpdateBotShippingQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateBotShippingQuery.DiscardUnknown(m) } -func (m *TopPeerCategory) GetData2() *TopPeerCategory_Data { +var xxx_messageInfo_TLUpdateBotShippingQuery proto.InternalMessageInfo + +func (m *TLUpdateBotShippingQuery) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// topPeerCategoryBotsPM#ab661b5b = TopPeerCategory; -type TLTopPeerCategoryBotsPM struct { - Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; +type TLUpdateBotPrecheckoutQuery struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTopPeerCategoryBotsPM) Reset() { *m = TLTopPeerCategoryBotsPM{} } -func (m *TLTopPeerCategoryBotsPM) String() string { return proto.CompactTextString(m) } -func (*TLTopPeerCategoryBotsPM) ProtoMessage() {} -func (*TLTopPeerCategoryBotsPM) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{870} +func (m *TLUpdateBotPrecheckoutQuery) Reset() { *m = TLUpdateBotPrecheckoutQuery{} } +func (m *TLUpdateBotPrecheckoutQuery) String() string { return proto.CompactTextString(m) } +func (*TLUpdateBotPrecheckoutQuery) ProtoMessage() {} +func (*TLUpdateBotPrecheckoutQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{812} } -func (m *TLTopPeerCategoryBotsPM) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTopPeerCategoryBotsPM.Unmarshal(m, b) +func (m *TLUpdateBotPrecheckoutQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateBotPrecheckoutQuery.Unmarshal(m, b) } -func (m *TLTopPeerCategoryBotsPM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTopPeerCategoryBotsPM.Marshal(b, m, deterministic) +func (m *TLUpdateBotPrecheckoutQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateBotPrecheckoutQuery.Marshal(b, m, deterministic) } -func (dst *TLTopPeerCategoryBotsPM) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTopPeerCategoryBotsPM.Merge(dst, src) +func (dst *TLUpdateBotPrecheckoutQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateBotPrecheckoutQuery.Merge(dst, src) } -func (m *TLTopPeerCategoryBotsPM) XXX_Size() int { - return xxx_messageInfo_TLTopPeerCategoryBotsPM.Size(m) +func (m *TLUpdateBotPrecheckoutQuery) XXX_Size() int { + return xxx_messageInfo_TLUpdateBotPrecheckoutQuery.Size(m) } -func (m *TLTopPeerCategoryBotsPM) XXX_DiscardUnknown() { - xxx_messageInfo_TLTopPeerCategoryBotsPM.DiscardUnknown(m) +func (m *TLUpdateBotPrecheckoutQuery) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateBotPrecheckoutQuery.DiscardUnknown(m) } -var xxx_messageInfo_TLTopPeerCategoryBotsPM proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateBotPrecheckoutQuery proto.InternalMessageInfo -func (m *TLTopPeerCategoryBotsPM) GetData2() *TopPeerCategory_Data { +func (m *TLUpdateBotPrecheckoutQuery) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// topPeerCategoryBotsInline#148677e2 = TopPeerCategory; -type TLTopPeerCategoryBotsInline struct { - Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update; +type TLUpdatePhoneCall struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTopPeerCategoryBotsInline) Reset() { *m = TLTopPeerCategoryBotsInline{} } -func (m *TLTopPeerCategoryBotsInline) String() string { return proto.CompactTextString(m) } -func (*TLTopPeerCategoryBotsInline) ProtoMessage() {} -func (*TLTopPeerCategoryBotsInline) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{871} +func (m *TLUpdatePhoneCall) Reset() { *m = TLUpdatePhoneCall{} } +func (m *TLUpdatePhoneCall) String() string { return proto.CompactTextString(m) } +func (*TLUpdatePhoneCall) ProtoMessage() {} +func (*TLUpdatePhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{813} } -func (m *TLTopPeerCategoryBotsInline) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTopPeerCategoryBotsInline.Unmarshal(m, b) +func (m *TLUpdatePhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdatePhoneCall.Unmarshal(m, b) } -func (m *TLTopPeerCategoryBotsInline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTopPeerCategoryBotsInline.Marshal(b, m, deterministic) +func (m *TLUpdatePhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdatePhoneCall.Marshal(b, m, deterministic) } -func (dst *TLTopPeerCategoryBotsInline) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTopPeerCategoryBotsInline.Merge(dst, src) +func (dst *TLUpdatePhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdatePhoneCall.Merge(dst, src) } -func (m *TLTopPeerCategoryBotsInline) XXX_Size() int { - return xxx_messageInfo_TLTopPeerCategoryBotsInline.Size(m) +func (m *TLUpdatePhoneCall) XXX_Size() int { + return xxx_messageInfo_TLUpdatePhoneCall.Size(m) } -func (m *TLTopPeerCategoryBotsInline) XXX_DiscardUnknown() { - xxx_messageInfo_TLTopPeerCategoryBotsInline.DiscardUnknown(m) +func (m *TLUpdatePhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdatePhoneCall.DiscardUnknown(m) } -var xxx_messageInfo_TLTopPeerCategoryBotsInline proto.InternalMessageInfo +var xxx_messageInfo_TLUpdatePhoneCall proto.InternalMessageInfo -func (m *TLTopPeerCategoryBotsInline) GetData2() *TopPeerCategory_Data { +func (m *TLUpdatePhoneCall) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// topPeerCategoryCorrespondents#637b7ed = TopPeerCategory; -type TLTopPeerCategoryCorrespondents struct { - Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateLangPackTooLong#10c2404b = Update; +type TLUpdateLangPackTooLong struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTopPeerCategoryCorrespondents) Reset() { *m = TLTopPeerCategoryCorrespondents{} } -func (m *TLTopPeerCategoryCorrespondents) String() string { return proto.CompactTextString(m) } -func (*TLTopPeerCategoryCorrespondents) ProtoMessage() {} -func (*TLTopPeerCategoryCorrespondents) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{872} +func (m *TLUpdateLangPackTooLong) Reset() { *m = TLUpdateLangPackTooLong{} } +func (m *TLUpdateLangPackTooLong) String() string { return proto.CompactTextString(m) } +func (*TLUpdateLangPackTooLong) ProtoMessage() {} +func (*TLUpdateLangPackTooLong) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{814} } -func (m *TLTopPeerCategoryCorrespondents) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTopPeerCategoryCorrespondents.Unmarshal(m, b) +func (m *TLUpdateLangPackTooLong) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateLangPackTooLong.Unmarshal(m, b) } -func (m *TLTopPeerCategoryCorrespondents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTopPeerCategoryCorrespondents.Marshal(b, m, deterministic) +func (m *TLUpdateLangPackTooLong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateLangPackTooLong.Marshal(b, m, deterministic) } -func (dst *TLTopPeerCategoryCorrespondents) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTopPeerCategoryCorrespondents.Merge(dst, src) +func (dst *TLUpdateLangPackTooLong) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateLangPackTooLong.Merge(dst, src) } -func (m *TLTopPeerCategoryCorrespondents) XXX_Size() int { - return xxx_messageInfo_TLTopPeerCategoryCorrespondents.Size(m) +func (m *TLUpdateLangPackTooLong) XXX_Size() int { + return xxx_messageInfo_TLUpdateLangPackTooLong.Size(m) } -func (m *TLTopPeerCategoryCorrespondents) XXX_DiscardUnknown() { - xxx_messageInfo_TLTopPeerCategoryCorrespondents.DiscardUnknown(m) +func (m *TLUpdateLangPackTooLong) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateLangPackTooLong.DiscardUnknown(m) } -var xxx_messageInfo_TLTopPeerCategoryCorrespondents proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateLangPackTooLong proto.InternalMessageInfo -func (m *TLTopPeerCategoryCorrespondents) GetData2() *TopPeerCategory_Data { +func (m *TLUpdateLangPackTooLong) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// topPeerCategoryGroups#bd17a14a = TopPeerCategory; -type TLTopPeerCategoryGroups struct { - Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateLangPack#56022f4d difference:LangPackDifference = Update; +type TLUpdateLangPack struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTopPeerCategoryGroups) Reset() { *m = TLTopPeerCategoryGroups{} } -func (m *TLTopPeerCategoryGroups) String() string { return proto.CompactTextString(m) } -func (*TLTopPeerCategoryGroups) ProtoMessage() {} -func (*TLTopPeerCategoryGroups) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{873} +func (m *TLUpdateLangPack) Reset() { *m = TLUpdateLangPack{} } +func (m *TLUpdateLangPack) String() string { return proto.CompactTextString(m) } +func (*TLUpdateLangPack) ProtoMessage() {} +func (*TLUpdateLangPack) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{815} } -func (m *TLTopPeerCategoryGroups) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTopPeerCategoryGroups.Unmarshal(m, b) +func (m *TLUpdateLangPack) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateLangPack.Unmarshal(m, b) } -func (m *TLTopPeerCategoryGroups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTopPeerCategoryGroups.Marshal(b, m, deterministic) +func (m *TLUpdateLangPack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateLangPack.Marshal(b, m, deterministic) } -func (dst *TLTopPeerCategoryGroups) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTopPeerCategoryGroups.Merge(dst, src) +func (dst *TLUpdateLangPack) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateLangPack.Merge(dst, src) } -func (m *TLTopPeerCategoryGroups) XXX_Size() int { - return xxx_messageInfo_TLTopPeerCategoryGroups.Size(m) +func (m *TLUpdateLangPack) XXX_Size() int { + return xxx_messageInfo_TLUpdateLangPack.Size(m) } -func (m *TLTopPeerCategoryGroups) XXX_DiscardUnknown() { - xxx_messageInfo_TLTopPeerCategoryGroups.DiscardUnknown(m) +func (m *TLUpdateLangPack) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateLangPack.DiscardUnknown(m) } -var xxx_messageInfo_TLTopPeerCategoryGroups proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateLangPack proto.InternalMessageInfo -func (m *TLTopPeerCategoryGroups) GetData2() *TopPeerCategory_Data { +func (m *TLUpdateLangPack) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// topPeerCategoryChannels#161d9628 = TopPeerCategory; -type TLTopPeerCategoryChannels struct { - Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateFavedStickers#e511996d = Update; +type TLUpdateFavedStickers struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTopPeerCategoryChannels) Reset() { *m = TLTopPeerCategoryChannels{} } -func (m *TLTopPeerCategoryChannels) String() string { return proto.CompactTextString(m) } -func (*TLTopPeerCategoryChannels) ProtoMessage() {} -func (*TLTopPeerCategoryChannels) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{874} +func (m *TLUpdateFavedStickers) Reset() { *m = TLUpdateFavedStickers{} } +func (m *TLUpdateFavedStickers) String() string { return proto.CompactTextString(m) } +func (*TLUpdateFavedStickers) ProtoMessage() {} +func (*TLUpdateFavedStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{816} } -func (m *TLTopPeerCategoryChannels) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTopPeerCategoryChannels.Unmarshal(m, b) +func (m *TLUpdateFavedStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateFavedStickers.Unmarshal(m, b) } -func (m *TLTopPeerCategoryChannels) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTopPeerCategoryChannels.Marshal(b, m, deterministic) +func (m *TLUpdateFavedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateFavedStickers.Marshal(b, m, deterministic) } -func (dst *TLTopPeerCategoryChannels) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTopPeerCategoryChannels.Merge(dst, src) +func (dst *TLUpdateFavedStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateFavedStickers.Merge(dst, src) } -func (m *TLTopPeerCategoryChannels) XXX_Size() int { - return xxx_messageInfo_TLTopPeerCategoryChannels.Size(m) +func (m *TLUpdateFavedStickers) XXX_Size() int { + return xxx_messageInfo_TLUpdateFavedStickers.Size(m) } -func (m *TLTopPeerCategoryChannels) XXX_DiscardUnknown() { - xxx_messageInfo_TLTopPeerCategoryChannels.DiscardUnknown(m) +func (m *TLUpdateFavedStickers) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateFavedStickers.DiscardUnknown(m) } -var xxx_messageInfo_TLTopPeerCategoryChannels proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateFavedStickers proto.InternalMessageInfo -func (m *TLTopPeerCategoryChannels) GetData2() *TopPeerCategory_Data { +func (m *TLUpdateFavedStickers) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory; -type TLTopPeerCategoryPhoneCalls struct { - Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector = Update; +type TLUpdateChannelReadMessagesContents struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLTopPeerCategoryPhoneCalls) Reset() { *m = TLTopPeerCategoryPhoneCalls{} } -func (m *TLTopPeerCategoryPhoneCalls) String() string { return proto.CompactTextString(m) } -func (*TLTopPeerCategoryPhoneCalls) ProtoMessage() {} -func (*TLTopPeerCategoryPhoneCalls) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{875} +func (m *TLUpdateChannelReadMessagesContents) Reset() { *m = TLUpdateChannelReadMessagesContents{} } +func (m *TLUpdateChannelReadMessagesContents) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChannelReadMessagesContents) ProtoMessage() {} +func (*TLUpdateChannelReadMessagesContents) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{817} } -func (m *TLTopPeerCategoryPhoneCalls) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLTopPeerCategoryPhoneCalls.Unmarshal(m, b) +func (m *TLUpdateChannelReadMessagesContents) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChannelReadMessagesContents.Unmarshal(m, b) } -func (m *TLTopPeerCategoryPhoneCalls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLTopPeerCategoryPhoneCalls.Marshal(b, m, deterministic) +func (m *TLUpdateChannelReadMessagesContents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChannelReadMessagesContents.Marshal(b, m, deterministic) } -func (dst *TLTopPeerCategoryPhoneCalls) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLTopPeerCategoryPhoneCalls.Merge(dst, src) +func (dst *TLUpdateChannelReadMessagesContents) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChannelReadMessagesContents.Merge(dst, src) } -func (m *TLTopPeerCategoryPhoneCalls) XXX_Size() int { - return xxx_messageInfo_TLTopPeerCategoryPhoneCalls.Size(m) +func (m *TLUpdateChannelReadMessagesContents) XXX_Size() int { + return xxx_messageInfo_TLUpdateChannelReadMessagesContents.Size(m) } -func (m *TLTopPeerCategoryPhoneCalls) XXX_DiscardUnknown() { - xxx_messageInfo_TLTopPeerCategoryPhoneCalls.DiscardUnknown(m) +func (m *TLUpdateChannelReadMessagesContents) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChannelReadMessagesContents.DiscardUnknown(m) } -var xxx_messageInfo_TLTopPeerCategoryPhoneCalls proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateChannelReadMessagesContents proto.InternalMessageInfo -func (m *TLTopPeerCategoryPhoneCalls) GetData2() *TopPeerCategory_Data { +func (m *TLUpdateChannelReadMessagesContents) GetData2() *Update_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ChannelAdminLogEventsFilter <-- -// + TL_channelAdminLogEventsFilter -// -type ChannelAdminLogEventsFilter_Data struct { - Join bool `protobuf:"varint,1,opt,name=join,proto3" json:"join,omitempty"` - Leave bool `protobuf:"varint,2,opt,name=leave,proto3" json:"leave,omitempty"` - Invite bool `protobuf:"varint,3,opt,name=invite,proto3" json:"invite,omitempty"` - Ban bool `protobuf:"varint,4,opt,name=ban,proto3" json:"ban,omitempty"` - Unban bool `protobuf:"varint,5,opt,name=unban,proto3" json:"unban,omitempty"` - Kick bool `protobuf:"varint,6,opt,name=kick,proto3" json:"kick,omitempty"` - Unkick bool `protobuf:"varint,7,opt,name=unkick,proto3" json:"unkick,omitempty"` - Promote bool `protobuf:"varint,8,opt,name=promote,proto3" json:"promote,omitempty"` - Demote bool `protobuf:"varint,9,opt,name=demote,proto3" json:"demote,omitempty"` - Info bool `protobuf:"varint,10,opt,name=info,proto3" json:"info,omitempty"` - Settings bool `protobuf:"varint,11,opt,name=settings,proto3" json:"settings,omitempty"` - Pinned bool `protobuf:"varint,12,opt,name=pinned,proto3" json:"pinned,omitempty"` - Edit bool `protobuf:"varint,13,opt,name=edit,proto3" json:"edit,omitempty"` - Delete bool `protobuf:"varint,14,opt,name=delete,proto3" json:"delete,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// updateContactsReset#7084a7be = Update; +type TLUpdateContactsReset struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEventsFilter_Data) Reset() { *m = ChannelAdminLogEventsFilter_Data{} } -func (m *ChannelAdminLogEventsFilter_Data) String() string { return proto.CompactTextString(m) } -func (*ChannelAdminLogEventsFilter_Data) ProtoMessage() {} -func (*ChannelAdminLogEventsFilter_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{876} +func (m *TLUpdateContactsReset) Reset() { *m = TLUpdateContactsReset{} } +func (m *TLUpdateContactsReset) String() string { return proto.CompactTextString(m) } +func (*TLUpdateContactsReset) ProtoMessage() {} +func (*TLUpdateContactsReset) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{818} } -func (m *ChannelAdminLogEventsFilter_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelAdminLogEventsFilter_Data.Unmarshal(m, b) +func (m *TLUpdateContactsReset) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateContactsReset.Unmarshal(m, b) } -func (m *ChannelAdminLogEventsFilter_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelAdminLogEventsFilter_Data.Marshal(b, m, deterministic) +func (m *TLUpdateContactsReset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateContactsReset.Marshal(b, m, deterministic) } -func (dst *ChannelAdminLogEventsFilter_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelAdminLogEventsFilter_Data.Merge(dst, src) +func (dst *TLUpdateContactsReset) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateContactsReset.Merge(dst, src) } -func (m *ChannelAdminLogEventsFilter_Data) XXX_Size() int { - return xxx_messageInfo_ChannelAdminLogEventsFilter_Data.Size(m) +func (m *TLUpdateContactsReset) XXX_Size() int { + return xxx_messageInfo_TLUpdateContactsReset.Size(m) } -func (m *ChannelAdminLogEventsFilter_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelAdminLogEventsFilter_Data.DiscardUnknown(m) +func (m *TLUpdateContactsReset) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateContactsReset.DiscardUnknown(m) } -var xxx_messageInfo_ChannelAdminLogEventsFilter_Data proto.InternalMessageInfo +var xxx_messageInfo_TLUpdateContactsReset proto.InternalMessageInfo -func (m *ChannelAdminLogEventsFilter_Data) GetJoin() bool { +func (m *TLUpdateContactsReset) GetData2() *Update_Data { if m != nil { - return m.Join + return m.Data2 } - return false + return nil } -func (m *ChannelAdminLogEventsFilter_Data) GetLeave() bool { - if m != nil { - return m.Leave - } - return false +// updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update; +type TLUpdateChannelAvailableMessages struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEventsFilter_Data) GetInvite() bool { - if m != nil { - return m.Invite - } - return false +func (m *TLUpdateChannelAvailableMessages) Reset() { *m = TLUpdateChannelAvailableMessages{} } +func (m *TLUpdateChannelAvailableMessages) String() string { return proto.CompactTextString(m) } +func (*TLUpdateChannelAvailableMessages) ProtoMessage() {} +func (*TLUpdateChannelAvailableMessages) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{819} } - -func (m *ChannelAdminLogEventsFilter_Data) GetBan() bool { - if m != nil { - return m.Ban - } - return false +func (m *TLUpdateChannelAvailableMessages) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateChannelAvailableMessages.Unmarshal(m, b) +} +func (m *TLUpdateChannelAvailableMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateChannelAvailableMessages.Marshal(b, m, deterministic) +} +func (dst *TLUpdateChannelAvailableMessages) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateChannelAvailableMessages.Merge(dst, src) +} +func (m *TLUpdateChannelAvailableMessages) XXX_Size() int { + return xxx_messageInfo_TLUpdateChannelAvailableMessages.Size(m) +} +func (m *TLUpdateChannelAvailableMessages) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateChannelAvailableMessages.DiscardUnknown(m) } -func (m *ChannelAdminLogEventsFilter_Data) GetUnban() bool { +var xxx_messageInfo_TLUpdateChannelAvailableMessages proto.InternalMessageInfo + +func (m *TLUpdateChannelAvailableMessages) GetData2() *Update_Data { if m != nil { - return m.Unban + return m.Data2 } - return false + return nil } -func (m *ChannelAdminLogEventsFilter_Data) GetKick() bool { - if m != nil { - return m.Kick - } - return false +// updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update; +type TLUpdateDialogUnreadMark struct { + Data2 *Update_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEventsFilter_Data) GetUnkick() bool { - if m != nil { - return m.Unkick - } - return false +func (m *TLUpdateDialogUnreadMark) Reset() { *m = TLUpdateDialogUnreadMark{} } +func (m *TLUpdateDialogUnreadMark) String() string { return proto.CompactTextString(m) } +func (*TLUpdateDialogUnreadMark) ProtoMessage() {} +func (*TLUpdateDialogUnreadMark) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{820} +} +func (m *TLUpdateDialogUnreadMark) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLUpdateDialogUnreadMark.Unmarshal(m, b) +} +func (m *TLUpdateDialogUnreadMark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLUpdateDialogUnreadMark.Marshal(b, m, deterministic) +} +func (dst *TLUpdateDialogUnreadMark) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLUpdateDialogUnreadMark.Merge(dst, src) +} +func (m *TLUpdateDialogUnreadMark) XXX_Size() int { + return xxx_messageInfo_TLUpdateDialogUnreadMark.Size(m) +} +func (m *TLUpdateDialogUnreadMark) XXX_DiscardUnknown() { + xxx_messageInfo_TLUpdateDialogUnreadMark.DiscardUnknown(m) } -func (m *ChannelAdminLogEventsFilter_Data) GetPromote() bool { +var xxx_messageInfo_TLUpdateDialogUnreadMark proto.InternalMessageInfo + +func (m *TLUpdateDialogUnreadMark) GetData2() *Update_Data { if m != nil { - return m.Promote + return m.Data2 } - return false + return nil } -func (m *ChannelAdminLogEventsFilter_Data) GetDemote() bool { - if m != nil { - return m.Demote - } - return false +// ///////////////////////////////////////////////////////////////////////////// +// payments_PaymentResult <-- +// + TL_payments_paymentResult +// + TL_payments_paymentVerficationNeeded +// +type Payments_PaymentResult_Data struct { + Updates *Updates `protobuf:"bytes,1,opt,name=updates,proto3" json:"updates,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEventsFilter_Data) GetInfo() bool { - if m != nil { - return m.Info - } - return false +func (m *Payments_PaymentResult_Data) Reset() { *m = Payments_PaymentResult_Data{} } +func (m *Payments_PaymentResult_Data) String() string { return proto.CompactTextString(m) } +func (*Payments_PaymentResult_Data) ProtoMessage() {} +func (*Payments_PaymentResult_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{821} } - -func (m *ChannelAdminLogEventsFilter_Data) GetSettings() bool { - if m != nil { - return m.Settings - } - return false +func (m *Payments_PaymentResult_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_PaymentResult_Data.Unmarshal(m, b) } - -func (m *ChannelAdminLogEventsFilter_Data) GetPinned() bool { - if m != nil { - return m.Pinned - } - return false +func (m *Payments_PaymentResult_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_PaymentResult_Data.Marshal(b, m, deterministic) +} +func (dst *Payments_PaymentResult_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_PaymentResult_Data.Merge(dst, src) +} +func (m *Payments_PaymentResult_Data) XXX_Size() int { + return xxx_messageInfo_Payments_PaymentResult_Data.Size(m) +} +func (m *Payments_PaymentResult_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_PaymentResult_Data.DiscardUnknown(m) } -func (m *ChannelAdminLogEventsFilter_Data) GetEdit() bool { +var xxx_messageInfo_Payments_PaymentResult_Data proto.InternalMessageInfo + +func (m *Payments_PaymentResult_Data) GetUpdates() *Updates { if m != nil { - return m.Edit + return m.Updates } - return false + return nil } -func (m *ChannelAdminLogEventsFilter_Data) GetDelete() bool { +func (m *Payments_PaymentResult_Data) GetUrl() string { if m != nil { - return m.Delete + return m.Url } - return false + return "" } -type ChannelAdminLogEventsFilter struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChannelAdminLogEventsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Payments_PaymentResult struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Payments_PaymentResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEventsFilter) Reset() { *m = ChannelAdminLogEventsFilter{} } -func (m *ChannelAdminLogEventsFilter) String() string { return proto.CompactTextString(m) } -func (*ChannelAdminLogEventsFilter) ProtoMessage() {} -func (*ChannelAdminLogEventsFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{877} +func (m *Payments_PaymentResult) Reset() { *m = Payments_PaymentResult{} } +func (m *Payments_PaymentResult) String() string { return proto.CompactTextString(m) } +func (*Payments_PaymentResult) ProtoMessage() {} +func (*Payments_PaymentResult) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{822} } -func (m *ChannelAdminLogEventsFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelAdminLogEventsFilter.Unmarshal(m, b) +func (m *Payments_PaymentResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_PaymentResult.Unmarshal(m, b) } -func (m *ChannelAdminLogEventsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelAdminLogEventsFilter.Marshal(b, m, deterministic) +func (m *Payments_PaymentResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_PaymentResult.Marshal(b, m, deterministic) } -func (dst *ChannelAdminLogEventsFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelAdminLogEventsFilter.Merge(dst, src) +func (dst *Payments_PaymentResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_PaymentResult.Merge(dst, src) } -func (m *ChannelAdminLogEventsFilter) XXX_Size() int { - return xxx_messageInfo_ChannelAdminLogEventsFilter.Size(m) +func (m *Payments_PaymentResult) XXX_Size() int { + return xxx_messageInfo_Payments_PaymentResult.Size(m) } -func (m *ChannelAdminLogEventsFilter) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelAdminLogEventsFilter.DiscardUnknown(m) +func (m *Payments_PaymentResult) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_PaymentResult.DiscardUnknown(m) } -var xxx_messageInfo_ChannelAdminLogEventsFilter proto.InternalMessageInfo +var xxx_messageInfo_Payments_PaymentResult proto.InternalMessageInfo -func (m *ChannelAdminLogEventsFilter) GetConstructor() TLConstructor { +func (m *Payments_PaymentResult) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ChannelAdminLogEventsFilter) GetData2() *ChannelAdminLogEventsFilter_Data { +func (m *Payments_PaymentResult) GetData2() *Payments_PaymentResult_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; -type TLChannelAdminLogEventsFilter struct { - Data2 *ChannelAdminLogEventsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult; +type TLPaymentsPaymentResult struct { + Data2 *Payments_PaymentResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventsFilter) Reset() { *m = TLChannelAdminLogEventsFilter{} } -func (m *TLChannelAdminLogEventsFilter) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminLogEventsFilter) ProtoMessage() {} -func (*TLChannelAdminLogEventsFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{878} +func (m *TLPaymentsPaymentResult) Reset() { *m = TLPaymentsPaymentResult{} } +func (m *TLPaymentsPaymentResult) String() string { return proto.CompactTextString(m) } +func (*TLPaymentsPaymentResult) ProtoMessage() {} +func (*TLPaymentsPaymentResult) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{823} } -func (m *TLChannelAdminLogEventsFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventsFilter.Unmarshal(m, b) +func (m *TLPaymentsPaymentResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPaymentsPaymentResult.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventsFilter.Marshal(b, m, deterministic) +func (m *TLPaymentsPaymentResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPaymentsPaymentResult.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventsFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventsFilter.Merge(dst, src) +func (dst *TLPaymentsPaymentResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPaymentsPaymentResult.Merge(dst, src) } -func (m *TLChannelAdminLogEventsFilter) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventsFilter.Size(m) +func (m *TLPaymentsPaymentResult) XXX_Size() int { + return xxx_messageInfo_TLPaymentsPaymentResult.Size(m) } -func (m *TLChannelAdminLogEventsFilter) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventsFilter.DiscardUnknown(m) +func (m *TLPaymentsPaymentResult) XXX_DiscardUnknown() { + xxx_messageInfo_TLPaymentsPaymentResult.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventsFilter proto.InternalMessageInfo +var xxx_messageInfo_TLPaymentsPaymentResult proto.InternalMessageInfo -func (m *TLChannelAdminLogEventsFilter) GetData2() *ChannelAdminLogEventsFilter_Data { +func (m *TLPaymentsPaymentResult) GetData2() *Payments_PaymentResult_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputSecureFile <-- -// + TL_inputSecureFileUploaded -// + TL_inputSecureFile -// -type InputSecureFile_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Parts int32 `protobuf:"varint,2,opt,name=parts,proto3" json:"parts,omitempty"` - Md5Checksum string `protobuf:"bytes,3,opt,name=md5_checksum,json=md5Checksum,proto3" json:"md5_checksum,omitempty"` - FileHash []byte `protobuf:"bytes,4,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"` - Secret []byte `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` - AccessHash int64 `protobuf:"varint,6,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// payments.paymentVerficationNeeded#6b56b921 url:string = payments.PaymentResult; +type TLPaymentsPaymentVerficationNeeded struct { + Data2 *Payments_PaymentResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputSecureFile_Data) Reset() { *m = InputSecureFile_Data{} } -func (m *InputSecureFile_Data) String() string { return proto.CompactTextString(m) } -func (*InputSecureFile_Data) ProtoMessage() {} -func (*InputSecureFile_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{879} +func (m *TLPaymentsPaymentVerficationNeeded) Reset() { *m = TLPaymentsPaymentVerficationNeeded{} } +func (m *TLPaymentsPaymentVerficationNeeded) String() string { return proto.CompactTextString(m) } +func (*TLPaymentsPaymentVerficationNeeded) ProtoMessage() {} +func (*TLPaymentsPaymentVerficationNeeded) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{824} } -func (m *InputSecureFile_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputSecureFile_Data.Unmarshal(m, b) +func (m *TLPaymentsPaymentVerficationNeeded) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.Unmarshal(m, b) } -func (m *InputSecureFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputSecureFile_Data.Marshal(b, m, deterministic) +func (m *TLPaymentsPaymentVerficationNeeded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.Marshal(b, m, deterministic) } -func (dst *InputSecureFile_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputSecureFile_Data.Merge(dst, src) +func (dst *TLPaymentsPaymentVerficationNeeded) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.Merge(dst, src) } -func (m *InputSecureFile_Data) XXX_Size() int { - return xxx_messageInfo_InputSecureFile_Data.Size(m) +func (m *TLPaymentsPaymentVerficationNeeded) XXX_Size() int { + return xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.Size(m) } -func (m *InputSecureFile_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputSecureFile_Data.DiscardUnknown(m) +func (m *TLPaymentsPaymentVerficationNeeded) XXX_DiscardUnknown() { + xxx_messageInfo_TLPaymentsPaymentVerficationNeeded.DiscardUnknown(m) } -var xxx_messageInfo_InputSecureFile_Data proto.InternalMessageInfo +var xxx_messageInfo_TLPaymentsPaymentVerficationNeeded proto.InternalMessageInfo -func (m *InputSecureFile_Data) GetId() int64 { +func (m *TLPaymentsPaymentVerficationNeeded) GetData2() *Payments_PaymentResult_Data { if m != nil { - return m.Id + return m.Data2 } - return 0 + return nil } -func (m *InputSecureFile_Data) GetParts() int32 { - if m != nil { - return m.Parts - } - return 0 +// ///////////////////////////////////////////////////////////////////////////// +// ContactBlocked <-- +// + TL_contactBlocked +// +type ContactBlocked_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputSecureFile_Data) GetMd5Checksum() string { - if m != nil { - return m.Md5Checksum - } - return "" +func (m *ContactBlocked_Data) Reset() { *m = ContactBlocked_Data{} } +func (m *ContactBlocked_Data) String() string { return proto.CompactTextString(m) } +func (*ContactBlocked_Data) ProtoMessage() {} +func (*ContactBlocked_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{825} } - -func (m *InputSecureFile_Data) GetFileHash() []byte { - if m != nil { - return m.FileHash - } - return nil +func (m *ContactBlocked_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactBlocked_Data.Unmarshal(m, b) +} +func (m *ContactBlocked_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactBlocked_Data.Marshal(b, m, deterministic) +} +func (dst *ContactBlocked_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactBlocked_Data.Merge(dst, src) +} +func (m *ContactBlocked_Data) XXX_Size() int { + return xxx_messageInfo_ContactBlocked_Data.Size(m) +} +func (m *ContactBlocked_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ContactBlocked_Data.DiscardUnknown(m) } -func (m *InputSecureFile_Data) GetSecret() []byte { +var xxx_messageInfo_ContactBlocked_Data proto.InternalMessageInfo + +func (m *ContactBlocked_Data) GetUserId() int32 { if m != nil { - return m.Secret + return m.UserId } - return nil + return 0 } -func (m *InputSecureFile_Data) GetAccessHash() int64 { +func (m *ContactBlocked_Data) GetDate() int32 { if m != nil { - return m.AccessHash + return m.Date } return 0 } -type InputSecureFile struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputSecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactBlocked struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ContactBlocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputSecureFile) Reset() { *m = InputSecureFile{} } -func (m *InputSecureFile) String() string { return proto.CompactTextString(m) } -func (*InputSecureFile) ProtoMessage() {} -func (*InputSecureFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{880} +func (m *ContactBlocked) Reset() { *m = ContactBlocked{} } +func (m *ContactBlocked) String() string { return proto.CompactTextString(m) } +func (*ContactBlocked) ProtoMessage() {} +func (*ContactBlocked) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{826} } -func (m *InputSecureFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputSecureFile.Unmarshal(m, b) +func (m *ContactBlocked) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContactBlocked.Unmarshal(m, b) } -func (m *InputSecureFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputSecureFile.Marshal(b, m, deterministic) +func (m *ContactBlocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContactBlocked.Marshal(b, m, deterministic) } -func (dst *InputSecureFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputSecureFile.Merge(dst, src) +func (dst *ContactBlocked) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContactBlocked.Merge(dst, src) } -func (m *InputSecureFile) XXX_Size() int { - return xxx_messageInfo_InputSecureFile.Size(m) +func (m *ContactBlocked) XXX_Size() int { + return xxx_messageInfo_ContactBlocked.Size(m) } -func (m *InputSecureFile) XXX_DiscardUnknown() { - xxx_messageInfo_InputSecureFile.DiscardUnknown(m) +func (m *ContactBlocked) XXX_DiscardUnknown() { + xxx_messageInfo_ContactBlocked.DiscardUnknown(m) } -var xxx_messageInfo_InputSecureFile proto.InternalMessageInfo +var xxx_messageInfo_ContactBlocked proto.InternalMessageInfo -func (m *InputSecureFile) GetConstructor() TLConstructor { +func (m *ContactBlocked) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputSecureFile) GetData2() *InputSecureFile_Data { +func (m *ContactBlocked) GetData2() *ContactBlocked_Data { if m != nil { return m.Data2 } return nil } -// inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile; -type TLInputSecureFileUploaded struct { - Data2 *InputSecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// contactBlocked#561bc879 user_id:int date:int = ContactBlocked; +type TLContactBlocked struct { + Data2 *ContactBlocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputSecureFileUploaded) Reset() { *m = TLInputSecureFileUploaded{} } -func (m *TLInputSecureFileUploaded) String() string { return proto.CompactTextString(m) } -func (*TLInputSecureFileUploaded) ProtoMessage() {} -func (*TLInputSecureFileUploaded) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{881} +func (m *TLContactBlocked) Reset() { *m = TLContactBlocked{} } +func (m *TLContactBlocked) String() string { return proto.CompactTextString(m) } +func (*TLContactBlocked) ProtoMessage() {} +func (*TLContactBlocked) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{827} } -func (m *TLInputSecureFileUploaded) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputSecureFileUploaded.Unmarshal(m, b) +func (m *TLContactBlocked) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactBlocked.Unmarshal(m, b) } -func (m *TLInputSecureFileUploaded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputSecureFileUploaded.Marshal(b, m, deterministic) +func (m *TLContactBlocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactBlocked.Marshal(b, m, deterministic) } -func (dst *TLInputSecureFileUploaded) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputSecureFileUploaded.Merge(dst, src) +func (dst *TLContactBlocked) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactBlocked.Merge(dst, src) } -func (m *TLInputSecureFileUploaded) XXX_Size() int { - return xxx_messageInfo_TLInputSecureFileUploaded.Size(m) +func (m *TLContactBlocked) XXX_Size() int { + return xxx_messageInfo_TLContactBlocked.Size(m) } -func (m *TLInputSecureFileUploaded) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputSecureFileUploaded.DiscardUnknown(m) +func (m *TLContactBlocked) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactBlocked.DiscardUnknown(m) } -var xxx_messageInfo_TLInputSecureFileUploaded proto.InternalMessageInfo +var xxx_messageInfo_TLContactBlocked proto.InternalMessageInfo -func (m *TLInputSecureFileUploaded) GetData2() *InputSecureFile_Data { +func (m *TLContactBlocked) GetData2() *ContactBlocked_Data { if m != nil { return m.Data2 } return nil } -// inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile; -type TLInputSecureFile struct { - Data2 *InputSecureFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// SecureData <-- +// + TL_secureData +// +type SecureData_Data struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + DataHash []byte `protobuf:"bytes,2,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` + Secret []byte `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputSecureFile) Reset() { *m = TLInputSecureFile{} } -func (m *TLInputSecureFile) String() string { return proto.CompactTextString(m) } -func (*TLInputSecureFile) ProtoMessage() {} -func (*TLInputSecureFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{882} +func (m *SecureData_Data) Reset() { *m = SecureData_Data{} } +func (m *SecureData_Data) String() string { return proto.CompactTextString(m) } +func (*SecureData_Data) ProtoMessage() {} +func (*SecureData_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{828} } -func (m *TLInputSecureFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputSecureFile.Unmarshal(m, b) +func (m *SecureData_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureData_Data.Unmarshal(m, b) } -func (m *TLInputSecureFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputSecureFile.Marshal(b, m, deterministic) +func (m *SecureData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureData_Data.Marshal(b, m, deterministic) } -func (dst *TLInputSecureFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputSecureFile.Merge(dst, src) +func (dst *SecureData_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureData_Data.Merge(dst, src) } -func (m *TLInputSecureFile) XXX_Size() int { - return xxx_messageInfo_TLInputSecureFile.Size(m) +func (m *SecureData_Data) XXX_Size() int { + return xxx_messageInfo_SecureData_Data.Size(m) } -func (m *TLInputSecureFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputSecureFile.DiscardUnknown(m) +func (m *SecureData_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecureData_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputSecureFile proto.InternalMessageInfo +var xxx_messageInfo_SecureData_Data proto.InternalMessageInfo -func (m *TLInputSecureFile) GetData2() *InputSecureFile_Data { +func (m *SecureData_Data) GetData() []byte { if m != nil { - return m.Data2 + return m.Data } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// channels_ChannelParticipant <-- -// + TL_channels_channelParticipant -// -type Channels_ChannelParticipant_Data struct { - Participant *ChannelParticipant `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` - Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Channels_ChannelParticipant_Data) Reset() { *m = Channels_ChannelParticipant_Data{} } -func (m *Channels_ChannelParticipant_Data) String() string { return proto.CompactTextString(m) } -func (*Channels_ChannelParticipant_Data) ProtoMessage() {} -func (*Channels_ChannelParticipant_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{883} -} -func (m *Channels_ChannelParticipant_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Channels_ChannelParticipant_Data.Unmarshal(m, b) -} -func (m *Channels_ChannelParticipant_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Channels_ChannelParticipant_Data.Marshal(b, m, deterministic) -} -func (dst *Channels_ChannelParticipant_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Channels_ChannelParticipant_Data.Merge(dst, src) -} -func (m *Channels_ChannelParticipant_Data) XXX_Size() int { - return xxx_messageInfo_Channels_ChannelParticipant_Data.Size(m) -} -func (m *Channels_ChannelParticipant_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Channels_ChannelParticipant_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_Channels_ChannelParticipant_Data proto.InternalMessageInfo - -func (m *Channels_ChannelParticipant_Data) GetParticipant() *ChannelParticipant { +func (m *SecureData_Data) GetDataHash() []byte { if m != nil { - return m.Participant + return m.DataHash } return nil } -func (m *Channels_ChannelParticipant_Data) GetUsers() []*User { +func (m *SecureData_Data) GetSecret() []byte { if m != nil { - return m.Users + return m.Secret } return nil } -type Channels_ChannelParticipant struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Channels_ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SecureData struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SecureData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Channels_ChannelParticipant) Reset() { *m = Channels_ChannelParticipant{} } -func (m *Channels_ChannelParticipant) String() string { return proto.CompactTextString(m) } -func (*Channels_ChannelParticipant) ProtoMessage() {} -func (*Channels_ChannelParticipant) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{884} +func (m *SecureData) Reset() { *m = SecureData{} } +func (m *SecureData) String() string { return proto.CompactTextString(m) } +func (*SecureData) ProtoMessage() {} +func (*SecureData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{829} } -func (m *Channels_ChannelParticipant) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Channels_ChannelParticipant.Unmarshal(m, b) +func (m *SecureData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureData.Unmarshal(m, b) } -func (m *Channels_ChannelParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Channels_ChannelParticipant.Marshal(b, m, deterministic) +func (m *SecureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureData.Marshal(b, m, deterministic) } -func (dst *Channels_ChannelParticipant) XXX_Merge(src proto.Message) { - xxx_messageInfo_Channels_ChannelParticipant.Merge(dst, src) +func (dst *SecureData) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureData.Merge(dst, src) } -func (m *Channels_ChannelParticipant) XXX_Size() int { - return xxx_messageInfo_Channels_ChannelParticipant.Size(m) +func (m *SecureData) XXX_Size() int { + return xxx_messageInfo_SecureData.Size(m) } -func (m *Channels_ChannelParticipant) XXX_DiscardUnknown() { - xxx_messageInfo_Channels_ChannelParticipant.DiscardUnknown(m) +func (m *SecureData) XXX_DiscardUnknown() { + xxx_messageInfo_SecureData.DiscardUnknown(m) } -var xxx_messageInfo_Channels_ChannelParticipant proto.InternalMessageInfo +var xxx_messageInfo_SecureData proto.InternalMessageInfo -func (m *Channels_ChannelParticipant) GetConstructor() TLConstructor { +func (m *SecureData) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Channels_ChannelParticipant) GetData2() *Channels_ChannelParticipant_Data { +func (m *SecureData) GetData2() *SecureData_Data { if m != nil { return m.Data2 } return nil } -// channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector = channels.ChannelParticipant; -type TLChannelsChannelParticipant struct { - Data2 *Channels_ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData; +type TLSecureData struct { + Data2 *SecureData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelsChannelParticipant) Reset() { *m = TLChannelsChannelParticipant{} } -func (m *TLChannelsChannelParticipant) String() string { return proto.CompactTextString(m) } -func (*TLChannelsChannelParticipant) ProtoMessage() {} -func (*TLChannelsChannelParticipant) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{885} +func (m *TLSecureData) Reset() { *m = TLSecureData{} } +func (m *TLSecureData) String() string { return proto.CompactTextString(m) } +func (*TLSecureData) ProtoMessage() {} +func (*TLSecureData) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{830} } -func (m *TLChannelsChannelParticipant) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelsChannelParticipant.Unmarshal(m, b) +func (m *TLSecureData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureData.Unmarshal(m, b) } -func (m *TLChannelsChannelParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelsChannelParticipant.Marshal(b, m, deterministic) +func (m *TLSecureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureData.Marshal(b, m, deterministic) } -func (dst *TLChannelsChannelParticipant) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelsChannelParticipant.Merge(dst, src) +func (dst *TLSecureData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureData.Merge(dst, src) } -func (m *TLChannelsChannelParticipant) XXX_Size() int { - return xxx_messageInfo_TLChannelsChannelParticipant.Size(m) +func (m *TLSecureData) XXX_Size() int { + return xxx_messageInfo_TLSecureData.Size(m) } -func (m *TLChannelsChannelParticipant) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelsChannelParticipant.DiscardUnknown(m) +func (m *TLSecureData) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureData.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelsChannelParticipant proto.InternalMessageInfo +var xxx_messageInfo_TLSecureData proto.InternalMessageInfo -func (m *TLChannelsChannelParticipant) GetData2() *Channels_ChannelParticipant_Data { +func (m *TLSecureData) GetData2() *SecureData_Data { if m != nil { return m.Data2 } @@ -42903,564 +41289,605 @@ func (m *TLChannelsChannelParticipant) GetData2() *Channels_ChannelParticipant_D } // ///////////////////////////////////////////////////////////////////////////// -// ChannelAdminRights <-- -// + TL_channelAdminRights +// ReportReason <-- +// + TL_inputReportReasonSpam +// + TL_inputReportReasonViolence +// + TL_inputReportReasonPornography +// + TL_inputReportReasonOther +// + TL_inputReportReasonCopyright // -type ChannelAdminRights_Data struct { - ChangeInfo bool `protobuf:"varint,1,opt,name=change_info,json=changeInfo,proto3" json:"change_info,omitempty"` - PostMessages bool `protobuf:"varint,2,opt,name=post_messages,json=postMessages,proto3" json:"post_messages,omitempty"` - EditMessages bool `protobuf:"varint,3,opt,name=edit_messages,json=editMessages,proto3" json:"edit_messages,omitempty"` - DeleteMessages bool `protobuf:"varint,4,opt,name=delete_messages,json=deleteMessages,proto3" json:"delete_messages,omitempty"` - BanUsers bool `protobuf:"varint,5,opt,name=ban_users,json=banUsers,proto3" json:"ban_users,omitempty"` - InviteUsers bool `protobuf:"varint,6,opt,name=invite_users,json=inviteUsers,proto3" json:"invite_users,omitempty"` - InviteLink bool `protobuf:"varint,7,opt,name=invite_link,json=inviteLink,proto3" json:"invite_link,omitempty"` - PinMessages bool `protobuf:"varint,8,opt,name=pin_messages,json=pinMessages,proto3" json:"pin_messages,omitempty"` - AddAdmins bool `protobuf:"varint,9,opt,name=add_admins,json=addAdmins,proto3" json:"add_admins,omitempty"` - ManageCall bool `protobuf:"varint,10,opt,name=manage_call,json=manageCall,proto3" json:"manage_call,omitempty"` +type ReportReason_Data struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminRights_Data) Reset() { *m = ChannelAdminRights_Data{} } -func (m *ChannelAdminRights_Data) String() string { return proto.CompactTextString(m) } -func (*ChannelAdminRights_Data) ProtoMessage() {} -func (*ChannelAdminRights_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{886} +func (m *ReportReason_Data) Reset() { *m = ReportReason_Data{} } +func (m *ReportReason_Data) String() string { return proto.CompactTextString(m) } +func (*ReportReason_Data) ProtoMessage() {} +func (*ReportReason_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{831} } -func (m *ChannelAdminRights_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelAdminRights_Data.Unmarshal(m, b) +func (m *ReportReason_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReportReason_Data.Unmarshal(m, b) } -func (m *ChannelAdminRights_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelAdminRights_Data.Marshal(b, m, deterministic) +func (m *ReportReason_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReportReason_Data.Marshal(b, m, deterministic) } -func (dst *ChannelAdminRights_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelAdminRights_Data.Merge(dst, src) +func (dst *ReportReason_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportReason_Data.Merge(dst, src) } -func (m *ChannelAdminRights_Data) XXX_Size() int { - return xxx_messageInfo_ChannelAdminRights_Data.Size(m) +func (m *ReportReason_Data) XXX_Size() int { + return xxx_messageInfo_ReportReason_Data.Size(m) } -func (m *ChannelAdminRights_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelAdminRights_Data.DiscardUnknown(m) +func (m *ReportReason_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ReportReason_Data.DiscardUnknown(m) } -var xxx_messageInfo_ChannelAdminRights_Data proto.InternalMessageInfo +var xxx_messageInfo_ReportReason_Data proto.InternalMessageInfo -func (m *ChannelAdminRights_Data) GetChangeInfo() bool { +func (m *ReportReason_Data) GetText() string { if m != nil { - return m.ChangeInfo + return m.Text } - return false + return "" } -func (m *ChannelAdminRights_Data) GetPostMessages() bool { - if m != nil { - return m.PostMessages - } - return false +type ReportReason struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminRights_Data) GetEditMessages() bool { - if m != nil { - return m.EditMessages - } - return false +func (m *ReportReason) Reset() { *m = ReportReason{} } +func (m *ReportReason) String() string { return proto.CompactTextString(m) } +func (*ReportReason) ProtoMessage() {} +func (*ReportReason) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{832} } - -func (m *ChannelAdminRights_Data) GetDeleteMessages() bool { - if m != nil { - return m.DeleteMessages - } - return false +func (m *ReportReason) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReportReason.Unmarshal(m, b) } - -func (m *ChannelAdminRights_Data) GetBanUsers() bool { - if m != nil { - return m.BanUsers - } - return false +func (m *ReportReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReportReason.Marshal(b, m, deterministic) +} +func (dst *ReportReason) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportReason.Merge(dst, src) +} +func (m *ReportReason) XXX_Size() int { + return xxx_messageInfo_ReportReason.Size(m) +} +func (m *ReportReason) XXX_DiscardUnknown() { + xxx_messageInfo_ReportReason.DiscardUnknown(m) } -func (m *ChannelAdminRights_Data) GetInviteUsers() bool { +var xxx_messageInfo_ReportReason proto.InternalMessageInfo + +func (m *ReportReason) GetConstructor() TLConstructor { if m != nil { - return m.InviteUsers + return m.Constructor } - return false + return TLConstructor_CRC32_UNKNOWN } -func (m *ChannelAdminRights_Data) GetInviteLink() bool { +func (m *ReportReason) GetData2() *ReportReason_Data { if m != nil { - return m.InviteLink + return m.Data2 } - return false + return nil } -func (m *ChannelAdminRights_Data) GetPinMessages() bool { - if m != nil { - return m.PinMessages - } - return false +// inputReportReasonSpam#58dbcab8 = ReportReason; +type TLInputReportReasonSpam struct { + Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminRights_Data) GetAddAdmins() bool { - if m != nil { - return m.AddAdmins - } - return false +func (m *TLInputReportReasonSpam) Reset() { *m = TLInputReportReasonSpam{} } +func (m *TLInputReportReasonSpam) String() string { return proto.CompactTextString(m) } +func (*TLInputReportReasonSpam) ProtoMessage() {} +func (*TLInputReportReasonSpam) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{833} +} +func (m *TLInputReportReasonSpam) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputReportReasonSpam.Unmarshal(m, b) +} +func (m *TLInputReportReasonSpam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputReportReasonSpam.Marshal(b, m, deterministic) +} +func (dst *TLInputReportReasonSpam) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputReportReasonSpam.Merge(dst, src) +} +func (m *TLInputReportReasonSpam) XXX_Size() int { + return xxx_messageInfo_TLInputReportReasonSpam.Size(m) +} +func (m *TLInputReportReasonSpam) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputReportReasonSpam.DiscardUnknown(m) } -func (m *ChannelAdminRights_Data) GetManageCall() bool { +var xxx_messageInfo_TLInputReportReasonSpam proto.InternalMessageInfo + +func (m *TLInputReportReasonSpam) GetData2() *ReportReason_Data { if m != nil { - return m.ManageCall + return m.Data2 } - return false + return nil } -type ChannelAdminRights struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChannelAdminRights_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputReportReasonViolence#1e22c78d = ReportReason; +type TLInputReportReasonViolence struct { + Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminRights) Reset() { *m = ChannelAdminRights{} } -func (m *ChannelAdminRights) String() string { return proto.CompactTextString(m) } -func (*ChannelAdminRights) ProtoMessage() {} -func (*ChannelAdminRights) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{887} +func (m *TLInputReportReasonViolence) Reset() { *m = TLInputReportReasonViolence{} } +func (m *TLInputReportReasonViolence) String() string { return proto.CompactTextString(m) } +func (*TLInputReportReasonViolence) ProtoMessage() {} +func (*TLInputReportReasonViolence) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{834} } -func (m *ChannelAdminRights) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelAdminRights.Unmarshal(m, b) +func (m *TLInputReportReasonViolence) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputReportReasonViolence.Unmarshal(m, b) } -func (m *ChannelAdminRights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelAdminRights.Marshal(b, m, deterministic) +func (m *TLInputReportReasonViolence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputReportReasonViolence.Marshal(b, m, deterministic) } -func (dst *ChannelAdminRights) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelAdminRights.Merge(dst, src) +func (dst *TLInputReportReasonViolence) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputReportReasonViolence.Merge(dst, src) } -func (m *ChannelAdminRights) XXX_Size() int { - return xxx_messageInfo_ChannelAdminRights.Size(m) +func (m *TLInputReportReasonViolence) XXX_Size() int { + return xxx_messageInfo_TLInputReportReasonViolence.Size(m) } -func (m *ChannelAdminRights) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelAdminRights.DiscardUnknown(m) +func (m *TLInputReportReasonViolence) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputReportReasonViolence.DiscardUnknown(m) } -var xxx_messageInfo_ChannelAdminRights proto.InternalMessageInfo - -func (m *ChannelAdminRights) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputReportReasonViolence proto.InternalMessageInfo -func (m *ChannelAdminRights) GetData2() *ChannelAdminRights_Data { +func (m *TLInputReportReasonViolence) GetData2() *ReportReason_Data { if m != nil { return m.Data2 } return nil } -// channelAdminRights#5d7ceba5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true invite_link:flags.6?true pin_messages:flags.7?true add_admins:flags.9?true manage_call:flags.10?true = ChannelAdminRights; -type TLChannelAdminRights struct { - Data2 *ChannelAdminRights_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputReportReasonPornography#2e59d922 = ReportReason; +type TLInputReportReasonPornography struct { + Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminRights) Reset() { *m = TLChannelAdminRights{} } -func (m *TLChannelAdminRights) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminRights) ProtoMessage() {} -func (*TLChannelAdminRights) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{888} +func (m *TLInputReportReasonPornography) Reset() { *m = TLInputReportReasonPornography{} } +func (m *TLInputReportReasonPornography) String() string { return proto.CompactTextString(m) } +func (*TLInputReportReasonPornography) ProtoMessage() {} +func (*TLInputReportReasonPornography) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{835} } -func (m *TLChannelAdminRights) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminRights.Unmarshal(m, b) +func (m *TLInputReportReasonPornography) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputReportReasonPornography.Unmarshal(m, b) } -func (m *TLChannelAdminRights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminRights.Marshal(b, m, deterministic) +func (m *TLInputReportReasonPornography) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputReportReasonPornography.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminRights) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminRights.Merge(dst, src) +func (dst *TLInputReportReasonPornography) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputReportReasonPornography.Merge(dst, src) } -func (m *TLChannelAdminRights) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminRights.Size(m) +func (m *TLInputReportReasonPornography) XXX_Size() int { + return xxx_messageInfo_TLInputReportReasonPornography.Size(m) } -func (m *TLChannelAdminRights) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminRights.DiscardUnknown(m) +func (m *TLInputReportReasonPornography) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputReportReasonPornography.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminRights proto.InternalMessageInfo +var xxx_messageInfo_TLInputReportReasonPornography proto.InternalMessageInfo -func (m *TLChannelAdminRights) GetData2() *ChannelAdminRights_Data { +func (m *TLInputReportReasonPornography) GetData2() *ReportReason_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// EncryptedMessage <-- -// + TL_encryptedMessage -// + TL_encryptedMessageService -// -type EncryptedMessage_Data struct { - RandomId int64 `protobuf:"varint,1,opt,name=random_id,json=randomId,proto3" json:"random_id,omitempty"` - ChatId int32 `protobuf:"varint,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` - Bytes []byte `protobuf:"bytes,4,opt,name=bytes,proto3" json:"bytes,omitempty"` - File *EncryptedFile `protobuf:"bytes,5,opt,name=file,proto3" json:"file,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputReportReasonOther#e1746d0a text:string = ReportReason; +type TLInputReportReasonOther struct { + Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EncryptedMessage_Data) Reset() { *m = EncryptedMessage_Data{} } -func (m *EncryptedMessage_Data) String() string { return proto.CompactTextString(m) } -func (*EncryptedMessage_Data) ProtoMessage() {} -func (*EncryptedMessage_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{889} +func (m *TLInputReportReasonOther) Reset() { *m = TLInputReportReasonOther{} } +func (m *TLInputReportReasonOther) String() string { return proto.CompactTextString(m) } +func (*TLInputReportReasonOther) ProtoMessage() {} +func (*TLInputReportReasonOther) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{836} } -func (m *EncryptedMessage_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EncryptedMessage_Data.Unmarshal(m, b) +func (m *TLInputReportReasonOther) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputReportReasonOther.Unmarshal(m, b) } -func (m *EncryptedMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EncryptedMessage_Data.Marshal(b, m, deterministic) +func (m *TLInputReportReasonOther) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputReportReasonOther.Marshal(b, m, deterministic) } -func (dst *EncryptedMessage_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedMessage_Data.Merge(dst, src) +func (dst *TLInputReportReasonOther) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputReportReasonOther.Merge(dst, src) } -func (m *EncryptedMessage_Data) XXX_Size() int { - return xxx_messageInfo_EncryptedMessage_Data.Size(m) +func (m *TLInputReportReasonOther) XXX_Size() int { + return xxx_messageInfo_TLInputReportReasonOther.Size(m) } -func (m *EncryptedMessage_Data) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedMessage_Data.DiscardUnknown(m) +func (m *TLInputReportReasonOther) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputReportReasonOther.DiscardUnknown(m) } -var xxx_messageInfo_EncryptedMessage_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputReportReasonOther proto.InternalMessageInfo -func (m *EncryptedMessage_Data) GetRandomId() int64 { +func (m *TLInputReportReasonOther) GetData2() *ReportReason_Data { if m != nil { - return m.RandomId + return m.Data2 } - return 0 + return nil } -func (m *EncryptedMessage_Data) GetChatId() int32 { - if m != nil { - return m.ChatId - } - return 0 +// inputReportReasonCopyright#9b89f93a = ReportReason; +type TLInputReportReasonCopyright struct { + Data2 *ReportReason_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EncryptedMessage_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 +func (m *TLInputReportReasonCopyright) Reset() { *m = TLInputReportReasonCopyright{} } +func (m *TLInputReportReasonCopyright) String() string { return proto.CompactTextString(m) } +func (*TLInputReportReasonCopyright) ProtoMessage() {} +func (*TLInputReportReasonCopyright) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{837} +} +func (m *TLInputReportReasonCopyright) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputReportReasonCopyright.Unmarshal(m, b) +} +func (m *TLInputReportReasonCopyright) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputReportReasonCopyright.Marshal(b, m, deterministic) +} +func (dst *TLInputReportReasonCopyright) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputReportReasonCopyright.Merge(dst, src) +} +func (m *TLInputReportReasonCopyright) XXX_Size() int { + return xxx_messageInfo_TLInputReportReasonCopyright.Size(m) +} +func (m *TLInputReportReasonCopyright) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputReportReasonCopyright.DiscardUnknown(m) } -func (m *EncryptedMessage_Data) GetBytes() []byte { +var xxx_messageInfo_TLInputReportReasonCopyright proto.InternalMessageInfo + +func (m *TLInputReportReasonCopyright) GetData2() *ReportReason_Data { if m != nil { - return m.Bytes + return m.Data2 } return nil } -func (m *EncryptedMessage_Data) GetFile() *EncryptedFile { - if m != nil { - return m.File - } - return nil +// ///////////////////////////////////////////////////////////////////////////// +// TopPeerCategory <-- +// + TL_topPeerCategoryBotsPM +// + TL_topPeerCategoryBotsInline +// + TL_topPeerCategoryCorrespondents +// + TL_topPeerCategoryGroups +// + TL_topPeerCategoryChannels +// + TL_topPeerCategoryPhoneCalls +// +type TopPeerCategory_Data struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -type EncryptedMessage struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *EncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *TopPeerCategory_Data) Reset() { *m = TopPeerCategory_Data{} } +func (m *TopPeerCategory_Data) String() string { return proto.CompactTextString(m) } +func (*TopPeerCategory_Data) ProtoMessage() {} +func (*TopPeerCategory_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{838} +} +func (m *TopPeerCategory_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TopPeerCategory_Data.Unmarshal(m, b) +} +func (m *TopPeerCategory_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TopPeerCategory_Data.Marshal(b, m, deterministic) +} +func (dst *TopPeerCategory_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopPeerCategory_Data.Merge(dst, src) +} +func (m *TopPeerCategory_Data) XXX_Size() int { + return xxx_messageInfo_TopPeerCategory_Data.Size(m) +} +func (m *TopPeerCategory_Data) XXX_DiscardUnknown() { + xxx_messageInfo_TopPeerCategory_Data.DiscardUnknown(m) } -func (m *EncryptedMessage) Reset() { *m = EncryptedMessage{} } -func (m *EncryptedMessage) String() string { return proto.CompactTextString(m) } -func (*EncryptedMessage) ProtoMessage() {} -func (*EncryptedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{890} +var xxx_messageInfo_TopPeerCategory_Data proto.InternalMessageInfo + +type TopPeerCategory struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *EncryptedMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EncryptedMessage.Unmarshal(m, b) + +func (m *TopPeerCategory) Reset() { *m = TopPeerCategory{} } +func (m *TopPeerCategory) String() string { return proto.CompactTextString(m) } +func (*TopPeerCategory) ProtoMessage() {} +func (*TopPeerCategory) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{839} } -func (m *EncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EncryptedMessage.Marshal(b, m, deterministic) +func (m *TopPeerCategory) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TopPeerCategory.Unmarshal(m, b) } -func (dst *EncryptedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedMessage.Merge(dst, src) +func (m *TopPeerCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TopPeerCategory.Marshal(b, m, deterministic) } -func (m *EncryptedMessage) XXX_Size() int { - return xxx_messageInfo_EncryptedMessage.Size(m) +func (dst *TopPeerCategory) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopPeerCategory.Merge(dst, src) } -func (m *EncryptedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedMessage.DiscardUnknown(m) +func (m *TopPeerCategory) XXX_Size() int { + return xxx_messageInfo_TopPeerCategory.Size(m) +} +func (m *TopPeerCategory) XXX_DiscardUnknown() { + xxx_messageInfo_TopPeerCategory.DiscardUnknown(m) } -var xxx_messageInfo_EncryptedMessage proto.InternalMessageInfo +var xxx_messageInfo_TopPeerCategory proto.InternalMessageInfo -func (m *EncryptedMessage) GetConstructor() TLConstructor { +func (m *TopPeerCategory) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *EncryptedMessage) GetData2() *EncryptedMessage_Data { +func (m *TopPeerCategory) GetData2() *TopPeerCategory_Data { if m != nil { return m.Data2 } return nil } -// encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage; -type TLEncryptedMessage struct { - Data2 *EncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// topPeerCategoryBotsPM#ab661b5b = TopPeerCategory; +type TLTopPeerCategoryBotsPM struct { + Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLEncryptedMessage) Reset() { *m = TLEncryptedMessage{} } -func (m *TLEncryptedMessage) String() string { return proto.CompactTextString(m) } -func (*TLEncryptedMessage) ProtoMessage() {} -func (*TLEncryptedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{891} +func (m *TLTopPeerCategoryBotsPM) Reset() { *m = TLTopPeerCategoryBotsPM{} } +func (m *TLTopPeerCategoryBotsPM) String() string { return proto.CompactTextString(m) } +func (*TLTopPeerCategoryBotsPM) ProtoMessage() {} +func (*TLTopPeerCategoryBotsPM) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{840} } -func (m *TLEncryptedMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLEncryptedMessage.Unmarshal(m, b) +func (m *TLTopPeerCategoryBotsPM) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTopPeerCategoryBotsPM.Unmarshal(m, b) } -func (m *TLEncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLEncryptedMessage.Marshal(b, m, deterministic) +func (m *TLTopPeerCategoryBotsPM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTopPeerCategoryBotsPM.Marshal(b, m, deterministic) } -func (dst *TLEncryptedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLEncryptedMessage.Merge(dst, src) +func (dst *TLTopPeerCategoryBotsPM) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTopPeerCategoryBotsPM.Merge(dst, src) } -func (m *TLEncryptedMessage) XXX_Size() int { - return xxx_messageInfo_TLEncryptedMessage.Size(m) +func (m *TLTopPeerCategoryBotsPM) XXX_Size() int { + return xxx_messageInfo_TLTopPeerCategoryBotsPM.Size(m) } -func (m *TLEncryptedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLEncryptedMessage.DiscardUnknown(m) +func (m *TLTopPeerCategoryBotsPM) XXX_DiscardUnknown() { + xxx_messageInfo_TLTopPeerCategoryBotsPM.DiscardUnknown(m) } -var xxx_messageInfo_TLEncryptedMessage proto.InternalMessageInfo +var xxx_messageInfo_TLTopPeerCategoryBotsPM proto.InternalMessageInfo -func (m *TLEncryptedMessage) GetData2() *EncryptedMessage_Data { +func (m *TLTopPeerCategoryBotsPM) GetData2() *TopPeerCategory_Data { if m != nil { return m.Data2 } return nil } -// encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage; -type TLEncryptedMessageService struct { - Data2 *EncryptedMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// topPeerCategoryBotsInline#148677e2 = TopPeerCategory; +type TLTopPeerCategoryBotsInline struct { + Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLEncryptedMessageService) Reset() { *m = TLEncryptedMessageService{} } -func (m *TLEncryptedMessageService) String() string { return proto.CompactTextString(m) } -func (*TLEncryptedMessageService) ProtoMessage() {} -func (*TLEncryptedMessageService) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{892} +func (m *TLTopPeerCategoryBotsInline) Reset() { *m = TLTopPeerCategoryBotsInline{} } +func (m *TLTopPeerCategoryBotsInline) String() string { return proto.CompactTextString(m) } +func (*TLTopPeerCategoryBotsInline) ProtoMessage() {} +func (*TLTopPeerCategoryBotsInline) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{841} } -func (m *TLEncryptedMessageService) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLEncryptedMessageService.Unmarshal(m, b) +func (m *TLTopPeerCategoryBotsInline) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTopPeerCategoryBotsInline.Unmarshal(m, b) } -func (m *TLEncryptedMessageService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLEncryptedMessageService.Marshal(b, m, deterministic) +func (m *TLTopPeerCategoryBotsInline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTopPeerCategoryBotsInline.Marshal(b, m, deterministic) } -func (dst *TLEncryptedMessageService) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLEncryptedMessageService.Merge(dst, src) +func (dst *TLTopPeerCategoryBotsInline) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTopPeerCategoryBotsInline.Merge(dst, src) } -func (m *TLEncryptedMessageService) XXX_Size() int { - return xxx_messageInfo_TLEncryptedMessageService.Size(m) +func (m *TLTopPeerCategoryBotsInline) XXX_Size() int { + return xxx_messageInfo_TLTopPeerCategoryBotsInline.Size(m) } -func (m *TLEncryptedMessageService) XXX_DiscardUnknown() { - xxx_messageInfo_TLEncryptedMessageService.DiscardUnknown(m) +func (m *TLTopPeerCategoryBotsInline) XXX_DiscardUnknown() { + xxx_messageInfo_TLTopPeerCategoryBotsInline.DiscardUnknown(m) } -var xxx_messageInfo_TLEncryptedMessageService proto.InternalMessageInfo +var xxx_messageInfo_TLTopPeerCategoryBotsInline proto.InternalMessageInfo -func (m *TLEncryptedMessageService) GetData2() *EncryptedMessage_Data { +func (m *TLTopPeerCategoryBotsInline) GetData2() *TopPeerCategory_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ExportedChatInvite <-- -// + TL_chatInviteEmpty -// + TL_chatInviteExported -// -type ExportedChatInvite_Data struct { - Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// topPeerCategoryCorrespondents#637b7ed = TopPeerCategory; +type TLTopPeerCategoryCorrespondents struct { + Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ExportedChatInvite_Data) Reset() { *m = ExportedChatInvite_Data{} } -func (m *ExportedChatInvite_Data) String() string { return proto.CompactTextString(m) } -func (*ExportedChatInvite_Data) ProtoMessage() {} -func (*ExportedChatInvite_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{893} +func (m *TLTopPeerCategoryCorrespondents) Reset() { *m = TLTopPeerCategoryCorrespondents{} } +func (m *TLTopPeerCategoryCorrespondents) String() string { return proto.CompactTextString(m) } +func (*TLTopPeerCategoryCorrespondents) ProtoMessage() {} +func (*TLTopPeerCategoryCorrespondents) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{842} } -func (m *ExportedChatInvite_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExportedChatInvite_Data.Unmarshal(m, b) +func (m *TLTopPeerCategoryCorrespondents) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTopPeerCategoryCorrespondents.Unmarshal(m, b) } -func (m *ExportedChatInvite_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExportedChatInvite_Data.Marshal(b, m, deterministic) +func (m *TLTopPeerCategoryCorrespondents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTopPeerCategoryCorrespondents.Marshal(b, m, deterministic) } -func (dst *ExportedChatInvite_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExportedChatInvite_Data.Merge(dst, src) +func (dst *TLTopPeerCategoryCorrespondents) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTopPeerCategoryCorrespondents.Merge(dst, src) } -func (m *ExportedChatInvite_Data) XXX_Size() int { - return xxx_messageInfo_ExportedChatInvite_Data.Size(m) +func (m *TLTopPeerCategoryCorrespondents) XXX_Size() int { + return xxx_messageInfo_TLTopPeerCategoryCorrespondents.Size(m) } -func (m *ExportedChatInvite_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ExportedChatInvite_Data.DiscardUnknown(m) +func (m *TLTopPeerCategoryCorrespondents) XXX_DiscardUnknown() { + xxx_messageInfo_TLTopPeerCategoryCorrespondents.DiscardUnknown(m) } -var xxx_messageInfo_ExportedChatInvite_Data proto.InternalMessageInfo +var xxx_messageInfo_TLTopPeerCategoryCorrespondents proto.InternalMessageInfo -func (m *ExportedChatInvite_Data) GetLink() string { +func (m *TLTopPeerCategoryCorrespondents) GetData2() *TopPeerCategory_Data { if m != nil { - return m.Link + return m.Data2 } - return "" + return nil } -type ExportedChatInvite struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ExportedChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// topPeerCategoryGroups#bd17a14a = TopPeerCategory; +type TLTopPeerCategoryGroups struct { + Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ExportedChatInvite) Reset() { *m = ExportedChatInvite{} } -func (m *ExportedChatInvite) String() string { return proto.CompactTextString(m) } -func (*ExportedChatInvite) ProtoMessage() {} -func (*ExportedChatInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{894} +func (m *TLTopPeerCategoryGroups) Reset() { *m = TLTopPeerCategoryGroups{} } +func (m *TLTopPeerCategoryGroups) String() string { return proto.CompactTextString(m) } +func (*TLTopPeerCategoryGroups) ProtoMessage() {} +func (*TLTopPeerCategoryGroups) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{843} } -func (m *ExportedChatInvite) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExportedChatInvite.Unmarshal(m, b) +func (m *TLTopPeerCategoryGroups) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTopPeerCategoryGroups.Unmarshal(m, b) } -func (m *ExportedChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExportedChatInvite.Marshal(b, m, deterministic) +func (m *TLTopPeerCategoryGroups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTopPeerCategoryGroups.Marshal(b, m, deterministic) } -func (dst *ExportedChatInvite) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExportedChatInvite.Merge(dst, src) +func (dst *TLTopPeerCategoryGroups) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTopPeerCategoryGroups.Merge(dst, src) } -func (m *ExportedChatInvite) XXX_Size() int { - return xxx_messageInfo_ExportedChatInvite.Size(m) +func (m *TLTopPeerCategoryGroups) XXX_Size() int { + return xxx_messageInfo_TLTopPeerCategoryGroups.Size(m) } -func (m *ExportedChatInvite) XXX_DiscardUnknown() { - xxx_messageInfo_ExportedChatInvite.DiscardUnknown(m) +func (m *TLTopPeerCategoryGroups) XXX_DiscardUnknown() { + xxx_messageInfo_TLTopPeerCategoryGroups.DiscardUnknown(m) } -var xxx_messageInfo_ExportedChatInvite proto.InternalMessageInfo - -func (m *ExportedChatInvite) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLTopPeerCategoryGroups proto.InternalMessageInfo -func (m *ExportedChatInvite) GetData2() *ExportedChatInvite_Data { +func (m *TLTopPeerCategoryGroups) GetData2() *TopPeerCategory_Data { if m != nil { return m.Data2 } return nil } -// chatInviteEmpty#69df3769 = ExportedChatInvite; -type TLChatInviteEmpty struct { - Data2 *ExportedChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// topPeerCategoryChannels#161d9628 = TopPeerCategory; +type TLTopPeerCategoryChannels struct { + Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatInviteEmpty) Reset() { *m = TLChatInviteEmpty{} } -func (m *TLChatInviteEmpty) String() string { return proto.CompactTextString(m) } -func (*TLChatInviteEmpty) ProtoMessage() {} -func (*TLChatInviteEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{895} +func (m *TLTopPeerCategoryChannels) Reset() { *m = TLTopPeerCategoryChannels{} } +func (m *TLTopPeerCategoryChannels) String() string { return proto.CompactTextString(m) } +func (*TLTopPeerCategoryChannels) ProtoMessage() {} +func (*TLTopPeerCategoryChannels) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{844} } -func (m *TLChatInviteEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatInviteEmpty.Unmarshal(m, b) +func (m *TLTopPeerCategoryChannels) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTopPeerCategoryChannels.Unmarshal(m, b) } -func (m *TLChatInviteEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatInviteEmpty.Marshal(b, m, deterministic) +func (m *TLTopPeerCategoryChannels) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTopPeerCategoryChannels.Marshal(b, m, deterministic) } -func (dst *TLChatInviteEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatInviteEmpty.Merge(dst, src) +func (dst *TLTopPeerCategoryChannels) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTopPeerCategoryChannels.Merge(dst, src) } -func (m *TLChatInviteEmpty) XXX_Size() int { - return xxx_messageInfo_TLChatInviteEmpty.Size(m) +func (m *TLTopPeerCategoryChannels) XXX_Size() int { + return xxx_messageInfo_TLTopPeerCategoryChannels.Size(m) } -func (m *TLChatInviteEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatInviteEmpty.DiscardUnknown(m) +func (m *TLTopPeerCategoryChannels) XXX_DiscardUnknown() { + xxx_messageInfo_TLTopPeerCategoryChannels.DiscardUnknown(m) } -var xxx_messageInfo_TLChatInviteEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLTopPeerCategoryChannels proto.InternalMessageInfo -func (m *TLChatInviteEmpty) GetData2() *ExportedChatInvite_Data { +func (m *TLTopPeerCategoryChannels) GetData2() *TopPeerCategory_Data { if m != nil { return m.Data2 } return nil } -// chatInviteExported#fc2e05bc link:string = ExportedChatInvite; -type TLChatInviteExported struct { - Data2 *ExportedChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory; +type TLTopPeerCategoryPhoneCalls struct { + Data2 *TopPeerCategory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatInviteExported) Reset() { *m = TLChatInviteExported{} } -func (m *TLChatInviteExported) String() string { return proto.CompactTextString(m) } -func (*TLChatInviteExported) ProtoMessage() {} -func (*TLChatInviteExported) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{896} +func (m *TLTopPeerCategoryPhoneCalls) Reset() { *m = TLTopPeerCategoryPhoneCalls{} } +func (m *TLTopPeerCategoryPhoneCalls) String() string { return proto.CompactTextString(m) } +func (*TLTopPeerCategoryPhoneCalls) ProtoMessage() {} +func (*TLTopPeerCategoryPhoneCalls) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{845} } -func (m *TLChatInviteExported) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatInviteExported.Unmarshal(m, b) +func (m *TLTopPeerCategoryPhoneCalls) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTopPeerCategoryPhoneCalls.Unmarshal(m, b) } -func (m *TLChatInviteExported) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatInviteExported.Marshal(b, m, deterministic) +func (m *TLTopPeerCategoryPhoneCalls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTopPeerCategoryPhoneCalls.Marshal(b, m, deterministic) } -func (dst *TLChatInviteExported) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatInviteExported.Merge(dst, src) +func (dst *TLTopPeerCategoryPhoneCalls) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTopPeerCategoryPhoneCalls.Merge(dst, src) } -func (m *TLChatInviteExported) XXX_Size() int { - return xxx_messageInfo_TLChatInviteExported.Size(m) +func (m *TLTopPeerCategoryPhoneCalls) XXX_Size() int { + return xxx_messageInfo_TLTopPeerCategoryPhoneCalls.Size(m) } -func (m *TLChatInviteExported) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatInviteExported.DiscardUnknown(m) +func (m *TLTopPeerCategoryPhoneCalls) XXX_DiscardUnknown() { + xxx_messageInfo_TLTopPeerCategoryPhoneCalls.DiscardUnknown(m) } -var xxx_messageInfo_TLChatInviteExported proto.InternalMessageInfo +var xxx_messageInfo_TLTopPeerCategoryPhoneCalls proto.InternalMessageInfo -func (m *TLChatInviteExported) GetData2() *ExportedChatInvite_Data { +func (m *TLTopPeerCategoryPhoneCalls) GetData2() *TopPeerCategory_Data { if m != nil { return m.Data2 } @@ -43468,2186 +41895,2190 @@ func (m *TLChatInviteExported) GetData2() *ExportedChatInvite_Data { } // ///////////////////////////////////////////////////////////////////////////// -// messages_BotResults <-- -// + TL_messages_botResults +// messages_RecentStickers <-- +// + TL_messages_recentStickersNotModified +// + TL_messages_recentStickers // -type Messages_BotResults_Data struct { - Gallery bool `protobuf:"varint,1,opt,name=gallery,proto3" json:"gallery,omitempty"` - QueryId int64 `protobuf:"varint,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` - NextOffset string `protobuf:"bytes,3,opt,name=next_offset,json=nextOffset,proto3" json:"next_offset,omitempty"` - SwitchPm *InlineBotSwitchPM `protobuf:"bytes,4,opt,name=switch_pm,json=switchPm,proto3" json:"switch_pm,omitempty"` - Results []*BotInlineResult `protobuf:"bytes,5,rep,name=results,proto3" json:"results,omitempty"` - CacheTime int32 `protobuf:"varint,6,opt,name=cache_time,json=cacheTime,proto3" json:"cache_time,omitempty"` - Users []*User `protobuf:"bytes,7,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_RecentStickers_Data struct { + Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` + Packs []*StickerPack `protobuf:"bytes,2,rep,name=packs,proto3" json:"packs,omitempty"` + Stickers []*Document `protobuf:"bytes,3,rep,name=stickers,proto3" json:"stickers,omitempty"` + Dates []int32 `protobuf:"varint,4,rep,packed,name=dates,proto3" json:"dates,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_BotResults_Data) Reset() { *m = Messages_BotResults_Data{} } -func (m *Messages_BotResults_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_BotResults_Data) ProtoMessage() {} -func (*Messages_BotResults_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{897} +func (m *Messages_RecentStickers_Data) Reset() { *m = Messages_RecentStickers_Data{} } +func (m *Messages_RecentStickers_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_RecentStickers_Data) ProtoMessage() {} +func (*Messages_RecentStickers_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{846} } -func (m *Messages_BotResults_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_BotResults_Data.Unmarshal(m, b) +func (m *Messages_RecentStickers_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_RecentStickers_Data.Unmarshal(m, b) } -func (m *Messages_BotResults_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_BotResults_Data.Marshal(b, m, deterministic) +func (m *Messages_RecentStickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_RecentStickers_Data.Marshal(b, m, deterministic) } -func (dst *Messages_BotResults_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_BotResults_Data.Merge(dst, src) +func (dst *Messages_RecentStickers_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_RecentStickers_Data.Merge(dst, src) } -func (m *Messages_BotResults_Data) XXX_Size() int { - return xxx_messageInfo_Messages_BotResults_Data.Size(m) +func (m *Messages_RecentStickers_Data) XXX_Size() int { + return xxx_messageInfo_Messages_RecentStickers_Data.Size(m) } -func (m *Messages_BotResults_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_BotResults_Data.DiscardUnknown(m) +func (m *Messages_RecentStickers_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_RecentStickers_Data.DiscardUnknown(m) } -var xxx_messageInfo_Messages_BotResults_Data proto.InternalMessageInfo - -func (m *Messages_BotResults_Data) GetGallery() bool { - if m != nil { - return m.Gallery - } - return false -} +var xxx_messageInfo_Messages_RecentStickers_Data proto.InternalMessageInfo -func (m *Messages_BotResults_Data) GetQueryId() int64 { +func (m *Messages_RecentStickers_Data) GetHash() int32 { if m != nil { - return m.QueryId + return m.Hash } return 0 } -func (m *Messages_BotResults_Data) GetNextOffset() string { - if m != nil { - return m.NextOffset - } - return "" -} - -func (m *Messages_BotResults_Data) GetSwitchPm() *InlineBotSwitchPM { +func (m *Messages_RecentStickers_Data) GetPacks() []*StickerPack { if m != nil { - return m.SwitchPm + return m.Packs } return nil } -func (m *Messages_BotResults_Data) GetResults() []*BotInlineResult { +func (m *Messages_RecentStickers_Data) GetStickers() []*Document { if m != nil { - return m.Results + return m.Stickers } return nil } -func (m *Messages_BotResults_Data) GetCacheTime() int32 { - if m != nil { - return m.CacheTime - } - return 0 -} - -func (m *Messages_BotResults_Data) GetUsers() []*User { +func (m *Messages_RecentStickers_Data) GetDates() []int32 { if m != nil { - return m.Users + return m.Dates } return nil } -type Messages_BotResults struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_BotResults_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_RecentStickers struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_RecentStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_BotResults) Reset() { *m = Messages_BotResults{} } -func (m *Messages_BotResults) String() string { return proto.CompactTextString(m) } -func (*Messages_BotResults) ProtoMessage() {} -func (*Messages_BotResults) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{898} +func (m *Messages_RecentStickers) Reset() { *m = Messages_RecentStickers{} } +func (m *Messages_RecentStickers) String() string { return proto.CompactTextString(m) } +func (*Messages_RecentStickers) ProtoMessage() {} +func (*Messages_RecentStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{847} } -func (m *Messages_BotResults) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_BotResults.Unmarshal(m, b) +func (m *Messages_RecentStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_RecentStickers.Unmarshal(m, b) } -func (m *Messages_BotResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_BotResults.Marshal(b, m, deterministic) +func (m *Messages_RecentStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_RecentStickers.Marshal(b, m, deterministic) } -func (dst *Messages_BotResults) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_BotResults.Merge(dst, src) +func (dst *Messages_RecentStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_RecentStickers.Merge(dst, src) } -func (m *Messages_BotResults) XXX_Size() int { - return xxx_messageInfo_Messages_BotResults.Size(m) +func (m *Messages_RecentStickers) XXX_Size() int { + return xxx_messageInfo_Messages_RecentStickers.Size(m) } -func (m *Messages_BotResults) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_BotResults.DiscardUnknown(m) +func (m *Messages_RecentStickers) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_RecentStickers.DiscardUnknown(m) } -var xxx_messageInfo_Messages_BotResults proto.InternalMessageInfo +var xxx_messageInfo_Messages_RecentStickers proto.InternalMessageInfo -func (m *Messages_BotResults) GetConstructor() TLConstructor { +func (m *Messages_RecentStickers) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_BotResults) GetData2() *Messages_BotResults_Data { +func (m *Messages_RecentStickers) GetData2() *Messages_RecentStickers_Data { if m != nil { return m.Data2 } return nil } -// messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector cache_time:int users:Vector = messages.BotResults; -type TLMessagesBotResults struct { - Data2 *Messages_BotResults_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.recentStickersNotModified#b17f890 = messages.RecentStickers; +type TLMessagesRecentStickersNotModified struct { + Data2 *Messages_RecentStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesBotResults) Reset() { *m = TLMessagesBotResults{} } -func (m *TLMessagesBotResults) String() string { return proto.CompactTextString(m) } -func (*TLMessagesBotResults) ProtoMessage() {} -func (*TLMessagesBotResults) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{899} +func (m *TLMessagesRecentStickersNotModified) Reset() { *m = TLMessagesRecentStickersNotModified{} } +func (m *TLMessagesRecentStickersNotModified) String() string { return proto.CompactTextString(m) } +func (*TLMessagesRecentStickersNotModified) ProtoMessage() {} +func (*TLMessagesRecentStickersNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{848} } -func (m *TLMessagesBotResults) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesBotResults.Unmarshal(m, b) +func (m *TLMessagesRecentStickersNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesRecentStickersNotModified.Unmarshal(m, b) } -func (m *TLMessagesBotResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesBotResults.Marshal(b, m, deterministic) +func (m *TLMessagesRecentStickersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesRecentStickersNotModified.Marshal(b, m, deterministic) } -func (dst *TLMessagesBotResults) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesBotResults.Merge(dst, src) +func (dst *TLMessagesRecentStickersNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesRecentStickersNotModified.Merge(dst, src) } -func (m *TLMessagesBotResults) XXX_Size() int { - return xxx_messageInfo_TLMessagesBotResults.Size(m) +func (m *TLMessagesRecentStickersNotModified) XXX_Size() int { + return xxx_messageInfo_TLMessagesRecentStickersNotModified.Size(m) } -func (m *TLMessagesBotResults) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesBotResults.DiscardUnknown(m) +func (m *TLMessagesRecentStickersNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesRecentStickersNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesBotResults proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesRecentStickersNotModified proto.InternalMessageInfo -func (m *TLMessagesBotResults) GetData2() *Messages_BotResults_Data { +func (m *TLMessagesRecentStickersNotModified) GetData2() *Messages_RecentStickers_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// PageBlock <-- -// + TL_pageBlockUnsupported -// + TL_pageBlockTitle -// + TL_pageBlockSubtitle -// + TL_pageBlockAuthorDate -// + TL_pageBlockHeader -// + TL_pageBlockSubheader -// + TL_pageBlockParagraph -// + TL_pageBlockPreformatted -// + TL_pageBlockFooter -// + TL_pageBlockDivider -// + TL_pageBlockAnchor -// + TL_pageBlockList -// + TL_pageBlockBlockquote -// + TL_pageBlockPullquote -// + TL_pageBlockPhoto -// + TL_pageBlockVideo -// + TL_pageBlockCover -// + TL_pageBlockEmbed -// + TL_pageBlockEmbedPost -// + TL_pageBlockCollage -// + TL_pageBlockSlideshow -// + TL_pageBlockChannel -// + TL_pageBlockAudio -// -type PageBlock_Data struct { - Text *RichText `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - Author_2 *RichText `protobuf:"bytes,2,opt,name=author_2,json=author2,proto3" json:"author_2,omitempty"` - PublishedDate int32 `protobuf:"varint,3,opt,name=published_date,json=publishedDate,proto3" json:"published_date,omitempty"` - Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - Ordered *Bool `protobuf:"bytes,6,opt,name=ordered,proto3" json:"ordered,omitempty"` - Items_7 []*RichText `protobuf:"bytes,7,rep,name=items_7,json=items7,proto3" json:"items_7,omitempty"` - Caption *RichText `protobuf:"bytes,8,opt,name=caption,proto3" json:"caption,omitempty"` - PhotoId int64 `protobuf:"varint,9,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"` - Autoplay bool `protobuf:"varint,10,opt,name=autoplay,proto3" json:"autoplay,omitempty"` - Loop bool `protobuf:"varint,11,opt,name=loop,proto3" json:"loop,omitempty"` - VideoId int64 `protobuf:"varint,12,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` - Cover *PageBlock `protobuf:"bytes,13,opt,name=cover,proto3" json:"cover,omitempty"` - FullWidth bool `protobuf:"varint,14,opt,name=full_width,json=fullWidth,proto3" json:"full_width,omitempty"` - AllowScrolling bool `protobuf:"varint,15,opt,name=allow_scrolling,json=allowScrolling,proto3" json:"allow_scrolling,omitempty"` - Url string `protobuf:"bytes,16,opt,name=url,proto3" json:"url,omitempty"` - Html string `protobuf:"bytes,17,opt,name=html,proto3" json:"html,omitempty"` - PosterPhotoId int64 `protobuf:"varint,18,opt,name=poster_photo_id,json=posterPhotoId,proto3" json:"poster_photo_id,omitempty"` - W int32 `protobuf:"varint,19,opt,name=w,proto3" json:"w,omitempty"` - H int32 `protobuf:"varint,20,opt,name=h,proto3" json:"h,omitempty"` - WebpageId int64 `protobuf:"varint,21,opt,name=webpage_id,json=webpageId,proto3" json:"webpage_id,omitempty"` - AuthorPhotoId int64 `protobuf:"varint,22,opt,name=author_photo_id,json=authorPhotoId,proto3" json:"author_photo_id,omitempty"` - Author_23 string `protobuf:"bytes,23,opt,name=author_23,json=author23,proto3" json:"author_23,omitempty"` - Date int32 `protobuf:"varint,24,opt,name=date,proto3" json:"date,omitempty"` - Blocks []*PageBlock `protobuf:"bytes,25,rep,name=blocks,proto3" json:"blocks,omitempty"` - Items_26 []*PageBlock `protobuf:"bytes,26,rep,name=items_26,json=items26,proto3" json:"items_26,omitempty"` - Channel *Chat `protobuf:"bytes,27,opt,name=channel,proto3" json:"channel,omitempty"` - AudioId int64 `protobuf:"varint,28,opt,name=audio_id,json=audioId,proto3" json:"audio_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.recentStickers#22f3afb3 hash:int packs:Vector stickers:Vector dates:Vector = messages.RecentStickers; +type TLMessagesRecentStickers struct { + Data2 *Messages_RecentStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PageBlock_Data) Reset() { *m = PageBlock_Data{} } -func (m *PageBlock_Data) String() string { return proto.CompactTextString(m) } -func (*PageBlock_Data) ProtoMessage() {} -func (*PageBlock_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{900} +func (m *TLMessagesRecentStickers) Reset() { *m = TLMessagesRecentStickers{} } +func (m *TLMessagesRecentStickers) String() string { return proto.CompactTextString(m) } +func (*TLMessagesRecentStickers) ProtoMessage() {} +func (*TLMessagesRecentStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{849} } -func (m *PageBlock_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PageBlock_Data.Unmarshal(m, b) +func (m *TLMessagesRecentStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesRecentStickers.Unmarshal(m, b) } -func (m *PageBlock_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PageBlock_Data.Marshal(b, m, deterministic) +func (m *TLMessagesRecentStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesRecentStickers.Marshal(b, m, deterministic) } -func (dst *PageBlock_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PageBlock_Data.Merge(dst, src) +func (dst *TLMessagesRecentStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesRecentStickers.Merge(dst, src) } -func (m *PageBlock_Data) XXX_Size() int { - return xxx_messageInfo_PageBlock_Data.Size(m) +func (m *TLMessagesRecentStickers) XXX_Size() int { + return xxx_messageInfo_TLMessagesRecentStickers.Size(m) } -func (m *PageBlock_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PageBlock_Data.DiscardUnknown(m) +func (m *TLMessagesRecentStickers) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesRecentStickers.DiscardUnknown(m) } -var xxx_messageInfo_PageBlock_Data proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesRecentStickers proto.InternalMessageInfo -func (m *PageBlock_Data) GetText() *RichText { +func (m *TLMessagesRecentStickers) GetData2() *Messages_RecentStickers_Data { if m != nil { - return m.Text + return m.Data2 } return nil } -func (m *PageBlock_Data) GetAuthor_2() *RichText { - if m != nil { - return m.Author_2 - } - return nil +// ///////////////////////////////////////////////////////////////////////////// +// auth_CodeType <-- +// + TL_auth_codeTypeSms +// + TL_auth_codeTypeCall +// + TL_auth_codeTypeFlashCall +// +type Auth_CodeType_Data struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PageBlock_Data) GetPublishedDate() int32 { - if m != nil { - return m.PublishedDate - } - return 0 +func (m *Auth_CodeType_Data) Reset() { *m = Auth_CodeType_Data{} } +func (m *Auth_CodeType_Data) String() string { return proto.CompactTextString(m) } +func (*Auth_CodeType_Data) ProtoMessage() {} +func (*Auth_CodeType_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{850} } - -func (m *PageBlock_Data) GetLanguage() string { - if m != nil { - return m.Language - } - return "" +func (m *Auth_CodeType_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_CodeType_Data.Unmarshal(m, b) +} +func (m *Auth_CodeType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_CodeType_Data.Marshal(b, m, deterministic) +} +func (dst *Auth_CodeType_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_CodeType_Data.Merge(dst, src) +} +func (m *Auth_CodeType_Data) XXX_Size() int { + return xxx_messageInfo_Auth_CodeType_Data.Size(m) +} +func (m *Auth_CodeType_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_CodeType_Data.DiscardUnknown(m) } -func (m *PageBlock_Data) GetName() string { - if m != nil { - return m.Name - } - return "" +var xxx_messageInfo_Auth_CodeType_Data proto.InternalMessageInfo + +type Auth_CodeType struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Auth_CodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PageBlock_Data) GetOrdered() *Bool { - if m != nil { - return m.Ordered - } - return nil +func (m *Auth_CodeType) Reset() { *m = Auth_CodeType{} } +func (m *Auth_CodeType) String() string { return proto.CompactTextString(m) } +func (*Auth_CodeType) ProtoMessage() {} +func (*Auth_CodeType) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{851} +} +func (m *Auth_CodeType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_CodeType.Unmarshal(m, b) +} +func (m *Auth_CodeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_CodeType.Marshal(b, m, deterministic) +} +func (dst *Auth_CodeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_CodeType.Merge(dst, src) +} +func (m *Auth_CodeType) XXX_Size() int { + return xxx_messageInfo_Auth_CodeType.Size(m) +} +func (m *Auth_CodeType) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_CodeType.DiscardUnknown(m) } -func (m *PageBlock_Data) GetItems_7() []*RichText { +var xxx_messageInfo_Auth_CodeType proto.InternalMessageInfo + +func (m *Auth_CodeType) GetConstructor() TLConstructor { if m != nil { - return m.Items_7 + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *PageBlock_Data) GetCaption() *RichText { +func (m *Auth_CodeType) GetData2() *Auth_CodeType_Data { if m != nil { - return m.Caption + return m.Data2 } return nil } -func (m *PageBlock_Data) GetPhotoId() int64 { - if m != nil { - return m.PhotoId - } - return 0 +// auth.codeTypeSms#72a3158c = auth.CodeType; +type TLAuthCodeTypeSms struct { + Data2 *Auth_CodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PageBlock_Data) GetAutoplay() bool { - if m != nil { - return m.Autoplay - } - return false +func (m *TLAuthCodeTypeSms) Reset() { *m = TLAuthCodeTypeSms{} } +func (m *TLAuthCodeTypeSms) String() string { return proto.CompactTextString(m) } +func (*TLAuthCodeTypeSms) ProtoMessage() {} +func (*TLAuthCodeTypeSms) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{852} } - -func (m *PageBlock_Data) GetLoop() bool { - if m != nil { - return m.Loop - } - return false +func (m *TLAuthCodeTypeSms) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthCodeTypeSms.Unmarshal(m, b) } - -func (m *PageBlock_Data) GetVideoId() int64 { - if m != nil { - return m.VideoId - } - return 0 +func (m *TLAuthCodeTypeSms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthCodeTypeSms.Marshal(b, m, deterministic) +} +func (dst *TLAuthCodeTypeSms) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthCodeTypeSms.Merge(dst, src) +} +func (m *TLAuthCodeTypeSms) XXX_Size() int { + return xxx_messageInfo_TLAuthCodeTypeSms.Size(m) +} +func (m *TLAuthCodeTypeSms) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthCodeTypeSms.DiscardUnknown(m) } -func (m *PageBlock_Data) GetCover() *PageBlock { +var xxx_messageInfo_TLAuthCodeTypeSms proto.InternalMessageInfo + +func (m *TLAuthCodeTypeSms) GetData2() *Auth_CodeType_Data { if m != nil { - return m.Cover + return m.Data2 } return nil } -func (m *PageBlock_Data) GetFullWidth() bool { - if m != nil { - return m.FullWidth - } - return false +// auth.codeTypeCall#741cd3e3 = auth.CodeType; +type TLAuthCodeTypeCall struct { + Data2 *Auth_CodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PageBlock_Data) GetAllowScrolling() bool { - if m != nil { - return m.AllowScrolling - } - return false +func (m *TLAuthCodeTypeCall) Reset() { *m = TLAuthCodeTypeCall{} } +func (m *TLAuthCodeTypeCall) String() string { return proto.CompactTextString(m) } +func (*TLAuthCodeTypeCall) ProtoMessage() {} +func (*TLAuthCodeTypeCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{853} } - -func (m *PageBlock_Data) GetUrl() string { - if m != nil { - return m.Url - } - return "" +func (m *TLAuthCodeTypeCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthCodeTypeCall.Unmarshal(m, b) } - -func (m *PageBlock_Data) GetHtml() string { - if m != nil { - return m.Html - } - return "" +func (m *TLAuthCodeTypeCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthCodeTypeCall.Marshal(b, m, deterministic) } - -func (m *PageBlock_Data) GetPosterPhotoId() int64 { - if m != nil { - return m.PosterPhotoId - } - return 0 +func (dst *TLAuthCodeTypeCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthCodeTypeCall.Merge(dst, src) +} +func (m *TLAuthCodeTypeCall) XXX_Size() int { + return xxx_messageInfo_TLAuthCodeTypeCall.Size(m) +} +func (m *TLAuthCodeTypeCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthCodeTypeCall.DiscardUnknown(m) } -func (m *PageBlock_Data) GetW() int32 { +var xxx_messageInfo_TLAuthCodeTypeCall proto.InternalMessageInfo + +func (m *TLAuthCodeTypeCall) GetData2() *Auth_CodeType_Data { if m != nil { - return m.W + return m.Data2 } - return 0 + return nil } -func (m *PageBlock_Data) GetH() int32 { - if m != nil { - return m.H - } - return 0 +// auth.codeTypeFlashCall#226ccefb = auth.CodeType; +type TLAuthCodeTypeFlashCall struct { + Data2 *Auth_CodeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PageBlock_Data) GetWebpageId() int64 { - if m != nil { - return m.WebpageId - } - return 0 +func (m *TLAuthCodeTypeFlashCall) Reset() { *m = TLAuthCodeTypeFlashCall{} } +func (m *TLAuthCodeTypeFlashCall) String() string { return proto.CompactTextString(m) } +func (*TLAuthCodeTypeFlashCall) ProtoMessage() {} +func (*TLAuthCodeTypeFlashCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{854} +} +func (m *TLAuthCodeTypeFlashCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthCodeTypeFlashCall.Unmarshal(m, b) +} +func (m *TLAuthCodeTypeFlashCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthCodeTypeFlashCall.Marshal(b, m, deterministic) +} +func (dst *TLAuthCodeTypeFlashCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthCodeTypeFlashCall.Merge(dst, src) +} +func (m *TLAuthCodeTypeFlashCall) XXX_Size() int { + return xxx_messageInfo_TLAuthCodeTypeFlashCall.Size(m) +} +func (m *TLAuthCodeTypeFlashCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthCodeTypeFlashCall.DiscardUnknown(m) } -func (m *PageBlock_Data) GetAuthorPhotoId() int64 { +var xxx_messageInfo_TLAuthCodeTypeFlashCall proto.InternalMessageInfo + +func (m *TLAuthCodeTypeFlashCall) GetData2() *Auth_CodeType_Data { if m != nil { - return m.AuthorPhotoId + return m.Data2 } - return 0 + return nil } -func (m *PageBlock_Data) GetAuthor_23() string { - if m != nil { - return m.Author_23 - } - return "" +// ///////////////////////////////////////////////////////////////////////////// +// Scheme <-- +// + TL_schemeNotModified +// + TL_scheme +// +type Scheme_Data struct { + SchemeRaw string `protobuf:"bytes,1,opt,name=scheme_raw,json=schemeRaw,proto3" json:"scheme_raw,omitempty"` + Types []*SchemeType `protobuf:"bytes,2,rep,name=types,proto3" json:"types,omitempty"` + Methods []*SchemeMethod `protobuf:"bytes,3,rep,name=methods,proto3" json:"methods,omitempty"` + Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PageBlock_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 +func (m *Scheme_Data) Reset() { *m = Scheme_Data{} } +func (m *Scheme_Data) String() string { return proto.CompactTextString(m) } +func (*Scheme_Data) ProtoMessage() {} +func (*Scheme_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{855} +} +func (m *Scheme_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Scheme_Data.Unmarshal(m, b) +} +func (m *Scheme_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Scheme_Data.Marshal(b, m, deterministic) +} +func (dst *Scheme_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Scheme_Data.Merge(dst, src) +} +func (m *Scheme_Data) XXX_Size() int { + return xxx_messageInfo_Scheme_Data.Size(m) +} +func (m *Scheme_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Scheme_Data.DiscardUnknown(m) } -func (m *PageBlock_Data) GetBlocks() []*PageBlock { +var xxx_messageInfo_Scheme_Data proto.InternalMessageInfo + +func (m *Scheme_Data) GetSchemeRaw() string { if m != nil { - return m.Blocks + return m.SchemeRaw } - return nil + return "" } -func (m *PageBlock_Data) GetItems_26() []*PageBlock { +func (m *Scheme_Data) GetTypes() []*SchemeType { if m != nil { - return m.Items_26 + return m.Types } return nil } -func (m *PageBlock_Data) GetChannel() *Chat { +func (m *Scheme_Data) GetMethods() []*SchemeMethod { if m != nil { - return m.Channel + return m.Methods } return nil } -func (m *PageBlock_Data) GetAudioId() int64 { +func (m *Scheme_Data) GetVersion() int32 { if m != nil { - return m.AudioId + return m.Version } return 0 } -type PageBlock struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Scheme struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Scheme_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PageBlock) Reset() { *m = PageBlock{} } -func (m *PageBlock) String() string { return proto.CompactTextString(m) } -func (*PageBlock) ProtoMessage() {} -func (*PageBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{901} +func (m *Scheme) Reset() { *m = Scheme{} } +func (m *Scheme) String() string { return proto.CompactTextString(m) } +func (*Scheme) ProtoMessage() {} +func (*Scheme) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{856} } -func (m *PageBlock) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PageBlock.Unmarshal(m, b) +func (m *Scheme) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Scheme.Unmarshal(m, b) } -func (m *PageBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PageBlock.Marshal(b, m, deterministic) +func (m *Scheme) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Scheme.Marshal(b, m, deterministic) } -func (dst *PageBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_PageBlock.Merge(dst, src) +func (dst *Scheme) XXX_Merge(src proto.Message) { + xxx_messageInfo_Scheme.Merge(dst, src) } -func (m *PageBlock) XXX_Size() int { - return xxx_messageInfo_PageBlock.Size(m) +func (m *Scheme) XXX_Size() int { + return xxx_messageInfo_Scheme.Size(m) } -func (m *PageBlock) XXX_DiscardUnknown() { - xxx_messageInfo_PageBlock.DiscardUnknown(m) +func (m *Scheme) XXX_DiscardUnknown() { + xxx_messageInfo_Scheme.DiscardUnknown(m) } -var xxx_messageInfo_PageBlock proto.InternalMessageInfo +var xxx_messageInfo_Scheme proto.InternalMessageInfo -func (m *PageBlock) GetConstructor() TLConstructor { +func (m *Scheme) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PageBlock) GetData2() *PageBlock_Data { +func (m *Scheme) GetData2() *Scheme_Data { if m != nil { return m.Data2 } return nil } -// pageBlockUnsupported#13567e8a = PageBlock; -type TLPageBlockUnsupported struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// schemeNotModified#263c9c58 = Scheme; +type TLSchemeNotModified struct { + Data2 *Scheme_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockUnsupported) Reset() { *m = TLPageBlockUnsupported{} } -func (m *TLPageBlockUnsupported) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockUnsupported) ProtoMessage() {} -func (*TLPageBlockUnsupported) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{902} +func (m *TLSchemeNotModified) Reset() { *m = TLSchemeNotModified{} } +func (m *TLSchemeNotModified) String() string { return proto.CompactTextString(m) } +func (*TLSchemeNotModified) ProtoMessage() {} +func (*TLSchemeNotModified) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{857} } -func (m *TLPageBlockUnsupported) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockUnsupported.Unmarshal(m, b) +func (m *TLSchemeNotModified) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSchemeNotModified.Unmarshal(m, b) } -func (m *TLPageBlockUnsupported) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockUnsupported.Marshal(b, m, deterministic) +func (m *TLSchemeNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSchemeNotModified.Marshal(b, m, deterministic) } -func (dst *TLPageBlockUnsupported) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockUnsupported.Merge(dst, src) +func (dst *TLSchemeNotModified) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSchemeNotModified.Merge(dst, src) } -func (m *TLPageBlockUnsupported) XXX_Size() int { - return xxx_messageInfo_TLPageBlockUnsupported.Size(m) +func (m *TLSchemeNotModified) XXX_Size() int { + return xxx_messageInfo_TLSchemeNotModified.Size(m) } -func (m *TLPageBlockUnsupported) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockUnsupported.DiscardUnknown(m) +func (m *TLSchemeNotModified) XXX_DiscardUnknown() { + xxx_messageInfo_TLSchemeNotModified.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockUnsupported proto.InternalMessageInfo +var xxx_messageInfo_TLSchemeNotModified proto.InternalMessageInfo -func (m *TLPageBlockUnsupported) GetData2() *PageBlock_Data { +func (m *TLSchemeNotModified) GetData2() *Scheme_Data { if m != nil { return m.Data2 } return nil } -// pageBlockTitle#70abc3fd text:RichText = PageBlock; -type TLPageBlockTitle struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// scheme#4e6ef65e scheme_raw:string types:Vector methods:Vector version:int = Scheme; +type TLScheme struct { + Data2 *Scheme_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockTitle) Reset() { *m = TLPageBlockTitle{} } -func (m *TLPageBlockTitle) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockTitle) ProtoMessage() {} -func (*TLPageBlockTitle) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{903} +func (m *TLScheme) Reset() { *m = TLScheme{} } +func (m *TLScheme) String() string { return proto.CompactTextString(m) } +func (*TLScheme) ProtoMessage() {} +func (*TLScheme) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{858} } -func (m *TLPageBlockTitle) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockTitle.Unmarshal(m, b) +func (m *TLScheme) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLScheme.Unmarshal(m, b) } -func (m *TLPageBlockTitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockTitle.Marshal(b, m, deterministic) +func (m *TLScheme) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLScheme.Marshal(b, m, deterministic) } -func (dst *TLPageBlockTitle) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockTitle.Merge(dst, src) +func (dst *TLScheme) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLScheme.Merge(dst, src) } -func (m *TLPageBlockTitle) XXX_Size() int { - return xxx_messageInfo_TLPageBlockTitle.Size(m) +func (m *TLScheme) XXX_Size() int { + return xxx_messageInfo_TLScheme.Size(m) } -func (m *TLPageBlockTitle) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockTitle.DiscardUnknown(m) +func (m *TLScheme) XXX_DiscardUnknown() { + xxx_messageInfo_TLScheme.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockTitle proto.InternalMessageInfo +var xxx_messageInfo_TLScheme proto.InternalMessageInfo -func (m *TLPageBlockTitle) GetData2() *PageBlock_Data { +func (m *TLScheme) GetData2() *Scheme_Data { if m != nil { return m.Data2 } return nil } -// pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock; -type TLPageBlockSubtitle struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// ChatInvite <-- +// + TL_chatInviteAlready +// + TL_chatInvite +// +type ChatInvite_Data struct { + Chat *Chat `protobuf:"bytes,1,opt,name=chat,proto3" json:"chat,omitempty"` + Channel bool `protobuf:"varint,2,opt,name=channel,proto3" json:"channel,omitempty"` + Broadcast bool `protobuf:"varint,3,opt,name=broadcast,proto3" json:"broadcast,omitempty"` + Public bool `protobuf:"varint,4,opt,name=public,proto3" json:"public,omitempty"` + Megagroup bool `protobuf:"varint,5,opt,name=megagroup,proto3" json:"megagroup,omitempty"` + Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` + Photo *ChatPhoto `protobuf:"bytes,7,opt,name=photo,proto3" json:"photo,omitempty"` + ParticipantsCount int32 `protobuf:"varint,8,opt,name=participants_count,json=participantsCount,proto3" json:"participants_count,omitempty"` + Participants []*User `protobuf:"bytes,9,rep,name=participants,proto3" json:"participants,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockSubtitle) Reset() { *m = TLPageBlockSubtitle{} } -func (m *TLPageBlockSubtitle) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockSubtitle) ProtoMessage() {} -func (*TLPageBlockSubtitle) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{904} +func (m *ChatInvite_Data) Reset() { *m = ChatInvite_Data{} } +func (m *ChatInvite_Data) String() string { return proto.CompactTextString(m) } +func (*ChatInvite_Data) ProtoMessage() {} +func (*ChatInvite_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{859} } -func (m *TLPageBlockSubtitle) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockSubtitle.Unmarshal(m, b) +func (m *ChatInvite_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatInvite_Data.Unmarshal(m, b) } -func (m *TLPageBlockSubtitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockSubtitle.Marshal(b, m, deterministic) +func (m *ChatInvite_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatInvite_Data.Marshal(b, m, deterministic) } -func (dst *TLPageBlockSubtitle) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockSubtitle.Merge(dst, src) +func (dst *ChatInvite_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatInvite_Data.Merge(dst, src) } -func (m *TLPageBlockSubtitle) XXX_Size() int { - return xxx_messageInfo_TLPageBlockSubtitle.Size(m) +func (m *ChatInvite_Data) XXX_Size() int { + return xxx_messageInfo_ChatInvite_Data.Size(m) } -func (m *TLPageBlockSubtitle) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockSubtitle.DiscardUnknown(m) +func (m *ChatInvite_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChatInvite_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockSubtitle proto.InternalMessageInfo +var xxx_messageInfo_ChatInvite_Data proto.InternalMessageInfo -func (m *TLPageBlockSubtitle) GetData2() *PageBlock_Data { +func (m *ChatInvite_Data) GetChat() *Chat { if m != nil { - return m.Data2 + return m.Chat } return nil } -// pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock; -type TLPageBlockAuthorDate struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChatInvite_Data) GetChannel() bool { + if m != nil { + return m.Channel + } + return false } -func (m *TLPageBlockAuthorDate) Reset() { *m = TLPageBlockAuthorDate{} } -func (m *TLPageBlockAuthorDate) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockAuthorDate) ProtoMessage() {} -func (*TLPageBlockAuthorDate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{905} -} -func (m *TLPageBlockAuthorDate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockAuthorDate.Unmarshal(m, b) +func (m *ChatInvite_Data) GetBroadcast() bool { + if m != nil { + return m.Broadcast + } + return false } -func (m *TLPageBlockAuthorDate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockAuthorDate.Marshal(b, m, deterministic) + +func (m *ChatInvite_Data) GetPublic() bool { + if m != nil { + return m.Public + } + return false } -func (dst *TLPageBlockAuthorDate) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockAuthorDate.Merge(dst, src) + +func (m *ChatInvite_Data) GetMegagroup() bool { + if m != nil { + return m.Megagroup + } + return false } -func (m *TLPageBlockAuthorDate) XXX_Size() int { - return xxx_messageInfo_TLPageBlockAuthorDate.Size(m) + +func (m *ChatInvite_Data) GetTitle() string { + if m != nil { + return m.Title + } + return "" } -func (m *TLPageBlockAuthorDate) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockAuthorDate.DiscardUnknown(m) + +func (m *ChatInvite_Data) GetPhoto() *ChatPhoto { + if m != nil { + return m.Photo + } + return nil } -var xxx_messageInfo_TLPageBlockAuthorDate proto.InternalMessageInfo +func (m *ChatInvite_Data) GetParticipantsCount() int32 { + if m != nil { + return m.ParticipantsCount + } + return 0 +} -func (m *TLPageBlockAuthorDate) GetData2() *PageBlock_Data { +func (m *ChatInvite_Data) GetParticipants() []*User { if m != nil { - return m.Data2 + return m.Participants } return nil } -// pageBlockHeader#bfd064ec text:RichText = PageBlock; -type TLPageBlockHeader struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChatInvite struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockHeader) Reset() { *m = TLPageBlockHeader{} } -func (m *TLPageBlockHeader) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockHeader) ProtoMessage() {} -func (*TLPageBlockHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{906} +func (m *ChatInvite) Reset() { *m = ChatInvite{} } +func (m *ChatInvite) String() string { return proto.CompactTextString(m) } +func (*ChatInvite) ProtoMessage() {} +func (*ChatInvite) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{860} } -func (m *TLPageBlockHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockHeader.Unmarshal(m, b) +func (m *ChatInvite) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChatInvite.Unmarshal(m, b) } -func (m *TLPageBlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockHeader.Marshal(b, m, deterministic) +func (m *ChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChatInvite.Marshal(b, m, deterministic) } -func (dst *TLPageBlockHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockHeader.Merge(dst, src) +func (dst *ChatInvite) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChatInvite.Merge(dst, src) } -func (m *TLPageBlockHeader) XXX_Size() int { - return xxx_messageInfo_TLPageBlockHeader.Size(m) +func (m *ChatInvite) XXX_Size() int { + return xxx_messageInfo_ChatInvite.Size(m) } -func (m *TLPageBlockHeader) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockHeader.DiscardUnknown(m) +func (m *ChatInvite) XXX_DiscardUnknown() { + xxx_messageInfo_ChatInvite.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockHeader proto.InternalMessageInfo +var xxx_messageInfo_ChatInvite proto.InternalMessageInfo -func (m *TLPageBlockHeader) GetData2() *PageBlock_Data { +func (m *ChatInvite) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *ChatInvite) GetData2() *ChatInvite_Data { if m != nil { return m.Data2 } return nil } -// pageBlockSubheader#f12bb6e1 text:RichText = PageBlock; -type TLPageBlockSubheader struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatInviteAlready#5a686d7c chat:Chat = ChatInvite; +type TLChatInviteAlready struct { + Data2 *ChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockSubheader) Reset() { *m = TLPageBlockSubheader{} } -func (m *TLPageBlockSubheader) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockSubheader) ProtoMessage() {} -func (*TLPageBlockSubheader) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{907} +func (m *TLChatInviteAlready) Reset() { *m = TLChatInviteAlready{} } +func (m *TLChatInviteAlready) String() string { return proto.CompactTextString(m) } +func (*TLChatInviteAlready) ProtoMessage() {} +func (*TLChatInviteAlready) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{861} } -func (m *TLPageBlockSubheader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockSubheader.Unmarshal(m, b) +func (m *TLChatInviteAlready) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatInviteAlready.Unmarshal(m, b) } -func (m *TLPageBlockSubheader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockSubheader.Marshal(b, m, deterministic) +func (m *TLChatInviteAlready) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatInviteAlready.Marshal(b, m, deterministic) } -func (dst *TLPageBlockSubheader) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockSubheader.Merge(dst, src) +func (dst *TLChatInviteAlready) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatInviteAlready.Merge(dst, src) } -func (m *TLPageBlockSubheader) XXX_Size() int { - return xxx_messageInfo_TLPageBlockSubheader.Size(m) +func (m *TLChatInviteAlready) XXX_Size() int { + return xxx_messageInfo_TLChatInviteAlready.Size(m) } -func (m *TLPageBlockSubheader) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockSubheader.DiscardUnknown(m) +func (m *TLChatInviteAlready) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatInviteAlready.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockSubheader proto.InternalMessageInfo +var xxx_messageInfo_TLChatInviteAlready proto.InternalMessageInfo -func (m *TLPageBlockSubheader) GetData2() *PageBlock_Data { +func (m *TLChatInviteAlready) GetData2() *ChatInvite_Data { if m != nil { return m.Data2 } return nil } -// pageBlockParagraph#467a0766 text:RichText = PageBlock; -type TLPageBlockParagraph struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// chatInvite#db74f558 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:ChatPhoto participants_count:int participants:flags.4?Vector = ChatInvite; +type TLChatInvite struct { + Data2 *ChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockParagraph) Reset() { *m = TLPageBlockParagraph{} } -func (m *TLPageBlockParagraph) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockParagraph) ProtoMessage() {} -func (*TLPageBlockParagraph) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{908} +func (m *TLChatInvite) Reset() { *m = TLChatInvite{} } +func (m *TLChatInvite) String() string { return proto.CompactTextString(m) } +func (*TLChatInvite) ProtoMessage() {} +func (*TLChatInvite) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{862} } -func (m *TLPageBlockParagraph) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockParagraph.Unmarshal(m, b) +func (m *TLChatInvite) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChatInvite.Unmarshal(m, b) } -func (m *TLPageBlockParagraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockParagraph.Marshal(b, m, deterministic) +func (m *TLChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChatInvite.Marshal(b, m, deterministic) } -func (dst *TLPageBlockParagraph) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockParagraph.Merge(dst, src) +func (dst *TLChatInvite) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChatInvite.Merge(dst, src) } -func (m *TLPageBlockParagraph) XXX_Size() int { - return xxx_messageInfo_TLPageBlockParagraph.Size(m) +func (m *TLChatInvite) XXX_Size() int { + return xxx_messageInfo_TLChatInvite.Size(m) } -func (m *TLPageBlockParagraph) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockParagraph.DiscardUnknown(m) +func (m *TLChatInvite) XXX_DiscardUnknown() { + xxx_messageInfo_TLChatInvite.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockParagraph proto.InternalMessageInfo +var xxx_messageInfo_TLChatInvite proto.InternalMessageInfo -func (m *TLPageBlockParagraph) GetData2() *PageBlock_Data { +func (m *TLChatInvite) GetData2() *ChatInvite_Data { if m != nil { return m.Data2 } return nil } -// pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock; -type TLPageBlockPreformatted struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// BotCommand <-- +// + TL_botCommand +// +type BotCommand_Data struct { + Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockPreformatted) Reset() { *m = TLPageBlockPreformatted{} } -func (m *TLPageBlockPreformatted) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockPreformatted) ProtoMessage() {} -func (*TLPageBlockPreformatted) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{909} +func (m *BotCommand_Data) Reset() { *m = BotCommand_Data{} } +func (m *BotCommand_Data) String() string { return proto.CompactTextString(m) } +func (*BotCommand_Data) ProtoMessage() {} +func (*BotCommand_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{863} } -func (m *TLPageBlockPreformatted) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockPreformatted.Unmarshal(m, b) +func (m *BotCommand_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BotCommand_Data.Unmarshal(m, b) } -func (m *TLPageBlockPreformatted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockPreformatted.Marshal(b, m, deterministic) +func (m *BotCommand_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BotCommand_Data.Marshal(b, m, deterministic) } -func (dst *TLPageBlockPreformatted) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockPreformatted.Merge(dst, src) +func (dst *BotCommand_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_BotCommand_Data.Merge(dst, src) } -func (m *TLPageBlockPreformatted) XXX_Size() int { - return xxx_messageInfo_TLPageBlockPreformatted.Size(m) +func (m *BotCommand_Data) XXX_Size() int { + return xxx_messageInfo_BotCommand_Data.Size(m) } -func (m *TLPageBlockPreformatted) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockPreformatted.DiscardUnknown(m) +func (m *BotCommand_Data) XXX_DiscardUnknown() { + xxx_messageInfo_BotCommand_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockPreformatted proto.InternalMessageInfo +var xxx_messageInfo_BotCommand_Data proto.InternalMessageInfo -func (m *TLPageBlockPreformatted) GetData2() *PageBlock_Data { +func (m *BotCommand_Data) GetCommand() string { if m != nil { - return m.Data2 + return m.Command } - return nil + return "" } -// pageBlockFooter#48870999 text:RichText = PageBlock; -type TLPageBlockFooter struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *BotCommand_Data) GetDescription() string { + if m != nil { + return m.Description + } + return "" } -func (m *TLPageBlockFooter) Reset() { *m = TLPageBlockFooter{} } -func (m *TLPageBlockFooter) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockFooter) ProtoMessage() {} -func (*TLPageBlockFooter) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{910} +type BotCommand struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *BotCommand_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockFooter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockFooter.Unmarshal(m, b) + +func (m *BotCommand) Reset() { *m = BotCommand{} } +func (m *BotCommand) String() string { return proto.CompactTextString(m) } +func (*BotCommand) ProtoMessage() {} +func (*BotCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{864} } -func (m *TLPageBlockFooter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockFooter.Marshal(b, m, deterministic) +func (m *BotCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BotCommand.Unmarshal(m, b) } -func (dst *TLPageBlockFooter) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockFooter.Merge(dst, src) +func (m *BotCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BotCommand.Marshal(b, m, deterministic) } -func (m *TLPageBlockFooter) XXX_Size() int { - return xxx_messageInfo_TLPageBlockFooter.Size(m) +func (dst *BotCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_BotCommand.Merge(dst, src) } -func (m *TLPageBlockFooter) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockFooter.DiscardUnknown(m) +func (m *BotCommand) XXX_Size() int { + return xxx_messageInfo_BotCommand.Size(m) +} +func (m *BotCommand) XXX_DiscardUnknown() { + xxx_messageInfo_BotCommand.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockFooter proto.InternalMessageInfo +var xxx_messageInfo_BotCommand proto.InternalMessageInfo -func (m *TLPageBlockFooter) GetData2() *PageBlock_Data { +func (m *BotCommand) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *BotCommand) GetData2() *BotCommand_Data { if m != nil { return m.Data2 } return nil } -// pageBlockDivider#db20b188 = PageBlock; -type TLPageBlockDivider struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// botCommand#c27ac8c7 command:string description:string = BotCommand; +type TLBotCommand struct { + Data2 *BotCommand_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockDivider) Reset() { *m = TLPageBlockDivider{} } -func (m *TLPageBlockDivider) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockDivider) ProtoMessage() {} -func (*TLPageBlockDivider) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{911} +func (m *TLBotCommand) Reset() { *m = TLBotCommand{} } +func (m *TLBotCommand) String() string { return proto.CompactTextString(m) } +func (*TLBotCommand) ProtoMessage() {} +func (*TLBotCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{865} } -func (m *TLPageBlockDivider) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockDivider.Unmarshal(m, b) +func (m *TLBotCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBotCommand.Unmarshal(m, b) } -func (m *TLPageBlockDivider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockDivider.Marshal(b, m, deterministic) +func (m *TLBotCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBotCommand.Marshal(b, m, deterministic) } -func (dst *TLPageBlockDivider) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockDivider.Merge(dst, src) +func (dst *TLBotCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBotCommand.Merge(dst, src) } -func (m *TLPageBlockDivider) XXX_Size() int { - return xxx_messageInfo_TLPageBlockDivider.Size(m) +func (m *TLBotCommand) XXX_Size() int { + return xxx_messageInfo_TLBotCommand.Size(m) } -func (m *TLPageBlockDivider) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockDivider.DiscardUnknown(m) +func (m *TLBotCommand) XXX_DiscardUnknown() { + xxx_messageInfo_TLBotCommand.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockDivider proto.InternalMessageInfo +var xxx_messageInfo_TLBotCommand proto.InternalMessageInfo -func (m *TLPageBlockDivider) GetData2() *PageBlock_Data { +func (m *TLBotCommand) GetData2() *BotCommand_Data { if m != nil { return m.Data2 } return nil } -// pageBlockAnchor#ce0d37b0 name:string = PageBlock; -type TLPageBlockAnchor struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// SecureSecretSettings <-- +// + TL_secureSecretSettings +// +type SecureSecretSettings_Data struct { + SecureAlgo *SecurePasswordKdfAlgo `protobuf:"bytes,1,opt,name=secure_algo,json=secureAlgo,proto3" json:"secure_algo,omitempty"` + SecureSecret []byte `protobuf:"bytes,2,opt,name=secure_secret,json=secureSecret,proto3" json:"secure_secret,omitempty"` + SecureSecretId int64 `protobuf:"varint,3,opt,name=secure_secret_id,json=secureSecretId,proto3" json:"secure_secret_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockAnchor) Reset() { *m = TLPageBlockAnchor{} } -func (m *TLPageBlockAnchor) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockAnchor) ProtoMessage() {} -func (*TLPageBlockAnchor) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{912} +func (m *SecureSecretSettings_Data) Reset() { *m = SecureSecretSettings_Data{} } +func (m *SecureSecretSettings_Data) String() string { return proto.CompactTextString(m) } +func (*SecureSecretSettings_Data) ProtoMessage() {} +func (*SecureSecretSettings_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{866} } -func (m *TLPageBlockAnchor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockAnchor.Unmarshal(m, b) +func (m *SecureSecretSettings_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureSecretSettings_Data.Unmarshal(m, b) } -func (m *TLPageBlockAnchor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockAnchor.Marshal(b, m, deterministic) +func (m *SecureSecretSettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureSecretSettings_Data.Marshal(b, m, deterministic) } -func (dst *TLPageBlockAnchor) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockAnchor.Merge(dst, src) +func (dst *SecureSecretSettings_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureSecretSettings_Data.Merge(dst, src) } -func (m *TLPageBlockAnchor) XXX_Size() int { - return xxx_messageInfo_TLPageBlockAnchor.Size(m) +func (m *SecureSecretSettings_Data) XXX_Size() int { + return xxx_messageInfo_SecureSecretSettings_Data.Size(m) } -func (m *TLPageBlockAnchor) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockAnchor.DiscardUnknown(m) +func (m *SecureSecretSettings_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecureSecretSettings_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockAnchor proto.InternalMessageInfo +var xxx_messageInfo_SecureSecretSettings_Data proto.InternalMessageInfo -func (m *TLPageBlockAnchor) GetData2() *PageBlock_Data { +func (m *SecureSecretSettings_Data) GetSecureAlgo() *SecurePasswordKdfAlgo { if m != nil { - return m.Data2 + return m.SecureAlgo } return nil } -// pageBlockList#3a58c7f4 ordered:Bool items:Vector = PageBlock; -type TLPageBlockList struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *SecureSecretSettings_Data) GetSecureSecret() []byte { + if m != nil { + return m.SecureSecret + } + return nil } -func (m *TLPageBlockList) Reset() { *m = TLPageBlockList{} } -func (m *TLPageBlockList) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockList) ProtoMessage() {} -func (*TLPageBlockList) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{913} +func (m *SecureSecretSettings_Data) GetSecureSecretId() int64 { + if m != nil { + return m.SecureSecretId + } + return 0 } -func (m *TLPageBlockList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockList.Unmarshal(m, b) + +type SecureSecretSettings struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SecureSecretSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockList.Marshal(b, m, deterministic) + +func (m *SecureSecretSettings) Reset() { *m = SecureSecretSettings{} } +func (m *SecureSecretSettings) String() string { return proto.CompactTextString(m) } +func (*SecureSecretSettings) ProtoMessage() {} +func (*SecureSecretSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{867} } -func (dst *TLPageBlockList) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockList.Merge(dst, src) +func (m *SecureSecretSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureSecretSettings.Unmarshal(m, b) } -func (m *TLPageBlockList) XXX_Size() int { - return xxx_messageInfo_TLPageBlockList.Size(m) +func (m *SecureSecretSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureSecretSettings.Marshal(b, m, deterministic) } -func (m *TLPageBlockList) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockList.DiscardUnknown(m) +func (dst *SecureSecretSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureSecretSettings.Merge(dst, src) +} +func (m *SecureSecretSettings) XXX_Size() int { + return xxx_messageInfo_SecureSecretSettings.Size(m) +} +func (m *SecureSecretSettings) XXX_DiscardUnknown() { + xxx_messageInfo_SecureSecretSettings.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockList proto.InternalMessageInfo +var xxx_messageInfo_SecureSecretSettings proto.InternalMessageInfo -func (m *TLPageBlockList) GetData2() *PageBlock_Data { +func (m *SecureSecretSettings) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *SecureSecretSettings) GetData2() *SecureSecretSettings_Data { if m != nil { return m.Data2 } return nil } -// pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock; -type TLPageBlockBlockquote struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings; +type TLSecureSecretSettings struct { + Data2 *SecureSecretSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockBlockquote) Reset() { *m = TLPageBlockBlockquote{} } -func (m *TLPageBlockBlockquote) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockBlockquote) ProtoMessage() {} -func (*TLPageBlockBlockquote) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{914} +func (m *TLSecureSecretSettings) Reset() { *m = TLSecureSecretSettings{} } +func (m *TLSecureSecretSettings) String() string { return proto.CompactTextString(m) } +func (*TLSecureSecretSettings) ProtoMessage() {} +func (*TLSecureSecretSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{868} } -func (m *TLPageBlockBlockquote) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockBlockquote.Unmarshal(m, b) +func (m *TLSecureSecretSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureSecretSettings.Unmarshal(m, b) } -func (m *TLPageBlockBlockquote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockBlockquote.Marshal(b, m, deterministic) +func (m *TLSecureSecretSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureSecretSettings.Marshal(b, m, deterministic) } -func (dst *TLPageBlockBlockquote) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockBlockquote.Merge(dst, src) +func (dst *TLSecureSecretSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureSecretSettings.Merge(dst, src) } -func (m *TLPageBlockBlockquote) XXX_Size() int { - return xxx_messageInfo_TLPageBlockBlockquote.Size(m) +func (m *TLSecureSecretSettings) XXX_Size() int { + return xxx_messageInfo_TLSecureSecretSettings.Size(m) } -func (m *TLPageBlockBlockquote) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockBlockquote.DiscardUnknown(m) +func (m *TLSecureSecretSettings) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureSecretSettings.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockBlockquote proto.InternalMessageInfo +var xxx_messageInfo_TLSecureSecretSettings proto.InternalMessageInfo -func (m *TLPageBlockBlockquote) GetData2() *PageBlock_Data { +func (m *TLSecureSecretSettings) GetData2() *SecureSecretSettings_Data { if m != nil { return m.Data2 } return nil } -// pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock; -type TLPageBlockPullquote struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// contacts_ImportedContacts <-- +// + TL_contacts_importedContacts +// +type Contacts_ImportedContacts_Data struct { + Imported []*ImportedContact `protobuf:"bytes,1,rep,name=imported,proto3" json:"imported,omitempty"` + PopularInvites []*PopularContact `protobuf:"bytes,2,rep,name=popular_invites,json=popularInvites,proto3" json:"popular_invites,omitempty"` + RetryContacts []int64 `protobuf:"varint,3,rep,packed,name=retry_contacts,json=retryContacts,proto3" json:"retry_contacts,omitempty"` + Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockPullquote) Reset() { *m = TLPageBlockPullquote{} } -func (m *TLPageBlockPullquote) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockPullquote) ProtoMessage() {} -func (*TLPageBlockPullquote) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{915} +func (m *Contacts_ImportedContacts_Data) Reset() { *m = Contacts_ImportedContacts_Data{} } +func (m *Contacts_ImportedContacts_Data) String() string { return proto.CompactTextString(m) } +func (*Contacts_ImportedContacts_Data) ProtoMessage() {} +func (*Contacts_ImportedContacts_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{869} } -func (m *TLPageBlockPullquote) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockPullquote.Unmarshal(m, b) +func (m *Contacts_ImportedContacts_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_ImportedContacts_Data.Unmarshal(m, b) } -func (m *TLPageBlockPullquote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockPullquote.Marshal(b, m, deterministic) +func (m *Contacts_ImportedContacts_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_ImportedContacts_Data.Marshal(b, m, deterministic) } -func (dst *TLPageBlockPullquote) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockPullquote.Merge(dst, src) +func (dst *Contacts_ImportedContacts_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_ImportedContacts_Data.Merge(dst, src) } -func (m *TLPageBlockPullquote) XXX_Size() int { - return xxx_messageInfo_TLPageBlockPullquote.Size(m) +func (m *Contacts_ImportedContacts_Data) XXX_Size() int { + return xxx_messageInfo_Contacts_ImportedContacts_Data.Size(m) } -func (m *TLPageBlockPullquote) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockPullquote.DiscardUnknown(m) +func (m *Contacts_ImportedContacts_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_ImportedContacts_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockPullquote proto.InternalMessageInfo +var xxx_messageInfo_Contacts_ImportedContacts_Data proto.InternalMessageInfo -func (m *TLPageBlockPullquote) GetData2() *PageBlock_Data { +func (m *Contacts_ImportedContacts_Data) GetImported() []*ImportedContact { if m != nil { - return m.Data2 + return m.Imported } return nil } -// pageBlockPhoto#e9c69982 photo_id:long caption:RichText = PageBlock; -type TLPageBlockPhoto struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Contacts_ImportedContacts_Data) GetPopularInvites() []*PopularContact { + if m != nil { + return m.PopularInvites + } + return nil } -func (m *TLPageBlockPhoto) Reset() { *m = TLPageBlockPhoto{} } -func (m *TLPageBlockPhoto) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockPhoto) ProtoMessage() {} -func (*TLPageBlockPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{916} -} -func (m *TLPageBlockPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockPhoto.Unmarshal(m, b) -} -func (m *TLPageBlockPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockPhoto.Marshal(b, m, deterministic) -} -func (dst *TLPageBlockPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockPhoto.Merge(dst, src) -} -func (m *TLPageBlockPhoto) XXX_Size() int { - return xxx_messageInfo_TLPageBlockPhoto.Size(m) -} -func (m *TLPageBlockPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockPhoto.DiscardUnknown(m) +func (m *Contacts_ImportedContacts_Data) GetRetryContacts() []int64 { + if m != nil { + return m.RetryContacts + } + return nil } -var xxx_messageInfo_TLPageBlockPhoto proto.InternalMessageInfo - -func (m *TLPageBlockPhoto) GetData2() *PageBlock_Data { +func (m *Contacts_ImportedContacts_Data) GetUsers() []*User { if m != nil { - return m.Data2 + return m.Users } return nil } -// pageBlockVideo#d9d71866 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:RichText = PageBlock; -type TLPageBlockVideo struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Contacts_ImportedContacts struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Contacts_ImportedContacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockVideo) Reset() { *m = TLPageBlockVideo{} } -func (m *TLPageBlockVideo) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockVideo) ProtoMessage() {} -func (*TLPageBlockVideo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{917} +func (m *Contacts_ImportedContacts) Reset() { *m = Contacts_ImportedContacts{} } +func (m *Contacts_ImportedContacts) String() string { return proto.CompactTextString(m) } +func (*Contacts_ImportedContacts) ProtoMessage() {} +func (*Contacts_ImportedContacts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{870} } -func (m *TLPageBlockVideo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockVideo.Unmarshal(m, b) +func (m *Contacts_ImportedContacts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_ImportedContacts.Unmarshal(m, b) } -func (m *TLPageBlockVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockVideo.Marshal(b, m, deterministic) +func (m *Contacts_ImportedContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_ImportedContacts.Marshal(b, m, deterministic) } -func (dst *TLPageBlockVideo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockVideo.Merge(dst, src) +func (dst *Contacts_ImportedContacts) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_ImportedContacts.Merge(dst, src) } -func (m *TLPageBlockVideo) XXX_Size() int { - return xxx_messageInfo_TLPageBlockVideo.Size(m) +func (m *Contacts_ImportedContacts) XXX_Size() int { + return xxx_messageInfo_Contacts_ImportedContacts.Size(m) } -func (m *TLPageBlockVideo) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockVideo.DiscardUnknown(m) +func (m *Contacts_ImportedContacts) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_ImportedContacts.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockVideo proto.InternalMessageInfo +var xxx_messageInfo_Contacts_ImportedContacts proto.InternalMessageInfo -func (m *TLPageBlockVideo) GetData2() *PageBlock_Data { +func (m *Contacts_ImportedContacts) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Contacts_ImportedContacts) GetData2() *Contacts_ImportedContacts_Data { if m != nil { return m.Data2 } return nil } -// pageBlockCover#39f23300 cover:PageBlock = PageBlock; -type TLPageBlockCover struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// contacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts; +type TLContactsImportedContacts struct { + Data2 *Contacts_ImportedContacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockCover) Reset() { *m = TLPageBlockCover{} } -func (m *TLPageBlockCover) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockCover) ProtoMessage() {} -func (*TLPageBlockCover) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{918} +func (m *TLContactsImportedContacts) Reset() { *m = TLContactsImportedContacts{} } +func (m *TLContactsImportedContacts) String() string { return proto.CompactTextString(m) } +func (*TLContactsImportedContacts) ProtoMessage() {} +func (*TLContactsImportedContacts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{871} } -func (m *TLPageBlockCover) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockCover.Unmarshal(m, b) +func (m *TLContactsImportedContacts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsImportedContacts.Unmarshal(m, b) } -func (m *TLPageBlockCover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockCover.Marshal(b, m, deterministic) +func (m *TLContactsImportedContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsImportedContacts.Marshal(b, m, deterministic) } -func (dst *TLPageBlockCover) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockCover.Merge(dst, src) +func (dst *TLContactsImportedContacts) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsImportedContacts.Merge(dst, src) } -func (m *TLPageBlockCover) XXX_Size() int { - return xxx_messageInfo_TLPageBlockCover.Size(m) +func (m *TLContactsImportedContacts) XXX_Size() int { + return xxx_messageInfo_TLContactsImportedContacts.Size(m) } -func (m *TLPageBlockCover) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockCover.DiscardUnknown(m) +func (m *TLContactsImportedContacts) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsImportedContacts.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockCover proto.InternalMessageInfo +var xxx_messageInfo_TLContactsImportedContacts proto.InternalMessageInfo -func (m *TLPageBlockCover) GetData2() *PageBlock_Data { +func (m *TLContactsImportedContacts) GetData2() *Contacts_ImportedContacts_Data { if m != nil { return m.Data2 } return nil } -// pageBlockEmbed#cde200d1 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:int h:int caption:RichText = PageBlock; -type TLPageBlockEmbed struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// MessagesFilter <-- +// + TL_inputMessagesFilterEmpty +// + TL_inputMessagesFilterPhotos +// + TL_inputMessagesFilterVideo +// + TL_inputMessagesFilterPhotoVideo +// + TL_inputMessagesFilterDocument +// + TL_inputMessagesFilterUrl +// + TL_inputMessagesFilterGif +// + TL_inputMessagesFilterVoice +// + TL_inputMessagesFilterMusic +// + TL_inputMessagesFilterChatPhotos +// + TL_inputMessagesFilterPhoneCalls +// + TL_inputMessagesFilterRoundVoice +// + TL_inputMessagesFilterRoundVideo +// + TL_inputMessagesFilterMyMentions +// + TL_inputMessagesFilterGeo +// + TL_inputMessagesFilterContacts +// +type MessagesFilter_Data struct { + Missed bool `protobuf:"varint,1,opt,name=missed,proto3" json:"missed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockEmbed) Reset() { *m = TLPageBlockEmbed{} } -func (m *TLPageBlockEmbed) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockEmbed) ProtoMessage() {} -func (*TLPageBlockEmbed) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{919} +func (m *MessagesFilter_Data) Reset() { *m = MessagesFilter_Data{} } +func (m *MessagesFilter_Data) String() string { return proto.CompactTextString(m) } +func (*MessagesFilter_Data) ProtoMessage() {} +func (*MessagesFilter_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{872} } -func (m *TLPageBlockEmbed) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockEmbed.Unmarshal(m, b) +func (m *MessagesFilter_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessagesFilter_Data.Unmarshal(m, b) } -func (m *TLPageBlockEmbed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockEmbed.Marshal(b, m, deterministic) +func (m *MessagesFilter_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessagesFilter_Data.Marshal(b, m, deterministic) } -func (dst *TLPageBlockEmbed) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockEmbed.Merge(dst, src) +func (dst *MessagesFilter_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessagesFilter_Data.Merge(dst, src) } -func (m *TLPageBlockEmbed) XXX_Size() int { - return xxx_messageInfo_TLPageBlockEmbed.Size(m) +func (m *MessagesFilter_Data) XXX_Size() int { + return xxx_messageInfo_MessagesFilter_Data.Size(m) } -func (m *TLPageBlockEmbed) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockEmbed.DiscardUnknown(m) +func (m *MessagesFilter_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MessagesFilter_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockEmbed proto.InternalMessageInfo +var xxx_messageInfo_MessagesFilter_Data proto.InternalMessageInfo -func (m *TLPageBlockEmbed) GetData2() *PageBlock_Data { +func (m *MessagesFilter_Data) GetMissed() bool { if m != nil { - return m.Data2 + return m.Missed } - return nil + return false } -// pageBlockEmbedPost#292c7be9 url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:RichText = PageBlock; -type TLPageBlockEmbedPost struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MessagesFilter struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockEmbedPost) Reset() { *m = TLPageBlockEmbedPost{} } -func (m *TLPageBlockEmbedPost) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockEmbedPost) ProtoMessage() {} -func (*TLPageBlockEmbedPost) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{920} +func (m *MessagesFilter) Reset() { *m = MessagesFilter{} } +func (m *MessagesFilter) String() string { return proto.CompactTextString(m) } +func (*MessagesFilter) ProtoMessage() {} +func (*MessagesFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{873} } -func (m *TLPageBlockEmbedPost) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockEmbedPost.Unmarshal(m, b) +func (m *MessagesFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessagesFilter.Unmarshal(m, b) } -func (m *TLPageBlockEmbedPost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockEmbedPost.Marshal(b, m, deterministic) +func (m *MessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessagesFilter.Marshal(b, m, deterministic) } -func (dst *TLPageBlockEmbedPost) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockEmbedPost.Merge(dst, src) +func (dst *MessagesFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessagesFilter.Merge(dst, src) } -func (m *TLPageBlockEmbedPost) XXX_Size() int { - return xxx_messageInfo_TLPageBlockEmbedPost.Size(m) +func (m *MessagesFilter) XXX_Size() int { + return xxx_messageInfo_MessagesFilter.Size(m) } -func (m *TLPageBlockEmbedPost) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockEmbedPost.DiscardUnknown(m) +func (m *MessagesFilter) XXX_DiscardUnknown() { + xxx_messageInfo_MessagesFilter.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockEmbedPost proto.InternalMessageInfo +var xxx_messageInfo_MessagesFilter proto.InternalMessageInfo -func (m *TLPageBlockEmbedPost) GetData2() *PageBlock_Data { +func (m *MessagesFilter) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *MessagesFilter) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// pageBlockCollage#8b31c4f items:Vector caption:RichText = PageBlock; -type TLPageBlockCollage struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterEmpty#57e2f66c = MessagesFilter; +type TLInputMessagesFilterEmpty struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockCollage) Reset() { *m = TLPageBlockCollage{} } -func (m *TLPageBlockCollage) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockCollage) ProtoMessage() {} -func (*TLPageBlockCollage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{921} +func (m *TLInputMessagesFilterEmpty) Reset() { *m = TLInputMessagesFilterEmpty{} } +func (m *TLInputMessagesFilterEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterEmpty) ProtoMessage() {} +func (*TLInputMessagesFilterEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{874} } -func (m *TLPageBlockCollage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockCollage.Unmarshal(m, b) +func (m *TLInputMessagesFilterEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterEmpty.Unmarshal(m, b) } -func (m *TLPageBlockCollage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockCollage.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterEmpty.Marshal(b, m, deterministic) } -func (dst *TLPageBlockCollage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockCollage.Merge(dst, src) +func (dst *TLInputMessagesFilterEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterEmpty.Merge(dst, src) } -func (m *TLPageBlockCollage) XXX_Size() int { - return xxx_messageInfo_TLPageBlockCollage.Size(m) +func (m *TLInputMessagesFilterEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterEmpty.Size(m) } -func (m *TLPageBlockCollage) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockCollage.DiscardUnknown(m) +func (m *TLInputMessagesFilterEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockCollage proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterEmpty proto.InternalMessageInfo -func (m *TLPageBlockCollage) GetData2() *PageBlock_Data { +func (m *TLInputMessagesFilterEmpty) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// pageBlockSlideshow#130c8963 items:Vector caption:RichText = PageBlock; -type TLPageBlockSlideshow struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterPhotos#9609a51c = MessagesFilter; +type TLInputMessagesFilterPhotos struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockSlideshow) Reset() { *m = TLPageBlockSlideshow{} } -func (m *TLPageBlockSlideshow) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockSlideshow) ProtoMessage() {} -func (*TLPageBlockSlideshow) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{922} +func (m *TLInputMessagesFilterPhotos) Reset() { *m = TLInputMessagesFilterPhotos{} } +func (m *TLInputMessagesFilterPhotos) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterPhotos) ProtoMessage() {} +func (*TLInputMessagesFilterPhotos) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{875} } -func (m *TLPageBlockSlideshow) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockSlideshow.Unmarshal(m, b) +func (m *TLInputMessagesFilterPhotos) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterPhotos.Unmarshal(m, b) } -func (m *TLPageBlockSlideshow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockSlideshow.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterPhotos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterPhotos.Marshal(b, m, deterministic) } -func (dst *TLPageBlockSlideshow) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockSlideshow.Merge(dst, src) +func (dst *TLInputMessagesFilterPhotos) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterPhotos.Merge(dst, src) } -func (m *TLPageBlockSlideshow) XXX_Size() int { - return xxx_messageInfo_TLPageBlockSlideshow.Size(m) +func (m *TLInputMessagesFilterPhotos) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterPhotos.Size(m) } -func (m *TLPageBlockSlideshow) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockSlideshow.DiscardUnknown(m) +func (m *TLInputMessagesFilterPhotos) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterPhotos.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockSlideshow proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterPhotos proto.InternalMessageInfo -func (m *TLPageBlockSlideshow) GetData2() *PageBlock_Data { +func (m *TLInputMessagesFilterPhotos) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// pageBlockChannel#ef1751b5 channel:Chat = PageBlock; -type TLPageBlockChannel struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterVideo#9fc00e65 = MessagesFilter; +type TLInputMessagesFilterVideo struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockChannel) Reset() { *m = TLPageBlockChannel{} } -func (m *TLPageBlockChannel) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockChannel) ProtoMessage() {} -func (*TLPageBlockChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{923} +func (m *TLInputMessagesFilterVideo) Reset() { *m = TLInputMessagesFilterVideo{} } +func (m *TLInputMessagesFilterVideo) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterVideo) ProtoMessage() {} +func (*TLInputMessagesFilterVideo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{876} } -func (m *TLPageBlockChannel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockChannel.Unmarshal(m, b) +func (m *TLInputMessagesFilterVideo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterVideo.Unmarshal(m, b) } -func (m *TLPageBlockChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockChannel.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterVideo.Marshal(b, m, deterministic) } -func (dst *TLPageBlockChannel) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockChannel.Merge(dst, src) +func (dst *TLInputMessagesFilterVideo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterVideo.Merge(dst, src) } -func (m *TLPageBlockChannel) XXX_Size() int { - return xxx_messageInfo_TLPageBlockChannel.Size(m) +func (m *TLInputMessagesFilterVideo) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterVideo.Size(m) } -func (m *TLPageBlockChannel) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockChannel.DiscardUnknown(m) +func (m *TLInputMessagesFilterVideo) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterVideo.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockChannel proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterVideo proto.InternalMessageInfo -func (m *TLPageBlockChannel) GetData2() *PageBlock_Data { +func (m *TLInputMessagesFilterVideo) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// pageBlockAudio#31b81a7f audio_id:long caption:RichText = PageBlock; -type TLPageBlockAudio struct { - Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter; +type TLInputMessagesFilterPhotoVideo struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPageBlockAudio) Reset() { *m = TLPageBlockAudio{} } -func (m *TLPageBlockAudio) String() string { return proto.CompactTextString(m) } -func (*TLPageBlockAudio) ProtoMessage() {} -func (*TLPageBlockAudio) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{924} +func (m *TLInputMessagesFilterPhotoVideo) Reset() { *m = TLInputMessagesFilterPhotoVideo{} } +func (m *TLInputMessagesFilterPhotoVideo) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterPhotoVideo) ProtoMessage() {} +func (*TLInputMessagesFilterPhotoVideo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{877} } -func (m *TLPageBlockAudio) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPageBlockAudio.Unmarshal(m, b) +func (m *TLInputMessagesFilterPhotoVideo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterPhotoVideo.Unmarshal(m, b) } -func (m *TLPageBlockAudio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPageBlockAudio.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterPhotoVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterPhotoVideo.Marshal(b, m, deterministic) } -func (dst *TLPageBlockAudio) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPageBlockAudio.Merge(dst, src) +func (dst *TLInputMessagesFilterPhotoVideo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterPhotoVideo.Merge(dst, src) } -func (m *TLPageBlockAudio) XXX_Size() int { - return xxx_messageInfo_TLPageBlockAudio.Size(m) +func (m *TLInputMessagesFilterPhotoVideo) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterPhotoVideo.Size(m) } -func (m *TLPageBlockAudio) XXX_DiscardUnknown() { - xxx_messageInfo_TLPageBlockAudio.DiscardUnknown(m) +func (m *TLInputMessagesFilterPhotoVideo) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterPhotoVideo.DiscardUnknown(m) } -var xxx_messageInfo_TLPageBlockAudio proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterPhotoVideo proto.InternalMessageInfo -func (m *TLPageBlockAudio) GetData2() *PageBlock_Data { +func (m *TLInputMessagesFilterPhotoVideo) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Document <-- -// + TL_documentEmpty -// + TL_document -// + TL_documentLayer86 -// -type Document_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` - MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - Size int32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` - Thumb *PhotoSize `protobuf:"bytes,6,opt,name=thumb,proto3" json:"thumb,omitempty"` - DcId int32 `protobuf:"varint,7,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` - Version int32 `protobuf:"varint,8,opt,name=version,proto3" json:"version,omitempty"` - Attributes []*DocumentAttribute `protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes,omitempty"` - FileReference []byte `protobuf:"bytes,10,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` +// inputMessagesFilterDocument#9eddf188 = MessagesFilter; +type TLInputMessagesFilterDocument struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Document_Data) Reset() { *m = Document_Data{} } -func (m *Document_Data) String() string { return proto.CompactTextString(m) } -func (*Document_Data) ProtoMessage() {} -func (*Document_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{925} +func (m *TLInputMessagesFilterDocument) Reset() { *m = TLInputMessagesFilterDocument{} } +func (m *TLInputMessagesFilterDocument) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterDocument) ProtoMessage() {} +func (*TLInputMessagesFilterDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{878} } -func (m *Document_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Document_Data.Unmarshal(m, b) +func (m *TLInputMessagesFilterDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterDocument.Unmarshal(m, b) } -func (m *Document_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Document_Data.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterDocument.Marshal(b, m, deterministic) } -func (dst *Document_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Document_Data.Merge(dst, src) +func (dst *TLInputMessagesFilterDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterDocument.Merge(dst, src) } -func (m *Document_Data) XXX_Size() int { - return xxx_messageInfo_Document_Data.Size(m) +func (m *TLInputMessagesFilterDocument) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterDocument.Size(m) } -func (m *Document_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Document_Data.DiscardUnknown(m) +func (m *TLInputMessagesFilterDocument) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterDocument.DiscardUnknown(m) } -var xxx_messageInfo_Document_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterDocument proto.InternalMessageInfo -func (m *Document_Data) GetId() int64 { +func (m *TLInputMessagesFilterDocument) GetData2() *MessagesFilter_Data { if m != nil { - return m.Id + return m.Data2 } - return 0 + return nil } -func (m *Document_Data) GetAccessHash() int64 { - if m != nil { - return m.AccessHash - } - return 0 +// inputMessagesFilterUrl#7ef0dd87 = MessagesFilter; +type TLInputMessagesFilterUrl struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Document_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 +func (m *TLInputMessagesFilterUrl) Reset() { *m = TLInputMessagesFilterUrl{} } +func (m *TLInputMessagesFilterUrl) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterUrl) ProtoMessage() {} +func (*TLInputMessagesFilterUrl) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{879} } - -func (m *Document_Data) GetMimeType() string { - if m != nil { - return m.MimeType - } - return "" +func (m *TLInputMessagesFilterUrl) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterUrl.Unmarshal(m, b) } - -func (m *Document_Data) GetSize() int32 { - if m != nil { - return m.Size - } - return 0 +func (m *TLInputMessagesFilterUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterUrl.Marshal(b, m, deterministic) } - -func (m *Document_Data) GetThumb() *PhotoSize { - if m != nil { - return m.Thumb - } - return nil +func (dst *TLInputMessagesFilterUrl) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterUrl.Merge(dst, src) } - -func (m *Document_Data) GetDcId() int32 { - if m != nil { - return m.DcId - } - return 0 +func (m *TLInputMessagesFilterUrl) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterUrl.Size(m) } - -func (m *Document_Data) GetVersion() int32 { - if m != nil { - return m.Version - } - return 0 +func (m *TLInputMessagesFilterUrl) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterUrl.DiscardUnknown(m) } -func (m *Document_Data) GetAttributes() []*DocumentAttribute { - if m != nil { - return m.Attributes - } - return nil -} +var xxx_messageInfo_TLInputMessagesFilterUrl proto.InternalMessageInfo -func (m *Document_Data) GetFileReference() []byte { +func (m *TLInputMessagesFilterUrl) GetData2() *MessagesFilter_Data { if m != nil { - return m.FileReference + return m.Data2 } return nil } -type Document struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Document_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterGif#ffc86587 = MessagesFilter; +type TLInputMessagesFilterGif struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Document) Reset() { *m = Document{} } -func (m *Document) String() string { return proto.CompactTextString(m) } -func (*Document) ProtoMessage() {} -func (*Document) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{926} +func (m *TLInputMessagesFilterGif) Reset() { *m = TLInputMessagesFilterGif{} } +func (m *TLInputMessagesFilterGif) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterGif) ProtoMessage() {} +func (*TLInputMessagesFilterGif) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{880} } -func (m *Document) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Document.Unmarshal(m, b) +func (m *TLInputMessagesFilterGif) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterGif.Unmarshal(m, b) } -func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Document.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterGif) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterGif.Marshal(b, m, deterministic) } -func (dst *Document) XXX_Merge(src proto.Message) { - xxx_messageInfo_Document.Merge(dst, src) +func (dst *TLInputMessagesFilterGif) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterGif.Merge(dst, src) } -func (m *Document) XXX_Size() int { - return xxx_messageInfo_Document.Size(m) +func (m *TLInputMessagesFilterGif) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterGif.Size(m) } -func (m *Document) XXX_DiscardUnknown() { - xxx_messageInfo_Document.DiscardUnknown(m) +func (m *TLInputMessagesFilterGif) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterGif.DiscardUnknown(m) } -var xxx_messageInfo_Document proto.InternalMessageInfo - -func (m *Document) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputMessagesFilterGif proto.InternalMessageInfo -func (m *Document) GetData2() *Document_Data { +func (m *TLInputMessagesFilterGif) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// documentEmpty#36f8c871 id:long = Document; -type TLDocumentEmpty struct { - Data2 *Document_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterVoice#50f5c392 = MessagesFilter; +type TLInputMessagesFilterVoice struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDocumentEmpty) Reset() { *m = TLDocumentEmpty{} } -func (m *TLDocumentEmpty) String() string { return proto.CompactTextString(m) } -func (*TLDocumentEmpty) ProtoMessage() {} -func (*TLDocumentEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{927} +func (m *TLInputMessagesFilterVoice) Reset() { *m = TLInputMessagesFilterVoice{} } +func (m *TLInputMessagesFilterVoice) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterVoice) ProtoMessage() {} +func (*TLInputMessagesFilterVoice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{881} } -func (m *TLDocumentEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocumentEmpty.Unmarshal(m, b) +func (m *TLInputMessagesFilterVoice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterVoice.Unmarshal(m, b) } -func (m *TLDocumentEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocumentEmpty.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterVoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterVoice.Marshal(b, m, deterministic) } -func (dst *TLDocumentEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocumentEmpty.Merge(dst, src) +func (dst *TLInputMessagesFilterVoice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterVoice.Merge(dst, src) } -func (m *TLDocumentEmpty) XXX_Size() int { - return xxx_messageInfo_TLDocumentEmpty.Size(m) +func (m *TLInputMessagesFilterVoice) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterVoice.Size(m) } -func (m *TLDocumentEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocumentEmpty.DiscardUnknown(m) +func (m *TLInputMessagesFilterVoice) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterVoice.DiscardUnknown(m) } -var xxx_messageInfo_TLDocumentEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterVoice proto.InternalMessageInfo -func (m *TLDocumentEmpty) GetData2() *Document_Data { +func (m *TLInputMessagesFilterVoice) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// document#87232bc7 id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int version:int attributes:Vector = Document; -type TLDocument struct { - Data2 *Document_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterMusic#3751b49e = MessagesFilter; +type TLInputMessagesFilterMusic struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDocument) Reset() { *m = TLDocument{} } -func (m *TLDocument) String() string { return proto.CompactTextString(m) } -func (*TLDocument) ProtoMessage() {} -func (*TLDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{928} +func (m *TLInputMessagesFilterMusic) Reset() { *m = TLInputMessagesFilterMusic{} } +func (m *TLInputMessagesFilterMusic) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterMusic) ProtoMessage() {} +func (*TLInputMessagesFilterMusic) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{882} } -func (m *TLDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocument.Unmarshal(m, b) +func (m *TLInputMessagesFilterMusic) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterMusic.Unmarshal(m, b) } -func (m *TLDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocument.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterMusic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterMusic.Marshal(b, m, deterministic) } -func (dst *TLDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocument.Merge(dst, src) +func (dst *TLInputMessagesFilterMusic) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterMusic.Merge(dst, src) } -func (m *TLDocument) XXX_Size() int { - return xxx_messageInfo_TLDocument.Size(m) +func (m *TLInputMessagesFilterMusic) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterMusic.Size(m) } -func (m *TLDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocument.DiscardUnknown(m) +func (m *TLInputMessagesFilterMusic) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterMusic.DiscardUnknown(m) } -var xxx_messageInfo_TLDocument proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterMusic proto.InternalMessageInfo -func (m *TLDocument) GetData2() *Document_Data { +func (m *TLInputMessagesFilterMusic) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// document#59534e4c id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = Document; -type TLDocumentLayer86 struct { - Data2 *Document_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter; +type TLInputMessagesFilterChatPhotos struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDocumentLayer86) Reset() { *m = TLDocumentLayer86{} } -func (m *TLDocumentLayer86) String() string { return proto.CompactTextString(m) } -func (*TLDocumentLayer86) ProtoMessage() {} -func (*TLDocumentLayer86) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{929} +func (m *TLInputMessagesFilterChatPhotos) Reset() { *m = TLInputMessagesFilterChatPhotos{} } +func (m *TLInputMessagesFilterChatPhotos) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterChatPhotos) ProtoMessage() {} +func (*TLInputMessagesFilterChatPhotos) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{883} } -func (m *TLDocumentLayer86) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDocumentLayer86.Unmarshal(m, b) +func (m *TLInputMessagesFilterChatPhotos) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterChatPhotos.Unmarshal(m, b) } -func (m *TLDocumentLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDocumentLayer86.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterChatPhotos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterChatPhotos.Marshal(b, m, deterministic) } -func (dst *TLDocumentLayer86) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDocumentLayer86.Merge(dst, src) +func (dst *TLInputMessagesFilterChatPhotos) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterChatPhotos.Merge(dst, src) } -func (m *TLDocumentLayer86) XXX_Size() int { - return xxx_messageInfo_TLDocumentLayer86.Size(m) +func (m *TLInputMessagesFilterChatPhotos) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterChatPhotos.Size(m) } -func (m *TLDocumentLayer86) XXX_DiscardUnknown() { - xxx_messageInfo_TLDocumentLayer86.DiscardUnknown(m) +func (m *TLInputMessagesFilterChatPhotos) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterChatPhotos.DiscardUnknown(m) } -var xxx_messageInfo_TLDocumentLayer86 proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterChatPhotos proto.InternalMessageInfo -func (m *TLDocumentLayer86) GetData2() *Document_Data { +func (m *TLInputMessagesFilterChatPhotos) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// RecentMeUrl <-- -// + TL_recentMeUrlUnknown -// + TL_recentMeUrlUser -// + TL_recentMeUrlChat -// + TL_recentMeUrlChatInvite -// + TL_recentMeUrlStickerSet -// -type RecentMeUrl_Data struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - ChatId int32 `protobuf:"varint,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - ChatInvite *ChatInvite `protobuf:"bytes,4,opt,name=chat_invite,json=chatInvite,proto3" json:"chat_invite,omitempty"` - Set *StickerSetCovered `protobuf:"bytes,5,opt,name=set,proto3" json:"set,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter; +type TLInputMessagesFilterPhoneCalls struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RecentMeUrl_Data) Reset() { *m = RecentMeUrl_Data{} } -func (m *RecentMeUrl_Data) String() string { return proto.CompactTextString(m) } -func (*RecentMeUrl_Data) ProtoMessage() {} -func (*RecentMeUrl_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{930} -} -func (m *RecentMeUrl_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RecentMeUrl_Data.Unmarshal(m, b) -} -func (m *RecentMeUrl_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RecentMeUrl_Data.Marshal(b, m, deterministic) -} -func (dst *RecentMeUrl_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecentMeUrl_Data.Merge(dst, src) +func (m *TLInputMessagesFilterPhoneCalls) Reset() { *m = TLInputMessagesFilterPhoneCalls{} } +func (m *TLInputMessagesFilterPhoneCalls) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterPhoneCalls) ProtoMessage() {} +func (*TLInputMessagesFilterPhoneCalls) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{884} } -func (m *RecentMeUrl_Data) XXX_Size() int { - return xxx_messageInfo_RecentMeUrl_Data.Size(m) +func (m *TLInputMessagesFilterPhoneCalls) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterPhoneCalls.Unmarshal(m, b) } -func (m *RecentMeUrl_Data) XXX_DiscardUnknown() { - xxx_messageInfo_RecentMeUrl_Data.DiscardUnknown(m) +func (m *TLInputMessagesFilterPhoneCalls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterPhoneCalls.Marshal(b, m, deterministic) } - -var xxx_messageInfo_RecentMeUrl_Data proto.InternalMessageInfo - -func (m *RecentMeUrl_Data) GetUrl() string { - if m != nil { - return m.Url - } - return "" +func (dst *TLInputMessagesFilterPhoneCalls) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterPhoneCalls.Merge(dst, src) } - -func (m *RecentMeUrl_Data) GetUserId() int32 { - if m != nil { - return m.UserId - } - return 0 +func (m *TLInputMessagesFilterPhoneCalls) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterPhoneCalls.Size(m) } - -func (m *RecentMeUrl_Data) GetChatId() int32 { - if m != nil { - return m.ChatId - } - return 0 +func (m *TLInputMessagesFilterPhoneCalls) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterPhoneCalls.DiscardUnknown(m) } -func (m *RecentMeUrl_Data) GetChatInvite() *ChatInvite { - if m != nil { - return m.ChatInvite - } - return nil -} +var xxx_messageInfo_TLInputMessagesFilterPhoneCalls proto.InternalMessageInfo -func (m *RecentMeUrl_Data) GetSet() *StickerSetCovered { +func (m *TLInputMessagesFilterPhoneCalls) GetData2() *MessagesFilter_Data { if m != nil { - return m.Set + return m.Data2 } return nil } -type RecentMeUrl struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter; +type TLInputMessagesFilterRoundVoice struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RecentMeUrl) Reset() { *m = RecentMeUrl{} } -func (m *RecentMeUrl) String() string { return proto.CompactTextString(m) } -func (*RecentMeUrl) ProtoMessage() {} -func (*RecentMeUrl) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{931} +func (m *TLInputMessagesFilterRoundVoice) Reset() { *m = TLInputMessagesFilterRoundVoice{} } +func (m *TLInputMessagesFilterRoundVoice) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterRoundVoice) ProtoMessage() {} +func (*TLInputMessagesFilterRoundVoice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{885} } -func (m *RecentMeUrl) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RecentMeUrl.Unmarshal(m, b) +func (m *TLInputMessagesFilterRoundVoice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterRoundVoice.Unmarshal(m, b) } -func (m *RecentMeUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RecentMeUrl.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterRoundVoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterRoundVoice.Marshal(b, m, deterministic) } -func (dst *RecentMeUrl) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecentMeUrl.Merge(dst, src) +func (dst *TLInputMessagesFilterRoundVoice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterRoundVoice.Merge(dst, src) } -func (m *RecentMeUrl) XXX_Size() int { - return xxx_messageInfo_RecentMeUrl.Size(m) +func (m *TLInputMessagesFilterRoundVoice) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterRoundVoice.Size(m) } -func (m *RecentMeUrl) XXX_DiscardUnknown() { - xxx_messageInfo_RecentMeUrl.DiscardUnknown(m) +func (m *TLInputMessagesFilterRoundVoice) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterRoundVoice.DiscardUnknown(m) } -var xxx_messageInfo_RecentMeUrl proto.InternalMessageInfo - -func (m *RecentMeUrl) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputMessagesFilterRoundVoice proto.InternalMessageInfo -func (m *RecentMeUrl) GetData2() *RecentMeUrl_Data { +func (m *TLInputMessagesFilterRoundVoice) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl; -type TLRecentMeUrlUnknown struct { - Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterRoundVideo#b549da53 = MessagesFilter; +type TLInputMessagesFilterRoundVideo struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLRecentMeUrlUnknown) Reset() { *m = TLRecentMeUrlUnknown{} } -func (m *TLRecentMeUrlUnknown) String() string { return proto.CompactTextString(m) } -func (*TLRecentMeUrlUnknown) ProtoMessage() {} -func (*TLRecentMeUrlUnknown) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{932} +func (m *TLInputMessagesFilterRoundVideo) Reset() { *m = TLInputMessagesFilterRoundVideo{} } +func (m *TLInputMessagesFilterRoundVideo) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterRoundVideo) ProtoMessage() {} +func (*TLInputMessagesFilterRoundVideo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{886} } -func (m *TLRecentMeUrlUnknown) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLRecentMeUrlUnknown.Unmarshal(m, b) +func (m *TLInputMessagesFilterRoundVideo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterRoundVideo.Unmarshal(m, b) } -func (m *TLRecentMeUrlUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLRecentMeUrlUnknown.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterRoundVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterRoundVideo.Marshal(b, m, deterministic) } -func (dst *TLRecentMeUrlUnknown) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLRecentMeUrlUnknown.Merge(dst, src) +func (dst *TLInputMessagesFilterRoundVideo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterRoundVideo.Merge(dst, src) } -func (m *TLRecentMeUrlUnknown) XXX_Size() int { - return xxx_messageInfo_TLRecentMeUrlUnknown.Size(m) +func (m *TLInputMessagesFilterRoundVideo) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterRoundVideo.Size(m) } -func (m *TLRecentMeUrlUnknown) XXX_DiscardUnknown() { - xxx_messageInfo_TLRecentMeUrlUnknown.DiscardUnknown(m) +func (m *TLInputMessagesFilterRoundVideo) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterRoundVideo.DiscardUnknown(m) } -var xxx_messageInfo_TLRecentMeUrlUnknown proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterRoundVideo proto.InternalMessageInfo -func (m *TLRecentMeUrlUnknown) GetData2() *RecentMeUrl_Data { +func (m *TLInputMessagesFilterRoundVideo) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl; -type TLRecentMeUrlUser struct { - Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter; +type TLInputMessagesFilterMyMentions struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLRecentMeUrlUser) Reset() { *m = TLRecentMeUrlUser{} } -func (m *TLRecentMeUrlUser) String() string { return proto.CompactTextString(m) } -func (*TLRecentMeUrlUser) ProtoMessage() {} -func (*TLRecentMeUrlUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{933} +func (m *TLInputMessagesFilterMyMentions) Reset() { *m = TLInputMessagesFilterMyMentions{} } +func (m *TLInputMessagesFilterMyMentions) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterMyMentions) ProtoMessage() {} +func (*TLInputMessagesFilterMyMentions) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{887} } -func (m *TLRecentMeUrlUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLRecentMeUrlUser.Unmarshal(m, b) +func (m *TLInputMessagesFilterMyMentions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterMyMentions.Unmarshal(m, b) } -func (m *TLRecentMeUrlUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLRecentMeUrlUser.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterMyMentions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterMyMentions.Marshal(b, m, deterministic) } -func (dst *TLRecentMeUrlUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLRecentMeUrlUser.Merge(dst, src) +func (dst *TLInputMessagesFilterMyMentions) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterMyMentions.Merge(dst, src) } -func (m *TLRecentMeUrlUser) XXX_Size() int { - return xxx_messageInfo_TLRecentMeUrlUser.Size(m) +func (m *TLInputMessagesFilterMyMentions) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterMyMentions.Size(m) } -func (m *TLRecentMeUrlUser) XXX_DiscardUnknown() { - xxx_messageInfo_TLRecentMeUrlUser.DiscardUnknown(m) +func (m *TLInputMessagesFilterMyMentions) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterMyMentions.DiscardUnknown(m) } -var xxx_messageInfo_TLRecentMeUrlUser proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterMyMentions proto.InternalMessageInfo -func (m *TLRecentMeUrlUser) GetData2() *RecentMeUrl_Data { +func (m *TLInputMessagesFilterMyMentions) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl; -type TLRecentMeUrlChat struct { - Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterGeo#e7026d0d = MessagesFilter; +type TLInputMessagesFilterGeo struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLRecentMeUrlChat) Reset() { *m = TLRecentMeUrlChat{} } -func (m *TLRecentMeUrlChat) String() string { return proto.CompactTextString(m) } -func (*TLRecentMeUrlChat) ProtoMessage() {} -func (*TLRecentMeUrlChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{934} +func (m *TLInputMessagesFilterGeo) Reset() { *m = TLInputMessagesFilterGeo{} } +func (m *TLInputMessagesFilterGeo) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterGeo) ProtoMessage() {} +func (*TLInputMessagesFilterGeo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{888} } -func (m *TLRecentMeUrlChat) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLRecentMeUrlChat.Unmarshal(m, b) +func (m *TLInputMessagesFilterGeo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterGeo.Unmarshal(m, b) } -func (m *TLRecentMeUrlChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLRecentMeUrlChat.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterGeo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterGeo.Marshal(b, m, deterministic) } -func (dst *TLRecentMeUrlChat) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLRecentMeUrlChat.Merge(dst, src) +func (dst *TLInputMessagesFilterGeo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterGeo.Merge(dst, src) } -func (m *TLRecentMeUrlChat) XXX_Size() int { - return xxx_messageInfo_TLRecentMeUrlChat.Size(m) +func (m *TLInputMessagesFilterGeo) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterGeo.Size(m) } -func (m *TLRecentMeUrlChat) XXX_DiscardUnknown() { - xxx_messageInfo_TLRecentMeUrlChat.DiscardUnknown(m) +func (m *TLInputMessagesFilterGeo) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterGeo.DiscardUnknown(m) } -var xxx_messageInfo_TLRecentMeUrlChat proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterGeo proto.InternalMessageInfo -func (m *TLRecentMeUrlChat) GetData2() *RecentMeUrl_Data { +func (m *TLInputMessagesFilterGeo) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl; -type TLRecentMeUrlChatInvite struct { - Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputMessagesFilterContacts#e062db83 = MessagesFilter; +type TLInputMessagesFilterContacts struct { + Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLRecentMeUrlChatInvite) Reset() { *m = TLRecentMeUrlChatInvite{} } -func (m *TLRecentMeUrlChatInvite) String() string { return proto.CompactTextString(m) } -func (*TLRecentMeUrlChatInvite) ProtoMessage() {} -func (*TLRecentMeUrlChatInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{935} +func (m *TLInputMessagesFilterContacts) Reset() { *m = TLInputMessagesFilterContacts{} } +func (m *TLInputMessagesFilterContacts) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagesFilterContacts) ProtoMessage() {} +func (*TLInputMessagesFilterContacts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{889} } -func (m *TLRecentMeUrlChatInvite) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLRecentMeUrlChatInvite.Unmarshal(m, b) +func (m *TLInputMessagesFilterContacts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagesFilterContacts.Unmarshal(m, b) } -func (m *TLRecentMeUrlChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLRecentMeUrlChatInvite.Marshal(b, m, deterministic) +func (m *TLInputMessagesFilterContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagesFilterContacts.Marshal(b, m, deterministic) } -func (dst *TLRecentMeUrlChatInvite) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLRecentMeUrlChatInvite.Merge(dst, src) +func (dst *TLInputMessagesFilterContacts) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagesFilterContacts.Merge(dst, src) } -func (m *TLRecentMeUrlChatInvite) XXX_Size() int { - return xxx_messageInfo_TLRecentMeUrlChatInvite.Size(m) +func (m *TLInputMessagesFilterContacts) XXX_Size() int { + return xxx_messageInfo_TLInputMessagesFilterContacts.Size(m) } -func (m *TLRecentMeUrlChatInvite) XXX_DiscardUnknown() { - xxx_messageInfo_TLRecentMeUrlChatInvite.DiscardUnknown(m) +func (m *TLInputMessagesFilterContacts) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagesFilterContacts.DiscardUnknown(m) } -var xxx_messageInfo_TLRecentMeUrlChatInvite proto.InternalMessageInfo +var xxx_messageInfo_TLInputMessagesFilterContacts proto.InternalMessageInfo -func (m *TLRecentMeUrlChatInvite) GetData2() *RecentMeUrl_Data { +func (m *TLInputMessagesFilterContacts) GetData2() *MessagesFilter_Data { if m != nil { return m.Data2 } return nil } -// recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl; -type TLRecentMeUrlStickerSet struct { - Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputStickerSet <-- +// + TL_inputStickerSetEmpty +// + TL_inputStickerSetID +// + TL_inputStickerSetShortName +// +type InputStickerSet_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + ShortName string `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLRecentMeUrlStickerSet) Reset() { *m = TLRecentMeUrlStickerSet{} } -func (m *TLRecentMeUrlStickerSet) String() string { return proto.CompactTextString(m) } -func (*TLRecentMeUrlStickerSet) ProtoMessage() {} -func (*TLRecentMeUrlStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{936} +func (m *InputStickerSet_Data) Reset() { *m = InputStickerSet_Data{} } +func (m *InputStickerSet_Data) String() string { return proto.CompactTextString(m) } +func (*InputStickerSet_Data) ProtoMessage() {} +func (*InputStickerSet_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{890} } -func (m *TLRecentMeUrlStickerSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLRecentMeUrlStickerSet.Unmarshal(m, b) +func (m *InputStickerSet_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputStickerSet_Data.Unmarshal(m, b) } -func (m *TLRecentMeUrlStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLRecentMeUrlStickerSet.Marshal(b, m, deterministic) +func (m *InputStickerSet_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputStickerSet_Data.Marshal(b, m, deterministic) } -func (dst *TLRecentMeUrlStickerSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLRecentMeUrlStickerSet.Merge(dst, src) +func (dst *InputStickerSet_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputStickerSet_Data.Merge(dst, src) } -func (m *TLRecentMeUrlStickerSet) XXX_Size() int { - return xxx_messageInfo_TLRecentMeUrlStickerSet.Size(m) +func (m *InputStickerSet_Data) XXX_Size() int { + return xxx_messageInfo_InputStickerSet_Data.Size(m) } -func (m *TLRecentMeUrlStickerSet) XXX_DiscardUnknown() { - xxx_messageInfo_TLRecentMeUrlStickerSet.DiscardUnknown(m) +func (m *InputStickerSet_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputStickerSet_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLRecentMeUrlStickerSet proto.InternalMessageInfo +var xxx_messageInfo_InputStickerSet_Data proto.InternalMessageInfo -func (m *TLRecentMeUrlStickerSet) GetData2() *RecentMeUrl_Data { +func (m *InputStickerSet_Data) GetId() int64 { if m != nil { - return m.Data2 + return m.Id } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// Scheme <-- -// + TL_schemeNotModified -// + TL_scheme -// -type Scheme_Data struct { - SchemeRaw string `protobuf:"bytes,1,opt,name=scheme_raw,json=schemeRaw,proto3" json:"scheme_raw,omitempty"` - Types []*SchemeType `protobuf:"bytes,2,rep,name=types,proto3" json:"types,omitempty"` - Methods []*SchemeMethod `protobuf:"bytes,3,rep,name=methods,proto3" json:"methods,omitempty"` - Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputStickerSet_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 } -func (m *Scheme_Data) Reset() { *m = Scheme_Data{} } -func (m *Scheme_Data) String() string { return proto.CompactTextString(m) } -func (*Scheme_Data) ProtoMessage() {} -func (*Scheme_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{937} +func (m *InputStickerSet_Data) GetShortName() string { + if m != nil { + return m.ShortName + } + return "" } -func (m *Scheme_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Scheme_Data.Unmarshal(m, b) + +type InputStickerSet struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputStickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Scheme_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Scheme_Data.Marshal(b, m, deterministic) + +func (m *InputStickerSet) Reset() { *m = InputStickerSet{} } +func (m *InputStickerSet) String() string { return proto.CompactTextString(m) } +func (*InputStickerSet) ProtoMessage() {} +func (*InputStickerSet) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{891} } -func (dst *Scheme_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scheme_Data.Merge(dst, src) +func (m *InputStickerSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputStickerSet.Unmarshal(m, b) } -func (m *Scheme_Data) XXX_Size() int { - return xxx_messageInfo_Scheme_Data.Size(m) +func (m *InputStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputStickerSet.Marshal(b, m, deterministic) } -func (m *Scheme_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Scheme_Data.DiscardUnknown(m) +func (dst *InputStickerSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputStickerSet.Merge(dst, src) } - -var xxx_messageInfo_Scheme_Data proto.InternalMessageInfo - -func (m *Scheme_Data) GetSchemeRaw() string { - if m != nil { - return m.SchemeRaw - } - return "" +func (m *InputStickerSet) XXX_Size() int { + return xxx_messageInfo_InputStickerSet.Size(m) } - -func (m *Scheme_Data) GetTypes() []*SchemeType { - if m != nil { - return m.Types - } - return nil +func (m *InputStickerSet) XXX_DiscardUnknown() { + xxx_messageInfo_InputStickerSet.DiscardUnknown(m) } -func (m *Scheme_Data) GetMethods() []*SchemeMethod { +var xxx_messageInfo_InputStickerSet proto.InternalMessageInfo + +func (m *InputStickerSet) GetConstructor() TLConstructor { if m != nil { - return m.Methods + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *Scheme_Data) GetVersion() int32 { +func (m *InputStickerSet) GetData2() *InputStickerSet_Data { if m != nil { - return m.Version + return m.Data2 } - return 0 + return nil } -type Scheme struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Scheme_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputStickerSetEmpty#ffb62b95 = InputStickerSet; +type TLInputStickerSetEmpty struct { + Data2 *InputStickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Scheme) Reset() { *m = Scheme{} } -func (m *Scheme) String() string { return proto.CompactTextString(m) } -func (*Scheme) ProtoMessage() {} -func (*Scheme) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{938} +func (m *TLInputStickerSetEmpty) Reset() { *m = TLInputStickerSetEmpty{} } +func (m *TLInputStickerSetEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputStickerSetEmpty) ProtoMessage() {} +func (*TLInputStickerSetEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{892} } -func (m *Scheme) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Scheme.Unmarshal(m, b) +func (m *TLInputStickerSetEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputStickerSetEmpty.Unmarshal(m, b) } -func (m *Scheme) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Scheme.Marshal(b, m, deterministic) +func (m *TLInputStickerSetEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputStickerSetEmpty.Marshal(b, m, deterministic) } -func (dst *Scheme) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scheme.Merge(dst, src) +func (dst *TLInputStickerSetEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputStickerSetEmpty.Merge(dst, src) } -func (m *Scheme) XXX_Size() int { - return xxx_messageInfo_Scheme.Size(m) +func (m *TLInputStickerSetEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputStickerSetEmpty.Size(m) } -func (m *Scheme) XXX_DiscardUnknown() { - xxx_messageInfo_Scheme.DiscardUnknown(m) +func (m *TLInputStickerSetEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputStickerSetEmpty.DiscardUnknown(m) } -var xxx_messageInfo_Scheme proto.InternalMessageInfo - -func (m *Scheme) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputStickerSetEmpty proto.InternalMessageInfo -func (m *Scheme) GetData2() *Scheme_Data { +func (m *TLInputStickerSetEmpty) GetData2() *InputStickerSet_Data { if m != nil { return m.Data2 } return nil } -// schemeNotModified#263c9c58 = Scheme; -type TLSchemeNotModified struct { - Data2 *Scheme_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; +type TLInputStickerSetID struct { + Data2 *InputStickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSchemeNotModified) Reset() { *m = TLSchemeNotModified{} } -func (m *TLSchemeNotModified) String() string { return proto.CompactTextString(m) } -func (*TLSchemeNotModified) ProtoMessage() {} -func (*TLSchemeNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{939} +func (m *TLInputStickerSetID) Reset() { *m = TLInputStickerSetID{} } +func (m *TLInputStickerSetID) String() string { return proto.CompactTextString(m) } +func (*TLInputStickerSetID) ProtoMessage() {} +func (*TLInputStickerSetID) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{893} } -func (m *TLSchemeNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSchemeNotModified.Unmarshal(m, b) +func (m *TLInputStickerSetID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputStickerSetID.Unmarshal(m, b) } -func (m *TLSchemeNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSchemeNotModified.Marshal(b, m, deterministic) +func (m *TLInputStickerSetID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputStickerSetID.Marshal(b, m, deterministic) } -func (dst *TLSchemeNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSchemeNotModified.Merge(dst, src) +func (dst *TLInputStickerSetID) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputStickerSetID.Merge(dst, src) } -func (m *TLSchemeNotModified) XXX_Size() int { - return xxx_messageInfo_TLSchemeNotModified.Size(m) +func (m *TLInputStickerSetID) XXX_Size() int { + return xxx_messageInfo_TLInputStickerSetID.Size(m) } -func (m *TLSchemeNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLSchemeNotModified.DiscardUnknown(m) +func (m *TLInputStickerSetID) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputStickerSetID.DiscardUnknown(m) } -var xxx_messageInfo_TLSchemeNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLInputStickerSetID proto.InternalMessageInfo -func (m *TLSchemeNotModified) GetData2() *Scheme_Data { +func (m *TLInputStickerSetID) GetData2() *InputStickerSet_Data { if m != nil { return m.Data2 } return nil } -// scheme#4e6ef65e scheme_raw:string types:Vector methods:Vector version:int = Scheme; -type TLScheme struct { - Data2 *Scheme_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; +type TLInputStickerSetShortName struct { + Data2 *InputStickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLScheme) Reset() { *m = TLScheme{} } -func (m *TLScheme) String() string { return proto.CompactTextString(m) } -func (*TLScheme) ProtoMessage() {} -func (*TLScheme) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{940} +func (m *TLInputStickerSetShortName) Reset() { *m = TLInputStickerSetShortName{} } +func (m *TLInputStickerSetShortName) String() string { return proto.CompactTextString(m) } +func (*TLInputStickerSetShortName) ProtoMessage() {} +func (*TLInputStickerSetShortName) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{894} } -func (m *TLScheme) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLScheme.Unmarshal(m, b) +func (m *TLInputStickerSetShortName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputStickerSetShortName.Unmarshal(m, b) } -func (m *TLScheme) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLScheme.Marshal(b, m, deterministic) +func (m *TLInputStickerSetShortName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputStickerSetShortName.Marshal(b, m, deterministic) } -func (dst *TLScheme) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLScheme.Merge(dst, src) +func (dst *TLInputStickerSetShortName) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputStickerSetShortName.Merge(dst, src) } -func (m *TLScheme) XXX_Size() int { - return xxx_messageInfo_TLScheme.Size(m) +func (m *TLInputStickerSetShortName) XXX_Size() int { + return xxx_messageInfo_TLInputStickerSetShortName.Size(m) } -func (m *TLScheme) XXX_DiscardUnknown() { - xxx_messageInfo_TLScheme.DiscardUnknown(m) +func (m *TLInputStickerSetShortName) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputStickerSetShortName.DiscardUnknown(m) } -var xxx_messageInfo_TLScheme proto.InternalMessageInfo +var xxx_messageInfo_TLInputStickerSetShortName proto.InternalMessageInfo -func (m *TLScheme) GetData2() *Scheme_Data { +func (m *TLInputStickerSetShortName) GetData2() *InputStickerSet_Data { if m != nil { return m.Data2 } @@ -45655,285 +44086,270 @@ func (m *TLScheme) GetData2() *Scheme_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputAppEvent <-- -// + TL_inputAppEvent +// ReplyMarkup <-- +// + TL_replyKeyboardHide +// + TL_replyKeyboardForceReply +// + TL_replyKeyboardMarkup +// + TL_replyInlineMarkup // -type InputAppEvent_Data struct { - Time float64 `protobuf:"fixed64,1,opt,name=time,proto3" json:"time,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Peer int64 `protobuf:"varint,3,opt,name=peer,proto3" json:"peer,omitempty"` - Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ReplyMarkup_Data struct { + Selective bool `protobuf:"varint,1,opt,name=selective,proto3" json:"selective,omitempty"` + SingleUse bool `protobuf:"varint,2,opt,name=single_use,json=singleUse,proto3" json:"single_use,omitempty"` + Resize bool `protobuf:"varint,3,opt,name=resize,proto3" json:"resize,omitempty"` + Rows []*KeyboardButtonRow `protobuf:"bytes,4,rep,name=rows,proto3" json:"rows,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputAppEvent_Data) Reset() { *m = InputAppEvent_Data{} } -func (m *InputAppEvent_Data) String() string { return proto.CompactTextString(m) } -func (*InputAppEvent_Data) ProtoMessage() {} -func (*InputAppEvent_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{941} +func (m *ReplyMarkup_Data) Reset() { *m = ReplyMarkup_Data{} } +func (m *ReplyMarkup_Data) String() string { return proto.CompactTextString(m) } +func (*ReplyMarkup_Data) ProtoMessage() {} +func (*ReplyMarkup_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{895} } -func (m *InputAppEvent_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputAppEvent_Data.Unmarshal(m, b) +func (m *ReplyMarkup_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReplyMarkup_Data.Unmarshal(m, b) } -func (m *InputAppEvent_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputAppEvent_Data.Marshal(b, m, deterministic) +func (m *ReplyMarkup_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReplyMarkup_Data.Marshal(b, m, deterministic) } -func (dst *InputAppEvent_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputAppEvent_Data.Merge(dst, src) +func (dst *ReplyMarkup_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReplyMarkup_Data.Merge(dst, src) } -func (m *InputAppEvent_Data) XXX_Size() int { - return xxx_messageInfo_InputAppEvent_Data.Size(m) +func (m *ReplyMarkup_Data) XXX_Size() int { + return xxx_messageInfo_ReplyMarkup_Data.Size(m) } -func (m *InputAppEvent_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputAppEvent_Data.DiscardUnknown(m) +func (m *ReplyMarkup_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ReplyMarkup_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputAppEvent_Data proto.InternalMessageInfo +var xxx_messageInfo_ReplyMarkup_Data proto.InternalMessageInfo -func (m *InputAppEvent_Data) GetTime() float64 { +func (m *ReplyMarkup_Data) GetSelective() bool { if m != nil { - return m.Time + return m.Selective } - return 0 + return false } -func (m *InputAppEvent_Data) GetType() string { +func (m *ReplyMarkup_Data) GetSingleUse() bool { if m != nil { - return m.Type + return m.SingleUse } - return "" + return false } -func (m *InputAppEvent_Data) GetPeer() int64 { +func (m *ReplyMarkup_Data) GetResize() bool { if m != nil { - return m.Peer + return m.Resize } - return 0 + return false } -func (m *InputAppEvent_Data) GetData() string { +func (m *ReplyMarkup_Data) GetRows() []*KeyboardButtonRow { if m != nil { - return m.Data + return m.Rows } - return "" + return nil } -type InputAppEvent struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputAppEvent_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ReplyMarkup struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputAppEvent) Reset() { *m = InputAppEvent{} } -func (m *InputAppEvent) String() string { return proto.CompactTextString(m) } -func (*InputAppEvent) ProtoMessage() {} -func (*InputAppEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{942} +func (m *ReplyMarkup) Reset() { *m = ReplyMarkup{} } +func (m *ReplyMarkup) String() string { return proto.CompactTextString(m) } +func (*ReplyMarkup) ProtoMessage() {} +func (*ReplyMarkup) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{896} } -func (m *InputAppEvent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputAppEvent.Unmarshal(m, b) +func (m *ReplyMarkup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReplyMarkup.Unmarshal(m, b) } -func (m *InputAppEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputAppEvent.Marshal(b, m, deterministic) +func (m *ReplyMarkup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReplyMarkup.Marshal(b, m, deterministic) } -func (dst *InputAppEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputAppEvent.Merge(dst, src) +func (dst *ReplyMarkup) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReplyMarkup.Merge(dst, src) } -func (m *InputAppEvent) XXX_Size() int { - return xxx_messageInfo_InputAppEvent.Size(m) +func (m *ReplyMarkup) XXX_Size() int { + return xxx_messageInfo_ReplyMarkup.Size(m) } -func (m *InputAppEvent) XXX_DiscardUnknown() { - xxx_messageInfo_InputAppEvent.DiscardUnknown(m) +func (m *ReplyMarkup) XXX_DiscardUnknown() { + xxx_messageInfo_ReplyMarkup.DiscardUnknown(m) } -var xxx_messageInfo_InputAppEvent proto.InternalMessageInfo +var xxx_messageInfo_ReplyMarkup proto.InternalMessageInfo -func (m *InputAppEvent) GetConstructor() TLConstructor { +func (m *ReplyMarkup) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputAppEvent) GetData2() *InputAppEvent_Data { +func (m *ReplyMarkup) GetData2() *ReplyMarkup_Data { if m != nil { return m.Data2 } return nil } -// inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent; -type TLInputAppEvent struct { - Data2 *InputAppEvent_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; +type TLReplyKeyboardHide struct { + Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputAppEvent) Reset() { *m = TLInputAppEvent{} } -func (m *TLInputAppEvent) String() string { return proto.CompactTextString(m) } -func (*TLInputAppEvent) ProtoMessage() {} -func (*TLInputAppEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{943} +func (m *TLReplyKeyboardHide) Reset() { *m = TLReplyKeyboardHide{} } +func (m *TLReplyKeyboardHide) String() string { return proto.CompactTextString(m) } +func (*TLReplyKeyboardHide) ProtoMessage() {} +func (*TLReplyKeyboardHide) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{897} } -func (m *TLInputAppEvent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputAppEvent.Unmarshal(m, b) +func (m *TLReplyKeyboardHide) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLReplyKeyboardHide.Unmarshal(m, b) } -func (m *TLInputAppEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputAppEvent.Marshal(b, m, deterministic) +func (m *TLReplyKeyboardHide) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLReplyKeyboardHide.Marshal(b, m, deterministic) } -func (dst *TLInputAppEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputAppEvent.Merge(dst, src) +func (dst *TLReplyKeyboardHide) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLReplyKeyboardHide.Merge(dst, src) } -func (m *TLInputAppEvent) XXX_Size() int { - return xxx_messageInfo_TLInputAppEvent.Size(m) +func (m *TLReplyKeyboardHide) XXX_Size() int { + return xxx_messageInfo_TLReplyKeyboardHide.Size(m) } -func (m *TLInputAppEvent) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputAppEvent.DiscardUnknown(m) +func (m *TLReplyKeyboardHide) XXX_DiscardUnknown() { + xxx_messageInfo_TLReplyKeyboardHide.DiscardUnknown(m) } -var xxx_messageInfo_TLInputAppEvent proto.InternalMessageInfo +var xxx_messageInfo_TLReplyKeyboardHide proto.InternalMessageInfo -func (m *TLInputAppEvent) GetData2() *InputAppEvent_Data { +func (m *TLReplyKeyboardHide) GetData2() *ReplyMarkup_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// StickerPack <-- -// + TL_stickerPack -// -type StickerPack_Data struct { - Emoticon string `protobuf:"bytes,1,opt,name=emoticon,proto3" json:"emoticon,omitempty"` - Documents []int64 `protobuf:"varint,2,rep,packed,name=documents,proto3" json:"documents,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup; +type TLReplyKeyboardForceReply struct { + Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StickerPack_Data) Reset() { *m = StickerPack_Data{} } -func (m *StickerPack_Data) String() string { return proto.CompactTextString(m) } -func (*StickerPack_Data) ProtoMessage() {} -func (*StickerPack_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{944} +func (m *TLReplyKeyboardForceReply) Reset() { *m = TLReplyKeyboardForceReply{} } +func (m *TLReplyKeyboardForceReply) String() string { return proto.CompactTextString(m) } +func (*TLReplyKeyboardForceReply) ProtoMessage() {} +func (*TLReplyKeyboardForceReply) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{898} } -func (m *StickerPack_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StickerPack_Data.Unmarshal(m, b) +func (m *TLReplyKeyboardForceReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLReplyKeyboardForceReply.Unmarshal(m, b) } -func (m *StickerPack_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StickerPack_Data.Marshal(b, m, deterministic) +func (m *TLReplyKeyboardForceReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLReplyKeyboardForceReply.Marshal(b, m, deterministic) } -func (dst *StickerPack_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_StickerPack_Data.Merge(dst, src) +func (dst *TLReplyKeyboardForceReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLReplyKeyboardForceReply.Merge(dst, src) } -func (m *StickerPack_Data) XXX_Size() int { - return xxx_messageInfo_StickerPack_Data.Size(m) +func (m *TLReplyKeyboardForceReply) XXX_Size() int { + return xxx_messageInfo_TLReplyKeyboardForceReply.Size(m) } -func (m *StickerPack_Data) XXX_DiscardUnknown() { - xxx_messageInfo_StickerPack_Data.DiscardUnknown(m) +func (m *TLReplyKeyboardForceReply) XXX_DiscardUnknown() { + xxx_messageInfo_TLReplyKeyboardForceReply.DiscardUnknown(m) } -var xxx_messageInfo_StickerPack_Data proto.InternalMessageInfo - -func (m *StickerPack_Data) GetEmoticon() string { - if m != nil { - return m.Emoticon - } - return "" -} +var xxx_messageInfo_TLReplyKeyboardForceReply proto.InternalMessageInfo -func (m *StickerPack_Data) GetDocuments() []int64 { +func (m *TLReplyKeyboardForceReply) GetData2() *ReplyMarkup_Data { if m != nil { - return m.Documents + return m.Data2 } return nil } -type StickerPack struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *StickerPack_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector = ReplyMarkup; +type TLReplyKeyboardMarkup struct { + Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *StickerPack) Reset() { *m = StickerPack{} } -func (m *StickerPack) String() string { return proto.CompactTextString(m) } -func (*StickerPack) ProtoMessage() {} -func (*StickerPack) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{945} +func (m *TLReplyKeyboardMarkup) Reset() { *m = TLReplyKeyboardMarkup{} } +func (m *TLReplyKeyboardMarkup) String() string { return proto.CompactTextString(m) } +func (*TLReplyKeyboardMarkup) ProtoMessage() {} +func (*TLReplyKeyboardMarkup) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{899} } -func (m *StickerPack) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StickerPack.Unmarshal(m, b) +func (m *TLReplyKeyboardMarkup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLReplyKeyboardMarkup.Unmarshal(m, b) } -func (m *StickerPack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StickerPack.Marshal(b, m, deterministic) +func (m *TLReplyKeyboardMarkup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLReplyKeyboardMarkup.Marshal(b, m, deterministic) } -func (dst *StickerPack) XXX_Merge(src proto.Message) { - xxx_messageInfo_StickerPack.Merge(dst, src) +func (dst *TLReplyKeyboardMarkup) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLReplyKeyboardMarkup.Merge(dst, src) } -func (m *StickerPack) XXX_Size() int { - return xxx_messageInfo_StickerPack.Size(m) +func (m *TLReplyKeyboardMarkup) XXX_Size() int { + return xxx_messageInfo_TLReplyKeyboardMarkup.Size(m) } -func (m *StickerPack) XXX_DiscardUnknown() { - xxx_messageInfo_StickerPack.DiscardUnknown(m) +func (m *TLReplyKeyboardMarkup) XXX_DiscardUnknown() { + xxx_messageInfo_TLReplyKeyboardMarkup.DiscardUnknown(m) } -var xxx_messageInfo_StickerPack proto.InternalMessageInfo - -func (m *StickerPack) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLReplyKeyboardMarkup proto.InternalMessageInfo -func (m *StickerPack) GetData2() *StickerPack_Data { +func (m *TLReplyKeyboardMarkup) GetData2() *ReplyMarkup_Data { if m != nil { return m.Data2 } return nil } -// stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack; -type TLStickerPack struct { - Data2 *StickerPack_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// replyInlineMarkup#48a30254 rows:Vector = ReplyMarkup; +type TLReplyInlineMarkup struct { + Data2 *ReplyMarkup_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLStickerPack) Reset() { *m = TLStickerPack{} } -func (m *TLStickerPack) String() string { return proto.CompactTextString(m) } -func (*TLStickerPack) ProtoMessage() {} -func (*TLStickerPack) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{946} +func (m *TLReplyInlineMarkup) Reset() { *m = TLReplyInlineMarkup{} } +func (m *TLReplyInlineMarkup) String() string { return proto.CompactTextString(m) } +func (*TLReplyInlineMarkup) ProtoMessage() {} +func (*TLReplyInlineMarkup) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{900} } -func (m *TLStickerPack) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStickerPack.Unmarshal(m, b) +func (m *TLReplyInlineMarkup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLReplyInlineMarkup.Unmarshal(m, b) } -func (m *TLStickerPack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStickerPack.Marshal(b, m, deterministic) +func (m *TLReplyInlineMarkup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLReplyInlineMarkup.Marshal(b, m, deterministic) } -func (dst *TLStickerPack) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStickerPack.Merge(dst, src) +func (dst *TLReplyInlineMarkup) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLReplyInlineMarkup.Merge(dst, src) } -func (m *TLStickerPack) XXX_Size() int { - return xxx_messageInfo_TLStickerPack.Size(m) +func (m *TLReplyInlineMarkup) XXX_Size() int { + return xxx_messageInfo_TLReplyInlineMarkup.Size(m) } -func (m *TLStickerPack) XXX_DiscardUnknown() { - xxx_messageInfo_TLStickerPack.DiscardUnknown(m) +func (m *TLReplyInlineMarkup) XXX_DiscardUnknown() { + xxx_messageInfo_TLReplyInlineMarkup.DiscardUnknown(m) } -var xxx_messageInfo_TLStickerPack proto.InternalMessageInfo +var xxx_messageInfo_TLReplyInlineMarkup proto.InternalMessageInfo -func (m *TLStickerPack) GetData2() *StickerPack_Data { +func (m *TLReplyInlineMarkup) GetData2() *ReplyMarkup_Data { if m != nil { return m.Data2 } @@ -45941,532 +44357,501 @@ func (m *TLStickerPack) GetData2() *StickerPack_Data { } // ///////////////////////////////////////////////////////////////////////////// -// messages_BotCallbackAnswer <-- -// + TL_messages_botCallbackAnswer +// ChannelParticipantsFilter <-- +// + TL_channelParticipantsRecent +// + TL_channelParticipantsAdmins +// + TL_channelParticipantsKicked +// + TL_channelParticipantsBots +// + TL_channelParticipantsBanned +// + TL_channelParticipantsSearch // -type Messages_BotCallbackAnswer_Data struct { - Alert bool `protobuf:"varint,1,opt,name=alert,proto3" json:"alert,omitempty"` - HasUrl bool `protobuf:"varint,2,opt,name=has_url,json=hasUrl,proto3" json:"has_url,omitempty"` - NativeUi bool `protobuf:"varint,3,opt,name=native_ui,json=nativeUi,proto3" json:"native_ui,omitempty"` - Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` - Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` - CacheTime int32 `protobuf:"varint,6,opt,name=cache_time,json=cacheTime,proto3" json:"cache_time,omitempty"` +type ChannelParticipantsFilter_Data struct { + Q string `protobuf:"bytes,1,opt,name=q,proto3" json:"q,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Messages_BotCallbackAnswer_Data) Reset() { *m = Messages_BotCallbackAnswer_Data{} } -func (m *Messages_BotCallbackAnswer_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_BotCallbackAnswer_Data) ProtoMessage() {} -func (*Messages_BotCallbackAnswer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{947} -} -func (m *Messages_BotCallbackAnswer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_BotCallbackAnswer_Data.Unmarshal(m, b) -} -func (m *Messages_BotCallbackAnswer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_BotCallbackAnswer_Data.Marshal(b, m, deterministic) -} -func (dst *Messages_BotCallbackAnswer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_BotCallbackAnswer_Data.Merge(dst, src) +func (m *ChannelParticipantsFilter_Data) Reset() { *m = ChannelParticipantsFilter_Data{} } +func (m *ChannelParticipantsFilter_Data) String() string { return proto.CompactTextString(m) } +func (*ChannelParticipantsFilter_Data) ProtoMessage() {} +func (*ChannelParticipantsFilter_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{901} } -func (m *Messages_BotCallbackAnswer_Data) XXX_Size() int { - return xxx_messageInfo_Messages_BotCallbackAnswer_Data.Size(m) +func (m *ChannelParticipantsFilter_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelParticipantsFilter_Data.Unmarshal(m, b) } -func (m *Messages_BotCallbackAnswer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_BotCallbackAnswer_Data.DiscardUnknown(m) +func (m *ChannelParticipantsFilter_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelParticipantsFilter_Data.Marshal(b, m, deterministic) } - -var xxx_messageInfo_Messages_BotCallbackAnswer_Data proto.InternalMessageInfo - -func (m *Messages_BotCallbackAnswer_Data) GetAlert() bool { - if m != nil { - return m.Alert - } - return false +func (dst *ChannelParticipantsFilter_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelParticipantsFilter_Data.Merge(dst, src) } - -func (m *Messages_BotCallbackAnswer_Data) GetHasUrl() bool { - if m != nil { - return m.HasUrl - } - return false +func (m *ChannelParticipantsFilter_Data) XXX_Size() int { + return xxx_messageInfo_ChannelParticipantsFilter_Data.Size(m) } - -func (m *Messages_BotCallbackAnswer_Data) GetNativeUi() bool { - if m != nil { - return m.NativeUi - } - return false +func (m *ChannelParticipantsFilter_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelParticipantsFilter_Data.DiscardUnknown(m) } -func (m *Messages_BotCallbackAnswer_Data) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} +var xxx_messageInfo_ChannelParticipantsFilter_Data proto.InternalMessageInfo -func (m *Messages_BotCallbackAnswer_Data) GetUrl() string { +func (m *ChannelParticipantsFilter_Data) GetQ() string { if m != nil { - return m.Url + return m.Q } return "" } -func (m *Messages_BotCallbackAnswer_Data) GetCacheTime() int32 { - if m != nil { - return m.CacheTime - } - return 0 -} - -type Messages_BotCallbackAnswer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_BotCallbackAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelParticipantsFilter struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_BotCallbackAnswer) Reset() { *m = Messages_BotCallbackAnswer{} } -func (m *Messages_BotCallbackAnswer) String() string { return proto.CompactTextString(m) } -func (*Messages_BotCallbackAnswer) ProtoMessage() {} -func (*Messages_BotCallbackAnswer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{948} +func (m *ChannelParticipantsFilter) Reset() { *m = ChannelParticipantsFilter{} } +func (m *ChannelParticipantsFilter) String() string { return proto.CompactTextString(m) } +func (*ChannelParticipantsFilter) ProtoMessage() {} +func (*ChannelParticipantsFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{902} } -func (m *Messages_BotCallbackAnswer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_BotCallbackAnswer.Unmarshal(m, b) +func (m *ChannelParticipantsFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelParticipantsFilter.Unmarshal(m, b) } -func (m *Messages_BotCallbackAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_BotCallbackAnswer.Marshal(b, m, deterministic) +func (m *ChannelParticipantsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelParticipantsFilter.Marshal(b, m, deterministic) } -func (dst *Messages_BotCallbackAnswer) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_BotCallbackAnswer.Merge(dst, src) +func (dst *ChannelParticipantsFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelParticipantsFilter.Merge(dst, src) } -func (m *Messages_BotCallbackAnswer) XXX_Size() int { - return xxx_messageInfo_Messages_BotCallbackAnswer.Size(m) +func (m *ChannelParticipantsFilter) XXX_Size() int { + return xxx_messageInfo_ChannelParticipantsFilter.Size(m) } -func (m *Messages_BotCallbackAnswer) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_BotCallbackAnswer.DiscardUnknown(m) +func (m *ChannelParticipantsFilter) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelParticipantsFilter.DiscardUnknown(m) } -var xxx_messageInfo_Messages_BotCallbackAnswer proto.InternalMessageInfo +var xxx_messageInfo_ChannelParticipantsFilter proto.InternalMessageInfo -func (m *Messages_BotCallbackAnswer) GetConstructor() TLConstructor { +func (m *ChannelParticipantsFilter) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_BotCallbackAnswer) GetData2() *Messages_BotCallbackAnswer_Data { +func (m *ChannelParticipantsFilter) GetData2() *ChannelParticipantsFilter_Data { if m != nil { return m.Data2 } return nil } -// messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; -type TLMessagesBotCallbackAnswer struct { - Data2 *Messages_BotCallbackAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter; +type TLChannelParticipantsRecent struct { + Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesBotCallbackAnswer) Reset() { *m = TLMessagesBotCallbackAnswer{} } -func (m *TLMessagesBotCallbackAnswer) String() string { return proto.CompactTextString(m) } -func (*TLMessagesBotCallbackAnswer) ProtoMessage() {} -func (*TLMessagesBotCallbackAnswer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{949} +func (m *TLChannelParticipantsRecent) Reset() { *m = TLChannelParticipantsRecent{} } +func (m *TLChannelParticipantsRecent) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantsRecent) ProtoMessage() {} +func (*TLChannelParticipantsRecent) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{903} } -func (m *TLMessagesBotCallbackAnswer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesBotCallbackAnswer.Unmarshal(m, b) +func (m *TLChannelParticipantsRecent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantsRecent.Unmarshal(m, b) } -func (m *TLMessagesBotCallbackAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesBotCallbackAnswer.Marshal(b, m, deterministic) +func (m *TLChannelParticipantsRecent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantsRecent.Marshal(b, m, deterministic) } -func (dst *TLMessagesBotCallbackAnswer) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesBotCallbackAnswer.Merge(dst, src) +func (dst *TLChannelParticipantsRecent) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantsRecent.Merge(dst, src) } -func (m *TLMessagesBotCallbackAnswer) XXX_Size() int { - return xxx_messageInfo_TLMessagesBotCallbackAnswer.Size(m) +func (m *TLChannelParticipantsRecent) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantsRecent.Size(m) } -func (m *TLMessagesBotCallbackAnswer) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesBotCallbackAnswer.DiscardUnknown(m) +func (m *TLChannelParticipantsRecent) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantsRecent.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesBotCallbackAnswer proto.InternalMessageInfo +var xxx_messageInfo_TLChannelParticipantsRecent proto.InternalMessageInfo -func (m *TLMessagesBotCallbackAnswer) GetData2() *Messages_BotCallbackAnswer_Data { +func (m *TLChannelParticipantsRecent) GetData2() *ChannelParticipantsFilter_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// SecureSecretSettings <-- -// + TL_secureSecretSettings -// -type SecureSecretSettings_Data struct { - SecureAlgo *SecurePasswordKdfAlgo `protobuf:"bytes,1,opt,name=secure_algo,json=secureAlgo,proto3" json:"secure_algo,omitempty"` - SecureSecret []byte `protobuf:"bytes,2,opt,name=secure_secret,json=secureSecret,proto3" json:"secure_secret,omitempty"` - SecureSecretId int64 `protobuf:"varint,3,opt,name=secure_secret_id,json=secureSecretId,proto3" json:"secure_secret_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter; +type TLChannelParticipantsAdmins struct { + Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureSecretSettings_Data) Reset() { *m = SecureSecretSettings_Data{} } -func (m *SecureSecretSettings_Data) String() string { return proto.CompactTextString(m) } -func (*SecureSecretSettings_Data) ProtoMessage() {} -func (*SecureSecretSettings_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{950} +func (m *TLChannelParticipantsAdmins) Reset() { *m = TLChannelParticipantsAdmins{} } +func (m *TLChannelParticipantsAdmins) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantsAdmins) ProtoMessage() {} +func (*TLChannelParticipantsAdmins) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{904} } -func (m *SecureSecretSettings_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureSecretSettings_Data.Unmarshal(m, b) +func (m *TLChannelParticipantsAdmins) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantsAdmins.Unmarshal(m, b) } -func (m *SecureSecretSettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureSecretSettings_Data.Marshal(b, m, deterministic) +func (m *TLChannelParticipantsAdmins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantsAdmins.Marshal(b, m, deterministic) } -func (dst *SecureSecretSettings_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureSecretSettings_Data.Merge(dst, src) +func (dst *TLChannelParticipantsAdmins) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantsAdmins.Merge(dst, src) } -func (m *SecureSecretSettings_Data) XXX_Size() int { - return xxx_messageInfo_SecureSecretSettings_Data.Size(m) +func (m *TLChannelParticipantsAdmins) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantsAdmins.Size(m) } -func (m *SecureSecretSettings_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecureSecretSettings_Data.DiscardUnknown(m) +func (m *TLChannelParticipantsAdmins) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantsAdmins.DiscardUnknown(m) } -var xxx_messageInfo_SecureSecretSettings_Data proto.InternalMessageInfo - -func (m *SecureSecretSettings_Data) GetSecureAlgo() *SecurePasswordKdfAlgo { - if m != nil { - return m.SecureAlgo - } - return nil -} +var xxx_messageInfo_TLChannelParticipantsAdmins proto.InternalMessageInfo -func (m *SecureSecretSettings_Data) GetSecureSecret() []byte { +func (m *TLChannelParticipantsAdmins) GetData2() *ChannelParticipantsFilter_Data { if m != nil { - return m.SecureSecret + return m.Data2 } return nil } -func (m *SecureSecretSettings_Data) GetSecureSecretId() int64 { - if m != nil { - return m.SecureSecretId - } - return 0 -} - -type SecureSecretSettings struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecureSecretSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter; +type TLChannelParticipantsKicked struct { + Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureSecretSettings) Reset() { *m = SecureSecretSettings{} } -func (m *SecureSecretSettings) String() string { return proto.CompactTextString(m) } -func (*SecureSecretSettings) ProtoMessage() {} -func (*SecureSecretSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{951} +func (m *TLChannelParticipantsKicked) Reset() { *m = TLChannelParticipantsKicked{} } +func (m *TLChannelParticipantsKicked) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantsKicked) ProtoMessage() {} +func (*TLChannelParticipantsKicked) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{905} } -func (m *SecureSecretSettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureSecretSettings.Unmarshal(m, b) +func (m *TLChannelParticipantsKicked) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantsKicked.Unmarshal(m, b) } -func (m *SecureSecretSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureSecretSettings.Marshal(b, m, deterministic) +func (m *TLChannelParticipantsKicked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantsKicked.Marshal(b, m, deterministic) } -func (dst *SecureSecretSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureSecretSettings.Merge(dst, src) +func (dst *TLChannelParticipantsKicked) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantsKicked.Merge(dst, src) } -func (m *SecureSecretSettings) XXX_Size() int { - return xxx_messageInfo_SecureSecretSettings.Size(m) +func (m *TLChannelParticipantsKicked) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantsKicked.Size(m) } -func (m *SecureSecretSettings) XXX_DiscardUnknown() { - xxx_messageInfo_SecureSecretSettings.DiscardUnknown(m) +func (m *TLChannelParticipantsKicked) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantsKicked.DiscardUnknown(m) } -var xxx_messageInfo_SecureSecretSettings proto.InternalMessageInfo - -func (m *SecureSecretSettings) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLChannelParticipantsKicked proto.InternalMessageInfo -func (m *SecureSecretSettings) GetData2() *SecureSecretSettings_Data { +func (m *TLChannelParticipantsKicked) GetData2() *ChannelParticipantsFilter_Data { if m != nil { return m.Data2 } return nil } -// secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings; -type TLSecureSecretSettings struct { - Data2 *SecureSecretSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelParticipantsBots#b0d1865b = ChannelParticipantsFilter; +type TLChannelParticipantsBots struct { + Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureSecretSettings) Reset() { *m = TLSecureSecretSettings{} } -func (m *TLSecureSecretSettings) String() string { return proto.CompactTextString(m) } -func (*TLSecureSecretSettings) ProtoMessage() {} -func (*TLSecureSecretSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{952} +func (m *TLChannelParticipantsBots) Reset() { *m = TLChannelParticipantsBots{} } +func (m *TLChannelParticipantsBots) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantsBots) ProtoMessage() {} +func (*TLChannelParticipantsBots) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{906} } -func (m *TLSecureSecretSettings) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureSecretSettings.Unmarshal(m, b) +func (m *TLChannelParticipantsBots) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantsBots.Unmarshal(m, b) } -func (m *TLSecureSecretSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureSecretSettings.Marshal(b, m, deterministic) +func (m *TLChannelParticipantsBots) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantsBots.Marshal(b, m, deterministic) } -func (dst *TLSecureSecretSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureSecretSettings.Merge(dst, src) +func (dst *TLChannelParticipantsBots) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantsBots.Merge(dst, src) } -func (m *TLSecureSecretSettings) XXX_Size() int { - return xxx_messageInfo_TLSecureSecretSettings.Size(m) +func (m *TLChannelParticipantsBots) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantsBots.Size(m) } -func (m *TLSecureSecretSettings) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureSecretSettings.DiscardUnknown(m) +func (m *TLChannelParticipantsBots) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantsBots.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureSecretSettings proto.InternalMessageInfo +var xxx_messageInfo_TLChannelParticipantsBots proto.InternalMessageInfo -func (m *TLSecureSecretSettings) GetData2() *SecureSecretSettings_Data { +func (m *TLChannelParticipantsBots) GetData2() *ChannelParticipantsFilter_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Authorization <-- -// + TL_authorization -// -type Authorization_Data struct { - Hash int64 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - Flags int32 `protobuf:"varint,2,opt,name=flags,proto3" json:"flags,omitempty"` - DeviceModel string `protobuf:"bytes,3,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"` - Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"` - SystemVersion string `protobuf:"bytes,5,opt,name=system_version,json=systemVersion,proto3" json:"system_version,omitempty"` - ApiId int32 `protobuf:"varint,6,opt,name=api_id,json=apiId,proto3" json:"api_id,omitempty"` - AppName string `protobuf:"bytes,7,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` - AppVersion string `protobuf:"bytes,8,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` - DateCreated int32 `protobuf:"varint,9,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"` - DateActive int32 `protobuf:"varint,10,opt,name=date_active,json=dateActive,proto3" json:"date_active,omitempty"` - Ip string `protobuf:"bytes,11,opt,name=ip,proto3" json:"ip,omitempty"` - Country string `protobuf:"bytes,12,opt,name=country,proto3" json:"country,omitempty"` - Region string `protobuf:"bytes,13,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Authorization_Data) Reset() { *m = Authorization_Data{} } -func (m *Authorization_Data) String() string { return proto.CompactTextString(m) } -func (*Authorization_Data) ProtoMessage() {} -func (*Authorization_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{953} +// channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter; +type TLChannelParticipantsBanned struct { + Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Authorization_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Authorization_Data.Unmarshal(m, b) + +func (m *TLChannelParticipantsBanned) Reset() { *m = TLChannelParticipantsBanned{} } +func (m *TLChannelParticipantsBanned) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantsBanned) ProtoMessage() {} +func (*TLChannelParticipantsBanned) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{907} } -func (m *Authorization_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Authorization_Data.Marshal(b, m, deterministic) +func (m *TLChannelParticipantsBanned) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantsBanned.Unmarshal(m, b) } -func (dst *Authorization_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Authorization_Data.Merge(dst, src) +func (m *TLChannelParticipantsBanned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantsBanned.Marshal(b, m, deterministic) } -func (m *Authorization_Data) XXX_Size() int { - return xxx_messageInfo_Authorization_Data.Size(m) +func (dst *TLChannelParticipantsBanned) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantsBanned.Merge(dst, src) } -func (m *Authorization_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Authorization_Data.DiscardUnknown(m) +func (m *TLChannelParticipantsBanned) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantsBanned.Size(m) +} +func (m *TLChannelParticipantsBanned) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantsBanned.DiscardUnknown(m) } -var xxx_messageInfo_Authorization_Data proto.InternalMessageInfo +var xxx_messageInfo_TLChannelParticipantsBanned proto.InternalMessageInfo -func (m *Authorization_Data) GetHash() int64 { +func (m *TLChannelParticipantsBanned) GetData2() *ChannelParticipantsFilter_Data { if m != nil { - return m.Hash + return m.Data2 } - return 0 + return nil } -func (m *Authorization_Data) GetFlags() int32 { - if m != nil { - return m.Flags - } - return 0 +// channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter; +type TLChannelParticipantsSearch struct { + Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Authorization_Data) GetDeviceModel() string { - if m != nil { - return m.DeviceModel - } - return "" +func (m *TLChannelParticipantsSearch) Reset() { *m = TLChannelParticipantsSearch{} } +func (m *TLChannelParticipantsSearch) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantsSearch) ProtoMessage() {} +func (*TLChannelParticipantsSearch) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{908} } - -func (m *Authorization_Data) GetPlatform() string { - if m != nil { - return m.Platform - } - return "" +func (m *TLChannelParticipantsSearch) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantsSearch.Unmarshal(m, b) +} +func (m *TLChannelParticipantsSearch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantsSearch.Marshal(b, m, deterministic) +} +func (dst *TLChannelParticipantsSearch) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantsSearch.Merge(dst, src) +} +func (m *TLChannelParticipantsSearch) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantsSearch.Size(m) +} +func (m *TLChannelParticipantsSearch) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantsSearch.DiscardUnknown(m) } -func (m *Authorization_Data) GetSystemVersion() string { +var xxx_messageInfo_TLChannelParticipantsSearch proto.InternalMessageInfo + +func (m *TLChannelParticipantsSearch) GetData2() *ChannelParticipantsFilter_Data { if m != nil { - return m.SystemVersion + return m.Data2 } - return "" + return nil } -func (m *Authorization_Data) GetApiId() int32 { - if m != nil { - return m.ApiId - } - return 0 +// ///////////////////////////////////////////////////////////////////////////// +// InputStickeredMedia <-- +// + TL_inputStickeredMediaPhoto +// + TL_inputStickeredMediaDocument +// +type InputStickeredMedia_Data struct { + Id_1 *InputPhoto `protobuf:"bytes,1,opt,name=id_1,json=id1,proto3" json:"id_1,omitempty"` + Id_2 *InputDocument `protobuf:"bytes,2,opt,name=id_2,json=id2,proto3" json:"id_2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Authorization_Data) GetAppName() string { - if m != nil { - return m.AppName - } - return "" +func (m *InputStickeredMedia_Data) Reset() { *m = InputStickeredMedia_Data{} } +func (m *InputStickeredMedia_Data) String() string { return proto.CompactTextString(m) } +func (*InputStickeredMedia_Data) ProtoMessage() {} +func (*InputStickeredMedia_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{909} +} +func (m *InputStickeredMedia_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputStickeredMedia_Data.Unmarshal(m, b) +} +func (m *InputStickeredMedia_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputStickeredMedia_Data.Marshal(b, m, deterministic) +} +func (dst *InputStickeredMedia_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputStickeredMedia_Data.Merge(dst, src) +} +func (m *InputStickeredMedia_Data) XXX_Size() int { + return xxx_messageInfo_InputStickeredMedia_Data.Size(m) +} +func (m *InputStickeredMedia_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputStickeredMedia_Data.DiscardUnknown(m) } -func (m *Authorization_Data) GetAppVersion() string { +var xxx_messageInfo_InputStickeredMedia_Data proto.InternalMessageInfo + +func (m *InputStickeredMedia_Data) GetId_1() *InputPhoto { if m != nil { - return m.AppVersion + return m.Id_1 } - return "" + return nil } -func (m *Authorization_Data) GetDateCreated() int32 { +func (m *InputStickeredMedia_Data) GetId_2() *InputDocument { if m != nil { - return m.DateCreated + return m.Id_2 } - return 0 + return nil } -func (m *Authorization_Data) GetDateActive() int32 { - if m != nil { - return m.DateActive - } - return 0 +type InputStickeredMedia struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputStickeredMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Authorization_Data) GetIp() string { - if m != nil { - return m.Ip - } - return "" +func (m *InputStickeredMedia) Reset() { *m = InputStickeredMedia{} } +func (m *InputStickeredMedia) String() string { return proto.CompactTextString(m) } +func (*InputStickeredMedia) ProtoMessage() {} +func (*InputStickeredMedia) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{910} +} +func (m *InputStickeredMedia) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputStickeredMedia.Unmarshal(m, b) +} +func (m *InputStickeredMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputStickeredMedia.Marshal(b, m, deterministic) +} +func (dst *InputStickeredMedia) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputStickeredMedia.Merge(dst, src) +} +func (m *InputStickeredMedia) XXX_Size() int { + return xxx_messageInfo_InputStickeredMedia.Size(m) +} +func (m *InputStickeredMedia) XXX_DiscardUnknown() { + xxx_messageInfo_InputStickeredMedia.DiscardUnknown(m) } -func (m *Authorization_Data) GetCountry() string { +var xxx_messageInfo_InputStickeredMedia proto.InternalMessageInfo + +func (m *InputStickeredMedia) GetConstructor() TLConstructor { if m != nil { - return m.Country + return m.Constructor } - return "" + return TLConstructor_CRC32_UNKNOWN } -func (m *Authorization_Data) GetRegion() string { +func (m *InputStickeredMedia) GetData2() *InputStickeredMedia_Data { if m != nil { - return m.Region + return m.Data2 } - return "" + return nil } -type Authorization struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Authorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia; +type TLInputStickeredMediaPhoto struct { + Data2 *InputStickeredMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Authorization) Reset() { *m = Authorization{} } -func (m *Authorization) String() string { return proto.CompactTextString(m) } -func (*Authorization) ProtoMessage() {} -func (*Authorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{954} +func (m *TLInputStickeredMediaPhoto) Reset() { *m = TLInputStickeredMediaPhoto{} } +func (m *TLInputStickeredMediaPhoto) String() string { return proto.CompactTextString(m) } +func (*TLInputStickeredMediaPhoto) ProtoMessage() {} +func (*TLInputStickeredMediaPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{911} } -func (m *Authorization) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Authorization.Unmarshal(m, b) +func (m *TLInputStickeredMediaPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputStickeredMediaPhoto.Unmarshal(m, b) } -func (m *Authorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Authorization.Marshal(b, m, deterministic) +func (m *TLInputStickeredMediaPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputStickeredMediaPhoto.Marshal(b, m, deterministic) } -func (dst *Authorization) XXX_Merge(src proto.Message) { - xxx_messageInfo_Authorization.Merge(dst, src) +func (dst *TLInputStickeredMediaPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputStickeredMediaPhoto.Merge(dst, src) } -func (m *Authorization) XXX_Size() int { - return xxx_messageInfo_Authorization.Size(m) +func (m *TLInputStickeredMediaPhoto) XXX_Size() int { + return xxx_messageInfo_TLInputStickeredMediaPhoto.Size(m) } -func (m *Authorization) XXX_DiscardUnknown() { - xxx_messageInfo_Authorization.DiscardUnknown(m) +func (m *TLInputStickeredMediaPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputStickeredMediaPhoto.DiscardUnknown(m) } -var xxx_messageInfo_Authorization proto.InternalMessageInfo - -func (m *Authorization) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputStickeredMediaPhoto proto.InternalMessageInfo -func (m *Authorization) GetData2() *Authorization_Data { +func (m *TLInputStickeredMediaPhoto) GetData2() *InputStickeredMedia_Data { if m != nil { return m.Data2 } return nil } -// authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization; -type TLAuthorization struct { - Data2 *Authorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia; +type TLInputStickeredMediaDocument struct { + Data2 *InputStickeredMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAuthorization) Reset() { *m = TLAuthorization{} } -func (m *TLAuthorization) String() string { return proto.CompactTextString(m) } -func (*TLAuthorization) ProtoMessage() {} -func (*TLAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{955} +func (m *TLInputStickeredMediaDocument) Reset() { *m = TLInputStickeredMediaDocument{} } +func (m *TLInputStickeredMediaDocument) String() string { return proto.CompactTextString(m) } +func (*TLInputStickeredMediaDocument) ProtoMessage() {} +func (*TLInputStickeredMediaDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{912} } -func (m *TLAuthorization) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthorization.Unmarshal(m, b) +func (m *TLInputStickeredMediaDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputStickeredMediaDocument.Unmarshal(m, b) } -func (m *TLAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthorization.Marshal(b, m, deterministic) +func (m *TLInputStickeredMediaDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputStickeredMediaDocument.Marshal(b, m, deterministic) } -func (dst *TLAuthorization) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthorization.Merge(dst, src) +func (dst *TLInputStickeredMediaDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputStickeredMediaDocument.Merge(dst, src) } -func (m *TLAuthorization) XXX_Size() int { - return xxx_messageInfo_TLAuthorization.Size(m) +func (m *TLInputStickeredMediaDocument) XXX_Size() int { + return xxx_messageInfo_TLInputStickeredMediaDocument.Size(m) } -func (m *TLAuthorization) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthorization.DiscardUnknown(m) +func (m *TLInputStickeredMediaDocument) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputStickeredMediaDocument.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthorization proto.InternalMessageInfo +var xxx_messageInfo_TLInputStickeredMediaDocument proto.InternalMessageInfo -func (m *TLAuthorization) GetData2() *Authorization_Data { +func (m *TLInputStickeredMediaDocument) GetData2() *InputStickeredMedia_Data { if m != nil { return m.Data2 } @@ -46474,150 +44859,134 @@ func (m *TLAuthorization) GetData2() *Authorization_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PhoneCallProtocol <-- -// + TL_phoneCallProtocol +// InputClientProxy <-- +// + TL_inputClientProxy // -type PhoneCallProtocol_Data struct { - UdpP2P bool `protobuf:"varint,1,opt,name=udp_p2p,json=udpP2p,proto3" json:"udp_p2p,omitempty"` - UdpReflector bool `protobuf:"varint,2,opt,name=udp_reflector,json=udpReflector,proto3" json:"udp_reflector,omitempty"` - MinLayer int32 `protobuf:"varint,3,opt,name=min_layer,json=minLayer,proto3" json:"min_layer,omitempty"` - MaxLayer int32 `protobuf:"varint,4,opt,name=max_layer,json=maxLayer,proto3" json:"max_layer,omitempty"` +type InputClientProxy_Data struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *PhoneCallProtocol_Data) Reset() { *m = PhoneCallProtocol_Data{} } -func (m *PhoneCallProtocol_Data) String() string { return proto.CompactTextString(m) } -func (*PhoneCallProtocol_Data) ProtoMessage() {} -func (*PhoneCallProtocol_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{956} -} -func (m *PhoneCallProtocol_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneCallProtocol_Data.Unmarshal(m, b) +func (m *InputClientProxy_Data) Reset() { *m = InputClientProxy_Data{} } +func (m *InputClientProxy_Data) String() string { return proto.CompactTextString(m) } +func (*InputClientProxy_Data) ProtoMessage() {} +func (*InputClientProxy_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{913} } -func (m *PhoneCallProtocol_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneCallProtocol_Data.Marshal(b, m, deterministic) +func (m *InputClientProxy_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputClientProxy_Data.Unmarshal(m, b) } -func (dst *PhoneCallProtocol_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneCallProtocol_Data.Merge(dst, src) +func (m *InputClientProxy_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputClientProxy_Data.Marshal(b, m, deterministic) } -func (m *PhoneCallProtocol_Data) XXX_Size() int { - return xxx_messageInfo_PhoneCallProtocol_Data.Size(m) +func (dst *InputClientProxy_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputClientProxy_Data.Merge(dst, src) } -func (m *PhoneCallProtocol_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneCallProtocol_Data.DiscardUnknown(m) +func (m *InputClientProxy_Data) XXX_Size() int { + return xxx_messageInfo_InputClientProxy_Data.Size(m) } - -var xxx_messageInfo_PhoneCallProtocol_Data proto.InternalMessageInfo - -func (m *PhoneCallProtocol_Data) GetUdpP2P() bool { - if m != nil { - return m.UdpP2P - } - return false +func (m *InputClientProxy_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputClientProxy_Data.DiscardUnknown(m) } -func (m *PhoneCallProtocol_Data) GetUdpReflector() bool { - if m != nil { - return m.UdpReflector - } - return false -} +var xxx_messageInfo_InputClientProxy_Data proto.InternalMessageInfo -func (m *PhoneCallProtocol_Data) GetMinLayer() int32 { +func (m *InputClientProxy_Data) GetAddress() string { if m != nil { - return m.MinLayer + return m.Address } - return 0 + return "" } -func (m *PhoneCallProtocol_Data) GetMaxLayer() int32 { +func (m *InputClientProxy_Data) GetPort() int32 { if m != nil { - return m.MaxLayer + return m.Port } return 0 } -type PhoneCallProtocol struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PhoneCallProtocol_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputClientProxy struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputClientProxy_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PhoneCallProtocol) Reset() { *m = PhoneCallProtocol{} } -func (m *PhoneCallProtocol) String() string { return proto.CompactTextString(m) } -func (*PhoneCallProtocol) ProtoMessage() {} -func (*PhoneCallProtocol) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{957} +func (m *InputClientProxy) Reset() { *m = InputClientProxy{} } +func (m *InputClientProxy) String() string { return proto.CompactTextString(m) } +func (*InputClientProxy) ProtoMessage() {} +func (*InputClientProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{914} } -func (m *PhoneCallProtocol) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhoneCallProtocol.Unmarshal(m, b) +func (m *InputClientProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputClientProxy.Unmarshal(m, b) } -func (m *PhoneCallProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhoneCallProtocol.Marshal(b, m, deterministic) +func (m *InputClientProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputClientProxy.Marshal(b, m, deterministic) } -func (dst *PhoneCallProtocol) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhoneCallProtocol.Merge(dst, src) +func (dst *InputClientProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputClientProxy.Merge(dst, src) } -func (m *PhoneCallProtocol) XXX_Size() int { - return xxx_messageInfo_PhoneCallProtocol.Size(m) +func (m *InputClientProxy) XXX_Size() int { + return xxx_messageInfo_InputClientProxy.Size(m) } -func (m *PhoneCallProtocol) XXX_DiscardUnknown() { - xxx_messageInfo_PhoneCallProtocol.DiscardUnknown(m) +func (m *InputClientProxy) XXX_DiscardUnknown() { + xxx_messageInfo_InputClientProxy.DiscardUnknown(m) } -var xxx_messageInfo_PhoneCallProtocol proto.InternalMessageInfo +var xxx_messageInfo_InputClientProxy proto.InternalMessageInfo -func (m *PhoneCallProtocol) GetConstructor() TLConstructor { +func (m *InputClientProxy) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PhoneCallProtocol) GetData2() *PhoneCallProtocol_Data { +func (m *InputClientProxy) GetData2() *InputClientProxy_Data { if m != nil { return m.Data2 } return nil } -// phoneCallProtocol#a2bb35cb flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int = PhoneCallProtocol; -type TLPhoneCallProtocol struct { - Data2 *PhoneCallProtocol_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputClientProxy#75588b3f address:string port:int = InputClientProxy; +type TLInputClientProxy struct { + Data2 *InputClientProxy_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoneCallProtocol) Reset() { *m = TLPhoneCallProtocol{} } -func (m *TLPhoneCallProtocol) String() string { return proto.CompactTextString(m) } -func (*TLPhoneCallProtocol) ProtoMessage() {} -func (*TLPhoneCallProtocol) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{958} +func (m *TLInputClientProxy) Reset() { *m = TLInputClientProxy{} } +func (m *TLInputClientProxy) String() string { return proto.CompactTextString(m) } +func (*TLInputClientProxy) ProtoMessage() {} +func (*TLInputClientProxy) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{915} } -func (m *TLPhoneCallProtocol) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoneCallProtocol.Unmarshal(m, b) +func (m *TLInputClientProxy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputClientProxy.Unmarshal(m, b) } -func (m *TLPhoneCallProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoneCallProtocol.Marshal(b, m, deterministic) +func (m *TLInputClientProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputClientProxy.Marshal(b, m, deterministic) } -func (dst *TLPhoneCallProtocol) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoneCallProtocol.Merge(dst, src) +func (dst *TLInputClientProxy) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputClientProxy.Merge(dst, src) } -func (m *TLPhoneCallProtocol) XXX_Size() int { - return xxx_messageInfo_TLPhoneCallProtocol.Size(m) +func (m *TLInputClientProxy) XXX_Size() int { + return xxx_messageInfo_TLInputClientProxy.Size(m) } -func (m *TLPhoneCallProtocol) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoneCallProtocol.DiscardUnknown(m) +func (m *TLInputClientProxy) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputClientProxy.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoneCallProtocol proto.InternalMessageInfo +var xxx_messageInfo_TLInputClientProxy proto.InternalMessageInfo -func (m *TLPhoneCallProtocol) GetData2() *PhoneCallProtocol_Data { +func (m *TLInputClientProxy) GetData2() *InputClientProxy_Data { if m != nil { return m.Data2 } @@ -46625,2616 +44994,2453 @@ func (m *TLPhoneCallProtocol) GetData2() *PhoneCallProtocol_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputMessage <-- -// + TL_inputMessageID -// + TL_inputMessageReplyTo -// + TL_inputMessagePinned +// SecureValueType <-- +// + TL_secureValueTypePersonalDetails +// + TL_secureValueTypePassport +// + TL_secureValueTypeDriverLicense +// + TL_secureValueTypeIdentityCard +// + TL_secureValueTypeInternalPassport +// + TL_secureValueTypeAddress +// + TL_secureValueTypeUtilityBill +// + TL_secureValueTypeBankStatement +// + TL_secureValueTypeRentalAgreement +// + TL_secureValueTypePassportRegistration +// + TL_secureValueTypeTemporaryRegistration +// + TL_secureValueTypePhone +// + TL_secureValueTypeEmail // -type InputMessage_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +type SecureValueType_Data struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *InputMessage_Data) Reset() { *m = InputMessage_Data{} } -func (m *InputMessage_Data) String() string { return proto.CompactTextString(m) } -func (*InputMessage_Data) ProtoMessage() {} -func (*InputMessage_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{959} +func (m *SecureValueType_Data) Reset() { *m = SecureValueType_Data{} } +func (m *SecureValueType_Data) String() string { return proto.CompactTextString(m) } +func (*SecureValueType_Data) ProtoMessage() {} +func (*SecureValueType_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{916} } -func (m *InputMessage_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputMessage_Data.Unmarshal(m, b) +func (m *SecureValueType_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureValueType_Data.Unmarshal(m, b) } -func (m *InputMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputMessage_Data.Marshal(b, m, deterministic) +func (m *SecureValueType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureValueType_Data.Marshal(b, m, deterministic) } -func (dst *InputMessage_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputMessage_Data.Merge(dst, src) +func (dst *SecureValueType_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureValueType_Data.Merge(dst, src) } -func (m *InputMessage_Data) XXX_Size() int { - return xxx_messageInfo_InputMessage_Data.Size(m) +func (m *SecureValueType_Data) XXX_Size() int { + return xxx_messageInfo_SecureValueType_Data.Size(m) } -func (m *InputMessage_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputMessage_Data.DiscardUnknown(m) +func (m *SecureValueType_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecureValueType_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputMessage_Data proto.InternalMessageInfo +var xxx_messageInfo_SecureValueType_Data proto.InternalMessageInfo -func (m *InputMessage_Data) GetId() int32 { - if m != nil { - return m.Id - } - return 0 +type SecureValueType struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -type InputMessage struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InputMessage) Reset() { *m = InputMessage{} } -func (m *InputMessage) String() string { return proto.CompactTextString(m) } -func (*InputMessage) ProtoMessage() {} -func (*InputMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{960} +func (m *SecureValueType) Reset() { *m = SecureValueType{} } +func (m *SecureValueType) String() string { return proto.CompactTextString(m) } +func (*SecureValueType) ProtoMessage() {} +func (*SecureValueType) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{917} } -func (m *InputMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputMessage.Unmarshal(m, b) +func (m *SecureValueType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureValueType.Unmarshal(m, b) } -func (m *InputMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputMessage.Marshal(b, m, deterministic) +func (m *SecureValueType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureValueType.Marshal(b, m, deterministic) } -func (dst *InputMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputMessage.Merge(dst, src) +func (dst *SecureValueType) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureValueType.Merge(dst, src) } -func (m *InputMessage) XXX_Size() int { - return xxx_messageInfo_InputMessage.Size(m) +func (m *SecureValueType) XXX_Size() int { + return xxx_messageInfo_SecureValueType.Size(m) } -func (m *InputMessage) XXX_DiscardUnknown() { - xxx_messageInfo_InputMessage.DiscardUnknown(m) +func (m *SecureValueType) XXX_DiscardUnknown() { + xxx_messageInfo_SecureValueType.DiscardUnknown(m) } -var xxx_messageInfo_InputMessage proto.InternalMessageInfo +var xxx_messageInfo_SecureValueType proto.InternalMessageInfo -func (m *InputMessage) GetConstructor() TLConstructor { +func (m *SecureValueType) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputMessage) GetData2() *InputMessage_Data { +func (m *SecureValueType) GetData2() *SecureValueType_Data { if m != nil { return m.Data2 } return nil } -// inputMessageID#a676a322 id:int = InputMessage; -type TLInputMessageID struct { - Data2 *InputMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypePersonalDetails#9d2a81e3 = SecureValueType; +type TLSecureValueTypePersonalDetails struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessageID) Reset() { *m = TLInputMessageID{} } -func (m *TLInputMessageID) String() string { return proto.CompactTextString(m) } -func (*TLInputMessageID) ProtoMessage() {} -func (*TLInputMessageID) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{961} +func (m *TLSecureValueTypePersonalDetails) Reset() { *m = TLSecureValueTypePersonalDetails{} } +func (m *TLSecureValueTypePersonalDetails) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypePersonalDetails) ProtoMessage() {} +func (*TLSecureValueTypePersonalDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{918} } -func (m *TLInputMessageID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessageID.Unmarshal(m, b) +func (m *TLSecureValueTypePersonalDetails) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypePersonalDetails.Unmarshal(m, b) } -func (m *TLInputMessageID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessageID.Marshal(b, m, deterministic) +func (m *TLSecureValueTypePersonalDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypePersonalDetails.Marshal(b, m, deterministic) } -func (dst *TLInputMessageID) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessageID.Merge(dst, src) +func (dst *TLSecureValueTypePersonalDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypePersonalDetails.Merge(dst, src) } -func (m *TLInputMessageID) XXX_Size() int { - return xxx_messageInfo_TLInputMessageID.Size(m) +func (m *TLSecureValueTypePersonalDetails) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypePersonalDetails.Size(m) } -func (m *TLInputMessageID) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessageID.DiscardUnknown(m) +func (m *TLSecureValueTypePersonalDetails) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypePersonalDetails.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessageID proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueTypePersonalDetails proto.InternalMessageInfo -func (m *TLInputMessageID) GetData2() *InputMessage_Data { +func (m *TLSecureValueTypePersonalDetails) GetData2() *SecureValueType_Data { if m != nil { return m.Data2 } return nil } -// inputMessageReplyTo#bad88395 id:int = InputMessage; -type TLInputMessageReplyTo struct { - Data2 *InputMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypePassport#3dac6a00 = SecureValueType; +type TLSecureValueTypePassport struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessageReplyTo) Reset() { *m = TLInputMessageReplyTo{} } -func (m *TLInputMessageReplyTo) String() string { return proto.CompactTextString(m) } -func (*TLInputMessageReplyTo) ProtoMessage() {} -func (*TLInputMessageReplyTo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{962} +func (m *TLSecureValueTypePassport) Reset() { *m = TLSecureValueTypePassport{} } +func (m *TLSecureValueTypePassport) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypePassport) ProtoMessage() {} +func (*TLSecureValueTypePassport) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{919} } -func (m *TLInputMessageReplyTo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessageReplyTo.Unmarshal(m, b) +func (m *TLSecureValueTypePassport) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypePassport.Unmarshal(m, b) } -func (m *TLInputMessageReplyTo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessageReplyTo.Marshal(b, m, deterministic) +func (m *TLSecureValueTypePassport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypePassport.Marshal(b, m, deterministic) } -func (dst *TLInputMessageReplyTo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessageReplyTo.Merge(dst, src) +func (dst *TLSecureValueTypePassport) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypePassport.Merge(dst, src) } -func (m *TLInputMessageReplyTo) XXX_Size() int { - return xxx_messageInfo_TLInputMessageReplyTo.Size(m) +func (m *TLSecureValueTypePassport) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypePassport.Size(m) } -func (m *TLInputMessageReplyTo) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessageReplyTo.DiscardUnknown(m) +func (m *TLSecureValueTypePassport) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypePassport.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessageReplyTo proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueTypePassport proto.InternalMessageInfo -func (m *TLInputMessageReplyTo) GetData2() *InputMessage_Data { +func (m *TLSecureValueTypePassport) GetData2() *SecureValueType_Data { if m != nil { return m.Data2 } return nil } -// inputMessagePinned#86872538 = InputMessage; -type TLInputMessagePinned struct { - Data2 *InputMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypeDriverLicense#6e425c4 = SecureValueType; +type TLSecureValueTypeDriverLicense struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagePinned) Reset() { *m = TLInputMessagePinned{} } -func (m *TLInputMessagePinned) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagePinned) ProtoMessage() {} -func (*TLInputMessagePinned) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{963} +func (m *TLSecureValueTypeDriverLicense) Reset() { *m = TLSecureValueTypeDriverLicense{} } +func (m *TLSecureValueTypeDriverLicense) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypeDriverLicense) ProtoMessage() {} +func (*TLSecureValueTypeDriverLicense) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{920} } -func (m *TLInputMessagePinned) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagePinned.Unmarshal(m, b) +func (m *TLSecureValueTypeDriverLicense) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypeDriverLicense.Unmarshal(m, b) } -func (m *TLInputMessagePinned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagePinned.Marshal(b, m, deterministic) +func (m *TLSecureValueTypeDriverLicense) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypeDriverLicense.Marshal(b, m, deterministic) } -func (dst *TLInputMessagePinned) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagePinned.Merge(dst, src) +func (dst *TLSecureValueTypeDriverLicense) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypeDriverLicense.Merge(dst, src) } -func (m *TLInputMessagePinned) XXX_Size() int { - return xxx_messageInfo_TLInputMessagePinned.Size(m) +func (m *TLSecureValueTypeDriverLicense) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypeDriverLicense.Size(m) } -func (m *TLInputMessagePinned) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagePinned.DiscardUnknown(m) +func (m *TLSecureValueTypeDriverLicense) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypeDriverLicense.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagePinned proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueTypeDriverLicense proto.InternalMessageInfo -func (m *TLInputMessagePinned) GetData2() *InputMessage_Data { +func (m *TLSecureValueTypeDriverLicense) GetData2() *SecureValueType_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputSecureValue <-- -// + TL_inputSecureValue -// -type InputSecureValue_Data struct { - Type *SecureValueType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Data *SecureData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - FrontSide *InputSecureFile `protobuf:"bytes,3,opt,name=front_side,json=frontSide,proto3" json:"front_side,omitempty"` - ReverseSide *InputSecureFile `protobuf:"bytes,4,opt,name=reverse_side,json=reverseSide,proto3" json:"reverse_side,omitempty"` - Selfie *InputSecureFile `protobuf:"bytes,5,opt,name=selfie,proto3" json:"selfie,omitempty"` - Translation []*InputSecureFile `protobuf:"bytes,6,rep,name=translation,proto3" json:"translation,omitempty"` - Files []*InputSecureFile `protobuf:"bytes,7,rep,name=files,proto3" json:"files,omitempty"` - PlainData *SecurePlainData `protobuf:"bytes,8,opt,name=plain_data,json=plainData,proto3" json:"plain_data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypeIdentityCard#a0d0744b = SecureValueType; +type TLSecureValueTypeIdentityCard struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputSecureValue_Data) Reset() { *m = InputSecureValue_Data{} } -func (m *InputSecureValue_Data) String() string { return proto.CompactTextString(m) } -func (*InputSecureValue_Data) ProtoMessage() {} -func (*InputSecureValue_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{964} +func (m *TLSecureValueTypeIdentityCard) Reset() { *m = TLSecureValueTypeIdentityCard{} } +func (m *TLSecureValueTypeIdentityCard) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypeIdentityCard) ProtoMessage() {} +func (*TLSecureValueTypeIdentityCard) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{921} } -func (m *InputSecureValue_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputSecureValue_Data.Unmarshal(m, b) +func (m *TLSecureValueTypeIdentityCard) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypeIdentityCard.Unmarshal(m, b) } -func (m *InputSecureValue_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputSecureValue_Data.Marshal(b, m, deterministic) +func (m *TLSecureValueTypeIdentityCard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypeIdentityCard.Marshal(b, m, deterministic) } -func (dst *InputSecureValue_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputSecureValue_Data.Merge(dst, src) +func (dst *TLSecureValueTypeIdentityCard) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypeIdentityCard.Merge(dst, src) } -func (m *InputSecureValue_Data) XXX_Size() int { - return xxx_messageInfo_InputSecureValue_Data.Size(m) +func (m *TLSecureValueTypeIdentityCard) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypeIdentityCard.Size(m) } -func (m *InputSecureValue_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputSecureValue_Data.DiscardUnknown(m) +func (m *TLSecureValueTypeIdentityCard) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypeIdentityCard.DiscardUnknown(m) } -var xxx_messageInfo_InputSecureValue_Data proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueTypeIdentityCard proto.InternalMessageInfo -func (m *InputSecureValue_Data) GetType() *SecureValueType { +func (m *TLSecureValueTypeIdentityCard) GetData2() *SecureValueType_Data { if m != nil { - return m.Type + return m.Data2 } return nil } -func (m *InputSecureValue_Data) GetData() *SecureData { - if m != nil { - return m.Data - } - return nil +// secureValueTypeInternalPassport#99a48f23 = SecureValueType; +type TLSecureValueTypeInternalPassport struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputSecureValue_Data) GetFrontSide() *InputSecureFile { - if m != nil { - return m.FrontSide - } - return nil +func (m *TLSecureValueTypeInternalPassport) Reset() { *m = TLSecureValueTypeInternalPassport{} } +func (m *TLSecureValueTypeInternalPassport) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypeInternalPassport) ProtoMessage() {} +func (*TLSecureValueTypeInternalPassport) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{922} } - -func (m *InputSecureValue_Data) GetReverseSide() *InputSecureFile { - if m != nil { - return m.ReverseSide - } - return nil +func (m *TLSecureValueTypeInternalPassport) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypeInternalPassport.Unmarshal(m, b) } - -func (m *InputSecureValue_Data) GetSelfie() *InputSecureFile { - if m != nil { - return m.Selfie - } - return nil +func (m *TLSecureValueTypeInternalPassport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypeInternalPassport.Marshal(b, m, deterministic) } - -func (m *InputSecureValue_Data) GetTranslation() []*InputSecureFile { - if m != nil { - return m.Translation - } - return nil +func (dst *TLSecureValueTypeInternalPassport) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypeInternalPassport.Merge(dst, src) } - -func (m *InputSecureValue_Data) GetFiles() []*InputSecureFile { - if m != nil { - return m.Files - } - return nil +func (m *TLSecureValueTypeInternalPassport) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypeInternalPassport.Size(m) +} +func (m *TLSecureValueTypeInternalPassport) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypeInternalPassport.DiscardUnknown(m) } -func (m *InputSecureValue_Data) GetPlainData() *SecurePlainData { +var xxx_messageInfo_TLSecureValueTypeInternalPassport proto.InternalMessageInfo + +func (m *TLSecureValueTypeInternalPassport) GetData2() *SecureValueType_Data { if m != nil { - return m.PlainData + return m.Data2 } return nil } -type InputSecureValue struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputSecureValue_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypeAddress#cbe31e26 = SecureValueType; +type TLSecureValueTypeAddress struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputSecureValue) Reset() { *m = InputSecureValue{} } -func (m *InputSecureValue) String() string { return proto.CompactTextString(m) } -func (*InputSecureValue) ProtoMessage() {} -func (*InputSecureValue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{965} +func (m *TLSecureValueTypeAddress) Reset() { *m = TLSecureValueTypeAddress{} } +func (m *TLSecureValueTypeAddress) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypeAddress) ProtoMessage() {} +func (*TLSecureValueTypeAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{923} } -func (m *InputSecureValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputSecureValue.Unmarshal(m, b) +func (m *TLSecureValueTypeAddress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypeAddress.Unmarshal(m, b) } -func (m *InputSecureValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputSecureValue.Marshal(b, m, deterministic) +func (m *TLSecureValueTypeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypeAddress.Marshal(b, m, deterministic) } -func (dst *InputSecureValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputSecureValue.Merge(dst, src) +func (dst *TLSecureValueTypeAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypeAddress.Merge(dst, src) } -func (m *InputSecureValue) XXX_Size() int { - return xxx_messageInfo_InputSecureValue.Size(m) +func (m *TLSecureValueTypeAddress) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypeAddress.Size(m) } -func (m *InputSecureValue) XXX_DiscardUnknown() { - xxx_messageInfo_InputSecureValue.DiscardUnknown(m) +func (m *TLSecureValueTypeAddress) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypeAddress.DiscardUnknown(m) } -var xxx_messageInfo_InputSecureValue proto.InternalMessageInfo - -func (m *InputSecureValue) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLSecureValueTypeAddress proto.InternalMessageInfo -func (m *InputSecureValue) GetData2() *InputSecureValue_Data { +func (m *TLSecureValueTypeAddress) GetData2() *SecureValueType_Data { if m != nil { return m.Data2 } return nil } -// inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue; -type TLInputSecureValue struct { - Data2 *InputSecureValue_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypeUtilityBill#fc36954e = SecureValueType; +type TLSecureValueTypeUtilityBill struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputSecureValue) Reset() { *m = TLInputSecureValue{} } -func (m *TLInputSecureValue) String() string { return proto.CompactTextString(m) } -func (*TLInputSecureValue) ProtoMessage() {} -func (*TLInputSecureValue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{966} +func (m *TLSecureValueTypeUtilityBill) Reset() { *m = TLSecureValueTypeUtilityBill{} } +func (m *TLSecureValueTypeUtilityBill) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypeUtilityBill) ProtoMessage() {} +func (*TLSecureValueTypeUtilityBill) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{924} } -func (m *TLInputSecureValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputSecureValue.Unmarshal(m, b) +func (m *TLSecureValueTypeUtilityBill) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypeUtilityBill.Unmarshal(m, b) } -func (m *TLInputSecureValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputSecureValue.Marshal(b, m, deterministic) +func (m *TLSecureValueTypeUtilityBill) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypeUtilityBill.Marshal(b, m, deterministic) } -func (dst *TLInputSecureValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputSecureValue.Merge(dst, src) +func (dst *TLSecureValueTypeUtilityBill) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypeUtilityBill.Merge(dst, src) } -func (m *TLInputSecureValue) XXX_Size() int { - return xxx_messageInfo_TLInputSecureValue.Size(m) +func (m *TLSecureValueTypeUtilityBill) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypeUtilityBill.Size(m) } -func (m *TLInputSecureValue) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputSecureValue.DiscardUnknown(m) +func (m *TLSecureValueTypeUtilityBill) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypeUtilityBill.DiscardUnknown(m) } -var xxx_messageInfo_TLInputSecureValue proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueTypeUtilityBill proto.InternalMessageInfo -func (m *TLInputSecureValue) GetData2() *InputSecureValue_Data { +func (m *TLSecureValueTypeUtilityBill) GetData2() *SecureValueType_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ChannelAdminLogEventAction <-- -// + TL_channelAdminLogEventActionChangeTitle -// + TL_channelAdminLogEventActionChangeAbout -// + TL_channelAdminLogEventActionChangeUsername -// + TL_channelAdminLogEventActionChangePhoto -// + TL_channelAdminLogEventActionToggleInvites -// + TL_channelAdminLogEventActionToggleSignatures -// + TL_channelAdminLogEventActionUpdatePinned -// + TL_channelAdminLogEventActionEditMessage -// + TL_channelAdminLogEventActionDeleteMessage -// + TL_channelAdminLogEventActionParticipantJoin -// + TL_channelAdminLogEventActionParticipantLeave -// + TL_channelAdminLogEventActionParticipantInvite -// + TL_channelAdminLogEventActionParticipantToggleBan -// + TL_channelAdminLogEventActionParticipantToggleAdmin -// + TL_channelAdminLogEventActionChangeStickerSet -// + TL_channelAdminLogEventActionTogglePreHistoryHidden -// -type ChannelAdminLogEventAction_Data struct { - PrevValue string `protobuf:"bytes,1,opt,name=prev_value,json=prevValue,proto3" json:"prev_value,omitempty"` - NewValue_2 string `protobuf:"bytes,2,opt,name=new_value_2,json=newValue2,proto3" json:"new_value_2,omitempty"` - PrevPhoto *ChatPhoto `protobuf:"bytes,3,opt,name=prev_photo,json=prevPhoto,proto3" json:"prev_photo,omitempty"` - NewPhoto *ChatPhoto `protobuf:"bytes,4,opt,name=new_photo,json=newPhoto,proto3" json:"new_photo,omitempty"` - NewValue_5 *Bool `protobuf:"bytes,5,opt,name=new_value_5,json=newValue5,proto3" json:"new_value_5,omitempty"` - Message *Message `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` - PrevMessage *Message `protobuf:"bytes,7,opt,name=prev_message,json=prevMessage,proto3" json:"prev_message,omitempty"` - NewMessage *Message `protobuf:"bytes,8,opt,name=new_message,json=newMessage,proto3" json:"new_message,omitempty"` - Participant *ChannelParticipant `protobuf:"bytes,9,opt,name=participant,proto3" json:"participant,omitempty"` - PrevParticipant *ChannelParticipant `protobuf:"bytes,10,opt,name=prev_participant,json=prevParticipant,proto3" json:"prev_participant,omitempty"` - NewParticipant *ChannelParticipant `protobuf:"bytes,11,opt,name=new_participant,json=newParticipant,proto3" json:"new_participant,omitempty"` - PrevStickerset *InputStickerSet `protobuf:"bytes,12,opt,name=prev_stickerset,json=prevStickerset,proto3" json:"prev_stickerset,omitempty"` - NewStickerset *InputStickerSet `protobuf:"bytes,13,opt,name=new_stickerset,json=newStickerset,proto3" json:"new_stickerset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypeBankStatement#89137c0d = SecureValueType; +type TLSecureValueTypeBankStatement struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEventAction_Data) Reset() { *m = ChannelAdminLogEventAction_Data{} } -func (m *ChannelAdminLogEventAction_Data) String() string { return proto.CompactTextString(m) } -func (*ChannelAdminLogEventAction_Data) ProtoMessage() {} -func (*ChannelAdminLogEventAction_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{967} +func (m *TLSecureValueTypeBankStatement) Reset() { *m = TLSecureValueTypeBankStatement{} } +func (m *TLSecureValueTypeBankStatement) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypeBankStatement) ProtoMessage() {} +func (*TLSecureValueTypeBankStatement) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{925} } -func (m *ChannelAdminLogEventAction_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelAdminLogEventAction_Data.Unmarshal(m, b) +func (m *TLSecureValueTypeBankStatement) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypeBankStatement.Unmarshal(m, b) } -func (m *ChannelAdminLogEventAction_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelAdminLogEventAction_Data.Marshal(b, m, deterministic) +func (m *TLSecureValueTypeBankStatement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypeBankStatement.Marshal(b, m, deterministic) } -func (dst *ChannelAdminLogEventAction_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelAdminLogEventAction_Data.Merge(dst, src) +func (dst *TLSecureValueTypeBankStatement) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypeBankStatement.Merge(dst, src) } -func (m *ChannelAdminLogEventAction_Data) XXX_Size() int { - return xxx_messageInfo_ChannelAdminLogEventAction_Data.Size(m) +func (m *TLSecureValueTypeBankStatement) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypeBankStatement.Size(m) } -func (m *ChannelAdminLogEventAction_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelAdminLogEventAction_Data.DiscardUnknown(m) +func (m *TLSecureValueTypeBankStatement) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypeBankStatement.DiscardUnknown(m) } -var xxx_messageInfo_ChannelAdminLogEventAction_Data proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueTypeBankStatement proto.InternalMessageInfo -func (m *ChannelAdminLogEventAction_Data) GetPrevValue() string { +func (m *TLSecureValueTypeBankStatement) GetData2() *SecureValueType_Data { if m != nil { - return m.PrevValue + return m.Data2 } - return "" + return nil } -func (m *ChannelAdminLogEventAction_Data) GetNewValue_2() string { - if m != nil { - return m.NewValue_2 - } - return "" +// secureValueTypeRentalAgreement#8b883488 = SecureValueType; +type TLSecureValueTypeRentalAgreement struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEventAction_Data) GetPrevPhoto() *ChatPhoto { - if m != nil { - return m.PrevPhoto - } - return nil +func (m *TLSecureValueTypeRentalAgreement) Reset() { *m = TLSecureValueTypeRentalAgreement{} } +func (m *TLSecureValueTypeRentalAgreement) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypeRentalAgreement) ProtoMessage() {} +func (*TLSecureValueTypeRentalAgreement) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{926} } - -func (m *ChannelAdminLogEventAction_Data) GetNewPhoto() *ChatPhoto { - if m != nil { - return m.NewPhoto - } - return nil +func (m *TLSecureValueTypeRentalAgreement) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypeRentalAgreement.Unmarshal(m, b) } - -func (m *ChannelAdminLogEventAction_Data) GetNewValue_5() *Bool { - if m != nil { - return m.NewValue_5 - } - return nil +func (m *TLSecureValueTypeRentalAgreement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypeRentalAgreement.Marshal(b, m, deterministic) +} +func (dst *TLSecureValueTypeRentalAgreement) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypeRentalAgreement.Merge(dst, src) +} +func (m *TLSecureValueTypeRentalAgreement) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypeRentalAgreement.Size(m) +} +func (m *TLSecureValueTypeRentalAgreement) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypeRentalAgreement.DiscardUnknown(m) } -func (m *ChannelAdminLogEventAction_Data) GetMessage() *Message { +var xxx_messageInfo_TLSecureValueTypeRentalAgreement proto.InternalMessageInfo + +func (m *TLSecureValueTypeRentalAgreement) GetData2() *SecureValueType_Data { if m != nil { - return m.Message + return m.Data2 } return nil } -func (m *ChannelAdminLogEventAction_Data) GetPrevMessage() *Message { - if m != nil { - return m.PrevMessage - } - return nil +// secureValueTypePassportRegistration#99e3806a = SecureValueType; +type TLSecureValueTypePassportRegistration struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEventAction_Data) GetNewMessage() *Message { - if m != nil { - return m.NewMessage - } - return nil +func (m *TLSecureValueTypePassportRegistration) Reset() { *m = TLSecureValueTypePassportRegistration{} } +func (m *TLSecureValueTypePassportRegistration) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypePassportRegistration) ProtoMessage() {} +func (*TLSecureValueTypePassportRegistration) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{927} } - -func (m *ChannelAdminLogEventAction_Data) GetParticipant() *ChannelParticipant { - if m != nil { - return m.Participant - } - return nil +func (m *TLSecureValueTypePassportRegistration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypePassportRegistration.Unmarshal(m, b) } - -func (m *ChannelAdminLogEventAction_Data) GetPrevParticipant() *ChannelParticipant { - if m != nil { - return m.PrevParticipant - } - return nil +func (m *TLSecureValueTypePassportRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypePassportRegistration.Marshal(b, m, deterministic) } - -func (m *ChannelAdminLogEventAction_Data) GetNewParticipant() *ChannelParticipant { - if m != nil { - return m.NewParticipant - } - return nil +func (dst *TLSecureValueTypePassportRegistration) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypePassportRegistration.Merge(dst, src) } - -func (m *ChannelAdminLogEventAction_Data) GetPrevStickerset() *InputStickerSet { - if m != nil { - return m.PrevStickerset - } - return nil +func (m *TLSecureValueTypePassportRegistration) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypePassportRegistration.Size(m) +} +func (m *TLSecureValueTypePassportRegistration) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypePassportRegistration.DiscardUnknown(m) } -func (m *ChannelAdminLogEventAction_Data) GetNewStickerset() *InputStickerSet { +var xxx_messageInfo_TLSecureValueTypePassportRegistration proto.InternalMessageInfo + +func (m *TLSecureValueTypePassportRegistration) GetData2() *SecureValueType_Data { if m != nil { - return m.NewStickerset + return m.Data2 } return nil } -type ChannelAdminLogEventAction struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType; +type TLSecureValueTypeTemporaryRegistration struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelAdminLogEventAction) Reset() { *m = ChannelAdminLogEventAction{} } -func (m *ChannelAdminLogEventAction) String() string { return proto.CompactTextString(m) } -func (*ChannelAdminLogEventAction) ProtoMessage() {} -func (*ChannelAdminLogEventAction) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{968} +func (m *TLSecureValueTypeTemporaryRegistration) Reset() { + *m = TLSecureValueTypeTemporaryRegistration{} } -func (m *ChannelAdminLogEventAction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelAdminLogEventAction.Unmarshal(m, b) +func (m *TLSecureValueTypeTemporaryRegistration) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypeTemporaryRegistration) ProtoMessage() {} +func (*TLSecureValueTypeTemporaryRegistration) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{928} } -func (m *ChannelAdminLogEventAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelAdminLogEventAction.Marshal(b, m, deterministic) +func (m *TLSecureValueTypeTemporaryRegistration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.Unmarshal(m, b) } -func (dst *ChannelAdminLogEventAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelAdminLogEventAction.Merge(dst, src) +func (m *TLSecureValueTypeTemporaryRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.Marshal(b, m, deterministic) } -func (m *ChannelAdminLogEventAction) XXX_Size() int { - return xxx_messageInfo_ChannelAdminLogEventAction.Size(m) +func (dst *TLSecureValueTypeTemporaryRegistration) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.Merge(dst, src) } -func (m *ChannelAdminLogEventAction) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelAdminLogEventAction.DiscardUnknown(m) +func (m *TLSecureValueTypeTemporaryRegistration) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.Size(m) } - -var xxx_messageInfo_ChannelAdminLogEventAction proto.InternalMessageInfo - -func (m *ChannelAdminLogEventAction) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN +func (m *TLSecureValueTypeTemporaryRegistration) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypeTemporaryRegistration.DiscardUnknown(m) } -func (m *ChannelAdminLogEventAction) GetData2() *ChannelAdminLogEventAction_Data { +var xxx_messageInfo_TLSecureValueTypeTemporaryRegistration proto.InternalMessageInfo + +func (m *TLSecureValueTypeTemporaryRegistration) GetData2() *SecureValueType_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionChangeTitle struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypePhone#b320aadb = SecureValueType; +type TLSecureValueTypePhone struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionChangeTitle) Reset() { - *m = TLChannelAdminLogEventActionChangeTitle{} -} -func (m *TLChannelAdminLogEventActionChangeTitle) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminLogEventActionChangeTitle) ProtoMessage() {} -func (*TLChannelAdminLogEventActionChangeTitle) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{969} +func (m *TLSecureValueTypePhone) Reset() { *m = TLSecureValueTypePhone{} } +func (m *TLSecureValueTypePhone) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypePhone) ProtoMessage() {} +func (*TLSecureValueTypePhone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{929} } -func (m *TLChannelAdminLogEventActionChangeTitle) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.Unmarshal(m, b) +func (m *TLSecureValueTypePhone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypePhone.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionChangeTitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.Marshal(b, m, deterministic) +func (m *TLSecureValueTypePhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypePhone.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionChangeTitle) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.Merge(dst, src) +func (dst *TLSecureValueTypePhone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypePhone.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionChangeTitle) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.Size(m) +func (m *TLSecureValueTypePhone) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypePhone.Size(m) } -func (m *TLChannelAdminLogEventActionChangeTitle) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.DiscardUnknown(m) +func (m *TLSecureValueTypePhone) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypePhone.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueTypePhone proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionChangeTitle) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLSecureValueTypePhone) GetData2() *SecureValueType_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionChangeAbout struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueTypeEmail#8e3ca7ee = SecureValueType; +type TLSecureValueTypeEmail struct { + Data2 *SecureValueType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionChangeAbout) Reset() { - *m = TLChannelAdminLogEventActionChangeAbout{} -} -func (m *TLChannelAdminLogEventActionChangeAbout) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminLogEventActionChangeAbout) ProtoMessage() {} -func (*TLChannelAdminLogEventActionChangeAbout) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{970} +func (m *TLSecureValueTypeEmail) Reset() { *m = TLSecureValueTypeEmail{} } +func (m *TLSecureValueTypeEmail) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueTypeEmail) ProtoMessage() {} +func (*TLSecureValueTypeEmail) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{930} } -func (m *TLChannelAdminLogEventActionChangeAbout) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.Unmarshal(m, b) +func (m *TLSecureValueTypeEmail) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueTypeEmail.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionChangeAbout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.Marshal(b, m, deterministic) +func (m *TLSecureValueTypeEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueTypeEmail.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionChangeAbout) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.Merge(dst, src) +func (dst *TLSecureValueTypeEmail) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueTypeEmail.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionChangeAbout) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.Size(m) +func (m *TLSecureValueTypeEmail) XXX_Size() int { + return xxx_messageInfo_TLSecureValueTypeEmail.Size(m) } -func (m *TLChannelAdminLogEventActionChangeAbout) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.DiscardUnknown(m) +func (m *TLSecureValueTypeEmail) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueTypeEmail.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueTypeEmail proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionChangeAbout) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLSecureValueTypeEmail) GetData2() *SecureValueType_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionChangeUsername struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// MessageAction <-- +// + TL_messageActionEmpty +// + TL_messageActionChatCreate +// + TL_messageActionChatEditTitle +// + TL_messageActionChatEditPhoto +// + TL_messageActionChatDeletePhoto +// + TL_messageActionChatAddUser +// + TL_messageActionChatDeleteUser +// + TL_messageActionChatJoinedByLink +// + TL_messageActionChannelCreate +// + TL_messageActionChatMigrateTo +// + TL_messageActionChannelMigrateFrom +// + TL_messageActionPinMessage +// + TL_messageActionHistoryClear +// + TL_messageActionGameScore +// + TL_messageActionPaymentSentMe +// + TL_messageActionPaymentSent +// + TL_messageActionPhoneCall +// + TL_messageActionScreenshotTaken +// + TL_messageActionCustomAction +// + TL_messageActionBotAllowed +// + TL_messageActionSecureValuesSentMe +// + TL_messageActionSecureValuesSent +// +type MessageAction_Data struct { + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Users []int32 `protobuf:"varint,2,rep,packed,name=users,proto3" json:"users,omitempty"` + Photo *Photo `protobuf:"bytes,3,opt,name=photo,proto3" json:"photo,omitempty"` + UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + InviterId int32 `protobuf:"varint,5,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` + ChannelId int32 `protobuf:"varint,6,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + ChatId int32 `protobuf:"varint,7,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + GameId int64 `protobuf:"varint,8,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"` + Score int32 `protobuf:"varint,9,opt,name=score,proto3" json:"score,omitempty"` + Currency string `protobuf:"bytes,10,opt,name=currency,proto3" json:"currency,omitempty"` + TotalAmount int64 `protobuf:"varint,11,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` + Payload []byte `protobuf:"bytes,12,opt,name=payload,proto3" json:"payload,omitempty"` + Info *PaymentRequestedInfo `protobuf:"bytes,13,opt,name=info,proto3" json:"info,omitempty"` + ShippingOptionId string `protobuf:"bytes,14,opt,name=shipping_option_id,json=shippingOptionId,proto3" json:"shipping_option_id,omitempty"` + Charge *PaymentCharge `protobuf:"bytes,15,opt,name=charge,proto3" json:"charge,omitempty"` + CallId int64 `protobuf:"varint,16,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"` + Reason *PhoneCallDiscardReason `protobuf:"bytes,17,opt,name=reason,proto3" json:"reason,omitempty"` + Duration int32 `protobuf:"varint,18,opt,name=duration,proto3" json:"duration,omitempty"` + Message string `protobuf:"bytes,19,opt,name=message,proto3" json:"message,omitempty"` + Domain string `protobuf:"bytes,20,opt,name=domain,proto3" json:"domain,omitempty"` + Values []*SecureValue `protobuf:"bytes,21,rep,name=values,proto3" json:"values,omitempty"` + Credentials *SecureCredentialsEncrypted `protobuf:"bytes,22,opt,name=credentials,proto3" json:"credentials,omitempty"` + Types []*SecureValueType `protobuf:"bytes,23,rep,name=types,proto3" json:"types,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionChangeUsername) Reset() { - *m = TLChannelAdminLogEventActionChangeUsername{} -} -func (m *TLChannelAdminLogEventActionChangeUsername) String() string { - return proto.CompactTextString(m) -} -func (*TLChannelAdminLogEventActionChangeUsername) ProtoMessage() {} -func (*TLChannelAdminLogEventActionChangeUsername) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{971} +func (m *MessageAction_Data) Reset() { *m = MessageAction_Data{} } +func (m *MessageAction_Data) String() string { return proto.CompactTextString(m) } +func (*MessageAction_Data) ProtoMessage() {} +func (*MessageAction_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{931} } -func (m *TLChannelAdminLogEventActionChangeUsername) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.Unmarshal(m, b) +func (m *MessageAction_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageAction_Data.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionChangeUsername) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.Marshal(b, m, deterministic) +func (m *MessageAction_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageAction_Data.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionChangeUsername) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.Merge(dst, src) +func (dst *MessageAction_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageAction_Data.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionChangeUsername) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.Size(m) +func (m *MessageAction_Data) XXX_Size() int { + return xxx_messageInfo_MessageAction_Data.Size(m) } -func (m *TLChannelAdminLogEventActionChangeUsername) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.DiscardUnknown(m) +func (m *MessageAction_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MessageAction_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername proto.InternalMessageInfo +var xxx_messageInfo_MessageAction_Data proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionChangeUsername) GetData2() *ChannelAdminLogEventAction_Data { +func (m *MessageAction_Data) GetTitle() string { if m != nil { - return m.Data2 + return m.Title + } + return "" +} + +func (m *MessageAction_Data) GetUsers() []int32 { + if m != nil { + return m.Users } return nil } -// channelAdminLogEventActionChangePhoto#b82f55c3 prev_photo:ChatPhoto new_photo:ChatPhoto = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionChangePhoto struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MessageAction_Data) GetPhoto() *Photo { + if m != nil { + return m.Photo + } + return nil } -func (m *TLChannelAdminLogEventActionChangePhoto) Reset() { - *m = TLChannelAdminLogEventActionChangePhoto{} +func (m *MessageAction_Data) GetUserId() int32 { + if m != nil { + return m.UserId + } + return 0 } -func (m *TLChannelAdminLogEventActionChangePhoto) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminLogEventActionChangePhoto) ProtoMessage() {} -func (*TLChannelAdminLogEventActionChangePhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{972} + +func (m *MessageAction_Data) GetInviterId() int32 { + if m != nil { + return m.InviterId + } + return 0 } -func (m *TLChannelAdminLogEventActionChangePhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.Unmarshal(m, b) + +func (m *MessageAction_Data) GetChannelId() int32 { + if m != nil { + return m.ChannelId + } + return 0 } -func (m *TLChannelAdminLogEventActionChangePhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.Marshal(b, m, deterministic) + +func (m *MessageAction_Data) GetChatId() int32 { + if m != nil { + return m.ChatId + } + return 0 } -func (dst *TLChannelAdminLogEventActionChangePhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.Merge(dst, src) + +func (m *MessageAction_Data) GetGameId() int64 { + if m != nil { + return m.GameId + } + return 0 } -func (m *TLChannelAdminLogEventActionChangePhoto) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.Size(m) + +func (m *MessageAction_Data) GetScore() int32 { + if m != nil { + return m.Score + } + return 0 } -func (m *TLChannelAdminLogEventActionChangePhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.DiscardUnknown(m) + +func (m *MessageAction_Data) GetCurrency() string { + if m != nil { + return m.Currency + } + return "" } -var xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto proto.InternalMessageInfo +func (m *MessageAction_Data) GetTotalAmount() int64 { + if m != nil { + return m.TotalAmount + } + return 0 +} -func (m *TLChannelAdminLogEventActionChangePhoto) GetData2() *ChannelAdminLogEventAction_Data { +func (m *MessageAction_Data) GetPayload() []byte { if m != nil { - return m.Data2 + return m.Payload } return nil } -// channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionToggleInvites struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MessageAction_Data) GetInfo() *PaymentRequestedInfo { + if m != nil { + return m.Info + } + return nil } -func (m *TLChannelAdminLogEventActionToggleInvites) Reset() { - *m = TLChannelAdminLogEventActionToggleInvites{} -} -func (m *TLChannelAdminLogEventActionToggleInvites) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminLogEventActionToggleInvites) ProtoMessage() {} -func (*TLChannelAdminLogEventActionToggleInvites) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{973} +func (m *MessageAction_Data) GetShippingOptionId() string { + if m != nil { + return m.ShippingOptionId + } + return "" } -func (m *TLChannelAdminLogEventActionToggleInvites) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.Unmarshal(m, b) + +func (m *MessageAction_Data) GetCharge() *PaymentCharge { + if m != nil { + return m.Charge + } + return nil } -func (m *TLChannelAdminLogEventActionToggleInvites) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.Marshal(b, m, deterministic) + +func (m *MessageAction_Data) GetCallId() int64 { + if m != nil { + return m.CallId + } + return 0 } -func (dst *TLChannelAdminLogEventActionToggleInvites) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.Merge(dst, src) + +func (m *MessageAction_Data) GetReason() *PhoneCallDiscardReason { + if m != nil { + return m.Reason + } + return nil } -func (m *TLChannelAdminLogEventActionToggleInvites) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.Size(m) + +func (m *MessageAction_Data) GetDuration() int32 { + if m != nil { + return m.Duration + } + return 0 } -func (m *TLChannelAdminLogEventActionToggleInvites) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.DiscardUnknown(m) + +func (m *MessageAction_Data) GetMessage() string { + if m != nil { + return m.Message + } + return "" } -var xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites proto.InternalMessageInfo +func (m *MessageAction_Data) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} -func (m *TLChannelAdminLogEventActionToggleInvites) GetData2() *ChannelAdminLogEventAction_Data { +func (m *MessageAction_Data) GetValues() []*SecureValue { if m != nil { - return m.Data2 + return m.Values } return nil } -// channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionToggleSignatures struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MessageAction_Data) GetCredentials() *SecureCredentialsEncrypted { + if m != nil { + return m.Credentials + } + return nil } -func (m *TLChannelAdminLogEventActionToggleSignatures) Reset() { - *m = TLChannelAdminLogEventActionToggleSignatures{} +func (m *MessageAction_Data) GetTypes() []*SecureValueType { + if m != nil { + return m.Types + } + return nil } -func (m *TLChannelAdminLogEventActionToggleSignatures) String() string { - return proto.CompactTextString(m) + +type MessageAction struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (*TLChannelAdminLogEventActionToggleSignatures) ProtoMessage() {} -func (*TLChannelAdminLogEventActionToggleSignatures) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{974} + +func (m *MessageAction) Reset() { *m = MessageAction{} } +func (m *MessageAction) String() string { return proto.CompactTextString(m) } +func (*MessageAction) ProtoMessage() {} +func (*MessageAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{932} } -func (m *TLChannelAdminLogEventActionToggleSignatures) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.Unmarshal(m, b) +func (m *MessageAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageAction.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionToggleSignatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.Marshal(b, m, deterministic) +func (m *MessageAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageAction.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionToggleSignatures) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.Merge(dst, src) +func (dst *MessageAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageAction.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionToggleSignatures) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.Size(m) +func (m *MessageAction) XXX_Size() int { + return xxx_messageInfo_MessageAction.Size(m) } -func (m *TLChannelAdminLogEventActionToggleSignatures) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.DiscardUnknown(m) +func (m *MessageAction) XXX_DiscardUnknown() { + xxx_messageInfo_MessageAction.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures proto.InternalMessageInfo +var xxx_messageInfo_MessageAction proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionToggleSignatures) GetData2() *ChannelAdminLogEventAction_Data { +func (m *MessageAction) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *MessageAction) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionUpdatePinned struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionEmpty#b6aef7b0 = MessageAction; +type TLMessageActionEmpty struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionUpdatePinned) Reset() { - *m = TLChannelAdminLogEventActionUpdatePinned{} -} -func (m *TLChannelAdminLogEventActionUpdatePinned) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminLogEventActionUpdatePinned) ProtoMessage() {} -func (*TLChannelAdminLogEventActionUpdatePinned) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{975} +func (m *TLMessageActionEmpty) Reset() { *m = TLMessageActionEmpty{} } +func (m *TLMessageActionEmpty) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionEmpty) ProtoMessage() {} +func (*TLMessageActionEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{933} } -func (m *TLChannelAdminLogEventActionUpdatePinned) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.Unmarshal(m, b) +func (m *TLMessageActionEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionEmpty.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionUpdatePinned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.Marshal(b, m, deterministic) +func (m *TLMessageActionEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionEmpty.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionUpdatePinned) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.Merge(dst, src) +func (dst *TLMessageActionEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionEmpty.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionUpdatePinned) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.Size(m) +func (m *TLMessageActionEmpty) XXX_Size() int { + return xxx_messageInfo_TLMessageActionEmpty.Size(m) } -func (m *TLChannelAdminLogEventActionUpdatePinned) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.DiscardUnknown(m) +func (m *TLMessageActionEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionEmpty proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionUpdatePinned) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionEmpty) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionEditMessage struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChatCreate#a6638b9a title:string users:Vector = MessageAction; +type TLMessageActionChatCreate struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionEditMessage) Reset() { - *m = TLChannelAdminLogEventActionEditMessage{} -} -func (m *TLChannelAdminLogEventActionEditMessage) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminLogEventActionEditMessage) ProtoMessage() {} -func (*TLChannelAdminLogEventActionEditMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{976} +func (m *TLMessageActionChatCreate) Reset() { *m = TLMessageActionChatCreate{} } +func (m *TLMessageActionChatCreate) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChatCreate) ProtoMessage() {} +func (*TLMessageActionChatCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{934} } -func (m *TLChannelAdminLogEventActionEditMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.Unmarshal(m, b) +func (m *TLMessageActionChatCreate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChatCreate.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionEditMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.Marshal(b, m, deterministic) +func (m *TLMessageActionChatCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChatCreate.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionEditMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.Merge(dst, src) +func (dst *TLMessageActionChatCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChatCreate.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionEditMessage) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.Size(m) +func (m *TLMessageActionChatCreate) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChatCreate.Size(m) } -func (m *TLChannelAdminLogEventActionEditMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.DiscardUnknown(m) +func (m *TLMessageActionChatCreate) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChatCreate.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionEditMessage proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChatCreate proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionEditMessage) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionChatCreate) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionDeleteMessage struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChatEditTitle#b5a1ce5a title:string = MessageAction; +type TLMessageActionChatEditTitle struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionDeleteMessage) Reset() { - *m = TLChannelAdminLogEventActionDeleteMessage{} -} -func (m *TLChannelAdminLogEventActionDeleteMessage) String() string { return proto.CompactTextString(m) } -func (*TLChannelAdminLogEventActionDeleteMessage) ProtoMessage() {} -func (*TLChannelAdminLogEventActionDeleteMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{977} +func (m *TLMessageActionChatEditTitle) Reset() { *m = TLMessageActionChatEditTitle{} } +func (m *TLMessageActionChatEditTitle) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChatEditTitle) ProtoMessage() {} +func (*TLMessageActionChatEditTitle) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{935} } -func (m *TLChannelAdminLogEventActionDeleteMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.Unmarshal(m, b) +func (m *TLMessageActionChatEditTitle) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChatEditTitle.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionDeleteMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.Marshal(b, m, deterministic) +func (m *TLMessageActionChatEditTitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChatEditTitle.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionDeleteMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.Merge(dst, src) +func (dst *TLMessageActionChatEditTitle) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChatEditTitle.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionDeleteMessage) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.Size(m) +func (m *TLMessageActionChatEditTitle) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChatEditTitle.Size(m) } -func (m *TLChannelAdminLogEventActionDeleteMessage) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.DiscardUnknown(m) +func (m *TLMessageActionChatEditTitle) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChatEditTitle.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChatEditTitle proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionDeleteMessage) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionChatEditTitle) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionParticipantJoin struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction; +type TLMessageActionChatEditPhoto struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionParticipantJoin) Reset() { - *m = TLChannelAdminLogEventActionParticipantJoin{} -} -func (m *TLChannelAdminLogEventActionParticipantJoin) String() string { - return proto.CompactTextString(m) -} -func (*TLChannelAdminLogEventActionParticipantJoin) ProtoMessage() {} -func (*TLChannelAdminLogEventActionParticipantJoin) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{978} +func (m *TLMessageActionChatEditPhoto) Reset() { *m = TLMessageActionChatEditPhoto{} } +func (m *TLMessageActionChatEditPhoto) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChatEditPhoto) ProtoMessage() {} +func (*TLMessageActionChatEditPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{936} } -func (m *TLChannelAdminLogEventActionParticipantJoin) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.Unmarshal(m, b) +func (m *TLMessageActionChatEditPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChatEditPhoto.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionParticipantJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.Marshal(b, m, deterministic) +func (m *TLMessageActionChatEditPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChatEditPhoto.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionParticipantJoin) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.Merge(dst, src) +func (dst *TLMessageActionChatEditPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChatEditPhoto.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionParticipantJoin) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.Size(m) +func (m *TLMessageActionChatEditPhoto) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChatEditPhoto.Size(m) } -func (m *TLChannelAdminLogEventActionParticipantJoin) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.DiscardUnknown(m) +func (m *TLMessageActionChatEditPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChatEditPhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChatEditPhoto proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionParticipantJoin) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionChatEditPhoto) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionParticipantLeave struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChatDeletePhoto#95e3fbef = MessageAction; +type TLMessageActionChatDeletePhoto struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionParticipantLeave) Reset() { - *m = TLChannelAdminLogEventActionParticipantLeave{} -} -func (m *TLChannelAdminLogEventActionParticipantLeave) String() string { - return proto.CompactTextString(m) -} -func (*TLChannelAdminLogEventActionParticipantLeave) ProtoMessage() {} -func (*TLChannelAdminLogEventActionParticipantLeave) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{979} +func (m *TLMessageActionChatDeletePhoto) Reset() { *m = TLMessageActionChatDeletePhoto{} } +func (m *TLMessageActionChatDeletePhoto) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChatDeletePhoto) ProtoMessage() {} +func (*TLMessageActionChatDeletePhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{937} } -func (m *TLChannelAdminLogEventActionParticipantLeave) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.Unmarshal(m, b) +func (m *TLMessageActionChatDeletePhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChatDeletePhoto.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionParticipantLeave) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.Marshal(b, m, deterministic) +func (m *TLMessageActionChatDeletePhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChatDeletePhoto.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionParticipantLeave) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.Merge(dst, src) +func (dst *TLMessageActionChatDeletePhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChatDeletePhoto.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionParticipantLeave) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.Size(m) +func (m *TLMessageActionChatDeletePhoto) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChatDeletePhoto.Size(m) } -func (m *TLChannelAdminLogEventActionParticipantLeave) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.DiscardUnknown(m) +func (m *TLMessageActionChatDeletePhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChatDeletePhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChatDeletePhoto proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionParticipantLeave) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionChatDeletePhoto) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionParticipantInvite struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChatAddUser#488a7337 users:Vector = MessageAction; +type TLMessageActionChatAddUser struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionParticipantInvite) Reset() { - *m = TLChannelAdminLogEventActionParticipantInvite{} -} -func (m *TLChannelAdminLogEventActionParticipantInvite) String() string { - return proto.CompactTextString(m) -} -func (*TLChannelAdminLogEventActionParticipantInvite) ProtoMessage() {} -func (*TLChannelAdminLogEventActionParticipantInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{980} +func (m *TLMessageActionChatAddUser) Reset() { *m = TLMessageActionChatAddUser{} } +func (m *TLMessageActionChatAddUser) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChatAddUser) ProtoMessage() {} +func (*TLMessageActionChatAddUser) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{938} } -func (m *TLChannelAdminLogEventActionParticipantInvite) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.Unmarshal(m, b) +func (m *TLMessageActionChatAddUser) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChatAddUser.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionParticipantInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.Marshal(b, m, deterministic) +func (m *TLMessageActionChatAddUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChatAddUser.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionParticipantInvite) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.Merge(dst, src) +func (dst *TLMessageActionChatAddUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChatAddUser.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionParticipantInvite) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.Size(m) +func (m *TLMessageActionChatAddUser) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChatAddUser.Size(m) } -func (m *TLChannelAdminLogEventActionParticipantInvite) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.DiscardUnknown(m) +func (m *TLMessageActionChatAddUser) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChatAddUser.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChatAddUser proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionParticipantInvite) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionChatAddUser) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionParticipantToggleBan struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction; +type TLMessageActionChatDeleteUser struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionParticipantToggleBan) Reset() { - *m = TLChannelAdminLogEventActionParticipantToggleBan{} -} -func (m *TLChannelAdminLogEventActionParticipantToggleBan) String() string { - return proto.CompactTextString(m) -} -func (*TLChannelAdminLogEventActionParticipantToggleBan) ProtoMessage() {} -func (*TLChannelAdminLogEventActionParticipantToggleBan) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{981} +func (m *TLMessageActionChatDeleteUser) Reset() { *m = TLMessageActionChatDeleteUser{} } +func (m *TLMessageActionChatDeleteUser) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChatDeleteUser) ProtoMessage() {} +func (*TLMessageActionChatDeleteUser) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{939} } -func (m *TLChannelAdminLogEventActionParticipantToggleBan) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.Unmarshal(m, b) +func (m *TLMessageActionChatDeleteUser) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChatDeleteUser.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionParticipantToggleBan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.Marshal(b, m, deterministic) +func (m *TLMessageActionChatDeleteUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChatDeleteUser.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionParticipantToggleBan) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.Merge(dst, src) +func (dst *TLMessageActionChatDeleteUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChatDeleteUser.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionParticipantToggleBan) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.Size(m) +func (m *TLMessageActionChatDeleteUser) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChatDeleteUser.Size(m) } -func (m *TLChannelAdminLogEventActionParticipantToggleBan) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.DiscardUnknown(m) +func (m *TLMessageActionChatDeleteUser) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChatDeleteUser.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChatDeleteUser proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionParticipantToggleBan) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionChatDeleteUser) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionParticipantToggleAdmin struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction; +type TLMessageActionChatJoinedByLink struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) Reset() { - *m = TLChannelAdminLogEventActionParticipantToggleAdmin{} -} -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) String() string { - return proto.CompactTextString(m) -} -func (*TLChannelAdminLogEventActionParticipantToggleAdmin) ProtoMessage() {} -func (*TLChannelAdminLogEventActionParticipantToggleAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{982} +func (m *TLMessageActionChatJoinedByLink) Reset() { *m = TLMessageActionChatJoinedByLink{} } +func (m *TLMessageActionChatJoinedByLink) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChatJoinedByLink) ProtoMessage() {} +func (*TLMessageActionChatJoinedByLink) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{940} } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.Unmarshal(m, b) +func (m *TLMessageActionChatJoinedByLink) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChatJoinedByLink.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.Marshal(b, m, deterministic) +func (m *TLMessageActionChatJoinedByLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChatJoinedByLink.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.Merge(dst, src) +func (dst *TLMessageActionChatJoinedByLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChatJoinedByLink.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.Size(m) +func (m *TLMessageActionChatJoinedByLink) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChatJoinedByLink.Size(m) } -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.DiscardUnknown(m) +func (m *TLMessageActionChatJoinedByLink) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChatJoinedByLink.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChatJoinedByLink proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionChatJoinedByLink) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionChangeStickerSet struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChannelCreate#95d2ac92 title:string = MessageAction; +type TLMessageActionChannelCreate struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionChangeStickerSet) Reset() { - *m = TLChannelAdminLogEventActionChangeStickerSet{} -} -func (m *TLChannelAdminLogEventActionChangeStickerSet) String() string { - return proto.CompactTextString(m) -} -func (*TLChannelAdminLogEventActionChangeStickerSet) ProtoMessage() {} -func (*TLChannelAdminLogEventActionChangeStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{983} +func (m *TLMessageActionChannelCreate) Reset() { *m = TLMessageActionChannelCreate{} } +func (m *TLMessageActionChannelCreate) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChannelCreate) ProtoMessage() {} +func (*TLMessageActionChannelCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{941} } -func (m *TLChannelAdminLogEventActionChangeStickerSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.Unmarshal(m, b) +func (m *TLMessageActionChannelCreate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChannelCreate.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionChangeStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.Marshal(b, m, deterministic) +func (m *TLMessageActionChannelCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChannelCreate.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionChangeStickerSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.Merge(dst, src) +func (dst *TLMessageActionChannelCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChannelCreate.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionChangeStickerSet) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.Size(m) +func (m *TLMessageActionChannelCreate) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChannelCreate.Size(m) } -func (m *TLChannelAdminLogEventActionChangeStickerSet) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.DiscardUnknown(m) +func (m *TLMessageActionChannelCreate) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChannelCreate.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChannelCreate proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionChangeStickerSet) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionChannelCreate) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction; -type TLChannelAdminLogEventActionTogglePreHistoryHidden struct { - Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction; +type TLMessageActionChatMigrateTo struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) Reset() { - *m = TLChannelAdminLogEventActionTogglePreHistoryHidden{} -} -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) String() string { - return proto.CompactTextString(m) -} -func (*TLChannelAdminLogEventActionTogglePreHistoryHidden) ProtoMessage() {} -func (*TLChannelAdminLogEventActionTogglePreHistoryHidden) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{984} +func (m *TLMessageActionChatMigrateTo) Reset() { *m = TLMessageActionChatMigrateTo{} } +func (m *TLMessageActionChatMigrateTo) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChatMigrateTo) ProtoMessage() {} +func (*TLMessageActionChatMigrateTo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{942} } -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.Unmarshal(m, b) +func (m *TLMessageActionChatMigrateTo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChatMigrateTo.Unmarshal(m, b) } -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.Marshal(b, m, deterministic) +func (m *TLMessageActionChatMigrateTo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChatMigrateTo.Marshal(b, m, deterministic) } -func (dst *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.Merge(dst, src) +func (dst *TLMessageActionChatMigrateTo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChatMigrateTo.Merge(dst, src) } -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_Size() int { - return xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.Size(m) +func (m *TLMessageActionChatMigrateTo) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChatMigrateTo.Size(m) } -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.DiscardUnknown(m) +func (m *TLMessageActionChatMigrateTo) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChatMigrateTo.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChatMigrateTo proto.InternalMessageInfo -func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) GetData2() *ChannelAdminLogEventAction_Data { +func (m *TLMessageActionChatMigrateTo) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// account_Takeout <-- -// + TL_account_takeout -// -type Account_Takeout_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction; +type TLMessageActionChannelMigrateFrom struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_Takeout_Data) Reset() { *m = Account_Takeout_Data{} } -func (m *Account_Takeout_Data) String() string { return proto.CompactTextString(m) } -func (*Account_Takeout_Data) ProtoMessage() {} -func (*Account_Takeout_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{985} +func (m *TLMessageActionChannelMigrateFrom) Reset() { *m = TLMessageActionChannelMigrateFrom{} } +func (m *TLMessageActionChannelMigrateFrom) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionChannelMigrateFrom) ProtoMessage() {} +func (*TLMessageActionChannelMigrateFrom) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{943} } -func (m *Account_Takeout_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_Takeout_Data.Unmarshal(m, b) +func (m *TLMessageActionChannelMigrateFrom) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionChannelMigrateFrom.Unmarshal(m, b) } -func (m *Account_Takeout_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_Takeout_Data.Marshal(b, m, deterministic) +func (m *TLMessageActionChannelMigrateFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionChannelMigrateFrom.Marshal(b, m, deterministic) } -func (dst *Account_Takeout_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_Takeout_Data.Merge(dst, src) +func (dst *TLMessageActionChannelMigrateFrom) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionChannelMigrateFrom.Merge(dst, src) } -func (m *Account_Takeout_Data) XXX_Size() int { - return xxx_messageInfo_Account_Takeout_Data.Size(m) +func (m *TLMessageActionChannelMigrateFrom) XXX_Size() int { + return xxx_messageInfo_TLMessageActionChannelMigrateFrom.Size(m) } -func (m *Account_Takeout_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_Takeout_Data.DiscardUnknown(m) +func (m *TLMessageActionChannelMigrateFrom) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionChannelMigrateFrom.DiscardUnknown(m) } -var xxx_messageInfo_Account_Takeout_Data proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionChannelMigrateFrom proto.InternalMessageInfo -func (m *Account_Takeout_Data) GetId() int64 { +func (m *TLMessageActionChannelMigrateFrom) GetData2() *MessageAction_Data { if m != nil { - return m.Id + return m.Data2 } - return 0 + return nil } -type Account_Takeout struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_Takeout_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionPinMessage#94bd38ed = MessageAction; +type TLMessageActionPinMessage struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_Takeout) Reset() { *m = Account_Takeout{} } -func (m *Account_Takeout) String() string { return proto.CompactTextString(m) } -func (*Account_Takeout) ProtoMessage() {} -func (*Account_Takeout) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{986} +func (m *TLMessageActionPinMessage) Reset() { *m = TLMessageActionPinMessage{} } +func (m *TLMessageActionPinMessage) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionPinMessage) ProtoMessage() {} +func (*TLMessageActionPinMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{944} } -func (m *Account_Takeout) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_Takeout.Unmarshal(m, b) +func (m *TLMessageActionPinMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionPinMessage.Unmarshal(m, b) } -func (m *Account_Takeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_Takeout.Marshal(b, m, deterministic) +func (m *TLMessageActionPinMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionPinMessage.Marshal(b, m, deterministic) } -func (dst *Account_Takeout) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_Takeout.Merge(dst, src) +func (dst *TLMessageActionPinMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionPinMessage.Merge(dst, src) } -func (m *Account_Takeout) XXX_Size() int { - return xxx_messageInfo_Account_Takeout.Size(m) +func (m *TLMessageActionPinMessage) XXX_Size() int { + return xxx_messageInfo_TLMessageActionPinMessage.Size(m) } -func (m *Account_Takeout) XXX_DiscardUnknown() { - xxx_messageInfo_Account_Takeout.DiscardUnknown(m) +func (m *TLMessageActionPinMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionPinMessage.DiscardUnknown(m) } -var xxx_messageInfo_Account_Takeout proto.InternalMessageInfo - -func (m *Account_Takeout) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLMessageActionPinMessage proto.InternalMessageInfo -func (m *Account_Takeout) GetData2() *Account_Takeout_Data { +func (m *TLMessageActionPinMessage) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// account.takeout#4dba4501 id:long = account.Takeout; -type TLAccountTakeout struct { - Data2 *Account_Takeout_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionHistoryClear#9fbab604 = MessageAction; +type TLMessageActionHistoryClear struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountTakeout) Reset() { *m = TLAccountTakeout{} } -func (m *TLAccountTakeout) String() string { return proto.CompactTextString(m) } -func (*TLAccountTakeout) ProtoMessage() {} -func (*TLAccountTakeout) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{987} +func (m *TLMessageActionHistoryClear) Reset() { *m = TLMessageActionHistoryClear{} } +func (m *TLMessageActionHistoryClear) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionHistoryClear) ProtoMessage() {} +func (*TLMessageActionHistoryClear) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{945} } -func (m *TLAccountTakeout) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountTakeout.Unmarshal(m, b) +func (m *TLMessageActionHistoryClear) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionHistoryClear.Unmarshal(m, b) } -func (m *TLAccountTakeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountTakeout.Marshal(b, m, deterministic) +func (m *TLMessageActionHistoryClear) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionHistoryClear.Marshal(b, m, deterministic) } -func (dst *TLAccountTakeout) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountTakeout.Merge(dst, src) +func (dst *TLMessageActionHistoryClear) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionHistoryClear.Merge(dst, src) } -func (m *TLAccountTakeout) XXX_Size() int { - return xxx_messageInfo_TLAccountTakeout.Size(m) +func (m *TLMessageActionHistoryClear) XXX_Size() int { + return xxx_messageInfo_TLMessageActionHistoryClear.Size(m) } -func (m *TLAccountTakeout) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountTakeout.DiscardUnknown(m) +func (m *TLMessageActionHistoryClear) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionHistoryClear.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountTakeout proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionHistoryClear proto.InternalMessageInfo -func (m *TLAccountTakeout) GetData2() *Account_Takeout_Data { +func (m *TLMessageActionHistoryClear) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// SecureRequiredType <-- -// + TL_secureRequiredType -// + TL_secureRequiredTypeOneOf -// -type SecureRequiredType_Data struct { - NativeNames bool `protobuf:"varint,1,opt,name=native_names,json=nativeNames,proto3" json:"native_names,omitempty"` - SelfieRequired bool `protobuf:"varint,2,opt,name=selfie_required,json=selfieRequired,proto3" json:"selfie_required,omitempty"` - TranslationRequired bool `protobuf:"varint,3,opt,name=translation_required,json=translationRequired,proto3" json:"translation_required,omitempty"` - Type *SecureValueType `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - Types []*SecureRequiredType `protobuf:"bytes,5,rep,name=types,proto3" json:"types,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionGameScore#92a72876 game_id:long score:int = MessageAction; +type TLMessageActionGameScore struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureRequiredType_Data) Reset() { *m = SecureRequiredType_Data{} } -func (m *SecureRequiredType_Data) String() string { return proto.CompactTextString(m) } -func (*SecureRequiredType_Data) ProtoMessage() {} -func (*SecureRequiredType_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{988} -} -func (m *SecureRequiredType_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureRequiredType_Data.Unmarshal(m, b) -} -func (m *SecureRequiredType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureRequiredType_Data.Marshal(b, m, deterministic) -} -func (dst *SecureRequiredType_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureRequiredType_Data.Merge(dst, src) +func (m *TLMessageActionGameScore) Reset() { *m = TLMessageActionGameScore{} } +func (m *TLMessageActionGameScore) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionGameScore) ProtoMessage() {} +func (*TLMessageActionGameScore) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{946} } -func (m *SecureRequiredType_Data) XXX_Size() int { - return xxx_messageInfo_SecureRequiredType_Data.Size(m) +func (m *TLMessageActionGameScore) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionGameScore.Unmarshal(m, b) } -func (m *SecureRequiredType_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecureRequiredType_Data.DiscardUnknown(m) +func (m *TLMessageActionGameScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionGameScore.Marshal(b, m, deterministic) } - -var xxx_messageInfo_SecureRequiredType_Data proto.InternalMessageInfo - -func (m *SecureRequiredType_Data) GetNativeNames() bool { - if m != nil { - return m.NativeNames - } - return false +func (dst *TLMessageActionGameScore) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionGameScore.Merge(dst, src) } - -func (m *SecureRequiredType_Data) GetSelfieRequired() bool { - if m != nil { - return m.SelfieRequired - } - return false +func (m *TLMessageActionGameScore) XXX_Size() int { + return xxx_messageInfo_TLMessageActionGameScore.Size(m) } - -func (m *SecureRequiredType_Data) GetTranslationRequired() bool { - if m != nil { - return m.TranslationRequired - } - return false +func (m *TLMessageActionGameScore) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionGameScore.DiscardUnknown(m) } -func (m *SecureRequiredType_Data) GetType() *SecureValueType { - if m != nil { - return m.Type - } - return nil -} +var xxx_messageInfo_TLMessageActionGameScore proto.InternalMessageInfo -func (m *SecureRequiredType_Data) GetTypes() []*SecureRequiredType { +func (m *TLMessageActionGameScore) GetData2() *MessageAction_Data { if m != nil { - return m.Types + return m.Data2 } return nil } -type SecureRequiredType struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecureRequiredType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; +type TLMessageActionPaymentSentMe struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureRequiredType) Reset() { *m = SecureRequiredType{} } -func (m *SecureRequiredType) String() string { return proto.CompactTextString(m) } -func (*SecureRequiredType) ProtoMessage() {} -func (*SecureRequiredType) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{989} +func (m *TLMessageActionPaymentSentMe) Reset() { *m = TLMessageActionPaymentSentMe{} } +func (m *TLMessageActionPaymentSentMe) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionPaymentSentMe) ProtoMessage() {} +func (*TLMessageActionPaymentSentMe) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{947} } -func (m *SecureRequiredType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureRequiredType.Unmarshal(m, b) +func (m *TLMessageActionPaymentSentMe) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionPaymentSentMe.Unmarshal(m, b) } -func (m *SecureRequiredType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureRequiredType.Marshal(b, m, deterministic) +func (m *TLMessageActionPaymentSentMe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionPaymentSentMe.Marshal(b, m, deterministic) } -func (dst *SecureRequiredType) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureRequiredType.Merge(dst, src) +func (dst *TLMessageActionPaymentSentMe) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionPaymentSentMe.Merge(dst, src) } -func (m *SecureRequiredType) XXX_Size() int { - return xxx_messageInfo_SecureRequiredType.Size(m) +func (m *TLMessageActionPaymentSentMe) XXX_Size() int { + return xxx_messageInfo_TLMessageActionPaymentSentMe.Size(m) } -func (m *SecureRequiredType) XXX_DiscardUnknown() { - xxx_messageInfo_SecureRequiredType.DiscardUnknown(m) +func (m *TLMessageActionPaymentSentMe) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionPaymentSentMe.DiscardUnknown(m) } -var xxx_messageInfo_SecureRequiredType proto.InternalMessageInfo - -func (m *SecureRequiredType) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLMessageActionPaymentSentMe proto.InternalMessageInfo -func (m *SecureRequiredType) GetData2() *SecureRequiredType_Data { +func (m *TLMessageActionPaymentSentMe) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType; -type TLSecureRequiredType struct { - Data2 *SecureRequiredType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; +type TLMessageActionPaymentSent struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureRequiredType) Reset() { *m = TLSecureRequiredType{} } -func (m *TLSecureRequiredType) String() string { return proto.CompactTextString(m) } -func (*TLSecureRequiredType) ProtoMessage() {} -func (*TLSecureRequiredType) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{990} +func (m *TLMessageActionPaymentSent) Reset() { *m = TLMessageActionPaymentSent{} } +func (m *TLMessageActionPaymentSent) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionPaymentSent) ProtoMessage() {} +func (*TLMessageActionPaymentSent) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{948} } -func (m *TLSecureRequiredType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureRequiredType.Unmarshal(m, b) +func (m *TLMessageActionPaymentSent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionPaymentSent.Unmarshal(m, b) } -func (m *TLSecureRequiredType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureRequiredType.Marshal(b, m, deterministic) +func (m *TLMessageActionPaymentSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionPaymentSent.Marshal(b, m, deterministic) } -func (dst *TLSecureRequiredType) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureRequiredType.Merge(dst, src) +func (dst *TLMessageActionPaymentSent) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionPaymentSent.Merge(dst, src) } -func (m *TLSecureRequiredType) XXX_Size() int { - return xxx_messageInfo_TLSecureRequiredType.Size(m) +func (m *TLMessageActionPaymentSent) XXX_Size() int { + return xxx_messageInfo_TLMessageActionPaymentSent.Size(m) } -func (m *TLSecureRequiredType) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureRequiredType.DiscardUnknown(m) +func (m *TLMessageActionPaymentSent) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionPaymentSent.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureRequiredType proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionPaymentSent proto.InternalMessageInfo -func (m *TLSecureRequiredType) GetData2() *SecureRequiredType_Data { +func (m *TLMessageActionPaymentSent) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// secureRequiredTypeOneOf#27477b4 types:Vector = SecureRequiredType; -type TLSecureRequiredTypeOneOf struct { - Data2 *SecureRequiredType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction; +type TLMessageActionPhoneCall struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureRequiredTypeOneOf) Reset() { *m = TLSecureRequiredTypeOneOf{} } -func (m *TLSecureRequiredTypeOneOf) String() string { return proto.CompactTextString(m) } -func (*TLSecureRequiredTypeOneOf) ProtoMessage() {} -func (*TLSecureRequiredTypeOneOf) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{991} +func (m *TLMessageActionPhoneCall) Reset() { *m = TLMessageActionPhoneCall{} } +func (m *TLMessageActionPhoneCall) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionPhoneCall) ProtoMessage() {} +func (*TLMessageActionPhoneCall) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{949} } -func (m *TLSecureRequiredTypeOneOf) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureRequiredTypeOneOf.Unmarshal(m, b) +func (m *TLMessageActionPhoneCall) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionPhoneCall.Unmarshal(m, b) } -func (m *TLSecureRequiredTypeOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureRequiredTypeOneOf.Marshal(b, m, deterministic) +func (m *TLMessageActionPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionPhoneCall.Marshal(b, m, deterministic) } -func (dst *TLSecureRequiredTypeOneOf) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureRequiredTypeOneOf.Merge(dst, src) +func (dst *TLMessageActionPhoneCall) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionPhoneCall.Merge(dst, src) } -func (m *TLSecureRequiredTypeOneOf) XXX_Size() int { - return xxx_messageInfo_TLSecureRequiredTypeOneOf.Size(m) +func (m *TLMessageActionPhoneCall) XXX_Size() int { + return xxx_messageInfo_TLMessageActionPhoneCall.Size(m) } -func (m *TLSecureRequiredTypeOneOf) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureRequiredTypeOneOf.DiscardUnknown(m) +func (m *TLMessageActionPhoneCall) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionPhoneCall.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureRequiredTypeOneOf proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionPhoneCall proto.InternalMessageInfo -func (m *TLSecureRequiredTypeOneOf) GetData2() *SecureRequiredType_Data { +func (m *TLMessageActionPhoneCall) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// messages_AffectedHistory <-- -// + TL_messages_affectedHistory -// -type Messages_AffectedHistory_Data struct { - Pts int32 `protobuf:"varint,1,opt,name=pts,proto3" json:"pts,omitempty"` - PtsCount int32 `protobuf:"varint,2,opt,name=pts_count,json=ptsCount,proto3" json:"pts_count,omitempty"` - Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionScreenshotTaken#4792929b = MessageAction; +type TLMessageActionScreenshotTaken struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_AffectedHistory_Data) Reset() { *m = Messages_AffectedHistory_Data{} } -func (m *Messages_AffectedHistory_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_AffectedHistory_Data) ProtoMessage() {} -func (*Messages_AffectedHistory_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{992} -} -func (m *Messages_AffectedHistory_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_AffectedHistory_Data.Unmarshal(m, b) +func (m *TLMessageActionScreenshotTaken) Reset() { *m = TLMessageActionScreenshotTaken{} } +func (m *TLMessageActionScreenshotTaken) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionScreenshotTaken) ProtoMessage() {} +func (*TLMessageActionScreenshotTaken) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{950} } -func (m *Messages_AffectedHistory_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_AffectedHistory_Data.Marshal(b, m, deterministic) +func (m *TLMessageActionScreenshotTaken) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionScreenshotTaken.Unmarshal(m, b) } -func (dst *Messages_AffectedHistory_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_AffectedHistory_Data.Merge(dst, src) +func (m *TLMessageActionScreenshotTaken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionScreenshotTaken.Marshal(b, m, deterministic) } -func (m *Messages_AffectedHistory_Data) XXX_Size() int { - return xxx_messageInfo_Messages_AffectedHistory_Data.Size(m) +func (dst *TLMessageActionScreenshotTaken) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionScreenshotTaken.Merge(dst, src) } -func (m *Messages_AffectedHistory_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_AffectedHistory_Data.DiscardUnknown(m) +func (m *TLMessageActionScreenshotTaken) XXX_Size() int { + return xxx_messageInfo_TLMessageActionScreenshotTaken.Size(m) } - -var xxx_messageInfo_Messages_AffectedHistory_Data proto.InternalMessageInfo - -func (m *Messages_AffectedHistory_Data) GetPts() int32 { - if m != nil { - return m.Pts - } - return 0 +func (m *TLMessageActionScreenshotTaken) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionScreenshotTaken.DiscardUnknown(m) } -func (m *Messages_AffectedHistory_Data) GetPtsCount() int32 { - if m != nil { - return m.PtsCount - } - return 0 -} +var xxx_messageInfo_TLMessageActionScreenshotTaken proto.InternalMessageInfo -func (m *Messages_AffectedHistory_Data) GetOffset() int32 { +func (m *TLMessageActionScreenshotTaken) GetData2() *MessageAction_Data { if m != nil { - return m.Offset + return m.Data2 } - return 0 + return nil } -type Messages_AffectedHistory struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_AffectedHistory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionCustomAction#fae69f56 message:string = MessageAction; +type TLMessageActionCustomAction struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_AffectedHistory) Reset() { *m = Messages_AffectedHistory{} } -func (m *Messages_AffectedHistory) String() string { return proto.CompactTextString(m) } -func (*Messages_AffectedHistory) ProtoMessage() {} -func (*Messages_AffectedHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{993} +func (m *TLMessageActionCustomAction) Reset() { *m = TLMessageActionCustomAction{} } +func (m *TLMessageActionCustomAction) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionCustomAction) ProtoMessage() {} +func (*TLMessageActionCustomAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{951} } -func (m *Messages_AffectedHistory) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_AffectedHistory.Unmarshal(m, b) +func (m *TLMessageActionCustomAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionCustomAction.Unmarshal(m, b) } -func (m *Messages_AffectedHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_AffectedHistory.Marshal(b, m, deterministic) +func (m *TLMessageActionCustomAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionCustomAction.Marshal(b, m, deterministic) } -func (dst *Messages_AffectedHistory) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_AffectedHistory.Merge(dst, src) +func (dst *TLMessageActionCustomAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionCustomAction.Merge(dst, src) } -func (m *Messages_AffectedHistory) XXX_Size() int { - return xxx_messageInfo_Messages_AffectedHistory.Size(m) +func (m *TLMessageActionCustomAction) XXX_Size() int { + return xxx_messageInfo_TLMessageActionCustomAction.Size(m) } -func (m *Messages_AffectedHistory) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_AffectedHistory.DiscardUnknown(m) +func (m *TLMessageActionCustomAction) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionCustomAction.DiscardUnknown(m) } -var xxx_messageInfo_Messages_AffectedHistory proto.InternalMessageInfo - -func (m *Messages_AffectedHistory) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLMessageActionCustomAction proto.InternalMessageInfo -func (m *Messages_AffectedHistory) GetData2() *Messages_AffectedHistory_Data { +func (m *TLMessageActionCustomAction) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory; -type TLMessagesAffectedHistory struct { - Data2 *Messages_AffectedHistory_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionBotAllowed#abe9affe domain:string = MessageAction; +type TLMessageActionBotAllowed struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesAffectedHistory) Reset() { *m = TLMessagesAffectedHistory{} } -func (m *TLMessagesAffectedHistory) String() string { return proto.CompactTextString(m) } -func (*TLMessagesAffectedHistory) ProtoMessage() {} -func (*TLMessagesAffectedHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{994} +func (m *TLMessageActionBotAllowed) Reset() { *m = TLMessageActionBotAllowed{} } +func (m *TLMessageActionBotAllowed) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionBotAllowed) ProtoMessage() {} +func (*TLMessageActionBotAllowed) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{952} } -func (m *TLMessagesAffectedHistory) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesAffectedHistory.Unmarshal(m, b) +func (m *TLMessageActionBotAllowed) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionBotAllowed.Unmarshal(m, b) } -func (m *TLMessagesAffectedHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesAffectedHistory.Marshal(b, m, deterministic) +func (m *TLMessageActionBotAllowed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionBotAllowed.Marshal(b, m, deterministic) } -func (dst *TLMessagesAffectedHistory) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesAffectedHistory.Merge(dst, src) +func (dst *TLMessageActionBotAllowed) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionBotAllowed.Merge(dst, src) } -func (m *TLMessagesAffectedHistory) XXX_Size() int { - return xxx_messageInfo_TLMessagesAffectedHistory.Size(m) +func (m *TLMessageActionBotAllowed) XXX_Size() int { + return xxx_messageInfo_TLMessageActionBotAllowed.Size(m) } -func (m *TLMessagesAffectedHistory) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesAffectedHistory.DiscardUnknown(m) +func (m *TLMessageActionBotAllowed) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionBotAllowed.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesAffectedHistory proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionBotAllowed proto.InternalMessageInfo -func (m *TLMessagesAffectedHistory) GetData2() *Messages_AffectedHistory_Data { +func (m *TLMessageActionBotAllowed) GetData2() *MessageAction_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Config <-- -// + TL_config -// -type Config_Data struct { - PhonecallsEnabled bool `protobuf:"varint,1,opt,name=phonecalls_enabled,json=phonecallsEnabled,proto3" json:"phonecalls_enabled,omitempty"` - DefaultP2PContacts bool `protobuf:"varint,2,opt,name=default_p2p_contacts,json=defaultP2pContacts,proto3" json:"default_p2p_contacts,omitempty"` - PreloadFeaturedStickers bool `protobuf:"varint,3,opt,name=preload_featured_stickers,json=preloadFeaturedStickers,proto3" json:"preload_featured_stickers,omitempty"` - IgnorePhoneEntities bool `protobuf:"varint,4,opt,name=ignore_phone_entities,json=ignorePhoneEntities,proto3" json:"ignore_phone_entities,omitempty"` - RevokePmInbox bool `protobuf:"varint,5,opt,name=revoke_pm_inbox,json=revokePmInbox,proto3" json:"revoke_pm_inbox,omitempty"` - BlockedMode bool `protobuf:"varint,6,opt,name=blocked_mode,json=blockedMode,proto3" json:"blocked_mode,omitempty"` - Date int32 `protobuf:"varint,7,opt,name=date,proto3" json:"date,omitempty"` - Expires int32 `protobuf:"varint,8,opt,name=expires,proto3" json:"expires,omitempty"` - TestMode *Bool `protobuf:"bytes,9,opt,name=test_mode,json=testMode,proto3" json:"test_mode,omitempty"` - ThisDc int32 `protobuf:"varint,10,opt,name=this_dc,json=thisDc,proto3" json:"this_dc,omitempty"` - DcOptions []*DcOption `protobuf:"bytes,11,rep,name=dc_options,json=dcOptions,proto3" json:"dc_options,omitempty"` - DcTxtDomainName string `protobuf:"bytes,12,opt,name=dc_txt_domain_name,json=dcTxtDomainName,proto3" json:"dc_txt_domain_name,omitempty"` - ChatSizeMax int32 `protobuf:"varint,13,opt,name=chat_size_max,json=chatSizeMax,proto3" json:"chat_size_max,omitempty"` - MegagroupSizeMax int32 `protobuf:"varint,14,opt,name=megagroup_size_max,json=megagroupSizeMax,proto3" json:"megagroup_size_max,omitempty"` - ForwardedCountMax int32 `protobuf:"varint,15,opt,name=forwarded_count_max,json=forwardedCountMax,proto3" json:"forwarded_count_max,omitempty"` - OnlineUpdatePeriodMs int32 `protobuf:"varint,16,opt,name=online_update_period_ms,json=onlineUpdatePeriodMs,proto3" json:"online_update_period_ms,omitempty"` - OfflineBlurTimeoutMs int32 `protobuf:"varint,17,opt,name=offline_blur_timeout_ms,json=offlineBlurTimeoutMs,proto3" json:"offline_blur_timeout_ms,omitempty"` - OfflineIdleTimeoutMs int32 `protobuf:"varint,18,opt,name=offline_idle_timeout_ms,json=offlineIdleTimeoutMs,proto3" json:"offline_idle_timeout_ms,omitempty"` - OnlineCloudTimeoutMs int32 `protobuf:"varint,19,opt,name=online_cloud_timeout_ms,json=onlineCloudTimeoutMs,proto3" json:"online_cloud_timeout_ms,omitempty"` - NotifyCloudDelayMs int32 `protobuf:"varint,20,opt,name=notify_cloud_delay_ms,json=notifyCloudDelayMs,proto3" json:"notify_cloud_delay_ms,omitempty"` - NotifyDefaultDelayMs int32 `protobuf:"varint,21,opt,name=notify_default_delay_ms,json=notifyDefaultDelayMs,proto3" json:"notify_default_delay_ms,omitempty"` - PushChatPeriodMs int32 `protobuf:"varint,22,opt,name=push_chat_period_ms,json=pushChatPeriodMs,proto3" json:"push_chat_period_ms,omitempty"` - PushChatLimit int32 `protobuf:"varint,23,opt,name=push_chat_limit,json=pushChatLimit,proto3" json:"push_chat_limit,omitempty"` - SavedGifsLimit int32 `protobuf:"varint,24,opt,name=saved_gifs_limit,json=savedGifsLimit,proto3" json:"saved_gifs_limit,omitempty"` - EditTimeLimit int32 `protobuf:"varint,25,opt,name=edit_time_limit,json=editTimeLimit,proto3" json:"edit_time_limit,omitempty"` - RevokeTimeLimit int32 `protobuf:"varint,26,opt,name=revoke_time_limit,json=revokeTimeLimit,proto3" json:"revoke_time_limit,omitempty"` - RevokePmTimeLimit int32 `protobuf:"varint,27,opt,name=revoke_pm_time_limit,json=revokePmTimeLimit,proto3" json:"revoke_pm_time_limit,omitempty"` - RatingEDecay int32 `protobuf:"varint,28,opt,name=rating_e_decay,json=ratingEDecay,proto3" json:"rating_e_decay,omitempty"` - StickersRecentLimit int32 `protobuf:"varint,29,opt,name=stickers_recent_limit,json=stickersRecentLimit,proto3" json:"stickers_recent_limit,omitempty"` - StickersFavedLimit int32 `protobuf:"varint,30,opt,name=stickers_faved_limit,json=stickersFavedLimit,proto3" json:"stickers_faved_limit,omitempty"` - ChannelsReadMediaPeriod int32 `protobuf:"varint,31,opt,name=channels_read_media_period,json=channelsReadMediaPeriod,proto3" json:"channels_read_media_period,omitempty"` - TmpSessions int32 `protobuf:"varint,32,opt,name=tmp_sessions,json=tmpSessions,proto3" json:"tmp_sessions,omitempty"` - PinnedDialogsCountMax int32 `protobuf:"varint,33,opt,name=pinned_dialogs_count_max,json=pinnedDialogsCountMax,proto3" json:"pinned_dialogs_count_max,omitempty"` - CallReceiveTimeoutMs int32 `protobuf:"varint,34,opt,name=call_receive_timeout_ms,json=callReceiveTimeoutMs,proto3" json:"call_receive_timeout_ms,omitempty"` - CallRingTimeoutMs int32 `protobuf:"varint,35,opt,name=call_ring_timeout_ms,json=callRingTimeoutMs,proto3" json:"call_ring_timeout_ms,omitempty"` - CallConnectTimeoutMs int32 `protobuf:"varint,36,opt,name=call_connect_timeout_ms,json=callConnectTimeoutMs,proto3" json:"call_connect_timeout_ms,omitempty"` - CallPacketTimeoutMs int32 `protobuf:"varint,37,opt,name=call_packet_timeout_ms,json=callPacketTimeoutMs,proto3" json:"call_packet_timeout_ms,omitempty"` - MeUrlPrefix string `protobuf:"bytes,38,opt,name=me_url_prefix,json=meUrlPrefix,proto3" json:"me_url_prefix,omitempty"` - AutoupdateUrlPrefix string `protobuf:"bytes,39,opt,name=autoupdate_url_prefix,json=autoupdateUrlPrefix,proto3" json:"autoupdate_url_prefix,omitempty"` - GifSearchUsername string `protobuf:"bytes,40,opt,name=gif_search_username,json=gifSearchUsername,proto3" json:"gif_search_username,omitempty"` - VenueSearchUsername string `protobuf:"bytes,41,opt,name=venue_search_username,json=venueSearchUsername,proto3" json:"venue_search_username,omitempty"` - ImgSearchUsername string `protobuf:"bytes,42,opt,name=img_search_username,json=imgSearchUsername,proto3" json:"img_search_username,omitempty"` - StaticMapsProvider string `protobuf:"bytes,43,opt,name=static_maps_provider,json=staticMapsProvider,proto3" json:"static_maps_provider,omitempty"` - CaptionLengthMax int32 `protobuf:"varint,44,opt,name=caption_length_max,json=captionLengthMax,proto3" json:"caption_length_max,omitempty"` - MessageLengthMax int32 `protobuf:"varint,45,opt,name=message_length_max,json=messageLengthMax,proto3" json:"message_length_max,omitempty"` - WebfileDcId int32 `protobuf:"varint,46,opt,name=webfile_dc_id,json=webfileDcId,proto3" json:"webfile_dc_id,omitempty"` - SuggestedLangCode string `protobuf:"bytes,47,opt,name=suggested_lang_code,json=suggestedLangCode,proto3" json:"suggested_lang_code,omitempty"` - LangPackVersion int32 `protobuf:"varint,48,opt,name=lang_pack_version,json=langPackVersion,proto3" json:"lang_pack_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction; +type TLMessageActionSecureValuesSentMe struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Config_Data) Reset() { *m = Config_Data{} } -func (m *Config_Data) String() string { return proto.CompactTextString(m) } -func (*Config_Data) ProtoMessage() {} -func (*Config_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{995} +func (m *TLMessageActionSecureValuesSentMe) Reset() { *m = TLMessageActionSecureValuesSentMe{} } +func (m *TLMessageActionSecureValuesSentMe) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionSecureValuesSentMe) ProtoMessage() {} +func (*TLMessageActionSecureValuesSentMe) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{953} } -func (m *Config_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Config_Data.Unmarshal(m, b) +func (m *TLMessageActionSecureValuesSentMe) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionSecureValuesSentMe.Unmarshal(m, b) } -func (m *Config_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Config_Data.Marshal(b, m, deterministic) +func (m *TLMessageActionSecureValuesSentMe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionSecureValuesSentMe.Marshal(b, m, deterministic) } -func (dst *Config_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Config_Data.Merge(dst, src) +func (dst *TLMessageActionSecureValuesSentMe) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionSecureValuesSentMe.Merge(dst, src) } -func (m *Config_Data) XXX_Size() int { - return xxx_messageInfo_Config_Data.Size(m) +func (m *TLMessageActionSecureValuesSentMe) XXX_Size() int { + return xxx_messageInfo_TLMessageActionSecureValuesSentMe.Size(m) } -func (m *Config_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Config_Data.DiscardUnknown(m) +func (m *TLMessageActionSecureValuesSentMe) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionSecureValuesSentMe.DiscardUnknown(m) } -var xxx_messageInfo_Config_Data proto.InternalMessageInfo +var xxx_messageInfo_TLMessageActionSecureValuesSentMe proto.InternalMessageInfo -func (m *Config_Data) GetPhonecallsEnabled() bool { +func (m *TLMessageActionSecureValuesSentMe) GetData2() *MessageAction_Data { if m != nil { - return m.PhonecallsEnabled + return m.Data2 } - return false + return nil } -func (m *Config_Data) GetDefaultP2PContacts() bool { - if m != nil { - return m.DefaultP2PContacts - } - return false +// messageActionSecureValuesSent#d95c6154 types:Vector = MessageAction; +type TLMessageActionSecureValuesSent struct { + Data2 *MessageAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Config_Data) GetPreloadFeaturedStickers() bool { - if m != nil { - return m.PreloadFeaturedStickers - } - return false +func (m *TLMessageActionSecureValuesSent) Reset() { *m = TLMessageActionSecureValuesSent{} } +func (m *TLMessageActionSecureValuesSent) String() string { return proto.CompactTextString(m) } +func (*TLMessageActionSecureValuesSent) ProtoMessage() {} +func (*TLMessageActionSecureValuesSent) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{954} } - -func (m *Config_Data) GetIgnorePhoneEntities() bool { - if m != nil { - return m.IgnorePhoneEntities - } - return false +func (m *TLMessageActionSecureValuesSent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessageActionSecureValuesSent.Unmarshal(m, b) } - -func (m *Config_Data) GetRevokePmInbox() bool { - if m != nil { - return m.RevokePmInbox - } - return false +func (m *TLMessageActionSecureValuesSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessageActionSecureValuesSent.Marshal(b, m, deterministic) } - -func (m *Config_Data) GetBlockedMode() bool { - if m != nil { - return m.BlockedMode - } - return false +func (dst *TLMessageActionSecureValuesSent) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessageActionSecureValuesSent.Merge(dst, src) } - -func (m *Config_Data) GetDate() int32 { - if m != nil { - return m.Date - } - return 0 +func (m *TLMessageActionSecureValuesSent) XXX_Size() int { + return xxx_messageInfo_TLMessageActionSecureValuesSent.Size(m) } - -func (m *Config_Data) GetExpires() int32 { - if m != nil { - return m.Expires - } - return 0 +func (m *TLMessageActionSecureValuesSent) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessageActionSecureValuesSent.DiscardUnknown(m) } -func (m *Config_Data) GetTestMode() *Bool { +var xxx_messageInfo_TLMessageActionSecureValuesSent proto.InternalMessageInfo + +func (m *TLMessageActionSecureValuesSent) GetData2() *MessageAction_Data { if m != nil { - return m.TestMode + return m.Data2 } return nil } -func (m *Config_Data) GetThisDc() int32 { - if m != nil { - return m.ThisDc - } - return 0 +// ///////////////////////////////////////////////////////////////////////////// +// contacts_Blocked <-- +// + TL_contacts_blocked +// + TL_contacts_blockedSlice +// +type Contacts_Blocked_Data struct { + Blocked []*ContactBlocked `protobuf:"bytes,1,rep,name=blocked,proto3" json:"blocked,omitempty"` + Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Config_Data) GetDcOptions() []*DcOption { - if m != nil { - return m.DcOptions - } - return nil +func (m *Contacts_Blocked_Data) Reset() { *m = Contacts_Blocked_Data{} } +func (m *Contacts_Blocked_Data) String() string { return proto.CompactTextString(m) } +func (*Contacts_Blocked_Data) ProtoMessage() {} +func (*Contacts_Blocked_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{955} } - -func (m *Config_Data) GetDcTxtDomainName() string { - if m != nil { - return m.DcTxtDomainName - } - return "" +func (m *Contacts_Blocked_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_Blocked_Data.Unmarshal(m, b) } - -func (m *Config_Data) GetChatSizeMax() int32 { - if m != nil { - return m.ChatSizeMax - } - return 0 +func (m *Contacts_Blocked_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_Blocked_Data.Marshal(b, m, deterministic) } - -func (m *Config_Data) GetMegagroupSizeMax() int32 { - if m != nil { - return m.MegagroupSizeMax - } - return 0 +func (dst *Contacts_Blocked_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_Blocked_Data.Merge(dst, src) } - -func (m *Config_Data) GetForwardedCountMax() int32 { - if m != nil { - return m.ForwardedCountMax - } - return 0 +func (m *Contacts_Blocked_Data) XXX_Size() int { + return xxx_messageInfo_Contacts_Blocked_Data.Size(m) } - -func (m *Config_Data) GetOnlineUpdatePeriodMs() int32 { - if m != nil { - return m.OnlineUpdatePeriodMs - } - return 0 +func (m *Contacts_Blocked_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_Blocked_Data.DiscardUnknown(m) } -func (m *Config_Data) GetOfflineBlurTimeoutMs() int32 { - if m != nil { - return m.OfflineBlurTimeoutMs - } - return 0 -} +var xxx_messageInfo_Contacts_Blocked_Data proto.InternalMessageInfo -func (m *Config_Data) GetOfflineIdleTimeoutMs() int32 { +func (m *Contacts_Blocked_Data) GetBlocked() []*ContactBlocked { if m != nil { - return m.OfflineIdleTimeoutMs + return m.Blocked } - return 0 + return nil } -func (m *Config_Data) GetOnlineCloudTimeoutMs() int32 { +func (m *Contacts_Blocked_Data) GetUsers() []*User { if m != nil { - return m.OnlineCloudTimeoutMs + return m.Users } - return 0 + return nil } -func (m *Config_Data) GetNotifyCloudDelayMs() int32 { +func (m *Contacts_Blocked_Data) GetCount() int32 { if m != nil { - return m.NotifyCloudDelayMs + return m.Count } return 0 } -func (m *Config_Data) GetNotifyDefaultDelayMs() int32 { - if m != nil { - return m.NotifyDefaultDelayMs - } - return 0 +type Contacts_Blocked struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Contacts_Blocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Config_Data) GetPushChatPeriodMs() int32 { - if m != nil { - return m.PushChatPeriodMs - } - return 0 +func (m *Contacts_Blocked) Reset() { *m = Contacts_Blocked{} } +func (m *Contacts_Blocked) String() string { return proto.CompactTextString(m) } +func (*Contacts_Blocked) ProtoMessage() {} +func (*Contacts_Blocked) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{956} } - -func (m *Config_Data) GetPushChatLimit() int32 { - if m != nil { - return m.PushChatLimit - } - return 0 +func (m *Contacts_Blocked) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Contacts_Blocked.Unmarshal(m, b) } - -func (m *Config_Data) GetSavedGifsLimit() int32 { - if m != nil { - return m.SavedGifsLimit - } - return 0 +func (m *Contacts_Blocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Contacts_Blocked.Marshal(b, m, deterministic) } - -func (m *Config_Data) GetEditTimeLimit() int32 { - if m != nil { - return m.EditTimeLimit - } - return 0 +func (dst *Contacts_Blocked) XXX_Merge(src proto.Message) { + xxx_messageInfo_Contacts_Blocked.Merge(dst, src) } - -func (m *Config_Data) GetRevokeTimeLimit() int32 { - if m != nil { - return m.RevokeTimeLimit - } - return 0 +func (m *Contacts_Blocked) XXX_Size() int { + return xxx_messageInfo_Contacts_Blocked.Size(m) } - -func (m *Config_Data) GetRevokePmTimeLimit() int32 { - if m != nil { - return m.RevokePmTimeLimit - } - return 0 +func (m *Contacts_Blocked) XXX_DiscardUnknown() { + xxx_messageInfo_Contacts_Blocked.DiscardUnknown(m) } -func (m *Config_Data) GetRatingEDecay() int32 { - if m != nil { - return m.RatingEDecay - } - return 0 -} +var xxx_messageInfo_Contacts_Blocked proto.InternalMessageInfo -func (m *Config_Data) GetStickersRecentLimit() int32 { +func (m *Contacts_Blocked) GetConstructor() TLConstructor { if m != nil { - return m.StickersRecentLimit + return m.Constructor } - return 0 + return TLConstructor_CRC32_UNKNOWN } -func (m *Config_Data) GetStickersFavedLimit() int32 { +func (m *Contacts_Blocked) GetData2() *Contacts_Blocked_Data { if m != nil { - return m.StickersFavedLimit + return m.Data2 } - return 0 + return nil } -func (m *Config_Data) GetChannelsReadMediaPeriod() int32 { - if m != nil { - return m.ChannelsReadMediaPeriod - } - return 0 +// contacts.blocked#1c138d15 blocked:Vector users:Vector = contacts.Blocked; +type TLContactsBlocked struct { + Data2 *Contacts_Blocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Config_Data) GetTmpSessions() int32 { - if m != nil { - return m.TmpSessions - } - return 0 +func (m *TLContactsBlocked) Reset() { *m = TLContactsBlocked{} } +func (m *TLContactsBlocked) String() string { return proto.CompactTextString(m) } +func (*TLContactsBlocked) ProtoMessage() {} +func (*TLContactsBlocked) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{957} } - -func (m *Config_Data) GetPinnedDialogsCountMax() int32 { - if m != nil { - return m.PinnedDialogsCountMax - } - return 0 +func (m *TLContactsBlocked) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsBlocked.Unmarshal(m, b) } - -func (m *Config_Data) GetCallReceiveTimeoutMs() int32 { - if m != nil { - return m.CallReceiveTimeoutMs - } - return 0 +func (m *TLContactsBlocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsBlocked.Marshal(b, m, deterministic) } - -func (m *Config_Data) GetCallRingTimeoutMs() int32 { - if m != nil { - return m.CallRingTimeoutMs - } - return 0 +func (dst *TLContactsBlocked) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsBlocked.Merge(dst, src) } - -func (m *Config_Data) GetCallConnectTimeoutMs() int32 { - if m != nil { - return m.CallConnectTimeoutMs - } - return 0 +func (m *TLContactsBlocked) XXX_Size() int { + return xxx_messageInfo_TLContactsBlocked.Size(m) +} +func (m *TLContactsBlocked) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsBlocked.DiscardUnknown(m) } -func (m *Config_Data) GetCallPacketTimeoutMs() int32 { +var xxx_messageInfo_TLContactsBlocked proto.InternalMessageInfo + +func (m *TLContactsBlocked) GetData2() *Contacts_Blocked_Data { if m != nil { - return m.CallPacketTimeoutMs + return m.Data2 } - return 0 + return nil } -func (m *Config_Data) GetMeUrlPrefix() string { - if m != nil { - return m.MeUrlPrefix - } - return "" +// contacts.blockedSlice#900802a1 count:int blocked:Vector users:Vector = contacts.Blocked; +type TLContactsBlockedSlice struct { + Data2 *Contacts_Blocked_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Config_Data) GetAutoupdateUrlPrefix() string { - if m != nil { - return m.AutoupdateUrlPrefix - } - return "" +func (m *TLContactsBlockedSlice) Reset() { *m = TLContactsBlockedSlice{} } +func (m *TLContactsBlockedSlice) String() string { return proto.CompactTextString(m) } +func (*TLContactsBlockedSlice) ProtoMessage() {} +func (*TLContactsBlockedSlice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{958} +} +func (m *TLContactsBlockedSlice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLContactsBlockedSlice.Unmarshal(m, b) +} +func (m *TLContactsBlockedSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLContactsBlockedSlice.Marshal(b, m, deterministic) +} +func (dst *TLContactsBlockedSlice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLContactsBlockedSlice.Merge(dst, src) +} +func (m *TLContactsBlockedSlice) XXX_Size() int { + return xxx_messageInfo_TLContactsBlockedSlice.Size(m) +} +func (m *TLContactsBlockedSlice) XXX_DiscardUnknown() { + xxx_messageInfo_TLContactsBlockedSlice.DiscardUnknown(m) } -func (m *Config_Data) GetGifSearchUsername() string { +var xxx_messageInfo_TLContactsBlockedSlice proto.InternalMessageInfo + +func (m *TLContactsBlockedSlice) GetData2() *Contacts_Blocked_Data { if m != nil { - return m.GifSearchUsername + return m.Data2 } - return "" + return nil } -func (m *Config_Data) GetVenueSearchUsername() string { - if m != nil { - return m.VenueSearchUsername - } - return "" +// ///////////////////////////////////////////////////////////////////////////// +// RichText <-- +// + TL_textEmpty +// + TL_textPlain +// + TL_textBold +// + TL_textItalic +// + TL_textUnderline +// + TL_textStrike +// + TL_textFixed +// + TL_textUrl +// + TL_textEmail +// + TL_textConcat +// +type RichText_Data struct { + Text_1 string `protobuf:"bytes,1,opt,name=text_1,json=text1,proto3" json:"text_1,omitempty"` + Text_2 *RichText `protobuf:"bytes,2,opt,name=text_2,json=text2,proto3" json:"text_2,omitempty"` + Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` + WebpageId int64 `protobuf:"varint,4,opt,name=webpage_id,json=webpageId,proto3" json:"webpage_id,omitempty"` + Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` + Texts []*RichText `protobuf:"bytes,6,rep,name=texts,proto3" json:"texts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Config_Data) GetImgSearchUsername() string { - if m != nil { - return m.ImgSearchUsername - } - return "" +func (m *RichText_Data) Reset() { *m = RichText_Data{} } +func (m *RichText_Data) String() string { return proto.CompactTextString(m) } +func (*RichText_Data) ProtoMessage() {} +func (*RichText_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{959} +} +func (m *RichText_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RichText_Data.Unmarshal(m, b) +} +func (m *RichText_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RichText_Data.Marshal(b, m, deterministic) +} +func (dst *RichText_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_RichText_Data.Merge(dst, src) +} +func (m *RichText_Data) XXX_Size() int { + return xxx_messageInfo_RichText_Data.Size(m) +} +func (m *RichText_Data) XXX_DiscardUnknown() { + xxx_messageInfo_RichText_Data.DiscardUnknown(m) } -func (m *Config_Data) GetStaticMapsProvider() string { +var xxx_messageInfo_RichText_Data proto.InternalMessageInfo + +func (m *RichText_Data) GetText_1() string { if m != nil { - return m.StaticMapsProvider + return m.Text_1 } return "" } -func (m *Config_Data) GetCaptionLengthMax() int32 { +func (m *RichText_Data) GetText_2() *RichText { if m != nil { - return m.CaptionLengthMax + return m.Text_2 } - return 0 + return nil } -func (m *Config_Data) GetMessageLengthMax() int32 { +func (m *RichText_Data) GetUrl() string { if m != nil { - return m.MessageLengthMax + return m.Url } - return 0 + return "" } -func (m *Config_Data) GetWebfileDcId() int32 { +func (m *RichText_Data) GetWebpageId() int64 { if m != nil { - return m.WebfileDcId + return m.WebpageId } return 0 } -func (m *Config_Data) GetSuggestedLangCode() string { +func (m *RichText_Data) GetEmail() string { if m != nil { - return m.SuggestedLangCode + return m.Email } return "" } -func (m *Config_Data) GetLangPackVersion() int32 { +func (m *RichText_Data) GetTexts() []*RichText { if m != nil { - return m.LangPackVersion + return m.Texts } - return 0 + return nil } -type Config struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Config_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type RichText struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Config) Reset() { *m = Config{} } -func (m *Config) String() string { return proto.CompactTextString(m) } -func (*Config) ProtoMessage() {} -func (*Config) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{996} +func (m *RichText) Reset() { *m = RichText{} } +func (m *RichText) String() string { return proto.CompactTextString(m) } +func (*RichText) ProtoMessage() {} +func (*RichText) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{960} } -func (m *Config) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Config.Unmarshal(m, b) +func (m *RichText) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RichText.Unmarshal(m, b) } -func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Config.Marshal(b, m, deterministic) +func (m *RichText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RichText.Marshal(b, m, deterministic) } -func (dst *Config) XXX_Merge(src proto.Message) { - xxx_messageInfo_Config.Merge(dst, src) +func (dst *RichText) XXX_Merge(src proto.Message) { + xxx_messageInfo_RichText.Merge(dst, src) } -func (m *Config) XXX_Size() int { - return xxx_messageInfo_Config.Size(m) +func (m *RichText) XXX_Size() int { + return xxx_messageInfo_RichText.Size(m) } -func (m *Config) XXX_DiscardUnknown() { - xxx_messageInfo_Config.DiscardUnknown(m) +func (m *RichText) XXX_DiscardUnknown() { + xxx_messageInfo_RichText.DiscardUnknown(m) } -var xxx_messageInfo_Config proto.InternalMessageInfo +var xxx_messageInfo_RichText proto.InternalMessageInfo -func (m *Config) GetConstructor() TLConstructor { +func (m *RichText) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Config) GetData2() *Config_Data { +func (m *RichText) GetData2() *RichText_Data { if m != nil { return m.Data2 } return nil } -// config#3213dbba flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int = Config; -type TLConfig struct { - Data2 *Config_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// textEmpty#dc3d824f = RichText; +type TLTextEmpty struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLConfig) Reset() { *m = TLConfig{} } -func (m *TLConfig) String() string { return proto.CompactTextString(m) } -func (*TLConfig) ProtoMessage() {} -func (*TLConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{997} +func (m *TLTextEmpty) Reset() { *m = TLTextEmpty{} } +func (m *TLTextEmpty) String() string { return proto.CompactTextString(m) } +func (*TLTextEmpty) ProtoMessage() {} +func (*TLTextEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{961} } -func (m *TLConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLConfig.Unmarshal(m, b) +func (m *TLTextEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextEmpty.Unmarshal(m, b) } -func (m *TLConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLConfig.Marshal(b, m, deterministic) +func (m *TLTextEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextEmpty.Marshal(b, m, deterministic) } -func (dst *TLConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLConfig.Merge(dst, src) +func (dst *TLTextEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextEmpty.Merge(dst, src) } -func (m *TLConfig) XXX_Size() int { - return xxx_messageInfo_TLConfig.Size(m) +func (m *TLTextEmpty) XXX_Size() int { + return xxx_messageInfo_TLTextEmpty.Size(m) } -func (m *TLConfig) XXX_DiscardUnknown() { - xxx_messageInfo_TLConfig.DiscardUnknown(m) +func (m *TLTextEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextEmpty.DiscardUnknown(m) } -var xxx_messageInfo_TLConfig proto.InternalMessageInfo +var xxx_messageInfo_TLTextEmpty proto.InternalMessageInfo -func (m *TLConfig) GetData2() *Config_Data { +func (m *TLTextEmpty) GetData2() *RichText_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// PrivacyKey <-- -// + TL_privacyKeyStatusTimestamp -// + TL_privacyKeyChatInvite -// + TL_privacyKeyPhoneCall -// -type PrivacyKey_Data struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// textPlain#744694e0 text:string = RichText; +type TLTextPlain struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PrivacyKey_Data) Reset() { *m = PrivacyKey_Data{} } -func (m *PrivacyKey_Data) String() string { return proto.CompactTextString(m) } -func (*PrivacyKey_Data) ProtoMessage() {} -func (*PrivacyKey_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{998} +func (m *TLTextPlain) Reset() { *m = TLTextPlain{} } +func (m *TLTextPlain) String() string { return proto.CompactTextString(m) } +func (*TLTextPlain) ProtoMessage() {} +func (*TLTextPlain) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{962} } -func (m *PrivacyKey_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PrivacyKey_Data.Unmarshal(m, b) +func (m *TLTextPlain) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextPlain.Unmarshal(m, b) } -func (m *PrivacyKey_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PrivacyKey_Data.Marshal(b, m, deterministic) +func (m *TLTextPlain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextPlain.Marshal(b, m, deterministic) } -func (dst *PrivacyKey_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrivacyKey_Data.Merge(dst, src) +func (dst *TLTextPlain) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextPlain.Merge(dst, src) } -func (m *PrivacyKey_Data) XXX_Size() int { - return xxx_messageInfo_PrivacyKey_Data.Size(m) +func (m *TLTextPlain) XXX_Size() int { + return xxx_messageInfo_TLTextPlain.Size(m) } -func (m *PrivacyKey_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PrivacyKey_Data.DiscardUnknown(m) +func (m *TLTextPlain) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextPlain.DiscardUnknown(m) } -var xxx_messageInfo_PrivacyKey_Data proto.InternalMessageInfo +var xxx_messageInfo_TLTextPlain proto.InternalMessageInfo -type PrivacyKey struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *TLTextPlain) GetData2() *RichText_Data { + if m != nil { + return m.Data2 + } + return nil } -func (m *PrivacyKey) Reset() { *m = PrivacyKey{} } -func (m *PrivacyKey) String() string { return proto.CompactTextString(m) } -func (*PrivacyKey) ProtoMessage() {} -func (*PrivacyKey) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{999} +// textBold#6724abc4 text:RichText = RichText; +type TLTextBold struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PrivacyKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PrivacyKey.Unmarshal(m, b) + +func (m *TLTextBold) Reset() { *m = TLTextBold{} } +func (m *TLTextBold) String() string { return proto.CompactTextString(m) } +func (*TLTextBold) ProtoMessage() {} +func (*TLTextBold) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{963} } -func (m *PrivacyKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PrivacyKey.Marshal(b, m, deterministic) +func (m *TLTextBold) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextBold.Unmarshal(m, b) } -func (dst *PrivacyKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrivacyKey.Merge(dst, src) +func (m *TLTextBold) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextBold.Marshal(b, m, deterministic) } -func (m *PrivacyKey) XXX_Size() int { - return xxx_messageInfo_PrivacyKey.Size(m) +func (dst *TLTextBold) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextBold.Merge(dst, src) } -func (m *PrivacyKey) XXX_DiscardUnknown() { - xxx_messageInfo_PrivacyKey.DiscardUnknown(m) +func (m *TLTextBold) XXX_Size() int { + return xxx_messageInfo_TLTextBold.Size(m) } - -var xxx_messageInfo_PrivacyKey proto.InternalMessageInfo - -func (m *PrivacyKey) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN +func (m *TLTextBold) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextBold.DiscardUnknown(m) } -func (m *PrivacyKey) GetData2() *PrivacyKey_Data { +var xxx_messageInfo_TLTextBold proto.InternalMessageInfo + +func (m *TLTextBold) GetData2() *RichText_Data { if m != nil { return m.Data2 } return nil } -// privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; -type TLPrivacyKeyStatusTimestamp struct { - Data2 *PrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// textItalic#d912a59c text:RichText = RichText; +type TLTextItalic struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPrivacyKeyStatusTimestamp) Reset() { *m = TLPrivacyKeyStatusTimestamp{} } -func (m *TLPrivacyKeyStatusTimestamp) String() string { return proto.CompactTextString(m) } -func (*TLPrivacyKeyStatusTimestamp) ProtoMessage() {} -func (*TLPrivacyKeyStatusTimestamp) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1000} +func (m *TLTextItalic) Reset() { *m = TLTextItalic{} } +func (m *TLTextItalic) String() string { return proto.CompactTextString(m) } +func (*TLTextItalic) ProtoMessage() {} +func (*TLTextItalic) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{964} } -func (m *TLPrivacyKeyStatusTimestamp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPrivacyKeyStatusTimestamp.Unmarshal(m, b) +func (m *TLTextItalic) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextItalic.Unmarshal(m, b) } -func (m *TLPrivacyKeyStatusTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPrivacyKeyStatusTimestamp.Marshal(b, m, deterministic) +func (m *TLTextItalic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextItalic.Marshal(b, m, deterministic) } -func (dst *TLPrivacyKeyStatusTimestamp) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPrivacyKeyStatusTimestamp.Merge(dst, src) +func (dst *TLTextItalic) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextItalic.Merge(dst, src) } -func (m *TLPrivacyKeyStatusTimestamp) XXX_Size() int { - return xxx_messageInfo_TLPrivacyKeyStatusTimestamp.Size(m) +func (m *TLTextItalic) XXX_Size() int { + return xxx_messageInfo_TLTextItalic.Size(m) } -func (m *TLPrivacyKeyStatusTimestamp) XXX_DiscardUnknown() { - xxx_messageInfo_TLPrivacyKeyStatusTimestamp.DiscardUnknown(m) +func (m *TLTextItalic) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextItalic.DiscardUnknown(m) } -var xxx_messageInfo_TLPrivacyKeyStatusTimestamp proto.InternalMessageInfo +var xxx_messageInfo_TLTextItalic proto.InternalMessageInfo -func (m *TLPrivacyKeyStatusTimestamp) GetData2() *PrivacyKey_Data { +func (m *TLTextItalic) GetData2() *RichText_Data { if m != nil { return m.Data2 } return nil } -// privacyKeyChatInvite#500e6dfa = PrivacyKey; -type TLPrivacyKeyChatInvite struct { - Data2 *PrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// textUnderline#c12622c4 text:RichText = RichText; +type TLTextUnderline struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPrivacyKeyChatInvite) Reset() { *m = TLPrivacyKeyChatInvite{} } -func (m *TLPrivacyKeyChatInvite) String() string { return proto.CompactTextString(m) } -func (*TLPrivacyKeyChatInvite) ProtoMessage() {} -func (*TLPrivacyKeyChatInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1001} +func (m *TLTextUnderline) Reset() { *m = TLTextUnderline{} } +func (m *TLTextUnderline) String() string { return proto.CompactTextString(m) } +func (*TLTextUnderline) ProtoMessage() {} +func (*TLTextUnderline) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{965} } -func (m *TLPrivacyKeyChatInvite) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPrivacyKeyChatInvite.Unmarshal(m, b) +func (m *TLTextUnderline) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextUnderline.Unmarshal(m, b) } -func (m *TLPrivacyKeyChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPrivacyKeyChatInvite.Marshal(b, m, deterministic) +func (m *TLTextUnderline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextUnderline.Marshal(b, m, deterministic) } -func (dst *TLPrivacyKeyChatInvite) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPrivacyKeyChatInvite.Merge(dst, src) +func (dst *TLTextUnderline) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextUnderline.Merge(dst, src) } -func (m *TLPrivacyKeyChatInvite) XXX_Size() int { - return xxx_messageInfo_TLPrivacyKeyChatInvite.Size(m) +func (m *TLTextUnderline) XXX_Size() int { + return xxx_messageInfo_TLTextUnderline.Size(m) } -func (m *TLPrivacyKeyChatInvite) XXX_DiscardUnknown() { - xxx_messageInfo_TLPrivacyKeyChatInvite.DiscardUnknown(m) +func (m *TLTextUnderline) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextUnderline.DiscardUnknown(m) } -var xxx_messageInfo_TLPrivacyKeyChatInvite proto.InternalMessageInfo +var xxx_messageInfo_TLTextUnderline proto.InternalMessageInfo -func (m *TLPrivacyKeyChatInvite) GetData2() *PrivacyKey_Data { +func (m *TLTextUnderline) GetData2() *RichText_Data { if m != nil { return m.Data2 } return nil } -// privacyKeyPhoneCall#3d662b7b = PrivacyKey; -type TLPrivacyKeyPhoneCall struct { - Data2 *PrivacyKey_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// textStrike#9bf8bb95 text:RichText = RichText; +type TLTextStrike struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPrivacyKeyPhoneCall) Reset() { *m = TLPrivacyKeyPhoneCall{} } -func (m *TLPrivacyKeyPhoneCall) String() string { return proto.CompactTextString(m) } -func (*TLPrivacyKeyPhoneCall) ProtoMessage() {} -func (*TLPrivacyKeyPhoneCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1002} +func (m *TLTextStrike) Reset() { *m = TLTextStrike{} } +func (m *TLTextStrike) String() string { return proto.CompactTextString(m) } +func (*TLTextStrike) ProtoMessage() {} +func (*TLTextStrike) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{966} } -func (m *TLPrivacyKeyPhoneCall) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPrivacyKeyPhoneCall.Unmarshal(m, b) +func (m *TLTextStrike) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextStrike.Unmarshal(m, b) } -func (m *TLPrivacyKeyPhoneCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPrivacyKeyPhoneCall.Marshal(b, m, deterministic) +func (m *TLTextStrike) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextStrike.Marshal(b, m, deterministic) } -func (dst *TLPrivacyKeyPhoneCall) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPrivacyKeyPhoneCall.Merge(dst, src) +func (dst *TLTextStrike) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextStrike.Merge(dst, src) } -func (m *TLPrivacyKeyPhoneCall) XXX_Size() int { - return xxx_messageInfo_TLPrivacyKeyPhoneCall.Size(m) +func (m *TLTextStrike) XXX_Size() int { + return xxx_messageInfo_TLTextStrike.Size(m) } -func (m *TLPrivacyKeyPhoneCall) XXX_DiscardUnknown() { - xxx_messageInfo_TLPrivacyKeyPhoneCall.DiscardUnknown(m) +func (m *TLTextStrike) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextStrike.DiscardUnknown(m) } -var xxx_messageInfo_TLPrivacyKeyPhoneCall proto.InternalMessageInfo +var xxx_messageInfo_TLTextStrike proto.InternalMessageInfo -func (m *TLPrivacyKeyPhoneCall) GetData2() *PrivacyKey_Data { +func (m *TLTextStrike) GetData2() *RichText_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// StickerSetCovered <-- -// + TL_stickerSetCovered -// + TL_stickerSetMultiCovered -// -type StickerSetCovered_Data struct { - Set *StickerSet `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"` - Cover *Document `protobuf:"bytes,2,opt,name=cover,proto3" json:"cover,omitempty"` - Covers []*Document `protobuf:"bytes,3,rep,name=covers,proto3" json:"covers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// textFixed#6c3f19b9 text:RichText = RichText; +type TLTextFixed struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StickerSetCovered_Data) Reset() { *m = StickerSetCovered_Data{} } -func (m *StickerSetCovered_Data) String() string { return proto.CompactTextString(m) } -func (*StickerSetCovered_Data) ProtoMessage() {} -func (*StickerSetCovered_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1003} +func (m *TLTextFixed) Reset() { *m = TLTextFixed{} } +func (m *TLTextFixed) String() string { return proto.CompactTextString(m) } +func (*TLTextFixed) ProtoMessage() {} +func (*TLTextFixed) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{967} } -func (m *StickerSetCovered_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StickerSetCovered_Data.Unmarshal(m, b) +func (m *TLTextFixed) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextFixed.Unmarshal(m, b) } -func (m *StickerSetCovered_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StickerSetCovered_Data.Marshal(b, m, deterministic) +func (m *TLTextFixed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextFixed.Marshal(b, m, deterministic) } -func (dst *StickerSetCovered_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_StickerSetCovered_Data.Merge(dst, src) +func (dst *TLTextFixed) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextFixed.Merge(dst, src) } -func (m *StickerSetCovered_Data) XXX_Size() int { - return xxx_messageInfo_StickerSetCovered_Data.Size(m) +func (m *TLTextFixed) XXX_Size() int { + return xxx_messageInfo_TLTextFixed.Size(m) } -func (m *StickerSetCovered_Data) XXX_DiscardUnknown() { - xxx_messageInfo_StickerSetCovered_Data.DiscardUnknown(m) +func (m *TLTextFixed) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextFixed.DiscardUnknown(m) } -var xxx_messageInfo_StickerSetCovered_Data proto.InternalMessageInfo +var xxx_messageInfo_TLTextFixed proto.InternalMessageInfo -func (m *StickerSetCovered_Data) GetSet() *StickerSet { +func (m *TLTextFixed) GetData2() *RichText_Data { if m != nil { - return m.Set + return m.Data2 } return nil } -func (m *StickerSetCovered_Data) GetCover() *Document { - if m != nil { - return m.Cover - } - return nil +// textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText; +type TLTextUrl struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StickerSetCovered_Data) GetCovers() []*Document { +func (m *TLTextUrl) Reset() { *m = TLTextUrl{} } +func (m *TLTextUrl) String() string { return proto.CompactTextString(m) } +func (*TLTextUrl) ProtoMessage() {} +func (*TLTextUrl) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{968} +} +func (m *TLTextUrl) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextUrl.Unmarshal(m, b) +} +func (m *TLTextUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextUrl.Marshal(b, m, deterministic) +} +func (dst *TLTextUrl) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextUrl.Merge(dst, src) +} +func (m *TLTextUrl) XXX_Size() int { + return xxx_messageInfo_TLTextUrl.Size(m) +} +func (m *TLTextUrl) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextUrl.DiscardUnknown(m) +} + +var xxx_messageInfo_TLTextUrl proto.InternalMessageInfo + +func (m *TLTextUrl) GetData2() *RichText_Data { if m != nil { - return m.Covers + return m.Data2 } return nil } -type StickerSetCovered struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *StickerSetCovered_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// textEmail#de5a0dd6 text:RichText email:string = RichText; +type TLTextEmail struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StickerSetCovered) Reset() { *m = StickerSetCovered{} } -func (m *StickerSetCovered) String() string { return proto.CompactTextString(m) } -func (*StickerSetCovered) ProtoMessage() {} -func (*StickerSetCovered) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1004} +func (m *TLTextEmail) Reset() { *m = TLTextEmail{} } +func (m *TLTextEmail) String() string { return proto.CompactTextString(m) } +func (*TLTextEmail) ProtoMessage() {} +func (*TLTextEmail) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{969} } -func (m *StickerSetCovered) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StickerSetCovered.Unmarshal(m, b) +func (m *TLTextEmail) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextEmail.Unmarshal(m, b) } -func (m *StickerSetCovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StickerSetCovered.Marshal(b, m, deterministic) +func (m *TLTextEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextEmail.Marshal(b, m, deterministic) } -func (dst *StickerSetCovered) XXX_Merge(src proto.Message) { - xxx_messageInfo_StickerSetCovered.Merge(dst, src) +func (dst *TLTextEmail) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextEmail.Merge(dst, src) } -func (m *StickerSetCovered) XXX_Size() int { - return xxx_messageInfo_StickerSetCovered.Size(m) +func (m *TLTextEmail) XXX_Size() int { + return xxx_messageInfo_TLTextEmail.Size(m) } -func (m *StickerSetCovered) XXX_DiscardUnknown() { - xxx_messageInfo_StickerSetCovered.DiscardUnknown(m) +func (m *TLTextEmail) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextEmail.DiscardUnknown(m) } -var xxx_messageInfo_StickerSetCovered proto.InternalMessageInfo - -func (m *StickerSetCovered) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLTextEmail proto.InternalMessageInfo -func (m *StickerSetCovered) GetData2() *StickerSetCovered_Data { +func (m *TLTextEmail) GetData2() *RichText_Data { if m != nil { return m.Data2 } return nil } -// stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered; -type TLStickerSetCovered struct { - Data2 *StickerSetCovered_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// textConcat#7e6260d7 texts:Vector = RichText; +type TLTextConcat struct { + Data2 *RichText_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLStickerSetCovered) Reset() { *m = TLStickerSetCovered{} } -func (m *TLStickerSetCovered) String() string { return proto.CompactTextString(m) } -func (*TLStickerSetCovered) ProtoMessage() {} -func (*TLStickerSetCovered) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1005} +func (m *TLTextConcat) Reset() { *m = TLTextConcat{} } +func (m *TLTextConcat) String() string { return proto.CompactTextString(m) } +func (*TLTextConcat) ProtoMessage() {} +func (*TLTextConcat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{970} } -func (m *TLStickerSetCovered) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStickerSetCovered.Unmarshal(m, b) +func (m *TLTextConcat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTextConcat.Unmarshal(m, b) } -func (m *TLStickerSetCovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStickerSetCovered.Marshal(b, m, deterministic) +func (m *TLTextConcat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTextConcat.Marshal(b, m, deterministic) } -func (dst *TLStickerSetCovered) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStickerSetCovered.Merge(dst, src) +func (dst *TLTextConcat) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTextConcat.Merge(dst, src) } -func (m *TLStickerSetCovered) XXX_Size() int { - return xxx_messageInfo_TLStickerSetCovered.Size(m) +func (m *TLTextConcat) XXX_Size() int { + return xxx_messageInfo_TLTextConcat.Size(m) } -func (m *TLStickerSetCovered) XXX_DiscardUnknown() { - xxx_messageInfo_TLStickerSetCovered.DiscardUnknown(m) +func (m *TLTextConcat) XXX_DiscardUnknown() { + xxx_messageInfo_TLTextConcat.DiscardUnknown(m) } -var xxx_messageInfo_TLStickerSetCovered proto.InternalMessageInfo +var xxx_messageInfo_TLTextConcat proto.InternalMessageInfo -func (m *TLStickerSetCovered) GetData2() *StickerSetCovered_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered; -type TLStickerSetMultiCovered struct { - Data2 *StickerSetCovered_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLStickerSetMultiCovered) Reset() { *m = TLStickerSetMultiCovered{} } -func (m *TLStickerSetMultiCovered) String() string { return proto.CompactTextString(m) } -func (*TLStickerSetMultiCovered) ProtoMessage() {} -func (*TLStickerSetMultiCovered) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1006} -} -func (m *TLStickerSetMultiCovered) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLStickerSetMultiCovered.Unmarshal(m, b) -} -func (m *TLStickerSetMultiCovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLStickerSetMultiCovered.Marshal(b, m, deterministic) -} -func (dst *TLStickerSetMultiCovered) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLStickerSetMultiCovered.Merge(dst, src) -} -func (m *TLStickerSetMultiCovered) XXX_Size() int { - return xxx_messageInfo_TLStickerSetMultiCovered.Size(m) -} -func (m *TLStickerSetMultiCovered) XXX_DiscardUnknown() { - xxx_messageInfo_TLStickerSetMultiCovered.DiscardUnknown(m) -} - -var xxx_messageInfo_TLStickerSetMultiCovered proto.InternalMessageInfo - -func (m *TLStickerSetMultiCovered) GetData2() *StickerSetCovered_Data { +func (m *TLTextConcat) GetData2() *RichText_Data { if m != nil { return m.Data2 } @@ -49242,166 +47448,142 @@ func (m *TLStickerSetMultiCovered) GetData2() *StickerSetCovered_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PostAddress <-- -// + TL_postAddress +// TopPeerCategoryPeers <-- +// + TL_topPeerCategoryPeers // -type PostAddress_Data struct { - StreetLine1 string `protobuf:"bytes,1,opt,name=street_line1,json=streetLine1,proto3" json:"street_line1,omitempty"` - StreetLine2 string `protobuf:"bytes,2,opt,name=street_line2,json=streetLine2,proto3" json:"street_line2,omitempty"` - City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"` - State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` - CountryIso2 string `protobuf:"bytes,5,opt,name=country_iso2,json=countryIso2,proto3" json:"country_iso2,omitempty"` - PostCode string `protobuf:"bytes,6,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type TopPeerCategoryPeers_Data struct { + Category *TopPeerCategory `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` + Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Peers []*TopPeer `protobuf:"bytes,3,rep,name=peers,proto3" json:"peers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PostAddress_Data) Reset() { *m = PostAddress_Data{} } -func (m *PostAddress_Data) String() string { return proto.CompactTextString(m) } -func (*PostAddress_Data) ProtoMessage() {} -func (*PostAddress_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1007} -} -func (m *PostAddress_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostAddress_Data.Unmarshal(m, b) -} -func (m *PostAddress_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostAddress_Data.Marshal(b, m, deterministic) +func (m *TopPeerCategoryPeers_Data) Reset() { *m = TopPeerCategoryPeers_Data{} } +func (m *TopPeerCategoryPeers_Data) String() string { return proto.CompactTextString(m) } +func (*TopPeerCategoryPeers_Data) ProtoMessage() {} +func (*TopPeerCategoryPeers_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{971} } -func (dst *PostAddress_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostAddress_Data.Merge(dst, src) +func (m *TopPeerCategoryPeers_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TopPeerCategoryPeers_Data.Unmarshal(m, b) } -func (m *PostAddress_Data) XXX_Size() int { - return xxx_messageInfo_PostAddress_Data.Size(m) +func (m *TopPeerCategoryPeers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TopPeerCategoryPeers_Data.Marshal(b, m, deterministic) } -func (m *PostAddress_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PostAddress_Data.DiscardUnknown(m) +func (dst *TopPeerCategoryPeers_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopPeerCategoryPeers_Data.Merge(dst, src) } - -var xxx_messageInfo_PostAddress_Data proto.InternalMessageInfo - -func (m *PostAddress_Data) GetStreetLine1() string { - if m != nil { - return m.StreetLine1 - } - return "" +func (m *TopPeerCategoryPeers_Data) XXX_Size() int { + return xxx_messageInfo_TopPeerCategoryPeers_Data.Size(m) } - -func (m *PostAddress_Data) GetStreetLine2() string { - if m != nil { - return m.StreetLine2 - } - return "" +func (m *TopPeerCategoryPeers_Data) XXX_DiscardUnknown() { + xxx_messageInfo_TopPeerCategoryPeers_Data.DiscardUnknown(m) } -func (m *PostAddress_Data) GetCity() string { - if m != nil { - return m.City - } - return "" -} +var xxx_messageInfo_TopPeerCategoryPeers_Data proto.InternalMessageInfo -func (m *PostAddress_Data) GetState() string { +func (m *TopPeerCategoryPeers_Data) GetCategory() *TopPeerCategory { if m != nil { - return m.State + return m.Category } - return "" + return nil } -func (m *PostAddress_Data) GetCountryIso2() string { +func (m *TopPeerCategoryPeers_Data) GetCount() int32 { if m != nil { - return m.CountryIso2 + return m.Count } - return "" + return 0 } -func (m *PostAddress_Data) GetPostCode() string { +func (m *TopPeerCategoryPeers_Data) GetPeers() []*TopPeer { if m != nil { - return m.PostCode + return m.Peers } - return "" + return nil } -type PostAddress struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PostAddress_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type TopPeerCategoryPeers struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *TopPeerCategoryPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PostAddress) Reset() { *m = PostAddress{} } -func (m *PostAddress) String() string { return proto.CompactTextString(m) } -func (*PostAddress) ProtoMessage() {} -func (*PostAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1008} +func (m *TopPeerCategoryPeers) Reset() { *m = TopPeerCategoryPeers{} } +func (m *TopPeerCategoryPeers) String() string { return proto.CompactTextString(m) } +func (*TopPeerCategoryPeers) ProtoMessage() {} +func (*TopPeerCategoryPeers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{972} } -func (m *PostAddress) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostAddress.Unmarshal(m, b) +func (m *TopPeerCategoryPeers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TopPeerCategoryPeers.Unmarshal(m, b) } -func (m *PostAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostAddress.Marshal(b, m, deterministic) +func (m *TopPeerCategoryPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TopPeerCategoryPeers.Marshal(b, m, deterministic) } -func (dst *PostAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostAddress.Merge(dst, src) +func (dst *TopPeerCategoryPeers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopPeerCategoryPeers.Merge(dst, src) } -func (m *PostAddress) XXX_Size() int { - return xxx_messageInfo_PostAddress.Size(m) +func (m *TopPeerCategoryPeers) XXX_Size() int { + return xxx_messageInfo_TopPeerCategoryPeers.Size(m) } -func (m *PostAddress) XXX_DiscardUnknown() { - xxx_messageInfo_PostAddress.DiscardUnknown(m) +func (m *TopPeerCategoryPeers) XXX_DiscardUnknown() { + xxx_messageInfo_TopPeerCategoryPeers.DiscardUnknown(m) } -var xxx_messageInfo_PostAddress proto.InternalMessageInfo +var xxx_messageInfo_TopPeerCategoryPeers proto.InternalMessageInfo -func (m *PostAddress) GetConstructor() TLConstructor { +func (m *TopPeerCategoryPeers) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PostAddress) GetData2() *PostAddress_Data { +func (m *TopPeerCategoryPeers) GetData2() *TopPeerCategoryPeers_Data { if m != nil { return m.Data2 } return nil } -// postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress; -type TLPostAddress struct { - Data2 *PostAddress_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers; +type TLTopPeerCategoryPeers struct { + Data2 *TopPeerCategoryPeers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPostAddress) Reset() { *m = TLPostAddress{} } -func (m *TLPostAddress) String() string { return proto.CompactTextString(m) } -func (*TLPostAddress) ProtoMessage() {} -func (*TLPostAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1009} +func (m *TLTopPeerCategoryPeers) Reset() { *m = TLTopPeerCategoryPeers{} } +func (m *TLTopPeerCategoryPeers) String() string { return proto.CompactTextString(m) } +func (*TLTopPeerCategoryPeers) ProtoMessage() {} +func (*TLTopPeerCategoryPeers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{973} } -func (m *TLPostAddress) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPostAddress.Unmarshal(m, b) +func (m *TLTopPeerCategoryPeers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLTopPeerCategoryPeers.Unmarshal(m, b) } -func (m *TLPostAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPostAddress.Marshal(b, m, deterministic) +func (m *TLTopPeerCategoryPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLTopPeerCategoryPeers.Marshal(b, m, deterministic) } -func (dst *TLPostAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPostAddress.Merge(dst, src) +func (dst *TLTopPeerCategoryPeers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLTopPeerCategoryPeers.Merge(dst, src) } -func (m *TLPostAddress) XXX_Size() int { - return xxx_messageInfo_TLPostAddress.Size(m) +func (m *TLTopPeerCategoryPeers) XXX_Size() int { + return xxx_messageInfo_TLTopPeerCategoryPeers.Size(m) } -func (m *TLPostAddress) XXX_DiscardUnknown() { - xxx_messageInfo_TLPostAddress.DiscardUnknown(m) +func (m *TLTopPeerCategoryPeers) XXX_DiscardUnknown() { + xxx_messageInfo_TLTopPeerCategoryPeers.DiscardUnknown(m) } -var xxx_messageInfo_TLPostAddress proto.InternalMessageInfo +var xxx_messageInfo_TLTopPeerCategoryPeers proto.InternalMessageInfo -func (m *TLPostAddress) GetData2() *PostAddress_Data { +func (m *TLTopPeerCategoryPeers) GetData2() *TopPeerCategoryPeers_Data { if m != nil { return m.Data2 } @@ -49409,174 +47591,170 @@ func (m *TLPostAddress) GetData2() *PostAddress_Data { } // ///////////////////////////////////////////////////////////////////////////// -// messages_AllStickers <-- -// + TL_messages_allStickersNotModified -// + TL_messages_allStickers +// messages_StickerSetInstallResult <-- +// + TL_messages_stickerSetInstallResultSuccess +// + TL_messages_stickerSetInstallResultArchive // -type Messages_AllStickers_Data struct { - Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - Sets []*StickerSet `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_StickerSetInstallResult_Data struct { + Sets []*StickerSetCovered `protobuf:"bytes,1,rep,name=sets,proto3" json:"sets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_AllStickers_Data) Reset() { *m = Messages_AllStickers_Data{} } -func (m *Messages_AllStickers_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_AllStickers_Data) ProtoMessage() {} -func (*Messages_AllStickers_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1010} +func (m *Messages_StickerSetInstallResult_Data) Reset() { *m = Messages_StickerSetInstallResult_Data{} } +func (m *Messages_StickerSetInstallResult_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_StickerSetInstallResult_Data) ProtoMessage() {} +func (*Messages_StickerSetInstallResult_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{974} } -func (m *Messages_AllStickers_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_AllStickers_Data.Unmarshal(m, b) +func (m *Messages_StickerSetInstallResult_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_StickerSetInstallResult_Data.Unmarshal(m, b) } -func (m *Messages_AllStickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_AllStickers_Data.Marshal(b, m, deterministic) +func (m *Messages_StickerSetInstallResult_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_StickerSetInstallResult_Data.Marshal(b, m, deterministic) } -func (dst *Messages_AllStickers_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_AllStickers_Data.Merge(dst, src) +func (dst *Messages_StickerSetInstallResult_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_StickerSetInstallResult_Data.Merge(dst, src) } -func (m *Messages_AllStickers_Data) XXX_Size() int { - return xxx_messageInfo_Messages_AllStickers_Data.Size(m) +func (m *Messages_StickerSetInstallResult_Data) XXX_Size() int { + return xxx_messageInfo_Messages_StickerSetInstallResult_Data.Size(m) } -func (m *Messages_AllStickers_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_AllStickers_Data.DiscardUnknown(m) +func (m *Messages_StickerSetInstallResult_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_StickerSetInstallResult_Data.DiscardUnknown(m) } -var xxx_messageInfo_Messages_AllStickers_Data proto.InternalMessageInfo - -func (m *Messages_AllStickers_Data) GetHash() int32 { - if m != nil { - return m.Hash - } - return 0 -} +var xxx_messageInfo_Messages_StickerSetInstallResult_Data proto.InternalMessageInfo -func (m *Messages_AllStickers_Data) GetSets() []*StickerSet { +func (m *Messages_StickerSetInstallResult_Data) GetSets() []*StickerSetCovered { if m != nil { return m.Sets } return nil } -type Messages_AllStickers struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_AllStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_StickerSetInstallResult struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_StickerSetInstallResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_AllStickers) Reset() { *m = Messages_AllStickers{} } -func (m *Messages_AllStickers) String() string { return proto.CompactTextString(m) } -func (*Messages_AllStickers) ProtoMessage() {} -func (*Messages_AllStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1011} +func (m *Messages_StickerSetInstallResult) Reset() { *m = Messages_StickerSetInstallResult{} } +func (m *Messages_StickerSetInstallResult) String() string { return proto.CompactTextString(m) } +func (*Messages_StickerSetInstallResult) ProtoMessage() {} +func (*Messages_StickerSetInstallResult) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{975} } -func (m *Messages_AllStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_AllStickers.Unmarshal(m, b) +func (m *Messages_StickerSetInstallResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_StickerSetInstallResult.Unmarshal(m, b) } -func (m *Messages_AllStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_AllStickers.Marshal(b, m, deterministic) +func (m *Messages_StickerSetInstallResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_StickerSetInstallResult.Marshal(b, m, deterministic) } -func (dst *Messages_AllStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_AllStickers.Merge(dst, src) +func (dst *Messages_StickerSetInstallResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_StickerSetInstallResult.Merge(dst, src) } -func (m *Messages_AllStickers) XXX_Size() int { - return xxx_messageInfo_Messages_AllStickers.Size(m) +func (m *Messages_StickerSetInstallResult) XXX_Size() int { + return xxx_messageInfo_Messages_StickerSetInstallResult.Size(m) } -func (m *Messages_AllStickers) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_AllStickers.DiscardUnknown(m) +func (m *Messages_StickerSetInstallResult) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_StickerSetInstallResult.DiscardUnknown(m) } -var xxx_messageInfo_Messages_AllStickers proto.InternalMessageInfo +var xxx_messageInfo_Messages_StickerSetInstallResult proto.InternalMessageInfo -func (m *Messages_AllStickers) GetConstructor() TLConstructor { +func (m *Messages_StickerSetInstallResult) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_AllStickers) GetData2() *Messages_AllStickers_Data { +func (m *Messages_StickerSetInstallResult) GetData2() *Messages_StickerSetInstallResult_Data { if m != nil { return m.Data2 } return nil } -// messages.allStickersNotModified#e86602c3 = messages.AllStickers; -type TLMessagesAllStickersNotModified struct { - Data2 *Messages_AllStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult; +type TLMessagesStickerSetInstallResultSuccess struct { + Data2 *Messages_StickerSetInstallResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesAllStickersNotModified) Reset() { *m = TLMessagesAllStickersNotModified{} } -func (m *TLMessagesAllStickersNotModified) String() string { return proto.CompactTextString(m) } -func (*TLMessagesAllStickersNotModified) ProtoMessage() {} -func (*TLMessagesAllStickersNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1012} +func (m *TLMessagesStickerSetInstallResultSuccess) Reset() { + *m = TLMessagesStickerSetInstallResultSuccess{} } -func (m *TLMessagesAllStickersNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesAllStickersNotModified.Unmarshal(m, b) +func (m *TLMessagesStickerSetInstallResultSuccess) String() string { return proto.CompactTextString(m) } +func (*TLMessagesStickerSetInstallResultSuccess) ProtoMessage() {} +func (*TLMessagesStickerSetInstallResultSuccess) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{976} } -func (m *TLMessagesAllStickersNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesAllStickersNotModified.Marshal(b, m, deterministic) +func (m *TLMessagesStickerSetInstallResultSuccess) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.Unmarshal(m, b) } -func (dst *TLMessagesAllStickersNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesAllStickersNotModified.Merge(dst, src) +func (m *TLMessagesStickerSetInstallResultSuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.Marshal(b, m, deterministic) } -func (m *TLMessagesAllStickersNotModified) XXX_Size() int { - return xxx_messageInfo_TLMessagesAllStickersNotModified.Size(m) +func (dst *TLMessagesStickerSetInstallResultSuccess) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.Merge(dst, src) } -func (m *TLMessagesAllStickersNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesAllStickersNotModified.DiscardUnknown(m) +func (m *TLMessagesStickerSetInstallResultSuccess) XXX_Size() int { + return xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.Size(m) +} +func (m *TLMessagesStickerSetInstallResultSuccess) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesAllStickersNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesStickerSetInstallResultSuccess proto.InternalMessageInfo -func (m *TLMessagesAllStickersNotModified) GetData2() *Messages_AllStickers_Data { +func (m *TLMessagesStickerSetInstallResultSuccess) GetData2() *Messages_StickerSetInstallResult_Data { if m != nil { return m.Data2 } return nil } -// messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers; -type TLMessagesAllStickers struct { - Data2 *Messages_AllStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult; +type TLMessagesStickerSetInstallResultArchive struct { + Data2 *Messages_StickerSetInstallResult_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesAllStickers) Reset() { *m = TLMessagesAllStickers{} } -func (m *TLMessagesAllStickers) String() string { return proto.CompactTextString(m) } -func (*TLMessagesAllStickers) ProtoMessage() {} -func (*TLMessagesAllStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1013} +func (m *TLMessagesStickerSetInstallResultArchive) Reset() { + *m = TLMessagesStickerSetInstallResultArchive{} } -func (m *TLMessagesAllStickers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesAllStickers.Unmarshal(m, b) +func (m *TLMessagesStickerSetInstallResultArchive) String() string { return proto.CompactTextString(m) } +func (*TLMessagesStickerSetInstallResultArchive) ProtoMessage() {} +func (*TLMessagesStickerSetInstallResultArchive) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{977} } -func (m *TLMessagesAllStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesAllStickers.Marshal(b, m, deterministic) +func (m *TLMessagesStickerSetInstallResultArchive) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.Unmarshal(m, b) } -func (dst *TLMessagesAllStickers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesAllStickers.Merge(dst, src) +func (m *TLMessagesStickerSetInstallResultArchive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.Marshal(b, m, deterministic) } -func (m *TLMessagesAllStickers) XXX_Size() int { - return xxx_messageInfo_TLMessagesAllStickers.Size(m) +func (dst *TLMessagesStickerSetInstallResultArchive) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.Merge(dst, src) } -func (m *TLMessagesAllStickers) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesAllStickers.DiscardUnknown(m) +func (m *TLMessagesStickerSetInstallResultArchive) XXX_Size() int { + return xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.Size(m) +} +func (m *TLMessagesStickerSetInstallResultArchive) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesStickerSetInstallResultArchive.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesAllStickers proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesStickerSetInstallResultArchive proto.InternalMessageInfo -func (m *TLMessagesAllStickers) GetData2() *Messages_AllStickers_Data { +func (m *TLMessagesStickerSetInstallResultArchive) GetData2() *Messages_StickerSetInstallResult_Data { if m != nil { return m.Data2 } @@ -49584,285 +47762,206 @@ func (m *TLMessagesAllStickers) GetData2() *Messages_AllStickers_Data { } // ///////////////////////////////////////////////////////////////////////////// -// payments_ValidatedRequestedInfo <-- -// + TL_payments_validatedRequestedInfo +// payments_PaymentForm <-- +// + TL_payments_paymentForm // -type Payments_ValidatedRequestedInfo_Data struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ShippingOptions []*ShippingOption `protobuf:"bytes,2,rep,name=shipping_options,json=shippingOptions,proto3" json:"shipping_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Payments_PaymentForm_Data struct { + CanSaveCredentials bool `protobuf:"varint,1,opt,name=can_save_credentials,json=canSaveCredentials,proto3" json:"can_save_credentials,omitempty"` + PasswordMissing bool `protobuf:"varint,2,opt,name=password_missing,json=passwordMissing,proto3" json:"password_missing,omitempty"` + BotId int32 `protobuf:"varint,3,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"` + Invoice *Invoice `protobuf:"bytes,4,opt,name=invoice,proto3" json:"invoice,omitempty"` + ProviderId int32 `protobuf:"varint,5,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` + Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` + NativeProvider string `protobuf:"bytes,7,opt,name=native_provider,json=nativeProvider,proto3" json:"native_provider,omitempty"` + NativeParams *DataJSON `protobuf:"bytes,8,opt,name=native_params,json=nativeParams,proto3" json:"native_params,omitempty"` + SavedInfo *PaymentRequestedInfo `protobuf:"bytes,9,opt,name=saved_info,json=savedInfo,proto3" json:"saved_info,omitempty"` + SavedCredentials *PaymentSavedCredentials `protobuf:"bytes,10,opt,name=saved_credentials,json=savedCredentials,proto3" json:"saved_credentials,omitempty"` + Users []*User `protobuf:"bytes,11,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Payments_ValidatedRequestedInfo_Data) Reset() { *m = Payments_ValidatedRequestedInfo_Data{} } -func (m *Payments_ValidatedRequestedInfo_Data) String() string { return proto.CompactTextString(m) } -func (*Payments_ValidatedRequestedInfo_Data) ProtoMessage() {} -func (*Payments_ValidatedRequestedInfo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1014} +func (m *Payments_PaymentForm_Data) Reset() { *m = Payments_PaymentForm_Data{} } +func (m *Payments_PaymentForm_Data) String() string { return proto.CompactTextString(m) } +func (*Payments_PaymentForm_Data) ProtoMessage() {} +func (*Payments_PaymentForm_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{978} } -func (m *Payments_ValidatedRequestedInfo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.Unmarshal(m, b) +func (m *Payments_PaymentForm_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_PaymentForm_Data.Unmarshal(m, b) } -func (m *Payments_ValidatedRequestedInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.Marshal(b, m, deterministic) +func (m *Payments_PaymentForm_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_PaymentForm_Data.Marshal(b, m, deterministic) } -func (dst *Payments_ValidatedRequestedInfo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.Merge(dst, src) +func (dst *Payments_PaymentForm_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_PaymentForm_Data.Merge(dst, src) } -func (m *Payments_ValidatedRequestedInfo_Data) XXX_Size() int { - return xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.Size(m) +func (m *Payments_PaymentForm_Data) XXX_Size() int { + return xxx_messageInfo_Payments_PaymentForm_Data.Size(m) } -func (m *Payments_ValidatedRequestedInfo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_ValidatedRequestedInfo_Data.DiscardUnknown(m) +func (m *Payments_PaymentForm_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_PaymentForm_Data.DiscardUnknown(m) } -var xxx_messageInfo_Payments_ValidatedRequestedInfo_Data proto.InternalMessageInfo +var xxx_messageInfo_Payments_PaymentForm_Data proto.InternalMessageInfo -func (m *Payments_ValidatedRequestedInfo_Data) GetId() string { +func (m *Payments_PaymentForm_Data) GetCanSaveCredentials() bool { if m != nil { - return m.Id + return m.CanSaveCredentials } - return "" + return false } -func (m *Payments_ValidatedRequestedInfo_Data) GetShippingOptions() []*ShippingOption { +func (m *Payments_PaymentForm_Data) GetPasswordMissing() bool { if m != nil { - return m.ShippingOptions + return m.PasswordMissing } - return nil + return false } -type Payments_ValidatedRequestedInfo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Payments_ValidatedRequestedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Payments_PaymentForm_Data) GetBotId() int32 { + if m != nil { + return m.BotId + } + return 0 } -func (m *Payments_ValidatedRequestedInfo) Reset() { *m = Payments_ValidatedRequestedInfo{} } -func (m *Payments_ValidatedRequestedInfo) String() string { return proto.CompactTextString(m) } -func (*Payments_ValidatedRequestedInfo) ProtoMessage() {} -func (*Payments_ValidatedRequestedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1015} -} -func (m *Payments_ValidatedRequestedInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Payments_ValidatedRequestedInfo.Unmarshal(m, b) -} -func (m *Payments_ValidatedRequestedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Payments_ValidatedRequestedInfo.Marshal(b, m, deterministic) -} -func (dst *Payments_ValidatedRequestedInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payments_ValidatedRequestedInfo.Merge(dst, src) -} -func (m *Payments_ValidatedRequestedInfo) XXX_Size() int { - return xxx_messageInfo_Payments_ValidatedRequestedInfo.Size(m) -} -func (m *Payments_ValidatedRequestedInfo) XXX_DiscardUnknown() { - xxx_messageInfo_Payments_ValidatedRequestedInfo.DiscardUnknown(m) +func (m *Payments_PaymentForm_Data) GetInvoice() *Invoice { + if m != nil { + return m.Invoice + } + return nil } -var xxx_messageInfo_Payments_ValidatedRequestedInfo proto.InternalMessageInfo - -func (m *Payments_ValidatedRequestedInfo) GetConstructor() TLConstructor { +func (m *Payments_PaymentForm_Data) GetProviderId() int32 { if m != nil { - return m.Constructor + return m.ProviderId } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *Payments_ValidatedRequestedInfo) GetData2() *Payments_ValidatedRequestedInfo_Data { +func (m *Payments_PaymentForm_Data) GetUrl() string { if m != nil { - return m.Data2 + return m.Url } - return nil -} - -// payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; -type TLPaymentsValidatedRequestedInfo struct { - Data2 *Payments_ValidatedRequestedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLPaymentsValidatedRequestedInfo) Reset() { *m = TLPaymentsValidatedRequestedInfo{} } -func (m *TLPaymentsValidatedRequestedInfo) String() string { return proto.CompactTextString(m) } -func (*TLPaymentsValidatedRequestedInfo) ProtoMessage() {} -func (*TLPaymentsValidatedRequestedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1016} -} -func (m *TLPaymentsValidatedRequestedInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPaymentsValidatedRequestedInfo.Unmarshal(m, b) -} -func (m *TLPaymentsValidatedRequestedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPaymentsValidatedRequestedInfo.Marshal(b, m, deterministic) -} -func (dst *TLPaymentsValidatedRequestedInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPaymentsValidatedRequestedInfo.Merge(dst, src) -} -func (m *TLPaymentsValidatedRequestedInfo) XXX_Size() int { - return xxx_messageInfo_TLPaymentsValidatedRequestedInfo.Size(m) -} -func (m *TLPaymentsValidatedRequestedInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLPaymentsValidatedRequestedInfo.DiscardUnknown(m) + return "" } -var xxx_messageInfo_TLPaymentsValidatedRequestedInfo proto.InternalMessageInfo - -func (m *TLPaymentsValidatedRequestedInfo) GetData2() *Payments_ValidatedRequestedInfo_Data { +func (m *Payments_PaymentForm_Data) GetNativeProvider() string { if m != nil { - return m.Data2 + return m.NativeProvider } - return nil -} - -// ///////////////////////////////////////////////////////////////////////////// -// SchemeMethod <-- -// + TL_schemeMethod -// -type SchemeMethod_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` - Params []*SchemeParam `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SchemeMethod_Data) Reset() { *m = SchemeMethod_Data{} } -func (m *SchemeMethod_Data) String() string { return proto.CompactTextString(m) } -func (*SchemeMethod_Data) ProtoMessage() {} -func (*SchemeMethod_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1017} -} -func (m *SchemeMethod_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SchemeMethod_Data.Unmarshal(m, b) -} -func (m *SchemeMethod_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SchemeMethod_Data.Marshal(b, m, deterministic) -} -func (dst *SchemeMethod_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemeMethod_Data.Merge(dst, src) -} -func (m *SchemeMethod_Data) XXX_Size() int { - return xxx_messageInfo_SchemeMethod_Data.Size(m) -} -func (m *SchemeMethod_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SchemeMethod_Data.DiscardUnknown(m) + return "" } -var xxx_messageInfo_SchemeMethod_Data proto.InternalMessageInfo - -func (m *SchemeMethod_Data) GetId() int32 { +func (m *Payments_PaymentForm_Data) GetNativeParams() *DataJSON { if m != nil { - return m.Id + return m.NativeParams } - return 0 + return nil } -func (m *SchemeMethod_Data) GetMethod() string { +func (m *Payments_PaymentForm_Data) GetSavedInfo() *PaymentRequestedInfo { if m != nil { - return m.Method + return m.SavedInfo } - return "" + return nil } -func (m *SchemeMethod_Data) GetParams() []*SchemeParam { +func (m *Payments_PaymentForm_Data) GetSavedCredentials() *PaymentSavedCredentials { if m != nil { - return m.Params + return m.SavedCredentials } return nil } -func (m *SchemeMethod_Data) GetType() string { +func (m *Payments_PaymentForm_Data) GetUsers() []*User { if m != nil { - return m.Type + return m.Users } - return "" + return nil } -type SchemeMethod struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SchemeMethod_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Payments_PaymentForm struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Payments_PaymentForm_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SchemeMethod) Reset() { *m = SchemeMethod{} } -func (m *SchemeMethod) String() string { return proto.CompactTextString(m) } -func (*SchemeMethod) ProtoMessage() {} -func (*SchemeMethod) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1018} +func (m *Payments_PaymentForm) Reset() { *m = Payments_PaymentForm{} } +func (m *Payments_PaymentForm) String() string { return proto.CompactTextString(m) } +func (*Payments_PaymentForm) ProtoMessage() {} +func (*Payments_PaymentForm) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{979} } -func (m *SchemeMethod) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SchemeMethod.Unmarshal(m, b) +func (m *Payments_PaymentForm) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_PaymentForm.Unmarshal(m, b) } -func (m *SchemeMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SchemeMethod.Marshal(b, m, deterministic) +func (m *Payments_PaymentForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_PaymentForm.Marshal(b, m, deterministic) } -func (dst *SchemeMethod) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemeMethod.Merge(dst, src) +func (dst *Payments_PaymentForm) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_PaymentForm.Merge(dst, src) } -func (m *SchemeMethod) XXX_Size() int { - return xxx_messageInfo_SchemeMethod.Size(m) +func (m *Payments_PaymentForm) XXX_Size() int { + return xxx_messageInfo_Payments_PaymentForm.Size(m) } -func (m *SchemeMethod) XXX_DiscardUnknown() { - xxx_messageInfo_SchemeMethod.DiscardUnknown(m) +func (m *Payments_PaymentForm) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_PaymentForm.DiscardUnknown(m) } -var xxx_messageInfo_SchemeMethod proto.InternalMessageInfo +var xxx_messageInfo_Payments_PaymentForm proto.InternalMessageInfo -func (m *SchemeMethod) GetConstructor() TLConstructor { +func (m *Payments_PaymentForm) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *SchemeMethod) GetData2() *SchemeMethod_Data { +func (m *Payments_PaymentForm) GetData2() *Payments_PaymentForm_Data { if m != nil { return m.Data2 } return nil } -// schemeMethod#479357c0 id:int method:string params:Vector type:string = SchemeMethod; -type TLSchemeMethod struct { - Data2 *SchemeMethod_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; +type TLPaymentsPaymentForm struct { + Data2 *Payments_PaymentForm_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSchemeMethod) Reset() { *m = TLSchemeMethod{} } -func (m *TLSchemeMethod) String() string { return proto.CompactTextString(m) } -func (*TLSchemeMethod) ProtoMessage() {} -func (*TLSchemeMethod) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1019} +func (m *TLPaymentsPaymentForm) Reset() { *m = TLPaymentsPaymentForm{} } +func (m *TLPaymentsPaymentForm) String() string { return proto.CompactTextString(m) } +func (*TLPaymentsPaymentForm) ProtoMessage() {} +func (*TLPaymentsPaymentForm) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{980} } -func (m *TLSchemeMethod) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSchemeMethod.Unmarshal(m, b) +func (m *TLPaymentsPaymentForm) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPaymentsPaymentForm.Unmarshal(m, b) } -func (m *TLSchemeMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSchemeMethod.Marshal(b, m, deterministic) +func (m *TLPaymentsPaymentForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPaymentsPaymentForm.Marshal(b, m, deterministic) } -func (dst *TLSchemeMethod) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSchemeMethod.Merge(dst, src) +func (dst *TLPaymentsPaymentForm) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPaymentsPaymentForm.Merge(dst, src) } -func (m *TLSchemeMethod) XXX_Size() int { - return xxx_messageInfo_TLSchemeMethod.Size(m) +func (m *TLPaymentsPaymentForm) XXX_Size() int { + return xxx_messageInfo_TLPaymentsPaymentForm.Size(m) } -func (m *TLSchemeMethod) XXX_DiscardUnknown() { - xxx_messageInfo_TLSchemeMethod.DiscardUnknown(m) +func (m *TLPaymentsPaymentForm) XXX_DiscardUnknown() { + xxx_messageInfo_TLPaymentsPaymentForm.DiscardUnknown(m) } -var xxx_messageInfo_TLSchemeMethod proto.InternalMessageInfo +var xxx_messageInfo_TLPaymentsPaymentForm proto.InternalMessageInfo -func (m *TLSchemeMethod) GetData2() *SchemeMethod_Data { +func (m *TLPaymentsPaymentForm) GetData2() *Payments_PaymentForm_Data { if m != nil { return m.Data2 } @@ -49870,134 +47969,150 @@ func (m *TLSchemeMethod) GetData2() *SchemeMethod_Data { } // ///////////////////////////////////////////////////////////////////////////// -// help_Support <-- -// + TL_help_support +// LangPackDifference <-- +// + TL_langPackDifference // -type Help_Support_Data struct { - PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type LangPackDifference_Data struct { + LangCode string `protobuf:"bytes,1,opt,name=lang_code,json=langCode,proto3" json:"lang_code,omitempty"` + FromVersion int32 `protobuf:"varint,2,opt,name=from_version,json=fromVersion,proto3" json:"from_version,omitempty"` + Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` + Strings []*LangPackString `protobuf:"bytes,4,rep,name=strings,proto3" json:"strings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_Support_Data) Reset() { *m = Help_Support_Data{} } -func (m *Help_Support_Data) String() string { return proto.CompactTextString(m) } -func (*Help_Support_Data) ProtoMessage() {} -func (*Help_Support_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1020} +func (m *LangPackDifference_Data) Reset() { *m = LangPackDifference_Data{} } +func (m *LangPackDifference_Data) String() string { return proto.CompactTextString(m) } +func (*LangPackDifference_Data) ProtoMessage() {} +func (*LangPackDifference_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{981} } -func (m *Help_Support_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_Support_Data.Unmarshal(m, b) +func (m *LangPackDifference_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LangPackDifference_Data.Unmarshal(m, b) } -func (m *Help_Support_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_Support_Data.Marshal(b, m, deterministic) +func (m *LangPackDifference_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LangPackDifference_Data.Marshal(b, m, deterministic) } -func (dst *Help_Support_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_Support_Data.Merge(dst, src) +func (dst *LangPackDifference_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_LangPackDifference_Data.Merge(dst, src) } -func (m *Help_Support_Data) XXX_Size() int { - return xxx_messageInfo_Help_Support_Data.Size(m) +func (m *LangPackDifference_Data) XXX_Size() int { + return xxx_messageInfo_LangPackDifference_Data.Size(m) } -func (m *Help_Support_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_Support_Data.DiscardUnknown(m) +func (m *LangPackDifference_Data) XXX_DiscardUnknown() { + xxx_messageInfo_LangPackDifference_Data.DiscardUnknown(m) } -var xxx_messageInfo_Help_Support_Data proto.InternalMessageInfo +var xxx_messageInfo_LangPackDifference_Data proto.InternalMessageInfo -func (m *Help_Support_Data) GetPhoneNumber() string { +func (m *LangPackDifference_Data) GetLangCode() string { if m != nil { - return m.PhoneNumber + return m.LangCode } return "" } -func (m *Help_Support_Data) GetUser() *User { +func (m *LangPackDifference_Data) GetFromVersion() int32 { if m != nil { - return m.User + return m.FromVersion + } + return 0 +} + +func (m *LangPackDifference_Data) GetVersion() int32 { + if m != nil { + return m.Version + } + return 0 +} + +func (m *LangPackDifference_Data) GetStrings() []*LangPackString { + if m != nil { + return m.Strings } return nil } -type Help_Support struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_Support_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type LangPackDifference struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *LangPackDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_Support) Reset() { *m = Help_Support{} } -func (m *Help_Support) String() string { return proto.CompactTextString(m) } -func (*Help_Support) ProtoMessage() {} -func (*Help_Support) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1021} +func (m *LangPackDifference) Reset() { *m = LangPackDifference{} } +func (m *LangPackDifference) String() string { return proto.CompactTextString(m) } +func (*LangPackDifference) ProtoMessage() {} +func (*LangPackDifference) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{982} } -func (m *Help_Support) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_Support.Unmarshal(m, b) +func (m *LangPackDifference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LangPackDifference.Unmarshal(m, b) } -func (m *Help_Support) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_Support.Marshal(b, m, deterministic) +func (m *LangPackDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LangPackDifference.Marshal(b, m, deterministic) } -func (dst *Help_Support) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_Support.Merge(dst, src) +func (dst *LangPackDifference) XXX_Merge(src proto.Message) { + xxx_messageInfo_LangPackDifference.Merge(dst, src) } -func (m *Help_Support) XXX_Size() int { - return xxx_messageInfo_Help_Support.Size(m) +func (m *LangPackDifference) XXX_Size() int { + return xxx_messageInfo_LangPackDifference.Size(m) } -func (m *Help_Support) XXX_DiscardUnknown() { - xxx_messageInfo_Help_Support.DiscardUnknown(m) +func (m *LangPackDifference) XXX_DiscardUnknown() { + xxx_messageInfo_LangPackDifference.DiscardUnknown(m) } -var xxx_messageInfo_Help_Support proto.InternalMessageInfo +var xxx_messageInfo_LangPackDifference proto.InternalMessageInfo -func (m *Help_Support) GetConstructor() TLConstructor { +func (m *LangPackDifference) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Help_Support) GetData2() *Help_Support_Data { +func (m *LangPackDifference) GetData2() *LangPackDifference_Data { if m != nil { return m.Data2 } return nil } -// help.support#17c6b5f6 phone_number:string user:User = help.Support; -type TLHelpSupport struct { - Data2 *Help_Support_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference; +type TLLangPackDifference struct { + Data2 *LangPackDifference_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpSupport) Reset() { *m = TLHelpSupport{} } -func (m *TLHelpSupport) String() string { return proto.CompactTextString(m) } -func (*TLHelpSupport) ProtoMessage() {} -func (*TLHelpSupport) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1022} +func (m *TLLangPackDifference) Reset() { *m = TLLangPackDifference{} } +func (m *TLLangPackDifference) String() string { return proto.CompactTextString(m) } +func (*TLLangPackDifference) ProtoMessage() {} +func (*TLLangPackDifference) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{983} } -func (m *TLHelpSupport) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpSupport.Unmarshal(m, b) +func (m *TLLangPackDifference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLLangPackDifference.Unmarshal(m, b) } -func (m *TLHelpSupport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpSupport.Marshal(b, m, deterministic) +func (m *TLLangPackDifference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLLangPackDifference.Marshal(b, m, deterministic) } -func (dst *TLHelpSupport) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpSupport.Merge(dst, src) +func (dst *TLLangPackDifference) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLLangPackDifference.Merge(dst, src) } -func (m *TLHelpSupport) XXX_Size() int { - return xxx_messageInfo_TLHelpSupport.Size(m) +func (m *TLLangPackDifference) XXX_Size() int { + return xxx_messageInfo_TLLangPackDifference.Size(m) } -func (m *TLHelpSupport) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpSupport.DiscardUnknown(m) +func (m *TLLangPackDifference) XXX_DiscardUnknown() { + xxx_messageInfo_TLLangPackDifference.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpSupport proto.InternalMessageInfo +var xxx_messageInfo_TLLangPackDifference proto.InternalMessageInfo -func (m *TLHelpSupport) GetData2() *Help_Support_Data { +func (m *TLLangPackDifference) GetData2() *LangPackDifference_Data { if m != nil { return m.Data2 } @@ -50005,190 +48120,174 @@ func (m *TLHelpSupport) GetData2() *Help_Support_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ChatParticipants <-- -// + TL_chatParticipantsForbidden -// + TL_chatParticipants +// messages_Chats <-- +// + TL_messages_chats +// + TL_messages_chatsSlice // -type ChatParticipants_Data struct { - ChatId int32 `protobuf:"varint,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` - SelfParticipant *ChatParticipant `protobuf:"bytes,2,opt,name=self_participant,json=selfParticipant,proto3" json:"self_participant,omitempty"` - Participants []*ChatParticipant `protobuf:"bytes,3,rep,name=participants,proto3" json:"participants,omitempty"` - Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_Chats_Data struct { + Chats []*Chat `protobuf:"bytes,1,rep,name=chats,proto3" json:"chats,omitempty"` + Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatParticipants_Data) Reset() { *m = ChatParticipants_Data{} } -func (m *ChatParticipants_Data) String() string { return proto.CompactTextString(m) } -func (*ChatParticipants_Data) ProtoMessage() {} -func (*ChatParticipants_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1023} -} -func (m *ChatParticipants_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatParticipants_Data.Unmarshal(m, b) +func (m *Messages_Chats_Data) Reset() { *m = Messages_Chats_Data{} } +func (m *Messages_Chats_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_Chats_Data) ProtoMessage() {} +func (*Messages_Chats_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{984} } -func (m *ChatParticipants_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatParticipants_Data.Marshal(b, m, deterministic) +func (m *Messages_Chats_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_Chats_Data.Unmarshal(m, b) } -func (dst *ChatParticipants_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatParticipants_Data.Merge(dst, src) +func (m *Messages_Chats_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_Chats_Data.Marshal(b, m, deterministic) } -func (m *ChatParticipants_Data) XXX_Size() int { - return xxx_messageInfo_ChatParticipants_Data.Size(m) +func (dst *Messages_Chats_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_Chats_Data.Merge(dst, src) } -func (m *ChatParticipants_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChatParticipants_Data.DiscardUnknown(m) +func (m *Messages_Chats_Data) XXX_Size() int { + return xxx_messageInfo_Messages_Chats_Data.Size(m) } - -var xxx_messageInfo_ChatParticipants_Data proto.InternalMessageInfo - -func (m *ChatParticipants_Data) GetChatId() int32 { - if m != nil { - return m.ChatId - } - return 0 +func (m *Messages_Chats_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_Chats_Data.DiscardUnknown(m) } -func (m *ChatParticipants_Data) GetSelfParticipant() *ChatParticipant { - if m != nil { - return m.SelfParticipant - } - return nil -} +var xxx_messageInfo_Messages_Chats_Data proto.InternalMessageInfo -func (m *ChatParticipants_Data) GetParticipants() []*ChatParticipant { +func (m *Messages_Chats_Data) GetChats() []*Chat { if m != nil { - return m.Participants + return m.Chats } return nil } -func (m *ChatParticipants_Data) GetVersion() int32 { +func (m *Messages_Chats_Data) GetCount() int32 { if m != nil { - return m.Version + return m.Count } return 0 } -type ChatParticipants struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChatParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_Chats struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_Chats_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatParticipants) Reset() { *m = ChatParticipants{} } -func (m *ChatParticipants) String() string { return proto.CompactTextString(m) } -func (*ChatParticipants) ProtoMessage() {} -func (*ChatParticipants) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1024} +func (m *Messages_Chats) Reset() { *m = Messages_Chats{} } +func (m *Messages_Chats) String() string { return proto.CompactTextString(m) } +func (*Messages_Chats) ProtoMessage() {} +func (*Messages_Chats) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{985} } -func (m *ChatParticipants) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatParticipants.Unmarshal(m, b) +func (m *Messages_Chats) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_Chats.Unmarshal(m, b) } -func (m *ChatParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatParticipants.Marshal(b, m, deterministic) +func (m *Messages_Chats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_Chats.Marshal(b, m, deterministic) } -func (dst *ChatParticipants) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatParticipants.Merge(dst, src) +func (dst *Messages_Chats) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_Chats.Merge(dst, src) } -func (m *ChatParticipants) XXX_Size() int { - return xxx_messageInfo_ChatParticipants.Size(m) +func (m *Messages_Chats) XXX_Size() int { + return xxx_messageInfo_Messages_Chats.Size(m) } -func (m *ChatParticipants) XXX_DiscardUnknown() { - xxx_messageInfo_ChatParticipants.DiscardUnknown(m) +func (m *Messages_Chats) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_Chats.DiscardUnknown(m) } -var xxx_messageInfo_ChatParticipants proto.InternalMessageInfo +var xxx_messageInfo_Messages_Chats proto.InternalMessageInfo -func (m *ChatParticipants) GetConstructor() TLConstructor { +func (m *Messages_Chats) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ChatParticipants) GetData2() *ChatParticipants_Data { +func (m *Messages_Chats) GetData2() *Messages_Chats_Data { if m != nil { return m.Data2 } return nil } -// chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants; -type TLChatParticipantsForbidden struct { - Data2 *ChatParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.chats#64ff9fd5 chats:Vector = messages.Chats; +type TLMessagesChats struct { + Data2 *Messages_Chats_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatParticipantsForbidden) Reset() { *m = TLChatParticipantsForbidden{} } -func (m *TLChatParticipantsForbidden) String() string { return proto.CompactTextString(m) } -func (*TLChatParticipantsForbidden) ProtoMessage() {} -func (*TLChatParticipantsForbidden) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1025} +func (m *TLMessagesChats) Reset() { *m = TLMessagesChats{} } +func (m *TLMessagesChats) String() string { return proto.CompactTextString(m) } +func (*TLMessagesChats) ProtoMessage() {} +func (*TLMessagesChats) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{986} } -func (m *TLChatParticipantsForbidden) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatParticipantsForbidden.Unmarshal(m, b) +func (m *TLMessagesChats) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesChats.Unmarshal(m, b) } -func (m *TLChatParticipantsForbidden) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatParticipantsForbidden.Marshal(b, m, deterministic) +func (m *TLMessagesChats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesChats.Marshal(b, m, deterministic) } -func (dst *TLChatParticipantsForbidden) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatParticipantsForbidden.Merge(dst, src) +func (dst *TLMessagesChats) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesChats.Merge(dst, src) } -func (m *TLChatParticipantsForbidden) XXX_Size() int { - return xxx_messageInfo_TLChatParticipantsForbidden.Size(m) +func (m *TLMessagesChats) XXX_Size() int { + return xxx_messageInfo_TLMessagesChats.Size(m) } -func (m *TLChatParticipantsForbidden) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatParticipantsForbidden.DiscardUnknown(m) +func (m *TLMessagesChats) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesChats.DiscardUnknown(m) } -var xxx_messageInfo_TLChatParticipantsForbidden proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesChats proto.InternalMessageInfo -func (m *TLChatParticipantsForbidden) GetData2() *ChatParticipants_Data { +func (m *TLMessagesChats) GetData2() *Messages_Chats_Data { if m != nil { return m.Data2 } return nil } -// chatParticipants#3f460fed chat_id:int participants:Vector version:int = ChatParticipants; -type TLChatParticipants struct { - Data2 *ChatParticipants_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats; +type TLMessagesChatsSlice struct { + Data2 *Messages_Chats_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatParticipants) Reset() { *m = TLChatParticipants{} } -func (m *TLChatParticipants) String() string { return proto.CompactTextString(m) } -func (*TLChatParticipants) ProtoMessage() {} -func (*TLChatParticipants) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1026} +func (m *TLMessagesChatsSlice) Reset() { *m = TLMessagesChatsSlice{} } +func (m *TLMessagesChatsSlice) String() string { return proto.CompactTextString(m) } +func (*TLMessagesChatsSlice) ProtoMessage() {} +func (*TLMessagesChatsSlice) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{987} } -func (m *TLChatParticipants) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatParticipants.Unmarshal(m, b) +func (m *TLMessagesChatsSlice) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesChatsSlice.Unmarshal(m, b) } -func (m *TLChatParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatParticipants.Marshal(b, m, deterministic) +func (m *TLMessagesChatsSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesChatsSlice.Marshal(b, m, deterministic) } -func (dst *TLChatParticipants) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatParticipants.Merge(dst, src) +func (dst *TLMessagesChatsSlice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesChatsSlice.Merge(dst, src) } -func (m *TLChatParticipants) XXX_Size() int { - return xxx_messageInfo_TLChatParticipants.Size(m) +func (m *TLMessagesChatsSlice) XXX_Size() int { + return xxx_messageInfo_TLMessagesChatsSlice.Size(m) } -func (m *TLChatParticipants) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatParticipants.DiscardUnknown(m) +func (m *TLMessagesChatsSlice) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesChatsSlice.DiscardUnknown(m) } -var xxx_messageInfo_TLChatParticipants proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesChatsSlice proto.InternalMessageInfo -func (m *TLChatParticipants) GetData2() *ChatParticipants_Data { +func (m *TLMessagesChatsSlice) GetData2() *Messages_Chats_Data { if m != nil { return m.Data2 } @@ -50196,1874 +48295,1891 @@ func (m *TLChatParticipants) GetData2() *ChatParticipants_Data { } // ///////////////////////////////////////////////////////////////////////////// -// MessagesFilter <-- -// + TL_inputMessagesFilterEmpty -// + TL_inputMessagesFilterPhotos -// + TL_inputMessagesFilterVideo -// + TL_inputMessagesFilterPhotoVideo -// + TL_inputMessagesFilterDocument -// + TL_inputMessagesFilterUrl -// + TL_inputMessagesFilterGif -// + TL_inputMessagesFilterVoice -// + TL_inputMessagesFilterMusic -// + TL_inputMessagesFilterChatPhotos -// + TL_inputMessagesFilterPhoneCalls -// + TL_inputMessagesFilterRoundVoice -// + TL_inputMessagesFilterRoundVideo -// + TL_inputMessagesFilterMyMentions -// + TL_inputMessagesFilterGeo -// + TL_inputMessagesFilterContacts +// KeyboardButtonRow <-- +// + TL_keyboardButtonRow // -type MessagesFilter_Data struct { - Missed bool `protobuf:"varint,1,opt,name=missed,proto3" json:"missed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type KeyboardButtonRow_Data struct { + Buttons []*KeyboardButton `protobuf:"bytes,1,rep,name=buttons,proto3" json:"buttons,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessagesFilter_Data) Reset() { *m = MessagesFilter_Data{} } -func (m *MessagesFilter_Data) String() string { return proto.CompactTextString(m) } -func (*MessagesFilter_Data) ProtoMessage() {} -func (*MessagesFilter_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1027} +func (m *KeyboardButtonRow_Data) Reset() { *m = KeyboardButtonRow_Data{} } +func (m *KeyboardButtonRow_Data) String() string { return proto.CompactTextString(m) } +func (*KeyboardButtonRow_Data) ProtoMessage() {} +func (*KeyboardButtonRow_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{988} } -func (m *MessagesFilter_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessagesFilter_Data.Unmarshal(m, b) +func (m *KeyboardButtonRow_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyboardButtonRow_Data.Unmarshal(m, b) } -func (m *MessagesFilter_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessagesFilter_Data.Marshal(b, m, deterministic) +func (m *KeyboardButtonRow_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyboardButtonRow_Data.Marshal(b, m, deterministic) } -func (dst *MessagesFilter_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessagesFilter_Data.Merge(dst, src) +func (dst *KeyboardButtonRow_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyboardButtonRow_Data.Merge(dst, src) } -func (m *MessagesFilter_Data) XXX_Size() int { - return xxx_messageInfo_MessagesFilter_Data.Size(m) +func (m *KeyboardButtonRow_Data) XXX_Size() int { + return xxx_messageInfo_KeyboardButtonRow_Data.Size(m) } -func (m *MessagesFilter_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MessagesFilter_Data.DiscardUnknown(m) +func (m *KeyboardButtonRow_Data) XXX_DiscardUnknown() { + xxx_messageInfo_KeyboardButtonRow_Data.DiscardUnknown(m) } -var xxx_messageInfo_MessagesFilter_Data proto.InternalMessageInfo +var xxx_messageInfo_KeyboardButtonRow_Data proto.InternalMessageInfo -func (m *MessagesFilter_Data) GetMissed() bool { +func (m *KeyboardButtonRow_Data) GetButtons() []*KeyboardButton { if m != nil { - return m.Missed + return m.Buttons } - return false + return nil } -type MessagesFilter struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type KeyboardButtonRow struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *KeyboardButtonRow_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MessagesFilter) Reset() { *m = MessagesFilter{} } -func (m *MessagesFilter) String() string { return proto.CompactTextString(m) } -func (*MessagesFilter) ProtoMessage() {} -func (*MessagesFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1028} +func (m *KeyboardButtonRow) Reset() { *m = KeyboardButtonRow{} } +func (m *KeyboardButtonRow) String() string { return proto.CompactTextString(m) } +func (*KeyboardButtonRow) ProtoMessage() {} +func (*KeyboardButtonRow) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{989} } -func (m *MessagesFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MessagesFilter.Unmarshal(m, b) +func (m *KeyboardButtonRow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyboardButtonRow.Unmarshal(m, b) } -func (m *MessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MessagesFilter.Marshal(b, m, deterministic) +func (m *KeyboardButtonRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyboardButtonRow.Marshal(b, m, deterministic) } -func (dst *MessagesFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessagesFilter.Merge(dst, src) +func (dst *KeyboardButtonRow) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyboardButtonRow.Merge(dst, src) } -func (m *MessagesFilter) XXX_Size() int { - return xxx_messageInfo_MessagesFilter.Size(m) +func (m *KeyboardButtonRow) XXX_Size() int { + return xxx_messageInfo_KeyboardButtonRow.Size(m) } -func (m *MessagesFilter) XXX_DiscardUnknown() { - xxx_messageInfo_MessagesFilter.DiscardUnknown(m) +func (m *KeyboardButtonRow) XXX_DiscardUnknown() { + xxx_messageInfo_KeyboardButtonRow.DiscardUnknown(m) } -var xxx_messageInfo_MessagesFilter proto.InternalMessageInfo +var xxx_messageInfo_KeyboardButtonRow proto.InternalMessageInfo -func (m *MessagesFilter) GetConstructor() TLConstructor { +func (m *KeyboardButtonRow) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MessagesFilter) GetData2() *MessagesFilter_Data { +func (m *KeyboardButtonRow) GetData2() *KeyboardButtonRow_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterEmpty#57e2f66c = MessagesFilter; -type TLInputMessagesFilterEmpty struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; +type TLKeyboardButtonRow struct { + Data2 *KeyboardButtonRow_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterEmpty) Reset() { *m = TLInputMessagesFilterEmpty{} } -func (m *TLInputMessagesFilterEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterEmpty) ProtoMessage() {} -func (*TLInputMessagesFilterEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1029} +func (m *TLKeyboardButtonRow) Reset() { *m = TLKeyboardButtonRow{} } +func (m *TLKeyboardButtonRow) String() string { return proto.CompactTextString(m) } +func (*TLKeyboardButtonRow) ProtoMessage() {} +func (*TLKeyboardButtonRow) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{990} } -func (m *TLInputMessagesFilterEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterEmpty.Unmarshal(m, b) +func (m *TLKeyboardButtonRow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLKeyboardButtonRow.Unmarshal(m, b) } -func (m *TLInputMessagesFilterEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterEmpty.Marshal(b, m, deterministic) +func (m *TLKeyboardButtonRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLKeyboardButtonRow.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterEmpty.Merge(dst, src) +func (dst *TLKeyboardButtonRow) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLKeyboardButtonRow.Merge(dst, src) } -func (m *TLInputMessagesFilterEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterEmpty.Size(m) +func (m *TLKeyboardButtonRow) XXX_Size() int { + return xxx_messageInfo_TLKeyboardButtonRow.Size(m) } -func (m *TLInputMessagesFilterEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterEmpty.DiscardUnknown(m) +func (m *TLKeyboardButtonRow) XXX_DiscardUnknown() { + xxx_messageInfo_TLKeyboardButtonRow.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLKeyboardButtonRow proto.InternalMessageInfo -func (m *TLInputMessagesFilterEmpty) GetData2() *MessagesFilter_Data { +func (m *TLKeyboardButtonRow) GetData2() *KeyboardButtonRow_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterPhotos#9609a51c = MessagesFilter; -type TLInputMessagesFilterPhotos struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// messages_FoundGifs <-- +// + TL_messages_foundGifs +// +type Messages_FoundGifs_Data struct { + NextOffset int32 `protobuf:"varint,1,opt,name=next_offset,json=nextOffset,proto3" json:"next_offset,omitempty"` + Results []*FoundGif `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterPhotos) Reset() { *m = TLInputMessagesFilterPhotos{} } -func (m *TLInputMessagesFilterPhotos) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterPhotos) ProtoMessage() {} -func (*TLInputMessagesFilterPhotos) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1030} +func (m *Messages_FoundGifs_Data) Reset() { *m = Messages_FoundGifs_Data{} } +func (m *Messages_FoundGifs_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_FoundGifs_Data) ProtoMessage() {} +func (*Messages_FoundGifs_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{991} } -func (m *TLInputMessagesFilterPhotos) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterPhotos.Unmarshal(m, b) +func (m *Messages_FoundGifs_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_FoundGifs_Data.Unmarshal(m, b) } -func (m *TLInputMessagesFilterPhotos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterPhotos.Marshal(b, m, deterministic) +func (m *Messages_FoundGifs_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_FoundGifs_Data.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterPhotos) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterPhotos.Merge(dst, src) +func (dst *Messages_FoundGifs_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_FoundGifs_Data.Merge(dst, src) } -func (m *TLInputMessagesFilterPhotos) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterPhotos.Size(m) +func (m *Messages_FoundGifs_Data) XXX_Size() int { + return xxx_messageInfo_Messages_FoundGifs_Data.Size(m) } -func (m *TLInputMessagesFilterPhotos) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterPhotos.DiscardUnknown(m) +func (m *Messages_FoundGifs_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_FoundGifs_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterPhotos proto.InternalMessageInfo +var xxx_messageInfo_Messages_FoundGifs_Data proto.InternalMessageInfo -func (m *TLInputMessagesFilterPhotos) GetData2() *MessagesFilter_Data { +func (m *Messages_FoundGifs_Data) GetNextOffset() int32 { if m != nil { - return m.Data2 + return m.NextOffset + } + return 0 +} + +func (m *Messages_FoundGifs_Data) GetResults() []*FoundGif { + if m != nil { + return m.Results } return nil } -// inputMessagesFilterVideo#9fc00e65 = MessagesFilter; -type TLInputMessagesFilterVideo struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_FoundGifs struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_FoundGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterVideo) Reset() { *m = TLInputMessagesFilterVideo{} } -func (m *TLInputMessagesFilterVideo) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterVideo) ProtoMessage() {} -func (*TLInputMessagesFilterVideo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1031} +func (m *Messages_FoundGifs) Reset() { *m = Messages_FoundGifs{} } +func (m *Messages_FoundGifs) String() string { return proto.CompactTextString(m) } +func (*Messages_FoundGifs) ProtoMessage() {} +func (*Messages_FoundGifs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{992} } -func (m *TLInputMessagesFilterVideo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterVideo.Unmarshal(m, b) +func (m *Messages_FoundGifs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_FoundGifs.Unmarshal(m, b) } -func (m *TLInputMessagesFilterVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterVideo.Marshal(b, m, deterministic) +func (m *Messages_FoundGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_FoundGifs.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterVideo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterVideo.Merge(dst, src) +func (dst *Messages_FoundGifs) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_FoundGifs.Merge(dst, src) } -func (m *TLInputMessagesFilterVideo) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterVideo.Size(m) +func (m *Messages_FoundGifs) XXX_Size() int { + return xxx_messageInfo_Messages_FoundGifs.Size(m) } -func (m *TLInputMessagesFilterVideo) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterVideo.DiscardUnknown(m) +func (m *Messages_FoundGifs) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_FoundGifs.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterVideo proto.InternalMessageInfo +var xxx_messageInfo_Messages_FoundGifs proto.InternalMessageInfo -func (m *TLInputMessagesFilterVideo) GetData2() *MessagesFilter_Data { +func (m *Messages_FoundGifs) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Messages_FoundGifs) GetData2() *Messages_FoundGifs_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter; -type TLInputMessagesFilterPhotoVideo struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.foundGifs#450a1c0a next_offset:int results:Vector = messages.FoundGifs; +type TLMessagesFoundGifs struct { + Data2 *Messages_FoundGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterPhotoVideo) Reset() { *m = TLInputMessagesFilterPhotoVideo{} } -func (m *TLInputMessagesFilterPhotoVideo) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterPhotoVideo) ProtoMessage() {} -func (*TLInputMessagesFilterPhotoVideo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1032} +func (m *TLMessagesFoundGifs) Reset() { *m = TLMessagesFoundGifs{} } +func (m *TLMessagesFoundGifs) String() string { return proto.CompactTextString(m) } +func (*TLMessagesFoundGifs) ProtoMessage() {} +func (*TLMessagesFoundGifs) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{993} } -func (m *TLInputMessagesFilterPhotoVideo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterPhotoVideo.Unmarshal(m, b) +func (m *TLMessagesFoundGifs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesFoundGifs.Unmarshal(m, b) } -func (m *TLInputMessagesFilterPhotoVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterPhotoVideo.Marshal(b, m, deterministic) +func (m *TLMessagesFoundGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesFoundGifs.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterPhotoVideo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterPhotoVideo.Merge(dst, src) +func (dst *TLMessagesFoundGifs) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesFoundGifs.Merge(dst, src) } -func (m *TLInputMessagesFilterPhotoVideo) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterPhotoVideo.Size(m) +func (m *TLMessagesFoundGifs) XXX_Size() int { + return xxx_messageInfo_TLMessagesFoundGifs.Size(m) } -func (m *TLInputMessagesFilterPhotoVideo) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterPhotoVideo.DiscardUnknown(m) +func (m *TLMessagesFoundGifs) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesFoundGifs.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterPhotoVideo proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesFoundGifs proto.InternalMessageInfo -func (m *TLInputMessagesFilterPhotoVideo) GetData2() *MessagesFilter_Data { +func (m *TLMessagesFoundGifs) GetData2() *Messages_FoundGifs_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterDocument#9eddf188 = MessagesFilter; -type TLInputMessagesFilterDocument struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// KeyboardButton <-- +// + TL_keyboardButton +// + TL_keyboardButtonUrl +// + TL_keyboardButtonCallback +// + TL_keyboardButtonRequestPhone +// + TL_keyboardButtonRequestGeoLocation +// + TL_keyboardButtonSwitchInline +// + TL_keyboardButtonGame +// + TL_keyboardButtonBuy +// +type KeyboardButton_Data struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + SamePeer bool `protobuf:"varint,4,opt,name=same_peer,json=samePeer,proto3" json:"same_peer,omitempty"` + Query string `protobuf:"bytes,5,opt,name=query,proto3" json:"query,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterDocument) Reset() { *m = TLInputMessagesFilterDocument{} } -func (m *TLInputMessagesFilterDocument) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterDocument) ProtoMessage() {} -func (*TLInputMessagesFilterDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1033} +func (m *KeyboardButton_Data) Reset() { *m = KeyboardButton_Data{} } +func (m *KeyboardButton_Data) String() string { return proto.CompactTextString(m) } +func (*KeyboardButton_Data) ProtoMessage() {} +func (*KeyboardButton_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{994} } -func (m *TLInputMessagesFilterDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterDocument.Unmarshal(m, b) +func (m *KeyboardButton_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyboardButton_Data.Unmarshal(m, b) } -func (m *TLInputMessagesFilterDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterDocument.Marshal(b, m, deterministic) +func (m *KeyboardButton_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyboardButton_Data.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterDocument.Merge(dst, src) +func (dst *KeyboardButton_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyboardButton_Data.Merge(dst, src) } -func (m *TLInputMessagesFilterDocument) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterDocument.Size(m) +func (m *KeyboardButton_Data) XXX_Size() int { + return xxx_messageInfo_KeyboardButton_Data.Size(m) } -func (m *TLInputMessagesFilterDocument) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterDocument.DiscardUnknown(m) +func (m *KeyboardButton_Data) XXX_DiscardUnknown() { + xxx_messageInfo_KeyboardButton_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterDocument proto.InternalMessageInfo +var xxx_messageInfo_KeyboardButton_Data proto.InternalMessageInfo -func (m *TLInputMessagesFilterDocument) GetData2() *MessagesFilter_Data { +func (m *KeyboardButton_Data) GetText() string { if m != nil { - return m.Data2 + return m.Text + } + return "" +} + +func (m *KeyboardButton_Data) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *KeyboardButton_Data) GetData() []byte { + if m != nil { + return m.Data } return nil } -// inputMessagesFilterUrl#7ef0dd87 = MessagesFilter; -type TLInputMessagesFilterUrl struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +func (m *KeyboardButton_Data) GetSamePeer() bool { + if m != nil { + return m.SamePeer + } + return false +} + +func (m *KeyboardButton_Data) GetQuery() string { + if m != nil { + return m.Query + } + return "" +} + +type KeyboardButton struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterUrl) Reset() { *m = TLInputMessagesFilterUrl{} } -func (m *TLInputMessagesFilterUrl) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterUrl) ProtoMessage() {} -func (*TLInputMessagesFilterUrl) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1034} +func (m *KeyboardButton) Reset() { *m = KeyboardButton{} } +func (m *KeyboardButton) String() string { return proto.CompactTextString(m) } +func (*KeyboardButton) ProtoMessage() {} +func (*KeyboardButton) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{995} } -func (m *TLInputMessagesFilterUrl) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterUrl.Unmarshal(m, b) +func (m *KeyboardButton) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyboardButton.Unmarshal(m, b) } -func (m *TLInputMessagesFilterUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterUrl.Marshal(b, m, deterministic) +func (m *KeyboardButton) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyboardButton.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterUrl) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterUrl.Merge(dst, src) +func (dst *KeyboardButton) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyboardButton.Merge(dst, src) } -func (m *TLInputMessagesFilterUrl) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterUrl.Size(m) +func (m *KeyboardButton) XXX_Size() int { + return xxx_messageInfo_KeyboardButton.Size(m) } -func (m *TLInputMessagesFilterUrl) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterUrl.DiscardUnknown(m) +func (m *KeyboardButton) XXX_DiscardUnknown() { + xxx_messageInfo_KeyboardButton.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterUrl proto.InternalMessageInfo +var xxx_messageInfo_KeyboardButton proto.InternalMessageInfo -func (m *TLInputMessagesFilterUrl) GetData2() *MessagesFilter_Data { +func (m *KeyboardButton) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *KeyboardButton) GetData2() *KeyboardButton_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterGif#ffc86587 = MessagesFilter; -type TLInputMessagesFilterGif struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// keyboardButton#a2fa4880 text:string = KeyboardButton; +type TLKeyboardButton struct { + Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterGif) Reset() { *m = TLInputMessagesFilterGif{} } -func (m *TLInputMessagesFilterGif) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterGif) ProtoMessage() {} -func (*TLInputMessagesFilterGif) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1035} +func (m *TLKeyboardButton) Reset() { *m = TLKeyboardButton{} } +func (m *TLKeyboardButton) String() string { return proto.CompactTextString(m) } +func (*TLKeyboardButton) ProtoMessage() {} +func (*TLKeyboardButton) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{996} } -func (m *TLInputMessagesFilterGif) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterGif.Unmarshal(m, b) +func (m *TLKeyboardButton) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLKeyboardButton.Unmarshal(m, b) } -func (m *TLInputMessagesFilterGif) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterGif.Marshal(b, m, deterministic) +func (m *TLKeyboardButton) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLKeyboardButton.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterGif) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterGif.Merge(dst, src) +func (dst *TLKeyboardButton) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLKeyboardButton.Merge(dst, src) } -func (m *TLInputMessagesFilterGif) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterGif.Size(m) +func (m *TLKeyboardButton) XXX_Size() int { + return xxx_messageInfo_TLKeyboardButton.Size(m) } -func (m *TLInputMessagesFilterGif) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterGif.DiscardUnknown(m) +func (m *TLKeyboardButton) XXX_DiscardUnknown() { + xxx_messageInfo_TLKeyboardButton.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterGif proto.InternalMessageInfo +var xxx_messageInfo_TLKeyboardButton proto.InternalMessageInfo -func (m *TLInputMessagesFilterGif) GetData2() *MessagesFilter_Data { +func (m *TLKeyboardButton) GetData2() *KeyboardButton_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterVoice#50f5c392 = MessagesFilter; -type TLInputMessagesFilterVoice struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton; +type TLKeyboardButtonUrl struct { + Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterVoice) Reset() { *m = TLInputMessagesFilterVoice{} } -func (m *TLInputMessagesFilterVoice) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterVoice) ProtoMessage() {} -func (*TLInputMessagesFilterVoice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1036} +func (m *TLKeyboardButtonUrl) Reset() { *m = TLKeyboardButtonUrl{} } +func (m *TLKeyboardButtonUrl) String() string { return proto.CompactTextString(m) } +func (*TLKeyboardButtonUrl) ProtoMessage() {} +func (*TLKeyboardButtonUrl) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{997} } -func (m *TLInputMessagesFilterVoice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterVoice.Unmarshal(m, b) +func (m *TLKeyboardButtonUrl) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLKeyboardButtonUrl.Unmarshal(m, b) } -func (m *TLInputMessagesFilterVoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterVoice.Marshal(b, m, deterministic) +func (m *TLKeyboardButtonUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLKeyboardButtonUrl.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterVoice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterVoice.Merge(dst, src) +func (dst *TLKeyboardButtonUrl) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLKeyboardButtonUrl.Merge(dst, src) } -func (m *TLInputMessagesFilterVoice) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterVoice.Size(m) +func (m *TLKeyboardButtonUrl) XXX_Size() int { + return xxx_messageInfo_TLKeyboardButtonUrl.Size(m) } -func (m *TLInputMessagesFilterVoice) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterVoice.DiscardUnknown(m) +func (m *TLKeyboardButtonUrl) XXX_DiscardUnknown() { + xxx_messageInfo_TLKeyboardButtonUrl.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterVoice proto.InternalMessageInfo +var xxx_messageInfo_TLKeyboardButtonUrl proto.InternalMessageInfo -func (m *TLInputMessagesFilterVoice) GetData2() *MessagesFilter_Data { +func (m *TLKeyboardButtonUrl) GetData2() *KeyboardButton_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterMusic#3751b49e = MessagesFilter; -type TLInputMessagesFilterMusic struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// keyboardButtonCallback#683a5e46 text:string data:bytes = KeyboardButton; +type TLKeyboardButtonCallback struct { + Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterMusic) Reset() { *m = TLInputMessagesFilterMusic{} } -func (m *TLInputMessagesFilterMusic) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterMusic) ProtoMessage() {} -func (*TLInputMessagesFilterMusic) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1037} +func (m *TLKeyboardButtonCallback) Reset() { *m = TLKeyboardButtonCallback{} } +func (m *TLKeyboardButtonCallback) String() string { return proto.CompactTextString(m) } +func (*TLKeyboardButtonCallback) ProtoMessage() {} +func (*TLKeyboardButtonCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{998} } -func (m *TLInputMessagesFilterMusic) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterMusic.Unmarshal(m, b) +func (m *TLKeyboardButtonCallback) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLKeyboardButtonCallback.Unmarshal(m, b) } -func (m *TLInputMessagesFilterMusic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterMusic.Marshal(b, m, deterministic) +func (m *TLKeyboardButtonCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLKeyboardButtonCallback.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterMusic) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterMusic.Merge(dst, src) +func (dst *TLKeyboardButtonCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLKeyboardButtonCallback.Merge(dst, src) } -func (m *TLInputMessagesFilterMusic) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterMusic.Size(m) +func (m *TLKeyboardButtonCallback) XXX_Size() int { + return xxx_messageInfo_TLKeyboardButtonCallback.Size(m) } -func (m *TLInputMessagesFilterMusic) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterMusic.DiscardUnknown(m) +func (m *TLKeyboardButtonCallback) XXX_DiscardUnknown() { + xxx_messageInfo_TLKeyboardButtonCallback.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterMusic proto.InternalMessageInfo +var xxx_messageInfo_TLKeyboardButtonCallback proto.InternalMessageInfo -func (m *TLInputMessagesFilterMusic) GetData2() *MessagesFilter_Data { +func (m *TLKeyboardButtonCallback) GetData2() *KeyboardButton_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter; -type TLInputMessagesFilterChatPhotos struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton; +type TLKeyboardButtonRequestPhone struct { + Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterChatPhotos) Reset() { *m = TLInputMessagesFilterChatPhotos{} } -func (m *TLInputMessagesFilterChatPhotos) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterChatPhotos) ProtoMessage() {} -func (*TLInputMessagesFilterChatPhotos) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1038} +func (m *TLKeyboardButtonRequestPhone) Reset() { *m = TLKeyboardButtonRequestPhone{} } +func (m *TLKeyboardButtonRequestPhone) String() string { return proto.CompactTextString(m) } +func (*TLKeyboardButtonRequestPhone) ProtoMessage() {} +func (*TLKeyboardButtonRequestPhone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{999} } -func (m *TLInputMessagesFilterChatPhotos) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterChatPhotos.Unmarshal(m, b) +func (m *TLKeyboardButtonRequestPhone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLKeyboardButtonRequestPhone.Unmarshal(m, b) } -func (m *TLInputMessagesFilterChatPhotos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterChatPhotos.Marshal(b, m, deterministic) +func (m *TLKeyboardButtonRequestPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLKeyboardButtonRequestPhone.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterChatPhotos) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterChatPhotos.Merge(dst, src) +func (dst *TLKeyboardButtonRequestPhone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLKeyboardButtonRequestPhone.Merge(dst, src) } -func (m *TLInputMessagesFilterChatPhotos) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterChatPhotos.Size(m) +func (m *TLKeyboardButtonRequestPhone) XXX_Size() int { + return xxx_messageInfo_TLKeyboardButtonRequestPhone.Size(m) } -func (m *TLInputMessagesFilterChatPhotos) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterChatPhotos.DiscardUnknown(m) +func (m *TLKeyboardButtonRequestPhone) XXX_DiscardUnknown() { + xxx_messageInfo_TLKeyboardButtonRequestPhone.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterChatPhotos proto.InternalMessageInfo +var xxx_messageInfo_TLKeyboardButtonRequestPhone proto.InternalMessageInfo -func (m *TLInputMessagesFilterChatPhotos) GetData2() *MessagesFilter_Data { +func (m *TLKeyboardButtonRequestPhone) GetData2() *KeyboardButton_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter; -type TLInputMessagesFilterPhoneCalls struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton; +type TLKeyboardButtonRequestGeoLocation struct { + Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterPhoneCalls) Reset() { *m = TLInputMessagesFilterPhoneCalls{} } -func (m *TLInputMessagesFilterPhoneCalls) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterPhoneCalls) ProtoMessage() {} -func (*TLInputMessagesFilterPhoneCalls) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1039} +func (m *TLKeyboardButtonRequestGeoLocation) Reset() { *m = TLKeyboardButtonRequestGeoLocation{} } +func (m *TLKeyboardButtonRequestGeoLocation) String() string { return proto.CompactTextString(m) } +func (*TLKeyboardButtonRequestGeoLocation) ProtoMessage() {} +func (*TLKeyboardButtonRequestGeoLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1000} } -func (m *TLInputMessagesFilterPhoneCalls) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterPhoneCalls.Unmarshal(m, b) +func (m *TLKeyboardButtonRequestGeoLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.Unmarshal(m, b) } -func (m *TLInputMessagesFilterPhoneCalls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterPhoneCalls.Marshal(b, m, deterministic) +func (m *TLKeyboardButtonRequestGeoLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterPhoneCalls) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterPhoneCalls.Merge(dst, src) +func (dst *TLKeyboardButtonRequestGeoLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.Merge(dst, src) } -func (m *TLInputMessagesFilterPhoneCalls) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterPhoneCalls.Size(m) +func (m *TLKeyboardButtonRequestGeoLocation) XXX_Size() int { + return xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.Size(m) } -func (m *TLInputMessagesFilterPhoneCalls) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterPhoneCalls.DiscardUnknown(m) +func (m *TLKeyboardButtonRequestGeoLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TLKeyboardButtonRequestGeoLocation.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterPhoneCalls proto.InternalMessageInfo +var xxx_messageInfo_TLKeyboardButtonRequestGeoLocation proto.InternalMessageInfo -func (m *TLInputMessagesFilterPhoneCalls) GetData2() *MessagesFilter_Data { +func (m *TLKeyboardButtonRequestGeoLocation) GetData2() *KeyboardButton_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter; -type TLInputMessagesFilterRoundVoice struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton; +type TLKeyboardButtonSwitchInline struct { + Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterRoundVoice) Reset() { *m = TLInputMessagesFilterRoundVoice{} } -func (m *TLInputMessagesFilterRoundVoice) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterRoundVoice) ProtoMessage() {} -func (*TLInputMessagesFilterRoundVoice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1040} +func (m *TLKeyboardButtonSwitchInline) Reset() { *m = TLKeyboardButtonSwitchInline{} } +func (m *TLKeyboardButtonSwitchInline) String() string { return proto.CompactTextString(m) } +func (*TLKeyboardButtonSwitchInline) ProtoMessage() {} +func (*TLKeyboardButtonSwitchInline) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1001} } -func (m *TLInputMessagesFilterRoundVoice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterRoundVoice.Unmarshal(m, b) +func (m *TLKeyboardButtonSwitchInline) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLKeyboardButtonSwitchInline.Unmarshal(m, b) } -func (m *TLInputMessagesFilterRoundVoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterRoundVoice.Marshal(b, m, deterministic) +func (m *TLKeyboardButtonSwitchInline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLKeyboardButtonSwitchInline.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterRoundVoice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterRoundVoice.Merge(dst, src) +func (dst *TLKeyboardButtonSwitchInline) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLKeyboardButtonSwitchInline.Merge(dst, src) } -func (m *TLInputMessagesFilterRoundVoice) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterRoundVoice.Size(m) +func (m *TLKeyboardButtonSwitchInline) XXX_Size() int { + return xxx_messageInfo_TLKeyboardButtonSwitchInline.Size(m) } -func (m *TLInputMessagesFilterRoundVoice) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterRoundVoice.DiscardUnknown(m) +func (m *TLKeyboardButtonSwitchInline) XXX_DiscardUnknown() { + xxx_messageInfo_TLKeyboardButtonSwitchInline.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterRoundVoice proto.InternalMessageInfo +var xxx_messageInfo_TLKeyboardButtonSwitchInline proto.InternalMessageInfo -func (m *TLInputMessagesFilterRoundVoice) GetData2() *MessagesFilter_Data { +func (m *TLKeyboardButtonSwitchInline) GetData2() *KeyboardButton_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterRoundVideo#b549da53 = MessagesFilter; -type TLInputMessagesFilterRoundVideo struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// keyboardButtonGame#50f41ccf text:string = KeyboardButton; +type TLKeyboardButtonGame struct { + Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterRoundVideo) Reset() { *m = TLInputMessagesFilterRoundVideo{} } -func (m *TLInputMessagesFilterRoundVideo) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterRoundVideo) ProtoMessage() {} -func (*TLInputMessagesFilterRoundVideo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1041} +func (m *TLKeyboardButtonGame) Reset() { *m = TLKeyboardButtonGame{} } +func (m *TLKeyboardButtonGame) String() string { return proto.CompactTextString(m) } +func (*TLKeyboardButtonGame) ProtoMessage() {} +func (*TLKeyboardButtonGame) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1002} } -func (m *TLInputMessagesFilterRoundVideo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterRoundVideo.Unmarshal(m, b) +func (m *TLKeyboardButtonGame) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLKeyboardButtonGame.Unmarshal(m, b) } -func (m *TLInputMessagesFilterRoundVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterRoundVideo.Marshal(b, m, deterministic) +func (m *TLKeyboardButtonGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLKeyboardButtonGame.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterRoundVideo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterRoundVideo.Merge(dst, src) +func (dst *TLKeyboardButtonGame) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLKeyboardButtonGame.Merge(dst, src) } -func (m *TLInputMessagesFilterRoundVideo) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterRoundVideo.Size(m) +func (m *TLKeyboardButtonGame) XXX_Size() int { + return xxx_messageInfo_TLKeyboardButtonGame.Size(m) } -func (m *TLInputMessagesFilterRoundVideo) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterRoundVideo.DiscardUnknown(m) +func (m *TLKeyboardButtonGame) XXX_DiscardUnknown() { + xxx_messageInfo_TLKeyboardButtonGame.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterRoundVideo proto.InternalMessageInfo +var xxx_messageInfo_TLKeyboardButtonGame proto.InternalMessageInfo -func (m *TLInputMessagesFilterRoundVideo) GetData2() *MessagesFilter_Data { +func (m *TLKeyboardButtonGame) GetData2() *KeyboardButton_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter; -type TLInputMessagesFilterMyMentions struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// keyboardButtonBuy#afd93fbb text:string = KeyboardButton; +type TLKeyboardButtonBuy struct { + Data2 *KeyboardButton_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterMyMentions) Reset() { *m = TLInputMessagesFilterMyMentions{} } -func (m *TLInputMessagesFilterMyMentions) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterMyMentions) ProtoMessage() {} -func (*TLInputMessagesFilterMyMentions) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1042} +func (m *TLKeyboardButtonBuy) Reset() { *m = TLKeyboardButtonBuy{} } +func (m *TLKeyboardButtonBuy) String() string { return proto.CompactTextString(m) } +func (*TLKeyboardButtonBuy) ProtoMessage() {} +func (*TLKeyboardButtonBuy) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1003} } -func (m *TLInputMessagesFilterMyMentions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterMyMentions.Unmarshal(m, b) +func (m *TLKeyboardButtonBuy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLKeyboardButtonBuy.Unmarshal(m, b) } -func (m *TLInputMessagesFilterMyMentions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterMyMentions.Marshal(b, m, deterministic) +func (m *TLKeyboardButtonBuy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLKeyboardButtonBuy.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterMyMentions) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterMyMentions.Merge(dst, src) +func (dst *TLKeyboardButtonBuy) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLKeyboardButtonBuy.Merge(dst, src) } -func (m *TLInputMessagesFilterMyMentions) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterMyMentions.Size(m) +func (m *TLKeyboardButtonBuy) XXX_Size() int { + return xxx_messageInfo_TLKeyboardButtonBuy.Size(m) } -func (m *TLInputMessagesFilterMyMentions) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterMyMentions.DiscardUnknown(m) +func (m *TLKeyboardButtonBuy) XXX_DiscardUnknown() { + xxx_messageInfo_TLKeyboardButtonBuy.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterMyMentions proto.InternalMessageInfo +var xxx_messageInfo_TLKeyboardButtonBuy proto.InternalMessageInfo -func (m *TLInputMessagesFilterMyMentions) GetData2() *MessagesFilter_Data { +func (m *TLKeyboardButtonBuy) GetData2() *KeyboardButton_Data { if m != nil { return m.Data2 } return nil } -// inputMessagesFilterGeo#e7026d0d = MessagesFilter; -type TLInputMessagesFilterGeo struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputChannel <-- +// + TL_inputChannelEmpty +// + TL_inputChannel +// +type InputChannel_Data struct { + ChannelId int32 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterGeo) Reset() { *m = TLInputMessagesFilterGeo{} } -func (m *TLInputMessagesFilterGeo) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterGeo) ProtoMessage() {} -func (*TLInputMessagesFilterGeo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1043} +func (m *InputChannel_Data) Reset() { *m = InputChannel_Data{} } +func (m *InputChannel_Data) String() string { return proto.CompactTextString(m) } +func (*InputChannel_Data) ProtoMessage() {} +func (*InputChannel_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1004} } -func (m *TLInputMessagesFilterGeo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterGeo.Unmarshal(m, b) +func (m *InputChannel_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputChannel_Data.Unmarshal(m, b) } -func (m *TLInputMessagesFilterGeo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterGeo.Marshal(b, m, deterministic) +func (m *InputChannel_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputChannel_Data.Marshal(b, m, deterministic) } -func (dst *TLInputMessagesFilterGeo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterGeo.Merge(dst, src) +func (dst *InputChannel_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputChannel_Data.Merge(dst, src) } -func (m *TLInputMessagesFilterGeo) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterGeo.Size(m) +func (m *InputChannel_Data) XXX_Size() int { + return xxx_messageInfo_InputChannel_Data.Size(m) } -func (m *TLInputMessagesFilterGeo) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterGeo.DiscardUnknown(m) +func (m *InputChannel_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputChannel_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterGeo proto.InternalMessageInfo +var xxx_messageInfo_InputChannel_Data proto.InternalMessageInfo -func (m *TLInputMessagesFilterGeo) GetData2() *MessagesFilter_Data { +func (m *InputChannel_Data) GetChannelId() int32 { if m != nil { - return m.Data2 + return m.ChannelId } - return nil + return 0 } -// inputMessagesFilterContacts#e062db83 = MessagesFilter; -type TLInputMessagesFilterContacts struct { - Data2 *MessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputChannel_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 } -func (m *TLInputMessagesFilterContacts) Reset() { *m = TLInputMessagesFilterContacts{} } -func (m *TLInputMessagesFilterContacts) String() string { return proto.CompactTextString(m) } -func (*TLInputMessagesFilterContacts) ProtoMessage() {} -func (*TLInputMessagesFilterContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1044} +type InputChannel struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputChannel_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputMessagesFilterContacts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputMessagesFilterContacts.Unmarshal(m, b) + +func (m *InputChannel) Reset() { *m = InputChannel{} } +func (m *InputChannel) String() string { return proto.CompactTextString(m) } +func (*InputChannel) ProtoMessage() {} +func (*InputChannel) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1005} } -func (m *TLInputMessagesFilterContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputMessagesFilterContacts.Marshal(b, m, deterministic) +func (m *InputChannel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputChannel.Unmarshal(m, b) } -func (dst *TLInputMessagesFilterContacts) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputMessagesFilterContacts.Merge(dst, src) +func (m *InputChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputChannel.Marshal(b, m, deterministic) } -func (m *TLInputMessagesFilterContacts) XXX_Size() int { - return xxx_messageInfo_TLInputMessagesFilterContacts.Size(m) +func (dst *InputChannel) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputChannel.Merge(dst, src) } -func (m *TLInputMessagesFilterContacts) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputMessagesFilterContacts.DiscardUnknown(m) +func (m *InputChannel) XXX_Size() int { + return xxx_messageInfo_InputChannel.Size(m) +} +func (m *InputChannel) XXX_DiscardUnknown() { + xxx_messageInfo_InputChannel.DiscardUnknown(m) } -var xxx_messageInfo_TLInputMessagesFilterContacts proto.InternalMessageInfo +var xxx_messageInfo_InputChannel proto.InternalMessageInfo -func (m *TLInputMessagesFilterContacts) GetData2() *MessagesFilter_Data { +func (m *InputChannel) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputChannel) GetData2() *InputChannel_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ChannelParticipantsFilter <-- -// + TL_channelParticipantsRecent -// + TL_channelParticipantsAdmins -// + TL_channelParticipantsKicked -// + TL_channelParticipantsBots -// + TL_channelParticipantsBanned -// + TL_channelParticipantsSearch -// -type ChannelParticipantsFilter_Data struct { - Q string `protobuf:"bytes,1,opt,name=q,proto3" json:"q,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputChannelEmpty#ee8c1e86 = InputChannel; +type TLInputChannelEmpty struct { + Data2 *InputChannel_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelParticipantsFilter_Data) Reset() { *m = ChannelParticipantsFilter_Data{} } -func (m *ChannelParticipantsFilter_Data) String() string { return proto.CompactTextString(m) } -func (*ChannelParticipantsFilter_Data) ProtoMessage() {} -func (*ChannelParticipantsFilter_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1045} +func (m *TLInputChannelEmpty) Reset() { *m = TLInputChannelEmpty{} } +func (m *TLInputChannelEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputChannelEmpty) ProtoMessage() {} +func (*TLInputChannelEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1006} } -func (m *ChannelParticipantsFilter_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelParticipantsFilter_Data.Unmarshal(m, b) +func (m *TLInputChannelEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputChannelEmpty.Unmarshal(m, b) } -func (m *ChannelParticipantsFilter_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelParticipantsFilter_Data.Marshal(b, m, deterministic) +func (m *TLInputChannelEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputChannelEmpty.Marshal(b, m, deterministic) } -func (dst *ChannelParticipantsFilter_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelParticipantsFilter_Data.Merge(dst, src) +func (dst *TLInputChannelEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputChannelEmpty.Merge(dst, src) } -func (m *ChannelParticipantsFilter_Data) XXX_Size() int { - return xxx_messageInfo_ChannelParticipantsFilter_Data.Size(m) +func (m *TLInputChannelEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputChannelEmpty.Size(m) } -func (m *ChannelParticipantsFilter_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelParticipantsFilter_Data.DiscardUnknown(m) +func (m *TLInputChannelEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputChannelEmpty.DiscardUnknown(m) } -var xxx_messageInfo_ChannelParticipantsFilter_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputChannelEmpty proto.InternalMessageInfo -func (m *ChannelParticipantsFilter_Data) GetQ() string { +func (m *TLInputChannelEmpty) GetData2() *InputChannel_Data { if m != nil { - return m.Q + return m.Data2 } - return "" + return nil } -type ChannelParticipantsFilter struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputChannel#afeb712e channel_id:int access_hash:long = InputChannel; +type TLInputChannel struct { + Data2 *InputChannel_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelParticipantsFilter) Reset() { *m = ChannelParticipantsFilter{} } -func (m *ChannelParticipantsFilter) String() string { return proto.CompactTextString(m) } -func (*ChannelParticipantsFilter) ProtoMessage() {} -func (*ChannelParticipantsFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1046} +func (m *TLInputChannel) Reset() { *m = TLInputChannel{} } +func (m *TLInputChannel) String() string { return proto.CompactTextString(m) } +func (*TLInputChannel) ProtoMessage() {} +func (*TLInputChannel) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1007} } -func (m *ChannelParticipantsFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelParticipantsFilter.Unmarshal(m, b) +func (m *TLInputChannel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputChannel.Unmarshal(m, b) } -func (m *ChannelParticipantsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelParticipantsFilter.Marshal(b, m, deterministic) +func (m *TLInputChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputChannel.Marshal(b, m, deterministic) } -func (dst *ChannelParticipantsFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelParticipantsFilter.Merge(dst, src) +func (dst *TLInputChannel) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputChannel.Merge(dst, src) } -func (m *ChannelParticipantsFilter) XXX_Size() int { - return xxx_messageInfo_ChannelParticipantsFilter.Size(m) +func (m *TLInputChannel) XXX_Size() int { + return xxx_messageInfo_TLInputChannel.Size(m) } -func (m *ChannelParticipantsFilter) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelParticipantsFilter.DiscardUnknown(m) +func (m *TLInputChannel) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputChannel.DiscardUnknown(m) } -var xxx_messageInfo_ChannelParticipantsFilter proto.InternalMessageInfo - -func (m *ChannelParticipantsFilter) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputChannel proto.InternalMessageInfo -func (m *ChannelParticipantsFilter) GetData2() *ChannelParticipantsFilter_Data { +func (m *TLInputChannel) GetData2() *InputChannel_Data { if m != nil { return m.Data2 } return nil } -// channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter; -type TLChannelParticipantsRecent struct { - Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLChannelParticipantsRecent) Reset() { *m = TLChannelParticipantsRecent{} } -func (m *TLChannelParticipantsRecent) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantsRecent) ProtoMessage() {} -func (*TLChannelParticipantsRecent) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1047} +// ///////////////////////////////////////////////////////////////////////////// +// ShippingOption <-- +// + TL_shippingOption +// +type ShippingOption_Data struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Prices []*LabeledPrice `protobuf:"bytes,3,rep,name=prices,proto3" json:"prices,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelParticipantsRecent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantsRecent.Unmarshal(m, b) + +func (m *ShippingOption_Data) Reset() { *m = ShippingOption_Data{} } +func (m *ShippingOption_Data) String() string { return proto.CompactTextString(m) } +func (*ShippingOption_Data) ProtoMessage() {} +func (*ShippingOption_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1008} } -func (m *TLChannelParticipantsRecent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantsRecent.Marshal(b, m, deterministic) +func (m *ShippingOption_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ShippingOption_Data.Unmarshal(m, b) } -func (dst *TLChannelParticipantsRecent) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantsRecent.Merge(dst, src) +func (m *ShippingOption_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ShippingOption_Data.Marshal(b, m, deterministic) } -func (m *TLChannelParticipantsRecent) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantsRecent.Size(m) +func (dst *ShippingOption_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShippingOption_Data.Merge(dst, src) } -func (m *TLChannelParticipantsRecent) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantsRecent.DiscardUnknown(m) +func (m *ShippingOption_Data) XXX_Size() int { + return xxx_messageInfo_ShippingOption_Data.Size(m) +} +func (m *ShippingOption_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ShippingOption_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelParticipantsRecent proto.InternalMessageInfo +var xxx_messageInfo_ShippingOption_Data proto.InternalMessageInfo -func (m *TLChannelParticipantsRecent) GetData2() *ChannelParticipantsFilter_Data { +func (m *ShippingOption_Data) GetId() string { if m != nil { - return m.Data2 + return m.Id } - return nil -} - -// channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter; -type TLChannelParticipantsAdmins struct { - Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return "" } -func (m *TLChannelParticipantsAdmins) Reset() { *m = TLChannelParticipantsAdmins{} } -func (m *TLChannelParticipantsAdmins) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantsAdmins) ProtoMessage() {} -func (*TLChannelParticipantsAdmins) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1048} -} -func (m *TLChannelParticipantsAdmins) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantsAdmins.Unmarshal(m, b) -} -func (m *TLChannelParticipantsAdmins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantsAdmins.Marshal(b, m, deterministic) -} -func (dst *TLChannelParticipantsAdmins) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantsAdmins.Merge(dst, src) -} -func (m *TLChannelParticipantsAdmins) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantsAdmins.Size(m) -} -func (m *TLChannelParticipantsAdmins) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantsAdmins.DiscardUnknown(m) +func (m *ShippingOption_Data) GetTitle() string { + if m != nil { + return m.Title + } + return "" } -var xxx_messageInfo_TLChannelParticipantsAdmins proto.InternalMessageInfo - -func (m *TLChannelParticipantsAdmins) GetData2() *ChannelParticipantsFilter_Data { +func (m *ShippingOption_Data) GetPrices() []*LabeledPrice { if m != nil { - return m.Data2 + return m.Prices } return nil } -// channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter; -type TLChannelParticipantsKicked struct { - Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ShippingOption struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ShippingOption_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelParticipantsKicked) Reset() { *m = TLChannelParticipantsKicked{} } -func (m *TLChannelParticipantsKicked) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantsKicked) ProtoMessage() {} -func (*TLChannelParticipantsKicked) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1049} +func (m *ShippingOption) Reset() { *m = ShippingOption{} } +func (m *ShippingOption) String() string { return proto.CompactTextString(m) } +func (*ShippingOption) ProtoMessage() {} +func (*ShippingOption) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1009} } -func (m *TLChannelParticipantsKicked) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantsKicked.Unmarshal(m, b) +func (m *ShippingOption) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ShippingOption.Unmarshal(m, b) } -func (m *TLChannelParticipantsKicked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantsKicked.Marshal(b, m, deterministic) +func (m *ShippingOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ShippingOption.Marshal(b, m, deterministic) } -func (dst *TLChannelParticipantsKicked) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantsKicked.Merge(dst, src) +func (dst *ShippingOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShippingOption.Merge(dst, src) } -func (m *TLChannelParticipantsKicked) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantsKicked.Size(m) +func (m *ShippingOption) XXX_Size() int { + return xxx_messageInfo_ShippingOption.Size(m) } -func (m *TLChannelParticipantsKicked) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantsKicked.DiscardUnknown(m) +func (m *ShippingOption) XXX_DiscardUnknown() { + xxx_messageInfo_ShippingOption.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelParticipantsKicked proto.InternalMessageInfo +var xxx_messageInfo_ShippingOption proto.InternalMessageInfo -func (m *TLChannelParticipantsKicked) GetData2() *ChannelParticipantsFilter_Data { +func (m *ShippingOption) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *ShippingOption) GetData2() *ShippingOption_Data { if m != nil { return m.Data2 } return nil } -// channelParticipantsBots#b0d1865b = ChannelParticipantsFilter; -type TLChannelParticipantsBots struct { - Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; +type TLShippingOption struct { + Data2 *ShippingOption_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelParticipantsBots) Reset() { *m = TLChannelParticipantsBots{} } -func (m *TLChannelParticipantsBots) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantsBots) ProtoMessage() {} -func (*TLChannelParticipantsBots) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1050} +func (m *TLShippingOption) Reset() { *m = TLShippingOption{} } +func (m *TLShippingOption) String() string { return proto.CompactTextString(m) } +func (*TLShippingOption) ProtoMessage() {} +func (*TLShippingOption) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1010} } -func (m *TLChannelParticipantsBots) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantsBots.Unmarshal(m, b) +func (m *TLShippingOption) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLShippingOption.Unmarshal(m, b) } -func (m *TLChannelParticipantsBots) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantsBots.Marshal(b, m, deterministic) +func (m *TLShippingOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLShippingOption.Marshal(b, m, deterministic) } -func (dst *TLChannelParticipantsBots) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantsBots.Merge(dst, src) +func (dst *TLShippingOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLShippingOption.Merge(dst, src) } -func (m *TLChannelParticipantsBots) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantsBots.Size(m) +func (m *TLShippingOption) XXX_Size() int { + return xxx_messageInfo_TLShippingOption.Size(m) } -func (m *TLChannelParticipantsBots) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantsBots.DiscardUnknown(m) +func (m *TLShippingOption) XXX_DiscardUnknown() { + xxx_messageInfo_TLShippingOption.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelParticipantsBots proto.InternalMessageInfo +var xxx_messageInfo_TLShippingOption proto.InternalMessageInfo -func (m *TLChannelParticipantsBots) GetData2() *ChannelParticipantsFilter_Data { +func (m *TLShippingOption) GetData2() *ShippingOption_Data { if m != nil { return m.Data2 } return nil } -// channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter; -type TLChannelParticipantsBanned struct { - Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// ChannelAdminLogEventAction <-- +// + TL_channelAdminLogEventActionChangeTitle +// + TL_channelAdminLogEventActionChangeAbout +// + TL_channelAdminLogEventActionChangeUsername +// + TL_channelAdminLogEventActionChangePhoto +// + TL_channelAdminLogEventActionToggleInvites +// + TL_channelAdminLogEventActionToggleSignatures +// + TL_channelAdminLogEventActionUpdatePinned +// + TL_channelAdminLogEventActionEditMessage +// + TL_channelAdminLogEventActionDeleteMessage +// + TL_channelAdminLogEventActionParticipantJoin +// + TL_channelAdminLogEventActionParticipantLeave +// + TL_channelAdminLogEventActionParticipantInvite +// + TL_channelAdminLogEventActionParticipantToggleBan +// + TL_channelAdminLogEventActionParticipantToggleAdmin +// + TL_channelAdminLogEventActionChangeStickerSet +// + TL_channelAdminLogEventActionTogglePreHistoryHidden +// +type ChannelAdminLogEventAction_Data struct { + PrevValue string `protobuf:"bytes,1,opt,name=prev_value,json=prevValue,proto3" json:"prev_value,omitempty"` + NewValue_2 string `protobuf:"bytes,2,opt,name=new_value_2,json=newValue2,proto3" json:"new_value_2,omitempty"` + PrevPhoto *ChatPhoto `protobuf:"bytes,3,opt,name=prev_photo,json=prevPhoto,proto3" json:"prev_photo,omitempty"` + NewPhoto *ChatPhoto `protobuf:"bytes,4,opt,name=new_photo,json=newPhoto,proto3" json:"new_photo,omitempty"` + NewValue_5 *Bool `protobuf:"bytes,5,opt,name=new_value_5,json=newValue5,proto3" json:"new_value_5,omitempty"` + Message *Message `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` + PrevMessage *Message `protobuf:"bytes,7,opt,name=prev_message,json=prevMessage,proto3" json:"prev_message,omitempty"` + NewMessage *Message `protobuf:"bytes,8,opt,name=new_message,json=newMessage,proto3" json:"new_message,omitempty"` + Participant *ChannelParticipant `protobuf:"bytes,9,opt,name=participant,proto3" json:"participant,omitempty"` + PrevParticipant *ChannelParticipant `protobuf:"bytes,10,opt,name=prev_participant,json=prevParticipant,proto3" json:"prev_participant,omitempty"` + NewParticipant *ChannelParticipant `protobuf:"bytes,11,opt,name=new_participant,json=newParticipant,proto3" json:"new_participant,omitempty"` + PrevStickerset *InputStickerSet `protobuf:"bytes,12,opt,name=prev_stickerset,json=prevStickerset,proto3" json:"prev_stickerset,omitempty"` + NewStickerset *InputStickerSet `protobuf:"bytes,13,opt,name=new_stickerset,json=newStickerset,proto3" json:"new_stickerset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChannelParticipantsBanned) Reset() { *m = TLChannelParticipantsBanned{} } -func (m *TLChannelParticipantsBanned) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantsBanned) ProtoMessage() {} -func (*TLChannelParticipantsBanned) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1051} +func (m *ChannelAdminLogEventAction_Data) Reset() { *m = ChannelAdminLogEventAction_Data{} } +func (m *ChannelAdminLogEventAction_Data) String() string { return proto.CompactTextString(m) } +func (*ChannelAdminLogEventAction_Data) ProtoMessage() {} +func (*ChannelAdminLogEventAction_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1011} } -func (m *TLChannelParticipantsBanned) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantsBanned.Unmarshal(m, b) +func (m *ChannelAdminLogEventAction_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelAdminLogEventAction_Data.Unmarshal(m, b) } -func (m *TLChannelParticipantsBanned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantsBanned.Marshal(b, m, deterministic) +func (m *ChannelAdminLogEventAction_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelAdminLogEventAction_Data.Marshal(b, m, deterministic) } -func (dst *TLChannelParticipantsBanned) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantsBanned.Merge(dst, src) +func (dst *ChannelAdminLogEventAction_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelAdminLogEventAction_Data.Merge(dst, src) } -func (m *TLChannelParticipantsBanned) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantsBanned.Size(m) +func (m *ChannelAdminLogEventAction_Data) XXX_Size() int { + return xxx_messageInfo_ChannelAdminLogEventAction_Data.Size(m) } -func (m *TLChannelParticipantsBanned) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantsBanned.DiscardUnknown(m) +func (m *ChannelAdminLogEventAction_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelAdminLogEventAction_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelParticipantsBanned proto.InternalMessageInfo +var xxx_messageInfo_ChannelAdminLogEventAction_Data proto.InternalMessageInfo -func (m *TLChannelParticipantsBanned) GetData2() *ChannelParticipantsFilter_Data { +func (m *ChannelAdminLogEventAction_Data) GetPrevValue() string { if m != nil { - return m.Data2 + return m.PrevValue } - return nil + return "" } -// channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter; -type TLChannelParticipantsSearch struct { - Data2 *ChannelParticipantsFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelAdminLogEventAction_Data) GetNewValue_2() string { + if m != nil { + return m.NewValue_2 + } + return "" } -func (m *TLChannelParticipantsSearch) Reset() { *m = TLChannelParticipantsSearch{} } -func (m *TLChannelParticipantsSearch) String() string { return proto.CompactTextString(m) } -func (*TLChannelParticipantsSearch) ProtoMessage() {} -func (*TLChannelParticipantsSearch) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1052} -} -func (m *TLChannelParticipantsSearch) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelParticipantsSearch.Unmarshal(m, b) -} -func (m *TLChannelParticipantsSearch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelParticipantsSearch.Marshal(b, m, deterministic) -} -func (dst *TLChannelParticipantsSearch) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelParticipantsSearch.Merge(dst, src) -} -func (m *TLChannelParticipantsSearch) XXX_Size() int { - return xxx_messageInfo_TLChannelParticipantsSearch.Size(m) -} -func (m *TLChannelParticipantsSearch) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelParticipantsSearch.DiscardUnknown(m) +func (m *ChannelAdminLogEventAction_Data) GetPrevPhoto() *ChatPhoto { + if m != nil { + return m.PrevPhoto + } + return nil } -var xxx_messageInfo_TLChannelParticipantsSearch proto.InternalMessageInfo - -func (m *TLChannelParticipantsSearch) GetData2() *ChannelParticipantsFilter_Data { +func (m *ChannelAdminLogEventAction_Data) GetNewPhoto() *ChatPhoto { if m != nil { - return m.Data2 + return m.NewPhoto } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// ExportedMessageLink <-- -// + TL_exportedMessageLink -// -type ExportedMessageLink_Data struct { - Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` - Html string `protobuf:"bytes,2,opt,name=html,proto3" json:"html,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelAdminLogEventAction_Data) GetNewValue_5() *Bool { + if m != nil { + return m.NewValue_5 + } + return nil } -func (m *ExportedMessageLink_Data) Reset() { *m = ExportedMessageLink_Data{} } -func (m *ExportedMessageLink_Data) String() string { return proto.CompactTextString(m) } -func (*ExportedMessageLink_Data) ProtoMessage() {} -func (*ExportedMessageLink_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1053} -} -func (m *ExportedMessageLink_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExportedMessageLink_Data.Unmarshal(m, b) +func (m *ChannelAdminLogEventAction_Data) GetMessage() *Message { + if m != nil { + return m.Message + } + return nil } -func (m *ExportedMessageLink_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExportedMessageLink_Data.Marshal(b, m, deterministic) + +func (m *ChannelAdminLogEventAction_Data) GetPrevMessage() *Message { + if m != nil { + return m.PrevMessage + } + return nil } -func (dst *ExportedMessageLink_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExportedMessageLink_Data.Merge(dst, src) + +func (m *ChannelAdminLogEventAction_Data) GetNewMessage() *Message { + if m != nil { + return m.NewMessage + } + return nil } -func (m *ExportedMessageLink_Data) XXX_Size() int { - return xxx_messageInfo_ExportedMessageLink_Data.Size(m) + +func (m *ChannelAdminLogEventAction_Data) GetParticipant() *ChannelParticipant { + if m != nil { + return m.Participant + } + return nil } -func (m *ExportedMessageLink_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ExportedMessageLink_Data.DiscardUnknown(m) + +func (m *ChannelAdminLogEventAction_Data) GetPrevParticipant() *ChannelParticipant { + if m != nil { + return m.PrevParticipant + } + return nil } -var xxx_messageInfo_ExportedMessageLink_Data proto.InternalMessageInfo +func (m *ChannelAdminLogEventAction_Data) GetNewParticipant() *ChannelParticipant { + if m != nil { + return m.NewParticipant + } + return nil +} -func (m *ExportedMessageLink_Data) GetLink() string { +func (m *ChannelAdminLogEventAction_Data) GetPrevStickerset() *InputStickerSet { if m != nil { - return m.Link + return m.PrevStickerset } - return "" + return nil } -func (m *ExportedMessageLink_Data) GetHtml() string { +func (m *ChannelAdminLogEventAction_Data) GetNewStickerset() *InputStickerSet { if m != nil { - return m.Html + return m.NewStickerset } - return "" + return nil } -type ExportedMessageLink struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ExportedMessageLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelAdminLogEventAction struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ExportedMessageLink) Reset() { *m = ExportedMessageLink{} } -func (m *ExportedMessageLink) String() string { return proto.CompactTextString(m) } -func (*ExportedMessageLink) ProtoMessage() {} -func (*ExportedMessageLink) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1054} +func (m *ChannelAdminLogEventAction) Reset() { *m = ChannelAdminLogEventAction{} } +func (m *ChannelAdminLogEventAction) String() string { return proto.CompactTextString(m) } +func (*ChannelAdminLogEventAction) ProtoMessage() {} +func (*ChannelAdminLogEventAction) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1012} } -func (m *ExportedMessageLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExportedMessageLink.Unmarshal(m, b) +func (m *ChannelAdminLogEventAction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelAdminLogEventAction.Unmarshal(m, b) } -func (m *ExportedMessageLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExportedMessageLink.Marshal(b, m, deterministic) +func (m *ChannelAdminLogEventAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelAdminLogEventAction.Marshal(b, m, deterministic) } -func (dst *ExportedMessageLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExportedMessageLink.Merge(dst, src) +func (dst *ChannelAdminLogEventAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelAdminLogEventAction.Merge(dst, src) } -func (m *ExportedMessageLink) XXX_Size() int { - return xxx_messageInfo_ExportedMessageLink.Size(m) +func (m *ChannelAdminLogEventAction) XXX_Size() int { + return xxx_messageInfo_ChannelAdminLogEventAction.Size(m) } -func (m *ExportedMessageLink) XXX_DiscardUnknown() { - xxx_messageInfo_ExportedMessageLink.DiscardUnknown(m) +func (m *ChannelAdminLogEventAction) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelAdminLogEventAction.DiscardUnknown(m) } -var xxx_messageInfo_ExportedMessageLink proto.InternalMessageInfo +var xxx_messageInfo_ChannelAdminLogEventAction proto.InternalMessageInfo -func (m *ExportedMessageLink) GetConstructor() TLConstructor { +func (m *ChannelAdminLogEventAction) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ExportedMessageLink) GetData2() *ExportedMessageLink_Data { +func (m *ChannelAdminLogEventAction) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink; -type TLExportedMessageLink struct { - Data2 *ExportedMessageLink_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionChangeTitle struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLExportedMessageLink) Reset() { *m = TLExportedMessageLink{} } -func (m *TLExportedMessageLink) String() string { return proto.CompactTextString(m) } -func (*TLExportedMessageLink) ProtoMessage() {} -func (*TLExportedMessageLink) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1055} +func (m *TLChannelAdminLogEventActionChangeTitle) Reset() { + *m = TLChannelAdminLogEventActionChangeTitle{} } -func (m *TLExportedMessageLink) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLExportedMessageLink.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionChangeTitle) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminLogEventActionChangeTitle) ProtoMessage() {} +func (*TLChannelAdminLogEventActionChangeTitle) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1013} } -func (m *TLExportedMessageLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLExportedMessageLink.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEventActionChangeTitle) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.Unmarshal(m, b) } -func (dst *TLExportedMessageLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLExportedMessageLink.Merge(dst, src) +func (m *TLChannelAdminLogEventActionChangeTitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.Marshal(b, m, deterministic) } -func (m *TLExportedMessageLink) XXX_Size() int { - return xxx_messageInfo_TLExportedMessageLink.Size(m) +func (dst *TLChannelAdminLogEventActionChangeTitle) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.Merge(dst, src) } -func (m *TLExportedMessageLink) XXX_DiscardUnknown() { - xxx_messageInfo_TLExportedMessageLink.DiscardUnknown(m) +func (m *TLChannelAdminLogEventActionChangeTitle) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.Size(m) +} +func (m *TLChannelAdminLogEventActionChangeTitle) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle.DiscardUnknown(m) } -var xxx_messageInfo_TLExportedMessageLink proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionChangeTitle proto.InternalMessageInfo -func (m *TLExportedMessageLink) GetData2() *ExportedMessageLink_Data { +func (m *TLChannelAdminLogEventActionChangeTitle) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// WebAuthorization <-- -// + TL_webAuthorization -// -type WebAuthorization_Data struct { - Hash int64 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - BotId int32 `protobuf:"varint,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"` - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - Browser string `protobuf:"bytes,4,opt,name=browser,proto3" json:"browser,omitempty"` - Platform string `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"` - DateCreated int32 `protobuf:"varint,6,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"` - DateActive int32 `protobuf:"varint,7,opt,name=date_active,json=dateActive,proto3" json:"date_active,omitempty"` - Ip string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip,omitempty"` - Region string `protobuf:"bytes,9,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionChangeAbout struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WebAuthorization_Data) Reset() { *m = WebAuthorization_Data{} } -func (m *WebAuthorization_Data) String() string { return proto.CompactTextString(m) } -func (*WebAuthorization_Data) ProtoMessage() {} -func (*WebAuthorization_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1056} -} -func (m *WebAuthorization_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WebAuthorization_Data.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionChangeAbout) Reset() { + *m = TLChannelAdminLogEventActionChangeAbout{} } -func (m *WebAuthorization_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WebAuthorization_Data.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEventActionChangeAbout) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminLogEventActionChangeAbout) ProtoMessage() {} +func (*TLChannelAdminLogEventActionChangeAbout) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1014} } -func (dst *WebAuthorization_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebAuthorization_Data.Merge(dst, src) +func (m *TLChannelAdminLogEventActionChangeAbout) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.Unmarshal(m, b) } -func (m *WebAuthorization_Data) XXX_Size() int { - return xxx_messageInfo_WebAuthorization_Data.Size(m) -} -func (m *WebAuthorization_Data) XXX_DiscardUnknown() { - xxx_messageInfo_WebAuthorization_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_WebAuthorization_Data proto.InternalMessageInfo - -func (m *WebAuthorization_Data) GetHash() int64 { - if m != nil { - return m.Hash - } - return 0 -} - -func (m *WebAuthorization_Data) GetBotId() int32 { - if m != nil { - return m.BotId - } - return 0 +func (m *TLChannelAdminLogEventActionChangeAbout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.Marshal(b, m, deterministic) } - -func (m *WebAuthorization_Data) GetDomain() string { - if m != nil { - return m.Domain - } - return "" +func (dst *TLChannelAdminLogEventActionChangeAbout) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.Merge(dst, src) } - -func (m *WebAuthorization_Data) GetBrowser() string { - if m != nil { - return m.Browser - } - return "" +func (m *TLChannelAdminLogEventActionChangeAbout) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.Size(m) } - -func (m *WebAuthorization_Data) GetPlatform() string { - if m != nil { - return m.Platform - } - return "" +func (m *TLChannelAdminLogEventActionChangeAbout) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout.DiscardUnknown(m) } -func (m *WebAuthorization_Data) GetDateCreated() int32 { - if m != nil { - return m.DateCreated - } - return 0 -} +var xxx_messageInfo_TLChannelAdminLogEventActionChangeAbout proto.InternalMessageInfo -func (m *WebAuthorization_Data) GetDateActive() int32 { +func (m *TLChannelAdminLogEventActionChangeAbout) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { - return m.DateActive + return m.Data2 } - return 0 + return nil } -func (m *WebAuthorization_Data) GetIp() string { - if m != nil { - return m.Ip - } - return "" +// channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionChangeUsername struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WebAuthorization_Data) GetRegion() string { - if m != nil { - return m.Region - } - return "" +func (m *TLChannelAdminLogEventActionChangeUsername) Reset() { + *m = TLChannelAdminLogEventActionChangeUsername{} } - -type WebAuthorization struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *WebAuthorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *TLChannelAdminLogEventActionChangeUsername) String() string { + return proto.CompactTextString(m) } - -func (m *WebAuthorization) Reset() { *m = WebAuthorization{} } -func (m *WebAuthorization) String() string { return proto.CompactTextString(m) } -func (*WebAuthorization) ProtoMessage() {} -func (*WebAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1057} +func (*TLChannelAdminLogEventActionChangeUsername) ProtoMessage() {} +func (*TLChannelAdminLogEventActionChangeUsername) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1015} } -func (m *WebAuthorization) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WebAuthorization.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionChangeUsername) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.Unmarshal(m, b) } -func (m *WebAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WebAuthorization.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEventActionChangeUsername) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.Marshal(b, m, deterministic) } -func (dst *WebAuthorization) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebAuthorization.Merge(dst, src) +func (dst *TLChannelAdminLogEventActionChangeUsername) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.Merge(dst, src) } -func (m *WebAuthorization) XXX_Size() int { - return xxx_messageInfo_WebAuthorization.Size(m) +func (m *TLChannelAdminLogEventActionChangeUsername) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.Size(m) } -func (m *WebAuthorization) XXX_DiscardUnknown() { - xxx_messageInfo_WebAuthorization.DiscardUnknown(m) +func (m *TLChannelAdminLogEventActionChangeUsername) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername.DiscardUnknown(m) } -var xxx_messageInfo_WebAuthorization proto.InternalMessageInfo - -func (m *WebAuthorization) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLChannelAdminLogEventActionChangeUsername proto.InternalMessageInfo -func (m *WebAuthorization) GetData2() *WebAuthorization_Data { +func (m *TLChannelAdminLogEventActionChangeUsername) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization; -type TLWebAuthorization struct { - Data2 *WebAuthorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionChangePhoto#b82f55c3 prev_photo:ChatPhoto new_photo:ChatPhoto = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionChangePhoto struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLWebAuthorization) Reset() { *m = TLWebAuthorization{} } -func (m *TLWebAuthorization) String() string { return proto.CompactTextString(m) } -func (*TLWebAuthorization) ProtoMessage() {} -func (*TLWebAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1058} +func (m *TLChannelAdminLogEventActionChangePhoto) Reset() { + *m = TLChannelAdminLogEventActionChangePhoto{} } -func (m *TLWebAuthorization) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLWebAuthorization.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionChangePhoto) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminLogEventActionChangePhoto) ProtoMessage() {} +func (*TLChannelAdminLogEventActionChangePhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1016} } -func (m *TLWebAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLWebAuthorization.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEventActionChangePhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.Unmarshal(m, b) } -func (dst *TLWebAuthorization) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLWebAuthorization.Merge(dst, src) +func (m *TLChannelAdminLogEventActionChangePhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.Marshal(b, m, deterministic) } -func (m *TLWebAuthorization) XXX_Size() int { - return xxx_messageInfo_TLWebAuthorization.Size(m) +func (dst *TLChannelAdminLogEventActionChangePhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.Merge(dst, src) } -func (m *TLWebAuthorization) XXX_DiscardUnknown() { - xxx_messageInfo_TLWebAuthorization.DiscardUnknown(m) +func (m *TLChannelAdminLogEventActionChangePhoto) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.Size(m) +} +func (m *TLChannelAdminLogEventActionChangePhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto.DiscardUnknown(m) } -var xxx_messageInfo_TLWebAuthorization proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionChangePhoto proto.InternalMessageInfo -func (m *TLWebAuthorization) GetData2() *WebAuthorization_Data { +func (m *TLChannelAdminLogEventActionChangePhoto) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// SecureValueError <-- -// + TL_secureValueErrorData -// + TL_secureValueErrorFrontSide -// + TL_secureValueErrorReverseSide -// + TL_secureValueErrorSelfie -// + TL_secureValueErrorFile -// + TL_secureValueErrorFiles -// + TL_secureValueError -// + TL_secureValueErrorTranslationFile -// + TL_secureValueErrorTranslationFiles -// -type SecureValueError_Data struct { - Type *SecureValueType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - DataHash []byte `protobuf:"bytes,2,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` - Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` - Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` - FileHash_5 []byte `protobuf:"bytes,5,opt,name=file_hash_5,json=fileHash5,proto3" json:"file_hash_5,omitempty"` - FileHash_6 [][]byte `protobuf:"bytes,6,rep,name=file_hash_6,json=fileHash6,proto3" json:"file_hash_6,omitempty"` - Hash []byte `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionToggleInvites struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureValueError_Data) Reset() { *m = SecureValueError_Data{} } -func (m *SecureValueError_Data) String() string { return proto.CompactTextString(m) } -func (*SecureValueError_Data) ProtoMessage() {} -func (*SecureValueError_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1059} +func (m *TLChannelAdminLogEventActionToggleInvites) Reset() { + *m = TLChannelAdminLogEventActionToggleInvites{} } -func (m *SecureValueError_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureValueError_Data.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionToggleInvites) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminLogEventActionToggleInvites) ProtoMessage() {} +func (*TLChannelAdminLogEventActionToggleInvites) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1017} } -func (m *SecureValueError_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureValueError_Data.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEventActionToggleInvites) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.Unmarshal(m, b) } -func (dst *SecureValueError_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureValueError_Data.Merge(dst, src) +func (m *TLChannelAdminLogEventActionToggleInvites) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.Marshal(b, m, deterministic) } -func (m *SecureValueError_Data) XXX_Size() int { - return xxx_messageInfo_SecureValueError_Data.Size(m) +func (dst *TLChannelAdminLogEventActionToggleInvites) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.Merge(dst, src) } -func (m *SecureValueError_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SecureValueError_Data.DiscardUnknown(m) +func (m *TLChannelAdminLogEventActionToggleInvites) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.Size(m) +} +func (m *TLChannelAdminLogEventActionToggleInvites) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites.DiscardUnknown(m) } -var xxx_messageInfo_SecureValueError_Data proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionToggleInvites proto.InternalMessageInfo -func (m *SecureValueError_Data) GetType() *SecureValueType { +func (m *TLChannelAdminLogEventActionToggleInvites) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { - return m.Type + return m.Data2 } return nil } -func (m *SecureValueError_Data) GetDataHash() []byte { - if m != nil { - return m.DataHash - } - return nil +// channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionToggleSignatures struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureValueError_Data) GetField() string { - if m != nil { - return m.Field - } - return "" +func (m *TLChannelAdminLogEventActionToggleSignatures) Reset() { + *m = TLChannelAdminLogEventActionToggleSignatures{} } - -func (m *SecureValueError_Data) GetText() string { - if m != nil { - return m.Text - } - return "" +func (m *TLChannelAdminLogEventActionToggleSignatures) String() string { + return proto.CompactTextString(m) } - -func (m *SecureValueError_Data) GetFileHash_5() []byte { - if m != nil { - return m.FileHash_5 - } - return nil +func (*TLChannelAdminLogEventActionToggleSignatures) ProtoMessage() {} +func (*TLChannelAdminLogEventActionToggleSignatures) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1018} } - -func (m *SecureValueError_Data) GetFileHash_6() [][]byte { - if m != nil { - return m.FileHash_6 - } - return nil +func (m *TLChannelAdminLogEventActionToggleSignatures) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.Unmarshal(m, b) +} +func (m *TLChannelAdminLogEventActionToggleSignatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.Marshal(b, m, deterministic) +} +func (dst *TLChannelAdminLogEventActionToggleSignatures) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.Merge(dst, src) +} +func (m *TLChannelAdminLogEventActionToggleSignatures) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.Size(m) +} +func (m *TLChannelAdminLogEventActionToggleSignatures) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures.DiscardUnknown(m) } -func (m *SecureValueError_Data) GetHash() []byte { +var xxx_messageInfo_TLChannelAdminLogEventActionToggleSignatures proto.InternalMessageInfo + +func (m *TLChannelAdminLogEventActionToggleSignatures) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { - return m.Hash + return m.Data2 } return nil } -type SecureValueError struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionUpdatePinned struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SecureValueError) Reset() { *m = SecureValueError{} } -func (m *SecureValueError) String() string { return proto.CompactTextString(m) } -func (*SecureValueError) ProtoMessage() {} -func (*SecureValueError) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1060} +func (m *TLChannelAdminLogEventActionUpdatePinned) Reset() { + *m = TLChannelAdminLogEventActionUpdatePinned{} } -func (m *SecureValueError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecureValueError.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionUpdatePinned) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminLogEventActionUpdatePinned) ProtoMessage() {} +func (*TLChannelAdminLogEventActionUpdatePinned) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1019} } -func (m *SecureValueError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecureValueError.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEventActionUpdatePinned) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.Unmarshal(m, b) } -func (dst *SecureValueError) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecureValueError.Merge(dst, src) +func (m *TLChannelAdminLogEventActionUpdatePinned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.Marshal(b, m, deterministic) } -func (m *SecureValueError) XXX_Size() int { - return xxx_messageInfo_SecureValueError.Size(m) +func (dst *TLChannelAdminLogEventActionUpdatePinned) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.Merge(dst, src) } -func (m *SecureValueError) XXX_DiscardUnknown() { - xxx_messageInfo_SecureValueError.DiscardUnknown(m) +func (m *TLChannelAdminLogEventActionUpdatePinned) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.Size(m) } - -var xxx_messageInfo_SecureValueError proto.InternalMessageInfo - -func (m *SecureValueError) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN +func (m *TLChannelAdminLogEventActionUpdatePinned) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned.DiscardUnknown(m) } -func (m *SecureValueError) GetData2() *SecureValueError_Data { +var xxx_messageInfo_TLChannelAdminLogEventActionUpdatePinned proto.InternalMessageInfo + +func (m *TLChannelAdminLogEventActionUpdatePinned) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError; -type TLSecureValueErrorData struct { - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionEditMessage struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueErrorData) Reset() { *m = TLSecureValueErrorData{} } -func (m *TLSecureValueErrorData) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueErrorData) ProtoMessage() {} -func (*TLSecureValueErrorData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1061} +func (m *TLChannelAdminLogEventActionEditMessage) Reset() { + *m = TLChannelAdminLogEventActionEditMessage{} } -func (m *TLSecureValueErrorData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueErrorData.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionEditMessage) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminLogEventActionEditMessage) ProtoMessage() {} +func (*TLChannelAdminLogEventActionEditMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1020} } -func (m *TLSecureValueErrorData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueErrorData.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEventActionEditMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.Unmarshal(m, b) } -func (dst *TLSecureValueErrorData) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueErrorData.Merge(dst, src) +func (m *TLChannelAdminLogEventActionEditMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.Marshal(b, m, deterministic) } -func (m *TLSecureValueErrorData) XXX_Size() int { - return xxx_messageInfo_TLSecureValueErrorData.Size(m) +func (dst *TLChannelAdminLogEventActionEditMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.Merge(dst, src) } -func (m *TLSecureValueErrorData) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueErrorData.DiscardUnknown(m) +func (m *TLChannelAdminLogEventActionEditMessage) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.Size(m) +} +func (m *TLChannelAdminLogEventActionEditMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionEditMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueErrorData proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionEditMessage proto.InternalMessageInfo -func (m *TLSecureValueErrorData) GetData2() *SecureValueError_Data { +func (m *TLChannelAdminLogEventActionEditMessage) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError; -type TLSecureValueErrorFrontSide struct { - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionDeleteMessage struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueErrorFrontSide) Reset() { *m = TLSecureValueErrorFrontSide{} } -func (m *TLSecureValueErrorFrontSide) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueErrorFrontSide) ProtoMessage() {} -func (*TLSecureValueErrorFrontSide) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1062} +func (m *TLChannelAdminLogEventActionDeleteMessage) Reset() { + *m = TLChannelAdminLogEventActionDeleteMessage{} } -func (m *TLSecureValueErrorFrontSide) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueErrorFrontSide.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionDeleteMessage) String() string { return proto.CompactTextString(m) } +func (*TLChannelAdminLogEventActionDeleteMessage) ProtoMessage() {} +func (*TLChannelAdminLogEventActionDeleteMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1021} } -func (m *TLSecureValueErrorFrontSide) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueErrorFrontSide.Marshal(b, m, deterministic) +func (m *TLChannelAdminLogEventActionDeleteMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.Unmarshal(m, b) } -func (dst *TLSecureValueErrorFrontSide) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueErrorFrontSide.Merge(dst, src) +func (m *TLChannelAdminLogEventActionDeleteMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.Marshal(b, m, deterministic) } -func (m *TLSecureValueErrorFrontSide) XXX_Size() int { - return xxx_messageInfo_TLSecureValueErrorFrontSide.Size(m) +func (dst *TLChannelAdminLogEventActionDeleteMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.Merge(dst, src) } -func (m *TLSecureValueErrorFrontSide) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueErrorFrontSide.DiscardUnknown(m) +func (m *TLChannelAdminLogEventActionDeleteMessage) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.Size(m) +} +func (m *TLChannelAdminLogEventActionDeleteMessage) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueErrorFrontSide proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionDeleteMessage proto.InternalMessageInfo -func (m *TLSecureValueErrorFrontSide) GetData2() *SecureValueError_Data { +func (m *TLChannelAdminLogEventActionDeleteMessage) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError; -type TLSecureValueErrorReverseSide struct { - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionParticipantJoin struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueErrorReverseSide) Reset() { *m = TLSecureValueErrorReverseSide{} } -func (m *TLSecureValueErrorReverseSide) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueErrorReverseSide) ProtoMessage() {} -func (*TLSecureValueErrorReverseSide) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1063} +func (m *TLChannelAdminLogEventActionParticipantJoin) Reset() { + *m = TLChannelAdminLogEventActionParticipantJoin{} } -func (m *TLSecureValueErrorReverseSide) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueErrorReverseSide.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionParticipantJoin) String() string { + return proto.CompactTextString(m) } -func (m *TLSecureValueErrorReverseSide) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueErrorReverseSide.Marshal(b, m, deterministic) +func (*TLChannelAdminLogEventActionParticipantJoin) ProtoMessage() {} +func (*TLChannelAdminLogEventActionParticipantJoin) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1022} } -func (dst *TLSecureValueErrorReverseSide) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueErrorReverseSide.Merge(dst, src) +func (m *TLChannelAdminLogEventActionParticipantJoin) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.Unmarshal(m, b) } -func (m *TLSecureValueErrorReverseSide) XXX_Size() int { - return xxx_messageInfo_TLSecureValueErrorReverseSide.Size(m) +func (m *TLChannelAdminLogEventActionParticipantJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.Marshal(b, m, deterministic) } -func (m *TLSecureValueErrorReverseSide) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueErrorReverseSide.DiscardUnknown(m) +func (dst *TLChannelAdminLogEventActionParticipantJoin) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.Merge(dst, src) +} +func (m *TLChannelAdminLogEventActionParticipantJoin) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.Size(m) +} +func (m *TLChannelAdminLogEventActionParticipantJoin) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueErrorReverseSide proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionParticipantJoin proto.InternalMessageInfo -func (m *TLSecureValueErrorReverseSide) GetData2() *SecureValueError_Data { +func (m *TLChannelAdminLogEventActionParticipantJoin) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError; -type TLSecureValueErrorSelfie struct { - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionParticipantLeave struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueErrorSelfie) Reset() { *m = TLSecureValueErrorSelfie{} } -func (m *TLSecureValueErrorSelfie) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueErrorSelfie) ProtoMessage() {} -func (*TLSecureValueErrorSelfie) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1064} +func (m *TLChannelAdminLogEventActionParticipantLeave) Reset() { + *m = TLChannelAdminLogEventActionParticipantLeave{} } -func (m *TLSecureValueErrorSelfie) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueErrorSelfie.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionParticipantLeave) String() string { + return proto.CompactTextString(m) } -func (m *TLSecureValueErrorSelfie) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueErrorSelfie.Marshal(b, m, deterministic) +func (*TLChannelAdminLogEventActionParticipantLeave) ProtoMessage() {} +func (*TLChannelAdminLogEventActionParticipantLeave) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1023} } -func (dst *TLSecureValueErrorSelfie) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueErrorSelfie.Merge(dst, src) +func (m *TLChannelAdminLogEventActionParticipantLeave) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.Unmarshal(m, b) } -func (m *TLSecureValueErrorSelfie) XXX_Size() int { - return xxx_messageInfo_TLSecureValueErrorSelfie.Size(m) +func (m *TLChannelAdminLogEventActionParticipantLeave) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.Marshal(b, m, deterministic) } -func (m *TLSecureValueErrorSelfie) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueErrorSelfie.DiscardUnknown(m) +func (dst *TLChannelAdminLogEventActionParticipantLeave) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.Merge(dst, src) +} +func (m *TLChannelAdminLogEventActionParticipantLeave) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.Size(m) +} +func (m *TLChannelAdminLogEventActionParticipantLeave) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueErrorSelfie proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionParticipantLeave proto.InternalMessageInfo -func (m *TLSecureValueErrorSelfie) GetData2() *SecureValueError_Data { +func (m *TLChannelAdminLogEventActionParticipantLeave) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError; -type TLSecureValueErrorFile struct { - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionParticipantInvite struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueErrorFile) Reset() { *m = TLSecureValueErrorFile{} } -func (m *TLSecureValueErrorFile) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueErrorFile) ProtoMessage() {} -func (*TLSecureValueErrorFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1065} +func (m *TLChannelAdminLogEventActionParticipantInvite) Reset() { + *m = TLChannelAdminLogEventActionParticipantInvite{} } -func (m *TLSecureValueErrorFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueErrorFile.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionParticipantInvite) String() string { + return proto.CompactTextString(m) } -func (m *TLSecureValueErrorFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueErrorFile.Marshal(b, m, deterministic) +func (*TLChannelAdminLogEventActionParticipantInvite) ProtoMessage() {} +func (*TLChannelAdminLogEventActionParticipantInvite) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1024} } -func (dst *TLSecureValueErrorFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueErrorFile.Merge(dst, src) +func (m *TLChannelAdminLogEventActionParticipantInvite) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.Unmarshal(m, b) } -func (m *TLSecureValueErrorFile) XXX_Size() int { - return xxx_messageInfo_TLSecureValueErrorFile.Size(m) +func (m *TLChannelAdminLogEventActionParticipantInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.Marshal(b, m, deterministic) } -func (m *TLSecureValueErrorFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueErrorFile.DiscardUnknown(m) +func (dst *TLChannelAdminLogEventActionParticipantInvite) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.Merge(dst, src) +} +func (m *TLChannelAdminLogEventActionParticipantInvite) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.Size(m) +} +func (m *TLChannelAdminLogEventActionParticipantInvite) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueErrorFile proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionParticipantInvite proto.InternalMessageInfo -func (m *TLSecureValueErrorFile) GetData2() *SecureValueError_Data { +func (m *TLChannelAdminLogEventActionParticipantInvite) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError; -type TLSecureValueErrorFiles struct { - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionParticipantToggleBan struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueErrorFiles) Reset() { *m = TLSecureValueErrorFiles{} } -func (m *TLSecureValueErrorFiles) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueErrorFiles) ProtoMessage() {} -func (*TLSecureValueErrorFiles) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1066} +func (m *TLChannelAdminLogEventActionParticipantToggleBan) Reset() { + *m = TLChannelAdminLogEventActionParticipantToggleBan{} } -func (m *TLSecureValueErrorFiles) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueErrorFiles.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionParticipantToggleBan) String() string { + return proto.CompactTextString(m) } -func (m *TLSecureValueErrorFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueErrorFiles.Marshal(b, m, deterministic) +func (*TLChannelAdminLogEventActionParticipantToggleBan) ProtoMessage() {} +func (*TLChannelAdminLogEventActionParticipantToggleBan) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1025} } -func (dst *TLSecureValueErrorFiles) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueErrorFiles.Merge(dst, src) +func (m *TLChannelAdminLogEventActionParticipantToggleBan) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.Unmarshal(m, b) } -func (m *TLSecureValueErrorFiles) XXX_Size() int { - return xxx_messageInfo_TLSecureValueErrorFiles.Size(m) +func (m *TLChannelAdminLogEventActionParticipantToggleBan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.Marshal(b, m, deterministic) } -func (m *TLSecureValueErrorFiles) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueErrorFiles.DiscardUnknown(m) +func (dst *TLChannelAdminLogEventActionParticipantToggleBan) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.Merge(dst, src) +} +func (m *TLChannelAdminLogEventActionParticipantToggleBan) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.Size(m) +} +func (m *TLChannelAdminLogEventActionParticipantToggleBan) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueErrorFiles proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleBan proto.InternalMessageInfo -func (m *TLSecureValueErrorFiles) GetData2() *SecureValueError_Data { +func (m *TLChannelAdminLogEventActionParticipantToggleBan) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError; -type TLSecureValueError struct { - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionParticipantToggleAdmin struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueError) Reset() { *m = TLSecureValueError{} } -func (m *TLSecureValueError) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueError) ProtoMessage() {} -func (*TLSecureValueError) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1067} +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) Reset() { + *m = TLChannelAdminLogEventActionParticipantToggleAdmin{} } -func (m *TLSecureValueError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueError.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) String() string { + return proto.CompactTextString(m) } -func (m *TLSecureValueError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueError.Marshal(b, m, deterministic) +func (*TLChannelAdminLogEventActionParticipantToggleAdmin) ProtoMessage() {} +func (*TLChannelAdminLogEventActionParticipantToggleAdmin) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1026} } -func (dst *TLSecureValueError) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueError.Merge(dst, src) +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.Unmarshal(m, b) } -func (m *TLSecureValueError) XXX_Size() int { - return xxx_messageInfo_TLSecureValueError.Size(m) +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.Marshal(b, m, deterministic) } -func (m *TLSecureValueError) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueError.DiscardUnknown(m) +func (dst *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.Merge(dst, src) +} +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.Size(m) +} +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueError proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionParticipantToggleAdmin proto.InternalMessageInfo -func (m *TLSecureValueError) GetData2() *SecureValueError_Data { +func (m *TLChannelAdminLogEventActionParticipantToggleAdmin) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError; -type TLSecureValueErrorTranslationFile struct { - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionChangeStickerSet struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueErrorTranslationFile) Reset() { *m = TLSecureValueErrorTranslationFile{} } -func (m *TLSecureValueErrorTranslationFile) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueErrorTranslationFile) ProtoMessage() {} -func (*TLSecureValueErrorTranslationFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1068} +func (m *TLChannelAdminLogEventActionChangeStickerSet) Reset() { + *m = TLChannelAdminLogEventActionChangeStickerSet{} } -func (m *TLSecureValueErrorTranslationFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueErrorTranslationFile.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionChangeStickerSet) String() string { + return proto.CompactTextString(m) } -func (m *TLSecureValueErrorTranslationFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueErrorTranslationFile.Marshal(b, m, deterministic) +func (*TLChannelAdminLogEventActionChangeStickerSet) ProtoMessage() {} +func (*TLChannelAdminLogEventActionChangeStickerSet) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1027} } -func (dst *TLSecureValueErrorTranslationFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueErrorTranslationFile.Merge(dst, src) +func (m *TLChannelAdminLogEventActionChangeStickerSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.Unmarshal(m, b) } -func (m *TLSecureValueErrorTranslationFile) XXX_Size() int { - return xxx_messageInfo_TLSecureValueErrorTranslationFile.Size(m) +func (m *TLChannelAdminLogEventActionChangeStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.Marshal(b, m, deterministic) } -func (m *TLSecureValueErrorTranslationFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueErrorTranslationFile.DiscardUnknown(m) +func (dst *TLChannelAdminLogEventActionChangeStickerSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.Merge(dst, src) +} +func (m *TLChannelAdminLogEventActionChangeStickerSet) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.Size(m) +} +func (m *TLChannelAdminLogEventActionChangeStickerSet) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueErrorTranslationFile proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionChangeStickerSet proto.InternalMessageInfo -func (m *TLSecureValueErrorTranslationFile) GetData2() *SecureValueError_Data { +func (m *TLChannelAdminLogEventActionChangeStickerSet) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } return nil } -// secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError; -type TLSecureValueErrorTranslationFiles struct { - Data2 *SecureValueError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction; +type TLChannelAdminLogEventActionTogglePreHistoryHidden struct { + Data2 *ChannelAdminLogEventAction_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSecureValueErrorTranslationFiles) Reset() { *m = TLSecureValueErrorTranslationFiles{} } -func (m *TLSecureValueErrorTranslationFiles) String() string { return proto.CompactTextString(m) } -func (*TLSecureValueErrorTranslationFiles) ProtoMessage() {} -func (*TLSecureValueErrorTranslationFiles) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1069} +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) Reset() { + *m = TLChannelAdminLogEventActionTogglePreHistoryHidden{} } -func (m *TLSecureValueErrorTranslationFiles) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSecureValueErrorTranslationFiles.Unmarshal(m, b) +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) String() string { + return proto.CompactTextString(m) } -func (m *TLSecureValueErrorTranslationFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSecureValueErrorTranslationFiles.Marshal(b, m, deterministic) +func (*TLChannelAdminLogEventActionTogglePreHistoryHidden) ProtoMessage() {} +func (*TLChannelAdminLogEventActionTogglePreHistoryHidden) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1028} } -func (dst *TLSecureValueErrorTranslationFiles) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSecureValueErrorTranslationFiles.Merge(dst, src) +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.Unmarshal(m, b) } -func (m *TLSecureValueErrorTranslationFiles) XXX_Size() int { - return xxx_messageInfo_TLSecureValueErrorTranslationFiles.Size(m) +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.Marshal(b, m, deterministic) } -func (m *TLSecureValueErrorTranslationFiles) XXX_DiscardUnknown() { - xxx_messageInfo_TLSecureValueErrorTranslationFiles.DiscardUnknown(m) +func (dst *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.Merge(dst, src) +} +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_Size() int { + return xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.Size(m) +} +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden.DiscardUnknown(m) } -var xxx_messageInfo_TLSecureValueErrorTranslationFiles proto.InternalMessageInfo +var xxx_messageInfo_TLChannelAdminLogEventActionTogglePreHistoryHidden proto.InternalMessageInfo -func (m *TLSecureValueErrorTranslationFiles) GetData2() *SecureValueError_Data { +func (m *TLChannelAdminLogEventActionTogglePreHistoryHidden) GetData2() *ChannelAdminLogEventAction_Data { if m != nil { return m.Data2 } @@ -52071,150 +50187,142 @@ func (m *TLSecureValueErrorTranslationFiles) GetData2() *SecureValueError_Data { } // ///////////////////////////////////////////////////////////////////////////// -// SchemeType <-- -// + TL_schemeType +// InputBotInlineMessageID <-- +// + TL_inputBotInlineMessageID // -type SchemeType_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` - Params []*SchemeParam `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputBotInlineMessageID_Data struct { + DcId int32 `protobuf:"varint,1,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` + Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + AccessHash int64 `protobuf:"varint,3,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SchemeType_Data) Reset() { *m = SchemeType_Data{} } -func (m *SchemeType_Data) String() string { return proto.CompactTextString(m) } -func (*SchemeType_Data) ProtoMessage() {} -func (*SchemeType_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1070} +func (m *InputBotInlineMessageID_Data) Reset() { *m = InputBotInlineMessageID_Data{} } +func (m *InputBotInlineMessageID_Data) String() string { return proto.CompactTextString(m) } +func (*InputBotInlineMessageID_Data) ProtoMessage() {} +func (*InputBotInlineMessageID_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1029} } -func (m *SchemeType_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SchemeType_Data.Unmarshal(m, b) +func (m *InputBotInlineMessageID_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputBotInlineMessageID_Data.Unmarshal(m, b) } -func (m *SchemeType_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SchemeType_Data.Marshal(b, m, deterministic) +func (m *InputBotInlineMessageID_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputBotInlineMessageID_Data.Marshal(b, m, deterministic) } -func (dst *SchemeType_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemeType_Data.Merge(dst, src) +func (dst *InputBotInlineMessageID_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputBotInlineMessageID_Data.Merge(dst, src) } -func (m *SchemeType_Data) XXX_Size() int { - return xxx_messageInfo_SchemeType_Data.Size(m) +func (m *InputBotInlineMessageID_Data) XXX_Size() int { + return xxx_messageInfo_InputBotInlineMessageID_Data.Size(m) } -func (m *SchemeType_Data) XXX_DiscardUnknown() { - xxx_messageInfo_SchemeType_Data.DiscardUnknown(m) +func (m *InputBotInlineMessageID_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputBotInlineMessageID_Data.DiscardUnknown(m) } -var xxx_messageInfo_SchemeType_Data proto.InternalMessageInfo +var xxx_messageInfo_InputBotInlineMessageID_Data proto.InternalMessageInfo -func (m *SchemeType_Data) GetId() int32 { +func (m *InputBotInlineMessageID_Data) GetDcId() int32 { if m != nil { - return m.Id + return m.DcId } return 0 } -func (m *SchemeType_Data) GetPredicate() string { - if m != nil { - return m.Predicate - } - return "" -} - -func (m *SchemeType_Data) GetParams() []*SchemeParam { +func (m *InputBotInlineMessageID_Data) GetId() int64 { if m != nil { - return m.Params + return m.Id } - return nil + return 0 } -func (m *SchemeType_Data) GetType() string { +func (m *InputBotInlineMessageID_Data) GetAccessHash() int64 { if m != nil { - return m.Type + return m.AccessHash } - return "" + return 0 } -type SchemeType struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *SchemeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputBotInlineMessageID struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputBotInlineMessageID_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SchemeType) Reset() { *m = SchemeType{} } -func (m *SchemeType) String() string { return proto.CompactTextString(m) } -func (*SchemeType) ProtoMessage() {} -func (*SchemeType) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1071} +func (m *InputBotInlineMessageID) Reset() { *m = InputBotInlineMessageID{} } +func (m *InputBotInlineMessageID) String() string { return proto.CompactTextString(m) } +func (*InputBotInlineMessageID) ProtoMessage() {} +func (*InputBotInlineMessageID) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1030} } -func (m *SchemeType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SchemeType.Unmarshal(m, b) +func (m *InputBotInlineMessageID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputBotInlineMessageID.Unmarshal(m, b) } -func (m *SchemeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SchemeType.Marshal(b, m, deterministic) +func (m *InputBotInlineMessageID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputBotInlineMessageID.Marshal(b, m, deterministic) } -func (dst *SchemeType) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemeType.Merge(dst, src) +func (dst *InputBotInlineMessageID) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputBotInlineMessageID.Merge(dst, src) } -func (m *SchemeType) XXX_Size() int { - return xxx_messageInfo_SchemeType.Size(m) +func (m *InputBotInlineMessageID) XXX_Size() int { + return xxx_messageInfo_InputBotInlineMessageID.Size(m) } -func (m *SchemeType) XXX_DiscardUnknown() { - xxx_messageInfo_SchemeType.DiscardUnknown(m) +func (m *InputBotInlineMessageID) XXX_DiscardUnknown() { + xxx_messageInfo_InputBotInlineMessageID.DiscardUnknown(m) } -var xxx_messageInfo_SchemeType proto.InternalMessageInfo +var xxx_messageInfo_InputBotInlineMessageID proto.InternalMessageInfo -func (m *SchemeType) GetConstructor() TLConstructor { +func (m *InputBotInlineMessageID) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *SchemeType) GetData2() *SchemeType_Data { +func (m *InputBotInlineMessageID) GetData2() *InputBotInlineMessageID_Data { if m != nil { return m.Data2 } return nil } -// schemeType#a8e1e989 id:int predicate:string params:Vector type:string = SchemeType; -type TLSchemeType struct { - Data2 *SchemeType_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID; +type TLInputBotInlineMessageID struct { + Data2 *InputBotInlineMessageID_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSchemeType) Reset() { *m = TLSchemeType{} } -func (m *TLSchemeType) String() string { return proto.CompactTextString(m) } -func (*TLSchemeType) ProtoMessage() {} -func (*TLSchemeType) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1072} +func (m *TLInputBotInlineMessageID) Reset() { *m = TLInputBotInlineMessageID{} } +func (m *TLInputBotInlineMessageID) String() string { return proto.CompactTextString(m) } +func (*TLInputBotInlineMessageID) ProtoMessage() {} +func (*TLInputBotInlineMessageID) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1031} } -func (m *TLSchemeType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSchemeType.Unmarshal(m, b) +func (m *TLInputBotInlineMessageID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputBotInlineMessageID.Unmarshal(m, b) } -func (m *TLSchemeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSchemeType.Marshal(b, m, deterministic) +func (m *TLInputBotInlineMessageID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputBotInlineMessageID.Marshal(b, m, deterministic) } -func (dst *TLSchemeType) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSchemeType.Merge(dst, src) +func (dst *TLInputBotInlineMessageID) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputBotInlineMessageID.Merge(dst, src) } -func (m *TLSchemeType) XXX_Size() int { - return xxx_messageInfo_TLSchemeType.Size(m) +func (m *TLInputBotInlineMessageID) XXX_Size() int { + return xxx_messageInfo_TLInputBotInlineMessageID.Size(m) } -func (m *TLSchemeType) XXX_DiscardUnknown() { - xxx_messageInfo_TLSchemeType.DiscardUnknown(m) +func (m *TLInputBotInlineMessageID) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputBotInlineMessageID.DiscardUnknown(m) } -var xxx_messageInfo_TLSchemeType proto.InternalMessageInfo +var xxx_messageInfo_TLInputBotInlineMessageID proto.InternalMessageInfo -func (m *TLSchemeType) GetData2() *SchemeType_Data { +func (m *TLInputBotInlineMessageID) GetData2() *InputBotInlineMessageID_Data { if m != nil { return m.Data2 } @@ -52222,1138 +50330,1138 @@ func (m *TLSchemeType) GetData2() *SchemeType_Data { } // ///////////////////////////////////////////////////////////////////////////// -// PhotoSize <-- -// + TL_photoSizeEmpty -// + TL_photoSize -// + TL_photoCachedSize +// messages_ArchivedStickers <-- +// + TL_messages_archivedStickers // -type PhotoSize_Data struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Location *FileLocation `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` - W int32 `protobuf:"varint,3,opt,name=w,proto3" json:"w,omitempty"` - H int32 `protobuf:"varint,4,opt,name=h,proto3" json:"h,omitempty"` - Size int32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` - Bytes []byte `protobuf:"bytes,6,opt,name=bytes,proto3" json:"bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Messages_ArchivedStickers_Data struct { + Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + Sets []*StickerSetCovered `protobuf:"bytes,2,rep,name=sets,proto3" json:"sets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PhotoSize_Data) Reset() { *m = PhotoSize_Data{} } -func (m *PhotoSize_Data) String() string { return proto.CompactTextString(m) } -func (*PhotoSize_Data) ProtoMessage() {} -func (*PhotoSize_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1073} +func (m *Messages_ArchivedStickers_Data) Reset() { *m = Messages_ArchivedStickers_Data{} } +func (m *Messages_ArchivedStickers_Data) String() string { return proto.CompactTextString(m) } +func (*Messages_ArchivedStickers_Data) ProtoMessage() {} +func (*Messages_ArchivedStickers_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1032} } -func (m *PhotoSize_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhotoSize_Data.Unmarshal(m, b) +func (m *Messages_ArchivedStickers_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_ArchivedStickers_Data.Unmarshal(m, b) } -func (m *PhotoSize_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhotoSize_Data.Marshal(b, m, deterministic) +func (m *Messages_ArchivedStickers_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_ArchivedStickers_Data.Marshal(b, m, deterministic) } -func (dst *PhotoSize_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhotoSize_Data.Merge(dst, src) +func (dst *Messages_ArchivedStickers_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_ArchivedStickers_Data.Merge(dst, src) } -func (m *PhotoSize_Data) XXX_Size() int { - return xxx_messageInfo_PhotoSize_Data.Size(m) +func (m *Messages_ArchivedStickers_Data) XXX_Size() int { + return xxx_messageInfo_Messages_ArchivedStickers_Data.Size(m) } -func (m *PhotoSize_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PhotoSize_Data.DiscardUnknown(m) +func (m *Messages_ArchivedStickers_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_ArchivedStickers_Data.DiscardUnknown(m) } -var xxx_messageInfo_PhotoSize_Data proto.InternalMessageInfo +var xxx_messageInfo_Messages_ArchivedStickers_Data proto.InternalMessageInfo -func (m *PhotoSize_Data) GetType() string { +func (m *Messages_ArchivedStickers_Data) GetCount() int32 { if m != nil { - return m.Type + return m.Count } - return "" + return 0 } -func (m *PhotoSize_Data) GetLocation() *FileLocation { +func (m *Messages_ArchivedStickers_Data) GetSets() []*StickerSetCovered { if m != nil { - return m.Location + return m.Sets } return nil } -func (m *PhotoSize_Data) GetW() int32 { - if m != nil { - return m.W - } - return 0 +type Messages_ArchivedStickers struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Messages_ArchivedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PhotoSize_Data) GetH() int32 { - if m != nil { - return m.H - } - return 0 +func (m *Messages_ArchivedStickers) Reset() { *m = Messages_ArchivedStickers{} } +func (m *Messages_ArchivedStickers) String() string { return proto.CompactTextString(m) } +func (*Messages_ArchivedStickers) ProtoMessage() {} +func (*Messages_ArchivedStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1033} } - -func (m *PhotoSize_Data) GetSize() int32 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *PhotoSize_Data) GetBytes() []byte { - if m != nil { - return m.Bytes - } - return nil -} - -type PhotoSize struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PhotoSize_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PhotoSize) Reset() { *m = PhotoSize{} } -func (m *PhotoSize) String() string { return proto.CompactTextString(m) } -func (*PhotoSize) ProtoMessage() {} -func (*PhotoSize) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1074} -} -func (m *PhotoSize) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PhotoSize.Unmarshal(m, b) +func (m *Messages_ArchivedStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Messages_ArchivedStickers.Unmarshal(m, b) } -func (m *PhotoSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PhotoSize.Marshal(b, m, deterministic) +func (m *Messages_ArchivedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Messages_ArchivedStickers.Marshal(b, m, deterministic) } -func (dst *PhotoSize) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhotoSize.Merge(dst, src) +func (dst *Messages_ArchivedStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_Messages_ArchivedStickers.Merge(dst, src) } -func (m *PhotoSize) XXX_Size() int { - return xxx_messageInfo_PhotoSize.Size(m) +func (m *Messages_ArchivedStickers) XXX_Size() int { + return xxx_messageInfo_Messages_ArchivedStickers.Size(m) } -func (m *PhotoSize) XXX_DiscardUnknown() { - xxx_messageInfo_PhotoSize.DiscardUnknown(m) +func (m *Messages_ArchivedStickers) XXX_DiscardUnknown() { + xxx_messageInfo_Messages_ArchivedStickers.DiscardUnknown(m) } -var xxx_messageInfo_PhotoSize proto.InternalMessageInfo +var xxx_messageInfo_Messages_ArchivedStickers proto.InternalMessageInfo -func (m *PhotoSize) GetConstructor() TLConstructor { +func (m *Messages_ArchivedStickers) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PhotoSize) GetData2() *PhotoSize_Data { +func (m *Messages_ArchivedStickers) GetData2() *Messages_ArchivedStickers_Data { if m != nil { return m.Data2 } return nil } -// photoSizeEmpty#e17e23c type:string = PhotoSize; -type TLPhotoSizeEmpty struct { - Data2 *PhotoSize_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// messages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers; +type TLMessagesArchivedStickers struct { + Data2 *Messages_ArchivedStickers_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhotoSizeEmpty) Reset() { *m = TLPhotoSizeEmpty{} } -func (m *TLPhotoSizeEmpty) String() string { return proto.CompactTextString(m) } -func (*TLPhotoSizeEmpty) ProtoMessage() {} -func (*TLPhotoSizeEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1075} +func (m *TLMessagesArchivedStickers) Reset() { *m = TLMessagesArchivedStickers{} } +func (m *TLMessagesArchivedStickers) String() string { return proto.CompactTextString(m) } +func (*TLMessagesArchivedStickers) ProtoMessage() {} +func (*TLMessagesArchivedStickers) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1034} } -func (m *TLPhotoSizeEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhotoSizeEmpty.Unmarshal(m, b) +func (m *TLMessagesArchivedStickers) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesArchivedStickers.Unmarshal(m, b) } -func (m *TLPhotoSizeEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhotoSizeEmpty.Marshal(b, m, deterministic) +func (m *TLMessagesArchivedStickers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesArchivedStickers.Marshal(b, m, deterministic) } -func (dst *TLPhotoSizeEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhotoSizeEmpty.Merge(dst, src) +func (dst *TLMessagesArchivedStickers) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesArchivedStickers.Merge(dst, src) } -func (m *TLPhotoSizeEmpty) XXX_Size() int { - return xxx_messageInfo_TLPhotoSizeEmpty.Size(m) +func (m *TLMessagesArchivedStickers) XXX_Size() int { + return xxx_messageInfo_TLMessagesArchivedStickers.Size(m) } -func (m *TLPhotoSizeEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhotoSizeEmpty.DiscardUnknown(m) +func (m *TLMessagesArchivedStickers) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesArchivedStickers.DiscardUnknown(m) } -var xxx_messageInfo_TLPhotoSizeEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLMessagesArchivedStickers proto.InternalMessageInfo -func (m *TLPhotoSizeEmpty) GetData2() *PhotoSize_Data { +func (m *TLMessagesArchivedStickers) GetData2() *Messages_ArchivedStickers_Data { if m != nil { return m.Data2 } return nil } -// photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize; -type TLPhotoSize struct { - Data2 *PhotoSize_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// BotInlineMessage <-- +// + TL_botInlineMessageMediaAuto +// + TL_botInlineMessageText +// + TL_botInlineMessageMediaGeo +// + TL_botInlineMessageMediaVenue +// + TL_botInlineMessageMediaContact +// +type BotInlineMessage_Data struct { + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` + ReplyMarkup *ReplyMarkup `protobuf:"bytes,3,opt,name=reply_markup,json=replyMarkup,proto3" json:"reply_markup,omitempty"` + NoWebpage bool `protobuf:"varint,4,opt,name=no_webpage,json=noWebpage,proto3" json:"no_webpage,omitempty"` + Geo *GeoPoint `protobuf:"bytes,5,opt,name=geo,proto3" json:"geo,omitempty"` + Period int32 `protobuf:"varint,6,opt,name=period,proto3" json:"period,omitempty"` + Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` + Address string `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"` + Provider string `protobuf:"bytes,9,opt,name=provider,proto3" json:"provider,omitempty"` + VenueId string `protobuf:"bytes,10,opt,name=venue_id,json=venueId,proto3" json:"venue_id,omitempty"` + VenueType string `protobuf:"bytes,11,opt,name=venue_type,json=venueType,proto3" json:"venue_type,omitempty"` + PhoneNumber string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` + FirstName string `protobuf:"bytes,13,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,14,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` + Vcard string `protobuf:"bytes,15,opt,name=vcard,proto3" json:"vcard,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhotoSize) Reset() { *m = TLPhotoSize{} } -func (m *TLPhotoSize) String() string { return proto.CompactTextString(m) } -func (*TLPhotoSize) ProtoMessage() {} -func (*TLPhotoSize) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1076} +func (m *BotInlineMessage_Data) Reset() { *m = BotInlineMessage_Data{} } +func (m *BotInlineMessage_Data) String() string { return proto.CompactTextString(m) } +func (*BotInlineMessage_Data) ProtoMessage() {} +func (*BotInlineMessage_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1035} } -func (m *TLPhotoSize) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhotoSize.Unmarshal(m, b) +func (m *BotInlineMessage_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BotInlineMessage_Data.Unmarshal(m, b) } -func (m *TLPhotoSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhotoSize.Marshal(b, m, deterministic) +func (m *BotInlineMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BotInlineMessage_Data.Marshal(b, m, deterministic) } -func (dst *TLPhotoSize) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhotoSize.Merge(dst, src) +func (dst *BotInlineMessage_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_BotInlineMessage_Data.Merge(dst, src) } -func (m *TLPhotoSize) XXX_Size() int { - return xxx_messageInfo_TLPhotoSize.Size(m) +func (m *BotInlineMessage_Data) XXX_Size() int { + return xxx_messageInfo_BotInlineMessage_Data.Size(m) } -func (m *TLPhotoSize) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhotoSize.DiscardUnknown(m) +func (m *BotInlineMessage_Data) XXX_DiscardUnknown() { + xxx_messageInfo_BotInlineMessage_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPhotoSize proto.InternalMessageInfo +var xxx_messageInfo_BotInlineMessage_Data proto.InternalMessageInfo -func (m *TLPhotoSize) GetData2() *PhotoSize_Data { +func (m *BotInlineMessage_Data) GetMessage() string { if m != nil { - return m.Data2 + return m.Message } - return nil + return "" } -// photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize; -type TLPhotoCachedSize struct { - Data2 *PhotoSize_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *BotInlineMessage_Data) GetEntities() []*MessageEntity { + if m != nil { + return m.Entities + } + return nil } -func (m *TLPhotoCachedSize) Reset() { *m = TLPhotoCachedSize{} } -func (m *TLPhotoCachedSize) String() string { return proto.CompactTextString(m) } -func (*TLPhotoCachedSize) ProtoMessage() {} -func (*TLPhotoCachedSize) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1077} -} -func (m *TLPhotoCachedSize) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhotoCachedSize.Unmarshal(m, b) -} -func (m *TLPhotoCachedSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhotoCachedSize.Marshal(b, m, deterministic) -} -func (dst *TLPhotoCachedSize) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhotoCachedSize.Merge(dst, src) -} -func (m *TLPhotoCachedSize) XXX_Size() int { - return xxx_messageInfo_TLPhotoCachedSize.Size(m) -} -func (m *TLPhotoCachedSize) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhotoCachedSize.DiscardUnknown(m) +func (m *BotInlineMessage_Data) GetReplyMarkup() *ReplyMarkup { + if m != nil { + return m.ReplyMarkup + } + return nil } -var xxx_messageInfo_TLPhotoCachedSize proto.InternalMessageInfo +func (m *BotInlineMessage_Data) GetNoWebpage() bool { + if m != nil { + return m.NoWebpage + } + return false +} -func (m *TLPhotoCachedSize) GetData2() *PhotoSize_Data { +func (m *BotInlineMessage_Data) GetGeo() *GeoPoint { if m != nil { - return m.Data2 + return m.Geo } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// PaymentRequestedInfo <-- -// + TL_paymentRequestedInfo -// -type PaymentRequestedInfo_Data struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` - Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` - ShippingAddress *PostAddress `protobuf:"bytes,4,opt,name=shipping_address,json=shippingAddress,proto3" json:"shipping_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *BotInlineMessage_Data) GetPeriod() int32 { + if m != nil { + return m.Period + } + return 0 } -func (m *PaymentRequestedInfo_Data) Reset() { *m = PaymentRequestedInfo_Data{} } -func (m *PaymentRequestedInfo_Data) String() string { return proto.CompactTextString(m) } -func (*PaymentRequestedInfo_Data) ProtoMessage() {} -func (*PaymentRequestedInfo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1078} -} -func (m *PaymentRequestedInfo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PaymentRequestedInfo_Data.Unmarshal(m, b) -} -func (m *PaymentRequestedInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PaymentRequestedInfo_Data.Marshal(b, m, deterministic) +func (m *BotInlineMessage_Data) GetTitle() string { + if m != nil { + return m.Title + } + return "" } -func (dst *PaymentRequestedInfo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_PaymentRequestedInfo_Data.Merge(dst, src) + +func (m *BotInlineMessage_Data) GetAddress() string { + if m != nil { + return m.Address + } + return "" } -func (m *PaymentRequestedInfo_Data) XXX_Size() int { - return xxx_messageInfo_PaymentRequestedInfo_Data.Size(m) + +func (m *BotInlineMessage_Data) GetProvider() string { + if m != nil { + return m.Provider + } + return "" } -func (m *PaymentRequestedInfo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_PaymentRequestedInfo_Data.DiscardUnknown(m) + +func (m *BotInlineMessage_Data) GetVenueId() string { + if m != nil { + return m.VenueId + } + return "" } -var xxx_messageInfo_PaymentRequestedInfo_Data proto.InternalMessageInfo +func (m *BotInlineMessage_Data) GetVenueType() string { + if m != nil { + return m.VenueType + } + return "" +} -func (m *PaymentRequestedInfo_Data) GetName() string { +func (m *BotInlineMessage_Data) GetPhoneNumber() string { if m != nil { - return m.Name + return m.PhoneNumber } return "" } -func (m *PaymentRequestedInfo_Data) GetPhone() string { +func (m *BotInlineMessage_Data) GetFirstName() string { if m != nil { - return m.Phone + return m.FirstName } return "" } -func (m *PaymentRequestedInfo_Data) GetEmail() string { +func (m *BotInlineMessage_Data) GetLastName() string { if m != nil { - return m.Email + return m.LastName } return "" } -func (m *PaymentRequestedInfo_Data) GetShippingAddress() *PostAddress { +func (m *BotInlineMessage_Data) GetVcard() string { if m != nil { - return m.ShippingAddress + return m.Vcard } - return nil + return "" } -type PaymentRequestedInfo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *PaymentRequestedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type BotInlineMessage struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PaymentRequestedInfo) Reset() { *m = PaymentRequestedInfo{} } -func (m *PaymentRequestedInfo) String() string { return proto.CompactTextString(m) } -func (*PaymentRequestedInfo) ProtoMessage() {} -func (*PaymentRequestedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1079} +func (m *BotInlineMessage) Reset() { *m = BotInlineMessage{} } +func (m *BotInlineMessage) String() string { return proto.CompactTextString(m) } +func (*BotInlineMessage) ProtoMessage() {} +func (*BotInlineMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1036} } -func (m *PaymentRequestedInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PaymentRequestedInfo.Unmarshal(m, b) +func (m *BotInlineMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BotInlineMessage.Unmarshal(m, b) } -func (m *PaymentRequestedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PaymentRequestedInfo.Marshal(b, m, deterministic) +func (m *BotInlineMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BotInlineMessage.Marshal(b, m, deterministic) } -func (dst *PaymentRequestedInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_PaymentRequestedInfo.Merge(dst, src) +func (dst *BotInlineMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_BotInlineMessage.Merge(dst, src) } -func (m *PaymentRequestedInfo) XXX_Size() int { - return xxx_messageInfo_PaymentRequestedInfo.Size(m) +func (m *BotInlineMessage) XXX_Size() int { + return xxx_messageInfo_BotInlineMessage.Size(m) } -func (m *PaymentRequestedInfo) XXX_DiscardUnknown() { - xxx_messageInfo_PaymentRequestedInfo.DiscardUnknown(m) +func (m *BotInlineMessage) XXX_DiscardUnknown() { + xxx_messageInfo_BotInlineMessage.DiscardUnknown(m) } -var xxx_messageInfo_PaymentRequestedInfo proto.InternalMessageInfo +var xxx_messageInfo_BotInlineMessage proto.InternalMessageInfo -func (m *PaymentRequestedInfo) GetConstructor() TLConstructor { +func (m *BotInlineMessage) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *PaymentRequestedInfo) GetData2() *PaymentRequestedInfo_Data { +func (m *BotInlineMessage) GetData2() *BotInlineMessage_Data { if m != nil { return m.Data2 } return nil } -// paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo; -type TLPaymentRequestedInfo struct { - Data2 *PaymentRequestedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +type TLBotInlineMessageMediaAuto struct { + Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPaymentRequestedInfo) Reset() { *m = TLPaymentRequestedInfo{} } -func (m *TLPaymentRequestedInfo) String() string { return proto.CompactTextString(m) } -func (*TLPaymentRequestedInfo) ProtoMessage() {} -func (*TLPaymentRequestedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1080} +func (m *TLBotInlineMessageMediaAuto) Reset() { *m = TLBotInlineMessageMediaAuto{} } +func (m *TLBotInlineMessageMediaAuto) String() string { return proto.CompactTextString(m) } +func (*TLBotInlineMessageMediaAuto) ProtoMessage() {} +func (*TLBotInlineMessageMediaAuto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1037} } -func (m *TLPaymentRequestedInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPaymentRequestedInfo.Unmarshal(m, b) +func (m *TLBotInlineMessageMediaAuto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBotInlineMessageMediaAuto.Unmarshal(m, b) } -func (m *TLPaymentRequestedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPaymentRequestedInfo.Marshal(b, m, deterministic) +func (m *TLBotInlineMessageMediaAuto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBotInlineMessageMediaAuto.Marshal(b, m, deterministic) } -func (dst *TLPaymentRequestedInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPaymentRequestedInfo.Merge(dst, src) +func (dst *TLBotInlineMessageMediaAuto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBotInlineMessageMediaAuto.Merge(dst, src) } -func (m *TLPaymentRequestedInfo) XXX_Size() int { - return xxx_messageInfo_TLPaymentRequestedInfo.Size(m) +func (m *TLBotInlineMessageMediaAuto) XXX_Size() int { + return xxx_messageInfo_TLBotInlineMessageMediaAuto.Size(m) } -func (m *TLPaymentRequestedInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLPaymentRequestedInfo.DiscardUnknown(m) +func (m *TLBotInlineMessageMediaAuto) XXX_DiscardUnknown() { + xxx_messageInfo_TLBotInlineMessageMediaAuto.DiscardUnknown(m) } -var xxx_messageInfo_TLPaymentRequestedInfo proto.InternalMessageInfo +var xxx_messageInfo_TLBotInlineMessageMediaAuto proto.InternalMessageInfo -func (m *TLPaymentRequestedInfo) GetData2() *PaymentRequestedInfo_Data { +func (m *TLBotInlineMessageMediaAuto) GetData2() *BotInlineMessage_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputContact <-- -// + TL_inputPhoneContact -// -type InputContact_Data struct { - ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` - FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +type TLBotInlineMessageText struct { + Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputContact_Data) Reset() { *m = InputContact_Data{} } -func (m *InputContact_Data) String() string { return proto.CompactTextString(m) } -func (*InputContact_Data) ProtoMessage() {} -func (*InputContact_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1081} -} -func (m *InputContact_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputContact_Data.Unmarshal(m, b) -} -func (m *InputContact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputContact_Data.Marshal(b, m, deterministic) +func (m *TLBotInlineMessageText) Reset() { *m = TLBotInlineMessageText{} } +func (m *TLBotInlineMessageText) String() string { return proto.CompactTextString(m) } +func (*TLBotInlineMessageText) ProtoMessage() {} +func (*TLBotInlineMessageText) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1038} } -func (dst *InputContact_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputContact_Data.Merge(dst, src) +func (m *TLBotInlineMessageText) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBotInlineMessageText.Unmarshal(m, b) } -func (m *InputContact_Data) XXX_Size() int { - return xxx_messageInfo_InputContact_Data.Size(m) +func (m *TLBotInlineMessageText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBotInlineMessageText.Marshal(b, m, deterministic) } -func (m *InputContact_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputContact_Data.DiscardUnknown(m) +func (dst *TLBotInlineMessageText) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBotInlineMessageText.Merge(dst, src) } - -var xxx_messageInfo_InputContact_Data proto.InternalMessageInfo - -func (m *InputContact_Data) GetClientId() int64 { - if m != nil { - return m.ClientId - } - return 0 +func (m *TLBotInlineMessageText) XXX_Size() int { + return xxx_messageInfo_TLBotInlineMessageText.Size(m) } - -func (m *InputContact_Data) GetPhone() string { - if m != nil { - return m.Phone - } - return "" +func (m *TLBotInlineMessageText) XXX_DiscardUnknown() { + xxx_messageInfo_TLBotInlineMessageText.DiscardUnknown(m) } -func (m *InputContact_Data) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} +var xxx_messageInfo_TLBotInlineMessageText proto.InternalMessageInfo -func (m *InputContact_Data) GetLastName() string { +func (m *TLBotInlineMessageText) GetData2() *BotInlineMessage_Data { if m != nil { - return m.LastName + return m.Data2 } - return "" + return nil } -type InputContact struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// botInlineMessageMediaGeo#b722de65 flags:# geo:GeoPoint period:int reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +type TLBotInlineMessageMediaGeo struct { + Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputContact) Reset() { *m = InputContact{} } -func (m *InputContact) String() string { return proto.CompactTextString(m) } -func (*InputContact) ProtoMessage() {} -func (*InputContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1082} +func (m *TLBotInlineMessageMediaGeo) Reset() { *m = TLBotInlineMessageMediaGeo{} } +func (m *TLBotInlineMessageMediaGeo) String() string { return proto.CompactTextString(m) } +func (*TLBotInlineMessageMediaGeo) ProtoMessage() {} +func (*TLBotInlineMessageMediaGeo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1039} } -func (m *InputContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputContact.Unmarshal(m, b) +func (m *TLBotInlineMessageMediaGeo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBotInlineMessageMediaGeo.Unmarshal(m, b) } -func (m *InputContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputContact.Marshal(b, m, deterministic) +func (m *TLBotInlineMessageMediaGeo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBotInlineMessageMediaGeo.Marshal(b, m, deterministic) } -func (dst *InputContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputContact.Merge(dst, src) +func (dst *TLBotInlineMessageMediaGeo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBotInlineMessageMediaGeo.Merge(dst, src) } -func (m *InputContact) XXX_Size() int { - return xxx_messageInfo_InputContact.Size(m) +func (m *TLBotInlineMessageMediaGeo) XXX_Size() int { + return xxx_messageInfo_TLBotInlineMessageMediaGeo.Size(m) } -func (m *InputContact) XXX_DiscardUnknown() { - xxx_messageInfo_InputContact.DiscardUnknown(m) +func (m *TLBotInlineMessageMediaGeo) XXX_DiscardUnknown() { + xxx_messageInfo_TLBotInlineMessageMediaGeo.DiscardUnknown(m) } -var xxx_messageInfo_InputContact proto.InternalMessageInfo - -func (m *InputContact) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLBotInlineMessageMediaGeo proto.InternalMessageInfo -func (m *InputContact) GetData2() *InputContact_Data { +func (m *TLBotInlineMessageMediaGeo) GetData2() *BotInlineMessage_Data { if m != nil { return m.Data2 } return nil } -// inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact; -type TLInputPhoneContact struct { - Data2 *InputContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +type TLBotInlineMessageMediaVenue struct { + Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputPhoneContact) Reset() { *m = TLInputPhoneContact{} } -func (m *TLInputPhoneContact) String() string { return proto.CompactTextString(m) } -func (*TLInputPhoneContact) ProtoMessage() {} -func (*TLInputPhoneContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1083} +func (m *TLBotInlineMessageMediaVenue) Reset() { *m = TLBotInlineMessageMediaVenue{} } +func (m *TLBotInlineMessageMediaVenue) String() string { return proto.CompactTextString(m) } +func (*TLBotInlineMessageMediaVenue) ProtoMessage() {} +func (*TLBotInlineMessageMediaVenue) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1040} } -func (m *TLInputPhoneContact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputPhoneContact.Unmarshal(m, b) +func (m *TLBotInlineMessageMediaVenue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBotInlineMessageMediaVenue.Unmarshal(m, b) } -func (m *TLInputPhoneContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputPhoneContact.Marshal(b, m, deterministic) +func (m *TLBotInlineMessageMediaVenue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBotInlineMessageMediaVenue.Marshal(b, m, deterministic) } -func (dst *TLInputPhoneContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputPhoneContact.Merge(dst, src) +func (dst *TLBotInlineMessageMediaVenue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBotInlineMessageMediaVenue.Merge(dst, src) } -func (m *TLInputPhoneContact) XXX_Size() int { - return xxx_messageInfo_TLInputPhoneContact.Size(m) +func (m *TLBotInlineMessageMediaVenue) XXX_Size() int { + return xxx_messageInfo_TLBotInlineMessageMediaVenue.Size(m) } -func (m *TLInputPhoneContact) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputPhoneContact.DiscardUnknown(m) +func (m *TLBotInlineMessageMediaVenue) XXX_DiscardUnknown() { + xxx_messageInfo_TLBotInlineMessageMediaVenue.DiscardUnknown(m) } -var xxx_messageInfo_TLInputPhoneContact proto.InternalMessageInfo +var xxx_messageInfo_TLBotInlineMessageMediaVenue proto.InternalMessageInfo -func (m *TLInputPhoneContact) GetData2() *InputContact_Data { +func (m *TLBotInlineMessageMediaVenue) GetData2() *BotInlineMessage_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// Photo <-- -// + TL_photoEmpty -// + TL_photo -// + TL_photoLayer86 -// -type Photo_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - HasStickers bool `protobuf:"varint,2,opt,name=has_stickers,json=hasStickers,proto3" json:"has_stickers,omitempty"` - AccessHash int64 `protobuf:"varint,3,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - Date int32 `protobuf:"varint,4,opt,name=date,proto3" json:"date,omitempty"` - Sizes []*PhotoSize `protobuf:"bytes,5,rep,name=sizes,proto3" json:"sizes,omitempty"` - FileReference []byte `protobuf:"bytes,6,opt,name=file_reference,json=fileReference,proto3" json:"file_reference,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +type TLBotInlineMessageMediaContact struct { + Data2 *BotInlineMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Photo_Data) Reset() { *m = Photo_Data{} } -func (m *Photo_Data) String() string { return proto.CompactTextString(m) } -func (*Photo_Data) ProtoMessage() {} -func (*Photo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1084} +func (m *TLBotInlineMessageMediaContact) Reset() { *m = TLBotInlineMessageMediaContact{} } +func (m *TLBotInlineMessageMediaContact) String() string { return proto.CompactTextString(m) } +func (*TLBotInlineMessageMediaContact) ProtoMessage() {} +func (*TLBotInlineMessageMediaContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1041} } -func (m *Photo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Photo_Data.Unmarshal(m, b) +func (m *TLBotInlineMessageMediaContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBotInlineMessageMediaContact.Unmarshal(m, b) } -func (m *Photo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Photo_Data.Marshal(b, m, deterministic) +func (m *TLBotInlineMessageMediaContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBotInlineMessageMediaContact.Marshal(b, m, deterministic) } -func (dst *Photo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Photo_Data.Merge(dst, src) +func (dst *TLBotInlineMessageMediaContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBotInlineMessageMediaContact.Merge(dst, src) } -func (m *Photo_Data) XXX_Size() int { - return xxx_messageInfo_Photo_Data.Size(m) +func (m *TLBotInlineMessageMediaContact) XXX_Size() int { + return xxx_messageInfo_TLBotInlineMessageMediaContact.Size(m) } -func (m *Photo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Photo_Data.DiscardUnknown(m) +func (m *TLBotInlineMessageMediaContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLBotInlineMessageMediaContact.DiscardUnknown(m) } -var xxx_messageInfo_Photo_Data proto.InternalMessageInfo +var xxx_messageInfo_TLBotInlineMessageMediaContact proto.InternalMessageInfo -func (m *Photo_Data) GetId() int64 { +func (m *TLBotInlineMessageMediaContact) GetData2() *BotInlineMessage_Data { if m != nil { - return m.Id + return m.Data2 } - return 0 + return nil } -func (m *Photo_Data) GetHasStickers() bool { - if m != nil { - return m.HasStickers - } - return false +// ///////////////////////////////////////////////////////////////////////////// +// help_RecentMeUrls <-- +// + TL_help_recentMeUrls +// +type Help_RecentMeUrls_Data struct { + Urls []*RecentMeUrl `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"` + Chats []*Chat `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` + Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Photo_Data) GetAccessHash() int64 { - if m != nil { - return m.AccessHash - } - return 0 +func (m *Help_RecentMeUrls_Data) Reset() { *m = Help_RecentMeUrls_Data{} } +func (m *Help_RecentMeUrls_Data) String() string { return proto.CompactTextString(m) } +func (*Help_RecentMeUrls_Data) ProtoMessage() {} +func (*Help_RecentMeUrls_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1042} +} +func (m *Help_RecentMeUrls_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_RecentMeUrls_Data.Unmarshal(m, b) +} +func (m *Help_RecentMeUrls_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_RecentMeUrls_Data.Marshal(b, m, deterministic) +} +func (dst *Help_RecentMeUrls_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_RecentMeUrls_Data.Merge(dst, src) +} +func (m *Help_RecentMeUrls_Data) XXX_Size() int { + return xxx_messageInfo_Help_RecentMeUrls_Data.Size(m) +} +func (m *Help_RecentMeUrls_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_RecentMeUrls_Data.DiscardUnknown(m) } -func (m *Photo_Data) GetDate() int32 { +var xxx_messageInfo_Help_RecentMeUrls_Data proto.InternalMessageInfo + +func (m *Help_RecentMeUrls_Data) GetUrls() []*RecentMeUrl { if m != nil { - return m.Date + return m.Urls } - return 0 + return nil } -func (m *Photo_Data) GetSizes() []*PhotoSize { +func (m *Help_RecentMeUrls_Data) GetChats() []*Chat { if m != nil { - return m.Sizes + return m.Chats } return nil } -func (m *Photo_Data) GetFileReference() []byte { +func (m *Help_RecentMeUrls_Data) GetUsers() []*User { if m != nil { - return m.FileReference + return m.Users } return nil } -type Photo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_RecentMeUrls struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Help_RecentMeUrls_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Photo) Reset() { *m = Photo{} } -func (m *Photo) String() string { return proto.CompactTextString(m) } -func (*Photo) ProtoMessage() {} -func (*Photo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1085} +func (m *Help_RecentMeUrls) Reset() { *m = Help_RecentMeUrls{} } +func (m *Help_RecentMeUrls) String() string { return proto.CompactTextString(m) } +func (*Help_RecentMeUrls) ProtoMessage() {} +func (*Help_RecentMeUrls) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1043} } -func (m *Photo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Photo.Unmarshal(m, b) +func (m *Help_RecentMeUrls) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_RecentMeUrls.Unmarshal(m, b) } -func (m *Photo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Photo.Marshal(b, m, deterministic) +func (m *Help_RecentMeUrls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_RecentMeUrls.Marshal(b, m, deterministic) } -func (dst *Photo) XXX_Merge(src proto.Message) { - xxx_messageInfo_Photo.Merge(dst, src) +func (dst *Help_RecentMeUrls) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_RecentMeUrls.Merge(dst, src) } -func (m *Photo) XXX_Size() int { - return xxx_messageInfo_Photo.Size(m) +func (m *Help_RecentMeUrls) XXX_Size() int { + return xxx_messageInfo_Help_RecentMeUrls.Size(m) } -func (m *Photo) XXX_DiscardUnknown() { - xxx_messageInfo_Photo.DiscardUnknown(m) +func (m *Help_RecentMeUrls) XXX_DiscardUnknown() { + xxx_messageInfo_Help_RecentMeUrls.DiscardUnknown(m) } -var xxx_messageInfo_Photo proto.InternalMessageInfo +var xxx_messageInfo_Help_RecentMeUrls proto.InternalMessageInfo -func (m *Photo) GetConstructor() TLConstructor { +func (m *Help_RecentMeUrls) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Photo) GetData2() *Photo_Data { +func (m *Help_RecentMeUrls) GetData2() *Help_RecentMeUrls_Data { if m != nil { return m.Data2 } return nil } -// photoEmpty#2331b22d id:long = Photo; -type TLPhotoEmpty struct { - Data2 *Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.recentMeUrls#e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls; +type TLHelpRecentMeUrls struct { + Data2 *Help_RecentMeUrls_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhotoEmpty) Reset() { *m = TLPhotoEmpty{} } -func (m *TLPhotoEmpty) String() string { return proto.CompactTextString(m) } -func (*TLPhotoEmpty) ProtoMessage() {} -func (*TLPhotoEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1086} +func (m *TLHelpRecentMeUrls) Reset() { *m = TLHelpRecentMeUrls{} } +func (m *TLHelpRecentMeUrls) String() string { return proto.CompactTextString(m) } +func (*TLHelpRecentMeUrls) ProtoMessage() {} +func (*TLHelpRecentMeUrls) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1044} } -func (m *TLPhotoEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhotoEmpty.Unmarshal(m, b) +func (m *TLHelpRecentMeUrls) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpRecentMeUrls.Unmarshal(m, b) } -func (m *TLPhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhotoEmpty.Marshal(b, m, deterministic) +func (m *TLHelpRecentMeUrls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpRecentMeUrls.Marshal(b, m, deterministic) } -func (dst *TLPhotoEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhotoEmpty.Merge(dst, src) +func (dst *TLHelpRecentMeUrls) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpRecentMeUrls.Merge(dst, src) } -func (m *TLPhotoEmpty) XXX_Size() int { - return xxx_messageInfo_TLPhotoEmpty.Size(m) +func (m *TLHelpRecentMeUrls) XXX_Size() int { + return xxx_messageInfo_TLHelpRecentMeUrls.Size(m) } -func (m *TLPhotoEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhotoEmpty.DiscardUnknown(m) +func (m *TLHelpRecentMeUrls) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpRecentMeUrls.DiscardUnknown(m) } -var xxx_messageInfo_TLPhotoEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLHelpRecentMeUrls proto.InternalMessageInfo -func (m *TLPhotoEmpty) GetData2() *Photo_Data { +func (m *TLHelpRecentMeUrls) GetData2() *Help_RecentMeUrls_Data { if m != nil { return m.Data2 } return nil } -// photo#9288dd29 flags:# has_stickers:flags.0?true id:long access_hash:long date:int sizes:Vector = Photo; -type TLPhoto struct { - Data2 *Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// InputSingleMedia <-- +// + TL_inputSingleMedia +// +type InputSingleMedia_Data struct { + Media *InputMedia `protobuf:"bytes,1,opt,name=media,proto3" json:"media,omitempty"` + RandomId int64 `protobuf:"varint,2,opt,name=random_id,json=randomId,proto3" json:"random_id,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhoto) Reset() { *m = TLPhoto{} } -func (m *TLPhoto) String() string { return proto.CompactTextString(m) } -func (*TLPhoto) ProtoMessage() {} -func (*TLPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1087} +func (m *InputSingleMedia_Data) Reset() { *m = InputSingleMedia_Data{} } +func (m *InputSingleMedia_Data) String() string { return proto.CompactTextString(m) } +func (*InputSingleMedia_Data) ProtoMessage() {} +func (*InputSingleMedia_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1045} } -func (m *TLPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhoto.Unmarshal(m, b) +func (m *InputSingleMedia_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputSingleMedia_Data.Unmarshal(m, b) } -func (m *TLPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhoto.Marshal(b, m, deterministic) +func (m *InputSingleMedia_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputSingleMedia_Data.Marshal(b, m, deterministic) } -func (dst *TLPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhoto.Merge(dst, src) +func (dst *InputSingleMedia_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputSingleMedia_Data.Merge(dst, src) } -func (m *TLPhoto) XXX_Size() int { - return xxx_messageInfo_TLPhoto.Size(m) +func (m *InputSingleMedia_Data) XXX_Size() int { + return xxx_messageInfo_InputSingleMedia_Data.Size(m) } -func (m *TLPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhoto.DiscardUnknown(m) +func (m *InputSingleMedia_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputSingleMedia_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLPhoto proto.InternalMessageInfo +var xxx_messageInfo_InputSingleMedia_Data proto.InternalMessageInfo -func (m *TLPhoto) GetData2() *Photo_Data { +func (m *InputSingleMedia_Data) GetMedia() *InputMedia { if m != nil { - return m.Data2 + return m.Media } return nil } -// photo#9c477dd8 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector = Photo; -type TLPhotoLayer86 struct { - Data2 *Photo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputSingleMedia_Data) GetRandomId() int64 { + if m != nil { + return m.RandomId + } + return 0 } -func (m *TLPhotoLayer86) Reset() { *m = TLPhotoLayer86{} } -func (m *TLPhotoLayer86) String() string { return proto.CompactTextString(m) } -func (*TLPhotoLayer86) ProtoMessage() {} -func (*TLPhotoLayer86) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1088} +func (m *InputSingleMedia_Data) GetMessage() string { + if m != nil { + return m.Message + } + return "" } -func (m *TLPhotoLayer86) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhotoLayer86.Unmarshal(m, b) + +func (m *InputSingleMedia_Data) GetEntities() []*MessageEntity { + if m != nil { + return m.Entities + } + return nil } -func (m *TLPhotoLayer86) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhotoLayer86.Marshal(b, m, deterministic) + +type InputSingleMedia struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputSingleMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (dst *TLPhotoLayer86) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhotoLayer86.Merge(dst, src) + +func (m *InputSingleMedia) Reset() { *m = InputSingleMedia{} } +func (m *InputSingleMedia) String() string { return proto.CompactTextString(m) } +func (*InputSingleMedia) ProtoMessage() {} +func (*InputSingleMedia) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1046} } -func (m *TLPhotoLayer86) XXX_Size() int { - return xxx_messageInfo_TLPhotoLayer86.Size(m) +func (m *InputSingleMedia) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputSingleMedia.Unmarshal(m, b) } -func (m *TLPhotoLayer86) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhotoLayer86.DiscardUnknown(m) +func (m *InputSingleMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputSingleMedia.Marshal(b, m, deterministic) +} +func (dst *InputSingleMedia) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputSingleMedia.Merge(dst, src) +} +func (m *InputSingleMedia) XXX_Size() int { + return xxx_messageInfo_InputSingleMedia.Size(m) +} +func (m *InputSingleMedia) XXX_DiscardUnknown() { + xxx_messageInfo_InputSingleMedia.DiscardUnknown(m) } -var xxx_messageInfo_TLPhotoLayer86 proto.InternalMessageInfo +var xxx_messageInfo_InputSingleMedia proto.InternalMessageInfo -func (m *TLPhotoLayer86) GetData2() *Photo_Data { +func (m *InputSingleMedia) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputSingleMedia) GetData2() *InputSingleMedia_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// User <-- -// + TL_userEmpty -// + TL_user -// -type User_Data struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Self bool `protobuf:"varint,2,opt,name=self,proto3" json:"self,omitempty"` - Contact bool `protobuf:"varint,3,opt,name=contact,proto3" json:"contact,omitempty"` - MutualContact bool `protobuf:"varint,4,opt,name=mutual_contact,json=mutualContact,proto3" json:"mutual_contact,omitempty"` - Deleted bool `protobuf:"varint,5,opt,name=deleted,proto3" json:"deleted,omitempty"` - Bot bool `protobuf:"varint,6,opt,name=bot,proto3" json:"bot,omitempty"` - BotChatHistory bool `protobuf:"varint,7,opt,name=bot_chat_history,json=botChatHistory,proto3" json:"bot_chat_history,omitempty"` - BotNochats bool `protobuf:"varint,8,opt,name=bot_nochats,json=botNochats,proto3" json:"bot_nochats,omitempty"` - Verified bool `protobuf:"varint,9,opt,name=verified,proto3" json:"verified,omitempty"` - Restricted bool `protobuf:"varint,10,opt,name=restricted,proto3" json:"restricted,omitempty"` - Min bool `protobuf:"varint,11,opt,name=min,proto3" json:"min,omitempty"` - BotInlineGeo bool `protobuf:"varint,12,opt,name=bot_inline_geo,json=botInlineGeo,proto3" json:"bot_inline_geo,omitempty"` - AccessHash int64 `protobuf:"varint,13,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - FirstName string `protobuf:"bytes,14,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,15,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Username string `protobuf:"bytes,16,opt,name=username,proto3" json:"username,omitempty"` - Phone string `protobuf:"bytes,17,opt,name=phone,proto3" json:"phone,omitempty"` - Photo *UserProfilePhoto `protobuf:"bytes,18,opt,name=photo,proto3" json:"photo,omitempty"` - Status *UserStatus `protobuf:"bytes,19,opt,name=status,proto3" json:"status,omitempty"` - BotInfoVersion int32 `protobuf:"varint,20,opt,name=bot_info_version,json=botInfoVersion,proto3" json:"bot_info_version,omitempty"` - RestrictionReason string `protobuf:"bytes,21,opt,name=restriction_reason,json=restrictionReason,proto3" json:"restriction_reason,omitempty"` - BotInlinePlaceholder string `protobuf:"bytes,22,opt,name=bot_inline_placeholder,json=botInlinePlaceholder,proto3" json:"bot_inline_placeholder,omitempty"` - LangCode string `protobuf:"bytes,23,opt,name=lang_code,json=langCode,proto3" json:"lang_code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia; +type TLInputSingleMedia struct { + Data2 *InputSingleMedia_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *User_Data) Reset() { *m = User_Data{} } -func (m *User_Data) String() string { return proto.CompactTextString(m) } -func (*User_Data) ProtoMessage() {} -func (*User_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1089} +func (m *TLInputSingleMedia) Reset() { *m = TLInputSingleMedia{} } +func (m *TLInputSingleMedia) String() string { return proto.CompactTextString(m) } +func (*TLInputSingleMedia) ProtoMessage() {} +func (*TLInputSingleMedia) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1047} } -func (m *User_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_User_Data.Unmarshal(m, b) +func (m *TLInputSingleMedia) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputSingleMedia.Unmarshal(m, b) } -func (m *User_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_User_Data.Marshal(b, m, deterministic) +func (m *TLInputSingleMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputSingleMedia.Marshal(b, m, deterministic) } -func (dst *User_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_User_Data.Merge(dst, src) +func (dst *TLInputSingleMedia) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputSingleMedia.Merge(dst, src) } -func (m *User_Data) XXX_Size() int { - return xxx_messageInfo_User_Data.Size(m) +func (m *TLInputSingleMedia) XXX_Size() int { + return xxx_messageInfo_TLInputSingleMedia.Size(m) } -func (m *User_Data) XXX_DiscardUnknown() { - xxx_messageInfo_User_Data.DiscardUnknown(m) +func (m *TLInputSingleMedia) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputSingleMedia.DiscardUnknown(m) } -var xxx_messageInfo_User_Data proto.InternalMessageInfo +var xxx_messageInfo_TLInputSingleMedia proto.InternalMessageInfo -func (m *User_Data) GetId() int32 { +func (m *TLInputSingleMedia) GetData2() *InputSingleMedia_Data { if m != nil { - return m.Id + return m.Data2 } - return 0 + return nil } -func (m *User_Data) GetSelf() bool { - if m != nil { - return m.Self - } - return false +// ///////////////////////////////////////////////////////////////////////////// +// InputPeer <-- +// + TL_inputPeerEmpty +// + TL_inputPeerSelf +// + TL_inputPeerChat +// + TL_inputPeerUser +// + TL_inputPeerChannel +// +type InputPeer_Data struct { + ChatId int32 `protobuf:"varint,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + AccessHash int64 `protobuf:"varint,3,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + ChannelId int32 `protobuf:"varint,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *User_Data) GetContact() bool { - if m != nil { - return m.Contact - } - return false +func (m *InputPeer_Data) Reset() { *m = InputPeer_Data{} } +func (m *InputPeer_Data) String() string { return proto.CompactTextString(m) } +func (*InputPeer_Data) ProtoMessage() {} +func (*InputPeer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1048} +} +func (m *InputPeer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPeer_Data.Unmarshal(m, b) +} +func (m *InputPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPeer_Data.Marshal(b, m, deterministic) +} +func (dst *InputPeer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPeer_Data.Merge(dst, src) +} +func (m *InputPeer_Data) XXX_Size() int { + return xxx_messageInfo_InputPeer_Data.Size(m) +} +func (m *InputPeer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputPeer_Data.DiscardUnknown(m) } -func (m *User_Data) GetMutualContact() bool { +var xxx_messageInfo_InputPeer_Data proto.InternalMessageInfo + +func (m *InputPeer_Data) GetChatId() int32 { if m != nil { - return m.MutualContact + return m.ChatId } - return false + return 0 } -func (m *User_Data) GetDeleted() bool { +func (m *InputPeer_Data) GetUserId() int32 { if m != nil { - return m.Deleted + return m.UserId } - return false + return 0 } -func (m *User_Data) GetBot() bool { +func (m *InputPeer_Data) GetAccessHash() int64 { if m != nil { - return m.Bot + return m.AccessHash } - return false + return 0 } -func (m *User_Data) GetBotChatHistory() bool { +func (m *InputPeer_Data) GetChannelId() int32 { if m != nil { - return m.BotChatHistory + return m.ChannelId } - return false + return 0 } -func (m *User_Data) GetBotNochats() bool { - if m != nil { - return m.BotNochats - } - return false +type InputPeer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *User_Data) GetVerified() bool { - if m != nil { - return m.Verified - } - return false +func (m *InputPeer) Reset() { *m = InputPeer{} } +func (m *InputPeer) String() string { return proto.CompactTextString(m) } +func (*InputPeer) ProtoMessage() {} +func (*InputPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1049} } - -func (m *User_Data) GetRestricted() bool { - if m != nil { - return m.Restricted - } - return false +func (m *InputPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputPeer.Unmarshal(m, b) } - -func (m *User_Data) GetMin() bool { - if m != nil { - return m.Min - } - return false +func (m *InputPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputPeer.Marshal(b, m, deterministic) } - -func (m *User_Data) GetBotInlineGeo() bool { - if m != nil { - return m.BotInlineGeo - } - return false +func (dst *InputPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputPeer.Merge(dst, src) } - -func (m *User_Data) GetAccessHash() int64 { - if m != nil { - return m.AccessHash - } - return 0 +func (m *InputPeer) XXX_Size() int { + return xxx_messageInfo_InputPeer.Size(m) } - -func (m *User_Data) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" +func (m *InputPeer) XXX_DiscardUnknown() { + xxx_messageInfo_InputPeer.DiscardUnknown(m) } -func (m *User_Data) GetLastName() string { +var xxx_messageInfo_InputPeer proto.InternalMessageInfo + +func (m *InputPeer) GetConstructor() TLConstructor { if m != nil { - return m.LastName + return m.Constructor } - return "" + return TLConstructor_CRC32_UNKNOWN } -func (m *User_Data) GetUsername() string { +func (m *InputPeer) GetData2() *InputPeer_Data { if m != nil { - return m.Username + return m.Data2 } - return "" + return nil } -func (m *User_Data) GetPhone() string { - if m != nil { - return m.Phone - } - return "" +// inputPeerEmpty#7f3b18ea = InputPeer; +type TLInputPeerEmpty struct { + Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *User_Data) GetPhoto() *UserProfilePhoto { - if m != nil { - return m.Photo - } - return nil +func (m *TLInputPeerEmpty) Reset() { *m = TLInputPeerEmpty{} } +func (m *TLInputPeerEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputPeerEmpty) ProtoMessage() {} +func (*TLInputPeerEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1050} +} +func (m *TLInputPeerEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPeerEmpty.Unmarshal(m, b) +} +func (m *TLInputPeerEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPeerEmpty.Marshal(b, m, deterministic) +} +func (dst *TLInputPeerEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPeerEmpty.Merge(dst, src) +} +func (m *TLInputPeerEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputPeerEmpty.Size(m) +} +func (m *TLInputPeerEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPeerEmpty.DiscardUnknown(m) } -func (m *User_Data) GetStatus() *UserStatus { +var xxx_messageInfo_TLInputPeerEmpty proto.InternalMessageInfo + +func (m *TLInputPeerEmpty) GetData2() *InputPeer_Data { if m != nil { - return m.Status + return m.Data2 } return nil } -func (m *User_Data) GetBotInfoVersion() int32 { - if m != nil { - return m.BotInfoVersion - } - return 0 +// inputPeerSelf#7da07ec9 = InputPeer; +type TLInputPeerSelf struct { + Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *User_Data) GetRestrictionReason() string { - if m != nil { - return m.RestrictionReason - } - return "" +func (m *TLInputPeerSelf) Reset() { *m = TLInputPeerSelf{} } +func (m *TLInputPeerSelf) String() string { return proto.CompactTextString(m) } +func (*TLInputPeerSelf) ProtoMessage() {} +func (*TLInputPeerSelf) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1051} } - -func (m *User_Data) GetBotInlinePlaceholder() string { - if m != nil { - return m.BotInlinePlaceholder - } - return "" +func (m *TLInputPeerSelf) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPeerSelf.Unmarshal(m, b) +} +func (m *TLInputPeerSelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPeerSelf.Marshal(b, m, deterministic) +} +func (dst *TLInputPeerSelf) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPeerSelf.Merge(dst, src) +} +func (m *TLInputPeerSelf) XXX_Size() int { + return xxx_messageInfo_TLInputPeerSelf.Size(m) +} +func (m *TLInputPeerSelf) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPeerSelf.DiscardUnknown(m) } -func (m *User_Data) GetLangCode() string { +var xxx_messageInfo_TLInputPeerSelf proto.InternalMessageInfo + +func (m *TLInputPeerSelf) GetData2() *InputPeer_Data { if m != nil { - return m.LangCode + return m.Data2 } - return "" + return nil } -type User struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *User_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPeerChat#179be863 chat_id:int = InputPeer; +type TLInputPeerChat struct { + Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *User) Reset() { *m = User{} } -func (m *User) String() string { return proto.CompactTextString(m) } -func (*User) ProtoMessage() {} -func (*User) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1090} +func (m *TLInputPeerChat) Reset() { *m = TLInputPeerChat{} } +func (m *TLInputPeerChat) String() string { return proto.CompactTextString(m) } +func (*TLInputPeerChat) ProtoMessage() {} +func (*TLInputPeerChat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1052} } -func (m *User) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_User.Unmarshal(m, b) +func (m *TLInputPeerChat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPeerChat.Unmarshal(m, b) } -func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_User.Marshal(b, m, deterministic) +func (m *TLInputPeerChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPeerChat.Marshal(b, m, deterministic) } -func (dst *User) XXX_Merge(src proto.Message) { - xxx_messageInfo_User.Merge(dst, src) +func (dst *TLInputPeerChat) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPeerChat.Merge(dst, src) } -func (m *User) XXX_Size() int { - return xxx_messageInfo_User.Size(m) +func (m *TLInputPeerChat) XXX_Size() int { + return xxx_messageInfo_TLInputPeerChat.Size(m) } -func (m *User) XXX_DiscardUnknown() { - xxx_messageInfo_User.DiscardUnknown(m) +func (m *TLInputPeerChat) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPeerChat.DiscardUnknown(m) } -var xxx_messageInfo_User proto.InternalMessageInfo - -func (m *User) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLInputPeerChat proto.InternalMessageInfo -func (m *User) GetData2() *User_Data { +func (m *TLInputPeerChat) GetData2() *InputPeer_Data { if m != nil { return m.Data2 } return nil } -// userEmpty#200250ba id:int = User; -type TLUserEmpty struct { - Data2 *User_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer; +type TLInputPeerUser struct { + Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUserEmpty) Reset() { *m = TLUserEmpty{} } -func (m *TLUserEmpty) String() string { return proto.CompactTextString(m) } -func (*TLUserEmpty) ProtoMessage() {} -func (*TLUserEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1091} +func (m *TLInputPeerUser) Reset() { *m = TLInputPeerUser{} } +func (m *TLInputPeerUser) String() string { return proto.CompactTextString(m) } +func (*TLInputPeerUser) ProtoMessage() {} +func (*TLInputPeerUser) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1053} } -func (m *TLUserEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUserEmpty.Unmarshal(m, b) +func (m *TLInputPeerUser) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPeerUser.Unmarshal(m, b) } -func (m *TLUserEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUserEmpty.Marshal(b, m, deterministic) +func (m *TLInputPeerUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPeerUser.Marshal(b, m, deterministic) } -func (dst *TLUserEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUserEmpty.Merge(dst, src) +func (dst *TLInputPeerUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPeerUser.Merge(dst, src) } -func (m *TLUserEmpty) XXX_Size() int { - return xxx_messageInfo_TLUserEmpty.Size(m) +func (m *TLInputPeerUser) XXX_Size() int { + return xxx_messageInfo_TLInputPeerUser.Size(m) } -func (m *TLUserEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLUserEmpty.DiscardUnknown(m) +func (m *TLInputPeerUser) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPeerUser.DiscardUnknown(m) } -var xxx_messageInfo_TLUserEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLInputPeerUser proto.InternalMessageInfo -func (m *TLUserEmpty) GetData2() *User_Data { +func (m *TLInputPeerUser) GetData2() *InputPeer_Data { if m != nil { return m.Data2 } return nil } -// user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User; -type TLUser struct { - Data2 *User_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer; +type TLInputPeerChannel struct { + Data2 *InputPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUser) Reset() { *m = TLUser{} } -func (m *TLUser) String() string { return proto.CompactTextString(m) } -func (*TLUser) ProtoMessage() {} -func (*TLUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1092} +func (m *TLInputPeerChannel) Reset() { *m = TLInputPeerChannel{} } +func (m *TLInputPeerChannel) String() string { return proto.CompactTextString(m) } +func (*TLInputPeerChannel) ProtoMessage() {} +func (*TLInputPeerChannel) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1054} } -func (m *TLUser) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUser.Unmarshal(m, b) +func (m *TLInputPeerChannel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPeerChannel.Unmarshal(m, b) } -func (m *TLUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUser.Marshal(b, m, deterministic) +func (m *TLInputPeerChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPeerChannel.Marshal(b, m, deterministic) } -func (dst *TLUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUser.Merge(dst, src) +func (dst *TLInputPeerChannel) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPeerChannel.Merge(dst, src) } -func (m *TLUser) XXX_Size() int { - return xxx_messageInfo_TLUser.Size(m) +func (m *TLInputPeerChannel) XXX_Size() int { + return xxx_messageInfo_TLInputPeerChannel.Size(m) } -func (m *TLUser) XXX_DiscardUnknown() { - xxx_messageInfo_TLUser.DiscardUnknown(m) +func (m *TLInputPeerChannel) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPeerChannel.DiscardUnknown(m) } -var xxx_messageInfo_TLUser proto.InternalMessageInfo +var xxx_messageInfo_TLInputPeerChannel proto.InternalMessageInfo -func (m *TLUser) GetData2() *User_Data { +func (m *TLInputPeerChannel) GetData2() *InputPeer_Data { if m != nil { return m.Data2 } @@ -53361,405 +51469,501 @@ func (m *TLUser) GetData2() *User_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ChatParticipant <-- -// + TL_chatParticipant -// + TL_chatParticipantCreator -// + TL_chatParticipantAdmin +// InputContact <-- +// + TL_inputPhoneContact // -type ChatParticipant_Data struct { - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - InviterId int32 `protobuf:"varint,2,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` - Date int32 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` +type InputContact_Data struct { + ClientId int64 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` + FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` + LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ChatParticipant_Data) Reset() { *m = ChatParticipant_Data{} } -func (m *ChatParticipant_Data) String() string { return proto.CompactTextString(m) } -func (*ChatParticipant_Data) ProtoMessage() {} -func (*ChatParticipant_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1093} +func (m *InputContact_Data) Reset() { *m = InputContact_Data{} } +func (m *InputContact_Data) String() string { return proto.CompactTextString(m) } +func (*InputContact_Data) ProtoMessage() {} +func (*InputContact_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1055} } -func (m *ChatParticipant_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatParticipant_Data.Unmarshal(m, b) +func (m *InputContact_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputContact_Data.Unmarshal(m, b) } -func (m *ChatParticipant_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatParticipant_Data.Marshal(b, m, deterministic) +func (m *InputContact_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputContact_Data.Marshal(b, m, deterministic) } -func (dst *ChatParticipant_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatParticipant_Data.Merge(dst, src) +func (dst *InputContact_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputContact_Data.Merge(dst, src) } -func (m *ChatParticipant_Data) XXX_Size() int { - return xxx_messageInfo_ChatParticipant_Data.Size(m) +func (m *InputContact_Data) XXX_Size() int { + return xxx_messageInfo_InputContact_Data.Size(m) } -func (m *ChatParticipant_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChatParticipant_Data.DiscardUnknown(m) +func (m *InputContact_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputContact_Data.DiscardUnknown(m) } -var xxx_messageInfo_ChatParticipant_Data proto.InternalMessageInfo +var xxx_messageInfo_InputContact_Data proto.InternalMessageInfo -func (m *ChatParticipant_Data) GetUserId() int32 { +func (m *InputContact_Data) GetClientId() int64 { if m != nil { - return m.UserId + return m.ClientId } return 0 } -func (m *ChatParticipant_Data) GetInviterId() int32 { +func (m *InputContact_Data) GetPhone() string { if m != nil { - return m.InviterId + return m.Phone } - return 0 + return "" } -func (m *ChatParticipant_Data) GetDate() int32 { +func (m *InputContact_Data) GetFirstName() string { if m != nil { - return m.Date + return m.FirstName } - return 0 + return "" } -type ChatParticipant struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChatParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *InputContact_Data) GetLastName() string { + if m != nil { + return m.LastName + } + return "" } -func (m *ChatParticipant) Reset() { *m = ChatParticipant{} } -func (m *ChatParticipant) String() string { return proto.CompactTextString(m) } -func (*ChatParticipant) ProtoMessage() {} -func (*ChatParticipant) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1094} +type InputContact struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatParticipant) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatParticipant.Unmarshal(m, b) + +func (m *InputContact) Reset() { *m = InputContact{} } +func (m *InputContact) String() string { return proto.CompactTextString(m) } +func (*InputContact) ProtoMessage() {} +func (*InputContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1056} } -func (m *ChatParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatParticipant.Marshal(b, m, deterministic) +func (m *InputContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputContact.Unmarshal(m, b) } -func (dst *ChatParticipant) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatParticipant.Merge(dst, src) +func (m *InputContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputContact.Marshal(b, m, deterministic) } -func (m *ChatParticipant) XXX_Size() int { - return xxx_messageInfo_ChatParticipant.Size(m) +func (dst *InputContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputContact.Merge(dst, src) } -func (m *ChatParticipant) XXX_DiscardUnknown() { - xxx_messageInfo_ChatParticipant.DiscardUnknown(m) +func (m *InputContact) XXX_Size() int { + return xxx_messageInfo_InputContact.Size(m) +} +func (m *InputContact) XXX_DiscardUnknown() { + xxx_messageInfo_InputContact.DiscardUnknown(m) } -var xxx_messageInfo_ChatParticipant proto.InternalMessageInfo +var xxx_messageInfo_InputContact proto.InternalMessageInfo -func (m *ChatParticipant) GetConstructor() TLConstructor { +func (m *InputContact) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ChatParticipant) GetData2() *ChatParticipant_Data { +func (m *InputContact) GetData2() *InputContact_Data { if m != nil { return m.Data2 } return nil } -// chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant; -type TLChatParticipant struct { - Data2 *ChatParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact; +type TLInputPhoneContact struct { + Data2 *InputContact_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatParticipant) Reset() { *m = TLChatParticipant{} } -func (m *TLChatParticipant) String() string { return proto.CompactTextString(m) } -func (*TLChatParticipant) ProtoMessage() {} -func (*TLChatParticipant) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1095} +func (m *TLInputPhoneContact) Reset() { *m = TLInputPhoneContact{} } +func (m *TLInputPhoneContact) String() string { return proto.CompactTextString(m) } +func (*TLInputPhoneContact) ProtoMessage() {} +func (*TLInputPhoneContact) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1057} } -func (m *TLChatParticipant) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatParticipant.Unmarshal(m, b) +func (m *TLInputPhoneContact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputPhoneContact.Unmarshal(m, b) } -func (m *TLChatParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatParticipant.Marshal(b, m, deterministic) +func (m *TLInputPhoneContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputPhoneContact.Marshal(b, m, deterministic) } -func (dst *TLChatParticipant) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatParticipant.Merge(dst, src) +func (dst *TLInputPhoneContact) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputPhoneContact.Merge(dst, src) } -func (m *TLChatParticipant) XXX_Size() int { - return xxx_messageInfo_TLChatParticipant.Size(m) +func (m *TLInputPhoneContact) XXX_Size() int { + return xxx_messageInfo_TLInputPhoneContact.Size(m) } -func (m *TLChatParticipant) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatParticipant.DiscardUnknown(m) +func (m *TLInputPhoneContact) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputPhoneContact.DiscardUnknown(m) } -var xxx_messageInfo_TLChatParticipant proto.InternalMessageInfo +var xxx_messageInfo_TLInputPhoneContact proto.InternalMessageInfo -func (m *TLChatParticipant) GetData2() *ChatParticipant_Data { +func (m *TLInputPhoneContact) GetData2() *InputContact_Data { if m != nil { return m.Data2 } return nil } -// chatParticipantCreator#da13538a user_id:int = ChatParticipant; -type TLChatParticipantCreator struct { - Data2 *ChatParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// ChannelParticipant <-- +// + TL_channelParticipant +// + TL_channelParticipantSelf +// + TL_channelParticipantCreator +// + TL_channelParticipantAdmin +// + TL_channelParticipantBanned +// +type ChannelParticipant_Data struct { + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` + InviterId int32 `protobuf:"varint,3,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` + CanEdit bool `protobuf:"varint,4,opt,name=can_edit,json=canEdit,proto3" json:"can_edit,omitempty"` + PromotedBy int32 `protobuf:"varint,5,opt,name=promoted_by,json=promotedBy,proto3" json:"promoted_by,omitempty"` + AdminRights *ChannelAdminRights `protobuf:"bytes,6,opt,name=admin_rights,json=adminRights,proto3" json:"admin_rights,omitempty"` + Left bool `protobuf:"varint,7,opt,name=left,proto3" json:"left,omitempty"` + KickedBy int32 `protobuf:"varint,8,opt,name=kicked_by,json=kickedBy,proto3" json:"kicked_by,omitempty"` + BannedRights *ChannelBannedRights `protobuf:"bytes,9,opt,name=banned_rights,json=bannedRights,proto3" json:"banned_rights,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatParticipantCreator) Reset() { *m = TLChatParticipantCreator{} } -func (m *TLChatParticipantCreator) String() string { return proto.CompactTextString(m) } -func (*TLChatParticipantCreator) ProtoMessage() {} -func (*TLChatParticipantCreator) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1096} +func (m *ChannelParticipant_Data) Reset() { *m = ChannelParticipant_Data{} } +func (m *ChannelParticipant_Data) String() string { return proto.CompactTextString(m) } +func (*ChannelParticipant_Data) ProtoMessage() {} +func (*ChannelParticipant_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1058} } -func (m *TLChatParticipantCreator) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatParticipantCreator.Unmarshal(m, b) +func (m *ChannelParticipant_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelParticipant_Data.Unmarshal(m, b) } -func (m *TLChatParticipantCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatParticipantCreator.Marshal(b, m, deterministic) +func (m *ChannelParticipant_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelParticipant_Data.Marshal(b, m, deterministic) } -func (dst *TLChatParticipantCreator) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatParticipantCreator.Merge(dst, src) +func (dst *ChannelParticipant_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelParticipant_Data.Merge(dst, src) } -func (m *TLChatParticipantCreator) XXX_Size() int { - return xxx_messageInfo_TLChatParticipantCreator.Size(m) +func (m *ChannelParticipant_Data) XXX_Size() int { + return xxx_messageInfo_ChannelParticipant_Data.Size(m) } -func (m *TLChatParticipantCreator) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatParticipantCreator.DiscardUnknown(m) +func (m *ChannelParticipant_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelParticipant_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLChatParticipantCreator proto.InternalMessageInfo +var xxx_messageInfo_ChannelParticipant_Data proto.InternalMessageInfo -func (m *TLChatParticipantCreator) GetData2() *ChatParticipant_Data { +func (m *ChannelParticipant_Data) GetUserId() int32 { if m != nil { - return m.Data2 + return m.UserId } - return nil + return 0 } -// chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant; -type TLChatParticipantAdmin struct { - Data2 *ChatParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ChannelParticipant_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 } -func (m *TLChatParticipantAdmin) Reset() { *m = TLChatParticipantAdmin{} } -func (m *TLChatParticipantAdmin) String() string { return proto.CompactTextString(m) } -func (*TLChatParticipantAdmin) ProtoMessage() {} -func (*TLChatParticipantAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1097} -} -func (m *TLChatParticipantAdmin) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatParticipantAdmin.Unmarshal(m, b) +func (m *ChannelParticipant_Data) GetInviterId() int32 { + if m != nil { + return m.InviterId + } + return 0 } -func (m *TLChatParticipantAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatParticipantAdmin.Marshal(b, m, deterministic) + +func (m *ChannelParticipant_Data) GetCanEdit() bool { + if m != nil { + return m.CanEdit + } + return false } -func (dst *TLChatParticipantAdmin) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatParticipantAdmin.Merge(dst, src) + +func (m *ChannelParticipant_Data) GetPromotedBy() int32 { + if m != nil { + return m.PromotedBy + } + return 0 } -func (m *TLChatParticipantAdmin) XXX_Size() int { - return xxx_messageInfo_TLChatParticipantAdmin.Size(m) + +func (m *ChannelParticipant_Data) GetAdminRights() *ChannelAdminRights { + if m != nil { + return m.AdminRights + } + return nil } -func (m *TLChatParticipantAdmin) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatParticipantAdmin.DiscardUnknown(m) + +func (m *ChannelParticipant_Data) GetLeft() bool { + if m != nil { + return m.Left + } + return false } -var xxx_messageInfo_TLChatParticipantAdmin proto.InternalMessageInfo +func (m *ChannelParticipant_Data) GetKickedBy() int32 { + if m != nil { + return m.KickedBy + } + return 0 +} -func (m *TLChatParticipantAdmin) GetData2() *ChatParticipant_Data { +func (m *ChannelParticipant_Data) GetBannedRights() *ChannelBannedRights { if m != nil { - return m.Data2 + return m.BannedRights } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// contacts_Contacts <-- -// + TL_contacts_contactsNotModified -// + TL_contacts_contacts -// -type Contacts_Contacts_Data struct { - Contacts []*Contact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"` - SavedCount int32 `protobuf:"varint,2,opt,name=saved_count,json=savedCount,proto3" json:"saved_count,omitempty"` - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ChannelParticipant struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_Contacts_Data) Reset() { *m = Contacts_Contacts_Data{} } -func (m *Contacts_Contacts_Data) String() string { return proto.CompactTextString(m) } -func (*Contacts_Contacts_Data) ProtoMessage() {} -func (*Contacts_Contacts_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1098} +func (m *ChannelParticipant) Reset() { *m = ChannelParticipant{} } +func (m *ChannelParticipant) String() string { return proto.CompactTextString(m) } +func (*ChannelParticipant) ProtoMessage() {} +func (*ChannelParticipant) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1059} } -func (m *Contacts_Contacts_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_Contacts_Data.Unmarshal(m, b) +func (m *ChannelParticipant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChannelParticipant.Unmarshal(m, b) } -func (m *Contacts_Contacts_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_Contacts_Data.Marshal(b, m, deterministic) +func (m *ChannelParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChannelParticipant.Marshal(b, m, deterministic) } -func (dst *Contacts_Contacts_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_Contacts_Data.Merge(dst, src) +func (dst *ChannelParticipant) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChannelParticipant.Merge(dst, src) } -func (m *Contacts_Contacts_Data) XXX_Size() int { - return xxx_messageInfo_Contacts_Contacts_Data.Size(m) +func (m *ChannelParticipant) XXX_Size() int { + return xxx_messageInfo_ChannelParticipant.Size(m) } -func (m *Contacts_Contacts_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_Contacts_Data.DiscardUnknown(m) +func (m *ChannelParticipant) XXX_DiscardUnknown() { + xxx_messageInfo_ChannelParticipant.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_Contacts_Data proto.InternalMessageInfo +var xxx_messageInfo_ChannelParticipant proto.InternalMessageInfo -func (m *Contacts_Contacts_Data) GetContacts() []*Contact { +func (m *ChannelParticipant) GetConstructor() TLConstructor { if m != nil { - return m.Contacts + return m.Constructor } - return nil + return TLConstructor_CRC32_UNKNOWN } -func (m *Contacts_Contacts_Data) GetSavedCount() int32 { +func (m *ChannelParticipant) GetData2() *ChannelParticipant_Data { if m != nil { - return m.SavedCount + return m.Data2 } - return 0 + return nil } -func (m *Contacts_Contacts_Data) GetUsers() []*User { +// channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant; +type TLChannelParticipant struct { + Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLChannelParticipant) Reset() { *m = TLChannelParticipant{} } +func (m *TLChannelParticipant) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipant) ProtoMessage() {} +func (*TLChannelParticipant) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1060} +} +func (m *TLChannelParticipant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipant.Unmarshal(m, b) +} +func (m *TLChannelParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipant.Marshal(b, m, deterministic) +} +func (dst *TLChannelParticipant) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipant.Merge(dst, src) +} +func (m *TLChannelParticipant) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipant.Size(m) +} +func (m *TLChannelParticipant) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipant.DiscardUnknown(m) +} + +var xxx_messageInfo_TLChannelParticipant proto.InternalMessageInfo + +func (m *TLChannelParticipant) GetData2() *ChannelParticipant_Data { if m != nil { - return m.Users + return m.Data2 } return nil } -type Contacts_Contacts struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Contacts_Contacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant; +type TLChannelParticipantSelf struct { + Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Contacts_Contacts) Reset() { *m = Contacts_Contacts{} } -func (m *Contacts_Contacts) String() string { return proto.CompactTextString(m) } -func (*Contacts_Contacts) ProtoMessage() {} -func (*Contacts_Contacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1099} +func (m *TLChannelParticipantSelf) Reset() { *m = TLChannelParticipantSelf{} } +func (m *TLChannelParticipantSelf) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantSelf) ProtoMessage() {} +func (*TLChannelParticipantSelf) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1061} } -func (m *Contacts_Contacts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Contacts_Contacts.Unmarshal(m, b) +func (m *TLChannelParticipantSelf) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantSelf.Unmarshal(m, b) } -func (m *Contacts_Contacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Contacts_Contacts.Marshal(b, m, deterministic) +func (m *TLChannelParticipantSelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantSelf.Marshal(b, m, deterministic) } -func (dst *Contacts_Contacts) XXX_Merge(src proto.Message) { - xxx_messageInfo_Contacts_Contacts.Merge(dst, src) +func (dst *TLChannelParticipantSelf) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantSelf.Merge(dst, src) } -func (m *Contacts_Contacts) XXX_Size() int { - return xxx_messageInfo_Contacts_Contacts.Size(m) +func (m *TLChannelParticipantSelf) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantSelf.Size(m) } -func (m *Contacts_Contacts) XXX_DiscardUnknown() { - xxx_messageInfo_Contacts_Contacts.DiscardUnknown(m) +func (m *TLChannelParticipantSelf) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantSelf.DiscardUnknown(m) } -var xxx_messageInfo_Contacts_Contacts proto.InternalMessageInfo +var xxx_messageInfo_TLChannelParticipantSelf proto.InternalMessageInfo -func (m *Contacts_Contacts) GetConstructor() TLConstructor { +func (m *TLChannelParticipantSelf) GetData2() *ChannelParticipant_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *Contacts_Contacts) GetData2() *Contacts_Contacts_Data { +// channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; +type TLChannelParticipantCreator struct { + Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLChannelParticipantCreator) Reset() { *m = TLChannelParticipantCreator{} } +func (m *TLChannelParticipantCreator) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantCreator) ProtoMessage() {} +func (*TLChannelParticipantCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1062} +} +func (m *TLChannelParticipantCreator) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantCreator.Unmarshal(m, b) +} +func (m *TLChannelParticipantCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantCreator.Marshal(b, m, deterministic) +} +func (dst *TLChannelParticipantCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantCreator.Merge(dst, src) +} +func (m *TLChannelParticipantCreator) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantCreator.Size(m) +} +func (m *TLChannelParticipantCreator) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_TLChannelParticipantCreator proto.InternalMessageInfo + +func (m *TLChannelParticipantCreator) GetData2() *ChannelParticipant_Data { if m != nil { return m.Data2 } return nil } -// contacts.contactsNotModified#b74ba9d2 = contacts.Contacts; -type TLContactsContactsNotModified struct { - Data2 *Contacts_Contacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelParticipantAdmin#a82fa898 flags:# can_edit:flags.0?true user_id:int inviter_id:int promoted_by:int date:int admin_rights:ChannelAdminRights = ChannelParticipant; +type TLChannelParticipantAdmin struct { + Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactsContactsNotModified) Reset() { *m = TLContactsContactsNotModified{} } -func (m *TLContactsContactsNotModified) String() string { return proto.CompactTextString(m) } -func (*TLContactsContactsNotModified) ProtoMessage() {} -func (*TLContactsContactsNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1100} +func (m *TLChannelParticipantAdmin) Reset() { *m = TLChannelParticipantAdmin{} } +func (m *TLChannelParticipantAdmin) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantAdmin) ProtoMessage() {} +func (*TLChannelParticipantAdmin) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1063} } -func (m *TLContactsContactsNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsContactsNotModified.Unmarshal(m, b) +func (m *TLChannelParticipantAdmin) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantAdmin.Unmarshal(m, b) } -func (m *TLContactsContactsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsContactsNotModified.Marshal(b, m, deterministic) +func (m *TLChannelParticipantAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantAdmin.Marshal(b, m, deterministic) } -func (dst *TLContactsContactsNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsContactsNotModified.Merge(dst, src) +func (dst *TLChannelParticipantAdmin) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantAdmin.Merge(dst, src) } -func (m *TLContactsContactsNotModified) XXX_Size() int { - return xxx_messageInfo_TLContactsContactsNotModified.Size(m) +func (m *TLChannelParticipantAdmin) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantAdmin.Size(m) } -func (m *TLContactsContactsNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsContactsNotModified.DiscardUnknown(m) +func (m *TLChannelParticipantAdmin) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantAdmin.DiscardUnknown(m) } -var xxx_messageInfo_TLContactsContactsNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLChannelParticipantAdmin proto.InternalMessageInfo -func (m *TLContactsContactsNotModified) GetData2() *Contacts_Contacts_Data { +func (m *TLChannelParticipantAdmin) GetData2() *ChannelParticipant_Data { if m != nil { return m.Data2 } return nil } -// contacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts; -type TLContactsContacts struct { - Data2 *Contacts_Contacts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// channelParticipantBanned#222c1886 flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChannelBannedRights = ChannelParticipant; +type TLChannelParticipantBanned struct { + Data2 *ChannelParticipant_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLContactsContacts) Reset() { *m = TLContactsContacts{} } -func (m *TLContactsContacts) String() string { return proto.CompactTextString(m) } -func (*TLContactsContacts) ProtoMessage() {} -func (*TLContactsContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1101} +func (m *TLChannelParticipantBanned) Reset() { *m = TLChannelParticipantBanned{} } +func (m *TLChannelParticipantBanned) String() string { return proto.CompactTextString(m) } +func (*TLChannelParticipantBanned) ProtoMessage() {} +func (*TLChannelParticipantBanned) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1064} } -func (m *TLContactsContacts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLContactsContacts.Unmarshal(m, b) +func (m *TLChannelParticipantBanned) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLChannelParticipantBanned.Unmarshal(m, b) } -func (m *TLContactsContacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLContactsContacts.Marshal(b, m, deterministic) +func (m *TLChannelParticipantBanned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLChannelParticipantBanned.Marshal(b, m, deterministic) } -func (dst *TLContactsContacts) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLContactsContacts.Merge(dst, src) +func (dst *TLChannelParticipantBanned) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLChannelParticipantBanned.Merge(dst, src) } -func (m *TLContactsContacts) XXX_Size() int { - return xxx_messageInfo_TLContactsContacts.Size(m) +func (m *TLChannelParticipantBanned) XXX_Size() int { + return xxx_messageInfo_TLChannelParticipantBanned.Size(m) } -func (m *TLContactsContacts) XXX_DiscardUnknown() { - xxx_messageInfo_TLContactsContacts.DiscardUnknown(m) +func (m *TLChannelParticipantBanned) XXX_DiscardUnknown() { + xxx_messageInfo_TLChannelParticipantBanned.DiscardUnknown(m) } -var xxx_messageInfo_TLContactsContacts proto.InternalMessageInfo +var xxx_messageInfo_TLChannelParticipantBanned proto.InternalMessageInfo -func (m *TLContactsContacts) GetData2() *Contacts_Contacts_Data { +func (m *TLChannelParticipantBanned) GetData2() *ChannelParticipant_Data { if m != nil { return m.Data2 } @@ -53767,174 +51971,206 @@ func (m *TLContactsContacts) GetData2() *Contacts_Contacts_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ChannelMessagesFilter <-- -// + TL_channelMessagesFilterEmpty -// + TL_channelMessagesFilter +// SecurePasswordKdfAlgo <-- +// + TL_securePasswordKdfAlgoUnknown +// + TL_securePasswordKdfAlgoPBKDF2 +// + TL_securePasswordKdfAlgoSHA512 // -type ChannelMessagesFilter_Data struct { - ExcludeNewMessages bool `protobuf:"varint,1,opt,name=exclude_new_messages,json=excludeNewMessages,proto3" json:"exclude_new_messages,omitempty"` - Ranges []*MessageRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SecurePasswordKdfAlgo_Data struct { + Salt []byte `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChannelMessagesFilter_Data) Reset() { *m = ChannelMessagesFilter_Data{} } -func (m *ChannelMessagesFilter_Data) String() string { return proto.CompactTextString(m) } -func (*ChannelMessagesFilter_Data) ProtoMessage() {} -func (*ChannelMessagesFilter_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1102} +func (m *SecurePasswordKdfAlgo_Data) Reset() { *m = SecurePasswordKdfAlgo_Data{} } +func (m *SecurePasswordKdfAlgo_Data) String() string { return proto.CompactTextString(m) } +func (*SecurePasswordKdfAlgo_Data) ProtoMessage() {} +func (*SecurePasswordKdfAlgo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1065} } -func (m *ChannelMessagesFilter_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelMessagesFilter_Data.Unmarshal(m, b) +func (m *SecurePasswordKdfAlgo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecurePasswordKdfAlgo_Data.Unmarshal(m, b) } -func (m *ChannelMessagesFilter_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelMessagesFilter_Data.Marshal(b, m, deterministic) +func (m *SecurePasswordKdfAlgo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecurePasswordKdfAlgo_Data.Marshal(b, m, deterministic) } -func (dst *ChannelMessagesFilter_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelMessagesFilter_Data.Merge(dst, src) +func (dst *SecurePasswordKdfAlgo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecurePasswordKdfAlgo_Data.Merge(dst, src) } -func (m *ChannelMessagesFilter_Data) XXX_Size() int { - return xxx_messageInfo_ChannelMessagesFilter_Data.Size(m) +func (m *SecurePasswordKdfAlgo_Data) XXX_Size() int { + return xxx_messageInfo_SecurePasswordKdfAlgo_Data.Size(m) } -func (m *ChannelMessagesFilter_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelMessagesFilter_Data.DiscardUnknown(m) +func (m *SecurePasswordKdfAlgo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecurePasswordKdfAlgo_Data.DiscardUnknown(m) } -var xxx_messageInfo_ChannelMessagesFilter_Data proto.InternalMessageInfo - -func (m *ChannelMessagesFilter_Data) GetExcludeNewMessages() bool { - if m != nil { - return m.ExcludeNewMessages - } - return false -} +var xxx_messageInfo_SecurePasswordKdfAlgo_Data proto.InternalMessageInfo -func (m *ChannelMessagesFilter_Data) GetRanges() []*MessageRange { +func (m *SecurePasswordKdfAlgo_Data) GetSalt() []byte { if m != nil { - return m.Ranges + return m.Salt } return nil } -type ChannelMessagesFilter struct { +type SecurePasswordKdfAlgo struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChannelMessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + Data2 *SecurePasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ChannelMessagesFilter) Reset() { *m = ChannelMessagesFilter{} } -func (m *ChannelMessagesFilter) String() string { return proto.CompactTextString(m) } -func (*ChannelMessagesFilter) ProtoMessage() {} -func (*ChannelMessagesFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1103} +func (m *SecurePasswordKdfAlgo) Reset() { *m = SecurePasswordKdfAlgo{} } +func (m *SecurePasswordKdfAlgo) String() string { return proto.CompactTextString(m) } +func (*SecurePasswordKdfAlgo) ProtoMessage() {} +func (*SecurePasswordKdfAlgo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1066} } -func (m *ChannelMessagesFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChannelMessagesFilter.Unmarshal(m, b) +func (m *SecurePasswordKdfAlgo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecurePasswordKdfAlgo.Unmarshal(m, b) } -func (m *ChannelMessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChannelMessagesFilter.Marshal(b, m, deterministic) +func (m *SecurePasswordKdfAlgo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecurePasswordKdfAlgo.Marshal(b, m, deterministic) } -func (dst *ChannelMessagesFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChannelMessagesFilter.Merge(dst, src) +func (dst *SecurePasswordKdfAlgo) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecurePasswordKdfAlgo.Merge(dst, src) } -func (m *ChannelMessagesFilter) XXX_Size() int { - return xxx_messageInfo_ChannelMessagesFilter.Size(m) +func (m *SecurePasswordKdfAlgo) XXX_Size() int { + return xxx_messageInfo_SecurePasswordKdfAlgo.Size(m) } -func (m *ChannelMessagesFilter) XXX_DiscardUnknown() { - xxx_messageInfo_ChannelMessagesFilter.DiscardUnknown(m) +func (m *SecurePasswordKdfAlgo) XXX_DiscardUnknown() { + xxx_messageInfo_SecurePasswordKdfAlgo.DiscardUnknown(m) } -var xxx_messageInfo_ChannelMessagesFilter proto.InternalMessageInfo +var xxx_messageInfo_SecurePasswordKdfAlgo proto.InternalMessageInfo -func (m *ChannelMessagesFilter) GetConstructor() TLConstructor { +func (m *SecurePasswordKdfAlgo) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ChannelMessagesFilter) GetData2() *ChannelMessagesFilter_Data { +func (m *SecurePasswordKdfAlgo) GetData2() *SecurePasswordKdfAlgo_Data { if m != nil { return m.Data2 } return nil } -// channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter; -type TLChannelMessagesFilterEmpty struct { - Data2 *ChannelMessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo; +type TLSecurePasswordKdfAlgoUnknown struct { + Data2 *SecurePasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLChannelMessagesFilterEmpty) Reset() { *m = TLChannelMessagesFilterEmpty{} } -func (m *TLChannelMessagesFilterEmpty) String() string { return proto.CompactTextString(m) } -func (*TLChannelMessagesFilterEmpty) ProtoMessage() {} -func (*TLChannelMessagesFilterEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1104} +func (m *TLSecurePasswordKdfAlgoUnknown) Reset() { *m = TLSecurePasswordKdfAlgoUnknown{} } +func (m *TLSecurePasswordKdfAlgoUnknown) String() string { return proto.CompactTextString(m) } +func (*TLSecurePasswordKdfAlgoUnknown) ProtoMessage() {} +func (*TLSecurePasswordKdfAlgoUnknown) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1067} } -func (m *TLChannelMessagesFilterEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelMessagesFilterEmpty.Unmarshal(m, b) +func (m *TLSecurePasswordKdfAlgoUnknown) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.Unmarshal(m, b) } -func (m *TLChannelMessagesFilterEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelMessagesFilterEmpty.Marshal(b, m, deterministic) +func (m *TLSecurePasswordKdfAlgoUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.Marshal(b, m, deterministic) } -func (dst *TLChannelMessagesFilterEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelMessagesFilterEmpty.Merge(dst, src) +func (dst *TLSecurePasswordKdfAlgoUnknown) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.Merge(dst, src) } -func (m *TLChannelMessagesFilterEmpty) XXX_Size() int { - return xxx_messageInfo_TLChannelMessagesFilterEmpty.Size(m) +func (m *TLSecurePasswordKdfAlgoUnknown) XXX_Size() int { + return xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.Size(m) } -func (m *TLChannelMessagesFilterEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelMessagesFilterEmpty.DiscardUnknown(m) +func (m *TLSecurePasswordKdfAlgoUnknown) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelMessagesFilterEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLSecurePasswordKdfAlgoUnknown proto.InternalMessageInfo -func (m *TLChannelMessagesFilterEmpty) GetData2() *ChannelMessagesFilter_Data { +func (m *TLSecurePasswordKdfAlgoUnknown) GetData2() *SecurePasswordKdfAlgo_Data { if m != nil { return m.Data2 } return nil } -// channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter; -type TLChannelMessagesFilter struct { - Data2 *ChannelMessagesFilter_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo; +type TLSecurePasswordKdfAlgoPBKDF2 struct { + Data2 *SecurePasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLChannelMessagesFilter) Reset() { *m = TLChannelMessagesFilter{} } -func (m *TLChannelMessagesFilter) String() string { return proto.CompactTextString(m) } -func (*TLChannelMessagesFilter) ProtoMessage() {} -func (*TLChannelMessagesFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1105} +func (m *TLSecurePasswordKdfAlgoPBKDF2) Reset() { *m = TLSecurePasswordKdfAlgoPBKDF2{} } +func (m *TLSecurePasswordKdfAlgoPBKDF2) String() string { return proto.CompactTextString(m) } +func (*TLSecurePasswordKdfAlgoPBKDF2) ProtoMessage() {} +func (*TLSecurePasswordKdfAlgoPBKDF2) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1068} } -func (m *TLChannelMessagesFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChannelMessagesFilter.Unmarshal(m, b) +func (m *TLSecurePasswordKdfAlgoPBKDF2) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.Unmarshal(m, b) } -func (m *TLChannelMessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChannelMessagesFilter.Marshal(b, m, deterministic) +func (m *TLSecurePasswordKdfAlgoPBKDF2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.Marshal(b, m, deterministic) } -func (dst *TLChannelMessagesFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChannelMessagesFilter.Merge(dst, src) +func (dst *TLSecurePasswordKdfAlgoPBKDF2) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.Merge(dst, src) } -func (m *TLChannelMessagesFilter) XXX_Size() int { - return xxx_messageInfo_TLChannelMessagesFilter.Size(m) +func (m *TLSecurePasswordKdfAlgoPBKDF2) XXX_Size() int { + return xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.Size(m) } -func (m *TLChannelMessagesFilter) XXX_DiscardUnknown() { - xxx_messageInfo_TLChannelMessagesFilter.DiscardUnknown(m) +func (m *TLSecurePasswordKdfAlgoPBKDF2) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2.DiscardUnknown(m) } -var xxx_messageInfo_TLChannelMessagesFilter proto.InternalMessageInfo +var xxx_messageInfo_TLSecurePasswordKdfAlgoPBKDF2 proto.InternalMessageInfo -func (m *TLChannelMessagesFilter) GetData2() *ChannelMessagesFilter_Data { +func (m *TLSecurePasswordKdfAlgoPBKDF2) GetData2() *SecurePasswordKdfAlgo_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo; +type TLSecurePasswordKdfAlgoSHA512 struct { + Data2 *SecurePasswordKdfAlgo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLSecurePasswordKdfAlgoSHA512) Reset() { *m = TLSecurePasswordKdfAlgoSHA512{} } +func (m *TLSecurePasswordKdfAlgoSHA512) String() string { return proto.CompactTextString(m) } +func (*TLSecurePasswordKdfAlgoSHA512) ProtoMessage() {} +func (*TLSecurePasswordKdfAlgoSHA512) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1069} +} +func (m *TLSecurePasswordKdfAlgoSHA512) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.Unmarshal(m, b) +} +func (m *TLSecurePasswordKdfAlgoSHA512) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.Marshal(b, m, deterministic) +} +func (dst *TLSecurePasswordKdfAlgoSHA512) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.Merge(dst, src) +} +func (m *TLSecurePasswordKdfAlgoSHA512) XXX_Size() int { + return xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.Size(m) +} +func (m *TLSecurePasswordKdfAlgoSHA512) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512.DiscardUnknown(m) +} + +var xxx_messageInfo_TLSecurePasswordKdfAlgoSHA512 proto.InternalMessageInfo + +func (m *TLSecurePasswordKdfAlgoSHA512) GetData2() *SecurePasswordKdfAlgo_Data { if m != nil { return m.Data2 } @@ -53942,134 +52178,126 @@ func (m *TLChannelMessagesFilter) GetData2() *ChannelMessagesFilter_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InlineBotSwitchPM <-- -// + TL_inlineBotSwitchPM +// PeerSettings <-- +// + TL_peerSettings // -type InlineBotSwitchPM_Data struct { - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - StartParam string `protobuf:"bytes,2,opt,name=start_param,json=startParam,proto3" json:"start_param,omitempty"` +type PeerSettings_Data struct { + ReportSpam bool `protobuf:"varint,1,opt,name=report_spam,json=reportSpam,proto3" json:"report_spam,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *InlineBotSwitchPM_Data) Reset() { *m = InlineBotSwitchPM_Data{} } -func (m *InlineBotSwitchPM_Data) String() string { return proto.CompactTextString(m) } -func (*InlineBotSwitchPM_Data) ProtoMessage() {} -func (*InlineBotSwitchPM_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1106} +func (m *PeerSettings_Data) Reset() { *m = PeerSettings_Data{} } +func (m *PeerSettings_Data) String() string { return proto.CompactTextString(m) } +func (*PeerSettings_Data) ProtoMessage() {} +func (*PeerSettings_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1070} } -func (m *InlineBotSwitchPM_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InlineBotSwitchPM_Data.Unmarshal(m, b) +func (m *PeerSettings_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PeerSettings_Data.Unmarshal(m, b) } -func (m *InlineBotSwitchPM_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InlineBotSwitchPM_Data.Marshal(b, m, deterministic) +func (m *PeerSettings_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PeerSettings_Data.Marshal(b, m, deterministic) } -func (dst *InlineBotSwitchPM_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InlineBotSwitchPM_Data.Merge(dst, src) +func (dst *PeerSettings_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerSettings_Data.Merge(dst, src) } -func (m *InlineBotSwitchPM_Data) XXX_Size() int { - return xxx_messageInfo_InlineBotSwitchPM_Data.Size(m) +func (m *PeerSettings_Data) XXX_Size() int { + return xxx_messageInfo_PeerSettings_Data.Size(m) } -func (m *InlineBotSwitchPM_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InlineBotSwitchPM_Data.DiscardUnknown(m) +func (m *PeerSettings_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PeerSettings_Data.DiscardUnknown(m) } -var xxx_messageInfo_InlineBotSwitchPM_Data proto.InternalMessageInfo - -func (m *InlineBotSwitchPM_Data) GetText() string { - if m != nil { - return m.Text - } - return "" -} +var xxx_messageInfo_PeerSettings_Data proto.InternalMessageInfo -func (m *InlineBotSwitchPM_Data) GetStartParam() string { +func (m *PeerSettings_Data) GetReportSpam() bool { if m != nil { - return m.StartParam + return m.ReportSpam } - return "" + return false } -type InlineBotSwitchPM struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InlineBotSwitchPM_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PeerSettings struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PeerSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InlineBotSwitchPM) Reset() { *m = InlineBotSwitchPM{} } -func (m *InlineBotSwitchPM) String() string { return proto.CompactTextString(m) } -func (*InlineBotSwitchPM) ProtoMessage() {} -func (*InlineBotSwitchPM) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1107} +func (m *PeerSettings) Reset() { *m = PeerSettings{} } +func (m *PeerSettings) String() string { return proto.CompactTextString(m) } +func (*PeerSettings) ProtoMessage() {} +func (*PeerSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1071} } -func (m *InlineBotSwitchPM) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InlineBotSwitchPM.Unmarshal(m, b) +func (m *PeerSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PeerSettings.Unmarshal(m, b) } -func (m *InlineBotSwitchPM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InlineBotSwitchPM.Marshal(b, m, deterministic) +func (m *PeerSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PeerSettings.Marshal(b, m, deterministic) } -func (dst *InlineBotSwitchPM) XXX_Merge(src proto.Message) { - xxx_messageInfo_InlineBotSwitchPM.Merge(dst, src) +func (dst *PeerSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerSettings.Merge(dst, src) } -func (m *InlineBotSwitchPM) XXX_Size() int { - return xxx_messageInfo_InlineBotSwitchPM.Size(m) +func (m *PeerSettings) XXX_Size() int { + return xxx_messageInfo_PeerSettings.Size(m) } -func (m *InlineBotSwitchPM) XXX_DiscardUnknown() { - xxx_messageInfo_InlineBotSwitchPM.DiscardUnknown(m) +func (m *PeerSettings) XXX_DiscardUnknown() { + xxx_messageInfo_PeerSettings.DiscardUnknown(m) } -var xxx_messageInfo_InlineBotSwitchPM proto.InternalMessageInfo +var xxx_messageInfo_PeerSettings proto.InternalMessageInfo -func (m *InlineBotSwitchPM) GetConstructor() TLConstructor { +func (m *PeerSettings) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InlineBotSwitchPM) GetData2() *InlineBotSwitchPM_Data { +func (m *PeerSettings) GetData2() *PeerSettings_Data { if m != nil { return m.Data2 } return nil } -// inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM; -type TLInlineBotSwitchPM struct { - Data2 *InlineBotSwitchPM_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// peerSettings#818426cd flags:# report_spam:flags.0?true = PeerSettings; +type TLPeerSettings struct { + Data2 *PeerSettings_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInlineBotSwitchPM) Reset() { *m = TLInlineBotSwitchPM{} } -func (m *TLInlineBotSwitchPM) String() string { return proto.CompactTextString(m) } -func (*TLInlineBotSwitchPM) ProtoMessage() {} -func (*TLInlineBotSwitchPM) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1108} +func (m *TLPeerSettings) Reset() { *m = TLPeerSettings{} } +func (m *TLPeerSettings) String() string { return proto.CompactTextString(m) } +func (*TLPeerSettings) ProtoMessage() {} +func (*TLPeerSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1072} } -func (m *TLInlineBotSwitchPM) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInlineBotSwitchPM.Unmarshal(m, b) +func (m *TLPeerSettings) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPeerSettings.Unmarshal(m, b) } -func (m *TLInlineBotSwitchPM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInlineBotSwitchPM.Marshal(b, m, deterministic) +func (m *TLPeerSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPeerSettings.Marshal(b, m, deterministic) } -func (dst *TLInlineBotSwitchPM) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInlineBotSwitchPM.Merge(dst, src) +func (dst *TLPeerSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPeerSettings.Merge(dst, src) } -func (m *TLInlineBotSwitchPM) XXX_Size() int { - return xxx_messageInfo_TLInlineBotSwitchPM.Size(m) +func (m *TLPeerSettings) XXX_Size() int { + return xxx_messageInfo_TLPeerSettings.Size(m) } -func (m *TLInlineBotSwitchPM) XXX_DiscardUnknown() { - xxx_messageInfo_TLInlineBotSwitchPM.DiscardUnknown(m) +func (m *TLPeerSettings) XXX_DiscardUnknown() { + xxx_messageInfo_TLPeerSettings.DiscardUnknown(m) } -var xxx_messageInfo_TLInlineBotSwitchPM proto.InternalMessageInfo +var xxx_messageInfo_TLPeerSettings proto.InternalMessageInfo -func (m *TLInlineBotSwitchPM) GetData2() *InlineBotSwitchPM_Data { +func (m *TLPeerSettings) GetData2() *PeerSettings_Data { if m != nil { return m.Data2 } @@ -54077,349 +52305,318 @@ func (m *TLInlineBotSwitchPM) GetData2() *InlineBotSwitchPM_Data { } // ///////////////////////////////////////////////////////////////////////////// -// InputChatPhoto <-- -// + TL_inputChatPhotoEmpty -// + TL_inputChatUploadedPhoto -// + TL_inputChatPhoto +// RecentMeUrl <-- +// + TL_recentMeUrlUnknown +// + TL_recentMeUrlUser +// + TL_recentMeUrlChat +// + TL_recentMeUrlChatInvite +// + TL_recentMeUrlStickerSet // -type InputChatPhoto_Data struct { - File *InputFile `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` - Id *InputPhoto `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type RecentMeUrl_Data struct { + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + ChatId int32 `protobuf:"varint,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` + ChatInvite *ChatInvite `protobuf:"bytes,4,opt,name=chat_invite,json=chatInvite,proto3" json:"chat_invite,omitempty"` + Set *StickerSetCovered `protobuf:"bytes,5,opt,name=set,proto3" json:"set,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputChatPhoto_Data) Reset() { *m = InputChatPhoto_Data{} } -func (m *InputChatPhoto_Data) String() string { return proto.CompactTextString(m) } -func (*InputChatPhoto_Data) ProtoMessage() {} -func (*InputChatPhoto_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1109} +func (m *RecentMeUrl_Data) Reset() { *m = RecentMeUrl_Data{} } +func (m *RecentMeUrl_Data) String() string { return proto.CompactTextString(m) } +func (*RecentMeUrl_Data) ProtoMessage() {} +func (*RecentMeUrl_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1073} } -func (m *InputChatPhoto_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputChatPhoto_Data.Unmarshal(m, b) +func (m *RecentMeUrl_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RecentMeUrl_Data.Unmarshal(m, b) } -func (m *InputChatPhoto_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputChatPhoto_Data.Marshal(b, m, deterministic) +func (m *RecentMeUrl_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RecentMeUrl_Data.Marshal(b, m, deterministic) } -func (dst *InputChatPhoto_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputChatPhoto_Data.Merge(dst, src) +func (dst *RecentMeUrl_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecentMeUrl_Data.Merge(dst, src) } -func (m *InputChatPhoto_Data) XXX_Size() int { - return xxx_messageInfo_InputChatPhoto_Data.Size(m) +func (m *RecentMeUrl_Data) XXX_Size() int { + return xxx_messageInfo_RecentMeUrl_Data.Size(m) } -func (m *InputChatPhoto_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputChatPhoto_Data.DiscardUnknown(m) +func (m *RecentMeUrl_Data) XXX_DiscardUnknown() { + xxx_messageInfo_RecentMeUrl_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputChatPhoto_Data proto.InternalMessageInfo +var xxx_messageInfo_RecentMeUrl_Data proto.InternalMessageInfo -func (m *InputChatPhoto_Data) GetFile() *InputFile { +func (m *RecentMeUrl_Data) GetUrl() string { if m != nil { - return m.File + return m.Url + } + return "" +} + +func (m *RecentMeUrl_Data) GetUserId() int32 { + if m != nil { + return m.UserId + } + return 0 +} + +func (m *RecentMeUrl_Data) GetChatId() int32 { + if m != nil { + return m.ChatId + } + return 0 +} + +func (m *RecentMeUrl_Data) GetChatInvite() *ChatInvite { + if m != nil { + return m.ChatInvite } return nil } -func (m *InputChatPhoto_Data) GetId() *InputPhoto { +func (m *RecentMeUrl_Data) GetSet() *StickerSetCovered { if m != nil { - return m.Id + return m.Set } return nil } -type InputChatPhoto struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type RecentMeUrl struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputChatPhoto) Reset() { *m = InputChatPhoto{} } -func (m *InputChatPhoto) String() string { return proto.CompactTextString(m) } -func (*InputChatPhoto) ProtoMessage() {} -func (*InputChatPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1110} +func (m *RecentMeUrl) Reset() { *m = RecentMeUrl{} } +func (m *RecentMeUrl) String() string { return proto.CompactTextString(m) } +func (*RecentMeUrl) ProtoMessage() {} +func (*RecentMeUrl) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1074} } -func (m *InputChatPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputChatPhoto.Unmarshal(m, b) +func (m *RecentMeUrl) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RecentMeUrl.Unmarshal(m, b) } -func (m *InputChatPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputChatPhoto.Marshal(b, m, deterministic) +func (m *RecentMeUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RecentMeUrl.Marshal(b, m, deterministic) } -func (dst *InputChatPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputChatPhoto.Merge(dst, src) +func (dst *RecentMeUrl) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecentMeUrl.Merge(dst, src) } -func (m *InputChatPhoto) XXX_Size() int { - return xxx_messageInfo_InputChatPhoto.Size(m) +func (m *RecentMeUrl) XXX_Size() int { + return xxx_messageInfo_RecentMeUrl.Size(m) } -func (m *InputChatPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_InputChatPhoto.DiscardUnknown(m) +func (m *RecentMeUrl) XXX_DiscardUnknown() { + xxx_messageInfo_RecentMeUrl.DiscardUnknown(m) } -var xxx_messageInfo_InputChatPhoto proto.InternalMessageInfo +var xxx_messageInfo_RecentMeUrl proto.InternalMessageInfo -func (m *InputChatPhoto) GetConstructor() TLConstructor { +func (m *RecentMeUrl) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *InputChatPhoto) GetData2() *InputChatPhoto_Data { +func (m *RecentMeUrl) GetData2() *RecentMeUrl_Data { if m != nil { return m.Data2 } return nil } -// inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; -type TLInputChatPhotoEmpty struct { - Data2 *InputChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl; +type TLRecentMeUrlUnknown struct { + Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputChatPhotoEmpty) Reset() { *m = TLInputChatPhotoEmpty{} } -func (m *TLInputChatPhotoEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputChatPhotoEmpty) ProtoMessage() {} -func (*TLInputChatPhotoEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1111} +func (m *TLRecentMeUrlUnknown) Reset() { *m = TLRecentMeUrlUnknown{} } +func (m *TLRecentMeUrlUnknown) String() string { return proto.CompactTextString(m) } +func (*TLRecentMeUrlUnknown) ProtoMessage() {} +func (*TLRecentMeUrlUnknown) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1075} } -func (m *TLInputChatPhotoEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputChatPhotoEmpty.Unmarshal(m, b) +func (m *TLRecentMeUrlUnknown) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLRecentMeUrlUnknown.Unmarshal(m, b) } -func (m *TLInputChatPhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputChatPhotoEmpty.Marshal(b, m, deterministic) +func (m *TLRecentMeUrlUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLRecentMeUrlUnknown.Marshal(b, m, deterministic) } -func (dst *TLInputChatPhotoEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputChatPhotoEmpty.Merge(dst, src) +func (dst *TLRecentMeUrlUnknown) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLRecentMeUrlUnknown.Merge(dst, src) } -func (m *TLInputChatPhotoEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputChatPhotoEmpty.Size(m) +func (m *TLRecentMeUrlUnknown) XXX_Size() int { + return xxx_messageInfo_TLRecentMeUrlUnknown.Size(m) } -func (m *TLInputChatPhotoEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputChatPhotoEmpty.DiscardUnknown(m) +func (m *TLRecentMeUrlUnknown) XXX_DiscardUnknown() { + xxx_messageInfo_TLRecentMeUrlUnknown.DiscardUnknown(m) } -var xxx_messageInfo_TLInputChatPhotoEmpty proto.InternalMessageInfo +var xxx_messageInfo_TLRecentMeUrlUnknown proto.InternalMessageInfo -func (m *TLInputChatPhotoEmpty) GetData2() *InputChatPhoto_Data { +func (m *TLRecentMeUrlUnknown) GetData2() *RecentMeUrl_Data { if m != nil { return m.Data2 } return nil } -// inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto; -type TLInputChatUploadedPhoto struct { - Data2 *InputChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl; +type TLRecentMeUrlUser struct { + Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputChatUploadedPhoto) Reset() { *m = TLInputChatUploadedPhoto{} } -func (m *TLInputChatUploadedPhoto) String() string { return proto.CompactTextString(m) } -func (*TLInputChatUploadedPhoto) ProtoMessage() {} -func (*TLInputChatUploadedPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1112} +func (m *TLRecentMeUrlUser) Reset() { *m = TLRecentMeUrlUser{} } +func (m *TLRecentMeUrlUser) String() string { return proto.CompactTextString(m) } +func (*TLRecentMeUrlUser) ProtoMessage() {} +func (*TLRecentMeUrlUser) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1076} } -func (m *TLInputChatUploadedPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputChatUploadedPhoto.Unmarshal(m, b) +func (m *TLRecentMeUrlUser) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLRecentMeUrlUser.Unmarshal(m, b) } -func (m *TLInputChatUploadedPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputChatUploadedPhoto.Marshal(b, m, deterministic) +func (m *TLRecentMeUrlUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLRecentMeUrlUser.Marshal(b, m, deterministic) } -func (dst *TLInputChatUploadedPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputChatUploadedPhoto.Merge(dst, src) +func (dst *TLRecentMeUrlUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLRecentMeUrlUser.Merge(dst, src) } -func (m *TLInputChatUploadedPhoto) XXX_Size() int { - return xxx_messageInfo_TLInputChatUploadedPhoto.Size(m) +func (m *TLRecentMeUrlUser) XXX_Size() int { + return xxx_messageInfo_TLRecentMeUrlUser.Size(m) } -func (m *TLInputChatUploadedPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputChatUploadedPhoto.DiscardUnknown(m) +func (m *TLRecentMeUrlUser) XXX_DiscardUnknown() { + xxx_messageInfo_TLRecentMeUrlUser.DiscardUnknown(m) } -var xxx_messageInfo_TLInputChatUploadedPhoto proto.InternalMessageInfo +var xxx_messageInfo_TLRecentMeUrlUser proto.InternalMessageInfo -func (m *TLInputChatUploadedPhoto) GetData2() *InputChatPhoto_Data { +func (m *TLRecentMeUrlUser) GetData2() *RecentMeUrl_Data { if m != nil { return m.Data2 } return nil } -// inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; -type TLInputChatPhoto struct { - Data2 *InputChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl; +type TLRecentMeUrlChat struct { + Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLInputChatPhoto) Reset() { *m = TLInputChatPhoto{} } -func (m *TLInputChatPhoto) String() string { return proto.CompactTextString(m) } -func (*TLInputChatPhoto) ProtoMessage() {} -func (*TLInputChatPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1113} +func (m *TLRecentMeUrlChat) Reset() { *m = TLRecentMeUrlChat{} } +func (m *TLRecentMeUrlChat) String() string { return proto.CompactTextString(m) } +func (*TLRecentMeUrlChat) ProtoMessage() {} +func (*TLRecentMeUrlChat) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1077} } -func (m *TLInputChatPhoto) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputChatPhoto.Unmarshal(m, b) +func (m *TLRecentMeUrlChat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLRecentMeUrlChat.Unmarshal(m, b) } -func (m *TLInputChatPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputChatPhoto.Marshal(b, m, deterministic) +func (m *TLRecentMeUrlChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLRecentMeUrlChat.Marshal(b, m, deterministic) } -func (dst *TLInputChatPhoto) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputChatPhoto.Merge(dst, src) +func (dst *TLRecentMeUrlChat) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLRecentMeUrlChat.Merge(dst, src) } -func (m *TLInputChatPhoto) XXX_Size() int { - return xxx_messageInfo_TLInputChatPhoto.Size(m) +func (m *TLRecentMeUrlChat) XXX_Size() int { + return xxx_messageInfo_TLRecentMeUrlChat.Size(m) } -func (m *TLInputChatPhoto) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputChatPhoto.DiscardUnknown(m) +func (m *TLRecentMeUrlChat) XXX_DiscardUnknown() { + xxx_messageInfo_TLRecentMeUrlChat.DiscardUnknown(m) } -var xxx_messageInfo_TLInputChatPhoto proto.InternalMessageInfo +var xxx_messageInfo_TLRecentMeUrlChat proto.InternalMessageInfo -func (m *TLInputChatPhoto) GetData2() *InputChatPhoto_Data { +func (m *TLRecentMeUrlChat) GetData2() *RecentMeUrl_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// auth_Authorization <-- -// + TL_auth_authorization -// -type Auth_Authorization_Data struct { - TmpSessions int32 `protobuf:"varint,1,opt,name=tmp_sessions,json=tmpSessions,proto3" json:"tmp_sessions,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl; +type TLRecentMeUrlChatInvite struct { + Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Auth_Authorization_Data) Reset() { *m = Auth_Authorization_Data{} } -func (m *Auth_Authorization_Data) String() string { return proto.CompactTextString(m) } -func (*Auth_Authorization_Data) ProtoMessage() {} -func (*Auth_Authorization_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1114} +func (m *TLRecentMeUrlChatInvite) Reset() { *m = TLRecentMeUrlChatInvite{} } +func (m *TLRecentMeUrlChatInvite) String() string { return proto.CompactTextString(m) } +func (*TLRecentMeUrlChatInvite) ProtoMessage() {} +func (*TLRecentMeUrlChatInvite) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1078} } -func (m *Auth_Authorization_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_Authorization_Data.Unmarshal(m, b) +func (m *TLRecentMeUrlChatInvite) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLRecentMeUrlChatInvite.Unmarshal(m, b) } -func (m *Auth_Authorization_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_Authorization_Data.Marshal(b, m, deterministic) +func (m *TLRecentMeUrlChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLRecentMeUrlChatInvite.Marshal(b, m, deterministic) } -func (dst *Auth_Authorization_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_Authorization_Data.Merge(dst, src) +func (dst *TLRecentMeUrlChatInvite) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLRecentMeUrlChatInvite.Merge(dst, src) } -func (m *Auth_Authorization_Data) XXX_Size() int { - return xxx_messageInfo_Auth_Authorization_Data.Size(m) +func (m *TLRecentMeUrlChatInvite) XXX_Size() int { + return xxx_messageInfo_TLRecentMeUrlChatInvite.Size(m) } -func (m *Auth_Authorization_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_Authorization_Data.DiscardUnknown(m) +func (m *TLRecentMeUrlChatInvite) XXX_DiscardUnknown() { + xxx_messageInfo_TLRecentMeUrlChatInvite.DiscardUnknown(m) } -var xxx_messageInfo_Auth_Authorization_Data proto.InternalMessageInfo +var xxx_messageInfo_TLRecentMeUrlChatInvite proto.InternalMessageInfo -func (m *Auth_Authorization_Data) GetTmpSessions() int32 { +func (m *TLRecentMeUrlChatInvite) GetData2() *RecentMeUrl_Data { if m != nil { - return m.TmpSessions + return m.Data2 } - return 0 + return nil } -func (m *Auth_Authorization_Data) GetUser() *User { - if m != nil { - return m.User - } - return nil +// recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl; +type TLRecentMeUrlStickerSet struct { + Data2 *RecentMeUrl_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -type Auth_Authorization struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Auth_Authorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Auth_Authorization) Reset() { *m = Auth_Authorization{} } -func (m *Auth_Authorization) String() string { return proto.CompactTextString(m) } -func (*Auth_Authorization) ProtoMessage() {} -func (*Auth_Authorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1115} -} -func (m *Auth_Authorization) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth_Authorization.Unmarshal(m, b) -} -func (m *Auth_Authorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth_Authorization.Marshal(b, m, deterministic) -} -func (dst *Auth_Authorization) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth_Authorization.Merge(dst, src) -} -func (m *Auth_Authorization) XXX_Size() int { - return xxx_messageInfo_Auth_Authorization.Size(m) -} -func (m *Auth_Authorization) XXX_DiscardUnknown() { - xxx_messageInfo_Auth_Authorization.DiscardUnknown(m) -} - -var xxx_messageInfo_Auth_Authorization proto.InternalMessageInfo - -func (m *Auth_Authorization) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} - -func (m *Auth_Authorization) GetData2() *Auth_Authorization_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization; -type TLAuthAuthorization struct { - Data2 *Auth_Authorization_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLAuthAuthorization) Reset() { *m = TLAuthAuthorization{} } -func (m *TLAuthAuthorization) String() string { return proto.CompactTextString(m) } -func (*TLAuthAuthorization) ProtoMessage() {} -func (*TLAuthAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1116} +func (m *TLRecentMeUrlStickerSet) Reset() { *m = TLRecentMeUrlStickerSet{} } +func (m *TLRecentMeUrlStickerSet) String() string { return proto.CompactTextString(m) } +func (*TLRecentMeUrlStickerSet) ProtoMessage() {} +func (*TLRecentMeUrlStickerSet) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1079} } -func (m *TLAuthAuthorization) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthAuthorization.Unmarshal(m, b) +func (m *TLRecentMeUrlStickerSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLRecentMeUrlStickerSet.Unmarshal(m, b) } -func (m *TLAuthAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthAuthorization.Marshal(b, m, deterministic) +func (m *TLRecentMeUrlStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLRecentMeUrlStickerSet.Marshal(b, m, deterministic) } -func (dst *TLAuthAuthorization) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthAuthorization.Merge(dst, src) +func (dst *TLRecentMeUrlStickerSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLRecentMeUrlStickerSet.Merge(dst, src) } -func (m *TLAuthAuthorization) XXX_Size() int { - return xxx_messageInfo_TLAuthAuthorization.Size(m) +func (m *TLRecentMeUrlStickerSet) XXX_Size() int { + return xxx_messageInfo_TLRecentMeUrlStickerSet.Size(m) } -func (m *TLAuthAuthorization) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthAuthorization.DiscardUnknown(m) +func (m *TLRecentMeUrlStickerSet) XXX_DiscardUnknown() { + xxx_messageInfo_TLRecentMeUrlStickerSet.DiscardUnknown(m) } -var xxx_messageInfo_TLAuthAuthorization proto.InternalMessageInfo +var xxx_messageInfo_TLRecentMeUrlStickerSet proto.InternalMessageInfo -func (m *TLAuthAuthorization) GetData2() *Auth_Authorization_Data { +func (m *TLRecentMeUrlStickerSet) GetData2() *RecentMeUrl_Data { if m != nil { return m.Data2 } @@ -54427,548 +52624,508 @@ func (m *TLAuthAuthorization) GetData2() *Auth_Authorization_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ChatInvite <-- -// + TL_chatInviteAlready -// + TL_chatInvite +// InputSecureValue <-- +// + TL_inputSecureValue // -type ChatInvite_Data struct { - Chat *Chat `protobuf:"bytes,1,opt,name=chat,proto3" json:"chat,omitempty"` - Channel bool `protobuf:"varint,2,opt,name=channel,proto3" json:"channel,omitempty"` - Broadcast bool `protobuf:"varint,3,opt,name=broadcast,proto3" json:"broadcast,omitempty"` - Public bool `protobuf:"varint,4,opt,name=public,proto3" json:"public,omitempty"` - Megagroup bool `protobuf:"varint,5,opt,name=megagroup,proto3" json:"megagroup,omitempty"` - Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` - Photo *ChatPhoto `protobuf:"bytes,7,opt,name=photo,proto3" json:"photo,omitempty"` - ParticipantsCount int32 `protobuf:"varint,8,opt,name=participants_count,json=participantsCount,proto3" json:"participants_count,omitempty"` - Participants []*User `protobuf:"bytes,9,rep,name=participants,proto3" json:"participants,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputSecureValue_Data struct { + Type *SecureValueType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Data *SecureData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + FrontSide *InputSecureFile `protobuf:"bytes,3,opt,name=front_side,json=frontSide,proto3" json:"front_side,omitempty"` + ReverseSide *InputSecureFile `protobuf:"bytes,4,opt,name=reverse_side,json=reverseSide,proto3" json:"reverse_side,omitempty"` + Selfie *InputSecureFile `protobuf:"bytes,5,opt,name=selfie,proto3" json:"selfie,omitempty"` + Translation []*InputSecureFile `protobuf:"bytes,6,rep,name=translation,proto3" json:"translation,omitempty"` + Files []*InputSecureFile `protobuf:"bytes,7,rep,name=files,proto3" json:"files,omitempty"` + PlainData *SecurePlainData `protobuf:"bytes,8,opt,name=plain_data,json=plainData,proto3" json:"plain_data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatInvite_Data) Reset() { *m = ChatInvite_Data{} } -func (m *ChatInvite_Data) String() string { return proto.CompactTextString(m) } -func (*ChatInvite_Data) ProtoMessage() {} -func (*ChatInvite_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1117} +func (m *InputSecureValue_Data) Reset() { *m = InputSecureValue_Data{} } +func (m *InputSecureValue_Data) String() string { return proto.CompactTextString(m) } +func (*InputSecureValue_Data) ProtoMessage() {} +func (*InputSecureValue_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1080} } -func (m *ChatInvite_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatInvite_Data.Unmarshal(m, b) +func (m *InputSecureValue_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputSecureValue_Data.Unmarshal(m, b) } -func (m *ChatInvite_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatInvite_Data.Marshal(b, m, deterministic) +func (m *InputSecureValue_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputSecureValue_Data.Marshal(b, m, deterministic) } -func (dst *ChatInvite_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatInvite_Data.Merge(dst, src) +func (dst *InputSecureValue_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputSecureValue_Data.Merge(dst, src) } -func (m *ChatInvite_Data) XXX_Size() int { - return xxx_messageInfo_ChatInvite_Data.Size(m) +func (m *InputSecureValue_Data) XXX_Size() int { + return xxx_messageInfo_InputSecureValue_Data.Size(m) } -func (m *ChatInvite_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ChatInvite_Data.DiscardUnknown(m) +func (m *InputSecureValue_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputSecureValue_Data.DiscardUnknown(m) } -var xxx_messageInfo_ChatInvite_Data proto.InternalMessageInfo +var xxx_messageInfo_InputSecureValue_Data proto.InternalMessageInfo -func (m *ChatInvite_Data) GetChat() *Chat { +func (m *InputSecureValue_Data) GetType() *SecureValueType { if m != nil { - return m.Chat + return m.Type } return nil } -func (m *ChatInvite_Data) GetChannel() bool { - if m != nil { - return m.Channel - } - return false -} - -func (m *ChatInvite_Data) GetBroadcast() bool { +func (m *InputSecureValue_Data) GetData() *SecureData { if m != nil { - return m.Broadcast + return m.Data } - return false + return nil } -func (m *ChatInvite_Data) GetPublic() bool { +func (m *InputSecureValue_Data) GetFrontSide() *InputSecureFile { if m != nil { - return m.Public + return m.FrontSide } - return false + return nil } -func (m *ChatInvite_Data) GetMegagroup() bool { +func (m *InputSecureValue_Data) GetReverseSide() *InputSecureFile { if m != nil { - return m.Megagroup + return m.ReverseSide } - return false + return nil } -func (m *ChatInvite_Data) GetTitle() string { +func (m *InputSecureValue_Data) GetSelfie() *InputSecureFile { if m != nil { - return m.Title + return m.Selfie } - return "" + return nil } -func (m *ChatInvite_Data) GetPhoto() *ChatPhoto { +func (m *InputSecureValue_Data) GetTranslation() []*InputSecureFile { if m != nil { - return m.Photo + return m.Translation } return nil } -func (m *ChatInvite_Data) GetParticipantsCount() int32 { +func (m *InputSecureValue_Data) GetFiles() []*InputSecureFile { if m != nil { - return m.ParticipantsCount + return m.Files } - return 0 + return nil } -func (m *ChatInvite_Data) GetParticipants() []*User { +func (m *InputSecureValue_Data) GetPlainData() *SecurePlainData { if m != nil { - return m.Participants + return m.PlainData } return nil } -type ChatInvite struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type InputSecureValue struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputSecureValue_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ChatInvite) Reset() { *m = ChatInvite{} } -func (m *ChatInvite) String() string { return proto.CompactTextString(m) } -func (*ChatInvite) ProtoMessage() {} -func (*ChatInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1118} +func (m *InputSecureValue) Reset() { *m = InputSecureValue{} } +func (m *InputSecureValue) String() string { return proto.CompactTextString(m) } +func (*InputSecureValue) ProtoMessage() {} +func (*InputSecureValue) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1081} } -func (m *ChatInvite) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChatInvite.Unmarshal(m, b) +func (m *InputSecureValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputSecureValue.Unmarshal(m, b) } -func (m *ChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChatInvite.Marshal(b, m, deterministic) +func (m *InputSecureValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputSecureValue.Marshal(b, m, deterministic) } -func (dst *ChatInvite) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChatInvite.Merge(dst, src) +func (dst *InputSecureValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputSecureValue.Merge(dst, src) } -func (m *ChatInvite) XXX_Size() int { - return xxx_messageInfo_ChatInvite.Size(m) +func (m *InputSecureValue) XXX_Size() int { + return xxx_messageInfo_InputSecureValue.Size(m) } -func (m *ChatInvite) XXX_DiscardUnknown() { - xxx_messageInfo_ChatInvite.DiscardUnknown(m) +func (m *InputSecureValue) XXX_DiscardUnknown() { + xxx_messageInfo_InputSecureValue.DiscardUnknown(m) } -var xxx_messageInfo_ChatInvite proto.InternalMessageInfo +var xxx_messageInfo_InputSecureValue proto.InternalMessageInfo -func (m *ChatInvite) GetConstructor() TLConstructor { +func (m *InputSecureValue) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ChatInvite) GetData2() *ChatInvite_Data { +func (m *InputSecureValue) GetData2() *InputSecureValue_Data { if m != nil { return m.Data2 } return nil } -// chatInviteAlready#5a686d7c chat:Chat = ChatInvite; -type TLChatInviteAlready struct { - Data2 *ChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue; +type TLInputSecureValue struct { + Data2 *InputSecureValue_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatInviteAlready) Reset() { *m = TLChatInviteAlready{} } -func (m *TLChatInviteAlready) String() string { return proto.CompactTextString(m) } -func (*TLChatInviteAlready) ProtoMessage() {} -func (*TLChatInviteAlready) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1119} +func (m *TLInputSecureValue) Reset() { *m = TLInputSecureValue{} } +func (m *TLInputSecureValue) String() string { return proto.CompactTextString(m) } +func (*TLInputSecureValue) ProtoMessage() {} +func (*TLInputSecureValue) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1082} } -func (m *TLChatInviteAlready) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatInviteAlready.Unmarshal(m, b) +func (m *TLInputSecureValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputSecureValue.Unmarshal(m, b) } -func (m *TLChatInviteAlready) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatInviteAlready.Marshal(b, m, deterministic) +func (m *TLInputSecureValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputSecureValue.Marshal(b, m, deterministic) } -func (dst *TLChatInviteAlready) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatInviteAlready.Merge(dst, src) +func (dst *TLInputSecureValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputSecureValue.Merge(dst, src) } -func (m *TLChatInviteAlready) XXX_Size() int { - return xxx_messageInfo_TLChatInviteAlready.Size(m) +func (m *TLInputSecureValue) XXX_Size() int { + return xxx_messageInfo_TLInputSecureValue.Size(m) } -func (m *TLChatInviteAlready) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatInviteAlready.DiscardUnknown(m) +func (m *TLInputSecureValue) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputSecureValue.DiscardUnknown(m) } -var xxx_messageInfo_TLChatInviteAlready proto.InternalMessageInfo +var xxx_messageInfo_TLInputSecureValue proto.InternalMessageInfo -func (m *TLChatInviteAlready) GetData2() *ChatInvite_Data { +func (m *TLInputSecureValue) GetData2() *InputSecureValue_Data { if m != nil { return m.Data2 } return nil } -// chatInvite#db74f558 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:ChatPhoto participants_count:int participants:flags.4?Vector = ChatInvite; -type TLChatInvite struct { - Data2 *ChatInvite_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// WallPaper <-- +// + TL_wallPaper +// + TL_wallPaperSolid +// +type WallPaper_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Sizes []*PhotoSize `protobuf:"bytes,3,rep,name=sizes,proto3" json:"sizes,omitempty"` + Color int32 `protobuf:"varint,4,opt,name=color,proto3" json:"color,omitempty"` + BgColor int32 `protobuf:"varint,5,opt,name=bg_color,json=bgColor,proto3" json:"bg_color,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLChatInvite) Reset() { *m = TLChatInvite{} } -func (m *TLChatInvite) String() string { return proto.CompactTextString(m) } -func (*TLChatInvite) ProtoMessage() {} -func (*TLChatInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1120} +func (m *WallPaper_Data) Reset() { *m = WallPaper_Data{} } +func (m *WallPaper_Data) String() string { return proto.CompactTextString(m) } +func (*WallPaper_Data) ProtoMessage() {} +func (*WallPaper_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1083} } -func (m *TLChatInvite) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLChatInvite.Unmarshal(m, b) +func (m *WallPaper_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WallPaper_Data.Unmarshal(m, b) } -func (m *TLChatInvite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLChatInvite.Marshal(b, m, deterministic) +func (m *WallPaper_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WallPaper_Data.Marshal(b, m, deterministic) } -func (dst *TLChatInvite) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLChatInvite.Merge(dst, src) +func (dst *WallPaper_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_WallPaper_Data.Merge(dst, src) } -func (m *TLChatInvite) XXX_Size() int { - return xxx_messageInfo_TLChatInvite.Size(m) +func (m *WallPaper_Data) XXX_Size() int { + return xxx_messageInfo_WallPaper_Data.Size(m) } -func (m *TLChatInvite) XXX_DiscardUnknown() { - xxx_messageInfo_TLChatInvite.DiscardUnknown(m) +func (m *WallPaper_Data) XXX_DiscardUnknown() { + xxx_messageInfo_WallPaper_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLChatInvite proto.InternalMessageInfo +var xxx_messageInfo_WallPaper_Data proto.InternalMessageInfo -func (m *TLChatInvite) GetData2() *ChatInvite_Data { +func (m *WallPaper_Data) GetId() int32 { if m != nil { - return m.Data2 + return m.Id } - return nil + return 0 } -// ///////////////////////////////////////////////////////////////////////////// -// account_SentEmailCode <-- -// + TL_account_sentEmailCode -// -type Account_SentEmailCode_Data struct { - EmailPattern string `protobuf:"bytes,1,opt,name=email_pattern,json=emailPattern,proto3" json:"email_pattern,omitempty"` - Length int32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *WallPaper_Data) GetTitle() string { + if m != nil { + return m.Title + } + return "" } -func (m *Account_SentEmailCode_Data) Reset() { *m = Account_SentEmailCode_Data{} } -func (m *Account_SentEmailCode_Data) String() string { return proto.CompactTextString(m) } -func (*Account_SentEmailCode_Data) ProtoMessage() {} -func (*Account_SentEmailCode_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1121} -} -func (m *Account_SentEmailCode_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_SentEmailCode_Data.Unmarshal(m, b) -} -func (m *Account_SentEmailCode_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_SentEmailCode_Data.Marshal(b, m, deterministic) -} -func (dst *Account_SentEmailCode_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_SentEmailCode_Data.Merge(dst, src) -} -func (m *Account_SentEmailCode_Data) XXX_Size() int { - return xxx_messageInfo_Account_SentEmailCode_Data.Size(m) -} -func (m *Account_SentEmailCode_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Account_SentEmailCode_Data.DiscardUnknown(m) +func (m *WallPaper_Data) GetSizes() []*PhotoSize { + if m != nil { + return m.Sizes + } + return nil } -var xxx_messageInfo_Account_SentEmailCode_Data proto.InternalMessageInfo - -func (m *Account_SentEmailCode_Data) GetEmailPattern() string { +func (m *WallPaper_Data) GetColor() int32 { if m != nil { - return m.EmailPattern + return m.Color } - return "" + return 0 } -func (m *Account_SentEmailCode_Data) GetLength() int32 { +func (m *WallPaper_Data) GetBgColor() int32 { if m != nil { - return m.Length + return m.BgColor } return 0 } -type Account_SentEmailCode struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Account_SentEmailCode_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type WallPaper struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *WallPaper_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Account_SentEmailCode) Reset() { *m = Account_SentEmailCode{} } -func (m *Account_SentEmailCode) String() string { return proto.CompactTextString(m) } -func (*Account_SentEmailCode) ProtoMessage() {} -func (*Account_SentEmailCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1122} +func (m *WallPaper) Reset() { *m = WallPaper{} } +func (m *WallPaper) String() string { return proto.CompactTextString(m) } +func (*WallPaper) ProtoMessage() {} +func (*WallPaper) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1084} } -func (m *Account_SentEmailCode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Account_SentEmailCode.Unmarshal(m, b) +func (m *WallPaper) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WallPaper.Unmarshal(m, b) } -func (m *Account_SentEmailCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Account_SentEmailCode.Marshal(b, m, deterministic) +func (m *WallPaper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WallPaper.Marshal(b, m, deterministic) } -func (dst *Account_SentEmailCode) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account_SentEmailCode.Merge(dst, src) +func (dst *WallPaper) XXX_Merge(src proto.Message) { + xxx_messageInfo_WallPaper.Merge(dst, src) } -func (m *Account_SentEmailCode) XXX_Size() int { - return xxx_messageInfo_Account_SentEmailCode.Size(m) +func (m *WallPaper) XXX_Size() int { + return xxx_messageInfo_WallPaper.Size(m) } -func (m *Account_SentEmailCode) XXX_DiscardUnknown() { - xxx_messageInfo_Account_SentEmailCode.DiscardUnknown(m) +func (m *WallPaper) XXX_DiscardUnknown() { + xxx_messageInfo_WallPaper.DiscardUnknown(m) } -var xxx_messageInfo_Account_SentEmailCode proto.InternalMessageInfo +var xxx_messageInfo_WallPaper proto.InternalMessageInfo -func (m *Account_SentEmailCode) GetConstructor() TLConstructor { +func (m *WallPaper) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Account_SentEmailCode) GetData2() *Account_SentEmailCode_Data { +func (m *WallPaper) GetData2() *WallPaper_Data { if m != nil { return m.Data2 } return nil } -// account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode; -type TLAccountSentEmailCode struct { - Data2 *Account_SentEmailCode_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// wallPaper#ccb03657 id:int title:string sizes:Vector color:int = WallPaper; +type TLWallPaper struct { + Data2 *WallPaper_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccountSentEmailCode) Reset() { *m = TLAccountSentEmailCode{} } -func (m *TLAccountSentEmailCode) String() string { return proto.CompactTextString(m) } -func (*TLAccountSentEmailCode) ProtoMessage() {} -func (*TLAccountSentEmailCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1123} +func (m *TLWallPaper) Reset() { *m = TLWallPaper{} } +func (m *TLWallPaper) String() string { return proto.CompactTextString(m) } +func (*TLWallPaper) ProtoMessage() {} +func (*TLWallPaper) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1085} } -func (m *TLAccountSentEmailCode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccountSentEmailCode.Unmarshal(m, b) +func (m *TLWallPaper) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLWallPaper.Unmarshal(m, b) } -func (m *TLAccountSentEmailCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccountSentEmailCode.Marshal(b, m, deterministic) +func (m *TLWallPaper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLWallPaper.Marshal(b, m, deterministic) } -func (dst *TLAccountSentEmailCode) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccountSentEmailCode.Merge(dst, src) +func (dst *TLWallPaper) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLWallPaper.Merge(dst, src) } -func (m *TLAccountSentEmailCode) XXX_Size() int { - return xxx_messageInfo_TLAccountSentEmailCode.Size(m) +func (m *TLWallPaper) XXX_Size() int { + return xxx_messageInfo_TLWallPaper.Size(m) } -func (m *TLAccountSentEmailCode) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccountSentEmailCode.DiscardUnknown(m) +func (m *TLWallPaper) XXX_DiscardUnknown() { + xxx_messageInfo_TLWallPaper.DiscardUnknown(m) } -var xxx_messageInfo_TLAccountSentEmailCode proto.InternalMessageInfo +var xxx_messageInfo_TLWallPaper proto.InternalMessageInfo -func (m *TLAccountSentEmailCode) GetData2() *Account_SentEmailCode_Data { +func (m *TLWallPaper) GetData2() *WallPaper_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// photos_Photos <-- -// + TL_photos_photos -// + TL_photos_photosSlice -// -type Photos_Photos_Data struct { - Photos []*Photo `protobuf:"bytes,1,rep,name=photos,proto3" json:"photos,omitempty"` - Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` - Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper; +type TLWallPaperSolid struct { + Data2 *WallPaper_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Photos_Photos_Data) Reset() { *m = Photos_Photos_Data{} } -func (m *Photos_Photos_Data) String() string { return proto.CompactTextString(m) } -func (*Photos_Photos_Data) ProtoMessage() {} -func (*Photos_Photos_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1124} +func (m *TLWallPaperSolid) Reset() { *m = TLWallPaperSolid{} } +func (m *TLWallPaperSolid) String() string { return proto.CompactTextString(m) } +func (*TLWallPaperSolid) ProtoMessage() {} +func (*TLWallPaperSolid) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1086} } -func (m *Photos_Photos_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Photos_Photos_Data.Unmarshal(m, b) +func (m *TLWallPaperSolid) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLWallPaperSolid.Unmarshal(m, b) } -func (m *Photos_Photos_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Photos_Photos_Data.Marshal(b, m, deterministic) +func (m *TLWallPaperSolid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLWallPaperSolid.Marshal(b, m, deterministic) } -func (dst *Photos_Photos_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Photos_Photos_Data.Merge(dst, src) +func (dst *TLWallPaperSolid) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLWallPaperSolid.Merge(dst, src) } -func (m *Photos_Photos_Data) XXX_Size() int { - return xxx_messageInfo_Photos_Photos_Data.Size(m) +func (m *TLWallPaperSolid) XXX_Size() int { + return xxx_messageInfo_TLWallPaperSolid.Size(m) } -func (m *Photos_Photos_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Photos_Photos_Data.DiscardUnknown(m) +func (m *TLWallPaperSolid) XXX_DiscardUnknown() { + xxx_messageInfo_TLWallPaperSolid.DiscardUnknown(m) } -var xxx_messageInfo_Photos_Photos_Data proto.InternalMessageInfo - -func (m *Photos_Photos_Data) GetPhotos() []*Photo { - if m != nil { - return m.Photos - } - return nil -} +var xxx_messageInfo_TLWallPaperSolid proto.InternalMessageInfo -func (m *Photos_Photos_Data) GetUsers() []*User { +func (m *TLWallPaperSolid) GetData2() *WallPaper_Data { if m != nil { - return m.Users + return m.Data2 } return nil } -func (m *Photos_Photos_Data) GetCount() int32 { - if m != nil { - return m.Count - } - return 0 -} - -type Photos_Photos struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Photos_Photos_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// DialogPeer <-- +// + TL_dialogPeer +// +type DialogPeer_Data struct { + Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Photos_Photos) Reset() { *m = Photos_Photos{} } -func (m *Photos_Photos) String() string { return proto.CompactTextString(m) } -func (*Photos_Photos) ProtoMessage() {} -func (*Photos_Photos) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1125} +func (m *DialogPeer_Data) Reset() { *m = DialogPeer_Data{} } +func (m *DialogPeer_Data) String() string { return proto.CompactTextString(m) } +func (*DialogPeer_Data) ProtoMessage() {} +func (*DialogPeer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1087} } -func (m *Photos_Photos) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Photos_Photos.Unmarshal(m, b) +func (m *DialogPeer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DialogPeer_Data.Unmarshal(m, b) } -func (m *Photos_Photos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Photos_Photos.Marshal(b, m, deterministic) +func (m *DialogPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DialogPeer_Data.Marshal(b, m, deterministic) } -func (dst *Photos_Photos) XXX_Merge(src proto.Message) { - xxx_messageInfo_Photos_Photos.Merge(dst, src) +func (dst *DialogPeer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_DialogPeer_Data.Merge(dst, src) } -func (m *Photos_Photos) XXX_Size() int { - return xxx_messageInfo_Photos_Photos.Size(m) +func (m *DialogPeer_Data) XXX_Size() int { + return xxx_messageInfo_DialogPeer_Data.Size(m) } -func (m *Photos_Photos) XXX_DiscardUnknown() { - xxx_messageInfo_Photos_Photos.DiscardUnknown(m) +func (m *DialogPeer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_DialogPeer_Data.DiscardUnknown(m) } -var xxx_messageInfo_Photos_Photos proto.InternalMessageInfo - -func (m *Photos_Photos) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_DialogPeer_Data proto.InternalMessageInfo -func (m *Photos_Photos) GetData2() *Photos_Photos_Data { +func (m *DialogPeer_Data) GetPeer() *Peer { if m != nil { - return m.Data2 + return m.Peer } return nil } -// photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos; -type TLPhotosPhotos struct { - Data2 *Photos_Photos_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DialogPeer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *DialogPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhotosPhotos) Reset() { *m = TLPhotosPhotos{} } -func (m *TLPhotosPhotos) String() string { return proto.CompactTextString(m) } -func (*TLPhotosPhotos) ProtoMessage() {} -func (*TLPhotosPhotos) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1126} +func (m *DialogPeer) Reset() { *m = DialogPeer{} } +func (m *DialogPeer) String() string { return proto.CompactTextString(m) } +func (*DialogPeer) ProtoMessage() {} +func (*DialogPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1088} } -func (m *TLPhotosPhotos) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhotosPhotos.Unmarshal(m, b) +func (m *DialogPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DialogPeer.Unmarshal(m, b) } -func (m *TLPhotosPhotos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhotosPhotos.Marshal(b, m, deterministic) +func (m *DialogPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DialogPeer.Marshal(b, m, deterministic) } -func (dst *TLPhotosPhotos) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhotosPhotos.Merge(dst, src) +func (dst *DialogPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_DialogPeer.Merge(dst, src) } -func (m *TLPhotosPhotos) XXX_Size() int { - return xxx_messageInfo_TLPhotosPhotos.Size(m) +func (m *DialogPeer) XXX_Size() int { + return xxx_messageInfo_DialogPeer.Size(m) } -func (m *TLPhotosPhotos) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhotosPhotos.DiscardUnknown(m) +func (m *DialogPeer) XXX_DiscardUnknown() { + xxx_messageInfo_DialogPeer.DiscardUnknown(m) } -var xxx_messageInfo_TLPhotosPhotos proto.InternalMessageInfo +var xxx_messageInfo_DialogPeer proto.InternalMessageInfo -func (m *TLPhotosPhotos) GetData2() *Photos_Photos_Data { +func (m *DialogPeer) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *DialogPeer) GetData2() *DialogPeer_Data { if m != nil { return m.Data2 } return nil } -// photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos; -type TLPhotosPhotosSlice struct { - Data2 *Photos_Photos_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// dialogPeer#e56dbf05 peer:Peer = DialogPeer; +type TLDialogPeer struct { + Data2 *DialogPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPhotosPhotosSlice) Reset() { *m = TLPhotosPhotosSlice{} } -func (m *TLPhotosPhotosSlice) String() string { return proto.CompactTextString(m) } -func (*TLPhotosPhotosSlice) ProtoMessage() {} -func (*TLPhotosPhotosSlice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1127} +func (m *TLDialogPeer) Reset() { *m = TLDialogPeer{} } +func (m *TLDialogPeer) String() string { return proto.CompactTextString(m) } +func (*TLDialogPeer) ProtoMessage() {} +func (*TLDialogPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1089} } -func (m *TLPhotosPhotosSlice) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPhotosPhotosSlice.Unmarshal(m, b) +func (m *TLDialogPeer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDialogPeer.Unmarshal(m, b) } -func (m *TLPhotosPhotosSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPhotosPhotosSlice.Marshal(b, m, deterministic) +func (m *TLDialogPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDialogPeer.Marshal(b, m, deterministic) } -func (dst *TLPhotosPhotosSlice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPhotosPhotosSlice.Merge(dst, src) +func (dst *TLDialogPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDialogPeer.Merge(dst, src) } -func (m *TLPhotosPhotosSlice) XXX_Size() int { - return xxx_messageInfo_TLPhotosPhotosSlice.Size(m) +func (m *TLDialogPeer) XXX_Size() int { + return xxx_messageInfo_TLDialogPeer.Size(m) } -func (m *TLPhotosPhotosSlice) XXX_DiscardUnknown() { - xxx_messageInfo_TLPhotosPhotosSlice.DiscardUnknown(m) +func (m *TLDialogPeer) XXX_DiscardUnknown() { + xxx_messageInfo_TLDialogPeer.DiscardUnknown(m) } -var xxx_messageInfo_TLPhotosPhotosSlice proto.InternalMessageInfo +var xxx_messageInfo_TLDialogPeer proto.InternalMessageInfo -func (m *TLPhotosPhotosSlice) GetData2() *Photos_Photos_Data { +func (m *TLDialogPeer) GetData2() *DialogPeer_Data { if m != nil { return m.Data2 } @@ -54976,1095 +53133,3381 @@ func (m *TLPhotosPhotosSlice) GetData2() *Photos_Photos_Data { } // ///////////////////////////////////////////////////////////////////////////// -// NotifyPeer <-- -// + TL_notifyPeer -// + TL_notifyUsers -// + TL_notifyChats +// SecureValueHash <-- +// + TL_secureValueHash // -type NotifyPeer_Data struct { - Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SecureValueHash_Data struct { + Type *SecureValueType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *NotifyPeer_Data) Reset() { *m = NotifyPeer_Data{} } -func (m *NotifyPeer_Data) String() string { return proto.CompactTextString(m) } -func (*NotifyPeer_Data) ProtoMessage() {} -func (*NotifyPeer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1128} +func (m *SecureValueHash_Data) Reset() { *m = SecureValueHash_Data{} } +func (m *SecureValueHash_Data) String() string { return proto.CompactTextString(m) } +func (*SecureValueHash_Data) ProtoMessage() {} +func (*SecureValueHash_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1090} } -func (m *NotifyPeer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NotifyPeer_Data.Unmarshal(m, b) +func (m *SecureValueHash_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureValueHash_Data.Unmarshal(m, b) } -func (m *NotifyPeer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NotifyPeer_Data.Marshal(b, m, deterministic) +func (m *SecureValueHash_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureValueHash_Data.Marshal(b, m, deterministic) } -func (dst *NotifyPeer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotifyPeer_Data.Merge(dst, src) +func (dst *SecureValueHash_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureValueHash_Data.Merge(dst, src) } -func (m *NotifyPeer_Data) XXX_Size() int { - return xxx_messageInfo_NotifyPeer_Data.Size(m) +func (m *SecureValueHash_Data) XXX_Size() int { + return xxx_messageInfo_SecureValueHash_Data.Size(m) } -func (m *NotifyPeer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_NotifyPeer_Data.DiscardUnknown(m) +func (m *SecureValueHash_Data) XXX_DiscardUnknown() { + xxx_messageInfo_SecureValueHash_Data.DiscardUnknown(m) } -var xxx_messageInfo_NotifyPeer_Data proto.InternalMessageInfo +var xxx_messageInfo_SecureValueHash_Data proto.InternalMessageInfo -func (m *NotifyPeer_Data) GetPeer() *Peer { +func (m *SecureValueHash_Data) GetType() *SecureValueType { if m != nil { - return m.Peer + return m.Type } return nil } -type NotifyPeer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *NotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *SecureValueHash_Data) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil } -func (m *NotifyPeer) Reset() { *m = NotifyPeer{} } -func (m *NotifyPeer) String() string { return proto.CompactTextString(m) } -func (*NotifyPeer) ProtoMessage() {} -func (*NotifyPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1129} +type SecureValueHash struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *SecureValueHash_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *NotifyPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NotifyPeer.Unmarshal(m, b) + +func (m *SecureValueHash) Reset() { *m = SecureValueHash{} } +func (m *SecureValueHash) String() string { return proto.CompactTextString(m) } +func (*SecureValueHash) ProtoMessage() {} +func (*SecureValueHash) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1091} } -func (m *NotifyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NotifyPeer.Marshal(b, m, deterministic) +func (m *SecureValueHash) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecureValueHash.Unmarshal(m, b) } -func (dst *NotifyPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotifyPeer.Merge(dst, src) +func (m *SecureValueHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecureValueHash.Marshal(b, m, deterministic) } -func (m *NotifyPeer) XXX_Size() int { - return xxx_messageInfo_NotifyPeer.Size(m) +func (dst *SecureValueHash) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecureValueHash.Merge(dst, src) } -func (m *NotifyPeer) XXX_DiscardUnknown() { - xxx_messageInfo_NotifyPeer.DiscardUnknown(m) +func (m *SecureValueHash) XXX_Size() int { + return xxx_messageInfo_SecureValueHash.Size(m) +} +func (m *SecureValueHash) XXX_DiscardUnknown() { + xxx_messageInfo_SecureValueHash.DiscardUnknown(m) } -var xxx_messageInfo_NotifyPeer proto.InternalMessageInfo +var xxx_messageInfo_SecureValueHash proto.InternalMessageInfo -func (m *NotifyPeer) GetConstructor() TLConstructor { +func (m *SecureValueHash) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *NotifyPeer) GetData2() *NotifyPeer_Data { +func (m *SecureValueHash) GetData2() *SecureValueHash_Data { if m != nil { return m.Data2 } return nil } -// notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; -type TLNotifyPeer struct { - Data2 *NotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash; +type TLSecureValueHash struct { + Data2 *SecureValueHash_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLNotifyPeer) Reset() { *m = TLNotifyPeer{} } -func (m *TLNotifyPeer) String() string { return proto.CompactTextString(m) } -func (*TLNotifyPeer) ProtoMessage() {} -func (*TLNotifyPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1130} +func (m *TLSecureValueHash) Reset() { *m = TLSecureValueHash{} } +func (m *TLSecureValueHash) String() string { return proto.CompactTextString(m) } +func (*TLSecureValueHash) ProtoMessage() {} +func (*TLSecureValueHash) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1092} } -func (m *TLNotifyPeer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLNotifyPeer.Unmarshal(m, b) +func (m *TLSecureValueHash) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSecureValueHash.Unmarshal(m, b) } -func (m *TLNotifyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLNotifyPeer.Marshal(b, m, deterministic) +func (m *TLSecureValueHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSecureValueHash.Marshal(b, m, deterministic) } -func (dst *TLNotifyPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLNotifyPeer.Merge(dst, src) +func (dst *TLSecureValueHash) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSecureValueHash.Merge(dst, src) } -func (m *TLNotifyPeer) XXX_Size() int { - return xxx_messageInfo_TLNotifyPeer.Size(m) +func (m *TLSecureValueHash) XXX_Size() int { + return xxx_messageInfo_TLSecureValueHash.Size(m) } -func (m *TLNotifyPeer) XXX_DiscardUnknown() { - xxx_messageInfo_TLNotifyPeer.DiscardUnknown(m) +func (m *TLSecureValueHash) XXX_DiscardUnknown() { + xxx_messageInfo_TLSecureValueHash.DiscardUnknown(m) } -var xxx_messageInfo_TLNotifyPeer proto.InternalMessageInfo +var xxx_messageInfo_TLSecureValueHash proto.InternalMessageInfo -func (m *TLNotifyPeer) GetData2() *NotifyPeer_Data { +func (m *TLSecureValueHash) GetData2() *SecureValueHash_Data { if m != nil { return m.Data2 } return nil } -// notifyUsers#b4c83b4c = NotifyPeer; -type TLNotifyUsers struct { - Data2 *NotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` +// ///////////////////////////////////////////////////////////////////////////// +// help_TermsOfService <-- +// + TL_help_termsOfService +// +type Help_TermsOfService_Data struct { + Popup bool `protobuf:"varint,1,opt,name=popup,proto3" json:"popup,omitempty"` + Id *DataJSON `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` + Entities []*MessageEntity `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"` + MinAgeConfirm int32 `protobuf:"varint,5,opt,name=min_age_confirm,json=minAgeConfirm,proto3" json:"min_age_confirm,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *TLNotifyUsers) Reset() { *m = TLNotifyUsers{} } -func (m *TLNotifyUsers) String() string { return proto.CompactTextString(m) } -func (*TLNotifyUsers) ProtoMessage() {} -func (*TLNotifyUsers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1131} +func (m *Help_TermsOfService_Data) Reset() { *m = Help_TermsOfService_Data{} } +func (m *Help_TermsOfService_Data) String() string { return proto.CompactTextString(m) } +func (*Help_TermsOfService_Data) ProtoMessage() {} +func (*Help_TermsOfService_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1093} } -func (m *TLNotifyUsers) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLNotifyUsers.Unmarshal(m, b) +func (m *Help_TermsOfService_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_TermsOfService_Data.Unmarshal(m, b) } -func (m *TLNotifyUsers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLNotifyUsers.Marshal(b, m, deterministic) +func (m *Help_TermsOfService_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_TermsOfService_Data.Marshal(b, m, deterministic) } -func (dst *TLNotifyUsers) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLNotifyUsers.Merge(dst, src) +func (dst *Help_TermsOfService_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_TermsOfService_Data.Merge(dst, src) } -func (m *TLNotifyUsers) XXX_Size() int { - return xxx_messageInfo_TLNotifyUsers.Size(m) +func (m *Help_TermsOfService_Data) XXX_Size() int { + return xxx_messageInfo_Help_TermsOfService_Data.Size(m) } -func (m *TLNotifyUsers) XXX_DiscardUnknown() { - xxx_messageInfo_TLNotifyUsers.DiscardUnknown(m) +func (m *Help_TermsOfService_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_TermsOfService_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLNotifyUsers proto.InternalMessageInfo +var xxx_messageInfo_Help_TermsOfService_Data proto.InternalMessageInfo -func (m *TLNotifyUsers) GetData2() *NotifyPeer_Data { +func (m *Help_TermsOfService_Data) GetPopup() bool { if m != nil { - return m.Data2 + return m.Popup + } + return false +} + +func (m *Help_TermsOfService_Data) GetId() *DataJSON { + if m != nil { + return m.Id } return nil } -// notifyChats#c007cec3 = NotifyPeer; -type TLNotifyChats struct { - Data2 *NotifyPeer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Help_TermsOfService_Data) GetText() string { + if m != nil { + return m.Text + } + return "" } -func (m *TLNotifyChats) Reset() { *m = TLNotifyChats{} } -func (m *TLNotifyChats) String() string { return proto.CompactTextString(m) } -func (*TLNotifyChats) ProtoMessage() {} -func (*TLNotifyChats) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1132} +func (m *Help_TermsOfService_Data) GetEntities() []*MessageEntity { + if m != nil { + return m.Entities + } + return nil } -func (m *TLNotifyChats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLNotifyChats.Unmarshal(m, b) + +func (m *Help_TermsOfService_Data) GetMinAgeConfirm() int32 { + if m != nil { + return m.MinAgeConfirm + } + return 0 } -func (m *TLNotifyChats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLNotifyChats.Marshal(b, m, deterministic) + +type Help_TermsOfService struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Help_TermsOfService_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (dst *TLNotifyChats) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLNotifyChats.Merge(dst, src) + +func (m *Help_TermsOfService) Reset() { *m = Help_TermsOfService{} } +func (m *Help_TermsOfService) String() string { return proto.CompactTextString(m) } +func (*Help_TermsOfService) ProtoMessage() {} +func (*Help_TermsOfService) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1094} } -func (m *TLNotifyChats) XXX_Size() int { - return xxx_messageInfo_TLNotifyChats.Size(m) +func (m *Help_TermsOfService) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_TermsOfService.Unmarshal(m, b) } -func (m *TLNotifyChats) XXX_DiscardUnknown() { - xxx_messageInfo_TLNotifyChats.DiscardUnknown(m) +func (m *Help_TermsOfService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_TermsOfService.Marshal(b, m, deterministic) +} +func (dst *Help_TermsOfService) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_TermsOfService.Merge(dst, src) +} +func (m *Help_TermsOfService) XXX_Size() int { + return xxx_messageInfo_Help_TermsOfService.Size(m) +} +func (m *Help_TermsOfService) XXX_DiscardUnknown() { + xxx_messageInfo_Help_TermsOfService.DiscardUnknown(m) } -var xxx_messageInfo_TLNotifyChats proto.InternalMessageInfo +var xxx_messageInfo_Help_TermsOfService proto.InternalMessageInfo -func (m *TLNotifyChats) GetData2() *NotifyPeer_Data { +func (m *Help_TermsOfService) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Help_TermsOfService) GetData2() *Help_TermsOfService_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// InputStickerSet <-- -// + TL_inputStickerSetEmpty -// + TL_inputStickerSetID -// + TL_inputStickerSetShortName -// -type InputStickerSet_Data struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - AccessHash int64 `protobuf:"varint,2,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` - ShortName string `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService; +type TLHelpTermsOfService struct { + Data2 *Help_TermsOfService_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputStickerSet_Data) Reset() { *m = InputStickerSet_Data{} } -func (m *InputStickerSet_Data) String() string { return proto.CompactTextString(m) } -func (*InputStickerSet_Data) ProtoMessage() {} -func (*InputStickerSet_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1133} +func (m *TLHelpTermsOfService) Reset() { *m = TLHelpTermsOfService{} } +func (m *TLHelpTermsOfService) String() string { return proto.CompactTextString(m) } +func (*TLHelpTermsOfService) ProtoMessage() {} +func (*TLHelpTermsOfService) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1095} } -func (m *InputStickerSet_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputStickerSet_Data.Unmarshal(m, b) +func (m *TLHelpTermsOfService) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpTermsOfService.Unmarshal(m, b) } -func (m *InputStickerSet_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputStickerSet_Data.Marshal(b, m, deterministic) +func (m *TLHelpTermsOfService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpTermsOfService.Marshal(b, m, deterministic) } -func (dst *InputStickerSet_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputStickerSet_Data.Merge(dst, src) +func (dst *TLHelpTermsOfService) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpTermsOfService.Merge(dst, src) } -func (m *InputStickerSet_Data) XXX_Size() int { - return xxx_messageInfo_InputStickerSet_Data.Size(m) +func (m *TLHelpTermsOfService) XXX_Size() int { + return xxx_messageInfo_TLHelpTermsOfService.Size(m) } -func (m *InputStickerSet_Data) XXX_DiscardUnknown() { - xxx_messageInfo_InputStickerSet_Data.DiscardUnknown(m) +func (m *TLHelpTermsOfService) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpTermsOfService.DiscardUnknown(m) } -var xxx_messageInfo_InputStickerSet_Data proto.InternalMessageInfo +var xxx_messageInfo_TLHelpTermsOfService proto.InternalMessageInfo -func (m *InputStickerSet_Data) GetId() int64 { +func (m *TLHelpTermsOfService) GetData2() *Help_TermsOfService_Data { if m != nil { - return m.Id + return m.Data2 } - return 0 + return nil } -func (m *InputStickerSet_Data) GetAccessHash() int64 { - if m != nil { - return m.AccessHash - } - return 0 -} - -func (m *InputStickerSet_Data) GetShortName() string { - if m != nil { - return m.ShortName - } - return "" -} - -type InputStickerSet struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *InputStickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// PageBlock <-- +// + TL_pageBlockUnsupported +// + TL_pageBlockTitle +// + TL_pageBlockSubtitle +// + TL_pageBlockAuthorDate +// + TL_pageBlockHeader +// + TL_pageBlockSubheader +// + TL_pageBlockParagraph +// + TL_pageBlockPreformatted +// + TL_pageBlockFooter +// + TL_pageBlockDivider +// + TL_pageBlockAnchor +// + TL_pageBlockList +// + TL_pageBlockBlockquote +// + TL_pageBlockPullquote +// + TL_pageBlockPhoto +// + TL_pageBlockVideo +// + TL_pageBlockCover +// + TL_pageBlockEmbed +// + TL_pageBlockEmbedPost +// + TL_pageBlockCollage +// + TL_pageBlockSlideshow +// + TL_pageBlockChannel +// + TL_pageBlockAudio +// +type PageBlock_Data struct { + Text *RichText `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + Author_2 *RichText `protobuf:"bytes,2,opt,name=author_2,json=author2,proto3" json:"author_2,omitempty"` + PublishedDate int32 `protobuf:"varint,3,opt,name=published_date,json=publishedDate,proto3" json:"published_date,omitempty"` + Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + Ordered *Bool `protobuf:"bytes,6,opt,name=ordered,proto3" json:"ordered,omitempty"` + Items_7 []*RichText `protobuf:"bytes,7,rep,name=items_7,json=items7,proto3" json:"items_7,omitempty"` + Caption *RichText `protobuf:"bytes,8,opt,name=caption,proto3" json:"caption,omitempty"` + PhotoId int64 `protobuf:"varint,9,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"` + Autoplay bool `protobuf:"varint,10,opt,name=autoplay,proto3" json:"autoplay,omitempty"` + Loop bool `protobuf:"varint,11,opt,name=loop,proto3" json:"loop,omitempty"` + VideoId int64 `protobuf:"varint,12,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` + Cover *PageBlock `protobuf:"bytes,13,opt,name=cover,proto3" json:"cover,omitempty"` + FullWidth bool `protobuf:"varint,14,opt,name=full_width,json=fullWidth,proto3" json:"full_width,omitempty"` + AllowScrolling bool `protobuf:"varint,15,opt,name=allow_scrolling,json=allowScrolling,proto3" json:"allow_scrolling,omitempty"` + Url string `protobuf:"bytes,16,opt,name=url,proto3" json:"url,omitempty"` + Html string `protobuf:"bytes,17,opt,name=html,proto3" json:"html,omitempty"` + PosterPhotoId int64 `protobuf:"varint,18,opt,name=poster_photo_id,json=posterPhotoId,proto3" json:"poster_photo_id,omitempty"` + W int32 `protobuf:"varint,19,opt,name=w,proto3" json:"w,omitempty"` + H int32 `protobuf:"varint,20,opt,name=h,proto3" json:"h,omitempty"` + WebpageId int64 `protobuf:"varint,21,opt,name=webpage_id,json=webpageId,proto3" json:"webpage_id,omitempty"` + AuthorPhotoId int64 `protobuf:"varint,22,opt,name=author_photo_id,json=authorPhotoId,proto3" json:"author_photo_id,omitempty"` + Author_23 string `protobuf:"bytes,23,opt,name=author_23,json=author23,proto3" json:"author_23,omitempty"` + Date int32 `protobuf:"varint,24,opt,name=date,proto3" json:"date,omitempty"` + Blocks []*PageBlock `protobuf:"bytes,25,rep,name=blocks,proto3" json:"blocks,omitempty"` + Items_26 []*PageBlock `protobuf:"bytes,26,rep,name=items_26,json=items26,proto3" json:"items_26,omitempty"` + Channel *Chat `protobuf:"bytes,27,opt,name=channel,proto3" json:"channel,omitempty"` + AudioId int64 `protobuf:"varint,28,opt,name=audio_id,json=audioId,proto3" json:"audio_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InputStickerSet) Reset() { *m = InputStickerSet{} } -func (m *InputStickerSet) String() string { return proto.CompactTextString(m) } -func (*InputStickerSet) ProtoMessage() {} -func (*InputStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1134} +func (m *PageBlock_Data) Reset() { *m = PageBlock_Data{} } +func (m *PageBlock_Data) String() string { return proto.CompactTextString(m) } +func (*PageBlock_Data) ProtoMessage() {} +func (*PageBlock_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1096} } -func (m *InputStickerSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputStickerSet.Unmarshal(m, b) +func (m *PageBlock_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PageBlock_Data.Unmarshal(m, b) } -func (m *InputStickerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputStickerSet.Marshal(b, m, deterministic) +func (m *PageBlock_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PageBlock_Data.Marshal(b, m, deterministic) } -func (dst *InputStickerSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputStickerSet.Merge(dst, src) +func (dst *PageBlock_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_PageBlock_Data.Merge(dst, src) } -func (m *InputStickerSet) XXX_Size() int { - return xxx_messageInfo_InputStickerSet.Size(m) +func (m *PageBlock_Data) XXX_Size() int { + return xxx_messageInfo_PageBlock_Data.Size(m) } -func (m *InputStickerSet) XXX_DiscardUnknown() { - xxx_messageInfo_InputStickerSet.DiscardUnknown(m) +func (m *PageBlock_Data) XXX_DiscardUnknown() { + xxx_messageInfo_PageBlock_Data.DiscardUnknown(m) } -var xxx_messageInfo_InputStickerSet proto.InternalMessageInfo +var xxx_messageInfo_PageBlock_Data proto.InternalMessageInfo -func (m *InputStickerSet) GetConstructor() TLConstructor { +func (m *PageBlock_Data) GetText() *RichText { if m != nil { - return m.Constructor + return m.Text } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *InputStickerSet) GetData2() *InputStickerSet_Data { +func (m *PageBlock_Data) GetAuthor_2() *RichText { if m != nil { - return m.Data2 + return m.Author_2 } return nil } -// inputStickerSetEmpty#ffb62b95 = InputStickerSet; -type TLInputStickerSetEmpty struct { - Data2 *InputStickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PageBlock_Data) GetPublishedDate() int32 { + if m != nil { + return m.PublishedDate + } + return 0 } -func (m *TLInputStickerSetEmpty) Reset() { *m = TLInputStickerSetEmpty{} } -func (m *TLInputStickerSetEmpty) String() string { return proto.CompactTextString(m) } -func (*TLInputStickerSetEmpty) ProtoMessage() {} -func (*TLInputStickerSetEmpty) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1135} -} -func (m *TLInputStickerSetEmpty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputStickerSetEmpty.Unmarshal(m, b) -} -func (m *TLInputStickerSetEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputStickerSetEmpty.Marshal(b, m, deterministic) -} -func (dst *TLInputStickerSetEmpty) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputStickerSetEmpty.Merge(dst, src) -} -func (m *TLInputStickerSetEmpty) XXX_Size() int { - return xxx_messageInfo_TLInputStickerSetEmpty.Size(m) -} -func (m *TLInputStickerSetEmpty) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputStickerSetEmpty.DiscardUnknown(m) +func (m *PageBlock_Data) GetLanguage() string { + if m != nil { + return m.Language + } + return "" } -var xxx_messageInfo_TLInputStickerSetEmpty proto.InternalMessageInfo +func (m *PageBlock_Data) GetName() string { + if m != nil { + return m.Name + } + return "" +} -func (m *TLInputStickerSetEmpty) GetData2() *InputStickerSet_Data { +func (m *PageBlock_Data) GetOrdered() *Bool { if m != nil { - return m.Data2 + return m.Ordered } return nil } -// inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; -type TLInputStickerSetID struct { - Data2 *InputStickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PageBlock_Data) GetItems_7() []*RichText { + if m != nil { + return m.Items_7 + } + return nil } -func (m *TLInputStickerSetID) Reset() { *m = TLInputStickerSetID{} } -func (m *TLInputStickerSetID) String() string { return proto.CompactTextString(m) } -func (*TLInputStickerSetID) ProtoMessage() {} -func (*TLInputStickerSetID) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1136} -} -func (m *TLInputStickerSetID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputStickerSetID.Unmarshal(m, b) -} -func (m *TLInputStickerSetID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputStickerSetID.Marshal(b, m, deterministic) +func (m *PageBlock_Data) GetCaption() *RichText { + if m != nil { + return m.Caption + } + return nil } -func (dst *TLInputStickerSetID) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputStickerSetID.Merge(dst, src) + +func (m *PageBlock_Data) GetPhotoId() int64 { + if m != nil { + return m.PhotoId + } + return 0 } -func (m *TLInputStickerSetID) XXX_Size() int { - return xxx_messageInfo_TLInputStickerSetID.Size(m) + +func (m *PageBlock_Data) GetAutoplay() bool { + if m != nil { + return m.Autoplay + } + return false } -func (m *TLInputStickerSetID) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputStickerSetID.DiscardUnknown(m) + +func (m *PageBlock_Data) GetLoop() bool { + if m != nil { + return m.Loop + } + return false } -var xxx_messageInfo_TLInputStickerSetID proto.InternalMessageInfo +func (m *PageBlock_Data) GetVideoId() int64 { + if m != nil { + return m.VideoId + } + return 0 +} -func (m *TLInputStickerSetID) GetData2() *InputStickerSet_Data { +func (m *PageBlock_Data) GetCover() *PageBlock { if m != nil { - return m.Data2 + return m.Cover } return nil } -// inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; -type TLInputStickerSetShortName struct { - Data2 *InputStickerSet_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PageBlock_Data) GetFullWidth() bool { + if m != nil { + return m.FullWidth + } + return false } -func (m *TLInputStickerSetShortName) Reset() { *m = TLInputStickerSetShortName{} } -func (m *TLInputStickerSetShortName) String() string { return proto.CompactTextString(m) } -func (*TLInputStickerSetShortName) ProtoMessage() {} -func (*TLInputStickerSetShortName) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1137} -} -func (m *TLInputStickerSetShortName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInputStickerSetShortName.Unmarshal(m, b) -} -func (m *TLInputStickerSetShortName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInputStickerSetShortName.Marshal(b, m, deterministic) -} -func (dst *TLInputStickerSetShortName) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInputStickerSetShortName.Merge(dst, src) -} -func (m *TLInputStickerSetShortName) XXX_Size() int { - return xxx_messageInfo_TLInputStickerSetShortName.Size(m) -} -func (m *TLInputStickerSetShortName) XXX_DiscardUnknown() { - xxx_messageInfo_TLInputStickerSetShortName.DiscardUnknown(m) +func (m *PageBlock_Data) GetAllowScrolling() bool { + if m != nil { + return m.AllowScrolling + } + return false } -var xxx_messageInfo_TLInputStickerSetShortName proto.InternalMessageInfo +func (m *PageBlock_Data) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} -func (m *TLInputStickerSetShortName) GetData2() *InputStickerSet_Data { +func (m *PageBlock_Data) GetHtml() string { if m != nil { - return m.Data2 + return m.Html } - return nil + return "" } -// ///////////////////////////////////////////////////////////////////////////// -// messages_SavedGifs <-- -// + TL_messages_savedGifsNotModified -// + TL_messages_savedGifs -// -type Messages_SavedGifs_Data struct { - Hash int32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"` - Gifs []*Document `protobuf:"bytes,2,rep,name=gifs,proto3" json:"gifs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PageBlock_Data) GetPosterPhotoId() int64 { + if m != nil { + return m.PosterPhotoId + } + return 0 } -func (m *Messages_SavedGifs_Data) Reset() { *m = Messages_SavedGifs_Data{} } -func (m *Messages_SavedGifs_Data) String() string { return proto.CompactTextString(m) } -func (*Messages_SavedGifs_Data) ProtoMessage() {} -func (*Messages_SavedGifs_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1138} +func (m *PageBlock_Data) GetW() int32 { + if m != nil { + return m.W + } + return 0 } -func (m *Messages_SavedGifs_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_SavedGifs_Data.Unmarshal(m, b) + +func (m *PageBlock_Data) GetH() int32 { + if m != nil { + return m.H + } + return 0 } -func (m *Messages_SavedGifs_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_SavedGifs_Data.Marshal(b, m, deterministic) + +func (m *PageBlock_Data) GetWebpageId() int64 { + if m != nil { + return m.WebpageId + } + return 0 } -func (dst *Messages_SavedGifs_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_SavedGifs_Data.Merge(dst, src) + +func (m *PageBlock_Data) GetAuthorPhotoId() int64 { + if m != nil { + return m.AuthorPhotoId + } + return 0 } -func (m *Messages_SavedGifs_Data) XXX_Size() int { - return xxx_messageInfo_Messages_SavedGifs_Data.Size(m) + +func (m *PageBlock_Data) GetAuthor_23() string { + if m != nil { + return m.Author_23 + } + return "" } -func (m *Messages_SavedGifs_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_SavedGifs_Data.DiscardUnknown(m) + +func (m *PageBlock_Data) GetDate() int32 { + if m != nil { + return m.Date + } + return 0 } -var xxx_messageInfo_Messages_SavedGifs_Data proto.InternalMessageInfo +func (m *PageBlock_Data) GetBlocks() []*PageBlock { + if m != nil { + return m.Blocks + } + return nil +} -func (m *Messages_SavedGifs_Data) GetHash() int32 { +func (m *PageBlock_Data) GetItems_26() []*PageBlock { if m != nil { - return m.Hash + return m.Items_26 } - return 0 + return nil } -func (m *Messages_SavedGifs_Data) GetGifs() []*Document { +func (m *PageBlock_Data) GetChannel() *Chat { if m != nil { - return m.Gifs + return m.Channel } return nil } -type Messages_SavedGifs struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Messages_SavedGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *PageBlock_Data) GetAudioId() int64 { + if m != nil { + return m.AudioId + } + return 0 } -func (m *Messages_SavedGifs) Reset() { *m = Messages_SavedGifs{} } -func (m *Messages_SavedGifs) String() string { return proto.CompactTextString(m) } -func (*Messages_SavedGifs) ProtoMessage() {} -func (*Messages_SavedGifs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1139} +type PageBlock struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Messages_SavedGifs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Messages_SavedGifs.Unmarshal(m, b) + +func (m *PageBlock) Reset() { *m = PageBlock{} } +func (m *PageBlock) String() string { return proto.CompactTextString(m) } +func (*PageBlock) ProtoMessage() {} +func (*PageBlock) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1097} } -func (m *Messages_SavedGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Messages_SavedGifs.Marshal(b, m, deterministic) +func (m *PageBlock) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PageBlock.Unmarshal(m, b) } -func (dst *Messages_SavedGifs) XXX_Merge(src proto.Message) { - xxx_messageInfo_Messages_SavedGifs.Merge(dst, src) +func (m *PageBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PageBlock.Marshal(b, m, deterministic) } -func (m *Messages_SavedGifs) XXX_Size() int { - return xxx_messageInfo_Messages_SavedGifs.Size(m) +func (dst *PageBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_PageBlock.Merge(dst, src) } -func (m *Messages_SavedGifs) XXX_DiscardUnknown() { - xxx_messageInfo_Messages_SavedGifs.DiscardUnknown(m) +func (m *PageBlock) XXX_Size() int { + return xxx_messageInfo_PageBlock.Size(m) +} +func (m *PageBlock) XXX_DiscardUnknown() { + xxx_messageInfo_PageBlock.DiscardUnknown(m) } -var xxx_messageInfo_Messages_SavedGifs proto.InternalMessageInfo +var xxx_messageInfo_PageBlock proto.InternalMessageInfo -func (m *Messages_SavedGifs) GetConstructor() TLConstructor { +func (m *PageBlock) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Messages_SavedGifs) GetData2() *Messages_SavedGifs_Data { +func (m *PageBlock) GetData2() *PageBlock_Data { if m != nil { return m.Data2 } return nil } -// messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs; -type TLMessagesSavedGifsNotModified struct { - Data2 *Messages_SavedGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// pageBlockUnsupported#13567e8a = PageBlock; +type TLPageBlockUnsupported struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesSavedGifsNotModified) Reset() { *m = TLMessagesSavedGifsNotModified{} } -func (m *TLMessagesSavedGifsNotModified) String() string { return proto.CompactTextString(m) } -func (*TLMessagesSavedGifsNotModified) ProtoMessage() {} -func (*TLMessagesSavedGifsNotModified) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1140} +func (m *TLPageBlockUnsupported) Reset() { *m = TLPageBlockUnsupported{} } +func (m *TLPageBlockUnsupported) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockUnsupported) ProtoMessage() {} +func (*TLPageBlockUnsupported) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1098} } -func (m *TLMessagesSavedGifsNotModified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesSavedGifsNotModified.Unmarshal(m, b) +func (m *TLPageBlockUnsupported) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockUnsupported.Unmarshal(m, b) } -func (m *TLMessagesSavedGifsNotModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesSavedGifsNotModified.Marshal(b, m, deterministic) +func (m *TLPageBlockUnsupported) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockUnsupported.Marshal(b, m, deterministic) } -func (dst *TLMessagesSavedGifsNotModified) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesSavedGifsNotModified.Merge(dst, src) +func (dst *TLPageBlockUnsupported) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockUnsupported.Merge(dst, src) } -func (m *TLMessagesSavedGifsNotModified) XXX_Size() int { - return xxx_messageInfo_TLMessagesSavedGifsNotModified.Size(m) +func (m *TLPageBlockUnsupported) XXX_Size() int { + return xxx_messageInfo_TLPageBlockUnsupported.Size(m) } -func (m *TLMessagesSavedGifsNotModified) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesSavedGifsNotModified.DiscardUnknown(m) +func (m *TLPageBlockUnsupported) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockUnsupported.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesSavedGifsNotModified proto.InternalMessageInfo +var xxx_messageInfo_TLPageBlockUnsupported proto.InternalMessageInfo -func (m *TLMessagesSavedGifsNotModified) GetData2() *Messages_SavedGifs_Data { +func (m *TLPageBlockUnsupported) GetData2() *PageBlock_Data { if m != nil { return m.Data2 } return nil } -// messages.savedGifs#2e0709a5 hash:int gifs:Vector = messages.SavedGifs; -type TLMessagesSavedGifs struct { - Data2 *Messages_SavedGifs_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// pageBlockTitle#70abc3fd text:RichText = PageBlock; +type TLPageBlockTitle struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMessagesSavedGifs) Reset() { *m = TLMessagesSavedGifs{} } -func (m *TLMessagesSavedGifs) String() string { return proto.CompactTextString(m) } -func (*TLMessagesSavedGifs) ProtoMessage() {} -func (*TLMessagesSavedGifs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1141} +func (m *TLPageBlockTitle) Reset() { *m = TLPageBlockTitle{} } +func (m *TLPageBlockTitle) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockTitle) ProtoMessage() {} +func (*TLPageBlockTitle) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1099} } -func (m *TLMessagesSavedGifs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMessagesSavedGifs.Unmarshal(m, b) +func (m *TLPageBlockTitle) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockTitle.Unmarshal(m, b) } -func (m *TLMessagesSavedGifs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMessagesSavedGifs.Marshal(b, m, deterministic) +func (m *TLPageBlockTitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockTitle.Marshal(b, m, deterministic) } -func (dst *TLMessagesSavedGifs) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMessagesSavedGifs.Merge(dst, src) +func (dst *TLPageBlockTitle) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockTitle.Merge(dst, src) } -func (m *TLMessagesSavedGifs) XXX_Size() int { - return xxx_messageInfo_TLMessagesSavedGifs.Size(m) +func (m *TLPageBlockTitle) XXX_Size() int { + return xxx_messageInfo_TLPageBlockTitle.Size(m) } -func (m *TLMessagesSavedGifs) XXX_DiscardUnknown() { - xxx_messageInfo_TLMessagesSavedGifs.DiscardUnknown(m) +func (m *TLPageBlockTitle) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockTitle.DiscardUnknown(m) } -var xxx_messageInfo_TLMessagesSavedGifs proto.InternalMessageInfo +var xxx_messageInfo_TLPageBlockTitle proto.InternalMessageInfo -func (m *TLMessagesSavedGifs) GetData2() *Messages_SavedGifs_Data { +func (m *TLPageBlockTitle) GetData2() *PageBlock_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// upload_CdnFile <-- -// + TL_upload_cdnFileReuploadNeeded -// + TL_upload_cdnFile -// -type Upload_CdnFile_Data struct { - RequestToken []byte `protobuf:"bytes,1,opt,name=request_token,json=requestToken,proto3" json:"request_token,omitempty"` - Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock; +type TLPageBlockSubtitle struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Upload_CdnFile_Data) Reset() { *m = Upload_CdnFile_Data{} } -func (m *Upload_CdnFile_Data) String() string { return proto.CompactTextString(m) } -func (*Upload_CdnFile_Data) ProtoMessage() {} -func (*Upload_CdnFile_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1142} +func (m *TLPageBlockSubtitle) Reset() { *m = TLPageBlockSubtitle{} } +func (m *TLPageBlockSubtitle) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockSubtitle) ProtoMessage() {} +func (*TLPageBlockSubtitle) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1100} } -func (m *Upload_CdnFile_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Upload_CdnFile_Data.Unmarshal(m, b) +func (m *TLPageBlockSubtitle) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockSubtitle.Unmarshal(m, b) } -func (m *Upload_CdnFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Upload_CdnFile_Data.Marshal(b, m, deterministic) +func (m *TLPageBlockSubtitle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockSubtitle.Marshal(b, m, deterministic) } -func (dst *Upload_CdnFile_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Upload_CdnFile_Data.Merge(dst, src) +func (dst *TLPageBlockSubtitle) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockSubtitle.Merge(dst, src) } -func (m *Upload_CdnFile_Data) XXX_Size() int { - return xxx_messageInfo_Upload_CdnFile_Data.Size(m) +func (m *TLPageBlockSubtitle) XXX_Size() int { + return xxx_messageInfo_TLPageBlockSubtitle.Size(m) } -func (m *Upload_CdnFile_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Upload_CdnFile_Data.DiscardUnknown(m) +func (m *TLPageBlockSubtitle) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockSubtitle.DiscardUnknown(m) } -var xxx_messageInfo_Upload_CdnFile_Data proto.InternalMessageInfo +var xxx_messageInfo_TLPageBlockSubtitle proto.InternalMessageInfo -func (m *Upload_CdnFile_Data) GetRequestToken() []byte { +func (m *TLPageBlockSubtitle) GetData2() *PageBlock_Data { if m != nil { - return m.RequestToken + return m.Data2 } return nil } -func (m *Upload_CdnFile_Data) GetBytes() []byte { +// pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock; +type TLPageBlockAuthorDate struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockAuthorDate) Reset() { *m = TLPageBlockAuthorDate{} } +func (m *TLPageBlockAuthorDate) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockAuthorDate) ProtoMessage() {} +func (*TLPageBlockAuthorDate) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1101} +} +func (m *TLPageBlockAuthorDate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockAuthorDate.Unmarshal(m, b) +} +func (m *TLPageBlockAuthorDate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockAuthorDate.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockAuthorDate) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockAuthorDate.Merge(dst, src) +} +func (m *TLPageBlockAuthorDate) XXX_Size() int { + return xxx_messageInfo_TLPageBlockAuthorDate.Size(m) +} +func (m *TLPageBlockAuthorDate) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockAuthorDate.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockAuthorDate proto.InternalMessageInfo + +func (m *TLPageBlockAuthorDate) GetData2() *PageBlock_Data { if m != nil { - return m.Bytes + return m.Data2 } return nil } -type Upload_CdnFile struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Upload_CdnFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// pageBlockHeader#bfd064ec text:RichText = PageBlock; +type TLPageBlockHeader struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Upload_CdnFile) Reset() { *m = Upload_CdnFile{} } -func (m *Upload_CdnFile) String() string { return proto.CompactTextString(m) } -func (*Upload_CdnFile) ProtoMessage() {} -func (*Upload_CdnFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1143} +func (m *TLPageBlockHeader) Reset() { *m = TLPageBlockHeader{} } +func (m *TLPageBlockHeader) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockHeader) ProtoMessage() {} +func (*TLPageBlockHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1102} } -func (m *Upload_CdnFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Upload_CdnFile.Unmarshal(m, b) +func (m *TLPageBlockHeader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockHeader.Unmarshal(m, b) } -func (m *Upload_CdnFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Upload_CdnFile.Marshal(b, m, deterministic) +func (m *TLPageBlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockHeader.Marshal(b, m, deterministic) } -func (dst *Upload_CdnFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_Upload_CdnFile.Merge(dst, src) +func (dst *TLPageBlockHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockHeader.Merge(dst, src) } -func (m *Upload_CdnFile) XXX_Size() int { - return xxx_messageInfo_Upload_CdnFile.Size(m) +func (m *TLPageBlockHeader) XXX_Size() int { + return xxx_messageInfo_TLPageBlockHeader.Size(m) } -func (m *Upload_CdnFile) XXX_DiscardUnknown() { - xxx_messageInfo_Upload_CdnFile.DiscardUnknown(m) +func (m *TLPageBlockHeader) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockHeader.DiscardUnknown(m) } -var xxx_messageInfo_Upload_CdnFile proto.InternalMessageInfo +var xxx_messageInfo_TLPageBlockHeader proto.InternalMessageInfo -func (m *Upload_CdnFile) GetConstructor() TLConstructor { +func (m *TLPageBlockHeader) GetData2() *PageBlock_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *Upload_CdnFile) GetData2() *Upload_CdnFile_Data { +// pageBlockSubheader#f12bb6e1 text:RichText = PageBlock; +type TLPageBlockSubheader struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockSubheader) Reset() { *m = TLPageBlockSubheader{} } +func (m *TLPageBlockSubheader) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockSubheader) ProtoMessage() {} +func (*TLPageBlockSubheader) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1103} +} +func (m *TLPageBlockSubheader) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockSubheader.Unmarshal(m, b) +} +func (m *TLPageBlockSubheader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockSubheader.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockSubheader) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockSubheader.Merge(dst, src) +} +func (m *TLPageBlockSubheader) XXX_Size() int { + return xxx_messageInfo_TLPageBlockSubheader.Size(m) +} +func (m *TLPageBlockSubheader) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockSubheader.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockSubheader proto.InternalMessageInfo + +func (m *TLPageBlockSubheader) GetData2() *PageBlock_Data { if m != nil { return m.Data2 } return nil } -// upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile; -type TLUploadCdnFileReuploadNeeded struct { - Data2 *Upload_CdnFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// pageBlockParagraph#467a0766 text:RichText = PageBlock; +type TLPageBlockParagraph struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUploadCdnFileReuploadNeeded) Reset() { *m = TLUploadCdnFileReuploadNeeded{} } -func (m *TLUploadCdnFileReuploadNeeded) String() string { return proto.CompactTextString(m) } -func (*TLUploadCdnFileReuploadNeeded) ProtoMessage() {} -func (*TLUploadCdnFileReuploadNeeded) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1144} +func (m *TLPageBlockParagraph) Reset() { *m = TLPageBlockParagraph{} } +func (m *TLPageBlockParagraph) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockParagraph) ProtoMessage() {} +func (*TLPageBlockParagraph) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1104} } -func (m *TLUploadCdnFileReuploadNeeded) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUploadCdnFileReuploadNeeded.Unmarshal(m, b) +func (m *TLPageBlockParagraph) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockParagraph.Unmarshal(m, b) } -func (m *TLUploadCdnFileReuploadNeeded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUploadCdnFileReuploadNeeded.Marshal(b, m, deterministic) +func (m *TLPageBlockParagraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockParagraph.Marshal(b, m, deterministic) } -func (dst *TLUploadCdnFileReuploadNeeded) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUploadCdnFileReuploadNeeded.Merge(dst, src) +func (dst *TLPageBlockParagraph) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockParagraph.Merge(dst, src) } -func (m *TLUploadCdnFileReuploadNeeded) XXX_Size() int { - return xxx_messageInfo_TLUploadCdnFileReuploadNeeded.Size(m) +func (m *TLPageBlockParagraph) XXX_Size() int { + return xxx_messageInfo_TLPageBlockParagraph.Size(m) } -func (m *TLUploadCdnFileReuploadNeeded) XXX_DiscardUnknown() { - xxx_messageInfo_TLUploadCdnFileReuploadNeeded.DiscardUnknown(m) +func (m *TLPageBlockParagraph) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockParagraph.DiscardUnknown(m) } -var xxx_messageInfo_TLUploadCdnFileReuploadNeeded proto.InternalMessageInfo +var xxx_messageInfo_TLPageBlockParagraph proto.InternalMessageInfo -func (m *TLUploadCdnFileReuploadNeeded) GetData2() *Upload_CdnFile_Data { +func (m *TLPageBlockParagraph) GetData2() *PageBlock_Data { if m != nil { return m.Data2 } return nil } -// upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile; -type TLUploadCdnFile struct { - Data2 *Upload_CdnFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock; +type TLPageBlockPreformatted struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLUploadCdnFile) Reset() { *m = TLUploadCdnFile{} } -func (m *TLUploadCdnFile) String() string { return proto.CompactTextString(m) } -func (*TLUploadCdnFile) ProtoMessage() {} -func (*TLUploadCdnFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_aa1879c9cc095db6, []int{1145} +func (m *TLPageBlockPreformatted) Reset() { *m = TLPageBlockPreformatted{} } +func (m *TLPageBlockPreformatted) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockPreformatted) ProtoMessage() {} +func (*TLPageBlockPreformatted) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1105} } -func (m *TLUploadCdnFile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLUploadCdnFile.Unmarshal(m, b) +func (m *TLPageBlockPreformatted) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockPreformatted.Unmarshal(m, b) } -func (m *TLUploadCdnFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLUploadCdnFile.Marshal(b, m, deterministic) +func (m *TLPageBlockPreformatted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockPreformatted.Marshal(b, m, deterministic) } -func (dst *TLUploadCdnFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLUploadCdnFile.Merge(dst, src) +func (dst *TLPageBlockPreformatted) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockPreformatted.Merge(dst, src) } -func (m *TLUploadCdnFile) XXX_Size() int { - return xxx_messageInfo_TLUploadCdnFile.Size(m) +func (m *TLPageBlockPreformatted) XXX_Size() int { + return xxx_messageInfo_TLPageBlockPreformatted.Size(m) } -func (m *TLUploadCdnFile) XXX_DiscardUnknown() { - xxx_messageInfo_TLUploadCdnFile.DiscardUnknown(m) +func (m *TLPageBlockPreformatted) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockPreformatted.DiscardUnknown(m) } -var xxx_messageInfo_TLUploadCdnFile proto.InternalMessageInfo +var xxx_messageInfo_TLPageBlockPreformatted proto.InternalMessageInfo -func (m *TLUploadCdnFile) GetData2() *Upload_CdnFile_Data { +func (m *TLPageBlockPreformatted) GetData2() *PageBlock_Data { if m != nil { return m.Data2 } return nil } -func init() { - proto.RegisterType((*SecureCredentialsEncrypted_Data)(nil), "mtproto.SecureCredentialsEncrypted_Data") - proto.RegisterType((*SecureCredentialsEncrypted)(nil), "mtproto.SecureCredentialsEncrypted") - proto.RegisterType((*TLSecureCredentialsEncrypted)(nil), "mtproto.TL_secureCredentialsEncrypted") - proto.RegisterType((*ContactStatus_Data)(nil), "mtproto.ContactStatus_Data") - proto.RegisterType((*ContactStatus)(nil), "mtproto.ContactStatus") - proto.RegisterType((*TLContactStatus)(nil), "mtproto.TL_contactStatus") - proto.RegisterType((*Contacts_ImportedContacts_Data)(nil), "mtproto.contacts_ImportedContacts_Data") - proto.RegisterType((*Contacts_ImportedContacts)(nil), "mtproto.contacts_ImportedContacts") - proto.RegisterType((*TLContactsImportedContacts)(nil), "mtproto.TL_contacts_importedContacts") - proto.RegisterType((*Contacts_ResolvedPeer_Data)(nil), "mtproto.contacts_ResolvedPeer_Data") - proto.RegisterType((*Contacts_ResolvedPeer)(nil), "mtproto.contacts_ResolvedPeer") - proto.RegisterType((*TLContactsResolvedPeer)(nil), "mtproto.TL_contacts_resolvedPeer") - proto.RegisterType((*Storage_FileType_Data)(nil), "mtproto.storage_FileType_Data") - proto.RegisterType((*Storage_FileType)(nil), "mtproto.storage_FileType") - proto.RegisterType((*TLStorageFileUnknown)(nil), "mtproto.TL_storage_fileUnknown") - proto.RegisterType((*TLStorageFilePartial)(nil), "mtproto.TL_storage_filePartial") - proto.RegisterType((*TLStorageFileJpeg)(nil), "mtproto.TL_storage_fileJpeg") - proto.RegisterType((*TLStorageFileGif)(nil), "mtproto.TL_storage_fileGif") - proto.RegisterType((*TLStorageFilePng)(nil), "mtproto.TL_storage_filePng") - proto.RegisterType((*TLStorageFilePdf)(nil), "mtproto.TL_storage_filePdf") - proto.RegisterType((*TLStorageFileMp3)(nil), "mtproto.TL_storage_fileMp3") - proto.RegisterType((*TLStorageFileMov)(nil), "mtproto.TL_storage_fileMov") - proto.RegisterType((*TLStorageFileMp4)(nil), "mtproto.TL_storage_fileMp4") - proto.RegisterType((*TLStorageFileWebp)(nil), "mtproto.TL_storage_fileWebp") - proto.RegisterType((*Messages_ChatFull_Data)(nil), "mtproto.messages_ChatFull_Data") - proto.RegisterType((*Messages_ChatFull)(nil), "mtproto.messages_ChatFull") - proto.RegisterType((*TLMessagesChatFull)(nil), "mtproto.TL_messages_chatFull") - proto.RegisterType((*Messages_StickerSet_Data)(nil), "mtproto.messages_StickerSet_Data") - proto.RegisterType((*Messages_StickerSet)(nil), "mtproto.messages_StickerSet") - proto.RegisterType((*TLMessagesStickerSet)(nil), "mtproto.TL_messages_stickerSet") - proto.RegisterType((*InputStickeredMedia_Data)(nil), "mtproto.InputStickeredMedia_Data") - proto.RegisterType((*InputStickeredMedia)(nil), "mtproto.InputStickeredMedia") - proto.RegisterType((*TLInputStickeredMediaPhoto)(nil), "mtproto.TL_inputStickeredMediaPhoto") - proto.RegisterType((*TLInputStickeredMediaDocument)(nil), "mtproto.TL_inputStickeredMediaDocument") - proto.RegisterType((*PaymentSavedCredentials_Data)(nil), "mtproto.PaymentSavedCredentials_Data") - proto.RegisterType((*PaymentSavedCredentials)(nil), "mtproto.PaymentSavedCredentials") - proto.RegisterType((*TLPaymentSavedCredentialsCard)(nil), "mtproto.TL_paymentSavedCredentialsCard") - proto.RegisterType((*Game_Data)(nil), "mtproto.Game_Data") - proto.RegisterType((*Game)(nil), "mtproto.Game") - proto.RegisterType((*TLGame)(nil), "mtproto.TL_game") - proto.RegisterType((*LabeledPrice_Data)(nil), "mtproto.LabeledPrice_Data") - proto.RegisterType((*LabeledPrice)(nil), "mtproto.LabeledPrice") - proto.RegisterType((*TLLabeledPrice)(nil), "mtproto.TL_labeledPrice") - proto.RegisterType((*InputCheckPasswordSRP_Data)(nil), "mtproto.InputCheckPasswordSRP_Data") - proto.RegisterType((*InputCheckPasswordSRP)(nil), "mtproto.InputCheckPasswordSRP") - proto.RegisterType((*TLInputCheckPasswordEmpty)(nil), "mtproto.TL_inputCheckPasswordEmpty") - proto.RegisterType((*TLInputCheckPasswordSRP)(nil), "mtproto.TL_inputCheckPasswordSRP") - proto.RegisterType((*WebDocument_Data)(nil), "mtproto.WebDocument_Data") - proto.RegisterType((*WebDocument)(nil), "mtproto.WebDocument") - proto.RegisterType((*TLWebDocument)(nil), "mtproto.TL_webDocument") - proto.RegisterType((*TLWebDocumentNoProxy)(nil), "mtproto.TL_webDocumentNoProxy") - proto.RegisterType((*InputUser_Data)(nil), "mtproto.InputUser_Data") - proto.RegisterType((*InputUser)(nil), "mtproto.InputUser") - proto.RegisterType((*TLInputUserEmpty)(nil), "mtproto.TL_inputUserEmpty") - proto.RegisterType((*TLInputUserSelf)(nil), "mtproto.TL_inputUserSelf") - proto.RegisterType((*TLInputUser)(nil), "mtproto.TL_inputUser") - proto.RegisterType((*PeerSettings_Data)(nil), "mtproto.PeerSettings_Data") - proto.RegisterType((*PeerSettings)(nil), "mtproto.PeerSettings") - proto.RegisterType((*TLPeerSettings)(nil), "mtproto.TL_peerSettings") - proto.RegisterType((*InputDialogPeer_Data)(nil), "mtproto.InputDialogPeer_Data") - proto.RegisterType((*InputDialogPeer)(nil), "mtproto.InputDialogPeer") - proto.RegisterType((*TLInputDialogPeer)(nil), "mtproto.TL_inputDialogPeer") - proto.RegisterType((*FileLocation_Data)(nil), "mtproto.FileLocation_Data") - proto.RegisterType((*FileLocation)(nil), "mtproto.FileLocation") - proto.RegisterType((*TLFileLocationUnavailable)(nil), "mtproto.TL_fileLocationUnavailable") - proto.RegisterType((*TLFileLocation)(nil), "mtproto.TL_fileLocation") - proto.RegisterType((*TLFileLocationLayer86)(nil), "mtproto.TL_fileLocationLayer86") - proto.RegisterType((*RichText_Data)(nil), "mtproto.RichText_Data") - proto.RegisterType((*RichText)(nil), "mtproto.RichText") - proto.RegisterType((*TLTextEmpty)(nil), "mtproto.TL_textEmpty") - proto.RegisterType((*TLTextPlain)(nil), "mtproto.TL_textPlain") - proto.RegisterType((*TLTextBold)(nil), "mtproto.TL_textBold") - proto.RegisterType((*TLTextItalic)(nil), "mtproto.TL_textItalic") - proto.RegisterType((*TLTextUnderline)(nil), "mtproto.TL_textUnderline") - proto.RegisterType((*TLTextStrike)(nil), "mtproto.TL_textStrike") - proto.RegisterType((*TLTextFixed)(nil), "mtproto.TL_textFixed") - proto.RegisterType((*TLTextUrl)(nil), "mtproto.TL_textUrl") - proto.RegisterType((*TLTextEmail)(nil), "mtproto.TL_textEmail") - proto.RegisterType((*TLTextConcat)(nil), "mtproto.TL_textConcat") - proto.RegisterType((*BotCommand_Data)(nil), "mtproto.BotCommand_Data") - proto.RegisterType((*BotCommand)(nil), "mtproto.BotCommand") - proto.RegisterType((*TLBotCommand)(nil), "mtproto.TL_botCommand") - proto.RegisterType((*ChannelParticipant_Data)(nil), "mtproto.ChannelParticipant_Data") - proto.RegisterType((*ChannelParticipant)(nil), "mtproto.ChannelParticipant") - proto.RegisterType((*TLChannelParticipant)(nil), "mtproto.TL_channelParticipant") - proto.RegisterType((*TLChannelParticipantSelf)(nil), "mtproto.TL_channelParticipantSelf") - proto.RegisterType((*TLChannelParticipantCreator)(nil), "mtproto.TL_channelParticipantCreator") - proto.RegisterType((*TLChannelParticipantAdmin)(nil), "mtproto.TL_channelParticipantAdmin") - proto.RegisterType((*TLChannelParticipantBanned)(nil), "mtproto.TL_channelParticipantBanned") - proto.RegisterType((*PopularContact_Data)(nil), "mtproto.PopularContact_Data") - proto.RegisterType((*PopularContact)(nil), "mtproto.PopularContact") - proto.RegisterType((*TLPopularContact)(nil), "mtproto.TL_popularContact") - proto.RegisterType((*InputSingleMedia_Data)(nil), "mtproto.InputSingleMedia_Data") - proto.RegisterType((*InputSingleMedia)(nil), "mtproto.InputSingleMedia") - proto.RegisterType((*TLInputSingleMedia)(nil), "mtproto.TL_inputSingleMedia") - proto.RegisterType((*InputClientProxy_Data)(nil), "mtproto.InputClientProxy_Data") - proto.RegisterType((*InputClientProxy)(nil), "mtproto.InputClientProxy") - proto.RegisterType((*TLInputClientProxy)(nil), "mtproto.TL_inputClientProxy") - proto.RegisterType((*Help_AppUpdate_Data)(nil), "mtproto.help_AppUpdate_Data") - proto.RegisterType((*Help_AppUpdate)(nil), "mtproto.help_AppUpdate") - proto.RegisterType((*TLHelpAppUpdate)(nil), "mtproto.TL_help_appUpdate") - proto.RegisterType((*TLHelpNoAppUpdate)(nil), "mtproto.TL_help_noAppUpdate") - proto.RegisterType((*ChannelBannedRights_Data)(nil), "mtproto.ChannelBannedRights_Data") - proto.RegisterType((*ChannelBannedRights)(nil), "mtproto.ChannelBannedRights") - proto.RegisterType((*TLChannelBannedRights)(nil), "mtproto.TL_channelBannedRights") - proto.RegisterType((*SavedContact_Data)(nil), "mtproto.SavedContact_Data") - proto.RegisterType((*SavedContact)(nil), "mtproto.SavedContact") - proto.RegisterType((*TLSavedPhoneContact)(nil), "mtproto.TL_savedPhoneContact") - proto.RegisterType((*Updates_Data)(nil), "mtproto.Updates_Data") - proto.RegisterType((*Updates)(nil), "mtproto.Updates") - proto.RegisterType((*TLUpdateAccountResetAuthorization)(nil), "mtproto.TL_updateAccountResetAuthorization") - proto.RegisterType((*TLUpdatesTooLong)(nil), "mtproto.TL_updatesTooLong") - proto.RegisterType((*TLUpdateShortMessage)(nil), "mtproto.TL_updateShortMessage") - proto.RegisterType((*TLUpdateShortChatMessage)(nil), "mtproto.TL_updateShortChatMessage") - proto.RegisterType((*TLUpdateShort)(nil), "mtproto.TL_updateShort") - proto.RegisterType((*TLUpdatesCombined)(nil), "mtproto.TL_updatesCombined") - proto.RegisterType((*TLUpdates)(nil), "mtproto.TL_updates") - proto.RegisterType((*TLUpdateShortSentMessage)(nil), "mtproto.TL_updateShortSentMessage") - proto.RegisterType((*InputDocument_Data)(nil), "mtproto.InputDocument_Data") - proto.RegisterType((*InputDocument)(nil), "mtproto.InputDocument") - proto.RegisterType((*TLInputDocumentEmpty)(nil), "mtproto.TL_inputDocumentEmpty") - proto.RegisterType((*TLInputDocument)(nil), "mtproto.TL_inputDocument") - proto.RegisterType((*TLInputDocumentLayer86)(nil), "mtproto.TL_inputDocumentLayer86") - proto.RegisterType((*SendMessageAction_Data)(nil), "mtproto.SendMessageAction_Data") - proto.RegisterType((*SendMessageAction)(nil), "mtproto.SendMessageAction") - proto.RegisterType((*TLSendMessageTypingAction)(nil), "mtproto.TL_sendMessageTypingAction") - proto.RegisterType((*TLSendMessageCancelAction)(nil), "mtproto.TL_sendMessageCancelAction") - proto.RegisterType((*TLSendMessageRecordVideoAction)(nil), "mtproto.TL_sendMessageRecordVideoAction") - proto.RegisterType((*TLSendMessageUploadVideoAction)(nil), "mtproto.TL_sendMessageUploadVideoAction") - proto.RegisterType((*TLSendMessageRecordAudioAction)(nil), "mtproto.TL_sendMessageRecordAudioAction") - proto.RegisterType((*TLSendMessageUploadAudioAction)(nil), "mtproto.TL_sendMessageUploadAudioAction") - proto.RegisterType((*TLSendMessageUploadPhotoAction)(nil), "mtproto.TL_sendMessageUploadPhotoAction") - proto.RegisterType((*TLSendMessageUploadDocumentAction)(nil), "mtproto.TL_sendMessageUploadDocumentAction") - proto.RegisterType((*TLSendMessageGeoLocationAction)(nil), "mtproto.TL_sendMessageGeoLocationAction") - proto.RegisterType((*TLSendMessageChooseContactAction)(nil), "mtproto.TL_sendMessageChooseContactAction") - proto.RegisterType((*TLSendMessageGamePlayAction)(nil), "mtproto.TL_sendMessageGamePlayAction") - proto.RegisterType((*TLSendMessageRecordRoundAction)(nil), "mtproto.TL_sendMessageRecordRoundAction") - proto.RegisterType((*TLSendMessageUploadRoundAction)(nil), "mtproto.TL_sendMessageUploadRoundAction") - proto.RegisterType((*PrivacyRule_Data)(nil), "mtproto.PrivacyRule_Data") - proto.RegisterType((*PrivacyRule)(nil), "mtproto.PrivacyRule") - proto.RegisterType((*TLPrivacyValueAllowContacts)(nil), "mtproto.TL_privacyValueAllowContacts") - proto.RegisterType((*TLPrivacyValueAllowAll)(nil), "mtproto.TL_privacyValueAllowAll") - proto.RegisterType((*TLPrivacyValueAllowUsers)(nil), "mtproto.TL_privacyValueAllowUsers") - proto.RegisterType((*TLPrivacyValueDisallowContacts)(nil), "mtproto.TL_privacyValueDisallowContacts") - proto.RegisterType((*TLPrivacyValueDisallowAll)(nil), "mtproto.TL_privacyValueDisallowAll") - proto.RegisterType((*TLPrivacyValueDisallowUsers)(nil), "mtproto.TL_privacyValueDisallowUsers") - proto.RegisterType((*Messages_Stickers_Data)(nil), "mtproto.messages_Stickers_Data") - proto.RegisterType((*Messages_Stickers)(nil), "mtproto.messages_Stickers") - proto.RegisterType((*TLMessagesStickersNotModified)(nil), "mtproto.TL_messages_stickersNotModified") - proto.RegisterType((*TLMessagesStickers)(nil), "mtproto.TL_messages_stickers") - proto.RegisterType((*DocumentAttribute_Data)(nil), "mtproto.DocumentAttribute_Data") - proto.RegisterType((*DocumentAttribute)(nil), "mtproto.DocumentAttribute") - proto.RegisterType((*TLDocumentAttributeImageSize)(nil), "mtproto.TL_documentAttributeImageSize") - proto.RegisterType((*TLDocumentAttributeAnimated)(nil), "mtproto.TL_documentAttributeAnimated") - proto.RegisterType((*TLDocumentAttributeSticker)(nil), "mtproto.TL_documentAttributeSticker") - proto.RegisterType((*TLDocumentAttributeVideo)(nil), "mtproto.TL_documentAttributeVideo") - proto.RegisterType((*TLDocumentAttributeAudio)(nil), "mtproto.TL_documentAttributeAudio") - proto.RegisterType((*TLDocumentAttributeFilename)(nil), "mtproto.TL_documentAttributeFilename") - proto.RegisterType((*TLDocumentAttributeHasStickers)(nil), "mtproto.TL_documentAttributeHasStickers") - proto.RegisterType((*Account_PasswordSettings_Data)(nil), "mtproto.account_PasswordSettings_Data") - proto.RegisterType((*Account_PasswordSettings)(nil), "mtproto.account_PasswordSettings") - proto.RegisterType((*TLAccountPasswordSettings)(nil), "mtproto.TL_account_passwordSettings") - proto.RegisterType((*Account_PasswordInputSettings_Data)(nil), "mtproto.account_PasswordInputSettings_Data") - proto.RegisterType((*Account_PasswordInputSettings)(nil), "mtproto.account_PasswordInputSettings") - proto.RegisterType((*TLAccountPasswordInputSettings)(nil), "mtproto.TL_account_passwordInputSettings") - proto.RegisterType((*Messages_MessageEditData_Data)(nil), "mtproto.messages_MessageEditData_Data") - proto.RegisterType((*Messages_MessageEditData)(nil), "mtproto.messages_MessageEditData") - proto.RegisterType((*TLMessagesMessageEditData)(nil), "mtproto.TL_messages_messageEditData") - proto.RegisterType((*MaskCoords_Data)(nil), "mtproto.MaskCoords_Data") - proto.RegisterType((*MaskCoords)(nil), "mtproto.MaskCoords") - proto.RegisterType((*TLMaskCoords)(nil), "mtproto.TL_maskCoords") - proto.RegisterType((*SecureValue_Data)(nil), "mtproto.SecureValue_Data") - proto.RegisterType((*SecureValue)(nil), "mtproto.SecureValue") - proto.RegisterType((*TLSecureValue)(nil), "mtproto.TL_secureValue") - proto.RegisterType((*Account_PrivacyRules_Data)(nil), "mtproto.account_PrivacyRules_Data") - proto.RegisterType((*Account_PrivacyRules)(nil), "mtproto.account_PrivacyRules") - proto.RegisterType((*TLAccountPrivacyRules)(nil), "mtproto.TL_account_privacyRules") - proto.RegisterType((*Auth_CodeType_Data)(nil), "mtproto.auth_CodeType_Data") - proto.RegisterType((*Auth_CodeType)(nil), "mtproto.auth_CodeType") - proto.RegisterType((*TLAuthCodeTypeSms)(nil), "mtproto.TL_auth_codeTypeSms") - proto.RegisterType((*TLAuthCodeTypeCall)(nil), "mtproto.TL_auth_codeTypeCall") - proto.RegisterType((*TLAuthCodeTypeFlashCall)(nil), "mtproto.TL_auth_codeTypeFlashCall") - proto.RegisterType((*SchemeParam_Data)(nil), "mtproto.SchemeParam_Data") - proto.RegisterType((*SchemeParam)(nil), "mtproto.SchemeParam") - proto.RegisterType((*TLSchemeParam)(nil), "mtproto.TL_schemeParam") - proto.RegisterType((*InputEncryptedChat_Data)(nil), "mtproto.InputEncryptedChat_Data") - proto.RegisterType((*InputEncryptedChat)(nil), "mtproto.InputEncryptedChat") - proto.RegisterType((*TLInputEncryptedChat)(nil), "mtproto.TL_inputEncryptedChat") - proto.RegisterType((*Account_Password_Data)(nil), "mtproto.account_Password_Data") - proto.RegisterType((*Account_Password)(nil), "mtproto.account_Password") - proto.RegisterType((*TLAccountPassword)(nil), "mtproto.TL_account_password") - proto.RegisterType((*KeyboardButtonRow_Data)(nil), "mtproto.KeyboardButtonRow_Data") - proto.RegisterType((*KeyboardButtonRow)(nil), "mtproto.KeyboardButtonRow") - proto.RegisterType((*TLKeyboardButtonRow)(nil), "mtproto.TL_keyboardButtonRow") - proto.RegisterType((*Payments_PaymentReceipt_Data)(nil), "mtproto.payments_PaymentReceipt_Data") - proto.RegisterType((*Payments_PaymentReceipt)(nil), "mtproto.payments_PaymentReceipt") - proto.RegisterType((*TLPaymentsPaymentReceipt)(nil), "mtproto.TL_payments_paymentReceipt") - proto.RegisterType((*ContactBlocked_Data)(nil), "mtproto.ContactBlocked_Data") - proto.RegisterType((*ContactBlocked)(nil), "mtproto.ContactBlocked") - proto.RegisterType((*TLContactBlocked)(nil), "mtproto.TL_contactBlocked") - proto.RegisterType((*StickerSet_Data)(nil), "mtproto.StickerSet_Data") - proto.RegisterType((*StickerSet)(nil), "mtproto.StickerSet") - proto.RegisterType((*TLStickerSet)(nil), "mtproto.TL_stickerSet") - proto.RegisterType((*Contacts_Found_Data)(nil), "mtproto.contacts_Found_Data") - proto.RegisterType((*Contacts_Found)(nil), "mtproto.contacts_Found") - proto.RegisterType((*TLContactsFound)(nil), "mtproto.TL_contacts_found") - proto.RegisterType((*Messages_AffectedMessages_Data)(nil), "mtproto.messages_AffectedMessages_Data") - proto.RegisterType((*Messages_AffectedMessages)(nil), "mtproto.messages_AffectedMessages") - proto.RegisterType((*TLMessagesAffectedMessages)(nil), "mtproto.TL_messages_affectedMessages") - proto.RegisterType((*Messages_StickerSetInstallResult_Data)(nil), "mtproto.messages_StickerSetInstallResult_Data") - proto.RegisterType((*Messages_StickerSetInstallResult)(nil), "mtproto.messages_StickerSetInstallResult") - proto.RegisterType((*TLMessagesStickerSetInstallResultSuccess)(nil), "mtproto.TL_messages_stickerSetInstallResultSuccess") - proto.RegisterType((*TLMessagesStickerSetInstallResultArchive)(nil), "mtproto.TL_messages_stickerSetInstallResultArchive") - proto.RegisterType((*Help_DeepLinkInfo_Data)(nil), "mtproto.help_DeepLinkInfo_Data") - proto.RegisterType((*Help_DeepLinkInfo)(nil), "mtproto.help_DeepLinkInfo") - proto.RegisterType((*TLHelpDeepLinkInfoEmpty)(nil), "mtproto.TL_help_deepLinkInfoEmpty") - proto.RegisterType((*TLHelpDeepLinkInfo)(nil), "mtproto.TL_help_deepLinkInfo") - proto.RegisterType((*Auth_CheckedPhone_Data)(nil), "mtproto.auth_CheckedPhone_Data") - proto.RegisterType((*Auth_CheckedPhone)(nil), "mtproto.auth_CheckedPhone") - proto.RegisterType((*TLAuthCheckedPhone)(nil), "mtproto.TL_auth_checkedPhone") - proto.RegisterType((*EncryptedChat_Data)(nil), "mtproto.EncryptedChat_Data") - proto.RegisterType((*EncryptedChat)(nil), "mtproto.EncryptedChat") - proto.RegisterType((*TLEncryptedChatEmpty)(nil), "mtproto.TL_encryptedChatEmpty") - proto.RegisterType((*TLEncryptedChatWaiting)(nil), "mtproto.TL_encryptedChatWaiting") - proto.RegisterType((*TLEncryptedChatRequested)(nil), "mtproto.TL_encryptedChatRequested") - proto.RegisterType((*TLEncryptedChat)(nil), "mtproto.TL_encryptedChat") - proto.RegisterType((*TLEncryptedChatDiscarded)(nil), "mtproto.TL_encryptedChatDiscarded") - proto.RegisterType((*ReplyMarkup_Data)(nil), "mtproto.ReplyMarkup_Data") - proto.RegisterType((*ReplyMarkup)(nil), "mtproto.ReplyMarkup") - proto.RegisterType((*TLReplyKeyboardHide)(nil), "mtproto.TL_replyKeyboardHide") - proto.RegisterType((*TLReplyKeyboardForceReply)(nil), "mtproto.TL_replyKeyboardForceReply") - proto.RegisterType((*TLReplyKeyboardMarkup)(nil), "mtproto.TL_replyKeyboardMarkup") - proto.RegisterType((*TLReplyInlineMarkup)(nil), "mtproto.TL_replyInlineMarkup") - proto.RegisterType((*MessageEntity_Data)(nil), "mtproto.MessageEntity_Data") - proto.RegisterType((*MessageEntity)(nil), "mtproto.MessageEntity") - proto.RegisterType((*TLMessageEntityUnknown)(nil), "mtproto.TL_messageEntityUnknown") - proto.RegisterType((*TLMessageEntityMention)(nil), "mtproto.TL_messageEntityMention") - proto.RegisterType((*TLMessageEntityHashtag)(nil), "mtproto.TL_messageEntityHashtag") - proto.RegisterType((*TLMessageEntityBotCommand)(nil), "mtproto.TL_messageEntityBotCommand") - proto.RegisterType((*TLMessageEntityUrl)(nil), "mtproto.TL_messageEntityUrl") - proto.RegisterType((*TLMessageEntityEmail)(nil), "mtproto.TL_messageEntityEmail") - proto.RegisterType((*TLMessageEntityBold)(nil), "mtproto.TL_messageEntityBold") - proto.RegisterType((*TLMessageEntityItalic)(nil), "mtproto.TL_messageEntityItalic") - proto.RegisterType((*TLMessageEntityCode)(nil), "mtproto.TL_messageEntityCode") - proto.RegisterType((*TLMessageEntityPre)(nil), "mtproto.TL_messageEntityPre") - proto.RegisterType((*TLMessageEntityTextUrl)(nil), "mtproto.TL_messageEntityTextUrl") - proto.RegisterType((*TLMessageEntityMentionName)(nil), "mtproto.TL_messageEntityMentionName") - proto.RegisterType((*TLInputMessageEntityMentionName)(nil), "mtproto.TL_inputMessageEntityMentionName") - proto.RegisterType((*TLMessageEntityPhone)(nil), "mtproto.TL_messageEntityPhone") - proto.RegisterType((*TLMessageEntityCashtag)(nil), "mtproto.TL_messageEntityCashtag") - proto.RegisterType((*PhoneCall_Data)(nil), "mtproto.PhoneCall_Data") - proto.RegisterType((*PhoneCall)(nil), "mtproto.PhoneCall") - proto.RegisterType((*TLPhoneCallEmpty)(nil), "mtproto.TL_phoneCallEmpty") - proto.RegisterType((*TLPhoneCallWaiting)(nil), "mtproto.TL_phoneCallWaiting") - proto.RegisterType((*TLPhoneCallRequested)(nil), "mtproto.TL_phoneCallRequested") - proto.RegisterType((*TLPhoneCallAccepted)(nil), "mtproto.TL_phoneCallAccepted") - proto.RegisterType((*TLPhoneCall)(nil), "mtproto.TL_phoneCall") - proto.RegisterType((*TLPhoneCallDiscarded)(nil), "mtproto.TL_phoneCallDiscarded") - proto.RegisterType((*Messages_FavedStickers_Data)(nil), "mtproto.messages_FavedStickers_Data") - proto.RegisterType((*Messages_FavedStickers)(nil), "mtproto.messages_FavedStickers") - proto.RegisterType((*TLMessagesFavedStickersNotModified)(nil), "mtproto.TL_messages_favedStickersNotModified") - proto.RegisterType((*TLMessagesFavedStickers)(nil), "mtproto.TL_messages_favedStickers") - proto.RegisterType((*Messages_Dialogs_Data)(nil), "mtproto.messages_Dialogs_Data") - proto.RegisterType((*Messages_Dialogs)(nil), "mtproto.messages_Dialogs") - proto.RegisterType((*TLMessagesDialogs)(nil), "mtproto.TL_messages_dialogs") - proto.RegisterType((*TLMessagesDialogsSlice)(nil), "mtproto.TL_messages_dialogsSlice") - proto.RegisterType((*TLMessagesDialogsNotModified)(nil), "mtproto.TL_messages_dialogsNotModified") - proto.RegisterType((*KeyboardButton_Data)(nil), "mtproto.KeyboardButton_Data") - proto.RegisterType((*KeyboardButton)(nil), "mtproto.KeyboardButton") - proto.RegisterType((*TLKeyboardButton)(nil), "mtproto.TL_keyboardButton") - proto.RegisterType((*TLKeyboardButtonUrl)(nil), "mtproto.TL_keyboardButtonUrl") - proto.RegisterType((*TLKeyboardButtonCallback)(nil), "mtproto.TL_keyboardButtonCallback") - proto.RegisterType((*TLKeyboardButtonRequestPhone)(nil), "mtproto.TL_keyboardButtonRequestPhone") - proto.RegisterType((*TLKeyboardButtonRequestGeoLocation)(nil), "mtproto.TL_keyboardButtonRequestGeoLocation") - proto.RegisterType((*TLKeyboardButtonSwitchInline)(nil), "mtproto.TL_keyboardButtonSwitchInline") - proto.RegisterType((*TLKeyboardButtonGame)(nil), "mtproto.TL_keyboardButtonGame") - proto.RegisterType((*TLKeyboardButtonBuy)(nil), "mtproto.TL_keyboardButtonBuy") - proto.RegisterType((*ShippingOption_Data)(nil), "mtproto.ShippingOption_Data") - proto.RegisterType((*ShippingOption)(nil), "mtproto.ShippingOption") - proto.RegisterType((*TLShippingOption)(nil), "mtproto.TL_shippingOption") +// pageBlockFooter#48870999 text:RichText = PageBlock; +type TLPageBlockFooter struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockFooter) Reset() { *m = TLPageBlockFooter{} } +func (m *TLPageBlockFooter) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockFooter) ProtoMessage() {} +func (*TLPageBlockFooter) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1106} +} +func (m *TLPageBlockFooter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockFooter.Unmarshal(m, b) +} +func (m *TLPageBlockFooter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockFooter.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockFooter) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockFooter.Merge(dst, src) +} +func (m *TLPageBlockFooter) XXX_Size() int { + return xxx_messageInfo_TLPageBlockFooter.Size(m) +} +func (m *TLPageBlockFooter) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockFooter.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockFooter proto.InternalMessageInfo + +func (m *TLPageBlockFooter) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockDivider#db20b188 = PageBlock; +type TLPageBlockDivider struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockDivider) Reset() { *m = TLPageBlockDivider{} } +func (m *TLPageBlockDivider) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockDivider) ProtoMessage() {} +func (*TLPageBlockDivider) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1107} +} +func (m *TLPageBlockDivider) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockDivider.Unmarshal(m, b) +} +func (m *TLPageBlockDivider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockDivider.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockDivider) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockDivider.Merge(dst, src) +} +func (m *TLPageBlockDivider) XXX_Size() int { + return xxx_messageInfo_TLPageBlockDivider.Size(m) +} +func (m *TLPageBlockDivider) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockDivider.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockDivider proto.InternalMessageInfo + +func (m *TLPageBlockDivider) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockAnchor#ce0d37b0 name:string = PageBlock; +type TLPageBlockAnchor struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockAnchor) Reset() { *m = TLPageBlockAnchor{} } +func (m *TLPageBlockAnchor) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockAnchor) ProtoMessage() {} +func (*TLPageBlockAnchor) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1108} +} +func (m *TLPageBlockAnchor) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockAnchor.Unmarshal(m, b) +} +func (m *TLPageBlockAnchor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockAnchor.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockAnchor) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockAnchor.Merge(dst, src) +} +func (m *TLPageBlockAnchor) XXX_Size() int { + return xxx_messageInfo_TLPageBlockAnchor.Size(m) +} +func (m *TLPageBlockAnchor) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockAnchor.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockAnchor proto.InternalMessageInfo + +func (m *TLPageBlockAnchor) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockList#3a58c7f4 ordered:Bool items:Vector = PageBlock; +type TLPageBlockList struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockList) Reset() { *m = TLPageBlockList{} } +func (m *TLPageBlockList) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockList) ProtoMessage() {} +func (*TLPageBlockList) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1109} +} +func (m *TLPageBlockList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockList.Unmarshal(m, b) +} +func (m *TLPageBlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockList.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockList.Merge(dst, src) +} +func (m *TLPageBlockList) XXX_Size() int { + return xxx_messageInfo_TLPageBlockList.Size(m) +} +func (m *TLPageBlockList) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockList.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockList proto.InternalMessageInfo + +func (m *TLPageBlockList) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock; +type TLPageBlockBlockquote struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockBlockquote) Reset() { *m = TLPageBlockBlockquote{} } +func (m *TLPageBlockBlockquote) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockBlockquote) ProtoMessage() {} +func (*TLPageBlockBlockquote) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1110} +} +func (m *TLPageBlockBlockquote) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockBlockquote.Unmarshal(m, b) +} +func (m *TLPageBlockBlockquote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockBlockquote.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockBlockquote) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockBlockquote.Merge(dst, src) +} +func (m *TLPageBlockBlockquote) XXX_Size() int { + return xxx_messageInfo_TLPageBlockBlockquote.Size(m) +} +func (m *TLPageBlockBlockquote) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockBlockquote.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockBlockquote proto.InternalMessageInfo + +func (m *TLPageBlockBlockquote) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock; +type TLPageBlockPullquote struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockPullquote) Reset() { *m = TLPageBlockPullquote{} } +func (m *TLPageBlockPullquote) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockPullquote) ProtoMessage() {} +func (*TLPageBlockPullquote) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1111} +} +func (m *TLPageBlockPullquote) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockPullquote.Unmarshal(m, b) +} +func (m *TLPageBlockPullquote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockPullquote.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockPullquote) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockPullquote.Merge(dst, src) +} +func (m *TLPageBlockPullquote) XXX_Size() int { + return xxx_messageInfo_TLPageBlockPullquote.Size(m) +} +func (m *TLPageBlockPullquote) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockPullquote.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockPullquote proto.InternalMessageInfo + +func (m *TLPageBlockPullquote) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockPhoto#e9c69982 photo_id:long caption:RichText = PageBlock; +type TLPageBlockPhoto struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockPhoto) Reset() { *m = TLPageBlockPhoto{} } +func (m *TLPageBlockPhoto) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockPhoto) ProtoMessage() {} +func (*TLPageBlockPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1112} +} +func (m *TLPageBlockPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockPhoto.Unmarshal(m, b) +} +func (m *TLPageBlockPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockPhoto.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockPhoto.Merge(dst, src) +} +func (m *TLPageBlockPhoto) XXX_Size() int { + return xxx_messageInfo_TLPageBlockPhoto.Size(m) +} +func (m *TLPageBlockPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockPhoto.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockPhoto proto.InternalMessageInfo + +func (m *TLPageBlockPhoto) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockVideo#d9d71866 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:RichText = PageBlock; +type TLPageBlockVideo struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockVideo) Reset() { *m = TLPageBlockVideo{} } +func (m *TLPageBlockVideo) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockVideo) ProtoMessage() {} +func (*TLPageBlockVideo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1113} +} +func (m *TLPageBlockVideo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockVideo.Unmarshal(m, b) +} +func (m *TLPageBlockVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockVideo.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockVideo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockVideo.Merge(dst, src) +} +func (m *TLPageBlockVideo) XXX_Size() int { + return xxx_messageInfo_TLPageBlockVideo.Size(m) +} +func (m *TLPageBlockVideo) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockVideo.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockVideo proto.InternalMessageInfo + +func (m *TLPageBlockVideo) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockCover#39f23300 cover:PageBlock = PageBlock; +type TLPageBlockCover struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockCover) Reset() { *m = TLPageBlockCover{} } +func (m *TLPageBlockCover) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockCover) ProtoMessage() {} +func (*TLPageBlockCover) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1114} +} +func (m *TLPageBlockCover) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockCover.Unmarshal(m, b) +} +func (m *TLPageBlockCover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockCover.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockCover) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockCover.Merge(dst, src) +} +func (m *TLPageBlockCover) XXX_Size() int { + return xxx_messageInfo_TLPageBlockCover.Size(m) +} +func (m *TLPageBlockCover) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockCover.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockCover proto.InternalMessageInfo + +func (m *TLPageBlockCover) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockEmbed#cde200d1 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:int h:int caption:RichText = PageBlock; +type TLPageBlockEmbed struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockEmbed) Reset() { *m = TLPageBlockEmbed{} } +func (m *TLPageBlockEmbed) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockEmbed) ProtoMessage() {} +func (*TLPageBlockEmbed) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1115} +} +func (m *TLPageBlockEmbed) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockEmbed.Unmarshal(m, b) +} +func (m *TLPageBlockEmbed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockEmbed.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockEmbed) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockEmbed.Merge(dst, src) +} +func (m *TLPageBlockEmbed) XXX_Size() int { + return xxx_messageInfo_TLPageBlockEmbed.Size(m) +} +func (m *TLPageBlockEmbed) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockEmbed.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockEmbed proto.InternalMessageInfo + +func (m *TLPageBlockEmbed) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockEmbedPost#292c7be9 url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:RichText = PageBlock; +type TLPageBlockEmbedPost struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockEmbedPost) Reset() { *m = TLPageBlockEmbedPost{} } +func (m *TLPageBlockEmbedPost) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockEmbedPost) ProtoMessage() {} +func (*TLPageBlockEmbedPost) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1116} +} +func (m *TLPageBlockEmbedPost) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockEmbedPost.Unmarshal(m, b) +} +func (m *TLPageBlockEmbedPost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockEmbedPost.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockEmbedPost) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockEmbedPost.Merge(dst, src) +} +func (m *TLPageBlockEmbedPost) XXX_Size() int { + return xxx_messageInfo_TLPageBlockEmbedPost.Size(m) +} +func (m *TLPageBlockEmbedPost) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockEmbedPost.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockEmbedPost proto.InternalMessageInfo + +func (m *TLPageBlockEmbedPost) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockCollage#8b31c4f items:Vector caption:RichText = PageBlock; +type TLPageBlockCollage struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockCollage) Reset() { *m = TLPageBlockCollage{} } +func (m *TLPageBlockCollage) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockCollage) ProtoMessage() {} +func (*TLPageBlockCollage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1117} +} +func (m *TLPageBlockCollage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockCollage.Unmarshal(m, b) +} +func (m *TLPageBlockCollage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockCollage.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockCollage) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockCollage.Merge(dst, src) +} +func (m *TLPageBlockCollage) XXX_Size() int { + return xxx_messageInfo_TLPageBlockCollage.Size(m) +} +func (m *TLPageBlockCollage) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockCollage.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockCollage proto.InternalMessageInfo + +func (m *TLPageBlockCollage) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockSlideshow#130c8963 items:Vector caption:RichText = PageBlock; +type TLPageBlockSlideshow struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockSlideshow) Reset() { *m = TLPageBlockSlideshow{} } +func (m *TLPageBlockSlideshow) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockSlideshow) ProtoMessage() {} +func (*TLPageBlockSlideshow) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1118} +} +func (m *TLPageBlockSlideshow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockSlideshow.Unmarshal(m, b) +} +func (m *TLPageBlockSlideshow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockSlideshow.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockSlideshow) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockSlideshow.Merge(dst, src) +} +func (m *TLPageBlockSlideshow) XXX_Size() int { + return xxx_messageInfo_TLPageBlockSlideshow.Size(m) +} +func (m *TLPageBlockSlideshow) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockSlideshow.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockSlideshow proto.InternalMessageInfo + +func (m *TLPageBlockSlideshow) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockChannel#ef1751b5 channel:Chat = PageBlock; +type TLPageBlockChannel struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockChannel) Reset() { *m = TLPageBlockChannel{} } +func (m *TLPageBlockChannel) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockChannel) ProtoMessage() {} +func (*TLPageBlockChannel) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1119} +} +func (m *TLPageBlockChannel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockChannel.Unmarshal(m, b) +} +func (m *TLPageBlockChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockChannel.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockChannel) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockChannel.Merge(dst, src) +} +func (m *TLPageBlockChannel) XXX_Size() int { + return xxx_messageInfo_TLPageBlockChannel.Size(m) +} +func (m *TLPageBlockChannel) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockChannel.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockChannel proto.InternalMessageInfo + +func (m *TLPageBlockChannel) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// pageBlockAudio#31b81a7f audio_id:long caption:RichText = PageBlock; +type TLPageBlockAudio struct { + Data2 *PageBlock_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPageBlockAudio) Reset() { *m = TLPageBlockAudio{} } +func (m *TLPageBlockAudio) String() string { return proto.CompactTextString(m) } +func (*TLPageBlockAudio) ProtoMessage() {} +func (*TLPageBlockAudio) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1120} +} +func (m *TLPageBlockAudio) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPageBlockAudio.Unmarshal(m, b) +} +func (m *TLPageBlockAudio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPageBlockAudio.Marshal(b, m, deterministic) +} +func (dst *TLPageBlockAudio) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPageBlockAudio.Merge(dst, src) +} +func (m *TLPageBlockAudio) XXX_Size() int { + return xxx_messageInfo_TLPageBlockAudio.Size(m) +} +func (m *TLPageBlockAudio) XXX_DiscardUnknown() { + xxx_messageInfo_TLPageBlockAudio.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPageBlockAudio proto.InternalMessageInfo + +func (m *TLPageBlockAudio) GetData2() *PageBlock_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// ///////////////////////////////////////////////////////////////////////////// +// InputMessage <-- +// + TL_inputMessageID +// + TL_inputMessageReplyTo +// + TL_inputMessagePinned +// +type InputMessage_Data struct { + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputMessage_Data) Reset() { *m = InputMessage_Data{} } +func (m *InputMessage_Data) String() string { return proto.CompactTextString(m) } +func (*InputMessage_Data) ProtoMessage() {} +func (*InputMessage_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1121} +} +func (m *InputMessage_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputMessage_Data.Unmarshal(m, b) +} +func (m *InputMessage_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputMessage_Data.Marshal(b, m, deterministic) +} +func (dst *InputMessage_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputMessage_Data.Merge(dst, src) +} +func (m *InputMessage_Data) XXX_Size() int { + return xxx_messageInfo_InputMessage_Data.Size(m) +} +func (m *InputMessage_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputMessage_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_InputMessage_Data proto.InternalMessageInfo + +func (m *InputMessage_Data) GetId() int32 { + if m != nil { + return m.Id + } + return 0 +} + +type InputMessage struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputMessage) Reset() { *m = InputMessage{} } +func (m *InputMessage) String() string { return proto.CompactTextString(m) } +func (*InputMessage) ProtoMessage() {} +func (*InputMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1122} +} +func (m *InputMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputMessage.Unmarshal(m, b) +} +func (m *InputMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputMessage.Marshal(b, m, deterministic) +} +func (dst *InputMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputMessage.Merge(dst, src) +} +func (m *InputMessage) XXX_Size() int { + return xxx_messageInfo_InputMessage.Size(m) +} +func (m *InputMessage) XXX_DiscardUnknown() { + xxx_messageInfo_InputMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_InputMessage proto.InternalMessageInfo + +func (m *InputMessage) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputMessage) GetData2() *InputMessage_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputMessageID#a676a322 id:int = InputMessage; +type TLInputMessageID struct { + Data2 *InputMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputMessageID) Reset() { *m = TLInputMessageID{} } +func (m *TLInputMessageID) String() string { return proto.CompactTextString(m) } +func (*TLInputMessageID) ProtoMessage() {} +func (*TLInputMessageID) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1123} +} +func (m *TLInputMessageID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessageID.Unmarshal(m, b) +} +func (m *TLInputMessageID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessageID.Marshal(b, m, deterministic) +} +func (dst *TLInputMessageID) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessageID.Merge(dst, src) +} +func (m *TLInputMessageID) XXX_Size() int { + return xxx_messageInfo_TLInputMessageID.Size(m) +} +func (m *TLInputMessageID) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessageID.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputMessageID proto.InternalMessageInfo + +func (m *TLInputMessageID) GetData2() *InputMessage_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputMessageReplyTo#bad88395 id:int = InputMessage; +type TLInputMessageReplyTo struct { + Data2 *InputMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputMessageReplyTo) Reset() { *m = TLInputMessageReplyTo{} } +func (m *TLInputMessageReplyTo) String() string { return proto.CompactTextString(m) } +func (*TLInputMessageReplyTo) ProtoMessage() {} +func (*TLInputMessageReplyTo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1124} +} +func (m *TLInputMessageReplyTo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessageReplyTo.Unmarshal(m, b) +} +func (m *TLInputMessageReplyTo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessageReplyTo.Marshal(b, m, deterministic) +} +func (dst *TLInputMessageReplyTo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessageReplyTo.Merge(dst, src) +} +func (m *TLInputMessageReplyTo) XXX_Size() int { + return xxx_messageInfo_TLInputMessageReplyTo.Size(m) +} +func (m *TLInputMessageReplyTo) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessageReplyTo.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputMessageReplyTo proto.InternalMessageInfo + +func (m *TLInputMessageReplyTo) GetData2() *InputMessage_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputMessagePinned#86872538 = InputMessage; +type TLInputMessagePinned struct { + Data2 *InputMessage_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputMessagePinned) Reset() { *m = TLInputMessagePinned{} } +func (m *TLInputMessagePinned) String() string { return proto.CompactTextString(m) } +func (*TLInputMessagePinned) ProtoMessage() {} +func (*TLInputMessagePinned) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1125} +} +func (m *TLInputMessagePinned) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputMessagePinned.Unmarshal(m, b) +} +func (m *TLInputMessagePinned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputMessagePinned.Marshal(b, m, deterministic) +} +func (dst *TLInputMessagePinned) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputMessagePinned.Merge(dst, src) +} +func (m *TLInputMessagePinned) XXX_Size() int { + return xxx_messageInfo_TLInputMessagePinned.Size(m) +} +func (m *TLInputMessagePinned) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputMessagePinned.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputMessagePinned proto.InternalMessageInfo + +func (m *TLInputMessagePinned) GetData2() *InputMessage_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// ///////////////////////////////////////////////////////////////////////////// +// payments_SavedInfo <-- +// + TL_payments_savedInfo +// +type Payments_SavedInfo_Data struct { + HasSavedCredentials bool `protobuf:"varint,1,opt,name=has_saved_credentials,json=hasSavedCredentials,proto3" json:"has_saved_credentials,omitempty"` + SavedInfo *PaymentRequestedInfo `protobuf:"bytes,2,opt,name=saved_info,json=savedInfo,proto3" json:"saved_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Payments_SavedInfo_Data) Reset() { *m = Payments_SavedInfo_Data{} } +func (m *Payments_SavedInfo_Data) String() string { return proto.CompactTextString(m) } +func (*Payments_SavedInfo_Data) ProtoMessage() {} +func (*Payments_SavedInfo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1126} +} +func (m *Payments_SavedInfo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_SavedInfo_Data.Unmarshal(m, b) +} +func (m *Payments_SavedInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_SavedInfo_Data.Marshal(b, m, deterministic) +} +func (dst *Payments_SavedInfo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_SavedInfo_Data.Merge(dst, src) +} +func (m *Payments_SavedInfo_Data) XXX_Size() int { + return xxx_messageInfo_Payments_SavedInfo_Data.Size(m) +} +func (m *Payments_SavedInfo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_SavedInfo_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_Payments_SavedInfo_Data proto.InternalMessageInfo + +func (m *Payments_SavedInfo_Data) GetHasSavedCredentials() bool { + if m != nil { + return m.HasSavedCredentials + } + return false +} + +func (m *Payments_SavedInfo_Data) GetSavedInfo() *PaymentRequestedInfo { + if m != nil { + return m.SavedInfo + } + return nil +} + +type Payments_SavedInfo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Payments_SavedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Payments_SavedInfo) Reset() { *m = Payments_SavedInfo{} } +func (m *Payments_SavedInfo) String() string { return proto.CompactTextString(m) } +func (*Payments_SavedInfo) ProtoMessage() {} +func (*Payments_SavedInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1127} +} +func (m *Payments_SavedInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Payments_SavedInfo.Unmarshal(m, b) +} +func (m *Payments_SavedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Payments_SavedInfo.Marshal(b, m, deterministic) +} +func (dst *Payments_SavedInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_Payments_SavedInfo.Merge(dst, src) +} +func (m *Payments_SavedInfo) XXX_Size() int { + return xxx_messageInfo_Payments_SavedInfo.Size(m) +} +func (m *Payments_SavedInfo) XXX_DiscardUnknown() { + xxx_messageInfo_Payments_SavedInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_Payments_SavedInfo proto.InternalMessageInfo + +func (m *Payments_SavedInfo) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Payments_SavedInfo) GetData2() *Payments_SavedInfo_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; +type TLPaymentsSavedInfo struct { + Data2 *Payments_SavedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPaymentsSavedInfo) Reset() { *m = TLPaymentsSavedInfo{} } +func (m *TLPaymentsSavedInfo) String() string { return proto.CompactTextString(m) } +func (*TLPaymentsSavedInfo) ProtoMessage() {} +func (*TLPaymentsSavedInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1128} +} +func (m *TLPaymentsSavedInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPaymentsSavedInfo.Unmarshal(m, b) +} +func (m *TLPaymentsSavedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPaymentsSavedInfo.Marshal(b, m, deterministic) +} +func (dst *TLPaymentsSavedInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPaymentsSavedInfo.Merge(dst, src) +} +func (m *TLPaymentsSavedInfo) XXX_Size() int { + return xxx_messageInfo_TLPaymentsSavedInfo.Size(m) +} +func (m *TLPaymentsSavedInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLPaymentsSavedInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPaymentsSavedInfo proto.InternalMessageInfo + +func (m *TLPaymentsSavedInfo) GetData2() *Payments_SavedInfo_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// ///////////////////////////////////////////////////////////////////////////// +// InputChatPhoto <-- +// + TL_inputChatPhotoEmpty +// + TL_inputChatUploadedPhoto +// + TL_inputChatPhoto +// +type InputChatPhoto_Data struct { + File *InputFile `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` + Id *InputPhoto `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputChatPhoto_Data) Reset() { *m = InputChatPhoto_Data{} } +func (m *InputChatPhoto_Data) String() string { return proto.CompactTextString(m) } +func (*InputChatPhoto_Data) ProtoMessage() {} +func (*InputChatPhoto_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1129} +} +func (m *InputChatPhoto_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputChatPhoto_Data.Unmarshal(m, b) +} +func (m *InputChatPhoto_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputChatPhoto_Data.Marshal(b, m, deterministic) +} +func (dst *InputChatPhoto_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputChatPhoto_Data.Merge(dst, src) +} +func (m *InputChatPhoto_Data) XXX_Size() int { + return xxx_messageInfo_InputChatPhoto_Data.Size(m) +} +func (m *InputChatPhoto_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputChatPhoto_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_InputChatPhoto_Data proto.InternalMessageInfo + +func (m *InputChatPhoto_Data) GetFile() *InputFile { + if m != nil { + return m.File + } + return nil +} + +func (m *InputChatPhoto_Data) GetId() *InputPhoto { + if m != nil { + return m.Id + } + return nil +} + +type InputChatPhoto struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputChatPhoto) Reset() { *m = InputChatPhoto{} } +func (m *InputChatPhoto) String() string { return proto.CompactTextString(m) } +func (*InputChatPhoto) ProtoMessage() {} +func (*InputChatPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1130} +} +func (m *InputChatPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputChatPhoto.Unmarshal(m, b) +} +func (m *InputChatPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputChatPhoto.Marshal(b, m, deterministic) +} +func (dst *InputChatPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputChatPhoto.Merge(dst, src) +} +func (m *InputChatPhoto) XXX_Size() int { + return xxx_messageInfo_InputChatPhoto.Size(m) +} +func (m *InputChatPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_InputChatPhoto.DiscardUnknown(m) +} + +var xxx_messageInfo_InputChatPhoto proto.InternalMessageInfo + +func (m *InputChatPhoto) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputChatPhoto) GetData2() *InputChatPhoto_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; +type TLInputChatPhotoEmpty struct { + Data2 *InputChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputChatPhotoEmpty) Reset() { *m = TLInputChatPhotoEmpty{} } +func (m *TLInputChatPhotoEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputChatPhotoEmpty) ProtoMessage() {} +func (*TLInputChatPhotoEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1131} +} +func (m *TLInputChatPhotoEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputChatPhotoEmpty.Unmarshal(m, b) +} +func (m *TLInputChatPhotoEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputChatPhotoEmpty.Marshal(b, m, deterministic) +} +func (dst *TLInputChatPhotoEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputChatPhotoEmpty.Merge(dst, src) +} +func (m *TLInputChatPhotoEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputChatPhotoEmpty.Size(m) +} +func (m *TLInputChatPhotoEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputChatPhotoEmpty.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputChatPhotoEmpty proto.InternalMessageInfo + +func (m *TLInputChatPhotoEmpty) GetData2() *InputChatPhoto_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto; +type TLInputChatUploadedPhoto struct { + Data2 *InputChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputChatUploadedPhoto) Reset() { *m = TLInputChatUploadedPhoto{} } +func (m *TLInputChatUploadedPhoto) String() string { return proto.CompactTextString(m) } +func (*TLInputChatUploadedPhoto) ProtoMessage() {} +func (*TLInputChatUploadedPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1132} +} +func (m *TLInputChatUploadedPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputChatUploadedPhoto.Unmarshal(m, b) +} +func (m *TLInputChatUploadedPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputChatUploadedPhoto.Marshal(b, m, deterministic) +} +func (dst *TLInputChatUploadedPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputChatUploadedPhoto.Merge(dst, src) +} +func (m *TLInputChatUploadedPhoto) XXX_Size() int { + return xxx_messageInfo_TLInputChatUploadedPhoto.Size(m) +} +func (m *TLInputChatUploadedPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputChatUploadedPhoto.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputChatUploadedPhoto proto.InternalMessageInfo + +func (m *TLInputChatUploadedPhoto) GetData2() *InputChatPhoto_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; +type TLInputChatPhoto struct { + Data2 *InputChatPhoto_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputChatPhoto) Reset() { *m = TLInputChatPhoto{} } +func (m *TLInputChatPhoto) String() string { return proto.CompactTextString(m) } +func (*TLInputChatPhoto) ProtoMessage() {} +func (*TLInputChatPhoto) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1133} +} +func (m *TLInputChatPhoto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputChatPhoto.Unmarshal(m, b) +} +func (m *TLInputChatPhoto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputChatPhoto.Marshal(b, m, deterministic) +} +func (dst *TLInputChatPhoto) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputChatPhoto.Merge(dst, src) +} +func (m *TLInputChatPhoto) XXX_Size() int { + return xxx_messageInfo_TLInputChatPhoto.Size(m) +} +func (m *TLInputChatPhoto) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputChatPhoto.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputChatPhoto proto.InternalMessageInfo + +func (m *TLInputChatPhoto) GetData2() *InputChatPhoto_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// ///////////////////////////////////////////////////////////////////////////// +// InputEncryptedFile <-- +// + TL_inputEncryptedFileEmpty +// + TL_inputEncryptedFileUploaded +// + TL_inputEncryptedFile +// + TL_inputEncryptedFileBigUploaded +// +type InputEncryptedFile_Data struct { + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Parts int32 `protobuf:"varint,2,opt,name=parts,proto3" json:"parts,omitempty"` + Md5Checksum string `protobuf:"bytes,3,opt,name=md5_checksum,json=md5Checksum,proto3" json:"md5_checksum,omitempty"` + KeyFingerprint int32 `protobuf:"varint,4,opt,name=key_fingerprint,json=keyFingerprint,proto3" json:"key_fingerprint,omitempty"` + AccessHash int64 `protobuf:"varint,5,opt,name=access_hash,json=accessHash,proto3" json:"access_hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputEncryptedFile_Data) Reset() { *m = InputEncryptedFile_Data{} } +func (m *InputEncryptedFile_Data) String() string { return proto.CompactTextString(m) } +func (*InputEncryptedFile_Data) ProtoMessage() {} +func (*InputEncryptedFile_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1134} +} +func (m *InputEncryptedFile_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputEncryptedFile_Data.Unmarshal(m, b) +} +func (m *InputEncryptedFile_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputEncryptedFile_Data.Marshal(b, m, deterministic) +} +func (dst *InputEncryptedFile_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputEncryptedFile_Data.Merge(dst, src) +} +func (m *InputEncryptedFile_Data) XXX_Size() int { + return xxx_messageInfo_InputEncryptedFile_Data.Size(m) +} +func (m *InputEncryptedFile_Data) XXX_DiscardUnknown() { + xxx_messageInfo_InputEncryptedFile_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_InputEncryptedFile_Data proto.InternalMessageInfo + +func (m *InputEncryptedFile_Data) GetId() int64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *InputEncryptedFile_Data) GetParts() int32 { + if m != nil { + return m.Parts + } + return 0 +} + +func (m *InputEncryptedFile_Data) GetMd5Checksum() string { + if m != nil { + return m.Md5Checksum + } + return "" +} + +func (m *InputEncryptedFile_Data) GetKeyFingerprint() int32 { + if m != nil { + return m.KeyFingerprint + } + return 0 +} + +func (m *InputEncryptedFile_Data) GetAccessHash() int64 { + if m != nil { + return m.AccessHash + } + return 0 +} + +type InputEncryptedFile struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputEncryptedFile) Reset() { *m = InputEncryptedFile{} } +func (m *InputEncryptedFile) String() string { return proto.CompactTextString(m) } +func (*InputEncryptedFile) ProtoMessage() {} +func (*InputEncryptedFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1135} +} +func (m *InputEncryptedFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputEncryptedFile.Unmarshal(m, b) +} +func (m *InputEncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputEncryptedFile.Marshal(b, m, deterministic) +} +func (dst *InputEncryptedFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputEncryptedFile.Merge(dst, src) +} +func (m *InputEncryptedFile) XXX_Size() int { + return xxx_messageInfo_InputEncryptedFile.Size(m) +} +func (m *InputEncryptedFile) XXX_DiscardUnknown() { + xxx_messageInfo_InputEncryptedFile.DiscardUnknown(m) +} + +var xxx_messageInfo_InputEncryptedFile proto.InternalMessageInfo + +func (m *InputEncryptedFile) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *InputEncryptedFile) GetData2() *InputEncryptedFile_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputEncryptedFileEmpty#1837c364 = InputEncryptedFile; +type TLInputEncryptedFileEmpty struct { + Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputEncryptedFileEmpty) Reset() { *m = TLInputEncryptedFileEmpty{} } +func (m *TLInputEncryptedFileEmpty) String() string { return proto.CompactTextString(m) } +func (*TLInputEncryptedFileEmpty) ProtoMessage() {} +func (*TLInputEncryptedFileEmpty) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1136} +} +func (m *TLInputEncryptedFileEmpty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputEncryptedFileEmpty.Unmarshal(m, b) +} +func (m *TLInputEncryptedFileEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputEncryptedFileEmpty.Marshal(b, m, deterministic) +} +func (dst *TLInputEncryptedFileEmpty) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputEncryptedFileEmpty.Merge(dst, src) +} +func (m *TLInputEncryptedFileEmpty) XXX_Size() int { + return xxx_messageInfo_TLInputEncryptedFileEmpty.Size(m) +} +func (m *TLInputEncryptedFileEmpty) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputEncryptedFileEmpty.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputEncryptedFileEmpty proto.InternalMessageInfo + +func (m *TLInputEncryptedFileEmpty) GetData2() *InputEncryptedFile_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile; +type TLInputEncryptedFileUploaded struct { + Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputEncryptedFileUploaded) Reset() { *m = TLInputEncryptedFileUploaded{} } +func (m *TLInputEncryptedFileUploaded) String() string { return proto.CompactTextString(m) } +func (*TLInputEncryptedFileUploaded) ProtoMessage() {} +func (*TLInputEncryptedFileUploaded) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1137} +} +func (m *TLInputEncryptedFileUploaded) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputEncryptedFileUploaded.Unmarshal(m, b) +} +func (m *TLInputEncryptedFileUploaded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputEncryptedFileUploaded.Marshal(b, m, deterministic) +} +func (dst *TLInputEncryptedFileUploaded) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputEncryptedFileUploaded.Merge(dst, src) +} +func (m *TLInputEncryptedFileUploaded) XXX_Size() int { + return xxx_messageInfo_TLInputEncryptedFileUploaded.Size(m) +} +func (m *TLInputEncryptedFileUploaded) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputEncryptedFileUploaded.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputEncryptedFileUploaded proto.InternalMessageInfo + +func (m *TLInputEncryptedFileUploaded) GetData2() *InputEncryptedFile_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile; +type TLInputEncryptedFile struct { + Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputEncryptedFile) Reset() { *m = TLInputEncryptedFile{} } +func (m *TLInputEncryptedFile) String() string { return proto.CompactTextString(m) } +func (*TLInputEncryptedFile) ProtoMessage() {} +func (*TLInputEncryptedFile) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1138} +} +func (m *TLInputEncryptedFile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputEncryptedFile.Unmarshal(m, b) +} +func (m *TLInputEncryptedFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputEncryptedFile.Marshal(b, m, deterministic) +} +func (dst *TLInputEncryptedFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputEncryptedFile.Merge(dst, src) +} +func (m *TLInputEncryptedFile) XXX_Size() int { + return xxx_messageInfo_TLInputEncryptedFile.Size(m) +} +func (m *TLInputEncryptedFile) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputEncryptedFile.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputEncryptedFile proto.InternalMessageInfo + +func (m *TLInputEncryptedFile) GetData2() *InputEncryptedFile_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile; +type TLInputEncryptedFileBigUploaded struct { + Data2 *InputEncryptedFile_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInputEncryptedFileBigUploaded) Reset() { *m = TLInputEncryptedFileBigUploaded{} } +func (m *TLInputEncryptedFileBigUploaded) String() string { return proto.CompactTextString(m) } +func (*TLInputEncryptedFileBigUploaded) ProtoMessage() {} +func (*TLInputEncryptedFileBigUploaded) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1139} +} +func (m *TLInputEncryptedFileBigUploaded) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInputEncryptedFileBigUploaded.Unmarshal(m, b) +} +func (m *TLInputEncryptedFileBigUploaded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInputEncryptedFileBigUploaded.Marshal(b, m, deterministic) +} +func (dst *TLInputEncryptedFileBigUploaded) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInputEncryptedFileBigUploaded.Merge(dst, src) +} +func (m *TLInputEncryptedFileBigUploaded) XXX_Size() int { + return xxx_messageInfo_TLInputEncryptedFileBigUploaded.Size(m) +} +func (m *TLInputEncryptedFileBigUploaded) XXX_DiscardUnknown() { + xxx_messageInfo_TLInputEncryptedFileBigUploaded.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInputEncryptedFileBigUploaded proto.InternalMessageInfo + +func (m *TLInputEncryptedFileBigUploaded) GetData2() *InputEncryptedFile_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// ///////////////////////////////////////////////////////////////////////////// +// auth_PasswordRecovery <-- +// + TL_auth_passwordRecovery +// +type Auth_PasswordRecovery_Data struct { + EmailPattern string `protobuf:"bytes,1,opt,name=email_pattern,json=emailPattern,proto3" json:"email_pattern,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Auth_PasswordRecovery_Data) Reset() { *m = Auth_PasswordRecovery_Data{} } +func (m *Auth_PasswordRecovery_Data) String() string { return proto.CompactTextString(m) } +func (*Auth_PasswordRecovery_Data) ProtoMessage() {} +func (*Auth_PasswordRecovery_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1140} +} +func (m *Auth_PasswordRecovery_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_PasswordRecovery_Data.Unmarshal(m, b) +} +func (m *Auth_PasswordRecovery_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_PasswordRecovery_Data.Marshal(b, m, deterministic) +} +func (dst *Auth_PasswordRecovery_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_PasswordRecovery_Data.Merge(dst, src) +} +func (m *Auth_PasswordRecovery_Data) XXX_Size() int { + return xxx_messageInfo_Auth_PasswordRecovery_Data.Size(m) +} +func (m *Auth_PasswordRecovery_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_PasswordRecovery_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_Auth_PasswordRecovery_Data proto.InternalMessageInfo + +func (m *Auth_PasswordRecovery_Data) GetEmailPattern() string { + if m != nil { + return m.EmailPattern + } + return "" +} + +type Auth_PasswordRecovery struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Auth_PasswordRecovery_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Auth_PasswordRecovery) Reset() { *m = Auth_PasswordRecovery{} } +func (m *Auth_PasswordRecovery) String() string { return proto.CompactTextString(m) } +func (*Auth_PasswordRecovery) ProtoMessage() {} +func (*Auth_PasswordRecovery) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1141} +} +func (m *Auth_PasswordRecovery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth_PasswordRecovery.Unmarshal(m, b) +} +func (m *Auth_PasswordRecovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth_PasswordRecovery.Marshal(b, m, deterministic) +} +func (dst *Auth_PasswordRecovery) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth_PasswordRecovery.Merge(dst, src) +} +func (m *Auth_PasswordRecovery) XXX_Size() int { + return xxx_messageInfo_Auth_PasswordRecovery.Size(m) +} +func (m *Auth_PasswordRecovery) XXX_DiscardUnknown() { + xxx_messageInfo_Auth_PasswordRecovery.DiscardUnknown(m) +} + +var xxx_messageInfo_Auth_PasswordRecovery proto.InternalMessageInfo + +func (m *Auth_PasswordRecovery) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Auth_PasswordRecovery) GetData2() *Auth_PasswordRecovery_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; +type TLAuthPasswordRecovery struct { + Data2 *Auth_PasswordRecovery_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLAuthPasswordRecovery) Reset() { *m = TLAuthPasswordRecovery{} } +func (m *TLAuthPasswordRecovery) String() string { return proto.CompactTextString(m) } +func (*TLAuthPasswordRecovery) ProtoMessage() {} +func (*TLAuthPasswordRecovery) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1142} +} +func (m *TLAuthPasswordRecovery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthPasswordRecovery.Unmarshal(m, b) +} +func (m *TLAuthPasswordRecovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthPasswordRecovery.Marshal(b, m, deterministic) +} +func (dst *TLAuthPasswordRecovery) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthPasswordRecovery.Merge(dst, src) +} +func (m *TLAuthPasswordRecovery) XXX_Size() int { + return xxx_messageInfo_TLAuthPasswordRecovery.Size(m) +} +func (m *TLAuthPasswordRecovery) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthPasswordRecovery.DiscardUnknown(m) +} + +var xxx_messageInfo_TLAuthPasswordRecovery proto.InternalMessageInfo + +func (m *TLAuthPasswordRecovery) GetData2() *Auth_PasswordRecovery_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// ///////////////////////////////////////////////////////////////////////////// +// FileHash <-- +// + TL_fileHash +// +type FileHash_Data struct { + Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` + Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileHash_Data) Reset() { *m = FileHash_Data{} } +func (m *FileHash_Data) String() string { return proto.CompactTextString(m) } +func (*FileHash_Data) ProtoMessage() {} +func (*FileHash_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1143} +} +func (m *FileHash_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileHash_Data.Unmarshal(m, b) +} +func (m *FileHash_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileHash_Data.Marshal(b, m, deterministic) +} +func (dst *FileHash_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileHash_Data.Merge(dst, src) +} +func (m *FileHash_Data) XXX_Size() int { + return xxx_messageInfo_FileHash_Data.Size(m) +} +func (m *FileHash_Data) XXX_DiscardUnknown() { + xxx_messageInfo_FileHash_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_FileHash_Data proto.InternalMessageInfo + +func (m *FileHash_Data) GetOffset() int32 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *FileHash_Data) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *FileHash_Data) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +type FileHash struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *FileHash_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileHash) Reset() { *m = FileHash{} } +func (m *FileHash) String() string { return proto.CompactTextString(m) } +func (*FileHash) ProtoMessage() {} +func (*FileHash) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1144} +} +func (m *FileHash) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileHash.Unmarshal(m, b) +} +func (m *FileHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileHash.Marshal(b, m, deterministic) +} +func (dst *FileHash) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileHash.Merge(dst, src) +} +func (m *FileHash) XXX_Size() int { + return xxx_messageInfo_FileHash.Size(m) +} +func (m *FileHash) XXX_DiscardUnknown() { + xxx_messageInfo_FileHash.DiscardUnknown(m) +} + +var xxx_messageInfo_FileHash proto.InternalMessageInfo + +func (m *FileHash) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *FileHash) GetData2() *FileHash_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// fileHash#6242c773 offset:int limit:int hash:bytes = FileHash; +type TLFileHash struct { + Data2 *FileHash_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLFileHash) Reset() { *m = TLFileHash{} } +func (m *TLFileHash) String() string { return proto.CompactTextString(m) } +func (*TLFileHash) ProtoMessage() {} +func (*TLFileHash) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_379ba0ea4726162e, []int{1145} +} +func (m *TLFileHash) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLFileHash.Unmarshal(m, b) +} +func (m *TLFileHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLFileHash.Marshal(b, m, deterministic) +} +func (dst *TLFileHash) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLFileHash.Merge(dst, src) +} +func (m *TLFileHash) XXX_Size() int { + return xxx_messageInfo_TLFileHash.Size(m) +} +func (m *TLFileHash) XXX_DiscardUnknown() { + xxx_messageInfo_TLFileHash.DiscardUnknown(m) +} + +var xxx_messageInfo_TLFileHash proto.InternalMessageInfo + +func (m *TLFileHash) GetData2() *FileHash_Data { + if m != nil { + return m.Data2 + } + return nil +} + +func init() { + proto.RegisterType((*Messages_BotCallbackAnswer_Data)(nil), "mtproto.messages_BotCallbackAnswer_Data") + proto.RegisterType((*Messages_BotCallbackAnswer)(nil), "mtproto.messages_BotCallbackAnswer") + proto.RegisterType((*TLMessagesBotCallbackAnswer)(nil), "mtproto.TL_messages_botCallbackAnswer") + proto.RegisterType((*Messages_MessageEditData_Data)(nil), "mtproto.messages_MessageEditData_Data") + proto.RegisterType((*Messages_MessageEditData)(nil), "mtproto.messages_MessageEditData") + proto.RegisterType((*TLMessagesMessageEditData)(nil), "mtproto.TL_messages_messageEditData") + proto.RegisterType((*PostAddress_Data)(nil), "mtproto.PostAddress_Data") + proto.RegisterType((*PostAddress)(nil), "mtproto.PostAddress") + proto.RegisterType((*TLPostAddress)(nil), "mtproto.TL_postAddress") + proto.RegisterType((*Payments_PaymentReceipt_Data)(nil), "mtproto.payments_PaymentReceipt_Data") + proto.RegisterType((*Payments_PaymentReceipt)(nil), "mtproto.payments_PaymentReceipt") + proto.RegisterType((*TLPaymentsPaymentReceipt)(nil), "mtproto.TL_payments_paymentReceipt") + proto.RegisterType((*PrivacyKey_Data)(nil), "mtproto.PrivacyKey_Data") + proto.RegisterType((*PrivacyKey)(nil), "mtproto.PrivacyKey") + proto.RegisterType((*TLPrivacyKeyStatusTimestamp)(nil), "mtproto.TL_privacyKeyStatusTimestamp") + proto.RegisterType((*TLPrivacyKeyChatInvite)(nil), "mtproto.TL_privacyKeyChatInvite") + proto.RegisterType((*TLPrivacyKeyPhoneCall)(nil), "mtproto.TL_privacyKeyPhoneCall") + proto.RegisterType((*Messages_Stickers_Data)(nil), "mtproto.messages_Stickers_Data") + proto.RegisterType((*Messages_Stickers)(nil), "mtproto.messages_Stickers") + proto.RegisterType((*TLMessagesStickersNotModified)(nil), "mtproto.TL_messages_stickersNotModified") + proto.RegisterType((*TLMessagesStickers)(nil), "mtproto.TL_messages_stickers") + proto.RegisterType((*InputBotInlineMessage_Data)(nil), "mtproto.InputBotInlineMessage_Data") + proto.RegisterType((*InputBotInlineMessage)(nil), "mtproto.InputBotInlineMessage") + proto.RegisterType((*TLInputBotInlineMessageMediaAuto)(nil), "mtproto.TL_inputBotInlineMessageMediaAuto") + proto.RegisterType((*TLInputBotInlineMessageText)(nil), "mtproto.TL_inputBotInlineMessageText") + proto.RegisterType((*TLInputBotInlineMessageMediaGeo)(nil), "mtproto.TL_inputBotInlineMessageMediaGeo") + proto.RegisterType((*TLInputBotInlineMessageMediaVenue)(nil), "mtproto.TL_inputBotInlineMessageMediaVenue") + proto.RegisterType((*TLInputBotInlineMessageMediaContact)(nil), "mtproto.TL_inputBotInlineMessageMediaContact") + proto.RegisterType((*TLInputBotInlineMessageGame)(nil), "mtproto.TL_inputBotInlineMessageGame") + proto.RegisterType((*Account_Authorizations_Data)(nil), "mtproto.account_Authorizations_Data") + proto.RegisterType((*Account_Authorizations)(nil), "mtproto.account_Authorizations") + proto.RegisterType((*TLAccountAuthorizations)(nil), "mtproto.TL_account_authorizations") + proto.RegisterType((*Messages_HighScores_Data)(nil), "mtproto.messages_HighScores_Data") + proto.RegisterType((*Messages_HighScores)(nil), "mtproto.messages_HighScores") + proto.RegisterType((*TLMessagesHighScores)(nil), "mtproto.TL_messages_highScores") + proto.RegisterType((*Help_ProxyData_Data)(nil), "mtproto.help_ProxyData_Data") + proto.RegisterType((*Help_ProxyData)(nil), "mtproto.help_ProxyData") + proto.RegisterType((*TLHelpProxyDataEmpty)(nil), "mtproto.TL_help_proxyDataEmpty") + proto.RegisterType((*TLHelpProxyDataPromo)(nil), "mtproto.TL_help_proxyDataPromo") + proto.RegisterType((*InputSecureFile_Data)(nil), "mtproto.InputSecureFile_Data") + proto.RegisterType((*InputSecureFile)(nil), "mtproto.InputSecureFile") + proto.RegisterType((*TLInputSecureFileUploaded)(nil), "mtproto.TL_inputSecureFileUploaded") + proto.RegisterType((*TLInputSecureFile)(nil), "mtproto.TL_inputSecureFile") + proto.RegisterType((*SchemeMethod_Data)(nil), "mtproto.SchemeMethod_Data") + proto.RegisterType((*SchemeMethod)(nil), "mtproto.SchemeMethod") + proto.RegisterType((*TLSchemeMethod)(nil), "mtproto.TL_schemeMethod") + proto.RegisterType((*PeerNotifySettings_Data)(nil), "mtproto.PeerNotifySettings_Data") + proto.RegisterType((*PeerNotifySettings)(nil), "mtproto.PeerNotifySettings") + proto.RegisterType((*TLPeerNotifySettings)(nil), "mtproto.TL_peerNotifySettings") + proto.RegisterType((*InputEncryptedChat_Data)(nil), "mtproto.InputEncryptedChat_Data") + proto.RegisterType((*InputEncryptedChat)(nil), "mtproto.InputEncryptedChat") + proto.RegisterType((*TLInputEncryptedChat)(nil), "mtproto.TL_inputEncryptedChat") + proto.RegisterType((*SchemeParam_Data)(nil), "mtproto.SchemeParam_Data") + proto.RegisterType((*SchemeParam)(nil), "mtproto.SchemeParam") + proto.RegisterType((*TLSchemeParam)(nil), "mtproto.TL_schemeParam") + proto.RegisterType((*MessageFwdHeader_Data)(nil), "mtproto.MessageFwdHeader_Data") + proto.RegisterType((*MessageFwdHeader)(nil), "mtproto.MessageFwdHeader") + proto.RegisterType((*TLMessageFwdHeader)(nil), "mtproto.TL_messageFwdHeader") + proto.RegisterType((*Help_TermsOfServiceUpdate_Data)(nil), "mtproto.help_TermsOfServiceUpdate_Data") + proto.RegisterType((*Help_TermsOfServiceUpdate)(nil), "mtproto.help_TermsOfServiceUpdate") + proto.RegisterType((*TLHelpTermsOfServiceUpdateEmpty)(nil), "mtproto.TL_help_termsOfServiceUpdateEmpty") + proto.RegisterType((*TLHelpTermsOfServiceUpdate)(nil), "mtproto.TL_help_termsOfServiceUpdate") + proto.RegisterType((*Game_Data)(nil), "mtproto.Game_Data") + proto.RegisterType((*Game)(nil), "mtproto.Game") + proto.RegisterType((*TLGame)(nil), "mtproto.TL_game") + proto.RegisterType((*InputStickerSetItem_Data)(nil), "mtproto.InputStickerSetItem_Data") + proto.RegisterType((*InputStickerSetItem)(nil), "mtproto.InputStickerSetItem") + proto.RegisterType((*TLInputStickerSetItem)(nil), "mtproto.TL_inputStickerSetItem") + proto.RegisterType((*PhoneCall_Data)(nil), "mtproto.PhoneCall_Data") + proto.RegisterType((*PhoneCall)(nil), "mtproto.PhoneCall") + proto.RegisterType((*TLPhoneCallEmpty)(nil), "mtproto.TL_phoneCallEmpty") + proto.RegisterType((*TLPhoneCallWaiting)(nil), "mtproto.TL_phoneCallWaiting") + proto.RegisterType((*TLPhoneCallRequested)(nil), "mtproto.TL_phoneCallRequested") + proto.RegisterType((*TLPhoneCallAccepted)(nil), "mtproto.TL_phoneCallAccepted") + proto.RegisterType((*TLPhoneCall)(nil), "mtproto.TL_phoneCall") + proto.RegisterType((*TLPhoneCallDiscarded)(nil), "mtproto.TL_phoneCallDiscarded") + proto.RegisterType((*InputMedia_Data)(nil), "mtproto.InputMedia_Data") + proto.RegisterType((*InputMedia)(nil), "mtproto.InputMedia") + proto.RegisterType((*TLInputMediaPhotoLayer46)(nil), "mtproto.TL_inputMediaPhotoLayer46") + proto.RegisterType((*TLInputMediaEmpty)(nil), "mtproto.TL_inputMediaEmpty") + proto.RegisterType((*TLInputMediaUploadedPhoto)(nil), "mtproto.TL_inputMediaUploadedPhoto") + proto.RegisterType((*TLInputMediaPhoto)(nil), "mtproto.TL_inputMediaPhoto") + proto.RegisterType((*TLInputMediaGeoPoint)(nil), "mtproto.TL_inputMediaGeoPoint") + proto.RegisterType((*TLInputMediaContact)(nil), "mtproto.TL_inputMediaContact") + proto.RegisterType((*TLInputMediaUploadedDocument)(nil), "mtproto.TL_inputMediaUploadedDocument") + proto.RegisterType((*TLInputMediaDocument)(nil), "mtproto.TL_inputMediaDocument") + proto.RegisterType((*TLInputMediaVenue)(nil), "mtproto.TL_inputMediaVenue") + proto.RegisterType((*TLInputMediaGifExternal)(nil), "mtproto.TL_inputMediaGifExternal") + proto.RegisterType((*TLInputMediaPhotoExternal)(nil), "mtproto.TL_inputMediaPhotoExternal") + proto.RegisterType((*TLInputMediaDocumentExternal)(nil), "mtproto.TL_inputMediaDocumentExternal") + proto.RegisterType((*TLInputMediaGame)(nil), "mtproto.TL_inputMediaGame") + proto.RegisterType((*TLInputMediaInvoice)(nil), "mtproto.TL_inputMediaInvoice") + proto.RegisterType((*TLInputMediaGeoLive)(nil), "mtproto.TL_inputMediaGeoLive") + proto.RegisterType((*InputGeoPoint_Data)(nil), "mtproto.InputGeoPoint_Data") + proto.RegisterType((*InputGeoPoint)(nil), "mtproto.InputGeoPoint") + proto.RegisterType((*TLInputGeoPointEmpty)(nil), "mtproto.TL_inputGeoPointEmpty") + proto.RegisterType((*TLInputGeoPoint)(nil), "mtproto.TL_inputGeoPoint") + proto.RegisterType((*InputDocument_Data)(nil), "mtproto.InputDocument_Data") + proto.RegisterType((*InputDocument)(nil), "mtproto.InputDocument") + proto.RegisterType((*TLInputDocumentEmpty)(nil), "mtproto.TL_inputDocumentEmpty") + proto.RegisterType((*TLInputDocument)(nil), "mtproto.TL_inputDocument") + proto.RegisterType((*TLInputDocumentLayer86)(nil), "mtproto.TL_inputDocumentLayer86") + proto.RegisterType((*ChatParticipant_Data)(nil), "mtproto.ChatParticipant_Data") + proto.RegisterType((*ChatParticipant)(nil), "mtproto.ChatParticipant") + proto.RegisterType((*TLChatParticipant)(nil), "mtproto.TL_chatParticipant") + proto.RegisterType((*TLChatParticipantCreator)(nil), "mtproto.TL_chatParticipantCreator") + proto.RegisterType((*TLChatParticipantAdmin)(nil), "mtproto.TL_chatParticipantAdmin") + proto.RegisterType((*ChatPhoto_Data)(nil), "mtproto.ChatPhoto_Data") + proto.RegisterType((*ChatPhoto)(nil), "mtproto.ChatPhoto") + proto.RegisterType((*TLChatPhotoEmpty)(nil), "mtproto.TL_chatPhotoEmpty") + proto.RegisterType((*TLChatPhoto)(nil), "mtproto.TL_chatPhoto") + proto.RegisterType((*PhoneCallDiscardReason_Data)(nil), "mtproto.PhoneCallDiscardReason_Data") + proto.RegisterType((*PhoneCallDiscardReason)(nil), "mtproto.PhoneCallDiscardReason") + proto.RegisterType((*TLPhoneCallDiscardReasonMissed)(nil), "mtproto.TL_phoneCallDiscardReasonMissed") + proto.RegisterType((*TLPhoneCallDiscardReasonDisconnect)(nil), "mtproto.TL_phoneCallDiscardReasonDisconnect") + proto.RegisterType((*TLPhoneCallDiscardReasonHangup)(nil), "mtproto.TL_phoneCallDiscardReasonHangup") + proto.RegisterType((*TLPhoneCallDiscardReasonBusy)(nil), "mtproto.TL_phoneCallDiscardReasonBusy") + proto.RegisterType((*PhoneConnection_Data)(nil), "mtproto.PhoneConnection_Data") + proto.RegisterType((*PhoneConnection)(nil), "mtproto.PhoneConnection") + proto.RegisterType((*TLPhoneConnection)(nil), "mtproto.TL_phoneConnection") + proto.RegisterType((*ChannelAdminLogEvent_Data)(nil), "mtproto.ChannelAdminLogEvent_Data") + proto.RegisterType((*ChannelAdminLogEvent)(nil), "mtproto.ChannelAdminLogEvent") + proto.RegisterType((*TLChannelAdminLogEvent)(nil), "mtproto.TL_channelAdminLogEvent") + proto.RegisterType((*Document_Data)(nil), "mtproto.Document_Data") + proto.RegisterType((*Document)(nil), "mtproto.Document") + proto.RegisterType((*TLDocumentEmpty)(nil), "mtproto.TL_documentEmpty") + proto.RegisterType((*TLDocument)(nil), "mtproto.TL_document") + proto.RegisterType((*TLDocumentLayer86)(nil), "mtproto.TL_documentLayer86") + proto.RegisterType((*Account_PrivacyRules_Data)(nil), "mtproto.account_PrivacyRules_Data") + proto.RegisterType((*Account_PrivacyRules)(nil), "mtproto.account_PrivacyRules") + proto.RegisterType((*TLAccountPrivacyRules)(nil), "mtproto.TL_account_privacyRules") + proto.RegisterType((*InputPaymentCredentials_Data)(nil), "mtproto.InputPaymentCredentials_Data") + proto.RegisterType((*InputPaymentCredentials)(nil), "mtproto.InputPaymentCredentials") + proto.RegisterType((*TLInputPaymentCredentialsSaved)(nil), "mtproto.TL_inputPaymentCredentialsSaved") + proto.RegisterType((*TLInputPaymentCredentials)(nil), "mtproto.TL_inputPaymentCredentials") + proto.RegisterType((*TLInputPaymentCredentialsApplePay)(nil), "mtproto.TL_inputPaymentCredentialsApplePay") + proto.RegisterType((*TLInputPaymentCredentialsAndroidPay)(nil), "mtproto.TL_inputPaymentCredentialsAndroidPay") + proto.RegisterType((*Account_TmpPassword_Data)(nil), "mtproto.account_TmpPassword_Data") + proto.RegisterType((*Account_TmpPassword)(nil), "mtproto.account_TmpPassword") + proto.RegisterType((*TLAccountTmpPassword)(nil), "mtproto.TL_account_tmpPassword") + proto.RegisterType((*PhoneCallProtocol_Data)(nil), "mtproto.PhoneCallProtocol_Data") + proto.RegisterType((*PhoneCallProtocol)(nil), "mtproto.PhoneCallProtocol") + proto.RegisterType((*TLPhoneCallProtocol)(nil), "mtproto.TL_phoneCallProtocol") + proto.RegisterType((*Account_WebAuthorizations_Data)(nil), "mtproto.account_WebAuthorizations_Data") + proto.RegisterType((*Account_WebAuthorizations)(nil), "mtproto.account_WebAuthorizations") + proto.RegisterType((*TLAccountWebAuthorizations)(nil), "mtproto.TL_account_webAuthorizations") + proto.RegisterType((*SecureFile_Data)(nil), "mtproto.SecureFile_Data") + proto.RegisterType((*SecureFile)(nil), "mtproto.SecureFile") + proto.RegisterType((*TLSecureFileEmpty)(nil), "mtproto.TL_secureFileEmpty") + proto.RegisterType((*TLSecureFile)(nil), "mtproto.TL_secureFile") + proto.RegisterType((*Photos_Photos_Data)(nil), "mtproto.photos_Photos_Data") + proto.RegisterType((*Photos_Photos)(nil), "mtproto.photos_Photos") + proto.RegisterType((*TLPhotosPhotos)(nil), "mtproto.TL_photos_photos") + proto.RegisterType((*TLPhotosPhotosSlice)(nil), "mtproto.TL_photos_photosSlice") + proto.RegisterType((*Auth_SentCodeType_Data)(nil), "mtproto.auth_SentCodeType_Data") + proto.RegisterType((*Auth_SentCodeType)(nil), "mtproto.auth_SentCodeType") + proto.RegisterType((*TLAuthSentCodeTypeApp)(nil), "mtproto.TL_auth_sentCodeTypeApp") + proto.RegisterType((*TLAuthSentCodeTypeSms)(nil), "mtproto.TL_auth_sentCodeTypeSms") + proto.RegisterType((*TLAuthSentCodeTypeCall)(nil), "mtproto.TL_auth_sentCodeTypeCall") + proto.RegisterType((*TLAuthSentCodeTypeFlashCall)(nil), "mtproto.TL_auth_sentCodeTypeFlashCall") + proto.RegisterType((*PaymentSavedCredentials_Data)(nil), "mtproto.PaymentSavedCredentials_Data") + proto.RegisterType((*PaymentSavedCredentials)(nil), "mtproto.PaymentSavedCredentials") + proto.RegisterType((*TLPaymentSavedCredentialsCard)(nil), "mtproto.TL_paymentSavedCredentialsCard") + proto.RegisterType((*Contacts_Contacts_Data)(nil), "mtproto.contacts_Contacts_Data") + proto.RegisterType((*Contacts_Contacts)(nil), "mtproto.contacts_Contacts") + proto.RegisterType((*TLContactsContactsNotModified)(nil), "mtproto.TL_contacts_contactsNotModified") + proto.RegisterType((*TLContactsContacts)(nil), "mtproto.TL_contacts_contacts") + proto.RegisterType((*Messages_SentEncryptedMessage_Data)(nil), "mtproto.messages_SentEncryptedMessage_Data") + proto.RegisterType((*Messages_SentEncryptedMessage)(nil), "mtproto.messages_SentEncryptedMessage") + proto.RegisterType((*TLMessagesSentEncryptedMessage)(nil), "mtproto.TL_messages_sentEncryptedMessage") + proto.RegisterType((*TLMessagesSentEncryptedFile)(nil), "mtproto.TL_messages_sentEncryptedFile") + proto.RegisterType((*Messages_StickerSet_Data)(nil), "mtproto.messages_StickerSet_Data") + proto.RegisterType((*Messages_StickerSet)(nil), "mtproto.messages_StickerSet") + proto.RegisterType((*TLMessagesStickerSet)(nil), "mtproto.TL_messages_stickerSet") + proto.RegisterType((*Help_AppUpdate_Data)(nil), "mtproto.help_AppUpdate_Data") + proto.RegisterType((*Help_AppUpdate)(nil), "mtproto.help_AppUpdate") + proto.RegisterType((*TLHelpAppUpdate)(nil), "mtproto.TL_help_appUpdate") + proto.RegisterType((*TLHelpNoAppUpdate)(nil), "mtproto.TL_help_noAppUpdate") + proto.RegisterType((*HighScore_Data)(nil), "mtproto.HighScore_Data") + proto.RegisterType((*HighScore)(nil), "mtproto.HighScore") + proto.RegisterType((*TLHighScore)(nil), "mtproto.TL_highScore") + proto.RegisterType((*Updates_State_Data)(nil), "mtproto.updates_State_Data") + proto.RegisterType((*Updates_State)(nil), "mtproto.updates_State") + proto.RegisterType((*TLUpdatesState)(nil), "mtproto.TL_updates_state") + proto.RegisterType((*WebPage_Data)(nil), "mtproto.WebPage_Data") + proto.RegisterType((*WebPage)(nil), "mtproto.WebPage") + proto.RegisterType((*TLWebPageEmpty)(nil), "mtproto.TL_webPageEmpty") + proto.RegisterType((*TLWebPagePending)(nil), "mtproto.TL_webPagePending") + proto.RegisterType((*TLWebPage)(nil), "mtproto.TL_webPage") + proto.RegisterType((*TLWebPageNotModified)(nil), "mtproto.TL_webPageNotModified") + proto.RegisterType((*Channels_ChannelParticipant_Data)(nil), "mtproto.channels_ChannelParticipant_Data") + proto.RegisterType((*Channels_ChannelParticipant)(nil), "mtproto.channels_ChannelParticipant") + proto.RegisterType((*TLChannelsChannelParticipant)(nil), "mtproto.TL_channels_channelParticipant") + proto.RegisterType((*SendMessageAction_Data)(nil), "mtproto.SendMessageAction_Data") + proto.RegisterType((*SendMessageAction)(nil), "mtproto.SendMessageAction") + proto.RegisterType((*TLSendMessageTypingAction)(nil), "mtproto.TL_sendMessageTypingAction") + proto.RegisterType((*TLSendMessageCancelAction)(nil), "mtproto.TL_sendMessageCancelAction") + proto.RegisterType((*TLSendMessageRecordVideoAction)(nil), "mtproto.TL_sendMessageRecordVideoAction") + proto.RegisterType((*TLSendMessageUploadVideoAction)(nil), "mtproto.TL_sendMessageUploadVideoAction") + proto.RegisterType((*TLSendMessageRecordAudioAction)(nil), "mtproto.TL_sendMessageRecordAudioAction") + proto.RegisterType((*TLSendMessageUploadAudioAction)(nil), "mtproto.TL_sendMessageUploadAudioAction") + proto.RegisterType((*TLSendMessageUploadPhotoAction)(nil), "mtproto.TL_sendMessageUploadPhotoAction") + proto.RegisterType((*TLSendMessageUploadDocumentAction)(nil), "mtproto.TL_sendMessageUploadDocumentAction") + proto.RegisterType((*TLSendMessageGeoLocationAction)(nil), "mtproto.TL_sendMessageGeoLocationAction") + proto.RegisterType((*TLSendMessageChooseContactAction)(nil), "mtproto.TL_sendMessageChooseContactAction") + proto.RegisterType((*TLSendMessageGamePlayAction)(nil), "mtproto.TL_sendMessageGamePlayAction") + proto.RegisterType((*TLSendMessageRecordRoundAction)(nil), "mtproto.TL_sendMessageRecordRoundAction") + proto.RegisterType((*TLSendMessageUploadRoundAction)(nil), "mtproto.TL_sendMessageUploadRoundAction") + proto.RegisterType((*ContactLink_Data)(nil), "mtproto.ContactLink_Data") + proto.RegisterType((*ContactLink)(nil), "mtproto.ContactLink") + proto.RegisterType((*TLContactLinkUnknown)(nil), "mtproto.TL_contactLinkUnknown") + proto.RegisterType((*TLContactLinkNone)(nil), "mtproto.TL_contactLinkNone") + proto.RegisterType((*TLContactLinkHasPhone)(nil), "mtproto.TL_contactLinkHasPhone") + proto.RegisterType((*TLContactLinkContact)(nil), "mtproto.TL_contactLinkContact") + proto.RegisterType((*PaymentRequestedInfo_Data)(nil), "mtproto.PaymentRequestedInfo_Data") + proto.RegisterType((*PaymentRequestedInfo)(nil), "mtproto.PaymentRequestedInfo") + proto.RegisterType((*TLPaymentRequestedInfo)(nil), "mtproto.TL_paymentRequestedInfo") + proto.RegisterType((*LabeledPrice_Data)(nil), "mtproto.LabeledPrice_Data") + proto.RegisterType((*LabeledPrice)(nil), "mtproto.LabeledPrice") + proto.RegisterType((*TLLabeledPrice)(nil), "mtproto.TL_labeledPrice") + proto.RegisterType((*SecureValue_Data)(nil), "mtproto.SecureValue_Data") + proto.RegisterType((*SecureValue)(nil), "mtproto.SecureValue") + proto.RegisterType((*TLSecureValue)(nil), "mtproto.TL_secureValue") + proto.RegisterType((*Messages_DhConfig_Data)(nil), "mtproto.messages_DhConfig_Data") + proto.RegisterType((*Messages_DhConfig)(nil), "mtproto.messages_DhConfig") + proto.RegisterType((*TLMessagesDhConfigNotModified)(nil), "mtproto.TL_messages_dhConfigNotModified") + proto.RegisterType((*TLMessagesDhConfig)(nil), "mtproto.TL_messages_dhConfig") + proto.RegisterType((*Contacts_ResolvedPeer_Data)(nil), "mtproto.contacts_ResolvedPeer_Data") + proto.RegisterType((*Contacts_ResolvedPeer)(nil), "mtproto.contacts_ResolvedPeer") + proto.RegisterType((*TLContactsResolvedPeer)(nil), "mtproto.TL_contacts_resolvedPeer") + proto.RegisterType((*InlineBotSwitchPM_Data)(nil), "mtproto.InlineBotSwitchPM_Data") + proto.RegisterType((*InlineBotSwitchPM)(nil), "mtproto.InlineBotSwitchPM") + proto.RegisterType((*TLInlineBotSwitchPM)(nil), "mtproto.TL_inlineBotSwitchPM") + proto.RegisterType((*DocumentAttribute_Data)(nil), "mtproto.DocumentAttribute_Data") + proto.RegisterType((*DocumentAttribute)(nil), "mtproto.DocumentAttribute") + proto.RegisterType((*TLDocumentAttributeImageSize)(nil), "mtproto.TL_documentAttributeImageSize") + proto.RegisterType((*TLDocumentAttributeAnimated)(nil), "mtproto.TL_documentAttributeAnimated") + proto.RegisterType((*TLDocumentAttributeSticker)(nil), "mtproto.TL_documentAttributeSticker") + proto.RegisterType((*TLDocumentAttributeVideo)(nil), "mtproto.TL_documentAttributeVideo") + proto.RegisterType((*TLDocumentAttributeAudio)(nil), "mtproto.TL_documentAttributeAudio") + proto.RegisterType((*TLDocumentAttributeFilename)(nil), "mtproto.TL_documentAttributeFilename") + proto.RegisterType((*TLDocumentAttributeHasStickers)(nil), "mtproto.TL_documentAttributeHasStickers") + proto.RegisterType((*CdnConfig_Data)(nil), "mtproto.CdnConfig_Data") + proto.RegisterType((*CdnConfig)(nil), "mtproto.CdnConfig") + proto.RegisterType((*TLCdnConfig)(nil), "mtproto.TL_cdnConfig") + proto.RegisterType((*Messages_FoundStickerSets_Data)(nil), "mtproto.messages_FoundStickerSets_Data") + proto.RegisterType((*Messages_FoundStickerSets)(nil), "mtproto.messages_FoundStickerSets") + proto.RegisterType((*TLMessagesFoundStickerSetsNotModified)(nil), "mtproto.TL_messages_foundStickerSetsNotModified") + proto.RegisterType((*TLMessagesFoundStickerSets)(nil), "mtproto.TL_messages_foundStickerSets") + proto.RegisterType((*Auth_SentCode_Data)(nil), "mtproto.auth_SentCode_Data") + proto.RegisterType((*Auth_SentCode)(nil), "mtproto.auth_SentCode") + proto.RegisterType((*TLAuthSentCode)(nil), "mtproto.TL_auth_sentCode") + proto.RegisterType((*Account_SentEmailCode_Data)(nil), "mtproto.account_SentEmailCode_Data") + proto.RegisterType((*Account_SentEmailCode)(nil), "mtproto.account_SentEmailCode") + proto.RegisterType((*TLAccountSentEmailCode)(nil), "mtproto.TL_account_sentEmailCode") + proto.RegisterType((*Contacts_Found_Data)(nil), "mtproto.contacts_Found_Data") + proto.RegisterType((*Contacts_Found)(nil), "mtproto.contacts_Found") + proto.RegisterType((*TLContactsFound)(nil), "mtproto.TL_contacts_found") + proto.RegisterType((*ChannelAdminLogEventsFilter_Data)(nil), "mtproto.ChannelAdminLogEventsFilter_Data") + proto.RegisterType((*ChannelAdminLogEventsFilter)(nil), "mtproto.ChannelAdminLogEventsFilter") + proto.RegisterType((*TLChannelAdminLogEventsFilter)(nil), "mtproto.TL_channelAdminLogEventsFilter") + proto.RegisterType((*Messages_FavedStickers_Data)(nil), "mtproto.messages_FavedStickers_Data") + proto.RegisterType((*Messages_FavedStickers)(nil), "mtproto.messages_FavedStickers") + proto.RegisterType((*TLMessagesFavedStickersNotModified)(nil), "mtproto.TL_messages_favedStickersNotModified") + proto.RegisterType((*TLMessagesFavedStickers)(nil), "mtproto.TL_messages_favedStickers") + proto.RegisterType((*InputFileLocation_Data)(nil), "mtproto.InputFileLocation_Data") + proto.RegisterType((*InputFileLocation)(nil), "mtproto.InputFileLocation") + proto.RegisterType((*TLInputDocumentFileLocationLayer11)(nil), "mtproto.TL_inputDocumentFileLocationLayer11") + proto.RegisterType((*TLInputFileLocation)(nil), "mtproto.TL_inputFileLocation") + proto.RegisterType((*TLInputEncryptedFileLocation)(nil), "mtproto.TL_inputEncryptedFileLocation") + proto.RegisterType((*TLInputDocumentFileLocation)(nil), "mtproto.TL_inputDocumentFileLocation") + proto.RegisterType((*TLInputSecureFileLocation)(nil), "mtproto.TL_inputSecureFileLocation") + proto.RegisterType((*TLInputTakeoutFileLocation)(nil), "mtproto.TL_inputTakeoutFileLocation") + proto.RegisterType((*TLInputFileLocationLayer86)(nil), "mtproto.TL_inputFileLocationLayer86") + proto.RegisterType((*TLInputDocumentFileLocationLayer86)(nil), "mtproto.TL_inputDocumentFileLocationLayer86") + proto.RegisterType((*InputBotInlineResult_Data)(nil), "mtproto.InputBotInlineResult_Data") + proto.RegisterType((*InputBotInlineResult)(nil), "mtproto.InputBotInlineResult") + proto.RegisterType((*TLInputBotInlineResult)(nil), "mtproto.TL_inputBotInlineResult") + proto.RegisterType((*TLInputBotInlineResultPhoto)(nil), "mtproto.TL_inputBotInlineResultPhoto") + proto.RegisterType((*TLInputBotInlineResultDocument)(nil), "mtproto.TL_inputBotInlineResultDocument") + proto.RegisterType((*TLInputBotInlineResultGame)(nil), "mtproto.TL_inputBotInlineResultGame") + proto.RegisterType((*SavedContact_Data)(nil), "mtproto.SavedContact_Data") + proto.RegisterType((*SavedContact)(nil), "mtproto.SavedContact") + proto.RegisterType((*TLSavedPhoneContact)(nil), "mtproto.TL_savedPhoneContact") + proto.RegisterType((*Updates_ChannelDifference_Data)(nil), "mtproto.updates_ChannelDifference_Data") + proto.RegisterType((*Updates_ChannelDifference)(nil), "mtproto.updates_ChannelDifference") + proto.RegisterType((*TLUpdatesChannelDifferenceEmpty)(nil), "mtproto.TL_updates_channelDifferenceEmpty") + proto.RegisterType((*TLUpdatesChannelDifferenceTooLong)(nil), "mtproto.TL_updates_channelDifferenceTooLong") + proto.RegisterType((*TLUpdatesChannelDifference)(nil), "mtproto.TL_updates_channelDifference") + proto.RegisterType((*Messages_AffectedMessages_Data)(nil), "mtproto.messages_AffectedMessages_Data") + proto.RegisterType((*Messages_AffectedMessages)(nil), "mtproto.messages_AffectedMessages") + proto.RegisterType((*TLMessagesAffectedMessages)(nil), "mtproto.TL_messages_affectedMessages") + proto.RegisterType((*Channels_ChannelParticipants_Data)(nil), "mtproto.channels_ChannelParticipants_Data") + proto.RegisterType((*Channels_ChannelParticipants)(nil), "mtproto.channels_ChannelParticipants") + proto.RegisterType((*TLChannelsChannelParticipants)(nil), "mtproto.TL_channels_channelParticipants") + proto.RegisterType((*TLChannelsChannelParticipantsNotModified)(nil), "mtproto.TL_channels_channelParticipantsNotModified") + proto.RegisterType((*InputUser_Data)(nil), "mtproto.InputUser_Data") + proto.RegisterType((*InputUser)(nil), "mtproto.InputUser") + proto.RegisterType((*TLInputUserEmpty)(nil), "mtproto.TL_inputUserEmpty") + proto.RegisterType((*TLInputUserSelf)(nil), "mtproto.TL_inputUserSelf") + proto.RegisterType((*TLInputUser)(nil), "mtproto.TL_inputUser") + proto.RegisterType((*User_Data)(nil), "mtproto.User_Data") + proto.RegisterType((*User)(nil), "mtproto.User") + proto.RegisterType((*TLUserEmpty)(nil), "mtproto.TL_userEmpty") + proto.RegisterType((*TLUser)(nil), "mtproto.TL_user") + proto.RegisterType((*Messages_ChatFull_Data)(nil), "mtproto.messages_ChatFull_Data") + proto.RegisterType((*Messages_ChatFull)(nil), "mtproto.messages_ChatFull") + proto.RegisterType((*TLMessagesChatFull)(nil), "mtproto.TL_messages_chatFull") + proto.RegisterType((*Authorization_Data)(nil), "mtproto.Authorization_Data") + proto.RegisterType((*Authorization)(nil), "mtproto.Authorization") + proto.RegisterType((*TLAuthorization)(nil), "mtproto.TL_authorization") + proto.RegisterType((*ReceivedNotifyMessage_Data)(nil), "mtproto.ReceivedNotifyMessage_Data") + proto.RegisterType((*ReceivedNotifyMessage)(nil), "mtproto.ReceivedNotifyMessage") + proto.RegisterType((*TLReceivedNotifyMessage)(nil), "mtproto.TL_receivedNotifyMessage") + proto.RegisterType((*Channels_AdminLogResults_Data)(nil), "mtproto.channels_AdminLogResults_Data") + proto.RegisterType((*Channels_AdminLogResults)(nil), "mtproto.channels_AdminLogResults") + proto.RegisterType((*TLChannelsAdminLogResults)(nil), "mtproto.TL_channels_adminLogResults") + proto.RegisterType((*UserStatus_Data)(nil), "mtproto.UserStatus_Data") + proto.RegisterType((*UserStatus)(nil), "mtproto.UserStatus") + proto.RegisterType((*TLUserStatusEmpty)(nil), "mtproto.TL_userStatusEmpty") + proto.RegisterType((*TLUserStatusOnline)(nil), "mtproto.TL_userStatusOnline") + proto.RegisterType((*TLUserStatusOffline)(nil), "mtproto.TL_userStatusOffline") + proto.RegisterType((*TLUserStatusRecently)(nil), "mtproto.TL_userStatusRecently") + proto.RegisterType((*TLUserStatusLastWeek)(nil), "mtproto.TL_userStatusLastWeek") + proto.RegisterType((*TLUserStatusLastMonth)(nil), "mtproto.TL_userStatusLastMonth") + proto.RegisterType((*Photo_Data)(nil), "mtproto.Photo_Data") + proto.RegisterType((*Photo)(nil), "mtproto.Photo") + proto.RegisterType((*TLPhotoEmpty)(nil), "mtproto.TL_photoEmpty") + proto.RegisterType((*TLPhoto)(nil), "mtproto.TL_photo") + proto.RegisterType((*TLPhotoLayer86)(nil), "mtproto.TL_photoLayer86") + proto.RegisterType((*Upload_File_Data)(nil), "mtproto.upload_File_Data") + proto.RegisterType((*Upload_File)(nil), "mtproto.upload_File") + proto.RegisterType((*TLUploadFile)(nil), "mtproto.TL_upload_file") + proto.RegisterType((*TLUploadFileCdnRedirect)(nil), "mtproto.TL_upload_fileCdnRedirect") + proto.RegisterType((*Storage_FileType_Data)(nil), "mtproto.storage_FileType_Data") + proto.RegisterType((*Storage_FileType)(nil), "mtproto.storage_FileType") + proto.RegisterType((*TLStorageFileUnknown)(nil), "mtproto.TL_storage_fileUnknown") + proto.RegisterType((*TLStorageFilePartial)(nil), "mtproto.TL_storage_filePartial") + proto.RegisterType((*TLStorageFileJpeg)(nil), "mtproto.TL_storage_fileJpeg") + proto.RegisterType((*TLStorageFileGif)(nil), "mtproto.TL_storage_fileGif") + proto.RegisterType((*TLStorageFilePng)(nil), "mtproto.TL_storage_filePng") + proto.RegisterType((*TLStorageFilePdf)(nil), "mtproto.TL_storage_filePdf") + proto.RegisterType((*TLStorageFileMp3)(nil), "mtproto.TL_storage_fileMp3") + proto.RegisterType((*TLStorageFileMov)(nil), "mtproto.TL_storage_fileMov") + proto.RegisterType((*TLStorageFileMp4)(nil), "mtproto.TL_storage_fileMp4") + proto.RegisterType((*TLStorageFileWebp)(nil), "mtproto.TL_storage_fileWebp") + proto.RegisterType((*NearestDc_Data)(nil), "mtproto.NearestDc_Data") + proto.RegisterType((*NearestDc)(nil), "mtproto.NearestDc") + proto.RegisterType((*TLNearestDc)(nil), "mtproto.TL_nearestDc") + proto.RegisterType((*DraftMessage_Data)(nil), "mtproto.DraftMessage_Data") + proto.RegisterType((*DraftMessage)(nil), "mtproto.DraftMessage") + proto.RegisterType((*TLDraftMessageEmpty)(nil), "mtproto.TL_draftMessageEmpty") + proto.RegisterType((*TLDraftMessage)(nil), "mtproto.TL_draftMessage") + proto.RegisterType((*Config_Data)(nil), "mtproto.Config_Data") + proto.RegisterType((*Config)(nil), "mtproto.Config") + proto.RegisterType((*TLConfig)(nil), "mtproto.TL_config") + proto.RegisterType((*Page_Data)(nil), "mtproto.Page_Data") + proto.RegisterType((*Page)(nil), "mtproto.Page") + proto.RegisterType((*TLPagePart)(nil), "mtproto.TL_pagePart") + proto.RegisterType((*TLPageFull)(nil), "mtproto.TL_pageFull") + proto.RegisterType((*WebDocument_Data)(nil), "mtproto.WebDocument_Data") + proto.RegisterType((*WebDocument)(nil), "mtproto.WebDocument") + proto.RegisterType((*TLWebDocument)(nil), "mtproto.TL_webDocument") + proto.RegisterType((*TLWebDocumentNoProxy)(nil), "mtproto.TL_webDocumentNoProxy") + proto.RegisterType((*Auth_Authorization_Data)(nil), "mtproto.auth_Authorization_Data") + proto.RegisterType((*Auth_Authorization)(nil), "mtproto.auth_Authorization") + proto.RegisterType((*TLAuthAuthorization)(nil), "mtproto.TL_auth_authorization") + proto.RegisterType((*ImportedContact_Data)(nil), "mtproto.ImportedContact_Data") + proto.RegisterType((*ImportedContact)(nil), "mtproto.ImportedContact") + proto.RegisterType((*TLImportedContact)(nil), "mtproto.TL_importedContact") + proto.RegisterType((*Updates_Difference_Data)(nil), "mtproto.updates_Difference_Data") + proto.RegisterType((*Updates_Difference)(nil), "mtproto.updates_Difference") + proto.RegisterType((*TLUpdatesDifferenceEmpty)(nil), "mtproto.TL_updates_differenceEmpty") + proto.RegisterType((*TLUpdatesDifference)(nil), "mtproto.TL_updates_difference") + proto.RegisterType((*TLUpdatesDifferenceSlice)(nil), "mtproto.TL_updates_differenceSlice") + proto.RegisterType((*TLUpdatesDifferenceTooLong)(nil), "mtproto.TL_updates_differenceTooLong") + proto.RegisterType((*Account_AuthorizationForm_Data)(nil), "mtproto.account_AuthorizationForm_Data") + proto.RegisterType((*Account_AuthorizationForm)(nil), "mtproto.account_AuthorizationForm") + proto.RegisterType((*TLAccountAuthorizationForm)(nil), "mtproto.TL_account_authorizationForm") + proto.RegisterType((*InputAppEvent_Data)(nil), "mtproto.InputAppEvent_Data") + proto.RegisterType((*InputAppEvent)(nil), "mtproto.InputAppEvent") + proto.RegisterType((*TLInputAppEvent)(nil), "mtproto.TL_inputAppEvent") + proto.RegisterType((*NotifyPeer_Data)(nil), "mtproto.NotifyPeer_Data") + proto.RegisterType((*NotifyPeer)(nil), "mtproto.NotifyPeer") + proto.RegisterType((*TLNotifyPeer)(nil), "mtproto.TL_notifyPeer") + proto.RegisterType((*TLNotifyUsers)(nil), "mtproto.TL_notifyUsers") + proto.RegisterType((*TLNotifyChats)(nil), "mtproto.TL_notifyChats") + proto.RegisterType((*StickerSet_Data)(nil), "mtproto.StickerSet_Data") + proto.RegisterType((*StickerSet)(nil), "mtproto.StickerSet") + proto.RegisterType((*TLStickerSet)(nil), "mtproto.TL_stickerSet") + proto.RegisterType((*EncryptedMessage_Data)(nil), "mtproto.EncryptedMessage_Data") + proto.RegisterType((*EncryptedMessage)(nil), "mtproto.EncryptedMessage") + proto.RegisterType((*TLEncryptedMessage)(nil), "mtproto.TL_encryptedMessage") + proto.RegisterType((*TLEncryptedMessageService)(nil), "mtproto.TL_encryptedMessageService") + proto.RegisterType((*StickerSetCovered_Data)(nil), "mtproto.StickerSetCovered_Data") + proto.RegisterType((*StickerSetCovered)(nil), "mtproto.StickerSetCovered") + proto.RegisterType((*TLStickerSetCovered)(nil), "mtproto.TL_stickerSetCovered") + proto.RegisterType((*TLStickerSetMultiCovered)(nil), "mtproto.TL_stickerSetMultiCovered") + proto.RegisterType((*InputPhoneCall_Data)(nil), "mtproto.InputPhoneCall_Data") + proto.RegisterType((*InputPhoneCall)(nil), "mtproto.InputPhoneCall") + proto.RegisterType((*TLInputPhoneCall)(nil), "mtproto.TL_inputPhoneCall") + proto.RegisterType((*Help_PassportConfig_Data)(nil), "mtproto.help_PassportConfig_Data") + proto.RegisterType((*Help_PassportConfig)(nil), "mtproto.help_PassportConfig") + proto.RegisterType((*TLHelpPassportConfigNotModified)(nil), "mtproto.TL_help_passportConfigNotModified") + proto.RegisterType((*TLHelpPassportConfig)(nil), "mtproto.TL_help_passportConfig") + proto.RegisterType((*StickerPack_Data)(nil), "mtproto.StickerPack_Data") + proto.RegisterType((*StickerPack)(nil), "mtproto.StickerPack") + proto.RegisterType((*TLStickerPack)(nil), "mtproto.TL_stickerPack") + proto.RegisterType((*BotInfo_Data)(nil), "mtproto.BotInfo_Data") + proto.RegisterType((*BotInfo)(nil), "mtproto.BotInfo") + proto.RegisterType((*TLBotInfo)(nil), "mtproto.TL_botInfo") + proto.RegisterType((*MessageRange_Data)(nil), "mtproto.MessageRange_Data") + proto.RegisterType((*MessageRange)(nil), "mtproto.MessageRange") + proto.RegisterType((*TLMessageRange)(nil), "mtproto.TL_messageRange") + proto.RegisterType((*InputCheckPasswordSRP_Data)(nil), "mtproto.InputCheckPasswordSRP_Data") + proto.RegisterType((*InputCheckPasswordSRP)(nil), "mtproto.InputCheckPasswordSRP") + proto.RegisterType((*TLInputCheckPasswordEmpty)(nil), "mtproto.TL_inputCheckPasswordEmpty") + proto.RegisterType((*TLInputCheckPasswordSRP)(nil), "mtproto.TL_inputCheckPasswordSRP") + proto.RegisterType((*Messages_Messages_Data)(nil), "mtproto.messages_Messages_Data") + proto.RegisterType((*Messages_Messages)(nil), "mtproto.messages_Messages") + proto.RegisterType((*TLMessagesMessages)(nil), "mtproto.TL_messages_messages") + proto.RegisterType((*TLMessagesMessagesSlice)(nil), "mtproto.TL_messages_messagesSlice") + proto.RegisterType((*TLMessagesChannelMessages)(nil), "mtproto.TL_messages_channelMessages") + proto.RegisterType((*TLMessagesMessagesNotModified)(nil), "mtproto.TL_messages_messagesNotModified") + proto.RegisterType((*Payments_ValidatedRequestedInfo_Data)(nil), "mtproto.payments_ValidatedRequestedInfo_Data") + proto.RegisterType((*Payments_ValidatedRequestedInfo)(nil), "mtproto.payments_ValidatedRequestedInfo") + proto.RegisterType((*TLPaymentsValidatedRequestedInfo)(nil), "mtproto.TL_payments_validatedRequestedInfo") + proto.RegisterType((*SchemeType_Data)(nil), "mtproto.SchemeType_Data") + proto.RegisterType((*SchemeType)(nil), "mtproto.SchemeType") + proto.RegisterType((*TLSchemeType)(nil), "mtproto.TL_schemeType") + proto.RegisterType((*EncryptedChat_Data)(nil), "mtproto.EncryptedChat_Data") + proto.RegisterType((*EncryptedChat)(nil), "mtproto.EncryptedChat") + proto.RegisterType((*TLEncryptedChatEmpty)(nil), "mtproto.TL_encryptedChatEmpty") + proto.RegisterType((*TLEncryptedChatWaiting)(nil), "mtproto.TL_encryptedChatWaiting") + proto.RegisterType((*TLEncryptedChatRequested)(nil), "mtproto.TL_encryptedChatRequested") + proto.RegisterType((*TLEncryptedChat)(nil), "mtproto.TL_encryptedChat") + proto.RegisterType((*TLEncryptedChatDiscarded)(nil), "mtproto.TL_encryptedChatDiscarded") + proto.RegisterType((*MessageEntity_Data)(nil), "mtproto.MessageEntity_Data") + proto.RegisterType((*MessageEntity)(nil), "mtproto.MessageEntity") + proto.RegisterType((*TLMessageEntityUnknown)(nil), "mtproto.TL_messageEntityUnknown") + proto.RegisterType((*TLMessageEntityMention)(nil), "mtproto.TL_messageEntityMention") + proto.RegisterType((*TLMessageEntityHashtag)(nil), "mtproto.TL_messageEntityHashtag") + proto.RegisterType((*TLMessageEntityBotCommand)(nil), "mtproto.TL_messageEntityBotCommand") + proto.RegisterType((*TLMessageEntityUrl)(nil), "mtproto.TL_messageEntityUrl") + proto.RegisterType((*TLMessageEntityEmail)(nil), "mtproto.TL_messageEntityEmail") + proto.RegisterType((*TLMessageEntityBold)(nil), "mtproto.TL_messageEntityBold") + proto.RegisterType((*TLMessageEntityItalic)(nil), "mtproto.TL_messageEntityItalic") + proto.RegisterType((*TLMessageEntityCode)(nil), "mtproto.TL_messageEntityCode") + proto.RegisterType((*TLMessageEntityPre)(nil), "mtproto.TL_messageEntityPre") + proto.RegisterType((*TLMessageEntityTextUrl)(nil), "mtproto.TL_messageEntityTextUrl") + proto.RegisterType((*TLMessageEntityMentionName)(nil), "mtproto.TL_messageEntityMentionName") + proto.RegisterType((*TLInputMessageEntityMentionName)(nil), "mtproto.TL_inputMessageEntityMentionName") + proto.RegisterType((*TLMessageEntityPhone)(nil), "mtproto.TL_messageEntityPhone") + proto.RegisterType((*TLMessageEntityCashtag)(nil), "mtproto.TL_messageEntityCashtag") + proto.RegisterType((*ChannelAdminRights_Data)(nil), "mtproto.ChannelAdminRights_Data") + proto.RegisterType((*ChannelAdminRights)(nil), "mtproto.ChannelAdminRights") + proto.RegisterType((*TLChannelAdminRights)(nil), "mtproto.TL_channelAdminRights") + proto.RegisterType((*PopularContact_Data)(nil), "mtproto.PopularContact_Data") + proto.RegisterType((*PopularContact)(nil), "mtproto.PopularContact") + proto.RegisterType((*TLPopularContact)(nil), "mtproto.TL_popularContact") + proto.RegisterType((*Peer_Data)(nil), "mtproto.Peer_Data") + proto.RegisterType((*Peer)(nil), "mtproto.Peer") + proto.RegisterType((*TLPeerUser)(nil), "mtproto.TL_peerUser") + proto.RegisterType((*TLPeerChat)(nil), "mtproto.TL_peerChat") + proto.RegisterType((*TLPeerChannel)(nil), "mtproto.TL_peerChannel") + proto.RegisterType((*FileLocation_Data)(nil), "mtproto.FileLocation_Data") + proto.RegisterType((*FileLocation)(nil), "mtproto.FileLocation") + proto.RegisterType((*TLFileLocationUnavailable)(nil), "mtproto.TL_fileLocationUnavailable") + proto.RegisterType((*TLFileLocation)(nil), "mtproto.TL_fileLocation") + proto.RegisterType((*TLFileLocationLayer86)(nil), "mtproto.TL_fileLocationLayer86") + proto.RegisterType((*Auth_CheckedPhone_Data)(nil), "mtproto.auth_CheckedPhone_Data") + proto.RegisterType((*Auth_CheckedPhone)(nil), "mtproto.auth_CheckedPhone") + proto.RegisterType((*TLAuthCheckedPhone)(nil), "mtproto.TL_auth_checkedPhone") + proto.RegisterType((*ChatFull_Data)(nil), "mtproto.ChatFull_Data") + proto.RegisterType((*ChatFull)(nil), "mtproto.ChatFull") + proto.RegisterType((*TLChatFull)(nil), "mtproto.TL_chatFull") + proto.RegisterType((*TLChannelFull)(nil), "mtproto.TL_channelFull") + proto.RegisterType((*Contacts_TopPeers_Data)(nil), "mtproto.contacts_TopPeers_Data") + proto.RegisterType((*Contacts_TopPeers)(nil), "mtproto.contacts_TopPeers") + proto.RegisterType((*TLContactsTopPeersNotModified)(nil), "mtproto.TL_contacts_topPeersNotModified") + proto.RegisterType((*TLContactsTopPeers)(nil), "mtproto.TL_contacts_topPeers") + proto.RegisterType((*TLContactsTopPeersDisabled)(nil), "mtproto.TL_contacts_topPeersDisabled") + proto.RegisterType((*Messages_FeaturedStickers_Data)(nil), "mtproto.messages_FeaturedStickers_Data") + proto.RegisterType((*Messages_FeaturedStickers)(nil), "mtproto.messages_FeaturedStickers") + proto.RegisterType((*TLMessagesFeaturedStickersNotModified)(nil), "mtproto.TL_messages_featuredStickersNotModified") + proto.RegisterType((*TLMessagesFeaturedStickers)(nil), "mtproto.TL_messages_featuredStickers") + proto.RegisterType((*InputPrivacyKey_Data)(nil), "mtproto.InputPrivacyKey_Data") + proto.RegisterType((*InputPrivacyKey)(nil), "mtproto.InputPrivacyKey") + proto.RegisterType((*TLInputPrivacyKeyStatusTimestamp)(nil), "mtproto.TL_inputPrivacyKeyStatusTimestamp") + proto.RegisterType((*TLInputPrivacyKeyChatInvite)(nil), "mtproto.TL_inputPrivacyKeyChatInvite") + proto.RegisterType((*TLInputPrivacyKeyPhoneCall)(nil), "mtproto.TL_inputPrivacyKeyPhoneCall") + proto.RegisterType((*Account_Password_Data)(nil), "mtproto.account_Password_Data") + proto.RegisterType((*Account_Password)(nil), "mtproto.account_Password") + proto.RegisterType((*TLAccountPassword)(nil), "mtproto.TL_account_password") + proto.RegisterType((*InputGame_Data)(nil), "mtproto.InputGame_Data") + proto.RegisterType((*InputGame)(nil), "mtproto.InputGame") + proto.RegisterType((*TLInputGameID)(nil), "mtproto.TL_inputGameID") + proto.RegisterType((*TLInputGameShortName)(nil), "mtproto.TL_inputGameShortName") + proto.RegisterType((*InputDialogPeer_Data)(nil), "mtproto.InputDialogPeer_Data") + proto.RegisterType((*InputDialogPeer)(nil), "mtproto.InputDialogPeer") + proto.RegisterType((*TLInputDialogPeer)(nil), "mtproto.TL_inputDialogPeer") + proto.RegisterType((*Auth_ExportedAuthorization_Data)(nil), "mtproto.auth_ExportedAuthorization_Data") + proto.RegisterType((*Auth_ExportedAuthorization)(nil), "mtproto.auth_ExportedAuthorization") + proto.RegisterType((*TLAuthExportedAuthorization)(nil), "mtproto.TL_auth_exportedAuthorization") + proto.RegisterType((*InputPeerNotifySettings_Data)(nil), "mtproto.InputPeerNotifySettings_Data") + proto.RegisterType((*InputPeerNotifySettings)(nil), "mtproto.InputPeerNotifySettings") + proto.RegisterType((*TLInputPeerNotifySettings)(nil), "mtproto.TL_inputPeerNotifySettings") + proto.RegisterType((*Photos_Photo_Data)(nil), "mtproto.photos_Photo_Data") + proto.RegisterType((*Photos_Photo)(nil), "mtproto.photos_Photo") + proto.RegisterType((*TLPhotosPhoto)(nil), "mtproto.TL_photos_photo") + proto.RegisterType((*MaskCoords_Data)(nil), "mtproto.MaskCoords_Data") + proto.RegisterType((*MaskCoords)(nil), "mtproto.MaskCoords") + proto.RegisterType((*TLMaskCoords)(nil), "mtproto.TL_maskCoords") + proto.RegisterType((*ChannelBannedRights_Data)(nil), "mtproto.ChannelBannedRights_Data") + proto.RegisterType((*ChannelBannedRights)(nil), "mtproto.ChannelBannedRights") + proto.RegisterType((*TLChannelBannedRights)(nil), "mtproto.TL_channelBannedRights") + proto.RegisterType((*Contacts_Link_Data)(nil), "mtproto.contacts_Link_Data") + proto.RegisterType((*Contacts_Link)(nil), "mtproto.contacts_Link") + proto.RegisterType((*TLContactsLink)(nil), "mtproto.TL_contacts_link") + proto.RegisterType((*PrivacyRule_Data)(nil), "mtproto.PrivacyRule_Data") + proto.RegisterType((*PrivacyRule)(nil), "mtproto.PrivacyRule") + proto.RegisterType((*TLPrivacyValueAllowContacts)(nil), "mtproto.TL_privacyValueAllowContacts") + proto.RegisterType((*TLPrivacyValueAllowAll)(nil), "mtproto.TL_privacyValueAllowAll") + proto.RegisterType((*TLPrivacyValueAllowUsers)(nil), "mtproto.TL_privacyValueAllowUsers") + proto.RegisterType((*TLPrivacyValueDisallowContacts)(nil), "mtproto.TL_privacyValueDisallowContacts") + proto.RegisterType((*TLPrivacyValueDisallowAll)(nil), "mtproto.TL_privacyValueDisallowAll") + proto.RegisterType((*TLPrivacyValueDisallowUsers)(nil), "mtproto.TL_privacyValueDisallowUsers") + proto.RegisterType((*BotInlineResult_Data)(nil), "mtproto.BotInlineResult_Data") + proto.RegisterType((*BotInlineResult)(nil), "mtproto.BotInlineResult") + proto.RegisterType((*TLBotInlineResult)(nil), "mtproto.TL_botInlineResult") + proto.RegisterType((*TLBotInlineMediaResult)(nil), "mtproto.TL_botInlineMediaResult") + proto.RegisterType((*MessageMedia_Data)(nil), "mtproto.MessageMedia_Data") + proto.RegisterType((*MessageMedia)(nil), "mtproto.MessageMedia") + proto.RegisterType((*TLMessageMediaEmpty)(nil), "mtproto.TL_messageMediaEmpty") + proto.RegisterType((*TLMessageMediaPhoto)(nil), "mtproto.TL_messageMediaPhoto") + proto.RegisterType((*TLMessageMediaGeo)(nil), "mtproto.TL_messageMediaGeo") + proto.RegisterType((*TLMessageMediaContact)(nil), "mtproto.TL_messageMediaContact") + proto.RegisterType((*TLMessageMediaUnsupported)(nil), "mtproto.TL_messageMediaUnsupported") + proto.RegisterType((*TLMessageMediaDocument)(nil), "mtproto.TL_messageMediaDocument") + proto.RegisterType((*TLMessageMediaWebPage)(nil), "mtproto.TL_messageMediaWebPage") + proto.RegisterType((*TLMessageMediaVenue)(nil), "mtproto.TL_messageMediaVenue") + proto.RegisterType((*TLMessageMediaGame)(nil), "mtproto.TL_messageMediaGame") + proto.RegisterType((*TLMessageMediaInvoice)(nil), "mtproto.TL_messageMediaInvoice") + proto.RegisterType((*TLMessageMediaGeoLive)(nil), "mtproto.TL_messageMediaGeoLive") + proto.RegisterType((*InputWebDocument_Data)(nil), "mtproto.InputWebDocument_Data") + proto.RegisterType((*InputWebDocument)(nil), "mtproto.InputWebDocument") + proto.RegisterType((*TLInputWebDocument)(nil), "mtproto.TL_inputWebDocument") + proto.RegisterType((*InputWebFileLocation_Data)(nil), "mtproto.InputWebFileLocation_Data") + proto.RegisterType((*InputWebFileLocation)(nil), "mtproto.InputWebFileLocation") + proto.RegisterType((*TLInputWebFileLocation)(nil), "mtproto.TL_inputWebFileLocation") + proto.RegisterType((*TLInputWebFileGeoPointLocation)(nil), "mtproto.TL_inputWebFileGeoPointLocation") + proto.RegisterType((*GeoPoint_Data)(nil), "mtproto.GeoPoint_Data") + proto.RegisterType((*GeoPoint)(nil), "mtproto.GeoPoint") + proto.RegisterType((*TLGeoPointEmpty)(nil), "mtproto.TL_geoPointEmpty") + proto.RegisterType((*TLGeoPoint)(nil), "mtproto.TL_geoPoint") + proto.RegisterType((*ContactStatus_Data)(nil), "mtproto.ContactStatus_Data") + proto.RegisterType((*ContactStatus)(nil), "mtproto.ContactStatus") + proto.RegisterType((*TLContactStatus)(nil), "mtproto.TL_contactStatus") + proto.RegisterType((*AccountDaysTTL_Data)(nil), "mtproto.AccountDaysTTL_Data") + proto.RegisterType((*AccountDaysTTL)(nil), "mtproto.AccountDaysTTL") + proto.RegisterType((*TLAccountDaysTTL)(nil), "mtproto.TL_accountDaysTTL") + proto.RegisterType((*SecureRequiredType_Data)(nil), "mtproto.SecureRequiredType_Data") + proto.RegisterType((*SecureRequiredType)(nil), "mtproto.SecureRequiredType") + proto.RegisterType((*TLSecureRequiredType)(nil), "mtproto.TL_secureRequiredType") + proto.RegisterType((*TLSecureRequiredTypeOneOf)(nil), "mtproto.TL_secureRequiredTypeOneOf") + proto.RegisterType((*Message_Data)(nil), "mtproto.Message_Data") + proto.RegisterType((*Message)(nil), "mtproto.Message") + proto.RegisterType((*TLMessageEmpty)(nil), "mtproto.TL_messageEmpty") + proto.RegisterType((*TLMessage)(nil), "mtproto.TL_message") + proto.RegisterType((*TLMessageService)(nil), "mtproto.TL_messageService") + proto.RegisterType((*Messages_PeerDialogs_Data)(nil), "mtproto.messages_PeerDialogs_Data") + proto.RegisterType((*Messages_PeerDialogs)(nil), "mtproto.messages_PeerDialogs") + proto.RegisterType((*TLMessagesPeerDialogs)(nil), "mtproto.TL_messages_peerDialogs") + proto.RegisterType((*PaymentCharge_Data)(nil), "mtproto.PaymentCharge_Data") + proto.RegisterType((*PaymentCharge)(nil), "mtproto.PaymentCharge") + proto.RegisterType((*TLPaymentCharge)(nil), "mtproto.TL_paymentCharge") + proto.RegisterType((*Chat_Data)(nil), "mtproto.Chat_Data") + proto.RegisterType((*Chat)(nil), "mtproto.Chat") + proto.RegisterType((*TLChatEmpty)(nil), "mtproto.TL_chatEmpty") + proto.RegisterType((*TLChat)(nil), "mtproto.TL_chat") + proto.RegisterType((*TLChatForbidden)(nil), "mtproto.TL_chatForbidden") + proto.RegisterType((*TLChannel)(nil), "mtproto.TL_channel") + proto.RegisterType((*TLChannelForbidden)(nil), "mtproto.TL_channelForbidden") + proto.RegisterType((*PhotoSize_Data)(nil), "mtproto.PhotoSize_Data") + proto.RegisterType((*PhotoSize)(nil), "mtproto.PhotoSize") + proto.RegisterType((*TLPhotoSizeEmpty)(nil), "mtproto.TL_photoSizeEmpty") + proto.RegisterType((*TLPhotoSize)(nil), "mtproto.TL_photoSize") + proto.RegisterType((*TLPhotoCachedSize)(nil), "mtproto.TL_photoCachedSize") + proto.RegisterType((*Account_PasswordSettings_Data)(nil), "mtproto.account_PasswordSettings_Data") + proto.RegisterType((*Account_PasswordSettings)(nil), "mtproto.account_PasswordSettings") + proto.RegisterType((*TLAccountPasswordSettings)(nil), "mtproto.TL_account_passwordSettings") + proto.RegisterType((*UserFull_Data)(nil), "mtproto.UserFull_Data") + proto.RegisterType((*UserFull)(nil), "mtproto.UserFull") + proto.RegisterType((*TLUserFull)(nil), "mtproto.TL_userFull") + proto.RegisterType((*Help_Support_Data)(nil), "mtproto.help_Support_Data") + proto.RegisterType((*Help_Support)(nil), "mtproto.help_Support") + proto.RegisterType((*TLHelpSupport)(nil), "mtproto.TL_help_support") + proto.RegisterType((*ChannelMessagesFilter_Data)(nil), "mtproto.ChannelMessagesFilter_Data") + proto.RegisterType((*ChannelMessagesFilter)(nil), "mtproto.ChannelMessagesFilter") + proto.RegisterType((*TLChannelMessagesFilterEmpty)(nil), "mtproto.TL_channelMessagesFilterEmpty") + proto.RegisterType((*TLChannelMessagesFilter)(nil), "mtproto.TL_channelMessagesFilter") + proto.RegisterType((*Invoice_Data)(nil), "mtproto.Invoice_Data") + proto.RegisterType((*Invoice)(nil), "mtproto.Invoice") + proto.RegisterType((*TLInvoice)(nil), "mtproto.TL_invoice") + proto.RegisterType((*Help_DeepLinkInfo_Data)(nil), "mtproto.help_DeepLinkInfo_Data") + proto.RegisterType((*Help_DeepLinkInfo)(nil), "mtproto.help_DeepLinkInfo") + proto.RegisterType((*TLHelpDeepLinkInfoEmpty)(nil), "mtproto.TL_help_deepLinkInfoEmpty") + proto.RegisterType((*TLHelpDeepLinkInfo)(nil), "mtproto.TL_help_deepLinkInfo") + proto.RegisterType((*UserProfilePhoto_Data)(nil), "mtproto.UserProfilePhoto_Data") + proto.RegisterType((*UserProfilePhoto)(nil), "mtproto.UserProfilePhoto") + proto.RegisterType((*TLUserProfilePhotoEmpty)(nil), "mtproto.TL_userProfilePhotoEmpty") + proto.RegisterType((*TLUserProfilePhoto)(nil), "mtproto.TL_userProfilePhoto") + proto.RegisterType((*ChatParticipants_Data)(nil), "mtproto.ChatParticipants_Data") + proto.RegisterType((*ChatParticipants)(nil), "mtproto.ChatParticipants") + proto.RegisterType((*TLChatParticipantsForbidden)(nil), "mtproto.TL_chatParticipantsForbidden") + proto.RegisterType((*TLChatParticipants)(nil), "mtproto.TL_chatParticipants") + proto.RegisterType((*InputNotifyPeer_Data)(nil), "mtproto.InputNotifyPeer_Data") + proto.RegisterType((*InputNotifyPeer)(nil), "mtproto.InputNotifyPeer") + proto.RegisterType((*TLInputNotifyPeer)(nil), "mtproto.TL_inputNotifyPeer") + proto.RegisterType((*TLInputNotifyUsers)(nil), "mtproto.TL_inputNotifyUsers") + proto.RegisterType((*TLInputNotifyChats)(nil), "mtproto.TL_inputNotifyChats") + proto.RegisterType((*DataJSON_Data)(nil), "mtproto.DataJSON_Data") + proto.RegisterType((*DataJSON)(nil), "mtproto.DataJSON") + proto.RegisterType((*TLDataJSON)(nil), "mtproto.TL_dataJSON") + proto.RegisterType((*WebAuthorization_Data)(nil), "mtproto.WebAuthorization_Data") + proto.RegisterType((*WebAuthorization)(nil), "mtproto.WebAuthorization") + proto.RegisterType((*TLWebAuthorization)(nil), "mtproto.TL_webAuthorization") + proto.RegisterType((*DcOption_Data)(nil), "mtproto.DcOption_Data") + proto.RegisterType((*DcOption)(nil), "mtproto.DcOption") + proto.RegisterType((*TLDcOption)(nil), "mtproto.TL_dcOption") + proto.RegisterType((*Help_InviteText_Data)(nil), "mtproto.help_InviteText_Data") + proto.RegisterType((*Help_InviteText)(nil), "mtproto.help_InviteText") + proto.RegisterType((*TLHelpInviteText)(nil), "mtproto.TL_help_inviteText") + proto.RegisterType((*TopPeer_Data)(nil), "mtproto.TopPeer_Data") + proto.RegisterType((*TopPeer)(nil), "mtproto.TopPeer") + proto.RegisterType((*TLTopPeer)(nil), "mtproto.TL_topPeer") + proto.RegisterType((*CdnPublicKey_Data)(nil), "mtproto.CdnPublicKey_Data") + proto.RegisterType((*CdnPublicKey)(nil), "mtproto.CdnPublicKey") + proto.RegisterType((*TLCdnPublicKey)(nil), "mtproto.TL_cdnPublicKey") + proto.RegisterType((*SecureCredentialsEncrypted_Data)(nil), "mtproto.SecureCredentialsEncrypted_Data") + proto.RegisterType((*SecureCredentialsEncrypted)(nil), "mtproto.SecureCredentialsEncrypted") + proto.RegisterType((*TLSecureCredentialsEncrypted)(nil), "mtproto.TL_secureCredentialsEncrypted") + proto.RegisterType((*PasswordKdfAlgo_Data)(nil), "mtproto.PasswordKdfAlgo_Data") + proto.RegisterType((*PasswordKdfAlgo)(nil), "mtproto.PasswordKdfAlgo") + proto.RegisterType((*TLPasswordKdfAlgoUnknown)(nil), "mtproto.TL_passwordKdfAlgoUnknown") + proto.RegisterType((*TLPasswordKdfAlgoModPow)(nil), "mtproto.TL_passwordKdfAlgoModPow") + proto.RegisterType((*Messages_Dialogs_Data)(nil), "mtproto.messages_Dialogs_Data") + proto.RegisterType((*Messages_Dialogs)(nil), "mtproto.messages_Dialogs") + proto.RegisterType((*TLMessagesDialogs)(nil), "mtproto.TL_messages_dialogs") + proto.RegisterType((*TLMessagesDialogsSlice)(nil), "mtproto.TL_messages_dialogsSlice") + proto.RegisterType((*TLMessagesDialogsNotModified)(nil), "mtproto.TL_messages_dialogsNotModified") + proto.RegisterType((*Messages_AllStickers_Data)(nil), "mtproto.messages_AllStickers_Data") + proto.RegisterType((*Messages_AllStickers)(nil), "mtproto.messages_AllStickers") + proto.RegisterType((*TLMessagesAllStickersNotModified)(nil), "mtproto.TL_messages_allStickersNotModified") + proto.RegisterType((*TLMessagesAllStickers)(nil), "mtproto.TL_messages_allStickers") + proto.RegisterType((*Account_PasswordInputSettings_Data)(nil), "mtproto.account_PasswordInputSettings_Data") + proto.RegisterType((*Account_PasswordInputSettings)(nil), "mtproto.account_PasswordInputSettings") + proto.RegisterType((*TLAccountPasswordInputSettings)(nil), "mtproto.TL_account_passwordInputSettings") + proto.RegisterType((*Upload_WebFile_Data)(nil), "mtproto.upload_WebFile_Data") + proto.RegisterType((*Upload_WebFile)(nil), "mtproto.upload_WebFile") + proto.RegisterType((*TLUploadWebFile)(nil), "mtproto.TL_upload_webFile") + proto.RegisterType((*SecurePlainData_Data)(nil), "mtproto.SecurePlainData_Data") + proto.RegisterType((*SecurePlainData)(nil), "mtproto.SecurePlainData") + proto.RegisterType((*TLSecurePlainPhone)(nil), "mtproto.TL_securePlainPhone") + proto.RegisterType((*TLSecurePlainEmail)(nil), "mtproto.TL_securePlainEmail") + proto.RegisterType((*SecureValueError_Data)(nil), "mtproto.SecureValueError_Data") + proto.RegisterType((*SecureValueError)(nil), "mtproto.SecureValueError") + proto.RegisterType((*TLSecureValueErrorData)(nil), "mtproto.TL_secureValueErrorData") + proto.RegisterType((*TLSecureValueErrorFrontSide)(nil), "mtproto.TL_secureValueErrorFrontSide") + proto.RegisterType((*TLSecureValueErrorReverseSide)(nil), "mtproto.TL_secureValueErrorReverseSide") + proto.RegisterType((*TLSecureValueErrorSelfie)(nil), "mtproto.TL_secureValueErrorSelfie") + proto.RegisterType((*TLSecureValueErrorFile)(nil), "mtproto.TL_secureValueErrorFile") + proto.RegisterType((*TLSecureValueErrorFiles)(nil), "mtproto.TL_secureValueErrorFiles") + proto.RegisterType((*TLSecureValueError)(nil), "mtproto.TL_secureValueError") + proto.RegisterType((*TLSecureValueErrorTranslationFile)(nil), "mtproto.TL_secureValueErrorTranslationFile") + proto.RegisterType((*TLSecureValueErrorTranslationFiles)(nil), "mtproto.TL_secureValueErrorTranslationFiles") + proto.RegisterType((*InputPrivacyRule_Data)(nil), "mtproto.InputPrivacyRule_Data") + proto.RegisterType((*InputPrivacyRule)(nil), "mtproto.InputPrivacyRule") + proto.RegisterType((*TLInputPrivacyValueAllowContacts)(nil), "mtproto.TL_inputPrivacyValueAllowContacts") + proto.RegisterType((*TLInputPrivacyValueAllowAll)(nil), "mtproto.TL_inputPrivacyValueAllowAll") + proto.RegisterType((*TLInputPrivacyValueAllowUsers)(nil), "mtproto.TL_inputPrivacyValueAllowUsers") + proto.RegisterType((*TLInputPrivacyValueDisallowContacts)(nil), "mtproto.TL_inputPrivacyValueDisallowContacts") + proto.RegisterType((*TLInputPrivacyValueDisallowAll)(nil), "mtproto.TL_inputPrivacyValueDisallowAll") + proto.RegisterType((*TLInputPrivacyValueDisallowUsers)(nil), "mtproto.TL_inputPrivacyValueDisallowUsers") + proto.RegisterType((*FoundGif_Data)(nil), "mtproto.FoundGif_Data") + proto.RegisterType((*FoundGif)(nil), "mtproto.FoundGif") + proto.RegisterType((*TLFoundGif)(nil), "mtproto.TL_foundGif") + proto.RegisterType((*TLFoundGifCached)(nil), "mtproto.TL_foundGifCached") + proto.RegisterType((*ExportedMessageLink_Data)(nil), "mtproto.ExportedMessageLink_Data") + proto.RegisterType((*ExportedMessageLink)(nil), "mtproto.ExportedMessageLink") + proto.RegisterType((*TLExportedMessageLink)(nil), "mtproto.TL_exportedMessageLink") + proto.RegisterType((*Contact_Data)(nil), "mtproto.Contact_Data") + proto.RegisterType((*Contact)(nil), "mtproto.Contact") + proto.RegisterType((*TLContact)(nil), "mtproto.TL_contact") + proto.RegisterType((*EncryptedFile_Data)(nil), "mtproto.EncryptedFile_Data") + proto.RegisterType((*EncryptedFile)(nil), "mtproto.EncryptedFile") + proto.RegisterType((*TLEncryptedFileEmpty)(nil), "mtproto.TL_encryptedFileEmpty") + proto.RegisterType((*TLEncryptedFile)(nil), "mtproto.TL_encryptedFile") proto.RegisterType((*Phone_PhoneCall_Data)(nil), "mtproto.phone_PhoneCall_Data") proto.RegisterType((*Phone_PhoneCall)(nil), "mtproto.phone_PhoneCall") proto.RegisterType((*TLPhonePhoneCall)(nil), "mtproto.TL_phone_phoneCall") - proto.RegisterType((*Help_TermsOfServiceUpdate_Data)(nil), "mtproto.help_TermsOfServiceUpdate_Data") - proto.RegisterType((*Help_TermsOfServiceUpdate)(nil), "mtproto.help_TermsOfServiceUpdate") - proto.RegisterType((*TLHelpTermsOfServiceUpdateEmpty)(nil), "mtproto.TL_help_termsOfServiceUpdateEmpty") - proto.RegisterType((*TLHelpTermsOfServiceUpdate)(nil), "mtproto.TL_help_termsOfServiceUpdate") - proto.RegisterType((*NearestDc_Data)(nil), "mtproto.NearestDc_Data") - proto.RegisterType((*NearestDc)(nil), "mtproto.NearestDc") - proto.RegisterType((*TLNearestDc)(nil), "mtproto.TL_nearestDc") - proto.RegisterType((*ContactLink_Data)(nil), "mtproto.ContactLink_Data") - proto.RegisterType((*ContactLink)(nil), "mtproto.ContactLink") - proto.RegisterType((*TLContactLinkUnknown)(nil), "mtproto.TL_contactLinkUnknown") - proto.RegisterType((*TLContactLinkNone)(nil), "mtproto.TL_contactLinkNone") - proto.RegisterType((*TLContactLinkHasPhone)(nil), "mtproto.TL_contactLinkHasPhone") - proto.RegisterType((*TLContactLinkContact)(nil), "mtproto.TL_contactLinkContact") - proto.RegisterType((*SecureData_Data)(nil), "mtproto.SecureData_Data") - proto.RegisterType((*SecureData)(nil), "mtproto.SecureData") - proto.RegisterType((*TLSecureData)(nil), "mtproto.TL_secureData") - proto.RegisterType((*InputChannel_Data)(nil), "mtproto.InputChannel_Data") - proto.RegisterType((*InputChannel)(nil), "mtproto.InputChannel") - proto.RegisterType((*TLInputChannelEmpty)(nil), "mtproto.TL_inputChannelEmpty") - proto.RegisterType((*TLInputChannel)(nil), "mtproto.TL_inputChannel") - proto.RegisterType((*Messages_Messages_Data)(nil), "mtproto.messages_Messages_Data") - proto.RegisterType((*Messages_Messages)(nil), "mtproto.messages_Messages") - proto.RegisterType((*TLMessagesMessages)(nil), "mtproto.TL_messages_messages") - proto.RegisterType((*TLMessagesMessagesSlice)(nil), "mtproto.TL_messages_messagesSlice") - proto.RegisterType((*TLMessagesChannelMessages)(nil), "mtproto.TL_messages_channelMessages") - proto.RegisterType((*TLMessagesMessagesNotModified)(nil), "mtproto.TL_messages_messagesNotModified") + proto.RegisterType((*Messages_SavedGifs_Data)(nil), "mtproto.messages_SavedGifs_Data") + proto.RegisterType((*Messages_SavedGifs)(nil), "mtproto.messages_SavedGifs") + proto.RegisterType((*TLMessagesSavedGifsNotModified)(nil), "mtproto.TL_messages_savedGifsNotModified") + proto.RegisterType((*TLMessagesSavedGifs)(nil), "mtproto.TL_messages_savedGifs") + proto.RegisterType((*Messages_BotResults_Data)(nil), "mtproto.messages_BotResults_Data") + proto.RegisterType((*Messages_BotResults)(nil), "mtproto.messages_BotResults") + proto.RegisterType((*TLMessagesBotResults)(nil), "mtproto.TL_messages_botResults") + proto.RegisterType((*Upload_CdnFile_Data)(nil), "mtproto.upload_CdnFile_Data") + proto.RegisterType((*Upload_CdnFile)(nil), "mtproto.upload_CdnFile") + proto.RegisterType((*TLUploadCdnFileReuploadNeeded)(nil), "mtproto.TL_upload_cdnFileReuploadNeeded") + proto.RegisterType((*TLUploadCdnFile)(nil), "mtproto.TL_upload_cdnFile") + proto.RegisterType((*LangPackString_Data)(nil), "mtproto.LangPackString_Data") + proto.RegisterType((*LangPackString)(nil), "mtproto.LangPackString") + proto.RegisterType((*TLLangPackString)(nil), "mtproto.TL_langPackString") + proto.RegisterType((*TLLangPackStringPluralized)(nil), "mtproto.TL_langPackStringPluralized") + proto.RegisterType((*TLLangPackStringDeleted)(nil), "mtproto.TL_langPackStringDeleted") + proto.RegisterType((*Updates_Data)(nil), "mtproto.Updates_Data") + proto.RegisterType((*Updates)(nil), "mtproto.Updates") + proto.RegisterType((*TLUpdateAccountResetAuthorization)(nil), "mtproto.TL_updateAccountResetAuthorization") + proto.RegisterType((*TLUpdatesTooLong)(nil), "mtproto.TL_updatesTooLong") + proto.RegisterType((*TLUpdateShortMessage)(nil), "mtproto.TL_updateShortMessage") + proto.RegisterType((*TLUpdateShortChatMessage)(nil), "mtproto.TL_updateShortChatMessage") + proto.RegisterType((*TLUpdateShort)(nil), "mtproto.TL_updateShort") + proto.RegisterType((*TLUpdatesCombined)(nil), "mtproto.TL_updatesCombined") + proto.RegisterType((*TLUpdates)(nil), "mtproto.TL_updates") + proto.RegisterType((*TLUpdateShortSentMessage)(nil), "mtproto.TL_updateShortSentMessage") + proto.RegisterType((*InputPhoto_Data)(nil), "mtproto.InputPhoto_Data") + proto.RegisterType((*InputPhoto)(nil), "mtproto.InputPhoto") + proto.RegisterType((*TLInputPhotoEmpty)(nil), "mtproto.TL_inputPhotoEmpty") + proto.RegisterType((*TLInputPhoto)(nil), "mtproto.TL_inputPhoto") + proto.RegisterType((*TLInputPhotoLayer86)(nil), "mtproto.TL_inputPhotoLayer86") + proto.RegisterType((*ExportedChatInvite_Data)(nil), "mtproto.ExportedChatInvite_Data") + proto.RegisterType((*ExportedChatInvite)(nil), "mtproto.ExportedChatInvite") + proto.RegisterType((*TLChatInviteEmpty)(nil), "mtproto.TL_chatInviteEmpty") + proto.RegisterType((*TLChatInviteExported)(nil), "mtproto.TL_chatInviteExported") + proto.RegisterType((*Account_Takeout_Data)(nil), "mtproto.account_Takeout_Data") + proto.RegisterType((*Account_Takeout)(nil), "mtproto.account_Takeout") + proto.RegisterType((*TLAccountTakeout)(nil), "mtproto.TL_account_takeout") + proto.RegisterType((*InputFile_Data)(nil), "mtproto.InputFile_Data") + proto.RegisterType((*InputFile)(nil), "mtproto.InputFile") + proto.RegisterType((*TLInputFile)(nil), "mtproto.TL_inputFile") + proto.RegisterType((*TLInputFileBig)(nil), "mtproto.TL_inputFileBig") + proto.RegisterType((*Messages_AffectedHistory_Data)(nil), "mtproto.messages_AffectedHistory_Data") + proto.RegisterType((*Messages_AffectedHistory)(nil), "mtproto.messages_AffectedHistory") + proto.RegisterType((*TLMessagesAffectedHistory)(nil), "mtproto.TL_messages_affectedHistory") + proto.RegisterType((*LangPackLanguage_Data)(nil), "mtproto.LangPackLanguage_Data") + proto.RegisterType((*LangPackLanguage)(nil), "mtproto.LangPackLanguage") + proto.RegisterType((*TLLangPackLanguage)(nil), "mtproto.TL_langPackLanguage") + proto.RegisterType((*Dialog_Data)(nil), "mtproto.Dialog_Data") + proto.RegisterType((*Dialog)(nil), "mtproto.Dialog") + proto.RegisterType((*TLDialog)(nil), "mtproto.TL_dialog") proto.RegisterType((*Update_Data)(nil), "mtproto.Update_Data") proto.RegisterType((*Update)(nil), "mtproto.Update") proto.RegisterType((*TLUpdateNewMessage)(nil), "mtproto.TL_updateNewMessage") @@ -56134,38 +56577,16 @@ func init() { proto.RegisterType((*TLUpdateContactsReset)(nil), "mtproto.TL_updateContactsReset") proto.RegisterType((*TLUpdateChannelAvailableMessages)(nil), "mtproto.TL_updateChannelAvailableMessages") proto.RegisterType((*TLUpdateDialogUnreadMark)(nil), "mtproto.TL_updateDialogUnreadMark") - proto.RegisterType((*InputPeer_Data)(nil), "mtproto.InputPeer_Data") - proto.RegisterType((*InputPeer)(nil), "mtproto.InputPeer") - proto.RegisterType((*TLInputPeerEmpty)(nil), "mtproto.TL_inputPeerEmpty") - proto.RegisterType((*TLInputPeerSelf)(nil), "mtproto.TL_inputPeerSelf") - proto.RegisterType((*TLInputPeerChat)(nil), "mtproto.TL_inputPeerChat") - proto.RegisterType((*TLInputPeerUser)(nil), "mtproto.TL_inputPeerUser") - proto.RegisterType((*TLInputPeerChannel)(nil), "mtproto.TL_inputPeerChannel") - proto.RegisterType((*Contact_Data)(nil), "mtproto.Contact_Data") - proto.RegisterType((*Contact)(nil), "mtproto.Contact") - proto.RegisterType((*TLContact)(nil), "mtproto.TL_contact") - proto.RegisterType((*Photos_Photo_Data)(nil), "mtproto.photos_Photo_Data") - proto.RegisterType((*Photos_Photo)(nil), "mtproto.photos_Photo") - proto.RegisterType((*TLPhotosPhoto)(nil), "mtproto.TL_photos_photo") - proto.RegisterType((*LangPackString_Data)(nil), "mtproto.LangPackString_Data") - proto.RegisterType((*LangPackString)(nil), "mtproto.LangPackString") - proto.RegisterType((*TLLangPackString)(nil), "mtproto.TL_langPackString") - proto.RegisterType((*TLLangPackStringPluralized)(nil), "mtproto.TL_langPackStringPluralized") - proto.RegisterType((*TLLangPackStringDeleted)(nil), "mtproto.TL_langPackStringDeleted") - proto.RegisterType((*ChannelAdminLogEvent_Data)(nil), "mtproto.ChannelAdminLogEvent_Data") - proto.RegisterType((*ChannelAdminLogEvent)(nil), "mtproto.ChannelAdminLogEvent") - proto.RegisterType((*TLChannelAdminLogEvent)(nil), "mtproto.TL_channelAdminLogEvent") - proto.RegisterType((*Chat_Data)(nil), "mtproto.Chat_Data") - proto.RegisterType((*Chat)(nil), "mtproto.Chat") - proto.RegisterType((*TLChatEmpty)(nil), "mtproto.TL_chatEmpty") - proto.RegisterType((*TLChat)(nil), "mtproto.TL_chat") - proto.RegisterType((*TLChatForbidden)(nil), "mtproto.TL_chatForbidden") - proto.RegisterType((*TLChannel)(nil), "mtproto.TL_channel") - proto.RegisterType((*TLChannelForbidden)(nil), "mtproto.TL_channelForbidden") - proto.RegisterType((*GeoPoint_Data)(nil), "mtproto.GeoPoint_Data") - proto.RegisterType((*GeoPoint)(nil), "mtproto.GeoPoint") - proto.RegisterType((*TLGeoPointEmpty)(nil), "mtproto.TL_geoPointEmpty") - proto.RegisterType((*TLGeoPoint)(nil), "mtproto.TL_geoPoint") + proto.RegisterType((*Payments_PaymentResult_Data)(nil), "mtproto.payments_PaymentResult_Data") + proto.RegisterType((*Payments_PaymentResult)(nil), "mtproto.payments_PaymentResult") + proto.RegisterType((*TLPaymentsPaymentResult)(nil), "mtproto.TL_payments_paymentResult") + proto.RegisterType((*TLPaymentsPaymentVerficationNeeded)(nil), "mtproto.TL_payments_paymentVerficationNeeded") + proto.RegisterType((*ContactBlocked_Data)(nil), "mtproto.ContactBlocked_Data") + proto.RegisterType((*ContactBlocked)(nil), "mtproto.ContactBlocked") + proto.RegisterType((*TLContactBlocked)(nil), "mtproto.TL_contactBlocked") + proto.RegisterType((*SecureData_Data)(nil), "mtproto.SecureData_Data") + proto.RegisterType((*SecureData)(nil), "mtproto.SecureData") + proto.RegisterType((*TLSecureData)(nil), "mtproto.TL_secureData") proto.RegisterType((*ReportReason_Data)(nil), "mtproto.ReportReason_Data") proto.RegisterType((*ReportReason)(nil), "mtproto.ReportReason") proto.RegisterType((*TLInputReportReasonSpam)(nil), "mtproto.TL_inputReportReasonSpam") @@ -56173,172 +56594,84 @@ func init() { proto.RegisterType((*TLInputReportReasonPornography)(nil), "mtproto.TL_inputReportReasonPornography") proto.RegisterType((*TLInputReportReasonOther)(nil), "mtproto.TL_inputReportReasonOther") proto.RegisterType((*TLInputReportReasonCopyright)(nil), "mtproto.TL_inputReportReasonCopyright") - proto.RegisterType((*Messages_Chats_Data)(nil), "mtproto.messages_Chats_Data") - proto.RegisterType((*Messages_Chats)(nil), "mtproto.messages_Chats") - proto.RegisterType((*TLMessagesChats)(nil), "mtproto.TL_messages_chats") - proto.RegisterType((*TLMessagesChatsSlice)(nil), "mtproto.TL_messages_chatsSlice") - proto.RegisterType((*BotInlineResult_Data)(nil), "mtproto.BotInlineResult_Data") - proto.RegisterType((*BotInlineResult)(nil), "mtproto.BotInlineResult") - proto.RegisterType((*TLBotInlineResult)(nil), "mtproto.TL_botInlineResult") - proto.RegisterType((*TLBotInlineMediaResult)(nil), "mtproto.TL_botInlineMediaResult") - proto.RegisterType((*DraftMessage_Data)(nil), "mtproto.DraftMessage_Data") - proto.RegisterType((*DraftMessage)(nil), "mtproto.DraftMessage") - proto.RegisterType((*TLDraftMessageEmpty)(nil), "mtproto.TL_draftMessageEmpty") - proto.RegisterType((*TLDraftMessage)(nil), "mtproto.TL_draftMessage") + proto.RegisterType((*TopPeerCategory_Data)(nil), "mtproto.TopPeerCategory_Data") + proto.RegisterType((*TopPeerCategory)(nil), "mtproto.TopPeerCategory") + proto.RegisterType((*TLTopPeerCategoryBotsPM)(nil), "mtproto.TL_topPeerCategoryBotsPM") + proto.RegisterType((*TLTopPeerCategoryBotsInline)(nil), "mtproto.TL_topPeerCategoryBotsInline") + proto.RegisterType((*TLTopPeerCategoryCorrespondents)(nil), "mtproto.TL_topPeerCategoryCorrespondents") + proto.RegisterType((*TLTopPeerCategoryGroups)(nil), "mtproto.TL_topPeerCategoryGroups") + proto.RegisterType((*TLTopPeerCategoryChannels)(nil), "mtproto.TL_topPeerCategoryChannels") + proto.RegisterType((*TLTopPeerCategoryPhoneCalls)(nil), "mtproto.TL_topPeerCategoryPhoneCalls") proto.RegisterType((*Messages_RecentStickers_Data)(nil), "mtproto.messages_RecentStickers_Data") proto.RegisterType((*Messages_RecentStickers)(nil), "mtproto.messages_RecentStickers") proto.RegisterType((*TLMessagesRecentStickersNotModified)(nil), "mtproto.TL_messages_recentStickersNotModified") proto.RegisterType((*TLMessagesRecentStickers)(nil), "mtproto.TL_messages_recentStickers") - proto.RegisterType((*Payments_PaymentResult_Data)(nil), "mtproto.payments_PaymentResult_Data") - proto.RegisterType((*Payments_PaymentResult)(nil), "mtproto.payments_PaymentResult") - proto.RegisterType((*TLPaymentsPaymentResult)(nil), "mtproto.TL_payments_paymentResult") - proto.RegisterType((*TLPaymentsPaymentVerficationNeeded)(nil), "mtproto.TL_payments_paymentVerficationNeeded") - proto.RegisterType((*InputMedia_Data)(nil), "mtproto.InputMedia_Data") - proto.RegisterType((*InputMedia)(nil), "mtproto.InputMedia") - proto.RegisterType((*TLInputMediaPhotoLayer46)(nil), "mtproto.TL_inputMediaPhotoLayer46") - proto.RegisterType((*TLInputMediaEmpty)(nil), "mtproto.TL_inputMediaEmpty") - proto.RegisterType((*TLInputMediaUploadedPhoto)(nil), "mtproto.TL_inputMediaUploadedPhoto") - proto.RegisterType((*TLInputMediaPhoto)(nil), "mtproto.TL_inputMediaPhoto") - proto.RegisterType((*TLInputMediaGeoPoint)(nil), "mtproto.TL_inputMediaGeoPoint") - proto.RegisterType((*TLInputMediaContact)(nil), "mtproto.TL_inputMediaContact") - proto.RegisterType((*TLInputMediaUploadedDocument)(nil), "mtproto.TL_inputMediaUploadedDocument") - proto.RegisterType((*TLInputMediaDocument)(nil), "mtproto.TL_inputMediaDocument") - proto.RegisterType((*TLInputMediaVenue)(nil), "mtproto.TL_inputMediaVenue") - proto.RegisterType((*TLInputMediaGifExternal)(nil), "mtproto.TL_inputMediaGifExternal") - proto.RegisterType((*TLInputMediaPhotoExternal)(nil), "mtproto.TL_inputMediaPhotoExternal") - proto.RegisterType((*TLInputMediaDocumentExternal)(nil), "mtproto.TL_inputMediaDocumentExternal") - proto.RegisterType((*TLInputMediaGame)(nil), "mtproto.TL_inputMediaGame") - proto.RegisterType((*TLInputMediaInvoice)(nil), "mtproto.TL_inputMediaInvoice") - proto.RegisterType((*TLInputMediaGeoLive)(nil), "mtproto.TL_inputMediaGeoLive") - proto.RegisterType((*Help_InviteText_Data)(nil), "mtproto.help_InviteText_Data") - proto.RegisterType((*Help_InviteText)(nil), "mtproto.help_InviteText") - proto.RegisterType((*TLHelpInviteText)(nil), "mtproto.TL_help_inviteText") - proto.RegisterType((*InputPrivacyRule_Data)(nil), "mtproto.InputPrivacyRule_Data") - proto.RegisterType((*InputPrivacyRule)(nil), "mtproto.InputPrivacyRule") - proto.RegisterType((*TLInputPrivacyValueAllowContacts)(nil), "mtproto.TL_inputPrivacyValueAllowContacts") - proto.RegisterType((*TLInputPrivacyValueAllowAll)(nil), "mtproto.TL_inputPrivacyValueAllowAll") - proto.RegisterType((*TLInputPrivacyValueAllowUsers)(nil), "mtproto.TL_inputPrivacyValueAllowUsers") - proto.RegisterType((*TLInputPrivacyValueDisallowContacts)(nil), "mtproto.TL_inputPrivacyValueDisallowContacts") - proto.RegisterType((*TLInputPrivacyValueDisallowAll)(nil), "mtproto.TL_inputPrivacyValueDisallowAll") - proto.RegisterType((*TLInputPrivacyValueDisallowUsers)(nil), "mtproto.TL_inputPrivacyValueDisallowUsers") - proto.RegisterType((*Account_Authorizations_Data)(nil), "mtproto.account_Authorizations_Data") - proto.RegisterType((*Account_Authorizations)(nil), "mtproto.account_Authorizations") - proto.RegisterType((*TLAccountAuthorizations)(nil), "mtproto.TL_account_authorizations") - proto.RegisterType((*ReceivedNotifyMessage_Data)(nil), "mtproto.ReceivedNotifyMessage_Data") - proto.RegisterType((*ReceivedNotifyMessage)(nil), "mtproto.ReceivedNotifyMessage") - proto.RegisterType((*TLReceivedNotifyMessage)(nil), "mtproto.TL_receivedNotifyMessage") - proto.RegisterType((*LangPackLanguage_Data)(nil), "mtproto.LangPackLanguage_Data") - proto.RegisterType((*LangPackLanguage)(nil), "mtproto.LangPackLanguage") - proto.RegisterType((*TLLangPackLanguage)(nil), "mtproto.TL_langPackLanguage") - proto.RegisterType((*Channels_AdminLogResults_Data)(nil), "mtproto.channels_AdminLogResults_Data") - proto.RegisterType((*Channels_AdminLogResults)(nil), "mtproto.channels_AdminLogResults") - proto.RegisterType((*TLChannelsAdminLogResults)(nil), "mtproto.TL_channels_adminLogResults") - proto.RegisterType((*ChatPhoto_Data)(nil), "mtproto.ChatPhoto_Data") - proto.RegisterType((*ChatPhoto)(nil), "mtproto.ChatPhoto") - proto.RegisterType((*TLChatPhotoEmpty)(nil), "mtproto.TL_chatPhotoEmpty") - proto.RegisterType((*TLChatPhoto)(nil), "mtproto.TL_chatPhoto") - proto.RegisterType((*Message_Data)(nil), "mtproto.Message_Data") - proto.RegisterType((*Message)(nil), "mtproto.Message") - proto.RegisterType((*TLMessageEmpty)(nil), "mtproto.TL_messageEmpty") - proto.RegisterType((*TLMessage)(nil), "mtproto.TL_message") - proto.RegisterType((*TLMessageService)(nil), "mtproto.TL_messageService") - proto.RegisterType((*Help_PassportConfig_Data)(nil), "mtproto.help_PassportConfig_Data") - proto.RegisterType((*Help_PassportConfig)(nil), "mtproto.help_PassportConfig") - proto.RegisterType((*TLHelpPassportConfigNotModified)(nil), "mtproto.TL_help_passportConfigNotModified") - proto.RegisterType((*TLHelpPassportConfig)(nil), "mtproto.TL_help_passportConfig") - proto.RegisterType((*UserStatus_Data)(nil), "mtproto.UserStatus_Data") - proto.RegisterType((*UserStatus)(nil), "mtproto.UserStatus") - proto.RegisterType((*TLUserStatusEmpty)(nil), "mtproto.TL_userStatusEmpty") - proto.RegisterType((*TLUserStatusOnline)(nil), "mtproto.TL_userStatusOnline") - proto.RegisterType((*TLUserStatusOffline)(nil), "mtproto.TL_userStatusOffline") - proto.RegisterType((*TLUserStatusRecently)(nil), "mtproto.TL_userStatusRecently") - proto.RegisterType((*TLUserStatusLastWeek)(nil), "mtproto.TL_userStatusLastWeek") - proto.RegisterType((*TLUserStatusLastMonth)(nil), "mtproto.TL_userStatusLastMonth") - proto.RegisterType((*Messages_PeerDialogs_Data)(nil), "mtproto.messages_PeerDialogs_Data") - proto.RegisterType((*Messages_PeerDialogs)(nil), "mtproto.messages_PeerDialogs") - proto.RegisterType((*TLMessagesPeerDialogs)(nil), "mtproto.TL_messages_peerDialogs") - proto.RegisterType((*MessageFwdHeader_Data)(nil), "mtproto.MessageFwdHeader_Data") - proto.RegisterType((*MessageFwdHeader)(nil), "mtproto.MessageFwdHeader") - proto.RegisterType((*TLMessageFwdHeader)(nil), "mtproto.TL_messageFwdHeader") - proto.RegisterType((*Account_WebAuthorizations_Data)(nil), "mtproto.account_WebAuthorizations_Data") - proto.RegisterType((*Account_WebAuthorizations)(nil), "mtproto.account_WebAuthorizations") - proto.RegisterType((*TLAccountWebAuthorizations)(nil), "mtproto.TL_account_webAuthorizations") - proto.RegisterType((*InputStickerSetItem_Data)(nil), "mtproto.InputStickerSetItem_Data") - proto.RegisterType((*InputStickerSetItem)(nil), "mtproto.InputStickerSetItem") - proto.RegisterType((*TLInputStickerSetItem)(nil), "mtproto.TL_inputStickerSetItem") - proto.RegisterType((*ImportedContact_Data)(nil), "mtproto.ImportedContact_Data") - proto.RegisterType((*ImportedContact)(nil), "mtproto.ImportedContact") - proto.RegisterType((*TLImportedContact)(nil), "mtproto.TL_importedContact") - proto.RegisterType((*Updates_State_Data)(nil), "mtproto.updates_State_Data") - proto.RegisterType((*Updates_State)(nil), "mtproto.updates_State") - proto.RegisterType((*TLUpdatesState)(nil), "mtproto.TL_updates_state") - proto.RegisterType((*AccountDaysTTL_Data)(nil), "mtproto.AccountDaysTTL_Data") - proto.RegisterType((*AccountDaysTTL)(nil), "mtproto.AccountDaysTTL") - proto.RegisterType((*TLAccountDaysTTL)(nil), "mtproto.TL_accountDaysTTL") - proto.RegisterType((*Contacts_Link_Data)(nil), "mtproto.contacts_Link_Data") - proto.RegisterType((*Contacts_Link)(nil), "mtproto.contacts_Link") - proto.RegisterType((*TLContactsLink)(nil), "mtproto.TL_contacts_link") - proto.RegisterType((*EncryptedFile_Data)(nil), "mtproto.EncryptedFile_Data") - proto.RegisterType((*EncryptedFile)(nil), "mtproto.EncryptedFile") - proto.RegisterType((*TLEncryptedFileEmpty)(nil), "mtproto.TL_encryptedFileEmpty") - proto.RegisterType((*TLEncryptedFile)(nil), "mtproto.TL_encryptedFile") - proto.RegisterType((*Messages_FeaturedStickers_Data)(nil), "mtproto.messages_FeaturedStickers_Data") - proto.RegisterType((*Messages_FeaturedStickers)(nil), "mtproto.messages_FeaturedStickers") - proto.RegisterType((*TLMessagesFeaturedStickersNotModified)(nil), "mtproto.TL_messages_featuredStickersNotModified") - proto.RegisterType((*TLMessagesFeaturedStickers)(nil), "mtproto.TL_messages_featuredStickers") - proto.RegisterType((*Channels_ChannelParticipants_Data)(nil), "mtproto.channels_ChannelParticipants_Data") - proto.RegisterType((*Channels_ChannelParticipants)(nil), "mtproto.channels_ChannelParticipants") - proto.RegisterType((*TLChannelsChannelParticipants)(nil), "mtproto.TL_channels_channelParticipants") - proto.RegisterType((*TLChannelsChannelParticipantsNotModified)(nil), "mtproto.TL_channels_channelParticipantsNotModified") - proto.RegisterType((*Messages_FoundGifs_Data)(nil), "mtproto.messages_FoundGifs_Data") - proto.RegisterType((*Messages_FoundGifs)(nil), "mtproto.messages_FoundGifs") - proto.RegisterType((*TLMessagesFoundGifs)(nil), "mtproto.TL_messages_foundGifs") - proto.RegisterType((*InputBotInlineMessageID_Data)(nil), "mtproto.InputBotInlineMessageID_Data") - proto.RegisterType((*InputBotInlineMessageID)(nil), "mtproto.InputBotInlineMessageID") - proto.RegisterType((*TLInputBotInlineMessageID)(nil), "mtproto.TL_inputBotInlineMessageID") - proto.RegisterType((*Account_TmpPassword_Data)(nil), "mtproto.account_TmpPassword_Data") - proto.RegisterType((*Account_TmpPassword)(nil), "mtproto.account_TmpPassword") - proto.RegisterType((*TLAccountTmpPassword)(nil), "mtproto.TL_account_tmpPassword") - proto.RegisterType((*MessageAction_Data)(nil), "mtproto.MessageAction_Data") - proto.RegisterType((*MessageAction)(nil), "mtproto.MessageAction") - proto.RegisterType((*TLMessageActionEmpty)(nil), "mtproto.TL_messageActionEmpty") - proto.RegisterType((*TLMessageActionChatCreate)(nil), "mtproto.TL_messageActionChatCreate") - proto.RegisterType((*TLMessageActionChatEditTitle)(nil), "mtproto.TL_messageActionChatEditTitle") - proto.RegisterType((*TLMessageActionChatEditPhoto)(nil), "mtproto.TL_messageActionChatEditPhoto") - proto.RegisterType((*TLMessageActionChatDeletePhoto)(nil), "mtproto.TL_messageActionChatDeletePhoto") - proto.RegisterType((*TLMessageActionChatAddUser)(nil), "mtproto.TL_messageActionChatAddUser") - proto.RegisterType((*TLMessageActionChatDeleteUser)(nil), "mtproto.TL_messageActionChatDeleteUser") - proto.RegisterType((*TLMessageActionChatJoinedByLink)(nil), "mtproto.TL_messageActionChatJoinedByLink") - proto.RegisterType((*TLMessageActionChannelCreate)(nil), "mtproto.TL_messageActionChannelCreate") - proto.RegisterType((*TLMessageActionChatMigrateTo)(nil), "mtproto.TL_messageActionChatMigrateTo") - proto.RegisterType((*TLMessageActionChannelMigrateFrom)(nil), "mtproto.TL_messageActionChannelMigrateFrom") - proto.RegisterType((*TLMessageActionPinMessage)(nil), "mtproto.TL_messageActionPinMessage") - proto.RegisterType((*TLMessageActionHistoryClear)(nil), "mtproto.TL_messageActionHistoryClear") - proto.RegisterType((*TLMessageActionGameScore)(nil), "mtproto.TL_messageActionGameScore") - proto.RegisterType((*TLMessageActionPaymentSentMe)(nil), "mtproto.TL_messageActionPaymentSentMe") - proto.RegisterType((*TLMessageActionPaymentSent)(nil), "mtproto.TL_messageActionPaymentSent") - proto.RegisterType((*TLMessageActionPhoneCall)(nil), "mtproto.TL_messageActionPhoneCall") - proto.RegisterType((*TLMessageActionScreenshotTaken)(nil), "mtproto.TL_messageActionScreenshotTaken") - proto.RegisterType((*TLMessageActionCustomAction)(nil), "mtproto.TL_messageActionCustomAction") - proto.RegisterType((*TLMessageActionBotAllowed)(nil), "mtproto.TL_messageActionBotAllowed") - proto.RegisterType((*TLMessageActionSecureValuesSentMe)(nil), "mtproto.TL_messageActionSecureValuesSentMe") - proto.RegisterType((*TLMessageActionSecureValuesSent)(nil), "mtproto.TL_messageActionSecureValuesSent") - proto.RegisterType((*Updates_Difference_Data)(nil), "mtproto.updates_Difference_Data") - proto.RegisterType((*Updates_Difference)(nil), "mtproto.updates_Difference") - proto.RegisterType((*TLUpdatesDifferenceEmpty)(nil), "mtproto.TL_updates_differenceEmpty") - proto.RegisterType((*TLUpdatesDifference)(nil), "mtproto.TL_updates_difference") - proto.RegisterType((*TLUpdatesDifferenceSlice)(nil), "mtproto.TL_updates_differenceSlice") - proto.RegisterType((*TLUpdatesDifferenceTooLong)(nil), "mtproto.TL_updates_differenceTooLong") - proto.RegisterType((*MessageRange_Data)(nil), "mtproto.MessageRange_Data") - proto.RegisterType((*MessageRange)(nil), "mtproto.MessageRange") - proto.RegisterType((*TLMessageRange)(nil), "mtproto.TL_messageRange") - proto.RegisterType((*InputWebFileLocation_Data)(nil), "mtproto.InputWebFileLocation_Data") - proto.RegisterType((*InputWebFileLocation)(nil), "mtproto.InputWebFileLocation") - proto.RegisterType((*TLInputWebFileLocation)(nil), "mtproto.TL_inputWebFileLocation") - proto.RegisterType((*TLInputWebFileGeoPointLocation)(nil), "mtproto.TL_inputWebFileGeoPointLocation") - proto.RegisterType((*Payments_PaymentForm_Data)(nil), "mtproto.payments_PaymentForm_Data") - proto.RegisterType((*Payments_PaymentForm)(nil), "mtproto.payments_PaymentForm") - proto.RegisterType((*TLPaymentsPaymentForm)(nil), "mtproto.TL_payments_paymentForm") + proto.RegisterType((*Auth_CodeType_Data)(nil), "mtproto.auth_CodeType_Data") + proto.RegisterType((*Auth_CodeType)(nil), "mtproto.auth_CodeType") + proto.RegisterType((*TLAuthCodeTypeSms)(nil), "mtproto.TL_auth_codeTypeSms") + proto.RegisterType((*TLAuthCodeTypeCall)(nil), "mtproto.TL_auth_codeTypeCall") + proto.RegisterType((*TLAuthCodeTypeFlashCall)(nil), "mtproto.TL_auth_codeTypeFlashCall") + proto.RegisterType((*Scheme_Data)(nil), "mtproto.Scheme_Data") + proto.RegisterType((*Scheme)(nil), "mtproto.Scheme") + proto.RegisterType((*TLSchemeNotModified)(nil), "mtproto.TL_schemeNotModified") + proto.RegisterType((*TLScheme)(nil), "mtproto.TL_scheme") + proto.RegisterType((*ChatInvite_Data)(nil), "mtproto.ChatInvite_Data") + proto.RegisterType((*ChatInvite)(nil), "mtproto.ChatInvite") + proto.RegisterType((*TLChatInviteAlready)(nil), "mtproto.TL_chatInviteAlready") + proto.RegisterType((*TLChatInvite)(nil), "mtproto.TL_chatInvite") + proto.RegisterType((*BotCommand_Data)(nil), "mtproto.BotCommand_Data") + proto.RegisterType((*BotCommand)(nil), "mtproto.BotCommand") + proto.RegisterType((*TLBotCommand)(nil), "mtproto.TL_botCommand") + proto.RegisterType((*SecureSecretSettings_Data)(nil), "mtproto.SecureSecretSettings_Data") + proto.RegisterType((*SecureSecretSettings)(nil), "mtproto.SecureSecretSettings") + proto.RegisterType((*TLSecureSecretSettings)(nil), "mtproto.TL_secureSecretSettings") + proto.RegisterType((*Contacts_ImportedContacts_Data)(nil), "mtproto.contacts_ImportedContacts_Data") + proto.RegisterType((*Contacts_ImportedContacts)(nil), "mtproto.contacts_ImportedContacts") + proto.RegisterType((*TLContactsImportedContacts)(nil), "mtproto.TL_contacts_importedContacts") + proto.RegisterType((*MessagesFilter_Data)(nil), "mtproto.MessagesFilter_Data") + proto.RegisterType((*MessagesFilter)(nil), "mtproto.MessagesFilter") + proto.RegisterType((*TLInputMessagesFilterEmpty)(nil), "mtproto.TL_inputMessagesFilterEmpty") + proto.RegisterType((*TLInputMessagesFilterPhotos)(nil), "mtproto.TL_inputMessagesFilterPhotos") + proto.RegisterType((*TLInputMessagesFilterVideo)(nil), "mtproto.TL_inputMessagesFilterVideo") + proto.RegisterType((*TLInputMessagesFilterPhotoVideo)(nil), "mtproto.TL_inputMessagesFilterPhotoVideo") + proto.RegisterType((*TLInputMessagesFilterDocument)(nil), "mtproto.TL_inputMessagesFilterDocument") + proto.RegisterType((*TLInputMessagesFilterUrl)(nil), "mtproto.TL_inputMessagesFilterUrl") + proto.RegisterType((*TLInputMessagesFilterGif)(nil), "mtproto.TL_inputMessagesFilterGif") + proto.RegisterType((*TLInputMessagesFilterVoice)(nil), "mtproto.TL_inputMessagesFilterVoice") + proto.RegisterType((*TLInputMessagesFilterMusic)(nil), "mtproto.TL_inputMessagesFilterMusic") + proto.RegisterType((*TLInputMessagesFilterChatPhotos)(nil), "mtproto.TL_inputMessagesFilterChatPhotos") + proto.RegisterType((*TLInputMessagesFilterPhoneCalls)(nil), "mtproto.TL_inputMessagesFilterPhoneCalls") + proto.RegisterType((*TLInputMessagesFilterRoundVoice)(nil), "mtproto.TL_inputMessagesFilterRoundVoice") + proto.RegisterType((*TLInputMessagesFilterRoundVideo)(nil), "mtproto.TL_inputMessagesFilterRoundVideo") + proto.RegisterType((*TLInputMessagesFilterMyMentions)(nil), "mtproto.TL_inputMessagesFilterMyMentions") + proto.RegisterType((*TLInputMessagesFilterGeo)(nil), "mtproto.TL_inputMessagesFilterGeo") + proto.RegisterType((*TLInputMessagesFilterContacts)(nil), "mtproto.TL_inputMessagesFilterContacts") + proto.RegisterType((*InputStickerSet_Data)(nil), "mtproto.InputStickerSet_Data") + proto.RegisterType((*InputStickerSet)(nil), "mtproto.InputStickerSet") + proto.RegisterType((*TLInputStickerSetEmpty)(nil), "mtproto.TL_inputStickerSetEmpty") + proto.RegisterType((*TLInputStickerSetID)(nil), "mtproto.TL_inputStickerSetID") + proto.RegisterType((*TLInputStickerSetShortName)(nil), "mtproto.TL_inputStickerSetShortName") + proto.RegisterType((*ReplyMarkup_Data)(nil), "mtproto.ReplyMarkup_Data") + proto.RegisterType((*ReplyMarkup)(nil), "mtproto.ReplyMarkup") + proto.RegisterType((*TLReplyKeyboardHide)(nil), "mtproto.TL_replyKeyboardHide") + proto.RegisterType((*TLReplyKeyboardForceReply)(nil), "mtproto.TL_replyKeyboardForceReply") + proto.RegisterType((*TLReplyKeyboardMarkup)(nil), "mtproto.TL_replyKeyboardMarkup") + proto.RegisterType((*TLReplyInlineMarkup)(nil), "mtproto.TL_replyInlineMarkup") + proto.RegisterType((*ChannelParticipantsFilter_Data)(nil), "mtproto.ChannelParticipantsFilter_Data") + proto.RegisterType((*ChannelParticipantsFilter)(nil), "mtproto.ChannelParticipantsFilter") + proto.RegisterType((*TLChannelParticipantsRecent)(nil), "mtproto.TL_channelParticipantsRecent") + proto.RegisterType((*TLChannelParticipantsAdmins)(nil), "mtproto.TL_channelParticipantsAdmins") + proto.RegisterType((*TLChannelParticipantsKicked)(nil), "mtproto.TL_channelParticipantsKicked") + proto.RegisterType((*TLChannelParticipantsBots)(nil), "mtproto.TL_channelParticipantsBots") + proto.RegisterType((*TLChannelParticipantsBanned)(nil), "mtproto.TL_channelParticipantsBanned") + proto.RegisterType((*TLChannelParticipantsSearch)(nil), "mtproto.TL_channelParticipantsSearch") + proto.RegisterType((*InputStickeredMedia_Data)(nil), "mtproto.InputStickeredMedia_Data") + proto.RegisterType((*InputStickeredMedia)(nil), "mtproto.InputStickeredMedia") + proto.RegisterType((*TLInputStickeredMediaPhoto)(nil), "mtproto.TL_inputStickeredMediaPhoto") + proto.RegisterType((*TLInputStickeredMediaDocument)(nil), "mtproto.TL_inputStickeredMediaDocument") + proto.RegisterType((*InputClientProxy_Data)(nil), "mtproto.InputClientProxy_Data") + proto.RegisterType((*InputClientProxy)(nil), "mtproto.InputClientProxy") + proto.RegisterType((*TLInputClientProxy)(nil), "mtproto.TL_inputClientProxy") proto.RegisterType((*SecureValueType_Data)(nil), "mtproto.SecureValueType_Data") proto.RegisterType((*SecureValueType)(nil), "mtproto.SecureValueType") proto.RegisterType((*TLSecureValueTypePersonalDetails)(nil), "mtproto.TL_secureValueTypePersonalDetails") @@ -56354,181 +56687,110 @@ func init() { proto.RegisterType((*TLSecureValueTypeTemporaryRegistration)(nil), "mtproto.TL_secureValueTypeTemporaryRegistration") proto.RegisterType((*TLSecureValueTypePhone)(nil), "mtproto.TL_secureValueTypePhone") proto.RegisterType((*TLSecureValueTypeEmail)(nil), "mtproto.TL_secureValueTypeEmail") - proto.RegisterType((*InputPeerNotifySettings_Data)(nil), "mtproto.InputPeerNotifySettings_Data") - proto.RegisterType((*InputPeerNotifySettings)(nil), "mtproto.InputPeerNotifySettings") - proto.RegisterType((*TLInputPeerNotifySettings)(nil), "mtproto.TL_inputPeerNotifySettings") - proto.RegisterType((*Upload_WebFile_Data)(nil), "mtproto.upload_WebFile_Data") - proto.RegisterType((*Upload_WebFile)(nil), "mtproto.upload_WebFile") - proto.RegisterType((*TLUploadWebFile)(nil), "mtproto.TL_upload_webFile") - proto.RegisterType((*InputFile_Data)(nil), "mtproto.InputFile_Data") - proto.RegisterType((*InputFile)(nil), "mtproto.InputFile") - proto.RegisterType((*TLInputFile)(nil), "mtproto.TL_inputFile") - proto.RegisterType((*TLInputFileBig)(nil), "mtproto.TL_inputFileBig") - proto.RegisterType((*PeerNotifySettings_Data)(nil), "mtproto.PeerNotifySettings_Data") - proto.RegisterType((*PeerNotifySettings)(nil), "mtproto.PeerNotifySettings") - proto.RegisterType((*TLPeerNotifySettings)(nil), "mtproto.TL_peerNotifySettings") - proto.RegisterType((*WallPaper_Data)(nil), "mtproto.WallPaper_Data") - proto.RegisterType((*WallPaper)(nil), "mtproto.WallPaper") - proto.RegisterType((*TLWallPaper)(nil), "mtproto.TL_wallPaper") - proto.RegisterType((*TLWallPaperSolid)(nil), "mtproto.TL_wallPaperSolid") - proto.RegisterType((*DcOption_Data)(nil), "mtproto.DcOption_Data") - proto.RegisterType((*DcOption)(nil), "mtproto.DcOption") - proto.RegisterType((*TLDcOption)(nil), "mtproto.TL_dcOption") - proto.RegisterType((*Messages_SentEncryptedMessage_Data)(nil), "mtproto.messages_SentEncryptedMessage_Data") - proto.RegisterType((*Messages_SentEncryptedMessage)(nil), "mtproto.messages_SentEncryptedMessage") - proto.RegisterType((*TLMessagesSentEncryptedMessage)(nil), "mtproto.TL_messages_sentEncryptedMessage") - proto.RegisterType((*TLMessagesSentEncryptedFile)(nil), "mtproto.TL_messages_sentEncryptedFile") - proto.RegisterType((*InputBotInlineResult_Data)(nil), "mtproto.InputBotInlineResult_Data") - proto.RegisterType((*InputBotInlineResult)(nil), "mtproto.InputBotInlineResult") - proto.RegisterType((*TLInputBotInlineResult)(nil), "mtproto.TL_inputBotInlineResult") - proto.RegisterType((*TLInputBotInlineResultPhoto)(nil), "mtproto.TL_inputBotInlineResultPhoto") - proto.RegisterType((*TLInputBotInlineResultDocument)(nil), "mtproto.TL_inputBotInlineResultDocument") - proto.RegisterType((*TLInputBotInlineResultGame)(nil), "mtproto.TL_inputBotInlineResultGame") - proto.RegisterType((*PhoneCallDiscardReason_Data)(nil), "mtproto.PhoneCallDiscardReason_Data") - proto.RegisterType((*PhoneCallDiscardReason)(nil), "mtproto.PhoneCallDiscardReason") - proto.RegisterType((*TLPhoneCallDiscardReasonMissed)(nil), "mtproto.TL_phoneCallDiscardReasonMissed") - proto.RegisterType((*TLPhoneCallDiscardReasonDisconnect)(nil), "mtproto.TL_phoneCallDiscardReasonDisconnect") - proto.RegisterType((*TLPhoneCallDiscardReasonHangup)(nil), "mtproto.TL_phoneCallDiscardReasonHangup") - proto.RegisterType((*TLPhoneCallDiscardReasonBusy)(nil), "mtproto.TL_phoneCallDiscardReasonBusy") - proto.RegisterType((*SecurePasswordKdfAlgo_Data)(nil), "mtproto.SecurePasswordKdfAlgo_Data") - proto.RegisterType((*SecurePasswordKdfAlgo)(nil), "mtproto.SecurePasswordKdfAlgo") - proto.RegisterType((*TLSecurePasswordKdfAlgoUnknown)(nil), "mtproto.TL_securePasswordKdfAlgoUnknown") - proto.RegisterType((*TLSecurePasswordKdfAlgoPBKDF2)(nil), "mtproto.TL_securePasswordKdfAlgoPBKDF2") - proto.RegisterType((*TLSecurePasswordKdfAlgoSHA512)(nil), "mtproto.TL_securePasswordKdfAlgoSHA512") - proto.RegisterType((*ChatFull_Data)(nil), "mtproto.ChatFull_Data") - proto.RegisterType((*ChatFull)(nil), "mtproto.ChatFull") - proto.RegisterType((*TLChatFull)(nil), "mtproto.TL_chatFull") - proto.RegisterType((*TLChannelFull)(nil), "mtproto.TL_channelFull") - proto.RegisterType((*Auth_SentCodeType_Data)(nil), "mtproto.auth_SentCodeType_Data") - proto.RegisterType((*Auth_SentCodeType)(nil), "mtproto.auth_SentCodeType") - proto.RegisterType((*TLAuthSentCodeTypeApp)(nil), "mtproto.TL_auth_sentCodeTypeApp") - proto.RegisterType((*TLAuthSentCodeTypeSms)(nil), "mtproto.TL_auth_sentCodeTypeSms") - proto.RegisterType((*TLAuthSentCodeTypeCall)(nil), "mtproto.TL_auth_sentCodeTypeCall") - proto.RegisterType((*TLAuthSentCodeTypeFlashCall)(nil), "mtproto.TL_auth_sentCodeTypeFlashCall") - proto.RegisterType((*Help_ProxyData_Data)(nil), "mtproto.help_ProxyData_Data") - proto.RegisterType((*Help_ProxyData)(nil), "mtproto.help_ProxyData") - proto.RegisterType((*TLHelpProxyDataEmpty)(nil), "mtproto.TL_help_proxyDataEmpty") - proto.RegisterType((*TLHelpProxyDataPromo)(nil), "mtproto.TL_help_proxyDataPromo") - proto.RegisterType((*SecurePlainData_Data)(nil), "mtproto.SecurePlainData_Data") - proto.RegisterType((*SecurePlainData)(nil), "mtproto.SecurePlainData") - proto.RegisterType((*TLSecurePlainPhone)(nil), "mtproto.TL_securePlainPhone") - proto.RegisterType((*TLSecurePlainEmail)(nil), "mtproto.TL_securePlainEmail") - proto.RegisterType((*InputPhoto_Data)(nil), "mtproto.InputPhoto_Data") - proto.RegisterType((*InputPhoto)(nil), "mtproto.InputPhoto") - proto.RegisterType((*TLInputPhotoEmpty)(nil), "mtproto.TL_inputPhotoEmpty") - proto.RegisterType((*TLInputPhoto)(nil), "mtproto.TL_inputPhoto") - proto.RegisterType((*TLInputPhotoLayer86)(nil), "mtproto.TL_inputPhotoLayer86") - proto.RegisterType((*Upload_File_Data)(nil), "mtproto.upload_File_Data") - proto.RegisterType((*Upload_File)(nil), "mtproto.upload_File") - proto.RegisterType((*TLUploadFile)(nil), "mtproto.TL_upload_file") - proto.RegisterType((*TLUploadFileCdnRedirect)(nil), "mtproto.TL_upload_fileCdnRedirect") - proto.RegisterType((*FoundGif_Data)(nil), "mtproto.FoundGif_Data") - proto.RegisterType((*FoundGif)(nil), "mtproto.FoundGif") - proto.RegisterType((*TLFoundGif)(nil), "mtproto.TL_foundGif") - proto.RegisterType((*TLFoundGifCached)(nil), "mtproto.TL_foundGifCached") - proto.RegisterType((*DialogPeer_Data)(nil), "mtproto.DialogPeer_Data") - proto.RegisterType((*DialogPeer)(nil), "mtproto.DialogPeer") - proto.RegisterType((*TLDialogPeer)(nil), "mtproto.TL_dialogPeer") - proto.RegisterType((*Messages_FoundStickerSets_Data)(nil), "mtproto.messages_FoundStickerSets_Data") - proto.RegisterType((*Messages_FoundStickerSets)(nil), "mtproto.messages_FoundStickerSets") - proto.RegisterType((*TLMessagesFoundStickerSetsNotModified)(nil), "mtproto.TL_messages_foundStickerSetsNotModified") - proto.RegisterType((*TLMessagesFoundStickerSets)(nil), "mtproto.TL_messages_foundStickerSets") - proto.RegisterType((*UserFull_Data)(nil), "mtproto.UserFull_Data") - proto.RegisterType((*UserFull)(nil), "mtproto.UserFull") - proto.RegisterType((*TLUserFull)(nil), "mtproto.TL_userFull") - proto.RegisterType((*HighScore_Data)(nil), "mtproto.HighScore_Data") - proto.RegisterType((*HighScore)(nil), "mtproto.HighScore") - proto.RegisterType((*TLHighScore)(nil), "mtproto.TL_highScore") - proto.RegisterType((*PhoneConnection_Data)(nil), "mtproto.PhoneConnection_Data") - proto.RegisterType((*PhoneConnection)(nil), "mtproto.PhoneConnection") - proto.RegisterType((*TLPhoneConnection)(nil), "mtproto.TL_phoneConnection") - proto.RegisterType((*PasswordKdfAlgo_Data)(nil), "mtproto.PasswordKdfAlgo_Data") - proto.RegisterType((*PasswordKdfAlgo)(nil), "mtproto.PasswordKdfAlgo") - proto.RegisterType((*TLPasswordKdfAlgoUnknown)(nil), "mtproto.TL_passwordKdfAlgoUnknown") - proto.RegisterType((*TLPasswordKdfAlgoModPow)(nil), "mtproto.TL_passwordKdfAlgoModPow") - proto.RegisterType((*InputFileLocation_Data)(nil), "mtproto.InputFileLocation_Data") - proto.RegisterType((*InputFileLocation)(nil), "mtproto.InputFileLocation") - proto.RegisterType((*TLInputDocumentFileLocationLayer11)(nil), "mtproto.TL_inputDocumentFileLocationLayer11") - proto.RegisterType((*TLInputFileLocation)(nil), "mtproto.TL_inputFileLocation") - proto.RegisterType((*TLInputEncryptedFileLocation)(nil), "mtproto.TL_inputEncryptedFileLocation") - proto.RegisterType((*TLInputDocumentFileLocation)(nil), "mtproto.TL_inputDocumentFileLocation") - proto.RegisterType((*TLInputSecureFileLocation)(nil), "mtproto.TL_inputSecureFileLocation") - proto.RegisterType((*TLInputTakeoutFileLocation)(nil), "mtproto.TL_inputTakeoutFileLocation") - proto.RegisterType((*TLInputFileLocationLayer86)(nil), "mtproto.TL_inputFileLocationLayer86") - proto.RegisterType((*TLInputDocumentFileLocationLayer86)(nil), "mtproto.TL_inputDocumentFileLocationLayer86") - proto.RegisterType((*Peer_Data)(nil), "mtproto.Peer_Data") - proto.RegisterType((*Peer)(nil), "mtproto.Peer") - proto.RegisterType((*TLPeerUser)(nil), "mtproto.TL_peerUser") - proto.RegisterType((*TLPeerChat)(nil), "mtproto.TL_peerChat") - proto.RegisterType((*TLPeerChannel)(nil), "mtproto.TL_peerChannel") - proto.RegisterType((*UserProfilePhoto_Data)(nil), "mtproto.UserProfilePhoto_Data") - proto.RegisterType((*UserProfilePhoto)(nil), "mtproto.UserProfilePhoto") - proto.RegisterType((*TLUserProfilePhotoEmpty)(nil), "mtproto.TL_userProfilePhotoEmpty") - proto.RegisterType((*TLUserProfilePhoto)(nil), "mtproto.TL_userProfilePhoto") - proto.RegisterType((*Contacts_Blocked_Data)(nil), "mtproto.contacts_Blocked_Data") - proto.RegisterType((*Contacts_Blocked)(nil), "mtproto.contacts_Blocked") - proto.RegisterType((*TLContactsBlocked)(nil), "mtproto.TL_contacts_blocked") - proto.RegisterType((*TLContactsBlockedSlice)(nil), "mtproto.TL_contacts_blockedSlice") - proto.RegisterType((*Auth_PasswordRecovery_Data)(nil), "mtproto.auth_PasswordRecovery_Data") - proto.RegisterType((*Auth_PasswordRecovery)(nil), "mtproto.auth_PasswordRecovery") - proto.RegisterType((*TLAuthPasswordRecovery)(nil), "mtproto.TL_auth_passwordRecovery") - proto.RegisterType((*DataJSON_Data)(nil), "mtproto.DataJSON_Data") - proto.RegisterType((*DataJSON)(nil), "mtproto.DataJSON") - proto.RegisterType((*TLDataJSON)(nil), "mtproto.TL_dataJSON") - proto.RegisterType((*PaymentCharge_Data)(nil), "mtproto.PaymentCharge_Data") - proto.RegisterType((*PaymentCharge)(nil), "mtproto.PaymentCharge") - proto.RegisterType((*TLPaymentCharge)(nil), "mtproto.TL_paymentCharge") - proto.RegisterType((*InputPaymentCredentials_Data)(nil), "mtproto.InputPaymentCredentials_Data") - proto.RegisterType((*InputPaymentCredentials)(nil), "mtproto.InputPaymentCredentials") - proto.RegisterType((*TLInputPaymentCredentialsSaved)(nil), "mtproto.TL_inputPaymentCredentialsSaved") - proto.RegisterType((*TLInputPaymentCredentials)(nil), "mtproto.TL_inputPaymentCredentials") - proto.RegisterType((*TLInputPaymentCredentialsApplePay)(nil), "mtproto.TL_inputPaymentCredentialsApplePay") - proto.RegisterType((*TLInputPaymentCredentialsAndroidPay)(nil), "mtproto.TL_inputPaymentCredentialsAndroidPay") - proto.RegisterType((*InputNotifyPeer_Data)(nil), "mtproto.InputNotifyPeer_Data") - proto.RegisterType((*InputNotifyPeer)(nil), "mtproto.InputNotifyPeer") - proto.RegisterType((*TLInputNotifyPeer)(nil), "mtproto.TL_inputNotifyPeer") - proto.RegisterType((*TLInputNotifyUsers)(nil), "mtproto.TL_inputNotifyUsers") - proto.RegisterType((*TLInputNotifyChats)(nil), "mtproto.TL_inputNotifyChats") - proto.RegisterType((*InputEncryptedFile_Data)(nil), "mtproto.InputEncryptedFile_Data") - proto.RegisterType((*InputEncryptedFile)(nil), "mtproto.InputEncryptedFile") - proto.RegisterType((*TLInputEncryptedFileEmpty)(nil), "mtproto.TL_inputEncryptedFileEmpty") - proto.RegisterType((*TLInputEncryptedFileUploaded)(nil), "mtproto.TL_inputEncryptedFileUploaded") - proto.RegisterType((*TLInputEncryptedFile)(nil), "mtproto.TL_inputEncryptedFile") - proto.RegisterType((*TLInputEncryptedFileBigUploaded)(nil), "mtproto.TL_inputEncryptedFileBigUploaded") - proto.RegisterType((*Contacts_TopPeers_Data)(nil), "mtproto.contacts_TopPeers_Data") - proto.RegisterType((*Contacts_TopPeers)(nil), "mtproto.contacts_TopPeers") - proto.RegisterType((*TLContactsTopPeersNotModified)(nil), "mtproto.TL_contacts_topPeersNotModified") - proto.RegisterType((*TLContactsTopPeers)(nil), "mtproto.TL_contacts_topPeers") - proto.RegisterType((*TLContactsTopPeersDisabled)(nil), "mtproto.TL_contacts_topPeersDisabled") - proto.RegisterType((*InputPhoneCall_Data)(nil), "mtproto.InputPhoneCall_Data") - proto.RegisterType((*InputPhoneCall)(nil), "mtproto.InputPhoneCall") - proto.RegisterType((*TLInputPhoneCall)(nil), "mtproto.TL_inputPhoneCall") + proto.RegisterType((*MessageAction_Data)(nil), "mtproto.MessageAction_Data") + proto.RegisterType((*MessageAction)(nil), "mtproto.MessageAction") + proto.RegisterType((*TLMessageActionEmpty)(nil), "mtproto.TL_messageActionEmpty") + proto.RegisterType((*TLMessageActionChatCreate)(nil), "mtproto.TL_messageActionChatCreate") + proto.RegisterType((*TLMessageActionChatEditTitle)(nil), "mtproto.TL_messageActionChatEditTitle") + proto.RegisterType((*TLMessageActionChatEditPhoto)(nil), "mtproto.TL_messageActionChatEditPhoto") + proto.RegisterType((*TLMessageActionChatDeletePhoto)(nil), "mtproto.TL_messageActionChatDeletePhoto") + proto.RegisterType((*TLMessageActionChatAddUser)(nil), "mtproto.TL_messageActionChatAddUser") + proto.RegisterType((*TLMessageActionChatDeleteUser)(nil), "mtproto.TL_messageActionChatDeleteUser") + proto.RegisterType((*TLMessageActionChatJoinedByLink)(nil), "mtproto.TL_messageActionChatJoinedByLink") + proto.RegisterType((*TLMessageActionChannelCreate)(nil), "mtproto.TL_messageActionChannelCreate") + proto.RegisterType((*TLMessageActionChatMigrateTo)(nil), "mtproto.TL_messageActionChatMigrateTo") + proto.RegisterType((*TLMessageActionChannelMigrateFrom)(nil), "mtproto.TL_messageActionChannelMigrateFrom") + proto.RegisterType((*TLMessageActionPinMessage)(nil), "mtproto.TL_messageActionPinMessage") + proto.RegisterType((*TLMessageActionHistoryClear)(nil), "mtproto.TL_messageActionHistoryClear") + proto.RegisterType((*TLMessageActionGameScore)(nil), "mtproto.TL_messageActionGameScore") + proto.RegisterType((*TLMessageActionPaymentSentMe)(nil), "mtproto.TL_messageActionPaymentSentMe") + proto.RegisterType((*TLMessageActionPaymentSent)(nil), "mtproto.TL_messageActionPaymentSent") + proto.RegisterType((*TLMessageActionPhoneCall)(nil), "mtproto.TL_messageActionPhoneCall") + proto.RegisterType((*TLMessageActionScreenshotTaken)(nil), "mtproto.TL_messageActionScreenshotTaken") + proto.RegisterType((*TLMessageActionCustomAction)(nil), "mtproto.TL_messageActionCustomAction") + proto.RegisterType((*TLMessageActionBotAllowed)(nil), "mtproto.TL_messageActionBotAllowed") + proto.RegisterType((*TLMessageActionSecureValuesSentMe)(nil), "mtproto.TL_messageActionSecureValuesSentMe") + proto.RegisterType((*TLMessageActionSecureValuesSent)(nil), "mtproto.TL_messageActionSecureValuesSent") + proto.RegisterType((*Contacts_Blocked_Data)(nil), "mtproto.contacts_Blocked_Data") + proto.RegisterType((*Contacts_Blocked)(nil), "mtproto.contacts_Blocked") + proto.RegisterType((*TLContactsBlocked)(nil), "mtproto.TL_contacts_blocked") + proto.RegisterType((*TLContactsBlockedSlice)(nil), "mtproto.TL_contacts_blockedSlice") + proto.RegisterType((*RichText_Data)(nil), "mtproto.RichText_Data") + proto.RegisterType((*RichText)(nil), "mtproto.RichText") + proto.RegisterType((*TLTextEmpty)(nil), "mtproto.TL_textEmpty") + proto.RegisterType((*TLTextPlain)(nil), "mtproto.TL_textPlain") + proto.RegisterType((*TLTextBold)(nil), "mtproto.TL_textBold") + proto.RegisterType((*TLTextItalic)(nil), "mtproto.TL_textItalic") + proto.RegisterType((*TLTextUnderline)(nil), "mtproto.TL_textUnderline") + proto.RegisterType((*TLTextStrike)(nil), "mtproto.TL_textStrike") + proto.RegisterType((*TLTextFixed)(nil), "mtproto.TL_textFixed") + proto.RegisterType((*TLTextUrl)(nil), "mtproto.TL_textUrl") + proto.RegisterType((*TLTextEmail)(nil), "mtproto.TL_textEmail") + proto.RegisterType((*TLTextConcat)(nil), "mtproto.TL_textConcat") + proto.RegisterType((*TopPeerCategoryPeers_Data)(nil), "mtproto.TopPeerCategoryPeers_Data") + proto.RegisterType((*TopPeerCategoryPeers)(nil), "mtproto.TopPeerCategoryPeers") + proto.RegisterType((*TLTopPeerCategoryPeers)(nil), "mtproto.TL_topPeerCategoryPeers") + proto.RegisterType((*Messages_StickerSetInstallResult_Data)(nil), "mtproto.messages_StickerSetInstallResult_Data") + proto.RegisterType((*Messages_StickerSetInstallResult)(nil), "mtproto.messages_StickerSetInstallResult") + proto.RegisterType((*TLMessagesStickerSetInstallResultSuccess)(nil), "mtproto.TL_messages_stickerSetInstallResultSuccess") + proto.RegisterType((*TLMessagesStickerSetInstallResultArchive)(nil), "mtproto.TL_messages_stickerSetInstallResultArchive") + proto.RegisterType((*Payments_PaymentForm_Data)(nil), "mtproto.payments_PaymentForm_Data") + proto.RegisterType((*Payments_PaymentForm)(nil), "mtproto.payments_PaymentForm") + proto.RegisterType((*TLPaymentsPaymentForm)(nil), "mtproto.TL_payments_paymentForm") proto.RegisterType((*LangPackDifference_Data)(nil), "mtproto.LangPackDifference_Data") proto.RegisterType((*LangPackDifference)(nil), "mtproto.LangPackDifference") proto.RegisterType((*TLLangPackDifference)(nil), "mtproto.TL_langPackDifference") - proto.RegisterType((*FileHash_Data)(nil), "mtproto.FileHash_Data") - proto.RegisterType((*FileHash)(nil), "mtproto.FileHash") - proto.RegisterType((*TLFileHash)(nil), "mtproto.TL_fileHash") - proto.RegisterType((*InputGeoPoint_Data)(nil), "mtproto.InputGeoPoint_Data") - proto.RegisterType((*InputGeoPoint)(nil), "mtproto.InputGeoPoint") - proto.RegisterType((*TLInputGeoPointEmpty)(nil), "mtproto.TL_inputGeoPointEmpty") - proto.RegisterType((*TLInputGeoPoint)(nil), "mtproto.TL_inputGeoPoint") - proto.RegisterType((*Auth_ExportedAuthorization_Data)(nil), "mtproto.auth_ExportedAuthorization_Data") - proto.RegisterType((*Auth_ExportedAuthorization)(nil), "mtproto.auth_ExportedAuthorization") - proto.RegisterType((*TLAuthExportedAuthorization)(nil), "mtproto.TL_auth_exportedAuthorization") - proto.RegisterType((*WebPage_Data)(nil), "mtproto.WebPage_Data") - proto.RegisterType((*WebPage)(nil), "mtproto.WebPage") - proto.RegisterType((*TLWebPageEmpty)(nil), "mtproto.TL_webPageEmpty") - proto.RegisterType((*TLWebPagePending)(nil), "mtproto.TL_webPagePending") - proto.RegisterType((*TLWebPage)(nil), "mtproto.TL_webPage") - proto.RegisterType((*TLWebPageNotModified)(nil), "mtproto.TL_webPageNotModified") - proto.RegisterType((*Help_RecentMeUrls_Data)(nil), "mtproto.help_RecentMeUrls_Data") - proto.RegisterType((*Help_RecentMeUrls)(nil), "mtproto.help_RecentMeUrls") - proto.RegisterType((*TLHelpRecentMeUrls)(nil), "mtproto.TL_help_recentMeUrls") - proto.RegisterType((*SecureFile_Data)(nil), "mtproto.SecureFile_Data") - proto.RegisterType((*SecureFile)(nil), "mtproto.SecureFile") - proto.RegisterType((*TLSecureFileEmpty)(nil), "mtproto.TL_secureFileEmpty") - proto.RegisterType((*TLSecureFile)(nil), "mtproto.TL_secureFile") + proto.RegisterType((*Messages_Chats_Data)(nil), "mtproto.messages_Chats_Data") + proto.RegisterType((*Messages_Chats)(nil), "mtproto.messages_Chats") + proto.RegisterType((*TLMessagesChats)(nil), "mtproto.TL_messages_chats") + proto.RegisterType((*TLMessagesChatsSlice)(nil), "mtproto.TL_messages_chatsSlice") + proto.RegisterType((*KeyboardButtonRow_Data)(nil), "mtproto.KeyboardButtonRow_Data") + proto.RegisterType((*KeyboardButtonRow)(nil), "mtproto.KeyboardButtonRow") + proto.RegisterType((*TLKeyboardButtonRow)(nil), "mtproto.TL_keyboardButtonRow") + proto.RegisterType((*Messages_FoundGifs_Data)(nil), "mtproto.messages_FoundGifs_Data") + proto.RegisterType((*Messages_FoundGifs)(nil), "mtproto.messages_FoundGifs") + proto.RegisterType((*TLMessagesFoundGifs)(nil), "mtproto.TL_messages_foundGifs") + proto.RegisterType((*KeyboardButton_Data)(nil), "mtproto.KeyboardButton_Data") + proto.RegisterType((*KeyboardButton)(nil), "mtproto.KeyboardButton") + proto.RegisterType((*TLKeyboardButton)(nil), "mtproto.TL_keyboardButton") + proto.RegisterType((*TLKeyboardButtonUrl)(nil), "mtproto.TL_keyboardButtonUrl") + proto.RegisterType((*TLKeyboardButtonCallback)(nil), "mtproto.TL_keyboardButtonCallback") + proto.RegisterType((*TLKeyboardButtonRequestPhone)(nil), "mtproto.TL_keyboardButtonRequestPhone") + proto.RegisterType((*TLKeyboardButtonRequestGeoLocation)(nil), "mtproto.TL_keyboardButtonRequestGeoLocation") + proto.RegisterType((*TLKeyboardButtonSwitchInline)(nil), "mtproto.TL_keyboardButtonSwitchInline") + proto.RegisterType((*TLKeyboardButtonGame)(nil), "mtproto.TL_keyboardButtonGame") + proto.RegisterType((*TLKeyboardButtonBuy)(nil), "mtproto.TL_keyboardButtonBuy") + proto.RegisterType((*InputChannel_Data)(nil), "mtproto.InputChannel_Data") + proto.RegisterType((*InputChannel)(nil), "mtproto.InputChannel") + proto.RegisterType((*TLInputChannelEmpty)(nil), "mtproto.TL_inputChannelEmpty") + proto.RegisterType((*TLInputChannel)(nil), "mtproto.TL_inputChannel") + proto.RegisterType((*ShippingOption_Data)(nil), "mtproto.ShippingOption_Data") + proto.RegisterType((*ShippingOption)(nil), "mtproto.ShippingOption") + proto.RegisterType((*TLShippingOption)(nil), "mtproto.TL_shippingOption") + proto.RegisterType((*ChannelAdminLogEventAction_Data)(nil), "mtproto.ChannelAdminLogEventAction_Data") + proto.RegisterType((*ChannelAdminLogEventAction)(nil), "mtproto.ChannelAdminLogEventAction") + proto.RegisterType((*TLChannelAdminLogEventActionChangeTitle)(nil), "mtproto.TL_channelAdminLogEventActionChangeTitle") + proto.RegisterType((*TLChannelAdminLogEventActionChangeAbout)(nil), "mtproto.TL_channelAdminLogEventActionChangeAbout") + proto.RegisterType((*TLChannelAdminLogEventActionChangeUsername)(nil), "mtproto.TL_channelAdminLogEventActionChangeUsername") + proto.RegisterType((*TLChannelAdminLogEventActionChangePhoto)(nil), "mtproto.TL_channelAdminLogEventActionChangePhoto") + proto.RegisterType((*TLChannelAdminLogEventActionToggleInvites)(nil), "mtproto.TL_channelAdminLogEventActionToggleInvites") + proto.RegisterType((*TLChannelAdminLogEventActionToggleSignatures)(nil), "mtproto.TL_channelAdminLogEventActionToggleSignatures") + proto.RegisterType((*TLChannelAdminLogEventActionUpdatePinned)(nil), "mtproto.TL_channelAdminLogEventActionUpdatePinned") + proto.RegisterType((*TLChannelAdminLogEventActionEditMessage)(nil), "mtproto.TL_channelAdminLogEventActionEditMessage") + proto.RegisterType((*TLChannelAdminLogEventActionDeleteMessage)(nil), "mtproto.TL_channelAdminLogEventActionDeleteMessage") + proto.RegisterType((*TLChannelAdminLogEventActionParticipantJoin)(nil), "mtproto.TL_channelAdminLogEventActionParticipantJoin") + proto.RegisterType((*TLChannelAdminLogEventActionParticipantLeave)(nil), "mtproto.TL_channelAdminLogEventActionParticipantLeave") + proto.RegisterType((*TLChannelAdminLogEventActionParticipantInvite)(nil), "mtproto.TL_channelAdminLogEventActionParticipantInvite") + proto.RegisterType((*TLChannelAdminLogEventActionParticipantToggleBan)(nil), "mtproto.TL_channelAdminLogEventActionParticipantToggleBan") + proto.RegisterType((*TLChannelAdminLogEventActionParticipantToggleAdmin)(nil), "mtproto.TL_channelAdminLogEventActionParticipantToggleAdmin") + proto.RegisterType((*TLChannelAdminLogEventActionChangeStickerSet)(nil), "mtproto.TL_channelAdminLogEventActionChangeStickerSet") + proto.RegisterType((*TLChannelAdminLogEventActionTogglePreHistoryHidden)(nil), "mtproto.TL_channelAdminLogEventActionTogglePreHistoryHidden") + proto.RegisterType((*InputBotInlineMessageID_Data)(nil), "mtproto.InputBotInlineMessageID_Data") + proto.RegisterType((*InputBotInlineMessageID)(nil), "mtproto.InputBotInlineMessageID") + proto.RegisterType((*TLInputBotInlineMessageID)(nil), "mtproto.TL_inputBotInlineMessageID") + proto.RegisterType((*Messages_ArchivedStickers_Data)(nil), "mtproto.messages_ArchivedStickers_Data") + proto.RegisterType((*Messages_ArchivedStickers)(nil), "mtproto.messages_ArchivedStickers") + proto.RegisterType((*TLMessagesArchivedStickers)(nil), "mtproto.TL_messages_archivedStickers") proto.RegisterType((*BotInlineMessage_Data)(nil), "mtproto.BotInlineMessage_Data") proto.RegisterType((*BotInlineMessage)(nil), "mtproto.BotInlineMessage") proto.RegisterType((*TLBotInlineMessageMediaAuto)(nil), "mtproto.TL_botInlineMessageMediaAuto") @@ -56536,126 +56798,60 @@ func init() { proto.RegisterType((*TLBotInlineMessageMediaGeo)(nil), "mtproto.TL_botInlineMessageMediaGeo") proto.RegisterType((*TLBotInlineMessageMediaVenue)(nil), "mtproto.TL_botInlineMessageMediaVenue") proto.RegisterType((*TLBotInlineMessageMediaContact)(nil), "mtproto.TL_botInlineMessageMediaContact") - proto.RegisterType((*Messages_ArchivedStickers_Data)(nil), "mtproto.messages_ArchivedStickers_Data") - proto.RegisterType((*Messages_ArchivedStickers)(nil), "mtproto.messages_ArchivedStickers") - proto.RegisterType((*TLMessagesArchivedStickers)(nil), "mtproto.TL_messages_archivedStickers") - proto.RegisterType((*Invoice_Data)(nil), "mtproto.Invoice_Data") - proto.RegisterType((*Invoice)(nil), "mtproto.Invoice") - proto.RegisterType((*TLInvoice)(nil), "mtproto.TL_invoice") - proto.RegisterType((*CdnPublicKey_Data)(nil), "mtproto.CdnPublicKey_Data") - proto.RegisterType((*CdnPublicKey)(nil), "mtproto.CdnPublicKey") - proto.RegisterType((*TLCdnPublicKey)(nil), "mtproto.TL_cdnPublicKey") - proto.RegisterType((*Dialog_Data)(nil), "mtproto.Dialog_Data") - proto.RegisterType((*Dialog)(nil), "mtproto.Dialog") - proto.RegisterType((*TLDialog)(nil), "mtproto.TL_dialog") - proto.RegisterType((*Messages_DhConfig_Data)(nil), "mtproto.messages_DhConfig_Data") - proto.RegisterType((*Messages_DhConfig)(nil), "mtproto.messages_DhConfig") - proto.RegisterType((*TLMessagesDhConfigNotModified)(nil), "mtproto.TL_messages_dhConfigNotModified") - proto.RegisterType((*TLMessagesDhConfig)(nil), "mtproto.TL_messages_dhConfig") - proto.RegisterType((*TopPeerCategoryPeers_Data)(nil), "mtproto.TopPeerCategoryPeers_Data") - proto.RegisterType((*TopPeerCategoryPeers)(nil), "mtproto.TopPeerCategoryPeers") - proto.RegisterType((*TLTopPeerCategoryPeers)(nil), "mtproto.TL_topPeerCategoryPeers") - proto.RegisterType((*Account_AuthorizationForm_Data)(nil), "mtproto.account_AuthorizationForm_Data") - proto.RegisterType((*Account_AuthorizationForm)(nil), "mtproto.account_AuthorizationForm") - proto.RegisterType((*TLAccountAuthorizationForm)(nil), "mtproto.TL_account_authorizationForm") - proto.RegisterType((*InputGame_Data)(nil), "mtproto.InputGame_Data") - proto.RegisterType((*InputGame)(nil), "mtproto.InputGame") - proto.RegisterType((*TLInputGameID)(nil), "mtproto.TL_inputGameID") - proto.RegisterType((*TLInputGameShortName)(nil), "mtproto.TL_inputGameShortName") + proto.RegisterType((*Help_RecentMeUrls_Data)(nil), "mtproto.help_RecentMeUrls_Data") + proto.RegisterType((*Help_RecentMeUrls)(nil), "mtproto.help_RecentMeUrls") + proto.RegisterType((*TLHelpRecentMeUrls)(nil), "mtproto.TL_help_recentMeUrls") + proto.RegisterType((*InputSingleMedia_Data)(nil), "mtproto.InputSingleMedia_Data") + proto.RegisterType((*InputSingleMedia)(nil), "mtproto.InputSingleMedia") + proto.RegisterType((*TLInputSingleMedia)(nil), "mtproto.TL_inputSingleMedia") + proto.RegisterType((*InputPeer_Data)(nil), "mtproto.InputPeer_Data") + proto.RegisterType((*InputPeer)(nil), "mtproto.InputPeer") + proto.RegisterType((*TLInputPeerEmpty)(nil), "mtproto.TL_inputPeerEmpty") + proto.RegisterType((*TLInputPeerSelf)(nil), "mtproto.TL_inputPeerSelf") + proto.RegisterType((*TLInputPeerChat)(nil), "mtproto.TL_inputPeerChat") + proto.RegisterType((*TLInputPeerUser)(nil), "mtproto.TL_inputPeerUser") + proto.RegisterType((*TLInputPeerChannel)(nil), "mtproto.TL_inputPeerChannel") + proto.RegisterType((*InputContact_Data)(nil), "mtproto.InputContact_Data") + proto.RegisterType((*InputContact)(nil), "mtproto.InputContact") + proto.RegisterType((*TLInputPhoneContact)(nil), "mtproto.TL_inputPhoneContact") + proto.RegisterType((*ChannelParticipant_Data)(nil), "mtproto.ChannelParticipant_Data") + proto.RegisterType((*ChannelParticipant)(nil), "mtproto.ChannelParticipant") + proto.RegisterType((*TLChannelParticipant)(nil), "mtproto.TL_channelParticipant") + proto.RegisterType((*TLChannelParticipantSelf)(nil), "mtproto.TL_channelParticipantSelf") + proto.RegisterType((*TLChannelParticipantCreator)(nil), "mtproto.TL_channelParticipantCreator") + proto.RegisterType((*TLChannelParticipantAdmin)(nil), "mtproto.TL_channelParticipantAdmin") + proto.RegisterType((*TLChannelParticipantBanned)(nil), "mtproto.TL_channelParticipantBanned") + proto.RegisterType((*SecurePasswordKdfAlgo_Data)(nil), "mtproto.SecurePasswordKdfAlgo_Data") + proto.RegisterType((*SecurePasswordKdfAlgo)(nil), "mtproto.SecurePasswordKdfAlgo") + proto.RegisterType((*TLSecurePasswordKdfAlgoUnknown)(nil), "mtproto.TL_securePasswordKdfAlgoUnknown") + proto.RegisterType((*TLSecurePasswordKdfAlgoPBKDF2)(nil), "mtproto.TL_securePasswordKdfAlgoPBKDF2") + proto.RegisterType((*TLSecurePasswordKdfAlgoSHA512)(nil), "mtproto.TL_securePasswordKdfAlgoSHA512") + proto.RegisterType((*PeerSettings_Data)(nil), "mtproto.PeerSettings_Data") + proto.RegisterType((*PeerSettings)(nil), "mtproto.PeerSettings") + proto.RegisterType((*TLPeerSettings)(nil), "mtproto.TL_peerSettings") + proto.RegisterType((*RecentMeUrl_Data)(nil), "mtproto.RecentMeUrl_Data") + proto.RegisterType((*RecentMeUrl)(nil), "mtproto.RecentMeUrl") + proto.RegisterType((*TLRecentMeUrlUnknown)(nil), "mtproto.TL_recentMeUrlUnknown") + proto.RegisterType((*TLRecentMeUrlUser)(nil), "mtproto.TL_recentMeUrlUser") + proto.RegisterType((*TLRecentMeUrlChat)(nil), "mtproto.TL_recentMeUrlChat") + proto.RegisterType((*TLRecentMeUrlChatInvite)(nil), "mtproto.TL_recentMeUrlChatInvite") + proto.RegisterType((*TLRecentMeUrlStickerSet)(nil), "mtproto.TL_recentMeUrlStickerSet") + proto.RegisterType((*InputSecureValue_Data)(nil), "mtproto.InputSecureValue_Data") + proto.RegisterType((*InputSecureValue)(nil), "mtproto.InputSecureValue") + proto.RegisterType((*TLInputSecureValue)(nil), "mtproto.TL_inputSecureValue") + proto.RegisterType((*WallPaper_Data)(nil), "mtproto.WallPaper_Data") + proto.RegisterType((*WallPaper)(nil), "mtproto.WallPaper") + proto.RegisterType((*TLWallPaper)(nil), "mtproto.TL_wallPaper") + proto.RegisterType((*TLWallPaperSolid)(nil), "mtproto.TL_wallPaperSolid") + proto.RegisterType((*DialogPeer_Data)(nil), "mtproto.DialogPeer_Data") + proto.RegisterType((*DialogPeer)(nil), "mtproto.DialogPeer") + proto.RegisterType((*TLDialogPeer)(nil), "mtproto.TL_dialogPeer") proto.RegisterType((*SecureValueHash_Data)(nil), "mtproto.SecureValueHash_Data") proto.RegisterType((*SecureValueHash)(nil), "mtproto.SecureValueHash") proto.RegisterType((*TLSecureValueHash)(nil), "mtproto.TL_secureValueHash") - proto.RegisterType((*InputPrivacyKey_Data)(nil), "mtproto.InputPrivacyKey_Data") - proto.RegisterType((*InputPrivacyKey)(nil), "mtproto.InputPrivacyKey") - proto.RegisterType((*TLInputPrivacyKeyStatusTimestamp)(nil), "mtproto.TL_inputPrivacyKeyStatusTimestamp") - proto.RegisterType((*TLInputPrivacyKeyChatInvite)(nil), "mtproto.TL_inputPrivacyKeyChatInvite") - proto.RegisterType((*TLInputPrivacyKeyPhoneCall)(nil), "mtproto.TL_inputPrivacyKeyPhoneCall") - proto.RegisterType((*InputBotInlineMessage_Data)(nil), "mtproto.InputBotInlineMessage_Data") - proto.RegisterType((*InputBotInlineMessage)(nil), "mtproto.InputBotInlineMessage") - proto.RegisterType((*TLInputBotInlineMessageMediaAuto)(nil), "mtproto.TL_inputBotInlineMessageMediaAuto") - proto.RegisterType((*TLInputBotInlineMessageText)(nil), "mtproto.TL_inputBotInlineMessageText") - proto.RegisterType((*TLInputBotInlineMessageMediaGeo)(nil), "mtproto.TL_inputBotInlineMessageMediaGeo") - proto.RegisterType((*TLInputBotInlineMessageMediaVenue)(nil), "mtproto.TL_inputBotInlineMessageMediaVenue") - proto.RegisterType((*TLInputBotInlineMessageMediaContact)(nil), "mtproto.TL_inputBotInlineMessageMediaContact") - proto.RegisterType((*TLInputBotInlineMessageGame)(nil), "mtproto.TL_inputBotInlineMessageGame") - proto.RegisterType((*TopPeer_Data)(nil), "mtproto.TopPeer_Data") - proto.RegisterType((*TopPeer)(nil), "mtproto.TopPeer") - proto.RegisterType((*TLTopPeer)(nil), "mtproto.TL_topPeer") - proto.RegisterType((*Messages_HighScores_Data)(nil), "mtproto.messages_HighScores_Data") - proto.RegisterType((*Messages_HighScores)(nil), "mtproto.messages_HighScores") - proto.RegisterType((*TLMessagesHighScores)(nil), "mtproto.TL_messages_highScores") - proto.RegisterType((*Payments_SavedInfo_Data)(nil), "mtproto.payments_SavedInfo_Data") - proto.RegisterType((*Payments_SavedInfo)(nil), "mtproto.payments_SavedInfo") - proto.RegisterType((*TLPaymentsSavedInfo)(nil), "mtproto.TL_payments_savedInfo") - proto.RegisterType((*MessageMedia_Data)(nil), "mtproto.MessageMedia_Data") - proto.RegisterType((*MessageMedia)(nil), "mtproto.MessageMedia") - proto.RegisterType((*TLMessageMediaEmpty)(nil), "mtproto.TL_messageMediaEmpty") - proto.RegisterType((*TLMessageMediaPhoto)(nil), "mtproto.TL_messageMediaPhoto") - proto.RegisterType((*TLMessageMediaGeo)(nil), "mtproto.TL_messageMediaGeo") - proto.RegisterType((*TLMessageMediaContact)(nil), "mtproto.TL_messageMediaContact") - proto.RegisterType((*TLMessageMediaUnsupported)(nil), "mtproto.TL_messageMediaUnsupported") - proto.RegisterType((*TLMessageMediaDocument)(nil), "mtproto.TL_messageMediaDocument") - proto.RegisterType((*TLMessageMediaWebPage)(nil), "mtproto.TL_messageMediaWebPage") - proto.RegisterType((*TLMessageMediaVenue)(nil), "mtproto.TL_messageMediaVenue") - proto.RegisterType((*TLMessageMediaGame)(nil), "mtproto.TL_messageMediaGame") - proto.RegisterType((*TLMessageMediaInvoice)(nil), "mtproto.TL_messageMediaInvoice") - proto.RegisterType((*TLMessageMediaGeoLive)(nil), "mtproto.TL_messageMediaGeoLive") - proto.RegisterType((*BotInfo_Data)(nil), "mtproto.BotInfo_Data") - proto.RegisterType((*BotInfo)(nil), "mtproto.BotInfo") - proto.RegisterType((*TLBotInfo)(nil), "mtproto.TL_botInfo") - proto.RegisterType((*Updates_ChannelDifference_Data)(nil), "mtproto.updates_ChannelDifference_Data") - proto.RegisterType((*Updates_ChannelDifference)(nil), "mtproto.updates_ChannelDifference") - proto.RegisterType((*TLUpdatesChannelDifferenceEmpty)(nil), "mtproto.TL_updates_channelDifferenceEmpty") - proto.RegisterType((*TLUpdatesChannelDifferenceTooLong)(nil), "mtproto.TL_updates_channelDifferenceTooLong") - proto.RegisterType((*TLUpdatesChannelDifference)(nil), "mtproto.TL_updates_channelDifference") - proto.RegisterType((*Page_Data)(nil), "mtproto.Page_Data") - proto.RegisterType((*Page)(nil), "mtproto.Page") - proto.RegisterType((*TLPagePart)(nil), "mtproto.TL_pagePart") - proto.RegisterType((*TLPageFull)(nil), "mtproto.TL_pageFull") - proto.RegisterType((*InputWebDocument_Data)(nil), "mtproto.InputWebDocument_Data") - proto.RegisterType((*InputWebDocument)(nil), "mtproto.InputWebDocument") - proto.RegisterType((*TLInputWebDocument)(nil), "mtproto.TL_inputWebDocument") - proto.RegisterType((*CdnConfig_Data)(nil), "mtproto.CdnConfig_Data") - proto.RegisterType((*CdnConfig)(nil), "mtproto.CdnConfig") - proto.RegisterType((*TLCdnConfig)(nil), "mtproto.TL_cdnConfig") - proto.RegisterType((*Auth_SentCode_Data)(nil), "mtproto.auth_SentCode_Data") - proto.RegisterType((*Auth_SentCode)(nil), "mtproto.auth_SentCode") - proto.RegisterType((*TLAuthSentCode)(nil), "mtproto.TL_auth_sentCode") proto.RegisterType((*Help_TermsOfService_Data)(nil), "mtproto.help_TermsOfService_Data") proto.RegisterType((*Help_TermsOfService)(nil), "mtproto.help_TermsOfService") proto.RegisterType((*TLHelpTermsOfService)(nil), "mtproto.TL_help_termsOfService") - proto.RegisterType((*TopPeerCategory_Data)(nil), "mtproto.TopPeerCategory_Data") - proto.RegisterType((*TopPeerCategory)(nil), "mtproto.TopPeerCategory") - proto.RegisterType((*TLTopPeerCategoryBotsPM)(nil), "mtproto.TL_topPeerCategoryBotsPM") - proto.RegisterType((*TLTopPeerCategoryBotsInline)(nil), "mtproto.TL_topPeerCategoryBotsInline") - proto.RegisterType((*TLTopPeerCategoryCorrespondents)(nil), "mtproto.TL_topPeerCategoryCorrespondents") - proto.RegisterType((*TLTopPeerCategoryGroups)(nil), "mtproto.TL_topPeerCategoryGroups") - proto.RegisterType((*TLTopPeerCategoryChannels)(nil), "mtproto.TL_topPeerCategoryChannels") - proto.RegisterType((*TLTopPeerCategoryPhoneCalls)(nil), "mtproto.TL_topPeerCategoryPhoneCalls") - proto.RegisterType((*ChannelAdminLogEventsFilter_Data)(nil), "mtproto.ChannelAdminLogEventsFilter_Data") - proto.RegisterType((*ChannelAdminLogEventsFilter)(nil), "mtproto.ChannelAdminLogEventsFilter") - proto.RegisterType((*TLChannelAdminLogEventsFilter)(nil), "mtproto.TL_channelAdminLogEventsFilter") - proto.RegisterType((*InputSecureFile_Data)(nil), "mtproto.InputSecureFile_Data") - proto.RegisterType((*InputSecureFile)(nil), "mtproto.InputSecureFile") - proto.RegisterType((*TLInputSecureFileUploaded)(nil), "mtproto.TL_inputSecureFileUploaded") - proto.RegisterType((*TLInputSecureFile)(nil), "mtproto.TL_inputSecureFile") - proto.RegisterType((*Channels_ChannelParticipant_Data)(nil), "mtproto.channels_ChannelParticipant_Data") - proto.RegisterType((*Channels_ChannelParticipant)(nil), "mtproto.channels_ChannelParticipant") - proto.RegisterType((*TLChannelsChannelParticipant)(nil), "mtproto.TL_channels_channelParticipant") - proto.RegisterType((*ChannelAdminRights_Data)(nil), "mtproto.ChannelAdminRights_Data") - proto.RegisterType((*ChannelAdminRights)(nil), "mtproto.ChannelAdminRights") - proto.RegisterType((*TLChannelAdminRights)(nil), "mtproto.TL_channelAdminRights") - proto.RegisterType((*EncryptedMessage_Data)(nil), "mtproto.EncryptedMessage_Data") - proto.RegisterType((*EncryptedMessage)(nil), "mtproto.EncryptedMessage") - proto.RegisterType((*TLEncryptedMessage)(nil), "mtproto.TL_encryptedMessage") - proto.RegisterType((*TLEncryptedMessageService)(nil), "mtproto.TL_encryptedMessageService") - proto.RegisterType((*ExportedChatInvite_Data)(nil), "mtproto.ExportedChatInvite_Data") - proto.RegisterType((*ExportedChatInvite)(nil), "mtproto.ExportedChatInvite") - proto.RegisterType((*TLChatInviteEmpty)(nil), "mtproto.TL_chatInviteEmpty") - proto.RegisterType((*TLChatInviteExported)(nil), "mtproto.TL_chatInviteExported") - proto.RegisterType((*Messages_BotResults_Data)(nil), "mtproto.messages_BotResults_Data") - proto.RegisterType((*Messages_BotResults)(nil), "mtproto.messages_BotResults") - proto.RegisterType((*TLMessagesBotResults)(nil), "mtproto.TL_messages_botResults") proto.RegisterType((*PageBlock_Data)(nil), "mtproto.PageBlock_Data") proto.RegisterType((*PageBlock)(nil), "mtproto.PageBlock") proto.RegisterType((*TLPageBlockUnsupported)(nil), "mtproto.TL_pageBlockUnsupported") @@ -56681,1865 +56877,1681 @@ func init() { proto.RegisterType((*TLPageBlockSlideshow)(nil), "mtproto.TL_pageBlockSlideshow") proto.RegisterType((*TLPageBlockChannel)(nil), "mtproto.TL_pageBlockChannel") proto.RegisterType((*TLPageBlockAudio)(nil), "mtproto.TL_pageBlockAudio") - proto.RegisterType((*Document_Data)(nil), "mtproto.Document_Data") - proto.RegisterType((*Document)(nil), "mtproto.Document") - proto.RegisterType((*TLDocumentEmpty)(nil), "mtproto.TL_documentEmpty") - proto.RegisterType((*TLDocument)(nil), "mtproto.TL_document") - proto.RegisterType((*TLDocumentLayer86)(nil), "mtproto.TL_documentLayer86") - proto.RegisterType((*RecentMeUrl_Data)(nil), "mtproto.RecentMeUrl_Data") - proto.RegisterType((*RecentMeUrl)(nil), "mtproto.RecentMeUrl") - proto.RegisterType((*TLRecentMeUrlUnknown)(nil), "mtproto.TL_recentMeUrlUnknown") - proto.RegisterType((*TLRecentMeUrlUser)(nil), "mtproto.TL_recentMeUrlUser") - proto.RegisterType((*TLRecentMeUrlChat)(nil), "mtproto.TL_recentMeUrlChat") - proto.RegisterType((*TLRecentMeUrlChatInvite)(nil), "mtproto.TL_recentMeUrlChatInvite") - proto.RegisterType((*TLRecentMeUrlStickerSet)(nil), "mtproto.TL_recentMeUrlStickerSet") - proto.RegisterType((*Scheme_Data)(nil), "mtproto.Scheme_Data") - proto.RegisterType((*Scheme)(nil), "mtproto.Scheme") - proto.RegisterType((*TLSchemeNotModified)(nil), "mtproto.TL_schemeNotModified") - proto.RegisterType((*TLScheme)(nil), "mtproto.TL_scheme") - proto.RegisterType((*InputAppEvent_Data)(nil), "mtproto.InputAppEvent_Data") - proto.RegisterType((*InputAppEvent)(nil), "mtproto.InputAppEvent") - proto.RegisterType((*TLInputAppEvent)(nil), "mtproto.TL_inputAppEvent") - proto.RegisterType((*StickerPack_Data)(nil), "mtproto.StickerPack_Data") - proto.RegisterType((*StickerPack)(nil), "mtproto.StickerPack") - proto.RegisterType((*TLStickerPack)(nil), "mtproto.TL_stickerPack") - proto.RegisterType((*Messages_BotCallbackAnswer_Data)(nil), "mtproto.messages_BotCallbackAnswer_Data") - proto.RegisterType((*Messages_BotCallbackAnswer)(nil), "mtproto.messages_BotCallbackAnswer") - proto.RegisterType((*TLMessagesBotCallbackAnswer)(nil), "mtproto.TL_messages_botCallbackAnswer") - proto.RegisterType((*SecureSecretSettings_Data)(nil), "mtproto.SecureSecretSettings_Data") - proto.RegisterType((*SecureSecretSettings)(nil), "mtproto.SecureSecretSettings") - proto.RegisterType((*TLSecureSecretSettings)(nil), "mtproto.TL_secureSecretSettings") - proto.RegisterType((*Authorization_Data)(nil), "mtproto.Authorization_Data") - proto.RegisterType((*Authorization)(nil), "mtproto.Authorization") - proto.RegisterType((*TLAuthorization)(nil), "mtproto.TL_authorization") - proto.RegisterType((*PhoneCallProtocol_Data)(nil), "mtproto.PhoneCallProtocol_Data") - proto.RegisterType((*PhoneCallProtocol)(nil), "mtproto.PhoneCallProtocol") - proto.RegisterType((*TLPhoneCallProtocol)(nil), "mtproto.TL_phoneCallProtocol") proto.RegisterType((*InputMessage_Data)(nil), "mtproto.InputMessage_Data") proto.RegisterType((*InputMessage)(nil), "mtproto.InputMessage") proto.RegisterType((*TLInputMessageID)(nil), "mtproto.TL_inputMessageID") proto.RegisterType((*TLInputMessageReplyTo)(nil), "mtproto.TL_inputMessageReplyTo") proto.RegisterType((*TLInputMessagePinned)(nil), "mtproto.TL_inputMessagePinned") - proto.RegisterType((*InputSecureValue_Data)(nil), "mtproto.InputSecureValue_Data") - proto.RegisterType((*InputSecureValue)(nil), "mtproto.InputSecureValue") - proto.RegisterType((*TLInputSecureValue)(nil), "mtproto.TL_inputSecureValue") - proto.RegisterType((*ChannelAdminLogEventAction_Data)(nil), "mtproto.ChannelAdminLogEventAction_Data") - proto.RegisterType((*ChannelAdminLogEventAction)(nil), "mtproto.ChannelAdminLogEventAction") - proto.RegisterType((*TLChannelAdminLogEventActionChangeTitle)(nil), "mtproto.TL_channelAdminLogEventActionChangeTitle") - proto.RegisterType((*TLChannelAdminLogEventActionChangeAbout)(nil), "mtproto.TL_channelAdminLogEventActionChangeAbout") - proto.RegisterType((*TLChannelAdminLogEventActionChangeUsername)(nil), "mtproto.TL_channelAdminLogEventActionChangeUsername") - proto.RegisterType((*TLChannelAdminLogEventActionChangePhoto)(nil), "mtproto.TL_channelAdminLogEventActionChangePhoto") - proto.RegisterType((*TLChannelAdminLogEventActionToggleInvites)(nil), "mtproto.TL_channelAdminLogEventActionToggleInvites") - proto.RegisterType((*TLChannelAdminLogEventActionToggleSignatures)(nil), "mtproto.TL_channelAdminLogEventActionToggleSignatures") - proto.RegisterType((*TLChannelAdminLogEventActionUpdatePinned)(nil), "mtproto.TL_channelAdminLogEventActionUpdatePinned") - proto.RegisterType((*TLChannelAdminLogEventActionEditMessage)(nil), "mtproto.TL_channelAdminLogEventActionEditMessage") - proto.RegisterType((*TLChannelAdminLogEventActionDeleteMessage)(nil), "mtproto.TL_channelAdminLogEventActionDeleteMessage") - proto.RegisterType((*TLChannelAdminLogEventActionParticipantJoin)(nil), "mtproto.TL_channelAdminLogEventActionParticipantJoin") - proto.RegisterType((*TLChannelAdminLogEventActionParticipantLeave)(nil), "mtproto.TL_channelAdminLogEventActionParticipantLeave") - proto.RegisterType((*TLChannelAdminLogEventActionParticipantInvite)(nil), "mtproto.TL_channelAdminLogEventActionParticipantInvite") - proto.RegisterType((*TLChannelAdminLogEventActionParticipantToggleBan)(nil), "mtproto.TL_channelAdminLogEventActionParticipantToggleBan") - proto.RegisterType((*TLChannelAdminLogEventActionParticipantToggleAdmin)(nil), "mtproto.TL_channelAdminLogEventActionParticipantToggleAdmin") - proto.RegisterType((*TLChannelAdminLogEventActionChangeStickerSet)(nil), "mtproto.TL_channelAdminLogEventActionChangeStickerSet") - proto.RegisterType((*TLChannelAdminLogEventActionTogglePreHistoryHidden)(nil), "mtproto.TL_channelAdminLogEventActionTogglePreHistoryHidden") - proto.RegisterType((*Account_Takeout_Data)(nil), "mtproto.account_Takeout_Data") - proto.RegisterType((*Account_Takeout)(nil), "mtproto.account_Takeout") - proto.RegisterType((*TLAccountTakeout)(nil), "mtproto.TL_account_takeout") - proto.RegisterType((*SecureRequiredType_Data)(nil), "mtproto.SecureRequiredType_Data") - proto.RegisterType((*SecureRequiredType)(nil), "mtproto.SecureRequiredType") - proto.RegisterType((*TLSecureRequiredType)(nil), "mtproto.TL_secureRequiredType") - proto.RegisterType((*TLSecureRequiredTypeOneOf)(nil), "mtproto.TL_secureRequiredTypeOneOf") - proto.RegisterType((*Messages_AffectedHistory_Data)(nil), "mtproto.messages_AffectedHistory_Data") - proto.RegisterType((*Messages_AffectedHistory)(nil), "mtproto.messages_AffectedHistory") - proto.RegisterType((*TLMessagesAffectedHistory)(nil), "mtproto.TL_messages_affectedHistory") - proto.RegisterType((*Config_Data)(nil), "mtproto.Config_Data") - proto.RegisterType((*Config)(nil), "mtproto.Config") - proto.RegisterType((*TLConfig)(nil), "mtproto.TL_config") - proto.RegisterType((*PrivacyKey_Data)(nil), "mtproto.PrivacyKey_Data") - proto.RegisterType((*PrivacyKey)(nil), "mtproto.PrivacyKey") - proto.RegisterType((*TLPrivacyKeyStatusTimestamp)(nil), "mtproto.TL_privacyKeyStatusTimestamp") - proto.RegisterType((*TLPrivacyKeyChatInvite)(nil), "mtproto.TL_privacyKeyChatInvite") - proto.RegisterType((*TLPrivacyKeyPhoneCall)(nil), "mtproto.TL_privacyKeyPhoneCall") - proto.RegisterType((*StickerSetCovered_Data)(nil), "mtproto.StickerSetCovered_Data") - proto.RegisterType((*StickerSetCovered)(nil), "mtproto.StickerSetCovered") - proto.RegisterType((*TLStickerSetCovered)(nil), "mtproto.TL_stickerSetCovered") - proto.RegisterType((*TLStickerSetMultiCovered)(nil), "mtproto.TL_stickerSetMultiCovered") - proto.RegisterType((*PostAddress_Data)(nil), "mtproto.PostAddress_Data") - proto.RegisterType((*PostAddress)(nil), "mtproto.PostAddress") - proto.RegisterType((*TLPostAddress)(nil), "mtproto.TL_postAddress") - proto.RegisterType((*Messages_AllStickers_Data)(nil), "mtproto.messages_AllStickers_Data") - proto.RegisterType((*Messages_AllStickers)(nil), "mtproto.messages_AllStickers") - proto.RegisterType((*TLMessagesAllStickersNotModified)(nil), "mtproto.TL_messages_allStickersNotModified") - proto.RegisterType((*TLMessagesAllStickers)(nil), "mtproto.TL_messages_allStickers") - proto.RegisterType((*Payments_ValidatedRequestedInfo_Data)(nil), "mtproto.payments_ValidatedRequestedInfo_Data") - proto.RegisterType((*Payments_ValidatedRequestedInfo)(nil), "mtproto.payments_ValidatedRequestedInfo") - proto.RegisterType((*TLPaymentsValidatedRequestedInfo)(nil), "mtproto.TL_payments_validatedRequestedInfo") - proto.RegisterType((*SchemeMethod_Data)(nil), "mtproto.SchemeMethod_Data") - proto.RegisterType((*SchemeMethod)(nil), "mtproto.SchemeMethod") - proto.RegisterType((*TLSchemeMethod)(nil), "mtproto.TL_schemeMethod") - proto.RegisterType((*Help_Support_Data)(nil), "mtproto.help_Support_Data") - proto.RegisterType((*Help_Support)(nil), "mtproto.help_Support") - proto.RegisterType((*TLHelpSupport)(nil), "mtproto.TL_help_support") - proto.RegisterType((*ChatParticipants_Data)(nil), "mtproto.ChatParticipants_Data") - proto.RegisterType((*ChatParticipants)(nil), "mtproto.ChatParticipants") - proto.RegisterType((*TLChatParticipantsForbidden)(nil), "mtproto.TL_chatParticipantsForbidden") - proto.RegisterType((*TLChatParticipants)(nil), "mtproto.TL_chatParticipants") - proto.RegisterType((*MessagesFilter_Data)(nil), "mtproto.MessagesFilter_Data") - proto.RegisterType((*MessagesFilter)(nil), "mtproto.MessagesFilter") - proto.RegisterType((*TLInputMessagesFilterEmpty)(nil), "mtproto.TL_inputMessagesFilterEmpty") - proto.RegisterType((*TLInputMessagesFilterPhotos)(nil), "mtproto.TL_inputMessagesFilterPhotos") - proto.RegisterType((*TLInputMessagesFilterVideo)(nil), "mtproto.TL_inputMessagesFilterVideo") - proto.RegisterType((*TLInputMessagesFilterPhotoVideo)(nil), "mtproto.TL_inputMessagesFilterPhotoVideo") - proto.RegisterType((*TLInputMessagesFilterDocument)(nil), "mtproto.TL_inputMessagesFilterDocument") - proto.RegisterType((*TLInputMessagesFilterUrl)(nil), "mtproto.TL_inputMessagesFilterUrl") - proto.RegisterType((*TLInputMessagesFilterGif)(nil), "mtproto.TL_inputMessagesFilterGif") - proto.RegisterType((*TLInputMessagesFilterVoice)(nil), "mtproto.TL_inputMessagesFilterVoice") - proto.RegisterType((*TLInputMessagesFilterMusic)(nil), "mtproto.TL_inputMessagesFilterMusic") - proto.RegisterType((*TLInputMessagesFilterChatPhotos)(nil), "mtproto.TL_inputMessagesFilterChatPhotos") - proto.RegisterType((*TLInputMessagesFilterPhoneCalls)(nil), "mtproto.TL_inputMessagesFilterPhoneCalls") - proto.RegisterType((*TLInputMessagesFilterRoundVoice)(nil), "mtproto.TL_inputMessagesFilterRoundVoice") - proto.RegisterType((*TLInputMessagesFilterRoundVideo)(nil), "mtproto.TL_inputMessagesFilterRoundVideo") - proto.RegisterType((*TLInputMessagesFilterMyMentions)(nil), "mtproto.TL_inputMessagesFilterMyMentions") - proto.RegisterType((*TLInputMessagesFilterGeo)(nil), "mtproto.TL_inputMessagesFilterGeo") - proto.RegisterType((*TLInputMessagesFilterContacts)(nil), "mtproto.TL_inputMessagesFilterContacts") - proto.RegisterType((*ChannelParticipantsFilter_Data)(nil), "mtproto.ChannelParticipantsFilter_Data") - proto.RegisterType((*ChannelParticipantsFilter)(nil), "mtproto.ChannelParticipantsFilter") - proto.RegisterType((*TLChannelParticipantsRecent)(nil), "mtproto.TL_channelParticipantsRecent") - proto.RegisterType((*TLChannelParticipantsAdmins)(nil), "mtproto.TL_channelParticipantsAdmins") - proto.RegisterType((*TLChannelParticipantsKicked)(nil), "mtproto.TL_channelParticipantsKicked") - proto.RegisterType((*TLChannelParticipantsBots)(nil), "mtproto.TL_channelParticipantsBots") - proto.RegisterType((*TLChannelParticipantsBanned)(nil), "mtproto.TL_channelParticipantsBanned") - proto.RegisterType((*TLChannelParticipantsSearch)(nil), "mtproto.TL_channelParticipantsSearch") - proto.RegisterType((*ExportedMessageLink_Data)(nil), "mtproto.ExportedMessageLink_Data") - proto.RegisterType((*ExportedMessageLink)(nil), "mtproto.ExportedMessageLink") - proto.RegisterType((*TLExportedMessageLink)(nil), "mtproto.TL_exportedMessageLink") - proto.RegisterType((*WebAuthorization_Data)(nil), "mtproto.WebAuthorization_Data") - proto.RegisterType((*WebAuthorization)(nil), "mtproto.WebAuthorization") - proto.RegisterType((*TLWebAuthorization)(nil), "mtproto.TL_webAuthorization") - proto.RegisterType((*SecureValueError_Data)(nil), "mtproto.SecureValueError_Data") - proto.RegisterType((*SecureValueError)(nil), "mtproto.SecureValueError") - proto.RegisterType((*TLSecureValueErrorData)(nil), "mtproto.TL_secureValueErrorData") - proto.RegisterType((*TLSecureValueErrorFrontSide)(nil), "mtproto.TL_secureValueErrorFrontSide") - proto.RegisterType((*TLSecureValueErrorReverseSide)(nil), "mtproto.TL_secureValueErrorReverseSide") - proto.RegisterType((*TLSecureValueErrorSelfie)(nil), "mtproto.TL_secureValueErrorSelfie") - proto.RegisterType((*TLSecureValueErrorFile)(nil), "mtproto.TL_secureValueErrorFile") - proto.RegisterType((*TLSecureValueErrorFiles)(nil), "mtproto.TL_secureValueErrorFiles") - proto.RegisterType((*TLSecureValueError)(nil), "mtproto.TL_secureValueError") - proto.RegisterType((*TLSecureValueErrorTranslationFile)(nil), "mtproto.TL_secureValueErrorTranslationFile") - proto.RegisterType((*TLSecureValueErrorTranslationFiles)(nil), "mtproto.TL_secureValueErrorTranslationFiles") - proto.RegisterType((*SchemeType_Data)(nil), "mtproto.SchemeType_Data") - proto.RegisterType((*SchemeType)(nil), "mtproto.SchemeType") - proto.RegisterType((*TLSchemeType)(nil), "mtproto.TL_schemeType") - proto.RegisterType((*PhotoSize_Data)(nil), "mtproto.PhotoSize_Data") - proto.RegisterType((*PhotoSize)(nil), "mtproto.PhotoSize") - proto.RegisterType((*TLPhotoSizeEmpty)(nil), "mtproto.TL_photoSizeEmpty") - proto.RegisterType((*TLPhotoSize)(nil), "mtproto.TL_photoSize") - proto.RegisterType((*TLPhotoCachedSize)(nil), "mtproto.TL_photoCachedSize") - proto.RegisterType((*PaymentRequestedInfo_Data)(nil), "mtproto.PaymentRequestedInfo_Data") - proto.RegisterType((*PaymentRequestedInfo)(nil), "mtproto.PaymentRequestedInfo") - proto.RegisterType((*TLPaymentRequestedInfo)(nil), "mtproto.TL_paymentRequestedInfo") - proto.RegisterType((*InputContact_Data)(nil), "mtproto.InputContact_Data") - proto.RegisterType((*InputContact)(nil), "mtproto.InputContact") - proto.RegisterType((*TLInputPhoneContact)(nil), "mtproto.TL_inputPhoneContact") - proto.RegisterType((*Photo_Data)(nil), "mtproto.Photo_Data") - proto.RegisterType((*Photo)(nil), "mtproto.Photo") - proto.RegisterType((*TLPhotoEmpty)(nil), "mtproto.TL_photoEmpty") - proto.RegisterType((*TLPhoto)(nil), "mtproto.TL_photo") - proto.RegisterType((*TLPhotoLayer86)(nil), "mtproto.TL_photoLayer86") - proto.RegisterType((*User_Data)(nil), "mtproto.User_Data") - proto.RegisterType((*User)(nil), "mtproto.User") - proto.RegisterType((*TLUserEmpty)(nil), "mtproto.TL_userEmpty") - proto.RegisterType((*TLUser)(nil), "mtproto.TL_user") - proto.RegisterType((*ChatParticipant_Data)(nil), "mtproto.ChatParticipant_Data") - proto.RegisterType((*ChatParticipant)(nil), "mtproto.ChatParticipant") - proto.RegisterType((*TLChatParticipant)(nil), "mtproto.TL_chatParticipant") - proto.RegisterType((*TLChatParticipantCreator)(nil), "mtproto.TL_chatParticipantCreator") - proto.RegisterType((*TLChatParticipantAdmin)(nil), "mtproto.TL_chatParticipantAdmin") - proto.RegisterType((*Contacts_Contacts_Data)(nil), "mtproto.contacts_Contacts_Data") - proto.RegisterType((*Contacts_Contacts)(nil), "mtproto.contacts_Contacts") - proto.RegisterType((*TLContactsContactsNotModified)(nil), "mtproto.TL_contacts_contactsNotModified") - proto.RegisterType((*TLContactsContacts)(nil), "mtproto.TL_contacts_contacts") - proto.RegisterType((*ChannelMessagesFilter_Data)(nil), "mtproto.ChannelMessagesFilter_Data") - proto.RegisterType((*ChannelMessagesFilter)(nil), "mtproto.ChannelMessagesFilter") - proto.RegisterType((*TLChannelMessagesFilterEmpty)(nil), "mtproto.TL_channelMessagesFilterEmpty") - proto.RegisterType((*TLChannelMessagesFilter)(nil), "mtproto.TL_channelMessagesFilter") - proto.RegisterType((*InlineBotSwitchPM_Data)(nil), "mtproto.InlineBotSwitchPM_Data") - proto.RegisterType((*InlineBotSwitchPM)(nil), "mtproto.InlineBotSwitchPM") - proto.RegisterType((*TLInlineBotSwitchPM)(nil), "mtproto.TL_inlineBotSwitchPM") + proto.RegisterType((*Payments_SavedInfo_Data)(nil), "mtproto.payments_SavedInfo_Data") + proto.RegisterType((*Payments_SavedInfo)(nil), "mtproto.payments_SavedInfo") + proto.RegisterType((*TLPaymentsSavedInfo)(nil), "mtproto.TL_payments_savedInfo") proto.RegisterType((*InputChatPhoto_Data)(nil), "mtproto.InputChatPhoto_Data") proto.RegisterType((*InputChatPhoto)(nil), "mtproto.InputChatPhoto") proto.RegisterType((*TLInputChatPhotoEmpty)(nil), "mtproto.TL_inputChatPhotoEmpty") proto.RegisterType((*TLInputChatUploadedPhoto)(nil), "mtproto.TL_inputChatUploadedPhoto") proto.RegisterType((*TLInputChatPhoto)(nil), "mtproto.TL_inputChatPhoto") - proto.RegisterType((*Auth_Authorization_Data)(nil), "mtproto.auth_Authorization_Data") - proto.RegisterType((*Auth_Authorization)(nil), "mtproto.auth_Authorization") - proto.RegisterType((*TLAuthAuthorization)(nil), "mtproto.TL_auth_authorization") - proto.RegisterType((*ChatInvite_Data)(nil), "mtproto.ChatInvite_Data") - proto.RegisterType((*ChatInvite)(nil), "mtproto.ChatInvite") - proto.RegisterType((*TLChatInviteAlready)(nil), "mtproto.TL_chatInviteAlready") - proto.RegisterType((*TLChatInvite)(nil), "mtproto.TL_chatInvite") - proto.RegisterType((*Account_SentEmailCode_Data)(nil), "mtproto.account_SentEmailCode_Data") - proto.RegisterType((*Account_SentEmailCode)(nil), "mtproto.account_SentEmailCode") - proto.RegisterType((*TLAccountSentEmailCode)(nil), "mtproto.TL_account_sentEmailCode") - proto.RegisterType((*Photos_Photos_Data)(nil), "mtproto.photos_Photos_Data") - proto.RegisterType((*Photos_Photos)(nil), "mtproto.photos_Photos") - proto.RegisterType((*TLPhotosPhotos)(nil), "mtproto.TL_photos_photos") - proto.RegisterType((*TLPhotosPhotosSlice)(nil), "mtproto.TL_photos_photosSlice") - proto.RegisterType((*NotifyPeer_Data)(nil), "mtproto.NotifyPeer_Data") - proto.RegisterType((*NotifyPeer)(nil), "mtproto.NotifyPeer") - proto.RegisterType((*TLNotifyPeer)(nil), "mtproto.TL_notifyPeer") - proto.RegisterType((*TLNotifyUsers)(nil), "mtproto.TL_notifyUsers") - proto.RegisterType((*TLNotifyChats)(nil), "mtproto.TL_notifyChats") - proto.RegisterType((*InputStickerSet_Data)(nil), "mtproto.InputStickerSet_Data") - proto.RegisterType((*InputStickerSet)(nil), "mtproto.InputStickerSet") - proto.RegisterType((*TLInputStickerSetEmpty)(nil), "mtproto.TL_inputStickerSetEmpty") - proto.RegisterType((*TLInputStickerSetID)(nil), "mtproto.TL_inputStickerSetID") - proto.RegisterType((*TLInputStickerSetShortName)(nil), "mtproto.TL_inputStickerSetShortName") - proto.RegisterType((*Messages_SavedGifs_Data)(nil), "mtproto.messages_SavedGifs_Data") - proto.RegisterType((*Messages_SavedGifs)(nil), "mtproto.messages_SavedGifs") - proto.RegisterType((*TLMessagesSavedGifsNotModified)(nil), "mtproto.TL_messages_savedGifsNotModified") - proto.RegisterType((*TLMessagesSavedGifs)(nil), "mtproto.TL_messages_savedGifs") - proto.RegisterType((*Upload_CdnFile_Data)(nil), "mtproto.upload_CdnFile_Data") - proto.RegisterType((*Upload_CdnFile)(nil), "mtproto.upload_CdnFile") - proto.RegisterType((*TLUploadCdnFileReuploadNeeded)(nil), "mtproto.TL_upload_cdnFileReuploadNeeded") - proto.RegisterType((*TLUploadCdnFile)(nil), "mtproto.TL_upload_cdnFile") + proto.RegisterType((*InputEncryptedFile_Data)(nil), "mtproto.InputEncryptedFile_Data") + proto.RegisterType((*InputEncryptedFile)(nil), "mtproto.InputEncryptedFile") + proto.RegisterType((*TLInputEncryptedFileEmpty)(nil), "mtproto.TL_inputEncryptedFileEmpty") + proto.RegisterType((*TLInputEncryptedFileUploaded)(nil), "mtproto.TL_inputEncryptedFileUploaded") + proto.RegisterType((*TLInputEncryptedFile)(nil), "mtproto.TL_inputEncryptedFile") + proto.RegisterType((*TLInputEncryptedFileBigUploaded)(nil), "mtproto.TL_inputEncryptedFileBigUploaded") + proto.RegisterType((*Auth_PasswordRecovery_Data)(nil), "mtproto.auth_PasswordRecovery_Data") + proto.RegisterType((*Auth_PasswordRecovery)(nil), "mtproto.auth_PasswordRecovery") + proto.RegisterType((*TLAuthPasswordRecovery)(nil), "mtproto.TL_auth_passwordRecovery") + proto.RegisterType((*FileHash_Data)(nil), "mtproto.FileHash_Data") + proto.RegisterType((*FileHash)(nil), "mtproto.FileHash") + proto.RegisterType((*TLFileHash)(nil), "mtproto.TL_fileHash") } func init() { - proto.RegisterFile("schema.tl.sync.proto", fileDescriptor_schema_tl_sync_aa1879c9cc095db6) -} - -var fileDescriptor_schema_tl_sync_aa1879c9cc095db6 = []byte{ - // 26099 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0xfd, 0x6d, 0x6c, 0x24, 0x47, - 0x9a, 0x27, 0x86, 0xa3, 0x48, 0x16, 0x59, 0xf5, 0xb0, 0xf8, 0xd2, 0x49, 0xb2, 0xbb, 0xba, 0x5b, - 0x2d, 0xa9, 0xa9, 0x91, 0xd4, 0x6a, 0x49, 0x2d, 0x35, 0x5b, 0xdd, 0xd2, 0x68, 0x34, 0xa3, 0xe1, - 0x4b, 0xb7, 0x9a, 0x12, 0xd9, 0x4d, 0x25, 0xd9, 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5d, - 0xb6, 0x63, 0x85, 0x56, 0x37, 0x61, 0x8a, 0xe0, 0xcd, 0x8f, 0x8e, 0xb6, 0xf8, 0x1b, 0x15, 0xaf, - 0xf8, 0x66, 0x3a, 0x26, 0x14, 0xaf, 0x4e, 0x02, 0x86, 0x6f, 0x70, 0x5a, 0x77, 0x24, 0x6f, 0x70, - 0xa6, 0x69, 0x99, 0x37, 0x58, 0x79, 0xf8, 0xc0, 0x10, 0xbb, 0x70, 0x05, 0x8f, 0x21, 0x89, 0xe7, - 0xaf, 0xf5, 0x43, 0x2b, 0x55, 0xf1, 0x96, 0x62, 0xf7, 0x8a, 0x26, 0x76, 0x3f, 0xd3, 0x4e, 0xf0, - 0x17, 0x15, 0x21, 0x00, 0xd4, 0x50, 0x47, 0xa1, 0xe0, 0xdc, 0xa7, 0xed, 0xba, 0x82, 0xb3, 0x93, - 0x6f, 0x4a, 0x59, 0xc0, 0x3f, 0x1d, 0x87, 0xa5, 0xec, 0x31, 0x4e, 0xfa, 0x81, 0x6a, 0x1c, 0x5a, - 0x51, 0x2b, 0x64, 0x6d, 0xff, 0x88, 0x85, 0x27, 0xe2, 0x58, 0x36, 0x7d, 0x68, 0x45, 0xa6, 0xc8, - 0xe2, 0x07, 0x70, 0x4e, 0x22, 0x8e, 0xca, 0x47, 0x7c, 0x37, 0x95, 0xaa, 0x5d, 0x73, 0x87, 0x56, - 0xa4, 0x6c, 0xb2, 0x91, 0x84, 0x93, 0x27, 0x4c, 0xc1, 0xef, 0xe1, 0x70, 0xf2, 0xb1, 0xc6, 0xf7, - 0xa0, 0xd1, 0xee, 0x85, 0x21, 0xf3, 0x62, 0xba, 0x08, 0x4c, 0x9c, 0x71, 0x11, 0x98, 0x16, 0xd4, - 0x78, 0x19, 0x58, 0x80, 0x6a, 0x14, 0x06, 0xad, 0x35, 0x61, 0x05, 0x36, 0x11, 0x85, 0xc1, 0x9a, - 0x62, 0x5b, 0x3d, 0xa9, 0xda, 0x56, 0xcb, 0xcb, 0x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89, 0x39, 0xbc, 0x3e, - 0x12, 0xd8, 0x6c, 0xbf, 0xd7, 0x41, 0xcb, 0xf4, 0x9a, 0x59, 0xe7, 0x39, 0x1b, 0x3c, 0xc3, 0xf8, - 0x90, 0x9f, 0x04, 0xad, 0xc8, 0xf7, 0xd0, 0x36, 0x5d, 0xbd, 0x83, 0x25, 0x33, 0x26, 0xce, 0xae, - 0x26, 0x92, 0x99, 0x82, 0x5c, 0xd3, 0x6f, 0x37, 0x74, 0xfd, 0xf6, 0xe5, 0x18, 0xea, 0x49, 0xed, - 0x51, 0x38, 0xda, 0xd5, 0x97, 0xbf, 0xee, 0x68, 0x37, 0x90, 0x65, 0x67, 0x38, 0xda, 0x2d, 0xc6, - 0xd8, 0xc0, 0x7d, 0x33, 0xc1, 0x90, 0x77, 0x93, 0x01, 0x51, 0x1e, 0xe1, 0xe6, 0x91, 0xa0, 0xa4, - 0x77, 0x92, 0x01, 0x71, 0x1e, 0xe2, 0x07, 0x21, 0xc1, 0x59, 0x6d, 0xb7, 0x59, 0x50, 0x02, 0x86, - 0x5c, 0xff, 0x26, 0x30, 0x43, 0xf6, 0x26, 0xbd, 0xca, 0x0c, 0x88, 0xf3, 0xcb, 0x0a, 0x5c, 0x4f, - 0x78, 0x58, 0x8f, 0xac, 0x23, 0x66, 0x9f, 0x6d, 0xc5, 0x33, 0x48, 0xf0, 0x0f, 0xd5, 0xe2, 0x67, - 0xfc, 0x6c, 0x8b, 0x9f, 0xbf, 0xa9, 0x86, 0x81, 0xd1, 0x9a, 0x33, 0xc4, 0x92, 0xfd, 0x58, 0x1f, - 0x92, 0xef, 0xe4, 0x99, 0x77, 0xf9, 0x8e, 0xcb, 0xf1, 0xd9, 0x87, 0xef, 0xa8, 0x6c, 0xc2, 0x03, - 0x95, 0x50, 0x35, 0x00, 0x1a, 0xe6, 0x19, 0x5f, 0xe3, 0xd5, 0xb4, 0xf8, 0x19, 0x43, 0x01, 0xff, - 0x97, 0x15, 0x58, 0x4a, 0xc8,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0x94, 0x20, 0x8e, 0x4a, 0x01, 0x6d, 0xa9, 0xde, - 0xae, 0x04, 0x10, 0x19, 0x39, 0x94, 0x41, 0xfb, 0xb3, 0x31, 0x58, 0x4c, 0xa4, 0x3c, 0xaa, 0xe3, - 0xe1, 0xac, 0x71, 0x71, 0x41, 0xd4, 0x9a, 0xf4, 0x04, 0x36, 0xae, 0x9e, 0xc0, 0xf0, 0xe4, 0x16, - 0xb5, 0x43, 0x27, 0x48, 0x8e, 0xdf, 0x75, 0x53, 0xcd, 0x92, 0xce, 0x02, 0xaa, 0xa9, 0xb3, 0x80, - 0xdb, 0x50, 0x8d, 0x0f, 0x7b, 0xdd, 0x7d, 0xe1, 0xb2, 0x68, 0x51, 0x55, 0x77, 0x4d, 0xdc, 0x86, - 0x10, 0x89, 0x71, 0x07, 0xa6, 0xda, 0xc4, 0x1a, 0xc4, 0x53, 0x61, 0x3f, 0x6a, 0x49, 0x64, 0x7c, - 0x02, 0x8d, 0x88, 0x29, 0x71, 0x65, 0x6b, 0x19, 0xd5, 0xf2, 0xac, 0x92, 0xa6, 0x39, 0xad, 0xc4, - 0xee, 0x4e, 0x19, 0x02, 0xf5, 0xd3, 0x18, 0x02, 0xef, 0x42, 0x4d, 0xc6, 0xce, 0x14, 0x46, 0x05, - 0x45, 0x6e, 0x4f, 0x24, 0x09, 0xda, 0x0a, 0x67, 0x46, 0x7d, 0x14, 0xb6, 0xc2, 0x45, 0x13, 0xab, - 0xdb, 0x0a, 0xef, 0x67, 0x1a, 0x51, 0x0a, 0xea, 0x09, 0x5e, 0x50, 0xf6, 0xd3, 0x61, 0xb4, 0x1d, - 0x6b, 0x18, 0xbc, 0x7f, 0x54, 0x81, 0x4b, 0xaa, 0xd4, 0xa9, 0x7f, 0xe4, 0x8c, 0x1b, 0x00, 0x9e, - 0xdf, 0x92, 0xaa, 0xd2, 0xc2, 0xc3, 0xa6, 0xe7, 0x7f, 0x2d, 0x54, 0xa3, 0x5f, 0x87, 0x39, 0xf4, -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x7e, 0x05, 0xa6, 0xc9, 0x9b, 0x65, 0x60, 0x85, 0x56, 0x17, 0x0d, 0x02, 0xeb, 0x26, 0x39, - 0xb8, 0xa4, 0x08, 0x90, 0x97, 0x61, 0x32, 0x60, 0xa1, 0xe3, 0xdb, 0x68, 0xf0, 0x57, 0x35, 0x45, - 0x6a, 0xf9, 0x08, 0x20, 0xdd, 0x29, 0x46, 0xe1, 0x0c, 0x21, 0xb3, 0x0f, 0xa5, 0x9a, 0x44, 0x57, - 0x53, 0xf7, 0xb2, 0xb6, 0x63, 0xe1, 0x0e, 0xb4, 0x65, 0x9d, 0xb0, 0xf0, 0x83, 0x07, 0x03, 0x83, - 0x6d, 0xe0, 0xc1, 0x37, 0x05, 0xa3, 0x13, 0xd2, 0xa0, 0x28, 0x5b, 0xf8, 0xed, 0x4c, 0x51, 0x9e, - 0x05, 0x7c, 0x4a, 0x30, 0x50, 0x42, 0xec, 0x0f, 0xdd, 0xa6, 0x72, 0x28, 0x9f, 0xa5, 0x91, 0x2a, - 0xb1, 0x30, 0x61, 0x38, 0x0d, 0x0a, 0xf4, 0x28, 0x75, 0xb5, 0x80, 0x85, 0x52, 0xa6, 0x3b, 0x28, - 0xce, 0xd3, 0x94, 0x31, 0xa0, 0x0d, 0x92, 0x7c, 0x1d, 0x86, 0xee, 0x61, 0x69, 0xa0, 0xec, 0x80, - 0x7f, 0xc5, 0xb7, 0x8d, 0x81, 0x51, 0x3e, 0x4f, 0x99, 0x47, 0x34, 0xe0, 0xce, 0xc1, 0xc3, 0x17, - 0xe8, 0x40, 0xd6, 0x1d, 0x7a, 0x41, 0xe1, 0x12, 0x28, 0x8d, 0x96, 0x1d, 0x79, 0x39, 0x50, 0xa5, - 0x01, 0xd7, 0x53, 0xe5, 0x0b, 0xea, 0x2a, 0xff, 0xa6, 0x0d, 0xbb, 0xae, 0xc4, 0x5e, 0x37, 0x34, - 0xce, 0x67, 0xcc, 0xdf, 0x72, 0x8e, 0x06, 0xc7, 0x79, 0x1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 0x63, 0xbb, 0xc5, 0x6b, 0x08, - 0xd1, 0xda, 0xd5, 0xac, 0x68, 0xe5, 0xd1, 0xb1, 0xfd, 0x98, 0x59, 0x36, 0x0b, 0xcd, 0xa9, 0x83, - 0x63, 0xfb, 0x51, 0xe8, 0x77, 0x8d, 0x97, 0x00, 0x8e, 0x1c, 0xab, 0x25, 0xc2, 0xa5, 0x93, 0xae, - 0x56, 0xed, 0xc8, 0xb1, 0xd6, 0x30, 0x62, 0x7a, 0x81, 0xbc, 0x67, 0xba, 0x40, 0xde, 0x23, 0x25, - 0x49, 0x0d, 0x5d, 0x93, 0x4b, 0x1e, 0xf9, 0x67, 0x74, 0x19, 0x50, 0xe2, 0x94, 0x68, 0xf6, 0x1c, - 0x4e, 0x89, 0x3e, 0x04, 0x7a, 0x54, 0xab, 0x8b, 0x11, 0xc0, 0x04, 0xbb, 0x6c, 0xb1, 0x28, 0x3a, - 0x98, 0x39, 0x1d, 0x2a, 0x51, 0xdb, 0x54, 0x49, 0xd3, 0xfc, 0x39, 0xbd, 0x19, 0x25, 0xae, 0x7d, - 0x2e, 0xa9, 0xae, 0x7d, 0xae, 0x43, 0x9d, 0xd9, 0x8e, 0x08, 0x55, 0x22, 0x82, 0x82, 0xf0, 0x0c, - 0x19, 0xa9, 0x84, 0x4f, 0x9d, 0x38, 0x18, 0x08, 0x8e, 0x1a, 0xf0, 0x2c, 0xfa, 0xf4, 0x1b, 0x37, - 0x00, 0x50, 0x31, 0x8c, 0xd9, 0x7c, 0xf4, 0x16, 0x51, 0x8f, 0xa5, 0x2e, 0x72, 0x36, 0x6d, 0xe3, - 0x4e, 0xa2, 0x55, 0xb9, 0x94, 0x61, 0x04, 0x16, 0x7a, 0x62, 0x5b, 0x0e, 0x60, 0x6a, 0xf8, 0x4f, - 0x7c, 0x5f, 0xad, 0xee, 0xa2, 0xaf, 0xef, 0x0f, 0x50, 0x70, 0xd5, 0x55, 0xa5, 0x5f, 0x03, 0xd5, - 0x27, 0x85, 0x72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aa, 0xe4, 0x15, 0x55, 0x95, 0x7c, 0x51, 0x65, 0x7a, 0x54, 0x25, - 0x7b, 0x31, 0xb1, 0xd4, 0x1b, 0x3f, 0xcd, 0x52, 0x4f, 0xb9, 0x82, 0x4e, 0x68, 0x57, 0x50, 0x3d, - 0xd8, 0x4b, 0x35, 0x1b, 0xec, 0x45, 0xe7, 0xb2, 0x4d, 0x66, 0xb9, 0x6c, 0x8a, 0x13, 0xae, 0xa9, - 0xac, 0x13, 0x2e, 0x0c, 0xc6, 0x20, 0xa4, 0xa1, 0xe3, 0xe6, 0x24, 0x4f, 0x52, 0x94, 0x8a, 0xa8, - 0xed, 0x87, 0x4c, 0x84, 0x28, 0xa2, 0x84, 0xe6, 0xee, 0x1f, 0xce, 0x70, 0xf7, 0x3f, 0x9d, 0x77, - 0xf7, 0xaf, 0x28, 0x8b, 0x37, 0x74, 0x65, 0x71, 0x19, 0xa8, 0x60, 0x66, 0xd8, 0x40, 0x05, 0xb3, - 0x7d, 0x02, 0x15, 0xdc, 0x01, 0xde, 0xe5, 0xb0, 0xc3, 0x72, 0x36, 0x02, 0xe2, 0x11, 0xeb, 0x58, - 0x6a, 0x0a, 0x2a, 0x1c, 0x31, 0xcb, 0xc5, 0xd1, 0x9c, 0xa7, 0x81, 0xe1, 0xc9, 0x4d, 0xbe, 0x86, - 0x26, 0x85, 0x67, 0x87, 0x4b, 0x99, 0xe0, 0x57, 0x3b, 0x99, 0xf0, 0xf7, 0x64, 0x38, 0x6c, 0x0a, - 0x72, 0x3e, 0x76, 0x76, 0x2f, 0x44, 0x4e, 0x90, 0x14, 0x7c, 0xca, 0xb4, 0x2a, 0xdf, 0x5d, 0xd0, - 0xe5, 0xbb, 0x97, 0x61, 0xd2, 0xf6, 0xbb, 0x96, 0xe3, 0x09, 0x13, 0x02, 0x91, 0x32, 0xde, 0x81, - 0x49, 0x74, 0x11, 0x14, 0x35, 0x97, 0xb2, 0x86, 0x68, 0x18, 0x71, 0x0f, 0x55, 0xd4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 0x62, 0x0e, 0x85, 0x09, - 0xf2, 0x4b, 0x62, 0x39, 0x6e, 0xea, 0x97, 0xc4, 0x72, 0x5c, 0x45, 0x69, 0x21, 0x01, 0x19, 0x9d, - 0xd2, 0x82, 0xde, 0xce, 0x74, 0x8f, 0x5a, 0x48, 0xcf, 0x7f, 0x9c, 0xe2, 0x5c, 0x02, 0xce, 0x73, - 0x62, 0x9d, 0x4b, 0xb8, 0x59, 0x8c, 0xe5, 0x88, 0x88, 0x37, 0x8a, 0x43, 0xd3, 0x81, 0x4d, 0xfb, - 0x5f, 0x87, 0x59, 0x14, 0x9c, 0x85, 0x4c, 0xa8, 0x0f, 0xe2, 0x09, 0xb1, 0x61, 0xce, 0xf0, 0x5c, - 0x53, 0x66, 0x26, 0x21, 0x33, 0x86, 0xf5, 0x5e, 0x7a, 0xba, 0x6b, 0xfb, 0xbc, 0xef, 0x50, 0x25, - 0xc0, 0x81, 0xe2, 0xbf, 0x74, 0x50, 0x94, 0x4f, 0x61, 0x46, 0x43, 0x19, 0x18, 0x40, 0xf1, 0xd4, - 0x9f, 0x06, 0xed, 0xf8, 0xe8, 0xc1, 0xc0, 0x38, 0x7f, 0x3c, 0x06, 0xf3, 0x42, 0x30, 0x97, 0x0a, - 0xdf, 0xde, 0x15, 0xfc, 0xb7, 0xca, 0x59, 0x62, 0xcb, 0x84, 0x35, 0x47, 0x22, 0xcb, 0xb1, 0x42, - 0x91, 0xe5, 0xb8, 0x22, 0xb2, 0x2c, 0x76, 0xd2, 0x80, 0xe1, 0x7f, 0x5c, 0xd6, 0x8a, 0xfd, 0xe7, - 0xcc, 0x13, 0x22, 0x4e, 0x94, 0x9e, 0xee, 0xf1, 0x0c, 0xbe, 0x22, 0x84, 0x92, 0xb5, 0xe3, 0x7b, - 0xad, 0xe7, 0xec, 0x04, 0x39, 0x77, 0x0d, 0x73, 0x26, 0xcd, 0xfd, 0x82, 0x9d, 0x18, 0xaf, 0x81, - 0x92, 0xd1, 0x72, 0x8e, 0x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0xb6, 0x1d, 0xa3, 0x98, 0xab, 0xc2, 0xbe, 0xea, 0x23, 0x9b, 0x90, 0xc8, 0x6e, - 0x95, 0x03, 0xa3, 0x89, 0xcf, 0x82, 0x91, 0x47, 0x80, 0x72, 0x88, 0xab, 0x70, 0x0d, 0xa5, 0x62, - 0xf2, 0xac, 0x64, 0xb2, 0xb6, 0x7f, 0xc4, 0xc2, 0x13, 0x9a, 0xaf, 0xd7, 0x60, 0x06, 0x85, 0x23, - 0x2d, 0x29, 0x08, 0x25, 0x7e, 0x60, 0x03, 0x33, 0x77, 0x84, 0x34, 0xf4, 0x97, 0x15, 0x58, 0x2a, - 0xc4, 0x18, 0x85, 0xfe, 0x4f, 0xff, 0xc6, 0xea, 0x51, 0x0a, 0x91, 0x2e, 0xc8, 0x36, 0x68, 0x08, - 0xd8, 0xd7, 0x60, 0x46, 0x5a, 0x26, 0xab, 0x5a, 0xca, 0x96, 0x8c, 0x4e, 0xc8, 0x7f, 0xa3, 0x42, - 0xb6, 0x20, 0x1a, 0x89, 0x42, 0xb6, 0xda, 0x80, 0x8c, 0x42, 0xb6, 0x7c, 0xec, 0x60, 0x95, 0x4d, - 0x30, 0x34, 0x6f, 0x73, 0xc5, 0x8a, 0xbb, 0xef, 0x80, 0x91, 0xd8, 0x83, 0x93, 0x37, 0x3a, 0xf9, - 0xc9, 0xab, 0x9b, 0xf3, 0xb2, 0x84, 0x00, 0x36, 0xed, 0xe5, 0x9f, 0xc2, 0x8c, 0x86, 0x39, 0x0a, - 0x1f, 0x6b, 0xf9, 0x46, 0xeb, 0x6e, 0x92, 0x03, 0xad, 0x01, 0x25, 0x60, 0xfe, 0x64, 0x4c, 0xda, - 0xf3, 0x09, 0x92, 0xd4, 0xfa, 0xbb, 0x78, 0x8c, 0xb2, 0x2e, 0x2b, 0xc7, 0xf2, 0x2e, 0x2b, 0x51, - 0x79, 0xee, 0x48, 0xf2, 0x95, 0xf0, 0xb7, 0xf1, 0xba, 0x58, 0x45, 0x13, 0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xa6, 0x34, 0xef, 0x26, 0x47, 0x00, 0x69, - 0xab, 0x47, 0xa1, 0x74, 0x9a, 0x19, 0x13, 0xdd, 0x14, 0x20, 0x4a, 0x0a, 0xcf, 0x30, 0x05, 0xe8, - 0x83, 0x42, 0xaa, 0xab, 0x29, 0xca, 0xc0, 0x00, 0xff, 0xcb, 0x38, 0x2c, 0x65, 0x1d, 0x49, 0x24, - 0xca, 0x8f, 0xd2, 0xfd, 0x44, 0x45, 0x8f, 0xcd, 0xb2, 0x02, 0x35, 0x74, 0xee, 0xe8, 0x24, 0x91, - 0xca, 0x2f, 0x67, 0xdd, 0x16, 0x3f, 0x44, 0xe7, 0x8f, 0x66, 0x42, 0x67, 0x7c, 0x08, 0x8d, 0x90, - 0x05, 0xee, 0x49, 0xab, 0x6b, 0x85, 0xcf, 0x7b, 0x81, 0x10, 0x84, 0xaa, 0xef, 0x5b, 0xe0, 0x9e, - 0x6c, 0x63, 0x99, 0x39, 0x1d, 0xa6, 0x09, 0xfe, 0x99, 0xf0, 0x7c, 0xbe, 0x03, 0xe0, 0xfe, 0x4a, - 0x9e, 0x70, 0xea, 0x9e, 0xff, 0x35, 0x65, 0x18, 0xaf, 0xc1, 0x78, 0x87, 0xf9, 0x39, 0x4e, 0x75, - 0xe2, 0xb1, 0x98, 0x97, 0xf2, 0xb9, 0x0f, 0x58, 0xe8, 0xf8, 0xd2, 0x41, 0x8e, 0x48, 0xa5, 0x5f, - 0xbf, 0x29, 0xf5, 0xeb, 0xd7, 0x84, 0x29, 0xe9, 0x37, 0x87, 0xbe, 0x8a, 0x32, 0xc9, 0xbf, 0x27, - 0x89, 0xdf, 0x59, 0xfa, 0x28, 0x26, 0x69, 0xe3, 0x2a, 0xd4, 0x8e, 0x98, 0xd7, 0x43, 0x99, 0x05, - 0x85, 0x08, 0x9a, 0xc2, 0x34, 0xc9, 0xe9, 0xa9, 0x08, 0xbf, 0x74, 0xc2, 0x57, 0x06, 0xe6, 0xe0, - 0x97, 0xee, 0x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, 0x40, - 0xa3, 0x08, 0x93, 0x90, 0x6b, 0xa8, 0x1e, 0x26, 0xa1, 0xad, 0x3e, 0x7e, 0x70, 0x90, 0x7f, 0x3c, - 0x0e, 0xd3, 0x64, 0xae, 0x93, 0x70, 0xc6, 0xc8, 0xf1, 0x81, 0x78, 0xa5, 0x44, 0x8a, 0x1f, 0x49, - 0x85, 0xb3, 0x06, 0x7e, 0x32, 0x11, 0x6f, 0x14, 0x50, 0x16, 0x3f, 0x82, 0x24, 0x86, 0x4b, 0xe3, - 0xfd, 0xcd, 0xaf, 0x5f, 0x81, 0xe9, 0xd8, 0x0f, 0x12, 0x6f, 0x5d, 0x74, 0x4e, 0x85, 0xd8, 0x0f, - 0x52, 0x67, 0x5c, 0x05, 0x9e, 0x26, 0xaa, 0x03, 0x78, 0x9a, 0x98, 0x3c, 0x9f, 0xa7, 0x89, 0xa9, - 0xbc, 0xa7, 0x89, 0x15, 0x58, 0x92, 0xfd, 0xe3, 0x87, 0x31, 0x3f, 0x71, 0xab, 0x41, 0xae, 0xff, - 0x16, 0x44, 0x4f, 0x45, 0x19, 0xd5, 0x29, 0xb0, 0xef, 0xa8, 0x0f, 0x6e, 0xdf, 0x91, 0x0b, 0xce, - 0x82, 0x4b, 0x39, 0xb4, 0x0e, 0xc8, 0x3d, 0x88, 0xba, 0x94, 0x37, 0x78, 0xae, 0x74, 0x63, 0x46, - 0x34, 0xcb, 0x1e, 0x4c, 0xd2, 0xfc, 0x0d, 0xb1, 0xf6, 0x6e, 0xeb, 0xcb, 0x66, 0x31, 0x63, 0xc8, - 0x95, 0xd1, 0x44, 0xac, 0x27, 0x56, 0x60, 0x03, 0x55, 0x3c, 0x80, 0xcb, 0xc9, 0x26, 0xbf, 0x71, - 0xb8, 0xee, 0x7b, 0x07, 0x4e, 0xba, 0xe6, 0x42, 0xcb, 0xb3, 0xfd, 0xae, 0xd0, 0xb6, 0x17, 0x29, - 0x52, 0xac, 0x1f, 0xd3, 0x14, 0xeb, 0xc7,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 0xf8, 0xf7, 0x64, 0x54, 0xdd, 0xb3, 0xec, - 0xec, 0x4a, 0xbb, 0xcf, 0xd1, 0x4c, 0xe8, 0x26, 0xfa, 0x9a, 0xd0, 0x55, 0x55, 0x13, 0xba, 0xac, - 0x02, 0xd7, 0x64, 0xce, 0xe5, 0x45, 0xa2, 0x37, 0x73, 0x21, 0x96, 0x76, 0xa7, 0x2b, 0x8d, 0xf4, - 0xb1, 0x73, 0xfb, 0xb2, 0xc8, 0x93, 0x6d, 0xe2, 0x3e, 0xa6, 0x14, 0xa4, 0xe2, 0xb2, 0x49, 0xe9, - 0x57, 0x29, 0xa8, 0x5f, 0x54, 0xe0, 0x55, 0xb1, 0x72, 0x92, 0xab, 0xa6, 0x12, 0xd9, 0x51, 0x3a, - 0xa4, 0x99, 0x56, 0x82, 0x25, 0x0a, 0x29, 0xd3, 0xf5, 0xec, 0x22, 0x52, 0xaa, 0x99, 0x2a, 0xfd, - 0xf9, 0x24, 0xa4, 0xfc, 0xfd, 0x3a, 0xa5, 0x21, 0xa3, 0x78, 0xbf, 0xce, 0xea, 0x77, 0xe1, 0xfb, - 0x95, 0xdc, 0xe1, 0xd5, 0xc6, 0x0d, 0xfd, 0x88, 0xff, 0x69, 0x0c, 0xae, 0xa8, 0xef, 0xa2, 0xe9, - 0x74, 0x0e, 0x65, 0x04, 0x8f, 0x57, 0x60, 0x9a, 0xc3, 0x74, 0x18, 0x89, 0x43, 0x69, 0xf3, 0x06, - 0xca, 0x42, 0x46, 0xe0, 0x6b, 0x30, 0x13, 0xf8, 0x51, 0x9c, 0xf2, 0x8b, 0x68, 0x2b, 0x6f, 0xf0, - 0xcc, 0xed, 0x94, 0x3b, 0x35, 0xc3, 0xf7, 0xb7, 0x94, 0x88, 0x36, 0xf6, 0x06, 0xcf, 0x4c, 0x88, - 0xde, 0x84, 0x39, 0xda, 0xee, 0x52, 0x32, 0x61, 0x97, 0x43, 0xd9, 0x09, 0xe1, 0x75, 0xa8, 0xef, - 0x5b,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x27, 0x3a, - 0xb3, 0x6c, 0xd7, 0x7d, 0xd7, 0xe5, 0xa7, 0x96, 0x21, 0x37, 0x07, 0xd7, 0xb1, 0x59, 0x74, 0xe8, - 0x1f, 0x0f, 0xdb, 0x1a, 0xf1, 0xbd, 0x19, 0x6e, 0x7c, 0x57, 0xf9, 0xa7, 0x69, 0x50, 0x8c, 0x7f, - 0x3a, 0x06, 0x33, 0xba, 0x8a, 0x40, 0x19, 0xaf, 0x64, 0xb9, 0x9b, 0xb7, 0xa6, 0x41, 0x30, 0x91, - 0xd1, 0x20, 0x90, 0x2a, 0x07, 0x55, 0x45, 0xe5, 0xe0, 0x16, 0x54, 0x31, 0x90, 0xb1, 0x38, 0x28, - 0x1a, 0xba, 0xa2, 0xc7, 0xae, 0xf3, 0x2d, 0x33, 0x89, 0x20, 0xf5, 0xd7, 0x31, 0xa5, 0xf8, 0xeb, - 0x50, 0xfc, 0x02, 0xd4, 0x74, 0x8f, 0xb8, 0xba, 0xba, 0x42, 0x7d, 0x10, 0x75, 0x85, 0x82, 0x50, - 0x6f, 0x50, 0x14, 0xea, 0x2d, 0x84, 0xda, 0x05, 0x28, 0x33, 0xf4, 0x0f, 0x1a, 0x52, 0xa4, 0x77, - 0xf0, 0x43, 0xdc, 0xfb, 0xa4, 0x42, 0x0b, 0x5d, 0x5c, 0x07, 0x43, 0x10, 0x31, 0x4b, 0x64, 0xc3, - 0x07, 0xab, 0xbc, 0x86, 0xfb, 0xb7, 0xac, 0x2c, 0x03, 0x7d, 0x0d, 0x86, 0xf1, 0x1f, 0x54, 0x60, - 0x5e, 0xf1, 0x97, 0xd7, 0x4f, 0x41, 0xa5, 0x6f, 0x60, 0x4f, 0x85, 0x15, 0x34, 0xae, 0xb1, 0x82, - 0x3e, 0x40, 0x66, 0x64, 0xdc, 0x12, 0xd2, 0x21, 0xba, 0xc6, 0x2e, 0x68, 0x67, 0x3c, 0xba, 0x6d, - 0x23, 0x87, 0x52, 0xb2, 0x1f, 0xde, 0x81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3f, 0x00, 0x00, 0xff, 0xff, 0x29, 0x5e, 0x87, 0x6d, 0x0d, + proto.RegisterFile("schema.tl.sync.proto", fileDescriptor_schema_tl_sync_379ba0ea4726162e) +} + +var fileDescriptor_schema_tl_sync_379ba0ea4726162e = []byte{ + // 26291 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0xbd, 0x5f, 0x6c, 0x1c, 0x49, + 0x9a, 0x27, 0x86, 0x22, 0x59, 0x64, 0xd5, 0x57, 0x24, 0x45, 0xa6, 0x28, 0x89, 0x92, 0x5a, 0xad, + 0x16, 0xbb, 0xd5, 0x52, 0xab, 0xbb, 0xd5, 0x2d, 0xaa, 0xa5, 0xee, 0xe9, 0xe9, 0xee, 0x19, 0xfe, + 0x91, 0xd4, 0xec, 0x16, 0x25, 0x4e, 0x92, 0xea, 0xde, 0xd9, 0xd9, 0xdd, 0x42, 0xb2, 0x32, 0x58, + 0xcc, 0x61, 0x56, 0x66, 0x76, 0x66, 0x16, 0x29, 0x36, 0x7a, 0x07, 0xde, 0xf1, 0xde, 0xe2, 0x6e, + 0x6f, 0xb1, 0x37, 0x5e, 0xef, 0xcd, 0x2d, 0xce, 0xeb, 0xdb, 0xdd, 0x3b, 0xc0, 0xf0, 0x1f, 0x78, + 0x61, 0x1b, 0x67, 0xe3, 0xe0, 0xb3, 0x0f, 0x77, 0x86, 0x0f, 0xb0, 0x01, 0x1b, 0xf0, 0x8b, 0x61, + 0xc3, 0x0f, 0x07, 0x3f, 0xec, 0x83, 0x1f, 0x0c, 0x03, 0xc6, 0xda, 0x0f, 0x36, 0x6c, 0xc3, 0x88, + 0xef, 0x8b, 0xc8, 0x8c, 0xc8, 0xcc, 0x2a, 0xb2, 0xb2, 0x58, 0x0b, 0xfb, 0xa9, 0x2a, 0x22, 0xbe, + 0xf8, 0x65, 0x44, 0x64, 0x64, 0xc4, 0x17, 0x5f, 0x7c, 0x7f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 0x15, 0x2b, 0x23, 0x5b, 0xcf, 0x69, 0x22, 0x85, + 0x66, 0x25, 0x08, 0xce, 0x18, 0x71, 0xbb, 0x13, 0x95, 0x45, 0xfc, 0x11, 0x5e, 0x83, 0xe6, 0x10, + 0x51, 0xa9, 0xa9, 0x24, 0xe4, 0x57, 0x28, 0x63, 0xcb, 0x41, 0x3e, 0x76, 0xad, 0x68, 0x7f, 0x18, + 0xdc, 0x75, 0x78, 0x45, 0xf0, 0x6a, 0xc8, 0xf9, 0x9e, 0x78, 0x9e, 0x49, 0x54, 0x59, 0xc6, 0x14, + 0x55, 0x16, 0xe4, 0xf2, 0x7b, 0xc0, 0x8c, 0x82, 0xcb, 0xef, 0xd7, 0xe2, 0x74, 0x67, 0x7a, 0x35, + 0xf5, 0x42, 0x92, 0xa5, 0x5c, 0xb3, 0x42, 0x7b, 0x38, 0xf8, 0xdf, 0xab, 0xc0, 0xc5, 0x16, 0x69, + 0x01, 0x44, 0xcd, 0x35, 0xf9, 0x07, 0x87, 0xec, 0x1d, 0xa8, 0xc9, 0x12, 0xb1, 0xd4, 0xa5, 0xca, + 0x2c, 0x82, 0xd2, 0x4c, 0x28, 0x50, 0xf7, 0x04, 0x2d, 0x21, 0x68, 0x3d, 0x13, 0xbc, 0x2c, 0x66, + 0xad, 0xa1, 0xcf, 0x98, 0x64, 0x3d, 0x1c, 0xef, 0xc3, 0x1e, 0xf0, 0x8f, 0x33, 0xd7, 0x9c, 0x51, + 0x7c, 0x9c, 0xc5, 0x7d, 0xd6, 0x7d, 0x69, 0x24, 0x34, 0xf2, 0xcf, 0xa9, 0x7c, 0x69, 0xf4, 0x47, + 0x26, 0xce, 0x2e, 0x87, 0x5c, 0x16, 0xce, 0x86, 0xa5, 0xd4, 0xd9, 0x06, 0xf3, 0x52, 0x1b, 0x24, + 0xcd, 0xa5, 0x46, 0x91, 0x37, 0xa3, 0x3b, 0x42, 0x8f, 0x2f, 0x2b, 0x7e, 0x49, 0x10, 0x52, 0x5d, +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 0xa9, 0xe7, 0x30, + 0xe8, 0x2a, 0x4f, 0x41, 0x71, 0x73, 0xca, 0x82, 0xae, 0xc0, 0xfc, 0x53, 0x6b, 0x97, 0xb9, 0xcc, + 0xde, 0x0a, 0x9d, 0x56, 0x2a, 0xd8, 0x71, 0x79, 0xa6, 0x18, 0x78, 0x4a, 0xe0, 0xc9, 0xa0, 0x93, + 0x88, 0xb1, 0xc7, 0x4d, 0x91, 0x5a, 0xfa, 0x16, 0xa6, 0x55, 0x88, 0x51, 0x78, 0x4f, 0xcb, 0x35, + 0x51, 0xf7, 0x9e, 0xe6, 0xaa, 0x8f, 0x1f, 0x1c, 0xe4, 0xdf, 0x1f, 0x87, 0x39, 0xba, 0xec, 0xfc, + 0xca, 0x72, 0xbb, 0x4c, 0xca, 0xf9, 0xe9, 0xc8, 0x58, 0x29, 0xbc, 0x15, 0x45, 0x42, 0x7e, 0x1e, + 0x13, 0x87, 0xc9, 0x5b, 0x42, 0xa3, 0x6b, 0x2c, 0x2b, 0x85, 0x44, 0x6a, 0x7c, 0x18, 0xe9, 0x74, + 0x2d, 0x03, 0xec, 0x85, 0xbe, 0x17, 0x37, 0x23, 0xc7, 0x66, 0x39, 0x57, 0x22, 0xe9, 0x95, 0xab, + 0x59, 0x47, 0xb2, 0x6d, 0xc7, 0x66, 0xc6, 0x43, 0x98, 0x0e, 0xd9, 0x21, 0x0b, 0x23, 0x46, 0xb5, + 0x26, 0x7a, 0xd7, 0x6a, 0x08, 0x42, 0xac, 0xf7, 0x36, 0x4c, 0x46, 0xcc, 0xdd, 0x73, 0x98, 0xd0, + 0x1c, 0x2b, 0xac, 0x21, 0x48, 0x8c, 0x07, 0xd0, 0x40, 0xbd, 0x2f, 0x97, 0x8e, 0x85, 0x93, 0xc8, + 0xad, 0x17, 0x3f, 0x43, 0xa1, 0x33, 0xde, 0x82, 0xea, 0x9e, 0xe3, 0xb2, 0x68, 0x71, 0xaa, 0x77, + 0x05, 0xa2, 0x30, 0x3e, 0x04, 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0x6b, 0xfe, 0x21, 0x0b, 0x99, 0x6d, 0x22, + 0x1d, 0xea, 0x09, 0xf7, 0x7c, 0xcc, 0x28, 0xf4, 0x84, 0xfb, 0xf7, 0x49, 0x76, 0x7e, 0x1f, 0x6e, + 0xa9, 0x6c, 0xd8, 0x5e, 0x86, 0x56, 0x65, 0xf4, 0x86, 0x7c, 0x12, 0x69, 0x24, 0xf7, 0x7c, 0xd2, + 0xb0, 0xf0, 0x7f, 0x3e, 0x06, 0x86, 0xa6, 0x51, 0x47, 0xaf, 0xee, 0x2d, 0x98, 0x23, 0x5f, 0x59, + 0x21, 0x6b, 0x3b, 0x51, 0xcc, 0x5f, 0x88, 0xd0, 0x79, 0x38, 0x87, 0xf9, 0x66, 0x92, 0xcd, 0xdf, + 0x68, 0xe2, 0xac, 0x58, 0x7d, 0xa3, 0x39, 0x3d, 0x3d, 0x71, 0x70, 0x7c, 0x13, 0x08, 0x02, 0xc3, + 0xc9, 0x91, 0x1e, 0x32, 0x89, 0x30, 0x66, 0x84, 0x59, 0xa8, 0x4d, 0xca, 0xc8, 0xf7, 0xa1, 0xee, + 0xb1, 0x97, 0x71, 0x6a, 0x0e, 0xa8, 0x2a, 0x46, 0x20, 0x78, 0x02, 0x5c, 0xe3, 0x84, 0x78, 0x57, + 0xb8, 0x08, 0x53, 0xb1, 0xd3, 0x61, 0x7e, 0x57, 0xde, 0x2a, 0xcb, 0x64, 0xa1, 0x9f, 0xd9, 0xc9, + 0x12, 0x7e, 0x66, 0xbf, 0x83, 0x19, 0xad, 0x67, 0xa3, 0xb8, 0x99, 0xce, 0xbf, 0x10, 0xfd, 0x66, + 0x5a, 0x53, 0x9b, 0x2c, 0x03, 0xf3, 0x63, 0xb8, 0x22, 0x15, 0xd6, 0x51, 0x15, 0xa9, 0x63, 0x39, + 0x6e, 0xfa, 0xf2, 0x5f, 0x87, 0x19, 0x94, 0x26, 0x35, 0xa5, 0xe6, 0x2c, 0x71, 0xa4, 0xd3, 0x98, + 0xb9,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e, 0x22, 0xf0, 0x6b, 0xfa, 0xe8, 0x41, 0x01, 0xfe, + 0x41, 0x05, 0x2e, 0x14, 0x47, 0xd2, 0xbb, 0x0a, 0x75, 0xf2, 0x53, 0xdb, 0x4c, 0x74, 0x78, 0x6a, + 0x94, 0xb1, 0x61, 0x73, 0x46, 0x1b, 0xc5, 0xaa, 0x69, 0x90, 0x28, 0x9e, 0x54, 0x02, 0xf2, 0xaa, + 0xe1, 0x91, 0x12, 0xa5, 0x8e, 0x09, 0x55, 0xa9, 0x43, 0x46, 0xe5, 0xab, 0x9e, 0x22, 0x2a, 0xdf, + 0xcf, 0x2b, 0x30, 0x77, 0x86, 0x81, 0xf8, 0x7a, 0x5e, 0x93, 0xf6, 0x0d, 0x58, 0x47, 0x77, 0xae, + 0x2c, 0xdb, 0x8c, 0x72, 0x60, 0x26, 0xb2, 0x29, 0x59, 0x30, 0xe1, 0x81, 0xab, 0x24, 0xe6, 0xbf, + 0x5a, 0x81, 0x8b, 0x39, 0x27, 0x73, 0x03, 0xc5, 0xd3, 0xbb, 0xc5, 0x27, 0xfc, 0x61, 0x72, 0xaa, + 0x2c, 0x90, 0xac, 0x50, 0xb9, 0xf1, 0x16, 0x4c, 0xe2, 0x9f, 0x3e, 0x32, 0x18, 0x41, 0x40, 0x21, + 0x4d, 0xb2, 0xad, 0x1a, 0x49, 0x48, 0x93, 0xc2, 0xae, 0xeb, 0x2a, 0xe6, 0x51, 0xae, 0x21, 0x25, + 0xe1, 0xc8, 0x3d, 0x64, 0x0a, 0xb7, 0xd9, 0x75, 0x63, 0x67, 0x48, 0xcc, 0xc7, 0x70, 0x5e, 0x7a, + 0x12, 0xa0, 0x08, 0xe7, 0xe5, 0xfc, 0xb5, 0x2c, 0xfd, 0x4c, 0xd8, 0x70, 0x25, 0x38, 0xa3, 0x70, + 0x80, 0x55, 0xd0, 0x52, 0xdd, 0x01, 0x96, 0xa3, 0x37, 0xa1, 0x0c, 0xd0, 0x4f, 0x61, 0x11, 0xfd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x69, 0x8c, 0x79, 0xcf, 0x30, 0x2b, 0x13, 0x6e, + 0xae, 0xda, 0x37, 0xdc, 0xdc, 0x64, 0x26, 0xdc, 0xdc, 0x02, 0x54, 0x0f, 0x5b, 0x56, 0x68, 0x4b, + 0xcf, 0x06, 0x98, 0x50, 0x15, 0x67, 0x6a, 0x9a, 0xe2, 0x8c, 0x3a, 0xbf, 0xea, 0x27, 0xce, 0x2f, + 0xe3, 0x0e, 0x4c, 0x49, 0xaf, 0xd6, 0x34, 0x1b, 0xe7, 0xd4, 0x4f, 0x64, 0x8b, 0x4f, 0x72, 0x49, + 0x90, 0x7e, 0xc4, 0x0d, 0xf5, 0x23, 0x5e, 0x84, 0x29, 0xcb, 0xb6, 0x43, 0x16, 0x45, 0x32, 0x7c, + 0x94, 0x48, 0x62, 0x08, 0x2d, 0xe9, 0xd8, 0x71, 0x46, 0x84, 0xd0, 0x92, 0xee, 0x1c, 0x2f, 0x43, + 0x8d, 0x9c, 0x4c, 0x3a, 0xb6, 0x08, 0xbf, 0x37, 0x85, 0x69, 0x92, 0xd8, 0x50, 0x11, 0xae, 0x22, + 0x14, 0x7d, 0xaf, 0x8e, 0x39, 0x68, 0x96, 0x70, 0x03, 0x26, 0xda, 0x32, 0xf4, 0x9e, 0xba, 0xe5, + 0x73, 0x76, 0xce, 0xc4, 0x22, 0xe3, 0x13, 0xb8, 0x92, 0x18, 0xc6, 0x88, 0xc6, 0x34, 0x43, 0xa9, + 0x81, 0x8e, 0x57, 0x9e, 0x35, 0x73, 0x51, 0x52, 0xac, 0x10, 0x41, 0xaa, 0xa1, 0xce, 0xd7, 0x2f, + 0x16, 0xd1, 0x9d, 0x67, 0xcd, 0xc4, 0xff, 0xd9, 0x95, 0xea, 0x7c, 0xa1, 0x35, 0x27, 0x4d, 0xba, + 0xe5, 0xf7, 0xf1, 0x3e, 0xb3, 0xe7, 0x62, 0x83, 0x54, 0xcb, 0xef, 0xa3, 0x9f, 0x57, 0xd6, 0x62, + 0x4e, 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, 0xdc, 0xce, + 0xd3, 0xa6, 0x9c, 0x5f, 0xb4, 0xf3, 0x0e, 0x86, 0x40, 0xea, 0x4b, 0xc9, 0x0c, 0x1d, 0xac, 0xf2, + 0xaf, 0x82, 0x21, 0x76, 0x44, 0x35, 0xb4, 0x61, 0x4f, 0x3d, 0xf1, 0x34, 0x52, 0xf2, 0xd8, 0x89, + 0x91, 0x92, 0x97, 0xbe, 0x83, 0x19, 0x0d, 0x7b, 0x14, 0xa2, 0xa0, 0x7c, 0xe3, 0x0b, 0x45, 0x41, + 0xa2, 0x01, 0x25, 0x60, 0xde, 0x82, 0xf3, 0x2b, 0x74, 0xbf, 0xba, 0x6e, 0x1d, 0x47, 0x3b, 0x3b, + 0x4f, 0x15, 0xd7, 0xaf, 0xc7, 0x51, 0xea, 0xfa, 0xf5, 0x18, 0x6d, 0x06, 0x74, 0xd2, 0x51, 0xd8, + 0x0c, 0x14, 0x34, 0x46, 0xb7, 0x19, 0xb0, 0xf4, 0x26, 0x94, 0x01, 0xfa, 0x3f, 0x2a, 0x70, 0x29, + 0xef, 0x05, 0x33, 0x51, 0x77, 0xf0, 0xac, 0xd8, 0x39, 0x64, 0x78, 0x7c, 0x92, 0x92, 0xe8, 0x06, + 0xe5, 0x3d, 0x43, 0x19, 0xef, 0x2d, 0x38, 0x17, 0x31, 0x77, 0xcf, 0x61, 0x4d, 0xe9, 0x36, 0x53, + 0x88, 0xa2, 0x67, 0x29, 0x5b, 0x82, 0x1a, 0xf7, 0x60, 0x21, 0x0e, 0x2d, 0x2f, 0x72, 0x2d, 0x11, + 0x20, 0x5b, 0x50, 0x93, 0x58, 0xfa, 0xbc, 0x52, 0x96, 0x54, 0x79, 0x47, 0x31, 0xe1, 0xd6, 0x8c, + 0xa4, 0x53, 0x1d, 0x0a, 0x25, 0x2a, 0xde, 0x3d, 0xa8, 0x92, 0x8f, 0xcf, 0xea, 0xc9, 0x3e, 0x3e, + 0x89, 0x12, 0x8d, 0x64, 0xf2, 0xa5, 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95, 0x6e, 0x74, 0x66, 0x33, + 0xbe, 0x82, 0x54, 0xce, 0xd5, 0x24, 0x1a, 0xe3, 0x43, 0xa0, 0x47, 0x35, 0x3b, 0x56, 0x78, 0xd0, + 0x0d, 0xf0, 0xcc, 0xaf, 0x9e, 0x9f, 0x4d, 0x5e, 0xb8, 0x89, 0x65, 0x66, 0x23, 0x4c, 0x13, 0x5a, + 0xd8, 0xac, 0xb9, 0xd3, 0x85, 0xcd, 0x42, 0x79, 0x0a, 0x5e, 0x3c, 0x93, 0xea, 0x33, 0x25, 0x38, + 0xdf, 0x8b, 0xc6, 0x79, 0xd8, 0x45, 0xd2, 0x76, 0xae, 0xf1, 0x0c, 0xf4, 0x46, 0x79, 0x1d, 0x1a, + 0x68, 0xde, 0x47, 0xde, 0x60, 0xc5, 0xe9, 0x1f, 0x78, 0x16, 0x5d, 0x84, 0x1b, 0xd7, 0x00, 0x30, + 0x7e, 0x10, 0xb3, 0xa5, 0x3a, 0xf3, 0xb8, 0x59, 0x17, 0x39, 0x18, 0x3b, 0x62, 0xd2, 0xc2, 0xc0, + 0xfa, 0x78, 0xc4, 0x2f, 0x68, 0xe4, 0x0a, 0x85, 0xdd, 0x17, 0x54, 0x4b, 0x01, 0x4c, 0x0d, 0xef, + 0x04, 0xb1, 0xa7, 0xb7, 0xa6, 0x22, 0xd7, 0x82, 0x9f, 0xa9, 0xee, 0x8e, 0x68, 0xcf, 0x1f, 0xa8, + 0x3e, 0x39, 0x8a, 0x52, 0x5e, 0xfe, 0xe9, 0xab, 0xfe, 0x10, 0x37, 0x89, 0x8e, 0xee, 0x20, 0x71, + 0x20, 0x84, 0xff, 0x59, 0x55, 0x04, 0xe5, 0x1f, 0x8b, 0x88, 0x16, 0x43, 0x9f, 0xff, 0x5b, 0x30, + 0x25, 0x82, 0xcb, 0x08, 0x8d, 0xe5, 0xd4, 0xc3, 0x38, 0xd1, 0x99, 0xb2, 0x5c, 0x73, 0x01, 0x34, + 0x76, 0x7a, 0x17, 0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 0xae, 0x25, 0x03, 0xf2, 0xd0, 0x66, + 0x26, 0x93, 0xc6, 0x43, 0x68, 0x24, 0x06, 0x2a, 0xb1, 0x8f, 0x7b, 0x9a, 0xba, 0xf8, 0x08, 0xff, + 0x62, 0x78, 0x23, 0x6e, 0x82, 0xa4, 0xdc, 0xf1, 0xf9, 0xf8, 0xf2, 0xcd, 0xc2, 0x0f, 0x71, 0xbb, + 0xab, 0x99, 0x22, 0xc5, 0x19, 0x8b, 0xdd, 0xd0, 0xb7, 0xec, 0x96, 0x15, 0x91, 0xf9, 0x4e, 0xcd, + 0x4c, 0x33, 0x8c, 0x2b, 0x50, 0x3b, 0x64, 0x21, 0xaa, 0x82, 0xa3, 0x34, 0xbb, 0x66, 0x26, 0x69, + 0x62, 0x49, 0x44, 0x54, 0x3a, 0x21, 0xb1, 0x4e, 0x33, 0x8c, 0x57, 0x01, 0x42, 0x16, 0xc5, 0xa1, + 0xd3, 0xe2, 0xa3, 0x4c, 0x82, 0x6a, 0x25, 0x07, 0x1d, 0x30, 0xb2, 0x8e, 0xdf, 0x0a, 0xad, 0xd6, + 0x31, 0x6e, 0x57, 0x35, 0x33, 0xcd, 0xe0, 0xb5, 0x23, 0xa7, 0xed, 0xa1, 0xea, 0x37, 0x85, 0x71, + 0xab, 0x99, 0x4a, 0x0e, 0x67, 0x90, 0xf8, 0x8b, 0xbd, 0x40, 0x0c, 0x12, 0x7f, 0xad, 0x99, 0x83, + 0xea, 0xc5, 0x9c, 0xe8, 0xe2, 0x0a, 0xd4, 0x12, 0x73, 0xad, 0x4b, 0x24, 0x35, 0x92, 0x69, 0xfe, + 0xc6, 0x64, 0xd3, 0x88, 0xa9, 0xb6, 0x22, 0xdf, 0x13, 0xa2, 0xe8, 0x79, 0xa5, 0xc4, 0xc4, 0x02, + 0xe3, 0x33, 0x61, 0x3b, 0xd5, 0x0c, 0x51, 0xdb, 0x00, 0xe5, 0xd2, 0xda, 0xc9, 0x28, 0x67, 0x79, + 0x2d, 0x0c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, 0x0c, 0x04, 0x41, + 0x67, 0x73, 0x39, 0x99, 0x87, 0x1b, 0x86, 0x6d, 0xe6, 0x95, 0x1b, 0x06, 0x47, 0x86, 0x2d, 0x4c, + 0x6d, 0x6f, 0x06, 0x3e, 0xe1, 0xe7, 0x23, 0x99, 0x8f, 0x17, 0x45, 0x32, 0x3f, 0x04, 0x48, 0x1f, + 0x35, 0x8a, 0xa0, 0x2f, 0x99, 0x8e, 0xa4, 0x33, 0x2f, 0xd1, 0xf2, 0x57, 0x2c, 0x67, 0x06, 0x45, + 0xa1, 0xd0, 0x31, 0x29, 0xca, 0xc0, 0x00, 0x8f, 0xd1, 0x76, 0x2a, 0x05, 0x90, 0x51, 0xcb, 0x07, + 0xc5, 0x79, 0x17, 0x2e, 0xe5, 0x63, 0x52, 0xf7, 0x94, 0xda, 0xe1, 0x39, 0x34, 0x4f, 0x3f, 0x8a, + 0x73, 0x68, 0x8f, 0x56, 0xa5, 0xc1, 0x26, 0x0c, 0x61, 0x7c, 0x42, 0x85, 0xf4, 0x1a, 0xca, 0xa2, + 0xd1, 0xc9, 0x53, 0x41, 0x13, 0xe4, 0xa5, 0x01, 0xdf, 0x84, 0x05, 0xa9, 0x3f, 0xb1, 0x63, 0x1d, + 0x30, 0xbf, 0x1b, 0x17, 0x7e, 0x0d, 0x28, 0xfb, 0xc8, 0x10, 0x8e, 0x42, 0xf6, 0x51, 0xd4, 0x16, + 0x5d, 0xf6, 0x21, 0x29, 0x62, 0xd1, 0x88, 0x52, 0x50, 0x1d, 0x11, 0x76, 0xb0, 0xb7, 0x7c, 0x6f, + 0x01, 0xaa, 0x81, 0x15, 0xc6, 0x32, 0x10, 0x00, 0x25, 0xf8, 0x4c, 0x43, 0xb7, 0x36, 0x42, 0x7f, + 0x07, 0x5d, 0xda, 0x70, 0x5e, 0xcb, 0x7e, 0x40, 0xd1, 0xe6, 0xa3, 0x6e, 0x47, 0xca, 0xf5, 0x3b, + 0xf6, 0x83, 0x35, 0x91, 0x95, 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 0xd6, 0x62, 0x5e, 0x5c, 0x0a, 0xe6, 0x53, + 0xbc, 0x63, 0x4e, 0xb8, 0xe7, 0x3d, 0xa7, 0x3c, 0x83, 0xba, 0x15, 0x47, 0x7c, 0x80, 0xdb, 0x43, + 0xf0, 0x4c, 0xe2, 0x05, 0x95, 0xd9, 0x92, 0xb5, 0x37, 0x44, 0x82, 0x13, 0x92, 0xc7, 0x94, 0xfd, + 0xd4, 0xa9, 0xba, 0x74, 0xe1, 0x33, 0xc4, 0xba, 0xf3, 0x35, 0xdb, 0xdd, 0xf7, 0xfd, 0x03, 0xf4, + 0x36, 0x59, 0x76, 0xbf, 0xd2, 0x61, 0x06, 0xff, 0x12, 0x32, 0x5f, 0xf9, 0xb6, 0x10, 0xaa, 0x0c, + 0x0e, 0x94, 0x69, 0xd4, 0x56, 0xc8, 0x50, 0xed, 0xc2, 0xef, 0xc6, 0x83, 0x63, 0xa9, 0x2b, 0x7c, + 0x6a, 0xcf, 0x33, 0x08, 0xc2, 0x63, 0xf2, 0x50, 0x8c, 0x05, 0x52, 0x0e, 0x53, 0x86, 0x77, 0x52, + 0x0f, 0xc4, 0x12, 0xa7, 0xf4, 0xc4, 0x79, 0xcc, 0x37, 0xab, 0x52, 0x1f, 0xa3, 0x89, 0x46, 0xc1, + 0xda, 0xa7, 0x30, 0x34, 0x77, 0xa9, 0xb6, 0x4c, 0x5a, 0x15, 0xa3, 0x52, 0xe6, 0x40, 0x28, 0xcf, + 0xd1, 0xee, 0x57, 0x6b, 0x59, 0x12, 0x40, 0xa4, 0x14, 0x33, 0xa6, 0x4e, 0x48, 0xfa, 0xc6, 0x5e, + 0xa4, 0xd7, 0xfa, 0x83, 0x00, 0xfd, 0x04, 0xae, 0x8a, 0x40, 0x6e, 0x51, 0x33, 0x91, 0x31, 0x46, + 0x5d, 0x57, 0x68, 0x51, 0xdd, 0x49, 0xb5, 0x7a, 0xb3, 0xd7, 0xbd, 0x42, 0x2b, 0x31, 0x55, 0xeb, + 0x15,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, 0x64, 0x30, 0xeb, 0x49, 0x19, 0xa8, 0x0a, + 0x3a, 0x53, 0x7e, 0x1d, 0x66, 0x12, 0x97, 0xc7, 0x78, 0xb4, 0xa4, 0x43, 0xe7, 0x74, 0xa4, 0x3c, + 0xd2, 0xb8, 0x0d, 0x73, 0x1a, 0x11, 0x3f, 0xbb, 0x8f, 0xa3, 0xae, 0xd5, 0xac, 0x4a, 0xb7, 0x61, + 0xa3, 0xe7, 0xec, 0xa2, 0xd6, 0x8e, 0xc2, 0x73, 0x76, 0xcf, 0x51, 0xd1, 0x3d, 0x5b, 0x47, 0xc5, + 0xcd, 0x29, 0x0b, 0xfa, 0x17, 0x15, 0x78, 0x35, 0x89, 0x60, 0xbb, 0xd1, 0x11, 0xb6, 0x7e, 0x32, + 0x43, 0x78, 0x27, 0xad, 0x39, 0xa2, 0x40, 0xf8, 0x69, 0x54, 0x8c, 0x2d, 0xf5, 0x1a, 0x66, 0x42, + 0x69, 0xfc, 0x10, 0xce, 0x05, 0x7e, 0xd0, 0x75, 0xad, 0x50, 0x44, 0x13, 0x91, 0xbb, 0x94, 0x12, + 0xa1, 0x99, 0xca, 0x65, 0xdd, 0x59, 0x41, 0x4f, 0x5f, 0x4f, 0x64, 0xdc, 0x84, 0xd9, 0x90, 0xc5, + 0xe1, 0xb1, 0x94, 0x57, 0xd0, 0xce, 0x35, 0x6e, 0xce, 0x60, 0x6e, 0xe2, 0x63, 0xf0, 0x34, 0xee, + 0xee, 0x97, 0xfe, 0xb0, 0x02, 0x97, 0x7b, 0x76, 0x73, 0x88, 0xb7, 0xf9, 0xa9, 0x3e, 0xf0, 0xb7, + 0xf2, 0x51, 0x81, 0x0b, 0xc7, 0x54, 0x8e, 0xfe, 0xaf, 0x53, 0xbc, 0x32, 0x59, 0xe4, 0x64, 0x1b, + 0x36, 0x24, 0xfc, 0xbb, 0x70, 0xbe, 0x28, 0xb8, 0xeb, 0x45, 0x98, 0xec, 0x38, 0x51, 0x94, 0x1a, + 0x2c,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, 0x79, + 0x5a, 0x12, 0x6e, 0x8e, 0x0c, 0x5e, 0x28, 0x4c, 0x8e, 0x0a, 0xfe, 0x4b, 0x07, 0x2f, 0x66, 0x87, + 0x84, 0xff, 0x09, 0x4e, 0xe3, 0x02, 0xf8, 0x55, 0x3f, 0x1e, 0x5d, 0xdb, 0x57, 0x2d, 0xd4, 0x5b, + 0x1a, 0x15, 0xfc, 0x36, 0xb3, 0xc2, 0xd6, 0xfe, 0xb0, 0xf0, 0x1d, 0x58, 0x54, 0x57, 0x57, 0x66, + 0xa3, 0x29, 0x6a, 0x12, 0x88, 0xd9, 0xb1, 0x13, 0xfb, 0xfa, 0xf3, 0x05, 0x7e, 0x85, 0xcc, 0x71, + 0xc7, 0xbe, 0x67, 0xbc, 0x85, 0x74, 0x79, 0xa7, 0xe1, 0x48, 0x97, 0x5c, 0x5f, 0x8c, 0x3b, 0xf6, + 0x32, 0xba, 0x1e, 0x2d, 0x78, 0xde, 0x28, 0x5c, 0x8f, 0xf6, 0xea, 0x56, 0xca, 0x13, 0x65, 0x37, + 0x23, 0x41, 0x45, 0x46, 0x30, 0xa5, 0x71, 0x7f, 0x9c, 0xb2, 0x30, 0x3a, 0x55, 0x72, 0xd2, 0x28, + 0x0d, 0xfd, 0x48, 0x44, 0x8f, 0x58, 0x73, 0x1d, 0xe6, 0xc5, 0x5b, 0xa1, 0xff, 0xf2, 0x38, 0x11, + 0xa0, 0x49, 0x23, 0x3f, 0x21, 0x40, 0xb3, 0x32, 0xc1, 0x65, 0xc7, 0xd2, 0xe0, 0xb2, 0x69, 0x04, + 0x09, 0x05, 0x67, 0x64, 0x11, 0x24, 0xb2, 0x6d, 0xd5, 0x1d, 0x91, 0x38, 0xd9, 0x66, 0x94, 0x03, + 0xbb, 0x28, 0x85, 0x53, 0x49, 0x28, 0x9e, 0xf4, 0xce, 0x38, 0x53, 0x30, 0xba, 0x60, 0x47, 0xfa, + 0xb3, 0xd3, 0x60, 0x76, 0x37, 0xf4, 0x70, 0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x76, 0x31, 0xac, 0xd3, 0x1d, 0x98, + 0x72, 0xbc, 0x43, 0xdf, 0x69, 0x31, 0x11, 0xad, 0x70, 0x4e, 0xb9, 0x64, 0xc1, 0x7c, 0x53, 0x12, + 0x18, 0xd7, 0xa1, 0x11, 0x84, 0xfe, 0xa1, 0x63, 0xab, 0xc2, 0x3c, 0x90, 0x59, 0x14, 0x4f, 0x8b, + 0x6f, 0xc6, 0x93, 0xe9, 0x66, 0x7c, 0x0b, 0xce, 0x09, 0x27, 0xf9, 0x92, 0x4c, 0x04, 0x57, 0x9b, + 0xa5, 0xec, 0x2d, 0x91, 0x6b, 0x3c, 0x84, 0x19, 0x49, 0x68, 0x85, 0x56, 0x27, 0xca, 0x87, 0x59, + 0x96, 0x8e, 0x30, 0xa7, 0x45, 0x4d, 0x24, 0x43, 0x7f, 0xac, 0xd6, 0x21, 0xb3, 0x9b, 0x28, 0x86, + 0xab, 0x9f, 0x46, 0x0c, 0x57, 0xc7, 0x0a, 0xfc, 0xaf, 0xb1, 0x09, 0xf3, 0x54, 0x5b, 0x1d, 0x6e, + 0xc8, 0xf8, 0x38, 0x95, 0x47, 0x13, 0x4e, 0xa8, 0x0c, 0xbe, 0x39, 0x17, 0x65, 0x72, 0x52, 0xf6, + 0xb1, 0xd1, 0x47, 0xe7, 0x96, 0xaf, 0x65, 0x45, 0x73, 0x60, 0x14, 0x6b, 0x59, 0xcf, 0xb9, 0xa6, + 0xaf, 0x65, 0x59, 0x0b, 0x71, 0xd1, 0x9c, 0xb2, 0xa0, 0xff, 0x46, 0x05, 0x2e, 0xe5, 0x1d, 0x68, + 0xd2, 0x1c, 0xd7, 0x82, 0x22, 0x54, 0xf4, 0xa0, 0x08, 0xc6, 0x0d, 0x98, 0xc6, 0x40, 0x60, 0xd2, + 0xc2, 0x86, 0xf6, 0x8a, 0x06, 0xcf, 0xfb, 0x4a, 0xf8, 0x9c, 0x56, 0xec, 0x6f, 0xc6, 0x75, 0x6f, + 0xd4, 0xf7, 0x60, 0x2a, 0xc2, 0x60, 0x71, 0x52, 0x29, 0xe7, 0x52, 0x8f, 0x60, 0x72, 0xa6, 0xa4, + 0xc3, 0x68, 0x36, 0xf9, 0x86, 0x8e, 0x22, 0x9a, 0x4d, 0x8f, 0xe1, 0xd0, 0xe3, 0xcf, 0xb8, 0xf9, + 0xa6, 0x94, 0x05, 0xdc, 0x52, 0x82, 0x7a, 0xae, 0xed, 0x5b, 0x52, 0x67, 0x3d, 0x09, 0x5f, 0x56, + 0xe9, 0x13, 0xbe, 0xac, 0x70, 0xab, 0x5e, 0xfa, 0x19, 0xcc, 0xea, 0x88, 0xa3, 0xd0, 0x82, 0x2e, + 0x68, 0xb3, 0x6e, 0xa3, 0x9f, 0x10, 0x50, 0x53, 0xcb, 0x00, 0x3d, 0xd5, 0xa3, 0x8c, 0x22, 0x10, + 0x1d, 0x6a, 0xca, 0xa0, 0x7d, 0x09, 0x17, 0x73, 0x2a, 0x5f, 0xe9, 0xf1, 0x13, 0x73, 0xa2, 0xdc, + 0xf1, 0x33, 0x53, 0x43, 0xd2, 0x2d, 0xfd, 0x76, 0x05, 0xe6, 0x73, 0x68, 0x43, 0x8c, 0xf3, 0x03, + 0xbd, 0x43, 0xd7, 0x7b, 0x6b, 0xa9, 0x65, 0x14, 0xbd, 0x16, 0x76, 0x9e, 0x36, 0x0f, 0x72, 0x0d, + 0x29, 0x09, 0xd7, 0x56, 0x2c, 0x51, 0x65, 0xe8, 0x78, 0x31, 0x1f, 0x33, 0xe1, 0x74, 0xc9, 0x62, + 0x56, 0x0d, 0xa7, 0xfb, 0x76, 0x1a, 0x15, 0x37, 0x1b, 0x21, 0x59, 0x42, 0x25, 0xe1, 0x70, 0xf5, + 0x20, 0xc9, 0xc9, 0x93, 0x46, 0x1a, 0x24, 0x59, 0xef, 0x4f, 0x8f, 0x40, 0xc6, 0x7b, 0x49, 0x53, + 0xca, 0x02, 0xfe, 0xbc, 0x02, 0xe7, 0xf5, 0x41, 0xee, 0xe9, 0x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 0xf1, 0x36, 0x93, 0xce, 0x0d, 0x14, 0x73, + 0xab, 0x4a, 0xd6, 0xdc, 0x4a, 0x9a, 0x77, 0x8d, 0x69, 0xe6, 0x5d, 0x27, 0x71, 0x70, 0x19, 0xd9, + 0xf8, 0x44, 0x46, 0x36, 0xbe, 0x14, 0x43, 0x3d, 0x69, 0xc3, 0x10, 0xc3, 0xf9, 0xae, 0x3e, 0x02, + 0x97, 0x32, 0xd6, 0xe9, 0x2c, 0x63, 0xe7, 0xbe, 0x8a, 0x92, 0x57, 0x47, 0x96, 0x91, 0xc4, 0x7b, + 0x40, 0x8c, 0x15, 0x54, 0x4e, 0x4c, 0x30, 0xb6, 0x99, 0xbb, 0x37, 0x24, 0x04, 0x5f, 0x19, 0x86, + 0x84, 0x40, 0x83, 0x91, 0x01, 0x21, 0xd6, 0xd3, 0x49, 0x25, 0x5a, 0x81, 0xb2, 0xfb, 0x01, 0x51, + 0x7e, 0x5e, 0x91, 0x37, 0x23, 0xb4, 0xf6, 0x26, 0xda, 0x1e, 0x2d, 0xb4, 0xd2, 0x6e, 0x26, 0xae, + 0x75, 0x6a, 0x94, 0x41, 0x9a, 0xb8, 0x14, 0x53, 0x7a, 0x4c, 0x8d, 0x29, 0xad, 0x33, 0x00, 0xe3, + 0x7d, 0x19, 0x80, 0x09, 0x9d, 0x01, 0x48, 0x2f, 0x52, 0xc4, 0xfa, 0x3f, 0xb2, 0x8b, 0x14, 0xa5, + 0x8f, 0x05, 0x17, 0x29, 0x64, 0x79, 0x20, 0xda, 0x30, 0x38, 0xd2, 0x7f, 0x3b, 0x06, 0x97, 0xf2, + 0xe2, 0xd9, 0xc1, 0xc3, 0x2a, 0x64, 0x6c, 0x2f, 0xc7, 0xb3, 0xb6, 0x97, 0x97, 0xa1, 0xd6, 0xb2, + 0xbc, 0x26, 0xb3, 0x9d, 0x58, 0x70, 0x9b, 0x53, 0x2d, 0x0b, 0x25, 0x37, 0x42, 0xd3, 0xab, 0xe3, + 0xc7, 0x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, + 0xa8, 0x94, 0x98, 0xb9, 0x8c, 0x06, 0xd4, 0xf0, 0xaa, 0x40, 0xc2, 0xa8, 0x65, 0xef, 0x17, 0xd4, + 0xb2, 0x31, 0x1a, 0x68, 0xc8, 0x2e, 0x48, 0x06, 0xad, 0xea, 0xda, 0x44, 0x7f, 0x0b, 0xfd, 0xd8, + 0x5a, 0x37, 0x1f, 0xbf, 0x42, 0xdf, 0xce, 0x7d, 0x9c, 0xbe, 0x0e, 0xc9, 0x2c, 0x63, 0xf8, 0xb5, + 0xb8, 0x26, 0xe1, 0x92, 0x86, 0x44, 0xdf, 0x76, 0xdc, 0xff, 0xf9, 0x6a, 0x22, 0x2e, 0xce, 0xef, + 0xcd, 0xb6, 0x21, 0xe7, 0xe8, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbb, 0xa9, 0x4f, 0x22, 0x0d, 0x08, 0x02, 0x00, } diff --git a/mtproto/schema.tl.sync.proto b/mtproto/schema.tl.sync.proto index 5356cd5fe..437ff5c4d 100644 --- a/mtproto/schema.tl.sync.proto +++ b/mtproto/schema.tl.sync.proto @@ -31,4034 +31,3967 @@ import "schema.tl.core_types.proto"; /////////////////////////////////////////////////////////////////////////////// -// SecureCredentialsEncrypted <-- -// + TL_secureCredentialsEncrypted +// messages_BotCallbackAnswer <-- +// + TL_messages_botCallbackAnswer // -message SecureCredentialsEncrypted_Data { - bytes data = 1; - bytes hash = 2; - bytes secret = 3; +message messages_BotCallbackAnswer_Data { + bool alert = 1; + bool has_url = 2; + bool native_ui = 3; + string message = 4; + string url = 5; + int32 cache_time = 6; } -message SecureCredentialsEncrypted { +message messages_BotCallbackAnswer { TLConstructor constructor = 1; - SecureCredentialsEncrypted_Data data2 = 2; + messages_BotCallbackAnswer_Data data2 = 2; } -// secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted; -message TL_secureCredentialsEncrypted { - SecureCredentialsEncrypted_Data data2 = 2; +// messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; +message TL_messages_botCallbackAnswer { + messages_BotCallbackAnswer_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ContactStatus <-- -// + TL_contactStatus +// messages_MessageEditData <-- +// + TL_messages_messageEditData // -message ContactStatus_Data { - int32 user_id = 1; - UserStatus status = 2; +message messages_MessageEditData_Data { + bool caption = 1; } -message ContactStatus { +message messages_MessageEditData { TLConstructor constructor = 1; - ContactStatus_Data data2 = 2; + messages_MessageEditData_Data data2 = 2; } -// contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus; -message TL_contactStatus { - ContactStatus_Data data2 = 2; +// messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData; +message TL_messages_messageEditData { + messages_MessageEditData_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// contacts_ImportedContacts <-- -// + TL_contacts_importedContacts +// PostAddress <-- +// + TL_postAddress // -message contacts_ImportedContacts_Data { - repeated ImportedContact imported = 1; - repeated PopularContact popular_invites = 2; - repeated int64 retry_contacts = 3; - repeated User users = 4; +message PostAddress_Data { + string street_line1 = 1; + string street_line2 = 2; + string city = 3; + string state = 4; + string country_iso2 = 5; + string post_code = 6; } -message contacts_ImportedContacts { +message PostAddress { TLConstructor constructor = 1; - contacts_ImportedContacts_Data data2 = 2; + PostAddress_Data data2 = 2; } -// contacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts; -message TL_contacts_importedContacts { - contacts_ImportedContacts_Data data2 = 2; +// postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress; +message TL_postAddress { + PostAddress_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// contacts_ResolvedPeer <-- -// + TL_contacts_resolvedPeer +// payments_PaymentReceipt <-- +// + TL_payments_paymentReceipt // -message contacts_ResolvedPeer_Data { - Peer peer = 1; - repeated Chat chats = 2; - repeated User users = 3; +message payments_PaymentReceipt_Data { + int32 date = 1; + int32 bot_id = 2; + Invoice invoice = 3; + int32 provider_id = 4; + PaymentRequestedInfo info = 5; + ShippingOption shipping = 6; + string currency = 7; + int64 total_amount = 8; + string credentials_title = 9; + repeated User users = 10; } -message contacts_ResolvedPeer { +message payments_PaymentReceipt { TLConstructor constructor = 1; - contacts_ResolvedPeer_Data data2 = 2; + payments_PaymentReceipt_Data data2 = 2; } -// contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer; -message TL_contacts_resolvedPeer { - contacts_ResolvedPeer_Data data2 = 2; +// payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; +message TL_payments_paymentReceipt { + payments_PaymentReceipt_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// storage_FileType <-- -// + TL_storage_fileUnknown -// + TL_storage_filePartial -// + TL_storage_fileJpeg -// + TL_storage_fileGif -// + TL_storage_filePng -// + TL_storage_filePdf -// + TL_storage_fileMp3 -// + TL_storage_fileMov -// + TL_storage_fileMp4 -// + TL_storage_fileWebp +// PrivacyKey <-- +// + TL_privacyKeyStatusTimestamp +// + TL_privacyKeyChatInvite +// + TL_privacyKeyPhoneCall // -message storage_FileType_Data { +message PrivacyKey_Data { } -message storage_FileType { +message PrivacyKey { TLConstructor constructor = 1; - storage_FileType_Data data2 = 2; + PrivacyKey_Data data2 = 2; } -// storage.fileUnknown#aa963b05 = storage.FileType; -message TL_storage_fileUnknown { - storage_FileType_Data data2 = 2; +// privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; +message TL_privacyKeyStatusTimestamp { + PrivacyKey_Data data2 = 2; } -// storage.filePartial#40bc6f52 = storage.FileType; -message TL_storage_filePartial { - storage_FileType_Data data2 = 2; +// privacyKeyChatInvite#500e6dfa = PrivacyKey; +message TL_privacyKeyChatInvite { + PrivacyKey_Data data2 = 2; } -// storage.fileJpeg#7efe0e = storage.FileType; -message TL_storage_fileJpeg { - storage_FileType_Data data2 = 2; +// privacyKeyPhoneCall#3d662b7b = PrivacyKey; +message TL_privacyKeyPhoneCall { + PrivacyKey_Data data2 = 2; } -// storage.fileGif#cae1aadf = storage.FileType; -message TL_storage_fileGif { - storage_FileType_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// messages_Stickers <-- +// + TL_messages_stickersNotModified +// + TL_messages_stickers +// +message messages_Stickers_Data { + int32 hash = 1; + repeated Document stickers = 2; } -// storage.filePng#a4f63c0 = storage.FileType; -message TL_storage_filePng { - storage_FileType_Data data2 = 2; +message messages_Stickers { + TLConstructor constructor = 1; + messages_Stickers_Data data2 = 2; } -// storage.filePdf#ae1e508d = storage.FileType; -message TL_storage_filePdf { - storage_FileType_Data data2 = 2; +// messages.stickersNotModified#f1749a22 = messages.Stickers; +message TL_messages_stickersNotModified { + messages_Stickers_Data data2 = 2; } -// storage.fileMp3#528a0677 = storage.FileType; -message TL_storage_fileMp3 { - storage_FileType_Data data2 = 2; +// messages.stickers#e4599bbd hash:int stickers:Vector = messages.Stickers; +message TL_messages_stickers { + messages_Stickers_Data data2 = 2; } -// storage.fileMov#4b09ebbc = storage.FileType; -message TL_storage_fileMov { - storage_FileType_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// InputBotInlineMessage <-- +// + TL_inputBotInlineMessageMediaAuto +// + TL_inputBotInlineMessageText +// + TL_inputBotInlineMessageMediaGeo +// + TL_inputBotInlineMessageMediaVenue +// + TL_inputBotInlineMessageMediaContact +// + TL_inputBotInlineMessageGame +// +message InputBotInlineMessage_Data { + string message = 1; + repeated MessageEntity entities = 2; + ReplyMarkup reply_markup = 3; + bool no_webpage = 4; + InputGeoPoint geo_point = 5; + int32 period = 6; + string title = 7; + string address = 8; + string provider = 9; + string venue_id = 10; + string venue_type = 11; + string phone_number = 12; + string first_name = 13; + string last_name = 14; + string vcard = 15; } -// storage.fileMp4#b3cea0e4 = storage.FileType; -message TL_storage_fileMp4 { - storage_FileType_Data data2 = 2; +message InputBotInlineMessage { + TLConstructor constructor = 1; + InputBotInlineMessage_Data data2 = 2; } -// storage.fileWebp#1081464c = storage.FileType; -message TL_storage_fileWebp { - storage_FileType_Data data2 = 2; +// inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +message TL_inputBotInlineMessageMediaAuto { + InputBotInlineMessage_Data data2 = 2; } +// inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +message TL_inputBotInlineMessageText { + InputBotInlineMessage_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// messages_ChatFull <-- -// + TL_messages_chatFull -// -message messages_ChatFull_Data { - ChatFull full_chat = 1; - repeated Chat chats = 2; - repeated User users = 3; +// inputBotInlineMessageMediaGeo#c1b15d65 flags:# geo_point:InputGeoPoint period:int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +message TL_inputBotInlineMessageMediaGeo { + InputBotInlineMessage_Data data2 = 2; } -message messages_ChatFull { - TLConstructor constructor = 1; - messages_ChatFull_Data data2 = 2; +// inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +message TL_inputBotInlineMessageMediaVenue { + InputBotInlineMessage_Data data2 = 2; } -// messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull; -message TL_messages_chatFull { - messages_ChatFull_Data data2 = 2; +// inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +message TL_inputBotInlineMessageMediaContact { + InputBotInlineMessage_Data data2 = 2; +} + +// inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; +message TL_inputBotInlineMessageGame { + InputBotInlineMessage_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_StickerSet <-- -// + TL_messages_stickerSet +// account_Authorizations <-- +// + TL_account_authorizations // -message messages_StickerSet_Data { - StickerSet set = 1; - repeated StickerPack packs = 2; - repeated Document documents = 3; +message account_Authorizations_Data { + repeated Authorization authorizations = 1; } -message messages_StickerSet { +message account_Authorizations { TLConstructor constructor = 1; - messages_StickerSet_Data data2 = 2; + account_Authorizations_Data data2 = 2; } -// messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; -message TL_messages_stickerSet { - messages_StickerSet_Data data2 = 2; +// account.authorizations#1250abde authorizations:Vector = account.Authorizations; +message TL_account_authorizations { + account_Authorizations_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputStickeredMedia <-- -// + TL_inputStickeredMediaPhoto -// + TL_inputStickeredMediaDocument +// messages_HighScores <-- +// + TL_messages_highScores // -message InputStickeredMedia_Data { - InputPhoto id_1 = 1; - InputDocument id_2 = 2; +message messages_HighScores_Data { + repeated HighScore scores = 1; + repeated User users = 2; } -message InputStickeredMedia { +message messages_HighScores { TLConstructor constructor = 1; - InputStickeredMedia_Data data2 = 2; -} - -// inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia; -message TL_inputStickeredMediaPhoto { - InputStickeredMedia_Data data2 = 2; + messages_HighScores_Data data2 = 2; } -// inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia; -message TL_inputStickeredMediaDocument { - InputStickeredMedia_Data data2 = 2; +// messages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores; +message TL_messages_highScores { + messages_HighScores_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PaymentSavedCredentials <-- -// + TL_paymentSavedCredentialsCard +// help_ProxyData <-- +// + TL_help_proxyDataEmpty +// + TL_help_proxyDataPromo // -message PaymentSavedCredentials_Data { - string id = 1; - string title = 2; +message help_ProxyData_Data { + int32 expires = 1; + Peer peer = 2; + repeated Chat chats = 3; + repeated User users = 4; } -message PaymentSavedCredentials { +message help_ProxyData { TLConstructor constructor = 1; - PaymentSavedCredentials_Data data2 = 2; + help_ProxyData_Data data2 = 2; } -// paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; -message TL_paymentSavedCredentialsCard { - PaymentSavedCredentials_Data data2 = 2; +// help.proxyDataEmpty#e09e1fb8 expires:int = help.ProxyData; +message TL_help_proxyDataEmpty { + help_ProxyData_Data data2 = 2; +} + +// help.proxyDataPromo#2bf7ee23 expires:int peer:Peer chats:Vector users:Vector = help.ProxyData; +message TL_help_proxyDataPromo { + help_ProxyData_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Game <-- -// + TL_game +// InputSecureFile <-- +// + TL_inputSecureFileUploaded +// + TL_inputSecureFile // -message Game_Data { +message InputSecureFile_Data { int64 id = 1; - int64 access_hash = 2; - string short_name = 3; - string title = 4; - string description = 5; - Photo photo = 6; - Document document = 7; + int32 parts = 2; + string md5_checksum = 3; + bytes file_hash = 4; + bytes secret = 5; + int64 access_hash = 6; } -message Game { +message InputSecureFile { TLConstructor constructor = 1; - Game_Data data2 = 2; + InputSecureFile_Data data2 = 2; } -// game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game; -message TL_game { - Game_Data data2 = 2; +// inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile; +message TL_inputSecureFileUploaded { + InputSecureFile_Data data2 = 2; +} + +// inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile; +message TL_inputSecureFile { + InputSecureFile_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// LabeledPrice <-- -// + TL_labeledPrice +// SchemeMethod <-- +// + TL_schemeMethod // -message LabeledPrice_Data { - string label = 1; - int64 amount = 2; +message SchemeMethod_Data { + int32 id = 1; + string method = 2; + repeated SchemeParam params = 3; + string type = 4; } -message LabeledPrice { +message SchemeMethod { TLConstructor constructor = 1; - LabeledPrice_Data data2 = 2; + SchemeMethod_Data data2 = 2; } -// labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; -message TL_labeledPrice { - LabeledPrice_Data data2 = 2; +// schemeMethod#479357c0 id:int method:string params:Vector type:string = SchemeMethod; +message TL_schemeMethod { + SchemeMethod_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputCheckPasswordSRP <-- -// + TL_inputCheckPasswordEmpty -// + TL_inputCheckPasswordSRP +// PeerNotifySettings <-- +// + TL_peerNotifySettings // -message InputCheckPasswordSRP_Data { - int64 srp_id = 1; - bytes A = 2; - bytes M1 = 3; +message PeerNotifySettings_Data { + Bool show_previews = 1; + Bool silent = 2; + int32 mute_until = 3; + string sound = 4; } -message InputCheckPasswordSRP { +message PeerNotifySettings { TLConstructor constructor = 1; - InputCheckPasswordSRP_Data data2 = 2; -} - -// inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP; -message TL_inputCheckPasswordEmpty { - InputCheckPasswordSRP_Data data2 = 2; + PeerNotifySettings_Data data2 = 2; } -// inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP; -message TL_inputCheckPasswordSRP { - InputCheckPasswordSRP_Data data2 = 2; +// peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings; +message TL_peerNotifySettings { + PeerNotifySettings_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// WebDocument <-- -// + TL_webDocument -// + TL_webDocumentNoProxy +// InputEncryptedChat <-- +// + TL_inputEncryptedChat // -message WebDocument_Data { - string url = 1; +message InputEncryptedChat_Data { + int32 chat_id = 1; int64 access_hash = 2; - int32 size = 3; - string mime_type = 4; - repeated DocumentAttribute attributes = 5; } -message WebDocument { +message InputEncryptedChat { TLConstructor constructor = 1; - WebDocument_Data data2 = 2; -} - -// webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument; -message TL_webDocument { - WebDocument_Data data2 = 2; + InputEncryptedChat_Data data2 = 2; } -// webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument; -message TL_webDocumentNoProxy { - WebDocument_Data data2 = 2; +// inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat; +message TL_inputEncryptedChat { + InputEncryptedChat_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputUser <-- -// + TL_inputUserEmpty -// + TL_inputUserSelf -// + TL_inputUser +// SchemeParam <-- +// + TL_schemeParam // -message InputUser_Data { - int32 user_id = 1; - int64 access_hash = 2; +message SchemeParam_Data { + string name = 1; + string type = 2; } -message InputUser { +message SchemeParam { TLConstructor constructor = 1; - InputUser_Data data2 = 2; -} - -// inputUserEmpty#b98886cf = InputUser; -message TL_inputUserEmpty { - InputUser_Data data2 = 2; -} - -// inputUserSelf#f7c1b13f = InputUser; -message TL_inputUserSelf { - InputUser_Data data2 = 2; + SchemeParam_Data data2 = 2; } -// inputUser#d8292816 user_id:int access_hash:long = InputUser; -message TL_inputUser { - InputUser_Data data2 = 2; +// schemeParam#21b59bef name:string type:string = SchemeParam; +message TL_schemeParam { + SchemeParam_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PeerSettings <-- -// + TL_peerSettings +// MessageFwdHeader <-- +// + TL_messageFwdHeader // -message PeerSettings_Data { - bool report_spam = 1; +message MessageFwdHeader_Data { + int32 from_id = 1; + int32 date = 2; + int32 channel_id = 3; + int32 channel_post = 4; + string post_author = 5; + Peer saved_from_peer = 6; + int32 saved_from_msg_id = 7; } -message PeerSettings { +message MessageFwdHeader { TLConstructor constructor = 1; - PeerSettings_Data data2 = 2; + MessageFwdHeader_Data data2 = 2; } -// peerSettings#818426cd flags:# report_spam:flags.0?true = PeerSettings; -message TL_peerSettings { - PeerSettings_Data data2 = 2; +// messageFwdHeader#559ebe6d flags:# from_id:flags.0?int date:int channel_id:flags.1?int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int = MessageFwdHeader; +message TL_messageFwdHeader { + MessageFwdHeader_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputDialogPeer <-- -// + TL_inputDialogPeer +// help_TermsOfServiceUpdate <-- +// + TL_help_termsOfServiceUpdateEmpty +// + TL_help_termsOfServiceUpdate // -message InputDialogPeer_Data { - InputPeer peer = 1; +message help_TermsOfServiceUpdate_Data { + int32 expires = 1; + help_TermsOfService terms_of_service = 2; } -message InputDialogPeer { +message help_TermsOfServiceUpdate { TLConstructor constructor = 1; - InputDialogPeer_Data data2 = 2; + help_TermsOfServiceUpdate_Data data2 = 2; } -// inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer; -message TL_inputDialogPeer { - InputDialogPeer_Data data2 = 2; +// help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate; +message TL_help_termsOfServiceUpdateEmpty { + help_TermsOfServiceUpdate_Data data2 = 2; +} + +// help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate; +message TL_help_termsOfServiceUpdate { + help_TermsOfServiceUpdate_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// FileLocation <-- -// + TL_fileLocationUnavailable -// + TL_fileLocation -// + TL_fileLocationLayer86 -// -message FileLocation_Data { - int64 volume_id = 1; - int32 local_id = 2; - int64 secret = 3; - int32 dc_id = 4; - bytes file_reference = 5; +// Game <-- +// + TL_game +// +message Game_Data { + int64 id = 1; + int64 access_hash = 2; + string short_name = 3; + string title = 4; + string description = 5; + Photo photo = 6; + Document document = 7; } -message FileLocation { +message Game { TLConstructor constructor = 1; - FileLocation_Data data2 = 2; -} - -// fileLocationUnavailable#7c596b46 volume_id:long local_id:int secret:long = FileLocation; -message TL_fileLocationUnavailable { - FileLocation_Data data2 = 2; -} - -// fileLocation#53d69076 dc_id:int volume_id:long local_id:int secret:long = FileLocation; -message TL_fileLocation { - FileLocation_Data data2 = 2; + Game_Data data2 = 2; } -// fileLocation#91d11eb dc_id:int volume_id:long local_id:int secret:long file_reference:bytes = FileLocation; -message TL_fileLocationLayer86 { - FileLocation_Data data2 = 2; +// game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game; +message TL_game { + Game_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// RichText <-- -// + TL_textEmpty -// + TL_textPlain -// + TL_textBold -// + TL_textItalic -// + TL_textUnderline -// + TL_textStrike -// + TL_textFixed -// + TL_textUrl -// + TL_textEmail -// + TL_textConcat +// InputStickerSetItem <-- +// + TL_inputStickerSetItem // -message RichText_Data { - string text_1 = 1; - RichText text_2 = 2; - string url = 3; - int64 webpage_id = 4; - string email = 5; - repeated RichText texts = 6; +message InputStickerSetItem_Data { + InputDocument document = 1; + string emoji = 2; + MaskCoords mask_coords = 3; } -message RichText { +message InputStickerSetItem { TLConstructor constructor = 1; - RichText_Data data2 = 2; + InputStickerSetItem_Data data2 = 2; } -// textEmpty#dc3d824f = RichText; -message TL_textEmpty { - RichText_Data data2 = 2; +// inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem; +message TL_inputStickerSetItem { + InputStickerSetItem_Data data2 = 2; } -// textPlain#744694e0 text:string = RichText; -message TL_textPlain { - RichText_Data data2 = 2; -} -// textBold#6724abc4 text:RichText = RichText; -message TL_textBold { - RichText_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// PhoneCall <-- +// + TL_phoneCallEmpty +// + TL_phoneCallWaiting +// + TL_phoneCallRequested +// + TL_phoneCallAccepted +// + TL_phoneCall +// + TL_phoneCallDiscarded +// +message PhoneCall_Data { + int64 id = 1; + int64 access_hash = 2; + int32 date = 3; + int32 admin_id = 4; + int32 participant_id = 5; + PhoneCallProtocol protocol = 6; + int32 receive_date = 7; + bytes g_a_hash = 8; + bytes g_b = 9; + bytes g_a_or_b = 10; + int64 key_fingerprint = 11; + PhoneConnection connection = 12; + repeated PhoneConnection alternative_connections = 13; + int32 start_date = 14; + bool need_rating = 15; + bool need_debug = 16; + PhoneCallDiscardReason reason = 17; + int32 duration = 18; } -// textItalic#d912a59c text:RichText = RichText; -message TL_textItalic { - RichText_Data data2 = 2; +message PhoneCall { + TLConstructor constructor = 1; + PhoneCall_Data data2 = 2; } -// textUnderline#c12622c4 text:RichText = RichText; -message TL_textUnderline { - RichText_Data data2 = 2; +// phoneCallEmpty#5366c915 id:long = PhoneCall; +message TL_phoneCallEmpty { + PhoneCall_Data data2 = 2; } -// textStrike#9bf8bb95 text:RichText = RichText; -message TL_textStrike { - RichText_Data data2 = 2; +// phoneCallWaiting#1b8f4ad1 flags:# id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; +message TL_phoneCallWaiting { + PhoneCall_Data data2 = 2; } -// textFixed#6c3f19b9 text:RichText = RichText; -message TL_textFixed { - RichText_Data data2 = 2; +// phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; +message TL_phoneCallRequested { + PhoneCall_Data data2 = 2; } -// textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText; -message TL_textUrl { - RichText_Data data2 = 2; +// phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; +message TL_phoneCallAccepted { + PhoneCall_Data data2 = 2; } -// textEmail#de5a0dd6 text:RichText email:string = RichText; -message TL_textEmail { - RichText_Data data2 = 2; +// phoneCall#ffe6ab67 id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connection:PhoneConnection alternative_connections:Vector start_date:int = PhoneCall; +message TL_phoneCall { + PhoneCall_Data data2 = 2; } -// textConcat#7e6260d7 texts:Vector = RichText; -message TL_textConcat { - RichText_Data data2 = 2; +// phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; +message TL_phoneCallDiscarded { + PhoneCall_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// BotCommand <-- -// + TL_botCommand +// InputMedia <-- +// + TL_inputMediaPhotoLayer46 +// + TL_inputMediaEmpty +// + TL_inputMediaUploadedPhoto +// + TL_inputMediaPhoto +// + TL_inputMediaGeoPoint +// + TL_inputMediaContact +// + TL_inputMediaUploadedDocument +// + TL_inputMediaDocument +// + TL_inputMediaVenue +// + TL_inputMediaGifExternal +// + TL_inputMediaPhotoExternal +// + TL_inputMediaDocumentExternal +// + TL_inputMediaGame +// + TL_inputMediaInvoice +// + TL_inputMediaGeoLive // -message BotCommand_Data { - string command = 1; - string description = 2; +message InputMedia_Data { + InputPhoto id_1 = 1; + string caption = 2; + InputFile file = 3; + repeated InputDocument stickers = 4; + int32 ttl_seconds = 5; + InputGeoPoint geo_point = 6; + string phone_number = 7; + string first_name = 8; + string last_name = 9; + string vcard = 10; + bool nosound_video = 11; + InputFile thumb = 12; + string mime_type = 13; + repeated DocumentAttribute attributes = 14; + InputDocument id_15 = 15; + string title = 16; + string address = 17; + string provider = 18; + string venue_id = 19; + string venue_type = 20; + string url = 21; + string q = 22; + InputGame id_23 = 23; + string description = 24; + InputWebDocument photo = 25; + Invoice invoice = 26; + bytes payload = 27; + DataJSON provider_data = 28; + string start_param = 29; + int32 period = 30; } -message BotCommand { +message InputMedia { TLConstructor constructor = 1; - BotCommand_Data data2 = 2; + InputMedia_Data data2 = 2; } -// botCommand#c27ac8c7 command:string description:string = BotCommand; -message TL_botCommand { - BotCommand_Data data2 = 2; +// inputMediaPhoto#e9bfb4f3 id:InputPhoto caption:string = InputMedia; +message TL_inputMediaPhotoLayer46 { + InputMedia_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// ChannelParticipant <-- -// + TL_channelParticipant -// + TL_channelParticipantSelf -// + TL_channelParticipantCreator -// + TL_channelParticipantAdmin -// + TL_channelParticipantBanned -// -message ChannelParticipant_Data { - int32 user_id = 1; - int32 date = 2; - int32 inviter_id = 3; - bool can_edit = 4; - int32 promoted_by = 5; - ChannelAdminRights admin_rights = 6; - bool left = 7; - int32 kicked_by = 8; - ChannelBannedRights banned_rights = 9; +// inputMediaEmpty#9664f57f = InputMedia; +message TL_inputMediaEmpty { + InputMedia_Data data2 = 2; } -message ChannelParticipant { - TLConstructor constructor = 1; - ChannelParticipant_Data data2 = 2; +// inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; +message TL_inputMediaUploadedPhoto { + InputMedia_Data data2 = 2; } -// channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant; -message TL_channelParticipant { - ChannelParticipant_Data data2 = 2; +// inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia; +message TL_inputMediaPhoto { + InputMedia_Data data2 = 2; } -// channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant; -message TL_channelParticipantSelf { - ChannelParticipant_Data data2 = 2; +// inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia; +message TL_inputMediaGeoPoint { + InputMedia_Data data2 = 2; } -// channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; -message TL_channelParticipantCreator { - ChannelParticipant_Data data2 = 2; +// inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia; +message TL_inputMediaContact { + InputMedia_Data data2 = 2; } -// channelParticipantAdmin#a82fa898 flags:# can_edit:flags.0?true user_id:int inviter_id:int promoted_by:int date:int admin_rights:ChannelAdminRights = ChannelParticipant; -message TL_channelParticipantAdmin { - ChannelParticipant_Data data2 = 2; +// inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; +message TL_inputMediaUploadedDocument { + InputMedia_Data data2 = 2; } -// channelParticipantBanned#222c1886 flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChannelBannedRights = ChannelParticipant; -message TL_channelParticipantBanned { - ChannelParticipant_Data data2 = 2; +// inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia; +message TL_inputMediaDocument { + InputMedia_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// PopularContact <-- -// + TL_popularContact -// -message PopularContact_Data { - int64 client_id = 1; - int32 importers = 2; +// inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia; +message TL_inputMediaVenue { + InputMedia_Data data2 = 2; } -message PopularContact { - TLConstructor constructor = 1; - PopularContact_Data data2 = 2; +// inputMediaGifExternal#4843b0fd url:string q:string = InputMedia; +message TL_inputMediaGifExternal { + InputMedia_Data data2 = 2; } -// popularContact#5ce14175 client_id:long importers:int = PopularContact; -message TL_popularContact { - PopularContact_Data data2 = 2; +// inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia; +message TL_inputMediaPhotoExternal { + InputMedia_Data data2 = 2; } +// inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia; +message TL_inputMediaDocumentExternal { + InputMedia_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// InputSingleMedia <-- -// + TL_inputSingleMedia -// -message InputSingleMedia_Data { - InputMedia media = 1; - int64 random_id = 2; - string message = 3; - repeated MessageEntity entities = 4; +// inputMediaGame#d33f43f3 id:InputGame = InputMedia; +message TL_inputMediaGame { + InputMedia_Data data2 = 2; } -message InputSingleMedia { - TLConstructor constructor = 1; - InputSingleMedia_Data data2 = 2; +// inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia; +message TL_inputMediaInvoice { + InputMedia_Data data2 = 2; } -// inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia; -message TL_inputSingleMedia { - InputSingleMedia_Data data2 = 2; +// inputMediaGeoLive#7b1a118f geo_point:InputGeoPoint period:int = InputMedia; +message TL_inputMediaGeoLive { + InputMedia_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputClientProxy <-- -// + TL_inputClientProxy +// InputGeoPoint <-- +// + TL_inputGeoPointEmpty +// + TL_inputGeoPoint // -message InputClientProxy_Data { - string address = 1; - int32 port = 2; +message InputGeoPoint_Data { + double lat = 1; + double long = 2; } -message InputClientProxy { +message InputGeoPoint { TLConstructor constructor = 1; - InputClientProxy_Data data2 = 2; + InputGeoPoint_Data data2 = 2; } -// inputClientProxy#75588b3f address:string port:int = InputClientProxy; -message TL_inputClientProxy { - InputClientProxy_Data data2 = 2; +// inputGeoPointEmpty#e4c123d6 = InputGeoPoint; +message TL_inputGeoPointEmpty { + InputGeoPoint_Data data2 = 2; +} + +// inputGeoPoint#f3b7acc9 lat:double long:double = InputGeoPoint; +message TL_inputGeoPoint { + InputGeoPoint_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// help_AppUpdate <-- -// + TL_help_appUpdate -// + TL_help_noAppUpdate +// InputDocument <-- +// + TL_inputDocumentEmpty +// + TL_inputDocument +// + TL_inputDocumentLayer86 // -message help_AppUpdate_Data { - bool popup = 1; - int32 id = 2; - string version = 3; - string text = 4; - repeated MessageEntity entities = 5; - Document document = 6; - string url = 7; +message InputDocument_Data { + int64 id = 1; + int64 access_hash = 2; + bytes file_reference = 3; } -message help_AppUpdate { +message InputDocument { TLConstructor constructor = 1; - help_AppUpdate_Data data2 = 2; + InputDocument_Data data2 = 2; } -// help.appUpdate#1da7158f flags:# popup:flags.0?true id:int version:string text:string entities:Vector document:flags.1?Document url:flags.2?string = help.AppUpdate; -message TL_help_appUpdate { - help_AppUpdate_Data data2 = 2; +// inputDocumentEmpty#72f0eaae = InputDocument; +message TL_inputDocumentEmpty { + InputDocument_Data data2 = 2; } -// help.noAppUpdate#c45a6536 = help.AppUpdate; -message TL_help_noAppUpdate { - help_AppUpdate_Data data2 = 2; +// inputDocument#18798952 id:long access_hash:long = InputDocument; +message TL_inputDocument { + InputDocument_Data data2 = 2; +} + +// inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument; +message TL_inputDocumentLayer86 { + InputDocument_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChannelBannedRights <-- -// + TL_channelBannedRights +// ChatParticipant <-- +// + TL_chatParticipant +// + TL_chatParticipantCreator +// + TL_chatParticipantAdmin // -message ChannelBannedRights_Data { - bool view_messages = 1; - bool send_messages = 2; - bool send_media = 3; - bool send_stickers = 4; - bool send_gifs = 5; - bool send_games = 6; - bool send_inline = 7; - bool embed_links = 8; - int32 until_date = 9; +message ChatParticipant_Data { + int32 user_id = 1; + int32 inviter_id = 2; + int32 date = 3; } -message ChannelBannedRights { +message ChatParticipant { TLConstructor constructor = 1; - ChannelBannedRights_Data data2 = 2; + ChatParticipant_Data data2 = 2; } -// channelBannedRights#58cf4249 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true until_date:int = ChannelBannedRights; -message TL_channelBannedRights { - ChannelBannedRights_Data data2 = 2; +// chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant; +message TL_chatParticipant { + ChatParticipant_Data data2 = 2; +} + +// chatParticipantCreator#da13538a user_id:int = ChatParticipant; +message TL_chatParticipantCreator { + ChatParticipant_Data data2 = 2; +} + +// chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant; +message TL_chatParticipantAdmin { + ChatParticipant_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SavedContact <-- -// + TL_savedPhoneContact +// ChatPhoto <-- +// + TL_chatPhotoEmpty +// + TL_chatPhoto // -message SavedContact_Data { - string phone = 1; - string first_name = 2; - string last_name = 3; - int32 date = 4; +message ChatPhoto_Data { + FileLocation photo_small = 1; + FileLocation photo_big = 2; } -message SavedContact { +message ChatPhoto { TLConstructor constructor = 1; - SavedContact_Data data2 = 2; + ChatPhoto_Data data2 = 2; } -// savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact; -message TL_savedPhoneContact { - SavedContact_Data data2 = 2; +// chatPhotoEmpty#37c1011c = ChatPhoto; +message TL_chatPhotoEmpty { + ChatPhoto_Data data2 = 2; +} + +// chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto; +message TL_chatPhoto { + ChatPhoto_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Updates <-- -// + TL_updateAccountResetAuthorization -// + TL_updatesTooLong -// + TL_updateShortMessage -// + TL_updateShortChatMessage -// + TL_updateShort -// + TL_updatesCombined -// + TL_updates -// + TL_updateShortSentMessage +// PhoneCallDiscardReason <-- +// + TL_phoneCallDiscardReasonMissed +// + TL_phoneCallDiscardReasonDisconnect +// + TL_phoneCallDiscardReasonHangup +// + TL_phoneCallDiscardReasonBusy // -message Updates_Data { - int32 user_id = 1; - int64 auth_key_id = 2; - bool out = 3; - bool mentioned = 4; - bool media_unread = 5; - bool silent = 6; - int32 id = 7; - string message = 8; - int32 pts = 9; - int32 pts_count = 10; - int32 date = 11; - MessageFwdHeader fwd_from = 12; - int32 via_bot_id = 13; - int32 reply_to_msg_id = 14; - repeated MessageEntity entities = 15; - int32 from_id = 16; - int32 chat_id = 17; - Update update = 18; - repeated Update updates = 19; - repeated User users = 20; - repeated Chat chats = 21; - int32 seq_start = 22; - int32 seq = 23; - MessageMedia media = 24; +message PhoneCallDiscardReason_Data { } -message Updates { +message PhoneCallDiscardReason { TLConstructor constructor = 1; - Updates_Data data2 = 2; + PhoneCallDiscardReason_Data data2 = 2; } -// updateAccountResetAuthorization user_id:int auth_key_id:long = Updates; -message TL_updateAccountResetAuthorization { - Updates_Data data2 = 2; +// phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason; +message TL_phoneCallDiscardReasonMissed { + PhoneCallDiscardReason_Data data2 = 2; } -// updatesTooLong#e317af7e = Updates; -message TL_updatesTooLong { - Updates_Data data2 = 2; +// phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason; +message TL_phoneCallDiscardReasonDisconnect { + PhoneCallDiscardReason_Data data2 = 2; } -// updateShortMessage#914fbf11 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; -message TL_updateShortMessage { - Updates_Data data2 = 2; +// phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason; +message TL_phoneCallDiscardReasonHangup { + PhoneCallDiscardReason_Data data2 = 2; } -// updateShortChatMessage#16812688 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; -message TL_updateShortChatMessage { - Updates_Data data2 = 2; +// phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason; +message TL_phoneCallDiscardReasonBusy { + PhoneCallDiscardReason_Data data2 = 2; } -// updateShort#78d4dec1 update:Update date:int = Updates; -message TL_updateShort { - Updates_Data data2 = 2; -} -// updatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates; -message TL_updatesCombined { - Updates_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// PhoneConnection <-- +// + TL_phoneConnection +// +message PhoneConnection_Data { + int64 id = 1; + string ip = 2; + string ipv6 = 3; + int32 port = 4; + bytes peer_tag = 5; } -// updates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates; -message TL_updates { - Updates_Data data2 = 2; +message PhoneConnection { + TLConstructor constructor = 1; + PhoneConnection_Data data2 = 2; } -// updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates; -message TL_updateShortSentMessage { - Updates_Data data2 = 2; +// phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; +message TL_phoneConnection { + PhoneConnection_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputDocument <-- -// + TL_inputDocumentEmpty -// + TL_inputDocument -// + TL_inputDocumentLayer86 +// ChannelAdminLogEvent <-- +// + TL_channelAdminLogEvent // -message InputDocument_Data { +message ChannelAdminLogEvent_Data { int64 id = 1; - int64 access_hash = 2; - bytes file_reference = 3; + int32 date = 2; + int32 user_id = 3; + ChannelAdminLogEventAction action = 4; } -message InputDocument { +message ChannelAdminLogEvent { TLConstructor constructor = 1; - InputDocument_Data data2 = 2; -} - -// inputDocumentEmpty#72f0eaae = InputDocument; -message TL_inputDocumentEmpty { - InputDocument_Data data2 = 2; -} - -// inputDocument#18798952 id:long access_hash:long = InputDocument; -message TL_inputDocument { - InputDocument_Data data2 = 2; + ChannelAdminLogEvent_Data data2 = 2; } -// inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument; -message TL_inputDocumentLayer86 { - InputDocument_Data data2 = 2; +// channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent; +message TL_channelAdminLogEvent { + ChannelAdminLogEvent_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SendMessageAction <-- -// + TL_sendMessageTypingAction -// + TL_sendMessageCancelAction -// + TL_sendMessageRecordVideoAction -// + TL_sendMessageUploadVideoAction -// + TL_sendMessageRecordAudioAction -// + TL_sendMessageUploadAudioAction -// + TL_sendMessageUploadPhotoAction -// + TL_sendMessageUploadDocumentAction -// + TL_sendMessageGeoLocationAction -// + TL_sendMessageChooseContactAction -// + TL_sendMessageGamePlayAction -// + TL_sendMessageRecordRoundAction -// + TL_sendMessageUploadRoundAction +// Document <-- +// + TL_documentEmpty +// + TL_document +// + TL_documentLayer86 // -message SendMessageAction_Data { - int32 progress = 1; +message Document_Data { + int64 id = 1; + int64 access_hash = 2; + int32 date = 3; + string mime_type = 4; + int32 size = 5; + PhotoSize thumb = 6; + int32 dc_id = 7; + int32 version = 8; + repeated DocumentAttribute attributes = 9; + bytes file_reference = 10; } -message SendMessageAction { +message Document { TLConstructor constructor = 1; - SendMessageAction_Data data2 = 2; + Document_Data data2 = 2; } -// sendMessageTypingAction#16bf744e = SendMessageAction; -message TL_sendMessageTypingAction { - SendMessageAction_Data data2 = 2; +// documentEmpty#36f8c871 id:long = Document; +message TL_documentEmpty { + Document_Data data2 = 2; } -// sendMessageCancelAction#fd5ec8f5 = SendMessageAction; -message TL_sendMessageCancelAction { - SendMessageAction_Data data2 = 2; +// document#87232bc7 id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int version:int attributes:Vector = Document; +message TL_document { + Document_Data data2 = 2; } -// sendMessageRecordVideoAction#a187d66f = SendMessageAction; -message TL_sendMessageRecordVideoAction { - SendMessageAction_Data data2 = 2; +// document#59534e4c id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = Document; +message TL_documentLayer86 { + Document_Data data2 = 2; } -// sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction; -message TL_sendMessageUploadVideoAction { - SendMessageAction_Data data2 = 2; -} -// sendMessageRecordAudioAction#d52f73f7 = SendMessageAction; -message TL_sendMessageRecordAudioAction { - SendMessageAction_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// account_PrivacyRules <-- +// + TL_account_privacyRules +// +message account_PrivacyRules_Data { + repeated PrivacyRule rules = 1; + repeated User users = 2; } -// sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction; -message TL_sendMessageUploadAudioAction { - SendMessageAction_Data data2 = 2; +message account_PrivacyRules { + TLConstructor constructor = 1; + account_PrivacyRules_Data data2 = 2; } -// sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction; -message TL_sendMessageUploadPhotoAction { - SendMessageAction_Data data2 = 2; +// account.privacyRules#554abb6f rules:Vector users:Vector = account.PrivacyRules; +message TL_account_privacyRules { + account_PrivacyRules_Data data2 = 2; } -// sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction; -message TL_sendMessageUploadDocumentAction { - SendMessageAction_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// InputPaymentCredentials <-- +// + TL_inputPaymentCredentialsSaved +// + TL_inputPaymentCredentials +// + TL_inputPaymentCredentialsApplePay +// + TL_inputPaymentCredentialsAndroidPay +// +message InputPaymentCredentials_Data { + string id = 1; + bytes tmp_password = 2; + bool save = 3; + DataJSON data = 4; + DataJSON payment_data = 5; + DataJSON payment_token = 6; + string google_transaction_id = 7; } -// sendMessageGeoLocationAction#176f8ba1 = SendMessageAction; -message TL_sendMessageGeoLocationAction { - SendMessageAction_Data data2 = 2; +message InputPaymentCredentials { + TLConstructor constructor = 1; + InputPaymentCredentials_Data data2 = 2; } -// sendMessageChooseContactAction#628cbc6f = SendMessageAction; -message TL_sendMessageChooseContactAction { - SendMessageAction_Data data2 = 2; +// inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; +message TL_inputPaymentCredentialsSaved { + InputPaymentCredentials_Data data2 = 2; } -// sendMessageGamePlayAction#dd6a8f48 = SendMessageAction; -message TL_sendMessageGamePlayAction { - SendMessageAction_Data data2 = 2; +// inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; +message TL_inputPaymentCredentials { + InputPaymentCredentials_Data data2 = 2; } -// sendMessageRecordRoundAction#88f27fbc = SendMessageAction; -message TL_sendMessageRecordRoundAction { - SendMessageAction_Data data2 = 2; +// inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials; +message TL_inputPaymentCredentialsApplePay { + InputPaymentCredentials_Data data2 = 2; } -// sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction; -message TL_sendMessageUploadRoundAction { - SendMessageAction_Data data2 = 2; +// inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials; +message TL_inputPaymentCredentialsAndroidPay { + InputPaymentCredentials_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PrivacyRule <-- -// + TL_privacyValueAllowContacts -// + TL_privacyValueAllowAll -// + TL_privacyValueAllowUsers -// + TL_privacyValueDisallowContacts -// + TL_privacyValueDisallowAll -// + TL_privacyValueDisallowUsers +// account_TmpPassword <-- +// + TL_account_tmpPassword // -message PrivacyRule_Data { - repeated int32 users = 1; +message account_TmpPassword_Data { + bytes tmp_password = 1; + int32 valid_until = 2; } -message PrivacyRule { +message account_TmpPassword { TLConstructor constructor = 1; - PrivacyRule_Data data2 = 2; -} - -// privacyValueAllowContacts#fffe1bac = PrivacyRule; -message TL_privacyValueAllowContacts { - PrivacyRule_Data data2 = 2; + account_TmpPassword_Data data2 = 2; } -// privacyValueAllowAll#65427b82 = PrivacyRule; -message TL_privacyValueAllowAll { - PrivacyRule_Data data2 = 2; +// account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; +message TL_account_tmpPassword { + account_TmpPassword_Data data2 = 2; } -// privacyValueAllowUsers#4d5bbe0c users:Vector = PrivacyRule; -message TL_privacyValueAllowUsers { - PrivacyRule_Data data2 = 2; -} -// privacyValueDisallowContacts#f888fa1a = PrivacyRule; -message TL_privacyValueDisallowContacts { - PrivacyRule_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// PhoneCallProtocol <-- +// + TL_phoneCallProtocol +// +message PhoneCallProtocol_Data { + bool udp_p2p = 1; + bool udp_reflector = 2; + int32 min_layer = 3; + int32 max_layer = 4; } -// privacyValueDisallowAll#8b73e763 = PrivacyRule; -message TL_privacyValueDisallowAll { - PrivacyRule_Data data2 = 2; +message PhoneCallProtocol { + TLConstructor constructor = 1; + PhoneCallProtocol_Data data2 = 2; } -// privacyValueDisallowUsers#c7f49b7 users:Vector = PrivacyRule; -message TL_privacyValueDisallowUsers { - PrivacyRule_Data data2 = 2; +// phoneCallProtocol#a2bb35cb flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int = PhoneCallProtocol; +message TL_phoneCallProtocol { + PhoneCallProtocol_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_Stickers <-- -// + TL_messages_stickersNotModified -// + TL_messages_stickers +// account_WebAuthorizations <-- +// + TL_account_webAuthorizations // -message messages_Stickers_Data { - int32 hash = 1; - repeated Document stickers = 2; +message account_WebAuthorizations_Data { + repeated WebAuthorization authorizations = 1; + repeated User users = 2; } -message messages_Stickers { +message account_WebAuthorizations { TLConstructor constructor = 1; - messages_Stickers_Data data2 = 2; -} - -// messages.stickersNotModified#f1749a22 = messages.Stickers; -message TL_messages_stickersNotModified { - messages_Stickers_Data data2 = 2; + account_WebAuthorizations_Data data2 = 2; } -// messages.stickers#e4599bbd hash:int stickers:Vector = messages.Stickers; -message TL_messages_stickers { - messages_Stickers_Data data2 = 2; +// account.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations; +message TL_account_webAuthorizations { + account_WebAuthorizations_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// DocumentAttribute <-- -// + TL_documentAttributeImageSize -// + TL_documentAttributeAnimated -// + TL_documentAttributeSticker -// + TL_documentAttributeVideo -// + TL_documentAttributeAudio -// + TL_documentAttributeFilename -// + TL_documentAttributeHasStickers +// SecureFile <-- +// + TL_secureFileEmpty +// + TL_secureFile // -message DocumentAttribute_Data { - int32 w = 1; - int32 h = 2; - bool mask = 3; - string alt = 4; - InputStickerSet stickerset = 5; - MaskCoords mask_coords = 6; - bool round_message = 7; - bool supports_streaming = 8; - int32 duration = 9; - bool voice = 10; - string title = 11; - string performer = 12; - bytes waveform = 13; - string file_name = 14; +message SecureFile_Data { + int64 id = 1; + int64 access_hash = 2; + int32 size = 3; + int32 dc_id = 4; + int32 date = 5; + bytes file_hash = 6; + bytes secret = 7; } -message DocumentAttribute { +message SecureFile { TLConstructor constructor = 1; - DocumentAttribute_Data data2 = 2; + SecureFile_Data data2 = 2; } -// documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; -message TL_documentAttributeImageSize { - DocumentAttribute_Data data2 = 2; +// secureFileEmpty#64199744 = SecureFile; +message TL_secureFileEmpty { + SecureFile_Data data2 = 2; } -// documentAttributeAnimated#11b58939 = DocumentAttribute; -message TL_documentAttributeAnimated { - DocumentAttribute_Data data2 = 2; +// secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile; +message TL_secureFile { + SecureFile_Data data2 = 2; } -// documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute; -message TL_documentAttributeSticker { - DocumentAttribute_Data data2 = 2; -} -// documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute; -message TL_documentAttributeVideo { - DocumentAttribute_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// photos_Photos <-- +// + TL_photos_photos +// + TL_photos_photosSlice +// +message photos_Photos_Data { + repeated Photo photos = 1; + repeated User users = 2; + int32 count = 3; } -// documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; -message TL_documentAttributeAudio { - DocumentAttribute_Data data2 = 2; +message photos_Photos { + TLConstructor constructor = 1; + photos_Photos_Data data2 = 2; } -// documentAttributeFilename#15590068 file_name:string = DocumentAttribute; -message TL_documentAttributeFilename { - DocumentAttribute_Data data2 = 2; +// photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos; +message TL_photos_photos { + photos_Photos_Data data2 = 2; } -// documentAttributeHasStickers#9801d2f7 = DocumentAttribute; -message TL_documentAttributeHasStickers { - DocumentAttribute_Data data2 = 2; +// photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos; +message TL_photos_photosSlice { + photos_Photos_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// account_PasswordSettings <-- -// + TL_account_passwordSettings +// auth_SentCodeType <-- +// + TL_auth_sentCodeTypeApp +// + TL_auth_sentCodeTypeSms +// + TL_auth_sentCodeTypeCall +// + TL_auth_sentCodeTypeFlashCall // -message account_PasswordSettings_Data { - string email = 1; - SecureSecretSettings secure_settings = 2; +message auth_SentCodeType_Data { + int32 length = 1; + string pattern = 2; } -message account_PasswordSettings { +message auth_SentCodeType { TLConstructor constructor = 1; - account_PasswordSettings_Data data2 = 2; + auth_SentCodeType_Data data2 = 2; } -// account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings; -message TL_account_passwordSettings { - account_PasswordSettings_Data data2 = 2; +// auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType; +message TL_auth_sentCodeTypeApp { + auth_SentCodeType_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// account_PasswordInputSettings <-- -// + TL_account_passwordInputSettings -// -message account_PasswordInputSettings_Data { - PasswordKdfAlgo new_algo = 1; - bytes new_password_hash = 2; - string hint = 3; - string email = 4; - SecureSecretSettings new_secure_settings = 5; +// auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType; +message TL_auth_sentCodeTypeSms { + auth_SentCodeType_Data data2 = 2; } -message account_PasswordInputSettings { - TLConstructor constructor = 1; - account_PasswordInputSettings_Data data2 = 2; +// auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType; +message TL_auth_sentCodeTypeCall { + auth_SentCodeType_Data data2 = 2; } -// account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings; -message TL_account_passwordInputSettings { - account_PasswordInputSettings_Data data2 = 2; +// auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType; +message TL_auth_sentCodeTypeFlashCall { + auth_SentCodeType_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_MessageEditData <-- -// + TL_messages_messageEditData +// PaymentSavedCredentials <-- +// + TL_paymentSavedCredentialsCard // -message messages_MessageEditData_Data { - bool caption = 1; +message PaymentSavedCredentials_Data { + string id = 1; + string title = 2; } -message messages_MessageEditData { +message PaymentSavedCredentials { TLConstructor constructor = 1; - messages_MessageEditData_Data data2 = 2; + PaymentSavedCredentials_Data data2 = 2; } -// messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData; -message TL_messages_messageEditData { - messages_MessageEditData_Data data2 = 2; +// paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; +message TL_paymentSavedCredentialsCard { + PaymentSavedCredentials_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// MaskCoords <-- -// + TL_maskCoords +// contacts_Contacts <-- +// + TL_contacts_contactsNotModified +// + TL_contacts_contacts // -message MaskCoords_Data { - int32 n = 1; - double x = 2; - double y = 3; - double zoom = 4; +message contacts_Contacts_Data { + repeated Contact contacts = 1; + int32 saved_count = 2; + repeated User users = 3; } -message MaskCoords { +message contacts_Contacts { TLConstructor constructor = 1; - MaskCoords_Data data2 = 2; + contacts_Contacts_Data data2 = 2; } -// maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords; -message TL_maskCoords { - MaskCoords_Data data2 = 2; +// contacts.contactsNotModified#b74ba9d2 = contacts.Contacts; +message TL_contacts_contactsNotModified { + contacts_Contacts_Data data2 = 2; +} + +// contacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts; +message TL_contacts_contacts { + contacts_Contacts_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SecureValue <-- -// + TL_secureValue +// messages_SentEncryptedMessage <-- +// + TL_messages_sentEncryptedMessage +// + TL_messages_sentEncryptedFile // -message SecureValue_Data { - SecureValueType type = 1; - SecureData data = 2; - SecureFile front_side = 3; - SecureFile reverse_side = 4; - SecureFile selfie = 5; - repeated SecureFile translation = 6; - repeated SecureFile files = 7; - SecurePlainData plain_data = 8; - bytes hash = 9; +message messages_SentEncryptedMessage_Data { + int32 date = 1; + EncryptedFile file = 2; } -message SecureValue { +message messages_SentEncryptedMessage { TLConstructor constructor = 1; - SecureValue_Data data2 = 2; + messages_SentEncryptedMessage_Data data2 = 2; } -// secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue; -message TL_secureValue { - SecureValue_Data data2 = 2; +// messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage; +message TL_messages_sentEncryptedMessage { + messages_SentEncryptedMessage_Data data2 = 2; +} + +// messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage; +message TL_messages_sentEncryptedFile { + messages_SentEncryptedMessage_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// account_PrivacyRules <-- -// + TL_account_privacyRules +// messages_StickerSet <-- +// + TL_messages_stickerSet // -message account_PrivacyRules_Data { - repeated PrivacyRule rules = 1; - repeated User users = 2; +message messages_StickerSet_Data { + StickerSet set = 1; + repeated StickerPack packs = 2; + repeated Document documents = 3; } -message account_PrivacyRules { +message messages_StickerSet { TLConstructor constructor = 1; - account_PrivacyRules_Data data2 = 2; + messages_StickerSet_Data data2 = 2; } -// account.privacyRules#554abb6f rules:Vector users:Vector = account.PrivacyRules; -message TL_account_privacyRules { - account_PrivacyRules_Data data2 = 2; +// messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; +message TL_messages_stickerSet { + messages_StickerSet_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// auth_CodeType <-- -// + TL_auth_codeTypeSms -// + TL_auth_codeTypeCall -// + TL_auth_codeTypeFlashCall +// help_AppUpdate <-- +// + TL_help_appUpdate +// + TL_help_noAppUpdate // -message auth_CodeType_Data { +message help_AppUpdate_Data { + bool popup = 1; + int32 id = 2; + string version = 3; + string text = 4; + repeated MessageEntity entities = 5; + Document document = 6; + string url = 7; } -message auth_CodeType { +message help_AppUpdate { TLConstructor constructor = 1; - auth_CodeType_Data data2 = 2; -} - -// auth.codeTypeSms#72a3158c = auth.CodeType; -message TL_auth_codeTypeSms { - auth_CodeType_Data data2 = 2; + help_AppUpdate_Data data2 = 2; } -// auth.codeTypeCall#741cd3e3 = auth.CodeType; -message TL_auth_codeTypeCall { - auth_CodeType_Data data2 = 2; +// help.appUpdate#1da7158f flags:# popup:flags.0?true id:int version:string text:string entities:Vector document:flags.1?Document url:flags.2?string = help.AppUpdate; +message TL_help_appUpdate { + help_AppUpdate_Data data2 = 2; } -// auth.codeTypeFlashCall#226ccefb = auth.CodeType; -message TL_auth_codeTypeFlashCall { - auth_CodeType_Data data2 = 2; +// help.noAppUpdate#c45a6536 = help.AppUpdate; +message TL_help_noAppUpdate { + help_AppUpdate_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SchemeParam <-- -// + TL_schemeParam +// HighScore <-- +// + TL_highScore // -message SchemeParam_Data { - string name = 1; - string type = 2; +message HighScore_Data { + int32 pos = 1; + int32 user_id = 2; + int32 score = 3; } -message SchemeParam { +message HighScore { TLConstructor constructor = 1; - SchemeParam_Data data2 = 2; + HighScore_Data data2 = 2; } -// schemeParam#21b59bef name:string type:string = SchemeParam; -message TL_schemeParam { - SchemeParam_Data data2 = 2; +// highScore#58fffcd0 pos:int user_id:int score:int = HighScore; +message TL_highScore { + HighScore_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputEncryptedChat <-- -// + TL_inputEncryptedChat +// updates_State <-- +// + TL_updates_state // -message InputEncryptedChat_Data { - int32 chat_id = 1; - int64 access_hash = 2; +message updates_State_Data { + int32 pts = 1; + int32 qts = 2; + int32 date = 3; + int32 seq = 4; + int32 unread_count = 5; } -message InputEncryptedChat { +message updates_State { TLConstructor constructor = 1; - InputEncryptedChat_Data data2 = 2; + updates_State_Data data2 = 2; } -// inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat; -message TL_inputEncryptedChat { - InputEncryptedChat_Data data2 = 2; +// updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; +message TL_updates_state { + updates_State_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// account_Password <-- -// + TL_account_password +// WebPage <-- +// + TL_webPageEmpty +// + TL_webPagePending +// + TL_webPage +// + TL_webPageNotModified // -message account_Password_Data { - bool has_recovery = 1; - bool has_secure_values = 2; - bool has_password = 3; - PasswordKdfAlgo current_algo = 4; - bytes srp_B = 5; - int64 srp_id = 6; - string hint = 7; - string email_unconfirmed_pattern = 8; - PasswordKdfAlgo new_algo = 9; - SecurePasswordKdfAlgo new_secure_algo = 10; - bytes secure_random = 11; +message WebPage_Data { + int64 id = 1; + int32 date = 2; + string url = 3; + string display_url = 4; + int32 hash = 5; + string type = 6; + string site_name = 7; + string title = 8; + string description = 9; + Photo photo = 10; + string embed_url = 11; + string embed_type = 12; + int32 embed_width = 13; + int32 embed_height = 14; + int32 duration = 15; + string author = 16; + Document document = 17; + Page cached_page = 18; } -message account_Password { +message WebPage { TLConstructor constructor = 1; - account_Password_Data data2 = 2; + WebPage_Data data2 = 2; } -// account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password; -message TL_account_password { - account_Password_Data data2 = 2; +// webPageEmpty#eb1477e8 id:long = WebPage; +message TL_webPageEmpty { + WebPage_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// KeyboardButtonRow <-- -// + TL_keyboardButtonRow -// -message KeyboardButtonRow_Data { - repeated KeyboardButton buttons = 1; +// webPagePending#c586da1c id:long date:int = WebPage; +message TL_webPagePending { + WebPage_Data data2 = 2; } -message KeyboardButtonRow { - TLConstructor constructor = 1; - KeyboardButtonRow_Data data2 = 2; +// webPage#5f07b4bc flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page = WebPage; +message TL_webPage { + WebPage_Data data2 = 2; } -// keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; -message TL_keyboardButtonRow { - KeyboardButtonRow_Data data2 = 2; +// webPageNotModified#85849473 = WebPage; +message TL_webPageNotModified { + WebPage_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// payments_PaymentReceipt <-- -// + TL_payments_paymentReceipt +// channels_ChannelParticipant <-- +// + TL_channels_channelParticipant // -message payments_PaymentReceipt_Data { - int32 date = 1; - int32 bot_id = 2; - Invoice invoice = 3; - int32 provider_id = 4; - PaymentRequestedInfo info = 5; - ShippingOption shipping = 6; - string currency = 7; - int64 total_amount = 8; - string credentials_title = 9; - repeated User users = 10; +message channels_ChannelParticipant_Data { + ChannelParticipant participant = 1; + repeated User users = 2; } -message payments_PaymentReceipt { +message channels_ChannelParticipant { TLConstructor constructor = 1; - payments_PaymentReceipt_Data data2 = 2; + channels_ChannelParticipant_Data data2 = 2; } -// payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; -message TL_payments_paymentReceipt { - payments_PaymentReceipt_Data data2 = 2; +// channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector = channels.ChannelParticipant; +message TL_channels_channelParticipant { + channels_ChannelParticipant_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ContactBlocked <-- -// + TL_contactBlocked +// SendMessageAction <-- +// + TL_sendMessageTypingAction +// + TL_sendMessageCancelAction +// + TL_sendMessageRecordVideoAction +// + TL_sendMessageUploadVideoAction +// + TL_sendMessageRecordAudioAction +// + TL_sendMessageUploadAudioAction +// + TL_sendMessageUploadPhotoAction +// + TL_sendMessageUploadDocumentAction +// + TL_sendMessageGeoLocationAction +// + TL_sendMessageChooseContactAction +// + TL_sendMessageGamePlayAction +// + TL_sendMessageRecordRoundAction +// + TL_sendMessageUploadRoundAction // -message ContactBlocked_Data { - int32 user_id = 1; - int32 date = 2; +message SendMessageAction_Data { + int32 progress = 1; } -message ContactBlocked { +message SendMessageAction { TLConstructor constructor = 1; - ContactBlocked_Data data2 = 2; + SendMessageAction_Data data2 = 2; } -// contactBlocked#561bc879 user_id:int date:int = ContactBlocked; -message TL_contactBlocked { - ContactBlocked_Data data2 = 2; +// sendMessageTypingAction#16bf744e = SendMessageAction; +message TL_sendMessageTypingAction { + SendMessageAction_Data data2 = 2; } +// sendMessageCancelAction#fd5ec8f5 = SendMessageAction; +message TL_sendMessageCancelAction { + SendMessageAction_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// StickerSet <-- -// + TL_stickerSet -// -message StickerSet_Data { - bool archived = 1; - bool official = 2; - bool masks = 3; - int32 installed_date = 4; - int64 id = 5; - int64 access_hash = 6; - string title = 7; - string short_name = 8; - int32 count = 9; - int32 hash = 10; +// sendMessageRecordVideoAction#a187d66f = SendMessageAction; +message TL_sendMessageRecordVideoAction { + SendMessageAction_Data data2 = 2; } -message StickerSet { - TLConstructor constructor = 1; - StickerSet_Data data2 = 2; +// sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction; +message TL_sendMessageUploadVideoAction { + SendMessageAction_Data data2 = 2; } -// stickerSet#5585a139 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet; -message TL_stickerSet { - StickerSet_Data data2 = 2; +// sendMessageRecordAudioAction#d52f73f7 = SendMessageAction; +message TL_sendMessageRecordAudioAction { + SendMessageAction_Data data2 = 2; } +// sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction; +message TL_sendMessageUploadAudioAction { + SendMessageAction_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// contacts_Found <-- -// + TL_contacts_found -// -message contacts_Found_Data { - repeated Peer my_results = 1; - repeated Peer results = 2; - repeated Chat chats = 3; - repeated User users = 4; +// sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction; +message TL_sendMessageUploadPhotoAction { + SendMessageAction_Data data2 = 2; } -message contacts_Found { - TLConstructor constructor = 1; - contacts_Found_Data data2 = 2; +// sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction; +message TL_sendMessageUploadDocumentAction { + SendMessageAction_Data data2 = 2; } -// contacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found; -message TL_contacts_found { - contacts_Found_Data data2 = 2; +// sendMessageGeoLocationAction#176f8ba1 = SendMessageAction; +message TL_sendMessageGeoLocationAction { + SendMessageAction_Data data2 = 2; } +// sendMessageChooseContactAction#628cbc6f = SendMessageAction; +message TL_sendMessageChooseContactAction { + SendMessageAction_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// messages_AffectedMessages <-- -// + TL_messages_affectedMessages -// -message messages_AffectedMessages_Data { - int32 pts = 1; - int32 pts_count = 2; +// sendMessageGamePlayAction#dd6a8f48 = SendMessageAction; +message TL_sendMessageGamePlayAction { + SendMessageAction_Data data2 = 2; } -message messages_AffectedMessages { - TLConstructor constructor = 1; - messages_AffectedMessages_Data data2 = 2; +// sendMessageRecordRoundAction#88f27fbc = SendMessageAction; +message TL_sendMessageRecordRoundAction { + SendMessageAction_Data data2 = 2; } -// messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages; -message TL_messages_affectedMessages { - messages_AffectedMessages_Data data2 = 2; +// sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction; +message TL_sendMessageUploadRoundAction { + SendMessageAction_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_StickerSetInstallResult <-- -// + TL_messages_stickerSetInstallResultSuccess -// + TL_messages_stickerSetInstallResultArchive +// ContactLink <-- +// + TL_contactLinkUnknown +// + TL_contactLinkNone +// + TL_contactLinkHasPhone +// + TL_contactLinkContact // -message messages_StickerSetInstallResult_Data { - repeated StickerSetCovered sets = 1; +message ContactLink_Data { } -message messages_StickerSetInstallResult { +message ContactLink { TLConstructor constructor = 1; - messages_StickerSetInstallResult_Data data2 = 2; + ContactLink_Data data2 = 2; } -// messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult; -message TL_messages_stickerSetInstallResultSuccess { - messages_StickerSetInstallResult_Data data2 = 2; +// contactLinkUnknown#5f4f9247 = ContactLink; +message TL_contactLinkUnknown { + ContactLink_Data data2 = 2; } -// messages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult; -message TL_messages_stickerSetInstallResultArchive { - messages_StickerSetInstallResult_Data data2 = 2; +// contactLinkNone#feedd3ad = ContactLink; +message TL_contactLinkNone { + ContactLink_Data data2 = 2; +} + +// contactLinkHasPhone#268f3f59 = ContactLink; +message TL_contactLinkHasPhone { + ContactLink_Data data2 = 2; +} + +// contactLinkContact#d502c2d0 = ContactLink; +message TL_contactLinkContact { + ContactLink_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// help_DeepLinkInfo <-- -// + TL_help_deepLinkInfoEmpty -// + TL_help_deepLinkInfo +// PaymentRequestedInfo <-- +// + TL_paymentRequestedInfo // -message help_DeepLinkInfo_Data { - bool update_app = 1; - string message = 2; - repeated MessageEntity entities = 3; +message PaymentRequestedInfo_Data { + string name = 1; + string phone = 2; + string email = 3; + PostAddress shipping_address = 4; } -message help_DeepLinkInfo { +message PaymentRequestedInfo { TLConstructor constructor = 1; - help_DeepLinkInfo_Data data2 = 2; -} - -// help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo; -message TL_help_deepLinkInfoEmpty { - help_DeepLinkInfo_Data data2 = 2; + PaymentRequestedInfo_Data data2 = 2; } -// help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo; -message TL_help_deepLinkInfo { - help_DeepLinkInfo_Data data2 = 2; +// paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo; +message TL_paymentRequestedInfo { + PaymentRequestedInfo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// auth_CheckedPhone <-- -// + TL_auth_checkedPhone +// LabeledPrice <-- +// + TL_labeledPrice // -message auth_CheckedPhone_Data { - Bool phone_registered = 1; +message LabeledPrice_Data { + string label = 1; + int64 amount = 2; } -message auth_CheckedPhone { +message LabeledPrice { TLConstructor constructor = 1; - auth_CheckedPhone_Data data2 = 2; + LabeledPrice_Data data2 = 2; } -// auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone; -message TL_auth_checkedPhone { - auth_CheckedPhone_Data data2 = 2; +// labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; +message TL_labeledPrice { + LabeledPrice_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// EncryptedChat <-- -// + TL_encryptedChatEmpty -// + TL_encryptedChatWaiting -// + TL_encryptedChatRequested -// + TL_encryptedChat -// + TL_encryptedChatDiscarded +// SecureValue <-- +// + TL_secureValue // -message EncryptedChat_Data { - int32 id = 1; - int64 access_hash = 2; - int32 date = 3; - int32 admin_id = 4; - int32 participant_id = 5; - bytes g_a = 6; - bytes g_a_or_b = 7; - int64 key_fingerprint = 8; +message SecureValue_Data { + SecureValueType type = 1; + SecureData data = 2; + SecureFile front_side = 3; + SecureFile reverse_side = 4; + SecureFile selfie = 5; + repeated SecureFile translation = 6; + repeated SecureFile files = 7; + SecurePlainData plain_data = 8; + bytes hash = 9; } -message EncryptedChat { +message SecureValue { TLConstructor constructor = 1; - EncryptedChat_Data data2 = 2; + SecureValue_Data data2 = 2; } -// encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat; -message TL_encryptedChatEmpty { - EncryptedChat_Data data2 = 2; +// secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue; +message TL_secureValue { + SecureValue_Data data2 = 2; } -// encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat; -message TL_encryptedChatWaiting { - EncryptedChat_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// messages_DhConfig <-- +// + TL_messages_dhConfigNotModified +// + TL_messages_dhConfig +// +message messages_DhConfig_Data { + bytes random = 1; + int32 g = 2; + bytes p = 3; + int32 version = 4; } -// encryptedChatRequested#c878527e id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat; -message TL_encryptedChatRequested { - EncryptedChat_Data data2 = 2; +message messages_DhConfig { + TLConstructor constructor = 1; + messages_DhConfig_Data data2 = 2; } -// encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat; -message TL_encryptedChat { - EncryptedChat_Data data2 = 2; +// messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig; +message TL_messages_dhConfigNotModified { + messages_DhConfig_Data data2 = 2; } -// encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat; -message TL_encryptedChatDiscarded { - EncryptedChat_Data data2 = 2; +// messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig; +message TL_messages_dhConfig { + messages_DhConfig_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ReplyMarkup <-- -// + TL_replyKeyboardHide -// + TL_replyKeyboardForceReply -// + TL_replyKeyboardMarkup -// + TL_replyInlineMarkup +// contacts_ResolvedPeer <-- +// + TL_contacts_resolvedPeer // -message ReplyMarkup_Data { - bool selective = 1; - bool single_use = 2; - bool resize = 3; - repeated KeyboardButtonRow rows = 4; +message contacts_ResolvedPeer_Data { + Peer peer = 1; + repeated Chat chats = 2; + repeated User users = 3; } -message ReplyMarkup { +message contacts_ResolvedPeer { TLConstructor constructor = 1; - ReplyMarkup_Data data2 = 2; + contacts_ResolvedPeer_Data data2 = 2; } -// replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; -message TL_replyKeyboardHide { - ReplyMarkup_Data data2 = 2; +// contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer; +message TL_contacts_resolvedPeer { + contacts_ResolvedPeer_Data data2 = 2; } -// replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup; -message TL_replyKeyboardForceReply { - ReplyMarkup_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// InlineBotSwitchPM <-- +// + TL_inlineBotSwitchPM +// +message InlineBotSwitchPM_Data { + string text = 1; + string start_param = 2; } -// replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector = ReplyMarkup; -message TL_replyKeyboardMarkup { - ReplyMarkup_Data data2 = 2; +message InlineBotSwitchPM { + TLConstructor constructor = 1; + InlineBotSwitchPM_Data data2 = 2; } -// replyInlineMarkup#48a30254 rows:Vector = ReplyMarkup; -message TL_replyInlineMarkup { - ReplyMarkup_Data data2 = 2; +// inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM; +message TL_inlineBotSwitchPM { + InlineBotSwitchPM_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// MessageEntity <-- -// + TL_messageEntityUnknown -// + TL_messageEntityMention -// + TL_messageEntityHashtag -// + TL_messageEntityBotCommand -// + TL_messageEntityUrl -// + TL_messageEntityEmail -// + TL_messageEntityBold -// + TL_messageEntityItalic -// + TL_messageEntityCode -// + TL_messageEntityPre -// + TL_messageEntityTextUrl -// + TL_messageEntityMentionName -// + TL_inputMessageEntityMentionName -// + TL_messageEntityPhone -// + TL_messageEntityCashtag +// DocumentAttribute <-- +// + TL_documentAttributeImageSize +// + TL_documentAttributeAnimated +// + TL_documentAttributeSticker +// + TL_documentAttributeVideo +// + TL_documentAttributeAudio +// + TL_documentAttributeFilename +// + TL_documentAttributeHasStickers // -message MessageEntity_Data { - int32 offset = 1; - int32 length = 2; - string language = 3; - string url = 4; - int32 user_id_5 = 5; - InputUser user_id_6 = 6; +message DocumentAttribute_Data { + int32 w = 1; + int32 h = 2; + bool mask = 3; + string alt = 4; + InputStickerSet stickerset = 5; + MaskCoords mask_coords = 6; + bool round_message = 7; + bool supports_streaming = 8; + int32 duration = 9; + bool voice = 10; + string title = 11; + string performer = 12; + bytes waveform = 13; + string file_name = 14; } -message MessageEntity { +message DocumentAttribute { TLConstructor constructor = 1; - MessageEntity_Data data2 = 2; -} - -// messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity; -message TL_messageEntityUnknown { - MessageEntity_Data data2 = 2; -} - -// messageEntityMention#fa04579d offset:int length:int = MessageEntity; -message TL_messageEntityMention { - MessageEntity_Data data2 = 2; -} - -// messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity; -message TL_messageEntityHashtag { - MessageEntity_Data data2 = 2; -} - -// messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity; -message TL_messageEntityBotCommand { - MessageEntity_Data data2 = 2; + DocumentAttribute_Data data2 = 2; } -// messageEntityUrl#6ed02538 offset:int length:int = MessageEntity; -message TL_messageEntityUrl { - MessageEntity_Data data2 = 2; +// documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; +message TL_documentAttributeImageSize { + DocumentAttribute_Data data2 = 2; } -// messageEntityEmail#64e475c2 offset:int length:int = MessageEntity; -message TL_messageEntityEmail { - MessageEntity_Data data2 = 2; +// documentAttributeAnimated#11b58939 = DocumentAttribute; +message TL_documentAttributeAnimated { + DocumentAttribute_Data data2 = 2; } -// messageEntityBold#bd610bc9 offset:int length:int = MessageEntity; -message TL_messageEntityBold { - MessageEntity_Data data2 = 2; +// documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute; +message TL_documentAttributeSticker { + DocumentAttribute_Data data2 = 2; } -// messageEntityItalic#826f8b60 offset:int length:int = MessageEntity; -message TL_messageEntityItalic { - MessageEntity_Data data2 = 2; +// documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute; +message TL_documentAttributeVideo { + DocumentAttribute_Data data2 = 2; } -// messageEntityCode#28a20571 offset:int length:int = MessageEntity; -message TL_messageEntityCode { - MessageEntity_Data data2 = 2; +// documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; +message TL_documentAttributeAudio { + DocumentAttribute_Data data2 = 2; } -// messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity; -message TL_messageEntityPre { - MessageEntity_Data data2 = 2; +// documentAttributeFilename#15590068 file_name:string = DocumentAttribute; +message TL_documentAttributeFilename { + DocumentAttribute_Data data2 = 2; } -// messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity; -message TL_messageEntityTextUrl { - MessageEntity_Data data2 = 2; +// documentAttributeHasStickers#9801d2f7 = DocumentAttribute; +message TL_documentAttributeHasStickers { + DocumentAttribute_Data data2 = 2; } -// messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity; -message TL_messageEntityMentionName { - MessageEntity_Data data2 = 2; -} -// inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity; -message TL_inputMessageEntityMentionName { - MessageEntity_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// CdnConfig <-- +// + TL_cdnConfig +// +message CdnConfig_Data { + repeated CdnPublicKey public_keys = 1; } -// messageEntityPhone#9b69e34b offset:int length:int = MessageEntity; -message TL_messageEntityPhone { - MessageEntity_Data data2 = 2; +message CdnConfig { + TLConstructor constructor = 1; + CdnConfig_Data data2 = 2; } -// messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity; -message TL_messageEntityCashtag { - MessageEntity_Data data2 = 2; +// cdnConfig#5725e40a public_keys:Vector = CdnConfig; +message TL_cdnConfig { + CdnConfig_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PhoneCall <-- -// + TL_phoneCallEmpty -// + TL_phoneCallWaiting -// + TL_phoneCallRequested -// + TL_phoneCallAccepted -// + TL_phoneCall -// + TL_phoneCallDiscarded +// messages_FoundStickerSets <-- +// + TL_messages_foundStickerSetsNotModified +// + TL_messages_foundStickerSets // -message PhoneCall_Data { - int64 id = 1; - int64 access_hash = 2; - int32 date = 3; - int32 admin_id = 4; - int32 participant_id = 5; - PhoneCallProtocol protocol = 6; - int32 receive_date = 7; - bytes g_a_hash = 8; - bytes g_b = 9; - bytes g_a_or_b = 10; - int64 key_fingerprint = 11; - PhoneConnection connection = 12; - repeated PhoneConnection alternative_connections = 13; - int32 start_date = 14; - bool need_rating = 15; - bool need_debug = 16; - PhoneCallDiscardReason reason = 17; - int32 duration = 18; +message messages_FoundStickerSets_Data { + int32 hash = 1; + repeated StickerSetCovered sets = 2; } -message PhoneCall { +message messages_FoundStickerSets { TLConstructor constructor = 1; - PhoneCall_Data data2 = 2; + messages_FoundStickerSets_Data data2 = 2; } -// phoneCallEmpty#5366c915 id:long = PhoneCall; -message TL_phoneCallEmpty { - PhoneCall_Data data2 = 2; +// messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets; +message TL_messages_foundStickerSetsNotModified { + messages_FoundStickerSets_Data data2 = 2; } -// phoneCallWaiting#1b8f4ad1 flags:# id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; -message TL_phoneCallWaiting { - PhoneCall_Data data2 = 2; +// messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets; +message TL_messages_foundStickerSets { + messages_FoundStickerSets_Data data2 = 2; } -// phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; -message TL_phoneCallRequested { - PhoneCall_Data data2 = 2; -} -// phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; -message TL_phoneCallAccepted { - PhoneCall_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// auth_SentCode <-- +// + TL_auth_sentCode +// +message auth_SentCode_Data { + bool phone_registered = 1; + auth_SentCodeType type = 2; + string phone_code_hash = 3; + auth_CodeType next_type = 4; + int32 timeout = 5; + help_TermsOfService terms_of_service = 6; } -// phoneCall#ffe6ab67 id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connection:PhoneConnection alternative_connections:Vector start_date:int = PhoneCall; -message TL_phoneCall { - PhoneCall_Data data2 = 2; +message auth_SentCode { + TLConstructor constructor = 1; + auth_SentCode_Data data2 = 2; } -// phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; -message TL_phoneCallDiscarded { - PhoneCall_Data data2 = 2; +// auth.sentCode#38faab5f flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int terms_of_service:flags.3?help.TermsOfService = auth.SentCode; +message TL_auth_sentCode { + auth_SentCode_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_FavedStickers <-- -// + TL_messages_favedStickersNotModified -// + TL_messages_favedStickers +// account_SentEmailCode <-- +// + TL_account_sentEmailCode // -message messages_FavedStickers_Data { - int32 hash = 1; - repeated StickerPack packs = 2; - repeated Document stickers = 3; +message account_SentEmailCode_Data { + string email_pattern = 1; + int32 length = 2; } -message messages_FavedStickers { +message account_SentEmailCode { TLConstructor constructor = 1; - messages_FavedStickers_Data data2 = 2; -} - -// messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers; -message TL_messages_favedStickersNotModified { - messages_FavedStickers_Data data2 = 2; + account_SentEmailCode_Data data2 = 2; } -// messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers; -message TL_messages_favedStickers { - messages_FavedStickers_Data data2 = 2; +// account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode; +message TL_account_sentEmailCode { + account_SentEmailCode_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_Dialogs <-- -// + TL_messages_dialogs -// + TL_messages_dialogsSlice -// + TL_messages_dialogsNotModified +// contacts_Found <-- +// + TL_contacts_found // -message messages_Dialogs_Data { - repeated Dialog dialogs = 1; - repeated Message messages = 2; +message contacts_Found_Data { + repeated Peer my_results = 1; + repeated Peer results = 2; repeated Chat chats = 3; repeated User users = 4; - int32 count = 5; } -message messages_Dialogs { +message contacts_Found { TLConstructor constructor = 1; - messages_Dialogs_Data data2 = 2; + contacts_Found_Data data2 = 2; } -// messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; -message TL_messages_dialogs { - messages_Dialogs_Data data2 = 2; +// contacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found; +message TL_contacts_found { + contacts_Found_Data data2 = 2; } -// messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; -message TL_messages_dialogsSlice { - messages_Dialogs_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// ChannelAdminLogEventsFilter <-- +// + TL_channelAdminLogEventsFilter +// +message ChannelAdminLogEventsFilter_Data { + bool join = 1; + bool leave = 2; + bool invite = 3; + bool ban = 4; + bool unban = 5; + bool kick = 6; + bool unkick = 7; + bool promote = 8; + bool demote = 9; + bool info = 10; + bool settings = 11; + bool pinned = 12; + bool edit = 13; + bool delete = 14; } -// messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs; -message TL_messages_dialogsNotModified { - messages_Dialogs_Data data2 = 2; +message ChannelAdminLogEventsFilter { + TLConstructor constructor = 1; + ChannelAdminLogEventsFilter_Data data2 = 2; +} + +// channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; +message TL_channelAdminLogEventsFilter { + ChannelAdminLogEventsFilter_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// KeyboardButton <-- -// + TL_keyboardButton -// + TL_keyboardButtonUrl -// + TL_keyboardButtonCallback -// + TL_keyboardButtonRequestPhone -// + TL_keyboardButtonRequestGeoLocation -// + TL_keyboardButtonSwitchInline -// + TL_keyboardButtonGame -// + TL_keyboardButtonBuy +// messages_FavedStickers <-- +// + TL_messages_favedStickersNotModified +// + TL_messages_favedStickers // -message KeyboardButton_Data { - string text = 1; - string url = 2; - bytes data = 3; - bool same_peer = 4; - string query = 5; +message messages_FavedStickers_Data { + int32 hash = 1; + repeated StickerPack packs = 2; + repeated Document stickers = 3; } -message KeyboardButton { +message messages_FavedStickers { TLConstructor constructor = 1; - KeyboardButton_Data data2 = 2; + messages_FavedStickers_Data data2 = 2; } -// keyboardButton#a2fa4880 text:string = KeyboardButton; -message TL_keyboardButton { - KeyboardButton_Data data2 = 2; +// messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers; +message TL_messages_favedStickersNotModified { + messages_FavedStickers_Data data2 = 2; } -// keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton; -message TL_keyboardButtonUrl { - KeyboardButton_Data data2 = 2; +// messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers; +message TL_messages_favedStickers { + messages_FavedStickers_Data data2 = 2; } -// keyboardButtonCallback#683a5e46 text:string data:bytes = KeyboardButton; -message TL_keyboardButtonCallback { - KeyboardButton_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// InputFileLocation <-- +// + TL_inputDocumentFileLocationLayer11 +// + TL_inputFileLocation +// + TL_inputEncryptedFileLocation +// + TL_inputDocumentFileLocation +// + TL_inputSecureFileLocation +// + TL_inputTakeoutFileLocation +// + TL_inputFileLocationLayer86 +// + TL_inputDocumentFileLocationLayer86 +// +message InputFileLocation_Data { + int64 id = 1; + int64 access_hash = 2; + int64 volume_id = 3; + int32 local_id = 4; + int64 secret = 5; + int32 version = 6; + bytes file_reference = 7; } -// keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton; -message TL_keyboardButtonRequestPhone { - KeyboardButton_Data data2 = 2; +message InputFileLocation { + TLConstructor constructor = 1; + InputFileLocation_Data data2 = 2; } -// keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton; -message TL_keyboardButtonRequestGeoLocation { - KeyboardButton_Data data2 = 2; +// inputDocumentFileLocation#4e45abe9 id:long access_hash:long = InputFileLocation; +message TL_inputDocumentFileLocationLayer11 { + InputFileLocation_Data data2 = 2; } -// keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton; -message TL_keyboardButtonSwitchInline { - KeyboardButton_Data data2 = 2; +// inputFileLocation#14637196 volume_id:long local_id:int secret:long = InputFileLocation; +message TL_inputFileLocation { + InputFileLocation_Data data2 = 2; } -// keyboardButtonGame#50f41ccf text:string = KeyboardButton; -message TL_keyboardButtonGame { - KeyboardButton_Data data2 = 2; +// inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation; +message TL_inputEncryptedFileLocation { + InputFileLocation_Data data2 = 2; } -// keyboardButtonBuy#afd93fbb text:string = KeyboardButton; -message TL_keyboardButtonBuy { - KeyboardButton_Data data2 = 2; +// inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputFileLocation; +message TL_inputDocumentFileLocation { + InputFileLocation_Data data2 = 2; } +// inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation; +message TL_inputSecureFileLocation { + InputFileLocation_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// ShippingOption <-- -// + TL_shippingOption -// -message ShippingOption_Data { - string id = 1; - string title = 2; - repeated LabeledPrice prices = 3; +// inputTakeoutFileLocation#29be5899 = InputFileLocation; +message TL_inputTakeoutFileLocation { + InputFileLocation_Data data2 = 2; } -message ShippingOption { - TLConstructor constructor = 1; - ShippingOption_Data data2 = 2; +// inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation; +message TL_inputFileLocationLayer86 { + InputFileLocation_Data data2 = 2; } -// shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; -message TL_shippingOption { - ShippingOption_Data data2 = 2; +// inputDocumentFileLocation#196683d9 id:long access_hash:long file_reference:bytes = InputFileLocation; +message TL_inputDocumentFileLocationLayer86 { + InputFileLocation_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// phone_PhoneCall <-- -// + TL_phone_phoneCall +// InputBotInlineResult <-- +// + TL_inputBotInlineResult +// + TL_inputBotInlineResultPhoto +// + TL_inputBotInlineResultDocument +// + TL_inputBotInlineResultGame // -message phone_PhoneCall_Data { - PhoneCall phone_call = 1; - repeated User users = 2; +message InputBotInlineResult_Data { + string id = 1; + string type = 2; + string title = 3; + string description = 4; + string url = 5; + InputWebDocument thumb = 6; + InputWebDocument content = 7; + InputBotInlineMessage send_message = 8; + InputPhoto photo = 9; + InputDocument document = 10; + string short_name = 11; } -message phone_PhoneCall { +message InputBotInlineResult { TLConstructor constructor = 1; - phone_PhoneCall_Data data2 = 2; -} - -// phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall; -message TL_phone_phoneCall { - phone_PhoneCall_Data data2 = 2; + InputBotInlineResult_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// help_TermsOfServiceUpdate <-- -// + TL_help_termsOfServiceUpdateEmpty -// + TL_help_termsOfServiceUpdate -// -message help_TermsOfServiceUpdate_Data { - int32 expires = 1; - help_TermsOfService terms_of_service = 2; +// inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult; +message TL_inputBotInlineResult { + InputBotInlineResult_Data data2 = 2; } -message help_TermsOfServiceUpdate { - TLConstructor constructor = 1; - help_TermsOfServiceUpdate_Data data2 = 2; +// inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult; +message TL_inputBotInlineResultPhoto { + InputBotInlineResult_Data data2 = 2; } -// help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate; -message TL_help_termsOfServiceUpdateEmpty { - help_TermsOfServiceUpdate_Data data2 = 2; +// inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult; +message TL_inputBotInlineResultDocument { + InputBotInlineResult_Data data2 = 2; } -// help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate; -message TL_help_termsOfServiceUpdate { - help_TermsOfServiceUpdate_Data data2 = 2; +// inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult; +message TL_inputBotInlineResultGame { + InputBotInlineResult_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// NearestDc <-- -// + TL_nearestDc +// SavedContact <-- +// + TL_savedPhoneContact // -message NearestDc_Data { - string country = 1; - int32 this_dc = 2; - int32 nearest_dc = 3; +message SavedContact_Data { + string phone = 1; + string first_name = 2; + string last_name = 3; + int32 date = 4; } -message NearestDc { +message SavedContact { TLConstructor constructor = 1; - NearestDc_Data data2 = 2; + SavedContact_Data data2 = 2; } -// nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc; -message TL_nearestDc { - NearestDc_Data data2 = 2; +// savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact; +message TL_savedPhoneContact { + SavedContact_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ContactLink <-- -// + TL_contactLinkUnknown -// + TL_contactLinkNone -// + TL_contactLinkHasPhone -// + TL_contactLinkContact +// updates_ChannelDifference <-- +// + TL_updates_channelDifferenceEmpty +// + TL_updates_channelDifferenceTooLong +// + TL_updates_channelDifference // -message ContactLink_Data { -} - -message ContactLink { - TLConstructor constructor = 1; - ContactLink_Data data2 = 2; -} - -// contactLinkUnknown#5f4f9247 = ContactLink; -message TL_contactLinkUnknown { - ContactLink_Data data2 = 2; +message updates_ChannelDifference_Data { + bool final = 1; + int32 pts = 2; + int32 timeout = 3; + int32 top_message = 4; + int32 read_inbox_max_id = 5; + int32 read_outbox_max_id = 6; + int32 unread_count = 7; + int32 unread_mentions_count = 8; + repeated Message messages = 9; + repeated Chat chats = 10; + repeated User users = 11; + repeated Message new_messages = 12; + repeated Update other_updates = 13; } -// contactLinkNone#feedd3ad = ContactLink; -message TL_contactLinkNone { - ContactLink_Data data2 = 2; +message updates_ChannelDifference { + TLConstructor constructor = 1; + updates_ChannelDifference_Data data2 = 2; } -// contactLinkHasPhone#268f3f59 = ContactLink; -message TL_contactLinkHasPhone { - ContactLink_Data data2 = 2; +// updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference; +message TL_updates_channelDifferenceEmpty { + updates_ChannelDifference_Data data2 = 2; } -// contactLinkContact#d502c2d0 = ContactLink; -message TL_contactLinkContact { - ContactLink_Data data2 = 2; +// updates.channelDifferenceTooLong#6a9d7b35 flags:# final:flags.0?true pts:int timeout:flags.1?int top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int messages:Vector chats:Vector users:Vector = updates.ChannelDifference; +message TL_updates_channelDifferenceTooLong { + updates_ChannelDifference_Data data2 = 2; +} + +// updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference; +message TL_updates_channelDifference { + updates_ChannelDifference_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SecureData <-- -// + TL_secureData +// messages_AffectedMessages <-- +// + TL_messages_affectedMessages // -message SecureData_Data { - bytes data = 1; - bytes data_hash = 2; - bytes secret = 3; +message messages_AffectedMessages_Data { + int32 pts = 1; + int32 pts_count = 2; } -message SecureData { +message messages_AffectedMessages { TLConstructor constructor = 1; - SecureData_Data data2 = 2; + messages_AffectedMessages_Data data2 = 2; } -// secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData; -message TL_secureData { - SecureData_Data data2 = 2; +// messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages; +message TL_messages_affectedMessages { + messages_AffectedMessages_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputChannel <-- -// + TL_inputChannelEmpty -// + TL_inputChannel +// channels_ChannelParticipants <-- +// + TL_channels_channelParticipants +// + TL_channels_channelParticipantsNotModified // -message InputChannel_Data { - int32 channel_id = 1; +message channels_ChannelParticipants_Data { + int32 count = 1; + repeated ChannelParticipant participants = 2; + repeated User users = 3; +} + +message channels_ChannelParticipants { + TLConstructor constructor = 1; + channels_ChannelParticipants_Data data2 = 2; +} + +// channels.channelParticipants#f56ee2a8 count:int participants:Vector users:Vector = channels.ChannelParticipants; +message TL_channels_channelParticipants { + channels_ChannelParticipants_Data data2 = 2; +} + +// channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants; +message TL_channels_channelParticipantsNotModified { + channels_ChannelParticipants_Data data2 = 2; +} + + +/////////////////////////////////////////////////////////////////////////////// +// InputUser <-- +// + TL_inputUserEmpty +// + TL_inputUserSelf +// + TL_inputUser +// +message InputUser_Data { + int32 user_id = 1; int64 access_hash = 2; } -message InputChannel { +message InputUser { TLConstructor constructor = 1; - InputChannel_Data data2 = 2; + InputUser_Data data2 = 2; } -// inputChannelEmpty#ee8c1e86 = InputChannel; -message TL_inputChannelEmpty { - InputChannel_Data data2 = 2; +// inputUserEmpty#b98886cf = InputUser; +message TL_inputUserEmpty { + InputUser_Data data2 = 2; } -// inputChannel#afeb712e channel_id:int access_hash:long = InputChannel; -message TL_inputChannel { - InputChannel_Data data2 = 2; +// inputUserSelf#f7c1b13f = InputUser; +message TL_inputUserSelf { + InputUser_Data data2 = 2; +} + +// inputUser#d8292816 user_id:int access_hash:long = InputUser; +message TL_inputUser { + InputUser_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_Messages <-- -// + TL_messages_messages -// + TL_messages_messagesSlice -// + TL_messages_channelMessages -// + TL_messages_messagesNotModified +// User <-- +// + TL_userEmpty +// + TL_user // -message messages_Messages_Data { - repeated Message messages = 1; +message User_Data { + int32 id = 1; + bool self = 2; + bool contact = 3; + bool mutual_contact = 4; + bool deleted = 5; + bool bot = 6; + bool bot_chat_history = 7; + bool bot_nochats = 8; + bool verified = 9; + bool restricted = 10; + bool min = 11; + bool bot_inline_geo = 12; + int64 access_hash = 13; + string first_name = 14; + string last_name = 15; + string username = 16; + string phone = 17; + UserProfilePhoto photo = 18; + UserStatus status = 19; + int32 bot_info_version = 20; + string restriction_reason = 21; + string bot_inline_placeholder = 22; + string lang_code = 23; +} + +message User { + TLConstructor constructor = 1; + User_Data data2 = 2; +} + +// userEmpty#200250ba id:int = User; +message TL_userEmpty { + User_Data data2 = 2; +} + +// user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User; +message TL_user { + User_Data data2 = 2; +} + + +/////////////////////////////////////////////////////////////////////////////// +// messages_ChatFull <-- +// + TL_messages_chatFull +// +message messages_ChatFull_Data { + ChatFull full_chat = 1; repeated Chat chats = 2; repeated User users = 3; - int32 count = 4; - int32 pts = 5; } -message messages_Messages { +message messages_ChatFull { TLConstructor constructor = 1; - messages_Messages_Data data2 = 2; + messages_ChatFull_Data data2 = 2; } -// messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages; -message TL_messages_messages { - messages_Messages_Data data2 = 2; +// messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull; +message TL_messages_chatFull { + messages_ChatFull_Data data2 = 2; } -// messages.messagesSlice#b446ae3 count:int messages:Vector chats:Vector users:Vector = messages.Messages; -message TL_messages_messagesSlice { - messages_Messages_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// Authorization <-- +// + TL_authorization +// +message Authorization_Data { + int64 hash = 1; + int32 flags = 2; + string device_model = 3; + string platform = 4; + string system_version = 5; + int32 api_id = 6; + string app_name = 7; + string app_version = 8; + int32 date_created = 9; + int32 date_active = 10; + string ip = 11; + string country = 12; + string region = 13; } -// messages.channelMessages#99262e37 flags:# pts:int count:int messages:Vector chats:Vector users:Vector = messages.Messages; -message TL_messages_channelMessages { - messages_Messages_Data data2 = 2; +message Authorization { + TLConstructor constructor = 1; + Authorization_Data data2 = 2; } -// messages.messagesNotModified#74535f21 count:int = messages.Messages; -message TL_messages_messagesNotModified { - messages_Messages_Data data2 = 2; +// authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization; +message TL_authorization { + Authorization_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Update <-- -// + TL_updateNewMessage -// + TL_updateMessageID -// + TL_updateDeleteMessages -// + TL_updateUserTyping -// + TL_updateChatUserTyping -// + TL_updateChatParticipants -// + TL_updateUserStatus -// + TL_updateUserName -// + TL_updateUserPhoto -// + TL_updateContactRegistered -// + TL_updateContactLink -// + TL_updateNewEncryptedMessage -// + TL_updateEncryptedChatTyping -// + TL_updateEncryption -// + TL_updateEncryptedMessagesRead -// + TL_updateChatParticipantAdd -// + TL_updateChatParticipantDelete -// + TL_updateDcOptions -// + TL_updateUserBlocked -// + TL_updateNotifySettings -// + TL_updateServiceNotification -// + TL_updatePrivacy -// + TL_updateUserPhone -// + TL_updateReadHistoryInbox -// + TL_updateReadHistoryOutbox -// + TL_updateWebPage -// + TL_updateReadMessagesContents -// + TL_updateChannelTooLong -// + TL_updateChannel -// + TL_updateNewChannelMessage -// + TL_updateReadChannelInbox -// + TL_updateDeleteChannelMessages -// + TL_updateChannelMessageViews -// + TL_updateChatAdmins -// + TL_updateChatParticipantAdmin -// + TL_updateNewStickerSet -// + TL_updateStickerSetsOrder -// + TL_updateStickerSets -// + TL_updateSavedGifs -// + TL_updateBotInlineQuery -// + TL_updateBotInlineSend -// + TL_updateEditChannelMessage -// + TL_updateChannelPinnedMessage -// + TL_updateBotCallbackQuery -// + TL_updateEditMessage -// + TL_updateInlineBotCallbackQuery -// + TL_updateReadChannelOutbox -// + TL_updateDraftMessage -// + TL_updateReadFeaturedStickers -// + TL_updateRecentStickers -// + TL_updateConfig -// + TL_updatePtsChanged -// + TL_updateChannelWebPage -// + TL_updateDialogPinned -// + TL_updatePinnedDialogs -// + TL_updateBotWebhookJSON -// + TL_updateBotWebhookJSONQuery -// + TL_updateBotShippingQuery -// + TL_updateBotPrecheckoutQuery -// + TL_updatePhoneCall -// + TL_updateLangPackTooLong -// + TL_updateLangPack -// + TL_updateFavedStickers -// + TL_updateChannelReadMessagesContents -// + TL_updateContactsReset -// + TL_updateChannelAvailableMessages -// + TL_updateDialogUnreadMark -// -message Update_Data { - Message message_1 = 1; - int32 pts = 2; - int32 pts_count = 3; - int32 id_4 = 4; - int64 random_id = 5; - repeated int32 messages = 6; - int32 user_id = 7; - SendMessageAction action = 8; - int32 chat_id = 9; - ChatParticipants participants = 10; - UserStatus status = 11; - string first_name = 12; - string last_name = 13; - string username = 14; - int32 date = 15; - UserProfilePhoto photo = 16; - Bool previous = 17; - ContactLink my_link = 18; - ContactLink foreign_link = 19; - EncryptedMessage message_20 = 20; - int32 qts = 21; - EncryptedChat chat = 22; - int32 max_date = 23; - int32 inviter_id = 24; - int32 version = 25; - repeated DcOption dc_options = 26; - Bool blocked = 27; - NotifyPeer peer_28 = 28; - PeerNotifySettings notify_settings = 29; - bool popup = 30; - int32 inbox_date = 31; - string type = 32; - string message_33 = 33; - MessageMedia media = 34; - repeated MessageEntity entities = 35; - PrivacyKey key = 36; - repeated PrivacyRule rules = 37; - string phone = 38; - Peer peer_39 = 39; - int32 max_id = 40; - WebPage webpage = 41; - int32 channel_id = 42; - int32 views = 43; - Bool enabled = 44; - Bool is_admin = 45; - messages_StickerSet stickerset = 46; - bool masks = 47; - repeated int64 order_48 = 48; - int64 query_id = 49; - string query = 50; - GeoPoint geo = 51; - string offset = 52; - string id_53 = 53; - InputBotInlineMessageID msg_id_54 = 54; - int32 msg_id_55 = 55; - int64 chat_instance = 56; - bytes data_57 = 57; - string game_short_name = 58; - DraftMessage draft = 59; - bool pinned = 60; - DialogPeer peer_61 = 61; - repeated DialogPeer order_62 = 62; - DataJSON data_63 = 63; - int32 timeout = 64; - bytes payload = 65; - PostAddress shipping_address = 66; - PaymentRequestedInfo info = 67; - string shipping_option_id = 68; - string currency = 69; - int64 total_amount = 70; - PhoneCall phone_call = 71; - LangPackDifference difference = 72; - int32 available_min_id = 73; - bool unread = 74; -} - -message Update { - TLConstructor constructor = 1; - Update_Data data2 = 2; -} - -// updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update; -message TL_updateNewMessage { - Update_Data data2 = 2; -} - -// updateMessageID#4e90bfd6 id:int random_id:long = Update; -message TL_updateMessageID { - Update_Data data2 = 2; -} - -// updateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update; -message TL_updateDeleteMessages { - Update_Data data2 = 2; -} - -// updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update; -message TL_updateUserTyping { - Update_Data data2 = 2; -} - -// updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update; -message TL_updateChatUserTyping { - Update_Data data2 = 2; -} - -// updateChatParticipants#7761198 participants:ChatParticipants = Update; -message TL_updateChatParticipants { - Update_Data data2 = 2; -} - -// updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update; -message TL_updateUserStatus { - Update_Data data2 = 2; -} - -// updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update; -message TL_updateUserName { - Update_Data data2 = 2; -} - -// updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update; -message TL_updateUserPhoto { - Update_Data data2 = 2; -} - -// updateContactRegistered#2575bbb9 user_id:int date:int = Update; -message TL_updateContactRegistered { - Update_Data data2 = 2; -} - -// updateContactLink#9d2e67c5 user_id:int my_link:ContactLink foreign_link:ContactLink = Update; -message TL_updateContactLink { - Update_Data data2 = 2; -} - -// updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update; -message TL_updateNewEncryptedMessage { - Update_Data data2 = 2; -} - -// updateEncryptedChatTyping#1710f156 chat_id:int = Update; -message TL_updateEncryptedChatTyping { - Update_Data data2 = 2; -} - -// updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update; -message TL_updateEncryption { - Update_Data data2 = 2; -} - -// updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update; -message TL_updateEncryptedMessagesRead { - Update_Data data2 = 2; -} - -// updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update; -message TL_updateChatParticipantAdd { - Update_Data data2 = 2; -} - -// updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update; -message TL_updateChatParticipantDelete { - Update_Data data2 = 2; -} - -// updateDcOptions#8e5e9873 dc_options:Vector = Update; -message TL_updateDcOptions { - Update_Data data2 = 2; -} - -// updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; -message TL_updateUserBlocked { - Update_Data data2 = 2; -} - -// updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; -message TL_updateNotifySettings { - Update_Data data2 = 2; -} - -// updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update; -message TL_updateServiceNotification { - Update_Data data2 = 2; -} - -// updatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update; -message TL_updatePrivacy { - Update_Data data2 = 2; -} - -// updateUserPhone#12b9417b user_id:int phone:string = Update; -message TL_updateUserPhone { - Update_Data data2 = 2; -} - -// updateReadHistoryInbox#9961fd5c peer:Peer max_id:int pts:int pts_count:int = Update; -message TL_updateReadHistoryInbox { - Update_Data data2 = 2; -} - -// updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update; -message TL_updateReadHistoryOutbox { - Update_Data data2 = 2; -} - -// updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update; -message TL_updateWebPage { - Update_Data data2 = 2; -} - -// updateReadMessagesContents#68c13933 messages:Vector pts:int pts_count:int = Update; -message TL_updateReadMessagesContents { - Update_Data data2 = 2; -} - -// updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update; -message TL_updateChannelTooLong { - Update_Data data2 = 2; -} - -// updateChannel#b6d45656 channel_id:int = Update; -message TL_updateChannel { - Update_Data data2 = 2; -} - -// updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update; -message TL_updateNewChannelMessage { - Update_Data data2 = 2; -} - -// updateReadChannelInbox#4214f37f channel_id:int max_id:int = Update; -message TL_updateReadChannelInbox { - Update_Data data2 = 2; -} - -// updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector pts:int pts_count:int = Update; -message TL_updateDeleteChannelMessages { - Update_Data data2 = 2; -} - -// updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update; -message TL_updateChannelMessageViews { - Update_Data data2 = 2; -} - -// updateChatAdmins#6e947941 chat_id:int enabled:Bool version:int = Update; -message TL_updateChatAdmins { - Update_Data data2 = 2; -} - -// updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update; -message TL_updateChatParticipantAdmin { - Update_Data data2 = 2; +// ReceivedNotifyMessage <-- +// + TL_receivedNotifyMessage +// +message ReceivedNotifyMessage_Data { + int32 id = 1; + int32 flags = 2; } -// updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; -message TL_updateNewStickerSet { - Update_Data data2 = 2; +message ReceivedNotifyMessage { + TLConstructor constructor = 1; + ReceivedNotifyMessage_Data data2 = 2; } -// updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector = Update; -message TL_updateStickerSetsOrder { - Update_Data data2 = 2; +// receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage; +message TL_receivedNotifyMessage { + ReceivedNotifyMessage_Data data2 = 2; } -// updateStickerSets#43ae3dec = Update; -message TL_updateStickerSets { - Update_Data data2 = 2; -} -// updateSavedGifs#9375341e = Update; -message TL_updateSavedGifs { - Update_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// channels_AdminLogResults <-- +// + TL_channels_adminLogResults +// +message channels_AdminLogResults_Data { + repeated ChannelAdminLogEvent events = 1; + repeated Chat chats = 2; + repeated User users = 3; } -// updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update; -message TL_updateBotInlineQuery { - Update_Data data2 = 2; +message channels_AdminLogResults { + TLConstructor constructor = 1; + channels_AdminLogResults_Data data2 = 2; } -// updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update; -message TL_updateBotInlineSend { - Update_Data data2 = 2; +// channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; +message TL_channels_adminLogResults { + channels_AdminLogResults_Data data2 = 2; } -// updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update; -message TL_updateEditChannelMessage { - Update_Data data2 = 2; -} -// updateChannelPinnedMessage#98592475 channel_id:int id:int = Update; -message TL_updateChannelPinnedMessage { - Update_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// UserStatus <-- +// + TL_userStatusEmpty +// + TL_userStatusOnline +// + TL_userStatusOffline +// + TL_userStatusRecently +// + TL_userStatusLastWeek +// + TL_userStatusLastMonth +// +message UserStatus_Data { + int32 expires = 1; + int32 was_online = 2; } -// updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; -message TL_updateBotCallbackQuery { - Update_Data data2 = 2; +message UserStatus { + TLConstructor constructor = 1; + UserStatus_Data data2 = 2; } -// updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update; -message TL_updateEditMessage { - Update_Data data2 = 2; +// userStatusEmpty#9d05049 = UserStatus; +message TL_userStatusEmpty { + UserStatus_Data data2 = 2; } -// updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; -message TL_updateInlineBotCallbackQuery { - Update_Data data2 = 2; +// userStatusOnline#edb93949 expires:int = UserStatus; +message TL_userStatusOnline { + UserStatus_Data data2 = 2; } -// updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update; -message TL_updateReadChannelOutbox { - Update_Data data2 = 2; +// userStatusOffline#8c703f was_online:int = UserStatus; +message TL_userStatusOffline { + UserStatus_Data data2 = 2; } -// updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update; -message TL_updateDraftMessage { - Update_Data data2 = 2; +// userStatusRecently#e26f42f1 = UserStatus; +message TL_userStatusRecently { + UserStatus_Data data2 = 2; } -// updateReadFeaturedStickers#571d2742 = Update; -message TL_updateReadFeaturedStickers { - Update_Data data2 = 2; +// userStatusLastWeek#7bf09fc = UserStatus; +message TL_userStatusLastWeek { + UserStatus_Data data2 = 2; } -// updateRecentStickers#9a422c20 = Update; -message TL_updateRecentStickers { - Update_Data data2 = 2; +// userStatusLastMonth#77ebc742 = UserStatus; +message TL_userStatusLastMonth { + UserStatus_Data data2 = 2; } -// updateConfig#a229dd06 = Update; -message TL_updateConfig { - Update_Data data2 = 2; -} -// updatePtsChanged#3354678f = Update; -message TL_updatePtsChanged { - Update_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// Photo <-- +// + TL_photoEmpty +// + TL_photo +// + TL_photoLayer86 +// +message Photo_Data { + int64 id = 1; + bool has_stickers = 2; + int64 access_hash = 3; + int32 date = 4; + repeated PhotoSize sizes = 5; + bytes file_reference = 6; } -// updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update; -message TL_updateChannelWebPage { - Update_Data data2 = 2; +message Photo { + TLConstructor constructor = 1; + Photo_Data data2 = 2; } -// updateDialogPinned#19d27f3c flags:# pinned:flags.0?true peer:DialogPeer = Update; -message TL_updateDialogPinned { - Update_Data data2 = 2; +// photoEmpty#2331b22d id:long = Photo; +message TL_photoEmpty { + Photo_Data data2 = 2; } -// updatePinnedDialogs#ea4cb65b flags:# order:flags.0?Vector = Update; -message TL_updatePinnedDialogs { - Update_Data data2 = 2; +// photo#9288dd29 flags:# has_stickers:flags.0?true id:long access_hash:long date:int sizes:Vector = Photo; +message TL_photo { + Photo_Data data2 = 2; } -// updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; -message TL_updateBotWebhookJSON { - Update_Data data2 = 2; +// photo#9c477dd8 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector = Photo; +message TL_photoLayer86 { + Photo_Data data2 = 2; } -// updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; -message TL_updateBotWebhookJSONQuery { - Update_Data data2 = 2; -} -// updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; -message TL_updateBotShippingQuery { - Update_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// upload_File <-- +// + TL_upload_file +// + TL_upload_fileCdnRedirect +// +message upload_File_Data { + storage_FileType type = 1; + int32 mtime = 2; + bytes bytes = 3; + int32 dc_id = 4; + bytes file_token = 5; + bytes encryption_key = 6; + bytes encryption_iv = 7; + repeated FileHash file_hashes = 8; } -// updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; -message TL_updateBotPrecheckoutQuery { - Update_Data data2 = 2; +message upload_File { + TLConstructor constructor = 1; + upload_File_Data data2 = 2; } -// updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update; -message TL_updatePhoneCall { - Update_Data data2 = 2; +// upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; +message TL_upload_file { + upload_File_Data data2 = 2; } -// updateLangPackTooLong#10c2404b = Update; -message TL_updateLangPackTooLong { - Update_Data data2 = 2; +// upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File; +message TL_upload_fileCdnRedirect { + upload_File_Data data2 = 2; } -// updateLangPack#56022f4d difference:LangPackDifference = Update; -message TL_updateLangPack { - Update_Data data2 = 2; -} -// updateFavedStickers#e511996d = Update; -message TL_updateFavedStickers { - Update_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// storage_FileType <-- +// + TL_storage_fileUnknown +// + TL_storage_filePartial +// + TL_storage_fileJpeg +// + TL_storage_fileGif +// + TL_storage_filePng +// + TL_storage_filePdf +// + TL_storage_fileMp3 +// + TL_storage_fileMov +// + TL_storage_fileMp4 +// + TL_storage_fileWebp +// +message storage_FileType_Data { } -// updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector = Update; -message TL_updateChannelReadMessagesContents { - Update_Data data2 = 2; +message storage_FileType { + TLConstructor constructor = 1; + storage_FileType_Data data2 = 2; } -// updateContactsReset#7084a7be = Update; -message TL_updateContactsReset { - Update_Data data2 = 2; +// storage.fileUnknown#aa963b05 = storage.FileType; +message TL_storage_fileUnknown { + storage_FileType_Data data2 = 2; } -// updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update; -message TL_updateChannelAvailableMessages { - Update_Data data2 = 2; +// storage.filePartial#40bc6f52 = storage.FileType; +message TL_storage_filePartial { + storage_FileType_Data data2 = 2; } -// updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update; -message TL_updateDialogUnreadMark { - Update_Data data2 = 2; +// storage.fileJpeg#7efe0e = storage.FileType; +message TL_storage_fileJpeg { + storage_FileType_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// InputPeer <-- -// + TL_inputPeerEmpty -// + TL_inputPeerSelf -// + TL_inputPeerChat -// + TL_inputPeerUser -// + TL_inputPeerChannel -// -message InputPeer_Data { - int32 chat_id = 1; - int32 user_id = 2; - int64 access_hash = 3; - int32 channel_id = 4; +// storage.fileGif#cae1aadf = storage.FileType; +message TL_storage_fileGif { + storage_FileType_Data data2 = 2; } -message InputPeer { - TLConstructor constructor = 1; - InputPeer_Data data2 = 2; +// storage.filePng#a4f63c0 = storage.FileType; +message TL_storage_filePng { + storage_FileType_Data data2 = 2; } -// inputPeerEmpty#7f3b18ea = InputPeer; -message TL_inputPeerEmpty { - InputPeer_Data data2 = 2; +// storage.filePdf#ae1e508d = storage.FileType; +message TL_storage_filePdf { + storage_FileType_Data data2 = 2; } -// inputPeerSelf#7da07ec9 = InputPeer; -message TL_inputPeerSelf { - InputPeer_Data data2 = 2; +// storage.fileMp3#528a0677 = storage.FileType; +message TL_storage_fileMp3 { + storage_FileType_Data data2 = 2; } -// inputPeerChat#179be863 chat_id:int = InputPeer; -message TL_inputPeerChat { - InputPeer_Data data2 = 2; +// storage.fileMov#4b09ebbc = storage.FileType; +message TL_storage_fileMov { + storage_FileType_Data data2 = 2; } -// inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer; -message TL_inputPeerUser { - InputPeer_Data data2 = 2; +// storage.fileMp4#b3cea0e4 = storage.FileType; +message TL_storage_fileMp4 { + storage_FileType_Data data2 = 2; } -// inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer; -message TL_inputPeerChannel { - InputPeer_Data data2 = 2; +// storage.fileWebp#1081464c = storage.FileType; +message TL_storage_fileWebp { + storage_FileType_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Contact <-- -// + TL_contact +// NearestDc <-- +// + TL_nearestDc // -message Contact_Data { - int32 user_id = 1; - Bool mutual = 2; +message NearestDc_Data { + string country = 1; + int32 this_dc = 2; + int32 nearest_dc = 3; } -message Contact { +message NearestDc { TLConstructor constructor = 1; - Contact_Data data2 = 2; + NearestDc_Data data2 = 2; } -// contact#f911c994 user_id:int mutual:Bool = Contact; -message TL_contact { - Contact_Data data2 = 2; +// nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc; +message TL_nearestDc { + NearestDc_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// photos_Photo <-- -// + TL_photos_photo +// DraftMessage <-- +// + TL_draftMessageEmpty +// + TL_draftMessage // -message photos_Photo_Data { - Photo photo = 1; - repeated User users = 2; +message DraftMessage_Data { + int32 date = 1; + bool no_webpage = 2; + int32 reply_to_msg_id = 3; + string message = 4; + repeated MessageEntity entities = 5; } -message photos_Photo { +message DraftMessage { TLConstructor constructor = 1; - photos_Photo_Data data2 = 2; + DraftMessage_Data data2 = 2; } -// photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; -message TL_photos_photo { - photos_Photo_Data data2 = 2; +// draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; +message TL_draftMessageEmpty { + DraftMessage_Data data2 = 2; +} + +// draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector date:int = DraftMessage; +message TL_draftMessage { + DraftMessage_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// LangPackString <-- -// + TL_langPackString -// + TL_langPackStringPluralized -// + TL_langPackStringDeleted +// Config <-- +// + TL_config // -message LangPackString_Data { - string key = 1; - string value = 2; - string zero_value = 3; - string one_value = 4; - string two_value = 5; - string few_value = 6; - string many_value = 7; - string other_value = 8; +message Config_Data { + bool phonecalls_enabled = 1; + bool default_p2p_contacts = 2; + bool preload_featured_stickers = 3; + bool ignore_phone_entities = 4; + bool revoke_pm_inbox = 5; + bool blocked_mode = 6; + int32 date = 7; + int32 expires = 8; + Bool test_mode = 9; + int32 this_dc = 10; + repeated DcOption dc_options = 11; + string dc_txt_domain_name = 12; + int32 chat_size_max = 13; + int32 megagroup_size_max = 14; + int32 forwarded_count_max = 15; + int32 online_update_period_ms = 16; + int32 offline_blur_timeout_ms = 17; + int32 offline_idle_timeout_ms = 18; + int32 online_cloud_timeout_ms = 19; + int32 notify_cloud_delay_ms = 20; + int32 notify_default_delay_ms = 21; + int32 push_chat_period_ms = 22; + int32 push_chat_limit = 23; + int32 saved_gifs_limit = 24; + int32 edit_time_limit = 25; + int32 revoke_time_limit = 26; + int32 revoke_pm_time_limit = 27; + int32 rating_e_decay = 28; + int32 stickers_recent_limit = 29; + int32 stickers_faved_limit = 30; + int32 channels_read_media_period = 31; + int32 tmp_sessions = 32; + int32 pinned_dialogs_count_max = 33; + int32 call_receive_timeout_ms = 34; + int32 call_ring_timeout_ms = 35; + int32 call_connect_timeout_ms = 36; + int32 call_packet_timeout_ms = 37; + string me_url_prefix = 38; + string autoupdate_url_prefix = 39; + string gif_search_username = 40; + string venue_search_username = 41; + string img_search_username = 42; + string static_maps_provider = 43; + int32 caption_length_max = 44; + int32 message_length_max = 45; + int32 webfile_dc_id = 46; + string suggested_lang_code = 47; + int32 lang_pack_version = 48; } -message LangPackString { +message Config { TLConstructor constructor = 1; - LangPackString_Data data2 = 2; -} - -// langPackString#cad181f6 key:string value:string = LangPackString; -message TL_langPackString { - LangPackString_Data data2 = 2; -} - -// langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString; -message TL_langPackStringPluralized { - LangPackString_Data data2 = 2; + Config_Data data2 = 2; } -// langPackStringDeleted#2979eeb2 key:string = LangPackString; -message TL_langPackStringDeleted { - LangPackString_Data data2 = 2; +// config#3213dbba flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int = Config; +message TL_config { + Config_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChannelAdminLogEvent <-- -// + TL_channelAdminLogEvent +// Page <-- +// + TL_pagePart +// + TL_pageFull // -message ChannelAdminLogEvent_Data { - int64 id = 1; - int32 date = 2; - int32 user_id = 3; - ChannelAdminLogEventAction action = 4; +message Page_Data { + repeated PageBlock blocks = 1; + repeated Photo photos = 2; + repeated Document documents = 3; } -message ChannelAdminLogEvent { +message Page { TLConstructor constructor = 1; - ChannelAdminLogEvent_Data data2 = 2; + Page_Data data2 = 2; } -// channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent; -message TL_channelAdminLogEvent { - ChannelAdminLogEvent_Data data2 = 2; +// pagePart#8e3f9ebe blocks:Vector photos:Vector documents:Vector = Page; +message TL_pagePart { + Page_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// Chat <-- -// + TL_chatEmpty -// + TL_chat -// + TL_chatForbidden -// + TL_channel -// + TL_channelForbidden -// -message Chat_Data { - int32 id = 1; - bool creator = 2; - bool kicked = 3; - bool left = 4; - bool admins_enabled = 5; - bool admin = 6; - bool deactivated = 7; - string title = 8; - ChatPhoto photo = 9; - int32 participants_count = 10; - int32 date = 11; - int32 version = 12; - InputChannel migrated_to = 13; - bool editor = 14; - bool broadcast = 15; - bool verified = 16; - bool megagroup = 17; - bool restricted = 18; - bool democracy = 19; - bool signatures = 20; - bool min = 21; - int64 access_hash = 22; - string username = 23; - string restriction_reason = 24; - ChannelAdminRights admin_rights = 25; - ChannelBannedRights banned_rights = 26; - int32 until_date = 27; +// pageFull#556ec7aa blocks:Vector photos:Vector documents:Vector = Page; +message TL_pageFull { + Page_Data data2 = 2; } -message Chat { + +/////////////////////////////////////////////////////////////////////////////// +// WebDocument <-- +// + TL_webDocument +// + TL_webDocumentNoProxy +// +message WebDocument_Data { + string url = 1; + int64 access_hash = 2; + int32 size = 3; + string mime_type = 4; + repeated DocumentAttribute attributes = 5; +} + +message WebDocument { TLConstructor constructor = 1; - Chat_Data data2 = 2; + WebDocument_Data data2 = 2; } -// chatEmpty#9ba2d800 id:int = Chat; -message TL_chatEmpty { - Chat_Data data2 = 2; +// webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument; +message TL_webDocument { + WebDocument_Data data2 = 2; } -// chat#d91cdd54 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true admins_enabled:flags.3?true admin:flags.4?true deactivated:flags.5?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel = Chat; -message TL_chat { - Chat_Data data2 = 2; +// webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument; +message TL_webDocumentNoProxy { + WebDocument_Data data2 = 2; } -// chatForbidden#7328bdb id:int title:string = Chat; -message TL_chatForbidden { - Chat_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// auth_Authorization <-- +// + TL_auth_authorization +// +message auth_Authorization_Data { + int32 tmp_sessions = 1; + User user = 2; } -// channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; -message TL_channel { - Chat_Data data2 = 2; +message auth_Authorization { + TLConstructor constructor = 1; + auth_Authorization_Data data2 = 2; } -// channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat; -message TL_channelForbidden { - Chat_Data data2 = 2; +// auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization; +message TL_auth_authorization { + auth_Authorization_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// GeoPoint <-- -// + TL_geoPointEmpty -// + TL_geoPoint +// ImportedContact <-- +// + TL_importedContact // -message GeoPoint_Data { - double long = 1; - double lat = 2; - int64 access_hash = 3; +message ImportedContact_Data { + int32 user_id = 1; + int64 client_id = 2; } -message GeoPoint { +message ImportedContact { TLConstructor constructor = 1; - GeoPoint_Data data2 = 2; -} - -// geoPointEmpty#1117dd5f = GeoPoint; -message TL_geoPointEmpty { - GeoPoint_Data data2 = 2; + ImportedContact_Data data2 = 2; } -// geoPoint#296f104 long:double lat:double access_hash:long = GeoPoint; -message TL_geoPoint { - GeoPoint_Data data2 = 2; +// importedContact#d0028438 user_id:int client_id:long = ImportedContact; +message TL_importedContact { + ImportedContact_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ReportReason <-- -// + TL_inputReportReasonSpam -// + TL_inputReportReasonViolence -// + TL_inputReportReasonPornography -// + TL_inputReportReasonOther -// + TL_inputReportReasonCopyright +// updates_Difference <-- +// + TL_updates_differenceEmpty +// + TL_updates_difference +// + TL_updates_differenceSlice +// + TL_updates_differenceTooLong // -message ReportReason_Data { - string text = 1; +message updates_Difference_Data { + int32 date = 1; + int32 seq = 2; + repeated Message new_messages = 3; + repeated EncryptedMessage new_encrypted_messages = 4; + repeated Update other_updates = 5; + repeated Chat chats = 6; + repeated User users = 7; + updates_State state = 8; + updates_State intermediate_state = 9; + int32 pts = 10; } -message ReportReason { +message updates_Difference { TLConstructor constructor = 1; - ReportReason_Data data2 = 2; -} - -// inputReportReasonSpam#58dbcab8 = ReportReason; -message TL_inputReportReasonSpam { - ReportReason_Data data2 = 2; + updates_Difference_Data data2 = 2; } -// inputReportReasonViolence#1e22c78d = ReportReason; -message TL_inputReportReasonViolence { - ReportReason_Data data2 = 2; +// updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; +message TL_updates_differenceEmpty { + updates_Difference_Data data2 = 2; } -// inputReportReasonPornography#2e59d922 = ReportReason; -message TL_inputReportReasonPornography { - ReportReason_Data data2 = 2; +// updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; +message TL_updates_difference { + updates_Difference_Data data2 = 2; } -// inputReportReasonOther#e1746d0a text:string = ReportReason; -message TL_inputReportReasonOther { - ReportReason_Data data2 = 2; +// updates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference; +message TL_updates_differenceSlice { + updates_Difference_Data data2 = 2; } -// inputReportReasonCopyright#9b89f93a = ReportReason; -message TL_inputReportReasonCopyright { - ReportReason_Data data2 = 2; +// updates.differenceTooLong#4afe8f6d pts:int = updates.Difference; +message TL_updates_differenceTooLong { + updates_Difference_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_Chats <-- -// + TL_messages_chats -// + TL_messages_chatsSlice +// account_AuthorizationForm <-- +// + TL_account_authorizationForm // -message messages_Chats_Data { - repeated Chat chats = 1; - int32 count = 2; +message account_AuthorizationForm_Data { + repeated SecureRequiredType required_types = 1; + repeated SecureValue values = 2; + repeated SecureValueError errors = 3; + repeated User users = 4; + string privacy_policy_url = 5; } -message messages_Chats { +message account_AuthorizationForm { TLConstructor constructor = 1; - messages_Chats_Data data2 = 2; -} - -// messages.chats#64ff9fd5 chats:Vector = messages.Chats; -message TL_messages_chats { - messages_Chats_Data data2 = 2; + account_AuthorizationForm_Data data2 = 2; } -// messages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats; -message TL_messages_chatsSlice { - messages_Chats_Data data2 = 2; +// account.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm; +message TL_account_authorizationForm { + account_AuthorizationForm_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// BotInlineResult <-- -// + TL_botInlineResult -// + TL_botInlineMediaResult +// InputAppEvent <-- +// + TL_inputAppEvent // -message BotInlineResult_Data { - string id = 1; +message InputAppEvent_Data { + double time = 1; string type = 2; - string title = 3; - string description = 4; - string url = 5; - WebDocument thumb = 6; - WebDocument content = 7; - BotInlineMessage send_message = 8; - Photo photo = 9; - Document document = 10; + int64 peer = 3; + string data = 4; } -message BotInlineResult { +message InputAppEvent { TLConstructor constructor = 1; - BotInlineResult_Data data2 = 2; -} - -// botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult; -message TL_botInlineResult { - BotInlineResult_Data data2 = 2; + InputAppEvent_Data data2 = 2; } -// botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult; -message TL_botInlineMediaResult { - BotInlineResult_Data data2 = 2; +// inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent; +message TL_inputAppEvent { + InputAppEvent_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// DraftMessage <-- -// + TL_draftMessageEmpty -// + TL_draftMessage +// NotifyPeer <-- +// + TL_notifyPeer +// + TL_notifyUsers +// + TL_notifyChats // -message DraftMessage_Data { - int32 date = 1; - bool no_webpage = 2; - int32 reply_to_msg_id = 3; - string message = 4; - repeated MessageEntity entities = 5; +message NotifyPeer_Data { + Peer peer = 1; } -message DraftMessage { +message NotifyPeer { TLConstructor constructor = 1; - DraftMessage_Data data2 = 2; + NotifyPeer_Data data2 = 2; } -// draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; -message TL_draftMessageEmpty { - DraftMessage_Data data2 = 2; +// notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; +message TL_notifyPeer { + NotifyPeer_Data data2 = 2; +} + +// notifyUsers#b4c83b4c = NotifyPeer; +message TL_notifyUsers { + NotifyPeer_Data data2 = 2; +} + +// notifyChats#c007cec3 = NotifyPeer; +message TL_notifyChats { + NotifyPeer_Data data2 = 2; +} + + +/////////////////////////////////////////////////////////////////////////////// +// StickerSet <-- +// + TL_stickerSet +// +message StickerSet_Data { + bool archived = 1; + bool official = 2; + bool masks = 3; + int32 installed_date = 4; + int64 id = 5; + int64 access_hash = 6; + string title = 7; + string short_name = 8; + int32 count = 9; + int32 hash = 10; +} + +message StickerSet { + TLConstructor constructor = 1; + StickerSet_Data data2 = 2; } -// draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector date:int = DraftMessage; -message TL_draftMessage { - DraftMessage_Data data2 = 2; +// stickerSet#5585a139 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string count:int hash:int = StickerSet; +message TL_stickerSet { + StickerSet_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_RecentStickers <-- -// + TL_messages_recentStickersNotModified -// + TL_messages_recentStickers +// EncryptedMessage <-- +// + TL_encryptedMessage +// + TL_encryptedMessageService // -message messages_RecentStickers_Data { - int32 hash = 1; - repeated StickerPack packs = 2; - repeated Document stickers = 3; - repeated int32 dates = 4; +message EncryptedMessage_Data { + int64 random_id = 1; + int32 chat_id = 2; + int32 date = 3; + bytes bytes = 4; + EncryptedFile file = 5; } -message messages_RecentStickers { +message EncryptedMessage { TLConstructor constructor = 1; - messages_RecentStickers_Data data2 = 2; + EncryptedMessage_Data data2 = 2; } -// messages.recentStickersNotModified#b17f890 = messages.RecentStickers; -message TL_messages_recentStickersNotModified { - messages_RecentStickers_Data data2 = 2; +// encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage; +message TL_encryptedMessage { + EncryptedMessage_Data data2 = 2; } -// messages.recentStickers#22f3afb3 hash:int packs:Vector stickers:Vector dates:Vector = messages.RecentStickers; -message TL_messages_recentStickers { - messages_RecentStickers_Data data2 = 2; +// encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage; +message TL_encryptedMessageService { + EncryptedMessage_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// payments_PaymentResult <-- -// + TL_payments_paymentResult -// + TL_payments_paymentVerficationNeeded +// StickerSetCovered <-- +// + TL_stickerSetCovered +// + TL_stickerSetMultiCovered // -message payments_PaymentResult_Data { - Updates updates = 1; - string url = 2; +message StickerSetCovered_Data { + StickerSet set = 1; + Document cover = 2; + repeated Document covers = 3; } -message payments_PaymentResult { +message StickerSetCovered { TLConstructor constructor = 1; - payments_PaymentResult_Data data2 = 2; + StickerSetCovered_Data data2 = 2; } -// payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult; -message TL_payments_paymentResult { - payments_PaymentResult_Data data2 = 2; +// stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered; +message TL_stickerSetCovered { + StickerSetCovered_Data data2 = 2; } -// payments.paymentVerficationNeeded#6b56b921 url:string = payments.PaymentResult; -message TL_payments_paymentVerficationNeeded { - payments_PaymentResult_Data data2 = 2; +// stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered; +message TL_stickerSetMultiCovered { + StickerSetCovered_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputMedia <-- -// + TL_inputMediaPhotoLayer46 -// + TL_inputMediaEmpty -// + TL_inputMediaUploadedPhoto -// + TL_inputMediaPhoto -// + TL_inputMediaGeoPoint -// + TL_inputMediaContact -// + TL_inputMediaUploadedDocument -// + TL_inputMediaDocument -// + TL_inputMediaVenue -// + TL_inputMediaGifExternal -// + TL_inputMediaPhotoExternal -// + TL_inputMediaDocumentExternal -// + TL_inputMediaGame -// + TL_inputMediaInvoice -// + TL_inputMediaGeoLive +// InputPhoneCall <-- +// + TL_inputPhoneCall // -message InputMedia_Data { - InputPhoto id_1 = 1; - string caption = 2; - InputFile file = 3; - repeated InputDocument stickers = 4; - int32 ttl_seconds = 5; - InputGeoPoint geo_point = 6; - string phone_number = 7; - string first_name = 8; - string last_name = 9; - string vcard = 10; - bool nosound_video = 11; - InputFile thumb = 12; - string mime_type = 13; - repeated DocumentAttribute attributes = 14; - InputDocument id_15 = 15; - string title = 16; - string address = 17; - string provider = 18; - string venue_id = 19; - string venue_type = 20; - string url = 21; - string q = 22; - InputGame id_23 = 23; - string description = 24; - InputWebDocument photo = 25; - Invoice invoice = 26; - bytes payload = 27; - DataJSON provider_data = 28; - string start_param = 29; - int32 period = 30; +message InputPhoneCall_Data { + int64 id = 1; + int64 access_hash = 2; } -message InputMedia { +message InputPhoneCall { TLConstructor constructor = 1; - InputMedia_Data data2 = 2; + InputPhoneCall_Data data2 = 2; } -// inputMediaPhoto#e9bfb4f3 id:InputPhoto caption:string = InputMedia; -message TL_inputMediaPhotoLayer46 { - InputMedia_Data data2 = 2; +// inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall; +message TL_inputPhoneCall { + InputPhoneCall_Data data2 = 2; } -// inputMediaEmpty#9664f57f = InputMedia; -message TL_inputMediaEmpty { - InputMedia_Data data2 = 2; -} -// inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; -message TL_inputMediaUploadedPhoto { - InputMedia_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// help_PassportConfig <-- +// + TL_help_passportConfigNotModified +// + TL_help_passportConfig +// +message help_PassportConfig_Data { + int32 hash = 1; + DataJSON countries_langs = 2; } -// inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia; -message TL_inputMediaPhoto { - InputMedia_Data data2 = 2; +message help_PassportConfig { + TLConstructor constructor = 1; + help_PassportConfig_Data data2 = 2; } -// inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia; -message TL_inputMediaGeoPoint { - InputMedia_Data data2 = 2; +// help.passportConfigNotModified#bfb9f457 = help.PassportConfig; +message TL_help_passportConfigNotModified { + help_PassportConfig_Data data2 = 2; } -// inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia; -message TL_inputMediaContact { - InputMedia_Data data2 = 2; +// help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig; +message TL_help_passportConfig { + help_PassportConfig_Data data2 = 2; } -// inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia; -message TL_inputMediaUploadedDocument { - InputMedia_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// StickerPack <-- +// + TL_stickerPack +// +message StickerPack_Data { + string emoticon = 1; + repeated int64 documents = 2; } -// inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia; -message TL_inputMediaDocument { - InputMedia_Data data2 = 2; +message StickerPack { + TLConstructor constructor = 1; + StickerPack_Data data2 = 2; } -// inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia; -message TL_inputMediaVenue { - InputMedia_Data data2 = 2; +// stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack; +message TL_stickerPack { + StickerPack_Data data2 = 2; } -// inputMediaGifExternal#4843b0fd url:string q:string = InputMedia; -message TL_inputMediaGifExternal { - InputMedia_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// BotInfo <-- +// + TL_botInfo +// +message BotInfo_Data { + int32 user_id = 1; + string description = 2; + repeated BotCommand commands = 3; } -// inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia; -message TL_inputMediaPhotoExternal { - InputMedia_Data data2 = 2; +message BotInfo { + TLConstructor constructor = 1; + BotInfo_Data data2 = 2; } -// inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia; -message TL_inputMediaDocumentExternal { - InputMedia_Data data2 = 2; +// botInfo#98e81d3a user_id:int description:string commands:Vector = BotInfo; +message TL_botInfo { + BotInfo_Data data2 = 2; } -// inputMediaGame#d33f43f3 id:InputGame = InputMedia; -message TL_inputMediaGame { - InputMedia_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// MessageRange <-- +// + TL_messageRange +// +message MessageRange_Data { + int32 min_id = 1; + int32 max_id = 2; } -// inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia; -message TL_inputMediaInvoice { - InputMedia_Data data2 = 2; +message MessageRange { + TLConstructor constructor = 1; + MessageRange_Data data2 = 2; } -// inputMediaGeoLive#7b1a118f geo_point:InputGeoPoint period:int = InputMedia; -message TL_inputMediaGeoLive { - InputMedia_Data data2 = 2; +// messageRange#ae30253 min_id:int max_id:int = MessageRange; +message TL_messageRange { + MessageRange_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// help_InviteText <-- -// + TL_help_inviteText +// InputCheckPasswordSRP <-- +// + TL_inputCheckPasswordEmpty +// + TL_inputCheckPasswordSRP // -message help_InviteText_Data { - string message = 1; +message InputCheckPasswordSRP_Data { + int64 srp_id = 1; + bytes A = 2; + bytes M1 = 3; } -message help_InviteText { +message InputCheckPasswordSRP { TLConstructor constructor = 1; - help_InviteText_Data data2 = 2; + InputCheckPasswordSRP_Data data2 = 2; +} + +// inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP; +message TL_inputCheckPasswordEmpty { + InputCheckPasswordSRP_Data data2 = 2; } -// help.inviteText#18cb9f78 message:string = help.InviteText; -message TL_help_inviteText { - help_InviteText_Data data2 = 2; +// inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP; +message TL_inputCheckPasswordSRP { + InputCheckPasswordSRP_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputPrivacyRule <-- -// + TL_inputPrivacyValueAllowContacts -// + TL_inputPrivacyValueAllowAll -// + TL_inputPrivacyValueAllowUsers -// + TL_inputPrivacyValueDisallowContacts -// + TL_inputPrivacyValueDisallowAll -// + TL_inputPrivacyValueDisallowUsers +// messages_Messages <-- +// + TL_messages_messages +// + TL_messages_messagesSlice +// + TL_messages_channelMessages +// + TL_messages_messagesNotModified // -message InputPrivacyRule_Data { - repeated InputUser users = 1; +message messages_Messages_Data { + repeated Message messages = 1; + repeated Chat chats = 2; + repeated User users = 3; + int32 count = 4; + int32 pts = 5; } -message InputPrivacyRule { +message messages_Messages { TLConstructor constructor = 1; - InputPrivacyRule_Data data2 = 2; -} - -// inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; -message TL_inputPrivacyValueAllowContacts { - InputPrivacyRule_Data data2 = 2; -} - -// inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; -message TL_inputPrivacyValueAllowAll { - InputPrivacyRule_Data data2 = 2; + messages_Messages_Data data2 = 2; } -// inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; -message TL_inputPrivacyValueAllowUsers { - InputPrivacyRule_Data data2 = 2; +// messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages; +message TL_messages_messages { + messages_Messages_Data data2 = 2; } -// inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule; -message TL_inputPrivacyValueDisallowContacts { - InputPrivacyRule_Data data2 = 2; +// messages.messagesSlice#b446ae3 count:int messages:Vector chats:Vector users:Vector = messages.Messages; +message TL_messages_messagesSlice { + messages_Messages_Data data2 = 2; } -// inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule; -message TL_inputPrivacyValueDisallowAll { - InputPrivacyRule_Data data2 = 2; +// messages.channelMessages#99262e37 flags:# pts:int count:int messages:Vector chats:Vector users:Vector = messages.Messages; +message TL_messages_channelMessages { + messages_Messages_Data data2 = 2; } -// inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule; -message TL_inputPrivacyValueDisallowUsers { - InputPrivacyRule_Data data2 = 2; +// messages.messagesNotModified#74535f21 count:int = messages.Messages; +message TL_messages_messagesNotModified { + messages_Messages_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// account_Authorizations <-- -// + TL_account_authorizations +// payments_ValidatedRequestedInfo <-- +// + TL_payments_validatedRequestedInfo // -message account_Authorizations_Data { - repeated Authorization authorizations = 1; +message payments_ValidatedRequestedInfo_Data { + string id = 1; + repeated ShippingOption shipping_options = 2; } -message account_Authorizations { +message payments_ValidatedRequestedInfo { TLConstructor constructor = 1; - account_Authorizations_Data data2 = 2; + payments_ValidatedRequestedInfo_Data data2 = 2; } -// account.authorizations#1250abde authorizations:Vector = account.Authorizations; -message TL_account_authorizations { - account_Authorizations_Data data2 = 2; +// payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; +message TL_payments_validatedRequestedInfo { + payments_ValidatedRequestedInfo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ReceivedNotifyMessage <-- -// + TL_receivedNotifyMessage +// SchemeType <-- +// + TL_schemeType // -message ReceivedNotifyMessage_Data { +message SchemeType_Data { int32 id = 1; - int32 flags = 2; + string predicate = 2; + repeated SchemeParam params = 3; + string type = 4; } -message ReceivedNotifyMessage { +message SchemeType { TLConstructor constructor = 1; - ReceivedNotifyMessage_Data data2 = 2; + SchemeType_Data data2 = 2; } -// receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage; -message TL_receivedNotifyMessage { - ReceivedNotifyMessage_Data data2 = 2; +// schemeType#a8e1e989 id:int predicate:string params:Vector type:string = SchemeType; +message TL_schemeType { + SchemeType_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// LangPackLanguage <-- -// + TL_langPackLanguage +// EncryptedChat <-- +// + TL_encryptedChatEmpty +// + TL_encryptedChatWaiting +// + TL_encryptedChatRequested +// + TL_encryptedChat +// + TL_encryptedChatDiscarded // -message LangPackLanguage_Data { - string name = 1; - string native_name = 2; - string lang_code = 3; +message EncryptedChat_Data { + int32 id = 1; + int64 access_hash = 2; + int32 date = 3; + int32 admin_id = 4; + int32 participant_id = 5; + bytes g_a = 6; + bytes g_a_or_b = 7; + int64 key_fingerprint = 8; } -message LangPackLanguage { +message EncryptedChat { TLConstructor constructor = 1; - LangPackLanguage_Data data2 = 2; + EncryptedChat_Data data2 = 2; } -// langPackLanguage#117698f1 name:string native_name:string lang_code:string = LangPackLanguage; -message TL_langPackLanguage { - LangPackLanguage_Data data2 = 2; +// encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat; +message TL_encryptedChatEmpty { + EncryptedChat_Data data2 = 2; } +// encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat; +message TL_encryptedChatWaiting { + EncryptedChat_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// channels_AdminLogResults <-- -// + TL_channels_adminLogResults -// -message channels_AdminLogResults_Data { - repeated ChannelAdminLogEvent events = 1; - repeated Chat chats = 2; - repeated User users = 3; +// encryptedChatRequested#c878527e id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat; +message TL_encryptedChatRequested { + EncryptedChat_Data data2 = 2; } -message channels_AdminLogResults { - TLConstructor constructor = 1; - channels_AdminLogResults_Data data2 = 2; +// encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat; +message TL_encryptedChat { + EncryptedChat_Data data2 = 2; } -// channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; -message TL_channels_adminLogResults { - channels_AdminLogResults_Data data2 = 2; +// encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat; +message TL_encryptedChatDiscarded { + EncryptedChat_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChatPhoto <-- -// + TL_chatPhotoEmpty -// + TL_chatPhoto +// MessageEntity <-- +// + TL_messageEntityUnknown +// + TL_messageEntityMention +// + TL_messageEntityHashtag +// + TL_messageEntityBotCommand +// + TL_messageEntityUrl +// + TL_messageEntityEmail +// + TL_messageEntityBold +// + TL_messageEntityItalic +// + TL_messageEntityCode +// + TL_messageEntityPre +// + TL_messageEntityTextUrl +// + TL_messageEntityMentionName +// + TL_inputMessageEntityMentionName +// + TL_messageEntityPhone +// + TL_messageEntityCashtag // -message ChatPhoto_Data { - FileLocation photo_small = 1; - FileLocation photo_big = 2; +message MessageEntity_Data { + int32 offset = 1; + int32 length = 2; + string language = 3; + string url = 4; + int32 user_id_5 = 5; + InputUser user_id_6 = 6; } -message ChatPhoto { +message MessageEntity { TLConstructor constructor = 1; - ChatPhoto_Data data2 = 2; + MessageEntity_Data data2 = 2; } -// chatPhotoEmpty#37c1011c = ChatPhoto; -message TL_chatPhotoEmpty { - ChatPhoto_Data data2 = 2; +// messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity; +message TL_messageEntityUnknown { + MessageEntity_Data data2 = 2; } -// chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto; -message TL_chatPhoto { - ChatPhoto_Data data2 = 2; +// messageEntityMention#fa04579d offset:int length:int = MessageEntity; +message TL_messageEntityMention { + MessageEntity_Data data2 = 2; } +// messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity; +message TL_messageEntityHashtag { + MessageEntity_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// Message <-- -// + TL_messageEmpty -// + TL_message -// + TL_messageService -// -message Message_Data { - int32 id = 1; - bool out = 2; - bool mentioned = 3; - bool media_unread = 4; - bool silent = 5; - bool post = 6; - int32 from_id = 7; - Peer to_id = 8; - MessageFwdHeader fwd_from = 9; - int32 via_bot_id = 10; - int32 reply_to_msg_id = 11; - int32 date = 12; - string message = 13; - MessageMedia media = 14; - ReplyMarkup reply_markup = 15; - repeated MessageEntity entities = 16; - int32 views = 17; - int32 edit_date = 18; - string post_author = 19; - int64 grouped_id = 20; - MessageAction action = 21; +// messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity; +message TL_messageEntityBotCommand { + MessageEntity_Data data2 = 2; } -message Message { - TLConstructor constructor = 1; - Message_Data data2 = 2; +// messageEntityUrl#6ed02538 offset:int length:int = MessageEntity; +message TL_messageEntityUrl { + MessageEntity_Data data2 = 2; +} + +// messageEntityEmail#64e475c2 offset:int length:int = MessageEntity; +message TL_messageEntityEmail { + MessageEntity_Data data2 = 2; +} + +// messageEntityBold#bd610bc9 offset:int length:int = MessageEntity; +message TL_messageEntityBold { + MessageEntity_Data data2 = 2; } -// messageEmpty#83e5de54 id:int = Message; -message TL_messageEmpty { - Message_Data data2 = 2; +// messageEntityItalic#826f8b60 offset:int length:int = MessageEntity; +message TL_messageEntityItalic { + MessageEntity_Data data2 = 2; } -// message#44f9b43d flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long = Message; -message TL_message { - Message_Data data2 = 2; +// messageEntityCode#28a20571 offset:int length:int = MessageEntity; +message TL_messageEntityCode { + MessageEntity_Data data2 = 2; } -// messageService#9e19a1f6 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer reply_to_msg_id:flags.3?int date:int action:MessageAction = Message; -message TL_messageService { - Message_Data data2 = 2; +// messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity; +message TL_messageEntityPre { + MessageEntity_Data data2 = 2; } +// messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity; +message TL_messageEntityTextUrl { + MessageEntity_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// help_PassportConfig <-- -// + TL_help_passportConfigNotModified -// + TL_help_passportConfig -// -message help_PassportConfig_Data { - int32 hash = 1; - DataJSON countries_langs = 2; +// messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity; +message TL_messageEntityMentionName { + MessageEntity_Data data2 = 2; } -message help_PassportConfig { - TLConstructor constructor = 1; - help_PassportConfig_Data data2 = 2; +// inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity; +message TL_inputMessageEntityMentionName { + MessageEntity_Data data2 = 2; } -// help.passportConfigNotModified#bfb9f457 = help.PassportConfig; -message TL_help_passportConfigNotModified { - help_PassportConfig_Data data2 = 2; +// messageEntityPhone#9b69e34b offset:int length:int = MessageEntity; +message TL_messageEntityPhone { + MessageEntity_Data data2 = 2; } -// help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig; -message TL_help_passportConfig { - help_PassportConfig_Data data2 = 2; +// messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity; +message TL_messageEntityCashtag { + MessageEntity_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// UserStatus <-- -// + TL_userStatusEmpty -// + TL_userStatusOnline -// + TL_userStatusOffline -// + TL_userStatusRecently -// + TL_userStatusLastWeek -// + TL_userStatusLastMonth +// ChannelAdminRights <-- +// + TL_channelAdminRights // -message UserStatus_Data { - int32 expires = 1; - int32 was_online = 2; +message ChannelAdminRights_Data { + bool change_info = 1; + bool post_messages = 2; + bool edit_messages = 3; + bool delete_messages = 4; + bool ban_users = 5; + bool invite_users = 6; + bool invite_link = 7; + bool pin_messages = 8; + bool add_admins = 9; + bool manage_call = 10; } -message UserStatus { +message ChannelAdminRights { TLConstructor constructor = 1; - UserStatus_Data data2 = 2; -} - -// userStatusEmpty#9d05049 = UserStatus; -message TL_userStatusEmpty { - UserStatus_Data data2 = 2; + ChannelAdminRights_Data data2 = 2; } -// userStatusOnline#edb93949 expires:int = UserStatus; -message TL_userStatusOnline { - UserStatus_Data data2 = 2; +// channelAdminRights#5d7ceba5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true invite_link:flags.6?true pin_messages:flags.7?true add_admins:flags.9?true manage_call:flags.10?true = ChannelAdminRights; +message TL_channelAdminRights { + ChannelAdminRights_Data data2 = 2; } -// userStatusOffline#8c703f was_online:int = UserStatus; -message TL_userStatusOffline { - UserStatus_Data data2 = 2; -} -// userStatusRecently#e26f42f1 = UserStatus; -message TL_userStatusRecently { - UserStatus_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// PopularContact <-- +// + TL_popularContact +// +message PopularContact_Data { + int64 client_id = 1; + int32 importers = 2; } -// userStatusLastWeek#7bf09fc = UserStatus; -message TL_userStatusLastWeek { - UserStatus_Data data2 = 2; +message PopularContact { + TLConstructor constructor = 1; + PopularContact_Data data2 = 2; } -// userStatusLastMonth#77ebc742 = UserStatus; -message TL_userStatusLastMonth { - UserStatus_Data data2 = 2; +// popularContact#5ce14175 client_id:long importers:int = PopularContact; +message TL_popularContact { + PopularContact_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_PeerDialogs <-- -// + TL_messages_peerDialogs +// Peer <-- +// + TL_peerUser +// + TL_peerChat +// + TL_peerChannel // -message messages_PeerDialogs_Data { - repeated Dialog dialogs = 1; - repeated Message messages = 2; - repeated Chat chats = 3; - repeated User users = 4; - updates_State state = 5; +message Peer_Data { + int32 user_id = 1; + int32 chat_id = 2; + int32 channel_id = 3; } -message messages_PeerDialogs { +message Peer { TLConstructor constructor = 1; - messages_PeerDialogs_Data data2 = 2; + Peer_Data data2 = 2; } -// messages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs; -message TL_messages_peerDialogs { - messages_PeerDialogs_Data data2 = 2; +// peerUser#9db1bc6d user_id:int = Peer; +message TL_peerUser { + Peer_Data data2 = 2; +} + +// peerChat#bad0e5bb chat_id:int = Peer; +message TL_peerChat { + Peer_Data data2 = 2; +} + +// peerChannel#bddde532 channel_id:int = Peer; +message TL_peerChannel { + Peer_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// MessageFwdHeader <-- -// + TL_messageFwdHeader +// FileLocation <-- +// + TL_fileLocationUnavailable +// + TL_fileLocation +// + TL_fileLocationLayer86 // -message MessageFwdHeader_Data { - int32 from_id = 1; - int32 date = 2; - int32 channel_id = 3; - int32 channel_post = 4; - string post_author = 5; - Peer saved_from_peer = 6; - int32 saved_from_msg_id = 7; +message FileLocation_Data { + int64 volume_id = 1; + int32 local_id = 2; + int64 secret = 3; + int32 dc_id = 4; + bytes file_reference = 5; } -message MessageFwdHeader { +message FileLocation { TLConstructor constructor = 1; - MessageFwdHeader_Data data2 = 2; + FileLocation_Data data2 = 2; } -// messageFwdHeader#559ebe6d flags:# from_id:flags.0?int date:int channel_id:flags.1?int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int = MessageFwdHeader; -message TL_messageFwdHeader { - MessageFwdHeader_Data data2 = 2; +// fileLocationUnavailable#7c596b46 volume_id:long local_id:int secret:long = FileLocation; +message TL_fileLocationUnavailable { + FileLocation_Data data2 = 2; +} + +// fileLocation#53d69076 dc_id:int volume_id:long local_id:int secret:long = FileLocation; +message TL_fileLocation { + FileLocation_Data data2 = 2; +} + +// fileLocation#91d11eb dc_id:int volume_id:long local_id:int secret:long file_reference:bytes = FileLocation; +message TL_fileLocationLayer86 { + FileLocation_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// account_WebAuthorizations <-- -// + TL_account_webAuthorizations +// auth_CheckedPhone <-- +// + TL_auth_checkedPhone // -message account_WebAuthorizations_Data { - repeated WebAuthorization authorizations = 1; - repeated User users = 2; +message auth_CheckedPhone_Data { + Bool phone_registered = 1; } -message account_WebAuthorizations { +message auth_CheckedPhone { TLConstructor constructor = 1; - account_WebAuthorizations_Data data2 = 2; + auth_CheckedPhone_Data data2 = 2; } -// account.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations; -message TL_account_webAuthorizations { - account_WebAuthorizations_Data data2 = 2; +// auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone; +message TL_auth_checkedPhone { + auth_CheckedPhone_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputStickerSetItem <-- -// + TL_inputStickerSetItem +// ChatFull <-- +// + TL_chatFull +// + TL_channelFull // -message InputStickerSetItem_Data { - InputDocument document = 1; - string emoji = 2; - MaskCoords mask_coords = 3; +message ChatFull_Data { + int32 id = 1; + ChatParticipants participants = 2; + Photo chat_photo = 3; + PeerNotifySettings notify_settings = 4; + ExportedChatInvite exported_invite = 5; + repeated BotInfo bot_info = 6; + bool can_view_participants = 7; + bool can_set_username = 8; + bool can_set_stickers = 9; + bool hidden_prehistory = 10; + string about = 11; + int32 participants_count = 12; + int32 admins_count = 13; + int32 kicked_count = 14; + int32 banned_count = 15; + int32 read_inbox_max_id = 16; + int32 read_outbox_max_id = 17; + int32 unread_count = 18; + int32 migrated_from_chat_id = 19; + int32 migrated_from_max_id = 20; + int32 pinned_msg_id = 21; + StickerSet stickerset = 22; + int32 available_min_id = 23; } -message InputStickerSetItem { +message ChatFull { TLConstructor constructor = 1; - InputStickerSetItem_Data data2 = 2; + ChatFull_Data data2 = 2; } -// inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem; -message TL_inputStickerSetItem { - InputStickerSetItem_Data data2 = 2; +// chatFull#2e02a614 id:int participants:ChatParticipants chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector = ChatFull; +message TL_chatFull { + ChatFull_Data data2 = 2; +} + +// channelFull#76af5481 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int = ChatFull; +message TL_channelFull { + ChatFull_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ImportedContact <-- -// + TL_importedContact +// contacts_TopPeers <-- +// + TL_contacts_topPeersNotModified +// + TL_contacts_topPeers +// + TL_contacts_topPeersDisabled // -message ImportedContact_Data { - int32 user_id = 1; - int64 client_id = 2; +message contacts_TopPeers_Data { + repeated TopPeerCategoryPeers categories = 1; + repeated Chat chats = 2; + repeated User users = 3; } -message ImportedContact { +message contacts_TopPeers { TLConstructor constructor = 1; - ImportedContact_Data data2 = 2; + contacts_TopPeers_Data data2 = 2; } -// importedContact#d0028438 user_id:int client_id:long = ImportedContact; -message TL_importedContact { - ImportedContact_Data data2 = 2; +// contacts.topPeersNotModified#de266ef5 = contacts.TopPeers; +message TL_contacts_topPeersNotModified { + contacts_TopPeers_Data data2 = 2; +} + +// contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers; +message TL_contacts_topPeers { + contacts_TopPeers_Data data2 = 2; +} + +// contacts.topPeersDisabled#b52c939d = contacts.TopPeers; +message TL_contacts_topPeersDisabled { + contacts_TopPeers_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// updates_State <-- -// + TL_updates_state +// messages_FeaturedStickers <-- +// + TL_messages_featuredStickersNotModified +// + TL_messages_featuredStickers // -message updates_State_Data { - int32 pts = 1; - int32 qts = 2; - int32 date = 3; - int32 seq = 4; - int32 unread_count = 5; +message messages_FeaturedStickers_Data { + int32 hash = 1; + repeated StickerSetCovered sets = 2; + repeated int64 unread = 3; } -message updates_State { +message messages_FeaturedStickers { TLConstructor constructor = 1; - updates_State_Data data2 = 2; + messages_FeaturedStickers_Data data2 = 2; } -// updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; -message TL_updates_state { - updates_State_Data data2 = 2; +// messages.featuredStickersNotModified#4ede3cf = messages.FeaturedStickers; +message TL_messages_featuredStickersNotModified { + messages_FeaturedStickers_Data data2 = 2; +} + +// messages.featuredStickers#f89d88e5 hash:int sets:Vector unread:Vector = messages.FeaturedStickers; +message TL_messages_featuredStickers { + messages_FeaturedStickers_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// AccountDaysTTL <-- -// + TL_accountDaysTTL +// InputPrivacyKey <-- +// + TL_inputPrivacyKeyStatusTimestamp +// + TL_inputPrivacyKeyChatInvite +// + TL_inputPrivacyKeyPhoneCall // -message AccountDaysTTL_Data { - int32 days = 1; +message InputPrivacyKey_Data { } -message AccountDaysTTL { +message InputPrivacyKey { TLConstructor constructor = 1; - AccountDaysTTL_Data data2 = 2; + InputPrivacyKey_Data data2 = 2; } -// accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; -message TL_accountDaysTTL { - AccountDaysTTL_Data data2 = 2; +// inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey; +message TL_inputPrivacyKeyStatusTimestamp { + InputPrivacyKey_Data data2 = 2; +} + +// inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; +message TL_inputPrivacyKeyChatInvite { + InputPrivacyKey_Data data2 = 2; +} + +// inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey; +message TL_inputPrivacyKeyPhoneCall { + InputPrivacyKey_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// contacts_Link <-- -// + TL_contacts_link +// account_Password <-- +// + TL_account_password // -message contacts_Link_Data { - ContactLink my_link = 1; - ContactLink foreign_link = 2; - User user = 3; +message account_Password_Data { + bool has_recovery = 1; + bool has_secure_values = 2; + bool has_password = 3; + PasswordKdfAlgo current_algo = 4; + bytes srp_B = 5; + int64 srp_id = 6; + string hint = 7; + string email_unconfirmed_pattern = 8; + PasswordKdfAlgo new_algo = 9; + SecurePasswordKdfAlgo new_secure_algo = 10; + bytes secure_random = 11; } -message contacts_Link { +message account_Password { TLConstructor constructor = 1; - contacts_Link_Data data2 = 2; + account_Password_Data data2 = 2; } -// contacts.link#3ace484c my_link:ContactLink foreign_link:ContactLink user:User = contacts.Link; -message TL_contacts_link { - contacts_Link_Data data2 = 2; +// account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password; +message TL_account_password { + account_Password_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// EncryptedFile <-- -// + TL_encryptedFileEmpty -// + TL_encryptedFile +// InputGame <-- +// + TL_inputGameID +// + TL_inputGameShortName // -message EncryptedFile_Data { +message InputGame_Data { int64 id = 1; int64 access_hash = 2; - int32 size = 3; - int32 dc_id = 4; - int32 key_fingerprint = 5; + InputUser bot_id = 3; + string short_name = 4; } -message EncryptedFile { +message InputGame { TLConstructor constructor = 1; - EncryptedFile_Data data2 = 2; + InputGame_Data data2 = 2; } -// encryptedFileEmpty#c21f497e = EncryptedFile; -message TL_encryptedFileEmpty { - EncryptedFile_Data data2 = 2; +// inputGameID#32c3e77 id:long access_hash:long = InputGame; +message TL_inputGameID { + InputGame_Data data2 = 2; } -// encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile; -message TL_encryptedFile { - EncryptedFile_Data data2 = 2; +// inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame; +message TL_inputGameShortName { + InputGame_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_FeaturedStickers <-- -// + TL_messages_featuredStickersNotModified -// + TL_messages_featuredStickers +// InputDialogPeer <-- +// + TL_inputDialogPeer // -message messages_FeaturedStickers_Data { - int32 hash = 1; - repeated StickerSetCovered sets = 2; - repeated int64 unread = 3; +message InputDialogPeer_Data { + InputPeer peer = 1; } -message messages_FeaturedStickers { +message InputDialogPeer { TLConstructor constructor = 1; - messages_FeaturedStickers_Data data2 = 2; -} - -// messages.featuredStickersNotModified#4ede3cf = messages.FeaturedStickers; -message TL_messages_featuredStickersNotModified { - messages_FeaturedStickers_Data data2 = 2; + InputDialogPeer_Data data2 = 2; } -// messages.featuredStickers#f89d88e5 hash:int sets:Vector unread:Vector = messages.FeaturedStickers; -message TL_messages_featuredStickers { - messages_FeaturedStickers_Data data2 = 2; +// inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer; +message TL_inputDialogPeer { + InputDialogPeer_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// channels_ChannelParticipants <-- -// + TL_channels_channelParticipants -// + TL_channels_channelParticipantsNotModified +// auth_ExportedAuthorization <-- +// + TL_auth_exportedAuthorization // -message channels_ChannelParticipants_Data { - int32 count = 1; - repeated ChannelParticipant participants = 2; - repeated User users = 3; +message auth_ExportedAuthorization_Data { + int32 id = 1; + bytes bytes = 2; } -message channels_ChannelParticipants { +message auth_ExportedAuthorization { TLConstructor constructor = 1; - channels_ChannelParticipants_Data data2 = 2; + auth_ExportedAuthorization_Data data2 = 2; } -// channels.channelParticipants#f56ee2a8 count:int participants:Vector users:Vector = channels.ChannelParticipants; -message TL_channels_channelParticipants { - channels_ChannelParticipants_Data data2 = 2; +// auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization; +message TL_auth_exportedAuthorization { + auth_ExportedAuthorization_Data data2 = 2; } -// channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants; -message TL_channels_channelParticipantsNotModified { - channels_ChannelParticipants_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// InputPeerNotifySettings <-- +// + TL_inputPeerNotifySettings +// +message InputPeerNotifySettings_Data { + Bool show_previews = 1; + Bool silent = 2; + int32 mute_until = 3; + string sound = 4; +} + +message InputPeerNotifySettings { + TLConstructor constructor = 1; + InputPeerNotifySettings_Data data2 = 2; +} + +// inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings; +message TL_inputPeerNotifySettings { + InputPeerNotifySettings_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_FoundGifs <-- -// + TL_messages_foundGifs +// photos_Photo <-- +// + TL_photos_photo // -message messages_FoundGifs_Data { - int32 next_offset = 1; - repeated FoundGif results = 2; +message photos_Photo_Data { + Photo photo = 1; + repeated User users = 2; } -message messages_FoundGifs { +message photos_Photo { TLConstructor constructor = 1; - messages_FoundGifs_Data data2 = 2; + photos_Photo_Data data2 = 2; } -// messages.foundGifs#450a1c0a next_offset:int results:Vector = messages.FoundGifs; -message TL_messages_foundGifs { - messages_FoundGifs_Data data2 = 2; +// photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; +message TL_photos_photo { + photos_Photo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputBotInlineMessageID <-- -// + TL_inputBotInlineMessageID +// MaskCoords <-- +// + TL_maskCoords // -message InputBotInlineMessageID_Data { - int32 dc_id = 1; - int64 id = 2; - int64 access_hash = 3; +message MaskCoords_Data { + int32 n = 1; + double x = 2; + double y = 3; + double zoom = 4; } -message InputBotInlineMessageID { +message MaskCoords { TLConstructor constructor = 1; - InputBotInlineMessageID_Data data2 = 2; + MaskCoords_Data data2 = 2; } -// inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID; -message TL_inputBotInlineMessageID { - InputBotInlineMessageID_Data data2 = 2; +// maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords; +message TL_maskCoords { + MaskCoords_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// account_TmpPassword <-- -// + TL_account_tmpPassword +// ChannelBannedRights <-- +// + TL_channelBannedRights // -message account_TmpPassword_Data { - bytes tmp_password = 1; - int32 valid_until = 2; +message ChannelBannedRights_Data { + bool view_messages = 1; + bool send_messages = 2; + bool send_media = 3; + bool send_stickers = 4; + bool send_gifs = 5; + bool send_games = 6; + bool send_inline = 7; + bool embed_links = 8; + int32 until_date = 9; } -message account_TmpPassword { +message ChannelBannedRights { TLConstructor constructor = 1; - account_TmpPassword_Data data2 = 2; + ChannelBannedRights_Data data2 = 2; } -// account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; -message TL_account_tmpPassword { - account_TmpPassword_Data data2 = 2; +// channelBannedRights#58cf4249 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true until_date:int = ChannelBannedRights; +message TL_channelBannedRights { + ChannelBannedRights_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// MessageAction <-- -// + TL_messageActionEmpty -// + TL_messageActionChatCreate -// + TL_messageActionChatEditTitle -// + TL_messageActionChatEditPhoto -// + TL_messageActionChatDeletePhoto -// + TL_messageActionChatAddUser -// + TL_messageActionChatDeleteUser -// + TL_messageActionChatJoinedByLink -// + TL_messageActionChannelCreate -// + TL_messageActionChatMigrateTo -// + TL_messageActionChannelMigrateFrom -// + TL_messageActionPinMessage -// + TL_messageActionHistoryClear -// + TL_messageActionGameScore -// + TL_messageActionPaymentSentMe -// + TL_messageActionPaymentSent -// + TL_messageActionPhoneCall -// + TL_messageActionScreenshotTaken -// + TL_messageActionCustomAction -// + TL_messageActionBotAllowed -// + TL_messageActionSecureValuesSentMe -// + TL_messageActionSecureValuesSent +// contacts_Link <-- +// + TL_contacts_link // -message MessageAction_Data { - string title = 1; - repeated int32 users = 2; - Photo photo = 3; - int32 user_id = 4; - int32 inviter_id = 5; - int32 channel_id = 6; - int32 chat_id = 7; - int64 game_id = 8; - int32 score = 9; - string currency = 10; - int64 total_amount = 11; - bytes payload = 12; - PaymentRequestedInfo info = 13; - string shipping_option_id = 14; - PaymentCharge charge = 15; - int64 call_id = 16; - PhoneCallDiscardReason reason = 17; - int32 duration = 18; - string message = 19; - string domain = 20; - repeated SecureValue values = 21; - SecureCredentialsEncrypted credentials = 22; - repeated SecureValueType types = 23; +message contacts_Link_Data { + ContactLink my_link = 1; + ContactLink foreign_link = 2; + User user = 3; } -message MessageAction { +message contacts_Link { TLConstructor constructor = 1; - MessageAction_Data data2 = 2; + contacts_Link_Data data2 = 2; } -// messageActionEmpty#b6aef7b0 = MessageAction; -message TL_messageActionEmpty { - MessageAction_Data data2 = 2; +// contacts.link#3ace484c my_link:ContactLink foreign_link:ContactLink user:User = contacts.Link; +message TL_contacts_link { + contacts_Link_Data data2 = 2; } -// messageActionChatCreate#a6638b9a title:string users:Vector = MessageAction; -message TL_messageActionChatCreate { - MessageAction_Data data2 = 2; -} -// messageActionChatEditTitle#b5a1ce5a title:string = MessageAction; -message TL_messageActionChatEditTitle { - MessageAction_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// PrivacyRule <-- +// + TL_privacyValueAllowContacts +// + TL_privacyValueAllowAll +// + TL_privacyValueAllowUsers +// + TL_privacyValueDisallowContacts +// + TL_privacyValueDisallowAll +// + TL_privacyValueDisallowUsers +// +message PrivacyRule_Data { + repeated int32 users = 1; } -// messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction; -message TL_messageActionChatEditPhoto { - MessageAction_Data data2 = 2; +message PrivacyRule { + TLConstructor constructor = 1; + PrivacyRule_Data data2 = 2; } -// messageActionChatDeletePhoto#95e3fbef = MessageAction; -message TL_messageActionChatDeletePhoto { - MessageAction_Data data2 = 2; +// privacyValueAllowContacts#fffe1bac = PrivacyRule; +message TL_privacyValueAllowContacts { + PrivacyRule_Data data2 = 2; } -// messageActionChatAddUser#488a7337 users:Vector = MessageAction; -message TL_messageActionChatAddUser { - MessageAction_Data data2 = 2; +// privacyValueAllowAll#65427b82 = PrivacyRule; +message TL_privacyValueAllowAll { + PrivacyRule_Data data2 = 2; } -// messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction; -message TL_messageActionChatDeleteUser { - MessageAction_Data data2 = 2; +// privacyValueAllowUsers#4d5bbe0c users:Vector = PrivacyRule; +message TL_privacyValueAllowUsers { + PrivacyRule_Data data2 = 2; } -// messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction; -message TL_messageActionChatJoinedByLink { - MessageAction_Data data2 = 2; +// privacyValueDisallowContacts#f888fa1a = PrivacyRule; +message TL_privacyValueDisallowContacts { + PrivacyRule_Data data2 = 2; } -// messageActionChannelCreate#95d2ac92 title:string = MessageAction; -message TL_messageActionChannelCreate { - MessageAction_Data data2 = 2; +// privacyValueDisallowAll#8b73e763 = PrivacyRule; +message TL_privacyValueDisallowAll { + PrivacyRule_Data data2 = 2; } -// messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction; -message TL_messageActionChatMigrateTo { - MessageAction_Data data2 = 2; +// privacyValueDisallowUsers#c7f49b7 users:Vector = PrivacyRule; +message TL_privacyValueDisallowUsers { + PrivacyRule_Data data2 = 2; } -// messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction; -message TL_messageActionChannelMigrateFrom { - MessageAction_Data data2 = 2; -} -// messageActionPinMessage#94bd38ed = MessageAction; -message TL_messageActionPinMessage { - MessageAction_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// BotInlineResult <-- +// + TL_botInlineResult +// + TL_botInlineMediaResult +// +message BotInlineResult_Data { + string id = 1; + string type = 2; + string title = 3; + string description = 4; + string url = 5; + WebDocument thumb = 6; + WebDocument content = 7; + BotInlineMessage send_message = 8; + Photo photo = 9; + Document document = 10; } -// messageActionHistoryClear#9fbab604 = MessageAction; -message TL_messageActionHistoryClear { - MessageAction_Data data2 = 2; +message BotInlineResult { + TLConstructor constructor = 1; + BotInlineResult_Data data2 = 2; } -// messageActionGameScore#92a72876 game_id:long score:int = MessageAction; -message TL_messageActionGameScore { - MessageAction_Data data2 = 2; +// botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult; +message TL_botInlineResult { + BotInlineResult_Data data2 = 2; } -// messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; -message TL_messageActionPaymentSentMe { - MessageAction_Data data2 = 2; +// botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult; +message TL_botInlineMediaResult { + BotInlineResult_Data data2 = 2; } -// messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; -message TL_messageActionPaymentSent { - MessageAction_Data data2 = 2; -} -// messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction; -message TL_messageActionPhoneCall { - MessageAction_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// MessageMedia <-- +// + TL_messageMediaEmpty +// + TL_messageMediaPhoto +// + TL_messageMediaGeo +// + TL_messageMediaContact +// + TL_messageMediaUnsupported +// + TL_messageMediaDocument +// + TL_messageMediaWebPage +// + TL_messageMediaVenue +// + TL_messageMediaGame +// + TL_messageMediaInvoice +// + TL_messageMediaGeoLive +// +message MessageMedia_Data { + Photo photo_1 = 1; + int32 ttl_seconds = 2; + GeoPoint geo = 3; + string phone_number = 4; + string first_name = 5; + string last_name = 6; + string vcard = 7; + int32 user_id = 8; + Document document = 9; + WebPage webpage = 10; + string title = 11; + string address = 12; + string provider = 13; + string venue_id = 14; + string venue_type = 15; + Game game = 16; + bool shipping_address_requested = 17; + bool test = 18; + string description = 19; + WebDocument photo_20 = 20; + int32 receipt_msg_id = 21; + string currency = 22; + int64 total_amount = 23; + string start_param = 24; + int32 period = 25; } -// messageActionScreenshotTaken#4792929b = MessageAction; -message TL_messageActionScreenshotTaken { - MessageAction_Data data2 = 2; +message MessageMedia { + TLConstructor constructor = 1; + MessageMedia_Data data2 = 2; } -// messageActionCustomAction#fae69f56 message:string = MessageAction; -message TL_messageActionCustomAction { - MessageAction_Data data2 = 2; +// messageMediaEmpty#3ded6320 = MessageMedia; +message TL_messageMediaEmpty { + MessageMedia_Data data2 = 2; } -// messageActionBotAllowed#abe9affe domain:string = MessageAction; -message TL_messageActionBotAllowed { - MessageAction_Data data2 = 2; +// messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; +message TL_messageMediaPhoto { + MessageMedia_Data data2 = 2; } -// messageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction; -message TL_messageActionSecureValuesSentMe { - MessageAction_Data data2 = 2; +// messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia; +message TL_messageMediaGeo { + MessageMedia_Data data2 = 2; } -// messageActionSecureValuesSent#d95c6154 types:Vector = MessageAction; -message TL_messageActionSecureValuesSent { - MessageAction_Data data2 = 2; +// messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia; +message TL_messageMediaContact { + MessageMedia_Data data2 = 2; } +// messageMediaUnsupported#9f84f49e = MessageMedia; +message TL_messageMediaUnsupported { + MessageMedia_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// updates_Difference <-- -// + TL_updates_differenceEmpty -// + TL_updates_difference -// + TL_updates_differenceSlice -// + TL_updates_differenceTooLong -// -message updates_Difference_Data { - int32 date = 1; - int32 seq = 2; - repeated Message new_messages = 3; - repeated EncryptedMessage new_encrypted_messages = 4; - repeated Update other_updates = 5; - repeated Chat chats = 6; - repeated User users = 7; - updates_State state = 8; - updates_State intermediate_state = 9; - int32 pts = 10; +// messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia; +message TL_messageMediaDocument { + MessageMedia_Data data2 = 2; } -message updates_Difference { - TLConstructor constructor = 1; - updates_Difference_Data data2 = 2; +// messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia; +message TL_messageMediaWebPage { + MessageMedia_Data data2 = 2; } -// updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; -message TL_updates_differenceEmpty { - updates_Difference_Data data2 = 2; +// messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia; +message TL_messageMediaVenue { + MessageMedia_Data data2 = 2; } -// updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; -message TL_updates_difference { - updates_Difference_Data data2 = 2; +// messageMediaGame#fdb19008 game:Game = MessageMedia; +message TL_messageMediaGame { + MessageMedia_Data data2 = 2; } -// updates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference; -message TL_updates_differenceSlice { - updates_Difference_Data data2 = 2; +// messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; +message TL_messageMediaInvoice { + MessageMedia_Data data2 = 2; } -// updates.differenceTooLong#4afe8f6d pts:int = updates.Difference; -message TL_updates_differenceTooLong { - updates_Difference_Data data2 = 2; +// messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia; +message TL_messageMediaGeoLive { + MessageMedia_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// MessageRange <-- -// + TL_messageRange +// InputWebDocument <-- +// + TL_inputWebDocument // -message MessageRange_Data { - int32 min_id = 1; - int32 max_id = 2; +message InputWebDocument_Data { + string url = 1; + int32 size = 2; + string mime_type = 3; + repeated DocumentAttribute attributes = 4; } -message MessageRange { +message InputWebDocument { TLConstructor constructor = 1; - MessageRange_Data data2 = 2; + InputWebDocument_Data data2 = 2; } -// messageRange#ae30253 min_id:int max_id:int = MessageRange; -message TL_messageRange { - MessageRange_Data data2 = 2; +// inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; +message TL_inputWebDocument { + InputWebDocument_Data data2 = 2; } @@ -4094,2077 +4027,2061 @@ message TL_inputWebFileGeoPointLocation { /////////////////////////////////////////////////////////////////////////////// -// payments_PaymentForm <-- -// + TL_payments_paymentForm +// GeoPoint <-- +// + TL_geoPointEmpty +// + TL_geoPoint // -message payments_PaymentForm_Data { - bool can_save_credentials = 1; - bool password_missing = 2; - int32 bot_id = 3; - Invoice invoice = 4; - int32 provider_id = 5; - string url = 6; - string native_provider = 7; - DataJSON native_params = 8; - PaymentRequestedInfo saved_info = 9; - PaymentSavedCredentials saved_credentials = 10; - repeated User users = 11; +message GeoPoint_Data { + double long = 1; + double lat = 2; + int64 access_hash = 3; } -message payments_PaymentForm { +message GeoPoint { TLConstructor constructor = 1; - payments_PaymentForm_Data data2 = 2; + GeoPoint_Data data2 = 2; } -// payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; -message TL_payments_paymentForm { - payments_PaymentForm_Data data2 = 2; +// geoPointEmpty#1117dd5f = GeoPoint; +message TL_geoPointEmpty { + GeoPoint_Data data2 = 2; +} + +// geoPoint#296f104 long:double lat:double access_hash:long = GeoPoint; +message TL_geoPoint { + GeoPoint_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SecureValueType <-- -// + TL_secureValueTypePersonalDetails -// + TL_secureValueTypePassport -// + TL_secureValueTypeDriverLicense -// + TL_secureValueTypeIdentityCard -// + TL_secureValueTypeInternalPassport -// + TL_secureValueTypeAddress -// + TL_secureValueTypeUtilityBill -// + TL_secureValueTypeBankStatement -// + TL_secureValueTypeRentalAgreement -// + TL_secureValueTypePassportRegistration -// + TL_secureValueTypeTemporaryRegistration -// + TL_secureValueTypePhone -// + TL_secureValueTypeEmail +// ContactStatus <-- +// + TL_contactStatus // -message SecureValueType_Data { +message ContactStatus_Data { + int32 user_id = 1; + UserStatus status = 2; } -message SecureValueType { +message ContactStatus { TLConstructor constructor = 1; - SecureValueType_Data data2 = 2; + ContactStatus_Data data2 = 2; } -// secureValueTypePersonalDetails#9d2a81e3 = SecureValueType; -message TL_secureValueTypePersonalDetails { - SecureValueType_Data data2 = 2; +// contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus; +message TL_contactStatus { + ContactStatus_Data data2 = 2; } -// secureValueTypePassport#3dac6a00 = SecureValueType; -message TL_secureValueTypePassport { - SecureValueType_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// AccountDaysTTL <-- +// + TL_accountDaysTTL +// +message AccountDaysTTL_Data { + int32 days = 1; } -// secureValueTypeDriverLicense#6e425c4 = SecureValueType; -message TL_secureValueTypeDriverLicense { - SecureValueType_Data data2 = 2; +message AccountDaysTTL { + TLConstructor constructor = 1; + AccountDaysTTL_Data data2 = 2; } -// secureValueTypeIdentityCard#a0d0744b = SecureValueType; -message TL_secureValueTypeIdentityCard { - SecureValueType_Data data2 = 2; +// accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; +message TL_accountDaysTTL { + AccountDaysTTL_Data data2 = 2; } -// secureValueTypeInternalPassport#99a48f23 = SecureValueType; -message TL_secureValueTypeInternalPassport { - SecureValueType_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// SecureRequiredType <-- +// + TL_secureRequiredType +// + TL_secureRequiredTypeOneOf +// +message SecureRequiredType_Data { + bool native_names = 1; + bool selfie_required = 2; + bool translation_required = 3; + SecureValueType type = 4; + repeated SecureRequiredType types = 5; } -// secureValueTypeAddress#cbe31e26 = SecureValueType; -message TL_secureValueTypeAddress { - SecureValueType_Data data2 = 2; +message SecureRequiredType { + TLConstructor constructor = 1; + SecureRequiredType_Data data2 = 2; } -// secureValueTypeUtilityBill#fc36954e = SecureValueType; -message TL_secureValueTypeUtilityBill { - SecureValueType_Data data2 = 2; +// secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType; +message TL_secureRequiredType { + SecureRequiredType_Data data2 = 2; +} + +// secureRequiredTypeOneOf#27477b4 types:Vector = SecureRequiredType; +message TL_secureRequiredTypeOneOf { + SecureRequiredType_Data data2 = 2; +} + + +/////////////////////////////////////////////////////////////////////////////// +// Message <-- +// + TL_messageEmpty +// + TL_message +// + TL_messageService +// +message Message_Data { + int32 id = 1; + bool out = 2; + bool mentioned = 3; + bool media_unread = 4; + bool silent = 5; + bool post = 6; + int32 from_id = 7; + Peer to_id = 8; + MessageFwdHeader fwd_from = 9; + int32 via_bot_id = 10; + int32 reply_to_msg_id = 11; + int32 date = 12; + string message = 13; + MessageMedia media = 14; + ReplyMarkup reply_markup = 15; + repeated MessageEntity entities = 16; + int32 views = 17; + int32 edit_date = 18; + string post_author = 19; + int64 grouped_id = 20; + MessageAction action = 21; +} + +message Message { + TLConstructor constructor = 1; + Message_Data data2 = 2; } -// secureValueTypeBankStatement#89137c0d = SecureValueType; -message TL_secureValueTypeBankStatement { - SecureValueType_Data data2 = 2; +// messageEmpty#83e5de54 id:int = Message; +message TL_messageEmpty { + Message_Data data2 = 2; } -// secureValueTypeRentalAgreement#8b883488 = SecureValueType; -message TL_secureValueTypeRentalAgreement { - SecureValueType_Data data2 = 2; +// message#44f9b43d flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long = Message; +message TL_message { + Message_Data data2 = 2; } -// secureValueTypePassportRegistration#99e3806a = SecureValueType; -message TL_secureValueTypePassportRegistration { - SecureValueType_Data data2 = 2; +// messageService#9e19a1f6 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true id:int from_id:flags.8?int to_id:Peer reply_to_msg_id:flags.3?int date:int action:MessageAction = Message; +message TL_messageService { + Message_Data data2 = 2; } -// secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType; -message TL_secureValueTypeTemporaryRegistration { - SecureValueType_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// messages_PeerDialogs <-- +// + TL_messages_peerDialogs +// +message messages_PeerDialogs_Data { + repeated Dialog dialogs = 1; + repeated Message messages = 2; + repeated Chat chats = 3; + repeated User users = 4; + updates_State state = 5; } -// secureValueTypePhone#b320aadb = SecureValueType; -message TL_secureValueTypePhone { - SecureValueType_Data data2 = 2; +message messages_PeerDialogs { + TLConstructor constructor = 1; + messages_PeerDialogs_Data data2 = 2; } -// secureValueTypeEmail#8e3ca7ee = SecureValueType; -message TL_secureValueTypeEmail { - SecureValueType_Data data2 = 2; +// messages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs; +message TL_messages_peerDialogs { + messages_PeerDialogs_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputPeerNotifySettings <-- -// + TL_inputPeerNotifySettings +// PaymentCharge <-- +// + TL_paymentCharge // -message InputPeerNotifySettings_Data { - Bool show_previews = 1; - Bool silent = 2; - int32 mute_until = 3; - string sound = 4; +message PaymentCharge_Data { + string id = 1; + string provider_charge_id = 2; } -message InputPeerNotifySettings { +message PaymentCharge { TLConstructor constructor = 1; - InputPeerNotifySettings_Data data2 = 2; + PaymentCharge_Data data2 = 2; } -// inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings; -message TL_inputPeerNotifySettings { - InputPeerNotifySettings_Data data2 = 2; +// paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; +message TL_paymentCharge { + PaymentCharge_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// upload_WebFile <-- -// + TL_upload_webFile +// Chat <-- +// + TL_chatEmpty +// + TL_chat +// + TL_chatForbidden +// + TL_channel +// + TL_channelForbidden // -message upload_WebFile_Data { - int32 size = 1; - string mime_type = 2; - storage_FileType file_type = 3; - int32 mtime = 4; - bytes bytes = 5; +message Chat_Data { + int32 id = 1; + bool creator = 2; + bool kicked = 3; + bool left = 4; + bool admins_enabled = 5; + bool admin = 6; + bool deactivated = 7; + string title = 8; + ChatPhoto photo = 9; + int32 participants_count = 10; + int32 date = 11; + int32 version = 12; + InputChannel migrated_to = 13; + bool editor = 14; + bool broadcast = 15; + bool verified = 16; + bool megagroup = 17; + bool restricted = 18; + bool democracy = 19; + bool signatures = 20; + bool min = 21; + int64 access_hash = 22; + string username = 23; + string restriction_reason = 24; + ChannelAdminRights admin_rights = 25; + ChannelBannedRights banned_rights = 26; + int32 until_date = 27; } -message upload_WebFile { +message Chat { TLConstructor constructor = 1; - upload_WebFile_Data data2 = 2; + Chat_Data data2 = 2; } -// upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; -message TL_upload_webFile { - upload_WebFile_Data data2 = 2; +// chatEmpty#9ba2d800 id:int = Chat; +message TL_chatEmpty { + Chat_Data data2 = 2; +} + +// chat#d91cdd54 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true admins_enabled:flags.3?true admin:flags.4?true deactivated:flags.5?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel = Chat; +message TL_chat { + Chat_Data data2 = 2; +} + +// chatForbidden#7328bdb id:int title:string = Chat; +message TL_chatForbidden { + Chat_Data data2 = 2; +} + +// channel#c88974ac flags:# creator:flags.0?true left:flags.2?true editor:flags.3?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights participants_count:flags.17?int = Chat; +message TL_channel { + Chat_Data data2 = 2; +} + +// channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat; +message TL_channelForbidden { + Chat_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputFile <-- -// + TL_inputFile -// + TL_inputFileBig +// PhotoSize <-- +// + TL_photoSizeEmpty +// + TL_photoSize +// + TL_photoCachedSize // -message InputFile_Data { - int64 id = 1; - int32 parts = 2; - string name = 3; - string md5_checksum = 4; +message PhotoSize_Data { + string type = 1; + FileLocation location = 2; + int32 w = 3; + int32 h = 4; + int32 size = 5; + bytes bytes = 6; } -message InputFile { +message PhotoSize { TLConstructor constructor = 1; - InputFile_Data data2 = 2; + PhotoSize_Data data2 = 2; } -// inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile; -message TL_inputFile { - InputFile_Data data2 = 2; +// photoSizeEmpty#e17e23c type:string = PhotoSize; +message TL_photoSizeEmpty { + PhotoSize_Data data2 = 2; } -// inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile; -message TL_inputFileBig { - InputFile_Data data2 = 2; +// photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize; +message TL_photoSize { + PhotoSize_Data data2 = 2; +} + +// photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize; +message TL_photoCachedSize { + PhotoSize_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PeerNotifySettings <-- -// + TL_peerNotifySettings +// account_PasswordSettings <-- +// + TL_account_passwordSettings // -message PeerNotifySettings_Data { - Bool show_previews = 1; - Bool silent = 2; - int32 mute_until = 3; - string sound = 4; +message account_PasswordSettings_Data { + string email = 1; + SecureSecretSettings secure_settings = 2; } -message PeerNotifySettings { +message account_PasswordSettings { TLConstructor constructor = 1; - PeerNotifySettings_Data data2 = 2; + account_PasswordSettings_Data data2 = 2; } -// peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings; -message TL_peerNotifySettings { - PeerNotifySettings_Data data2 = 2; +// account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings; +message TL_account_passwordSettings { + account_PasswordSettings_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// WallPaper <-- -// + TL_wallPaper -// + TL_wallPaperSolid +// UserFull <-- +// + TL_userFull // -message WallPaper_Data { - int32 id = 1; - string title = 2; - repeated PhotoSize sizes = 3; - int32 color = 4; - int32 bg_color = 5; +message UserFull_Data { + bool blocked = 1; + bool phone_calls_available = 2; + bool phone_calls_private = 3; + User user = 4; + string about = 5; + contacts_Link link = 6; + Photo profile_photo = 7; + PeerNotifySettings notify_settings = 8; + BotInfo bot_info = 9; + int32 common_chats_count = 10; } -message WallPaper { +message UserFull { TLConstructor constructor = 1; - WallPaper_Data data2 = 2; -} - -// wallPaper#ccb03657 id:int title:string sizes:Vector color:int = WallPaper; -message TL_wallPaper { - WallPaper_Data data2 = 2; + UserFull_Data data2 = 2; } -// wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper; -message TL_wallPaperSolid { - WallPaper_Data data2 = 2; +// userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; +message TL_userFull { + UserFull_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// DcOption <-- -// + TL_dcOption +// help_Support <-- +// + TL_help_support // -message DcOption_Data { - bool ipv6 = 1; - bool media_only = 2; - bool tcpo_only = 3; - bool cdn = 4; - bool static = 5; - int32 id = 6; - string ip_address = 7; - int32 port = 8; - bytes secret = 9; +message help_Support_Data { + string phone_number = 1; + User user = 2; } -message DcOption { +message help_Support { TLConstructor constructor = 1; - DcOption_Data data2 = 2; + help_Support_Data data2 = 2; } -// dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption; -message TL_dcOption { - DcOption_Data data2 = 2; +// help.support#17c6b5f6 phone_number:string user:User = help.Support; +message TL_help_support { + help_Support_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_SentEncryptedMessage <-- -// + TL_messages_sentEncryptedMessage -// + TL_messages_sentEncryptedFile +// ChannelMessagesFilter <-- +// + TL_channelMessagesFilterEmpty +// + TL_channelMessagesFilter // -message messages_SentEncryptedMessage_Data { - int32 date = 1; - EncryptedFile file = 2; +message ChannelMessagesFilter_Data { + bool exclude_new_messages = 1; + repeated MessageRange ranges = 2; } -message messages_SentEncryptedMessage { +message ChannelMessagesFilter { TLConstructor constructor = 1; - messages_SentEncryptedMessage_Data data2 = 2; + ChannelMessagesFilter_Data data2 = 2; } -// messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage; -message TL_messages_sentEncryptedMessage { - messages_SentEncryptedMessage_Data data2 = 2; +// channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter; +message TL_channelMessagesFilterEmpty { + ChannelMessagesFilter_Data data2 = 2; } -// messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage; -message TL_messages_sentEncryptedFile { - messages_SentEncryptedMessage_Data data2 = 2; +// channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter; +message TL_channelMessagesFilter { + ChannelMessagesFilter_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputBotInlineResult <-- -// + TL_inputBotInlineResult -// + TL_inputBotInlineResultPhoto -// + TL_inputBotInlineResultDocument -// + TL_inputBotInlineResultGame +// Invoice <-- +// + TL_invoice // -message InputBotInlineResult_Data { - string id = 1; - string type = 2; - string title = 3; - string description = 4; - string url = 5; - InputWebDocument thumb = 6; - InputWebDocument content = 7; - InputBotInlineMessage send_message = 8; - InputPhoto photo = 9; - InputDocument document = 10; - string short_name = 11; +message Invoice_Data { + bool test = 1; + bool name_requested = 2; + bool phone_requested = 3; + bool email_requested = 4; + bool shipping_address_requested = 5; + bool flexible = 6; + bool phone_to_provider = 7; + bool email_to_provider = 8; + string currency = 9; + repeated LabeledPrice prices = 10; } -message InputBotInlineResult { +message Invoice { TLConstructor constructor = 1; - InputBotInlineResult_Data data2 = 2; -} - -// inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult; -message TL_inputBotInlineResult { - InputBotInlineResult_Data data2 = 2; -} - -// inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult; -message TL_inputBotInlineResultPhoto { - InputBotInlineResult_Data data2 = 2; -} - -// inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult; -message TL_inputBotInlineResultDocument { - InputBotInlineResult_Data data2 = 2; + Invoice_Data data2 = 2; } -// inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult; -message TL_inputBotInlineResultGame { - InputBotInlineResult_Data data2 = 2; +// invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector = Invoice; +message TL_invoice { + Invoice_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PhoneCallDiscardReason <-- -// + TL_phoneCallDiscardReasonMissed -// + TL_phoneCallDiscardReasonDisconnect -// + TL_phoneCallDiscardReasonHangup -// + TL_phoneCallDiscardReasonBusy +// help_DeepLinkInfo <-- +// + TL_help_deepLinkInfoEmpty +// + TL_help_deepLinkInfo // -message PhoneCallDiscardReason_Data { +message help_DeepLinkInfo_Data { + bool update_app = 1; + string message = 2; + repeated MessageEntity entities = 3; } -message PhoneCallDiscardReason { +message help_DeepLinkInfo { TLConstructor constructor = 1; - PhoneCallDiscardReason_Data data2 = 2; -} - -// phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason; -message TL_phoneCallDiscardReasonMissed { - PhoneCallDiscardReason_Data data2 = 2; -} - -// phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason; -message TL_phoneCallDiscardReasonDisconnect { - PhoneCallDiscardReason_Data data2 = 2; + help_DeepLinkInfo_Data data2 = 2; } -// phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason; -message TL_phoneCallDiscardReasonHangup { - PhoneCallDiscardReason_Data data2 = 2; +// help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo; +message TL_help_deepLinkInfoEmpty { + help_DeepLinkInfo_Data data2 = 2; } -// phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason; -message TL_phoneCallDiscardReasonBusy { - PhoneCallDiscardReason_Data data2 = 2; +// help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo; +message TL_help_deepLinkInfo { + help_DeepLinkInfo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SecurePasswordKdfAlgo <-- -// + TL_securePasswordKdfAlgoUnknown -// + TL_securePasswordKdfAlgoPBKDF2 -// + TL_securePasswordKdfAlgoSHA512 +// UserProfilePhoto <-- +// + TL_userProfilePhotoEmpty +// + TL_userProfilePhoto // -message SecurePasswordKdfAlgo_Data { - bytes salt = 1; +message UserProfilePhoto_Data { + int64 photo_id = 1; + FileLocation photo_small = 2; + FileLocation photo_big = 3; } -message SecurePasswordKdfAlgo { +message UserProfilePhoto { TLConstructor constructor = 1; - SecurePasswordKdfAlgo_Data data2 = 2; -} - -// securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo; -message TL_securePasswordKdfAlgoUnknown { - SecurePasswordKdfAlgo_Data data2 = 2; + UserProfilePhoto_Data data2 = 2; } -// securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo; -message TL_securePasswordKdfAlgoPBKDF2 { - SecurePasswordKdfAlgo_Data data2 = 2; +// userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; +message TL_userProfilePhotoEmpty { + UserProfilePhoto_Data data2 = 2; } -// securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo; -message TL_securePasswordKdfAlgoSHA512 { - SecurePasswordKdfAlgo_Data data2 = 2; +// userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto; +message TL_userProfilePhoto { + UserProfilePhoto_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChatFull <-- -// + TL_chatFull -// + TL_channelFull +// ChatParticipants <-- +// + TL_chatParticipantsForbidden +// + TL_chatParticipants // -message ChatFull_Data { - int32 id = 1; - ChatParticipants participants = 2; - Photo chat_photo = 3; - PeerNotifySettings notify_settings = 4; - ExportedChatInvite exported_invite = 5; - repeated BotInfo bot_info = 6; - bool can_view_participants = 7; - bool can_set_username = 8; - bool can_set_stickers = 9; - bool hidden_prehistory = 10; - string about = 11; - int32 participants_count = 12; - int32 admins_count = 13; - int32 kicked_count = 14; - int32 banned_count = 15; - int32 read_inbox_max_id = 16; - int32 read_outbox_max_id = 17; - int32 unread_count = 18; - int32 migrated_from_chat_id = 19; - int32 migrated_from_max_id = 20; - int32 pinned_msg_id = 21; - StickerSet stickerset = 22; - int32 available_min_id = 23; +message ChatParticipants_Data { + int32 chat_id = 1; + ChatParticipant self_participant = 2; + repeated ChatParticipant participants = 3; + int32 version = 4; } -message ChatFull { +message ChatParticipants { TLConstructor constructor = 1; - ChatFull_Data data2 = 2; + ChatParticipants_Data data2 = 2; } -// chatFull#2e02a614 id:int participants:ChatParticipants chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector = ChatFull; -message TL_chatFull { - ChatFull_Data data2 = 2; +// chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants; +message TL_chatParticipantsForbidden { + ChatParticipants_Data data2 = 2; } -// channelFull#76af5481 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int = ChatFull; -message TL_channelFull { - ChatFull_Data data2 = 2; +// chatParticipants#3f460fed chat_id:int participants:Vector version:int = ChatParticipants; +message TL_chatParticipants { + ChatParticipants_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// auth_SentCodeType <-- -// + TL_auth_sentCodeTypeApp -// + TL_auth_sentCodeTypeSms -// + TL_auth_sentCodeTypeCall -// + TL_auth_sentCodeTypeFlashCall +// InputNotifyPeer <-- +// + TL_inputNotifyPeer +// + TL_inputNotifyUsers +// + TL_inputNotifyChats // -message auth_SentCodeType_Data { - int32 length = 1; - string pattern = 2; +message InputNotifyPeer_Data { + InputPeer peer = 1; } -message auth_SentCodeType { +message InputNotifyPeer { TLConstructor constructor = 1; - auth_SentCodeType_Data data2 = 2; -} - -// auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType; -message TL_auth_sentCodeTypeApp { - auth_SentCodeType_Data data2 = 2; + InputNotifyPeer_Data data2 = 2; } -// auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType; -message TL_auth_sentCodeTypeSms { - auth_SentCodeType_Data data2 = 2; +// inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer; +message TL_inputNotifyPeer { + InputNotifyPeer_Data data2 = 2; } -// auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType; -message TL_auth_sentCodeTypeCall { - auth_SentCodeType_Data data2 = 2; +// inputNotifyUsers#193b4417 = InputNotifyPeer; +message TL_inputNotifyUsers { + InputNotifyPeer_Data data2 = 2; } -// auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType; -message TL_auth_sentCodeTypeFlashCall { - auth_SentCodeType_Data data2 = 2; +// inputNotifyChats#4a95e84e = InputNotifyPeer; +message TL_inputNotifyChats { + InputNotifyPeer_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// help_ProxyData <-- -// + TL_help_proxyDataEmpty -// + TL_help_proxyDataPromo +// DataJSON <-- +// + TL_dataJSON // -message help_ProxyData_Data { - int32 expires = 1; - Peer peer = 2; - repeated Chat chats = 3; - repeated User users = 4; +message DataJSON_Data { + string data = 1; } -message help_ProxyData { +message DataJSON { TLConstructor constructor = 1; - help_ProxyData_Data data2 = 2; -} - -// help.proxyDataEmpty#e09e1fb8 expires:int = help.ProxyData; -message TL_help_proxyDataEmpty { - help_ProxyData_Data data2 = 2; + DataJSON_Data data2 = 2; } -// help.proxyDataPromo#2bf7ee23 expires:int peer:Peer chats:Vector users:Vector = help.ProxyData; -message TL_help_proxyDataPromo { - help_ProxyData_Data data2 = 2; +// dataJSON#7d748d04 data:string = DataJSON; +message TL_dataJSON { + DataJSON_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SecurePlainData <-- -// + TL_securePlainPhone -// + TL_securePlainEmail +// WebAuthorization <-- +// + TL_webAuthorization // -message SecurePlainData_Data { - string phone = 1; - string email = 2; +message WebAuthorization_Data { + int64 hash = 1; + int32 bot_id = 2; + string domain = 3; + string browser = 4; + string platform = 5; + int32 date_created = 6; + int32 date_active = 7; + string ip = 8; + string region = 9; } -message SecurePlainData { +message WebAuthorization { TLConstructor constructor = 1; - SecurePlainData_Data data2 = 2; -} - -// securePlainPhone#7d6099dd phone:string = SecurePlainData; -message TL_securePlainPhone { - SecurePlainData_Data data2 = 2; + WebAuthorization_Data data2 = 2; } -// securePlainEmail#21ec5a5f email:string = SecurePlainData; -message TL_securePlainEmail { - SecurePlainData_Data data2 = 2; +// webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization; +message TL_webAuthorization { + WebAuthorization_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputPhoto <-- -// + TL_inputPhotoEmpty -// + TL_inputPhoto -// + TL_inputPhotoLayer86 +// DcOption <-- +// + TL_dcOption // -message InputPhoto_Data { - int64 id = 1; - int64 access_hash = 2; - bytes file_reference = 3; +message DcOption_Data { + bool ipv6 = 1; + bool media_only = 2; + bool tcpo_only = 3; + bool cdn = 4; + bool static = 5; + int32 id = 6; + string ip_address = 7; + int32 port = 8; + bytes secret = 9; } -message InputPhoto { +message DcOption { TLConstructor constructor = 1; - InputPhoto_Data data2 = 2; + DcOption_Data data2 = 2; } -// inputPhotoEmpty#1cd7bf0d = InputPhoto; -message TL_inputPhotoEmpty { - InputPhoto_Data data2 = 2; +// dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption; +message TL_dcOption { + DcOption_Data data2 = 2; } -// inputPhoto#fb95c6c4 id:long access_hash:long = InputPhoto; -message TL_inputPhoto { - InputPhoto_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// help_InviteText <-- +// + TL_help_inviteText +// +message help_InviteText_Data { + string message = 1; } -// inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto; -message TL_inputPhotoLayer86 { - InputPhoto_Data data2 = 2; +message help_InviteText { + TLConstructor constructor = 1; + help_InviteText_Data data2 = 2; +} + +// help.inviteText#18cb9f78 message:string = help.InviteText; +message TL_help_inviteText { + help_InviteText_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// upload_File <-- -// + TL_upload_file -// + TL_upload_fileCdnRedirect +// TopPeer <-- +// + TL_topPeer // -message upload_File_Data { - storage_FileType type = 1; - int32 mtime = 2; - bytes bytes = 3; - int32 dc_id = 4; - bytes file_token = 5; - bytes encryption_key = 6; - bytes encryption_iv = 7; - repeated FileHash file_hashes = 8; +message TopPeer_Data { + Peer peer = 1; + double rating = 2; } -message upload_File { +message TopPeer { TLConstructor constructor = 1; - upload_File_Data data2 = 2; -} - -// upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; -message TL_upload_file { - upload_File_Data data2 = 2; + TopPeer_Data data2 = 2; } -// upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File; -message TL_upload_fileCdnRedirect { - upload_File_Data data2 = 2; +// topPeer#edcdc05b peer:Peer rating:double = TopPeer; +message TL_topPeer { + TopPeer_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// FoundGif <-- -// + TL_foundGif -// + TL_foundGifCached +// CdnPublicKey <-- +// + TL_cdnPublicKey // -message FoundGif_Data { - string url = 1; - string thumb_url = 2; - string content_url = 3; - string content_type = 4; - int32 w = 5; - int32 h = 6; - Photo photo = 7; - Document document = 8; +message CdnPublicKey_Data { + int32 dc_id = 1; + string public_key = 2; } -message FoundGif { +message CdnPublicKey { TLConstructor constructor = 1; - FoundGif_Data data2 = 2; -} - -// foundGif#162ecc1f url:string thumb_url:string content_url:string content_type:string w:int h:int = FoundGif; -message TL_foundGif { - FoundGif_Data data2 = 2; + CdnPublicKey_Data data2 = 2; } -// foundGifCached#9c750409 url:string photo:Photo document:Document = FoundGif; -message TL_foundGifCached { - FoundGif_Data data2 = 2; +// cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey; +message TL_cdnPublicKey { + CdnPublicKey_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// DialogPeer <-- -// + TL_dialogPeer +// SecureCredentialsEncrypted <-- +// + TL_secureCredentialsEncrypted // -message DialogPeer_Data { - Peer peer = 1; +message SecureCredentialsEncrypted_Data { + bytes data = 1; + bytes hash = 2; + bytes secret = 3; } -message DialogPeer { +message SecureCredentialsEncrypted { TLConstructor constructor = 1; - DialogPeer_Data data2 = 2; + SecureCredentialsEncrypted_Data data2 = 2; } -// dialogPeer#e56dbf05 peer:Peer = DialogPeer; -message TL_dialogPeer { - DialogPeer_Data data2 = 2; +// secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted; +message TL_secureCredentialsEncrypted { + SecureCredentialsEncrypted_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_FoundStickerSets <-- -// + TL_messages_foundStickerSetsNotModified -// + TL_messages_foundStickerSets +// PasswordKdfAlgo <-- +// + TL_passwordKdfAlgoUnknown +// + TL_passwordKdfAlgoModPow // -message messages_FoundStickerSets_Data { - int32 hash = 1; - repeated StickerSetCovered sets = 2; +message PasswordKdfAlgo_Data { + bytes salt1 = 1; + bytes salt2 = 2; + int32 g = 3; + bytes p = 4; } -message messages_FoundStickerSets { +message PasswordKdfAlgo { TLConstructor constructor = 1; - messages_FoundStickerSets_Data data2 = 2; + PasswordKdfAlgo_Data data2 = 2; } -// messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets; -message TL_messages_foundStickerSetsNotModified { - messages_FoundStickerSets_Data data2 = 2; +// passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo; +message TL_passwordKdfAlgoUnknown { + PasswordKdfAlgo_Data data2 = 2; } -// messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets; -message TL_messages_foundStickerSets { - messages_FoundStickerSets_Data data2 = 2; +// passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo; +message TL_passwordKdfAlgoModPow { + PasswordKdfAlgo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// UserFull <-- -// + TL_userFull +// messages_Dialogs <-- +// + TL_messages_dialogs +// + TL_messages_dialogsSlice +// + TL_messages_dialogsNotModified // -message UserFull_Data { - bool blocked = 1; - bool phone_calls_available = 2; - bool phone_calls_private = 3; - User user = 4; - string about = 5; - contacts_Link link = 6; - Photo profile_photo = 7; - PeerNotifySettings notify_settings = 8; - BotInfo bot_info = 9; - int32 common_chats_count = 10; +message messages_Dialogs_Data { + repeated Dialog dialogs = 1; + repeated Message messages = 2; + repeated Chat chats = 3; + repeated User users = 4; + int32 count = 5; +} + +message messages_Dialogs { + TLConstructor constructor = 1; + messages_Dialogs_Data data2 = 2; +} + +// messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; +message TL_messages_dialogs { + messages_Dialogs_Data data2 = 2; } -message UserFull { - TLConstructor constructor = 1; - UserFull_Data data2 = 2; +// messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs; +message TL_messages_dialogsSlice { + messages_Dialogs_Data data2 = 2; } -// userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; -message TL_userFull { - UserFull_Data data2 = 2; +// messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs; +message TL_messages_dialogsNotModified { + messages_Dialogs_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// HighScore <-- -// + TL_highScore +// messages_AllStickers <-- +// + TL_messages_allStickersNotModified +// + TL_messages_allStickers // -message HighScore_Data { - int32 pos = 1; - int32 user_id = 2; - int32 score = 3; +message messages_AllStickers_Data { + int32 hash = 1; + repeated StickerSet sets = 2; } -message HighScore { +message messages_AllStickers { TLConstructor constructor = 1; - HighScore_Data data2 = 2; + messages_AllStickers_Data data2 = 2; } -// highScore#58fffcd0 pos:int user_id:int score:int = HighScore; -message TL_highScore { - HighScore_Data data2 = 2; +// messages.allStickersNotModified#e86602c3 = messages.AllStickers; +message TL_messages_allStickersNotModified { + messages_AllStickers_Data data2 = 2; +} + +// messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers; +message TL_messages_allStickers { + messages_AllStickers_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PhoneConnection <-- -// + TL_phoneConnection +// account_PasswordInputSettings <-- +// + TL_account_passwordInputSettings // -message PhoneConnection_Data { - int64 id = 1; - string ip = 2; - string ipv6 = 3; - int32 port = 4; - bytes peer_tag = 5; +message account_PasswordInputSettings_Data { + PasswordKdfAlgo new_algo = 1; + bytes new_password_hash = 2; + string hint = 3; + string email = 4; + SecureSecretSettings new_secure_settings = 5; } -message PhoneConnection { +message account_PasswordInputSettings { TLConstructor constructor = 1; - PhoneConnection_Data data2 = 2; + account_PasswordInputSettings_Data data2 = 2; } -// phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; -message TL_phoneConnection { - PhoneConnection_Data data2 = 2; +// account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings; +message TL_account_passwordInputSettings { + account_PasswordInputSettings_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PasswordKdfAlgo <-- -// + TL_passwordKdfAlgoUnknown -// + TL_passwordKdfAlgoModPow +// upload_WebFile <-- +// + TL_upload_webFile // -message PasswordKdfAlgo_Data { - bytes salt1 = 1; - bytes salt2 = 2; - int32 g = 3; - bytes p = 4; +message upload_WebFile_Data { + int32 size = 1; + string mime_type = 2; + storage_FileType file_type = 3; + int32 mtime = 4; + bytes bytes = 5; } -message PasswordKdfAlgo { +message upload_WebFile { TLConstructor constructor = 1; - PasswordKdfAlgo_Data data2 = 2; -} - -// passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo; -message TL_passwordKdfAlgoUnknown { - PasswordKdfAlgo_Data data2 = 2; + upload_WebFile_Data data2 = 2; } -// passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo; -message TL_passwordKdfAlgoModPow { - PasswordKdfAlgo_Data data2 = 2; +// upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; +message TL_upload_webFile { + upload_WebFile_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputFileLocation <-- -// + TL_inputDocumentFileLocationLayer11 -// + TL_inputFileLocation -// + TL_inputEncryptedFileLocation -// + TL_inputDocumentFileLocation -// + TL_inputSecureFileLocation -// + TL_inputTakeoutFileLocation -// + TL_inputFileLocationLayer86 -// + TL_inputDocumentFileLocationLayer86 +// SecurePlainData <-- +// + TL_securePlainPhone +// + TL_securePlainEmail // -message InputFileLocation_Data { - int64 id = 1; - int64 access_hash = 2; - int64 volume_id = 3; - int32 local_id = 4; - int64 secret = 5; - int32 version = 6; - bytes file_reference = 7; +message SecurePlainData_Data { + string phone = 1; + string email = 2; } -message InputFileLocation { +message SecurePlainData { TLConstructor constructor = 1; - InputFileLocation_Data data2 = 2; + SecurePlainData_Data data2 = 2; } -// inputDocumentFileLocation#4e45abe9 id:long access_hash:long = InputFileLocation; -message TL_inputDocumentFileLocationLayer11 { - InputFileLocation_Data data2 = 2; +// securePlainPhone#7d6099dd phone:string = SecurePlainData; +message TL_securePlainPhone { + SecurePlainData_Data data2 = 2; } -// inputFileLocation#14637196 volume_id:long local_id:int secret:long = InputFileLocation; -message TL_inputFileLocation { - InputFileLocation_Data data2 = 2; +// securePlainEmail#21ec5a5f email:string = SecurePlainData; +message TL_securePlainEmail { + SecurePlainData_Data data2 = 2; } -// inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation; -message TL_inputEncryptedFileLocation { - InputFileLocation_Data data2 = 2; -} -// inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputFileLocation; -message TL_inputDocumentFileLocation { - InputFileLocation_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// SecureValueError <-- +// + TL_secureValueErrorData +// + TL_secureValueErrorFrontSide +// + TL_secureValueErrorReverseSide +// + TL_secureValueErrorSelfie +// + TL_secureValueErrorFile +// + TL_secureValueErrorFiles +// + TL_secureValueError +// + TL_secureValueErrorTranslationFile +// + TL_secureValueErrorTranslationFiles +// +message SecureValueError_Data { + SecureValueType type = 1; + bytes data_hash = 2; + string field = 3; + string text = 4; + bytes file_hash_5 = 5; + repeated bytes file_hash_6 = 6; + bytes hash = 7; } -// inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation; -message TL_inputSecureFileLocation { - InputFileLocation_Data data2 = 2; +message SecureValueError { + TLConstructor constructor = 1; + SecureValueError_Data data2 = 2; } -// inputTakeoutFileLocation#29be5899 = InputFileLocation; -message TL_inputTakeoutFileLocation { - InputFileLocation_Data data2 = 2; +// secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError; +message TL_secureValueErrorData { + SecureValueError_Data data2 = 2; } -// inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation; -message TL_inputFileLocationLayer86 { - InputFileLocation_Data data2 = 2; +// secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError; +message TL_secureValueErrorFrontSide { + SecureValueError_Data data2 = 2; } -// inputDocumentFileLocation#196683d9 id:long access_hash:long file_reference:bytes = InputFileLocation; -message TL_inputDocumentFileLocationLayer86 { - InputFileLocation_Data data2 = 2; +// secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError; +message TL_secureValueErrorReverseSide { + SecureValueError_Data data2 = 2; } +// secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError; +message TL_secureValueErrorSelfie { + SecureValueError_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// Peer <-- -// + TL_peerUser -// + TL_peerChat -// + TL_peerChannel -// -message Peer_Data { - int32 user_id = 1; - int32 chat_id = 2; - int32 channel_id = 3; +// secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError; +message TL_secureValueErrorFile { + SecureValueError_Data data2 = 2; } -message Peer { - TLConstructor constructor = 1; - Peer_Data data2 = 2; +// secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError; +message TL_secureValueErrorFiles { + SecureValueError_Data data2 = 2; } -// peerUser#9db1bc6d user_id:int = Peer; -message TL_peerUser { - Peer_Data data2 = 2; +// secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError; +message TL_secureValueError { + SecureValueError_Data data2 = 2; } -// peerChat#bad0e5bb chat_id:int = Peer; -message TL_peerChat { - Peer_Data data2 = 2; +// secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError; +message TL_secureValueErrorTranslationFile { + SecureValueError_Data data2 = 2; } -// peerChannel#bddde532 channel_id:int = Peer; -message TL_peerChannel { - Peer_Data data2 = 2; +// secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError; +message TL_secureValueErrorTranslationFiles { + SecureValueError_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// UserProfilePhoto <-- -// + TL_userProfilePhotoEmpty -// + TL_userProfilePhoto +// InputPrivacyRule <-- +// + TL_inputPrivacyValueAllowContacts +// + TL_inputPrivacyValueAllowAll +// + TL_inputPrivacyValueAllowUsers +// + TL_inputPrivacyValueDisallowContacts +// + TL_inputPrivacyValueDisallowAll +// + TL_inputPrivacyValueDisallowUsers // -message UserProfilePhoto_Data { - int64 photo_id = 1; - FileLocation photo_small = 2; - FileLocation photo_big = 3; +message InputPrivacyRule_Data { + repeated InputUser users = 1; } -message UserProfilePhoto { +message InputPrivacyRule { TLConstructor constructor = 1; - UserProfilePhoto_Data data2 = 2; + InputPrivacyRule_Data data2 = 2; } -// userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; -message TL_userProfilePhotoEmpty { - UserProfilePhoto_Data data2 = 2; +// inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; +message TL_inputPrivacyValueAllowContacts { + InputPrivacyRule_Data data2 = 2; } -// userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto; -message TL_userProfilePhoto { - UserProfilePhoto_Data data2 = 2; +// inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; +message TL_inputPrivacyValueAllowAll { + InputPrivacyRule_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// contacts_Blocked <-- -// + TL_contacts_blocked -// + TL_contacts_blockedSlice -// -message contacts_Blocked_Data { - repeated ContactBlocked blocked = 1; - repeated User users = 2; - int32 count = 3; +// inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; +message TL_inputPrivacyValueAllowUsers { + InputPrivacyRule_Data data2 = 2; } -message contacts_Blocked { - TLConstructor constructor = 1; - contacts_Blocked_Data data2 = 2; +// inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule; +message TL_inputPrivacyValueDisallowContacts { + InputPrivacyRule_Data data2 = 2; } -// contacts.blocked#1c138d15 blocked:Vector users:Vector = contacts.Blocked; -message TL_contacts_blocked { - contacts_Blocked_Data data2 = 2; +// inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule; +message TL_inputPrivacyValueDisallowAll { + InputPrivacyRule_Data data2 = 2; } -// contacts.blockedSlice#900802a1 count:int blocked:Vector users:Vector = contacts.Blocked; -message TL_contacts_blockedSlice { - contacts_Blocked_Data data2 = 2; +// inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule; +message TL_inputPrivacyValueDisallowUsers { + InputPrivacyRule_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// auth_PasswordRecovery <-- -// + TL_auth_passwordRecovery +// FoundGif <-- +// + TL_foundGif +// + TL_foundGifCached // -message auth_PasswordRecovery_Data { - string email_pattern = 1; +message FoundGif_Data { + string url = 1; + string thumb_url = 2; + string content_url = 3; + string content_type = 4; + int32 w = 5; + int32 h = 6; + Photo photo = 7; + Document document = 8; } -message auth_PasswordRecovery { +message FoundGif { TLConstructor constructor = 1; - auth_PasswordRecovery_Data data2 = 2; + FoundGif_Data data2 = 2; } -// auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; -message TL_auth_passwordRecovery { - auth_PasswordRecovery_Data data2 = 2; +// foundGif#162ecc1f url:string thumb_url:string content_url:string content_type:string w:int h:int = FoundGif; +message TL_foundGif { + FoundGif_Data data2 = 2; +} + +// foundGifCached#9c750409 url:string photo:Photo document:Document = FoundGif; +message TL_foundGifCached { + FoundGif_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// DataJSON <-- -// + TL_dataJSON +// ExportedMessageLink <-- +// + TL_exportedMessageLink // -message DataJSON_Data { - string data = 1; +message ExportedMessageLink_Data { + string link = 1; + string html = 2; } -message DataJSON { +message ExportedMessageLink { TLConstructor constructor = 1; - DataJSON_Data data2 = 2; + ExportedMessageLink_Data data2 = 2; } -// dataJSON#7d748d04 data:string = DataJSON; -message TL_dataJSON { - DataJSON_Data data2 = 2; +// exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink; +message TL_exportedMessageLink { + ExportedMessageLink_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PaymentCharge <-- -// + TL_paymentCharge +// Contact <-- +// + TL_contact // -message PaymentCharge_Data { - string id = 1; - string provider_charge_id = 2; +message Contact_Data { + int32 user_id = 1; + Bool mutual = 2; } -message PaymentCharge { +message Contact { TLConstructor constructor = 1; - PaymentCharge_Data data2 = 2; + Contact_Data data2 = 2; } -// paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; -message TL_paymentCharge { - PaymentCharge_Data data2 = 2; +// contact#f911c994 user_id:int mutual:Bool = Contact; +message TL_contact { + Contact_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputPaymentCredentials <-- -// + TL_inputPaymentCredentialsSaved -// + TL_inputPaymentCredentials -// + TL_inputPaymentCredentialsApplePay -// + TL_inputPaymentCredentialsAndroidPay +// EncryptedFile <-- +// + TL_encryptedFileEmpty +// + TL_encryptedFile // -message InputPaymentCredentials_Data { - string id = 1; - bytes tmp_password = 2; - bool save = 3; - DataJSON data = 4; - DataJSON payment_data = 5; - DataJSON payment_token = 6; - string google_transaction_id = 7; +message EncryptedFile_Data { + int64 id = 1; + int64 access_hash = 2; + int32 size = 3; + int32 dc_id = 4; + int32 key_fingerprint = 5; } -message InputPaymentCredentials { +message EncryptedFile { TLConstructor constructor = 1; - InputPaymentCredentials_Data data2 = 2; -} - -// inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; -message TL_inputPaymentCredentialsSaved { - InputPaymentCredentials_Data data2 = 2; -} - -// inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; -message TL_inputPaymentCredentials { - InputPaymentCredentials_Data data2 = 2; + EncryptedFile_Data data2 = 2; } -// inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials; -message TL_inputPaymentCredentialsApplePay { - InputPaymentCredentials_Data data2 = 2; +// encryptedFileEmpty#c21f497e = EncryptedFile; +message TL_encryptedFileEmpty { + EncryptedFile_Data data2 = 2; } -// inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials; -message TL_inputPaymentCredentialsAndroidPay { - InputPaymentCredentials_Data data2 = 2; +// encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile; +message TL_encryptedFile { + EncryptedFile_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputNotifyPeer <-- -// + TL_inputNotifyPeer -// + TL_inputNotifyUsers -// + TL_inputNotifyChats +// phone_PhoneCall <-- +// + TL_phone_phoneCall // -message InputNotifyPeer_Data { - InputPeer peer = 1; +message phone_PhoneCall_Data { + PhoneCall phone_call = 1; + repeated User users = 2; } -message InputNotifyPeer { +message phone_PhoneCall { TLConstructor constructor = 1; - InputNotifyPeer_Data data2 = 2; -} - -// inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer; -message TL_inputNotifyPeer { - InputNotifyPeer_Data data2 = 2; -} - -// inputNotifyUsers#193b4417 = InputNotifyPeer; -message TL_inputNotifyUsers { - InputNotifyPeer_Data data2 = 2; + phone_PhoneCall_Data data2 = 2; } -// inputNotifyChats#4a95e84e = InputNotifyPeer; -message TL_inputNotifyChats { - InputNotifyPeer_Data data2 = 2; +// phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall; +message TL_phone_phoneCall { + phone_PhoneCall_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputEncryptedFile <-- -// + TL_inputEncryptedFileEmpty -// + TL_inputEncryptedFileUploaded -// + TL_inputEncryptedFile -// + TL_inputEncryptedFileBigUploaded +// messages_SavedGifs <-- +// + TL_messages_savedGifsNotModified +// + TL_messages_savedGifs // -message InputEncryptedFile_Data { - int64 id = 1; - int32 parts = 2; - string md5_checksum = 3; - int32 key_fingerprint = 4; - int64 access_hash = 5; +message messages_SavedGifs_Data { + int32 hash = 1; + repeated Document gifs = 2; } -message InputEncryptedFile { +message messages_SavedGifs { TLConstructor constructor = 1; - InputEncryptedFile_Data data2 = 2; -} - -// inputEncryptedFileEmpty#1837c364 = InputEncryptedFile; -message TL_inputEncryptedFileEmpty { - InputEncryptedFile_Data data2 = 2; -} - -// inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile; -message TL_inputEncryptedFileUploaded { - InputEncryptedFile_Data data2 = 2; + messages_SavedGifs_Data data2 = 2; } -// inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile; -message TL_inputEncryptedFile { - InputEncryptedFile_Data data2 = 2; +// messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs; +message TL_messages_savedGifsNotModified { + messages_SavedGifs_Data data2 = 2; } -// inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile; -message TL_inputEncryptedFileBigUploaded { - InputEncryptedFile_Data data2 = 2; +// messages.savedGifs#2e0709a5 hash:int gifs:Vector = messages.SavedGifs; +message TL_messages_savedGifs { + messages_SavedGifs_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// contacts_TopPeers <-- -// + TL_contacts_topPeersNotModified -// + TL_contacts_topPeers -// + TL_contacts_topPeersDisabled +// messages_BotResults <-- +// + TL_messages_botResults // -message contacts_TopPeers_Data { - repeated TopPeerCategoryPeers categories = 1; - repeated Chat chats = 2; - repeated User users = 3; -} - -message contacts_TopPeers { - TLConstructor constructor = 1; - contacts_TopPeers_Data data2 = 2; -} - -// contacts.topPeersNotModified#de266ef5 = contacts.TopPeers; -message TL_contacts_topPeersNotModified { - contacts_TopPeers_Data data2 = 2; +message messages_BotResults_Data { + bool gallery = 1; + int64 query_id = 2; + string next_offset = 3; + InlineBotSwitchPM switch_pm = 4; + repeated BotInlineResult results = 5; + int32 cache_time = 6; + repeated User users = 7; } -// contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers; -message TL_contacts_topPeers { - contacts_TopPeers_Data data2 = 2; +message messages_BotResults { + TLConstructor constructor = 1; + messages_BotResults_Data data2 = 2; } -// contacts.topPeersDisabled#b52c939d = contacts.TopPeers; -message TL_contacts_topPeersDisabled { - contacts_TopPeers_Data data2 = 2; +// messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector cache_time:int users:Vector = messages.BotResults; +message TL_messages_botResults { + messages_BotResults_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputPhoneCall <-- -// + TL_inputPhoneCall +// upload_CdnFile <-- +// + TL_upload_cdnFileReuploadNeeded +// + TL_upload_cdnFile // -message InputPhoneCall_Data { - int64 id = 1; - int64 access_hash = 2; +message upload_CdnFile_Data { + bytes request_token = 1; + bytes bytes = 2; } -message InputPhoneCall { +message upload_CdnFile { TLConstructor constructor = 1; - InputPhoneCall_Data data2 = 2; + upload_CdnFile_Data data2 = 2; } -// inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall; -message TL_inputPhoneCall { - InputPhoneCall_Data data2 = 2; +// upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile; +message TL_upload_cdnFileReuploadNeeded { + upload_CdnFile_Data data2 = 2; +} + +// upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile; +message TL_upload_cdnFile { + upload_CdnFile_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// LangPackDifference <-- -// + TL_langPackDifference +// LangPackString <-- +// + TL_langPackString +// + TL_langPackStringPluralized +// + TL_langPackStringDeleted // -message LangPackDifference_Data { - string lang_code = 1; - int32 from_version = 2; - int32 version = 3; - repeated LangPackString strings = 4; +message LangPackString_Data { + string key = 1; + string value = 2; + string zero_value = 3; + string one_value = 4; + string two_value = 5; + string few_value = 6; + string many_value = 7; + string other_value = 8; } -message LangPackDifference { +message LangPackString { TLConstructor constructor = 1; - LangPackDifference_Data data2 = 2; + LangPackString_Data data2 = 2; } -// langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference; -message TL_langPackDifference { - LangPackDifference_Data data2 = 2; +// langPackString#cad181f6 key:string value:string = LangPackString; +message TL_langPackString { + LangPackString_Data data2 = 2; +} + +// langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString; +message TL_langPackStringPluralized { + LangPackString_Data data2 = 2; +} + +// langPackStringDeleted#2979eeb2 key:string = LangPackString; +message TL_langPackStringDeleted { + LangPackString_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// FileHash <-- -// + TL_fileHash +// Updates <-- +// + TL_updateAccountResetAuthorization +// + TL_updatesTooLong +// + TL_updateShortMessage +// + TL_updateShortChatMessage +// + TL_updateShort +// + TL_updatesCombined +// + TL_updates +// + TL_updateShortSentMessage // -message FileHash_Data { - int32 offset = 1; - int32 limit = 2; - bytes hash = 3; +message Updates_Data { + int32 user_id = 1; + int64 auth_key_id = 2; + bool out = 3; + bool mentioned = 4; + bool media_unread = 5; + bool silent = 6; + int32 id = 7; + string message = 8; + int32 pts = 9; + int32 pts_count = 10; + int32 date = 11; + MessageFwdHeader fwd_from = 12; + int32 via_bot_id = 13; + int32 reply_to_msg_id = 14; + repeated MessageEntity entities = 15; + int32 from_id = 16; + int32 chat_id = 17; + Update update = 18; + repeated Update updates = 19; + repeated User users = 20; + repeated Chat chats = 21; + int32 seq_start = 22; + int32 seq = 23; + MessageMedia media = 24; } -message FileHash { +message Updates { TLConstructor constructor = 1; - FileHash_Data data2 = 2; + Updates_Data data2 = 2; } -// fileHash#6242c773 offset:int limit:int hash:bytes = FileHash; -message TL_fileHash { - FileHash_Data data2 = 2; +// updateAccountResetAuthorization user_id:int auth_key_id:long = Updates; +message TL_updateAccountResetAuthorization { + Updates_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// InputGeoPoint <-- -// + TL_inputGeoPointEmpty -// + TL_inputGeoPoint -// -message InputGeoPoint_Data { - double lat = 1; - double long = 2; +// updatesTooLong#e317af7e = Updates; +message TL_updatesTooLong { + Updates_Data data2 = 2; } -message InputGeoPoint { - TLConstructor constructor = 1; - InputGeoPoint_Data data2 = 2; +// updateShortMessage#914fbf11 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; +message TL_updateShortMessage { + Updates_Data data2 = 2; } -// inputGeoPointEmpty#e4c123d6 = InputGeoPoint; -message TL_inputGeoPointEmpty { - InputGeoPoint_Data data2 = 2; +// updateShortChatMessage#16812688 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector = Updates; +message TL_updateShortChatMessage { + Updates_Data data2 = 2; } -// inputGeoPoint#f3b7acc9 lat:double long:double = InputGeoPoint; -message TL_inputGeoPoint { - InputGeoPoint_Data data2 = 2; +// updateShort#78d4dec1 update:Update date:int = Updates; +message TL_updateShort { + Updates_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// auth_ExportedAuthorization <-- -// + TL_auth_exportedAuthorization -// -message auth_ExportedAuthorization_Data { - int32 id = 1; - bytes bytes = 2; +// updatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates; +message TL_updatesCombined { + Updates_Data data2 = 2; } -message auth_ExportedAuthorization { - TLConstructor constructor = 1; - auth_ExportedAuthorization_Data data2 = 2; +// updates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates; +message TL_updates { + Updates_Data data2 = 2; } -// auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization; -message TL_auth_exportedAuthorization { - auth_ExportedAuthorization_Data data2 = 2; +// updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates; +message TL_updateShortSentMessage { + Updates_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// WebPage <-- -// + TL_webPageEmpty -// + TL_webPagePending -// + TL_webPage -// + TL_webPageNotModified +// InputPhoto <-- +// + TL_inputPhotoEmpty +// + TL_inputPhoto +// + TL_inputPhotoLayer86 // -message WebPage_Data { +message InputPhoto_Data { int64 id = 1; - int32 date = 2; - string url = 3; - string display_url = 4; - int32 hash = 5; - string type = 6; - string site_name = 7; - string title = 8; - string description = 9; - Photo photo = 10; - string embed_url = 11; - string embed_type = 12; - int32 embed_width = 13; - int32 embed_height = 14; - int32 duration = 15; - string author = 16; - Document document = 17; - Page cached_page = 18; + int64 access_hash = 2; + bytes file_reference = 3; } -message WebPage { +message InputPhoto { TLConstructor constructor = 1; - WebPage_Data data2 = 2; -} - -// webPageEmpty#eb1477e8 id:long = WebPage; -message TL_webPageEmpty { - WebPage_Data data2 = 2; + InputPhoto_Data data2 = 2; } -// webPagePending#c586da1c id:long date:int = WebPage; -message TL_webPagePending { - WebPage_Data data2 = 2; +// inputPhotoEmpty#1cd7bf0d = InputPhoto; +message TL_inputPhotoEmpty { + InputPhoto_Data data2 = 2; } -// webPage#5f07b4bc flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page = WebPage; -message TL_webPage { - WebPage_Data data2 = 2; +// inputPhoto#fb95c6c4 id:long access_hash:long = InputPhoto; +message TL_inputPhoto { + InputPhoto_Data data2 = 2; } -// webPageNotModified#85849473 = WebPage; -message TL_webPageNotModified { - WebPage_Data data2 = 2; +// inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto; +message TL_inputPhotoLayer86 { + InputPhoto_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// help_RecentMeUrls <-- -// + TL_help_recentMeUrls +// ExportedChatInvite <-- +// + TL_chatInviteEmpty +// + TL_chatInviteExported // -message help_RecentMeUrls_Data { - repeated RecentMeUrl urls = 1; - repeated Chat chats = 2; - repeated User users = 3; +message ExportedChatInvite_Data { + string link = 1; } -message help_RecentMeUrls { +message ExportedChatInvite { TLConstructor constructor = 1; - help_RecentMeUrls_Data data2 = 2; + ExportedChatInvite_Data data2 = 2; +} + +// chatInviteEmpty#69df3769 = ExportedChatInvite; +message TL_chatInviteEmpty { + ExportedChatInvite_Data data2 = 2; } -// help.recentMeUrls#e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls; -message TL_help_recentMeUrls { - help_RecentMeUrls_Data data2 = 2; +// chatInviteExported#fc2e05bc link:string = ExportedChatInvite; +message TL_chatInviteExported { + ExportedChatInvite_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SecureFile <-- -// + TL_secureFileEmpty -// + TL_secureFile +// account_Takeout <-- +// + TL_account_takeout // -message SecureFile_Data { +message account_Takeout_Data { int64 id = 1; - int64 access_hash = 2; - int32 size = 3; - int32 dc_id = 4; - int32 date = 5; - bytes file_hash = 6; - bytes secret = 7; } -message SecureFile { +message account_Takeout { TLConstructor constructor = 1; - SecureFile_Data data2 = 2; -} - -// secureFileEmpty#64199744 = SecureFile; -message TL_secureFileEmpty { - SecureFile_Data data2 = 2; + account_Takeout_Data data2 = 2; } -// secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile; -message TL_secureFile { - SecureFile_Data data2 = 2; +// account.takeout#4dba4501 id:long = account.Takeout; +message TL_account_takeout { + account_Takeout_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// BotInlineMessage <-- -// + TL_botInlineMessageMediaAuto -// + TL_botInlineMessageText -// + TL_botInlineMessageMediaGeo -// + TL_botInlineMessageMediaVenue -// + TL_botInlineMessageMediaContact +// InputFile <-- +// + TL_inputFile +// + TL_inputFileBig // -message BotInlineMessage_Data { - string message = 1; - repeated MessageEntity entities = 2; - ReplyMarkup reply_markup = 3; - bool no_webpage = 4; - GeoPoint geo = 5; - int32 period = 6; - string title = 7; - string address = 8; - string provider = 9; - string venue_id = 10; - string venue_type = 11; - string phone_number = 12; - string first_name = 13; - string last_name = 14; - string vcard = 15; +message InputFile_Data { + int64 id = 1; + int32 parts = 2; + string name = 3; + string md5_checksum = 4; } -message BotInlineMessage { +message InputFile { TLConstructor constructor = 1; - BotInlineMessage_Data data2 = 2; + InputFile_Data data2 = 2; } -// botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -message TL_botInlineMessageMediaAuto { - BotInlineMessage_Data data2 = 2; +// inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile; +message TL_inputFile { + InputFile_Data data2 = 2; } -// botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -message TL_botInlineMessageText { - BotInlineMessage_Data data2 = 2; +// inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile; +message TL_inputFileBig { + InputFile_Data data2 = 2; } -// botInlineMessageMediaGeo#b722de65 flags:# geo:GeoPoint period:int reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -message TL_botInlineMessageMediaGeo { - BotInlineMessage_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// messages_AffectedHistory <-- +// + TL_messages_affectedHistory +// +message messages_AffectedHistory_Data { + int32 pts = 1; + int32 pts_count = 2; + int32 offset = 3; } -// botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -message TL_botInlineMessageMediaVenue { - BotInlineMessage_Data data2 = 2; +message messages_AffectedHistory { + TLConstructor constructor = 1; + messages_AffectedHistory_Data data2 = 2; } -// botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; -message TL_botInlineMessageMediaContact { - BotInlineMessage_Data data2 = 2; +// messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory; +message TL_messages_affectedHistory { + messages_AffectedHistory_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_ArchivedStickers <-- -// + TL_messages_archivedStickers +// LangPackLanguage <-- +// + TL_langPackLanguage // -message messages_ArchivedStickers_Data { - int32 count = 1; - repeated StickerSetCovered sets = 2; +message LangPackLanguage_Data { + string name = 1; + string native_name = 2; + string lang_code = 3; } -message messages_ArchivedStickers { +message LangPackLanguage { TLConstructor constructor = 1; - messages_ArchivedStickers_Data data2 = 2; + LangPackLanguage_Data data2 = 2; } -// messages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers; -message TL_messages_archivedStickers { - messages_ArchivedStickers_Data data2 = 2; +// langPackLanguage#117698f1 name:string native_name:string lang_code:string = LangPackLanguage; +message TL_langPackLanguage { + LangPackLanguage_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Invoice <-- -// + TL_invoice +// Dialog <-- +// + TL_dialog // -message Invoice_Data { - bool test = 1; - bool name_requested = 2; - bool phone_requested = 3; - bool email_requested = 4; - bool shipping_address_requested = 5; - bool flexible = 6; - bool phone_to_provider = 7; - bool email_to_provider = 8; - string currency = 9; - repeated LabeledPrice prices = 10; +message Dialog_Data { + bool pinned = 1; + bool unread_mark = 2; + Peer peer = 3; + int32 top_message = 4; + int32 read_inbox_max_id = 5; + int32 read_outbox_max_id = 6; + int32 unread_count = 7; + int32 unread_mentions_count = 8; + PeerNotifySettings notify_settings = 9; + int32 pts = 10; + DraftMessage draft = 11; } -message Invoice { +message Dialog { TLConstructor constructor = 1; - Invoice_Data data2 = 2; + Dialog_Data data2 = 2; } -// invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector = Invoice; -message TL_invoice { - Invoice_Data data2 = 2; +// dialog#e4def5db flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog; +message TL_dialog { + Dialog_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// CdnPublicKey <-- -// + TL_cdnPublicKey +// Update <-- +// + TL_updateNewMessage +// + TL_updateMessageID +// + TL_updateDeleteMessages +// + TL_updateUserTyping +// + TL_updateChatUserTyping +// + TL_updateChatParticipants +// + TL_updateUserStatus +// + TL_updateUserName +// + TL_updateUserPhoto +// + TL_updateContactRegistered +// + TL_updateContactLink +// + TL_updateNewEncryptedMessage +// + TL_updateEncryptedChatTyping +// + TL_updateEncryption +// + TL_updateEncryptedMessagesRead +// + TL_updateChatParticipantAdd +// + TL_updateChatParticipantDelete +// + TL_updateDcOptions +// + TL_updateUserBlocked +// + TL_updateNotifySettings +// + TL_updateServiceNotification +// + TL_updatePrivacy +// + TL_updateUserPhone +// + TL_updateReadHistoryInbox +// + TL_updateReadHistoryOutbox +// + TL_updateWebPage +// + TL_updateReadMessagesContents +// + TL_updateChannelTooLong +// + TL_updateChannel +// + TL_updateNewChannelMessage +// + TL_updateReadChannelInbox +// + TL_updateDeleteChannelMessages +// + TL_updateChannelMessageViews +// + TL_updateChatAdmins +// + TL_updateChatParticipantAdmin +// + TL_updateNewStickerSet +// + TL_updateStickerSetsOrder +// + TL_updateStickerSets +// + TL_updateSavedGifs +// + TL_updateBotInlineQuery +// + TL_updateBotInlineSend +// + TL_updateEditChannelMessage +// + TL_updateChannelPinnedMessage +// + TL_updateBotCallbackQuery +// + TL_updateEditMessage +// + TL_updateInlineBotCallbackQuery +// + TL_updateReadChannelOutbox +// + TL_updateDraftMessage +// + TL_updateReadFeaturedStickers +// + TL_updateRecentStickers +// + TL_updateConfig +// + TL_updatePtsChanged +// + TL_updateChannelWebPage +// + TL_updateDialogPinned +// + TL_updatePinnedDialogs +// + TL_updateBotWebhookJSON +// + TL_updateBotWebhookJSONQuery +// + TL_updateBotShippingQuery +// + TL_updateBotPrecheckoutQuery +// + TL_updatePhoneCall +// + TL_updateLangPackTooLong +// + TL_updateLangPack +// + TL_updateFavedStickers +// + TL_updateChannelReadMessagesContents +// + TL_updateContactsReset +// + TL_updateChannelAvailableMessages +// + TL_updateDialogUnreadMark // -message CdnPublicKey_Data { - int32 dc_id = 1; - string public_key = 2; +message Update_Data { + Message message_1 = 1; + int32 pts = 2; + int32 pts_count = 3; + int32 id_4 = 4; + int64 random_id = 5; + repeated int32 messages = 6; + int32 user_id = 7; + SendMessageAction action = 8; + int32 chat_id = 9; + ChatParticipants participants = 10; + UserStatus status = 11; + string first_name = 12; + string last_name = 13; + string username = 14; + int32 date = 15; + UserProfilePhoto photo = 16; + Bool previous = 17; + ContactLink my_link = 18; + ContactLink foreign_link = 19; + EncryptedMessage message_20 = 20; + int32 qts = 21; + EncryptedChat chat = 22; + int32 max_date = 23; + int32 inviter_id = 24; + int32 version = 25; + repeated DcOption dc_options = 26; + Bool blocked = 27; + NotifyPeer peer_28 = 28; + PeerNotifySettings notify_settings = 29; + bool popup = 30; + int32 inbox_date = 31; + string type = 32; + string message_33 = 33; + MessageMedia media = 34; + repeated MessageEntity entities = 35; + PrivacyKey key = 36; + repeated PrivacyRule rules = 37; + string phone = 38; + Peer peer_39 = 39; + int32 max_id = 40; + WebPage webpage = 41; + int32 channel_id = 42; + int32 views = 43; + Bool enabled = 44; + Bool is_admin = 45; + messages_StickerSet stickerset = 46; + bool masks = 47; + repeated int64 order_48 = 48; + int64 query_id = 49; + string query = 50; + GeoPoint geo = 51; + string offset = 52; + string id_53 = 53; + InputBotInlineMessageID msg_id_54 = 54; + int32 msg_id_55 = 55; + int64 chat_instance = 56; + bytes data_57 = 57; + string game_short_name = 58; + DraftMessage draft = 59; + bool pinned = 60; + DialogPeer peer_61 = 61; + repeated DialogPeer order_62 = 62; + DataJSON data_63 = 63; + int32 timeout = 64; + bytes payload = 65; + PostAddress shipping_address = 66; + PaymentRequestedInfo info = 67; + string shipping_option_id = 68; + string currency = 69; + int64 total_amount = 70; + PhoneCall phone_call = 71; + LangPackDifference difference = 72; + int32 available_min_id = 73; + bool unread = 74; } -message CdnPublicKey { +message Update { TLConstructor constructor = 1; - CdnPublicKey_Data data2 = 2; -} - -// cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey; -message TL_cdnPublicKey { - CdnPublicKey_Data data2 = 2; -} - - -/////////////////////////////////////////////////////////////////////////////// -// Dialog <-- -// + TL_dialog -// -message Dialog_Data { - bool pinned = 1; - bool unread_mark = 2; - Peer peer = 3; - int32 top_message = 4; - int32 read_inbox_max_id = 5; - int32 read_outbox_max_id = 6; - int32 unread_count = 7; - int32 unread_mentions_count = 8; - PeerNotifySettings notify_settings = 9; - int32 pts = 10; - DraftMessage draft = 11; + Update_Data data2 = 2; } -message Dialog { - TLConstructor constructor = 1; - Dialog_Data data2 = 2; +// updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update; +message TL_updateNewMessage { + Update_Data data2 = 2; } -// dialog#e4def5db flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog; -message TL_dialog { - Dialog_Data data2 = 2; +// updateMessageID#4e90bfd6 id:int random_id:long = Update; +message TL_updateMessageID { + Update_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// messages_DhConfig <-- -// + TL_messages_dhConfigNotModified -// + TL_messages_dhConfig -// -message messages_DhConfig_Data { - bytes random = 1; - int32 g = 2; - bytes p = 3; - int32 version = 4; +// updateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update; +message TL_updateDeleteMessages { + Update_Data data2 = 2; } -message messages_DhConfig { - TLConstructor constructor = 1; - messages_DhConfig_Data data2 = 2; +// updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update; +message TL_updateUserTyping { + Update_Data data2 = 2; } -// messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig; -message TL_messages_dhConfigNotModified { - messages_DhConfig_Data data2 = 2; +// updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update; +message TL_updateChatUserTyping { + Update_Data data2 = 2; } -// messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig; -message TL_messages_dhConfig { - messages_DhConfig_Data data2 = 2; +// updateChatParticipants#7761198 participants:ChatParticipants = Update; +message TL_updateChatParticipants { + Update_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// TopPeerCategoryPeers <-- -// + TL_topPeerCategoryPeers -// -message TopPeerCategoryPeers_Data { - TopPeerCategory category = 1; - int32 count = 2; - repeated TopPeer peers = 3; +// updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update; +message TL_updateUserStatus { + Update_Data data2 = 2; } -message TopPeerCategoryPeers { - TLConstructor constructor = 1; - TopPeerCategoryPeers_Data data2 = 2; +// updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update; +message TL_updateUserName { + Update_Data data2 = 2; } -// topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers; -message TL_topPeerCategoryPeers { - TopPeerCategoryPeers_Data data2 = 2; +// updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update; +message TL_updateUserPhoto { + Update_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// account_AuthorizationForm <-- -// + TL_account_authorizationForm -// -message account_AuthorizationForm_Data { - repeated SecureRequiredType required_types = 1; - repeated SecureValue values = 2; - repeated SecureValueError errors = 3; - repeated User users = 4; - string privacy_policy_url = 5; +// updateContactRegistered#2575bbb9 user_id:int date:int = Update; +message TL_updateContactRegistered { + Update_Data data2 = 2; } -message account_AuthorizationForm { - TLConstructor constructor = 1; - account_AuthorizationForm_Data data2 = 2; +// updateContactLink#9d2e67c5 user_id:int my_link:ContactLink foreign_link:ContactLink = Update; +message TL_updateContactLink { + Update_Data data2 = 2; } -// account.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm; -message TL_account_authorizationForm { - account_AuthorizationForm_Data data2 = 2; +// updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update; +message TL_updateNewEncryptedMessage { + Update_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// InputGame <-- -// + TL_inputGameID -// + TL_inputGameShortName -// -message InputGame_Data { - int64 id = 1; - int64 access_hash = 2; - InputUser bot_id = 3; - string short_name = 4; +// updateEncryptedChatTyping#1710f156 chat_id:int = Update; +message TL_updateEncryptedChatTyping { + Update_Data data2 = 2; } -message InputGame { - TLConstructor constructor = 1; - InputGame_Data data2 = 2; +// updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update; +message TL_updateEncryption { + Update_Data data2 = 2; } -// inputGameID#32c3e77 id:long access_hash:long = InputGame; -message TL_inputGameID { - InputGame_Data data2 = 2; +// updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update; +message TL_updateEncryptedMessagesRead { + Update_Data data2 = 2; } -// inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame; -message TL_inputGameShortName { - InputGame_Data data2 = 2; +// updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update; +message TL_updateChatParticipantAdd { + Update_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// SecureValueHash <-- -// + TL_secureValueHash -// -message SecureValueHash_Data { - SecureValueType type = 1; - bytes hash = 2; +// updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update; +message TL_updateChatParticipantDelete { + Update_Data data2 = 2; } -message SecureValueHash { - TLConstructor constructor = 1; - SecureValueHash_Data data2 = 2; +// updateDcOptions#8e5e9873 dc_options:Vector = Update; +message TL_updateDcOptions { + Update_Data data2 = 2; } -// secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash; -message TL_secureValueHash { - SecureValueHash_Data data2 = 2; +// updateUserBlocked#80ece81a user_id:int blocked:Bool = Update; +message TL_updateUserBlocked { + Update_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// InputPrivacyKey <-- -// + TL_inputPrivacyKeyStatusTimestamp -// + TL_inputPrivacyKeyChatInvite -// + TL_inputPrivacyKeyPhoneCall -// -message InputPrivacyKey_Data { +// updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update; +message TL_updateNotifySettings { + Update_Data data2 = 2; } -message InputPrivacyKey { - TLConstructor constructor = 1; - InputPrivacyKey_Data data2 = 2; +// updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update; +message TL_updateServiceNotification { + Update_Data data2 = 2; } -// inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey; -message TL_inputPrivacyKeyStatusTimestamp { - InputPrivacyKey_Data data2 = 2; +// updatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update; +message TL_updatePrivacy { + Update_Data data2 = 2; } -// inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey; -message TL_inputPrivacyKeyChatInvite { - InputPrivacyKey_Data data2 = 2; +// updateUserPhone#12b9417b user_id:int phone:string = Update; +message TL_updateUserPhone { + Update_Data data2 = 2; } -// inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey; -message TL_inputPrivacyKeyPhoneCall { - InputPrivacyKey_Data data2 = 2; +// updateReadHistoryInbox#9961fd5c peer:Peer max_id:int pts:int pts_count:int = Update; +message TL_updateReadHistoryInbox { + Update_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// InputBotInlineMessage <-- -// + TL_inputBotInlineMessageMediaAuto -// + TL_inputBotInlineMessageText -// + TL_inputBotInlineMessageMediaGeo -// + TL_inputBotInlineMessageMediaVenue -// + TL_inputBotInlineMessageMediaContact -// + TL_inputBotInlineMessageGame -// -message InputBotInlineMessage_Data { - string message = 1; - repeated MessageEntity entities = 2; - ReplyMarkup reply_markup = 3; - bool no_webpage = 4; - InputGeoPoint geo_point = 5; - int32 period = 6; - string title = 7; - string address = 8; - string provider = 9; - string venue_id = 10; - string venue_type = 11; - string phone_number = 12; - string first_name = 13; - string last_name = 14; - string vcard = 15; +// updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update; +message TL_updateReadHistoryOutbox { + Update_Data data2 = 2; } -message InputBotInlineMessage { - TLConstructor constructor = 1; - InputBotInlineMessage_Data data2 = 2; +// updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update; +message TL_updateWebPage { + Update_Data data2 = 2; } -// inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -message TL_inputBotInlineMessageMediaAuto { - InputBotInlineMessage_Data data2 = 2; +// updateReadMessagesContents#68c13933 messages:Vector pts:int pts_count:int = Update; +message TL_updateReadMessagesContents { + Update_Data data2 = 2; } -// inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -message TL_inputBotInlineMessageText { - InputBotInlineMessage_Data data2 = 2; +// updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update; +message TL_updateChannelTooLong { + Update_Data data2 = 2; } -// inputBotInlineMessageMediaGeo#c1b15d65 flags:# geo_point:InputGeoPoint period:int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -message TL_inputBotInlineMessageMediaGeo { - InputBotInlineMessage_Data data2 = 2; +// updateChannel#b6d45656 channel_id:int = Update; +message TL_updateChannel { + Update_Data data2 = 2; } -// inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -message TL_inputBotInlineMessageMediaVenue { - InputBotInlineMessage_Data data2 = 2; +// updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update; +message TL_updateNewChannelMessage { + Update_Data data2 = 2; } -// inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -message TL_inputBotInlineMessageMediaContact { - InputBotInlineMessage_Data data2 = 2; +// updateReadChannelInbox#4214f37f channel_id:int max_id:int = Update; +message TL_updateReadChannelInbox { + Update_Data data2 = 2; } -// inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage; -message TL_inputBotInlineMessageGame { - InputBotInlineMessage_Data data2 = 2; +// updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector pts:int pts_count:int = Update; +message TL_updateDeleteChannelMessages { + Update_Data data2 = 2; } +// updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update; +message TL_updateChannelMessageViews { + Update_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// TopPeer <-- -// + TL_topPeer -// -message TopPeer_Data { - Peer peer = 1; - double rating = 2; +// updateChatAdmins#6e947941 chat_id:int enabled:Bool version:int = Update; +message TL_updateChatAdmins { + Update_Data data2 = 2; } -message TopPeer { - TLConstructor constructor = 1; - TopPeer_Data data2 = 2; +// updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update; +message TL_updateChatParticipantAdmin { + Update_Data data2 = 2; } -// topPeer#edcdc05b peer:Peer rating:double = TopPeer; -message TL_topPeer { - TopPeer_Data data2 = 2; +// updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; +message TL_updateNewStickerSet { + Update_Data data2 = 2; } +// updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector = Update; +message TL_updateStickerSetsOrder { + Update_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// messages_HighScores <-- -// + TL_messages_highScores -// -message messages_HighScores_Data { - repeated HighScore scores = 1; - repeated User users = 2; +// updateStickerSets#43ae3dec = Update; +message TL_updateStickerSets { + Update_Data data2 = 2; } -message messages_HighScores { - TLConstructor constructor = 1; - messages_HighScores_Data data2 = 2; +// updateSavedGifs#9375341e = Update; +message TL_updateSavedGifs { + Update_Data data2 = 2; } -// messages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores; -message TL_messages_highScores { - messages_HighScores_Data data2 = 2; +// updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update; +message TL_updateBotInlineQuery { + Update_Data data2 = 2; } +// updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update; +message TL_updateBotInlineSend { + Update_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// payments_SavedInfo <-- -// + TL_payments_savedInfo -// -message payments_SavedInfo_Data { - bool has_saved_credentials = 1; - PaymentRequestedInfo saved_info = 2; +// updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update; +message TL_updateEditChannelMessage { + Update_Data data2 = 2; } -message payments_SavedInfo { - TLConstructor constructor = 1; - payments_SavedInfo_Data data2 = 2; +// updateChannelPinnedMessage#98592475 channel_id:int id:int = Update; +message TL_updateChannelPinnedMessage { + Update_Data data2 = 2; } -// payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; -message TL_payments_savedInfo { - payments_SavedInfo_Data data2 = 2; +// updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; +message TL_updateBotCallbackQuery { + Update_Data data2 = 2; } +// updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update; +message TL_updateEditMessage { + Update_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// MessageMedia <-- -// + TL_messageMediaEmpty -// + TL_messageMediaPhoto -// + TL_messageMediaGeo -// + TL_messageMediaContact -// + TL_messageMediaUnsupported -// + TL_messageMediaDocument -// + TL_messageMediaWebPage -// + TL_messageMediaVenue -// + TL_messageMediaGame -// + TL_messageMediaInvoice -// + TL_messageMediaGeoLive -// -message MessageMedia_Data { - Photo photo_1 = 1; - int32 ttl_seconds = 2; - GeoPoint geo = 3; - string phone_number = 4; - string first_name = 5; - string last_name = 6; - string vcard = 7; - int32 user_id = 8; - Document document = 9; - WebPage webpage = 10; - string title = 11; - string address = 12; - string provider = 13; - string venue_id = 14; - string venue_type = 15; - Game game = 16; - bool shipping_address_requested = 17; - bool test = 18; - string description = 19; - WebDocument photo_20 = 20; - int32 receipt_msg_id = 21; - string currency = 22; - int64 total_amount = 23; - string start_param = 24; - int32 period = 25; +// updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update; +message TL_updateInlineBotCallbackQuery { + Update_Data data2 = 2; } -message MessageMedia { - TLConstructor constructor = 1; - MessageMedia_Data data2 = 2; +// updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update; +message TL_updateReadChannelOutbox { + Update_Data data2 = 2; } -// messageMediaEmpty#3ded6320 = MessageMedia; -message TL_messageMediaEmpty { - MessageMedia_Data data2 = 2; +// updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update; +message TL_updateDraftMessage { + Update_Data data2 = 2; } -// messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; -message TL_messageMediaPhoto { - MessageMedia_Data data2 = 2; +// updateReadFeaturedStickers#571d2742 = Update; +message TL_updateReadFeaturedStickers { + Update_Data data2 = 2; } -// messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia; -message TL_messageMediaGeo { - MessageMedia_Data data2 = 2; +// updateRecentStickers#9a422c20 = Update; +message TL_updateRecentStickers { + Update_Data data2 = 2; } -// messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia; -message TL_messageMediaContact { - MessageMedia_Data data2 = 2; +// updateConfig#a229dd06 = Update; +message TL_updateConfig { + Update_Data data2 = 2; } -// messageMediaUnsupported#9f84f49e = MessageMedia; -message TL_messageMediaUnsupported { - MessageMedia_Data data2 = 2; +// updatePtsChanged#3354678f = Update; +message TL_updatePtsChanged { + Update_Data data2 = 2; } -// messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia; -message TL_messageMediaDocument { - MessageMedia_Data data2 = 2; +// updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update; +message TL_updateChannelWebPage { + Update_Data data2 = 2; } -// messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia; -message TL_messageMediaWebPage { - MessageMedia_Data data2 = 2; +// updateDialogPinned#19d27f3c flags:# pinned:flags.0?true peer:DialogPeer = Update; +message TL_updateDialogPinned { + Update_Data data2 = 2; } -// messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia; -message TL_messageMediaVenue { - MessageMedia_Data data2 = 2; +// updatePinnedDialogs#ea4cb65b flags:# order:flags.0?Vector = Update; +message TL_updatePinnedDialogs { + Update_Data data2 = 2; } -// messageMediaGame#fdb19008 game:Game = MessageMedia; -message TL_messageMediaGame { - MessageMedia_Data data2 = 2; +// updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; +message TL_updateBotWebhookJSON { + Update_Data data2 = 2; } -// messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; -message TL_messageMediaInvoice { - MessageMedia_Data data2 = 2; +// updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; +message TL_updateBotWebhookJSONQuery { + Update_Data data2 = 2; } -// messageMediaGeoLive#7c3c2609 geo:GeoPoint period:int = MessageMedia; -message TL_messageMediaGeoLive { - MessageMedia_Data data2 = 2; +// updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; +message TL_updateBotShippingQuery { + Update_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// BotInfo <-- -// + TL_botInfo -// -message BotInfo_Data { - int32 user_id = 1; - string description = 2; - repeated BotCommand commands = 3; +// updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; +message TL_updateBotPrecheckoutQuery { + Update_Data data2 = 2; } -message BotInfo { - TLConstructor constructor = 1; - BotInfo_Data data2 = 2; +// updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update; +message TL_updatePhoneCall { + Update_Data data2 = 2; } -// botInfo#98e81d3a user_id:int description:string commands:Vector = BotInfo; -message TL_botInfo { - BotInfo_Data data2 = 2; +// updateLangPackTooLong#10c2404b = Update; +message TL_updateLangPackTooLong { + Update_Data data2 = 2; } +// updateLangPack#56022f4d difference:LangPackDifference = Update; +message TL_updateLangPack { + Update_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// updates_ChannelDifference <-- -// + TL_updates_channelDifferenceEmpty -// + TL_updates_channelDifferenceTooLong -// + TL_updates_channelDifference -// -message updates_ChannelDifference_Data { - bool final = 1; - int32 pts = 2; - int32 timeout = 3; - int32 top_message = 4; - int32 read_inbox_max_id = 5; - int32 read_outbox_max_id = 6; - int32 unread_count = 7; - int32 unread_mentions_count = 8; - repeated Message messages = 9; - repeated Chat chats = 10; - repeated User users = 11; - repeated Message new_messages = 12; - repeated Update other_updates = 13; +// updateFavedStickers#e511996d = Update; +message TL_updateFavedStickers { + Update_Data data2 = 2; } -message updates_ChannelDifference { - TLConstructor constructor = 1; - updates_ChannelDifference_Data data2 = 2; +// updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector = Update; +message TL_updateChannelReadMessagesContents { + Update_Data data2 = 2; } -// updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference; -message TL_updates_channelDifferenceEmpty { - updates_ChannelDifference_Data data2 = 2; +// updateContactsReset#7084a7be = Update; +message TL_updateContactsReset { + Update_Data data2 = 2; } -// updates.channelDifferenceTooLong#6a9d7b35 flags:# final:flags.0?true pts:int timeout:flags.1?int top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int messages:Vector chats:Vector users:Vector = updates.ChannelDifference; -message TL_updates_channelDifferenceTooLong { - updates_ChannelDifference_Data data2 = 2; +// updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update; +message TL_updateChannelAvailableMessages { + Update_Data data2 = 2; } -// updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference; -message TL_updates_channelDifference { - updates_ChannelDifference_Data data2 = 2; +// updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update; +message TL_updateDialogUnreadMark { + Update_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Page <-- -// + TL_pagePart -// + TL_pageFull +// payments_PaymentResult <-- +// + TL_payments_paymentResult +// + TL_payments_paymentVerficationNeeded // -message Page_Data { - repeated PageBlock blocks = 1; - repeated Photo photos = 2; - repeated Document documents = 3; +message payments_PaymentResult_Data { + Updates updates = 1; + string url = 2; } -message Page { +message payments_PaymentResult { TLConstructor constructor = 1; - Page_Data data2 = 2; + payments_PaymentResult_Data data2 = 2; } -// pagePart#8e3f9ebe blocks:Vector photos:Vector documents:Vector = Page; -message TL_pagePart { - Page_Data data2 = 2; +// payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult; +message TL_payments_paymentResult { + payments_PaymentResult_Data data2 = 2; } -// pageFull#556ec7aa blocks:Vector photos:Vector documents:Vector = Page; -message TL_pageFull { - Page_Data data2 = 2; +// payments.paymentVerficationNeeded#6b56b921 url:string = payments.PaymentResult; +message TL_payments_paymentVerficationNeeded { + payments_PaymentResult_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputWebDocument <-- -// + TL_inputWebDocument +// ContactBlocked <-- +// + TL_contactBlocked // -message InputWebDocument_Data { - string url = 1; - int32 size = 2; - string mime_type = 3; - repeated DocumentAttribute attributes = 4; +message ContactBlocked_Data { + int32 user_id = 1; + int32 date = 2; } -message InputWebDocument { +message ContactBlocked { TLConstructor constructor = 1; - InputWebDocument_Data data2 = 2; + ContactBlocked_Data data2 = 2; } -// inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; -message TL_inputWebDocument { - InputWebDocument_Data data2 = 2; +// contactBlocked#561bc879 user_id:int date:int = ContactBlocked; +message TL_contactBlocked { + ContactBlocked_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// CdnConfig <-- -// + TL_cdnConfig +// SecureData <-- +// + TL_secureData // -message CdnConfig_Data { - repeated CdnPublicKey public_keys = 1; +message SecureData_Data { + bytes data = 1; + bytes data_hash = 2; + bytes secret = 3; } -message CdnConfig { +message SecureData { TLConstructor constructor = 1; - CdnConfig_Data data2 = 2; + SecureData_Data data2 = 2; } -// cdnConfig#5725e40a public_keys:Vector = CdnConfig; -message TL_cdnConfig { - CdnConfig_Data data2 = 2; +// secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData; +message TL_secureData { + SecureData_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// auth_SentCode <-- -// + TL_auth_sentCode +// ReportReason <-- +// + TL_inputReportReasonSpam +// + TL_inputReportReasonViolence +// + TL_inputReportReasonPornography +// + TL_inputReportReasonOther +// + TL_inputReportReasonCopyright // -message auth_SentCode_Data { - bool phone_registered = 1; - auth_SentCodeType type = 2; - string phone_code_hash = 3; - auth_CodeType next_type = 4; - int32 timeout = 5; - help_TermsOfService terms_of_service = 6; +message ReportReason_Data { + string text = 1; } -message auth_SentCode { +message ReportReason { TLConstructor constructor = 1; - auth_SentCode_Data data2 = 2; + ReportReason_Data data2 = 2; } -// auth.sentCode#38faab5f flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int terms_of_service:flags.3?help.TermsOfService = auth.SentCode; -message TL_auth_sentCode { - auth_SentCode_Data data2 = 2; +// inputReportReasonSpam#58dbcab8 = ReportReason; +message TL_inputReportReasonSpam { + ReportReason_Data data2 = 2; } +// inputReportReasonViolence#1e22c78d = ReportReason; +message TL_inputReportReasonViolence { + ReportReason_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// help_TermsOfService <-- -// + TL_help_termsOfService -// -message help_TermsOfService_Data { - bool popup = 1; - DataJSON id = 2; - string text = 3; - repeated MessageEntity entities = 4; - int32 min_age_confirm = 5; +// inputReportReasonPornography#2e59d922 = ReportReason; +message TL_inputReportReasonPornography { + ReportReason_Data data2 = 2; } -message help_TermsOfService { - TLConstructor constructor = 1; - help_TermsOfService_Data data2 = 2; +// inputReportReasonOther#e1746d0a text:string = ReportReason; +message TL_inputReportReasonOther { + ReportReason_Data data2 = 2; } -// help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService; -message TL_help_termsOfService { - help_TermsOfService_Data data2 = 2; +// inputReportReasonCopyright#9b89f93a = ReportReason; +message TL_inputReportReasonCopyright { + ReportReason_Data data2 = 2; } @@ -6217,1951 +6134,2034 @@ message TL_topPeerCategoryPhoneCalls { /////////////////////////////////////////////////////////////////////////////// -// ChannelAdminLogEventsFilter <-- -// + TL_channelAdminLogEventsFilter +// messages_RecentStickers <-- +// + TL_messages_recentStickersNotModified +// + TL_messages_recentStickers // -message ChannelAdminLogEventsFilter_Data { - bool join = 1; - bool leave = 2; - bool invite = 3; - bool ban = 4; - bool unban = 5; - bool kick = 6; - bool unkick = 7; - bool promote = 8; - bool demote = 9; - bool info = 10; - bool settings = 11; - bool pinned = 12; - bool edit = 13; - bool delete = 14; +message messages_RecentStickers_Data { + int32 hash = 1; + repeated StickerPack packs = 2; + repeated Document stickers = 3; + repeated int32 dates = 4; } -message ChannelAdminLogEventsFilter { +message messages_RecentStickers { TLConstructor constructor = 1; - ChannelAdminLogEventsFilter_Data data2 = 2; + messages_RecentStickers_Data data2 = 2; } -// channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; -message TL_channelAdminLogEventsFilter { - ChannelAdminLogEventsFilter_Data data2 = 2; +// messages.recentStickersNotModified#b17f890 = messages.RecentStickers; +message TL_messages_recentStickersNotModified { + messages_RecentStickers_Data data2 = 2; +} + +// messages.recentStickers#22f3afb3 hash:int packs:Vector stickers:Vector dates:Vector = messages.RecentStickers; +message TL_messages_recentStickers { + messages_RecentStickers_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputSecureFile <-- -// + TL_inputSecureFileUploaded -// + TL_inputSecureFile +// auth_CodeType <-- +// + TL_auth_codeTypeSms +// + TL_auth_codeTypeCall +// + TL_auth_codeTypeFlashCall // -message InputSecureFile_Data { - int64 id = 1; - int32 parts = 2; - string md5_checksum = 3; - bytes file_hash = 4; - bytes secret = 5; - int64 access_hash = 6; +message auth_CodeType_Data { } -message InputSecureFile { +message auth_CodeType { TLConstructor constructor = 1; - InputSecureFile_Data data2 = 2; + auth_CodeType_Data data2 = 2; } -// inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile; -message TL_inputSecureFileUploaded { - InputSecureFile_Data data2 = 2; +// auth.codeTypeSms#72a3158c = auth.CodeType; +message TL_auth_codeTypeSms { + auth_CodeType_Data data2 = 2; } -// inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile; -message TL_inputSecureFile { - InputSecureFile_Data data2 = 2; +// auth.codeTypeCall#741cd3e3 = auth.CodeType; +message TL_auth_codeTypeCall { + auth_CodeType_Data data2 = 2; +} + +// auth.codeTypeFlashCall#226ccefb = auth.CodeType; +message TL_auth_codeTypeFlashCall { + auth_CodeType_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// channels_ChannelParticipant <-- -// + TL_channels_channelParticipant +// Scheme <-- +// + TL_schemeNotModified +// + TL_scheme // -message channels_ChannelParticipant_Data { - ChannelParticipant participant = 1; - repeated User users = 2; +message Scheme_Data { + string scheme_raw = 1; + repeated SchemeType types = 2; + repeated SchemeMethod methods = 3; + int32 version = 4; } -message channels_ChannelParticipant { +message Scheme { TLConstructor constructor = 1; - channels_ChannelParticipant_Data data2 = 2; + Scheme_Data data2 = 2; } -// channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector = channels.ChannelParticipant; -message TL_channels_channelParticipant { - channels_ChannelParticipant_Data data2 = 2; +// schemeNotModified#263c9c58 = Scheme; +message TL_schemeNotModified { + Scheme_Data data2 = 2; +} + +// scheme#4e6ef65e scheme_raw:string types:Vector methods:Vector version:int = Scheme; +message TL_scheme { + Scheme_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChannelAdminRights <-- -// + TL_channelAdminRights +// ChatInvite <-- +// + TL_chatInviteAlready +// + TL_chatInvite // -message ChannelAdminRights_Data { - bool change_info = 1; - bool post_messages = 2; - bool edit_messages = 3; - bool delete_messages = 4; - bool ban_users = 5; - bool invite_users = 6; - bool invite_link = 7; - bool pin_messages = 8; - bool add_admins = 9; - bool manage_call = 10; +message ChatInvite_Data { + Chat chat = 1; + bool channel = 2; + bool broadcast = 3; + bool public = 4; + bool megagroup = 5; + string title = 6; + ChatPhoto photo = 7; + int32 participants_count = 8; + repeated User participants = 9; } -message ChannelAdminRights { +message ChatInvite { TLConstructor constructor = 1; - ChannelAdminRights_Data data2 = 2; + ChatInvite_Data data2 = 2; } -// channelAdminRights#5d7ceba5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true invite_link:flags.6?true pin_messages:flags.7?true add_admins:flags.9?true manage_call:flags.10?true = ChannelAdminRights; -message TL_channelAdminRights { - ChannelAdminRights_Data data2 = 2; +// chatInviteAlready#5a686d7c chat:Chat = ChatInvite; +message TL_chatInviteAlready { + ChatInvite_Data data2 = 2; +} + +// chatInvite#db74f558 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:ChatPhoto participants_count:int participants:flags.4?Vector = ChatInvite; +message TL_chatInvite { + ChatInvite_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// EncryptedMessage <-- -// + TL_encryptedMessage -// + TL_encryptedMessageService +// BotCommand <-- +// + TL_botCommand // -message EncryptedMessage_Data { - int64 random_id = 1; - int32 chat_id = 2; - int32 date = 3; - bytes bytes = 4; - EncryptedFile file = 5; +message BotCommand_Data { + string command = 1; + string description = 2; } -message EncryptedMessage { +message BotCommand { TLConstructor constructor = 1; - EncryptedMessage_Data data2 = 2; -} - -// encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage; -message TL_encryptedMessage { - EncryptedMessage_Data data2 = 2; + BotCommand_Data data2 = 2; } -// encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage; -message TL_encryptedMessageService { - EncryptedMessage_Data data2 = 2; +// botCommand#c27ac8c7 command:string description:string = BotCommand; +message TL_botCommand { + BotCommand_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ExportedChatInvite <-- -// + TL_chatInviteEmpty -// + TL_chatInviteExported +// SecureSecretSettings <-- +// + TL_secureSecretSettings // -message ExportedChatInvite_Data { - string link = 1; +message SecureSecretSettings_Data { + SecurePasswordKdfAlgo secure_algo = 1; + bytes secure_secret = 2; + int64 secure_secret_id = 3; } -message ExportedChatInvite { +message SecureSecretSettings { TLConstructor constructor = 1; - ExportedChatInvite_Data data2 = 2; -} - -// chatInviteEmpty#69df3769 = ExportedChatInvite; -message TL_chatInviteEmpty { - ExportedChatInvite_Data data2 = 2; + SecureSecretSettings_Data data2 = 2; } -// chatInviteExported#fc2e05bc link:string = ExportedChatInvite; -message TL_chatInviteExported { - ExportedChatInvite_Data data2 = 2; +// secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings; +message TL_secureSecretSettings { + SecureSecretSettings_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_BotResults <-- -// + TL_messages_botResults +// contacts_ImportedContacts <-- +// + TL_contacts_importedContacts // -message messages_BotResults_Data { - bool gallery = 1; - int64 query_id = 2; - string next_offset = 3; - InlineBotSwitchPM switch_pm = 4; - repeated BotInlineResult results = 5; - int32 cache_time = 6; - repeated User users = 7; +message contacts_ImportedContacts_Data { + repeated ImportedContact imported = 1; + repeated PopularContact popular_invites = 2; + repeated int64 retry_contacts = 3; + repeated User users = 4; } -message messages_BotResults { +message contacts_ImportedContacts { TLConstructor constructor = 1; - messages_BotResults_Data data2 = 2; + contacts_ImportedContacts_Data data2 = 2; } -// messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector cache_time:int users:Vector = messages.BotResults; -message TL_messages_botResults { - messages_BotResults_Data data2 = 2; +// contacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts; +message TL_contacts_importedContacts { + contacts_ImportedContacts_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PageBlock <-- -// + TL_pageBlockUnsupported -// + TL_pageBlockTitle -// + TL_pageBlockSubtitle -// + TL_pageBlockAuthorDate -// + TL_pageBlockHeader -// + TL_pageBlockSubheader -// + TL_pageBlockParagraph -// + TL_pageBlockPreformatted -// + TL_pageBlockFooter -// + TL_pageBlockDivider -// + TL_pageBlockAnchor -// + TL_pageBlockList -// + TL_pageBlockBlockquote -// + TL_pageBlockPullquote -// + TL_pageBlockPhoto -// + TL_pageBlockVideo -// + TL_pageBlockCover -// + TL_pageBlockEmbed -// + TL_pageBlockEmbedPost -// + TL_pageBlockCollage -// + TL_pageBlockSlideshow -// + TL_pageBlockChannel -// + TL_pageBlockAudio -// -message PageBlock_Data { - RichText text = 1; - RichText author_2 = 2; - int32 published_date = 3; - string language = 4; - string name = 5; - Bool ordered = 6; - repeated RichText items_7 = 7; - RichText caption = 8; - int64 photo_id = 9; - bool autoplay = 10; - bool loop = 11; - int64 video_id = 12; - PageBlock cover = 13; - bool full_width = 14; - bool allow_scrolling = 15; - string url = 16; - string html = 17; - int64 poster_photo_id = 18; - int32 w = 19; - int32 h = 20; - int64 webpage_id = 21; - int64 author_photo_id = 22; - string author_23 = 23; - int32 date = 24; - repeated PageBlock blocks = 25; - repeated PageBlock items_26 = 26; - Chat channel = 27; - int64 audio_id = 28; +// MessagesFilter <-- +// + TL_inputMessagesFilterEmpty +// + TL_inputMessagesFilterPhotos +// + TL_inputMessagesFilterVideo +// + TL_inputMessagesFilterPhotoVideo +// + TL_inputMessagesFilterDocument +// + TL_inputMessagesFilterUrl +// + TL_inputMessagesFilterGif +// + TL_inputMessagesFilterVoice +// + TL_inputMessagesFilterMusic +// + TL_inputMessagesFilterChatPhotos +// + TL_inputMessagesFilterPhoneCalls +// + TL_inputMessagesFilterRoundVoice +// + TL_inputMessagesFilterRoundVideo +// + TL_inputMessagesFilterMyMentions +// + TL_inputMessagesFilterGeo +// + TL_inputMessagesFilterContacts +// +message MessagesFilter_Data { + bool missed = 1; } -message PageBlock { +message MessagesFilter { TLConstructor constructor = 1; - PageBlock_Data data2 = 2; + MessagesFilter_Data data2 = 2; } -// pageBlockUnsupported#13567e8a = PageBlock; -message TL_pageBlockUnsupported { - PageBlock_Data data2 = 2; +// inputMessagesFilterEmpty#57e2f66c = MessagesFilter; +message TL_inputMessagesFilterEmpty { + MessagesFilter_Data data2 = 2; } -// pageBlockTitle#70abc3fd text:RichText = PageBlock; -message TL_pageBlockTitle { - PageBlock_Data data2 = 2; +// inputMessagesFilterPhotos#9609a51c = MessagesFilter; +message TL_inputMessagesFilterPhotos { + MessagesFilter_Data data2 = 2; } -// pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock; -message TL_pageBlockSubtitle { - PageBlock_Data data2 = 2; +// inputMessagesFilterVideo#9fc00e65 = MessagesFilter; +message TL_inputMessagesFilterVideo { + MessagesFilter_Data data2 = 2; } -// pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock; -message TL_pageBlockAuthorDate { - PageBlock_Data data2 = 2; +// inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter; +message TL_inputMessagesFilterPhotoVideo { + MessagesFilter_Data data2 = 2; } -// pageBlockHeader#bfd064ec text:RichText = PageBlock; -message TL_pageBlockHeader { - PageBlock_Data data2 = 2; +// inputMessagesFilterDocument#9eddf188 = MessagesFilter; +message TL_inputMessagesFilterDocument { + MessagesFilter_Data data2 = 2; } -// pageBlockSubheader#f12bb6e1 text:RichText = PageBlock; -message TL_pageBlockSubheader { - PageBlock_Data data2 = 2; +// inputMessagesFilterUrl#7ef0dd87 = MessagesFilter; +message TL_inputMessagesFilterUrl { + MessagesFilter_Data data2 = 2; } -// pageBlockParagraph#467a0766 text:RichText = PageBlock; -message TL_pageBlockParagraph { - PageBlock_Data data2 = 2; +// inputMessagesFilterGif#ffc86587 = MessagesFilter; +message TL_inputMessagesFilterGif { + MessagesFilter_Data data2 = 2; } -// pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock; -message TL_pageBlockPreformatted { - PageBlock_Data data2 = 2; +// inputMessagesFilterVoice#50f5c392 = MessagesFilter; +message TL_inputMessagesFilterVoice { + MessagesFilter_Data data2 = 2; } -// pageBlockFooter#48870999 text:RichText = PageBlock; -message TL_pageBlockFooter { - PageBlock_Data data2 = 2; +// inputMessagesFilterMusic#3751b49e = MessagesFilter; +message TL_inputMessagesFilterMusic { + MessagesFilter_Data data2 = 2; } -// pageBlockDivider#db20b188 = PageBlock; -message TL_pageBlockDivider { - PageBlock_Data data2 = 2; +// inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter; +message TL_inputMessagesFilterChatPhotos { + MessagesFilter_Data data2 = 2; } -// pageBlockAnchor#ce0d37b0 name:string = PageBlock; -message TL_pageBlockAnchor { - PageBlock_Data data2 = 2; +// inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter; +message TL_inputMessagesFilterPhoneCalls { + MessagesFilter_Data data2 = 2; } -// pageBlockList#3a58c7f4 ordered:Bool items:Vector = PageBlock; -message TL_pageBlockList { - PageBlock_Data data2 = 2; +// inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter; +message TL_inputMessagesFilterRoundVoice { + MessagesFilter_Data data2 = 2; } -// pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock; -message TL_pageBlockBlockquote { - PageBlock_Data data2 = 2; +// inputMessagesFilterRoundVideo#b549da53 = MessagesFilter; +message TL_inputMessagesFilterRoundVideo { + MessagesFilter_Data data2 = 2; } -// pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock; -message TL_pageBlockPullquote { - PageBlock_Data data2 = 2; +// inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter; +message TL_inputMessagesFilterMyMentions { + MessagesFilter_Data data2 = 2; } -// pageBlockPhoto#e9c69982 photo_id:long caption:RichText = PageBlock; -message TL_pageBlockPhoto { - PageBlock_Data data2 = 2; +// inputMessagesFilterGeo#e7026d0d = MessagesFilter; +message TL_inputMessagesFilterGeo { + MessagesFilter_Data data2 = 2; } -// pageBlockVideo#d9d71866 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:RichText = PageBlock; -message TL_pageBlockVideo { - PageBlock_Data data2 = 2; +// inputMessagesFilterContacts#e062db83 = MessagesFilter; +message TL_inputMessagesFilterContacts { + MessagesFilter_Data data2 = 2; } -// pageBlockCover#39f23300 cover:PageBlock = PageBlock; -message TL_pageBlockCover { - PageBlock_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// InputStickerSet <-- +// + TL_inputStickerSetEmpty +// + TL_inputStickerSetID +// + TL_inputStickerSetShortName +// +message InputStickerSet_Data { + int64 id = 1; + int64 access_hash = 2; + string short_name = 3; } -// pageBlockEmbed#cde200d1 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:int h:int caption:RichText = PageBlock; -message TL_pageBlockEmbed { - PageBlock_Data data2 = 2; +message InputStickerSet { + TLConstructor constructor = 1; + InputStickerSet_Data data2 = 2; } -// pageBlockEmbedPost#292c7be9 url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:RichText = PageBlock; -message TL_pageBlockEmbedPost { - PageBlock_Data data2 = 2; +// inputStickerSetEmpty#ffb62b95 = InputStickerSet; +message TL_inputStickerSetEmpty { + InputStickerSet_Data data2 = 2; } -// pageBlockCollage#8b31c4f items:Vector caption:RichText = PageBlock; -message TL_pageBlockCollage { - PageBlock_Data data2 = 2; +// inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; +message TL_inputStickerSetID { + InputStickerSet_Data data2 = 2; } -// pageBlockSlideshow#130c8963 items:Vector caption:RichText = PageBlock; -message TL_pageBlockSlideshow { - PageBlock_Data data2 = 2; +// inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; +message TL_inputStickerSetShortName { + InputStickerSet_Data data2 = 2; } -// pageBlockChannel#ef1751b5 channel:Chat = PageBlock; -message TL_pageBlockChannel { - PageBlock_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// ReplyMarkup <-- +// + TL_replyKeyboardHide +// + TL_replyKeyboardForceReply +// + TL_replyKeyboardMarkup +// + TL_replyInlineMarkup +// +message ReplyMarkup_Data { + bool selective = 1; + bool single_use = 2; + bool resize = 3; + repeated KeyboardButtonRow rows = 4; } -// pageBlockAudio#31b81a7f audio_id:long caption:RichText = PageBlock; -message TL_pageBlockAudio { - PageBlock_Data data2 = 2; +message ReplyMarkup { + TLConstructor constructor = 1; + ReplyMarkup_Data data2 = 2; +} + +// replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; +message TL_replyKeyboardHide { + ReplyMarkup_Data data2 = 2; +} + +// replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup; +message TL_replyKeyboardForceReply { + ReplyMarkup_Data data2 = 2; +} + +// replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector = ReplyMarkup; +message TL_replyKeyboardMarkup { + ReplyMarkup_Data data2 = 2; +} + +// replyInlineMarkup#48a30254 rows:Vector = ReplyMarkup; +message TL_replyInlineMarkup { + ReplyMarkup_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Document <-- -// + TL_documentEmpty -// + TL_document -// + TL_documentLayer86 +// ChannelParticipantsFilter <-- +// + TL_channelParticipantsRecent +// + TL_channelParticipantsAdmins +// + TL_channelParticipantsKicked +// + TL_channelParticipantsBots +// + TL_channelParticipantsBanned +// + TL_channelParticipantsSearch // -message Document_Data { - int64 id = 1; - int64 access_hash = 2; - int32 date = 3; - string mime_type = 4; - int32 size = 5; - PhotoSize thumb = 6; - int32 dc_id = 7; - int32 version = 8; - repeated DocumentAttribute attributes = 9; - bytes file_reference = 10; +message ChannelParticipantsFilter_Data { + string q = 1; } -message Document { +message ChannelParticipantsFilter { TLConstructor constructor = 1; - Document_Data data2 = 2; + ChannelParticipantsFilter_Data data2 = 2; } -// documentEmpty#36f8c871 id:long = Document; -message TL_documentEmpty { - Document_Data data2 = 2; +// channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter; +message TL_channelParticipantsRecent { + ChannelParticipantsFilter_Data data2 = 2; } -// document#87232bc7 id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int version:int attributes:Vector = Document; -message TL_document { - Document_Data data2 = 2; +// channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter; +message TL_channelParticipantsAdmins { + ChannelParticipantsFilter_Data data2 = 2; } -// document#59534e4c id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = Document; -message TL_documentLayer86 { - Document_Data data2 = 2; +// channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter; +message TL_channelParticipantsKicked { + ChannelParticipantsFilter_Data data2 = 2; +} + +// channelParticipantsBots#b0d1865b = ChannelParticipantsFilter; +message TL_channelParticipantsBots { + ChannelParticipantsFilter_Data data2 = 2; +} + +// channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter; +message TL_channelParticipantsBanned { + ChannelParticipantsFilter_Data data2 = 2; +} + +// channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter; +message TL_channelParticipantsSearch { + ChannelParticipantsFilter_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// RecentMeUrl <-- -// + TL_recentMeUrlUnknown -// + TL_recentMeUrlUser -// + TL_recentMeUrlChat -// + TL_recentMeUrlChatInvite -// + TL_recentMeUrlStickerSet +// InputStickeredMedia <-- +// + TL_inputStickeredMediaPhoto +// + TL_inputStickeredMediaDocument // -message RecentMeUrl_Data { - string url = 1; - int32 user_id = 2; - int32 chat_id = 3; - ChatInvite chat_invite = 4; - StickerSetCovered set = 5; +message InputStickeredMedia_Data { + InputPhoto id_1 = 1; + InputDocument id_2 = 2; } -message RecentMeUrl { +message InputStickeredMedia { TLConstructor constructor = 1; - RecentMeUrl_Data data2 = 2; + InputStickeredMedia_Data data2 = 2; } -// recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl; -message TL_recentMeUrlUnknown { - RecentMeUrl_Data data2 = 2; +// inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia; +message TL_inputStickeredMediaPhoto { + InputStickeredMedia_Data data2 = 2; } -// recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl; -message TL_recentMeUrlUser { - RecentMeUrl_Data data2 = 2; +// inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia; +message TL_inputStickeredMediaDocument { + InputStickeredMedia_Data data2 = 2; } -// recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl; -message TL_recentMeUrlChat { - RecentMeUrl_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// InputClientProxy <-- +// + TL_inputClientProxy +// +message InputClientProxy_Data { + string address = 1; + int32 port = 2; } -// recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl; -message TL_recentMeUrlChatInvite { - RecentMeUrl_Data data2 = 2; +message InputClientProxy { + TLConstructor constructor = 1; + InputClientProxy_Data data2 = 2; } -// recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl; -message TL_recentMeUrlStickerSet { - RecentMeUrl_Data data2 = 2; +// inputClientProxy#75588b3f address:string port:int = InputClientProxy; +message TL_inputClientProxy { + InputClientProxy_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Scheme <-- -// + TL_schemeNotModified -// + TL_scheme +// SecureValueType <-- +// + TL_secureValueTypePersonalDetails +// + TL_secureValueTypePassport +// + TL_secureValueTypeDriverLicense +// + TL_secureValueTypeIdentityCard +// + TL_secureValueTypeInternalPassport +// + TL_secureValueTypeAddress +// + TL_secureValueTypeUtilityBill +// + TL_secureValueTypeBankStatement +// + TL_secureValueTypeRentalAgreement +// + TL_secureValueTypePassportRegistration +// + TL_secureValueTypeTemporaryRegistration +// + TL_secureValueTypePhone +// + TL_secureValueTypeEmail // -message Scheme_Data { - string scheme_raw = 1; - repeated SchemeType types = 2; - repeated SchemeMethod methods = 3; - int32 version = 4; +message SecureValueType_Data { } -message Scheme { +message SecureValueType { TLConstructor constructor = 1; - Scheme_Data data2 = 2; + SecureValueType_Data data2 = 2; } -// schemeNotModified#263c9c58 = Scheme; -message TL_schemeNotModified { - Scheme_Data data2 = 2; +// secureValueTypePersonalDetails#9d2a81e3 = SecureValueType; +message TL_secureValueTypePersonalDetails { + SecureValueType_Data data2 = 2; } -// scheme#4e6ef65e scheme_raw:string types:Vector methods:Vector version:int = Scheme; -message TL_scheme { - Scheme_Data data2 = 2; +// secureValueTypePassport#3dac6a00 = SecureValueType; +message TL_secureValueTypePassport { + SecureValueType_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// InputAppEvent <-- -// + TL_inputAppEvent -// -message InputAppEvent_Data { - double time = 1; - string type = 2; - int64 peer = 3; - string data = 4; +// secureValueTypeDriverLicense#6e425c4 = SecureValueType; +message TL_secureValueTypeDriverLicense { + SecureValueType_Data data2 = 2; } -message InputAppEvent { - TLConstructor constructor = 1; - InputAppEvent_Data data2 = 2; +// secureValueTypeIdentityCard#a0d0744b = SecureValueType; +message TL_secureValueTypeIdentityCard { + SecureValueType_Data data2 = 2; } -// inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent; -message TL_inputAppEvent { - InputAppEvent_Data data2 = 2; +// secureValueTypeInternalPassport#99a48f23 = SecureValueType; +message TL_secureValueTypeInternalPassport { + SecureValueType_Data data2 = 2; } +// secureValueTypeAddress#cbe31e26 = SecureValueType; +message TL_secureValueTypeAddress { + SecureValueType_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// StickerPack <-- -// + TL_stickerPack -// -message StickerPack_Data { - string emoticon = 1; - repeated int64 documents = 2; +// secureValueTypeUtilityBill#fc36954e = SecureValueType; +message TL_secureValueTypeUtilityBill { + SecureValueType_Data data2 = 2; } -message StickerPack { - TLConstructor constructor = 1; - StickerPack_Data data2 = 2; +// secureValueTypeBankStatement#89137c0d = SecureValueType; +message TL_secureValueTypeBankStatement { + SecureValueType_Data data2 = 2; } -// stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack; -message TL_stickerPack { - StickerPack_Data data2 = 2; +// secureValueTypeRentalAgreement#8b883488 = SecureValueType; +message TL_secureValueTypeRentalAgreement { + SecureValueType_Data data2 = 2; } +// secureValueTypePassportRegistration#99e3806a = SecureValueType; +message TL_secureValueTypePassportRegistration { + SecureValueType_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// messages_BotCallbackAnswer <-- -// + TL_messages_botCallbackAnswer -// -message messages_BotCallbackAnswer_Data { - bool alert = 1; - bool has_url = 2; - bool native_ui = 3; - string message = 4; - string url = 5; - int32 cache_time = 6; +// secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType; +message TL_secureValueTypeTemporaryRegistration { + SecureValueType_Data data2 = 2; } -message messages_BotCallbackAnswer { - TLConstructor constructor = 1; - messages_BotCallbackAnswer_Data data2 = 2; +// secureValueTypePhone#b320aadb = SecureValueType; +message TL_secureValueTypePhone { + SecureValueType_Data data2 = 2; } -// messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; -message TL_messages_botCallbackAnswer { - messages_BotCallbackAnswer_Data data2 = 2; +// secureValueTypeEmail#8e3ca7ee = SecureValueType; +message TL_secureValueTypeEmail { + SecureValueType_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SecureSecretSettings <-- -// + TL_secureSecretSettings +// MessageAction <-- +// + TL_messageActionEmpty +// + TL_messageActionChatCreate +// + TL_messageActionChatEditTitle +// + TL_messageActionChatEditPhoto +// + TL_messageActionChatDeletePhoto +// + TL_messageActionChatAddUser +// + TL_messageActionChatDeleteUser +// + TL_messageActionChatJoinedByLink +// + TL_messageActionChannelCreate +// + TL_messageActionChatMigrateTo +// + TL_messageActionChannelMigrateFrom +// + TL_messageActionPinMessage +// + TL_messageActionHistoryClear +// + TL_messageActionGameScore +// + TL_messageActionPaymentSentMe +// + TL_messageActionPaymentSent +// + TL_messageActionPhoneCall +// + TL_messageActionScreenshotTaken +// + TL_messageActionCustomAction +// + TL_messageActionBotAllowed +// + TL_messageActionSecureValuesSentMe +// + TL_messageActionSecureValuesSent // -message SecureSecretSettings_Data { - SecurePasswordKdfAlgo secure_algo = 1; - bytes secure_secret = 2; - int64 secure_secret_id = 3; +message MessageAction_Data { + string title = 1; + repeated int32 users = 2; + Photo photo = 3; + int32 user_id = 4; + int32 inviter_id = 5; + int32 channel_id = 6; + int32 chat_id = 7; + int64 game_id = 8; + int32 score = 9; + string currency = 10; + int64 total_amount = 11; + bytes payload = 12; + PaymentRequestedInfo info = 13; + string shipping_option_id = 14; + PaymentCharge charge = 15; + int64 call_id = 16; + PhoneCallDiscardReason reason = 17; + int32 duration = 18; + string message = 19; + string domain = 20; + repeated SecureValue values = 21; + SecureCredentialsEncrypted credentials = 22; + repeated SecureValueType types = 23; } -message SecureSecretSettings { +message MessageAction { TLConstructor constructor = 1; - SecureSecretSettings_Data data2 = 2; + MessageAction_Data data2 = 2; } -// secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings; -message TL_secureSecretSettings { - SecureSecretSettings_Data data2 = 2; +// messageActionEmpty#b6aef7b0 = MessageAction; +message TL_messageActionEmpty { + MessageAction_Data data2 = 2; +} + +// messageActionChatCreate#a6638b9a title:string users:Vector = MessageAction; +message TL_messageActionChatCreate { + MessageAction_Data data2 = 2; +} + +// messageActionChatEditTitle#b5a1ce5a title:string = MessageAction; +message TL_messageActionChatEditTitle { + MessageAction_Data data2 = 2; +} + +// messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction; +message TL_messageActionChatEditPhoto { + MessageAction_Data data2 = 2; } +// messageActionChatDeletePhoto#95e3fbef = MessageAction; +message TL_messageActionChatDeletePhoto { + MessageAction_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// Authorization <-- -// + TL_authorization -// -message Authorization_Data { - int64 hash = 1; - int32 flags = 2; - string device_model = 3; - string platform = 4; - string system_version = 5; - int32 api_id = 6; - string app_name = 7; - string app_version = 8; - int32 date_created = 9; - int32 date_active = 10; - string ip = 11; - string country = 12; - string region = 13; +// messageActionChatAddUser#488a7337 users:Vector = MessageAction; +message TL_messageActionChatAddUser { + MessageAction_Data data2 = 2; } -message Authorization { - TLConstructor constructor = 1; - Authorization_Data data2 = 2; +// messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction; +message TL_messageActionChatDeleteUser { + MessageAction_Data data2 = 2; } -// authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization; -message TL_authorization { - Authorization_Data data2 = 2; +// messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction; +message TL_messageActionChatJoinedByLink { + MessageAction_Data data2 = 2; } +// messageActionChannelCreate#95d2ac92 title:string = MessageAction; +message TL_messageActionChannelCreate { + MessageAction_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// PhoneCallProtocol <-- -// + TL_phoneCallProtocol -// -message PhoneCallProtocol_Data { - bool udp_p2p = 1; - bool udp_reflector = 2; - int32 min_layer = 3; - int32 max_layer = 4; +// messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction; +message TL_messageActionChatMigrateTo { + MessageAction_Data data2 = 2; } -message PhoneCallProtocol { - TLConstructor constructor = 1; - PhoneCallProtocol_Data data2 = 2; +// messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction; +message TL_messageActionChannelMigrateFrom { + MessageAction_Data data2 = 2; } -// phoneCallProtocol#a2bb35cb flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int = PhoneCallProtocol; -message TL_phoneCallProtocol { - PhoneCallProtocol_Data data2 = 2; +// messageActionPinMessage#94bd38ed = MessageAction; +message TL_messageActionPinMessage { + MessageAction_Data data2 = 2; } +// messageActionHistoryClear#9fbab604 = MessageAction; +message TL_messageActionHistoryClear { + MessageAction_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// InputMessage <-- -// + TL_inputMessageID -// + TL_inputMessageReplyTo -// + TL_inputMessagePinned -// -message InputMessage_Data { - int32 id = 1; +// messageActionGameScore#92a72876 game_id:long score:int = MessageAction; +message TL_messageActionGameScore { + MessageAction_Data data2 = 2; } -message InputMessage { - TLConstructor constructor = 1; - InputMessage_Data data2 = 2; +// messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; +message TL_messageActionPaymentSentMe { + MessageAction_Data data2 = 2; } -// inputMessageID#a676a322 id:int = InputMessage; -message TL_inputMessageID { - InputMessage_Data data2 = 2; +// messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; +message TL_messageActionPaymentSent { + MessageAction_Data data2 = 2; } -// inputMessageReplyTo#bad88395 id:int = InputMessage; -message TL_inputMessageReplyTo { - InputMessage_Data data2 = 2; +// messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction; +message TL_messageActionPhoneCall { + MessageAction_Data data2 = 2; } -// inputMessagePinned#86872538 = InputMessage; -message TL_inputMessagePinned { - InputMessage_Data data2 = 2; +// messageActionScreenshotTaken#4792929b = MessageAction; +message TL_messageActionScreenshotTaken { + MessageAction_Data data2 = 2; } +// messageActionCustomAction#fae69f56 message:string = MessageAction; +message TL_messageActionCustomAction { + MessageAction_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// InputSecureValue <-- -// + TL_inputSecureValue -// -message InputSecureValue_Data { - SecureValueType type = 1; - SecureData data = 2; - InputSecureFile front_side = 3; - InputSecureFile reverse_side = 4; - InputSecureFile selfie = 5; - repeated InputSecureFile translation = 6; - repeated InputSecureFile files = 7; - SecurePlainData plain_data = 8; +// messageActionBotAllowed#abe9affe domain:string = MessageAction; +message TL_messageActionBotAllowed { + MessageAction_Data data2 = 2; } -message InputSecureValue { - TLConstructor constructor = 1; - InputSecureValue_Data data2 = 2; +// messageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction; +message TL_messageActionSecureValuesSentMe { + MessageAction_Data data2 = 2; } -// inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue; -message TL_inputSecureValue { - InputSecureValue_Data data2 = 2; +// messageActionSecureValuesSent#d95c6154 types:Vector = MessageAction; +message TL_messageActionSecureValuesSent { + MessageAction_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChannelAdminLogEventAction <-- -// + TL_channelAdminLogEventActionChangeTitle -// + TL_channelAdminLogEventActionChangeAbout -// + TL_channelAdminLogEventActionChangeUsername -// + TL_channelAdminLogEventActionChangePhoto -// + TL_channelAdminLogEventActionToggleInvites -// + TL_channelAdminLogEventActionToggleSignatures -// + TL_channelAdminLogEventActionUpdatePinned -// + TL_channelAdminLogEventActionEditMessage -// + TL_channelAdminLogEventActionDeleteMessage -// + TL_channelAdminLogEventActionParticipantJoin -// + TL_channelAdminLogEventActionParticipantLeave -// + TL_channelAdminLogEventActionParticipantInvite -// + TL_channelAdminLogEventActionParticipantToggleBan -// + TL_channelAdminLogEventActionParticipantToggleAdmin -// + TL_channelAdminLogEventActionChangeStickerSet -// + TL_channelAdminLogEventActionTogglePreHistoryHidden +// contacts_Blocked <-- +// + TL_contacts_blocked +// + TL_contacts_blockedSlice // -message ChannelAdminLogEventAction_Data { - string prev_value = 1; - string new_value_2 = 2; - ChatPhoto prev_photo = 3; - ChatPhoto new_photo = 4; - Bool new_value_5 = 5; - Message message = 6; - Message prev_message = 7; - Message new_message = 8; - ChannelParticipant participant = 9; - ChannelParticipant prev_participant = 10; - ChannelParticipant new_participant = 11; - InputStickerSet prev_stickerset = 12; - InputStickerSet new_stickerset = 13; +message contacts_Blocked_Data { + repeated ContactBlocked blocked = 1; + repeated User users = 2; + int32 count = 3; } -message ChannelAdminLogEventAction { +message contacts_Blocked { TLConstructor constructor = 1; - ChannelAdminLogEventAction_Data data2 = 2; -} - -// channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionChangeTitle { - ChannelAdminLogEventAction_Data data2 = 2; + contacts_Blocked_Data data2 = 2; } -// channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionChangeAbout { - ChannelAdminLogEventAction_Data data2 = 2; +// contacts.blocked#1c138d15 blocked:Vector users:Vector = contacts.Blocked; +message TL_contacts_blocked { + contacts_Blocked_Data data2 = 2; } -// channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionChangeUsername { - ChannelAdminLogEventAction_Data data2 = 2; +// contacts.blockedSlice#900802a1 count:int blocked:Vector users:Vector = contacts.Blocked; +message TL_contacts_blockedSlice { + contacts_Blocked_Data data2 = 2; } -// channelAdminLogEventActionChangePhoto#b82f55c3 prev_photo:ChatPhoto new_photo:ChatPhoto = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionChangePhoto { - ChannelAdminLogEventAction_Data data2 = 2; -} -// channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionToggleInvites { - ChannelAdminLogEventAction_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// RichText <-- +// + TL_textEmpty +// + TL_textPlain +// + TL_textBold +// + TL_textItalic +// + TL_textUnderline +// + TL_textStrike +// + TL_textFixed +// + TL_textUrl +// + TL_textEmail +// + TL_textConcat +// +message RichText_Data { + string text_1 = 1; + RichText text_2 = 2; + string url = 3; + int64 webpage_id = 4; + string email = 5; + repeated RichText texts = 6; } -// channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionToggleSignatures { - ChannelAdminLogEventAction_Data data2 = 2; +message RichText { + TLConstructor constructor = 1; + RichText_Data data2 = 2; } -// channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionUpdatePinned { - ChannelAdminLogEventAction_Data data2 = 2; +// textEmpty#dc3d824f = RichText; +message TL_textEmpty { + RichText_Data data2 = 2; } -// channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionEditMessage { - ChannelAdminLogEventAction_Data data2 = 2; +// textPlain#744694e0 text:string = RichText; +message TL_textPlain { + RichText_Data data2 = 2; } -// channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionDeleteMessage { - ChannelAdminLogEventAction_Data data2 = 2; +// textBold#6724abc4 text:RichText = RichText; +message TL_textBold { + RichText_Data data2 = 2; } -// channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionParticipantJoin { - ChannelAdminLogEventAction_Data data2 = 2; +// textItalic#d912a59c text:RichText = RichText; +message TL_textItalic { + RichText_Data data2 = 2; } - -// channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionParticipantLeave { - ChannelAdminLogEventAction_Data data2 = 2; + +// textUnderline#c12622c4 text:RichText = RichText; +message TL_textUnderline { + RichText_Data data2 = 2; } -// channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionParticipantInvite { - ChannelAdminLogEventAction_Data data2 = 2; +// textStrike#9bf8bb95 text:RichText = RichText; +message TL_textStrike { + RichText_Data data2 = 2; } -// channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionParticipantToggleBan { - ChannelAdminLogEventAction_Data data2 = 2; +// textFixed#6c3f19b9 text:RichText = RichText; +message TL_textFixed { + RichText_Data data2 = 2; } -// channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionParticipantToggleAdmin { - ChannelAdminLogEventAction_Data data2 = 2; +// textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText; +message TL_textUrl { + RichText_Data data2 = 2; } -// channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionChangeStickerSet { - ChannelAdminLogEventAction_Data data2 = 2; +// textEmail#de5a0dd6 text:RichText email:string = RichText; +message TL_textEmail { + RichText_Data data2 = 2; } -// channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction; -message TL_channelAdminLogEventActionTogglePreHistoryHidden { - ChannelAdminLogEventAction_Data data2 = 2; +// textConcat#7e6260d7 texts:Vector = RichText; +message TL_textConcat { + RichText_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// account_Takeout <-- -// + TL_account_takeout +// TopPeerCategoryPeers <-- +// + TL_topPeerCategoryPeers // -message account_Takeout_Data { - int64 id = 1; +message TopPeerCategoryPeers_Data { + TopPeerCategory category = 1; + int32 count = 2; + repeated TopPeer peers = 3; } -message account_Takeout { +message TopPeerCategoryPeers { TLConstructor constructor = 1; - account_Takeout_Data data2 = 2; + TopPeerCategoryPeers_Data data2 = 2; } -// account.takeout#4dba4501 id:long = account.Takeout; -message TL_account_takeout { - account_Takeout_Data data2 = 2; +// topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers; +message TL_topPeerCategoryPeers { + TopPeerCategoryPeers_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SecureRequiredType <-- -// + TL_secureRequiredType -// + TL_secureRequiredTypeOneOf +// messages_StickerSetInstallResult <-- +// + TL_messages_stickerSetInstallResultSuccess +// + TL_messages_stickerSetInstallResultArchive // -message SecureRequiredType_Data { - bool native_names = 1; - bool selfie_required = 2; - bool translation_required = 3; - SecureValueType type = 4; - repeated SecureRequiredType types = 5; +message messages_StickerSetInstallResult_Data { + repeated StickerSetCovered sets = 1; } -message SecureRequiredType { +message messages_StickerSetInstallResult { TLConstructor constructor = 1; - SecureRequiredType_Data data2 = 2; + messages_StickerSetInstallResult_Data data2 = 2; } -// secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType; -message TL_secureRequiredType { - SecureRequiredType_Data data2 = 2; +// messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult; +message TL_messages_stickerSetInstallResultSuccess { + messages_StickerSetInstallResult_Data data2 = 2; } -// secureRequiredTypeOneOf#27477b4 types:Vector = SecureRequiredType; -message TL_secureRequiredTypeOneOf { - SecureRequiredType_Data data2 = 2; +// messages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult; +message TL_messages_stickerSetInstallResultArchive { + messages_StickerSetInstallResult_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_AffectedHistory <-- -// + TL_messages_affectedHistory +// payments_PaymentForm <-- +// + TL_payments_paymentForm // -message messages_AffectedHistory_Data { - int32 pts = 1; - int32 pts_count = 2; - int32 offset = 3; +message payments_PaymentForm_Data { + bool can_save_credentials = 1; + bool password_missing = 2; + int32 bot_id = 3; + Invoice invoice = 4; + int32 provider_id = 5; + string url = 6; + string native_provider = 7; + DataJSON native_params = 8; + PaymentRequestedInfo saved_info = 9; + PaymentSavedCredentials saved_credentials = 10; + repeated User users = 11; } -message messages_AffectedHistory { +message payments_PaymentForm { TLConstructor constructor = 1; - messages_AffectedHistory_Data data2 = 2; + payments_PaymentForm_Data data2 = 2; } -// messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory; -message TL_messages_affectedHistory { - messages_AffectedHistory_Data data2 = 2; +// payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; +message TL_payments_paymentForm { + payments_PaymentForm_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Config <-- -// + TL_config +// LangPackDifference <-- +// + TL_langPackDifference // -message Config_Data { - bool phonecalls_enabled = 1; - bool default_p2p_contacts = 2; - bool preload_featured_stickers = 3; - bool ignore_phone_entities = 4; - bool revoke_pm_inbox = 5; - bool blocked_mode = 6; - int32 date = 7; - int32 expires = 8; - Bool test_mode = 9; - int32 this_dc = 10; - repeated DcOption dc_options = 11; - string dc_txt_domain_name = 12; - int32 chat_size_max = 13; - int32 megagroup_size_max = 14; - int32 forwarded_count_max = 15; - int32 online_update_period_ms = 16; - int32 offline_blur_timeout_ms = 17; - int32 offline_idle_timeout_ms = 18; - int32 online_cloud_timeout_ms = 19; - int32 notify_cloud_delay_ms = 20; - int32 notify_default_delay_ms = 21; - int32 push_chat_period_ms = 22; - int32 push_chat_limit = 23; - int32 saved_gifs_limit = 24; - int32 edit_time_limit = 25; - int32 revoke_time_limit = 26; - int32 revoke_pm_time_limit = 27; - int32 rating_e_decay = 28; - int32 stickers_recent_limit = 29; - int32 stickers_faved_limit = 30; - int32 channels_read_media_period = 31; - int32 tmp_sessions = 32; - int32 pinned_dialogs_count_max = 33; - int32 call_receive_timeout_ms = 34; - int32 call_ring_timeout_ms = 35; - int32 call_connect_timeout_ms = 36; - int32 call_packet_timeout_ms = 37; - string me_url_prefix = 38; - string autoupdate_url_prefix = 39; - string gif_search_username = 40; - string venue_search_username = 41; - string img_search_username = 42; - string static_maps_provider = 43; - int32 caption_length_max = 44; - int32 message_length_max = 45; - int32 webfile_dc_id = 46; - string suggested_lang_code = 47; - int32 lang_pack_version = 48; +message LangPackDifference_Data { + string lang_code = 1; + int32 from_version = 2; + int32 version = 3; + repeated LangPackString strings = 4; } -message Config { +message LangPackDifference { TLConstructor constructor = 1; - Config_Data data2 = 2; + LangPackDifference_Data data2 = 2; } -// config#3213dbba flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int = Config; -message TL_config { - Config_Data data2 = 2; +// langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference; +message TL_langPackDifference { + LangPackDifference_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PrivacyKey <-- -// + TL_privacyKeyStatusTimestamp -// + TL_privacyKeyChatInvite -// + TL_privacyKeyPhoneCall +// messages_Chats <-- +// + TL_messages_chats +// + TL_messages_chatsSlice // -message PrivacyKey_Data { +message messages_Chats_Data { + repeated Chat chats = 1; + int32 count = 2; } -message PrivacyKey { +message messages_Chats { TLConstructor constructor = 1; - PrivacyKey_Data data2 = 2; -} - -// privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; -message TL_privacyKeyStatusTimestamp { - PrivacyKey_Data data2 = 2; + messages_Chats_Data data2 = 2; } -// privacyKeyChatInvite#500e6dfa = PrivacyKey; -message TL_privacyKeyChatInvite { - PrivacyKey_Data data2 = 2; +// messages.chats#64ff9fd5 chats:Vector = messages.Chats; +message TL_messages_chats { + messages_Chats_Data data2 = 2; } -// privacyKeyPhoneCall#3d662b7b = PrivacyKey; -message TL_privacyKeyPhoneCall { - PrivacyKey_Data data2 = 2; +// messages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats; +message TL_messages_chatsSlice { + messages_Chats_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// StickerSetCovered <-- -// + TL_stickerSetCovered -// + TL_stickerSetMultiCovered +// KeyboardButtonRow <-- +// + TL_keyboardButtonRow // -message StickerSetCovered_Data { - StickerSet set = 1; - Document cover = 2; - repeated Document covers = 3; +message KeyboardButtonRow_Data { + repeated KeyboardButton buttons = 1; } -message StickerSetCovered { +message KeyboardButtonRow { TLConstructor constructor = 1; - StickerSetCovered_Data data2 = 2; -} - -// stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered; -message TL_stickerSetCovered { - StickerSetCovered_Data data2 = 2; + KeyboardButtonRow_Data data2 = 2; } -// stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered; -message TL_stickerSetMultiCovered { - StickerSetCovered_Data data2 = 2; +// keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; +message TL_keyboardButtonRow { + KeyboardButtonRow_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PostAddress <-- -// + TL_postAddress +// messages_FoundGifs <-- +// + TL_messages_foundGifs // -message PostAddress_Data { - string street_line1 = 1; - string street_line2 = 2; - string city = 3; - string state = 4; - string country_iso2 = 5; - string post_code = 6; +message messages_FoundGifs_Data { + int32 next_offset = 1; + repeated FoundGif results = 2; } -message PostAddress { +message messages_FoundGifs { TLConstructor constructor = 1; - PostAddress_Data data2 = 2; + messages_FoundGifs_Data data2 = 2; } -// postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress; -message TL_postAddress { - PostAddress_Data data2 = 2; +// messages.foundGifs#450a1c0a next_offset:int results:Vector = messages.FoundGifs; +message TL_messages_foundGifs { + messages_FoundGifs_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_AllStickers <-- -// + TL_messages_allStickersNotModified -// + TL_messages_allStickers +// KeyboardButton <-- +// + TL_keyboardButton +// + TL_keyboardButtonUrl +// + TL_keyboardButtonCallback +// + TL_keyboardButtonRequestPhone +// + TL_keyboardButtonRequestGeoLocation +// + TL_keyboardButtonSwitchInline +// + TL_keyboardButtonGame +// + TL_keyboardButtonBuy // -message messages_AllStickers_Data { - int32 hash = 1; - repeated StickerSet sets = 2; +message KeyboardButton_Data { + string text = 1; + string url = 2; + bytes data = 3; + bool same_peer = 4; + string query = 5; } -message messages_AllStickers { +message KeyboardButton { TLConstructor constructor = 1; - messages_AllStickers_Data data2 = 2; + KeyboardButton_Data data2 = 2; } -// messages.allStickersNotModified#e86602c3 = messages.AllStickers; -message TL_messages_allStickersNotModified { - messages_AllStickers_Data data2 = 2; +// keyboardButton#a2fa4880 text:string = KeyboardButton; +message TL_keyboardButton { + KeyboardButton_Data data2 = 2; } -// messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers; -message TL_messages_allStickers { - messages_AllStickers_Data data2 = 2; +// keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton; +message TL_keyboardButtonUrl { + KeyboardButton_Data data2 = 2; } +// keyboardButtonCallback#683a5e46 text:string data:bytes = KeyboardButton; +message TL_keyboardButtonCallback { + KeyboardButton_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// payments_ValidatedRequestedInfo <-- -// + TL_payments_validatedRequestedInfo -// -message payments_ValidatedRequestedInfo_Data { - string id = 1; - repeated ShippingOption shipping_options = 2; +// keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton; +message TL_keyboardButtonRequestPhone { + KeyboardButton_Data data2 = 2; } -message payments_ValidatedRequestedInfo { - TLConstructor constructor = 1; - payments_ValidatedRequestedInfo_Data data2 = 2; +// keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton; +message TL_keyboardButtonRequestGeoLocation { + KeyboardButton_Data data2 = 2; } -// payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; -message TL_payments_validatedRequestedInfo { - payments_ValidatedRequestedInfo_Data data2 = 2; +// keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton; +message TL_keyboardButtonSwitchInline { + KeyboardButton_Data data2 = 2; +} + +// keyboardButtonGame#50f41ccf text:string = KeyboardButton; +message TL_keyboardButtonGame { + KeyboardButton_Data data2 = 2; +} + +// keyboardButtonBuy#afd93fbb text:string = KeyboardButton; +message TL_keyboardButtonBuy { + KeyboardButton_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SchemeMethod <-- -// + TL_schemeMethod +// InputChannel <-- +// + TL_inputChannelEmpty +// + TL_inputChannel // -message SchemeMethod_Data { - int32 id = 1; - string method = 2; - repeated SchemeParam params = 3; - string type = 4; +message InputChannel_Data { + int32 channel_id = 1; + int64 access_hash = 2; } -message SchemeMethod { +message InputChannel { TLConstructor constructor = 1; - SchemeMethod_Data data2 = 2; + InputChannel_Data data2 = 2; } -// schemeMethod#479357c0 id:int method:string params:Vector type:string = SchemeMethod; -message TL_schemeMethod { - SchemeMethod_Data data2 = 2; +// inputChannelEmpty#ee8c1e86 = InputChannel; +message TL_inputChannelEmpty { + InputChannel_Data data2 = 2; +} + +// inputChannel#afeb712e channel_id:int access_hash:long = InputChannel; +message TL_inputChannel { + InputChannel_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// help_Support <-- -// + TL_help_support +// ShippingOption <-- +// + TL_shippingOption // -message help_Support_Data { - string phone_number = 1; - User user = 2; +message ShippingOption_Data { + string id = 1; + string title = 2; + repeated LabeledPrice prices = 3; } -message help_Support { +message ShippingOption { TLConstructor constructor = 1; - help_Support_Data data2 = 2; + ShippingOption_Data data2 = 2; } -// help.support#17c6b5f6 phone_number:string user:User = help.Support; -message TL_help_support { - help_Support_Data data2 = 2; +// shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; +message TL_shippingOption { + ShippingOption_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChatParticipants <-- -// + TL_chatParticipantsForbidden -// + TL_chatParticipants +// ChannelAdminLogEventAction <-- +// + TL_channelAdminLogEventActionChangeTitle +// + TL_channelAdminLogEventActionChangeAbout +// + TL_channelAdminLogEventActionChangeUsername +// + TL_channelAdminLogEventActionChangePhoto +// + TL_channelAdminLogEventActionToggleInvites +// + TL_channelAdminLogEventActionToggleSignatures +// + TL_channelAdminLogEventActionUpdatePinned +// + TL_channelAdminLogEventActionEditMessage +// + TL_channelAdminLogEventActionDeleteMessage +// + TL_channelAdminLogEventActionParticipantJoin +// + TL_channelAdminLogEventActionParticipantLeave +// + TL_channelAdminLogEventActionParticipantInvite +// + TL_channelAdminLogEventActionParticipantToggleBan +// + TL_channelAdminLogEventActionParticipantToggleAdmin +// + TL_channelAdminLogEventActionChangeStickerSet +// + TL_channelAdminLogEventActionTogglePreHistoryHidden // -message ChatParticipants_Data { - int32 chat_id = 1; - ChatParticipant self_participant = 2; - repeated ChatParticipant participants = 3; - int32 version = 4; +message ChannelAdminLogEventAction_Data { + string prev_value = 1; + string new_value_2 = 2; + ChatPhoto prev_photo = 3; + ChatPhoto new_photo = 4; + Bool new_value_5 = 5; + Message message = 6; + Message prev_message = 7; + Message new_message = 8; + ChannelParticipant participant = 9; + ChannelParticipant prev_participant = 10; + ChannelParticipant new_participant = 11; + InputStickerSet prev_stickerset = 12; + InputStickerSet new_stickerset = 13; } -message ChatParticipants { +message ChannelAdminLogEventAction { TLConstructor constructor = 1; - ChatParticipants_Data data2 = 2; + ChannelAdminLogEventAction_Data data2 = 2; } -// chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants; -message TL_chatParticipantsForbidden { - ChatParticipants_Data data2 = 2; +// channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionChangeTitle { + ChannelAdminLogEventAction_Data data2 = 2; } -// chatParticipants#3f460fed chat_id:int participants:Vector version:int = ChatParticipants; -message TL_chatParticipants { - ChatParticipants_Data data2 = 2; +// channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionChangeAbout { + ChannelAdminLogEventAction_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// MessagesFilter <-- -// + TL_inputMessagesFilterEmpty -// + TL_inputMessagesFilterPhotos -// + TL_inputMessagesFilterVideo -// + TL_inputMessagesFilterPhotoVideo -// + TL_inputMessagesFilterDocument -// + TL_inputMessagesFilterUrl -// + TL_inputMessagesFilterGif -// + TL_inputMessagesFilterVoice -// + TL_inputMessagesFilterMusic -// + TL_inputMessagesFilterChatPhotos -// + TL_inputMessagesFilterPhoneCalls -// + TL_inputMessagesFilterRoundVoice -// + TL_inputMessagesFilterRoundVideo -// + TL_inputMessagesFilterMyMentions -// + TL_inputMessagesFilterGeo -// + TL_inputMessagesFilterContacts -// -message MessagesFilter_Data { - bool missed = 1; +// channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionChangeUsername { + ChannelAdminLogEventAction_Data data2 = 2; } -message MessagesFilter { - TLConstructor constructor = 1; - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionChangePhoto#b82f55c3 prev_photo:ChatPhoto new_photo:ChatPhoto = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionChangePhoto { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterEmpty#57e2f66c = MessagesFilter; -message TL_inputMessagesFilterEmpty { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionToggleInvites { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterPhotos#9609a51c = MessagesFilter; -message TL_inputMessagesFilterPhotos { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionToggleSignatures { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterVideo#9fc00e65 = MessagesFilter; -message TL_inputMessagesFilterVideo { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionUpdatePinned { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter; -message TL_inputMessagesFilterPhotoVideo { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionEditMessage { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterDocument#9eddf188 = MessagesFilter; -message TL_inputMessagesFilterDocument { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionDeleteMessage { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterUrl#7ef0dd87 = MessagesFilter; -message TL_inputMessagesFilterUrl { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionParticipantJoin { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterGif#ffc86587 = MessagesFilter; -message TL_inputMessagesFilterGif { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionParticipantLeave { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterVoice#50f5c392 = MessagesFilter; -message TL_inputMessagesFilterVoice { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionParticipantInvite { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterMusic#3751b49e = MessagesFilter; -message TL_inputMessagesFilterMusic { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionParticipantToggleBan { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter; -message TL_inputMessagesFilterChatPhotos { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionParticipantToggleAdmin { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter; -message TL_inputMessagesFilterPhoneCalls { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionChangeStickerSet { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter; -message TL_inputMessagesFilterRoundVoice { - MessagesFilter_Data data2 = 2; +// channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction; +message TL_channelAdminLogEventActionTogglePreHistoryHidden { + ChannelAdminLogEventAction_Data data2 = 2; } -// inputMessagesFilterRoundVideo#b549da53 = MessagesFilter; -message TL_inputMessagesFilterRoundVideo { - MessagesFilter_Data data2 = 2; -} -// inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter; -message TL_inputMessagesFilterMyMentions { - MessagesFilter_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// InputBotInlineMessageID <-- +// + TL_inputBotInlineMessageID +// +message InputBotInlineMessageID_Data { + int32 dc_id = 1; + int64 id = 2; + int64 access_hash = 3; } -// inputMessagesFilterGeo#e7026d0d = MessagesFilter; -message TL_inputMessagesFilterGeo { - MessagesFilter_Data data2 = 2; +message InputBotInlineMessageID { + TLConstructor constructor = 1; + InputBotInlineMessageID_Data data2 = 2; } -// inputMessagesFilterContacts#e062db83 = MessagesFilter; -message TL_inputMessagesFilterContacts { - MessagesFilter_Data data2 = 2; +// inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID; +message TL_inputBotInlineMessageID { + InputBotInlineMessageID_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChannelParticipantsFilter <-- -// + TL_channelParticipantsRecent -// + TL_channelParticipantsAdmins -// + TL_channelParticipantsKicked -// + TL_channelParticipantsBots -// + TL_channelParticipantsBanned -// + TL_channelParticipantsSearch +// messages_ArchivedStickers <-- +// + TL_messages_archivedStickers // -message ChannelParticipantsFilter_Data { - string q = 1; +message messages_ArchivedStickers_Data { + int32 count = 1; + repeated StickerSetCovered sets = 2; } -message ChannelParticipantsFilter { +message messages_ArchivedStickers { TLConstructor constructor = 1; - ChannelParticipantsFilter_Data data2 = 2; + messages_ArchivedStickers_Data data2 = 2; } -// channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter; -message TL_channelParticipantsRecent { - ChannelParticipantsFilter_Data data2 = 2; +// messages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers; +message TL_messages_archivedStickers { + messages_ArchivedStickers_Data data2 = 2; } -// channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter; -message TL_channelParticipantsAdmins { - ChannelParticipantsFilter_Data data2 = 2; -} -// channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter; -message TL_channelParticipantsKicked { - ChannelParticipantsFilter_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// BotInlineMessage <-- +// + TL_botInlineMessageMediaAuto +// + TL_botInlineMessageText +// + TL_botInlineMessageMediaGeo +// + TL_botInlineMessageMediaVenue +// + TL_botInlineMessageMediaContact +// +message BotInlineMessage_Data { + string message = 1; + repeated MessageEntity entities = 2; + ReplyMarkup reply_markup = 3; + bool no_webpage = 4; + GeoPoint geo = 5; + int32 period = 6; + string title = 7; + string address = 8; + string provider = 9; + string venue_id = 10; + string venue_type = 11; + string phone_number = 12; + string first_name = 13; + string last_name = 14; + string vcard = 15; } -// channelParticipantsBots#b0d1865b = ChannelParticipantsFilter; -message TL_channelParticipantsBots { - ChannelParticipantsFilter_Data data2 = 2; +message BotInlineMessage { + TLConstructor constructor = 1; + BotInlineMessage_Data data2 = 2; } -// channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter; -message TL_channelParticipantsBanned { - ChannelParticipantsFilter_Data data2 = 2; +// botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +message TL_botInlineMessageMediaAuto { + BotInlineMessage_Data data2 = 2; } -// channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter; -message TL_channelParticipantsSearch { - ChannelParticipantsFilter_Data data2 = 2; +// botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +message TL_botInlineMessageText { + BotInlineMessage_Data data2 = 2; } - -/////////////////////////////////////////////////////////////////////////////// -// ExportedMessageLink <-- -// + TL_exportedMessageLink -// -message ExportedMessageLink_Data { - string link = 1; - string html = 2; +// botInlineMessageMediaGeo#b722de65 flags:# geo:GeoPoint period:int reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +message TL_botInlineMessageMediaGeo { + BotInlineMessage_Data data2 = 2; } -message ExportedMessageLink { - TLConstructor constructor = 1; - ExportedMessageLink_Data data2 = 2; +// botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +message TL_botInlineMessageMediaVenue { + BotInlineMessage_Data data2 = 2; } -// exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink; -message TL_exportedMessageLink { - ExportedMessageLink_Data data2 = 2; +// botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage; +message TL_botInlineMessageMediaContact { + BotInlineMessage_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// WebAuthorization <-- -// + TL_webAuthorization +// help_RecentMeUrls <-- +// + TL_help_recentMeUrls // -message WebAuthorization_Data { - int64 hash = 1; - int32 bot_id = 2; - string domain = 3; - string browser = 4; - string platform = 5; - int32 date_created = 6; - int32 date_active = 7; - string ip = 8; - string region = 9; +message help_RecentMeUrls_Data { + repeated RecentMeUrl urls = 1; + repeated Chat chats = 2; + repeated User users = 3; } -message WebAuthorization { +message help_RecentMeUrls { TLConstructor constructor = 1; - WebAuthorization_Data data2 = 2; + help_RecentMeUrls_Data data2 = 2; } -// webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization; -message TL_webAuthorization { - WebAuthorization_Data data2 = 2; +// help.recentMeUrls#e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls; +message TL_help_recentMeUrls { + help_RecentMeUrls_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SecureValueError <-- -// + TL_secureValueErrorData -// + TL_secureValueErrorFrontSide -// + TL_secureValueErrorReverseSide -// + TL_secureValueErrorSelfie -// + TL_secureValueErrorFile -// + TL_secureValueErrorFiles -// + TL_secureValueError -// + TL_secureValueErrorTranslationFile -// + TL_secureValueErrorTranslationFiles +// InputSingleMedia <-- +// + TL_inputSingleMedia // -message SecureValueError_Data { - SecureValueType type = 1; - bytes data_hash = 2; - string field = 3; - string text = 4; - bytes file_hash_5 = 5; - repeated bytes file_hash_6 = 6; - bytes hash = 7; +message InputSingleMedia_Data { + InputMedia media = 1; + int64 random_id = 2; + string message = 3; + repeated MessageEntity entities = 4; } -message SecureValueError { +message InputSingleMedia { TLConstructor constructor = 1; - SecureValueError_Data data2 = 2; + InputSingleMedia_Data data2 = 2; } -// secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError; -message TL_secureValueErrorData { - SecureValueError_Data data2 = 2; +// inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia; +message TL_inputSingleMedia { + InputSingleMedia_Data data2 = 2; } -// secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError; -message TL_secureValueErrorFrontSide { - SecureValueError_Data data2 = 2; -} -// secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError; -message TL_secureValueErrorReverseSide { - SecureValueError_Data data2 = 2; +/////////////////////////////////////////////////////////////////////////////// +// InputPeer <-- +// + TL_inputPeerEmpty +// + TL_inputPeerSelf +// + TL_inputPeerChat +// + TL_inputPeerUser +// + TL_inputPeerChannel +// +message InputPeer_Data { + int32 chat_id = 1; + int32 user_id = 2; + int64 access_hash = 3; + int32 channel_id = 4; } -// secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError; -message TL_secureValueErrorSelfie { - SecureValueError_Data data2 = 2; +message InputPeer { + TLConstructor constructor = 1; + InputPeer_Data data2 = 2; } -// secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError; -message TL_secureValueErrorFile { - SecureValueError_Data data2 = 2; +// inputPeerEmpty#7f3b18ea = InputPeer; +message TL_inputPeerEmpty { + InputPeer_Data data2 = 2; } -// secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError; -message TL_secureValueErrorFiles { - SecureValueError_Data data2 = 2; +// inputPeerSelf#7da07ec9 = InputPeer; +message TL_inputPeerSelf { + InputPeer_Data data2 = 2; } -// secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError; -message TL_secureValueError { - SecureValueError_Data data2 = 2; +// inputPeerChat#179be863 chat_id:int = InputPeer; +message TL_inputPeerChat { + InputPeer_Data data2 = 2; } -// secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError; -message TL_secureValueErrorTranslationFile { - SecureValueError_Data data2 = 2; +// inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer; +message TL_inputPeerUser { + InputPeer_Data data2 = 2; } -// secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError; -message TL_secureValueErrorTranslationFiles { - SecureValueError_Data data2 = 2; +// inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer; +message TL_inputPeerChannel { + InputPeer_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// SchemeType <-- -// + TL_schemeType +// InputContact <-- +// + TL_inputPhoneContact // -message SchemeType_Data { - int32 id = 1; - string predicate = 2; - repeated SchemeParam params = 3; - string type = 4; +message InputContact_Data { + int64 client_id = 1; + string phone = 2; + string first_name = 3; + string last_name = 4; } -message SchemeType { +message InputContact { TLConstructor constructor = 1; - SchemeType_Data data2 = 2; + InputContact_Data data2 = 2; } -// schemeType#a8e1e989 id:int predicate:string params:Vector type:string = SchemeType; -message TL_schemeType { - SchemeType_Data data2 = 2; +// inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact; +message TL_inputPhoneContact { + InputContact_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PhotoSize <-- -// + TL_photoSizeEmpty -// + TL_photoSize -// + TL_photoCachedSize +// ChannelParticipant <-- +// + TL_channelParticipant +// + TL_channelParticipantSelf +// + TL_channelParticipantCreator +// + TL_channelParticipantAdmin +// + TL_channelParticipantBanned // -message PhotoSize_Data { - string type = 1; - FileLocation location = 2; - int32 w = 3; - int32 h = 4; - int32 size = 5; - bytes bytes = 6; +message ChannelParticipant_Data { + int32 user_id = 1; + int32 date = 2; + int32 inviter_id = 3; + bool can_edit = 4; + int32 promoted_by = 5; + ChannelAdminRights admin_rights = 6; + bool left = 7; + int32 kicked_by = 8; + ChannelBannedRights banned_rights = 9; } -message PhotoSize { +message ChannelParticipant { TLConstructor constructor = 1; - PhotoSize_Data data2 = 2; + ChannelParticipant_Data data2 = 2; } -// photoSizeEmpty#e17e23c type:string = PhotoSize; -message TL_photoSizeEmpty { - PhotoSize_Data data2 = 2; +// channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant; +message TL_channelParticipant { + ChannelParticipant_Data data2 = 2; } -// photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize; -message TL_photoSize { - PhotoSize_Data data2 = 2; +// channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant; +message TL_channelParticipantSelf { + ChannelParticipant_Data data2 = 2; } -// photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize; -message TL_photoCachedSize { - PhotoSize_Data data2 = 2; +// channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; +message TL_channelParticipantCreator { + ChannelParticipant_Data data2 = 2; +} + +// channelParticipantAdmin#a82fa898 flags:# can_edit:flags.0?true user_id:int inviter_id:int promoted_by:int date:int admin_rights:ChannelAdminRights = ChannelParticipant; +message TL_channelParticipantAdmin { + ChannelParticipant_Data data2 = 2; +} + +// channelParticipantBanned#222c1886 flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChannelBannedRights = ChannelParticipant; +message TL_channelParticipantBanned { + ChannelParticipant_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// PaymentRequestedInfo <-- -// + TL_paymentRequestedInfo +// SecurePasswordKdfAlgo <-- +// + TL_securePasswordKdfAlgoUnknown +// + TL_securePasswordKdfAlgoPBKDF2 +// + TL_securePasswordKdfAlgoSHA512 // -message PaymentRequestedInfo_Data { - string name = 1; - string phone = 2; - string email = 3; - PostAddress shipping_address = 4; +message SecurePasswordKdfAlgo_Data { + bytes salt = 1; } -message PaymentRequestedInfo { +message SecurePasswordKdfAlgo { TLConstructor constructor = 1; - PaymentRequestedInfo_Data data2 = 2; + SecurePasswordKdfAlgo_Data data2 = 2; } -// paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo; -message TL_paymentRequestedInfo { - PaymentRequestedInfo_Data data2 = 2; +// securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo; +message TL_securePasswordKdfAlgoUnknown { + SecurePasswordKdfAlgo_Data data2 = 2; +} + +// securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo; +message TL_securePasswordKdfAlgoPBKDF2 { + SecurePasswordKdfAlgo_Data data2 = 2; +} + +// securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo; +message TL_securePasswordKdfAlgoSHA512 { + SecurePasswordKdfAlgo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputContact <-- -// + TL_inputPhoneContact +// PeerSettings <-- +// + TL_peerSettings // -message InputContact_Data { - int64 client_id = 1; - string phone = 2; - string first_name = 3; - string last_name = 4; +message PeerSettings_Data { + bool report_spam = 1; } -message InputContact { +message PeerSettings { TLConstructor constructor = 1; - InputContact_Data data2 = 2; + PeerSettings_Data data2 = 2; } -// inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact; -message TL_inputPhoneContact { - InputContact_Data data2 = 2; +// peerSettings#818426cd flags:# report_spam:flags.0?true = PeerSettings; +message TL_peerSettings { + PeerSettings_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Photo <-- -// + TL_photoEmpty -// + TL_photo -// + TL_photoLayer86 +// RecentMeUrl <-- +// + TL_recentMeUrlUnknown +// + TL_recentMeUrlUser +// + TL_recentMeUrlChat +// + TL_recentMeUrlChatInvite +// + TL_recentMeUrlStickerSet // -message Photo_Data { - int64 id = 1; - bool has_stickers = 2; - int64 access_hash = 3; - int32 date = 4; - repeated PhotoSize sizes = 5; - bytes file_reference = 6; +message RecentMeUrl_Data { + string url = 1; + int32 user_id = 2; + int32 chat_id = 3; + ChatInvite chat_invite = 4; + StickerSetCovered set = 5; } -message Photo { +message RecentMeUrl { TLConstructor constructor = 1; - Photo_Data data2 = 2; + RecentMeUrl_Data data2 = 2; } -// photoEmpty#2331b22d id:long = Photo; -message TL_photoEmpty { - Photo_Data data2 = 2; +// recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl; +message TL_recentMeUrlUnknown { + RecentMeUrl_Data data2 = 2; } -// photo#9288dd29 flags:# has_stickers:flags.0?true id:long access_hash:long date:int sizes:Vector = Photo; -message TL_photo { - Photo_Data data2 = 2; +// recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl; +message TL_recentMeUrlUser { + RecentMeUrl_Data data2 = 2; } -// photo#9c477dd8 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector = Photo; -message TL_photoLayer86 { - Photo_Data data2 = 2; +// recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl; +message TL_recentMeUrlChat { + RecentMeUrl_Data data2 = 2; +} + +// recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl; +message TL_recentMeUrlChatInvite { + RecentMeUrl_Data data2 = 2; +} + +// recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl; +message TL_recentMeUrlStickerSet { + RecentMeUrl_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// User <-- -// + TL_userEmpty -// + TL_user +// InputSecureValue <-- +// + TL_inputSecureValue // -message User_Data { - int32 id = 1; - bool self = 2; - bool contact = 3; - bool mutual_contact = 4; - bool deleted = 5; - bool bot = 6; - bool bot_chat_history = 7; - bool bot_nochats = 8; - bool verified = 9; - bool restricted = 10; - bool min = 11; - bool bot_inline_geo = 12; - int64 access_hash = 13; - string first_name = 14; - string last_name = 15; - string username = 16; - string phone = 17; - UserProfilePhoto photo = 18; - UserStatus status = 19; - int32 bot_info_version = 20; - string restriction_reason = 21; - string bot_inline_placeholder = 22; - string lang_code = 23; +message InputSecureValue_Data { + SecureValueType type = 1; + SecureData data = 2; + InputSecureFile front_side = 3; + InputSecureFile reverse_side = 4; + InputSecureFile selfie = 5; + repeated InputSecureFile translation = 6; + repeated InputSecureFile files = 7; + SecurePlainData plain_data = 8; +} + +message InputSecureValue { + TLConstructor constructor = 1; + InputSecureValue_Data data2 = 2; +} + +// inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue; +message TL_inputSecureValue { + InputSecureValue_Data data2 = 2; } -message User { + +/////////////////////////////////////////////////////////////////////////////// +// WallPaper <-- +// + TL_wallPaper +// + TL_wallPaperSolid +// +message WallPaper_Data { + int32 id = 1; + string title = 2; + repeated PhotoSize sizes = 3; + int32 color = 4; + int32 bg_color = 5; +} + +message WallPaper { TLConstructor constructor = 1; - User_Data data2 = 2; + WallPaper_Data data2 = 2; } -// userEmpty#200250ba id:int = User; -message TL_userEmpty { - User_Data data2 = 2; +// wallPaper#ccb03657 id:int title:string sizes:Vector color:int = WallPaper; +message TL_wallPaper { + WallPaper_Data data2 = 2; } -// user#2e13f4c3 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?string bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User; -message TL_user { - User_Data data2 = 2; +// wallPaperSolid#63117f24 id:int title:string bg_color:int color:int = WallPaper; +message TL_wallPaperSolid { + WallPaper_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChatParticipant <-- -// + TL_chatParticipant -// + TL_chatParticipantCreator -// + TL_chatParticipantAdmin +// DialogPeer <-- +// + TL_dialogPeer // -message ChatParticipant_Data { - int32 user_id = 1; - int32 inviter_id = 2; - int32 date = 3; +message DialogPeer_Data { + Peer peer = 1; } -message ChatParticipant { +message DialogPeer { TLConstructor constructor = 1; - ChatParticipant_Data data2 = 2; + DialogPeer_Data data2 = 2; } -// chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant; -message TL_chatParticipant { - ChatParticipant_Data data2 = 2; +// dialogPeer#e56dbf05 peer:Peer = DialogPeer; +message TL_dialogPeer { + DialogPeer_Data data2 = 2; } -// chatParticipantCreator#da13538a user_id:int = ChatParticipant; -message TL_chatParticipantCreator { - ChatParticipant_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// SecureValueHash <-- +// + TL_secureValueHash +// +message SecureValueHash_Data { + SecureValueType type = 1; + bytes hash = 2; } -// chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant; -message TL_chatParticipantAdmin { - ChatParticipant_Data data2 = 2; +message SecureValueHash { + TLConstructor constructor = 1; + SecureValueHash_Data data2 = 2; +} + +// secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash; +message TL_secureValueHash { + SecureValueHash_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// contacts_Contacts <-- -// + TL_contacts_contactsNotModified -// + TL_contacts_contacts +// help_TermsOfService <-- +// + TL_help_termsOfService // -message contacts_Contacts_Data { - repeated Contact contacts = 1; - int32 saved_count = 2; - repeated User users = 3; +message help_TermsOfService_Data { + bool popup = 1; + DataJSON id = 2; + string text = 3; + repeated MessageEntity entities = 4; + int32 min_age_confirm = 5; } -message contacts_Contacts { +message help_TermsOfService { TLConstructor constructor = 1; - contacts_Contacts_Data data2 = 2; -} - -// contacts.contactsNotModified#b74ba9d2 = contacts.Contacts; -message TL_contacts_contactsNotModified { - contacts_Contacts_Data data2 = 2; + help_TermsOfService_Data data2 = 2; } -// contacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts; -message TL_contacts_contacts { - contacts_Contacts_Data data2 = 2; +// help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService; +message TL_help_termsOfService { + help_TermsOfService_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ChannelMessagesFilter <-- -// + TL_channelMessagesFilterEmpty -// + TL_channelMessagesFilter +// PageBlock <-- +// + TL_pageBlockUnsupported +// + TL_pageBlockTitle +// + TL_pageBlockSubtitle +// + TL_pageBlockAuthorDate +// + TL_pageBlockHeader +// + TL_pageBlockSubheader +// + TL_pageBlockParagraph +// + TL_pageBlockPreformatted +// + TL_pageBlockFooter +// + TL_pageBlockDivider +// + TL_pageBlockAnchor +// + TL_pageBlockList +// + TL_pageBlockBlockquote +// + TL_pageBlockPullquote +// + TL_pageBlockPhoto +// + TL_pageBlockVideo +// + TL_pageBlockCover +// + TL_pageBlockEmbed +// + TL_pageBlockEmbedPost +// + TL_pageBlockCollage +// + TL_pageBlockSlideshow +// + TL_pageBlockChannel +// + TL_pageBlockAudio // -message ChannelMessagesFilter_Data { - bool exclude_new_messages = 1; - repeated MessageRange ranges = 2; +message PageBlock_Data { + RichText text = 1; + RichText author_2 = 2; + int32 published_date = 3; + string language = 4; + string name = 5; + Bool ordered = 6; + repeated RichText items_7 = 7; + RichText caption = 8; + int64 photo_id = 9; + bool autoplay = 10; + bool loop = 11; + int64 video_id = 12; + PageBlock cover = 13; + bool full_width = 14; + bool allow_scrolling = 15; + string url = 16; + string html = 17; + int64 poster_photo_id = 18; + int32 w = 19; + int32 h = 20; + int64 webpage_id = 21; + int64 author_photo_id = 22; + string author_23 = 23; + int32 date = 24; + repeated PageBlock blocks = 25; + repeated PageBlock items_26 = 26; + Chat channel = 27; + int64 audio_id = 28; } -message ChannelMessagesFilter { +message PageBlock { TLConstructor constructor = 1; - ChannelMessagesFilter_Data data2 = 2; + PageBlock_Data data2 = 2; } -// channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter; -message TL_channelMessagesFilterEmpty { - ChannelMessagesFilter_Data data2 = 2; +// pageBlockUnsupported#13567e8a = PageBlock; +message TL_pageBlockUnsupported { + PageBlock_Data data2 = 2; } -// channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter; -message TL_channelMessagesFilter { - ChannelMessagesFilter_Data data2 = 2; +// pageBlockTitle#70abc3fd text:RichText = PageBlock; +message TL_pageBlockTitle { + PageBlock_Data data2 = 2; } +// pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock; +message TL_pageBlockSubtitle { + PageBlock_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// InlineBotSwitchPM <-- -// + TL_inlineBotSwitchPM -// -message InlineBotSwitchPM_Data { - string text = 1; - string start_param = 2; +// pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock; +message TL_pageBlockAuthorDate { + PageBlock_Data data2 = 2; } -message InlineBotSwitchPM { - TLConstructor constructor = 1; - InlineBotSwitchPM_Data data2 = 2; +// pageBlockHeader#bfd064ec text:RichText = PageBlock; +message TL_pageBlockHeader { + PageBlock_Data data2 = 2; } -// inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM; -message TL_inlineBotSwitchPM { - InlineBotSwitchPM_Data data2 = 2; +// pageBlockSubheader#f12bb6e1 text:RichText = PageBlock; +message TL_pageBlockSubheader { + PageBlock_Data data2 = 2; } +// pageBlockParagraph#467a0766 text:RichText = PageBlock; +message TL_pageBlockParagraph { + PageBlock_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// InputChatPhoto <-- -// + TL_inputChatPhotoEmpty -// + TL_inputChatUploadedPhoto -// + TL_inputChatPhoto -// -message InputChatPhoto_Data { - InputFile file = 1; - InputPhoto id = 2; +// pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock; +message TL_pageBlockPreformatted { + PageBlock_Data data2 = 2; } -message InputChatPhoto { - TLConstructor constructor = 1; - InputChatPhoto_Data data2 = 2; +// pageBlockFooter#48870999 text:RichText = PageBlock; +message TL_pageBlockFooter { + PageBlock_Data data2 = 2; } -// inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; -message TL_inputChatPhotoEmpty { - InputChatPhoto_Data data2 = 2; +// pageBlockDivider#db20b188 = PageBlock; +message TL_pageBlockDivider { + PageBlock_Data data2 = 2; } -// inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto; -message TL_inputChatUploadedPhoto { - InputChatPhoto_Data data2 = 2; +// pageBlockAnchor#ce0d37b0 name:string = PageBlock; +message TL_pageBlockAnchor { + PageBlock_Data data2 = 2; } -// inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; -message TL_inputChatPhoto { - InputChatPhoto_Data data2 = 2; +// pageBlockList#3a58c7f4 ordered:Bool items:Vector = PageBlock; +message TL_pageBlockList { + PageBlock_Data data2 = 2; +} + +// pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock; +message TL_pageBlockBlockquote { + PageBlock_Data data2 = 2; +} + +// pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock; +message TL_pageBlockPullquote { + PageBlock_Data data2 = 2; } +// pageBlockPhoto#e9c69982 photo_id:long caption:RichText = PageBlock; +message TL_pageBlockPhoto { + PageBlock_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// auth_Authorization <-- -// + TL_auth_authorization -// -message auth_Authorization_Data { - int32 tmp_sessions = 1; - User user = 2; +// pageBlockVideo#d9d71866 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:RichText = PageBlock; +message TL_pageBlockVideo { + PageBlock_Data data2 = 2; } -message auth_Authorization { - TLConstructor constructor = 1; - auth_Authorization_Data data2 = 2; +// pageBlockCover#39f23300 cover:PageBlock = PageBlock; +message TL_pageBlockCover { + PageBlock_Data data2 = 2; } -// auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization; -message TL_auth_authorization { - auth_Authorization_Data data2 = 2; +// pageBlockEmbed#cde200d1 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:int h:int caption:RichText = PageBlock; +message TL_pageBlockEmbed { + PageBlock_Data data2 = 2; } +// pageBlockEmbedPost#292c7be9 url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:RichText = PageBlock; +message TL_pageBlockEmbedPost { + PageBlock_Data data2 = 2; +} -/////////////////////////////////////////////////////////////////////////////// -// ChatInvite <-- -// + TL_chatInviteAlready -// + TL_chatInvite -// -message ChatInvite_Data { - Chat chat = 1; - bool channel = 2; - bool broadcast = 3; - bool public = 4; - bool megagroup = 5; - string title = 6; - ChatPhoto photo = 7; - int32 participants_count = 8; - repeated User participants = 9; +// pageBlockCollage#8b31c4f items:Vector caption:RichText = PageBlock; +message TL_pageBlockCollage { + PageBlock_Data data2 = 2; } -message ChatInvite { - TLConstructor constructor = 1; - ChatInvite_Data data2 = 2; +// pageBlockSlideshow#130c8963 items:Vector caption:RichText = PageBlock; +message TL_pageBlockSlideshow { + PageBlock_Data data2 = 2; } -// chatInviteAlready#5a686d7c chat:Chat = ChatInvite; -message TL_chatInviteAlready { - ChatInvite_Data data2 = 2; +// pageBlockChannel#ef1751b5 channel:Chat = PageBlock; +message TL_pageBlockChannel { + PageBlock_Data data2 = 2; } -// chatInvite#db74f558 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:ChatPhoto participants_count:int participants:flags.4?Vector = ChatInvite; -message TL_chatInvite { - ChatInvite_Data data2 = 2; +// pageBlockAudio#31b81a7f audio_id:long caption:RichText = PageBlock; +message TL_pageBlockAudio { + PageBlock_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// account_SentEmailCode <-- -// + TL_account_sentEmailCode +// InputMessage <-- +// + TL_inputMessageID +// + TL_inputMessageReplyTo +// + TL_inputMessagePinned // -message account_SentEmailCode_Data { - string email_pattern = 1; - int32 length = 2; +message InputMessage_Data { + int32 id = 1; } -message account_SentEmailCode { +message InputMessage { TLConstructor constructor = 1; - account_SentEmailCode_Data data2 = 2; + InputMessage_Data data2 = 2; } -// account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode; -message TL_account_sentEmailCode { - account_SentEmailCode_Data data2 = 2; +// inputMessageID#a676a322 id:int = InputMessage; +message TL_inputMessageID { + InputMessage_Data data2 = 2; +} + +// inputMessageReplyTo#bad88395 id:int = InputMessage; +message TL_inputMessageReplyTo { + InputMessage_Data data2 = 2; +} + +// inputMessagePinned#86872538 = InputMessage; +message TL_inputMessagePinned { + InputMessage_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// photos_Photos <-- -// + TL_photos_photos -// + TL_photos_photosSlice +// payments_SavedInfo <-- +// + TL_payments_savedInfo // -message photos_Photos_Data { - repeated Photo photos = 1; - repeated User users = 2; - int32 count = 3; +message payments_SavedInfo_Data { + bool has_saved_credentials = 1; + PaymentRequestedInfo saved_info = 2; } -message photos_Photos { +message payments_SavedInfo { TLConstructor constructor = 1; - photos_Photos_Data data2 = 2; -} - -// photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos; -message TL_photos_photos { - photos_Photos_Data data2 = 2; + payments_SavedInfo_Data data2 = 2; } -// photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos; -message TL_photos_photosSlice { - photos_Photos_Data data2 = 2; +// payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; +message TL_payments_savedInfo { + payments_SavedInfo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// NotifyPeer <-- -// + TL_notifyPeer -// + TL_notifyUsers -// + TL_notifyChats +// InputChatPhoto <-- +// + TL_inputChatPhotoEmpty +// + TL_inputChatUploadedPhoto +// + TL_inputChatPhoto // -message NotifyPeer_Data { - Peer peer = 1; +message InputChatPhoto_Data { + InputFile file = 1; + InputPhoto id = 2; } -message NotifyPeer { +message InputChatPhoto { TLConstructor constructor = 1; - NotifyPeer_Data data2 = 2; + InputChatPhoto_Data data2 = 2; } -// notifyPeer#9fd40bd8 peer:Peer = NotifyPeer; -message TL_notifyPeer { - NotifyPeer_Data data2 = 2; +// inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; +message TL_inputChatPhotoEmpty { + InputChatPhoto_Data data2 = 2; } -// notifyUsers#b4c83b4c = NotifyPeer; -message TL_notifyUsers { - NotifyPeer_Data data2 = 2; +// inputChatUploadedPhoto#927c55b4 file:InputFile = InputChatPhoto; +message TL_inputChatUploadedPhoto { + InputChatPhoto_Data data2 = 2; } -// notifyChats#c007cec3 = NotifyPeer; -message TL_notifyChats { - NotifyPeer_Data data2 = 2; +// inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; +message TL_inputChatPhoto { + InputChatPhoto_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// InputStickerSet <-- -// + TL_inputStickerSetEmpty -// + TL_inputStickerSetID -// + TL_inputStickerSetShortName +// InputEncryptedFile <-- +// + TL_inputEncryptedFileEmpty +// + TL_inputEncryptedFileUploaded +// + TL_inputEncryptedFile +// + TL_inputEncryptedFileBigUploaded // -message InputStickerSet_Data { +message InputEncryptedFile_Data { int64 id = 1; - int64 access_hash = 2; - string short_name = 3; + int32 parts = 2; + string md5_checksum = 3; + int32 key_fingerprint = 4; + int64 access_hash = 5; } -message InputStickerSet { +message InputEncryptedFile { TLConstructor constructor = 1; - InputStickerSet_Data data2 = 2; + InputEncryptedFile_Data data2 = 2; } -// inputStickerSetEmpty#ffb62b95 = InputStickerSet; -message TL_inputStickerSetEmpty { - InputStickerSet_Data data2 = 2; +// inputEncryptedFileEmpty#1837c364 = InputEncryptedFile; +message TL_inputEncryptedFileEmpty { + InputEncryptedFile_Data data2 = 2; } -// inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; -message TL_inputStickerSetID { - InputStickerSet_Data data2 = 2; +// inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile; +message TL_inputEncryptedFileUploaded { + InputEncryptedFile_Data data2 = 2; } -// inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; -message TL_inputStickerSetShortName { - InputStickerSet_Data data2 = 2; +// inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile; +message TL_inputEncryptedFile { + InputEncryptedFile_Data data2 = 2; +} + +// inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile; +message TL_inputEncryptedFileBigUploaded { + InputEncryptedFile_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// messages_SavedGifs <-- -// + TL_messages_savedGifsNotModified -// + TL_messages_savedGifs +// auth_PasswordRecovery <-- +// + TL_auth_passwordRecovery // -message messages_SavedGifs_Data { - int32 hash = 1; - repeated Document gifs = 2; +message auth_PasswordRecovery_Data { + string email_pattern = 1; } -message messages_SavedGifs { +message auth_PasswordRecovery { TLConstructor constructor = 1; - messages_SavedGifs_Data data2 = 2; -} - -// messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs; -message TL_messages_savedGifsNotModified { - messages_SavedGifs_Data data2 = 2; + auth_PasswordRecovery_Data data2 = 2; } -// messages.savedGifs#2e0709a5 hash:int gifs:Vector = messages.SavedGifs; -message TL_messages_savedGifs { - messages_SavedGifs_Data data2 = 2; +// auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery; +message TL_auth_passwordRecovery { + auth_PasswordRecovery_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// upload_CdnFile <-- -// + TL_upload_cdnFileReuploadNeeded -// + TL_upload_cdnFile +// FileHash <-- +// + TL_fileHash // -message upload_CdnFile_Data { - bytes request_token = 1; - bytes bytes = 2; +message FileHash_Data { + int32 offset = 1; + int32 limit = 2; + bytes hash = 3; } -message upload_CdnFile { +message FileHash { TLConstructor constructor = 1; - upload_CdnFile_Data data2 = 2; -} - -// upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile; -message TL_upload_cdnFileReuploadNeeded { - upload_CdnFile_Data data2 = 2; + FileHash_Data data2 = 2; } -// upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile; -message TL_upload_cdnFile { - upload_CdnFile_Data data2 = 2; +// fileHash#6242c773 offset:int limit:int hash:bytes = FileHash; +message TL_fileHash { + FileHash_Data data2 = 2; } diff --git a/mtproto/schema.tl.sync_service.pb.go b/mtproto/schema.tl.sync_service.pb.go index d823a7cbf..03685361b 100644 --- a/mtproto/schema.tl.sync_service.pb.go +++ b/mtproto/schema.tl.sync_service.pb.go @@ -35,7 +35,7 @@ func (m *TLLangpackGetLanguagesLayer70) Reset() { *m = TLLangpackGetLang func (m *TLLangpackGetLanguagesLayer70) String() string { return proto.CompactTextString(m) } func (*TLLangpackGetLanguagesLayer70) ProtoMessage() {} func (*TLLangpackGetLanguagesLayer70) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{0} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{0} } func (m *TLLangpackGetLanguagesLayer70) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLLangpackGetLanguagesLayer70.Unmarshal(m, b) @@ -68,7 +68,7 @@ func (m *TLHelpGetScheme) Reset() { *m = TLHelpGetScheme{} } func (m *TLHelpGetScheme) String() string { return proto.CompactTextString(m) } func (*TLHelpGetScheme) ProtoMessage() {} func (*TLHelpGetScheme) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{1} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{1} } func (m *TLHelpGetScheme) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetScheme.Unmarshal(m, b) @@ -110,7 +110,7 @@ func (m *TLMessagesReadHistoryLayer2) Reset() { *m = TLMessagesReadHisto func (m *TLMessagesReadHistoryLayer2) String() string { return proto.CompactTextString(m) } func (*TLMessagesReadHistoryLayer2) ProtoMessage() {} func (*TLMessagesReadHistoryLayer2) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{2} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{2} } func (m *TLMessagesReadHistoryLayer2) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReadHistoryLayer2.Unmarshal(m, b) @@ -164,7 +164,7 @@ func (m *TLHelpGetInviteTextLayer46) Reset() { *m = TLHelpGetInviteTextL func (m *TLHelpGetInviteTextLayer46) String() string { return proto.CompactTextString(m) } func (*TLHelpGetInviteTextLayer46) ProtoMessage() {} func (*TLHelpGetInviteTextLayer46) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{3} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{3} } func (m *TLHelpGetInviteTextLayer46) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetInviteTextLayer46.Unmarshal(m, b) @@ -207,7 +207,7 @@ func (m *TLHelpGetAppUpdateLayer46) Reset() { *m = TLHelpGetAppUpdateLay func (m *TLHelpGetAppUpdateLayer46) String() string { return proto.CompactTextString(m) } func (*TLHelpGetAppUpdateLayer46) ProtoMessage() {} func (*TLHelpGetAppUpdateLayer46) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{4} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{4} } func (m *TLHelpGetAppUpdateLayer46) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetAppUpdateLayer46.Unmarshal(m, b) @@ -271,7 +271,7 @@ func (m *TLUpdatesGetChannelDifferenceLayer46) Reset() { *m = TLUpdatesG func (m *TLUpdatesGetChannelDifferenceLayer46) String() string { return proto.CompactTextString(m) } func (*TLUpdatesGetChannelDifferenceLayer46) ProtoMessage() {} func (*TLUpdatesGetChannelDifferenceLayer46) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{5} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{5} } func (m *TLUpdatesGetChannelDifferenceLayer46) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUpdatesGetChannelDifferenceLayer46.Unmarshal(m, b) @@ -337,7 +337,7 @@ func (m *TLAuthSendCodeLayer51) Reset() { *m = TLAuthSendCodeLayer51{} } func (m *TLAuthSendCodeLayer51) String() string { return proto.CompactTextString(m) } func (*TLAuthSendCodeLayer51) ProtoMessage() {} func (*TLAuthSendCodeLayer51) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{6} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{6} } func (m *TLAuthSendCodeLayer51) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthSendCodeLayer51.Unmarshal(m, b) @@ -418,7 +418,7 @@ func (m *TLMessagesGetHistoryLayer51) Reset() { *m = TLMessagesGetHistor func (m *TLMessagesGetHistoryLayer51) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetHistoryLayer51) ProtoMessage() {} func (*TLMessagesGetHistoryLayer51) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{7} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{7} } func (m *TLMessagesGetHistoryLayer51) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetHistoryLayer51.Unmarshal(m, b) @@ -499,7 +499,7 @@ func (m *TLHelpGetAppUpdateLayer62) Reset() { *m = TLHelpGetAppUpdateLay func (m *TLHelpGetAppUpdateLayer62) String() string { return proto.CompactTextString(m) } func (*TLHelpGetAppUpdateLayer62) ProtoMessage() {} func (*TLHelpGetAppUpdateLayer62) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{8} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{8} } func (m *TLHelpGetAppUpdateLayer62) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetAppUpdateLayer62.Unmarshal(m, b) @@ -536,7 +536,7 @@ func (m *TLMessagesGetDialogsLayer62) Reset() { *m = TLMessagesGetDialog func (m *TLMessagesGetDialogsLayer62) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetDialogsLayer62) ProtoMessage() {} func (*TLMessagesGetDialogsLayer62) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{9} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{9} } func (m *TLMessagesGetDialogsLayer62) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetDialogsLayer62.Unmarshal(m, b) @@ -611,7 +611,7 @@ func (m *TLInitConnectionLayer68) Reset() { *m = TLInitConnectionLayer68 func (m *TLInitConnectionLayer68) String() string { return proto.CompactTextString(m) } func (*TLInitConnectionLayer68) ProtoMessage() {} func (*TLInitConnectionLayer68) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{10} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{10} } func (m *TLInitConnectionLayer68) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInitConnectionLayer68.Unmarshal(m, b) @@ -708,7 +708,7 @@ func (m *TLMessagesSearchLayer68) Reset() { *m = TLMessagesSearchLayer68 func (m *TLMessagesSearchLayer68) String() string { return proto.CompactTextString(m) } func (*TLMessagesSearchLayer68) ProtoMessage() {} func (*TLMessagesSearchLayer68) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{11} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{11} } func (m *TLMessagesSearchLayer68) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSearchLayer68.Unmarshal(m, b) @@ -805,7 +805,7 @@ func (m *TLAccountRegisterDeviceLayer71) Reset() { *m = TLAccountRegiste func (m *TLAccountRegisterDeviceLayer71) String() string { return proto.CompactTextString(m) } func (*TLAccountRegisterDeviceLayer71) ProtoMessage() {} func (*TLAccountRegisterDeviceLayer71) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{12} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{12} } func (m *TLAccountRegisterDeviceLayer71) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountRegisterDeviceLayer71.Unmarshal(m, b) @@ -853,7 +853,7 @@ func (m *TLAccountUnregisterDeviceLayer71) Reset() { *m = TLAccountUnreg func (m *TLAccountUnregisterDeviceLayer71) String() string { return proto.CompactTextString(m) } func (*TLAccountUnregisterDeviceLayer71) ProtoMessage() {} func (*TLAccountUnregisterDeviceLayer71) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{13} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{13} } func (m *TLAccountUnregisterDeviceLayer71) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountUnregisterDeviceLayer71.Unmarshal(m, b) @@ -900,7 +900,7 @@ func (m *TLMessagesGetMessagesLayer71) Reset() { *m = TLMessagesGetMessa func (m *TLMessagesGetMessagesLayer71) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetMessagesLayer71) ProtoMessage() {} func (*TLMessagesGetMessagesLayer71) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{14} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{14} } func (m *TLMessagesGetMessagesLayer71) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetMessagesLayer71.Unmarshal(m, b) @@ -940,7 +940,7 @@ func (m *TLLangpackGetLangPackLayer71) Reset() { *m = TLLangpackGetLangP func (m *TLLangpackGetLangPackLayer71) String() string { return proto.CompactTextString(m) } func (*TLLangpackGetLangPackLayer71) ProtoMessage() {} func (*TLLangpackGetLangPackLayer71) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{15} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{15} } func (m *TLLangpackGetLangPackLayer71) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLLangpackGetLangPackLayer71.Unmarshal(m, b) @@ -967,6 +967,54 @@ func (m *TLLangpackGetLangPackLayer71) GetLangCode() string { return "" } +// ///////////////////////////////////////////////////////////////////////////// +// messages.getRecentLocations#249431e2 peer:InputPeer limit:int = messages.Messages; +type TLMessagesGetRecentLocationsLayer72 struct { + Peer *InputPeer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLMessagesGetRecentLocationsLayer72) Reset() { *m = TLMessagesGetRecentLocationsLayer72{} } +func (m *TLMessagesGetRecentLocationsLayer72) String() string { return proto.CompactTextString(m) } +func (*TLMessagesGetRecentLocationsLayer72) ProtoMessage() {} +func (*TLMessagesGetRecentLocationsLayer72) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{16} +} +func (m *TLMessagesGetRecentLocationsLayer72) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMessagesGetRecentLocationsLayer72.Unmarshal(m, b) +} +func (m *TLMessagesGetRecentLocationsLayer72) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMessagesGetRecentLocationsLayer72.Marshal(b, m, deterministic) +} +func (dst *TLMessagesGetRecentLocationsLayer72) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMessagesGetRecentLocationsLayer72.Merge(dst, src) +} +func (m *TLMessagesGetRecentLocationsLayer72) XXX_Size() int { + return xxx_messageInfo_TLMessagesGetRecentLocationsLayer72.Size(m) +} +func (m *TLMessagesGetRecentLocationsLayer72) XXX_DiscardUnknown() { + xxx_messageInfo_TLMessagesGetRecentLocationsLayer72.DiscardUnknown(m) +} + +var xxx_messageInfo_TLMessagesGetRecentLocationsLayer72 proto.InternalMessageInfo + +func (m *TLMessagesGetRecentLocationsLayer72) GetPeer() *InputPeer { + if m != nil { + return m.Peer + } + return nil +} + +func (m *TLMessagesGetRecentLocationsLayer72) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + // ///////////////////////////////////////////////////////////////////////////// // invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; type TLInvokeAfterMsg struct { @@ -981,7 +1029,7 @@ func (m *TLInvokeAfterMsg) Reset() { *m = TLInvokeAfterMsg{} } func (m *TLInvokeAfterMsg) String() string { return proto.CompactTextString(m) } func (*TLInvokeAfterMsg) ProtoMessage() {} func (*TLInvokeAfterMsg) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{16} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{17} } func (m *TLInvokeAfterMsg) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInvokeAfterMsg.Unmarshal(m, b) @@ -1029,7 +1077,7 @@ func (m *TLInvokeAfterMsgs) Reset() { *m = TLInvokeAfterMsgs{} } func (m *TLInvokeAfterMsgs) String() string { return proto.CompactTextString(m) } func (*TLInvokeAfterMsgs) ProtoMessage() {} func (*TLInvokeAfterMsgs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{17} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{18} } func (m *TLInvokeAfterMsgs) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInvokeAfterMsgs.Unmarshal(m, b) @@ -1084,7 +1132,7 @@ func (m *TLInitConnection) Reset() { *m = TLInitConnection{} } func (m *TLInitConnection) String() string { return proto.CompactTextString(m) } func (*TLInitConnection) ProtoMessage() {} func (*TLInitConnection) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{18} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{19} } func (m *TLInitConnection) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInitConnection.Unmarshal(m, b) @@ -1181,7 +1229,7 @@ func (m *TLInvokeWithLayer) Reset() { *m = TLInvokeWithLayer{} } func (m *TLInvokeWithLayer) String() string { return proto.CompactTextString(m) } func (*TLInvokeWithLayer) ProtoMessage() {} func (*TLInvokeWithLayer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{19} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{20} } func (m *TLInvokeWithLayer) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInvokeWithLayer.Unmarshal(m, b) @@ -1228,7 +1276,7 @@ func (m *TLInvokeWithoutUpdates) Reset() { *m = TLInvokeWithoutUpdates{} func (m *TLInvokeWithoutUpdates) String() string { return proto.CompactTextString(m) } func (*TLInvokeWithoutUpdates) ProtoMessage() {} func (*TLInvokeWithoutUpdates) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{20} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{21} } func (m *TLInvokeWithoutUpdates) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInvokeWithoutUpdates.Unmarshal(m, b) @@ -1269,7 +1317,7 @@ func (m *TLInvokeWithMessagesRange) Reset() { *m = TLInvokeWithMessagesR func (m *TLInvokeWithMessagesRange) String() string { return proto.CompactTextString(m) } func (*TLInvokeWithMessagesRange) ProtoMessage() {} func (*TLInvokeWithMessagesRange) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{21} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{22} } func (m *TLInvokeWithMessagesRange) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInvokeWithMessagesRange.Unmarshal(m, b) @@ -1317,7 +1365,7 @@ func (m *TLInvokeWithTakeout) Reset() { *m = TLInvokeWithTakeout{} } func (m *TLInvokeWithTakeout) String() string { return proto.CompactTextString(m) } func (*TLInvokeWithTakeout) ProtoMessage() {} func (*TLInvokeWithTakeout) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{22} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{23} } func (m *TLInvokeWithTakeout) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLInvokeWithTakeout.Unmarshal(m, b) @@ -1368,7 +1416,7 @@ func (m *TLAuthSendCode) Reset() { *m = TLAuthSendCode{} } func (m *TLAuthSendCode) String() string { return proto.CompactTextString(m) } func (*TLAuthSendCode) ProtoMessage() {} func (*TLAuthSendCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{23} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{24} } func (m *TLAuthSendCode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthSendCode.Unmarshal(m, b) @@ -1440,7 +1488,7 @@ func (m *TLAuthSignUp) Reset() { *m = TLAuthSignUp{} } func (m *TLAuthSignUp) String() string { return proto.CompactTextString(m) } func (*TLAuthSignUp) ProtoMessage() {} func (*TLAuthSignUp) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{24} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{25} } func (m *TLAuthSignUp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthSignUp.Unmarshal(m, b) @@ -1510,7 +1558,7 @@ func (m *TLAuthSignIn) Reset() { *m = TLAuthSignIn{} } func (m *TLAuthSignIn) String() string { return proto.CompactTextString(m) } func (*TLAuthSignIn) ProtoMessage() {} func (*TLAuthSignIn) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{25} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{26} } func (m *TLAuthSignIn) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthSignIn.Unmarshal(m, b) @@ -1563,7 +1611,7 @@ func (m *TLAuthLogOut) Reset() { *m = TLAuthLogOut{} } func (m *TLAuthLogOut) String() string { return proto.CompactTextString(m) } func (*TLAuthLogOut) ProtoMessage() {} func (*TLAuthLogOut) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{26} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{27} } func (m *TLAuthLogOut) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthLogOut.Unmarshal(m, b) @@ -1595,7 +1643,7 @@ func (m *TLAuthResetAuthorizations) Reset() { *m = TLAuthResetAuthorizat func (m *TLAuthResetAuthorizations) String() string { return proto.CompactTextString(m) } func (*TLAuthResetAuthorizations) ProtoMessage() {} func (*TLAuthResetAuthorizations) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{27} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{28} } func (m *TLAuthResetAuthorizations) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthResetAuthorizations.Unmarshal(m, b) @@ -1628,7 +1676,7 @@ func (m *TLAuthExportAuthorization) Reset() { *m = TLAuthExportAuthoriza func (m *TLAuthExportAuthorization) String() string { return proto.CompactTextString(m) } func (*TLAuthExportAuthorization) ProtoMessage() {} func (*TLAuthExportAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{28} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{29} } func (m *TLAuthExportAuthorization) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthExportAuthorization.Unmarshal(m, b) @@ -1669,7 +1717,7 @@ func (m *TLAuthImportAuthorization) Reset() { *m = TLAuthImportAuthoriza func (m *TLAuthImportAuthorization) String() string { return proto.CompactTextString(m) } func (*TLAuthImportAuthorization) ProtoMessage() {} func (*TLAuthImportAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{29} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{30} } func (m *TLAuthImportAuthorization) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthImportAuthorization.Unmarshal(m, b) @@ -1719,7 +1767,7 @@ func (m *TLAuthBindTempAuthKey) Reset() { *m = TLAuthBindTempAuthKey{} } func (m *TLAuthBindTempAuthKey) String() string { return proto.CompactTextString(m) } func (*TLAuthBindTempAuthKey) ProtoMessage() {} func (*TLAuthBindTempAuthKey) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{30} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{31} } func (m *TLAuthBindTempAuthKey) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthBindTempAuthKey.Unmarshal(m, b) @@ -1783,7 +1831,7 @@ func (m *TLAuthImportBotAuthorization) Reset() { *m = TLAuthImportBotAut func (m *TLAuthImportBotAuthorization) String() string { return proto.CompactTextString(m) } func (*TLAuthImportBotAuthorization) ProtoMessage() {} func (*TLAuthImportBotAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{31} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{32} } func (m *TLAuthImportBotAuthorization) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthImportBotAuthorization.Unmarshal(m, b) @@ -1844,7 +1892,7 @@ func (m *TLAuthCheckPassword) Reset() { *m = TLAuthCheckPassword{} } func (m *TLAuthCheckPassword) String() string { return proto.CompactTextString(m) } func (*TLAuthCheckPassword) ProtoMessage() {} func (*TLAuthCheckPassword) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{32} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{33} } func (m *TLAuthCheckPassword) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthCheckPassword.Unmarshal(m, b) @@ -1883,7 +1931,7 @@ func (m *TLAuthRequestPasswordRecovery) Reset() { *m = TLAuthRequestPass func (m *TLAuthRequestPasswordRecovery) String() string { return proto.CompactTextString(m) } func (*TLAuthRequestPasswordRecovery) ProtoMessage() {} func (*TLAuthRequestPasswordRecovery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{33} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{34} } func (m *TLAuthRequestPasswordRecovery) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthRequestPasswordRecovery.Unmarshal(m, b) @@ -1916,7 +1964,7 @@ func (m *TLAuthRecoverPassword) Reset() { *m = TLAuthRecoverPassword{} } func (m *TLAuthRecoverPassword) String() string { return proto.CompactTextString(m) } func (*TLAuthRecoverPassword) ProtoMessage() {} func (*TLAuthRecoverPassword) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{34} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{35} } func (m *TLAuthRecoverPassword) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthRecoverPassword.Unmarshal(m, b) @@ -1957,7 +2005,7 @@ func (m *TLAuthResendCode) Reset() { *m = TLAuthResendCode{} } func (m *TLAuthResendCode) String() string { return proto.CompactTextString(m) } func (*TLAuthResendCode) ProtoMessage() {} func (*TLAuthResendCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{35} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{36} } func (m *TLAuthResendCode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthResendCode.Unmarshal(m, b) @@ -2005,7 +2053,7 @@ func (m *TLAuthCancelCode) Reset() { *m = TLAuthCancelCode{} } func (m *TLAuthCancelCode) String() string { return proto.CompactTextString(m) } func (*TLAuthCancelCode) ProtoMessage() {} func (*TLAuthCancelCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{36} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{37} } func (m *TLAuthCancelCode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthCancelCode.Unmarshal(m, b) @@ -2052,7 +2100,7 @@ func (m *TLAuthDropTempAuthKeys) Reset() { *m = TLAuthDropTempAuthKeys{} func (m *TLAuthDropTempAuthKeys) String() string { return proto.CompactTextString(m) } func (*TLAuthDropTempAuthKeys) ProtoMessage() {} func (*TLAuthDropTempAuthKeys) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{37} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{38} } func (m *TLAuthDropTempAuthKeys) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAuthDropTempAuthKeys.Unmarshal(m, b) @@ -2096,7 +2144,7 @@ func (m *TLAccountRegisterDevice) Reset() { *m = TLAccountRegisterDevice func (m *TLAccountRegisterDevice) String() string { return proto.CompactTextString(m) } func (*TLAccountRegisterDevice) ProtoMessage() {} func (*TLAccountRegisterDevice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{38} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{39} } func (m *TLAccountRegisterDevice) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountRegisterDevice.Unmarshal(m, b) @@ -2166,7 +2214,7 @@ func (m *TLAccountUnregisterDevice) Reset() { *m = TLAccountUnregisterDe func (m *TLAccountUnregisterDevice) String() string { return proto.CompactTextString(m) } func (*TLAccountUnregisterDevice) ProtoMessage() {} func (*TLAccountUnregisterDevice) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{39} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{40} } func (m *TLAccountUnregisterDevice) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountUnregisterDevice.Unmarshal(m, b) @@ -2221,7 +2269,7 @@ func (m *TLAccountUpdateNotifySettings) Reset() { *m = TLAccountUpdateNo func (m *TLAccountUpdateNotifySettings) String() string { return proto.CompactTextString(m) } func (*TLAccountUpdateNotifySettings) ProtoMessage() {} func (*TLAccountUpdateNotifySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{40} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{41} } func (m *TLAccountUpdateNotifySettings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountUpdateNotifySettings.Unmarshal(m, b) @@ -2268,7 +2316,7 @@ func (m *TLAccountGetNotifySettings) Reset() { *m = TLAccountGetNotifySe func (m *TLAccountGetNotifySettings) String() string { return proto.CompactTextString(m) } func (*TLAccountGetNotifySettings) ProtoMessage() {} func (*TLAccountGetNotifySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{41} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{42} } func (m *TLAccountGetNotifySettings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetNotifySettings.Unmarshal(m, b) @@ -2307,7 +2355,7 @@ func (m *TLAccountResetNotifySettings) Reset() { *m = TLAccountResetNoti func (m *TLAccountResetNotifySettings) String() string { return proto.CompactTextString(m) } func (*TLAccountResetNotifySettings) ProtoMessage() {} func (*TLAccountResetNotifySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{42} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{43} } func (m *TLAccountResetNotifySettings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountResetNotifySettings.Unmarshal(m, b) @@ -2342,7 +2390,7 @@ func (m *TLAccountUpdateProfile) Reset() { *m = TLAccountUpdateProfile{} func (m *TLAccountUpdateProfile) String() string { return proto.CompactTextString(m) } func (*TLAccountUpdateProfile) ProtoMessage() {} func (*TLAccountUpdateProfile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{43} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{44} } func (m *TLAccountUpdateProfile) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountUpdateProfile.Unmarshal(m, b) @@ -2396,7 +2444,7 @@ func (m *TLAccountUpdateStatus) Reset() { *m = TLAccountUpdateStatus{} } func (m *TLAccountUpdateStatus) String() string { return proto.CompactTextString(m) } func (*TLAccountUpdateStatus) ProtoMessage() {} func (*TLAccountUpdateStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{44} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{45} } func (m *TLAccountUpdateStatus) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountUpdateStatus.Unmarshal(m, b) @@ -2435,7 +2483,7 @@ func (m *TLAccountGetWallPapers) Reset() { *m = TLAccountGetWallPapers{} func (m *TLAccountGetWallPapers) String() string { return proto.CompactTextString(m) } func (*TLAccountGetWallPapers) ProtoMessage() {} func (*TLAccountGetWallPapers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{45} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{46} } func (m *TLAccountGetWallPapers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetWallPapers.Unmarshal(m, b) @@ -2469,7 +2517,7 @@ func (m *TLAccountReportPeer) Reset() { *m = TLAccountReportPeer{} } func (m *TLAccountReportPeer) String() string { return proto.CompactTextString(m) } func (*TLAccountReportPeer) ProtoMessage() {} func (*TLAccountReportPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{46} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{47} } func (m *TLAccountReportPeer) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountReportPeer.Unmarshal(m, b) @@ -2516,7 +2564,7 @@ func (m *TLAccountCheckUsername) Reset() { *m = TLAccountCheckUsername{} func (m *TLAccountCheckUsername) String() string { return proto.CompactTextString(m) } func (*TLAccountCheckUsername) ProtoMessage() {} func (*TLAccountCheckUsername) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{47} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{48} } func (m *TLAccountCheckUsername) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountCheckUsername.Unmarshal(m, b) @@ -2556,7 +2604,7 @@ func (m *TLAccountUpdateUsername) Reset() { *m = TLAccountUpdateUsername func (m *TLAccountUpdateUsername) String() string { return proto.CompactTextString(m) } func (*TLAccountUpdateUsername) ProtoMessage() {} func (*TLAccountUpdateUsername) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{48} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{49} } func (m *TLAccountUpdateUsername) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountUpdateUsername.Unmarshal(m, b) @@ -2596,7 +2644,7 @@ func (m *TLAccountGetPrivacy) Reset() { *m = TLAccountGetPrivacy{} } func (m *TLAccountGetPrivacy) String() string { return proto.CompactTextString(m) } func (*TLAccountGetPrivacy) ProtoMessage() {} func (*TLAccountGetPrivacy) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{49} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{50} } func (m *TLAccountGetPrivacy) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetPrivacy.Unmarshal(m, b) @@ -2637,7 +2685,7 @@ func (m *TLAccountSetPrivacy) Reset() { *m = TLAccountSetPrivacy{} } func (m *TLAccountSetPrivacy) String() string { return proto.CompactTextString(m) } func (*TLAccountSetPrivacy) ProtoMessage() {} func (*TLAccountSetPrivacy) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{50} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{51} } func (m *TLAccountSetPrivacy) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountSetPrivacy.Unmarshal(m, b) @@ -2684,7 +2732,7 @@ func (m *TLAccountDeleteAccount) Reset() { *m = TLAccountDeleteAccount{} func (m *TLAccountDeleteAccount) String() string { return proto.CompactTextString(m) } func (*TLAccountDeleteAccount) ProtoMessage() {} func (*TLAccountDeleteAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{51} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{52} } func (m *TLAccountDeleteAccount) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountDeleteAccount.Unmarshal(m, b) @@ -2723,7 +2771,7 @@ func (m *TLAccountGetAccountTTL) Reset() { *m = TLAccountGetAccountTTL{} func (m *TLAccountGetAccountTTL) String() string { return proto.CompactTextString(m) } func (*TLAccountGetAccountTTL) ProtoMessage() {} func (*TLAccountGetAccountTTL) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{52} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{53} } func (m *TLAccountGetAccountTTL) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetAccountTTL.Unmarshal(m, b) @@ -2756,7 +2804,7 @@ func (m *TLAccountSetAccountTTL) Reset() { *m = TLAccountSetAccountTTL{} func (m *TLAccountSetAccountTTL) String() string { return proto.CompactTextString(m) } func (*TLAccountSetAccountTTL) ProtoMessage() {} func (*TLAccountSetAccountTTL) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{53} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{54} } func (m *TLAccountSetAccountTTL) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountSetAccountTTL.Unmarshal(m, b) @@ -2798,7 +2846,7 @@ func (m *TLAccountSendChangePhoneCode) Reset() { *m = TLAccountSendChang func (m *TLAccountSendChangePhoneCode) String() string { return proto.CompactTextString(m) } func (*TLAccountSendChangePhoneCode) ProtoMessage() {} func (*TLAccountSendChangePhoneCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{54} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{55} } func (m *TLAccountSendChangePhoneCode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountSendChangePhoneCode.Unmarshal(m, b) @@ -2854,7 +2902,7 @@ func (m *TLAccountChangePhone) Reset() { *m = TLAccountChangePhone{} } func (m *TLAccountChangePhone) String() string { return proto.CompactTextString(m) } func (*TLAccountChangePhone) ProtoMessage() {} func (*TLAccountChangePhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{55} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{56} } func (m *TLAccountChangePhone) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountChangePhone.Unmarshal(m, b) @@ -2908,7 +2956,7 @@ func (m *TLAccountUpdateDeviceLocked) Reset() { *m = TLAccountUpdateDevi func (m *TLAccountUpdateDeviceLocked) String() string { return proto.CompactTextString(m) } func (*TLAccountUpdateDeviceLocked) ProtoMessage() {} func (*TLAccountUpdateDeviceLocked) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{56} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{57} } func (m *TLAccountUpdateDeviceLocked) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountUpdateDeviceLocked.Unmarshal(m, b) @@ -2947,7 +2995,7 @@ func (m *TLAccountGetAuthorizations) Reset() { *m = TLAccountGetAuthoriz func (m *TLAccountGetAuthorizations) String() string { return proto.CompactTextString(m) } func (*TLAccountGetAuthorizations) ProtoMessage() {} func (*TLAccountGetAuthorizations) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{57} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{58} } func (m *TLAccountGetAuthorizations) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetAuthorizations.Unmarshal(m, b) @@ -2980,7 +3028,7 @@ func (m *TLAccountResetAuthorization) Reset() { *m = TLAccountResetAutho func (m *TLAccountResetAuthorization) String() string { return proto.CompactTextString(m) } func (*TLAccountResetAuthorization) ProtoMessage() {} func (*TLAccountResetAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{58} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{59} } func (m *TLAccountResetAuthorization) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountResetAuthorization.Unmarshal(m, b) @@ -3019,7 +3067,7 @@ func (m *TLAccountGetPassword) Reset() { *m = TLAccountGetPassword{} } func (m *TLAccountGetPassword) String() string { return proto.CompactTextString(m) } func (*TLAccountGetPassword) ProtoMessage() {} func (*TLAccountGetPassword) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{59} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{60} } func (m *TLAccountGetPassword) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetPassword.Unmarshal(m, b) @@ -3052,7 +3100,7 @@ func (m *TLAccountGetPasswordSettings) Reset() { *m = TLAccountGetPasswo func (m *TLAccountGetPasswordSettings) String() string { return proto.CompactTextString(m) } func (*TLAccountGetPasswordSettings) ProtoMessage() {} func (*TLAccountGetPasswordSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{60} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{61} } func (m *TLAccountGetPasswordSettings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetPasswordSettings.Unmarshal(m, b) @@ -3093,7 +3141,7 @@ func (m *TLAccountUpdatePasswordSettings) Reset() { *m = TLAccountUpdate func (m *TLAccountUpdatePasswordSettings) String() string { return proto.CompactTextString(m) } func (*TLAccountUpdatePasswordSettings) ProtoMessage() {} func (*TLAccountUpdatePasswordSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{61} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{62} } func (m *TLAccountUpdatePasswordSettings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountUpdatePasswordSettings.Unmarshal(m, b) @@ -3142,7 +3190,7 @@ func (m *TLAccountSendConfirmPhoneCode) Reset() { *m = TLAccountSendConf func (m *TLAccountSendConfirmPhoneCode) String() string { return proto.CompactTextString(m) } func (*TLAccountSendConfirmPhoneCode) ProtoMessage() {} func (*TLAccountSendConfirmPhoneCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{62} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{63} } func (m *TLAccountSendConfirmPhoneCode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountSendConfirmPhoneCode.Unmarshal(m, b) @@ -3197,7 +3245,7 @@ func (m *TLAccountConfirmPhone) Reset() { *m = TLAccountConfirmPhone{} } func (m *TLAccountConfirmPhone) String() string { return proto.CompactTextString(m) } func (*TLAccountConfirmPhone) ProtoMessage() {} func (*TLAccountConfirmPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{63} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{64} } func (m *TLAccountConfirmPhone) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountConfirmPhone.Unmarshal(m, b) @@ -3245,7 +3293,7 @@ func (m *TLAccountGetTmpPassword) Reset() { *m = TLAccountGetTmpPassword func (m *TLAccountGetTmpPassword) String() string { return proto.CompactTextString(m) } func (*TLAccountGetTmpPassword) ProtoMessage() {} func (*TLAccountGetTmpPassword) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{64} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{65} } func (m *TLAccountGetTmpPassword) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetTmpPassword.Unmarshal(m, b) @@ -3291,7 +3339,7 @@ func (m *TLAccountGetWebAuthorizations) Reset() { *m = TLAccountGetWebAu func (m *TLAccountGetWebAuthorizations) String() string { return proto.CompactTextString(m) } func (*TLAccountGetWebAuthorizations) ProtoMessage() {} func (*TLAccountGetWebAuthorizations) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{65} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{66} } func (m *TLAccountGetWebAuthorizations) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetWebAuthorizations.Unmarshal(m, b) @@ -3324,7 +3372,7 @@ func (m *TLAccountResetWebAuthorization) Reset() { *m = TLAccountResetWe func (m *TLAccountResetWebAuthorization) String() string { return proto.CompactTextString(m) } func (*TLAccountResetWebAuthorization) ProtoMessage() {} func (*TLAccountResetWebAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{66} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{67} } func (m *TLAccountResetWebAuthorization) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountResetWebAuthorization.Unmarshal(m, b) @@ -3363,7 +3411,7 @@ func (m *TLAccountResetWebAuthorizations) Reset() { *m = TLAccountResetW func (m *TLAccountResetWebAuthorizations) String() string { return proto.CompactTextString(m) } func (*TLAccountResetWebAuthorizations) ProtoMessage() {} func (*TLAccountResetWebAuthorizations) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{67} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{68} } func (m *TLAccountResetWebAuthorizations) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountResetWebAuthorizations.Unmarshal(m, b) @@ -3395,7 +3443,7 @@ func (m *TLAccountGetAllSecureValues) Reset() { *m = TLAccountGetAllSecu func (m *TLAccountGetAllSecureValues) String() string { return proto.CompactTextString(m) } func (*TLAccountGetAllSecureValues) ProtoMessage() {} func (*TLAccountGetAllSecureValues) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{68} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{69} } func (m *TLAccountGetAllSecureValues) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetAllSecureValues.Unmarshal(m, b) @@ -3428,7 +3476,7 @@ func (m *TLAccountGetSecureValue) Reset() { *m = TLAccountGetSecureValue func (m *TLAccountGetSecureValue) String() string { return proto.CompactTextString(m) } func (*TLAccountGetSecureValue) ProtoMessage() {} func (*TLAccountGetSecureValue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{69} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{70} } func (m *TLAccountGetSecureValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetSecureValue.Unmarshal(m, b) @@ -3469,7 +3517,7 @@ func (m *TLAccountSaveSecureValue) Reset() { *m = TLAccountSaveSecureVal func (m *TLAccountSaveSecureValue) String() string { return proto.CompactTextString(m) } func (*TLAccountSaveSecureValue) ProtoMessage() {} func (*TLAccountSaveSecureValue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{70} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{71} } func (m *TLAccountSaveSecureValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountSaveSecureValue.Unmarshal(m, b) @@ -3516,7 +3564,7 @@ func (m *TLAccountDeleteSecureValue) Reset() { *m = TLAccountDeleteSecur func (m *TLAccountDeleteSecureValue) String() string { return proto.CompactTextString(m) } func (*TLAccountDeleteSecureValue) ProtoMessage() {} func (*TLAccountDeleteSecureValue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{71} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{72} } func (m *TLAccountDeleteSecureValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountDeleteSecureValue.Unmarshal(m, b) @@ -3558,7 +3606,7 @@ func (m *TLAccountGetAuthorizationForm) Reset() { *m = TLAccountGetAutho func (m *TLAccountGetAuthorizationForm) String() string { return proto.CompactTextString(m) } func (*TLAccountGetAuthorizationForm) ProtoMessage() {} func (*TLAccountGetAuthorizationForm) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{72} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{73} } func (m *TLAccountGetAuthorizationForm) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountGetAuthorizationForm.Unmarshal(m, b) @@ -3616,7 +3664,7 @@ func (m *TLAccountAcceptAuthorization) Reset() { *m = TLAccountAcceptAut func (m *TLAccountAcceptAuthorization) String() string { return proto.CompactTextString(m) } func (*TLAccountAcceptAuthorization) ProtoMessage() {} func (*TLAccountAcceptAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{73} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{74} } func (m *TLAccountAcceptAuthorization) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountAcceptAuthorization.Unmarshal(m, b) @@ -3686,7 +3734,7 @@ func (m *TLAccountSendVerifyPhoneCode) Reset() { *m = TLAccountSendVerif func (m *TLAccountSendVerifyPhoneCode) String() string { return proto.CompactTextString(m) } func (*TLAccountSendVerifyPhoneCode) ProtoMessage() {} func (*TLAccountSendVerifyPhoneCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{74} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{75} } func (m *TLAccountSendVerifyPhoneCode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountSendVerifyPhoneCode.Unmarshal(m, b) @@ -3742,7 +3790,7 @@ func (m *TLAccountVerifyPhone) Reset() { *m = TLAccountVerifyPhone{} } func (m *TLAccountVerifyPhone) String() string { return proto.CompactTextString(m) } func (*TLAccountVerifyPhone) ProtoMessage() {} func (*TLAccountVerifyPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{75} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{76} } func (m *TLAccountVerifyPhone) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountVerifyPhone.Unmarshal(m, b) @@ -3796,7 +3844,7 @@ func (m *TLAccountSendVerifyEmailCode) Reset() { *m = TLAccountSendVerif func (m *TLAccountSendVerifyEmailCode) String() string { return proto.CompactTextString(m) } func (*TLAccountSendVerifyEmailCode) ProtoMessage() {} func (*TLAccountSendVerifyEmailCode) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{76} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{77} } func (m *TLAccountSendVerifyEmailCode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountSendVerifyEmailCode.Unmarshal(m, b) @@ -3837,7 +3885,7 @@ func (m *TLAccountVerifyEmail) Reset() { *m = TLAccountVerifyEmail{} } func (m *TLAccountVerifyEmail) String() string { return proto.CompactTextString(m) } func (*TLAccountVerifyEmail) ProtoMessage() {} func (*TLAccountVerifyEmail) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{77} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{78} } func (m *TLAccountVerifyEmail) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountVerifyEmail.Unmarshal(m, b) @@ -3890,7 +3938,7 @@ func (m *TLAccountInitTakeoutSession) Reset() { *m = TLAccountInitTakeou func (m *TLAccountInitTakeoutSession) String() string { return proto.CompactTextString(m) } func (*TLAccountInitTakeoutSession) ProtoMessage() {} func (*TLAccountInitTakeoutSession) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{78} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{79} } func (m *TLAccountInitTakeoutSession) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountInitTakeoutSession.Unmarshal(m, b) @@ -3972,7 +4020,7 @@ func (m *TLAccountFinishTakeoutSession) Reset() { *m = TLAccountFinishTa func (m *TLAccountFinishTakeoutSession) String() string { return proto.CompactTextString(m) } func (*TLAccountFinishTakeoutSession) ProtoMessage() {} func (*TLAccountFinishTakeoutSession) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{79} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{80} } func (m *TLAccountFinishTakeoutSession) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLAccountFinishTakeoutSession.Unmarshal(m, b) @@ -4012,7 +4060,7 @@ func (m *TLUsersGetUsers) Reset() { *m = TLUsersGetUsers{} } func (m *TLUsersGetUsers) String() string { return proto.CompactTextString(m) } func (*TLUsersGetUsers) ProtoMessage() {} func (*TLUsersGetUsers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{80} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{81} } func (m *TLUsersGetUsers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUsersGetUsers.Unmarshal(m, b) @@ -4052,7 +4100,7 @@ func (m *TLUsersGetFullUser) Reset() { *m = TLUsersGetFullUser{} } func (m *TLUsersGetFullUser) String() string { return proto.CompactTextString(m) } func (*TLUsersGetFullUser) ProtoMessage() {} func (*TLUsersGetFullUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{81} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{82} } func (m *TLUsersGetFullUser) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUsersGetFullUser.Unmarshal(m, b) @@ -4093,7 +4141,7 @@ func (m *TLUsersSetSecureValueErrors) Reset() { *m = TLUsersSetSecureVal func (m *TLUsersSetSecureValueErrors) String() string { return proto.CompactTextString(m) } func (*TLUsersSetSecureValueErrors) ProtoMessage() {} func (*TLUsersSetSecureValueErrors) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{82} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{83} } func (m *TLUsersSetSecureValueErrors) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUsersSetSecureValueErrors.Unmarshal(m, b) @@ -4139,7 +4187,7 @@ func (m *TLContactsGetStatuses) Reset() { *m = TLContactsGetStatuses{} } func (m *TLContactsGetStatuses) String() string { return proto.CompactTextString(m) } func (*TLContactsGetStatuses) ProtoMessage() {} func (*TLContactsGetStatuses) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{83} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{84} } func (m *TLContactsGetStatuses) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsGetStatuses.Unmarshal(m, b) @@ -4172,7 +4220,7 @@ func (m *TLContactsGetContacts) Reset() { *m = TLContactsGetContacts{} } func (m *TLContactsGetContacts) String() string { return proto.CompactTextString(m) } func (*TLContactsGetContacts) ProtoMessage() {} func (*TLContactsGetContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{84} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{85} } func (m *TLContactsGetContacts) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsGetContacts.Unmarshal(m, b) @@ -4212,7 +4260,7 @@ func (m *TLContactsImportContacts) Reset() { *m = TLContactsImportContac func (m *TLContactsImportContacts) String() string { return proto.CompactTextString(m) } func (*TLContactsImportContacts) ProtoMessage() {} func (*TLContactsImportContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{85} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{86} } func (m *TLContactsImportContacts) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsImportContacts.Unmarshal(m, b) @@ -4252,7 +4300,7 @@ func (m *TLContactsDeleteContact) Reset() { *m = TLContactsDeleteContact func (m *TLContactsDeleteContact) String() string { return proto.CompactTextString(m) } func (*TLContactsDeleteContact) ProtoMessage() {} func (*TLContactsDeleteContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{86} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{87} } func (m *TLContactsDeleteContact) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsDeleteContact.Unmarshal(m, b) @@ -4292,7 +4340,7 @@ func (m *TLContactsDeleteContacts) Reset() { *m = TLContactsDeleteContac func (m *TLContactsDeleteContacts) String() string { return proto.CompactTextString(m) } func (*TLContactsDeleteContacts) ProtoMessage() {} func (*TLContactsDeleteContacts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{87} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{88} } func (m *TLContactsDeleteContacts) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsDeleteContacts.Unmarshal(m, b) @@ -4332,7 +4380,7 @@ func (m *TLContactsBlock) Reset() { *m = TLContactsBlock{} } func (m *TLContactsBlock) String() string { return proto.CompactTextString(m) } func (*TLContactsBlock) ProtoMessage() {} func (*TLContactsBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{88} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{89} } func (m *TLContactsBlock) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsBlock.Unmarshal(m, b) @@ -4372,7 +4420,7 @@ func (m *TLContactsUnblock) Reset() { *m = TLContactsUnblock{} } func (m *TLContactsUnblock) String() string { return proto.CompactTextString(m) } func (*TLContactsUnblock) ProtoMessage() {} func (*TLContactsUnblock) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{89} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{90} } func (m *TLContactsUnblock) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsUnblock.Unmarshal(m, b) @@ -4413,7 +4461,7 @@ func (m *TLContactsGetBlocked) Reset() { *m = TLContactsGetBlocked{} } func (m *TLContactsGetBlocked) String() string { return proto.CompactTextString(m) } func (*TLContactsGetBlocked) ProtoMessage() {} func (*TLContactsGetBlocked) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{90} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{91} } func (m *TLContactsGetBlocked) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsGetBlocked.Unmarshal(m, b) @@ -4459,7 +4507,7 @@ func (m *TLContactsExportCard) Reset() { *m = TLContactsExportCard{} } func (m *TLContactsExportCard) String() string { return proto.CompactTextString(m) } func (*TLContactsExportCard) ProtoMessage() {} func (*TLContactsExportCard) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{91} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{92} } func (m *TLContactsExportCard) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsExportCard.Unmarshal(m, b) @@ -4492,7 +4540,7 @@ func (m *TLContactsImportCard) Reset() { *m = TLContactsImportCard{} } func (m *TLContactsImportCard) String() string { return proto.CompactTextString(m) } func (*TLContactsImportCard) ProtoMessage() {} func (*TLContactsImportCard) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{92} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{93} } func (m *TLContactsImportCard) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsImportCard.Unmarshal(m, b) @@ -4533,7 +4581,7 @@ func (m *TLContactsSearch) Reset() { *m = TLContactsSearch{} } func (m *TLContactsSearch) String() string { return proto.CompactTextString(m) } func (*TLContactsSearch) ProtoMessage() {} func (*TLContactsSearch) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{93} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{94} } func (m *TLContactsSearch) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsSearch.Unmarshal(m, b) @@ -4580,7 +4628,7 @@ func (m *TLContactsResolveUsername) Reset() { *m = TLContactsResolveUser func (m *TLContactsResolveUsername) String() string { return proto.CompactTextString(m) } func (*TLContactsResolveUsername) ProtoMessage() {} func (*TLContactsResolveUsername) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{94} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{95} } func (m *TLContactsResolveUsername) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsResolveUsername.Unmarshal(m, b) @@ -4628,7 +4676,7 @@ func (m *TLContactsGetTopPeers) Reset() { *m = TLContactsGetTopPeers{} } func (m *TLContactsGetTopPeers) String() string { return proto.CompactTextString(m) } func (*TLContactsGetTopPeers) ProtoMessage() {} func (*TLContactsGetTopPeers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{95} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{96} } func (m *TLContactsGetTopPeers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsGetTopPeers.Unmarshal(m, b) @@ -4725,7 +4773,7 @@ func (m *TLContactsResetTopPeerRating) Reset() { *m = TLContactsResetTop func (m *TLContactsResetTopPeerRating) String() string { return proto.CompactTextString(m) } func (*TLContactsResetTopPeerRating) ProtoMessage() {} func (*TLContactsResetTopPeerRating) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{96} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{97} } func (m *TLContactsResetTopPeerRating) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsResetTopPeerRating.Unmarshal(m, b) @@ -4771,7 +4819,7 @@ func (m *TLContactsResetSaved) Reset() { *m = TLContactsResetSaved{} } func (m *TLContactsResetSaved) String() string { return proto.CompactTextString(m) } func (*TLContactsResetSaved) ProtoMessage() {} func (*TLContactsResetSaved) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{97} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{98} } func (m *TLContactsResetSaved) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsResetSaved.Unmarshal(m, b) @@ -4803,7 +4851,7 @@ func (m *TLContactsGetSaved) Reset() { *m = TLContactsGetSaved{} } func (m *TLContactsGetSaved) String() string { return proto.CompactTextString(m) } func (*TLContactsGetSaved) ProtoMessage() {} func (*TLContactsGetSaved) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{98} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{99} } func (m *TLContactsGetSaved) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsGetSaved.Unmarshal(m, b) @@ -4836,7 +4884,7 @@ func (m *TLContactsToggleTopPeers) Reset() { *m = TLContactsToggleTopPee func (m *TLContactsToggleTopPeers) String() string { return proto.CompactTextString(m) } func (*TLContactsToggleTopPeers) ProtoMessage() {} func (*TLContactsToggleTopPeers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{99} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{100} } func (m *TLContactsToggleTopPeers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLContactsToggleTopPeers.Unmarshal(m, b) @@ -4876,7 +4924,7 @@ func (m *TLMessagesGetMessages) Reset() { *m = TLMessagesGetMessages{} } func (m *TLMessagesGetMessages) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetMessages) ProtoMessage() {} func (*TLMessagesGetMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{100} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{101} } func (m *TLMessagesGetMessages) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetMessages.Unmarshal(m, b) @@ -4921,7 +4969,7 @@ func (m *TLMessagesGetDialogs) Reset() { *m = TLMessagesGetDialogs{} } func (m *TLMessagesGetDialogs) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetDialogs) ProtoMessage() {} func (*TLMessagesGetDialogs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{101} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{102} } func (m *TLMessagesGetDialogs) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetDialogs.Unmarshal(m, b) @@ -5003,7 +5051,7 @@ func (m *TLMessagesGetHistory) Reset() { *m = TLMessagesGetHistory{} } func (m *TLMessagesGetHistory) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetHistory) ProtoMessage() {} func (*TLMessagesGetHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{102} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{103} } func (m *TLMessagesGetHistory) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetHistory.Unmarshal(m, b) @@ -5103,7 +5151,7 @@ func (m *TLMessagesSearch) Reset() { *m = TLMessagesSearch{} } func (m *TLMessagesSearch) String() string { return proto.CompactTextString(m) } func (*TLMessagesSearch) ProtoMessage() {} func (*TLMessagesSearch) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{103} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{104} } func (m *TLMessagesSearch) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSearch.Unmarshal(m, b) @@ -5221,7 +5269,7 @@ func (m *TLMessagesReadHistory) Reset() { *m = TLMessagesReadHistory{} } func (m *TLMessagesReadHistory) String() string { return proto.CompactTextString(m) } func (*TLMessagesReadHistory) ProtoMessage() {} func (*TLMessagesReadHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{104} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{105} } func (m *TLMessagesReadHistory) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReadHistory.Unmarshal(m, b) @@ -5270,7 +5318,7 @@ func (m *TLMessagesDeleteHistory) Reset() { *m = TLMessagesDeleteHistory func (m *TLMessagesDeleteHistory) String() string { return proto.CompactTextString(m) } func (*TLMessagesDeleteHistory) ProtoMessage() {} func (*TLMessagesDeleteHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{105} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{106} } func (m *TLMessagesDeleteHistory) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesDeleteHistory.Unmarshal(m, b) @@ -5325,7 +5373,7 @@ func (m *TLMessagesDeleteMessages) Reset() { *m = TLMessagesDeleteMessag func (m *TLMessagesDeleteMessages) String() string { return proto.CompactTextString(m) } func (*TLMessagesDeleteMessages) ProtoMessage() {} func (*TLMessagesDeleteMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{106} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{107} } func (m *TLMessagesDeleteMessages) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesDeleteMessages.Unmarshal(m, b) @@ -5372,7 +5420,7 @@ func (m *TLMessagesReceivedMessages) Reset() { *m = TLMessagesReceivedMe func (m *TLMessagesReceivedMessages) String() string { return proto.CompactTextString(m) } func (*TLMessagesReceivedMessages) ProtoMessage() {} func (*TLMessagesReceivedMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{107} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{108} } func (m *TLMessagesReceivedMessages) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReceivedMessages.Unmarshal(m, b) @@ -5413,7 +5461,7 @@ func (m *TLMessagesSetTyping) Reset() { *m = TLMessagesSetTyping{} } func (m *TLMessagesSetTyping) String() string { return proto.CompactTextString(m) } func (*TLMessagesSetTyping) ProtoMessage() {} func (*TLMessagesSetTyping) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{108} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{109} } func (m *TLMessagesSetTyping) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSetTyping.Unmarshal(m, b) @@ -5469,7 +5517,7 @@ func (m *TLMessagesSendMessage) Reset() { *m = TLMessagesSendMessage{} } func (m *TLMessagesSendMessage) String() string { return proto.CompactTextString(m) } func (*TLMessagesSendMessage) ProtoMessage() {} func (*TLMessagesSendMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{109} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{110} } func (m *TLMessagesSendMessage) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSendMessage.Unmarshal(m, b) @@ -5581,7 +5629,7 @@ func (m *TLMessagesSendMedia) Reset() { *m = TLMessagesSendMedia{} } func (m *TLMessagesSendMedia) String() string { return proto.CompactTextString(m) } func (*TLMessagesSendMedia) ProtoMessage() {} func (*TLMessagesSendMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{110} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{111} } func (m *TLMessagesSendMedia) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSendMedia.Unmarshal(m, b) @@ -5691,7 +5739,7 @@ func (m *TLMessagesForwardMessages) Reset() { *m = TLMessagesForwardMess func (m *TLMessagesForwardMessages) String() string { return proto.CompactTextString(m) } func (*TLMessagesForwardMessages) ProtoMessage() {} func (*TLMessagesForwardMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{111} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{112} } func (m *TLMessagesForwardMessages) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesForwardMessages.Unmarshal(m, b) @@ -5780,7 +5828,7 @@ func (m *TLMessagesReportSpam) Reset() { *m = TLMessagesReportSpam{} } func (m *TLMessagesReportSpam) String() string { return proto.CompactTextString(m) } func (*TLMessagesReportSpam) ProtoMessage() {} func (*TLMessagesReportSpam) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{112} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{113} } func (m *TLMessagesReportSpam) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReportSpam.Unmarshal(m, b) @@ -5820,7 +5868,7 @@ func (m *TLMessagesHideReportSpam) Reset() { *m = TLMessagesHideReportSp func (m *TLMessagesHideReportSpam) String() string { return proto.CompactTextString(m) } func (*TLMessagesHideReportSpam) ProtoMessage() {} func (*TLMessagesHideReportSpam) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{113} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{114} } func (m *TLMessagesHideReportSpam) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesHideReportSpam.Unmarshal(m, b) @@ -5860,7 +5908,7 @@ func (m *TLMessagesGetPeerSettings) Reset() { *m = TLMessagesGetPeerSett func (m *TLMessagesGetPeerSettings) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetPeerSettings) ProtoMessage() {} func (*TLMessagesGetPeerSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{114} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{115} } func (m *TLMessagesGetPeerSettings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetPeerSettings.Unmarshal(m, b) @@ -5902,7 +5950,7 @@ func (m *TLMessagesReport) Reset() { *m = TLMessagesReport{} } func (m *TLMessagesReport) String() string { return proto.CompactTextString(m) } func (*TLMessagesReport) ProtoMessage() {} func (*TLMessagesReport) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{115} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{116} } func (m *TLMessagesReport) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReport.Unmarshal(m, b) @@ -5956,7 +6004,7 @@ func (m *TLMessagesGetChats) Reset() { *m = TLMessagesGetChats{} } func (m *TLMessagesGetChats) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetChats) ProtoMessage() {} func (*TLMessagesGetChats) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{116} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{117} } func (m *TLMessagesGetChats) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetChats.Unmarshal(m, b) @@ -5996,7 +6044,7 @@ func (m *TLMessagesGetFullChat) Reset() { *m = TLMessagesGetFullChat{} } func (m *TLMessagesGetFullChat) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetFullChat) ProtoMessage() {} func (*TLMessagesGetFullChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{117} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{118} } func (m *TLMessagesGetFullChat) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetFullChat.Unmarshal(m, b) @@ -6037,7 +6085,7 @@ func (m *TLMessagesEditChatTitle) Reset() { *m = TLMessagesEditChatTitle func (m *TLMessagesEditChatTitle) String() string { return proto.CompactTextString(m) } func (*TLMessagesEditChatTitle) ProtoMessage() {} func (*TLMessagesEditChatTitle) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{118} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{119} } func (m *TLMessagesEditChatTitle) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesEditChatTitle.Unmarshal(m, b) @@ -6085,7 +6133,7 @@ func (m *TLMessagesEditChatPhoto) Reset() { *m = TLMessagesEditChatPhoto func (m *TLMessagesEditChatPhoto) String() string { return proto.CompactTextString(m) } func (*TLMessagesEditChatPhoto) ProtoMessage() {} func (*TLMessagesEditChatPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{119} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{120} } func (m *TLMessagesEditChatPhoto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesEditChatPhoto.Unmarshal(m, b) @@ -6134,7 +6182,7 @@ func (m *TLMessagesAddChatUser) Reset() { *m = TLMessagesAddChatUser{} } func (m *TLMessagesAddChatUser) String() string { return proto.CompactTextString(m) } func (*TLMessagesAddChatUser) ProtoMessage() {} func (*TLMessagesAddChatUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{120} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{121} } func (m *TLMessagesAddChatUser) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesAddChatUser.Unmarshal(m, b) @@ -6189,7 +6237,7 @@ func (m *TLMessagesDeleteChatUser) Reset() { *m = TLMessagesDeleteChatUs func (m *TLMessagesDeleteChatUser) String() string { return proto.CompactTextString(m) } func (*TLMessagesDeleteChatUser) ProtoMessage() {} func (*TLMessagesDeleteChatUser) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{121} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{122} } func (m *TLMessagesDeleteChatUser) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesDeleteChatUser.Unmarshal(m, b) @@ -6237,7 +6285,7 @@ func (m *TLMessagesCreateChat) Reset() { *m = TLMessagesCreateChat{} } func (m *TLMessagesCreateChat) String() string { return proto.CompactTextString(m) } func (*TLMessagesCreateChat) ProtoMessage() {} func (*TLMessagesCreateChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{122} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{123} } func (m *TLMessagesCreateChat) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesCreateChat.Unmarshal(m, b) @@ -6285,7 +6333,7 @@ func (m *TLMessagesGetDhConfig) Reset() { *m = TLMessagesGetDhConfig{} } func (m *TLMessagesGetDhConfig) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetDhConfig) ProtoMessage() {} func (*TLMessagesGetDhConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{123} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{124} } func (m *TLMessagesGetDhConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetDhConfig.Unmarshal(m, b) @@ -6334,7 +6382,7 @@ func (m *TLMessagesRequestEncryption) Reset() { *m = TLMessagesRequestEn func (m *TLMessagesRequestEncryption) String() string { return proto.CompactTextString(m) } func (*TLMessagesRequestEncryption) ProtoMessage() {} func (*TLMessagesRequestEncryption) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{124} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{125} } func (m *TLMessagesRequestEncryption) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesRequestEncryption.Unmarshal(m, b) @@ -6390,7 +6438,7 @@ func (m *TLMessagesAcceptEncryption) Reset() { *m = TLMessagesAcceptEncr func (m *TLMessagesAcceptEncryption) String() string { return proto.CompactTextString(m) } func (*TLMessagesAcceptEncryption) ProtoMessage() {} func (*TLMessagesAcceptEncryption) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{125} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{126} } func (m *TLMessagesAcceptEncryption) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesAcceptEncryption.Unmarshal(m, b) @@ -6444,7 +6492,7 @@ func (m *TLMessagesDiscardEncryption) Reset() { *m = TLMessagesDiscardEn func (m *TLMessagesDiscardEncryption) String() string { return proto.CompactTextString(m) } func (*TLMessagesDiscardEncryption) ProtoMessage() {} func (*TLMessagesDiscardEncryption) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{126} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{127} } func (m *TLMessagesDiscardEncryption) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesDiscardEncryption.Unmarshal(m, b) @@ -6485,7 +6533,7 @@ func (m *TLMessagesSetEncryptedTyping) Reset() { *m = TLMessagesSetEncry func (m *TLMessagesSetEncryptedTyping) String() string { return proto.CompactTextString(m) } func (*TLMessagesSetEncryptedTyping) ProtoMessage() {} func (*TLMessagesSetEncryptedTyping) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{127} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{128} } func (m *TLMessagesSetEncryptedTyping) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSetEncryptedTyping.Unmarshal(m, b) @@ -6533,7 +6581,7 @@ func (m *TLMessagesReadEncryptedHistory) Reset() { *m = TLMessagesReadEn func (m *TLMessagesReadEncryptedHistory) String() string { return proto.CompactTextString(m) } func (*TLMessagesReadEncryptedHistory) ProtoMessage() {} func (*TLMessagesReadEncryptedHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{128} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{129} } func (m *TLMessagesReadEncryptedHistory) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReadEncryptedHistory.Unmarshal(m, b) @@ -6582,7 +6630,7 @@ func (m *TLMessagesSendEncrypted) Reset() { *m = TLMessagesSendEncrypted func (m *TLMessagesSendEncrypted) String() string { return proto.CompactTextString(m) } func (*TLMessagesSendEncrypted) ProtoMessage() {} func (*TLMessagesSendEncrypted) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{129} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{130} } func (m *TLMessagesSendEncrypted) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSendEncrypted.Unmarshal(m, b) @@ -6639,7 +6687,7 @@ func (m *TLMessagesSendEncryptedFile) Reset() { *m = TLMessagesSendEncry func (m *TLMessagesSendEncryptedFile) String() string { return proto.CompactTextString(m) } func (*TLMessagesSendEncryptedFile) ProtoMessage() {} func (*TLMessagesSendEncryptedFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{130} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{131} } func (m *TLMessagesSendEncryptedFile) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSendEncryptedFile.Unmarshal(m, b) @@ -6702,7 +6750,7 @@ func (m *TLMessagesSendEncryptedService) Reset() { *m = TLMessagesSendEn func (m *TLMessagesSendEncryptedService) String() string { return proto.CompactTextString(m) } func (*TLMessagesSendEncryptedService) ProtoMessage() {} func (*TLMessagesSendEncryptedService) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{131} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{132} } func (m *TLMessagesSendEncryptedService) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSendEncryptedService.Unmarshal(m, b) @@ -6756,7 +6804,7 @@ func (m *TLMessagesReceivedQueue) Reset() { *m = TLMessagesReceivedQueue func (m *TLMessagesReceivedQueue) String() string { return proto.CompactTextString(m) } func (*TLMessagesReceivedQueue) ProtoMessage() {} func (*TLMessagesReceivedQueue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{132} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{133} } func (m *TLMessagesReceivedQueue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReceivedQueue.Unmarshal(m, b) @@ -6796,7 +6844,7 @@ func (m *TLMessagesReportEncryptedSpam) Reset() { *m = TLMessagesReportE func (m *TLMessagesReportEncryptedSpam) String() string { return proto.CompactTextString(m) } func (*TLMessagesReportEncryptedSpam) ProtoMessage() {} func (*TLMessagesReportEncryptedSpam) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{133} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{134} } func (m *TLMessagesReportEncryptedSpam) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReportEncryptedSpam.Unmarshal(m, b) @@ -6836,7 +6884,7 @@ func (m *TLMessagesReadMessageContents) Reset() { *m = TLMessagesReadMes func (m *TLMessagesReadMessageContents) String() string { return proto.CompactTextString(m) } func (*TLMessagesReadMessageContents) ProtoMessage() {} func (*TLMessagesReadMessageContents) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{134} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{135} } func (m *TLMessagesReadMessageContents) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReadMessageContents.Unmarshal(m, b) @@ -6877,7 +6925,7 @@ func (m *TLMessagesGetStickers) Reset() { *m = TLMessagesGetStickers{} } func (m *TLMessagesGetStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetStickers) ProtoMessage() {} func (*TLMessagesGetStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{135} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{136} } func (m *TLMessagesGetStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetStickers.Unmarshal(m, b) @@ -6924,7 +6972,7 @@ func (m *TLMessagesGetAllStickers) Reset() { *m = TLMessagesGetAllSticke func (m *TLMessagesGetAllStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetAllStickers) ProtoMessage() {} func (*TLMessagesGetAllStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{136} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{137} } func (m *TLMessagesGetAllStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetAllStickers.Unmarshal(m, b) @@ -6965,7 +7013,7 @@ func (m *TLMessagesGetWebPagePreview) Reset() { *m = TLMessagesGetWebPag func (m *TLMessagesGetWebPagePreview) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetWebPagePreview) ProtoMessage() {} func (*TLMessagesGetWebPagePreview) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{137} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{138} } func (m *TLMessagesGetWebPagePreview) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetWebPagePreview.Unmarshal(m, b) @@ -7012,7 +7060,7 @@ func (m *TLMessagesExportChatInvite) Reset() { *m = TLMessagesExportChat func (m *TLMessagesExportChatInvite) String() string { return proto.CompactTextString(m) } func (*TLMessagesExportChatInvite) ProtoMessage() {} func (*TLMessagesExportChatInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{138} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{139} } func (m *TLMessagesExportChatInvite) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesExportChatInvite.Unmarshal(m, b) @@ -7052,7 +7100,7 @@ func (m *TLMessagesCheckChatInvite) Reset() { *m = TLMessagesCheckChatIn func (m *TLMessagesCheckChatInvite) String() string { return proto.CompactTextString(m) } func (*TLMessagesCheckChatInvite) ProtoMessage() {} func (*TLMessagesCheckChatInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{139} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{140} } func (m *TLMessagesCheckChatInvite) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesCheckChatInvite.Unmarshal(m, b) @@ -7092,7 +7140,7 @@ func (m *TLMessagesImportChatInvite) Reset() { *m = TLMessagesImportChat func (m *TLMessagesImportChatInvite) String() string { return proto.CompactTextString(m) } func (*TLMessagesImportChatInvite) ProtoMessage() {} func (*TLMessagesImportChatInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{140} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{141} } func (m *TLMessagesImportChatInvite) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesImportChatInvite.Unmarshal(m, b) @@ -7132,7 +7180,7 @@ func (m *TLMessagesGetStickerSet) Reset() { *m = TLMessagesGetStickerSet func (m *TLMessagesGetStickerSet) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetStickerSet) ProtoMessage() {} func (*TLMessagesGetStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{141} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{142} } func (m *TLMessagesGetStickerSet) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetStickerSet.Unmarshal(m, b) @@ -7173,7 +7221,7 @@ func (m *TLMessagesInstallStickerSet) Reset() { *m = TLMessagesInstallSt func (m *TLMessagesInstallStickerSet) String() string { return proto.CompactTextString(m) } func (*TLMessagesInstallStickerSet) ProtoMessage() {} func (*TLMessagesInstallStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{142} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{143} } func (m *TLMessagesInstallStickerSet) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesInstallStickerSet.Unmarshal(m, b) @@ -7220,7 +7268,7 @@ func (m *TLMessagesUninstallStickerSet) Reset() { *m = TLMessagesUninsta func (m *TLMessagesUninstallStickerSet) String() string { return proto.CompactTextString(m) } func (*TLMessagesUninstallStickerSet) ProtoMessage() {} func (*TLMessagesUninstallStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{143} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{144} } func (m *TLMessagesUninstallStickerSet) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesUninstallStickerSet.Unmarshal(m, b) @@ -7263,7 +7311,7 @@ func (m *TLMessagesStartBot) Reset() { *m = TLMessagesStartBot{} } func (m *TLMessagesStartBot) String() string { return proto.CompactTextString(m) } func (*TLMessagesStartBot) ProtoMessage() {} func (*TLMessagesStartBot) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{144} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{145} } func (m *TLMessagesStartBot) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesStartBot.Unmarshal(m, b) @@ -7326,7 +7374,7 @@ func (m *TLMessagesGetMessagesViews) Reset() { *m = TLMessagesGetMessage func (m *TLMessagesGetMessagesViews) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetMessagesViews) ProtoMessage() {} func (*TLMessagesGetMessagesViews) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{145} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{146} } func (m *TLMessagesGetMessagesViews) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetMessagesViews.Unmarshal(m, b) @@ -7381,7 +7429,7 @@ func (m *TLMessagesToggleChatAdmins) Reset() { *m = TLMessagesToggleChat func (m *TLMessagesToggleChatAdmins) String() string { return proto.CompactTextString(m) } func (*TLMessagesToggleChatAdmins) ProtoMessage() {} func (*TLMessagesToggleChatAdmins) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{146} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{147} } func (m *TLMessagesToggleChatAdmins) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesToggleChatAdmins.Unmarshal(m, b) @@ -7430,7 +7478,7 @@ func (m *TLMessagesEditChatAdmin) Reset() { *m = TLMessagesEditChatAdmin func (m *TLMessagesEditChatAdmin) String() string { return proto.CompactTextString(m) } func (*TLMessagesEditChatAdmin) ProtoMessage() {} func (*TLMessagesEditChatAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{147} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{148} } func (m *TLMessagesEditChatAdmin) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesEditChatAdmin.Unmarshal(m, b) @@ -7484,7 +7532,7 @@ func (m *TLMessagesMigrateChat) Reset() { *m = TLMessagesMigrateChat{} } func (m *TLMessagesMigrateChat) String() string { return proto.CompactTextString(m) } func (*TLMessagesMigrateChat) ProtoMessage() {} func (*TLMessagesMigrateChat) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{148} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{149} } func (m *TLMessagesMigrateChat) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesMigrateChat.Unmarshal(m, b) @@ -7528,7 +7576,7 @@ func (m *TLMessagesSearchGlobal) Reset() { *m = TLMessagesSearchGlobal{} func (m *TLMessagesSearchGlobal) String() string { return proto.CompactTextString(m) } func (*TLMessagesSearchGlobal) ProtoMessage() {} func (*TLMessagesSearchGlobal) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{149} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{150} } func (m *TLMessagesSearchGlobal) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSearchGlobal.Unmarshal(m, b) @@ -7597,7 +7645,7 @@ func (m *TLMessagesReorderStickerSets) Reset() { *m = TLMessagesReorderS func (m *TLMessagesReorderStickerSets) String() string { return proto.CompactTextString(m) } func (*TLMessagesReorderStickerSets) ProtoMessage() {} func (*TLMessagesReorderStickerSets) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{150} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{151} } func (m *TLMessagesReorderStickerSets) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReorderStickerSets.Unmarshal(m, b) @@ -7646,7 +7694,7 @@ func (m *TLMessagesGetDocumentByHash) Reset() { *m = TLMessagesGetDocume func (m *TLMessagesGetDocumentByHash) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetDocumentByHash) ProtoMessage() {} func (*TLMessagesGetDocumentByHash) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{151} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{152} } func (m *TLMessagesGetDocumentByHash) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetDocumentByHash.Unmarshal(m, b) @@ -7701,7 +7749,7 @@ func (m *TLMessagesSearchGifs) Reset() { *m = TLMessagesSearchGifs{} } func (m *TLMessagesSearchGifs) String() string { return proto.CompactTextString(m) } func (*TLMessagesSearchGifs) ProtoMessage() {} func (*TLMessagesSearchGifs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{152} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{153} } func (m *TLMessagesSearchGifs) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSearchGifs.Unmarshal(m, b) @@ -7748,7 +7796,7 @@ func (m *TLMessagesGetSavedGifs) Reset() { *m = TLMessagesGetSavedGifs{} func (m *TLMessagesGetSavedGifs) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetSavedGifs) ProtoMessage() {} func (*TLMessagesGetSavedGifs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{153} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{154} } func (m *TLMessagesGetSavedGifs) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetSavedGifs.Unmarshal(m, b) @@ -7789,7 +7837,7 @@ func (m *TLMessagesSaveGif) Reset() { *m = TLMessagesSaveGif{} } func (m *TLMessagesSaveGif) String() string { return proto.CompactTextString(m) } func (*TLMessagesSaveGif) ProtoMessage() {} func (*TLMessagesSaveGif) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{154} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{155} } func (m *TLMessagesSaveGif) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSaveGif.Unmarshal(m, b) @@ -7840,7 +7888,7 @@ func (m *TLMessagesGetInlineBotResults) Reset() { *m = TLMessagesGetInli func (m *TLMessagesGetInlineBotResults) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetInlineBotResults) ProtoMessage() {} func (*TLMessagesGetInlineBotResults) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{155} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{156} } func (m *TLMessagesGetInlineBotResults) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetInlineBotResults.Unmarshal(m, b) @@ -7914,7 +7962,7 @@ func (m *TLMessagesSetInlineBotResults) Reset() { *m = TLMessagesSetInli func (m *TLMessagesSetInlineBotResults) String() string { return proto.CompactTextString(m) } func (*TLMessagesSetInlineBotResults) ProtoMessage() {} func (*TLMessagesSetInlineBotResults) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{156} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{157} } func (m *TLMessagesSetInlineBotResults) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSetInlineBotResults.Unmarshal(m, b) @@ -8003,7 +8051,7 @@ func (m *TLMessagesSendInlineBotResult) Reset() { *m = TLMessagesSendInl func (m *TLMessagesSendInlineBotResult) String() string { return proto.CompactTextString(m) } func (*TLMessagesSendInlineBotResult) ProtoMessage() {} func (*TLMessagesSendInlineBotResult) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{157} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{158} } func (m *TLMessagesSendInlineBotResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSendInlineBotResult.Unmarshal(m, b) @@ -8093,7 +8141,7 @@ func (m *TLMessagesGetMessageEditData) Reset() { *m = TLMessagesGetMessa func (m *TLMessagesGetMessageEditData) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetMessageEditData) ProtoMessage() {} func (*TLMessagesGetMessageEditData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{158} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{159} } func (m *TLMessagesGetMessageEditData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetMessageEditData.Unmarshal(m, b) @@ -8148,7 +8196,7 @@ func (m *TLMessagesEditMessage) Reset() { *m = TLMessagesEditMessage{} } func (m *TLMessagesEditMessage) String() string { return proto.CompactTextString(m) } func (*TLMessagesEditMessage) ProtoMessage() {} func (*TLMessagesEditMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{159} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{160} } func (m *TLMessagesEditMessage) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesEditMessage.Unmarshal(m, b) @@ -8251,7 +8299,7 @@ func (m *TLMessagesEditInlineBotMessage) Reset() { *m = TLMessagesEditIn func (m *TLMessagesEditInlineBotMessage) String() string { return proto.CompactTextString(m) } func (*TLMessagesEditInlineBotMessage) ProtoMessage() {} func (*TLMessagesEditInlineBotMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{160} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{161} } func (m *TLMessagesEditInlineBotMessage) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesEditInlineBotMessage.Unmarshal(m, b) @@ -8343,7 +8391,7 @@ func (m *TLMessagesGetBotCallbackAnswer) Reset() { *m = TLMessagesGetBot func (m *TLMessagesGetBotCallbackAnswer) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetBotCallbackAnswer) ProtoMessage() {} func (*TLMessagesGetBotCallbackAnswer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{161} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{162} } func (m *TLMessagesGetBotCallbackAnswer) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetBotCallbackAnswer.Unmarshal(m, b) @@ -8408,7 +8456,7 @@ func (m *TLMessagesSetBotCallbackAnswer) Reset() { *m = TLMessagesSetBot func (m *TLMessagesSetBotCallbackAnswer) String() string { return proto.CompactTextString(m) } func (*TLMessagesSetBotCallbackAnswer) ProtoMessage() {} func (*TLMessagesSetBotCallbackAnswer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{162} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{163} } func (m *TLMessagesSetBotCallbackAnswer) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSetBotCallbackAnswer.Unmarshal(m, b) @@ -8476,7 +8524,7 @@ func (m *TLMessagesGetPeerDialogs) Reset() { *m = TLMessagesGetPeerDialo func (m *TLMessagesGetPeerDialogs) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetPeerDialogs) ProtoMessage() {} func (*TLMessagesGetPeerDialogs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{163} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{164} } func (m *TLMessagesGetPeerDialogs) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetPeerDialogs.Unmarshal(m, b) @@ -8520,7 +8568,7 @@ func (m *TLMessagesSaveDraft) Reset() { *m = TLMessagesSaveDraft{} } func (m *TLMessagesSaveDraft) String() string { return proto.CompactTextString(m) } func (*TLMessagesSaveDraft) ProtoMessage() {} func (*TLMessagesSaveDraft) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{164} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{165} } func (m *TLMessagesSaveDraft) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSaveDraft.Unmarshal(m, b) @@ -8587,7 +8635,7 @@ func (m *TLMessagesGetAllDrafts) Reset() { *m = TLMessagesGetAllDrafts{} func (m *TLMessagesGetAllDrafts) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetAllDrafts) ProtoMessage() {} func (*TLMessagesGetAllDrafts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{165} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{166} } func (m *TLMessagesGetAllDrafts) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetAllDrafts.Unmarshal(m, b) @@ -8620,7 +8668,7 @@ func (m *TLMessagesGetFeaturedStickers) Reset() { *m = TLMessagesGetFeat func (m *TLMessagesGetFeaturedStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetFeaturedStickers) ProtoMessage() {} func (*TLMessagesGetFeaturedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{166} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{167} } func (m *TLMessagesGetFeaturedStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetFeaturedStickers.Unmarshal(m, b) @@ -8660,7 +8708,7 @@ func (m *TLMessagesReadFeaturedStickers) Reset() { *m = TLMessagesReadFe func (m *TLMessagesReadFeaturedStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesReadFeaturedStickers) ProtoMessage() {} func (*TLMessagesReadFeaturedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{167} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{168} } func (m *TLMessagesReadFeaturedStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReadFeaturedStickers.Unmarshal(m, b) @@ -8701,7 +8749,7 @@ func (m *TLMessagesGetRecentStickers) Reset() { *m = TLMessagesGetRecent func (m *TLMessagesGetRecentStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetRecentStickers) ProtoMessage() {} func (*TLMessagesGetRecentStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{168} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{169} } func (m *TLMessagesGetRecentStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetRecentStickers.Unmarshal(m, b) @@ -8750,7 +8798,7 @@ func (m *TLMessagesSaveRecentSticker) Reset() { *m = TLMessagesSaveRecen func (m *TLMessagesSaveRecentSticker) String() string { return proto.CompactTextString(m) } func (*TLMessagesSaveRecentSticker) ProtoMessage() {} func (*TLMessagesSaveRecentSticker) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{169} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{170} } func (m *TLMessagesSaveRecentSticker) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSaveRecentSticker.Unmarshal(m, b) @@ -8804,7 +8852,7 @@ func (m *TLMessagesClearRecentStickers) Reset() { *m = TLMessagesClearRe func (m *TLMessagesClearRecentStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesClearRecentStickers) ProtoMessage() {} func (*TLMessagesClearRecentStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{170} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{171} } func (m *TLMessagesClearRecentStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesClearRecentStickers.Unmarshal(m, b) @@ -8846,7 +8894,7 @@ func (m *TLMessagesGetArchivedStickers) Reset() { *m = TLMessagesGetArch func (m *TLMessagesGetArchivedStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetArchivedStickers) ProtoMessage() {} func (*TLMessagesGetArchivedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{171} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{172} } func (m *TLMessagesGetArchivedStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetArchivedStickers.Unmarshal(m, b) @@ -8900,7 +8948,7 @@ func (m *TLMessagesGetMaskStickers) Reset() { *m = TLMessagesGetMaskStic func (m *TLMessagesGetMaskStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetMaskStickers) ProtoMessage() {} func (*TLMessagesGetMaskStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{172} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{173} } func (m *TLMessagesGetMaskStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetMaskStickers.Unmarshal(m, b) @@ -8940,7 +8988,7 @@ func (m *TLMessagesGetAttachedStickers) Reset() { *m = TLMessagesGetAtta func (m *TLMessagesGetAttachedStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetAttachedStickers) ProtoMessage() {} func (*TLMessagesGetAttachedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{173} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{174} } func (m *TLMessagesGetAttachedStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetAttachedStickers.Unmarshal(m, b) @@ -8985,7 +9033,7 @@ func (m *TLMessagesSetGameScore) Reset() { *m = TLMessagesSetGameScore{} func (m *TLMessagesSetGameScore) String() string { return proto.CompactTextString(m) } func (*TLMessagesSetGameScore) ProtoMessage() {} func (*TLMessagesSetGameScore) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{174} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{175} } func (m *TLMessagesSetGameScore) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSetGameScore.Unmarshal(m, b) @@ -9064,7 +9112,7 @@ func (m *TLMessagesSetInlineGameScore) Reset() { *m = TLMessagesSetInlin func (m *TLMessagesSetInlineGameScore) String() string { return proto.CompactTextString(m) } func (*TLMessagesSetInlineGameScore) ProtoMessage() {} func (*TLMessagesSetInlineGameScore) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{175} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{176} } func (m *TLMessagesSetInlineGameScore) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSetInlineGameScore.Unmarshal(m, b) @@ -9134,7 +9182,7 @@ func (m *TLMessagesGetGameHighScores) Reset() { *m = TLMessagesGetGameHi func (m *TLMessagesGetGameHighScores) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetGameHighScores) ProtoMessage() {} func (*TLMessagesGetGameHighScores) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{176} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{177} } func (m *TLMessagesGetGameHighScores) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetGameHighScores.Unmarshal(m, b) @@ -9189,7 +9237,7 @@ func (m *TLMessagesGetInlineGameHighScores) Reset() { *m = TLMessagesGet func (m *TLMessagesGetInlineGameHighScores) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetInlineGameHighScores) ProtoMessage() {} func (*TLMessagesGetInlineGameHighScores) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{177} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{178} } func (m *TLMessagesGetInlineGameHighScores) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetInlineGameHighScores.Unmarshal(m, b) @@ -9238,7 +9286,7 @@ func (m *TLMessagesGetCommonChats) Reset() { *m = TLMessagesGetCommonCha func (m *TLMessagesGetCommonChats) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetCommonChats) ProtoMessage() {} func (*TLMessagesGetCommonChats) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{178} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{179} } func (m *TLMessagesGetCommonChats) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetCommonChats.Unmarshal(m, b) @@ -9292,7 +9340,7 @@ func (m *TLMessagesGetAllChats) Reset() { *m = TLMessagesGetAllChats{} } func (m *TLMessagesGetAllChats) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetAllChats) ProtoMessage() {} func (*TLMessagesGetAllChats) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{179} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{180} } func (m *TLMessagesGetAllChats) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetAllChats.Unmarshal(m, b) @@ -9333,7 +9381,7 @@ func (m *TLMessagesGetWebPage) Reset() { *m = TLMessagesGetWebPage{} } func (m *TLMessagesGetWebPage) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetWebPage) ProtoMessage() {} func (*TLMessagesGetWebPage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{180} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{181} } func (m *TLMessagesGetWebPage) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetWebPage.Unmarshal(m, b) @@ -9381,7 +9429,7 @@ func (m *TLMessagesToggleDialogPin) Reset() { *m = TLMessagesToggleDialo func (m *TLMessagesToggleDialogPin) String() string { return proto.CompactTextString(m) } func (*TLMessagesToggleDialogPin) ProtoMessage() {} func (*TLMessagesToggleDialogPin) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{181} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{182} } func (m *TLMessagesToggleDialogPin) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesToggleDialogPin.Unmarshal(m, b) @@ -9429,7 +9477,7 @@ func (m *TLMessagesReorderPinnedDialogs) Reset() { *m = TLMessagesReorde func (m *TLMessagesReorderPinnedDialogs) String() string { return proto.CompactTextString(m) } func (*TLMessagesReorderPinnedDialogs) ProtoMessage() {} func (*TLMessagesReorderPinnedDialogs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{182} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{183} } func (m *TLMessagesReorderPinnedDialogs) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReorderPinnedDialogs.Unmarshal(m, b) @@ -9475,7 +9523,7 @@ func (m *TLMessagesGetPinnedDialogs) Reset() { *m = TLMessagesGetPinnedD func (m *TLMessagesGetPinnedDialogs) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetPinnedDialogs) ProtoMessage() {} func (*TLMessagesGetPinnedDialogs) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{183} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{184} } func (m *TLMessagesGetPinnedDialogs) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetPinnedDialogs.Unmarshal(m, b) @@ -9510,7 +9558,7 @@ func (m *TLMessagesSetBotShippingResults) Reset() { *m = TLMessagesSetBo func (m *TLMessagesSetBotShippingResults) String() string { return proto.CompactTextString(m) } func (*TLMessagesSetBotShippingResults) ProtoMessage() {} func (*TLMessagesSetBotShippingResults) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{184} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{185} } func (m *TLMessagesSetBotShippingResults) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSetBotShippingResults.Unmarshal(m, b) @@ -9566,7 +9614,7 @@ func (m *TLMessagesSetBotPrecheckoutResults) Reset() { *m = TLMessagesSe func (m *TLMessagesSetBotPrecheckoutResults) String() string { return proto.CompactTextString(m) } func (*TLMessagesSetBotPrecheckoutResults) ProtoMessage() {} func (*TLMessagesSetBotPrecheckoutResults) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{185} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{186} } func (m *TLMessagesSetBotPrecheckoutResults) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSetBotPrecheckoutResults.Unmarshal(m, b) @@ -9621,7 +9669,7 @@ func (m *TLMessagesUploadMedia) Reset() { *m = TLMessagesUploadMedia{} } func (m *TLMessagesUploadMedia) String() string { return proto.CompactTextString(m) } func (*TLMessagesUploadMedia) ProtoMessage() {} func (*TLMessagesUploadMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{186} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{187} } func (m *TLMessagesUploadMedia) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesUploadMedia.Unmarshal(m, b) @@ -9670,7 +9718,7 @@ func (m *TLMessagesSendScreenshotNotification) Reset() { *m = TLMessages func (m *TLMessagesSendScreenshotNotification) String() string { return proto.CompactTextString(m) } func (*TLMessagesSendScreenshotNotification) ProtoMessage() {} func (*TLMessagesSendScreenshotNotification) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{187} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{188} } func (m *TLMessagesSendScreenshotNotification) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSendScreenshotNotification.Unmarshal(m, b) @@ -9724,7 +9772,7 @@ func (m *TLMessagesGetFavedStickers) Reset() { *m = TLMessagesGetFavedSt func (m *TLMessagesGetFavedStickers) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetFavedStickers) ProtoMessage() {} func (*TLMessagesGetFavedStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{188} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{189} } func (m *TLMessagesGetFavedStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetFavedStickers.Unmarshal(m, b) @@ -9765,7 +9813,7 @@ func (m *TLMessagesFaveSticker) Reset() { *m = TLMessagesFaveSticker{} } func (m *TLMessagesFaveSticker) String() string { return proto.CompactTextString(m) } func (*TLMessagesFaveSticker) ProtoMessage() {} func (*TLMessagesFaveSticker) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{189} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{190} } func (m *TLMessagesFaveSticker) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesFaveSticker.Unmarshal(m, b) @@ -9817,7 +9865,7 @@ func (m *TLMessagesGetUnreadMentions) Reset() { *m = TLMessagesGetUnread func (m *TLMessagesGetUnreadMentions) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetUnreadMentions) ProtoMessage() {} func (*TLMessagesGetUnreadMentions) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{190} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{191} } func (m *TLMessagesGetUnreadMentions) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetUnreadMentions.Unmarshal(m, b) @@ -9892,7 +9940,7 @@ func (m *TLMessagesReadMentions) Reset() { *m = TLMessagesReadMentions{} func (m *TLMessagesReadMentions) String() string { return proto.CompactTextString(m) } func (*TLMessagesReadMentions) ProtoMessage() {} func (*TLMessagesReadMentions) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{191} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{192} } func (m *TLMessagesReadMentions) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesReadMentions.Unmarshal(m, b) @@ -9934,7 +9982,7 @@ func (m *TLMessagesGetRecentLocations) Reset() { *m = TLMessagesGetRecen func (m *TLMessagesGetRecentLocations) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetRecentLocations) ProtoMessage() {} func (*TLMessagesGetRecentLocations) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{192} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{193} } func (m *TLMessagesGetRecentLocations) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetRecentLocations.Unmarshal(m, b) @@ -9993,7 +10041,7 @@ func (m *TLMessagesSendMultiMedia) Reset() { *m = TLMessagesSendMultiMed func (m *TLMessagesSendMultiMedia) String() string { return proto.CompactTextString(m) } func (*TLMessagesSendMultiMedia) ProtoMessage() {} func (*TLMessagesSendMultiMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{193} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{194} } func (m *TLMessagesSendMultiMedia) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSendMultiMedia.Unmarshal(m, b) @@ -10069,7 +10117,7 @@ func (m *TLMessagesUploadEncryptedFile) Reset() { *m = TLMessagesUploadE func (m *TLMessagesUploadEncryptedFile) String() string { return proto.CompactTextString(m) } func (*TLMessagesUploadEncryptedFile) ProtoMessage() {} func (*TLMessagesUploadEncryptedFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{194} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{195} } func (m *TLMessagesUploadEncryptedFile) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesUploadEncryptedFile.Unmarshal(m, b) @@ -10118,7 +10166,7 @@ func (m *TLMessagesSearchStickerSets) Reset() { *m = TLMessagesSearchSti func (m *TLMessagesSearchStickerSets) String() string { return proto.CompactTextString(m) } func (*TLMessagesSearchStickerSets) ProtoMessage() {} func (*TLMessagesSearchStickerSets) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{195} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{196} } func (m *TLMessagesSearchStickerSets) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesSearchStickerSets.Unmarshal(m, b) @@ -10171,7 +10219,7 @@ func (m *TLMessagesGetSplitRanges) Reset() { *m = TLMessagesGetSplitRang func (m *TLMessagesGetSplitRanges) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetSplitRanges) ProtoMessage() {} func (*TLMessagesGetSplitRanges) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{196} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{197} } func (m *TLMessagesGetSplitRanges) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetSplitRanges.Unmarshal(m, b) @@ -10205,7 +10253,7 @@ func (m *TLMessagesMarkDialogUnread) Reset() { *m = TLMessagesMarkDialog func (m *TLMessagesMarkDialogUnread) String() string { return proto.CompactTextString(m) } func (*TLMessagesMarkDialogUnread) ProtoMessage() {} func (*TLMessagesMarkDialogUnread) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{197} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{198} } func (m *TLMessagesMarkDialogUnread) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesMarkDialogUnread.Unmarshal(m, b) @@ -10251,7 +10299,7 @@ func (m *TLMessagesGetDialogUnreadMarks) Reset() { *m = TLMessagesGetDia func (m *TLMessagesGetDialogUnreadMarks) String() string { return proto.CompactTextString(m) } func (*TLMessagesGetDialogUnreadMarks) ProtoMessage() {} func (*TLMessagesGetDialogUnreadMarks) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{198} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{199} } func (m *TLMessagesGetDialogUnreadMarks) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesGetDialogUnreadMarks.Unmarshal(m, b) @@ -10283,7 +10331,7 @@ func (m *TLMessagesClearAllDrafts) Reset() { *m = TLMessagesClearAllDraf func (m *TLMessagesClearAllDrafts) String() string { return proto.CompactTextString(m) } func (*TLMessagesClearAllDrafts) ProtoMessage() {} func (*TLMessagesClearAllDrafts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{199} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{200} } func (m *TLMessagesClearAllDrafts) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLMessagesClearAllDrafts.Unmarshal(m, b) @@ -10315,7 +10363,7 @@ func (m *TLUpdatesGetState) Reset() { *m = TLUpdatesGetState{} } func (m *TLUpdatesGetState) String() string { return proto.CompactTextString(m) } func (*TLUpdatesGetState) ProtoMessage() {} func (*TLUpdatesGetState) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{200} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{201} } func (m *TLUpdatesGetState) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUpdatesGetState.Unmarshal(m, b) @@ -10351,7 +10399,7 @@ func (m *TLUpdatesGetDifference) Reset() { *m = TLUpdatesGetDifference{} func (m *TLUpdatesGetDifference) String() string { return proto.CompactTextString(m) } func (*TLUpdatesGetDifference) ProtoMessage() {} func (*TLUpdatesGetDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{201} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{202} } func (m *TLUpdatesGetDifference) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUpdatesGetDifference.Unmarshal(m, b) @@ -10416,7 +10464,7 @@ func (m *TLUpdatesGetChannelDifference) Reset() { *m = TLUpdatesGetChann func (m *TLUpdatesGetChannelDifference) String() string { return proto.CompactTextString(m) } func (*TLUpdatesGetChannelDifference) ProtoMessage() {} func (*TLUpdatesGetChannelDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{202} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{203} } func (m *TLUpdatesGetChannelDifference) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUpdatesGetChannelDifference.Unmarshal(m, b) @@ -10484,7 +10532,7 @@ func (m *TLPhotosUpdateProfilePhoto) Reset() { *m = TLPhotosUpdateProfil func (m *TLPhotosUpdateProfilePhoto) String() string { return proto.CompactTextString(m) } func (*TLPhotosUpdateProfilePhoto) ProtoMessage() {} func (*TLPhotosUpdateProfilePhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{203} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{204} } func (m *TLPhotosUpdateProfilePhoto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhotosUpdateProfilePhoto.Unmarshal(m, b) @@ -10524,7 +10572,7 @@ func (m *TLPhotosUploadProfilePhoto) Reset() { *m = TLPhotosUploadProfil func (m *TLPhotosUploadProfilePhoto) String() string { return proto.CompactTextString(m) } func (*TLPhotosUploadProfilePhoto) ProtoMessage() {} func (*TLPhotosUploadProfilePhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{204} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{205} } func (m *TLPhotosUploadProfilePhoto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhotosUploadProfilePhoto.Unmarshal(m, b) @@ -10564,7 +10612,7 @@ func (m *TLPhotosDeletePhotos) Reset() { *m = TLPhotosDeletePhotos{} } func (m *TLPhotosDeletePhotos) String() string { return proto.CompactTextString(m) } func (*TLPhotosDeletePhotos) ProtoMessage() {} func (*TLPhotosDeletePhotos) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{205} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{206} } func (m *TLPhotosDeletePhotos) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhotosDeletePhotos.Unmarshal(m, b) @@ -10607,7 +10655,7 @@ func (m *TLPhotosGetUserPhotos) Reset() { *m = TLPhotosGetUserPhotos{} } func (m *TLPhotosGetUserPhotos) String() string { return proto.CompactTextString(m) } func (*TLPhotosGetUserPhotos) ProtoMessage() {} func (*TLPhotosGetUserPhotos) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{206} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{207} } func (m *TLPhotosGetUserPhotos) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhotosGetUserPhotos.Unmarshal(m, b) @@ -10670,7 +10718,7 @@ func (m *TLUploadSaveFilePart) Reset() { *m = TLUploadSaveFilePart{} } func (m *TLUploadSaveFilePart) String() string { return proto.CompactTextString(m) } func (*TLUploadSaveFilePart) ProtoMessage() {} func (*TLUploadSaveFilePart) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{207} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{208} } func (m *TLUploadSaveFilePart) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUploadSaveFilePart.Unmarshal(m, b) @@ -10726,7 +10774,7 @@ func (m *TLUploadGetFile) Reset() { *m = TLUploadGetFile{} } func (m *TLUploadGetFile) String() string { return proto.CompactTextString(m) } func (*TLUploadGetFile) ProtoMessage() {} func (*TLUploadGetFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{208} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{209} } func (m *TLUploadGetFile) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUploadGetFile.Unmarshal(m, b) @@ -10783,7 +10831,7 @@ func (m *TLUploadSaveBigFilePart) Reset() { *m = TLUploadSaveBigFilePart func (m *TLUploadSaveBigFilePart) String() string { return proto.CompactTextString(m) } func (*TLUploadSaveBigFilePart) ProtoMessage() {} func (*TLUploadSaveBigFilePart) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{209} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{210} } func (m *TLUploadSaveBigFilePart) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUploadSaveBigFilePart.Unmarshal(m, b) @@ -10846,7 +10894,7 @@ func (m *TLUploadGetWebFile) Reset() { *m = TLUploadGetWebFile{} } func (m *TLUploadGetWebFile) String() string { return proto.CompactTextString(m) } func (*TLUploadGetWebFile) ProtoMessage() {} func (*TLUploadGetWebFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{210} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{211} } func (m *TLUploadGetWebFile) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUploadGetWebFile.Unmarshal(m, b) @@ -10902,7 +10950,7 @@ func (m *TLUploadGetCdnFile) Reset() { *m = TLUploadGetCdnFile{} } func (m *TLUploadGetCdnFile) String() string { return proto.CompactTextString(m) } func (*TLUploadGetCdnFile) ProtoMessage() {} func (*TLUploadGetCdnFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{211} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{212} } func (m *TLUploadGetCdnFile) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUploadGetCdnFile.Unmarshal(m, b) @@ -10957,7 +11005,7 @@ func (m *TLUploadReuploadCdnFile) Reset() { *m = TLUploadReuploadCdnFile func (m *TLUploadReuploadCdnFile) String() string { return proto.CompactTextString(m) } func (*TLUploadReuploadCdnFile) ProtoMessage() {} func (*TLUploadReuploadCdnFile) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{212} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{213} } func (m *TLUploadReuploadCdnFile) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUploadReuploadCdnFile.Unmarshal(m, b) @@ -11005,7 +11053,7 @@ func (m *TLUploadGetCdnFileHashes) Reset() { *m = TLUploadGetCdnFileHash func (m *TLUploadGetCdnFileHashes) String() string { return proto.CompactTextString(m) } func (*TLUploadGetCdnFileHashes) ProtoMessage() {} func (*TLUploadGetCdnFileHashes) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{213} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{214} } func (m *TLUploadGetCdnFileHashes) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUploadGetCdnFileHashes.Unmarshal(m, b) @@ -11053,7 +11101,7 @@ func (m *TLUploadGetFileHashes) Reset() { *m = TLUploadGetFileHashes{} } func (m *TLUploadGetFileHashes) String() string { return proto.CompactTextString(m) } func (*TLUploadGetFileHashes) ProtoMessage() {} func (*TLUploadGetFileHashes) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{214} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{215} } func (m *TLUploadGetFileHashes) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLUploadGetFileHashes.Unmarshal(m, b) @@ -11099,7 +11147,7 @@ func (m *TLHelpGetConfig) Reset() { *m = TLHelpGetConfig{} } func (m *TLHelpGetConfig) String() string { return proto.CompactTextString(m) } func (*TLHelpGetConfig) ProtoMessage() {} func (*TLHelpGetConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{215} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{216} } func (m *TLHelpGetConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetConfig.Unmarshal(m, b) @@ -11131,7 +11179,7 @@ func (m *TLHelpGetNearestDc) Reset() { *m = TLHelpGetNearestDc{} } func (m *TLHelpGetNearestDc) String() string { return proto.CompactTextString(m) } func (*TLHelpGetNearestDc) ProtoMessage() {} func (*TLHelpGetNearestDc) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{216} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{217} } func (m *TLHelpGetNearestDc) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetNearestDc.Unmarshal(m, b) @@ -11164,7 +11212,7 @@ func (m *TLHelpGetAppUpdate) Reset() { *m = TLHelpGetAppUpdate{} } func (m *TLHelpGetAppUpdate) String() string { return proto.CompactTextString(m) } func (*TLHelpGetAppUpdate) ProtoMessage() {} func (*TLHelpGetAppUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{217} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{218} } func (m *TLHelpGetAppUpdate) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetAppUpdate.Unmarshal(m, b) @@ -11204,7 +11252,7 @@ func (m *TLHelpSaveAppLog) Reset() { *m = TLHelpSaveAppLog{} } func (m *TLHelpSaveAppLog) String() string { return proto.CompactTextString(m) } func (*TLHelpSaveAppLog) ProtoMessage() {} func (*TLHelpSaveAppLog) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{218} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{219} } func (m *TLHelpSaveAppLog) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpSaveAppLog.Unmarshal(m, b) @@ -11243,7 +11291,7 @@ func (m *TLHelpGetInviteText) Reset() { *m = TLHelpGetInviteText{} } func (m *TLHelpGetInviteText) String() string { return proto.CompactTextString(m) } func (*TLHelpGetInviteText) ProtoMessage() {} func (*TLHelpGetInviteText) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{219} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{220} } func (m *TLHelpGetInviteText) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetInviteText.Unmarshal(m, b) @@ -11275,7 +11323,7 @@ func (m *TLHelpGetSupport) Reset() { *m = TLHelpGetSupport{} } func (m *TLHelpGetSupport) String() string { return proto.CompactTextString(m) } func (*TLHelpGetSupport) ProtoMessage() {} func (*TLHelpGetSupport) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{220} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{221} } func (m *TLHelpGetSupport) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetSupport.Unmarshal(m, b) @@ -11308,7 +11356,7 @@ func (m *TLHelpGetAppChangelog) Reset() { *m = TLHelpGetAppChangelog{} } func (m *TLHelpGetAppChangelog) String() string { return proto.CompactTextString(m) } func (*TLHelpGetAppChangelog) ProtoMessage() {} func (*TLHelpGetAppChangelog) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{221} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{222} } func (m *TLHelpGetAppChangelog) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetAppChangelog.Unmarshal(m, b) @@ -11349,7 +11397,7 @@ func (m *TLHelpSetBotUpdatesStatus) Reset() { *m = TLHelpSetBotUpdatesSt func (m *TLHelpSetBotUpdatesStatus) String() string { return proto.CompactTextString(m) } func (*TLHelpSetBotUpdatesStatus) ProtoMessage() {} func (*TLHelpSetBotUpdatesStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{222} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{223} } func (m *TLHelpSetBotUpdatesStatus) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpSetBotUpdatesStatus.Unmarshal(m, b) @@ -11395,7 +11443,7 @@ func (m *TLHelpGetCdnConfig) Reset() { *m = TLHelpGetCdnConfig{} } func (m *TLHelpGetCdnConfig) String() string { return proto.CompactTextString(m) } func (*TLHelpGetCdnConfig) ProtoMessage() {} func (*TLHelpGetCdnConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{223} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{224} } func (m *TLHelpGetCdnConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetCdnConfig.Unmarshal(m, b) @@ -11428,7 +11476,7 @@ func (m *TLHelpGetRecentMeUrls) Reset() { *m = TLHelpGetRecentMeUrls{} } func (m *TLHelpGetRecentMeUrls) String() string { return proto.CompactTextString(m) } func (*TLHelpGetRecentMeUrls) ProtoMessage() {} func (*TLHelpGetRecentMeUrls) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{224} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{225} } func (m *TLHelpGetRecentMeUrls) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetRecentMeUrls.Unmarshal(m, b) @@ -11467,7 +11515,7 @@ func (m *TLHelpGetProxyData) Reset() { *m = TLHelpGetProxyData{} } func (m *TLHelpGetProxyData) String() string { return proto.CompactTextString(m) } func (*TLHelpGetProxyData) ProtoMessage() {} func (*TLHelpGetProxyData) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{225} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{226} } func (m *TLHelpGetProxyData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetProxyData.Unmarshal(m, b) @@ -11499,7 +11547,7 @@ func (m *TLHelpGetTermsOfServiceUpdate) Reset() { *m = TLHelpGetTermsOfS func (m *TLHelpGetTermsOfServiceUpdate) String() string { return proto.CompactTextString(m) } func (*TLHelpGetTermsOfServiceUpdate) ProtoMessage() {} func (*TLHelpGetTermsOfServiceUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{226} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{227} } func (m *TLHelpGetTermsOfServiceUpdate) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetTermsOfServiceUpdate.Unmarshal(m, b) @@ -11532,7 +11580,7 @@ func (m *TLHelpAcceptTermsOfService) Reset() { *m = TLHelpAcceptTermsOfS func (m *TLHelpAcceptTermsOfService) String() string { return proto.CompactTextString(m) } func (*TLHelpAcceptTermsOfService) ProtoMessage() {} func (*TLHelpAcceptTermsOfService) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{227} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{228} } func (m *TLHelpAcceptTermsOfService) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpAcceptTermsOfService.Unmarshal(m, b) @@ -11572,7 +11620,7 @@ func (m *TLHelpGetDeepLinkInfo) Reset() { *m = TLHelpGetDeepLinkInfo{} } func (m *TLHelpGetDeepLinkInfo) String() string { return proto.CompactTextString(m) } func (*TLHelpGetDeepLinkInfo) ProtoMessage() {} func (*TLHelpGetDeepLinkInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{228} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{229} } func (m *TLHelpGetDeepLinkInfo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetDeepLinkInfo.Unmarshal(m, b) @@ -11612,7 +11660,7 @@ func (m *TLHelpGetPassportConfig) Reset() { *m = TLHelpGetPassportConfig func (m *TLHelpGetPassportConfig) String() string { return proto.CompactTextString(m) } func (*TLHelpGetPassportConfig) ProtoMessage() {} func (*TLHelpGetPassportConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{229} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{230} } func (m *TLHelpGetPassportConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpGetPassportConfig.Unmarshal(m, b) @@ -11651,7 +11699,7 @@ func (m *TLHelpTest) Reset() { *m = TLHelpTest{} } func (m *TLHelpTest) String() string { return proto.CompactTextString(m) } func (*TLHelpTest) ProtoMessage() {} func (*TLHelpTest) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{230} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{231} } func (m *TLHelpTest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLHelpTest.Unmarshal(m, b) @@ -11685,7 +11733,7 @@ func (m *TLChannelsReadHistory) Reset() { *m = TLChannelsReadHistory{} } func (m *TLChannelsReadHistory) String() string { return proto.CompactTextString(m) } func (*TLChannelsReadHistory) ProtoMessage() {} func (*TLChannelsReadHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{231} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{232} } func (m *TLChannelsReadHistory) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsReadHistory.Unmarshal(m, b) @@ -11733,7 +11781,7 @@ func (m *TLChannelsDeleteMessages) Reset() { *m = TLChannelsDeleteMessag func (m *TLChannelsDeleteMessages) String() string { return proto.CompactTextString(m) } func (*TLChannelsDeleteMessages) ProtoMessage() {} func (*TLChannelsDeleteMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{232} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{233} } func (m *TLChannelsDeleteMessages) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsDeleteMessages.Unmarshal(m, b) @@ -11781,7 +11829,7 @@ func (m *TLChannelsDeleteUserHistory) Reset() { *m = TLChannelsDeleteUse func (m *TLChannelsDeleteUserHistory) String() string { return proto.CompactTextString(m) } func (*TLChannelsDeleteUserHistory) ProtoMessage() {} func (*TLChannelsDeleteUserHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{233} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{234} } func (m *TLChannelsDeleteUserHistory) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsDeleteUserHistory.Unmarshal(m, b) @@ -11830,7 +11878,7 @@ func (m *TLChannelsReportSpam) Reset() { *m = TLChannelsReportSpam{} } func (m *TLChannelsReportSpam) String() string { return proto.CompactTextString(m) } func (*TLChannelsReportSpam) ProtoMessage() {} func (*TLChannelsReportSpam) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{234} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{235} } func (m *TLChannelsReportSpam) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsReportSpam.Unmarshal(m, b) @@ -11885,7 +11933,7 @@ func (m *TLChannelsGetMessages) Reset() { *m = TLChannelsGetMessages{} } func (m *TLChannelsGetMessages) String() string { return proto.CompactTextString(m) } func (*TLChannelsGetMessages) ProtoMessage() {} func (*TLChannelsGetMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{235} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{236} } func (m *TLChannelsGetMessages) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsGetMessages.Unmarshal(m, b) @@ -11936,7 +11984,7 @@ func (m *TLChannelsGetParticipants) Reset() { *m = TLChannelsGetParticip func (m *TLChannelsGetParticipants) String() string { return proto.CompactTextString(m) } func (*TLChannelsGetParticipants) ProtoMessage() {} func (*TLChannelsGetParticipants) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{236} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{237} } func (m *TLChannelsGetParticipants) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsGetParticipants.Unmarshal(m, b) @@ -12005,7 +12053,7 @@ func (m *TLChannelsGetParticipant) Reset() { *m = TLChannelsGetParticipa func (m *TLChannelsGetParticipant) String() string { return proto.CompactTextString(m) } func (*TLChannelsGetParticipant) ProtoMessage() {} func (*TLChannelsGetParticipant) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{237} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{238} } func (m *TLChannelsGetParticipant) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsGetParticipant.Unmarshal(m, b) @@ -12052,7 +12100,7 @@ func (m *TLChannelsGetChannels) Reset() { *m = TLChannelsGetChannels{} } func (m *TLChannelsGetChannels) String() string { return proto.CompactTextString(m) } func (*TLChannelsGetChannels) ProtoMessage() {} func (*TLChannelsGetChannels) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{238} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{239} } func (m *TLChannelsGetChannels) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsGetChannels.Unmarshal(m, b) @@ -12092,7 +12140,7 @@ func (m *TLChannelsGetFullChannel) Reset() { *m = TLChannelsGetFullChann func (m *TLChannelsGetFullChannel) String() string { return proto.CompactTextString(m) } func (*TLChannelsGetFullChannel) ProtoMessage() {} func (*TLChannelsGetFullChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{239} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{240} } func (m *TLChannelsGetFullChannel) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsGetFullChannel.Unmarshal(m, b) @@ -12135,7 +12183,7 @@ func (m *TLChannelsCreateChannel) Reset() { *m = TLChannelsCreateChannel func (m *TLChannelsCreateChannel) String() string { return proto.CompactTextString(m) } func (*TLChannelsCreateChannel) ProtoMessage() {} func (*TLChannelsCreateChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{240} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{241} } func (m *TLChannelsCreateChannel) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsCreateChannel.Unmarshal(m, b) @@ -12197,7 +12245,7 @@ func (m *TLChannelsEditAbout) Reset() { *m = TLChannelsEditAbout{} } func (m *TLChannelsEditAbout) String() string { return proto.CompactTextString(m) } func (*TLChannelsEditAbout) ProtoMessage() {} func (*TLChannelsEditAbout) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{241} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{242} } func (m *TLChannelsEditAbout) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsEditAbout.Unmarshal(m, b) @@ -12246,7 +12294,7 @@ func (m *TLChannelsEditAdmin) Reset() { *m = TLChannelsEditAdmin{} } func (m *TLChannelsEditAdmin) String() string { return proto.CompactTextString(m) } func (*TLChannelsEditAdmin) ProtoMessage() {} func (*TLChannelsEditAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{242} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{243} } func (m *TLChannelsEditAdmin) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsEditAdmin.Unmarshal(m, b) @@ -12301,7 +12349,7 @@ func (m *TLChannelsEditTitle) Reset() { *m = TLChannelsEditTitle{} } func (m *TLChannelsEditTitle) String() string { return proto.CompactTextString(m) } func (*TLChannelsEditTitle) ProtoMessage() {} func (*TLChannelsEditTitle) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{243} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{244} } func (m *TLChannelsEditTitle) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsEditTitle.Unmarshal(m, b) @@ -12349,7 +12397,7 @@ func (m *TLChannelsEditPhoto) Reset() { *m = TLChannelsEditPhoto{} } func (m *TLChannelsEditPhoto) String() string { return proto.CompactTextString(m) } func (*TLChannelsEditPhoto) ProtoMessage() {} func (*TLChannelsEditPhoto) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{244} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{245} } func (m *TLChannelsEditPhoto) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsEditPhoto.Unmarshal(m, b) @@ -12397,7 +12445,7 @@ func (m *TLChannelsCheckUsername) Reset() { *m = TLChannelsCheckUsername func (m *TLChannelsCheckUsername) String() string { return proto.CompactTextString(m) } func (*TLChannelsCheckUsername) ProtoMessage() {} func (*TLChannelsCheckUsername) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{245} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{246} } func (m *TLChannelsCheckUsername) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsCheckUsername.Unmarshal(m, b) @@ -12445,7 +12493,7 @@ func (m *TLChannelsUpdateUsername) Reset() { *m = TLChannelsUpdateUserna func (m *TLChannelsUpdateUsername) String() string { return proto.CompactTextString(m) } func (*TLChannelsUpdateUsername) ProtoMessage() {} func (*TLChannelsUpdateUsername) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{246} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{247} } func (m *TLChannelsUpdateUsername) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsUpdateUsername.Unmarshal(m, b) @@ -12492,7 +12540,7 @@ func (m *TLChannelsJoinChannel) Reset() { *m = TLChannelsJoinChannel{} } func (m *TLChannelsJoinChannel) String() string { return proto.CompactTextString(m) } func (*TLChannelsJoinChannel) ProtoMessage() {} func (*TLChannelsJoinChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{247} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{248} } func (m *TLChannelsJoinChannel) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsJoinChannel.Unmarshal(m, b) @@ -12532,7 +12580,7 @@ func (m *TLChannelsLeaveChannel) Reset() { *m = TLChannelsLeaveChannel{} func (m *TLChannelsLeaveChannel) String() string { return proto.CompactTextString(m) } func (*TLChannelsLeaveChannel) ProtoMessage() {} func (*TLChannelsLeaveChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{248} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{249} } func (m *TLChannelsLeaveChannel) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsLeaveChannel.Unmarshal(m, b) @@ -12573,7 +12621,7 @@ func (m *TLChannelsInviteToChannel) Reset() { *m = TLChannelsInviteToCha func (m *TLChannelsInviteToChannel) String() string { return proto.CompactTextString(m) } func (*TLChannelsInviteToChannel) ProtoMessage() {} func (*TLChannelsInviteToChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{249} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{250} } func (m *TLChannelsInviteToChannel) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsInviteToChannel.Unmarshal(m, b) @@ -12620,7 +12668,7 @@ func (m *TLChannelsExportInvite) Reset() { *m = TLChannelsExportInvite{} func (m *TLChannelsExportInvite) String() string { return proto.CompactTextString(m) } func (*TLChannelsExportInvite) ProtoMessage() {} func (*TLChannelsExportInvite) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{250} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{251} } func (m *TLChannelsExportInvite) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsExportInvite.Unmarshal(m, b) @@ -12660,7 +12708,7 @@ func (m *TLChannelsDeleteChannel) Reset() { *m = TLChannelsDeleteChannel func (m *TLChannelsDeleteChannel) String() string { return proto.CompactTextString(m) } func (*TLChannelsDeleteChannel) ProtoMessage() {} func (*TLChannelsDeleteChannel) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{251} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{252} } func (m *TLChannelsDeleteChannel) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsDeleteChannel.Unmarshal(m, b) @@ -12701,7 +12749,7 @@ func (m *TLChannelsToggleInvites) Reset() { *m = TLChannelsToggleInvites func (m *TLChannelsToggleInvites) String() string { return proto.CompactTextString(m) } func (*TLChannelsToggleInvites) ProtoMessage() {} func (*TLChannelsToggleInvites) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{252} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{253} } func (m *TLChannelsToggleInvites) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsToggleInvites.Unmarshal(m, b) @@ -12750,7 +12798,7 @@ func (m *TLChannelsExportMessageLink) Reset() { *m = TLChannelsExportMes func (m *TLChannelsExportMessageLink) String() string { return proto.CompactTextString(m) } func (*TLChannelsExportMessageLink) ProtoMessage() {} func (*TLChannelsExportMessageLink) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{253} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{254} } func (m *TLChannelsExportMessageLink) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsExportMessageLink.Unmarshal(m, b) @@ -12805,7 +12853,7 @@ func (m *TLChannelsToggleSignatures) Reset() { *m = TLChannelsToggleSign func (m *TLChannelsToggleSignatures) String() string { return proto.CompactTextString(m) } func (*TLChannelsToggleSignatures) ProtoMessage() {} func (*TLChannelsToggleSignatures) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{254} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{255} } func (m *TLChannelsToggleSignatures) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsToggleSignatures.Unmarshal(m, b) @@ -12854,7 +12902,7 @@ func (m *TLChannelsUpdatePinnedMessage) Reset() { *m = TLChannelsUpdateP func (m *TLChannelsUpdatePinnedMessage) String() string { return proto.CompactTextString(m) } func (*TLChannelsUpdatePinnedMessage) ProtoMessage() {} func (*TLChannelsUpdatePinnedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{255} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{256} } func (m *TLChannelsUpdatePinnedMessage) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsUpdatePinnedMessage.Unmarshal(m, b) @@ -12907,7 +12955,7 @@ func (m *TLChannelsGetAdminedPublicChannels) Reset() { *m = TLChannelsGe func (m *TLChannelsGetAdminedPublicChannels) String() string { return proto.CompactTextString(m) } func (*TLChannelsGetAdminedPublicChannels) ProtoMessage() {} func (*TLChannelsGetAdminedPublicChannels) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{256} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{257} } func (m *TLChannelsGetAdminedPublicChannels) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsGetAdminedPublicChannels.Unmarshal(m, b) @@ -12942,7 +12990,7 @@ func (m *TLChannelsEditBanned) Reset() { *m = TLChannelsEditBanned{} } func (m *TLChannelsEditBanned) String() string { return proto.CompactTextString(m) } func (*TLChannelsEditBanned) ProtoMessage() {} func (*TLChannelsEditBanned) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{257} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{258} } func (m *TLChannelsEditBanned) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsEditBanned.Unmarshal(m, b) @@ -13002,7 +13050,7 @@ func (m *TLChannelsGetAdminLog) Reset() { *m = TLChannelsGetAdminLog{} } func (m *TLChannelsGetAdminLog) String() string { return proto.CompactTextString(m) } func (*TLChannelsGetAdminLog) ProtoMessage() {} func (*TLChannelsGetAdminLog) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{258} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{259} } func (m *TLChannelsGetAdminLog) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsGetAdminLog.Unmarshal(m, b) @@ -13085,7 +13133,7 @@ func (m *TLChannelsSetStickers) Reset() { *m = TLChannelsSetStickers{} } func (m *TLChannelsSetStickers) String() string { return proto.CompactTextString(m) } func (*TLChannelsSetStickers) ProtoMessage() {} func (*TLChannelsSetStickers) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{259} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{260} } func (m *TLChannelsSetStickers) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsSetStickers.Unmarshal(m, b) @@ -13133,7 +13181,7 @@ func (m *TLChannelsReadMessageContents) Reset() { *m = TLChannelsReadMes func (m *TLChannelsReadMessageContents) String() string { return proto.CompactTextString(m) } func (*TLChannelsReadMessageContents) ProtoMessage() {} func (*TLChannelsReadMessageContents) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{260} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{261} } func (m *TLChannelsReadMessageContents) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsReadMessageContents.Unmarshal(m, b) @@ -13181,7 +13229,7 @@ func (m *TLChannelsDeleteHistory) Reset() { *m = TLChannelsDeleteHistory func (m *TLChannelsDeleteHistory) String() string { return proto.CompactTextString(m) } func (*TLChannelsDeleteHistory) ProtoMessage() {} func (*TLChannelsDeleteHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{261} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{262} } func (m *TLChannelsDeleteHistory) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsDeleteHistory.Unmarshal(m, b) @@ -13229,7 +13277,7 @@ func (m *TLChannelsTogglePreHistoryHidden) Reset() { *m = TLChannelsTogg func (m *TLChannelsTogglePreHistoryHidden) String() string { return proto.CompactTextString(m) } func (*TLChannelsTogglePreHistoryHidden) ProtoMessage() {} func (*TLChannelsTogglePreHistoryHidden) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{262} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{263} } func (m *TLChannelsTogglePreHistoryHidden) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsTogglePreHistoryHidden.Unmarshal(m, b) @@ -13276,7 +13324,7 @@ func (m *TLChannelsGetLeftChannels) Reset() { *m = TLChannelsGetLeftChan func (m *TLChannelsGetLeftChannels) String() string { return proto.CompactTextString(m) } func (*TLChannelsGetLeftChannels) ProtoMessage() {} func (*TLChannelsGetLeftChannels) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{263} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{264} } func (m *TLChannelsGetLeftChannels) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLChannelsGetLeftChannels.Unmarshal(m, b) @@ -13317,7 +13365,7 @@ func (m *TLBotsSendCustomRequest) Reset() { *m = TLBotsSendCustomRequest func (m *TLBotsSendCustomRequest) String() string { return proto.CompactTextString(m) } func (*TLBotsSendCustomRequest) ProtoMessage() {} func (*TLBotsSendCustomRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{264} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{265} } func (m *TLBotsSendCustomRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLBotsSendCustomRequest.Unmarshal(m, b) @@ -13365,7 +13413,7 @@ func (m *TLBotsAnswerWebhookJSONQuery) Reset() { *m = TLBotsAnswerWebhoo func (m *TLBotsAnswerWebhookJSONQuery) String() string { return proto.CompactTextString(m) } func (*TLBotsAnswerWebhookJSONQuery) ProtoMessage() {} func (*TLBotsAnswerWebhookJSONQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{265} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{266} } func (m *TLBotsAnswerWebhookJSONQuery) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLBotsAnswerWebhookJSONQuery.Unmarshal(m, b) @@ -13412,7 +13460,7 @@ func (m *TLPaymentsGetPaymentForm) Reset() { *m = TLPaymentsGetPaymentFo func (m *TLPaymentsGetPaymentForm) String() string { return proto.CompactTextString(m) } func (*TLPaymentsGetPaymentForm) ProtoMessage() {} func (*TLPaymentsGetPaymentForm) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{266} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{267} } func (m *TLPaymentsGetPaymentForm) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPaymentsGetPaymentForm.Unmarshal(m, b) @@ -13452,7 +13500,7 @@ func (m *TLPaymentsGetPaymentReceipt) Reset() { *m = TLPaymentsGetPaymen func (m *TLPaymentsGetPaymentReceipt) String() string { return proto.CompactTextString(m) } func (*TLPaymentsGetPaymentReceipt) ProtoMessage() {} func (*TLPaymentsGetPaymentReceipt) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{267} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{268} } func (m *TLPaymentsGetPaymentReceipt) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPaymentsGetPaymentReceipt.Unmarshal(m, b) @@ -13494,7 +13542,7 @@ func (m *TLPaymentsValidateRequestedInfo) Reset() { *m = TLPaymentsValid func (m *TLPaymentsValidateRequestedInfo) String() string { return proto.CompactTextString(m) } func (*TLPaymentsValidateRequestedInfo) ProtoMessage() {} func (*TLPaymentsValidateRequestedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{268} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{269} } func (m *TLPaymentsValidateRequestedInfo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPaymentsValidateRequestedInfo.Unmarshal(m, b) @@ -13551,7 +13599,7 @@ func (m *TLPaymentsSendPaymentForm) Reset() { *m = TLPaymentsSendPayment func (m *TLPaymentsSendPaymentForm) String() string { return proto.CompactTextString(m) } func (*TLPaymentsSendPaymentForm) ProtoMessage() {} func (*TLPaymentsSendPaymentForm) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{269} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{270} } func (m *TLPaymentsSendPaymentForm) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPaymentsSendPaymentForm.Unmarshal(m, b) @@ -13611,7 +13659,7 @@ func (m *TLPaymentsGetSavedInfo) Reset() { *m = TLPaymentsGetSavedInfo{} func (m *TLPaymentsGetSavedInfo) String() string { return proto.CompactTextString(m) } func (*TLPaymentsGetSavedInfo) ProtoMessage() {} func (*TLPaymentsGetSavedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{270} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{271} } func (m *TLPaymentsGetSavedInfo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPaymentsGetSavedInfo.Unmarshal(m, b) @@ -13645,7 +13693,7 @@ func (m *TLPaymentsClearSavedInfo) Reset() { *m = TLPaymentsClearSavedIn func (m *TLPaymentsClearSavedInfo) String() string { return proto.CompactTextString(m) } func (*TLPaymentsClearSavedInfo) ProtoMessage() {} func (*TLPaymentsClearSavedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{271} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{272} } func (m *TLPaymentsClearSavedInfo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPaymentsClearSavedInfo.Unmarshal(m, b) @@ -13696,7 +13744,7 @@ func (m *TLStickersCreateStickerSet) Reset() { *m = TLStickersCreateStic func (m *TLStickersCreateStickerSet) String() string { return proto.CompactTextString(m) } func (*TLStickersCreateStickerSet) ProtoMessage() {} func (*TLStickersCreateStickerSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{272} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{273} } func (m *TLStickersCreateStickerSet) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLStickersCreateStickerSet.Unmarshal(m, b) @@ -13764,7 +13812,7 @@ func (m *TLStickersRemoveStickerFromSet) Reset() { *m = TLStickersRemove func (m *TLStickersRemoveStickerFromSet) String() string { return proto.CompactTextString(m) } func (*TLStickersRemoveStickerFromSet) ProtoMessage() {} func (*TLStickersRemoveStickerFromSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{273} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{274} } func (m *TLStickersRemoveStickerFromSet) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLStickersRemoveStickerFromSet.Unmarshal(m, b) @@ -13805,7 +13853,7 @@ func (m *TLStickersChangeStickerPosition) Reset() { *m = TLStickersChang func (m *TLStickersChangeStickerPosition) String() string { return proto.CompactTextString(m) } func (*TLStickersChangeStickerPosition) ProtoMessage() {} func (*TLStickersChangeStickerPosition) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{274} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{275} } func (m *TLStickersChangeStickerPosition) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLStickersChangeStickerPosition.Unmarshal(m, b) @@ -13853,7 +13901,7 @@ func (m *TLStickersAddStickerToSet) Reset() { *m = TLStickersAddStickerT func (m *TLStickersAddStickerToSet) String() string { return proto.CompactTextString(m) } func (*TLStickersAddStickerToSet) ProtoMessage() {} func (*TLStickersAddStickerToSet) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{275} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{276} } func (m *TLStickersAddStickerToSet) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLStickersAddStickerToSet.Unmarshal(m, b) @@ -13899,7 +13947,7 @@ func (m *TLPhoneGetCallConfig) Reset() { *m = TLPhoneGetCallConfig{} } func (m *TLPhoneGetCallConfig) String() string { return proto.CompactTextString(m) } func (*TLPhoneGetCallConfig) ProtoMessage() {} func (*TLPhoneGetCallConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{276} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{277} } func (m *TLPhoneGetCallConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhoneGetCallConfig.Unmarshal(m, b) @@ -13935,7 +13983,7 @@ func (m *TLPhoneRequestCall) Reset() { *m = TLPhoneRequestCall{} } func (m *TLPhoneRequestCall) String() string { return proto.CompactTextString(m) } func (*TLPhoneRequestCall) ProtoMessage() {} func (*TLPhoneRequestCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{277} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{278} } func (m *TLPhoneRequestCall) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhoneRequestCall.Unmarshal(m, b) @@ -13998,7 +14046,7 @@ func (m *TLPhoneAcceptCall) Reset() { *m = TLPhoneAcceptCall{} } func (m *TLPhoneAcceptCall) String() string { return proto.CompactTextString(m) } func (*TLPhoneAcceptCall) ProtoMessage() {} func (*TLPhoneAcceptCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{278} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{279} } func (m *TLPhoneAcceptCall) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhoneAcceptCall.Unmarshal(m, b) @@ -14055,7 +14103,7 @@ func (m *TLPhoneConfirmCall) Reset() { *m = TLPhoneConfirmCall{} } func (m *TLPhoneConfirmCall) String() string { return proto.CompactTextString(m) } func (*TLPhoneConfirmCall) ProtoMessage() {} func (*TLPhoneConfirmCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{279} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{280} } func (m *TLPhoneConfirmCall) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhoneConfirmCall.Unmarshal(m, b) @@ -14116,7 +14164,7 @@ func (m *TLPhoneReceivedCall) Reset() { *m = TLPhoneReceivedCall{} } func (m *TLPhoneReceivedCall) String() string { return proto.CompactTextString(m) } func (*TLPhoneReceivedCall) ProtoMessage() {} func (*TLPhoneReceivedCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{280} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{281} } func (m *TLPhoneReceivedCall) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhoneReceivedCall.Unmarshal(m, b) @@ -14159,7 +14207,7 @@ func (m *TLPhoneDiscardCall) Reset() { *m = TLPhoneDiscardCall{} } func (m *TLPhoneDiscardCall) String() string { return proto.CompactTextString(m) } func (*TLPhoneDiscardCall) ProtoMessage() {} func (*TLPhoneDiscardCall) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{281} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{282} } func (m *TLPhoneDiscardCall) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhoneDiscardCall.Unmarshal(m, b) @@ -14222,7 +14270,7 @@ func (m *TLPhoneSetCallRating) Reset() { *m = TLPhoneSetCallRating{} } func (m *TLPhoneSetCallRating) String() string { return proto.CompactTextString(m) } func (*TLPhoneSetCallRating) ProtoMessage() {} func (*TLPhoneSetCallRating) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{282} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{283} } func (m *TLPhoneSetCallRating) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhoneSetCallRating.Unmarshal(m, b) @@ -14277,7 +14325,7 @@ func (m *TLPhoneSaveCallDebug) Reset() { *m = TLPhoneSaveCallDebug{} } func (m *TLPhoneSaveCallDebug) String() string { return proto.CompactTextString(m) } func (*TLPhoneSaveCallDebug) ProtoMessage() {} func (*TLPhoneSaveCallDebug) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{283} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{284} } func (m *TLPhoneSaveCallDebug) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPhoneSaveCallDebug.Unmarshal(m, b) @@ -14325,7 +14373,7 @@ func (m *TLLangpackGetLangPack) Reset() { *m = TLLangpackGetLangPack{} } func (m *TLLangpackGetLangPack) String() string { return proto.CompactTextString(m) } func (*TLLangpackGetLangPack) ProtoMessage() {} func (*TLLangpackGetLangPack) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{284} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{285} } func (m *TLLangpackGetLangPack) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLLangpackGetLangPack.Unmarshal(m, b) @@ -14374,7 +14422,7 @@ func (m *TLLangpackGetStrings) Reset() { *m = TLLangpackGetStrings{} } func (m *TLLangpackGetStrings) String() string { return proto.CompactTextString(m) } func (*TLLangpackGetStrings) ProtoMessage() {} func (*TLLangpackGetStrings) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{285} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{286} } func (m *TLLangpackGetStrings) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLLangpackGetStrings.Unmarshal(m, b) @@ -14428,7 +14476,7 @@ func (m *TLLangpackGetDifference) Reset() { *m = TLLangpackGetDifference func (m *TLLangpackGetDifference) String() string { return proto.CompactTextString(m) } func (*TLLangpackGetDifference) ProtoMessage() {} func (*TLLangpackGetDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{286} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{287} } func (m *TLLangpackGetDifference) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLLangpackGetDifference.Unmarshal(m, b) @@ -14468,7 +14516,7 @@ func (m *TLLangpackGetLanguages) Reset() { *m = TLLangpackGetLanguages{} func (m *TLLangpackGetLanguages) String() string { return proto.CompactTextString(m) } func (*TLLangpackGetLanguages) ProtoMessage() {} func (*TLLangpackGetLanguages) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{287} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{288} } func (m *TLLangpackGetLanguages) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLLangpackGetLanguages.Unmarshal(m, b) @@ -14508,7 +14556,7 @@ func (m *Vector_LangPackLanguage) Reset() { *m = Vector_LangPackLanguage func (m *Vector_LangPackLanguage) String() string { return proto.CompactTextString(m) } func (*Vector_LangPackLanguage) ProtoMessage() {} func (*Vector_LangPackLanguage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{288} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{289} } func (m *Vector_LangPackLanguage) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_LangPackLanguage.Unmarshal(m, b) @@ -14546,7 +14594,7 @@ func (m *Vector_WallPaper) Reset() { *m = Vector_WallPaper{} } func (m *Vector_WallPaper) String() string { return proto.CompactTextString(m) } func (*Vector_WallPaper) ProtoMessage() {} func (*Vector_WallPaper) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{289} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{290} } func (m *Vector_WallPaper) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_WallPaper.Unmarshal(m, b) @@ -14584,7 +14632,7 @@ func (m *Vector_SecureValue) Reset() { *m = Vector_SecureValue{} } func (m *Vector_SecureValue) String() string { return proto.CompactTextString(m) } func (*Vector_SecureValue) ProtoMessage() {} func (*Vector_SecureValue) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{290} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{291} } func (m *Vector_SecureValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_SecureValue.Unmarshal(m, b) @@ -14622,7 +14670,7 @@ func (m *Vector_User) Reset() { *m = Vector_User{} } func (m *Vector_User) String() string { return proto.CompactTextString(m) } func (*Vector_User) ProtoMessage() {} func (*Vector_User) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{291} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{292} } func (m *Vector_User) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_User.Unmarshal(m, b) @@ -14660,7 +14708,7 @@ func (m *Vector_ContactStatus) Reset() { *m = Vector_ContactStatus{} } func (m *Vector_ContactStatus) String() string { return proto.CompactTextString(m) } func (*Vector_ContactStatus) ProtoMessage() {} func (*Vector_ContactStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{292} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{293} } func (m *Vector_ContactStatus) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_ContactStatus.Unmarshal(m, b) @@ -14698,7 +14746,7 @@ func (m *VectorInt) Reset() { *m = VectorInt{} } func (m *VectorInt) String() string { return proto.CompactTextString(m) } func (*VectorInt) ProtoMessage() {} func (*VectorInt) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{293} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{294} } func (m *VectorInt) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_VectorInt.Unmarshal(m, b) @@ -14736,7 +14784,7 @@ func (m *Vector_SavedContact) Reset() { *m = Vector_SavedContact{} } func (m *Vector_SavedContact) String() string { return proto.CompactTextString(m) } func (*Vector_SavedContact) ProtoMessage() {} func (*Vector_SavedContact) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{294} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{295} } func (m *Vector_SavedContact) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_SavedContact.Unmarshal(m, b) @@ -14774,7 +14822,7 @@ func (m *Vector_ReceivedNotifyMessage) Reset() { *m = Vector_ReceivedNot func (m *Vector_ReceivedNotifyMessage) String() string { return proto.CompactTextString(m) } func (*Vector_ReceivedNotifyMessage) ProtoMessage() {} func (*Vector_ReceivedNotifyMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{295} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{296} } func (m *Vector_ReceivedNotifyMessage) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_ReceivedNotifyMessage.Unmarshal(m, b) @@ -14812,7 +14860,7 @@ func (m *VectorLong) Reset() { *m = VectorLong{} } func (m *VectorLong) String() string { return proto.CompactTextString(m) } func (*VectorLong) ProtoMessage() {} func (*VectorLong) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{296} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{297} } func (m *VectorLong) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_VectorLong.Unmarshal(m, b) @@ -14850,7 +14898,7 @@ func (m *Vector_StickerSetCovered) Reset() { *m = Vector_StickerSetCover func (m *Vector_StickerSetCovered) String() string { return proto.CompactTextString(m) } func (*Vector_StickerSetCovered) ProtoMessage() {} func (*Vector_StickerSetCovered) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{297} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{298} } func (m *Vector_StickerSetCovered) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_StickerSetCovered.Unmarshal(m, b) @@ -14888,7 +14936,7 @@ func (m *Vector_MessageRange) Reset() { *m = Vector_MessageRange{} } func (m *Vector_MessageRange) String() string { return proto.CompactTextString(m) } func (*Vector_MessageRange) ProtoMessage() {} func (*Vector_MessageRange) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{298} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{299} } func (m *Vector_MessageRange) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_MessageRange.Unmarshal(m, b) @@ -14926,7 +14974,7 @@ func (m *Vector_DialogPeer) Reset() { *m = Vector_DialogPeer{} } func (m *Vector_DialogPeer) String() string { return proto.CompactTextString(m) } func (*Vector_DialogPeer) ProtoMessage() {} func (*Vector_DialogPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{299} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{300} } func (m *Vector_DialogPeer) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_DialogPeer.Unmarshal(m, b) @@ -14964,7 +15012,7 @@ func (m *Vector_FileHash) Reset() { *m = Vector_FileHash{} } func (m *Vector_FileHash) String() string { return proto.CompactTextString(m) } func (*Vector_FileHash) ProtoMessage() {} func (*Vector_FileHash) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{300} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{301} } func (m *Vector_FileHash) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_FileHash.Unmarshal(m, b) @@ -15002,7 +15050,7 @@ func (m *Vector_LangPackString) Reset() { *m = Vector_LangPackString{} } func (m *Vector_LangPackString) String() string { return proto.CompactTextString(m) } func (*Vector_LangPackString) ProtoMessage() {} func (*Vector_LangPackString) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_sync_service_65847f175cce3fc4, []int{301} + return fileDescriptor_schema_tl_sync_service_30d0792b587d59c0, []int{302} } func (m *Vector_LangPackString) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Vector_LangPackString.Unmarshal(m, b) @@ -15046,6 +15094,7 @@ func init() { proto.RegisterType((*TLAccountUnregisterDeviceLayer71)(nil), "mtproto.TL_account_unregisterDeviceLayer71") proto.RegisterType((*TLMessagesGetMessagesLayer71)(nil), "mtproto.TL_messages_getMessagesLayer71") proto.RegisterType((*TLLangpackGetLangPackLayer71)(nil), "mtproto.TL_langpack_getLangPackLayer71") + proto.RegisterType((*TLMessagesGetRecentLocationsLayer72)(nil), "mtproto.TL_messages_getRecentLocationsLayer72") proto.RegisterType((*TLInvokeAfterMsg)(nil), "mtproto.TL_invokeAfterMsg") proto.RegisterType((*TLInvokeAfterMsgs)(nil), "mtproto.TL_invokeAfterMsgs") proto.RegisterType((*TLInitConnection)(nil), "mtproto.TL_initConnection") @@ -15342,2088 +15391,1913 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// RPCHelpClient is the client API for RPCHelp service. +// RPCPhotosClient is the client API for RPCPhotos service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCHelpClient interface { - // help.getScheme#dbb69a9e version:int = Scheme; - HelpGetScheme(ctx context.Context, in *TLHelpGetScheme, opts ...grpc.CallOption) (*Scheme, error) - // help.getInviteText#a4a95186 lang_code:string = help.InviteText; - HelpGetInviteTextLayer46(ctx context.Context, in *TLHelpGetInviteTextLayer46, opts ...grpc.CallOption) (*Help_InviteText, error) - // help.getAppUpdate#c812ac7e device_model:string system_version:string app_version:string lang_code:string = help.AppUpdate; - HelpGetAppUpdateLayer46(ctx context.Context, in *TLHelpGetAppUpdateLayer46, opts ...grpc.CallOption) (*Help_AppUpdate, error) - // help.getAppUpdate#ae2de196 = help.AppUpdate; - HelpGetAppUpdateLayer62(ctx context.Context, in *TLHelpGetAppUpdateLayer62, opts ...grpc.CallOption) (*Help_AppUpdate, error) - // help.getConfig#c4f9186b = Config; - HelpGetConfig(ctx context.Context, in *TLHelpGetConfig, opts ...grpc.CallOption) (*Config, error) - // help.getNearestDc#1fb33026 = NearestDc; - HelpGetNearestDc(ctx context.Context, in *TLHelpGetNearestDc, opts ...grpc.CallOption) (*NearestDc, error) - // help.getAppUpdate#522d5a7d source:string = help.AppUpdate; - HelpGetAppUpdate(ctx context.Context, in *TLHelpGetAppUpdate, opts ...grpc.CallOption) (*Help_AppUpdate, error) - // help.saveAppLog#6f02f748 events:Vector = Bool; - HelpSaveAppLog(ctx context.Context, in *TLHelpSaveAppLog, opts ...grpc.CallOption) (*Bool, error) - // help.getInviteText#4d392343 = help.InviteText; - HelpGetInviteText(ctx context.Context, in *TLHelpGetInviteText, opts ...grpc.CallOption) (*Help_InviteText, error) - // help.getSupport#9cdf08cd = help.Support; - HelpGetSupport(ctx context.Context, in *TLHelpGetSupport, opts ...grpc.CallOption) (*Help_Support, error) - // help.getAppChangelog#9010ef6f prev_app_version:string = Updates; - HelpGetAppChangelog(ctx context.Context, in *TLHelpGetAppChangelog, opts ...grpc.CallOption) (*Updates, error) - // help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool; - HelpSetBotUpdatesStatus(ctx context.Context, in *TLHelpSetBotUpdatesStatus, opts ...grpc.CallOption) (*Bool, error) - // help.getCdnConfig#52029342 = CdnConfig; - HelpGetCdnConfig(ctx context.Context, in *TLHelpGetCdnConfig, opts ...grpc.CallOption) (*CdnConfig, error) - // help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls; - HelpGetRecentMeUrls(ctx context.Context, in *TLHelpGetRecentMeUrls, opts ...grpc.CallOption) (*Help_RecentMeUrls, error) - // help.getProxyData#3d7758e1 = help.ProxyData; - HelpGetProxyData(ctx context.Context, in *TLHelpGetProxyData, opts ...grpc.CallOption) (*Help_ProxyData, error) - // help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate; - HelpGetTermsOfServiceUpdate(ctx context.Context, in *TLHelpGetTermsOfServiceUpdate, opts ...grpc.CallOption) (*Help_TermsOfServiceUpdate, error) - // help.acceptTermsOfService#ee72f79a id:DataJSON = Bool; - HelpAcceptTermsOfService(ctx context.Context, in *TLHelpAcceptTermsOfService, opts ...grpc.CallOption) (*Bool, error) - // help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo; - HelpGetDeepLinkInfo(ctx context.Context, in *TLHelpGetDeepLinkInfo, opts ...grpc.CallOption) (*Help_DeepLinkInfo, error) - // help.getPassportConfig#c661ad08 hash:int = help.PassportConfig; - HelpGetPassportConfig(ctx context.Context, in *TLHelpGetPassportConfig, opts ...grpc.CallOption) (*Help_PassportConfig, error) - // help.test#c0e202f7 = Bool; - HelpTest(ctx context.Context, in *TLHelpTest, opts ...grpc.CallOption) (*Bool, error) +type RPCPhotosClient interface { + // photos.updateProfilePhoto#f0bb5152 id:InputPhoto = UserProfilePhoto; + PhotosUpdateProfilePhoto(ctx context.Context, in *TLPhotosUpdateProfilePhoto, opts ...grpc.CallOption) (*UserProfilePhoto, error) + // photos.uploadProfilePhoto#4f32c098 file:InputFile = photos.Photo; + PhotosUploadProfilePhoto(ctx context.Context, in *TLPhotosUploadProfilePhoto, opts ...grpc.CallOption) (*Photos_Photo, error) + // photos.deletePhotos#87cf7f2f id:Vector = Vector; + PhotosDeletePhotos(ctx context.Context, in *TLPhotosDeletePhotos, opts ...grpc.CallOption) (*VectorLong, error) + // photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos; + PhotosGetUserPhotos(ctx context.Context, in *TLPhotosGetUserPhotos, opts ...grpc.CallOption) (*Photos_Photos, error) } -type rPCHelpClient struct { +type rPCPhotosClient struct { cc *grpc.ClientConn } -func NewRPCHelpClient(cc *grpc.ClientConn) RPCHelpClient { - return &rPCHelpClient{cc} +func NewRPCPhotosClient(cc *grpc.ClientConn) RPCPhotosClient { + return &rPCPhotosClient{cc} } -func (c *rPCHelpClient) HelpGetScheme(ctx context.Context, in *TLHelpGetScheme, opts ...grpc.CallOption) (*Scheme, error) { - out := new(Scheme) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getScheme", in, out, opts...) +func (c *rPCPhotosClient) PhotosUpdateProfilePhoto(ctx context.Context, in *TLPhotosUpdateProfilePhoto, opts ...grpc.CallOption) (*UserProfilePhoto, error) { + out := new(UserProfilePhoto) + err := c.cc.Invoke(ctx, "/mtproto.RPCPhotos/photos_updateProfilePhoto", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCHelpClient) HelpGetInviteTextLayer46(ctx context.Context, in *TLHelpGetInviteTextLayer46, opts ...grpc.CallOption) (*Help_InviteText, error) { - out := new(Help_InviteText) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getInviteTextLayer46", in, out, opts...) +func (c *rPCPhotosClient) PhotosUploadProfilePhoto(ctx context.Context, in *TLPhotosUploadProfilePhoto, opts ...grpc.CallOption) (*Photos_Photo, error) { + out := new(Photos_Photo) + err := c.cc.Invoke(ctx, "/mtproto.RPCPhotos/photos_uploadProfilePhoto", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCHelpClient) HelpGetAppUpdateLayer46(ctx context.Context, in *TLHelpGetAppUpdateLayer46, opts ...grpc.CallOption) (*Help_AppUpdate, error) { - out := new(Help_AppUpdate) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getAppUpdateLayer46", in, out, opts...) +func (c *rPCPhotosClient) PhotosDeletePhotos(ctx context.Context, in *TLPhotosDeletePhotos, opts ...grpc.CallOption) (*VectorLong, error) { + out := new(VectorLong) + err := c.cc.Invoke(ctx, "/mtproto.RPCPhotos/photos_deletePhotos", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCHelpClient) HelpGetAppUpdateLayer62(ctx context.Context, in *TLHelpGetAppUpdateLayer62, opts ...grpc.CallOption) (*Help_AppUpdate, error) { - out := new(Help_AppUpdate) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getAppUpdateLayer62", in, out, opts...) +func (c *rPCPhotosClient) PhotosGetUserPhotos(ctx context.Context, in *TLPhotosGetUserPhotos, opts ...grpc.CallOption) (*Photos_Photos, error) { + out := new(Photos_Photos) + err := c.cc.Invoke(ctx, "/mtproto.RPCPhotos/photos_getUserPhotos", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCHelpClient) HelpGetConfig(ctx context.Context, in *TLHelpGetConfig, opts ...grpc.CallOption) (*Config, error) { - out := new(Config) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// RPCPhotosServer is the server API for RPCPhotos service. +type RPCPhotosServer interface { + // photos.updateProfilePhoto#f0bb5152 id:InputPhoto = UserProfilePhoto; + PhotosUpdateProfilePhoto(context.Context, *TLPhotosUpdateProfilePhoto) (*UserProfilePhoto, error) + // photos.uploadProfilePhoto#4f32c098 file:InputFile = photos.Photo; + PhotosUploadProfilePhoto(context.Context, *TLPhotosUploadProfilePhoto) (*Photos_Photo, error) + // photos.deletePhotos#87cf7f2f id:Vector = Vector; + PhotosDeletePhotos(context.Context, *TLPhotosDeletePhotos) (*VectorLong, error) + // photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos; + PhotosGetUserPhotos(context.Context, *TLPhotosGetUserPhotos) (*Photos_Photos, error) } -func (c *rPCHelpClient) HelpGetNearestDc(ctx context.Context, in *TLHelpGetNearestDc, opts ...grpc.CallOption) (*NearestDc, error) { - out := new(NearestDc) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getNearestDc", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func RegisterRPCPhotosServer(s *grpc.Server, srv RPCPhotosServer) { + s.RegisterService(&_RPCPhotos_serviceDesc, srv) } -func (c *rPCHelpClient) HelpGetAppUpdate(ctx context.Context, in *TLHelpGetAppUpdate, opts ...grpc.CallOption) (*Help_AppUpdate, error) { - out := new(Help_AppUpdate) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getAppUpdate", in, out, opts...) - if err != nil { +func _RPCPhotos_PhotosUpdateProfilePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPhotosUpdateProfilePhoto) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCHelpClient) HelpSaveAppLog(ctx context.Context, in *TLHelpSaveAppLog, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_saveAppLog", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCPhotosServer).PhotosUpdateProfilePhoto(ctx, in) } - return out, nil -} - -func (c *rPCHelpClient) HelpGetInviteText(ctx context.Context, in *TLHelpGetInviteText, opts ...grpc.CallOption) (*Help_InviteText, error) { - out := new(Help_InviteText) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getInviteText", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPhotos/PhotosUpdateProfilePhoto", } - return out, nil -} - -func (c *rPCHelpClient) HelpGetSupport(ctx context.Context, in *TLHelpGetSupport, opts ...grpc.CallOption) (*Help_Support, error) { - out := new(Help_Support) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getSupport", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPhotosServer).PhotosUpdateProfilePhoto(ctx, req.(*TLPhotosUpdateProfilePhoto)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *rPCHelpClient) HelpGetAppChangelog(ctx context.Context, in *TLHelpGetAppChangelog, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getAppChangelog", in, out, opts...) - if err != nil { +func _RPCPhotos_PhotosUploadProfilePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPhotosUploadProfilePhoto) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCHelpClient) HelpSetBotUpdatesStatus(ctx context.Context, in *TLHelpSetBotUpdatesStatus, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_setBotUpdatesStatus", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCPhotosServer).PhotosUploadProfilePhoto(ctx, in) } - return out, nil -} - -func (c *rPCHelpClient) HelpGetCdnConfig(ctx context.Context, in *TLHelpGetCdnConfig, opts ...grpc.CallOption) (*CdnConfig, error) { - out := new(CdnConfig) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getCdnConfig", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPhotos/PhotosUploadProfilePhoto", } - return out, nil -} - -func (c *rPCHelpClient) HelpGetRecentMeUrls(ctx context.Context, in *TLHelpGetRecentMeUrls, opts ...grpc.CallOption) (*Help_RecentMeUrls, error) { - out := new(Help_RecentMeUrls) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getRecentMeUrls", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPhotosServer).PhotosUploadProfilePhoto(ctx, req.(*TLPhotosUploadProfilePhoto)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *rPCHelpClient) HelpGetProxyData(ctx context.Context, in *TLHelpGetProxyData, opts ...grpc.CallOption) (*Help_ProxyData, error) { - out := new(Help_ProxyData) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getProxyData", in, out, opts...) - if err != nil { +func _RPCPhotos_PhotosDeletePhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPhotosDeletePhotos) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCHelpClient) HelpGetTermsOfServiceUpdate(ctx context.Context, in *TLHelpGetTermsOfServiceUpdate, opts ...grpc.CallOption) (*Help_TermsOfServiceUpdate, error) { - out := new(Help_TermsOfServiceUpdate) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getTermsOfServiceUpdate", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCPhotosServer).PhotosDeletePhotos(ctx, in) } - return out, nil -} - -func (c *rPCHelpClient) HelpAcceptTermsOfService(ctx context.Context, in *TLHelpAcceptTermsOfService, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_acceptTermsOfService", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPhotos/PhotosDeletePhotos", } - return out, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPhotosServer).PhotosDeletePhotos(ctx, req.(*TLPhotosDeletePhotos)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCHelpClient) HelpGetDeepLinkInfo(ctx context.Context, in *TLHelpGetDeepLinkInfo, opts ...grpc.CallOption) (*Help_DeepLinkInfo, error) { - out := new(Help_DeepLinkInfo) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getDeepLinkInfo", in, out, opts...) - if err != nil { +func _RPCPhotos_PhotosGetUserPhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPhotosGetUserPhotos) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCPhotosServer).PhotosGetUserPhotos(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPhotos/PhotosGetUserPhotos", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPhotosServer).PhotosGetUserPhotos(ctx, req.(*TLPhotosGetUserPhotos)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCHelpClient) HelpGetPassportConfig(ctx context.Context, in *TLHelpGetPassportConfig, opts ...grpc.CallOption) (*Help_PassportConfig, error) { - out := new(Help_PassportConfig) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getPassportConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +var _RPCPhotos_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCPhotos", + HandlerType: (*RPCPhotosServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "photos_updateProfilePhoto", + Handler: _RPCPhotos_PhotosUpdateProfilePhoto_Handler, + }, + { + MethodName: "photos_uploadProfilePhoto", + Handler: _RPCPhotos_PhotosUploadProfilePhoto_Handler, + }, + { + MethodName: "photos_deletePhotos", + Handler: _RPCPhotos_PhotosDeletePhotos_Handler, + }, + { + MethodName: "photos_getUserPhotos", + Handler: _RPCPhotos_PhotosGetUserPhotos_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "schema.tl.sync_service.proto", } -func (c *rPCHelpClient) HelpTest(ctx context.Context, in *TLHelpTest, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_test", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// RPCUpdatesClient is the client API for RPCUpdates service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCUpdatesClient interface { + // updates.getChannelDifference#bb32d7c0 channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; + UpdatesGetChannelDifferenceLayer46(ctx context.Context, in *TLUpdatesGetChannelDifferenceLayer46, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) + // updates.getState#edd4882a = updates.State; + UpdatesGetState(ctx context.Context, in *TLUpdatesGetState, opts ...grpc.CallOption) (*Updates_State, error) + // updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference; + UpdatesGetDifference(ctx context.Context, in *TLUpdatesGetDifference, opts ...grpc.CallOption) (*Updates_Difference, error) + // updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; + UpdatesGetChannelDifference(ctx context.Context, in *TLUpdatesGetChannelDifference, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) } -// RPCHelpServer is the server API for RPCHelp service. -type RPCHelpServer interface { - // help.getScheme#dbb69a9e version:int = Scheme; - HelpGetScheme(context.Context, *TLHelpGetScheme) (*Scheme, error) - // help.getInviteText#a4a95186 lang_code:string = help.InviteText; - HelpGetInviteTextLayer46(context.Context, *TLHelpGetInviteTextLayer46) (*Help_InviteText, error) - // help.getAppUpdate#c812ac7e device_model:string system_version:string app_version:string lang_code:string = help.AppUpdate; - HelpGetAppUpdateLayer46(context.Context, *TLHelpGetAppUpdateLayer46) (*Help_AppUpdate, error) - // help.getAppUpdate#ae2de196 = help.AppUpdate; - HelpGetAppUpdateLayer62(context.Context, *TLHelpGetAppUpdateLayer62) (*Help_AppUpdate, error) - // help.getConfig#c4f9186b = Config; - HelpGetConfig(context.Context, *TLHelpGetConfig) (*Config, error) - // help.getNearestDc#1fb33026 = NearestDc; - HelpGetNearestDc(context.Context, *TLHelpGetNearestDc) (*NearestDc, error) - // help.getAppUpdate#522d5a7d source:string = help.AppUpdate; - HelpGetAppUpdate(context.Context, *TLHelpGetAppUpdate) (*Help_AppUpdate, error) - // help.saveAppLog#6f02f748 events:Vector = Bool; - HelpSaveAppLog(context.Context, *TLHelpSaveAppLog) (*Bool, error) - // help.getInviteText#4d392343 = help.InviteText; - HelpGetInviteText(context.Context, *TLHelpGetInviteText) (*Help_InviteText, error) - // help.getSupport#9cdf08cd = help.Support; - HelpGetSupport(context.Context, *TLHelpGetSupport) (*Help_Support, error) - // help.getAppChangelog#9010ef6f prev_app_version:string = Updates; - HelpGetAppChangelog(context.Context, *TLHelpGetAppChangelog) (*Updates, error) - // help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool; - HelpSetBotUpdatesStatus(context.Context, *TLHelpSetBotUpdatesStatus) (*Bool, error) - // help.getCdnConfig#52029342 = CdnConfig; - HelpGetCdnConfig(context.Context, *TLHelpGetCdnConfig) (*CdnConfig, error) - // help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls; - HelpGetRecentMeUrls(context.Context, *TLHelpGetRecentMeUrls) (*Help_RecentMeUrls, error) - // help.getProxyData#3d7758e1 = help.ProxyData; - HelpGetProxyData(context.Context, *TLHelpGetProxyData) (*Help_ProxyData, error) - // help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate; - HelpGetTermsOfServiceUpdate(context.Context, *TLHelpGetTermsOfServiceUpdate) (*Help_TermsOfServiceUpdate, error) - // help.acceptTermsOfService#ee72f79a id:DataJSON = Bool; - HelpAcceptTermsOfService(context.Context, *TLHelpAcceptTermsOfService) (*Bool, error) - // help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo; - HelpGetDeepLinkInfo(context.Context, *TLHelpGetDeepLinkInfo) (*Help_DeepLinkInfo, error) - // help.getPassportConfig#c661ad08 hash:int = help.PassportConfig; - HelpGetPassportConfig(context.Context, *TLHelpGetPassportConfig) (*Help_PassportConfig, error) - // help.test#c0e202f7 = Bool; - HelpTest(context.Context, *TLHelpTest) (*Bool, error) +type rPCUpdatesClient struct { + cc *grpc.ClientConn } -func RegisterRPCHelpServer(s *grpc.Server, srv RPCHelpServer) { - s.RegisterService(&_RPCHelp_serviceDesc, srv) +func NewRPCUpdatesClient(cc *grpc.ClientConn) RPCUpdatesClient { + return &rPCUpdatesClient{cc} } -func _RPCHelp_HelpGetScheme_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetScheme) - if err := dec(in); err != nil { +func (c *rPCUpdatesClient) UpdatesGetChannelDifferenceLayer46(ctx context.Context, in *TLUpdatesGetChannelDifferenceLayer46, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) { + out := new(Updates_ChannelDifference) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpdates/updates_getChannelDifferenceLayer46", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetScheme(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetScheme", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetScheme(ctx, req.(*TLHelpGetScheme)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetInviteTextLayer46_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetInviteTextLayer46) - if err := dec(in); err != nil { +func (c *rPCUpdatesClient) UpdatesGetState(ctx context.Context, in *TLUpdatesGetState, opts ...grpc.CallOption) (*Updates_State, error) { + out := new(Updates_State) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpdates/updates_getState", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetInviteTextLayer46(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetInviteTextLayer46", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetInviteTextLayer46(ctx, req.(*TLHelpGetInviteTextLayer46)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetAppUpdateLayer46_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetAppUpdateLayer46) - if err := dec(in); err != nil { +func (c *rPCUpdatesClient) UpdatesGetDifference(ctx context.Context, in *TLUpdatesGetDifference, opts ...grpc.CallOption) (*Updates_Difference, error) { + out := new(Updates_Difference) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpdates/updates_getDifference", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetAppUpdateLayer46(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetAppUpdateLayer46", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetAppUpdateLayer46(ctx, req.(*TLHelpGetAppUpdateLayer46)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetAppUpdateLayer62_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetAppUpdateLayer62) - if err := dec(in); err != nil { +func (c *rPCUpdatesClient) UpdatesGetChannelDifference(ctx context.Context, in *TLUpdatesGetChannelDifference, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) { + out := new(Updates_ChannelDifference) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpdates/updates_getChannelDifference", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetAppUpdateLayer62(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetAppUpdateLayer62", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetAppUpdateLayer62(ctx, req.(*TLHelpGetAppUpdateLayer62)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetConfig) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetConfig(ctx, req.(*TLHelpGetConfig)) - } - return interceptor(ctx, in, info, handler) +// RPCUpdatesServer is the server API for RPCUpdates service. +type RPCUpdatesServer interface { + // updates.getChannelDifference#bb32d7c0 channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; + UpdatesGetChannelDifferenceLayer46(context.Context, *TLUpdatesGetChannelDifferenceLayer46) (*Updates_ChannelDifference, error) + // updates.getState#edd4882a = updates.State; + UpdatesGetState(context.Context, *TLUpdatesGetState) (*Updates_State, error) + // updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference; + UpdatesGetDifference(context.Context, *TLUpdatesGetDifference) (*Updates_Difference, error) + // updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; + UpdatesGetChannelDifference(context.Context, *TLUpdatesGetChannelDifference) (*Updates_ChannelDifference, error) } -func _RPCHelp_HelpGetNearestDc_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetNearestDc) +func RegisterRPCUpdatesServer(s *grpc.Server, srv RPCUpdatesServer) { + s.RegisterService(&_RPCUpdates_serviceDesc, srv) +} + +func _RPCUpdates_UpdatesGetChannelDifferenceLayer46_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUpdatesGetChannelDifferenceLayer46) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCHelpServer).HelpGetNearestDc(ctx, in) + return srv.(RPCUpdatesServer).UpdatesGetChannelDifferenceLayer46(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetNearestDc", + FullMethod: "/mtproto.RPCUpdates/UpdatesGetChannelDifferenceLayer46", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetNearestDc(ctx, req.(*TLHelpGetNearestDc)) + return srv.(RPCUpdatesServer).UpdatesGetChannelDifferenceLayer46(ctx, req.(*TLUpdatesGetChannelDifferenceLayer46)) } return interceptor(ctx, in, info, handler) } -func _RPCHelp_HelpGetAppUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetAppUpdate) +func _RPCUpdates_UpdatesGetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUpdatesGetState) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCHelpServer).HelpGetAppUpdate(ctx, in) + return srv.(RPCUpdatesServer).UpdatesGetState(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetAppUpdate", + FullMethod: "/mtproto.RPCUpdates/UpdatesGetState", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetAppUpdate(ctx, req.(*TLHelpGetAppUpdate)) + return srv.(RPCUpdatesServer).UpdatesGetState(ctx, req.(*TLUpdatesGetState)) } return interceptor(ctx, in, info, handler) } -func _RPCHelp_HelpSaveAppLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpSaveAppLog) +func _RPCUpdates_UpdatesGetDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUpdatesGetDifference) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCHelpServer).HelpSaveAppLog(ctx, in) + return srv.(RPCUpdatesServer).UpdatesGetDifference(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpSaveAppLog", + FullMethod: "/mtproto.RPCUpdates/UpdatesGetDifference", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpSaveAppLog(ctx, req.(*TLHelpSaveAppLog)) + return srv.(RPCUpdatesServer).UpdatesGetDifference(ctx, req.(*TLUpdatesGetDifference)) } return interceptor(ctx, in, info, handler) } -func _RPCHelp_HelpGetInviteText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetInviteText) +func _RPCUpdates_UpdatesGetChannelDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUpdatesGetChannelDifference) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCHelpServer).HelpGetInviteText(ctx, in) + return srv.(RPCUpdatesServer).UpdatesGetChannelDifference(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetInviteText", + FullMethod: "/mtproto.RPCUpdates/UpdatesGetChannelDifference", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetInviteText(ctx, req.(*TLHelpGetInviteText)) + return srv.(RPCUpdatesServer).UpdatesGetChannelDifference(ctx, req.(*TLUpdatesGetChannelDifference)) } return interceptor(ctx, in, info, handler) } -func _RPCHelp_HelpGetSupport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetSupport) - if err := dec(in); err != nil { +var _RPCUpdates_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCUpdates", + HandlerType: (*RPCUpdatesServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "updates_getChannelDifferenceLayer46", + Handler: _RPCUpdates_UpdatesGetChannelDifferenceLayer46_Handler, + }, + { + MethodName: "updates_getState", + Handler: _RPCUpdates_UpdatesGetState_Handler, + }, + { + MethodName: "updates_getDifference", + Handler: _RPCUpdates_UpdatesGetDifference_Handler, + }, + { + MethodName: "updates_getChannelDifference", + Handler: _RPCUpdates_UpdatesGetChannelDifference_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "schema.tl.sync_service.proto", +} + +// RPCAccountClient is the client API for RPCAccount service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCAccountClient interface { + // account.registerDevice#637ea878 token_type:int token:string = Bool; + AccountRegisterDeviceLayer71(ctx context.Context, in *TLAccountRegisterDeviceLayer71, opts ...grpc.CallOption) (*Bool, error) + // account.unregisterDevice#65c55b40 token_type:int token:string = Bool; + AccountUnregisterDeviceLayer71(ctx context.Context, in *TLAccountUnregisterDeviceLayer71, opts ...grpc.CallOption) (*Bool, error) + // account.registerDevice#5cbea590 token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector = Bool; + AccountRegisterDevice(ctx context.Context, in *TLAccountRegisterDevice, opts ...grpc.CallOption) (*Bool, error) + // account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector = Bool; + AccountUnregisterDevice(ctx context.Context, in *TLAccountUnregisterDevice, opts ...grpc.CallOption) (*Bool, error) + // account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool; + AccountUpdateNotifySettings(ctx context.Context, in *TLAccountUpdateNotifySettings, opts ...grpc.CallOption) (*Bool, error) + // account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings; + AccountGetNotifySettings(ctx context.Context, in *TLAccountGetNotifySettings, opts ...grpc.CallOption) (*PeerNotifySettings, error) + // account.resetNotifySettings#db7e1747 = Bool; + AccountResetNotifySettings(ctx context.Context, in *TLAccountResetNotifySettings, opts ...grpc.CallOption) (*Bool, error) + // account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User; + AccountUpdateProfile(ctx context.Context, in *TLAccountUpdateProfile, opts ...grpc.CallOption) (*User, error) + // account.updateStatus#6628562c offline:Bool = Bool; + AccountUpdateStatus(ctx context.Context, in *TLAccountUpdateStatus, opts ...grpc.CallOption) (*Bool, error) + // account.getWallPapers#c04cfac2 = Vector; + AccountGetWallPapers(ctx context.Context, in *TLAccountGetWallPapers, opts ...grpc.CallOption) (*Vector_WallPaper, error) + // account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool; + AccountReportPeer(ctx context.Context, in *TLAccountReportPeer, opts ...grpc.CallOption) (*Bool, error) + // account.checkUsername#2714d86c username:string = Bool; + AccountCheckUsername(ctx context.Context, in *TLAccountCheckUsername, opts ...grpc.CallOption) (*Bool, error) + // account.updateUsername#3e0bdd7c username:string = User; + AccountUpdateUsername(ctx context.Context, in *TLAccountUpdateUsername, opts ...grpc.CallOption) (*User, error) + // account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules; + AccountGetPrivacy(ctx context.Context, in *TLAccountGetPrivacy, opts ...grpc.CallOption) (*Account_PrivacyRules, error) + // account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector = account.PrivacyRules; + AccountSetPrivacy(ctx context.Context, in *TLAccountSetPrivacy, opts ...grpc.CallOption) (*Account_PrivacyRules, error) + // account.deleteAccount#418d4e0b reason:string = Bool; + AccountDeleteAccount(ctx context.Context, in *TLAccountDeleteAccount, opts ...grpc.CallOption) (*Bool, error) + // account.getAccountTTL#8fc711d = AccountDaysTTL; + AccountGetAccountTTL(ctx context.Context, in *TLAccountGetAccountTTL, opts ...grpc.CallOption) (*AccountDaysTTL, error) + // account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool; + AccountSetAccountTTL(ctx context.Context, in *TLAccountSetAccountTTL, opts ...grpc.CallOption) (*Bool, error) + // account.sendChangePhoneCode#8e57deb flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; + AccountSendChangePhoneCode(ctx context.Context, in *TLAccountSendChangePhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) + // account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User; + AccountChangePhone(ctx context.Context, in *TLAccountChangePhone, opts ...grpc.CallOption) (*User, error) + // account.updateDeviceLocked#38df3532 period:int = Bool; + AccountUpdateDeviceLocked(ctx context.Context, in *TLAccountUpdateDeviceLocked, opts ...grpc.CallOption) (*Bool, error) + // account.getAuthorizations#e320c158 = account.Authorizations; + AccountGetAuthorizations(ctx context.Context, in *TLAccountGetAuthorizations, opts ...grpc.CallOption) (*Account_Authorizations, error) + // account.resetAuthorization#df77f3bc hash:long = Bool; + AccountResetAuthorization(ctx context.Context, in *TLAccountResetAuthorization, opts ...grpc.CallOption) (*Bool, error) + // account.getPassword#548a30f5 = account.Password; + AccountGetPassword(ctx context.Context, in *TLAccountGetPassword, opts ...grpc.CallOption) (*Account_Password, error) + // account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings; + AccountGetPasswordSettings(ctx context.Context, in *TLAccountGetPasswordSettings, opts ...grpc.CallOption) (*Account_PasswordSettings, error) + // account.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool; + AccountUpdatePasswordSettings(ctx context.Context, in *TLAccountUpdatePasswordSettings, opts ...grpc.CallOption) (*Bool, error) + // account.sendConfirmPhoneCode#1516d7bd flags:# allow_flashcall:flags.0?true hash:string current_number:flags.0?Bool = auth.SentCode; + AccountSendConfirmPhoneCode(ctx context.Context, in *TLAccountSendConfirmPhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) + // account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool; + AccountConfirmPhone(ctx context.Context, in *TLAccountConfirmPhone, opts ...grpc.CallOption) (*Bool, error) + // account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword; + AccountGetTmpPassword(ctx context.Context, in *TLAccountGetTmpPassword, opts ...grpc.CallOption) (*Account_TmpPassword, error) + // account.getWebAuthorizations#182e6d6f = account.WebAuthorizations; + AccountGetWebAuthorizations(ctx context.Context, in *TLAccountGetWebAuthorizations, opts ...grpc.CallOption) (*Account_WebAuthorizations, error) + // account.resetWebAuthorization#2d01b9ef hash:long = Bool; + AccountResetWebAuthorization(ctx context.Context, in *TLAccountResetWebAuthorization, opts ...grpc.CallOption) (*Bool, error) + // account.resetWebAuthorizations#682d2594 = Bool; + AccountResetWebAuthorizations(ctx context.Context, in *TLAccountResetWebAuthorizations, opts ...grpc.CallOption) (*Bool, error) + // account.getAllSecureValues#b288bc7d = Vector; + AccountGetAllSecureValues(ctx context.Context, in *TLAccountGetAllSecureValues, opts ...grpc.CallOption) (*Vector_SecureValue, error) + // account.getSecureValue#73665bc2 types:Vector = Vector; + AccountGetSecureValue(ctx context.Context, in *TLAccountGetSecureValue, opts ...grpc.CallOption) (*Vector_SecureValue, error) + // account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue; + AccountSaveSecureValue(ctx context.Context, in *TLAccountSaveSecureValue, opts ...grpc.CallOption) (*SecureValue, error) + // account.deleteSecureValue#b880bc4b types:Vector = Bool; + AccountDeleteSecureValue(ctx context.Context, in *TLAccountDeleteSecureValue, opts ...grpc.CallOption) (*Bool, error) + // account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm; + AccountGetAuthorizationForm(ctx context.Context, in *TLAccountGetAuthorizationForm, opts ...grpc.CallOption) (*Account_AuthorizationForm, error) + // account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector credentials:SecureCredentialsEncrypted = Bool; + AccountAcceptAuthorization(ctx context.Context, in *TLAccountAcceptAuthorization, opts ...grpc.CallOption) (*Bool, error) + // account.sendVerifyPhoneCode#823380b4 flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; + AccountSendVerifyPhoneCode(ctx context.Context, in *TLAccountSendVerifyPhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) + // account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool; + AccountVerifyPhone(ctx context.Context, in *TLAccountVerifyPhone, opts ...grpc.CallOption) (*Bool, error) + // account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode; + AccountSendVerifyEmailCode(ctx context.Context, in *TLAccountSendVerifyEmailCode, opts ...grpc.CallOption) (*Account_SentEmailCode, error) + // account.verifyEmail#ecba39db email:string code:string = Bool; + AccountVerifyEmail(ctx context.Context, in *TLAccountVerifyEmail, opts ...grpc.CallOption) (*Bool, error) + // account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout; + AccountInitTakeoutSession(ctx context.Context, in *TLAccountInitTakeoutSession, opts ...grpc.CallOption) (*Account_Takeout, error) + // account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool; + AccountFinishTakeoutSession(ctx context.Context, in *TLAccountFinishTakeoutSession, opts ...grpc.CallOption) (*Bool, error) +} + +type rPCAccountClient struct { + cc *grpc.ClientConn +} + +func NewRPCAccountClient(cc *grpc.ClientConn) RPCAccountClient { + return &rPCAccountClient{cc} +} + +func (c *rPCAccountClient) AccountRegisterDeviceLayer71(ctx context.Context, in *TLAccountRegisterDeviceLayer71, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_registerDeviceLayer71", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetSupport(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetSupport", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetSupport(ctx, req.(*TLHelpGetSupport)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetAppChangelog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetAppChangelog) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountUnregisterDeviceLayer71(ctx context.Context, in *TLAccountUnregisterDeviceLayer71, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_unregisterDeviceLayer71", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetAppChangelog(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetAppChangelog", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetAppChangelog(ctx, req.(*TLHelpGetAppChangelog)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpSetBotUpdatesStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpSetBotUpdatesStatus) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountRegisterDevice(ctx context.Context, in *TLAccountRegisterDevice, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_registerDevice", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpSetBotUpdatesStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpSetBotUpdatesStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpSetBotUpdatesStatus(ctx, req.(*TLHelpSetBotUpdatesStatus)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetCdnConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetCdnConfig) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountUnregisterDevice(ctx context.Context, in *TLAccountUnregisterDevice, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_unregisterDevice", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetCdnConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetCdnConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetCdnConfig(ctx, req.(*TLHelpGetCdnConfig)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetRecentMeUrls_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetRecentMeUrls) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountUpdateNotifySettings(ctx context.Context, in *TLAccountUpdateNotifySettings, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateNotifySettings", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetRecentMeUrls(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetRecentMeUrls", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetRecentMeUrls(ctx, req.(*TLHelpGetRecentMeUrls)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetProxyData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetProxyData) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountGetNotifySettings(ctx context.Context, in *TLAccountGetNotifySettings, opts ...grpc.CallOption) (*PeerNotifySettings, error) { + out := new(PeerNotifySettings) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getNotifySettings", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetProxyData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetProxyData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetProxyData(ctx, req.(*TLHelpGetProxyData)) + return out, nil +} + +func (c *rPCAccountClient) AccountResetNotifySettings(ctx context.Context, in *TLAccountResetNotifySettings, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_resetNotifySettings", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetTermsOfServiceUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetTermsOfServiceUpdate) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountUpdateProfile(ctx context.Context, in *TLAccountUpdateProfile, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateProfile", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetTermsOfServiceUpdate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetTermsOfServiceUpdate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetTermsOfServiceUpdate(ctx, req.(*TLHelpGetTermsOfServiceUpdate)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpAcceptTermsOfService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpAcceptTermsOfService) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountUpdateStatus(ctx context.Context, in *TLAccountUpdateStatus, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateStatus", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpAcceptTermsOfService(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpAcceptTermsOfService", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpAcceptTermsOfService(ctx, req.(*TLHelpAcceptTermsOfService)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetDeepLinkInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetDeepLinkInfo) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountGetWallPapers(ctx context.Context, in *TLAccountGetWallPapers, opts ...grpc.CallOption) (*Vector_WallPaper, error) { + out := new(Vector_WallPaper) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getWallPapers", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetDeepLinkInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetDeepLinkInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetDeepLinkInfo(ctx, req.(*TLHelpGetDeepLinkInfo)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpGetPassportConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpGetPassportConfig) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountReportPeer(ctx context.Context, in *TLAccountReportPeer, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_reportPeer", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpGetPassportConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpGetPassportConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpGetPassportConfig(ctx, req.(*TLHelpGetPassportConfig)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCHelp_HelpTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLHelpTest) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountCheckUsername(ctx context.Context, in *TLAccountCheckUsername, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_checkUsername", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCHelpServer).HelpTest(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCHelp/HelpTest", + return out, nil +} + +func (c *rPCAccountClient) AccountUpdateUsername(ctx context.Context, in *TLAccountUpdateUsername, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateUsername", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCHelpServer).HelpTest(ctx, req.(*TLHelpTest)) + return out, nil +} + +func (c *rPCAccountClient) AccountGetPrivacy(ctx context.Context, in *TLAccountGetPrivacy, opts ...grpc.CallOption) (*Account_PrivacyRules, error) { + out := new(Account_PrivacyRules) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getPrivacy", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -var _RPCHelp_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCHelp", - HandlerType: (*RPCHelpServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "help_getScheme", - Handler: _RPCHelp_HelpGetScheme_Handler, - }, - { - MethodName: "help_getInviteTextLayer46", - Handler: _RPCHelp_HelpGetInviteTextLayer46_Handler, - }, - { - MethodName: "help_getAppUpdateLayer46", - Handler: _RPCHelp_HelpGetAppUpdateLayer46_Handler, - }, - { - MethodName: "help_getAppUpdateLayer62", - Handler: _RPCHelp_HelpGetAppUpdateLayer62_Handler, - }, - { - MethodName: "help_getConfig", - Handler: _RPCHelp_HelpGetConfig_Handler, - }, - { - MethodName: "help_getNearestDc", - Handler: _RPCHelp_HelpGetNearestDc_Handler, - }, - { - MethodName: "help_getAppUpdate", - Handler: _RPCHelp_HelpGetAppUpdate_Handler, - }, - { - MethodName: "help_saveAppLog", - Handler: _RPCHelp_HelpSaveAppLog_Handler, - }, - { - MethodName: "help_getInviteText", - Handler: _RPCHelp_HelpGetInviteText_Handler, - }, - { - MethodName: "help_getSupport", - Handler: _RPCHelp_HelpGetSupport_Handler, - }, - { - MethodName: "help_getAppChangelog", - Handler: _RPCHelp_HelpGetAppChangelog_Handler, - }, - { - MethodName: "help_setBotUpdatesStatus", - Handler: _RPCHelp_HelpSetBotUpdatesStatus_Handler, - }, - { - MethodName: "help_getCdnConfig", - Handler: _RPCHelp_HelpGetCdnConfig_Handler, - }, - { - MethodName: "help_getRecentMeUrls", - Handler: _RPCHelp_HelpGetRecentMeUrls_Handler, - }, - { - MethodName: "help_getProxyData", - Handler: _RPCHelp_HelpGetProxyData_Handler, - }, - { - MethodName: "help_getTermsOfServiceUpdate", - Handler: _RPCHelp_HelpGetTermsOfServiceUpdate_Handler, - }, - { - MethodName: "help_acceptTermsOfService", - Handler: _RPCHelp_HelpAcceptTermsOfService_Handler, - }, - { - MethodName: "help_getDeepLinkInfo", - Handler: _RPCHelp_HelpGetDeepLinkInfo_Handler, - }, - { - MethodName: "help_getPassportConfig", - Handler: _RPCHelp_HelpGetPassportConfig_Handler, - }, - { - MethodName: "help_test", - Handler: _RPCHelp_HelpTest_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "schema.tl.sync_service.proto", +func (c *rPCAccountClient) AccountSetPrivacy(ctx context.Context, in *TLAccountSetPrivacy, opts ...grpc.CallOption) (*Account_PrivacyRules, error) { + out := new(Account_PrivacyRules) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_setPrivacy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -// RPCUpdatesClient is the client API for RPCUpdates service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCUpdatesClient interface { - // updates.getChannelDifference#bb32d7c0 channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; - UpdatesGetChannelDifferenceLayer46(ctx context.Context, in *TLUpdatesGetChannelDifferenceLayer46, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) - // updates.getState#edd4882a = updates.State; - UpdatesGetState(ctx context.Context, in *TLUpdatesGetState, opts ...grpc.CallOption) (*Updates_State, error) - // updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference; - UpdatesGetDifference(ctx context.Context, in *TLUpdatesGetDifference, opts ...grpc.CallOption) (*Updates_Difference, error) - // updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; - UpdatesGetChannelDifference(ctx context.Context, in *TLUpdatesGetChannelDifference, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) +func (c *rPCAccountClient) AccountDeleteAccount(ctx context.Context, in *TLAccountDeleteAccount, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_deleteAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -type rPCUpdatesClient struct { - cc *grpc.ClientConn +func (c *rPCAccountClient) AccountGetAccountTTL(ctx context.Context, in *TLAccountGetAccountTTL, opts ...grpc.CallOption) (*AccountDaysTTL, error) { + out := new(AccountDaysTTL) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getAccountTTL", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func NewRPCUpdatesClient(cc *grpc.ClientConn) RPCUpdatesClient { - return &rPCUpdatesClient{cc} +func (c *rPCAccountClient) AccountSetAccountTTL(ctx context.Context, in *TLAccountSetAccountTTL, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_setAccountTTL", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (c *rPCUpdatesClient) UpdatesGetChannelDifferenceLayer46(ctx context.Context, in *TLUpdatesGetChannelDifferenceLayer46, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) { - out := new(Updates_ChannelDifference) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpdates/updates_getChannelDifferenceLayer46", in, out, opts...) +func (c *rPCAccountClient) AccountSendChangePhoneCode(ctx context.Context, in *TLAccountSendChangePhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { + out := new(Auth_SentCode) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_sendChangePhoneCode", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUpdatesClient) UpdatesGetState(ctx context.Context, in *TLUpdatesGetState, opts ...grpc.CallOption) (*Updates_State, error) { - out := new(Updates_State) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpdates/updates_getState", in, out, opts...) +func (c *rPCAccountClient) AccountChangePhone(ctx context.Context, in *TLAccountChangePhone, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_changePhone", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUpdatesClient) UpdatesGetDifference(ctx context.Context, in *TLUpdatesGetDifference, opts ...grpc.CallOption) (*Updates_Difference, error) { - out := new(Updates_Difference) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpdates/updates_getDifference", in, out, opts...) +func (c *rPCAccountClient) AccountUpdateDeviceLocked(ctx context.Context, in *TLAccountUpdateDeviceLocked, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateDeviceLocked", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUpdatesClient) UpdatesGetChannelDifference(ctx context.Context, in *TLUpdatesGetChannelDifference, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) { - out := new(Updates_ChannelDifference) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpdates/updates_getChannelDifference", in, out, opts...) +func (c *rPCAccountClient) AccountGetAuthorizations(ctx context.Context, in *TLAccountGetAuthorizations, opts ...grpc.CallOption) (*Account_Authorizations, error) { + out := new(Account_Authorizations) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getAuthorizations", in, out, opts...) if err != nil { return nil, err } return out, nil } -// RPCUpdatesServer is the server API for RPCUpdates service. -type RPCUpdatesServer interface { - // updates.getChannelDifference#bb32d7c0 channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; - UpdatesGetChannelDifferenceLayer46(context.Context, *TLUpdatesGetChannelDifferenceLayer46) (*Updates_ChannelDifference, error) - // updates.getState#edd4882a = updates.State; - UpdatesGetState(context.Context, *TLUpdatesGetState) (*Updates_State, error) - // updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference; - UpdatesGetDifference(context.Context, *TLUpdatesGetDifference) (*Updates_Difference, error) - // updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; - UpdatesGetChannelDifference(context.Context, *TLUpdatesGetChannelDifference) (*Updates_ChannelDifference, error) -} - -func RegisterRPCUpdatesServer(s *grpc.Server, srv RPCUpdatesServer) { - s.RegisterService(&_RPCUpdates_serviceDesc, srv) -} - -func _RPCUpdates_UpdatesGetChannelDifferenceLayer46_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUpdatesGetChannelDifferenceLayer46) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountResetAuthorization(ctx context.Context, in *TLAccountResetAuthorization, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_resetAuthorization", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUpdatesServer).UpdatesGetChannelDifferenceLayer46(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpdates/UpdatesGetChannelDifferenceLayer46", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUpdatesServer).UpdatesGetChannelDifferenceLayer46(ctx, req.(*TLUpdatesGetChannelDifferenceLayer46)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpdates_UpdatesGetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUpdatesGetState) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountGetPassword(ctx context.Context, in *TLAccountGetPassword, opts ...grpc.CallOption) (*Account_Password, error) { + out := new(Account_Password) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getPassword", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUpdatesServer).UpdatesGetState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpdates/UpdatesGetState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUpdatesServer).UpdatesGetState(ctx, req.(*TLUpdatesGetState)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpdates_UpdatesGetDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUpdatesGetDifference) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountGetPasswordSettings(ctx context.Context, in *TLAccountGetPasswordSettings, opts ...grpc.CallOption) (*Account_PasswordSettings, error) { + out := new(Account_PasswordSettings) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getPasswordSettings", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUpdatesServer).UpdatesGetDifference(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpdates/UpdatesGetDifference", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUpdatesServer).UpdatesGetDifference(ctx, req.(*TLUpdatesGetDifference)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpdates_UpdatesGetChannelDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUpdatesGetChannelDifference) - if err := dec(in); err != nil { +func (c *rPCAccountClient) AccountUpdatePasswordSettings(ctx context.Context, in *TLAccountUpdatePasswordSettings, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updatePasswordSettings", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUpdatesServer).UpdatesGetChannelDifference(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpdates/UpdatesGetChannelDifference", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUpdatesServer).UpdatesGetChannelDifference(ctx, req.(*TLUpdatesGetChannelDifference)) - } - return interceptor(ctx, in, info, handler) -} - -var _RPCUpdates_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCUpdates", - HandlerType: (*RPCUpdatesServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "updates_getChannelDifferenceLayer46", - Handler: _RPCUpdates_UpdatesGetChannelDifferenceLayer46_Handler, - }, - { - MethodName: "updates_getState", - Handler: _RPCUpdates_UpdatesGetState_Handler, - }, - { - MethodName: "updates_getDifference", - Handler: _RPCUpdates_UpdatesGetDifference_Handler, - }, - { - MethodName: "updates_getChannelDifference", - Handler: _RPCUpdates_UpdatesGetChannelDifference_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "schema.tl.sync_service.proto", -} - -// RPCChannelsClient is the client API for RPCChannels service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCChannelsClient interface { - // channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; - ChannelsReadHistory(ctx context.Context, in *TLChannelsReadHistory, opts ...grpc.CallOption) (*Bool, error) - // channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages; - ChannelsDeleteMessages(ctx context.Context, in *TLChannelsDeleteMessages, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) - // channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory; - ChannelsDeleteUserHistory(ctx context.Context, in *TLChannelsDeleteUserHistory, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) - // channels.reportSpam#fe087810 channel:InputChannel user_id:InputUser id:Vector = Bool; - ChannelsReportSpam(ctx context.Context, in *TLChannelsReportSpam, opts ...grpc.CallOption) (*Bool, error) - // channels.getMessages#ad8c9a23 channel:InputChannel id:Vector = messages.Messages; - ChannelsGetMessages(ctx context.Context, in *TLChannelsGetMessages, opts ...grpc.CallOption) (*Messages_Messages, error) - // channels.getParticipants#123e05e9 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:int = channels.ChannelParticipants; - ChannelsGetParticipants(ctx context.Context, in *TLChannelsGetParticipants, opts ...grpc.CallOption) (*Channels_ChannelParticipants, error) - // channels.getParticipant#546dd7a6 channel:InputChannel user_id:InputUser = channels.ChannelParticipant; - ChannelsGetParticipant(ctx context.Context, in *TLChannelsGetParticipant, opts ...grpc.CallOption) (*Channels_ChannelParticipant, error) - // channels.getChannels#a7f6bbb id:Vector = messages.Chats; - ChannelsGetChannels(ctx context.Context, in *TLChannelsGetChannels, opts ...grpc.CallOption) (*Messages_Chats, error) - // channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull; - ChannelsGetFullChannel(ctx context.Context, in *TLChannelsGetFullChannel, opts ...grpc.CallOption) (*Messages_ChatFull, error) - // channels.createChannel#f4893d7f flags:# broadcast:flags.0?true megagroup:flags.1?true title:string about:string = Updates; - ChannelsCreateChannel(ctx context.Context, in *TLChannelsCreateChannel, opts ...grpc.CallOption) (*Updates, error) - // channels.editAbout#13e27f1e channel:InputChannel about:string = Bool; - ChannelsEditAbout(ctx context.Context, in *TLChannelsEditAbout, opts ...grpc.CallOption) (*Bool, error) - // channels.editAdmin#20b88214 channel:InputChannel user_id:InputUser admin_rights:ChannelAdminRights = Updates; - ChannelsEditAdmin(ctx context.Context, in *TLChannelsEditAdmin, opts ...grpc.CallOption) (*Updates, error) - // channels.editTitle#566decd0 channel:InputChannel title:string = Updates; - ChannelsEditTitle(ctx context.Context, in *TLChannelsEditTitle, opts ...grpc.CallOption) (*Updates, error) - // channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates; - ChannelsEditPhoto(ctx context.Context, in *TLChannelsEditPhoto, opts ...grpc.CallOption) (*Updates, error) - // channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool; - ChannelsCheckUsername(ctx context.Context, in *TLChannelsCheckUsername, opts ...grpc.CallOption) (*Bool, error) - // channels.updateUsername#3514b3de channel:InputChannel username:string = Bool; - ChannelsUpdateUsername(ctx context.Context, in *TLChannelsUpdateUsername, opts ...grpc.CallOption) (*Bool, error) - // channels.joinChannel#24b524c5 channel:InputChannel = Updates; - ChannelsJoinChannel(ctx context.Context, in *TLChannelsJoinChannel, opts ...grpc.CallOption) (*Updates, error) - // channels.leaveChannel#f836aa95 channel:InputChannel = Updates; - ChannelsLeaveChannel(ctx context.Context, in *TLChannelsLeaveChannel, opts ...grpc.CallOption) (*Updates, error) - // channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector = Updates; - ChannelsInviteToChannel(ctx context.Context, in *TLChannelsInviteToChannel, opts ...grpc.CallOption) (*Updates, error) - // channels.exportInvite#c7560885 channel:InputChannel = ExportedChatInvite; - ChannelsExportInvite(ctx context.Context, in *TLChannelsExportInvite, opts ...grpc.CallOption) (*ExportedChatInvite, error) - // channels.deleteChannel#c0111fe3 channel:InputChannel = Updates; - ChannelsDeleteChannel(ctx context.Context, in *TLChannelsDeleteChannel, opts ...grpc.CallOption) (*Updates, error) - // channels.toggleInvites#49609307 channel:InputChannel enabled:Bool = Updates; - ChannelsToggleInvites(ctx context.Context, in *TLChannelsToggleInvites, opts ...grpc.CallOption) (*Updates, error) - // channels.exportMessageLink#ceb77163 channel:InputChannel id:int grouped:Bool = ExportedMessageLink; - ChannelsExportMessageLink(ctx context.Context, in *TLChannelsExportMessageLink, opts ...grpc.CallOption) (*ExportedMessageLink, error) - // channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates; - ChannelsToggleSignatures(ctx context.Context, in *TLChannelsToggleSignatures, opts ...grpc.CallOption) (*Updates, error) - // channels.updatePinnedMessage#a72ded52 flags:# silent:flags.0?true channel:InputChannel id:int = Updates; - ChannelsUpdatePinnedMessage(ctx context.Context, in *TLChannelsUpdatePinnedMessage, opts ...grpc.CallOption) (*Updates, error) - // channels.getAdminedPublicChannels#8d8d82d7 = messages.Chats; - ChannelsGetAdminedPublicChannels(ctx context.Context, in *TLChannelsGetAdminedPublicChannels, opts ...grpc.CallOption) (*Messages_Chats, error) - // channels.editBanned#bfd915cd channel:InputChannel user_id:InputUser banned_rights:ChannelBannedRights = Updates; - ChannelsEditBanned(ctx context.Context, in *TLChannelsEditBanned, opts ...grpc.CallOption) (*Updates, error) - // channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults; - ChannelsGetAdminLog(ctx context.Context, in *TLChannelsGetAdminLog, opts ...grpc.CallOption) (*Channels_AdminLogResults, error) - // channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool; - ChannelsSetStickers(ctx context.Context, in *TLChannelsSetStickers, opts ...grpc.CallOption) (*Bool, error) - // channels.readMessageContents#eab5dc38 channel:InputChannel id:Vector = Bool; - ChannelsReadMessageContents(ctx context.Context, in *TLChannelsReadMessageContents, opts ...grpc.CallOption) (*Bool, error) - // channels.deleteHistory#af369d42 channel:InputChannel max_id:int = Bool; - ChannelsDeleteHistory(ctx context.Context, in *TLChannelsDeleteHistory, opts ...grpc.CallOption) (*Bool, error) - // channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates; - ChannelsTogglePreHistoryHidden(ctx context.Context, in *TLChannelsTogglePreHistoryHidden, opts ...grpc.CallOption) (*Updates, error) - // channels.getLeftChannels#8341ecc0 offset:int = messages.Chats; - ChannelsGetLeftChannels(ctx context.Context, in *TLChannelsGetLeftChannels, opts ...grpc.CallOption) (*Messages_Chats, error) -} - -type rPCChannelsClient struct { - cc *grpc.ClientConn -} - -func NewRPCChannelsClient(cc *grpc.ClientConn) RPCChannelsClient { - return &rPCChannelsClient{cc} + return out, nil } -func (c *rPCChannelsClient) ChannelsReadHistory(ctx context.Context, in *TLChannelsReadHistory, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_readHistory", in, out, opts...) +func (c *rPCAccountClient) AccountSendConfirmPhoneCode(ctx context.Context, in *TLAccountSendConfirmPhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { + out := new(Auth_SentCode) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_sendConfirmPhoneCode", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsDeleteMessages(ctx context.Context, in *TLChannelsDeleteMessages, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) { - out := new(Messages_AffectedMessages) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_deleteMessages", in, out, opts...) +func (c *rPCAccountClient) AccountConfirmPhone(ctx context.Context, in *TLAccountConfirmPhone, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_confirmPhone", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsDeleteUserHistory(ctx context.Context, in *TLChannelsDeleteUserHistory, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) { - out := new(Messages_AffectedHistory) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_deleteUserHistory", in, out, opts...) +func (c *rPCAccountClient) AccountGetTmpPassword(ctx context.Context, in *TLAccountGetTmpPassword, opts ...grpc.CallOption) (*Account_TmpPassword, error) { + out := new(Account_TmpPassword) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getTmpPassword", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsReportSpam(ctx context.Context, in *TLChannelsReportSpam, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_reportSpam", in, out, opts...) +func (c *rPCAccountClient) AccountGetWebAuthorizations(ctx context.Context, in *TLAccountGetWebAuthorizations, opts ...grpc.CallOption) (*Account_WebAuthorizations, error) { + out := new(Account_WebAuthorizations) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getWebAuthorizations", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsGetMessages(ctx context.Context, in *TLChannelsGetMessages, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getMessages", in, out, opts...) +func (c *rPCAccountClient) AccountResetWebAuthorization(ctx context.Context, in *TLAccountResetWebAuthorization, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_resetWebAuthorization", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsGetParticipants(ctx context.Context, in *TLChannelsGetParticipants, opts ...grpc.CallOption) (*Channels_ChannelParticipants, error) { - out := new(Channels_ChannelParticipants) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getParticipants", in, out, opts...) +func (c *rPCAccountClient) AccountResetWebAuthorizations(ctx context.Context, in *TLAccountResetWebAuthorizations, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_resetWebAuthorizations", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsGetParticipant(ctx context.Context, in *TLChannelsGetParticipant, opts ...grpc.CallOption) (*Channels_ChannelParticipant, error) { - out := new(Channels_ChannelParticipant) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getParticipant", in, out, opts...) +func (c *rPCAccountClient) AccountGetAllSecureValues(ctx context.Context, in *TLAccountGetAllSecureValues, opts ...grpc.CallOption) (*Vector_SecureValue, error) { + out := new(Vector_SecureValue) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getAllSecureValues", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsGetChannels(ctx context.Context, in *TLChannelsGetChannels, opts ...grpc.CallOption) (*Messages_Chats, error) { - out := new(Messages_Chats) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getChannels", in, out, opts...) +func (c *rPCAccountClient) AccountGetSecureValue(ctx context.Context, in *TLAccountGetSecureValue, opts ...grpc.CallOption) (*Vector_SecureValue, error) { + out := new(Vector_SecureValue) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getSecureValue", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsGetFullChannel(ctx context.Context, in *TLChannelsGetFullChannel, opts ...grpc.CallOption) (*Messages_ChatFull, error) { - out := new(Messages_ChatFull) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getFullChannel", in, out, opts...) +func (c *rPCAccountClient) AccountSaveSecureValue(ctx context.Context, in *TLAccountSaveSecureValue, opts ...grpc.CallOption) (*SecureValue, error) { + out := new(SecureValue) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_saveSecureValue", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsCreateChannel(ctx context.Context, in *TLChannelsCreateChannel, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_createChannel", in, out, opts...) +func (c *rPCAccountClient) AccountDeleteSecureValue(ctx context.Context, in *TLAccountDeleteSecureValue, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_deleteSecureValue", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsEditAbout(ctx context.Context, in *TLChannelsEditAbout, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editAbout", in, out, opts...) +func (c *rPCAccountClient) AccountGetAuthorizationForm(ctx context.Context, in *TLAccountGetAuthorizationForm, opts ...grpc.CallOption) (*Account_AuthorizationForm, error) { + out := new(Account_AuthorizationForm) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getAuthorizationForm", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsEditAdmin(ctx context.Context, in *TLChannelsEditAdmin, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editAdmin", in, out, opts...) +func (c *rPCAccountClient) AccountAcceptAuthorization(ctx context.Context, in *TLAccountAcceptAuthorization, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_acceptAuthorization", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsEditTitle(ctx context.Context, in *TLChannelsEditTitle, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editTitle", in, out, opts...) +func (c *rPCAccountClient) AccountSendVerifyPhoneCode(ctx context.Context, in *TLAccountSendVerifyPhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { + out := new(Auth_SentCode) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_sendVerifyPhoneCode", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsEditPhoto(ctx context.Context, in *TLChannelsEditPhoto, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editPhoto", in, out, opts...) +func (c *rPCAccountClient) AccountVerifyPhone(ctx context.Context, in *TLAccountVerifyPhone, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_verifyPhone", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsCheckUsername(ctx context.Context, in *TLChannelsCheckUsername, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_checkUsername", in, out, opts...) +func (c *rPCAccountClient) AccountSendVerifyEmailCode(ctx context.Context, in *TLAccountSendVerifyEmailCode, opts ...grpc.CallOption) (*Account_SentEmailCode, error) { + out := new(Account_SentEmailCode) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_sendVerifyEmailCode", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsUpdateUsername(ctx context.Context, in *TLChannelsUpdateUsername, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCAccountClient) AccountVerifyEmail(ctx context.Context, in *TLAccountVerifyEmail, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_updateUsername", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_verifyEmail", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsJoinChannel(ctx context.Context, in *TLChannelsJoinChannel, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_joinChannel", in, out, opts...) +func (c *rPCAccountClient) AccountInitTakeoutSession(ctx context.Context, in *TLAccountInitTakeoutSession, opts ...grpc.CallOption) (*Account_Takeout, error) { + out := new(Account_Takeout) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_initTakeoutSession", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsLeaveChannel(ctx context.Context, in *TLChannelsLeaveChannel, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_leaveChannel", in, out, opts...) +func (c *rPCAccountClient) AccountFinishTakeoutSession(ctx context.Context, in *TLAccountFinishTakeoutSession, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_finishTakeoutSession", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCChannelsClient) ChannelsInviteToChannel(ctx context.Context, in *TLChannelsInviteToChannel, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_inviteToChannel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// RPCAccountServer is the server API for RPCAccount service. +type RPCAccountServer interface { + // account.registerDevice#637ea878 token_type:int token:string = Bool; + AccountRegisterDeviceLayer71(context.Context, *TLAccountRegisterDeviceLayer71) (*Bool, error) + // account.unregisterDevice#65c55b40 token_type:int token:string = Bool; + AccountUnregisterDeviceLayer71(context.Context, *TLAccountUnregisterDeviceLayer71) (*Bool, error) + // account.registerDevice#5cbea590 token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector = Bool; + AccountRegisterDevice(context.Context, *TLAccountRegisterDevice) (*Bool, error) + // account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector = Bool; + AccountUnregisterDevice(context.Context, *TLAccountUnregisterDevice) (*Bool, error) + // account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool; + AccountUpdateNotifySettings(context.Context, *TLAccountUpdateNotifySettings) (*Bool, error) + // account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings; + AccountGetNotifySettings(context.Context, *TLAccountGetNotifySettings) (*PeerNotifySettings, error) + // account.resetNotifySettings#db7e1747 = Bool; + AccountResetNotifySettings(context.Context, *TLAccountResetNotifySettings) (*Bool, error) + // account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User; + AccountUpdateProfile(context.Context, *TLAccountUpdateProfile) (*User, error) + // account.updateStatus#6628562c offline:Bool = Bool; + AccountUpdateStatus(context.Context, *TLAccountUpdateStatus) (*Bool, error) + // account.getWallPapers#c04cfac2 = Vector; + AccountGetWallPapers(context.Context, *TLAccountGetWallPapers) (*Vector_WallPaper, error) + // account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool; + AccountReportPeer(context.Context, *TLAccountReportPeer) (*Bool, error) + // account.checkUsername#2714d86c username:string = Bool; + AccountCheckUsername(context.Context, *TLAccountCheckUsername) (*Bool, error) + // account.updateUsername#3e0bdd7c username:string = User; + AccountUpdateUsername(context.Context, *TLAccountUpdateUsername) (*User, error) + // account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules; + AccountGetPrivacy(context.Context, *TLAccountGetPrivacy) (*Account_PrivacyRules, error) + // account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector = account.PrivacyRules; + AccountSetPrivacy(context.Context, *TLAccountSetPrivacy) (*Account_PrivacyRules, error) + // account.deleteAccount#418d4e0b reason:string = Bool; + AccountDeleteAccount(context.Context, *TLAccountDeleteAccount) (*Bool, error) + // account.getAccountTTL#8fc711d = AccountDaysTTL; + AccountGetAccountTTL(context.Context, *TLAccountGetAccountTTL) (*AccountDaysTTL, error) + // account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool; + AccountSetAccountTTL(context.Context, *TLAccountSetAccountTTL) (*Bool, error) + // account.sendChangePhoneCode#8e57deb flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; + AccountSendChangePhoneCode(context.Context, *TLAccountSendChangePhoneCode) (*Auth_SentCode, error) + // account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User; + AccountChangePhone(context.Context, *TLAccountChangePhone) (*User, error) + // account.updateDeviceLocked#38df3532 period:int = Bool; + AccountUpdateDeviceLocked(context.Context, *TLAccountUpdateDeviceLocked) (*Bool, error) + // account.getAuthorizations#e320c158 = account.Authorizations; + AccountGetAuthorizations(context.Context, *TLAccountGetAuthorizations) (*Account_Authorizations, error) + // account.resetAuthorization#df77f3bc hash:long = Bool; + AccountResetAuthorization(context.Context, *TLAccountResetAuthorization) (*Bool, error) + // account.getPassword#548a30f5 = account.Password; + AccountGetPassword(context.Context, *TLAccountGetPassword) (*Account_Password, error) + // account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings; + AccountGetPasswordSettings(context.Context, *TLAccountGetPasswordSettings) (*Account_PasswordSettings, error) + // account.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool; + AccountUpdatePasswordSettings(context.Context, *TLAccountUpdatePasswordSettings) (*Bool, error) + // account.sendConfirmPhoneCode#1516d7bd flags:# allow_flashcall:flags.0?true hash:string current_number:flags.0?Bool = auth.SentCode; + AccountSendConfirmPhoneCode(context.Context, *TLAccountSendConfirmPhoneCode) (*Auth_SentCode, error) + // account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool; + AccountConfirmPhone(context.Context, *TLAccountConfirmPhone) (*Bool, error) + // account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword; + AccountGetTmpPassword(context.Context, *TLAccountGetTmpPassword) (*Account_TmpPassword, error) + // account.getWebAuthorizations#182e6d6f = account.WebAuthorizations; + AccountGetWebAuthorizations(context.Context, *TLAccountGetWebAuthorizations) (*Account_WebAuthorizations, error) + // account.resetWebAuthorization#2d01b9ef hash:long = Bool; + AccountResetWebAuthorization(context.Context, *TLAccountResetWebAuthorization) (*Bool, error) + // account.resetWebAuthorizations#682d2594 = Bool; + AccountResetWebAuthorizations(context.Context, *TLAccountResetWebAuthorizations) (*Bool, error) + // account.getAllSecureValues#b288bc7d = Vector; + AccountGetAllSecureValues(context.Context, *TLAccountGetAllSecureValues) (*Vector_SecureValue, error) + // account.getSecureValue#73665bc2 types:Vector = Vector; + AccountGetSecureValue(context.Context, *TLAccountGetSecureValue) (*Vector_SecureValue, error) + // account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue; + AccountSaveSecureValue(context.Context, *TLAccountSaveSecureValue) (*SecureValue, error) + // account.deleteSecureValue#b880bc4b types:Vector = Bool; + AccountDeleteSecureValue(context.Context, *TLAccountDeleteSecureValue) (*Bool, error) + // account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm; + AccountGetAuthorizationForm(context.Context, *TLAccountGetAuthorizationForm) (*Account_AuthorizationForm, error) + // account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector credentials:SecureCredentialsEncrypted = Bool; + AccountAcceptAuthorization(context.Context, *TLAccountAcceptAuthorization) (*Bool, error) + // account.sendVerifyPhoneCode#823380b4 flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; + AccountSendVerifyPhoneCode(context.Context, *TLAccountSendVerifyPhoneCode) (*Auth_SentCode, error) + // account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool; + AccountVerifyPhone(context.Context, *TLAccountVerifyPhone) (*Bool, error) + // account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode; + AccountSendVerifyEmailCode(context.Context, *TLAccountSendVerifyEmailCode) (*Account_SentEmailCode, error) + // account.verifyEmail#ecba39db email:string code:string = Bool; + AccountVerifyEmail(context.Context, *TLAccountVerifyEmail) (*Bool, error) + // account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout; + AccountInitTakeoutSession(context.Context, *TLAccountInitTakeoutSession) (*Account_Takeout, error) + // account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool; + AccountFinishTakeoutSession(context.Context, *TLAccountFinishTakeoutSession) (*Bool, error) } -func (c *rPCChannelsClient) ChannelsExportInvite(ctx context.Context, in *TLChannelsExportInvite, opts ...grpc.CallOption) (*ExportedChatInvite, error) { - out := new(ExportedChatInvite) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_exportInvite", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func RegisterRPCAccountServer(s *grpc.Server, srv RPCAccountServer) { + s.RegisterService(&_RPCAccount_serviceDesc, srv) } -func (c *rPCChannelsClient) ChannelsDeleteChannel(ctx context.Context, in *TLChannelsDeleteChannel, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_deleteChannel", in, out, opts...) - if err != nil { +func _RPCAccount_AccountRegisterDeviceLayer71_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountRegisterDeviceLayer71) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCAccountServer).AccountRegisterDeviceLayer71(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountRegisterDeviceLayer71", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountRegisterDeviceLayer71(ctx, req.(*TLAccountRegisterDeviceLayer71)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCChannelsClient) ChannelsToggleInvites(ctx context.Context, in *TLChannelsToggleInvites, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_toggleInvites", in, out, opts...) - if err != nil { +func _RPCAccount_AccountUnregisterDeviceLayer71_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountUnregisterDeviceLayer71) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCAccountServer).AccountUnregisterDeviceLayer71(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountUnregisterDeviceLayer71", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountUnregisterDeviceLayer71(ctx, req.(*TLAccountUnregisterDeviceLayer71)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCChannelsClient) ChannelsExportMessageLink(ctx context.Context, in *TLChannelsExportMessageLink, opts ...grpc.CallOption) (*ExportedMessageLink, error) { - out := new(ExportedMessageLink) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_exportMessageLink", in, out, opts...) - if err != nil { +func _RPCAccount_AccountRegisterDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountRegisterDevice) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCAccountServer).AccountRegisterDevice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountRegisterDevice", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountRegisterDevice(ctx, req.(*TLAccountRegisterDevice)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCChannelsClient) ChannelsToggleSignatures(ctx context.Context, in *TLChannelsToggleSignatures, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_toggleSignatures", in, out, opts...) - if err != nil { +func _RPCAccount_AccountUnregisterDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountUnregisterDevice) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCAccountServer).AccountUnregisterDevice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountUnregisterDevice", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountUnregisterDevice(ctx, req.(*TLAccountUnregisterDevice)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCChannelsClient) ChannelsUpdatePinnedMessage(ctx context.Context, in *TLChannelsUpdatePinnedMessage, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_updatePinnedMessage", in, out, opts...) - if err != nil { +func _RPCAccount_AccountUpdateNotifySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountUpdateNotifySettings) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCAccountServer).AccountUpdateNotifySettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountUpdateNotifySettings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountUpdateNotifySettings(ctx, req.(*TLAccountUpdateNotifySettings)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCChannelsClient) ChannelsGetAdminedPublicChannels(ctx context.Context, in *TLChannelsGetAdminedPublicChannels, opts ...grpc.CallOption) (*Messages_Chats, error) { - out := new(Messages_Chats) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getAdminedPublicChannels", in, out, opts...) - if err != nil { +func _RPCAccount_AccountGetNotifySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetNotifySettings) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCChannelsClient) ChannelsEditBanned(ctx context.Context, in *TLChannelsEditBanned, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editBanned", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCAccountServer).AccountGetNotifySettings(ctx, in) } - return out, nil -} - -func (c *rPCChannelsClient) ChannelsGetAdminLog(ctx context.Context, in *TLChannelsGetAdminLog, opts ...grpc.CallOption) (*Channels_AdminLogResults, error) { - out := new(Channels_AdminLogResults) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getAdminLog", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountGetNotifySettings", } - return out, nil -} - -func (c *rPCChannelsClient) ChannelsSetStickers(ctx context.Context, in *TLChannelsSetStickers, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_setStickers", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountGetNotifySettings(ctx, req.(*TLAccountGetNotifySettings)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *rPCChannelsClient) ChannelsReadMessageContents(ctx context.Context, in *TLChannelsReadMessageContents, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_readMessageContents", in, out, opts...) - if err != nil { +func _RPCAccount_AccountResetNotifySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountResetNotifySettings) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCChannelsClient) ChannelsDeleteHistory(ctx context.Context, in *TLChannelsDeleteHistory, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_deleteHistory", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCAccountServer).AccountResetNotifySettings(ctx, in) } - return out, nil -} - -func (c *rPCChannelsClient) ChannelsTogglePreHistoryHidden(ctx context.Context, in *TLChannelsTogglePreHistoryHidden, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_togglePreHistoryHidden", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountResetNotifySettings", } - return out, nil -} - -func (c *rPCChannelsClient) ChannelsGetLeftChannels(ctx context.Context, in *TLChannelsGetLeftChannels, opts ...grpc.CallOption) (*Messages_Chats, error) { - out := new(Messages_Chats) - err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getLeftChannels", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountResetNotifySettings(ctx, req.(*TLAccountResetNotifySettings)) } - return out, nil -} - -// RPCChannelsServer is the server API for RPCChannels service. -type RPCChannelsServer interface { - // channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; - ChannelsReadHistory(context.Context, *TLChannelsReadHistory) (*Bool, error) - // channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages; - ChannelsDeleteMessages(context.Context, *TLChannelsDeleteMessages) (*Messages_AffectedMessages, error) - // channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory; - ChannelsDeleteUserHistory(context.Context, *TLChannelsDeleteUserHistory) (*Messages_AffectedHistory, error) - // channels.reportSpam#fe087810 channel:InputChannel user_id:InputUser id:Vector = Bool; - ChannelsReportSpam(context.Context, *TLChannelsReportSpam) (*Bool, error) - // channels.getMessages#ad8c9a23 channel:InputChannel id:Vector = messages.Messages; - ChannelsGetMessages(context.Context, *TLChannelsGetMessages) (*Messages_Messages, error) - // channels.getParticipants#123e05e9 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:int = channels.ChannelParticipants; - ChannelsGetParticipants(context.Context, *TLChannelsGetParticipants) (*Channels_ChannelParticipants, error) - // channels.getParticipant#546dd7a6 channel:InputChannel user_id:InputUser = channels.ChannelParticipant; - ChannelsGetParticipant(context.Context, *TLChannelsGetParticipant) (*Channels_ChannelParticipant, error) - // channels.getChannels#a7f6bbb id:Vector = messages.Chats; - ChannelsGetChannels(context.Context, *TLChannelsGetChannels) (*Messages_Chats, error) - // channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull; - ChannelsGetFullChannel(context.Context, *TLChannelsGetFullChannel) (*Messages_ChatFull, error) - // channels.createChannel#f4893d7f flags:# broadcast:flags.0?true megagroup:flags.1?true title:string about:string = Updates; - ChannelsCreateChannel(context.Context, *TLChannelsCreateChannel) (*Updates, error) - // channels.editAbout#13e27f1e channel:InputChannel about:string = Bool; - ChannelsEditAbout(context.Context, *TLChannelsEditAbout) (*Bool, error) - // channels.editAdmin#20b88214 channel:InputChannel user_id:InputUser admin_rights:ChannelAdminRights = Updates; - ChannelsEditAdmin(context.Context, *TLChannelsEditAdmin) (*Updates, error) - // channels.editTitle#566decd0 channel:InputChannel title:string = Updates; - ChannelsEditTitle(context.Context, *TLChannelsEditTitle) (*Updates, error) - // channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates; - ChannelsEditPhoto(context.Context, *TLChannelsEditPhoto) (*Updates, error) - // channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool; - ChannelsCheckUsername(context.Context, *TLChannelsCheckUsername) (*Bool, error) - // channels.updateUsername#3514b3de channel:InputChannel username:string = Bool; - ChannelsUpdateUsername(context.Context, *TLChannelsUpdateUsername) (*Bool, error) - // channels.joinChannel#24b524c5 channel:InputChannel = Updates; - ChannelsJoinChannel(context.Context, *TLChannelsJoinChannel) (*Updates, error) - // channels.leaveChannel#f836aa95 channel:InputChannel = Updates; - ChannelsLeaveChannel(context.Context, *TLChannelsLeaveChannel) (*Updates, error) - // channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector = Updates; - ChannelsInviteToChannel(context.Context, *TLChannelsInviteToChannel) (*Updates, error) - // channels.exportInvite#c7560885 channel:InputChannel = ExportedChatInvite; - ChannelsExportInvite(context.Context, *TLChannelsExportInvite) (*ExportedChatInvite, error) - // channels.deleteChannel#c0111fe3 channel:InputChannel = Updates; - ChannelsDeleteChannel(context.Context, *TLChannelsDeleteChannel) (*Updates, error) - // channels.toggleInvites#49609307 channel:InputChannel enabled:Bool = Updates; - ChannelsToggleInvites(context.Context, *TLChannelsToggleInvites) (*Updates, error) - // channels.exportMessageLink#ceb77163 channel:InputChannel id:int grouped:Bool = ExportedMessageLink; - ChannelsExportMessageLink(context.Context, *TLChannelsExportMessageLink) (*ExportedMessageLink, error) - // channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates; - ChannelsToggleSignatures(context.Context, *TLChannelsToggleSignatures) (*Updates, error) - // channels.updatePinnedMessage#a72ded52 flags:# silent:flags.0?true channel:InputChannel id:int = Updates; - ChannelsUpdatePinnedMessage(context.Context, *TLChannelsUpdatePinnedMessage) (*Updates, error) - // channels.getAdminedPublicChannels#8d8d82d7 = messages.Chats; - ChannelsGetAdminedPublicChannels(context.Context, *TLChannelsGetAdminedPublicChannels) (*Messages_Chats, error) - // channels.editBanned#bfd915cd channel:InputChannel user_id:InputUser banned_rights:ChannelBannedRights = Updates; - ChannelsEditBanned(context.Context, *TLChannelsEditBanned) (*Updates, error) - // channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults; - ChannelsGetAdminLog(context.Context, *TLChannelsGetAdminLog) (*Channels_AdminLogResults, error) - // channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool; - ChannelsSetStickers(context.Context, *TLChannelsSetStickers) (*Bool, error) - // channels.readMessageContents#eab5dc38 channel:InputChannel id:Vector = Bool; - ChannelsReadMessageContents(context.Context, *TLChannelsReadMessageContents) (*Bool, error) - // channels.deleteHistory#af369d42 channel:InputChannel max_id:int = Bool; - ChannelsDeleteHistory(context.Context, *TLChannelsDeleteHistory) (*Bool, error) - // channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates; - ChannelsTogglePreHistoryHidden(context.Context, *TLChannelsTogglePreHistoryHidden) (*Updates, error) - // channels.getLeftChannels#8341ecc0 offset:int = messages.Chats; - ChannelsGetLeftChannels(context.Context, *TLChannelsGetLeftChannels) (*Messages_Chats, error) -} - -func RegisterRPCChannelsServer(s *grpc.Server, srv RPCChannelsServer) { - s.RegisterService(&_RPCChannels_serviceDesc, srv) + return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsReadHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsReadHistory) +func _RPCAccount_AccountUpdateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountUpdateProfile) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsReadHistory(ctx, in) + return srv.(RPCAccountServer).AccountUpdateProfile(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsReadHistory", + FullMethod: "/mtproto.RPCAccount/AccountUpdateProfile", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsReadHistory(ctx, req.(*TLChannelsReadHistory)) + return srv.(RPCAccountServer).AccountUpdateProfile(ctx, req.(*TLAccountUpdateProfile)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsDeleteMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsDeleteMessages) +func _RPCAccount_AccountUpdateStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountUpdateStatus) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsDeleteMessages(ctx, in) + return srv.(RPCAccountServer).AccountUpdateStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsDeleteMessages", + FullMethod: "/mtproto.RPCAccount/AccountUpdateStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsDeleteMessages(ctx, req.(*TLChannelsDeleteMessages)) + return srv.(RPCAccountServer).AccountUpdateStatus(ctx, req.(*TLAccountUpdateStatus)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsDeleteUserHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsDeleteUserHistory) +func _RPCAccount_AccountGetWallPapers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetWallPapers) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsDeleteUserHistory(ctx, in) + return srv.(RPCAccountServer).AccountGetWallPapers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsDeleteUserHistory", + FullMethod: "/mtproto.RPCAccount/AccountGetWallPapers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsDeleteUserHistory(ctx, req.(*TLChannelsDeleteUserHistory)) + return srv.(RPCAccountServer).AccountGetWallPapers(ctx, req.(*TLAccountGetWallPapers)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsReportSpam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsReportSpam) +func _RPCAccount_AccountReportPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountReportPeer) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsReportSpam(ctx, in) + return srv.(RPCAccountServer).AccountReportPeer(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsReportSpam", + FullMethod: "/mtproto.RPCAccount/AccountReportPeer", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsReportSpam(ctx, req.(*TLChannelsReportSpam)) + return srv.(RPCAccountServer).AccountReportPeer(ctx, req.(*TLAccountReportPeer)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsGetMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsGetMessages) +func _RPCAccount_AccountCheckUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountCheckUsername) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsGetMessages(ctx, in) + return srv.(RPCAccountServer).AccountCheckUsername(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsGetMessages", + FullMethod: "/mtproto.RPCAccount/AccountCheckUsername", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsGetMessages(ctx, req.(*TLChannelsGetMessages)) + return srv.(RPCAccountServer).AccountCheckUsername(ctx, req.(*TLAccountCheckUsername)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsGetParticipants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsGetParticipants) +func _RPCAccount_AccountUpdateUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountUpdateUsername) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsGetParticipants(ctx, in) + return srv.(RPCAccountServer).AccountUpdateUsername(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsGetParticipants", + FullMethod: "/mtproto.RPCAccount/AccountUpdateUsername", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsGetParticipants(ctx, req.(*TLChannelsGetParticipants)) + return srv.(RPCAccountServer).AccountUpdateUsername(ctx, req.(*TLAccountUpdateUsername)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsGetParticipant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsGetParticipant) +func _RPCAccount_AccountGetPrivacy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetPrivacy) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsGetParticipant(ctx, in) + return srv.(RPCAccountServer).AccountGetPrivacy(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsGetParticipant", + FullMethod: "/mtproto.RPCAccount/AccountGetPrivacy", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsGetParticipant(ctx, req.(*TLChannelsGetParticipant)) + return srv.(RPCAccountServer).AccountGetPrivacy(ctx, req.(*TLAccountGetPrivacy)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsGetChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsGetChannels) +func _RPCAccount_AccountSetPrivacy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountSetPrivacy) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsGetChannels(ctx, in) + return srv.(RPCAccountServer).AccountSetPrivacy(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsGetChannels", + FullMethod: "/mtproto.RPCAccount/AccountSetPrivacy", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsGetChannels(ctx, req.(*TLChannelsGetChannels)) + return srv.(RPCAccountServer).AccountSetPrivacy(ctx, req.(*TLAccountSetPrivacy)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsGetFullChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsGetFullChannel) +func _RPCAccount_AccountDeleteAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountDeleteAccount) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsGetFullChannel(ctx, in) + return srv.(RPCAccountServer).AccountDeleteAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsGetFullChannel", + FullMethod: "/mtproto.RPCAccount/AccountDeleteAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsGetFullChannel(ctx, req.(*TLChannelsGetFullChannel)) + return srv.(RPCAccountServer).AccountDeleteAccount(ctx, req.(*TLAccountDeleteAccount)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsCreateChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsCreateChannel) +func _RPCAccount_AccountGetAccountTTL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetAccountTTL) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsCreateChannel(ctx, in) + return srv.(RPCAccountServer).AccountGetAccountTTL(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsCreateChannel", + FullMethod: "/mtproto.RPCAccount/AccountGetAccountTTL", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsCreateChannel(ctx, req.(*TLChannelsCreateChannel)) + return srv.(RPCAccountServer).AccountGetAccountTTL(ctx, req.(*TLAccountGetAccountTTL)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsEditAbout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsEditAbout) +func _RPCAccount_AccountSetAccountTTL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountSetAccountTTL) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsEditAbout(ctx, in) + return srv.(RPCAccountServer).AccountSetAccountTTL(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsEditAbout", + FullMethod: "/mtproto.RPCAccount/AccountSetAccountTTL", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsEditAbout(ctx, req.(*TLChannelsEditAbout)) + return srv.(RPCAccountServer).AccountSetAccountTTL(ctx, req.(*TLAccountSetAccountTTL)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsEditAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsEditAdmin) +func _RPCAccount_AccountSendChangePhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountSendChangePhoneCode) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsEditAdmin(ctx, in) + return srv.(RPCAccountServer).AccountSendChangePhoneCode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsEditAdmin", + FullMethod: "/mtproto.RPCAccount/AccountSendChangePhoneCode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsEditAdmin(ctx, req.(*TLChannelsEditAdmin)) + return srv.(RPCAccountServer).AccountSendChangePhoneCode(ctx, req.(*TLAccountSendChangePhoneCode)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsEditTitle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsEditTitle) +func _RPCAccount_AccountChangePhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountChangePhone) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsEditTitle(ctx, in) + return srv.(RPCAccountServer).AccountChangePhone(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsEditTitle", + FullMethod: "/mtproto.RPCAccount/AccountChangePhone", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsEditTitle(ctx, req.(*TLChannelsEditTitle)) + return srv.(RPCAccountServer).AccountChangePhone(ctx, req.(*TLAccountChangePhone)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsEditPhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsEditPhoto) +func _RPCAccount_AccountUpdateDeviceLocked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountUpdateDeviceLocked) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsEditPhoto(ctx, in) + return srv.(RPCAccountServer).AccountUpdateDeviceLocked(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsEditPhoto", + FullMethod: "/mtproto.RPCAccount/AccountUpdateDeviceLocked", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsEditPhoto(ctx, req.(*TLChannelsEditPhoto)) + return srv.(RPCAccountServer).AccountUpdateDeviceLocked(ctx, req.(*TLAccountUpdateDeviceLocked)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsCheckUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsCheckUsername) +func _RPCAccount_AccountGetAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetAuthorizations) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsCheckUsername(ctx, in) + return srv.(RPCAccountServer).AccountGetAuthorizations(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsCheckUsername", + FullMethod: "/mtproto.RPCAccount/AccountGetAuthorizations", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsCheckUsername(ctx, req.(*TLChannelsCheckUsername)) + return srv.(RPCAccountServer).AccountGetAuthorizations(ctx, req.(*TLAccountGetAuthorizations)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsUpdateUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsUpdateUsername) +func _RPCAccount_AccountResetAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountResetAuthorization) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsUpdateUsername(ctx, in) + return srv.(RPCAccountServer).AccountResetAuthorization(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsUpdateUsername", + FullMethod: "/mtproto.RPCAccount/AccountResetAuthorization", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsUpdateUsername(ctx, req.(*TLChannelsUpdateUsername)) + return srv.(RPCAccountServer).AccountResetAuthorization(ctx, req.(*TLAccountResetAuthorization)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsJoinChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsJoinChannel) +func _RPCAccount_AccountGetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetPassword) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsJoinChannel(ctx, in) + return srv.(RPCAccountServer).AccountGetPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsJoinChannel", + FullMethod: "/mtproto.RPCAccount/AccountGetPassword", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsJoinChannel(ctx, req.(*TLChannelsJoinChannel)) + return srv.(RPCAccountServer).AccountGetPassword(ctx, req.(*TLAccountGetPassword)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsLeaveChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsLeaveChannel) +func _RPCAccount_AccountGetPasswordSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetPasswordSettings) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsLeaveChannel(ctx, in) + return srv.(RPCAccountServer).AccountGetPasswordSettings(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsLeaveChannel", + FullMethod: "/mtproto.RPCAccount/AccountGetPasswordSettings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsLeaveChannel(ctx, req.(*TLChannelsLeaveChannel)) + return srv.(RPCAccountServer).AccountGetPasswordSettings(ctx, req.(*TLAccountGetPasswordSettings)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsInviteToChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsInviteToChannel) +func _RPCAccount_AccountUpdatePasswordSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountUpdatePasswordSettings) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsInviteToChannel(ctx, in) + return srv.(RPCAccountServer).AccountUpdatePasswordSettings(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsInviteToChannel", + FullMethod: "/mtproto.RPCAccount/AccountUpdatePasswordSettings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsInviteToChannel(ctx, req.(*TLChannelsInviteToChannel)) + return srv.(RPCAccountServer).AccountUpdatePasswordSettings(ctx, req.(*TLAccountUpdatePasswordSettings)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsExportInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsExportInvite) +func _RPCAccount_AccountSendConfirmPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountSendConfirmPhoneCode) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsExportInvite(ctx, in) + return srv.(RPCAccountServer).AccountSendConfirmPhoneCode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsExportInvite", + FullMethod: "/mtproto.RPCAccount/AccountSendConfirmPhoneCode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsExportInvite(ctx, req.(*TLChannelsExportInvite)) + return srv.(RPCAccountServer).AccountSendConfirmPhoneCode(ctx, req.(*TLAccountSendConfirmPhoneCode)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsDeleteChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsDeleteChannel) +func _RPCAccount_AccountConfirmPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountConfirmPhone) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsDeleteChannel(ctx, in) + return srv.(RPCAccountServer).AccountConfirmPhone(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsDeleteChannel", + FullMethod: "/mtproto.RPCAccount/AccountConfirmPhone", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsDeleteChannel(ctx, req.(*TLChannelsDeleteChannel)) + return srv.(RPCAccountServer).AccountConfirmPhone(ctx, req.(*TLAccountConfirmPhone)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsToggleInvites_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsToggleInvites) +func _RPCAccount_AccountGetTmpPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetTmpPassword) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsToggleInvites(ctx, in) + return srv.(RPCAccountServer).AccountGetTmpPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsToggleInvites", + FullMethod: "/mtproto.RPCAccount/AccountGetTmpPassword", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsToggleInvites(ctx, req.(*TLChannelsToggleInvites)) + return srv.(RPCAccountServer).AccountGetTmpPassword(ctx, req.(*TLAccountGetTmpPassword)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsExportMessageLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsExportMessageLink) +func _RPCAccount_AccountGetWebAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetWebAuthorizations) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsExportMessageLink(ctx, in) + return srv.(RPCAccountServer).AccountGetWebAuthorizations(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsExportMessageLink", + FullMethod: "/mtproto.RPCAccount/AccountGetWebAuthorizations", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsExportMessageLink(ctx, req.(*TLChannelsExportMessageLink)) + return srv.(RPCAccountServer).AccountGetWebAuthorizations(ctx, req.(*TLAccountGetWebAuthorizations)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsToggleSignatures_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsToggleSignatures) +func _RPCAccount_AccountResetWebAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountResetWebAuthorization) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsToggleSignatures(ctx, in) + return srv.(RPCAccountServer).AccountResetWebAuthorization(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsToggleSignatures", + FullMethod: "/mtproto.RPCAccount/AccountResetWebAuthorization", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsToggleSignatures(ctx, req.(*TLChannelsToggleSignatures)) + return srv.(RPCAccountServer).AccountResetWebAuthorization(ctx, req.(*TLAccountResetWebAuthorization)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsUpdatePinnedMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsUpdatePinnedMessage) +func _RPCAccount_AccountResetWebAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountResetWebAuthorizations) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsUpdatePinnedMessage(ctx, in) + return srv.(RPCAccountServer).AccountResetWebAuthorizations(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsUpdatePinnedMessage", + FullMethod: "/mtproto.RPCAccount/AccountResetWebAuthorizations", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsUpdatePinnedMessage(ctx, req.(*TLChannelsUpdatePinnedMessage)) + return srv.(RPCAccountServer).AccountResetWebAuthorizations(ctx, req.(*TLAccountResetWebAuthorizations)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsGetAdminedPublicChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsGetAdminedPublicChannels) +func _RPCAccount_AccountGetAllSecureValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetAllSecureValues) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsGetAdminedPublicChannels(ctx, in) + return srv.(RPCAccountServer).AccountGetAllSecureValues(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsGetAdminedPublicChannels", + FullMethod: "/mtproto.RPCAccount/AccountGetAllSecureValues", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsGetAdminedPublicChannels(ctx, req.(*TLChannelsGetAdminedPublicChannels)) + return srv.(RPCAccountServer).AccountGetAllSecureValues(ctx, req.(*TLAccountGetAllSecureValues)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsEditBanned_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsEditBanned) +func _RPCAccount_AccountGetSecureValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetSecureValue) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsEditBanned(ctx, in) + return srv.(RPCAccountServer).AccountGetSecureValue(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsEditBanned", + FullMethod: "/mtproto.RPCAccount/AccountGetSecureValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsEditBanned(ctx, req.(*TLChannelsEditBanned)) + return srv.(RPCAccountServer).AccountGetSecureValue(ctx, req.(*TLAccountGetSecureValue)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsGetAdminLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsGetAdminLog) +func _RPCAccount_AccountSaveSecureValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountSaveSecureValue) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsGetAdminLog(ctx, in) + return srv.(RPCAccountServer).AccountSaveSecureValue(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsGetAdminLog", + FullMethod: "/mtproto.RPCAccount/AccountSaveSecureValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsGetAdminLog(ctx, req.(*TLChannelsGetAdminLog)) + return srv.(RPCAccountServer).AccountSaveSecureValue(ctx, req.(*TLAccountSaveSecureValue)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsSetStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsSetStickers) +func _RPCAccount_AccountDeleteSecureValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountDeleteSecureValue) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsSetStickers(ctx, in) + return srv.(RPCAccountServer).AccountDeleteSecureValue(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsSetStickers", + FullMethod: "/mtproto.RPCAccount/AccountDeleteSecureValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsSetStickers(ctx, req.(*TLChannelsSetStickers)) + return srv.(RPCAccountServer).AccountDeleteSecureValue(ctx, req.(*TLAccountDeleteSecureValue)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsReadMessageContents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsReadMessageContents) +func _RPCAccount_AccountGetAuthorizationForm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountGetAuthorizationForm) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsReadMessageContents(ctx, in) + return srv.(RPCAccountServer).AccountGetAuthorizationForm(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsReadMessageContents", + FullMethod: "/mtproto.RPCAccount/AccountGetAuthorizationForm", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsReadMessageContents(ctx, req.(*TLChannelsReadMessageContents)) + return srv.(RPCAccountServer).AccountGetAuthorizationForm(ctx, req.(*TLAccountGetAuthorizationForm)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsDeleteHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsDeleteHistory) +func _RPCAccount_AccountAcceptAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountAcceptAuthorization) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsDeleteHistory(ctx, in) + return srv.(RPCAccountServer).AccountAcceptAuthorization(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsDeleteHistory", + FullMethod: "/mtproto.RPCAccount/AccountAcceptAuthorization", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsDeleteHistory(ctx, req.(*TLChannelsDeleteHistory)) + return srv.(RPCAccountServer).AccountAcceptAuthorization(ctx, req.(*TLAccountAcceptAuthorization)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsTogglePreHistoryHidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsTogglePreHistoryHidden) +func _RPCAccount_AccountSendVerifyPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountSendVerifyPhoneCode) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsTogglePreHistoryHidden(ctx, in) + return srv.(RPCAccountServer).AccountSendVerifyPhoneCode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsTogglePreHistoryHidden", + FullMethod: "/mtproto.RPCAccount/AccountSendVerifyPhoneCode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsTogglePreHistoryHidden(ctx, req.(*TLChannelsTogglePreHistoryHidden)) + return srv.(RPCAccountServer).AccountSendVerifyPhoneCode(ctx, req.(*TLAccountSendVerifyPhoneCode)) } return interceptor(ctx, in, info, handler) } -func _RPCChannels_ChannelsGetLeftChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLChannelsGetLeftChannels) +func _RPCAccount_AccountVerifyPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountVerifyPhone) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCChannelsServer).ChannelsGetLeftChannels(ctx, in) + return srv.(RPCAccountServer).AccountVerifyPhone(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCChannels/ChannelsGetLeftChannels", + FullMethod: "/mtproto.RPCAccount/AccountVerifyPhone", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCChannelsServer).ChannelsGetLeftChannels(ctx, req.(*TLChannelsGetLeftChannels)) + return srv.(RPCAccountServer).AccountVerifyPhone(ctx, req.(*TLAccountVerifyPhone)) } return interceptor(ctx, in, info, handler) } -var _RPCChannels_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCChannels", - HandlerType: (*RPCChannelsServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "channels_readHistory", - Handler: _RPCChannels_ChannelsReadHistory_Handler, - }, - { - MethodName: "channels_deleteMessages", - Handler: _RPCChannels_ChannelsDeleteMessages_Handler, - }, - { - MethodName: "channels_deleteUserHistory", - Handler: _RPCChannels_ChannelsDeleteUserHistory_Handler, - }, - { - MethodName: "channels_reportSpam", - Handler: _RPCChannels_ChannelsReportSpam_Handler, - }, - { - MethodName: "channels_getMessages", - Handler: _RPCChannels_ChannelsGetMessages_Handler, - }, - { - MethodName: "channels_getParticipants", - Handler: _RPCChannels_ChannelsGetParticipants_Handler, - }, - { - MethodName: "channels_getParticipant", - Handler: _RPCChannels_ChannelsGetParticipant_Handler, - }, - { - MethodName: "channels_getChannels", - Handler: _RPCChannels_ChannelsGetChannels_Handler, - }, - { - MethodName: "channels_getFullChannel", - Handler: _RPCChannels_ChannelsGetFullChannel_Handler, +func _RPCAccount_AccountSendVerifyEmailCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountSendVerifyEmailCode) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAccountServer).AccountSendVerifyEmailCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountSendVerifyEmailCode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountSendVerifyEmailCode(ctx, req.(*TLAccountSendVerifyEmailCode)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAccount_AccountVerifyEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountVerifyEmail) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAccountServer).AccountVerifyEmail(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountVerifyEmail", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountVerifyEmail(ctx, req.(*TLAccountVerifyEmail)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAccount_AccountInitTakeoutSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountInitTakeoutSession) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAccountServer).AccountInitTakeoutSession(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountInitTakeoutSession", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountInitTakeoutSession(ctx, req.(*TLAccountInitTakeoutSession)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAccount_AccountFinishTakeoutSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAccountFinishTakeoutSession) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAccountServer).AccountFinishTakeoutSession(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAccount/AccountFinishTakeoutSession", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAccountServer).AccountFinishTakeoutSession(ctx, req.(*TLAccountFinishTakeoutSession)) + } + return interceptor(ctx, in, info, handler) +} + +var _RPCAccount_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCAccount", + HandlerType: (*RPCAccountServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "account_registerDeviceLayer71", + Handler: _RPCAccount_AccountRegisterDeviceLayer71_Handler, }, { - MethodName: "channels_createChannel", - Handler: _RPCChannels_ChannelsCreateChannel_Handler, + MethodName: "account_unregisterDeviceLayer71", + Handler: _RPCAccount_AccountUnregisterDeviceLayer71_Handler, }, { - MethodName: "channels_editAbout", - Handler: _RPCChannels_ChannelsEditAbout_Handler, + MethodName: "account_registerDevice", + Handler: _RPCAccount_AccountRegisterDevice_Handler, }, { - MethodName: "channels_editAdmin", - Handler: _RPCChannels_ChannelsEditAdmin_Handler, + MethodName: "account_unregisterDevice", + Handler: _RPCAccount_AccountUnregisterDevice_Handler, }, { - MethodName: "channels_editTitle", - Handler: _RPCChannels_ChannelsEditTitle_Handler, + MethodName: "account_updateNotifySettings", + Handler: _RPCAccount_AccountUpdateNotifySettings_Handler, }, { - MethodName: "channels_editPhoto", - Handler: _RPCChannels_ChannelsEditPhoto_Handler, + MethodName: "account_getNotifySettings", + Handler: _RPCAccount_AccountGetNotifySettings_Handler, }, { - MethodName: "channels_checkUsername", - Handler: _RPCChannels_ChannelsCheckUsername_Handler, + MethodName: "account_resetNotifySettings", + Handler: _RPCAccount_AccountResetNotifySettings_Handler, }, { - MethodName: "channels_updateUsername", - Handler: _RPCChannels_ChannelsUpdateUsername_Handler, + MethodName: "account_updateProfile", + Handler: _RPCAccount_AccountUpdateProfile_Handler, }, { - MethodName: "channels_joinChannel", - Handler: _RPCChannels_ChannelsJoinChannel_Handler, + MethodName: "account_updateStatus", + Handler: _RPCAccount_AccountUpdateStatus_Handler, }, { - MethodName: "channels_leaveChannel", - Handler: _RPCChannels_ChannelsLeaveChannel_Handler, + MethodName: "account_getWallPapers", + Handler: _RPCAccount_AccountGetWallPapers_Handler, }, { - MethodName: "channels_inviteToChannel", - Handler: _RPCChannels_ChannelsInviteToChannel_Handler, + MethodName: "account_reportPeer", + Handler: _RPCAccount_AccountReportPeer_Handler, }, { - MethodName: "channels_exportInvite", - Handler: _RPCChannels_ChannelsExportInvite_Handler, + MethodName: "account_checkUsername", + Handler: _RPCAccount_AccountCheckUsername_Handler, }, { - MethodName: "channels_deleteChannel", - Handler: _RPCChannels_ChannelsDeleteChannel_Handler, + MethodName: "account_updateUsername", + Handler: _RPCAccount_AccountUpdateUsername_Handler, }, { - MethodName: "channels_toggleInvites", - Handler: _RPCChannels_ChannelsToggleInvites_Handler, + MethodName: "account_getPrivacy", + Handler: _RPCAccount_AccountGetPrivacy_Handler, }, { - MethodName: "channels_exportMessageLink", - Handler: _RPCChannels_ChannelsExportMessageLink_Handler, + MethodName: "account_setPrivacy", + Handler: _RPCAccount_AccountSetPrivacy_Handler, }, { - MethodName: "channels_toggleSignatures", - Handler: _RPCChannels_ChannelsToggleSignatures_Handler, + MethodName: "account_deleteAccount", + Handler: _RPCAccount_AccountDeleteAccount_Handler, }, { - MethodName: "channels_updatePinnedMessage", - Handler: _RPCChannels_ChannelsUpdatePinnedMessage_Handler, + MethodName: "account_getAccountTTL", + Handler: _RPCAccount_AccountGetAccountTTL_Handler, }, { - MethodName: "channels_getAdminedPublicChannels", - Handler: _RPCChannels_ChannelsGetAdminedPublicChannels_Handler, + MethodName: "account_setAccountTTL", + Handler: _RPCAccount_AccountSetAccountTTL_Handler, }, { - MethodName: "channels_editBanned", - Handler: _RPCChannels_ChannelsEditBanned_Handler, + MethodName: "account_sendChangePhoneCode", + Handler: _RPCAccount_AccountSendChangePhoneCode_Handler, }, { - MethodName: "channels_getAdminLog", - Handler: _RPCChannels_ChannelsGetAdminLog_Handler, + MethodName: "account_changePhone", + Handler: _RPCAccount_AccountChangePhone_Handler, }, { - MethodName: "channels_setStickers", - Handler: _RPCChannels_ChannelsSetStickers_Handler, + MethodName: "account_updateDeviceLocked", + Handler: _RPCAccount_AccountUpdateDeviceLocked_Handler, }, { - MethodName: "channels_readMessageContents", - Handler: _RPCChannels_ChannelsReadMessageContents_Handler, + MethodName: "account_getAuthorizations", + Handler: _RPCAccount_AccountGetAuthorizations_Handler, }, { - MethodName: "channels_deleteHistory", - Handler: _RPCChannels_ChannelsDeleteHistory_Handler, + MethodName: "account_resetAuthorization", + Handler: _RPCAccount_AccountResetAuthorization_Handler, }, { - MethodName: "channels_togglePreHistoryHidden", - Handler: _RPCChannels_ChannelsTogglePreHistoryHidden_Handler, + MethodName: "account_getPassword", + Handler: _RPCAccount_AccountGetPassword_Handler, }, { - MethodName: "channels_getLeftChannels", - Handler: _RPCChannels_ChannelsGetLeftChannels_Handler, + MethodName: "account_getPasswordSettings", + Handler: _RPCAccount_AccountGetPasswordSettings_Handler, + }, + { + MethodName: "account_updatePasswordSettings", + Handler: _RPCAccount_AccountUpdatePasswordSettings_Handler, + }, + { + MethodName: "account_sendConfirmPhoneCode", + Handler: _RPCAccount_AccountSendConfirmPhoneCode_Handler, + }, + { + MethodName: "account_confirmPhone", + Handler: _RPCAccount_AccountConfirmPhone_Handler, + }, + { + MethodName: "account_getTmpPassword", + Handler: _RPCAccount_AccountGetTmpPassword_Handler, + }, + { + MethodName: "account_getWebAuthorizations", + Handler: _RPCAccount_AccountGetWebAuthorizations_Handler, + }, + { + MethodName: "account_resetWebAuthorization", + Handler: _RPCAccount_AccountResetWebAuthorization_Handler, + }, + { + MethodName: "account_resetWebAuthorizations", + Handler: _RPCAccount_AccountResetWebAuthorizations_Handler, + }, + { + MethodName: "account_getAllSecureValues", + Handler: _RPCAccount_AccountGetAllSecureValues_Handler, + }, + { + MethodName: "account_getSecureValue", + Handler: _RPCAccount_AccountGetSecureValue_Handler, + }, + { + MethodName: "account_saveSecureValue", + Handler: _RPCAccount_AccountSaveSecureValue_Handler, + }, + { + MethodName: "account_deleteSecureValue", + Handler: _RPCAccount_AccountDeleteSecureValue_Handler, + }, + { + MethodName: "account_getAuthorizationForm", + Handler: _RPCAccount_AccountGetAuthorizationForm_Handler, + }, + { + MethodName: "account_acceptAuthorization", + Handler: _RPCAccount_AccountAcceptAuthorization_Handler, + }, + { + MethodName: "account_sendVerifyPhoneCode", + Handler: _RPCAccount_AccountSendVerifyPhoneCode_Handler, + }, + { + MethodName: "account_verifyPhone", + Handler: _RPCAccount_AccountVerifyPhone_Handler, + }, + { + MethodName: "account_sendVerifyEmailCode", + Handler: _RPCAccount_AccountSendVerifyEmailCode_Handler, + }, + { + MethodName: "account_verifyEmail", + Handler: _RPCAccount_AccountVerifyEmail_Handler, + }, + { + MethodName: "account_initTakeoutSession", + Handler: _RPCAccount_AccountInitTakeoutSession_Handler, + }, + { + MethodName: "account_finishTakeoutSession", + Handler: _RPCAccount_AccountFinishTakeoutSession_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -17741,7866 +17615,8076 @@ var _RPCPhone_serviceDesc = grpc.ServiceDesc{ Metadata: "schema.tl.sync_service.proto", } -// RPCPhotosClient is the client API for RPCPhotos service. +// RPCUsersClient is the client API for RPCUsers service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCPhotosClient interface { - // photos.updateProfilePhoto#f0bb5152 id:InputPhoto = UserProfilePhoto; - PhotosUpdateProfilePhoto(ctx context.Context, in *TLPhotosUpdateProfilePhoto, opts ...grpc.CallOption) (*UserProfilePhoto, error) - // photos.uploadProfilePhoto#4f32c098 file:InputFile = photos.Photo; - PhotosUploadProfilePhoto(ctx context.Context, in *TLPhotosUploadProfilePhoto, opts ...grpc.CallOption) (*Photos_Photo, error) - // photos.deletePhotos#87cf7f2f id:Vector = Vector; - PhotosDeletePhotos(ctx context.Context, in *TLPhotosDeletePhotos, opts ...grpc.CallOption) (*VectorLong, error) - // photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos; - PhotosGetUserPhotos(ctx context.Context, in *TLPhotosGetUserPhotos, opts ...grpc.CallOption) (*Photos_Photos, error) +type RPCUsersClient interface { + // users.getUsers#d91a548 id:Vector = Vector; + UsersGetUsers(ctx context.Context, in *TLUsersGetUsers, opts ...grpc.CallOption) (*Vector_User, error) + // users.getFullUser#ca30a5b1 id:InputUser = UserFull; + UsersGetFullUser(ctx context.Context, in *TLUsersGetFullUser, opts ...grpc.CallOption) (*UserFull, error) + // users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector = Bool; + UsersSetSecureValueErrors(ctx context.Context, in *TLUsersSetSecureValueErrors, opts ...grpc.CallOption) (*Bool, error) } -type rPCPhotosClient struct { +type rPCUsersClient struct { cc *grpc.ClientConn } -func NewRPCPhotosClient(cc *grpc.ClientConn) RPCPhotosClient { - return &rPCPhotosClient{cc} -} - -func (c *rPCPhotosClient) PhotosUpdateProfilePhoto(ctx context.Context, in *TLPhotosUpdateProfilePhoto, opts ...grpc.CallOption) (*UserProfilePhoto, error) { - out := new(UserProfilePhoto) - err := c.cc.Invoke(ctx, "/mtproto.RPCPhotos/photos_updateProfilePhoto", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func NewRPCUsersClient(cc *grpc.ClientConn) RPCUsersClient { + return &rPCUsersClient{cc} } -func (c *rPCPhotosClient) PhotosUploadProfilePhoto(ctx context.Context, in *TLPhotosUploadProfilePhoto, opts ...grpc.CallOption) (*Photos_Photo, error) { - out := new(Photos_Photo) - err := c.cc.Invoke(ctx, "/mtproto.RPCPhotos/photos_uploadProfilePhoto", in, out, opts...) +func (c *rPCUsersClient) UsersGetUsers(ctx context.Context, in *TLUsersGetUsers, opts ...grpc.CallOption) (*Vector_User, error) { + out := new(Vector_User) + err := c.cc.Invoke(ctx, "/mtproto.RPCUsers/users_getUsers", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCPhotosClient) PhotosDeletePhotos(ctx context.Context, in *TLPhotosDeletePhotos, opts ...grpc.CallOption) (*VectorLong, error) { - out := new(VectorLong) - err := c.cc.Invoke(ctx, "/mtproto.RPCPhotos/photos_deletePhotos", in, out, opts...) +func (c *rPCUsersClient) UsersGetFullUser(ctx context.Context, in *TLUsersGetFullUser, opts ...grpc.CallOption) (*UserFull, error) { + out := new(UserFull) + err := c.cc.Invoke(ctx, "/mtproto.RPCUsers/users_getFullUser", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCPhotosClient) PhotosGetUserPhotos(ctx context.Context, in *TLPhotosGetUserPhotos, opts ...grpc.CallOption) (*Photos_Photos, error) { - out := new(Photos_Photos) - err := c.cc.Invoke(ctx, "/mtproto.RPCPhotos/photos_getUserPhotos", in, out, opts...) +func (c *rPCUsersClient) UsersSetSecureValueErrors(ctx context.Context, in *TLUsersSetSecureValueErrors, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCUsers/users_setSecureValueErrors", in, out, opts...) if err != nil { return nil, err } return out, nil } -// RPCPhotosServer is the server API for RPCPhotos service. -type RPCPhotosServer interface { - // photos.updateProfilePhoto#f0bb5152 id:InputPhoto = UserProfilePhoto; - PhotosUpdateProfilePhoto(context.Context, *TLPhotosUpdateProfilePhoto) (*UserProfilePhoto, error) - // photos.uploadProfilePhoto#4f32c098 file:InputFile = photos.Photo; - PhotosUploadProfilePhoto(context.Context, *TLPhotosUploadProfilePhoto) (*Photos_Photo, error) - // photos.deletePhotos#87cf7f2f id:Vector = Vector; - PhotosDeletePhotos(context.Context, *TLPhotosDeletePhotos) (*VectorLong, error) - // photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos; - PhotosGetUserPhotos(context.Context, *TLPhotosGetUserPhotos) (*Photos_Photos, error) -} - -func RegisterRPCPhotosServer(s *grpc.Server, srv RPCPhotosServer) { - s.RegisterService(&_RPCPhotos_serviceDesc, srv) +// RPCUsersServer is the server API for RPCUsers service. +type RPCUsersServer interface { + // users.getUsers#d91a548 id:Vector = Vector; + UsersGetUsers(context.Context, *TLUsersGetUsers) (*Vector_User, error) + // users.getFullUser#ca30a5b1 id:InputUser = UserFull; + UsersGetFullUser(context.Context, *TLUsersGetFullUser) (*UserFull, error) + // users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector = Bool; + UsersSetSecureValueErrors(context.Context, *TLUsersSetSecureValueErrors) (*Bool, error) } -func _RPCPhotos_PhotosUpdateProfilePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPhotosUpdateProfilePhoto) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCPhotosServer).PhotosUpdateProfilePhoto(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCPhotos/PhotosUpdateProfilePhoto", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPhotosServer).PhotosUpdateProfilePhoto(ctx, req.(*TLPhotosUpdateProfilePhoto)) - } - return interceptor(ctx, in, info, handler) +func RegisterRPCUsersServer(s *grpc.Server, srv RPCUsersServer) { + s.RegisterService(&_RPCUsers_serviceDesc, srv) } -func _RPCPhotos_PhotosUploadProfilePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPhotosUploadProfilePhoto) +func _RPCUsers_UsersGetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUsersGetUsers) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPhotosServer).PhotosUploadProfilePhoto(ctx, in) + return srv.(RPCUsersServer).UsersGetUsers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPhotos/PhotosUploadProfilePhoto", + FullMethod: "/mtproto.RPCUsers/UsersGetUsers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPhotosServer).PhotosUploadProfilePhoto(ctx, req.(*TLPhotosUploadProfilePhoto)) + return srv.(RPCUsersServer).UsersGetUsers(ctx, req.(*TLUsersGetUsers)) } return interceptor(ctx, in, info, handler) } -func _RPCPhotos_PhotosDeletePhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPhotosDeletePhotos) +func _RPCUsers_UsersGetFullUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUsersGetFullUser) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPhotosServer).PhotosDeletePhotos(ctx, in) + return srv.(RPCUsersServer).UsersGetFullUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPhotos/PhotosDeletePhotos", + FullMethod: "/mtproto.RPCUsers/UsersGetFullUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPhotosServer).PhotosDeletePhotos(ctx, req.(*TLPhotosDeletePhotos)) + return srv.(RPCUsersServer).UsersGetFullUser(ctx, req.(*TLUsersGetFullUser)) } return interceptor(ctx, in, info, handler) } -func _RPCPhotos_PhotosGetUserPhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPhotosGetUserPhotos) +func _RPCUsers_UsersSetSecureValueErrors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUsersSetSecureValueErrors) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPhotosServer).PhotosGetUserPhotos(ctx, in) + return srv.(RPCUsersServer).UsersSetSecureValueErrors(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPhotos/PhotosGetUserPhotos", + FullMethod: "/mtproto.RPCUsers/UsersSetSecureValueErrors", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPhotosServer).PhotosGetUserPhotos(ctx, req.(*TLPhotosGetUserPhotos)) + return srv.(RPCUsersServer).UsersSetSecureValueErrors(ctx, req.(*TLUsersSetSecureValueErrors)) } return interceptor(ctx, in, info, handler) } -var _RPCPhotos_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCPhotos", - HandlerType: (*RPCPhotosServer)(nil), +var _RPCUsers_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCUsers", + HandlerType: (*RPCUsersServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "photos_updateProfilePhoto", - Handler: _RPCPhotos_PhotosUpdateProfilePhoto_Handler, - }, - { - MethodName: "photos_uploadProfilePhoto", - Handler: _RPCPhotos_PhotosUploadProfilePhoto_Handler, + MethodName: "users_getUsers", + Handler: _RPCUsers_UsersGetUsers_Handler, }, { - MethodName: "photos_deletePhotos", - Handler: _RPCPhotos_PhotosDeletePhotos_Handler, + MethodName: "users_getFullUser", + Handler: _RPCUsers_UsersGetFullUser_Handler, }, { - MethodName: "photos_getUserPhotos", - Handler: _RPCPhotos_PhotosGetUserPhotos_Handler, + MethodName: "users_setSecureValueErrors", + Handler: _RPCUsers_UsersSetSecureValueErrors_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "schema.tl.sync_service.proto", } -// RPCUploadClient is the client API for RPCUpload service. +// RPCChannelsClient is the client API for RPCChannels service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCUploadClient interface { - // upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool; - UploadSaveFilePart(ctx context.Context, in *TLUploadSaveFilePart, opts ...grpc.CallOption) (*Bool, error) - // upload.getFile#e3a6cfb5 location:InputFileLocation offset:int limit:int = upload.File; - UploadGetFile(ctx context.Context, in *TLUploadGetFile, opts ...grpc.CallOption) (*Upload_File, error) - // upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool; - UploadSaveBigFilePart(ctx context.Context, in *TLUploadSaveBigFilePart, opts ...grpc.CallOption) (*Bool, error) - // upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile; - UploadGetWebFile(ctx context.Context, in *TLUploadGetWebFile, opts ...grpc.CallOption) (*Upload_WebFile, error) - // upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile; - UploadGetCdnFile(ctx context.Context, in *TLUploadGetCdnFile, opts ...grpc.CallOption) (*Upload_CdnFile, error) - // upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector; - UploadReuploadCdnFile(ctx context.Context, in *TLUploadReuploadCdnFile, opts ...grpc.CallOption) (*Vector_FileHash, error) - // upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector; - UploadGetCdnFileHashes(ctx context.Context, in *TLUploadGetCdnFileHashes, opts ...grpc.CallOption) (*Vector_FileHash, error) - // upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector; - UploadGetFileHashes(ctx context.Context, in *TLUploadGetFileHashes, opts ...grpc.CallOption) (*Vector_FileHash, error) +type RPCChannelsClient interface { + // channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; + ChannelsReadHistory(ctx context.Context, in *TLChannelsReadHistory, opts ...grpc.CallOption) (*Bool, error) + // channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages; + ChannelsDeleteMessages(ctx context.Context, in *TLChannelsDeleteMessages, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) + // channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory; + ChannelsDeleteUserHistory(ctx context.Context, in *TLChannelsDeleteUserHistory, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) + // channels.reportSpam#fe087810 channel:InputChannel user_id:InputUser id:Vector = Bool; + ChannelsReportSpam(ctx context.Context, in *TLChannelsReportSpam, opts ...grpc.CallOption) (*Bool, error) + // channels.getMessages#ad8c9a23 channel:InputChannel id:Vector = messages.Messages; + ChannelsGetMessages(ctx context.Context, in *TLChannelsGetMessages, opts ...grpc.CallOption) (*Messages_Messages, error) + // channels.getParticipants#123e05e9 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:int = channels.ChannelParticipants; + ChannelsGetParticipants(ctx context.Context, in *TLChannelsGetParticipants, opts ...grpc.CallOption) (*Channels_ChannelParticipants, error) + // channels.getParticipant#546dd7a6 channel:InputChannel user_id:InputUser = channels.ChannelParticipant; + ChannelsGetParticipant(ctx context.Context, in *TLChannelsGetParticipant, opts ...grpc.CallOption) (*Channels_ChannelParticipant, error) + // channels.getChannels#a7f6bbb id:Vector = messages.Chats; + ChannelsGetChannels(ctx context.Context, in *TLChannelsGetChannels, opts ...grpc.CallOption) (*Messages_Chats, error) + // channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull; + ChannelsGetFullChannel(ctx context.Context, in *TLChannelsGetFullChannel, opts ...grpc.CallOption) (*Messages_ChatFull, error) + // channels.createChannel#f4893d7f flags:# broadcast:flags.0?true megagroup:flags.1?true title:string about:string = Updates; + ChannelsCreateChannel(ctx context.Context, in *TLChannelsCreateChannel, opts ...grpc.CallOption) (*Updates, error) + // channels.editAbout#13e27f1e channel:InputChannel about:string = Bool; + ChannelsEditAbout(ctx context.Context, in *TLChannelsEditAbout, opts ...grpc.CallOption) (*Bool, error) + // channels.editAdmin#20b88214 channel:InputChannel user_id:InputUser admin_rights:ChannelAdminRights = Updates; + ChannelsEditAdmin(ctx context.Context, in *TLChannelsEditAdmin, opts ...grpc.CallOption) (*Updates, error) + // channels.editTitle#566decd0 channel:InputChannel title:string = Updates; + ChannelsEditTitle(ctx context.Context, in *TLChannelsEditTitle, opts ...grpc.CallOption) (*Updates, error) + // channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates; + ChannelsEditPhoto(ctx context.Context, in *TLChannelsEditPhoto, opts ...grpc.CallOption) (*Updates, error) + // channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool; + ChannelsCheckUsername(ctx context.Context, in *TLChannelsCheckUsername, opts ...grpc.CallOption) (*Bool, error) + // channels.updateUsername#3514b3de channel:InputChannel username:string = Bool; + ChannelsUpdateUsername(ctx context.Context, in *TLChannelsUpdateUsername, opts ...grpc.CallOption) (*Bool, error) + // channels.joinChannel#24b524c5 channel:InputChannel = Updates; + ChannelsJoinChannel(ctx context.Context, in *TLChannelsJoinChannel, opts ...grpc.CallOption) (*Updates, error) + // channels.leaveChannel#f836aa95 channel:InputChannel = Updates; + ChannelsLeaveChannel(ctx context.Context, in *TLChannelsLeaveChannel, opts ...grpc.CallOption) (*Updates, error) + // channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector = Updates; + ChannelsInviteToChannel(ctx context.Context, in *TLChannelsInviteToChannel, opts ...grpc.CallOption) (*Updates, error) + // channels.exportInvite#c7560885 channel:InputChannel = ExportedChatInvite; + ChannelsExportInvite(ctx context.Context, in *TLChannelsExportInvite, opts ...grpc.CallOption) (*ExportedChatInvite, error) + // channels.deleteChannel#c0111fe3 channel:InputChannel = Updates; + ChannelsDeleteChannel(ctx context.Context, in *TLChannelsDeleteChannel, opts ...grpc.CallOption) (*Updates, error) + // channels.toggleInvites#49609307 channel:InputChannel enabled:Bool = Updates; + ChannelsToggleInvites(ctx context.Context, in *TLChannelsToggleInvites, opts ...grpc.CallOption) (*Updates, error) + // channels.exportMessageLink#ceb77163 channel:InputChannel id:int grouped:Bool = ExportedMessageLink; + ChannelsExportMessageLink(ctx context.Context, in *TLChannelsExportMessageLink, opts ...grpc.CallOption) (*ExportedMessageLink, error) + // channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates; + ChannelsToggleSignatures(ctx context.Context, in *TLChannelsToggleSignatures, opts ...grpc.CallOption) (*Updates, error) + // channels.updatePinnedMessage#a72ded52 flags:# silent:flags.0?true channel:InputChannel id:int = Updates; + ChannelsUpdatePinnedMessage(ctx context.Context, in *TLChannelsUpdatePinnedMessage, opts ...grpc.CallOption) (*Updates, error) + // channels.getAdminedPublicChannels#8d8d82d7 = messages.Chats; + ChannelsGetAdminedPublicChannels(ctx context.Context, in *TLChannelsGetAdminedPublicChannels, opts ...grpc.CallOption) (*Messages_Chats, error) + // channels.editBanned#bfd915cd channel:InputChannel user_id:InputUser banned_rights:ChannelBannedRights = Updates; + ChannelsEditBanned(ctx context.Context, in *TLChannelsEditBanned, opts ...grpc.CallOption) (*Updates, error) + // channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults; + ChannelsGetAdminLog(ctx context.Context, in *TLChannelsGetAdminLog, opts ...grpc.CallOption) (*Channels_AdminLogResults, error) + // channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool; + ChannelsSetStickers(ctx context.Context, in *TLChannelsSetStickers, opts ...grpc.CallOption) (*Bool, error) + // channels.readMessageContents#eab5dc38 channel:InputChannel id:Vector = Bool; + ChannelsReadMessageContents(ctx context.Context, in *TLChannelsReadMessageContents, opts ...grpc.CallOption) (*Bool, error) + // channels.deleteHistory#af369d42 channel:InputChannel max_id:int = Bool; + ChannelsDeleteHistory(ctx context.Context, in *TLChannelsDeleteHistory, opts ...grpc.CallOption) (*Bool, error) + // channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates; + ChannelsTogglePreHistoryHidden(ctx context.Context, in *TLChannelsTogglePreHistoryHidden, opts ...grpc.CallOption) (*Updates, error) + // channels.getLeftChannels#8341ecc0 offset:int = messages.Chats; + ChannelsGetLeftChannels(ctx context.Context, in *TLChannelsGetLeftChannels, opts ...grpc.CallOption) (*Messages_Chats, error) } -type rPCUploadClient struct { +type rPCChannelsClient struct { cc *grpc.ClientConn } -func NewRPCUploadClient(cc *grpc.ClientConn) RPCUploadClient { - return &rPCUploadClient{cc} +func NewRPCChannelsClient(cc *grpc.ClientConn) RPCChannelsClient { + return &rPCChannelsClient{cc} } -func (c *rPCUploadClient) UploadSaveFilePart(ctx context.Context, in *TLUploadSaveFilePart, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCChannelsClient) ChannelsReadHistory(ctx context.Context, in *TLChannelsReadHistory, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_saveFilePart", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_readHistory", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUploadClient) UploadGetFile(ctx context.Context, in *TLUploadGetFile, opts ...grpc.CallOption) (*Upload_File, error) { - out := new(Upload_File) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getFile", in, out, opts...) +func (c *rPCChannelsClient) ChannelsDeleteMessages(ctx context.Context, in *TLChannelsDeleteMessages, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) { + out := new(Messages_AffectedMessages) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_deleteMessages", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUploadClient) UploadSaveBigFilePart(ctx context.Context, in *TLUploadSaveBigFilePart, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_saveBigFilePart", in, out, opts...) +func (c *rPCChannelsClient) ChannelsDeleteUserHistory(ctx context.Context, in *TLChannelsDeleteUserHistory, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) { + out := new(Messages_AffectedHistory) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_deleteUserHistory", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUploadClient) UploadGetWebFile(ctx context.Context, in *TLUploadGetWebFile, opts ...grpc.CallOption) (*Upload_WebFile, error) { - out := new(Upload_WebFile) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getWebFile", in, out, opts...) +func (c *rPCChannelsClient) ChannelsReportSpam(ctx context.Context, in *TLChannelsReportSpam, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_reportSpam", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUploadClient) UploadGetCdnFile(ctx context.Context, in *TLUploadGetCdnFile, opts ...grpc.CallOption) (*Upload_CdnFile, error) { - out := new(Upload_CdnFile) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getCdnFile", in, out, opts...) +func (c *rPCChannelsClient) ChannelsGetMessages(ctx context.Context, in *TLChannelsGetMessages, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getMessages", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUploadClient) UploadReuploadCdnFile(ctx context.Context, in *TLUploadReuploadCdnFile, opts ...grpc.CallOption) (*Vector_FileHash, error) { - out := new(Vector_FileHash) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_reuploadCdnFile", in, out, opts...) +func (c *rPCChannelsClient) ChannelsGetParticipants(ctx context.Context, in *TLChannelsGetParticipants, opts ...grpc.CallOption) (*Channels_ChannelParticipants, error) { + out := new(Channels_ChannelParticipants) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getParticipants", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUploadClient) UploadGetCdnFileHashes(ctx context.Context, in *TLUploadGetCdnFileHashes, opts ...grpc.CallOption) (*Vector_FileHash, error) { - out := new(Vector_FileHash) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getCdnFileHashes", in, out, opts...) +func (c *rPCChannelsClient) ChannelsGetParticipant(ctx context.Context, in *TLChannelsGetParticipant, opts ...grpc.CallOption) (*Channels_ChannelParticipant, error) { + out := new(Channels_ChannelParticipant) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getParticipant", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCUploadClient) UploadGetFileHashes(ctx context.Context, in *TLUploadGetFileHashes, opts ...grpc.CallOption) (*Vector_FileHash, error) { - out := new(Vector_FileHash) - err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getFileHashes", in, out, opts...) +func (c *rPCChannelsClient) ChannelsGetChannels(ctx context.Context, in *TLChannelsGetChannels, opts ...grpc.CallOption) (*Messages_Chats, error) { + out := new(Messages_Chats) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getChannels", in, out, opts...) if err != nil { return nil, err } return out, nil } -// RPCUploadServer is the server API for RPCUpload service. -type RPCUploadServer interface { - // upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool; - UploadSaveFilePart(context.Context, *TLUploadSaveFilePart) (*Bool, error) - // upload.getFile#e3a6cfb5 location:InputFileLocation offset:int limit:int = upload.File; - UploadGetFile(context.Context, *TLUploadGetFile) (*Upload_File, error) - // upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool; - UploadSaveBigFilePart(context.Context, *TLUploadSaveBigFilePart) (*Bool, error) - // upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile; - UploadGetWebFile(context.Context, *TLUploadGetWebFile) (*Upload_WebFile, error) - // upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile; - UploadGetCdnFile(context.Context, *TLUploadGetCdnFile) (*Upload_CdnFile, error) - // upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector; - UploadReuploadCdnFile(context.Context, *TLUploadReuploadCdnFile) (*Vector_FileHash, error) - // upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector; - UploadGetCdnFileHashes(context.Context, *TLUploadGetCdnFileHashes) (*Vector_FileHash, error) - // upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector; - UploadGetFileHashes(context.Context, *TLUploadGetFileHashes) (*Vector_FileHash, error) +func (c *rPCChannelsClient) ChannelsGetFullChannel(ctx context.Context, in *TLChannelsGetFullChannel, opts ...grpc.CallOption) (*Messages_ChatFull, error) { + out := new(Messages_ChatFull) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getFullChannel", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func RegisterRPCUploadServer(s *grpc.Server, srv RPCUploadServer) { - s.RegisterService(&_RPCUpload_serviceDesc, srv) +func (c *rPCChannelsClient) ChannelsCreateChannel(ctx context.Context, in *TLChannelsCreateChannel, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_createChannel", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func _RPCUpload_UploadSaveFilePart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUploadSaveFilePart) - if err := dec(in); err != nil { +func (c *rPCChannelsClient) ChannelsEditAbout(ctx context.Context, in *TLChannelsEditAbout, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editAbout", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUploadServer).UploadSaveFilePart(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpload/UploadSaveFilePart", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUploadServer).UploadSaveFilePart(ctx, req.(*TLUploadSaveFilePart)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpload_UploadGetFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUploadGetFile) - if err := dec(in); err != nil { +func (c *rPCChannelsClient) ChannelsEditAdmin(ctx context.Context, in *TLChannelsEditAdmin, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editAdmin", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUploadServer).UploadGetFile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpload/UploadGetFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUploadServer).UploadGetFile(ctx, req.(*TLUploadGetFile)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpload_UploadSaveBigFilePart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUploadSaveBigFilePart) - if err := dec(in); err != nil { +func (c *rPCChannelsClient) ChannelsEditTitle(ctx context.Context, in *TLChannelsEditTitle, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editTitle", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUploadServer).UploadSaveBigFilePart(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpload/UploadSaveBigFilePart", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUploadServer).UploadSaveBigFilePart(ctx, req.(*TLUploadSaveBigFilePart)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpload_UploadGetWebFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUploadGetWebFile) - if err := dec(in); err != nil { +func (c *rPCChannelsClient) ChannelsEditPhoto(ctx context.Context, in *TLChannelsEditPhoto, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editPhoto", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUploadServer).UploadGetWebFile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpload/UploadGetWebFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUploadServer).UploadGetWebFile(ctx, req.(*TLUploadGetWebFile)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpload_UploadGetCdnFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUploadGetCdnFile) - if err := dec(in); err != nil { +func (c *rPCChannelsClient) ChannelsCheckUsername(ctx context.Context, in *TLChannelsCheckUsername, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_checkUsername", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUploadServer).UploadGetCdnFile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpload/UploadGetCdnFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUploadServer).UploadGetCdnFile(ctx, req.(*TLUploadGetCdnFile)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpload_UploadReuploadCdnFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUploadReuploadCdnFile) - if err := dec(in); err != nil { +func (c *rPCChannelsClient) ChannelsUpdateUsername(ctx context.Context, in *TLChannelsUpdateUsername, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_updateUsername", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUploadServer).UploadReuploadCdnFile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpload/UploadReuploadCdnFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUploadServer).UploadReuploadCdnFile(ctx, req.(*TLUploadReuploadCdnFile)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpload_UploadGetCdnFileHashes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUploadGetCdnFileHashes) - if err := dec(in); err != nil { +func (c *rPCChannelsClient) ChannelsJoinChannel(ctx context.Context, in *TLChannelsJoinChannel, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_joinChannel", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUploadServer).UploadGetCdnFileHashes(ctx, in) + return out, nil +} + +func (c *rPCChannelsClient) ChannelsLeaveChannel(ctx context.Context, in *TLChannelsLeaveChannel, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_leaveChannel", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpload/UploadGetCdnFileHashes", + return out, nil +} + +func (c *rPCChannelsClient) ChannelsInviteToChannel(ctx context.Context, in *TLChannelsInviteToChannel, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_inviteToChannel", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUploadServer).UploadGetCdnFileHashes(ctx, req.(*TLUploadGetCdnFileHashes)) + return out, nil +} + +func (c *rPCChannelsClient) ChannelsExportInvite(ctx context.Context, in *TLChannelsExportInvite, opts ...grpc.CallOption) (*ExportedChatInvite, error) { + out := new(ExportedChatInvite) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_exportInvite", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCUpload_UploadGetFileHashes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUploadGetFileHashes) - if err := dec(in); err != nil { +func (c *rPCChannelsClient) ChannelsDeleteChannel(ctx context.Context, in *TLChannelsDeleteChannel, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_deleteChannel", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCUploadServer).UploadGetFileHashes(ctx, in) + return out, nil +} + +func (c *rPCChannelsClient) ChannelsToggleInvites(ctx context.Context, in *TLChannelsToggleInvites, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_toggleInvites", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCUpload/UploadGetFileHashes", + return out, nil +} + +func (c *rPCChannelsClient) ChannelsExportMessageLink(ctx context.Context, in *TLChannelsExportMessageLink, opts ...grpc.CallOption) (*ExportedMessageLink, error) { + out := new(ExportedMessageLink) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_exportMessageLink", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUploadServer).UploadGetFileHashes(ctx, req.(*TLUploadGetFileHashes)) + return out, nil +} + +func (c *rPCChannelsClient) ChannelsToggleSignatures(ctx context.Context, in *TLChannelsToggleSignatures, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_toggleSignatures", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -var _RPCUpload_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCUpload", - HandlerType: (*RPCUploadServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "upload_saveFilePart", - Handler: _RPCUpload_UploadSaveFilePart_Handler, - }, - { - MethodName: "upload_getFile", - Handler: _RPCUpload_UploadGetFile_Handler, - }, - { - MethodName: "upload_saveBigFilePart", - Handler: _RPCUpload_UploadSaveBigFilePart_Handler, - }, - { - MethodName: "upload_getWebFile", - Handler: _RPCUpload_UploadGetWebFile_Handler, - }, - { - MethodName: "upload_getCdnFile", - Handler: _RPCUpload_UploadGetCdnFile_Handler, - }, - { - MethodName: "upload_reuploadCdnFile", - Handler: _RPCUpload_UploadReuploadCdnFile_Handler, - }, - { - MethodName: "upload_getCdnFileHashes", - Handler: _RPCUpload_UploadGetCdnFileHashes_Handler, - }, - { - MethodName: "upload_getFileHashes", - Handler: _RPCUpload_UploadGetFileHashes_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "schema.tl.sync_service.proto", +func (c *rPCChannelsClient) ChannelsUpdatePinnedMessage(ctx context.Context, in *TLChannelsUpdatePinnedMessage, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_updatePinnedMessage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -// RPCStickersClient is the client API for RPCStickers service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCStickersClient interface { - // stickers.createStickerSet#9bd86e6a flags:# masks:flags.0?true user_id:InputUser title:string short_name:string stickers:Vector = messages.StickerSet; - StickersCreateStickerSet(ctx context.Context, in *TLStickersCreateStickerSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) - // stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; - StickersRemoveStickerFromSet(ctx context.Context, in *TLStickersRemoveStickerFromSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) - // stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; - StickersChangeStickerPosition(ctx context.Context, in *TLStickersChangeStickerPosition, opts ...grpc.CallOption) (*Messages_StickerSet, error) - // stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; - StickersAddStickerToSet(ctx context.Context, in *TLStickersAddStickerToSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) +func (c *rPCChannelsClient) ChannelsGetAdminedPublicChannels(ctx context.Context, in *TLChannelsGetAdminedPublicChannels, opts ...grpc.CallOption) (*Messages_Chats, error) { + out := new(Messages_Chats) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getAdminedPublicChannels", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -type rPCStickersClient struct { - cc *grpc.ClientConn +func (c *rPCChannelsClient) ChannelsEditBanned(ctx context.Context, in *TLChannelsEditBanned, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_editBanned", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func NewRPCStickersClient(cc *grpc.ClientConn) RPCStickersClient { - return &rPCStickersClient{cc} +func (c *rPCChannelsClient) ChannelsGetAdminLog(ctx context.Context, in *TLChannelsGetAdminLog, opts ...grpc.CallOption) (*Channels_AdminLogResults, error) { + out := new(Channels_AdminLogResults) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getAdminLog", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (c *rPCStickersClient) StickersCreateStickerSet(ctx context.Context, in *TLStickersCreateStickerSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) { - out := new(Messages_StickerSet) - err := c.cc.Invoke(ctx, "/mtproto.RPCStickers/stickers_createStickerSet", in, out, opts...) +func (c *rPCChannelsClient) ChannelsSetStickers(ctx context.Context, in *TLChannelsSetStickers, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_setStickers", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCStickersClient) StickersRemoveStickerFromSet(ctx context.Context, in *TLStickersRemoveStickerFromSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) { - out := new(Messages_StickerSet) - err := c.cc.Invoke(ctx, "/mtproto.RPCStickers/stickers_removeStickerFromSet", in, out, opts...) +func (c *rPCChannelsClient) ChannelsReadMessageContents(ctx context.Context, in *TLChannelsReadMessageContents, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_readMessageContents", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCStickersClient) StickersChangeStickerPosition(ctx context.Context, in *TLStickersChangeStickerPosition, opts ...grpc.CallOption) (*Messages_StickerSet, error) { - out := new(Messages_StickerSet) - err := c.cc.Invoke(ctx, "/mtproto.RPCStickers/stickers_changeStickerPosition", in, out, opts...) +func (c *rPCChannelsClient) ChannelsDeleteHistory(ctx context.Context, in *TLChannelsDeleteHistory, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_deleteHistory", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCStickersClient) StickersAddStickerToSet(ctx context.Context, in *TLStickersAddStickerToSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) { - out := new(Messages_StickerSet) - err := c.cc.Invoke(ctx, "/mtproto.RPCStickers/stickers_addStickerToSet", in, out, opts...) +func (c *rPCChannelsClient) ChannelsTogglePreHistoryHidden(ctx context.Context, in *TLChannelsTogglePreHistoryHidden, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_togglePreHistoryHidden", in, out, opts...) if err != nil { return nil, err } return out, nil } -// RPCStickersServer is the server API for RPCStickers service. -type RPCStickersServer interface { - // stickers.createStickerSet#9bd86e6a flags:# masks:flags.0?true user_id:InputUser title:string short_name:string stickers:Vector = messages.StickerSet; - StickersCreateStickerSet(context.Context, *TLStickersCreateStickerSet) (*Messages_StickerSet, error) - // stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; - StickersRemoveStickerFromSet(context.Context, *TLStickersRemoveStickerFromSet) (*Messages_StickerSet, error) - // stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; - StickersChangeStickerPosition(context.Context, *TLStickersChangeStickerPosition) (*Messages_StickerSet, error) - // stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; - StickersAddStickerToSet(context.Context, *TLStickersAddStickerToSet) (*Messages_StickerSet, error) +func (c *rPCChannelsClient) ChannelsGetLeftChannels(ctx context.Context, in *TLChannelsGetLeftChannels, opts ...grpc.CallOption) (*Messages_Chats, error) { + out := new(Messages_Chats) + err := c.cc.Invoke(ctx, "/mtproto.RPCChannels/channels_getLeftChannels", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func RegisterRPCStickersServer(s *grpc.Server, srv RPCStickersServer) { - s.RegisterService(&_RPCStickers_serviceDesc, srv) +// RPCChannelsServer is the server API for RPCChannels service. +type RPCChannelsServer interface { + // channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; + ChannelsReadHistory(context.Context, *TLChannelsReadHistory) (*Bool, error) + // channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages; + ChannelsDeleteMessages(context.Context, *TLChannelsDeleteMessages) (*Messages_AffectedMessages, error) + // channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory; + ChannelsDeleteUserHistory(context.Context, *TLChannelsDeleteUserHistory) (*Messages_AffectedHistory, error) + // channels.reportSpam#fe087810 channel:InputChannel user_id:InputUser id:Vector = Bool; + ChannelsReportSpam(context.Context, *TLChannelsReportSpam) (*Bool, error) + // channels.getMessages#ad8c9a23 channel:InputChannel id:Vector = messages.Messages; + ChannelsGetMessages(context.Context, *TLChannelsGetMessages) (*Messages_Messages, error) + // channels.getParticipants#123e05e9 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:int = channels.ChannelParticipants; + ChannelsGetParticipants(context.Context, *TLChannelsGetParticipants) (*Channels_ChannelParticipants, error) + // channels.getParticipant#546dd7a6 channel:InputChannel user_id:InputUser = channels.ChannelParticipant; + ChannelsGetParticipant(context.Context, *TLChannelsGetParticipant) (*Channels_ChannelParticipant, error) + // channels.getChannels#a7f6bbb id:Vector = messages.Chats; + ChannelsGetChannels(context.Context, *TLChannelsGetChannels) (*Messages_Chats, error) + // channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull; + ChannelsGetFullChannel(context.Context, *TLChannelsGetFullChannel) (*Messages_ChatFull, error) + // channels.createChannel#f4893d7f flags:# broadcast:flags.0?true megagroup:flags.1?true title:string about:string = Updates; + ChannelsCreateChannel(context.Context, *TLChannelsCreateChannel) (*Updates, error) + // channels.editAbout#13e27f1e channel:InputChannel about:string = Bool; + ChannelsEditAbout(context.Context, *TLChannelsEditAbout) (*Bool, error) + // channels.editAdmin#20b88214 channel:InputChannel user_id:InputUser admin_rights:ChannelAdminRights = Updates; + ChannelsEditAdmin(context.Context, *TLChannelsEditAdmin) (*Updates, error) + // channels.editTitle#566decd0 channel:InputChannel title:string = Updates; + ChannelsEditTitle(context.Context, *TLChannelsEditTitle) (*Updates, error) + // channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates; + ChannelsEditPhoto(context.Context, *TLChannelsEditPhoto) (*Updates, error) + // channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool; + ChannelsCheckUsername(context.Context, *TLChannelsCheckUsername) (*Bool, error) + // channels.updateUsername#3514b3de channel:InputChannel username:string = Bool; + ChannelsUpdateUsername(context.Context, *TLChannelsUpdateUsername) (*Bool, error) + // channels.joinChannel#24b524c5 channel:InputChannel = Updates; + ChannelsJoinChannel(context.Context, *TLChannelsJoinChannel) (*Updates, error) + // channels.leaveChannel#f836aa95 channel:InputChannel = Updates; + ChannelsLeaveChannel(context.Context, *TLChannelsLeaveChannel) (*Updates, error) + // channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector = Updates; + ChannelsInviteToChannel(context.Context, *TLChannelsInviteToChannel) (*Updates, error) + // channels.exportInvite#c7560885 channel:InputChannel = ExportedChatInvite; + ChannelsExportInvite(context.Context, *TLChannelsExportInvite) (*ExportedChatInvite, error) + // channels.deleteChannel#c0111fe3 channel:InputChannel = Updates; + ChannelsDeleteChannel(context.Context, *TLChannelsDeleteChannel) (*Updates, error) + // channels.toggleInvites#49609307 channel:InputChannel enabled:Bool = Updates; + ChannelsToggleInvites(context.Context, *TLChannelsToggleInvites) (*Updates, error) + // channels.exportMessageLink#ceb77163 channel:InputChannel id:int grouped:Bool = ExportedMessageLink; + ChannelsExportMessageLink(context.Context, *TLChannelsExportMessageLink) (*ExportedMessageLink, error) + // channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates; + ChannelsToggleSignatures(context.Context, *TLChannelsToggleSignatures) (*Updates, error) + // channels.updatePinnedMessage#a72ded52 flags:# silent:flags.0?true channel:InputChannel id:int = Updates; + ChannelsUpdatePinnedMessage(context.Context, *TLChannelsUpdatePinnedMessage) (*Updates, error) + // channels.getAdminedPublicChannels#8d8d82d7 = messages.Chats; + ChannelsGetAdminedPublicChannels(context.Context, *TLChannelsGetAdminedPublicChannels) (*Messages_Chats, error) + // channels.editBanned#bfd915cd channel:InputChannel user_id:InputUser banned_rights:ChannelBannedRights = Updates; + ChannelsEditBanned(context.Context, *TLChannelsEditBanned) (*Updates, error) + // channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults; + ChannelsGetAdminLog(context.Context, *TLChannelsGetAdminLog) (*Channels_AdminLogResults, error) + // channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool; + ChannelsSetStickers(context.Context, *TLChannelsSetStickers) (*Bool, error) + // channels.readMessageContents#eab5dc38 channel:InputChannel id:Vector = Bool; + ChannelsReadMessageContents(context.Context, *TLChannelsReadMessageContents) (*Bool, error) + // channels.deleteHistory#af369d42 channel:InputChannel max_id:int = Bool; + ChannelsDeleteHistory(context.Context, *TLChannelsDeleteHistory) (*Bool, error) + // channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates; + ChannelsTogglePreHistoryHidden(context.Context, *TLChannelsTogglePreHistoryHidden) (*Updates, error) + // channels.getLeftChannels#8341ecc0 offset:int = messages.Chats; + ChannelsGetLeftChannels(context.Context, *TLChannelsGetLeftChannels) (*Messages_Chats, error) } -func _RPCStickers_StickersCreateStickerSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLStickersCreateStickerSet) +func RegisterRPCChannelsServer(s *grpc.Server, srv RPCChannelsServer) { + s.RegisterService(&_RPCChannels_serviceDesc, srv) +} + +func _RPCChannels_ChannelsReadHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsReadHistory) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCStickersServer).StickersCreateStickerSet(ctx, in) + return srv.(RPCChannelsServer).ChannelsReadHistory(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCStickers/StickersCreateStickerSet", + FullMethod: "/mtproto.RPCChannels/ChannelsReadHistory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCStickersServer).StickersCreateStickerSet(ctx, req.(*TLStickersCreateStickerSet)) + return srv.(RPCChannelsServer).ChannelsReadHistory(ctx, req.(*TLChannelsReadHistory)) } return interceptor(ctx, in, info, handler) } -func _RPCStickers_StickersRemoveStickerFromSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLStickersRemoveStickerFromSet) +func _RPCChannels_ChannelsDeleteMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsDeleteMessages) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCStickersServer).StickersRemoveStickerFromSet(ctx, in) + return srv.(RPCChannelsServer).ChannelsDeleteMessages(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCStickers/StickersRemoveStickerFromSet", + FullMethod: "/mtproto.RPCChannels/ChannelsDeleteMessages", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCStickersServer).StickersRemoveStickerFromSet(ctx, req.(*TLStickersRemoveStickerFromSet)) + return srv.(RPCChannelsServer).ChannelsDeleteMessages(ctx, req.(*TLChannelsDeleteMessages)) } return interceptor(ctx, in, info, handler) } -func _RPCStickers_StickersChangeStickerPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLStickersChangeStickerPosition) +func _RPCChannels_ChannelsDeleteUserHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsDeleteUserHistory) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCStickersServer).StickersChangeStickerPosition(ctx, in) + return srv.(RPCChannelsServer).ChannelsDeleteUserHistory(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCStickers/StickersChangeStickerPosition", + FullMethod: "/mtproto.RPCChannels/ChannelsDeleteUserHistory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCStickersServer).StickersChangeStickerPosition(ctx, req.(*TLStickersChangeStickerPosition)) + return srv.(RPCChannelsServer).ChannelsDeleteUserHistory(ctx, req.(*TLChannelsDeleteUserHistory)) } return interceptor(ctx, in, info, handler) } -func _RPCStickers_StickersAddStickerToSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLStickersAddStickerToSet) +func _RPCChannels_ChannelsReportSpam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsReportSpam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCStickersServer).StickersAddStickerToSet(ctx, in) + return srv.(RPCChannelsServer).ChannelsReportSpam(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCStickers/StickersAddStickerToSet", + FullMethod: "/mtproto.RPCChannels/ChannelsReportSpam", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCStickersServer).StickersAddStickerToSet(ctx, req.(*TLStickersAddStickerToSet)) + return srv.(RPCChannelsServer).ChannelsReportSpam(ctx, req.(*TLChannelsReportSpam)) } return interceptor(ctx, in, info, handler) } -var _RPCStickers_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCStickers", - HandlerType: (*RPCStickersServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "stickers_createStickerSet", - Handler: _RPCStickers_StickersCreateStickerSet_Handler, - }, - { - MethodName: "stickers_removeStickerFromSet", - Handler: _RPCStickers_StickersRemoveStickerFromSet_Handler, - }, - { - MethodName: "stickers_changeStickerPosition", - Handler: _RPCStickers_StickersChangeStickerPosition_Handler, - }, - { - MethodName: "stickers_addStickerToSet", - Handler: _RPCStickers_StickersAddStickerToSet_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "schema.tl.sync_service.proto", -} - -// RPCContactsClient is the client API for RPCContacts service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCContactsClient interface { - // contacts.getStatuses#c4a353ee = Vector; - ContactsGetStatuses(ctx context.Context, in *TLContactsGetStatuses, opts ...grpc.CallOption) (*Vector_ContactStatus, error) - // contacts.getContacts#c023849f hash:int = contacts.Contacts; - ContactsGetContacts(ctx context.Context, in *TLContactsGetContacts, opts ...grpc.CallOption) (*Contacts_Contacts, error) - // contacts.importContacts#2c800be5 contacts:Vector = contacts.ImportedContacts; - ContactsImportContacts(ctx context.Context, in *TLContactsImportContacts, opts ...grpc.CallOption) (*Contacts_ImportedContacts, error) - // contacts.deleteContact#8e953744 id:InputUser = contacts.Link; - ContactsDeleteContact(ctx context.Context, in *TLContactsDeleteContact, opts ...grpc.CallOption) (*Contacts_Link, error) - // contacts.deleteContacts#59ab389e id:Vector = Bool; - ContactsDeleteContacts(ctx context.Context, in *TLContactsDeleteContacts, opts ...grpc.CallOption) (*Bool, error) - // contacts.block#332b49fc id:InputUser = Bool; - ContactsBlock(ctx context.Context, in *TLContactsBlock, opts ...grpc.CallOption) (*Bool, error) - // contacts.unblock#e54100bd id:InputUser = Bool; - ContactsUnblock(ctx context.Context, in *TLContactsUnblock, opts ...grpc.CallOption) (*Bool, error) - // contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked; - ContactsGetBlocked(ctx context.Context, in *TLContactsGetBlocked, opts ...grpc.CallOption) (*Contacts_Blocked, error) - // contacts.exportCard#84e53737 = Vector; - ContactsExportCard(ctx context.Context, in *TLContactsExportCard, opts ...grpc.CallOption) (*VectorInt, error) - // contacts.importCard#4fe196fe export_card:Vector = User; - ContactsImportCard(ctx context.Context, in *TLContactsImportCard, opts ...grpc.CallOption) (*User, error) - // contacts.search#11f812d8 q:string limit:int = contacts.Found; - ContactsSearch(ctx context.Context, in *TLContactsSearch, opts ...grpc.CallOption) (*Contacts_Found, error) - // contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer; - ContactsResolveUsername(ctx context.Context, in *TLContactsResolveUsername, opts ...grpc.CallOption) (*Contacts_ResolvedPeer, error) - // contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers; - ContactsGetTopPeers(ctx context.Context, in *TLContactsGetTopPeers, opts ...grpc.CallOption) (*Contacts_TopPeers, error) - // contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool; - ContactsResetTopPeerRating(ctx context.Context, in *TLContactsResetTopPeerRating, opts ...grpc.CallOption) (*Bool, error) - // contacts.resetSaved#879537f1 = Bool; - ContactsResetSaved(ctx context.Context, in *TLContactsResetSaved, opts ...grpc.CallOption) (*Bool, error) - // contacts.getSaved#82f1e39f = Vector; - ContactsGetSaved(ctx context.Context, in *TLContactsGetSaved, opts ...grpc.CallOption) (*Vector_SavedContact, error) - // contacts.toggleTopPeers#8514bdda enabled:Bool = Bool; - ContactsToggleTopPeers(ctx context.Context, in *TLContactsToggleTopPeers, opts ...grpc.CallOption) (*Bool, error) -} - -type rPCContactsClient struct { - cc *grpc.ClientConn -} - -func NewRPCContactsClient(cc *grpc.ClientConn) RPCContactsClient { - return &rPCContactsClient{cc} -} - -func (c *rPCContactsClient) ContactsGetStatuses(ctx context.Context, in *TLContactsGetStatuses, opts ...grpc.CallOption) (*Vector_ContactStatus, error) { - out := new(Vector_ContactStatus) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getStatuses", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsGetMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsGetMessages) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCContactsClient) ContactsGetContacts(ctx context.Context, in *TLContactsGetContacts, opts ...grpc.CallOption) (*Contacts_Contacts, error) { - out := new(Contacts_Contacts) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getContacts", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsGetMessages(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsGetMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsGetMessages(ctx, req.(*TLChannelsGetMessages)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsImportContacts(ctx context.Context, in *TLContactsImportContacts, opts ...grpc.CallOption) (*Contacts_ImportedContacts, error) { - out := new(Contacts_ImportedContacts) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_importContacts", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsGetParticipants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsGetParticipants) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsGetParticipants(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsGetParticipants", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsGetParticipants(ctx, req.(*TLChannelsGetParticipants)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsDeleteContact(ctx context.Context, in *TLContactsDeleteContact, opts ...grpc.CallOption) (*Contacts_Link, error) { - out := new(Contacts_Link) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_deleteContact", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsGetParticipant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsGetParticipant) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsGetParticipant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsGetParticipant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsGetParticipant(ctx, req.(*TLChannelsGetParticipant)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsDeleteContacts(ctx context.Context, in *TLContactsDeleteContacts, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_deleteContacts", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsGetChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsGetChannels) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsGetChannels(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsGetChannels", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsGetChannels(ctx, req.(*TLChannelsGetChannels)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsBlock(ctx context.Context, in *TLContactsBlock, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_block", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsGetFullChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsGetFullChannel) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsGetFullChannel(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsGetFullChannel", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsGetFullChannel(ctx, req.(*TLChannelsGetFullChannel)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsUnblock(ctx context.Context, in *TLContactsUnblock, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_unblock", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsCreateChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsCreateChannel) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsCreateChannel(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsCreateChannel", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsCreateChannel(ctx, req.(*TLChannelsCreateChannel)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsGetBlocked(ctx context.Context, in *TLContactsGetBlocked, opts ...grpc.CallOption) (*Contacts_Blocked, error) { - out := new(Contacts_Blocked) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getBlocked", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsEditAbout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsEditAbout) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsEditAbout(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsEditAbout", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsEditAbout(ctx, req.(*TLChannelsEditAbout)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsExportCard(ctx context.Context, in *TLContactsExportCard, opts ...grpc.CallOption) (*VectorInt, error) { - out := new(VectorInt) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_exportCard", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsEditAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsEditAdmin) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsEditAdmin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsEditAdmin", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsEditAdmin(ctx, req.(*TLChannelsEditAdmin)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsImportCard(ctx context.Context, in *TLContactsImportCard, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_importCard", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsEditTitle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsEditTitle) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsEditTitle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsEditTitle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsEditTitle(ctx, req.(*TLChannelsEditTitle)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsSearch(ctx context.Context, in *TLContactsSearch, opts ...grpc.CallOption) (*Contacts_Found, error) { - out := new(Contacts_Found) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_search", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsEditPhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsEditPhoto) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsEditPhoto(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsEditPhoto", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsEditPhoto(ctx, req.(*TLChannelsEditPhoto)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCContactsClient) ContactsResolveUsername(ctx context.Context, in *TLContactsResolveUsername, opts ...grpc.CallOption) (*Contacts_ResolvedPeer, error) { - out := new(Contacts_ResolvedPeer) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_resolveUsername", in, out, opts...) - if err != nil { +func _RPCChannels_ChannelsCheckUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsCheckUsername) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCContactsClient) ContactsGetTopPeers(ctx context.Context, in *TLContactsGetTopPeers, opts ...grpc.CallOption) (*Contacts_TopPeers, error) { - out := new(Contacts_TopPeers) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getTopPeers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCContactsClient) ContactsResetTopPeerRating(ctx context.Context, in *TLContactsResetTopPeerRating, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_resetTopPeerRating", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCContactsClient) ContactsResetSaved(ctx context.Context, in *TLContactsResetSaved, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_resetSaved", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsCheckUsername(ctx, in) } - return out, nil -} - -func (c *rPCContactsClient) ContactsGetSaved(ctx context.Context, in *TLContactsGetSaved, opts ...grpc.CallOption) (*Vector_SavedContact, error) { - out := new(Vector_SavedContact) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getSaved", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsCheckUsername", } - return out, nil -} - -func (c *rPCContactsClient) ContactsToggleTopPeers(ctx context.Context, in *TLContactsToggleTopPeers, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_toggleTopPeers", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsCheckUsername(ctx, req.(*TLChannelsCheckUsername)) } - return out, nil -} - -// RPCContactsServer is the server API for RPCContacts service. -type RPCContactsServer interface { - // contacts.getStatuses#c4a353ee = Vector; - ContactsGetStatuses(context.Context, *TLContactsGetStatuses) (*Vector_ContactStatus, error) - // contacts.getContacts#c023849f hash:int = contacts.Contacts; - ContactsGetContacts(context.Context, *TLContactsGetContacts) (*Contacts_Contacts, error) - // contacts.importContacts#2c800be5 contacts:Vector = contacts.ImportedContacts; - ContactsImportContacts(context.Context, *TLContactsImportContacts) (*Contacts_ImportedContacts, error) - // contacts.deleteContact#8e953744 id:InputUser = contacts.Link; - ContactsDeleteContact(context.Context, *TLContactsDeleteContact) (*Contacts_Link, error) - // contacts.deleteContacts#59ab389e id:Vector = Bool; - ContactsDeleteContacts(context.Context, *TLContactsDeleteContacts) (*Bool, error) - // contacts.block#332b49fc id:InputUser = Bool; - ContactsBlock(context.Context, *TLContactsBlock) (*Bool, error) - // contacts.unblock#e54100bd id:InputUser = Bool; - ContactsUnblock(context.Context, *TLContactsUnblock) (*Bool, error) - // contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked; - ContactsGetBlocked(context.Context, *TLContactsGetBlocked) (*Contacts_Blocked, error) - // contacts.exportCard#84e53737 = Vector; - ContactsExportCard(context.Context, *TLContactsExportCard) (*VectorInt, error) - // contacts.importCard#4fe196fe export_card:Vector = User; - ContactsImportCard(context.Context, *TLContactsImportCard) (*User, error) - // contacts.search#11f812d8 q:string limit:int = contacts.Found; - ContactsSearch(context.Context, *TLContactsSearch) (*Contacts_Found, error) - // contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer; - ContactsResolveUsername(context.Context, *TLContactsResolveUsername) (*Contacts_ResolvedPeer, error) - // contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers; - ContactsGetTopPeers(context.Context, *TLContactsGetTopPeers) (*Contacts_TopPeers, error) - // contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool; - ContactsResetTopPeerRating(context.Context, *TLContactsResetTopPeerRating) (*Bool, error) - // contacts.resetSaved#879537f1 = Bool; - ContactsResetSaved(context.Context, *TLContactsResetSaved) (*Bool, error) - // contacts.getSaved#82f1e39f = Vector; - ContactsGetSaved(context.Context, *TLContactsGetSaved) (*Vector_SavedContact, error) - // contacts.toggleTopPeers#8514bdda enabled:Bool = Bool; - ContactsToggleTopPeers(context.Context, *TLContactsToggleTopPeers) (*Bool, error) -} - -func RegisterRPCContactsServer(s *grpc.Server, srv RPCContactsServer) { - s.RegisterService(&_RPCContacts_serviceDesc, srv) + return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsGetStatuses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsGetStatuses) +func _RPCChannels_ChannelsUpdateUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsUpdateUsername) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsGetStatuses(ctx, in) + return srv.(RPCChannelsServer).ChannelsUpdateUsername(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsGetStatuses", + FullMethod: "/mtproto.RPCChannels/ChannelsUpdateUsername", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsGetStatuses(ctx, req.(*TLContactsGetStatuses)) + return srv.(RPCChannelsServer).ChannelsUpdateUsername(ctx, req.(*TLChannelsUpdateUsername)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsGetContacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsGetContacts) +func _RPCChannels_ChannelsJoinChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsJoinChannel) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsGetContacts(ctx, in) + return srv.(RPCChannelsServer).ChannelsJoinChannel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsGetContacts", + FullMethod: "/mtproto.RPCChannels/ChannelsJoinChannel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsGetContacts(ctx, req.(*TLContactsGetContacts)) + return srv.(RPCChannelsServer).ChannelsJoinChannel(ctx, req.(*TLChannelsJoinChannel)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsImportContacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsImportContacts) +func _RPCChannels_ChannelsLeaveChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsLeaveChannel) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsImportContacts(ctx, in) + return srv.(RPCChannelsServer).ChannelsLeaveChannel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsImportContacts", + FullMethod: "/mtproto.RPCChannels/ChannelsLeaveChannel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsImportContacts(ctx, req.(*TLContactsImportContacts)) + return srv.(RPCChannelsServer).ChannelsLeaveChannel(ctx, req.(*TLChannelsLeaveChannel)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsDeleteContact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsDeleteContact) +func _RPCChannels_ChannelsInviteToChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsInviteToChannel) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsDeleteContact(ctx, in) + return srv.(RPCChannelsServer).ChannelsInviteToChannel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsDeleteContact", + FullMethod: "/mtproto.RPCChannels/ChannelsInviteToChannel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsDeleteContact(ctx, req.(*TLContactsDeleteContact)) + return srv.(RPCChannelsServer).ChannelsInviteToChannel(ctx, req.(*TLChannelsInviteToChannel)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsDeleteContacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsDeleteContacts) +func _RPCChannels_ChannelsExportInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsExportInvite) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsDeleteContacts(ctx, in) + return srv.(RPCChannelsServer).ChannelsExportInvite(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsDeleteContacts", + FullMethod: "/mtproto.RPCChannels/ChannelsExportInvite", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsDeleteContacts(ctx, req.(*TLContactsDeleteContacts)) + return srv.(RPCChannelsServer).ChannelsExportInvite(ctx, req.(*TLChannelsExportInvite)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsBlock) +func _RPCChannels_ChannelsDeleteChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsDeleteChannel) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsBlock(ctx, in) + return srv.(RPCChannelsServer).ChannelsDeleteChannel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsBlock", + FullMethod: "/mtproto.RPCChannels/ChannelsDeleteChannel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsBlock(ctx, req.(*TLContactsBlock)) + return srv.(RPCChannelsServer).ChannelsDeleteChannel(ctx, req.(*TLChannelsDeleteChannel)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsUnblock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsUnblock) +func _RPCChannels_ChannelsToggleInvites_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsToggleInvites) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsUnblock(ctx, in) + return srv.(RPCChannelsServer).ChannelsToggleInvites(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsUnblock", + FullMethod: "/mtproto.RPCChannels/ChannelsToggleInvites", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsUnblock(ctx, req.(*TLContactsUnblock)) + return srv.(RPCChannelsServer).ChannelsToggleInvites(ctx, req.(*TLChannelsToggleInvites)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsGetBlocked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsGetBlocked) +func _RPCChannels_ChannelsExportMessageLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsExportMessageLink) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsGetBlocked(ctx, in) + return srv.(RPCChannelsServer).ChannelsExportMessageLink(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsGetBlocked", + FullMethod: "/mtproto.RPCChannels/ChannelsExportMessageLink", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsGetBlocked(ctx, req.(*TLContactsGetBlocked)) + return srv.(RPCChannelsServer).ChannelsExportMessageLink(ctx, req.(*TLChannelsExportMessageLink)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsExportCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsExportCard) +func _RPCChannels_ChannelsToggleSignatures_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsToggleSignatures) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsExportCard(ctx, in) + return srv.(RPCChannelsServer).ChannelsToggleSignatures(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsExportCard", + FullMethod: "/mtproto.RPCChannels/ChannelsToggleSignatures", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsExportCard(ctx, req.(*TLContactsExportCard)) + return srv.(RPCChannelsServer).ChannelsToggleSignatures(ctx, req.(*TLChannelsToggleSignatures)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsImportCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsImportCard) +func _RPCChannels_ChannelsUpdatePinnedMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsUpdatePinnedMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsImportCard(ctx, in) + return srv.(RPCChannelsServer).ChannelsUpdatePinnedMessage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsImportCard", + FullMethod: "/mtproto.RPCChannels/ChannelsUpdatePinnedMessage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsImportCard(ctx, req.(*TLContactsImportCard)) + return srv.(RPCChannelsServer).ChannelsUpdatePinnedMessage(ctx, req.(*TLChannelsUpdatePinnedMessage)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsSearch) +func _RPCChannels_ChannelsGetAdminedPublicChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsGetAdminedPublicChannels) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsSearch(ctx, in) + return srv.(RPCChannelsServer).ChannelsGetAdminedPublicChannels(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsSearch", + FullMethod: "/mtproto.RPCChannels/ChannelsGetAdminedPublicChannels", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsSearch(ctx, req.(*TLContactsSearch)) + return srv.(RPCChannelsServer).ChannelsGetAdminedPublicChannels(ctx, req.(*TLChannelsGetAdminedPublicChannels)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsResolveUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsResolveUsername) +func _RPCChannels_ChannelsEditBanned_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsEditBanned) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsResolveUsername(ctx, in) + return srv.(RPCChannelsServer).ChannelsEditBanned(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsResolveUsername", + FullMethod: "/mtproto.RPCChannels/ChannelsEditBanned", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsResolveUsername(ctx, req.(*TLContactsResolveUsername)) + return srv.(RPCChannelsServer).ChannelsEditBanned(ctx, req.(*TLChannelsEditBanned)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsGetTopPeers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsGetTopPeers) +func _RPCChannels_ChannelsGetAdminLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsGetAdminLog) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsGetTopPeers(ctx, in) + return srv.(RPCChannelsServer).ChannelsGetAdminLog(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsGetTopPeers", + FullMethod: "/mtproto.RPCChannels/ChannelsGetAdminLog", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsGetTopPeers(ctx, req.(*TLContactsGetTopPeers)) + return srv.(RPCChannelsServer).ChannelsGetAdminLog(ctx, req.(*TLChannelsGetAdminLog)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsResetTopPeerRating_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsResetTopPeerRating) +func _RPCChannels_ChannelsSetStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsSetStickers) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsResetTopPeerRating(ctx, in) + return srv.(RPCChannelsServer).ChannelsSetStickers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsResetTopPeerRating", + FullMethod: "/mtproto.RPCChannels/ChannelsSetStickers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsResetTopPeerRating(ctx, req.(*TLContactsResetTopPeerRating)) + return srv.(RPCChannelsServer).ChannelsSetStickers(ctx, req.(*TLChannelsSetStickers)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsResetSaved_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsResetSaved) +func _RPCChannels_ChannelsReadMessageContents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsReadMessageContents) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsResetSaved(ctx, in) + return srv.(RPCChannelsServer).ChannelsReadMessageContents(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsResetSaved", + FullMethod: "/mtproto.RPCChannels/ChannelsReadMessageContents", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsResetSaved(ctx, req.(*TLContactsResetSaved)) + return srv.(RPCChannelsServer).ChannelsReadMessageContents(ctx, req.(*TLChannelsReadMessageContents)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsGetSaved_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsGetSaved) +func _RPCChannels_ChannelsDeleteHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsDeleteHistory) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsGetSaved(ctx, in) + return srv.(RPCChannelsServer).ChannelsDeleteHistory(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsGetSaved", + FullMethod: "/mtproto.RPCChannels/ChannelsDeleteHistory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsGetSaved(ctx, req.(*TLContactsGetSaved)) + return srv.(RPCChannelsServer).ChannelsDeleteHistory(ctx, req.(*TLChannelsDeleteHistory)) } return interceptor(ctx, in, info, handler) } -func _RPCContacts_ContactsToggleTopPeers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLContactsToggleTopPeers) +func _RPCChannels_ChannelsTogglePreHistoryHidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsTogglePreHistoryHidden) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCContactsServer).ContactsToggleTopPeers(ctx, in) + return srv.(RPCChannelsServer).ChannelsTogglePreHistoryHidden(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCContacts/ContactsToggleTopPeers", + FullMethod: "/mtproto.RPCChannels/ChannelsTogglePreHistoryHidden", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCContactsServer).ContactsToggleTopPeers(ctx, req.(*TLContactsToggleTopPeers)) + return srv.(RPCChannelsServer).ChannelsTogglePreHistoryHidden(ctx, req.(*TLChannelsTogglePreHistoryHidden)) } return interceptor(ctx, in, info, handler) } -var _RPCContacts_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCContacts", - HandlerType: (*RPCContactsServer)(nil), +func _RPCChannels_ChannelsGetLeftChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLChannelsGetLeftChannels) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCChannelsServer).ChannelsGetLeftChannels(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCChannels/ChannelsGetLeftChannels", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCChannelsServer).ChannelsGetLeftChannels(ctx, req.(*TLChannelsGetLeftChannels)) + } + return interceptor(ctx, in, info, handler) +} + +var _RPCChannels_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCChannels", + HandlerType: (*RPCChannelsServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "contacts_getStatuses", - Handler: _RPCContacts_ContactsGetStatuses_Handler, + MethodName: "channels_readHistory", + Handler: _RPCChannels_ChannelsReadHistory_Handler, }, { - MethodName: "contacts_getContacts", - Handler: _RPCContacts_ContactsGetContacts_Handler, + MethodName: "channels_deleteMessages", + Handler: _RPCChannels_ChannelsDeleteMessages_Handler, }, { - MethodName: "contacts_importContacts", - Handler: _RPCContacts_ContactsImportContacts_Handler, + MethodName: "channels_deleteUserHistory", + Handler: _RPCChannels_ChannelsDeleteUserHistory_Handler, }, { - MethodName: "contacts_deleteContact", - Handler: _RPCContacts_ContactsDeleteContact_Handler, + MethodName: "channels_reportSpam", + Handler: _RPCChannels_ChannelsReportSpam_Handler, }, { - MethodName: "contacts_deleteContacts", - Handler: _RPCContacts_ContactsDeleteContacts_Handler, + MethodName: "channels_getMessages", + Handler: _RPCChannels_ChannelsGetMessages_Handler, }, { - MethodName: "contacts_block", - Handler: _RPCContacts_ContactsBlock_Handler, + MethodName: "channels_getParticipants", + Handler: _RPCChannels_ChannelsGetParticipants_Handler, }, { - MethodName: "contacts_unblock", - Handler: _RPCContacts_ContactsUnblock_Handler, + MethodName: "channels_getParticipant", + Handler: _RPCChannels_ChannelsGetParticipant_Handler, }, { - MethodName: "contacts_getBlocked", - Handler: _RPCContacts_ContactsGetBlocked_Handler, + MethodName: "channels_getChannels", + Handler: _RPCChannels_ChannelsGetChannels_Handler, }, { - MethodName: "contacts_exportCard", - Handler: _RPCContacts_ContactsExportCard_Handler, + MethodName: "channels_getFullChannel", + Handler: _RPCChannels_ChannelsGetFullChannel_Handler, }, { - MethodName: "contacts_importCard", - Handler: _RPCContacts_ContactsImportCard_Handler, + MethodName: "channels_createChannel", + Handler: _RPCChannels_ChannelsCreateChannel_Handler, }, { - MethodName: "contacts_search", - Handler: _RPCContacts_ContactsSearch_Handler, + MethodName: "channels_editAbout", + Handler: _RPCChannels_ChannelsEditAbout_Handler, }, { - MethodName: "contacts_resolveUsername", - Handler: _RPCContacts_ContactsResolveUsername_Handler, + MethodName: "channels_editAdmin", + Handler: _RPCChannels_ChannelsEditAdmin_Handler, }, { - MethodName: "contacts_getTopPeers", - Handler: _RPCContacts_ContactsGetTopPeers_Handler, + MethodName: "channels_editTitle", + Handler: _RPCChannels_ChannelsEditTitle_Handler, }, { - MethodName: "contacts_resetTopPeerRating", - Handler: _RPCContacts_ContactsResetTopPeerRating_Handler, + MethodName: "channels_editPhoto", + Handler: _RPCChannels_ChannelsEditPhoto_Handler, }, { - MethodName: "contacts_resetSaved", - Handler: _RPCContacts_ContactsResetSaved_Handler, + MethodName: "channels_checkUsername", + Handler: _RPCChannels_ChannelsCheckUsername_Handler, }, { - MethodName: "contacts_getSaved", - Handler: _RPCContacts_ContactsGetSaved_Handler, + MethodName: "channels_updateUsername", + Handler: _RPCChannels_ChannelsUpdateUsername_Handler, }, { - MethodName: "contacts_toggleTopPeers", - Handler: _RPCContacts_ContactsToggleTopPeers_Handler, + MethodName: "channels_joinChannel", + Handler: _RPCChannels_ChannelsJoinChannel_Handler, + }, + { + MethodName: "channels_leaveChannel", + Handler: _RPCChannels_ChannelsLeaveChannel_Handler, + }, + { + MethodName: "channels_inviteToChannel", + Handler: _RPCChannels_ChannelsInviteToChannel_Handler, + }, + { + MethodName: "channels_exportInvite", + Handler: _RPCChannels_ChannelsExportInvite_Handler, + }, + { + MethodName: "channels_deleteChannel", + Handler: _RPCChannels_ChannelsDeleteChannel_Handler, + }, + { + MethodName: "channels_toggleInvites", + Handler: _RPCChannels_ChannelsToggleInvites_Handler, + }, + { + MethodName: "channels_exportMessageLink", + Handler: _RPCChannels_ChannelsExportMessageLink_Handler, + }, + { + MethodName: "channels_toggleSignatures", + Handler: _RPCChannels_ChannelsToggleSignatures_Handler, + }, + { + MethodName: "channels_updatePinnedMessage", + Handler: _RPCChannels_ChannelsUpdatePinnedMessage_Handler, + }, + { + MethodName: "channels_getAdminedPublicChannels", + Handler: _RPCChannels_ChannelsGetAdminedPublicChannels_Handler, + }, + { + MethodName: "channels_editBanned", + Handler: _RPCChannels_ChannelsEditBanned_Handler, + }, + { + MethodName: "channels_getAdminLog", + Handler: _RPCChannels_ChannelsGetAdminLog_Handler, + }, + { + MethodName: "channels_setStickers", + Handler: _RPCChannels_ChannelsSetStickers_Handler, + }, + { + MethodName: "channels_readMessageContents", + Handler: _RPCChannels_ChannelsReadMessageContents_Handler, + }, + { + MethodName: "channels_deleteHistory", + Handler: _RPCChannels_ChannelsDeleteHistory_Handler, + }, + { + MethodName: "channels_togglePreHistoryHidden", + Handler: _RPCChannels_ChannelsTogglePreHistoryHidden_Handler, + }, + { + MethodName: "channels_getLeftChannels", + Handler: _RPCChannels_ChannelsGetLeftChannels_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "schema.tl.sync_service.proto", } -// RPCLangpackClient is the client API for RPCLangpack service. +// RPCMessagesClient is the client API for RPCMessages service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCLangpackClient interface { - // langpack.getLanguages#800fd57d = Vector; - LangpackGetLanguagesLayer70(ctx context.Context, in *TLLangpackGetLanguagesLayer70, opts ...grpc.CallOption) (*Vector_LangPackLanguage, error) - // langpack.getLangPack#9ab5c58e lang_code:string = LangPackDifference; - LangpackGetLangPackLayer71(ctx context.Context, in *TLLangpackGetLangPackLayer71, opts ...grpc.CallOption) (*LangPackDifference, error) - // langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference; - LangpackGetLangPack(ctx context.Context, in *TLLangpackGetLangPack, opts ...grpc.CallOption) (*LangPackDifference, error) - // langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector = Vector; - LangpackGetStrings(ctx context.Context, in *TLLangpackGetStrings, opts ...grpc.CallOption) (*Vector_LangPackString, error) - // langpack.getDifference#b2e4d7d from_version:int = LangPackDifference; - LangpackGetDifference(ctx context.Context, in *TLLangpackGetDifference, opts ...grpc.CallOption) (*LangPackDifference, error) - // langpack.getLanguages#42c6978f lang_pack:string = Vector; - LangpackGetLanguages(ctx context.Context, in *TLLangpackGetLanguages, opts ...grpc.CallOption) (*Vector_LangPackLanguage, error) -} - -type rPCLangpackClient struct { - cc *grpc.ClientConn -} - -func NewRPCLangpackClient(cc *grpc.ClientConn) RPCLangpackClient { - return &rPCLangpackClient{cc} -} - -func (c *rPCLangpackClient) LangpackGetLanguagesLayer70(ctx context.Context, in *TLLangpackGetLanguagesLayer70, opts ...grpc.CallOption) (*Vector_LangPackLanguage, error) { - out := new(Vector_LangPackLanguage) - err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getLanguagesLayer70", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCLangpackClient) LangpackGetLangPackLayer71(ctx context.Context, in *TLLangpackGetLangPackLayer71, opts ...grpc.CallOption) (*LangPackDifference, error) { - out := new(LangPackDifference) - err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getLangPackLayer71", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCLangpackClient) LangpackGetLangPack(ctx context.Context, in *TLLangpackGetLangPack, opts ...grpc.CallOption) (*LangPackDifference, error) { - out := new(LangPackDifference) - err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getLangPack", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCLangpackClient) LangpackGetStrings(ctx context.Context, in *TLLangpackGetStrings, opts ...grpc.CallOption) (*Vector_LangPackString, error) { - out := new(Vector_LangPackString) - err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getStrings", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCLangpackClient) LangpackGetDifference(ctx context.Context, in *TLLangpackGetDifference, opts ...grpc.CallOption) (*LangPackDifference, error) { - out := new(LangPackDifference) - err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getDifference", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCLangpackClient) LangpackGetLanguages(ctx context.Context, in *TLLangpackGetLanguages, opts ...grpc.CallOption) (*Vector_LangPackLanguage, error) { - out := new(Vector_LangPackLanguage) - err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getLanguages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RPCLangpackServer is the server API for RPCLangpack service. -type RPCLangpackServer interface { - // langpack.getLanguages#800fd57d = Vector; - LangpackGetLanguagesLayer70(context.Context, *TLLangpackGetLanguagesLayer70) (*Vector_LangPackLanguage, error) - // langpack.getLangPack#9ab5c58e lang_code:string = LangPackDifference; - LangpackGetLangPackLayer71(context.Context, *TLLangpackGetLangPackLayer71) (*LangPackDifference, error) - // langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference; - LangpackGetLangPack(context.Context, *TLLangpackGetLangPack) (*LangPackDifference, error) - // langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector = Vector; - LangpackGetStrings(context.Context, *TLLangpackGetStrings) (*Vector_LangPackString, error) - // langpack.getDifference#b2e4d7d from_version:int = LangPackDifference; - LangpackGetDifference(context.Context, *TLLangpackGetDifference) (*LangPackDifference, error) - // langpack.getLanguages#42c6978f lang_pack:string = Vector; - LangpackGetLanguages(context.Context, *TLLangpackGetLanguages) (*Vector_LangPackLanguage, error) -} - -func RegisterRPCLangpackServer(s *grpc.Server, srv RPCLangpackServer) { - s.RegisterService(&_RPCLangpack_serviceDesc, srv) +type RPCMessagesClient interface { + // messages.readHistory#b04f2510 peer:InputPeer max_id:int offset:int = messages.AffectedHistory; + MessagesReadHistoryLayer2(ctx context.Context, in *TLMessagesReadHistoryLayer2, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) + // messages.getHistory#afa92846 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; + MessagesGetHistoryLayer51(ctx context.Context, in *TLMessagesGetHistoryLayer51, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.getDialogs#191ba9c5 flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int = messages.Dialogs; + MessagesGetDialogsLayer62(ctx context.Context, in *TLMessagesGetDialogsLayer62, opts ...grpc.CallOption) (*Messages_Dialogs, error) + // messages.search#f288a275 flags:# peer:InputPeer q:string from_id:flags.0?InputUser filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = messages.Messages; + MessagesSearchLayer68(ctx context.Context, in *TLMessagesSearchLayer68, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.getMessages#4222fa74 id:Vector = messages.Messages; + MessagesGetMessagesLayer71(ctx context.Context, in *TLMessagesGetMessagesLayer71, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.getRecentLocations#249431e2 peer:InputPeer limit:int = messages.Messages; + MessagesGetRecentLocationsLayer72(ctx context.Context, in *TLMessagesGetRecentLocationsLayer72, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.getMessages#63c66506 id:Vector = messages.Messages; + MessagesGetMessages(ctx context.Context, in *TLMessagesGetMessages, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.getDialogs#b098aee6 flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:int = messages.Dialogs; + MessagesGetDialogs(ctx context.Context, in *TLMessagesGetDialogs, opts ...grpc.CallOption) (*Messages_Dialogs, error) + // messages.getHistory#dcbb8260 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages; + MessagesGetHistory(ctx context.Context, in *TLMessagesGetHistory, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.search#8614ef68 flags:# peer:InputPeer q:string from_id:flags.0?InputUser filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages; + MessagesSearch(ctx context.Context, in *TLMessagesSearch, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.readHistory#e306d3a peer:InputPeer max_id:int = messages.AffectedMessages; + MessagesReadHistory(ctx context.Context, in *TLMessagesReadHistory, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) + // messages.deleteHistory#1c015b09 flags:# just_clear:flags.0?true peer:InputPeer max_id:int = messages.AffectedHistory; + MessagesDeleteHistory(ctx context.Context, in *TLMessagesDeleteHistory, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) + // messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector = messages.AffectedMessages; + MessagesDeleteMessages(ctx context.Context, in *TLMessagesDeleteMessages, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) + // messages.receivedMessages#5a954c0 max_id:int = Vector; + MessagesReceivedMessages(ctx context.Context, in *TLMessagesReceivedMessages, opts ...grpc.CallOption) (*Vector_ReceivedNotifyMessage, error) + // messages.setTyping#a3825e50 peer:InputPeer action:SendMessageAction = Bool; + MessagesSetTyping(ctx context.Context, in *TLMessagesSetTyping, opts ...grpc.CallOption) (*Bool, error) + // messages.sendMessage#fa88427a flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Updates; + MessagesSendMessage(ctx context.Context, in *TLMessagesSendMessage, opts ...grpc.CallOption) (*Updates, error) + // messages.sendMedia#b8d1262b flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Updates; + MessagesSendMedia(ctx context.Context, in *TLMessagesSendMedia, opts ...grpc.CallOption) (*Updates, error) + // messages.forwardMessages#708e0195 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true grouped:flags.9?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer = Updates; + MessagesForwardMessages(ctx context.Context, in *TLMessagesForwardMessages, opts ...grpc.CallOption) (*Updates, error) + // messages.reportSpam#cf1592db peer:InputPeer = Bool; + MessagesReportSpam(ctx context.Context, in *TLMessagesReportSpam, opts ...grpc.CallOption) (*Bool, error) + // messages.hideReportSpam#a8f1709b peer:InputPeer = Bool; + MessagesHideReportSpam(ctx context.Context, in *TLMessagesHideReportSpam, opts ...grpc.CallOption) (*Bool, error) + // messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings; + MessagesGetPeerSettings(ctx context.Context, in *TLMessagesGetPeerSettings, opts ...grpc.CallOption) (*PeerSettings, error) + // messages.report#bd82b658 peer:InputPeer id:Vector reason:ReportReason = Bool; + MessagesReport(ctx context.Context, in *TLMessagesReport, opts ...grpc.CallOption) (*Bool, error) + // messages.getChats#3c6aa187 id:Vector = messages.Chats; + MessagesGetChats(ctx context.Context, in *TLMessagesGetChats, opts ...grpc.CallOption) (*Messages_Chats, error) + // messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull; + MessagesGetFullChat(ctx context.Context, in *TLMessagesGetFullChat, opts ...grpc.CallOption) (*Messages_ChatFull, error) + // messages.editChatTitle#dc452855 chat_id:int title:string = Updates; + MessagesEditChatTitle(ctx context.Context, in *TLMessagesEditChatTitle, opts ...grpc.CallOption) (*Updates, error) + // messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates; + MessagesEditChatPhoto(ctx context.Context, in *TLMessagesEditChatPhoto, opts ...grpc.CallOption) (*Updates, error) + // messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates; + MessagesAddChatUser(ctx context.Context, in *TLMessagesAddChatUser, opts ...grpc.CallOption) (*Updates, error) + // messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates; + MessagesDeleteChatUser(ctx context.Context, in *TLMessagesDeleteChatUser, opts ...grpc.CallOption) (*Updates, error) + // messages.createChat#9cb126e users:Vector title:string = Updates; + MessagesCreateChat(ctx context.Context, in *TLMessagesCreateChat, opts ...grpc.CallOption) (*Updates, error) + // messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig; + MessagesGetDhConfig(ctx context.Context, in *TLMessagesGetDhConfig, opts ...grpc.CallOption) (*Messages_DhConfig, error) + // messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat; + MessagesRequestEncryption(ctx context.Context, in *TLMessagesRequestEncryption, opts ...grpc.CallOption) (*EncryptedChat, error) + // messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat; + MessagesAcceptEncryption(ctx context.Context, in *TLMessagesAcceptEncryption, opts ...grpc.CallOption) (*EncryptedChat, error) + // messages.discardEncryption#edd923c5 chat_id:int = Bool; + MessagesDiscardEncryption(ctx context.Context, in *TLMessagesDiscardEncryption, opts ...grpc.CallOption) (*Bool, error) + // messages.setEncryptedTyping#791451ed peer:InputEncryptedChat typing:Bool = Bool; + MessagesSetEncryptedTyping(ctx context.Context, in *TLMessagesSetEncryptedTyping, opts ...grpc.CallOption) (*Bool, error) + // messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool; + MessagesReadEncryptedHistory(ctx context.Context, in *TLMessagesReadEncryptedHistory, opts ...grpc.CallOption) (*Bool, error) + // messages.sendEncrypted#a9776773 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage; + MessagesSendEncrypted(ctx context.Context, in *TLMessagesSendEncrypted, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) + // messages.sendEncryptedFile#9a901b66 peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage; + MessagesSendEncryptedFile(ctx context.Context, in *TLMessagesSendEncryptedFile, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) + // messages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage; + MessagesSendEncryptedService(ctx context.Context, in *TLMessagesSendEncryptedService, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) + // messages.receivedQueue#55a5bb66 max_qts:int = Vector; + MessagesReceivedQueue(ctx context.Context, in *TLMessagesReceivedQueue, opts ...grpc.CallOption) (*VectorLong, error) + // messages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool; + MessagesReportEncryptedSpam(ctx context.Context, in *TLMessagesReportEncryptedSpam, opts ...grpc.CallOption) (*Bool, error) + // messages.readMessageContents#36a73f77 id:Vector = messages.AffectedMessages; + MessagesReadMessageContents(ctx context.Context, in *TLMessagesReadMessageContents, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) + // messages.getStickers#43d4f2c emoticon:string hash:int = messages.Stickers; + MessagesGetStickers(ctx context.Context, in *TLMessagesGetStickers, opts ...grpc.CallOption) (*Messages_Stickers, error) + // messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers; + MessagesGetAllStickers(ctx context.Context, in *TLMessagesGetAllStickers, opts ...grpc.CallOption) (*Messages_AllStickers, error) + // messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector = MessageMedia; + MessagesGetWebPagePreview(ctx context.Context, in *TLMessagesGetWebPagePreview, opts ...grpc.CallOption) (*MessageMedia, error) + // messages.exportChatInvite#7d885289 chat_id:int = ExportedChatInvite; + MessagesExportChatInvite(ctx context.Context, in *TLMessagesExportChatInvite, opts ...grpc.CallOption) (*ExportedChatInvite, error) + // messages.checkChatInvite#3eadb1bb hash:string = ChatInvite; + MessagesCheckChatInvite(ctx context.Context, in *TLMessagesCheckChatInvite, opts ...grpc.CallOption) (*ChatInvite, error) + // messages.importChatInvite#6c50051c hash:string = Updates; + MessagesImportChatInvite(ctx context.Context, in *TLMessagesImportChatInvite, opts ...grpc.CallOption) (*Updates, error) + // messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet; + MessagesGetStickerSet(ctx context.Context, in *TLMessagesGetStickerSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) + // messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult; + MessagesInstallStickerSet(ctx context.Context, in *TLMessagesInstallStickerSet, opts ...grpc.CallOption) (*Messages_StickerSetInstallResult, error) + // messages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool; + MessagesUninstallStickerSet(ctx context.Context, in *TLMessagesUninstallStickerSet, opts ...grpc.CallOption) (*Bool, error) + // messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates; + MessagesStartBot(ctx context.Context, in *TLMessagesStartBot, opts ...grpc.CallOption) (*Updates, error) + // messages.getMessagesViews#c4c8a55d peer:InputPeer id:Vector increment:Bool = Vector; + MessagesGetMessagesViews(ctx context.Context, in *TLMessagesGetMessagesViews, opts ...grpc.CallOption) (*VectorInt, error) + // messages.toggleChatAdmins#ec8bd9e1 chat_id:int enabled:Bool = Updates; + MessagesToggleChatAdmins(ctx context.Context, in *TLMessagesToggleChatAdmins, opts ...grpc.CallOption) (*Updates, error) + // messages.editChatAdmin#a9e69f2e chat_id:int user_id:InputUser is_admin:Bool = Bool; + MessagesEditChatAdmin(ctx context.Context, in *TLMessagesEditChatAdmin, opts ...grpc.CallOption) (*Bool, error) + // messages.migrateChat#15a3b8e3 chat_id:int = Updates; + MessagesMigrateChat(ctx context.Context, in *TLMessagesMigrateChat, opts ...grpc.CallOption) (*Updates, error) + // messages.searchGlobal#9e3cacb0 q:string offset_date:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; + MessagesSearchGlobal(ctx context.Context, in *TLMessagesSearchGlobal, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.reorderStickerSets#78337739 flags:# masks:flags.0?true order:Vector = Bool; + MessagesReorderStickerSets(ctx context.Context, in *TLMessagesReorderStickerSets, opts ...grpc.CallOption) (*Bool, error) + // messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document; + MessagesGetDocumentByHash(ctx context.Context, in *TLMessagesGetDocumentByHash, opts ...grpc.CallOption) (*Document, error) + // messages.searchGifs#bf9a776b q:string offset:int = messages.FoundGifs; + MessagesSearchGifs(ctx context.Context, in *TLMessagesSearchGifs, opts ...grpc.CallOption) (*Messages_FoundGifs, error) + // messages.getSavedGifs#83bf3d52 hash:int = messages.SavedGifs; + MessagesGetSavedGifs(ctx context.Context, in *TLMessagesGetSavedGifs, opts ...grpc.CallOption) (*Messages_SavedGifs, error) + // messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; + MessagesSaveGif(ctx context.Context, in *TLMessagesSaveGif, opts ...grpc.CallOption) (*Bool, error) + // messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults; + MessagesGetInlineBotResults(ctx context.Context, in *TLMessagesGetInlineBotResults, opts ...grpc.CallOption) (*Messages_BotResults, error) + // messages.setInlineBotResults#eb5ea206 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM = Bool; + MessagesSetInlineBotResults(ctx context.Context, in *TLMessagesSetInlineBotResults, opts ...grpc.CallOption) (*Bool, error) + // messages.sendInlineBotResult#b16e06fe flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string = Updates; + MessagesSendInlineBotResult(ctx context.Context, in *TLMessagesSendInlineBotResult, opts ...grpc.CallOption) (*Updates, error) + // messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData; + MessagesGetMessageEditData(ctx context.Context, in *TLMessagesGetMessageEditData, opts ...grpc.CallOption) (*Messages_MessageEditData, error) + // messages.editMessage#c000e4c8 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector geo_point:flags.13?InputGeoPoint = Updates; + MessagesEditMessage(ctx context.Context, in *TLMessagesEditMessage, opts ...grpc.CallOption) (*Updates, error) + // messages.editInlineBotMessage#adc3e828 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector geo_point:flags.13?InputGeoPoint = Bool; + MessagesEditInlineBotMessage(ctx context.Context, in *TLMessagesEditInlineBotMessage, opts ...grpc.CallOption) (*Bool, error) + // messages.getBotCallbackAnswer#810a9fec flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes = messages.BotCallbackAnswer; + MessagesGetBotCallbackAnswer(ctx context.Context, in *TLMessagesGetBotCallbackAnswer, opts ...grpc.CallOption) (*Messages_BotCallbackAnswer, error) + // messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool; + MessagesSetBotCallbackAnswer(ctx context.Context, in *TLMessagesSetBotCallbackAnswer, opts ...grpc.CallOption) (*Bool, error) + // messages.getPeerDialogs#e470bcfd peers:Vector = messages.PeerDialogs; + MessagesGetPeerDialogs(ctx context.Context, in *TLMessagesGetPeerDialogs, opts ...grpc.CallOption) (*Messages_PeerDialogs, error) + // messages.saveDraft#bc39e14b flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int peer:InputPeer message:string entities:flags.3?Vector = Bool; + MessagesSaveDraft(ctx context.Context, in *TLMessagesSaveDraft, opts ...grpc.CallOption) (*Bool, error) + // messages.getAllDrafts#6a3f8d65 = Updates; + MessagesGetAllDrafts(ctx context.Context, in *TLMessagesGetAllDrafts, opts ...grpc.CallOption) (*Updates, error) + // messages.getFeaturedStickers#2dacca4f hash:int = messages.FeaturedStickers; + MessagesGetFeaturedStickers(ctx context.Context, in *TLMessagesGetFeaturedStickers, opts ...grpc.CallOption) (*Messages_FeaturedStickers, error) + // messages.readFeaturedStickers#5b118126 id:Vector = Bool; + MessagesReadFeaturedStickers(ctx context.Context, in *TLMessagesReadFeaturedStickers, opts ...grpc.CallOption) (*Bool, error) + // messages.getRecentStickers#5ea192c9 flags:# attached:flags.0?true hash:int = messages.RecentStickers; + MessagesGetRecentStickers(ctx context.Context, in *TLMessagesGetRecentStickers, opts ...grpc.CallOption) (*Messages_RecentStickers, error) + // messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool; + MessagesSaveRecentSticker(ctx context.Context, in *TLMessagesSaveRecentSticker, opts ...grpc.CallOption) (*Bool, error) + // messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool; + MessagesClearRecentStickers(ctx context.Context, in *TLMessagesClearRecentStickers, opts ...grpc.CallOption) (*Bool, error) + // messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers; + MessagesGetArchivedStickers(ctx context.Context, in *TLMessagesGetArchivedStickers, opts ...grpc.CallOption) (*Messages_ArchivedStickers, error) + // messages.getMaskStickers#65b8c79f hash:int = messages.AllStickers; + MessagesGetMaskStickers(ctx context.Context, in *TLMessagesGetMaskStickers, opts ...grpc.CallOption) (*Messages_AllStickers, error) + // messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector; + MessagesGetAttachedStickers(ctx context.Context, in *TLMessagesGetAttachedStickers, opts ...grpc.CallOption) (*Vector_StickerSetCovered, error) + // messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates; + MessagesSetGameScore(ctx context.Context, in *TLMessagesSetGameScore, opts ...grpc.CallOption) (*Updates, error) + // messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool; + MessagesSetInlineGameScore(ctx context.Context, in *TLMessagesSetInlineGameScore, opts ...grpc.CallOption) (*Bool, error) + // messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores; + MessagesGetGameHighScores(ctx context.Context, in *TLMessagesGetGameHighScores, opts ...grpc.CallOption) (*Messages_HighScores, error) + // messages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores; + MessagesGetInlineGameHighScores(ctx context.Context, in *TLMessagesGetInlineGameHighScores, opts ...grpc.CallOption) (*Messages_HighScores, error) + // messages.getCommonChats#d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats; + MessagesGetCommonChats(ctx context.Context, in *TLMessagesGetCommonChats, opts ...grpc.CallOption) (*Messages_Chats, error) + // messages.getAllChats#eba80ff0 except_ids:Vector = messages.Chats; + MessagesGetAllChats(ctx context.Context, in *TLMessagesGetAllChats, opts ...grpc.CallOption) (*Messages_Chats, error) + // messages.getWebPage#32ca8f91 url:string hash:int = WebPage; + MessagesGetWebPage(ctx context.Context, in *TLMessagesGetWebPage, opts ...grpc.CallOption) (*WebPage, error) + // messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool; + MessagesToggleDialogPin(ctx context.Context, in *TLMessagesToggleDialogPin, opts ...grpc.CallOption) (*Bool, error) + // messages.reorderPinnedDialogs#5b51d63f flags:# force:flags.0?true order:Vector = Bool; + MessagesReorderPinnedDialogs(ctx context.Context, in *TLMessagesReorderPinnedDialogs, opts ...grpc.CallOption) (*Bool, error) + // messages.getPinnedDialogs#e254d64e = messages.PeerDialogs; + MessagesGetPinnedDialogs(ctx context.Context, in *TLMessagesGetPinnedDialogs, opts ...grpc.CallOption) (*Messages_PeerDialogs, error) + // messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; + MessagesSetBotShippingResults(ctx context.Context, in *TLMessagesSetBotShippingResults, opts ...grpc.CallOption) (*Bool, error) + // messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; + MessagesSetBotPrecheckoutResults(ctx context.Context, in *TLMessagesSetBotPrecheckoutResults, opts ...grpc.CallOption) (*Bool, error) + // messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia; + MessagesUploadMedia(ctx context.Context, in *TLMessagesUploadMedia, opts ...grpc.CallOption) (*MessageMedia, error) + // messages.sendScreenshotNotification#c97df020 peer:InputPeer reply_to_msg_id:int random_id:long = Updates; + MessagesSendScreenshotNotification(ctx context.Context, in *TLMessagesSendScreenshotNotification, opts ...grpc.CallOption) (*Updates, error) + // messages.getFavedStickers#21ce0b0e hash:int = messages.FavedStickers; + MessagesGetFavedStickers(ctx context.Context, in *TLMessagesGetFavedStickers, opts ...grpc.CallOption) (*Messages_FavedStickers, error) + // messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool; + MessagesFaveSticker(ctx context.Context, in *TLMessagesFaveSticker, opts ...grpc.CallOption) (*Bool, error) + // messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; + MessagesGetUnreadMentions(ctx context.Context, in *TLMessagesGetUnreadMentions, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.readMentions#f0189d3 peer:InputPeer = messages.AffectedHistory; + MessagesReadMentions(ctx context.Context, in *TLMessagesReadMentions, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) + // messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages; + MessagesGetRecentLocations(ctx context.Context, in *TLMessagesGetRecentLocations, opts ...grpc.CallOption) (*Messages_Messages, error) + // messages.sendMultiMedia#2095512f flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector = Updates; + MessagesSendMultiMedia(ctx context.Context, in *TLMessagesSendMultiMedia, opts ...grpc.CallOption) (*Updates, error) + // messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile; + MessagesUploadEncryptedFile(ctx context.Context, in *TLMessagesUploadEncryptedFile, opts ...grpc.CallOption) (*EncryptedFile, error) + // messages.searchStickerSets#c2b7d08b flags:# exclude_featured:flags.0?true q:string hash:int = messages.FoundStickerSets; + MessagesSearchStickerSets(ctx context.Context, in *TLMessagesSearchStickerSets, opts ...grpc.CallOption) (*Messages_FoundStickerSets, error) + // messages.getSplitRanges#1cff7e08 = Vector; + MessagesGetSplitRanges(ctx context.Context, in *TLMessagesGetSplitRanges, opts ...grpc.CallOption) (*Vector_MessageRange, error) + // messages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogPeer = Bool; + MessagesMarkDialogUnread(ctx context.Context, in *TLMessagesMarkDialogUnread, opts ...grpc.CallOption) (*Bool, error) + // messages.getDialogUnreadMarks#22e24e22 = Vector; + MessagesGetDialogUnreadMarks(ctx context.Context, in *TLMessagesGetDialogUnreadMarks, opts ...grpc.CallOption) (*Vector_DialogPeer, error) + // messages.clearAllDrafts#7e58ee9c = Bool; + MessagesClearAllDrafts(ctx context.Context, in *TLMessagesClearAllDrafts, opts ...grpc.CallOption) (*Bool, error) } -func _RPCLangpack_LangpackGetLanguagesLayer70_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLLangpackGetLanguagesLayer70) - if err := dec(in); err != nil { +type rPCMessagesClient struct { + cc *grpc.ClientConn +} + +func NewRPCMessagesClient(cc *grpc.ClientConn) RPCMessagesClient { + return &rPCMessagesClient{cc} +} + +func (c *rPCMessagesClient) MessagesReadHistoryLayer2(ctx context.Context, in *TLMessagesReadHistoryLayer2, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) { + out := new(Messages_AffectedHistory) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readHistoryLayer2", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCLangpackServer).LangpackGetLanguagesLayer70(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCLangpack/LangpackGetLanguagesLayer70", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCLangpackServer).LangpackGetLanguagesLayer70(ctx, req.(*TLLangpackGetLanguagesLayer70)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCLangpack_LangpackGetLangPackLayer71_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLLangpackGetLangPackLayer71) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesGetHistoryLayer51(ctx context.Context, in *TLMessagesGetHistoryLayer51, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getHistoryLayer51", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCLangpackServer).LangpackGetLangPackLayer71(ctx, in) + return out, nil +} + +func (c *rPCMessagesClient) MessagesGetDialogsLayer62(ctx context.Context, in *TLMessagesGetDialogsLayer62, opts ...grpc.CallOption) (*Messages_Dialogs, error) { + out := new(Messages_Dialogs) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDialogsLayer62", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCLangpack/LangpackGetLangPackLayer71", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCLangpackServer).LangpackGetLangPackLayer71(ctx, req.(*TLLangpackGetLangPackLayer71)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCLangpack_LangpackGetLangPack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLLangpackGetLangPack) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesSearchLayer68(ctx context.Context, in *TLMessagesSearchLayer68, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_searchLayer68", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCLangpackServer).LangpackGetLangPack(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCLangpack/LangpackGetLangPack", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCLangpackServer).LangpackGetLangPack(ctx, req.(*TLLangpackGetLangPack)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCLangpack_LangpackGetStrings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLLangpackGetStrings) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesGetMessagesLayer71(ctx context.Context, in *TLMessagesGetMessagesLayer71, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMessagesLayer71", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCLangpackServer).LangpackGetStrings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCLangpack/LangpackGetStrings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCLangpackServer).LangpackGetStrings(ctx, req.(*TLLangpackGetStrings)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCLangpack_LangpackGetDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLLangpackGetDifference) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesGetRecentLocationsLayer72(ctx context.Context, in *TLMessagesGetRecentLocationsLayer72, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getRecentLocationsLayer72", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCLangpackServer).LangpackGetDifference(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCLangpack/LangpackGetDifference", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCLangpackServer).LangpackGetDifference(ctx, req.(*TLLangpackGetDifference)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCLangpack_LangpackGetLanguages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLLangpackGetLanguages) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesGetMessages(ctx context.Context, in *TLMessagesGetMessages, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMessages", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCLangpackServer).LangpackGetLanguages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCLangpack/LangpackGetLanguages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCLangpackServer).LangpackGetLanguages(ctx, req.(*TLLangpackGetLanguages)) - } - return interceptor(ctx, in, info, handler) -} - -var _RPCLangpack_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCLangpack", - HandlerType: (*RPCLangpackServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "langpack_getLanguagesLayer70", - Handler: _RPCLangpack_LangpackGetLanguagesLayer70_Handler, - }, - { - MethodName: "langpack_getLangPackLayer71", - Handler: _RPCLangpack_LangpackGetLangPackLayer71_Handler, - }, - { - MethodName: "langpack_getLangPack", - Handler: _RPCLangpack_LangpackGetLangPack_Handler, - }, - { - MethodName: "langpack_getStrings", - Handler: _RPCLangpack_LangpackGetStrings_Handler, - }, - { - MethodName: "langpack_getDifference", - Handler: _RPCLangpack_LangpackGetDifference_Handler, - }, - { - MethodName: "langpack_getLanguages", - Handler: _RPCLangpack_LangpackGetLanguages_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "schema.tl.sync_service.proto", -} - -// RPCAuthClient is the client API for RPCAuth service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCAuthClient interface { - // auth.sendCode#ccfd70cf flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string lang_code:string = auth.SentCode; - AuthSendCodeLayer51(ctx context.Context, in *TLAuthSendCodeLayer51, opts ...grpc.CallOption) (*Auth_SentCode, error) - // auth.sendCode#86aef0ec flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string = auth.SentCode; - AuthSendCode(ctx context.Context, in *TLAuthSendCode, opts ...grpc.CallOption) (*Auth_SentCode, error) - // auth.signUp#1b067634 phone_number:string phone_code_hash:string phone_code:string first_name:string last_name:string = auth.Authorization; - AuthSignUp(ctx context.Context, in *TLAuthSignUp, opts ...grpc.CallOption) (*Auth_Authorization, error) - // auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization; - AuthSignIn(ctx context.Context, in *TLAuthSignIn, opts ...grpc.CallOption) (*Auth_Authorization, error) - // auth.logOut#5717da40 = Bool; - AuthLogOut(ctx context.Context, in *TLAuthLogOut, opts ...grpc.CallOption) (*Bool, error) - // auth.resetAuthorizations#9fab0d1a = Bool; - AuthResetAuthorizations(ctx context.Context, in *TLAuthResetAuthorizations, opts ...grpc.CallOption) (*Bool, error) - // auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization; - AuthExportAuthorization(ctx context.Context, in *TLAuthExportAuthorization, opts ...grpc.CallOption) (*Auth_ExportedAuthorization, error) - // auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization; - AuthImportAuthorization(ctx context.Context, in *TLAuthImportAuthorization, opts ...grpc.CallOption) (*Auth_Authorization, error) - // auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool; - AuthBindTempAuthKey(ctx context.Context, in *TLAuthBindTempAuthKey, opts ...grpc.CallOption) (*Bool, error) - // auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization; - AuthImportBotAuthorization(ctx context.Context, in *TLAuthImportBotAuthorization, opts ...grpc.CallOption) (*Auth_Authorization, error) - // auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization; - AuthCheckPassword(ctx context.Context, in *TLAuthCheckPassword, opts ...grpc.CallOption) (*Auth_Authorization, error) - // auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; - AuthRequestPasswordRecovery(ctx context.Context, in *TLAuthRequestPasswordRecovery, opts ...grpc.CallOption) (*Auth_PasswordRecovery, error) - // auth.recoverPassword#4ea56e92 code:string = auth.Authorization; - AuthRecoverPassword(ctx context.Context, in *TLAuthRecoverPassword, opts ...grpc.CallOption) (*Auth_Authorization, error) - // auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode; - AuthResendCode(ctx context.Context, in *TLAuthResendCode, opts ...grpc.CallOption) (*Auth_SentCode, error) - // auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool; - AuthCancelCode(ctx context.Context, in *TLAuthCancelCode, opts ...grpc.CallOption) (*Bool, error) - // auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool; - AuthDropTempAuthKeys(ctx context.Context, in *TLAuthDropTempAuthKeys, opts ...grpc.CallOption) (*Bool, error) -} - -type rPCAuthClient struct { - cc *grpc.ClientConn -} - -func NewRPCAuthClient(cc *grpc.ClientConn) RPCAuthClient { - return &rPCAuthClient{cc} + return out, nil } -func (c *rPCAuthClient) AuthSendCodeLayer51(ctx context.Context, in *TLAuthSendCodeLayer51, opts ...grpc.CallOption) (*Auth_SentCode, error) { - out := new(Auth_SentCode) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_sendCodeLayer51", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetDialogs(ctx context.Context, in *TLMessagesGetDialogs, opts ...grpc.CallOption) (*Messages_Dialogs, error) { + out := new(Messages_Dialogs) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDialogs", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthSendCode(ctx context.Context, in *TLAuthSendCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { - out := new(Auth_SentCode) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_sendCode", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetHistory(ctx context.Context, in *TLMessagesGetHistory, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getHistory", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthSignUp(ctx context.Context, in *TLAuthSignUp, opts ...grpc.CallOption) (*Auth_Authorization, error) { - out := new(Auth_Authorization) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_signUp", in, out, opts...) +func (c *rPCMessagesClient) MessagesSearch(ctx context.Context, in *TLMessagesSearch, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_search", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthSignIn(ctx context.Context, in *TLAuthSignIn, opts ...grpc.CallOption) (*Auth_Authorization, error) { - out := new(Auth_Authorization) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_signIn", in, out, opts...) +func (c *rPCMessagesClient) MessagesReadHistory(ctx context.Context, in *TLMessagesReadHistory, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) { + out := new(Messages_AffectedMessages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readHistory", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthLogOut(ctx context.Context, in *TLAuthLogOut, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_logOut", in, out, opts...) +func (c *rPCMessagesClient) MessagesDeleteHistory(ctx context.Context, in *TLMessagesDeleteHistory, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) { + out := new(Messages_AffectedHistory) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_deleteHistory", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthResetAuthorizations(ctx context.Context, in *TLAuthResetAuthorizations, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_resetAuthorizations", in, out, opts...) +func (c *rPCMessagesClient) MessagesDeleteMessages(ctx context.Context, in *TLMessagesDeleteMessages, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) { + out := new(Messages_AffectedMessages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_deleteMessages", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthExportAuthorization(ctx context.Context, in *TLAuthExportAuthorization, opts ...grpc.CallOption) (*Auth_ExportedAuthorization, error) { - out := new(Auth_ExportedAuthorization) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_exportAuthorization", in, out, opts...) +func (c *rPCMessagesClient) MessagesReceivedMessages(ctx context.Context, in *TLMessagesReceivedMessages, opts ...grpc.CallOption) (*Vector_ReceivedNotifyMessage, error) { + out := new(Vector_ReceivedNotifyMessage) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_receivedMessages", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthImportAuthorization(ctx context.Context, in *TLAuthImportAuthorization, opts ...grpc.CallOption) (*Auth_Authorization, error) { - out := new(Auth_Authorization) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_importAuthorization", in, out, opts...) +func (c *rPCMessagesClient) MessagesSetTyping(ctx context.Context, in *TLMessagesSetTyping, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setTyping", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthBindTempAuthKey(ctx context.Context, in *TLAuthBindTempAuthKey, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_bindTempAuthKey", in, out, opts...) +func (c *rPCMessagesClient) MessagesSendMessage(ctx context.Context, in *TLMessagesSendMessage, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendMessage", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthImportBotAuthorization(ctx context.Context, in *TLAuthImportBotAuthorization, opts ...grpc.CallOption) (*Auth_Authorization, error) { - out := new(Auth_Authorization) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_importBotAuthorization", in, out, opts...) +func (c *rPCMessagesClient) MessagesSendMedia(ctx context.Context, in *TLMessagesSendMedia, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendMedia", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthCheckPassword(ctx context.Context, in *TLAuthCheckPassword, opts ...grpc.CallOption) (*Auth_Authorization, error) { - out := new(Auth_Authorization) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_checkPassword", in, out, opts...) +func (c *rPCMessagesClient) MessagesForwardMessages(ctx context.Context, in *TLMessagesForwardMessages, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_forwardMessages", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthRequestPasswordRecovery(ctx context.Context, in *TLAuthRequestPasswordRecovery, opts ...grpc.CallOption) (*Auth_PasswordRecovery, error) { - out := new(Auth_PasswordRecovery) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_requestPasswordRecovery", in, out, opts...) +func (c *rPCMessagesClient) MessagesReportSpam(ctx context.Context, in *TLMessagesReportSpam, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_reportSpam", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthRecoverPassword(ctx context.Context, in *TLAuthRecoverPassword, opts ...grpc.CallOption) (*Auth_Authorization, error) { - out := new(Auth_Authorization) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_recoverPassword", in, out, opts...) +func (c *rPCMessagesClient) MessagesHideReportSpam(ctx context.Context, in *TLMessagesHideReportSpam, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_hideReportSpam", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthResendCode(ctx context.Context, in *TLAuthResendCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { - out := new(Auth_SentCode) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_resendCode", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetPeerSettings(ctx context.Context, in *TLMessagesGetPeerSettings, opts ...grpc.CallOption) (*PeerSettings, error) { + out := new(PeerSettings) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getPeerSettings", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthCancelCode(ctx context.Context, in *TLAuthCancelCode, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesReport(ctx context.Context, in *TLMessagesReport, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_cancelCode", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_report", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAuthClient) AuthDropTempAuthKeys(ctx context.Context, in *TLAuthDropTempAuthKeys, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_dropTempAuthKeys", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetChats(ctx context.Context, in *TLMessagesGetChats, opts ...grpc.CallOption) (*Messages_Chats, error) { + out := new(Messages_Chats) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getChats", in, out, opts...) if err != nil { return nil, err } return out, nil } -// RPCAuthServer is the server API for RPCAuth service. -type RPCAuthServer interface { - // auth.sendCode#ccfd70cf flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string lang_code:string = auth.SentCode; - AuthSendCodeLayer51(context.Context, *TLAuthSendCodeLayer51) (*Auth_SentCode, error) - // auth.sendCode#86aef0ec flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string = auth.SentCode; - AuthSendCode(context.Context, *TLAuthSendCode) (*Auth_SentCode, error) - // auth.signUp#1b067634 phone_number:string phone_code_hash:string phone_code:string first_name:string last_name:string = auth.Authorization; - AuthSignUp(context.Context, *TLAuthSignUp) (*Auth_Authorization, error) - // auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization; - AuthSignIn(context.Context, *TLAuthSignIn) (*Auth_Authorization, error) - // auth.logOut#5717da40 = Bool; - AuthLogOut(context.Context, *TLAuthLogOut) (*Bool, error) - // auth.resetAuthorizations#9fab0d1a = Bool; - AuthResetAuthorizations(context.Context, *TLAuthResetAuthorizations) (*Bool, error) - // auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization; - AuthExportAuthorization(context.Context, *TLAuthExportAuthorization) (*Auth_ExportedAuthorization, error) - // auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization; - AuthImportAuthorization(context.Context, *TLAuthImportAuthorization) (*Auth_Authorization, error) - // auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool; - AuthBindTempAuthKey(context.Context, *TLAuthBindTempAuthKey) (*Bool, error) - // auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization; - AuthImportBotAuthorization(context.Context, *TLAuthImportBotAuthorization) (*Auth_Authorization, error) - // auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization; - AuthCheckPassword(context.Context, *TLAuthCheckPassword) (*Auth_Authorization, error) - // auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; - AuthRequestPasswordRecovery(context.Context, *TLAuthRequestPasswordRecovery) (*Auth_PasswordRecovery, error) - // auth.recoverPassword#4ea56e92 code:string = auth.Authorization; - AuthRecoverPassword(context.Context, *TLAuthRecoverPassword) (*Auth_Authorization, error) - // auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode; - AuthResendCode(context.Context, *TLAuthResendCode) (*Auth_SentCode, error) - // auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool; - AuthCancelCode(context.Context, *TLAuthCancelCode) (*Bool, error) - // auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool; - AuthDropTempAuthKeys(context.Context, *TLAuthDropTempAuthKeys) (*Bool, error) +func (c *rPCMessagesClient) MessagesGetFullChat(ctx context.Context, in *TLMessagesGetFullChat, opts ...grpc.CallOption) (*Messages_ChatFull, error) { + out := new(Messages_ChatFull) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getFullChat", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func RegisterRPCAuthServer(s *grpc.Server, srv RPCAuthServer) { - s.RegisterService(&_RPCAuth_serviceDesc, srv) +func (c *rPCMessagesClient) MessagesEditChatTitle(ctx context.Context, in *TLMessagesEditChatTitle, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editChatTitle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func _RPCAuth_AuthSendCodeLayer51_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthSendCodeLayer51) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesEditChatPhoto(ctx context.Context, in *TLMessagesEditChatPhoto, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editChatPhoto", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthSendCodeLayer51(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthSendCodeLayer51", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthSendCodeLayer51(ctx, req.(*TLAuthSendCodeLayer51)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthSendCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthSendCode) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesAddChatUser(ctx context.Context, in *TLMessagesAddChatUser, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_addChatUser", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthSendCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthSendCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthSendCode(ctx, req.(*TLAuthSendCode)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthSignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthSignUp) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesDeleteChatUser(ctx context.Context, in *TLMessagesDeleteChatUser, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_deleteChatUser", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthSignUp(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthSignUp", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthSignUp(ctx, req.(*TLAuthSignUp)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthSignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthSignIn) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesCreateChat(ctx context.Context, in *TLMessagesCreateChat, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_createChat", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthSignIn(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthSignIn", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthSignIn(ctx, req.(*TLAuthSignIn)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthLogOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthLogOut) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesGetDhConfig(ctx context.Context, in *TLMessagesGetDhConfig, opts ...grpc.CallOption) (*Messages_DhConfig, error) { + out := new(Messages_DhConfig) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDhConfig", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthLogOut(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthLogOut", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthLogOut(ctx, req.(*TLAuthLogOut)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthResetAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthResetAuthorizations) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesRequestEncryption(ctx context.Context, in *TLMessagesRequestEncryption, opts ...grpc.CallOption) (*EncryptedChat, error) { + out := new(EncryptedChat) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_requestEncryption", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthResetAuthorizations(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthResetAuthorizations", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthResetAuthorizations(ctx, req.(*TLAuthResetAuthorizations)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthExportAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthExportAuthorization) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesAcceptEncryption(ctx context.Context, in *TLMessagesAcceptEncryption, opts ...grpc.CallOption) (*EncryptedChat, error) { + out := new(EncryptedChat) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_acceptEncryption", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthExportAuthorization(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthExportAuthorization", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthExportAuthorization(ctx, req.(*TLAuthExportAuthorization)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthImportAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthImportAuthorization) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesDiscardEncryption(ctx context.Context, in *TLMessagesDiscardEncryption, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_discardEncryption", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthImportAuthorization(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthImportAuthorization", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthImportAuthorization(ctx, req.(*TLAuthImportAuthorization)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthBindTempAuthKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthBindTempAuthKey) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesSetEncryptedTyping(ctx context.Context, in *TLMessagesSetEncryptedTyping, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setEncryptedTyping", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthBindTempAuthKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthBindTempAuthKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthBindTempAuthKey(ctx, req.(*TLAuthBindTempAuthKey)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthImportBotAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthImportBotAuthorization) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesReadEncryptedHistory(ctx context.Context, in *TLMessagesReadEncryptedHistory, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readEncryptedHistory", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthImportBotAuthorization(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthImportBotAuthorization", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthImportBotAuthorization(ctx, req.(*TLAuthImportBotAuthorization)) + return out, nil +} + +func (c *rPCMessagesClient) MessagesSendEncrypted(ctx context.Context, in *TLMessagesSendEncrypted, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) { + out := new(Messages_SentEncryptedMessage) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendEncrypted", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthCheckPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthCheckPassword) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesSendEncryptedFile(ctx context.Context, in *TLMessagesSendEncryptedFile, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) { + out := new(Messages_SentEncryptedMessage) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendEncryptedFile", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthCheckPassword(ctx, in) + return out, nil +} + +func (c *rPCMessagesClient) MessagesSendEncryptedService(ctx context.Context, in *TLMessagesSendEncryptedService, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) { + out := new(Messages_SentEncryptedMessage) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendEncryptedService", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthCheckPassword", + return out, nil +} + +func (c *rPCMessagesClient) MessagesReceivedQueue(ctx context.Context, in *TLMessagesReceivedQueue, opts ...grpc.CallOption) (*VectorLong, error) { + out := new(VectorLong) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_receivedQueue", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthCheckPassword(ctx, req.(*TLAuthCheckPassword)) + return out, nil +} + +func (c *rPCMessagesClient) MessagesReportEncryptedSpam(ctx context.Context, in *TLMessagesReportEncryptedSpam, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_reportEncryptedSpam", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthRequestPasswordRecovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthRequestPasswordRecovery) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesReadMessageContents(ctx context.Context, in *TLMessagesReadMessageContents, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) { + out := new(Messages_AffectedMessages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readMessageContents", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthRequestPasswordRecovery(ctx, in) + return out, nil +} + +func (c *rPCMessagesClient) MessagesGetStickers(ctx context.Context, in *TLMessagesGetStickers, opts ...grpc.CallOption) (*Messages_Stickers, error) { + out := new(Messages_Stickers) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getStickers", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthRequestPasswordRecovery", + return out, nil +} + +func (c *rPCMessagesClient) MessagesGetAllStickers(ctx context.Context, in *TLMessagesGetAllStickers, opts ...grpc.CallOption) (*Messages_AllStickers, error) { + out := new(Messages_AllStickers) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getAllStickers", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthRequestPasswordRecovery(ctx, req.(*TLAuthRequestPasswordRecovery)) + return out, nil +} + +func (c *rPCMessagesClient) MessagesGetWebPagePreview(ctx context.Context, in *TLMessagesGetWebPagePreview, opts ...grpc.CallOption) (*MessageMedia, error) { + out := new(MessageMedia) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getWebPagePreview", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthRecoverPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthRecoverPassword) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesExportChatInvite(ctx context.Context, in *TLMessagesExportChatInvite, opts ...grpc.CallOption) (*ExportedChatInvite, error) { + out := new(ExportedChatInvite) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_exportChatInvite", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthRecoverPassword(ctx, in) + return out, nil +} + +func (c *rPCMessagesClient) MessagesCheckChatInvite(ctx context.Context, in *TLMessagesCheckChatInvite, opts ...grpc.CallOption) (*ChatInvite, error) { + out := new(ChatInvite) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_checkChatInvite", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthRecoverPassword", + return out, nil +} + +func (c *rPCMessagesClient) MessagesImportChatInvite(ctx context.Context, in *TLMessagesImportChatInvite, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_importChatInvite", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthRecoverPassword(ctx, req.(*TLAuthRecoverPassword)) + return out, nil +} + +func (c *rPCMessagesClient) MessagesGetStickerSet(ctx context.Context, in *TLMessagesGetStickerSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) { + out := new(Messages_StickerSet) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getStickerSet", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthResendCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthResendCode) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesInstallStickerSet(ctx context.Context, in *TLMessagesInstallStickerSet, opts ...grpc.CallOption) (*Messages_StickerSetInstallResult, error) { + out := new(Messages_StickerSetInstallResult) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_installStickerSet", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthResendCode(ctx, in) + return out, nil +} + +func (c *rPCMessagesClient) MessagesUninstallStickerSet(ctx context.Context, in *TLMessagesUninstallStickerSet, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_uninstallStickerSet", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthResendCode", + return out, nil +} + +func (c *rPCMessagesClient) MessagesStartBot(ctx context.Context, in *TLMessagesStartBot, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_startBot", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthResendCode(ctx, req.(*TLAuthResendCode)) + return out, nil +} + +func (c *rPCMessagesClient) MessagesGetMessagesViews(ctx context.Context, in *TLMessagesGetMessagesViews, opts ...grpc.CallOption) (*VectorInt, error) { + out := new(VectorInt) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMessagesViews", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthCancelCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthCancelCode) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesToggleChatAdmins(ctx context.Context, in *TLMessagesToggleChatAdmins, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_toggleChatAdmins", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthCancelCode(ctx, in) + return out, nil +} + +func (c *rPCMessagesClient) MessagesEditChatAdmin(ctx context.Context, in *TLMessagesEditChatAdmin, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editChatAdmin", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthCancelCode", + return out, nil +} + +func (c *rPCMessagesClient) MessagesMigrateChat(ctx context.Context, in *TLMessagesMigrateChat, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_migrateChat", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthCancelCode(ctx, req.(*TLAuthCancelCode)) + return out, nil +} + +func (c *rPCMessagesClient) MessagesSearchGlobal(ctx context.Context, in *TLMessagesSearchGlobal, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_searchGlobal", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAuth_AuthDropTempAuthKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAuthDropTempAuthKeys) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesReorderStickerSets(ctx context.Context, in *TLMessagesReorderStickerSets, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_reorderStickerSets", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAuthServer).AuthDropTempAuthKeys(ctx, in) + return out, nil +} + +func (c *rPCMessagesClient) MessagesGetDocumentByHash(ctx context.Context, in *TLMessagesGetDocumentByHash, opts ...grpc.CallOption) (*Document, error) { + out := new(Document) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDocumentByHash", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAuth/AuthDropTempAuthKeys", + return out, nil +} + +func (c *rPCMessagesClient) MessagesSearchGifs(ctx context.Context, in *TLMessagesSearchGifs, opts ...grpc.CallOption) (*Messages_FoundGifs, error) { + out := new(Messages_FoundGifs) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_searchGifs", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAuthServer).AuthDropTempAuthKeys(ctx, req.(*TLAuthDropTempAuthKeys)) + return out, nil +} + +func (c *rPCMessagesClient) MessagesGetSavedGifs(ctx context.Context, in *TLMessagesGetSavedGifs, opts ...grpc.CallOption) (*Messages_SavedGifs, error) { + out := new(Messages_SavedGifs) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getSavedGifs", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -var _RPCAuth_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCAuth", - HandlerType: (*RPCAuthServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "auth_sendCodeLayer51", - Handler: _RPCAuth_AuthSendCodeLayer51_Handler, - }, - { - MethodName: "auth_sendCode", - Handler: _RPCAuth_AuthSendCode_Handler, - }, - { - MethodName: "auth_signUp", - Handler: _RPCAuth_AuthSignUp_Handler, - }, - { - MethodName: "auth_signIn", - Handler: _RPCAuth_AuthSignIn_Handler, - }, - { - MethodName: "auth_logOut", - Handler: _RPCAuth_AuthLogOut_Handler, - }, - { - MethodName: "auth_resetAuthorizations", - Handler: _RPCAuth_AuthResetAuthorizations_Handler, - }, - { - MethodName: "auth_exportAuthorization", - Handler: _RPCAuth_AuthExportAuthorization_Handler, - }, - { - MethodName: "auth_importAuthorization", - Handler: _RPCAuth_AuthImportAuthorization_Handler, - }, - { - MethodName: "auth_bindTempAuthKey", - Handler: _RPCAuth_AuthBindTempAuthKey_Handler, - }, - { - MethodName: "auth_importBotAuthorization", - Handler: _RPCAuth_AuthImportBotAuthorization_Handler, - }, - { - MethodName: "auth_checkPassword", - Handler: _RPCAuth_AuthCheckPassword_Handler, - }, - { - MethodName: "auth_requestPasswordRecovery", - Handler: _RPCAuth_AuthRequestPasswordRecovery_Handler, - }, - { - MethodName: "auth_recoverPassword", - Handler: _RPCAuth_AuthRecoverPassword_Handler, - }, - { - MethodName: "auth_resendCode", - Handler: _RPCAuth_AuthResendCode_Handler, - }, - { - MethodName: "auth_cancelCode", - Handler: _RPCAuth_AuthCancelCode_Handler, - }, - { - MethodName: "auth_dropTempAuthKeys", - Handler: _RPCAuth_AuthDropTempAuthKeys_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "schema.tl.sync_service.proto", -} - -// RPCAccountClient is the client API for RPCAccount service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCAccountClient interface { - // account.registerDevice#637ea878 token_type:int token:string = Bool; - AccountRegisterDeviceLayer71(ctx context.Context, in *TLAccountRegisterDeviceLayer71, opts ...grpc.CallOption) (*Bool, error) - // account.unregisterDevice#65c55b40 token_type:int token:string = Bool; - AccountUnregisterDeviceLayer71(ctx context.Context, in *TLAccountUnregisterDeviceLayer71, opts ...grpc.CallOption) (*Bool, error) - // account.registerDevice#5cbea590 token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector = Bool; - AccountRegisterDevice(ctx context.Context, in *TLAccountRegisterDevice, opts ...grpc.CallOption) (*Bool, error) - // account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector = Bool; - AccountUnregisterDevice(ctx context.Context, in *TLAccountUnregisterDevice, opts ...grpc.CallOption) (*Bool, error) - // account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool; - AccountUpdateNotifySettings(ctx context.Context, in *TLAccountUpdateNotifySettings, opts ...grpc.CallOption) (*Bool, error) - // account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings; - AccountGetNotifySettings(ctx context.Context, in *TLAccountGetNotifySettings, opts ...grpc.CallOption) (*PeerNotifySettings, error) - // account.resetNotifySettings#db7e1747 = Bool; - AccountResetNotifySettings(ctx context.Context, in *TLAccountResetNotifySettings, opts ...grpc.CallOption) (*Bool, error) - // account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User; - AccountUpdateProfile(ctx context.Context, in *TLAccountUpdateProfile, opts ...grpc.CallOption) (*User, error) - // account.updateStatus#6628562c offline:Bool = Bool; - AccountUpdateStatus(ctx context.Context, in *TLAccountUpdateStatus, opts ...grpc.CallOption) (*Bool, error) - // account.getWallPapers#c04cfac2 = Vector; - AccountGetWallPapers(ctx context.Context, in *TLAccountGetWallPapers, opts ...grpc.CallOption) (*Vector_WallPaper, error) - // account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool; - AccountReportPeer(ctx context.Context, in *TLAccountReportPeer, opts ...grpc.CallOption) (*Bool, error) - // account.checkUsername#2714d86c username:string = Bool; - AccountCheckUsername(ctx context.Context, in *TLAccountCheckUsername, opts ...grpc.CallOption) (*Bool, error) - // account.updateUsername#3e0bdd7c username:string = User; - AccountUpdateUsername(ctx context.Context, in *TLAccountUpdateUsername, opts ...grpc.CallOption) (*User, error) - // account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules; - AccountGetPrivacy(ctx context.Context, in *TLAccountGetPrivacy, opts ...grpc.CallOption) (*Account_PrivacyRules, error) - // account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector = account.PrivacyRules; - AccountSetPrivacy(ctx context.Context, in *TLAccountSetPrivacy, opts ...grpc.CallOption) (*Account_PrivacyRules, error) - // account.deleteAccount#418d4e0b reason:string = Bool; - AccountDeleteAccount(ctx context.Context, in *TLAccountDeleteAccount, opts ...grpc.CallOption) (*Bool, error) - // account.getAccountTTL#8fc711d = AccountDaysTTL; - AccountGetAccountTTL(ctx context.Context, in *TLAccountGetAccountTTL, opts ...grpc.CallOption) (*AccountDaysTTL, error) - // account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool; - AccountSetAccountTTL(ctx context.Context, in *TLAccountSetAccountTTL, opts ...grpc.CallOption) (*Bool, error) - // account.sendChangePhoneCode#8e57deb flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; - AccountSendChangePhoneCode(ctx context.Context, in *TLAccountSendChangePhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) - // account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User; - AccountChangePhone(ctx context.Context, in *TLAccountChangePhone, opts ...grpc.CallOption) (*User, error) - // account.updateDeviceLocked#38df3532 period:int = Bool; - AccountUpdateDeviceLocked(ctx context.Context, in *TLAccountUpdateDeviceLocked, opts ...grpc.CallOption) (*Bool, error) - // account.getAuthorizations#e320c158 = account.Authorizations; - AccountGetAuthorizations(ctx context.Context, in *TLAccountGetAuthorizations, opts ...grpc.CallOption) (*Account_Authorizations, error) - // account.resetAuthorization#df77f3bc hash:long = Bool; - AccountResetAuthorization(ctx context.Context, in *TLAccountResetAuthorization, opts ...grpc.CallOption) (*Bool, error) - // account.getPassword#548a30f5 = account.Password; - AccountGetPassword(ctx context.Context, in *TLAccountGetPassword, opts ...grpc.CallOption) (*Account_Password, error) - // account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings; - AccountGetPasswordSettings(ctx context.Context, in *TLAccountGetPasswordSettings, opts ...grpc.CallOption) (*Account_PasswordSettings, error) - // account.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool; - AccountUpdatePasswordSettings(ctx context.Context, in *TLAccountUpdatePasswordSettings, opts ...grpc.CallOption) (*Bool, error) - // account.sendConfirmPhoneCode#1516d7bd flags:# allow_flashcall:flags.0?true hash:string current_number:flags.0?Bool = auth.SentCode; - AccountSendConfirmPhoneCode(ctx context.Context, in *TLAccountSendConfirmPhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) - // account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool; - AccountConfirmPhone(ctx context.Context, in *TLAccountConfirmPhone, opts ...grpc.CallOption) (*Bool, error) - // account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword; - AccountGetTmpPassword(ctx context.Context, in *TLAccountGetTmpPassword, opts ...grpc.CallOption) (*Account_TmpPassword, error) - // account.getWebAuthorizations#182e6d6f = account.WebAuthorizations; - AccountGetWebAuthorizations(ctx context.Context, in *TLAccountGetWebAuthorizations, opts ...grpc.CallOption) (*Account_WebAuthorizations, error) - // account.resetWebAuthorization#2d01b9ef hash:long = Bool; - AccountResetWebAuthorization(ctx context.Context, in *TLAccountResetWebAuthorization, opts ...grpc.CallOption) (*Bool, error) - // account.resetWebAuthorizations#682d2594 = Bool; - AccountResetWebAuthorizations(ctx context.Context, in *TLAccountResetWebAuthorizations, opts ...grpc.CallOption) (*Bool, error) - // account.getAllSecureValues#b288bc7d = Vector; - AccountGetAllSecureValues(ctx context.Context, in *TLAccountGetAllSecureValues, opts ...grpc.CallOption) (*Vector_SecureValue, error) - // account.getSecureValue#73665bc2 types:Vector = Vector; - AccountGetSecureValue(ctx context.Context, in *TLAccountGetSecureValue, opts ...grpc.CallOption) (*Vector_SecureValue, error) - // account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue; - AccountSaveSecureValue(ctx context.Context, in *TLAccountSaveSecureValue, opts ...grpc.CallOption) (*SecureValue, error) - // account.deleteSecureValue#b880bc4b types:Vector = Bool; - AccountDeleteSecureValue(ctx context.Context, in *TLAccountDeleteSecureValue, opts ...grpc.CallOption) (*Bool, error) - // account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm; - AccountGetAuthorizationForm(ctx context.Context, in *TLAccountGetAuthorizationForm, opts ...grpc.CallOption) (*Account_AuthorizationForm, error) - // account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector credentials:SecureCredentialsEncrypted = Bool; - AccountAcceptAuthorization(ctx context.Context, in *TLAccountAcceptAuthorization, opts ...grpc.CallOption) (*Bool, error) - // account.sendVerifyPhoneCode#823380b4 flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; - AccountSendVerifyPhoneCode(ctx context.Context, in *TLAccountSendVerifyPhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) - // account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool; - AccountVerifyPhone(ctx context.Context, in *TLAccountVerifyPhone, opts ...grpc.CallOption) (*Bool, error) - // account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode; - AccountSendVerifyEmailCode(ctx context.Context, in *TLAccountSendVerifyEmailCode, opts ...grpc.CallOption) (*Account_SentEmailCode, error) - // account.verifyEmail#ecba39db email:string code:string = Bool; - AccountVerifyEmail(ctx context.Context, in *TLAccountVerifyEmail, opts ...grpc.CallOption) (*Bool, error) - // account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout; - AccountInitTakeoutSession(ctx context.Context, in *TLAccountInitTakeoutSession, opts ...grpc.CallOption) (*Account_Takeout, error) - // account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool; - AccountFinishTakeoutSession(ctx context.Context, in *TLAccountFinishTakeoutSession, opts ...grpc.CallOption) (*Bool, error) -} - -type rPCAccountClient struct { - cc *grpc.ClientConn -} - -func NewRPCAccountClient(cc *grpc.ClientConn) RPCAccountClient { - return &rPCAccountClient{cc} -} - -func (c *rPCAccountClient) AccountRegisterDeviceLayer71(ctx context.Context, in *TLAccountRegisterDeviceLayer71, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesSaveGif(ctx context.Context, in *TLMessagesSaveGif, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_registerDeviceLayer71", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_saveGif", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountUnregisterDeviceLayer71(ctx context.Context, in *TLAccountUnregisterDeviceLayer71, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_unregisterDeviceLayer71", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetInlineBotResults(ctx context.Context, in *TLMessagesGetInlineBotResults, opts ...grpc.CallOption) (*Messages_BotResults, error) { + out := new(Messages_BotResults) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getInlineBotResults", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountRegisterDevice(ctx context.Context, in *TLAccountRegisterDevice, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesSetInlineBotResults(ctx context.Context, in *TLMessagesSetInlineBotResults, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_registerDevice", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setInlineBotResults", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountUnregisterDevice(ctx context.Context, in *TLAccountUnregisterDevice, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_unregisterDevice", in, out, opts...) +func (c *rPCMessagesClient) MessagesSendInlineBotResult(ctx context.Context, in *TLMessagesSendInlineBotResult, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendInlineBotResult", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountUpdateNotifySettings(ctx context.Context, in *TLAccountUpdateNotifySettings, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateNotifySettings", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetMessageEditData(ctx context.Context, in *TLMessagesGetMessageEditData, opts ...grpc.CallOption) (*Messages_MessageEditData, error) { + out := new(Messages_MessageEditData) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMessageEditData", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetNotifySettings(ctx context.Context, in *TLAccountGetNotifySettings, opts ...grpc.CallOption) (*PeerNotifySettings, error) { - out := new(PeerNotifySettings) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getNotifySettings", in, out, opts...) +func (c *rPCMessagesClient) MessagesEditMessage(ctx context.Context, in *TLMessagesEditMessage, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editMessage", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountResetNotifySettings(ctx context.Context, in *TLAccountResetNotifySettings, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesEditInlineBotMessage(ctx context.Context, in *TLMessagesEditInlineBotMessage, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_resetNotifySettings", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editInlineBotMessage", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountUpdateProfile(ctx context.Context, in *TLAccountUpdateProfile, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateProfile", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetBotCallbackAnswer(ctx context.Context, in *TLMessagesGetBotCallbackAnswer, opts ...grpc.CallOption) (*Messages_BotCallbackAnswer, error) { + out := new(Messages_BotCallbackAnswer) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getBotCallbackAnswer", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountUpdateStatus(ctx context.Context, in *TLAccountUpdateStatus, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesSetBotCallbackAnswer(ctx context.Context, in *TLMessagesSetBotCallbackAnswer, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateStatus", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setBotCallbackAnswer", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetWallPapers(ctx context.Context, in *TLAccountGetWallPapers, opts ...grpc.CallOption) (*Vector_WallPaper, error) { - out := new(Vector_WallPaper) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getWallPapers", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetPeerDialogs(ctx context.Context, in *TLMessagesGetPeerDialogs, opts ...grpc.CallOption) (*Messages_PeerDialogs, error) { + out := new(Messages_PeerDialogs) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getPeerDialogs", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountReportPeer(ctx context.Context, in *TLAccountReportPeer, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesSaveDraft(ctx context.Context, in *TLMessagesSaveDraft, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_reportPeer", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_saveDraft", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountCheckUsername(ctx context.Context, in *TLAccountCheckUsername, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_checkUsername", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetAllDrafts(ctx context.Context, in *TLMessagesGetAllDrafts, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getAllDrafts", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountUpdateUsername(ctx context.Context, in *TLAccountUpdateUsername, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateUsername", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetFeaturedStickers(ctx context.Context, in *TLMessagesGetFeaturedStickers, opts ...grpc.CallOption) (*Messages_FeaturedStickers, error) { + out := new(Messages_FeaturedStickers) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getFeaturedStickers", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetPrivacy(ctx context.Context, in *TLAccountGetPrivacy, opts ...grpc.CallOption) (*Account_PrivacyRules, error) { - out := new(Account_PrivacyRules) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getPrivacy", in, out, opts...) +func (c *rPCMessagesClient) MessagesReadFeaturedStickers(ctx context.Context, in *TLMessagesReadFeaturedStickers, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readFeaturedStickers", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountSetPrivacy(ctx context.Context, in *TLAccountSetPrivacy, opts ...grpc.CallOption) (*Account_PrivacyRules, error) { - out := new(Account_PrivacyRules) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_setPrivacy", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetRecentStickers(ctx context.Context, in *TLMessagesGetRecentStickers, opts ...grpc.CallOption) (*Messages_RecentStickers, error) { + out := new(Messages_RecentStickers) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getRecentStickers", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountDeleteAccount(ctx context.Context, in *TLAccountDeleteAccount, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesSaveRecentSticker(ctx context.Context, in *TLMessagesSaveRecentSticker, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_deleteAccount", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_saveRecentSticker", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetAccountTTL(ctx context.Context, in *TLAccountGetAccountTTL, opts ...grpc.CallOption) (*AccountDaysTTL, error) { - out := new(AccountDaysTTL) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getAccountTTL", in, out, opts...) +func (c *rPCMessagesClient) MessagesClearRecentStickers(ctx context.Context, in *TLMessagesClearRecentStickers, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_clearRecentStickers", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountSetAccountTTL(ctx context.Context, in *TLAccountSetAccountTTL, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_setAccountTTL", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetArchivedStickers(ctx context.Context, in *TLMessagesGetArchivedStickers, opts ...grpc.CallOption) (*Messages_ArchivedStickers, error) { + out := new(Messages_ArchivedStickers) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getArchivedStickers", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountSendChangePhoneCode(ctx context.Context, in *TLAccountSendChangePhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { - out := new(Auth_SentCode) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_sendChangePhoneCode", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetMaskStickers(ctx context.Context, in *TLMessagesGetMaskStickers, opts ...grpc.CallOption) (*Messages_AllStickers, error) { + out := new(Messages_AllStickers) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMaskStickers", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountChangePhone(ctx context.Context, in *TLAccountChangePhone, opts ...grpc.CallOption) (*User, error) { - out := new(User) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_changePhone", in, out, opts...) - if err != nil { +func (c *rPCMessagesClient) MessagesGetAttachedStickers(ctx context.Context, in *TLMessagesGetAttachedStickers, opts ...grpc.CallOption) (*Vector_StickerSetCovered, error) { + out := new(Vector_StickerSetCovered) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getAttachedStickers", in, out, opts...) + if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountUpdateDeviceLocked(ctx context.Context, in *TLAccountUpdateDeviceLocked, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updateDeviceLocked", in, out, opts...) +func (c *rPCMessagesClient) MessagesSetGameScore(ctx context.Context, in *TLMessagesSetGameScore, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setGameScore", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetAuthorizations(ctx context.Context, in *TLAccountGetAuthorizations, opts ...grpc.CallOption) (*Account_Authorizations, error) { - out := new(Account_Authorizations) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getAuthorizations", in, out, opts...) +func (c *rPCMessagesClient) MessagesSetInlineGameScore(ctx context.Context, in *TLMessagesSetInlineGameScore, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setInlineGameScore", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountResetAuthorization(ctx context.Context, in *TLAccountResetAuthorization, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_resetAuthorization", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetGameHighScores(ctx context.Context, in *TLMessagesGetGameHighScores, opts ...grpc.CallOption) (*Messages_HighScores, error) { + out := new(Messages_HighScores) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getGameHighScores", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetPassword(ctx context.Context, in *TLAccountGetPassword, opts ...grpc.CallOption) (*Account_Password, error) { - out := new(Account_Password) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getPassword", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetInlineGameHighScores(ctx context.Context, in *TLMessagesGetInlineGameHighScores, opts ...grpc.CallOption) (*Messages_HighScores, error) { + out := new(Messages_HighScores) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getInlineGameHighScores", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetPasswordSettings(ctx context.Context, in *TLAccountGetPasswordSettings, opts ...grpc.CallOption) (*Account_PasswordSettings, error) { - out := new(Account_PasswordSettings) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getPasswordSettings", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetCommonChats(ctx context.Context, in *TLMessagesGetCommonChats, opts ...grpc.CallOption) (*Messages_Chats, error) { + out := new(Messages_Chats) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getCommonChats", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountUpdatePasswordSettings(ctx context.Context, in *TLAccountUpdatePasswordSettings, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_updatePasswordSettings", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetAllChats(ctx context.Context, in *TLMessagesGetAllChats, opts ...grpc.CallOption) (*Messages_Chats, error) { + out := new(Messages_Chats) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getAllChats", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountSendConfirmPhoneCode(ctx context.Context, in *TLAccountSendConfirmPhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { - out := new(Auth_SentCode) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_sendConfirmPhoneCode", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetWebPage(ctx context.Context, in *TLMessagesGetWebPage, opts ...grpc.CallOption) (*WebPage, error) { + out := new(WebPage) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getWebPage", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountConfirmPhone(ctx context.Context, in *TLAccountConfirmPhone, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesToggleDialogPin(ctx context.Context, in *TLMessagesToggleDialogPin, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_confirmPhone", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_toggleDialogPin", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetTmpPassword(ctx context.Context, in *TLAccountGetTmpPassword, opts ...grpc.CallOption) (*Account_TmpPassword, error) { - out := new(Account_TmpPassword) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getTmpPassword", in, out, opts...) +func (c *rPCMessagesClient) MessagesReorderPinnedDialogs(ctx context.Context, in *TLMessagesReorderPinnedDialogs, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_reorderPinnedDialogs", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetWebAuthorizations(ctx context.Context, in *TLAccountGetWebAuthorizations, opts ...grpc.CallOption) (*Account_WebAuthorizations, error) { - out := new(Account_WebAuthorizations) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getWebAuthorizations", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetPinnedDialogs(ctx context.Context, in *TLMessagesGetPinnedDialogs, opts ...grpc.CallOption) (*Messages_PeerDialogs, error) { + out := new(Messages_PeerDialogs) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getPinnedDialogs", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountResetWebAuthorization(ctx context.Context, in *TLAccountResetWebAuthorization, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesSetBotShippingResults(ctx context.Context, in *TLMessagesSetBotShippingResults, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_resetWebAuthorization", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setBotShippingResults", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountResetWebAuthorizations(ctx context.Context, in *TLAccountResetWebAuthorizations, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesSetBotPrecheckoutResults(ctx context.Context, in *TLMessagesSetBotPrecheckoutResults, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_resetWebAuthorizations", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setBotPrecheckoutResults", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetAllSecureValues(ctx context.Context, in *TLAccountGetAllSecureValues, opts ...grpc.CallOption) (*Vector_SecureValue, error) { - out := new(Vector_SecureValue) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getAllSecureValues", in, out, opts...) +func (c *rPCMessagesClient) MessagesUploadMedia(ctx context.Context, in *TLMessagesUploadMedia, opts ...grpc.CallOption) (*MessageMedia, error) { + out := new(MessageMedia) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_uploadMedia", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetSecureValue(ctx context.Context, in *TLAccountGetSecureValue, opts ...grpc.CallOption) (*Vector_SecureValue, error) { - out := new(Vector_SecureValue) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getSecureValue", in, out, opts...) +func (c *rPCMessagesClient) MessagesSendScreenshotNotification(ctx context.Context, in *TLMessagesSendScreenshotNotification, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendScreenshotNotification", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountSaveSecureValue(ctx context.Context, in *TLAccountSaveSecureValue, opts ...grpc.CallOption) (*SecureValue, error) { - out := new(SecureValue) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_saveSecureValue", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetFavedStickers(ctx context.Context, in *TLMessagesGetFavedStickers, opts ...grpc.CallOption) (*Messages_FavedStickers, error) { + out := new(Messages_FavedStickers) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getFavedStickers", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountDeleteSecureValue(ctx context.Context, in *TLAccountDeleteSecureValue, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesFaveSticker(ctx context.Context, in *TLMessagesFaveSticker, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_deleteSecureValue", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_faveSticker", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountGetAuthorizationForm(ctx context.Context, in *TLAccountGetAuthorizationForm, opts ...grpc.CallOption) (*Account_AuthorizationForm, error) { - out := new(Account_AuthorizationForm) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_getAuthorizationForm", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetUnreadMentions(ctx context.Context, in *TLMessagesGetUnreadMentions, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getUnreadMentions", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountAcceptAuthorization(ctx context.Context, in *TLAccountAcceptAuthorization, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_acceptAuthorization", in, out, opts...) +func (c *rPCMessagesClient) MessagesReadMentions(ctx context.Context, in *TLMessagesReadMentions, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) { + out := new(Messages_AffectedHistory) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readMentions", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountSendVerifyPhoneCode(ctx context.Context, in *TLAccountSendVerifyPhoneCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { - out := new(Auth_SentCode) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_sendVerifyPhoneCode", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetRecentLocations(ctx context.Context, in *TLMessagesGetRecentLocations, opts ...grpc.CallOption) (*Messages_Messages, error) { + out := new(Messages_Messages) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getRecentLocations", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountVerifyPhone(ctx context.Context, in *TLAccountVerifyPhone, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_verifyPhone", in, out, opts...) +func (c *rPCMessagesClient) MessagesSendMultiMedia(ctx context.Context, in *TLMessagesSendMultiMedia, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendMultiMedia", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountSendVerifyEmailCode(ctx context.Context, in *TLAccountSendVerifyEmailCode, opts ...grpc.CallOption) (*Account_SentEmailCode, error) { - out := new(Account_SentEmailCode) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_sendVerifyEmailCode", in, out, opts...) +func (c *rPCMessagesClient) MessagesUploadEncryptedFile(ctx context.Context, in *TLMessagesUploadEncryptedFile, opts ...grpc.CallOption) (*EncryptedFile, error) { + out := new(EncryptedFile) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_uploadEncryptedFile", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountVerifyEmail(ctx context.Context, in *TLAccountVerifyEmail, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_verifyEmail", in, out, opts...) +func (c *rPCMessagesClient) MessagesSearchStickerSets(ctx context.Context, in *TLMessagesSearchStickerSets, opts ...grpc.CallOption) (*Messages_FoundStickerSets, error) { + out := new(Messages_FoundStickerSets) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_searchStickerSets", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountInitTakeoutSession(ctx context.Context, in *TLAccountInitTakeoutSession, opts ...grpc.CallOption) (*Account_Takeout, error) { - out := new(Account_Takeout) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_initTakeoutSession", in, out, opts...) +func (c *rPCMessagesClient) MessagesGetSplitRanges(ctx context.Context, in *TLMessagesGetSplitRanges, opts ...grpc.CallOption) (*Vector_MessageRange, error) { + out := new(Vector_MessageRange) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getSplitRanges", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCAccountClient) AccountFinishTakeoutSession(ctx context.Context, in *TLAccountFinishTakeoutSession, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCMessagesClient) MessagesMarkDialogUnread(ctx context.Context, in *TLMessagesMarkDialogUnread, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCAccount/account_finishTakeoutSession", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_markDialogUnread", in, out, opts...) if err != nil { return nil, err } return out, nil } -// RPCAccountServer is the server API for RPCAccount service. -type RPCAccountServer interface { - // account.registerDevice#637ea878 token_type:int token:string = Bool; - AccountRegisterDeviceLayer71(context.Context, *TLAccountRegisterDeviceLayer71) (*Bool, error) - // account.unregisterDevice#65c55b40 token_type:int token:string = Bool; - AccountUnregisterDeviceLayer71(context.Context, *TLAccountUnregisterDeviceLayer71) (*Bool, error) - // account.registerDevice#5cbea590 token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector = Bool; - AccountRegisterDevice(context.Context, *TLAccountRegisterDevice) (*Bool, error) - // account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector = Bool; - AccountUnregisterDevice(context.Context, *TLAccountUnregisterDevice) (*Bool, error) - // account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool; - AccountUpdateNotifySettings(context.Context, *TLAccountUpdateNotifySettings) (*Bool, error) - // account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings; - AccountGetNotifySettings(context.Context, *TLAccountGetNotifySettings) (*PeerNotifySettings, error) - // account.resetNotifySettings#db7e1747 = Bool; - AccountResetNotifySettings(context.Context, *TLAccountResetNotifySettings) (*Bool, error) - // account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User; - AccountUpdateProfile(context.Context, *TLAccountUpdateProfile) (*User, error) - // account.updateStatus#6628562c offline:Bool = Bool; - AccountUpdateStatus(context.Context, *TLAccountUpdateStatus) (*Bool, error) - // account.getWallPapers#c04cfac2 = Vector; - AccountGetWallPapers(context.Context, *TLAccountGetWallPapers) (*Vector_WallPaper, error) - // account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool; - AccountReportPeer(context.Context, *TLAccountReportPeer) (*Bool, error) - // account.checkUsername#2714d86c username:string = Bool; - AccountCheckUsername(context.Context, *TLAccountCheckUsername) (*Bool, error) - // account.updateUsername#3e0bdd7c username:string = User; - AccountUpdateUsername(context.Context, *TLAccountUpdateUsername) (*User, error) - // account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules; - AccountGetPrivacy(context.Context, *TLAccountGetPrivacy) (*Account_PrivacyRules, error) - // account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector = account.PrivacyRules; - AccountSetPrivacy(context.Context, *TLAccountSetPrivacy) (*Account_PrivacyRules, error) - // account.deleteAccount#418d4e0b reason:string = Bool; - AccountDeleteAccount(context.Context, *TLAccountDeleteAccount) (*Bool, error) - // account.getAccountTTL#8fc711d = AccountDaysTTL; - AccountGetAccountTTL(context.Context, *TLAccountGetAccountTTL) (*AccountDaysTTL, error) - // account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool; - AccountSetAccountTTL(context.Context, *TLAccountSetAccountTTL) (*Bool, error) - // account.sendChangePhoneCode#8e57deb flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; - AccountSendChangePhoneCode(context.Context, *TLAccountSendChangePhoneCode) (*Auth_SentCode, error) - // account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User; - AccountChangePhone(context.Context, *TLAccountChangePhone) (*User, error) - // account.updateDeviceLocked#38df3532 period:int = Bool; - AccountUpdateDeviceLocked(context.Context, *TLAccountUpdateDeviceLocked) (*Bool, error) - // account.getAuthorizations#e320c158 = account.Authorizations; - AccountGetAuthorizations(context.Context, *TLAccountGetAuthorizations) (*Account_Authorizations, error) - // account.resetAuthorization#df77f3bc hash:long = Bool; - AccountResetAuthorization(context.Context, *TLAccountResetAuthorization) (*Bool, error) - // account.getPassword#548a30f5 = account.Password; - AccountGetPassword(context.Context, *TLAccountGetPassword) (*Account_Password, error) - // account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings; - AccountGetPasswordSettings(context.Context, *TLAccountGetPasswordSettings) (*Account_PasswordSettings, error) - // account.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool; - AccountUpdatePasswordSettings(context.Context, *TLAccountUpdatePasswordSettings) (*Bool, error) - // account.sendConfirmPhoneCode#1516d7bd flags:# allow_flashcall:flags.0?true hash:string current_number:flags.0?Bool = auth.SentCode; - AccountSendConfirmPhoneCode(context.Context, *TLAccountSendConfirmPhoneCode) (*Auth_SentCode, error) - // account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool; - AccountConfirmPhone(context.Context, *TLAccountConfirmPhone) (*Bool, error) - // account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword; - AccountGetTmpPassword(context.Context, *TLAccountGetTmpPassword) (*Account_TmpPassword, error) - // account.getWebAuthorizations#182e6d6f = account.WebAuthorizations; - AccountGetWebAuthorizations(context.Context, *TLAccountGetWebAuthorizations) (*Account_WebAuthorizations, error) - // account.resetWebAuthorization#2d01b9ef hash:long = Bool; - AccountResetWebAuthorization(context.Context, *TLAccountResetWebAuthorization) (*Bool, error) - // account.resetWebAuthorizations#682d2594 = Bool; - AccountResetWebAuthorizations(context.Context, *TLAccountResetWebAuthorizations) (*Bool, error) - // account.getAllSecureValues#b288bc7d = Vector; - AccountGetAllSecureValues(context.Context, *TLAccountGetAllSecureValues) (*Vector_SecureValue, error) - // account.getSecureValue#73665bc2 types:Vector = Vector; - AccountGetSecureValue(context.Context, *TLAccountGetSecureValue) (*Vector_SecureValue, error) - // account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue; - AccountSaveSecureValue(context.Context, *TLAccountSaveSecureValue) (*SecureValue, error) - // account.deleteSecureValue#b880bc4b types:Vector = Bool; - AccountDeleteSecureValue(context.Context, *TLAccountDeleteSecureValue) (*Bool, error) - // account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm; - AccountGetAuthorizationForm(context.Context, *TLAccountGetAuthorizationForm) (*Account_AuthorizationForm, error) - // account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector credentials:SecureCredentialsEncrypted = Bool; - AccountAcceptAuthorization(context.Context, *TLAccountAcceptAuthorization) (*Bool, error) - // account.sendVerifyPhoneCode#823380b4 flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; - AccountSendVerifyPhoneCode(context.Context, *TLAccountSendVerifyPhoneCode) (*Auth_SentCode, error) - // account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool; - AccountVerifyPhone(context.Context, *TLAccountVerifyPhone) (*Bool, error) - // account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode; - AccountSendVerifyEmailCode(context.Context, *TLAccountSendVerifyEmailCode) (*Account_SentEmailCode, error) - // account.verifyEmail#ecba39db email:string code:string = Bool; - AccountVerifyEmail(context.Context, *TLAccountVerifyEmail) (*Bool, error) - // account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout; - AccountInitTakeoutSession(context.Context, *TLAccountInitTakeoutSession) (*Account_Takeout, error) - // account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool; - AccountFinishTakeoutSession(context.Context, *TLAccountFinishTakeoutSession) (*Bool, error) -} - -func RegisterRPCAccountServer(s *grpc.Server, srv RPCAccountServer) { - s.RegisterService(&_RPCAccount_serviceDesc, srv) -} - -func _RPCAccount_AccountRegisterDeviceLayer71_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountRegisterDeviceLayer71) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesGetDialogUnreadMarks(ctx context.Context, in *TLMessagesGetDialogUnreadMarks, opts ...grpc.CallOption) (*Vector_DialogPeer, error) { + out := new(Vector_DialogPeer) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDialogUnreadMarks", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCAccountServer).AccountRegisterDeviceLayer71(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountRegisterDeviceLayer71", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountRegisterDeviceLayer71(ctx, req.(*TLAccountRegisterDeviceLayer71)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCAccount_AccountUnregisterDeviceLayer71_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountUnregisterDeviceLayer71) - if err := dec(in); err != nil { +func (c *rPCMessagesClient) MessagesClearAllDrafts(ctx context.Context, in *TLMessagesClearAllDrafts, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_clearAllDrafts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RPCMessagesServer is the server API for RPCMessages service. +type RPCMessagesServer interface { + // messages.readHistory#b04f2510 peer:InputPeer max_id:int offset:int = messages.AffectedHistory; + MessagesReadHistoryLayer2(context.Context, *TLMessagesReadHistoryLayer2) (*Messages_AffectedHistory, error) + // messages.getHistory#afa92846 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; + MessagesGetHistoryLayer51(context.Context, *TLMessagesGetHistoryLayer51) (*Messages_Messages, error) + // messages.getDialogs#191ba9c5 flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int = messages.Dialogs; + MessagesGetDialogsLayer62(context.Context, *TLMessagesGetDialogsLayer62) (*Messages_Dialogs, error) + // messages.search#f288a275 flags:# peer:InputPeer q:string from_id:flags.0?InputUser filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = messages.Messages; + MessagesSearchLayer68(context.Context, *TLMessagesSearchLayer68) (*Messages_Messages, error) + // messages.getMessages#4222fa74 id:Vector = messages.Messages; + MessagesGetMessagesLayer71(context.Context, *TLMessagesGetMessagesLayer71) (*Messages_Messages, error) + // messages.getRecentLocations#249431e2 peer:InputPeer limit:int = messages.Messages; + MessagesGetRecentLocationsLayer72(context.Context, *TLMessagesGetRecentLocationsLayer72) (*Messages_Messages, error) + // messages.getMessages#63c66506 id:Vector = messages.Messages; + MessagesGetMessages(context.Context, *TLMessagesGetMessages) (*Messages_Messages, error) + // messages.getDialogs#b098aee6 flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:int = messages.Dialogs; + MessagesGetDialogs(context.Context, *TLMessagesGetDialogs) (*Messages_Dialogs, error) + // messages.getHistory#dcbb8260 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages; + MessagesGetHistory(context.Context, *TLMessagesGetHistory) (*Messages_Messages, error) + // messages.search#8614ef68 flags:# peer:InputPeer q:string from_id:flags.0?InputUser filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages; + MessagesSearch(context.Context, *TLMessagesSearch) (*Messages_Messages, error) + // messages.readHistory#e306d3a peer:InputPeer max_id:int = messages.AffectedMessages; + MessagesReadHistory(context.Context, *TLMessagesReadHistory) (*Messages_AffectedMessages, error) + // messages.deleteHistory#1c015b09 flags:# just_clear:flags.0?true peer:InputPeer max_id:int = messages.AffectedHistory; + MessagesDeleteHistory(context.Context, *TLMessagesDeleteHistory) (*Messages_AffectedHistory, error) + // messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector = messages.AffectedMessages; + MessagesDeleteMessages(context.Context, *TLMessagesDeleteMessages) (*Messages_AffectedMessages, error) + // messages.receivedMessages#5a954c0 max_id:int = Vector; + MessagesReceivedMessages(context.Context, *TLMessagesReceivedMessages) (*Vector_ReceivedNotifyMessage, error) + // messages.setTyping#a3825e50 peer:InputPeer action:SendMessageAction = Bool; + MessagesSetTyping(context.Context, *TLMessagesSetTyping) (*Bool, error) + // messages.sendMessage#fa88427a flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Updates; + MessagesSendMessage(context.Context, *TLMessagesSendMessage) (*Updates, error) + // messages.sendMedia#b8d1262b flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Updates; + MessagesSendMedia(context.Context, *TLMessagesSendMedia) (*Updates, error) + // messages.forwardMessages#708e0195 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true grouped:flags.9?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer = Updates; + MessagesForwardMessages(context.Context, *TLMessagesForwardMessages) (*Updates, error) + // messages.reportSpam#cf1592db peer:InputPeer = Bool; + MessagesReportSpam(context.Context, *TLMessagesReportSpam) (*Bool, error) + // messages.hideReportSpam#a8f1709b peer:InputPeer = Bool; + MessagesHideReportSpam(context.Context, *TLMessagesHideReportSpam) (*Bool, error) + // messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings; + MessagesGetPeerSettings(context.Context, *TLMessagesGetPeerSettings) (*PeerSettings, error) + // messages.report#bd82b658 peer:InputPeer id:Vector reason:ReportReason = Bool; + MessagesReport(context.Context, *TLMessagesReport) (*Bool, error) + // messages.getChats#3c6aa187 id:Vector = messages.Chats; + MessagesGetChats(context.Context, *TLMessagesGetChats) (*Messages_Chats, error) + // messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull; + MessagesGetFullChat(context.Context, *TLMessagesGetFullChat) (*Messages_ChatFull, error) + // messages.editChatTitle#dc452855 chat_id:int title:string = Updates; + MessagesEditChatTitle(context.Context, *TLMessagesEditChatTitle) (*Updates, error) + // messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates; + MessagesEditChatPhoto(context.Context, *TLMessagesEditChatPhoto) (*Updates, error) + // messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates; + MessagesAddChatUser(context.Context, *TLMessagesAddChatUser) (*Updates, error) + // messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates; + MessagesDeleteChatUser(context.Context, *TLMessagesDeleteChatUser) (*Updates, error) + // messages.createChat#9cb126e users:Vector title:string = Updates; + MessagesCreateChat(context.Context, *TLMessagesCreateChat) (*Updates, error) + // messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig; + MessagesGetDhConfig(context.Context, *TLMessagesGetDhConfig) (*Messages_DhConfig, error) + // messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat; + MessagesRequestEncryption(context.Context, *TLMessagesRequestEncryption) (*EncryptedChat, error) + // messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat; + MessagesAcceptEncryption(context.Context, *TLMessagesAcceptEncryption) (*EncryptedChat, error) + // messages.discardEncryption#edd923c5 chat_id:int = Bool; + MessagesDiscardEncryption(context.Context, *TLMessagesDiscardEncryption) (*Bool, error) + // messages.setEncryptedTyping#791451ed peer:InputEncryptedChat typing:Bool = Bool; + MessagesSetEncryptedTyping(context.Context, *TLMessagesSetEncryptedTyping) (*Bool, error) + // messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool; + MessagesReadEncryptedHistory(context.Context, *TLMessagesReadEncryptedHistory) (*Bool, error) + // messages.sendEncrypted#a9776773 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage; + MessagesSendEncrypted(context.Context, *TLMessagesSendEncrypted) (*Messages_SentEncryptedMessage, error) + // messages.sendEncryptedFile#9a901b66 peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage; + MessagesSendEncryptedFile(context.Context, *TLMessagesSendEncryptedFile) (*Messages_SentEncryptedMessage, error) + // messages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage; + MessagesSendEncryptedService(context.Context, *TLMessagesSendEncryptedService) (*Messages_SentEncryptedMessage, error) + // messages.receivedQueue#55a5bb66 max_qts:int = Vector; + MessagesReceivedQueue(context.Context, *TLMessagesReceivedQueue) (*VectorLong, error) + // messages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool; + MessagesReportEncryptedSpam(context.Context, *TLMessagesReportEncryptedSpam) (*Bool, error) + // messages.readMessageContents#36a73f77 id:Vector = messages.AffectedMessages; + MessagesReadMessageContents(context.Context, *TLMessagesReadMessageContents) (*Messages_AffectedMessages, error) + // messages.getStickers#43d4f2c emoticon:string hash:int = messages.Stickers; + MessagesGetStickers(context.Context, *TLMessagesGetStickers) (*Messages_Stickers, error) + // messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers; + MessagesGetAllStickers(context.Context, *TLMessagesGetAllStickers) (*Messages_AllStickers, error) + // messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector = MessageMedia; + MessagesGetWebPagePreview(context.Context, *TLMessagesGetWebPagePreview) (*MessageMedia, error) + // messages.exportChatInvite#7d885289 chat_id:int = ExportedChatInvite; + MessagesExportChatInvite(context.Context, *TLMessagesExportChatInvite) (*ExportedChatInvite, error) + // messages.checkChatInvite#3eadb1bb hash:string = ChatInvite; + MessagesCheckChatInvite(context.Context, *TLMessagesCheckChatInvite) (*ChatInvite, error) + // messages.importChatInvite#6c50051c hash:string = Updates; + MessagesImportChatInvite(context.Context, *TLMessagesImportChatInvite) (*Updates, error) + // messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet; + MessagesGetStickerSet(context.Context, *TLMessagesGetStickerSet) (*Messages_StickerSet, error) + // messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult; + MessagesInstallStickerSet(context.Context, *TLMessagesInstallStickerSet) (*Messages_StickerSetInstallResult, error) + // messages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool; + MessagesUninstallStickerSet(context.Context, *TLMessagesUninstallStickerSet) (*Bool, error) + // messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates; + MessagesStartBot(context.Context, *TLMessagesStartBot) (*Updates, error) + // messages.getMessagesViews#c4c8a55d peer:InputPeer id:Vector increment:Bool = Vector; + MessagesGetMessagesViews(context.Context, *TLMessagesGetMessagesViews) (*VectorInt, error) + // messages.toggleChatAdmins#ec8bd9e1 chat_id:int enabled:Bool = Updates; + MessagesToggleChatAdmins(context.Context, *TLMessagesToggleChatAdmins) (*Updates, error) + // messages.editChatAdmin#a9e69f2e chat_id:int user_id:InputUser is_admin:Bool = Bool; + MessagesEditChatAdmin(context.Context, *TLMessagesEditChatAdmin) (*Bool, error) + // messages.migrateChat#15a3b8e3 chat_id:int = Updates; + MessagesMigrateChat(context.Context, *TLMessagesMigrateChat) (*Updates, error) + // messages.searchGlobal#9e3cacb0 q:string offset_date:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; + MessagesSearchGlobal(context.Context, *TLMessagesSearchGlobal) (*Messages_Messages, error) + // messages.reorderStickerSets#78337739 flags:# masks:flags.0?true order:Vector = Bool; + MessagesReorderStickerSets(context.Context, *TLMessagesReorderStickerSets) (*Bool, error) + // messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document; + MessagesGetDocumentByHash(context.Context, *TLMessagesGetDocumentByHash) (*Document, error) + // messages.searchGifs#bf9a776b q:string offset:int = messages.FoundGifs; + MessagesSearchGifs(context.Context, *TLMessagesSearchGifs) (*Messages_FoundGifs, error) + // messages.getSavedGifs#83bf3d52 hash:int = messages.SavedGifs; + MessagesGetSavedGifs(context.Context, *TLMessagesGetSavedGifs) (*Messages_SavedGifs, error) + // messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; + MessagesSaveGif(context.Context, *TLMessagesSaveGif) (*Bool, error) + // messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults; + MessagesGetInlineBotResults(context.Context, *TLMessagesGetInlineBotResults) (*Messages_BotResults, error) + // messages.setInlineBotResults#eb5ea206 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM = Bool; + MessagesSetInlineBotResults(context.Context, *TLMessagesSetInlineBotResults) (*Bool, error) + // messages.sendInlineBotResult#b16e06fe flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string = Updates; + MessagesSendInlineBotResult(context.Context, *TLMessagesSendInlineBotResult) (*Updates, error) + // messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData; + MessagesGetMessageEditData(context.Context, *TLMessagesGetMessageEditData) (*Messages_MessageEditData, error) + // messages.editMessage#c000e4c8 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector geo_point:flags.13?InputGeoPoint = Updates; + MessagesEditMessage(context.Context, *TLMessagesEditMessage) (*Updates, error) + // messages.editInlineBotMessage#adc3e828 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector geo_point:flags.13?InputGeoPoint = Bool; + MessagesEditInlineBotMessage(context.Context, *TLMessagesEditInlineBotMessage) (*Bool, error) + // messages.getBotCallbackAnswer#810a9fec flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes = messages.BotCallbackAnswer; + MessagesGetBotCallbackAnswer(context.Context, *TLMessagesGetBotCallbackAnswer) (*Messages_BotCallbackAnswer, error) + // messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool; + MessagesSetBotCallbackAnswer(context.Context, *TLMessagesSetBotCallbackAnswer) (*Bool, error) + // messages.getPeerDialogs#e470bcfd peers:Vector = messages.PeerDialogs; + MessagesGetPeerDialogs(context.Context, *TLMessagesGetPeerDialogs) (*Messages_PeerDialogs, error) + // messages.saveDraft#bc39e14b flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int peer:InputPeer message:string entities:flags.3?Vector = Bool; + MessagesSaveDraft(context.Context, *TLMessagesSaveDraft) (*Bool, error) + // messages.getAllDrafts#6a3f8d65 = Updates; + MessagesGetAllDrafts(context.Context, *TLMessagesGetAllDrafts) (*Updates, error) + // messages.getFeaturedStickers#2dacca4f hash:int = messages.FeaturedStickers; + MessagesGetFeaturedStickers(context.Context, *TLMessagesGetFeaturedStickers) (*Messages_FeaturedStickers, error) + // messages.readFeaturedStickers#5b118126 id:Vector = Bool; + MessagesReadFeaturedStickers(context.Context, *TLMessagesReadFeaturedStickers) (*Bool, error) + // messages.getRecentStickers#5ea192c9 flags:# attached:flags.0?true hash:int = messages.RecentStickers; + MessagesGetRecentStickers(context.Context, *TLMessagesGetRecentStickers) (*Messages_RecentStickers, error) + // messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool; + MessagesSaveRecentSticker(context.Context, *TLMessagesSaveRecentSticker) (*Bool, error) + // messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool; + MessagesClearRecentStickers(context.Context, *TLMessagesClearRecentStickers) (*Bool, error) + // messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers; + MessagesGetArchivedStickers(context.Context, *TLMessagesGetArchivedStickers) (*Messages_ArchivedStickers, error) + // messages.getMaskStickers#65b8c79f hash:int = messages.AllStickers; + MessagesGetMaskStickers(context.Context, *TLMessagesGetMaskStickers) (*Messages_AllStickers, error) + // messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector; + MessagesGetAttachedStickers(context.Context, *TLMessagesGetAttachedStickers) (*Vector_StickerSetCovered, error) + // messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates; + MessagesSetGameScore(context.Context, *TLMessagesSetGameScore) (*Updates, error) + // messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool; + MessagesSetInlineGameScore(context.Context, *TLMessagesSetInlineGameScore) (*Bool, error) + // messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores; + MessagesGetGameHighScores(context.Context, *TLMessagesGetGameHighScores) (*Messages_HighScores, error) + // messages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores; + MessagesGetInlineGameHighScores(context.Context, *TLMessagesGetInlineGameHighScores) (*Messages_HighScores, error) + // messages.getCommonChats#d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats; + MessagesGetCommonChats(context.Context, *TLMessagesGetCommonChats) (*Messages_Chats, error) + // messages.getAllChats#eba80ff0 except_ids:Vector = messages.Chats; + MessagesGetAllChats(context.Context, *TLMessagesGetAllChats) (*Messages_Chats, error) + // messages.getWebPage#32ca8f91 url:string hash:int = WebPage; + MessagesGetWebPage(context.Context, *TLMessagesGetWebPage) (*WebPage, error) + // messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool; + MessagesToggleDialogPin(context.Context, *TLMessagesToggleDialogPin) (*Bool, error) + // messages.reorderPinnedDialogs#5b51d63f flags:# force:flags.0?true order:Vector = Bool; + MessagesReorderPinnedDialogs(context.Context, *TLMessagesReorderPinnedDialogs) (*Bool, error) + // messages.getPinnedDialogs#e254d64e = messages.PeerDialogs; + MessagesGetPinnedDialogs(context.Context, *TLMessagesGetPinnedDialogs) (*Messages_PeerDialogs, error) + // messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; + MessagesSetBotShippingResults(context.Context, *TLMessagesSetBotShippingResults) (*Bool, error) + // messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; + MessagesSetBotPrecheckoutResults(context.Context, *TLMessagesSetBotPrecheckoutResults) (*Bool, error) + // messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia; + MessagesUploadMedia(context.Context, *TLMessagesUploadMedia) (*MessageMedia, error) + // messages.sendScreenshotNotification#c97df020 peer:InputPeer reply_to_msg_id:int random_id:long = Updates; + MessagesSendScreenshotNotification(context.Context, *TLMessagesSendScreenshotNotification) (*Updates, error) + // messages.getFavedStickers#21ce0b0e hash:int = messages.FavedStickers; + MessagesGetFavedStickers(context.Context, *TLMessagesGetFavedStickers) (*Messages_FavedStickers, error) + // messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool; + MessagesFaveSticker(context.Context, *TLMessagesFaveSticker) (*Bool, error) + // messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; + MessagesGetUnreadMentions(context.Context, *TLMessagesGetUnreadMentions) (*Messages_Messages, error) + // messages.readMentions#f0189d3 peer:InputPeer = messages.AffectedHistory; + MessagesReadMentions(context.Context, *TLMessagesReadMentions) (*Messages_AffectedHistory, error) + // messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages; + MessagesGetRecentLocations(context.Context, *TLMessagesGetRecentLocations) (*Messages_Messages, error) + // messages.sendMultiMedia#2095512f flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector = Updates; + MessagesSendMultiMedia(context.Context, *TLMessagesSendMultiMedia) (*Updates, error) + // messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile; + MessagesUploadEncryptedFile(context.Context, *TLMessagesUploadEncryptedFile) (*EncryptedFile, error) + // messages.searchStickerSets#c2b7d08b flags:# exclude_featured:flags.0?true q:string hash:int = messages.FoundStickerSets; + MessagesSearchStickerSets(context.Context, *TLMessagesSearchStickerSets) (*Messages_FoundStickerSets, error) + // messages.getSplitRanges#1cff7e08 = Vector; + MessagesGetSplitRanges(context.Context, *TLMessagesGetSplitRanges) (*Vector_MessageRange, error) + // messages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogPeer = Bool; + MessagesMarkDialogUnread(context.Context, *TLMessagesMarkDialogUnread) (*Bool, error) + // messages.getDialogUnreadMarks#22e24e22 = Vector; + MessagesGetDialogUnreadMarks(context.Context, *TLMessagesGetDialogUnreadMarks) (*Vector_DialogPeer, error) + // messages.clearAllDrafts#7e58ee9c = Bool; + MessagesClearAllDrafts(context.Context, *TLMessagesClearAllDrafts) (*Bool, error) +} + +func RegisterRPCMessagesServer(s *grpc.Server, srv RPCMessagesServer) { + s.RegisterService(&_RPCMessages_serviceDesc, srv) +} + +func _RPCMessages_MessagesReadHistoryLayer2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReadHistoryLayer2) + if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountUnregisterDeviceLayer71(ctx, in) + return srv.(RPCMessagesServer).MessagesReadHistoryLayer2(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountUnregisterDeviceLayer71", + FullMethod: "/mtproto.RPCMessages/MessagesReadHistoryLayer2", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountUnregisterDeviceLayer71(ctx, req.(*TLAccountUnregisterDeviceLayer71)) + return srv.(RPCMessagesServer).MessagesReadHistoryLayer2(ctx, req.(*TLMessagesReadHistoryLayer2)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountRegisterDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountRegisterDevice) +func _RPCMessages_MessagesGetHistoryLayer51_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetHistoryLayer51) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountRegisterDevice(ctx, in) + return srv.(RPCMessagesServer).MessagesGetHistoryLayer51(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountRegisterDevice", + FullMethod: "/mtproto.RPCMessages/MessagesGetHistoryLayer51", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountRegisterDevice(ctx, req.(*TLAccountRegisterDevice)) + return srv.(RPCMessagesServer).MessagesGetHistoryLayer51(ctx, req.(*TLMessagesGetHistoryLayer51)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountUnregisterDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountUnregisterDevice) +func _RPCMessages_MessagesGetDialogsLayer62_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetDialogsLayer62) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountUnregisterDevice(ctx, in) + return srv.(RPCMessagesServer).MessagesGetDialogsLayer62(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountUnregisterDevice", + FullMethod: "/mtproto.RPCMessages/MessagesGetDialogsLayer62", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountUnregisterDevice(ctx, req.(*TLAccountUnregisterDevice)) + return srv.(RPCMessagesServer).MessagesGetDialogsLayer62(ctx, req.(*TLMessagesGetDialogsLayer62)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountUpdateNotifySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountUpdateNotifySettings) +func _RPCMessages_MessagesSearchLayer68_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSearchLayer68) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountUpdateNotifySettings(ctx, in) + return srv.(RPCMessagesServer).MessagesSearchLayer68(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountUpdateNotifySettings", + FullMethod: "/mtproto.RPCMessages/MessagesSearchLayer68", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountUpdateNotifySettings(ctx, req.(*TLAccountUpdateNotifySettings)) + return srv.(RPCMessagesServer).MessagesSearchLayer68(ctx, req.(*TLMessagesSearchLayer68)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetNotifySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetNotifySettings) +func _RPCMessages_MessagesGetMessagesLayer71_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetMessagesLayer71) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetNotifySettings(ctx, in) + return srv.(RPCMessagesServer).MessagesGetMessagesLayer71(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetNotifySettings", + FullMethod: "/mtproto.RPCMessages/MessagesGetMessagesLayer71", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetNotifySettings(ctx, req.(*TLAccountGetNotifySettings)) + return srv.(RPCMessagesServer).MessagesGetMessagesLayer71(ctx, req.(*TLMessagesGetMessagesLayer71)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountResetNotifySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountResetNotifySettings) +func _RPCMessages_MessagesGetRecentLocationsLayer72_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetRecentLocationsLayer72) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountResetNotifySettings(ctx, in) + return srv.(RPCMessagesServer).MessagesGetRecentLocationsLayer72(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountResetNotifySettings", + FullMethod: "/mtproto.RPCMessages/MessagesGetRecentLocationsLayer72", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountResetNotifySettings(ctx, req.(*TLAccountResetNotifySettings)) + return srv.(RPCMessagesServer).MessagesGetRecentLocationsLayer72(ctx, req.(*TLMessagesGetRecentLocationsLayer72)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountUpdateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountUpdateProfile) +func _RPCMessages_MessagesGetMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetMessages) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountUpdateProfile(ctx, in) + return srv.(RPCMessagesServer).MessagesGetMessages(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountUpdateProfile", + FullMethod: "/mtproto.RPCMessages/MessagesGetMessages", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountUpdateProfile(ctx, req.(*TLAccountUpdateProfile)) + return srv.(RPCMessagesServer).MessagesGetMessages(ctx, req.(*TLMessagesGetMessages)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountUpdateStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountUpdateStatus) +func _RPCMessages_MessagesGetDialogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetDialogs) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountUpdateStatus(ctx, in) + return srv.(RPCMessagesServer).MessagesGetDialogs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountUpdateStatus", + FullMethod: "/mtproto.RPCMessages/MessagesGetDialogs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountUpdateStatus(ctx, req.(*TLAccountUpdateStatus)) + return srv.(RPCMessagesServer).MessagesGetDialogs(ctx, req.(*TLMessagesGetDialogs)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetWallPapers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetWallPapers) +func _RPCMessages_MessagesGetHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetHistory) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetWallPapers(ctx, in) + return srv.(RPCMessagesServer).MessagesGetHistory(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetWallPapers", + FullMethod: "/mtproto.RPCMessages/MessagesGetHistory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetWallPapers(ctx, req.(*TLAccountGetWallPapers)) + return srv.(RPCMessagesServer).MessagesGetHistory(ctx, req.(*TLMessagesGetHistory)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountReportPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountReportPeer) +func _RPCMessages_MessagesSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSearch) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountReportPeer(ctx, in) + return srv.(RPCMessagesServer).MessagesSearch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountReportPeer", + FullMethod: "/mtproto.RPCMessages/MessagesSearch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountReportPeer(ctx, req.(*TLAccountReportPeer)) + return srv.(RPCMessagesServer).MessagesSearch(ctx, req.(*TLMessagesSearch)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountCheckUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountCheckUsername) +func _RPCMessages_MessagesReadHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReadHistory) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountCheckUsername(ctx, in) + return srv.(RPCMessagesServer).MessagesReadHistory(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountCheckUsername", + FullMethod: "/mtproto.RPCMessages/MessagesReadHistory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountCheckUsername(ctx, req.(*TLAccountCheckUsername)) + return srv.(RPCMessagesServer).MessagesReadHistory(ctx, req.(*TLMessagesReadHistory)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountUpdateUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountUpdateUsername) +func _RPCMessages_MessagesDeleteHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesDeleteHistory) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountUpdateUsername(ctx, in) + return srv.(RPCMessagesServer).MessagesDeleteHistory(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountUpdateUsername", + FullMethod: "/mtproto.RPCMessages/MessagesDeleteHistory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountUpdateUsername(ctx, req.(*TLAccountUpdateUsername)) + return srv.(RPCMessagesServer).MessagesDeleteHistory(ctx, req.(*TLMessagesDeleteHistory)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetPrivacy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetPrivacy) +func _RPCMessages_MessagesDeleteMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesDeleteMessages) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetPrivacy(ctx, in) + return srv.(RPCMessagesServer).MessagesDeleteMessages(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetPrivacy", + FullMethod: "/mtproto.RPCMessages/MessagesDeleteMessages", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetPrivacy(ctx, req.(*TLAccountGetPrivacy)) + return srv.(RPCMessagesServer).MessagesDeleteMessages(ctx, req.(*TLMessagesDeleteMessages)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountSetPrivacy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountSetPrivacy) +func _RPCMessages_MessagesReceivedMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReceivedMessages) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountSetPrivacy(ctx, in) + return srv.(RPCMessagesServer).MessagesReceivedMessages(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountSetPrivacy", + FullMethod: "/mtproto.RPCMessages/MessagesReceivedMessages", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountSetPrivacy(ctx, req.(*TLAccountSetPrivacy)) + return srv.(RPCMessagesServer).MessagesReceivedMessages(ctx, req.(*TLMessagesReceivedMessages)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountDeleteAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountDeleteAccount) +func _RPCMessages_MessagesSetTyping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSetTyping) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountDeleteAccount(ctx, in) + return srv.(RPCMessagesServer).MessagesSetTyping(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountDeleteAccount", + FullMethod: "/mtproto.RPCMessages/MessagesSetTyping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountDeleteAccount(ctx, req.(*TLAccountDeleteAccount)) + return srv.(RPCMessagesServer).MessagesSetTyping(ctx, req.(*TLMessagesSetTyping)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetAccountTTL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetAccountTTL) +func _RPCMessages_MessagesSendMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSendMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetAccountTTL(ctx, in) + return srv.(RPCMessagesServer).MessagesSendMessage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetAccountTTL", + FullMethod: "/mtproto.RPCMessages/MessagesSendMessage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetAccountTTL(ctx, req.(*TLAccountGetAccountTTL)) + return srv.(RPCMessagesServer).MessagesSendMessage(ctx, req.(*TLMessagesSendMessage)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountSetAccountTTL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountSetAccountTTL) +func _RPCMessages_MessagesSendMedia_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSendMedia) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountSetAccountTTL(ctx, in) + return srv.(RPCMessagesServer).MessagesSendMedia(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountSetAccountTTL", + FullMethod: "/mtproto.RPCMessages/MessagesSendMedia", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountSetAccountTTL(ctx, req.(*TLAccountSetAccountTTL)) + return srv.(RPCMessagesServer).MessagesSendMedia(ctx, req.(*TLMessagesSendMedia)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountSendChangePhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountSendChangePhoneCode) +func _RPCMessages_MessagesForwardMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesForwardMessages) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountSendChangePhoneCode(ctx, in) + return srv.(RPCMessagesServer).MessagesForwardMessages(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountSendChangePhoneCode", + FullMethod: "/mtproto.RPCMessages/MessagesForwardMessages", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountSendChangePhoneCode(ctx, req.(*TLAccountSendChangePhoneCode)) + return srv.(RPCMessagesServer).MessagesForwardMessages(ctx, req.(*TLMessagesForwardMessages)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountChangePhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountChangePhone) +func _RPCMessages_MessagesReportSpam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReportSpam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountChangePhone(ctx, in) + return srv.(RPCMessagesServer).MessagesReportSpam(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountChangePhone", + FullMethod: "/mtproto.RPCMessages/MessagesReportSpam", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountChangePhone(ctx, req.(*TLAccountChangePhone)) + return srv.(RPCMessagesServer).MessagesReportSpam(ctx, req.(*TLMessagesReportSpam)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountUpdateDeviceLocked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountUpdateDeviceLocked) +func _RPCMessages_MessagesHideReportSpam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesHideReportSpam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountUpdateDeviceLocked(ctx, in) + return srv.(RPCMessagesServer).MessagesHideReportSpam(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountUpdateDeviceLocked", + FullMethod: "/mtproto.RPCMessages/MessagesHideReportSpam", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountUpdateDeviceLocked(ctx, req.(*TLAccountUpdateDeviceLocked)) + return srv.(RPCMessagesServer).MessagesHideReportSpam(ctx, req.(*TLMessagesHideReportSpam)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetAuthorizations) +func _RPCMessages_MessagesGetPeerSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetPeerSettings) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetAuthorizations(ctx, in) + return srv.(RPCMessagesServer).MessagesGetPeerSettings(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetAuthorizations", + FullMethod: "/mtproto.RPCMessages/MessagesGetPeerSettings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetAuthorizations(ctx, req.(*TLAccountGetAuthorizations)) + return srv.(RPCMessagesServer).MessagesGetPeerSettings(ctx, req.(*TLMessagesGetPeerSettings)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountResetAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountResetAuthorization) +func _RPCMessages_MessagesReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReport) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountResetAuthorization(ctx, in) + return srv.(RPCMessagesServer).MessagesReport(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountResetAuthorization", + FullMethod: "/mtproto.RPCMessages/MessagesReport", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountResetAuthorization(ctx, req.(*TLAccountResetAuthorization)) + return srv.(RPCMessagesServer).MessagesReport(ctx, req.(*TLMessagesReport)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetPassword) +func _RPCMessages_MessagesGetChats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetChats) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetPassword(ctx, in) + return srv.(RPCMessagesServer).MessagesGetChats(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetPassword", + FullMethod: "/mtproto.RPCMessages/MessagesGetChats", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetPassword(ctx, req.(*TLAccountGetPassword)) + return srv.(RPCMessagesServer).MessagesGetChats(ctx, req.(*TLMessagesGetChats)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetPasswordSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetPasswordSettings) +func _RPCMessages_MessagesGetFullChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetFullChat) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetPasswordSettings(ctx, in) + return srv.(RPCMessagesServer).MessagesGetFullChat(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetPasswordSettings", + FullMethod: "/mtproto.RPCMessages/MessagesGetFullChat", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetPasswordSettings(ctx, req.(*TLAccountGetPasswordSettings)) + return srv.(RPCMessagesServer).MessagesGetFullChat(ctx, req.(*TLMessagesGetFullChat)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountUpdatePasswordSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountUpdatePasswordSettings) +func _RPCMessages_MessagesEditChatTitle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesEditChatTitle) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountUpdatePasswordSettings(ctx, in) + return srv.(RPCMessagesServer).MessagesEditChatTitle(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountUpdatePasswordSettings", + FullMethod: "/mtproto.RPCMessages/MessagesEditChatTitle", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountUpdatePasswordSettings(ctx, req.(*TLAccountUpdatePasswordSettings)) + return srv.(RPCMessagesServer).MessagesEditChatTitle(ctx, req.(*TLMessagesEditChatTitle)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountSendConfirmPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountSendConfirmPhoneCode) +func _RPCMessages_MessagesEditChatPhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesEditChatPhoto) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountSendConfirmPhoneCode(ctx, in) + return srv.(RPCMessagesServer).MessagesEditChatPhoto(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountSendConfirmPhoneCode", + FullMethod: "/mtproto.RPCMessages/MessagesEditChatPhoto", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountSendConfirmPhoneCode(ctx, req.(*TLAccountSendConfirmPhoneCode)) + return srv.(RPCMessagesServer).MessagesEditChatPhoto(ctx, req.(*TLMessagesEditChatPhoto)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountConfirmPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountConfirmPhone) +func _RPCMessages_MessagesAddChatUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesAddChatUser) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountConfirmPhone(ctx, in) + return srv.(RPCMessagesServer).MessagesAddChatUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountConfirmPhone", + FullMethod: "/mtproto.RPCMessages/MessagesAddChatUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountConfirmPhone(ctx, req.(*TLAccountConfirmPhone)) + return srv.(RPCMessagesServer).MessagesAddChatUser(ctx, req.(*TLMessagesAddChatUser)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetTmpPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetTmpPassword) +func _RPCMessages_MessagesDeleteChatUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesDeleteChatUser) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetTmpPassword(ctx, in) + return srv.(RPCMessagesServer).MessagesDeleteChatUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetTmpPassword", + FullMethod: "/mtproto.RPCMessages/MessagesDeleteChatUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetTmpPassword(ctx, req.(*TLAccountGetTmpPassword)) + return srv.(RPCMessagesServer).MessagesDeleteChatUser(ctx, req.(*TLMessagesDeleteChatUser)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetWebAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetWebAuthorizations) +func _RPCMessages_MessagesCreateChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesCreateChat) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetWebAuthorizations(ctx, in) + return srv.(RPCMessagesServer).MessagesCreateChat(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetWebAuthorizations", + FullMethod: "/mtproto.RPCMessages/MessagesCreateChat", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetWebAuthorizations(ctx, req.(*TLAccountGetWebAuthorizations)) + return srv.(RPCMessagesServer).MessagesCreateChat(ctx, req.(*TLMessagesCreateChat)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountResetWebAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountResetWebAuthorization) +func _RPCMessages_MessagesGetDhConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetDhConfig) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountResetWebAuthorization(ctx, in) + return srv.(RPCMessagesServer).MessagesGetDhConfig(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountResetWebAuthorization", + FullMethod: "/mtproto.RPCMessages/MessagesGetDhConfig", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountResetWebAuthorization(ctx, req.(*TLAccountResetWebAuthorization)) + return srv.(RPCMessagesServer).MessagesGetDhConfig(ctx, req.(*TLMessagesGetDhConfig)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountResetWebAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountResetWebAuthorizations) +func _RPCMessages_MessagesRequestEncryption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesRequestEncryption) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountResetWebAuthorizations(ctx, in) + return srv.(RPCMessagesServer).MessagesRequestEncryption(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountResetWebAuthorizations", + FullMethod: "/mtproto.RPCMessages/MessagesRequestEncryption", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountResetWebAuthorizations(ctx, req.(*TLAccountResetWebAuthorizations)) + return srv.(RPCMessagesServer).MessagesRequestEncryption(ctx, req.(*TLMessagesRequestEncryption)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetAllSecureValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetAllSecureValues) +func _RPCMessages_MessagesAcceptEncryption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesAcceptEncryption) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetAllSecureValues(ctx, in) + return srv.(RPCMessagesServer).MessagesAcceptEncryption(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetAllSecureValues", + FullMethod: "/mtproto.RPCMessages/MessagesAcceptEncryption", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetAllSecureValues(ctx, req.(*TLAccountGetAllSecureValues)) + return srv.(RPCMessagesServer).MessagesAcceptEncryption(ctx, req.(*TLMessagesAcceptEncryption)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetSecureValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetSecureValue) +func _RPCMessages_MessagesDiscardEncryption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesDiscardEncryption) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetSecureValue(ctx, in) + return srv.(RPCMessagesServer).MessagesDiscardEncryption(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetSecureValue", + FullMethod: "/mtproto.RPCMessages/MessagesDiscardEncryption", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetSecureValue(ctx, req.(*TLAccountGetSecureValue)) + return srv.(RPCMessagesServer).MessagesDiscardEncryption(ctx, req.(*TLMessagesDiscardEncryption)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountSaveSecureValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountSaveSecureValue) +func _RPCMessages_MessagesSetEncryptedTyping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSetEncryptedTyping) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountSaveSecureValue(ctx, in) + return srv.(RPCMessagesServer).MessagesSetEncryptedTyping(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountSaveSecureValue", + FullMethod: "/mtproto.RPCMessages/MessagesSetEncryptedTyping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountSaveSecureValue(ctx, req.(*TLAccountSaveSecureValue)) + return srv.(RPCMessagesServer).MessagesSetEncryptedTyping(ctx, req.(*TLMessagesSetEncryptedTyping)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountDeleteSecureValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountDeleteSecureValue) +func _RPCMessages_MessagesReadEncryptedHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReadEncryptedHistory) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountDeleteSecureValue(ctx, in) + return srv.(RPCMessagesServer).MessagesReadEncryptedHistory(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountDeleteSecureValue", + FullMethod: "/mtproto.RPCMessages/MessagesReadEncryptedHistory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountDeleteSecureValue(ctx, req.(*TLAccountDeleteSecureValue)) + return srv.(RPCMessagesServer).MessagesReadEncryptedHistory(ctx, req.(*TLMessagesReadEncryptedHistory)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountGetAuthorizationForm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountGetAuthorizationForm) +func _RPCMessages_MessagesSendEncrypted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSendEncrypted) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountGetAuthorizationForm(ctx, in) + return srv.(RPCMessagesServer).MessagesSendEncrypted(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountGetAuthorizationForm", + FullMethod: "/mtproto.RPCMessages/MessagesSendEncrypted", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountGetAuthorizationForm(ctx, req.(*TLAccountGetAuthorizationForm)) + return srv.(RPCMessagesServer).MessagesSendEncrypted(ctx, req.(*TLMessagesSendEncrypted)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountAcceptAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountAcceptAuthorization) +func _RPCMessages_MessagesSendEncryptedFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSendEncryptedFile) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountAcceptAuthorization(ctx, in) + return srv.(RPCMessagesServer).MessagesSendEncryptedFile(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountAcceptAuthorization", + FullMethod: "/mtproto.RPCMessages/MessagesSendEncryptedFile", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountAcceptAuthorization(ctx, req.(*TLAccountAcceptAuthorization)) + return srv.(RPCMessagesServer).MessagesSendEncryptedFile(ctx, req.(*TLMessagesSendEncryptedFile)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountSendVerifyPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountSendVerifyPhoneCode) +func _RPCMessages_MessagesSendEncryptedService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSendEncryptedService) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountSendVerifyPhoneCode(ctx, in) + return srv.(RPCMessagesServer).MessagesSendEncryptedService(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountSendVerifyPhoneCode", + FullMethod: "/mtproto.RPCMessages/MessagesSendEncryptedService", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountSendVerifyPhoneCode(ctx, req.(*TLAccountSendVerifyPhoneCode)) + return srv.(RPCMessagesServer).MessagesSendEncryptedService(ctx, req.(*TLMessagesSendEncryptedService)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountVerifyPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountVerifyPhone) +func _RPCMessages_MessagesReceivedQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReceivedQueue) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountVerifyPhone(ctx, in) + return srv.(RPCMessagesServer).MessagesReceivedQueue(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountVerifyPhone", + FullMethod: "/mtproto.RPCMessages/MessagesReceivedQueue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountVerifyPhone(ctx, req.(*TLAccountVerifyPhone)) + return srv.(RPCMessagesServer).MessagesReceivedQueue(ctx, req.(*TLMessagesReceivedQueue)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountSendVerifyEmailCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountSendVerifyEmailCode) +func _RPCMessages_MessagesReportEncryptedSpam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReportEncryptedSpam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountSendVerifyEmailCode(ctx, in) + return srv.(RPCMessagesServer).MessagesReportEncryptedSpam(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountSendVerifyEmailCode", + FullMethod: "/mtproto.RPCMessages/MessagesReportEncryptedSpam", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountSendVerifyEmailCode(ctx, req.(*TLAccountSendVerifyEmailCode)) + return srv.(RPCMessagesServer).MessagesReportEncryptedSpam(ctx, req.(*TLMessagesReportEncryptedSpam)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountVerifyEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountVerifyEmail) +func _RPCMessages_MessagesReadMessageContents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReadMessageContents) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountVerifyEmail(ctx, in) + return srv.(RPCMessagesServer).MessagesReadMessageContents(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountVerifyEmail", + FullMethod: "/mtproto.RPCMessages/MessagesReadMessageContents", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountVerifyEmail(ctx, req.(*TLAccountVerifyEmail)) + return srv.(RPCMessagesServer).MessagesReadMessageContents(ctx, req.(*TLMessagesReadMessageContents)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountInitTakeoutSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountInitTakeoutSession) +func _RPCMessages_MessagesGetStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetStickers) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountInitTakeoutSession(ctx, in) + return srv.(RPCMessagesServer).MessagesGetStickers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountInitTakeoutSession", + FullMethod: "/mtproto.RPCMessages/MessagesGetStickers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountInitTakeoutSession(ctx, req.(*TLAccountInitTakeoutSession)) + return srv.(RPCMessagesServer).MessagesGetStickers(ctx, req.(*TLMessagesGetStickers)) } return interceptor(ctx, in, info, handler) } -func _RPCAccount_AccountFinishTakeoutSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLAccountFinishTakeoutSession) +func _RPCMessages_MessagesGetAllStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetAllStickers) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCAccountServer).AccountFinishTakeoutSession(ctx, in) + return srv.(RPCMessagesServer).MessagesGetAllStickers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCAccount/AccountFinishTakeoutSession", + FullMethod: "/mtproto.RPCMessages/MessagesGetAllStickers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCAccountServer).AccountFinishTakeoutSession(ctx, req.(*TLAccountFinishTakeoutSession)) + return srv.(RPCMessagesServer).MessagesGetAllStickers(ctx, req.(*TLMessagesGetAllStickers)) } return interceptor(ctx, in, info, handler) } -var _RPCAccount_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCAccount", - HandlerType: (*RPCAccountServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "account_registerDeviceLayer71", - Handler: _RPCAccount_AccountRegisterDeviceLayer71_Handler, - }, - { - MethodName: "account_unregisterDeviceLayer71", - Handler: _RPCAccount_AccountUnregisterDeviceLayer71_Handler, - }, - { - MethodName: "account_registerDevice", - Handler: _RPCAccount_AccountRegisterDevice_Handler, - }, - { - MethodName: "account_unregisterDevice", - Handler: _RPCAccount_AccountUnregisterDevice_Handler, - }, - { - MethodName: "account_updateNotifySettings", - Handler: _RPCAccount_AccountUpdateNotifySettings_Handler, - }, - { - MethodName: "account_getNotifySettings", - Handler: _RPCAccount_AccountGetNotifySettings_Handler, - }, - { - MethodName: "account_resetNotifySettings", - Handler: _RPCAccount_AccountResetNotifySettings_Handler, - }, - { - MethodName: "account_updateProfile", - Handler: _RPCAccount_AccountUpdateProfile_Handler, - }, - { - MethodName: "account_updateStatus", - Handler: _RPCAccount_AccountUpdateStatus_Handler, - }, - { - MethodName: "account_getWallPapers", - Handler: _RPCAccount_AccountGetWallPapers_Handler, - }, - { - MethodName: "account_reportPeer", - Handler: _RPCAccount_AccountReportPeer_Handler, - }, - { - MethodName: "account_checkUsername", - Handler: _RPCAccount_AccountCheckUsername_Handler, - }, - { - MethodName: "account_updateUsername", - Handler: _RPCAccount_AccountUpdateUsername_Handler, - }, - { - MethodName: "account_getPrivacy", - Handler: _RPCAccount_AccountGetPrivacy_Handler, - }, - { - MethodName: "account_setPrivacy", - Handler: _RPCAccount_AccountSetPrivacy_Handler, - }, - { - MethodName: "account_deleteAccount", - Handler: _RPCAccount_AccountDeleteAccount_Handler, - }, - { - MethodName: "account_getAccountTTL", - Handler: _RPCAccount_AccountGetAccountTTL_Handler, - }, - { - MethodName: "account_setAccountTTL", - Handler: _RPCAccount_AccountSetAccountTTL_Handler, - }, - { - MethodName: "account_sendChangePhoneCode", - Handler: _RPCAccount_AccountSendChangePhoneCode_Handler, - }, - { - MethodName: "account_changePhone", - Handler: _RPCAccount_AccountChangePhone_Handler, - }, - { - MethodName: "account_updateDeviceLocked", - Handler: _RPCAccount_AccountUpdateDeviceLocked_Handler, - }, - { - MethodName: "account_getAuthorizations", - Handler: _RPCAccount_AccountGetAuthorizations_Handler, - }, - { - MethodName: "account_resetAuthorization", - Handler: _RPCAccount_AccountResetAuthorization_Handler, - }, - { - MethodName: "account_getPassword", - Handler: _RPCAccount_AccountGetPassword_Handler, - }, - { - MethodName: "account_getPasswordSettings", - Handler: _RPCAccount_AccountGetPasswordSettings_Handler, - }, - { - MethodName: "account_updatePasswordSettings", - Handler: _RPCAccount_AccountUpdatePasswordSettings_Handler, - }, - { - MethodName: "account_sendConfirmPhoneCode", - Handler: _RPCAccount_AccountSendConfirmPhoneCode_Handler, - }, - { - MethodName: "account_confirmPhone", - Handler: _RPCAccount_AccountConfirmPhone_Handler, - }, - { - MethodName: "account_getTmpPassword", - Handler: _RPCAccount_AccountGetTmpPassword_Handler, - }, - { - MethodName: "account_getWebAuthorizations", - Handler: _RPCAccount_AccountGetWebAuthorizations_Handler, - }, - { - MethodName: "account_resetWebAuthorization", - Handler: _RPCAccount_AccountResetWebAuthorization_Handler, - }, - { - MethodName: "account_resetWebAuthorizations", - Handler: _RPCAccount_AccountResetWebAuthorizations_Handler, - }, - { - MethodName: "account_getAllSecureValues", - Handler: _RPCAccount_AccountGetAllSecureValues_Handler, - }, - { - MethodName: "account_getSecureValue", - Handler: _RPCAccount_AccountGetSecureValue_Handler, - }, - { - MethodName: "account_saveSecureValue", - Handler: _RPCAccount_AccountSaveSecureValue_Handler, - }, - { - MethodName: "account_deleteSecureValue", - Handler: _RPCAccount_AccountDeleteSecureValue_Handler, - }, - { - MethodName: "account_getAuthorizationForm", - Handler: _RPCAccount_AccountGetAuthorizationForm_Handler, - }, - { - MethodName: "account_acceptAuthorization", - Handler: _RPCAccount_AccountAcceptAuthorization_Handler, - }, - { - MethodName: "account_sendVerifyPhoneCode", - Handler: _RPCAccount_AccountSendVerifyPhoneCode_Handler, - }, - { - MethodName: "account_verifyPhone", - Handler: _RPCAccount_AccountVerifyPhone_Handler, - }, - { - MethodName: "account_sendVerifyEmailCode", - Handler: _RPCAccount_AccountSendVerifyEmailCode_Handler, - }, - { - MethodName: "account_verifyEmail", - Handler: _RPCAccount_AccountVerifyEmail_Handler, - }, - { - MethodName: "account_initTakeoutSession", - Handler: _RPCAccount_AccountInitTakeoutSession_Handler, - }, - { - MethodName: "account_finishTakeoutSession", - Handler: _RPCAccount_AccountFinishTakeoutSession_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "schema.tl.sync_service.proto", -} - -// RPCUsersClient is the client API for RPCUsers service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCUsersClient interface { - // users.getUsers#d91a548 id:Vector = Vector; - UsersGetUsers(ctx context.Context, in *TLUsersGetUsers, opts ...grpc.CallOption) (*Vector_User, error) - // users.getFullUser#ca30a5b1 id:InputUser = UserFull; - UsersGetFullUser(ctx context.Context, in *TLUsersGetFullUser, opts ...grpc.CallOption) (*UserFull, error) - // users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector = Bool; - UsersSetSecureValueErrors(ctx context.Context, in *TLUsersSetSecureValueErrors, opts ...grpc.CallOption) (*Bool, error) -} - -type rPCUsersClient struct { - cc *grpc.ClientConn -} - -func NewRPCUsersClient(cc *grpc.ClientConn) RPCUsersClient { - return &rPCUsersClient{cc} -} - -func (c *rPCUsersClient) UsersGetUsers(ctx context.Context, in *TLUsersGetUsers, opts ...grpc.CallOption) (*Vector_User, error) { - out := new(Vector_User) - err := c.cc.Invoke(ctx, "/mtproto.RPCUsers/users_getUsers", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetWebPagePreview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetWebPagePreview) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCUsersClient) UsersGetFullUser(ctx context.Context, in *TLUsersGetFullUser, opts ...grpc.CallOption) (*UserFull, error) { - out := new(UserFull) - err := c.cc.Invoke(ctx, "/mtproto.RPCUsers/users_getFullUser", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetWebPagePreview(ctx, in) } - return out, nil -} - -func (c *rPCUsersClient) UsersSetSecureValueErrors(ctx context.Context, in *TLUsersSetSecureValueErrors, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCUsers/users_setSecureValueErrors", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetWebPagePreview", } - return out, nil -} - -// RPCUsersServer is the server API for RPCUsers service. -type RPCUsersServer interface { - // users.getUsers#d91a548 id:Vector = Vector; - UsersGetUsers(context.Context, *TLUsersGetUsers) (*Vector_User, error) - // users.getFullUser#ca30a5b1 id:InputUser = UserFull; - UsersGetFullUser(context.Context, *TLUsersGetFullUser) (*UserFull, error) - // users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector = Bool; - UsersSetSecureValueErrors(context.Context, *TLUsersSetSecureValueErrors) (*Bool, error) -} - -func RegisterRPCUsersServer(s *grpc.Server, srv RPCUsersServer) { - s.RegisterService(&_RPCUsers_serviceDesc, srv) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetWebPagePreview(ctx, req.(*TLMessagesGetWebPagePreview)) + } + return interceptor(ctx, in, info, handler) } -func _RPCUsers_UsersGetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUsersGetUsers) +func _RPCMessages_MessagesExportChatInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesExportChatInvite) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCUsersServer).UsersGetUsers(ctx, in) + return srv.(RPCMessagesServer).MessagesExportChatInvite(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCUsers/UsersGetUsers", + FullMethod: "/mtproto.RPCMessages/MessagesExportChatInvite", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUsersServer).UsersGetUsers(ctx, req.(*TLUsersGetUsers)) + return srv.(RPCMessagesServer).MessagesExportChatInvite(ctx, req.(*TLMessagesExportChatInvite)) } return interceptor(ctx, in, info, handler) } -func _RPCUsers_UsersGetFullUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUsersGetFullUser) +func _RPCMessages_MessagesCheckChatInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesCheckChatInvite) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCUsersServer).UsersGetFullUser(ctx, in) + return srv.(RPCMessagesServer).MessagesCheckChatInvite(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCUsers/UsersGetFullUser", + FullMethod: "/mtproto.RPCMessages/MessagesCheckChatInvite", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUsersServer).UsersGetFullUser(ctx, req.(*TLUsersGetFullUser)) + return srv.(RPCMessagesServer).MessagesCheckChatInvite(ctx, req.(*TLMessagesCheckChatInvite)) } return interceptor(ctx, in, info, handler) } -func _RPCUsers_UsersSetSecureValueErrors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLUsersSetSecureValueErrors) +func _RPCMessages_MessagesImportChatInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesImportChatInvite) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCUsersServer).UsersSetSecureValueErrors(ctx, in) + return srv.(RPCMessagesServer).MessagesImportChatInvite(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCUsers/UsersSetSecureValueErrors", + FullMethod: "/mtproto.RPCMessages/MessagesImportChatInvite", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCUsersServer).UsersSetSecureValueErrors(ctx, req.(*TLUsersSetSecureValueErrors)) + return srv.(RPCMessagesServer).MessagesImportChatInvite(ctx, req.(*TLMessagesImportChatInvite)) } return interceptor(ctx, in, info, handler) } -var _RPCUsers_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCUsers", - HandlerType: (*RPCUsersServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "users_getUsers", - Handler: _RPCUsers_UsersGetUsers_Handler, - }, - { - MethodName: "users_getFullUser", - Handler: _RPCUsers_UsersGetFullUser_Handler, - }, - { - MethodName: "users_setSecureValueErrors", - Handler: _RPCUsers_UsersSetSecureValueErrors_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "schema.tl.sync_service.proto", -} - -// RPCBotsClient is the client API for RPCBots service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCBotsClient interface { - // bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; - BotsSendCustomRequest(ctx context.Context, in *TLBotsSendCustomRequest, opts ...grpc.CallOption) (*DataJSON, error) - // bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; - BotsAnswerWebhookJSONQuery(ctx context.Context, in *TLBotsAnswerWebhookJSONQuery, opts ...grpc.CallOption) (*Bool, error) -} - -type rPCBotsClient struct { - cc *grpc.ClientConn -} - -func NewRPCBotsClient(cc *grpc.ClientConn) RPCBotsClient { - return &rPCBotsClient{cc} -} - -func (c *rPCBotsClient) BotsSendCustomRequest(ctx context.Context, in *TLBotsSendCustomRequest, opts ...grpc.CallOption) (*DataJSON, error) { - out := new(DataJSON) - err := c.cc.Invoke(ctx, "/mtproto.RPCBots/bots_sendCustomRequest", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCBotsClient) BotsAnswerWebhookJSONQuery(ctx context.Context, in *TLBotsAnswerWebhookJSONQuery, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCBots/bots_answerWebhookJSONQuery", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RPCBotsServer is the server API for RPCBots service. -type RPCBotsServer interface { - // bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; - BotsSendCustomRequest(context.Context, *TLBotsSendCustomRequest) (*DataJSON, error) - // bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; - BotsAnswerWebhookJSONQuery(context.Context, *TLBotsAnswerWebhookJSONQuery) (*Bool, error) -} - -func RegisterRPCBotsServer(s *grpc.Server, srv RPCBotsServer) { - s.RegisterService(&_RPCBots_serviceDesc, srv) -} - -func _RPCBots_BotsSendCustomRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLBotsSendCustomRequest) +func _RPCMessages_MessagesGetStickerSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetStickerSet) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCBotsServer).BotsSendCustomRequest(ctx, in) + return srv.(RPCMessagesServer).MessagesGetStickerSet(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCBots/BotsSendCustomRequest", + FullMethod: "/mtproto.RPCMessages/MessagesGetStickerSet", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCBotsServer).BotsSendCustomRequest(ctx, req.(*TLBotsSendCustomRequest)) + return srv.(RPCMessagesServer).MessagesGetStickerSet(ctx, req.(*TLMessagesGetStickerSet)) } return interceptor(ctx, in, info, handler) } -func _RPCBots_BotsAnswerWebhookJSONQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLBotsAnswerWebhookJSONQuery) +func _RPCMessages_MessagesInstallStickerSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesInstallStickerSet) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCBotsServer).BotsAnswerWebhookJSONQuery(ctx, in) + return srv.(RPCMessagesServer).MessagesInstallStickerSet(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCBots/BotsAnswerWebhookJSONQuery", + FullMethod: "/mtproto.RPCMessages/MessagesInstallStickerSet", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCBotsServer).BotsAnswerWebhookJSONQuery(ctx, req.(*TLBotsAnswerWebhookJSONQuery)) + return srv.(RPCMessagesServer).MessagesInstallStickerSet(ctx, req.(*TLMessagesInstallStickerSet)) } return interceptor(ctx, in, info, handler) } -var _RPCBots_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCBots", - HandlerType: (*RPCBotsServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "bots_sendCustomRequest", - Handler: _RPCBots_BotsSendCustomRequest_Handler, - }, - { - MethodName: "bots_answerWebhookJSONQuery", - Handler: _RPCBots_BotsAnswerWebhookJSONQuery_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "schema.tl.sync_service.proto", -} - -// RPCMessagesClient is the client API for RPCMessages service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCMessagesClient interface { - // messages.readHistory#b04f2510 peer:InputPeer max_id:int offset:int = messages.AffectedHistory; - MessagesReadHistoryLayer2(ctx context.Context, in *TLMessagesReadHistoryLayer2, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) - // messages.getHistory#afa92846 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; - MessagesGetHistoryLayer51(ctx context.Context, in *TLMessagesGetHistoryLayer51, opts ...grpc.CallOption) (*Messages_Messages, error) - // messages.getDialogs#191ba9c5 flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int = messages.Dialogs; - MessagesGetDialogsLayer62(ctx context.Context, in *TLMessagesGetDialogsLayer62, opts ...grpc.CallOption) (*Messages_Dialogs, error) - // messages.search#f288a275 flags:# peer:InputPeer q:string from_id:flags.0?InputUser filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = messages.Messages; - MessagesSearchLayer68(ctx context.Context, in *TLMessagesSearchLayer68, opts ...grpc.CallOption) (*Messages_Messages, error) - // messages.getMessages#4222fa74 id:Vector = messages.Messages; - MessagesGetMessagesLayer71(ctx context.Context, in *TLMessagesGetMessagesLayer71, opts ...grpc.CallOption) (*Messages_Messages, error) - // messages.getMessages#63c66506 id:Vector = messages.Messages; - MessagesGetMessages(ctx context.Context, in *TLMessagesGetMessages, opts ...grpc.CallOption) (*Messages_Messages, error) - // messages.getDialogs#b098aee6 flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:int = messages.Dialogs; - MessagesGetDialogs(ctx context.Context, in *TLMessagesGetDialogs, opts ...grpc.CallOption) (*Messages_Dialogs, error) - // messages.getHistory#dcbb8260 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages; - MessagesGetHistory(ctx context.Context, in *TLMessagesGetHistory, opts ...grpc.CallOption) (*Messages_Messages, error) - // messages.search#8614ef68 flags:# peer:InputPeer q:string from_id:flags.0?InputUser filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages; - MessagesSearch(ctx context.Context, in *TLMessagesSearch, opts ...grpc.CallOption) (*Messages_Messages, error) - // messages.readHistory#e306d3a peer:InputPeer max_id:int = messages.AffectedMessages; - MessagesReadHistory(ctx context.Context, in *TLMessagesReadHistory, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) - // messages.deleteHistory#1c015b09 flags:# just_clear:flags.0?true peer:InputPeer max_id:int = messages.AffectedHistory; - MessagesDeleteHistory(ctx context.Context, in *TLMessagesDeleteHistory, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) - // messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector = messages.AffectedMessages; - MessagesDeleteMessages(ctx context.Context, in *TLMessagesDeleteMessages, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) - // messages.receivedMessages#5a954c0 max_id:int = Vector; - MessagesReceivedMessages(ctx context.Context, in *TLMessagesReceivedMessages, opts ...grpc.CallOption) (*Vector_ReceivedNotifyMessage, error) - // messages.setTyping#a3825e50 peer:InputPeer action:SendMessageAction = Bool; - MessagesSetTyping(ctx context.Context, in *TLMessagesSetTyping, opts ...grpc.CallOption) (*Bool, error) - // messages.sendMessage#fa88427a flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Updates; - MessagesSendMessage(ctx context.Context, in *TLMessagesSendMessage, opts ...grpc.CallOption) (*Updates, error) - // messages.sendMedia#b8d1262b flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Updates; - MessagesSendMedia(ctx context.Context, in *TLMessagesSendMedia, opts ...grpc.CallOption) (*Updates, error) - // messages.forwardMessages#708e0195 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true grouped:flags.9?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer = Updates; - MessagesForwardMessages(ctx context.Context, in *TLMessagesForwardMessages, opts ...grpc.CallOption) (*Updates, error) - // messages.reportSpam#cf1592db peer:InputPeer = Bool; - MessagesReportSpam(ctx context.Context, in *TLMessagesReportSpam, opts ...grpc.CallOption) (*Bool, error) - // messages.hideReportSpam#a8f1709b peer:InputPeer = Bool; - MessagesHideReportSpam(ctx context.Context, in *TLMessagesHideReportSpam, opts ...grpc.CallOption) (*Bool, error) - // messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings; - MessagesGetPeerSettings(ctx context.Context, in *TLMessagesGetPeerSettings, opts ...grpc.CallOption) (*PeerSettings, error) - // messages.report#bd82b658 peer:InputPeer id:Vector reason:ReportReason = Bool; - MessagesReport(ctx context.Context, in *TLMessagesReport, opts ...grpc.CallOption) (*Bool, error) - // messages.getChats#3c6aa187 id:Vector = messages.Chats; - MessagesGetChats(ctx context.Context, in *TLMessagesGetChats, opts ...grpc.CallOption) (*Messages_Chats, error) - // messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull; - MessagesGetFullChat(ctx context.Context, in *TLMessagesGetFullChat, opts ...grpc.CallOption) (*Messages_ChatFull, error) - // messages.editChatTitle#dc452855 chat_id:int title:string = Updates; - MessagesEditChatTitle(ctx context.Context, in *TLMessagesEditChatTitle, opts ...grpc.CallOption) (*Updates, error) - // messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates; - MessagesEditChatPhoto(ctx context.Context, in *TLMessagesEditChatPhoto, opts ...grpc.CallOption) (*Updates, error) - // messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates; - MessagesAddChatUser(ctx context.Context, in *TLMessagesAddChatUser, opts ...grpc.CallOption) (*Updates, error) - // messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates; - MessagesDeleteChatUser(ctx context.Context, in *TLMessagesDeleteChatUser, opts ...grpc.CallOption) (*Updates, error) - // messages.createChat#9cb126e users:Vector title:string = Updates; - MessagesCreateChat(ctx context.Context, in *TLMessagesCreateChat, opts ...grpc.CallOption) (*Updates, error) - // messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig; - MessagesGetDhConfig(ctx context.Context, in *TLMessagesGetDhConfig, opts ...grpc.CallOption) (*Messages_DhConfig, error) - // messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat; - MessagesRequestEncryption(ctx context.Context, in *TLMessagesRequestEncryption, opts ...grpc.CallOption) (*EncryptedChat, error) - // messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat; - MessagesAcceptEncryption(ctx context.Context, in *TLMessagesAcceptEncryption, opts ...grpc.CallOption) (*EncryptedChat, error) - // messages.discardEncryption#edd923c5 chat_id:int = Bool; - MessagesDiscardEncryption(ctx context.Context, in *TLMessagesDiscardEncryption, opts ...grpc.CallOption) (*Bool, error) - // messages.setEncryptedTyping#791451ed peer:InputEncryptedChat typing:Bool = Bool; - MessagesSetEncryptedTyping(ctx context.Context, in *TLMessagesSetEncryptedTyping, opts ...grpc.CallOption) (*Bool, error) - // messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool; - MessagesReadEncryptedHistory(ctx context.Context, in *TLMessagesReadEncryptedHistory, opts ...grpc.CallOption) (*Bool, error) - // messages.sendEncrypted#a9776773 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage; - MessagesSendEncrypted(ctx context.Context, in *TLMessagesSendEncrypted, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) - // messages.sendEncryptedFile#9a901b66 peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage; - MessagesSendEncryptedFile(ctx context.Context, in *TLMessagesSendEncryptedFile, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) - // messages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage; - MessagesSendEncryptedService(ctx context.Context, in *TLMessagesSendEncryptedService, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) - // messages.receivedQueue#55a5bb66 max_qts:int = Vector; - MessagesReceivedQueue(ctx context.Context, in *TLMessagesReceivedQueue, opts ...grpc.CallOption) (*VectorLong, error) - // messages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool; - MessagesReportEncryptedSpam(ctx context.Context, in *TLMessagesReportEncryptedSpam, opts ...grpc.CallOption) (*Bool, error) - // messages.readMessageContents#36a73f77 id:Vector = messages.AffectedMessages; - MessagesReadMessageContents(ctx context.Context, in *TLMessagesReadMessageContents, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) - // messages.getStickers#43d4f2c emoticon:string hash:int = messages.Stickers; - MessagesGetStickers(ctx context.Context, in *TLMessagesGetStickers, opts ...grpc.CallOption) (*Messages_Stickers, error) - // messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers; - MessagesGetAllStickers(ctx context.Context, in *TLMessagesGetAllStickers, opts ...grpc.CallOption) (*Messages_AllStickers, error) - // messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector = MessageMedia; - MessagesGetWebPagePreview(ctx context.Context, in *TLMessagesGetWebPagePreview, opts ...grpc.CallOption) (*MessageMedia, error) - // messages.exportChatInvite#7d885289 chat_id:int = ExportedChatInvite; - MessagesExportChatInvite(ctx context.Context, in *TLMessagesExportChatInvite, opts ...grpc.CallOption) (*ExportedChatInvite, error) - // messages.checkChatInvite#3eadb1bb hash:string = ChatInvite; - MessagesCheckChatInvite(ctx context.Context, in *TLMessagesCheckChatInvite, opts ...grpc.CallOption) (*ChatInvite, error) - // messages.importChatInvite#6c50051c hash:string = Updates; - MessagesImportChatInvite(ctx context.Context, in *TLMessagesImportChatInvite, opts ...grpc.CallOption) (*Updates, error) - // messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet; - MessagesGetStickerSet(ctx context.Context, in *TLMessagesGetStickerSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) - // messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult; - MessagesInstallStickerSet(ctx context.Context, in *TLMessagesInstallStickerSet, opts ...grpc.CallOption) (*Messages_StickerSetInstallResult, error) - // messages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool; - MessagesUninstallStickerSet(ctx context.Context, in *TLMessagesUninstallStickerSet, opts ...grpc.CallOption) (*Bool, error) - // messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates; - MessagesStartBot(ctx context.Context, in *TLMessagesStartBot, opts ...grpc.CallOption) (*Updates, error) - // messages.getMessagesViews#c4c8a55d peer:InputPeer id:Vector increment:Bool = Vector; - MessagesGetMessagesViews(ctx context.Context, in *TLMessagesGetMessagesViews, opts ...grpc.CallOption) (*VectorInt, error) - // messages.toggleChatAdmins#ec8bd9e1 chat_id:int enabled:Bool = Updates; - MessagesToggleChatAdmins(ctx context.Context, in *TLMessagesToggleChatAdmins, opts ...grpc.CallOption) (*Updates, error) - // messages.editChatAdmin#a9e69f2e chat_id:int user_id:InputUser is_admin:Bool = Bool; - MessagesEditChatAdmin(ctx context.Context, in *TLMessagesEditChatAdmin, opts ...grpc.CallOption) (*Bool, error) - // messages.migrateChat#15a3b8e3 chat_id:int = Updates; - MessagesMigrateChat(ctx context.Context, in *TLMessagesMigrateChat, opts ...grpc.CallOption) (*Updates, error) - // messages.searchGlobal#9e3cacb0 q:string offset_date:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; - MessagesSearchGlobal(ctx context.Context, in *TLMessagesSearchGlobal, opts ...grpc.CallOption) (*Messages_Messages, error) - // messages.reorderStickerSets#78337739 flags:# masks:flags.0?true order:Vector = Bool; - MessagesReorderStickerSets(ctx context.Context, in *TLMessagesReorderStickerSets, opts ...grpc.CallOption) (*Bool, error) - // messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document; - MessagesGetDocumentByHash(ctx context.Context, in *TLMessagesGetDocumentByHash, opts ...grpc.CallOption) (*Document, error) - // messages.searchGifs#bf9a776b q:string offset:int = messages.FoundGifs; - MessagesSearchGifs(ctx context.Context, in *TLMessagesSearchGifs, opts ...grpc.CallOption) (*Messages_FoundGifs, error) - // messages.getSavedGifs#83bf3d52 hash:int = messages.SavedGifs; - MessagesGetSavedGifs(ctx context.Context, in *TLMessagesGetSavedGifs, opts ...grpc.CallOption) (*Messages_SavedGifs, error) - // messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; - MessagesSaveGif(ctx context.Context, in *TLMessagesSaveGif, opts ...grpc.CallOption) (*Bool, error) - // messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults; - MessagesGetInlineBotResults(ctx context.Context, in *TLMessagesGetInlineBotResults, opts ...grpc.CallOption) (*Messages_BotResults, error) - // messages.setInlineBotResults#eb5ea206 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM = Bool; - MessagesSetInlineBotResults(ctx context.Context, in *TLMessagesSetInlineBotResults, opts ...grpc.CallOption) (*Bool, error) - // messages.sendInlineBotResult#b16e06fe flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string = Updates; - MessagesSendInlineBotResult(ctx context.Context, in *TLMessagesSendInlineBotResult, opts ...grpc.CallOption) (*Updates, error) - // messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData; - MessagesGetMessageEditData(ctx context.Context, in *TLMessagesGetMessageEditData, opts ...grpc.CallOption) (*Messages_MessageEditData, error) - // messages.editMessage#c000e4c8 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector geo_point:flags.13?InputGeoPoint = Updates; - MessagesEditMessage(ctx context.Context, in *TLMessagesEditMessage, opts ...grpc.CallOption) (*Updates, error) - // messages.editInlineBotMessage#adc3e828 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector geo_point:flags.13?InputGeoPoint = Bool; - MessagesEditInlineBotMessage(ctx context.Context, in *TLMessagesEditInlineBotMessage, opts ...grpc.CallOption) (*Bool, error) - // messages.getBotCallbackAnswer#810a9fec flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes = messages.BotCallbackAnswer; - MessagesGetBotCallbackAnswer(ctx context.Context, in *TLMessagesGetBotCallbackAnswer, opts ...grpc.CallOption) (*Messages_BotCallbackAnswer, error) - // messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool; - MessagesSetBotCallbackAnswer(ctx context.Context, in *TLMessagesSetBotCallbackAnswer, opts ...grpc.CallOption) (*Bool, error) - // messages.getPeerDialogs#e470bcfd peers:Vector = messages.PeerDialogs; - MessagesGetPeerDialogs(ctx context.Context, in *TLMessagesGetPeerDialogs, opts ...grpc.CallOption) (*Messages_PeerDialogs, error) - // messages.saveDraft#bc39e14b flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int peer:InputPeer message:string entities:flags.3?Vector = Bool; - MessagesSaveDraft(ctx context.Context, in *TLMessagesSaveDraft, opts ...grpc.CallOption) (*Bool, error) - // messages.getAllDrafts#6a3f8d65 = Updates; - MessagesGetAllDrafts(ctx context.Context, in *TLMessagesGetAllDrafts, opts ...grpc.CallOption) (*Updates, error) - // messages.getFeaturedStickers#2dacca4f hash:int = messages.FeaturedStickers; - MessagesGetFeaturedStickers(ctx context.Context, in *TLMessagesGetFeaturedStickers, opts ...grpc.CallOption) (*Messages_FeaturedStickers, error) - // messages.readFeaturedStickers#5b118126 id:Vector = Bool; - MessagesReadFeaturedStickers(ctx context.Context, in *TLMessagesReadFeaturedStickers, opts ...grpc.CallOption) (*Bool, error) - // messages.getRecentStickers#5ea192c9 flags:# attached:flags.0?true hash:int = messages.RecentStickers; - MessagesGetRecentStickers(ctx context.Context, in *TLMessagesGetRecentStickers, opts ...grpc.CallOption) (*Messages_RecentStickers, error) - // messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool; - MessagesSaveRecentSticker(ctx context.Context, in *TLMessagesSaveRecentSticker, opts ...grpc.CallOption) (*Bool, error) - // messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool; - MessagesClearRecentStickers(ctx context.Context, in *TLMessagesClearRecentStickers, opts ...grpc.CallOption) (*Bool, error) - // messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers; - MessagesGetArchivedStickers(ctx context.Context, in *TLMessagesGetArchivedStickers, opts ...grpc.CallOption) (*Messages_ArchivedStickers, error) - // messages.getMaskStickers#65b8c79f hash:int = messages.AllStickers; - MessagesGetMaskStickers(ctx context.Context, in *TLMessagesGetMaskStickers, opts ...grpc.CallOption) (*Messages_AllStickers, error) - // messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector; - MessagesGetAttachedStickers(ctx context.Context, in *TLMessagesGetAttachedStickers, opts ...grpc.CallOption) (*Vector_StickerSetCovered, error) - // messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates; - MessagesSetGameScore(ctx context.Context, in *TLMessagesSetGameScore, opts ...grpc.CallOption) (*Updates, error) - // messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool; - MessagesSetInlineGameScore(ctx context.Context, in *TLMessagesSetInlineGameScore, opts ...grpc.CallOption) (*Bool, error) - // messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores; - MessagesGetGameHighScores(ctx context.Context, in *TLMessagesGetGameHighScores, opts ...grpc.CallOption) (*Messages_HighScores, error) - // messages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores; - MessagesGetInlineGameHighScores(ctx context.Context, in *TLMessagesGetInlineGameHighScores, opts ...grpc.CallOption) (*Messages_HighScores, error) - // messages.getCommonChats#d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats; - MessagesGetCommonChats(ctx context.Context, in *TLMessagesGetCommonChats, opts ...grpc.CallOption) (*Messages_Chats, error) - // messages.getAllChats#eba80ff0 except_ids:Vector = messages.Chats; - MessagesGetAllChats(ctx context.Context, in *TLMessagesGetAllChats, opts ...grpc.CallOption) (*Messages_Chats, error) - // messages.getWebPage#32ca8f91 url:string hash:int = WebPage; - MessagesGetWebPage(ctx context.Context, in *TLMessagesGetWebPage, opts ...grpc.CallOption) (*WebPage, error) - // messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool; - MessagesToggleDialogPin(ctx context.Context, in *TLMessagesToggleDialogPin, opts ...grpc.CallOption) (*Bool, error) - // messages.reorderPinnedDialogs#5b51d63f flags:# force:flags.0?true order:Vector = Bool; - MessagesReorderPinnedDialogs(ctx context.Context, in *TLMessagesReorderPinnedDialogs, opts ...grpc.CallOption) (*Bool, error) - // messages.getPinnedDialogs#e254d64e = messages.PeerDialogs; - MessagesGetPinnedDialogs(ctx context.Context, in *TLMessagesGetPinnedDialogs, opts ...grpc.CallOption) (*Messages_PeerDialogs, error) - // messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; - MessagesSetBotShippingResults(ctx context.Context, in *TLMessagesSetBotShippingResults, opts ...grpc.CallOption) (*Bool, error) - // messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; - MessagesSetBotPrecheckoutResults(ctx context.Context, in *TLMessagesSetBotPrecheckoutResults, opts ...grpc.CallOption) (*Bool, error) - // messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia; - MessagesUploadMedia(ctx context.Context, in *TLMessagesUploadMedia, opts ...grpc.CallOption) (*MessageMedia, error) - // messages.sendScreenshotNotification#c97df020 peer:InputPeer reply_to_msg_id:int random_id:long = Updates; - MessagesSendScreenshotNotification(ctx context.Context, in *TLMessagesSendScreenshotNotification, opts ...grpc.CallOption) (*Updates, error) - // messages.getFavedStickers#21ce0b0e hash:int = messages.FavedStickers; - MessagesGetFavedStickers(ctx context.Context, in *TLMessagesGetFavedStickers, opts ...grpc.CallOption) (*Messages_FavedStickers, error) - // messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool; - MessagesFaveSticker(ctx context.Context, in *TLMessagesFaveSticker, opts ...grpc.CallOption) (*Bool, error) - // messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; - MessagesGetUnreadMentions(ctx context.Context, in *TLMessagesGetUnreadMentions, opts ...grpc.CallOption) (*Messages_Messages, error) - // messages.readMentions#f0189d3 peer:InputPeer = messages.AffectedHistory; - MessagesReadMentions(ctx context.Context, in *TLMessagesReadMentions, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) - // messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages; - MessagesGetRecentLocations(ctx context.Context, in *TLMessagesGetRecentLocations, opts ...grpc.CallOption) (*Messages_Messages, error) - // messages.sendMultiMedia#2095512f flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector = Updates; - MessagesSendMultiMedia(ctx context.Context, in *TLMessagesSendMultiMedia, opts ...grpc.CallOption) (*Updates, error) - // messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile; - MessagesUploadEncryptedFile(ctx context.Context, in *TLMessagesUploadEncryptedFile, opts ...grpc.CallOption) (*EncryptedFile, error) - // messages.searchStickerSets#c2b7d08b flags:# exclude_featured:flags.0?true q:string hash:int = messages.FoundStickerSets; - MessagesSearchStickerSets(ctx context.Context, in *TLMessagesSearchStickerSets, opts ...grpc.CallOption) (*Messages_FoundStickerSets, error) - // messages.getSplitRanges#1cff7e08 = Vector; - MessagesGetSplitRanges(ctx context.Context, in *TLMessagesGetSplitRanges, opts ...grpc.CallOption) (*Vector_MessageRange, error) - // messages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogPeer = Bool; - MessagesMarkDialogUnread(ctx context.Context, in *TLMessagesMarkDialogUnread, opts ...grpc.CallOption) (*Bool, error) - // messages.getDialogUnreadMarks#22e24e22 = Vector; - MessagesGetDialogUnreadMarks(ctx context.Context, in *TLMessagesGetDialogUnreadMarks, opts ...grpc.CallOption) (*Vector_DialogPeer, error) - // messages.clearAllDrafts#7e58ee9c = Bool; - MessagesClearAllDrafts(ctx context.Context, in *TLMessagesClearAllDrafts, opts ...grpc.CallOption) (*Bool, error) -} - -type rPCMessagesClient struct { - cc *grpc.ClientConn -} - -func NewRPCMessagesClient(cc *grpc.ClientConn) RPCMessagesClient { - return &rPCMessagesClient{cc} -} - -func (c *rPCMessagesClient) MessagesReadHistoryLayer2(ctx context.Context, in *TLMessagesReadHistoryLayer2, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) { - out := new(Messages_AffectedHistory) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readHistoryLayer2", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesUninstallStickerSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesUninstallStickerSet) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetHistoryLayer51(ctx context.Context, in *TLMessagesGetHistoryLayer51, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getHistoryLayer51", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesUninstallStickerSet(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesUninstallStickerSet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesUninstallStickerSet(ctx, req.(*TLMessagesUninstallStickerSet)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetDialogsLayer62(ctx context.Context, in *TLMessagesGetDialogsLayer62, opts ...grpc.CallOption) (*Messages_Dialogs, error) { - out := new(Messages_Dialogs) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDialogsLayer62", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesStartBot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesStartBot) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesStartBot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesStartBot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesStartBot(ctx, req.(*TLMessagesStartBot)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSearchLayer68(ctx context.Context, in *TLMessagesSearchLayer68, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_searchLayer68", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetMessagesViews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetMessagesViews) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetMessagesViews(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetMessagesViews", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetMessagesViews(ctx, req.(*TLMessagesGetMessagesViews)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetMessagesLayer71(ctx context.Context, in *TLMessagesGetMessagesLayer71, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMessagesLayer71", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesToggleChatAdmins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesToggleChatAdmins) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesToggleChatAdmins(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesToggleChatAdmins", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesToggleChatAdmins(ctx, req.(*TLMessagesToggleChatAdmins)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetMessages(ctx context.Context, in *TLMessagesGetMessages, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMessages", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesEditChatAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesEditChatAdmin) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesEditChatAdmin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesEditChatAdmin", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesEditChatAdmin(ctx, req.(*TLMessagesEditChatAdmin)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetDialogs(ctx context.Context, in *TLMessagesGetDialogs, opts ...grpc.CallOption) (*Messages_Dialogs, error) { - out := new(Messages_Dialogs) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDialogs", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesMigrateChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesMigrateChat) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesMigrateChat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesMigrateChat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesMigrateChat(ctx, req.(*TLMessagesMigrateChat)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetHistory(ctx context.Context, in *TLMessagesGetHistory, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getHistory", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSearchGlobal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSearchGlobal) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSearchGlobal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSearchGlobal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSearchGlobal(ctx, req.(*TLMessagesSearchGlobal)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSearch(ctx context.Context, in *TLMessagesSearch, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_search", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesReorderStickerSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReorderStickerSets) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesReorderStickerSets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesReorderStickerSets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesReorderStickerSets(ctx, req.(*TLMessagesReorderStickerSets)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReadHistory(ctx context.Context, in *TLMessagesReadHistory, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) { - out := new(Messages_AffectedMessages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readHistory", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetDocumentByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetDocumentByHash) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetDocumentByHash(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetDocumentByHash", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetDocumentByHash(ctx, req.(*TLMessagesGetDocumentByHash)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesDeleteHistory(ctx context.Context, in *TLMessagesDeleteHistory, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) { - out := new(Messages_AffectedHistory) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_deleteHistory", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSearchGifs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSearchGifs) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSearchGifs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSearchGifs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSearchGifs(ctx, req.(*TLMessagesSearchGifs)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesDeleteMessages(ctx context.Context, in *TLMessagesDeleteMessages, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) { - out := new(Messages_AffectedMessages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_deleteMessages", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetSavedGifs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetSavedGifs) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetSavedGifs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetSavedGifs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetSavedGifs(ctx, req.(*TLMessagesGetSavedGifs)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReceivedMessages(ctx context.Context, in *TLMessagesReceivedMessages, opts ...grpc.CallOption) (*Vector_ReceivedNotifyMessage, error) { - out := new(Vector_ReceivedNotifyMessage) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_receivedMessages", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSaveGif_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSaveGif) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSaveGif(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSaveGif", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSaveGif(ctx, req.(*TLMessagesSaveGif)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSetTyping(ctx context.Context, in *TLMessagesSetTyping, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setTyping", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetInlineBotResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetInlineBotResults) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetInlineBotResults(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetInlineBotResults", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetInlineBotResults(ctx, req.(*TLMessagesGetInlineBotResults)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSendMessage(ctx context.Context, in *TLMessagesSendMessage, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendMessage", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSetInlineBotResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSetInlineBotResults) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSetInlineBotResults(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSetInlineBotResults", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSetInlineBotResults(ctx, req.(*TLMessagesSetInlineBotResults)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSendMedia(ctx context.Context, in *TLMessagesSendMedia, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendMedia", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSendInlineBotResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSendInlineBotResult) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSendInlineBotResult(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSendInlineBotResult", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSendInlineBotResult(ctx, req.(*TLMessagesSendInlineBotResult)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesForwardMessages(ctx context.Context, in *TLMessagesForwardMessages, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_forwardMessages", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetMessageEditData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetMessageEditData) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetMessageEditData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetMessageEditData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetMessageEditData(ctx, req.(*TLMessagesGetMessageEditData)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReportSpam(ctx context.Context, in *TLMessagesReportSpam, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_reportSpam", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesEditMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesEditMessage) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesEditMessage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesEditMessage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesEditMessage(ctx, req.(*TLMessagesEditMessage)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesHideReportSpam(ctx context.Context, in *TLMessagesHideReportSpam, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_hideReportSpam", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesEditInlineBotMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesEditInlineBotMessage) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesEditInlineBotMessage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesEditInlineBotMessage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesEditInlineBotMessage(ctx, req.(*TLMessagesEditInlineBotMessage)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetPeerSettings(ctx context.Context, in *TLMessagesGetPeerSettings, opts ...grpc.CallOption) (*PeerSettings, error) { - out := new(PeerSettings) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getPeerSettings", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetBotCallbackAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetBotCallbackAnswer) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetBotCallbackAnswer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetBotCallbackAnswer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetBotCallbackAnswer(ctx, req.(*TLMessagesGetBotCallbackAnswer)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReport(ctx context.Context, in *TLMessagesReport, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_report", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSetBotCallbackAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSetBotCallbackAnswer) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSetBotCallbackAnswer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSetBotCallbackAnswer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSetBotCallbackAnswer(ctx, req.(*TLMessagesSetBotCallbackAnswer)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetChats(ctx context.Context, in *TLMessagesGetChats, opts ...grpc.CallOption) (*Messages_Chats, error) { - out := new(Messages_Chats) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getChats", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetPeerDialogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetPeerDialogs) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetPeerDialogs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetPeerDialogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetPeerDialogs(ctx, req.(*TLMessagesGetPeerDialogs)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetFullChat(ctx context.Context, in *TLMessagesGetFullChat, opts ...grpc.CallOption) (*Messages_ChatFull, error) { - out := new(Messages_ChatFull) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getFullChat", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSaveDraft_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSaveDraft) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSaveDraft(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSaveDraft", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSaveDraft(ctx, req.(*TLMessagesSaveDraft)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesEditChatTitle(ctx context.Context, in *TLMessagesEditChatTitle, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editChatTitle", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetAllDrafts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetAllDrafts) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetAllDrafts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetAllDrafts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetAllDrafts(ctx, req.(*TLMessagesGetAllDrafts)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesEditChatPhoto(ctx context.Context, in *TLMessagesEditChatPhoto, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editChatPhoto", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetFeaturedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetFeaturedStickers) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetFeaturedStickers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetFeaturedStickers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetFeaturedStickers(ctx, req.(*TLMessagesGetFeaturedStickers)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesAddChatUser(ctx context.Context, in *TLMessagesAddChatUser, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_addChatUser", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesReadFeaturedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReadFeaturedStickers) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesReadFeaturedStickers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesReadFeaturedStickers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesReadFeaturedStickers(ctx, req.(*TLMessagesReadFeaturedStickers)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesDeleteChatUser(ctx context.Context, in *TLMessagesDeleteChatUser, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_deleteChatUser", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetRecentStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetRecentStickers) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetRecentStickers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetRecentStickers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetRecentStickers(ctx, req.(*TLMessagesGetRecentStickers)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesCreateChat(ctx context.Context, in *TLMessagesCreateChat, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_createChat", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSaveRecentSticker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSaveRecentSticker) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSaveRecentSticker(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSaveRecentSticker", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSaveRecentSticker(ctx, req.(*TLMessagesSaveRecentSticker)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetDhConfig(ctx context.Context, in *TLMessagesGetDhConfig, opts ...grpc.CallOption) (*Messages_DhConfig, error) { - out := new(Messages_DhConfig) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDhConfig", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesClearRecentStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesClearRecentStickers) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCMessagesClient) MessagesRequestEncryption(ctx context.Context, in *TLMessagesRequestEncryption, opts ...grpc.CallOption) (*EncryptedChat, error) { - out := new(EncryptedChat) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_requestEncryption", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesClearRecentStickers(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesClearRecentStickers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesClearRecentStickers(ctx, req.(*TLMessagesClearRecentStickers)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesAcceptEncryption(ctx context.Context, in *TLMessagesAcceptEncryption, opts ...grpc.CallOption) (*EncryptedChat, error) { - out := new(EncryptedChat) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_acceptEncryption", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetArchivedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetArchivedStickers) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetArchivedStickers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetArchivedStickers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetArchivedStickers(ctx, req.(*TLMessagesGetArchivedStickers)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesDiscardEncryption(ctx context.Context, in *TLMessagesDiscardEncryption, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_discardEncryption", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetMaskStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetMaskStickers) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetMaskStickers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetMaskStickers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetMaskStickers(ctx, req.(*TLMessagesGetMaskStickers)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSetEncryptedTyping(ctx context.Context, in *TLMessagesSetEncryptedTyping, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setEncryptedTyping", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetAttachedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetAttachedStickers) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetAttachedStickers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetAttachedStickers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetAttachedStickers(ctx, req.(*TLMessagesGetAttachedStickers)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReadEncryptedHistory(ctx context.Context, in *TLMessagesReadEncryptedHistory, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readEncryptedHistory", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSetGameScore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSetGameScore) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSetGameScore(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSetGameScore", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSetGameScore(ctx, req.(*TLMessagesSetGameScore)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSendEncrypted(ctx context.Context, in *TLMessagesSendEncrypted, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) { - out := new(Messages_SentEncryptedMessage) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendEncrypted", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSetInlineGameScore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSetInlineGameScore) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSetInlineGameScore(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSetInlineGameScore", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSetInlineGameScore(ctx, req.(*TLMessagesSetInlineGameScore)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSendEncryptedFile(ctx context.Context, in *TLMessagesSendEncryptedFile, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) { - out := new(Messages_SentEncryptedMessage) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendEncryptedFile", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetGameHighScores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetGameHighScores) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetGameHighScores(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetGameHighScores", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetGameHighScores(ctx, req.(*TLMessagesGetGameHighScores)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSendEncryptedService(ctx context.Context, in *TLMessagesSendEncryptedService, opts ...grpc.CallOption) (*Messages_SentEncryptedMessage, error) { - out := new(Messages_SentEncryptedMessage) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendEncryptedService", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetInlineGameHighScores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetInlineGameHighScores) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetInlineGameHighScores(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetInlineGameHighScores", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetInlineGameHighScores(ctx, req.(*TLMessagesGetInlineGameHighScores)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReceivedQueue(ctx context.Context, in *TLMessagesReceivedQueue, opts ...grpc.CallOption) (*VectorLong, error) { - out := new(VectorLong) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_receivedQueue", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetCommonChats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetCommonChats) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetCommonChats(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetCommonChats", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetCommonChats(ctx, req.(*TLMessagesGetCommonChats)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReportEncryptedSpam(ctx context.Context, in *TLMessagesReportEncryptedSpam, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_reportEncryptedSpam", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetAllChats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetAllChats) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetAllChats(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetAllChats", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetAllChats(ctx, req.(*TLMessagesGetAllChats)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReadMessageContents(ctx context.Context, in *TLMessagesReadMessageContents, opts ...grpc.CallOption) (*Messages_AffectedMessages, error) { - out := new(Messages_AffectedMessages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readMessageContents", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetWebPage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetWebPage) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetWebPage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetWebPage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetWebPage(ctx, req.(*TLMessagesGetWebPage)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetStickers(ctx context.Context, in *TLMessagesGetStickers, opts ...grpc.CallOption) (*Messages_Stickers, error) { - out := new(Messages_Stickers) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getStickers", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesToggleDialogPin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesToggleDialogPin) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesToggleDialogPin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesToggleDialogPin", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesToggleDialogPin(ctx, req.(*TLMessagesToggleDialogPin)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetAllStickers(ctx context.Context, in *TLMessagesGetAllStickers, opts ...grpc.CallOption) (*Messages_AllStickers, error) { - out := new(Messages_AllStickers) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getAllStickers", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesReorderPinnedDialogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReorderPinnedDialogs) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesReorderPinnedDialogs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesReorderPinnedDialogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesReorderPinnedDialogs(ctx, req.(*TLMessagesReorderPinnedDialogs)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetWebPagePreview(ctx context.Context, in *TLMessagesGetWebPagePreview, opts ...grpc.CallOption) (*MessageMedia, error) { - out := new(MessageMedia) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getWebPagePreview", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetPinnedDialogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetPinnedDialogs) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCMessagesClient) MessagesExportChatInvite(ctx context.Context, in *TLMessagesExportChatInvite, opts ...grpc.CallOption) (*ExportedChatInvite, error) { - out := new(ExportedChatInvite) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_exportChatInvite", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetPinnedDialogs(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetPinnedDialogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetPinnedDialogs(ctx, req.(*TLMessagesGetPinnedDialogs)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesCheckChatInvite(ctx context.Context, in *TLMessagesCheckChatInvite, opts ...grpc.CallOption) (*ChatInvite, error) { - out := new(ChatInvite) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_checkChatInvite", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSetBotShippingResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSetBotShippingResults) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSetBotShippingResults(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSetBotShippingResults", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSetBotShippingResults(ctx, req.(*TLMessagesSetBotShippingResults)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesImportChatInvite(ctx context.Context, in *TLMessagesImportChatInvite, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_importChatInvite", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSetBotPrecheckoutResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSetBotPrecheckoutResults) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSetBotPrecheckoutResults(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSetBotPrecheckoutResults", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSetBotPrecheckoutResults(ctx, req.(*TLMessagesSetBotPrecheckoutResults)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetStickerSet(ctx context.Context, in *TLMessagesGetStickerSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) { - out := new(Messages_StickerSet) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getStickerSet", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesUploadMedia_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesUploadMedia) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesUploadMedia(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesUploadMedia", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesUploadMedia(ctx, req.(*TLMessagesUploadMedia)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesInstallStickerSet(ctx context.Context, in *TLMessagesInstallStickerSet, opts ...grpc.CallOption) (*Messages_StickerSetInstallResult, error) { - out := new(Messages_StickerSetInstallResult) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_installStickerSet", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSendScreenshotNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSendScreenshotNotification) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSendScreenshotNotification(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSendScreenshotNotification", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSendScreenshotNotification(ctx, req.(*TLMessagesSendScreenshotNotification)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesUninstallStickerSet(ctx context.Context, in *TLMessagesUninstallStickerSet, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_uninstallStickerSet", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetFavedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetFavedStickers) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetFavedStickers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetFavedStickers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetFavedStickers(ctx, req.(*TLMessagesGetFavedStickers)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesStartBot(ctx context.Context, in *TLMessagesStartBot, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_startBot", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesFaveSticker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesFaveSticker) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesFaveSticker(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesFaveSticker", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesFaveSticker(ctx, req.(*TLMessagesFaveSticker)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetMessagesViews(ctx context.Context, in *TLMessagesGetMessagesViews, opts ...grpc.CallOption) (*VectorInt, error) { - out := new(VectorInt) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMessagesViews", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetUnreadMentions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetUnreadMentions) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetUnreadMentions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetUnreadMentions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetUnreadMentions(ctx, req.(*TLMessagesGetUnreadMentions)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesToggleChatAdmins(ctx context.Context, in *TLMessagesToggleChatAdmins, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_toggleChatAdmins", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesReadMentions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesReadMentions) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesReadMentions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesReadMentions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesReadMentions(ctx, req.(*TLMessagesReadMentions)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesEditChatAdmin(ctx context.Context, in *TLMessagesEditChatAdmin, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editChatAdmin", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetRecentLocations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetRecentLocations) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetRecentLocations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetRecentLocations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetRecentLocations(ctx, req.(*TLMessagesGetRecentLocations)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesMigrateChat(ctx context.Context, in *TLMessagesMigrateChat, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_migrateChat", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSendMultiMedia_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSendMultiMedia) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSendMultiMedia(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSendMultiMedia", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSendMultiMedia(ctx, req.(*TLMessagesSendMultiMedia)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSearchGlobal(ctx context.Context, in *TLMessagesSearchGlobal, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_searchGlobal", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesUploadEncryptedFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesUploadEncryptedFile) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesUploadEncryptedFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesUploadEncryptedFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesUploadEncryptedFile(ctx, req.(*TLMessagesUploadEncryptedFile)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReorderStickerSets(ctx context.Context, in *TLMessagesReorderStickerSets, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_reorderStickerSets", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesSearchStickerSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesSearchStickerSets) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesSearchStickerSets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesSearchStickerSets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesSearchStickerSets(ctx, req.(*TLMessagesSearchStickerSets)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetDocumentByHash(ctx context.Context, in *TLMessagesGetDocumentByHash, opts ...grpc.CallOption) (*Document, error) { - out := new(Document) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDocumentByHash", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetSplitRanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetSplitRanges) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSearchGifs(ctx context.Context, in *TLMessagesSearchGifs, opts ...grpc.CallOption) (*Messages_FoundGifs, error) { - out := new(Messages_FoundGifs) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_searchGifs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetSavedGifs(ctx context.Context, in *TLMessagesGetSavedGifs, opts ...grpc.CallOption) (*Messages_SavedGifs, error) { - out := new(Messages_SavedGifs) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getSavedGifs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSaveGif(ctx context.Context, in *TLMessagesSaveGif, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_saveGif", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetInlineBotResults(ctx context.Context, in *TLMessagesGetInlineBotResults, opts ...grpc.CallOption) (*Messages_BotResults, error) { - out := new(Messages_BotResults) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getInlineBotResults", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSetInlineBotResults(ctx context.Context, in *TLMessagesSetInlineBotResults, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setInlineBotResults", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSendInlineBotResult(ctx context.Context, in *TLMessagesSendInlineBotResult, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendInlineBotResult", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetMessageEditData(ctx context.Context, in *TLMessagesGetMessageEditData, opts ...grpc.CallOption) (*Messages_MessageEditData, error) { - out := new(Messages_MessageEditData) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMessageEditData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesEditMessage(ctx context.Context, in *TLMessagesEditMessage, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editMessage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesEditInlineBotMessage(ctx context.Context, in *TLMessagesEditInlineBotMessage, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_editInlineBotMessage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetBotCallbackAnswer(ctx context.Context, in *TLMessagesGetBotCallbackAnswer, opts ...grpc.CallOption) (*Messages_BotCallbackAnswer, error) { - out := new(Messages_BotCallbackAnswer) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getBotCallbackAnswer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSetBotCallbackAnswer(ctx context.Context, in *TLMessagesSetBotCallbackAnswer, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setBotCallbackAnswer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetPeerDialogs(ctx context.Context, in *TLMessagesGetPeerDialogs, opts ...grpc.CallOption) (*Messages_PeerDialogs, error) { - out := new(Messages_PeerDialogs) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getPeerDialogs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSaveDraft(ctx context.Context, in *TLMessagesSaveDraft, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_saveDraft", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetSplitRanges(ctx, in) } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetAllDrafts(ctx context.Context, in *TLMessagesGetAllDrafts, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getAllDrafts", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetSplitRanges", } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetFeaturedStickers(ctx context.Context, in *TLMessagesGetFeaturedStickers, opts ...grpc.CallOption) (*Messages_FeaturedStickers, error) { - out := new(Messages_FeaturedStickers) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getFeaturedStickers", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetSplitRanges(ctx, req.(*TLMessagesGetSplitRanges)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesReadFeaturedStickers(ctx context.Context, in *TLMessagesReadFeaturedStickers, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readFeaturedStickers", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesMarkDialogUnread_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesMarkDialogUnread) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetRecentStickers(ctx context.Context, in *TLMessagesGetRecentStickers, opts ...grpc.CallOption) (*Messages_RecentStickers, error) { - out := new(Messages_RecentStickers) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getRecentStickers", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesMarkDialogUnread(ctx, in) } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSaveRecentSticker(ctx context.Context, in *TLMessagesSaveRecentSticker, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_saveRecentSticker", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesMarkDialogUnread", } - return out, nil -} - -func (c *rPCMessagesClient) MessagesClearRecentStickers(ctx context.Context, in *TLMessagesClearRecentStickers, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_clearRecentStickers", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesMarkDialogUnread(ctx, req.(*TLMessagesMarkDialogUnread)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetArchivedStickers(ctx context.Context, in *TLMessagesGetArchivedStickers, opts ...grpc.CallOption) (*Messages_ArchivedStickers, error) { - out := new(Messages_ArchivedStickers) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getArchivedStickers", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesGetDialogUnreadMarks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesGetDialogUnreadMarks) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetMaskStickers(ctx context.Context, in *TLMessagesGetMaskStickers, opts ...grpc.CallOption) (*Messages_AllStickers, error) { - out := new(Messages_AllStickers) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getMaskStickers", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesGetDialogUnreadMarks(ctx, in) } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetAttachedStickers(ctx context.Context, in *TLMessagesGetAttachedStickers, opts ...grpc.CallOption) (*Vector_StickerSetCovered, error) { - out := new(Vector_StickerSetCovered) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getAttachedStickers", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesGetDialogUnreadMarks", } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSetGameScore(ctx context.Context, in *TLMessagesSetGameScore, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setGameScore", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesGetDialogUnreadMarks(ctx, req.(*TLMessagesGetDialogUnreadMarks)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesSetInlineGameScore(ctx context.Context, in *TLMessagesSetInlineGameScore, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setInlineGameScore", in, out, opts...) - if err != nil { +func _RPCMessages_MessagesClearAllDrafts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLMessagesClearAllDrafts) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetGameHighScores(ctx context.Context, in *TLMessagesGetGameHighScores, opts ...grpc.CallOption) (*Messages_HighScores, error) { - out := new(Messages_HighScores) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getGameHighScores", in, out, opts...) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RPCMessagesServer).MessagesClearAllDrafts(ctx, in) } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetInlineGameHighScores(ctx context.Context, in *TLMessagesGetInlineGameHighScores, opts ...grpc.CallOption) (*Messages_HighScores, error) { - out := new(Messages_HighScores) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getInlineGameHighScores", in, out, opts...) - if err != nil { - return nil, err + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCMessages/MessagesClearAllDrafts", } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetCommonChats(ctx context.Context, in *TLMessagesGetCommonChats, opts ...grpc.CallOption) (*Messages_Chats, error) { - out := new(Messages_Chats) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getCommonChats", in, out, opts...) - if err != nil { - return nil, err + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCMessagesServer).MessagesClearAllDrafts(ctx, req.(*TLMessagesClearAllDrafts)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *rPCMessagesClient) MessagesGetAllChats(ctx context.Context, in *TLMessagesGetAllChats, opts ...grpc.CallOption) (*Messages_Chats, error) { - out := new(Messages_Chats) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getAllChats", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetWebPage(ctx context.Context, in *TLMessagesGetWebPage, opts ...grpc.CallOption) (*WebPage, error) { - out := new(WebPage) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getWebPage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesToggleDialogPin(ctx context.Context, in *TLMessagesToggleDialogPin, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_toggleDialogPin", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesReorderPinnedDialogs(ctx context.Context, in *TLMessagesReorderPinnedDialogs, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_reorderPinnedDialogs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetPinnedDialogs(ctx context.Context, in *TLMessagesGetPinnedDialogs, opts ...grpc.CallOption) (*Messages_PeerDialogs, error) { - out := new(Messages_PeerDialogs) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getPinnedDialogs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSetBotShippingResults(ctx context.Context, in *TLMessagesSetBotShippingResults, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setBotShippingResults", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSetBotPrecheckoutResults(ctx context.Context, in *TLMessagesSetBotPrecheckoutResults, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_setBotPrecheckoutResults", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesUploadMedia(ctx context.Context, in *TLMessagesUploadMedia, opts ...grpc.CallOption) (*MessageMedia, error) { - out := new(MessageMedia) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_uploadMedia", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSendScreenshotNotification(ctx context.Context, in *TLMessagesSendScreenshotNotification, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendScreenshotNotification", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetFavedStickers(ctx context.Context, in *TLMessagesGetFavedStickers, opts ...grpc.CallOption) (*Messages_FavedStickers, error) { - out := new(Messages_FavedStickers) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getFavedStickers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesFaveSticker(ctx context.Context, in *TLMessagesFaveSticker, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_faveSticker", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetUnreadMentions(ctx context.Context, in *TLMessagesGetUnreadMentions, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getUnreadMentions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesReadMentions(ctx context.Context, in *TLMessagesReadMentions, opts ...grpc.CallOption) (*Messages_AffectedHistory, error) { - out := new(Messages_AffectedHistory) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_readMentions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetRecentLocations(ctx context.Context, in *TLMessagesGetRecentLocations, opts ...grpc.CallOption) (*Messages_Messages, error) { - out := new(Messages_Messages) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getRecentLocations", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSendMultiMedia(ctx context.Context, in *TLMessagesSendMultiMedia, opts ...grpc.CallOption) (*Updates, error) { - out := new(Updates) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_sendMultiMedia", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesUploadEncryptedFile(ctx context.Context, in *TLMessagesUploadEncryptedFile, opts ...grpc.CallOption) (*EncryptedFile, error) { - out := new(EncryptedFile) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_uploadEncryptedFile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesSearchStickerSets(ctx context.Context, in *TLMessagesSearchStickerSets, opts ...grpc.CallOption) (*Messages_FoundStickerSets, error) { - out := new(Messages_FoundStickerSets) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_searchStickerSets", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetSplitRanges(ctx context.Context, in *TLMessagesGetSplitRanges, opts ...grpc.CallOption) (*Vector_MessageRange, error) { - out := new(Vector_MessageRange) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getSplitRanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesMarkDialogUnread(ctx context.Context, in *TLMessagesMarkDialogUnread, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_markDialogUnread", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesGetDialogUnreadMarks(ctx context.Context, in *TLMessagesGetDialogUnreadMarks, opts ...grpc.CallOption) (*Vector_DialogPeer, error) { - out := new(Vector_DialogPeer) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_getDialogUnreadMarks", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCMessagesClient) MessagesClearAllDrafts(ctx context.Context, in *TLMessagesClearAllDrafts, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCMessages/messages_clearAllDrafts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RPCMessagesServer is the server API for RPCMessages service. -type RPCMessagesServer interface { - // messages.readHistory#b04f2510 peer:InputPeer max_id:int offset:int = messages.AffectedHistory; - MessagesReadHistoryLayer2(context.Context, *TLMessagesReadHistoryLayer2) (*Messages_AffectedHistory, error) - // messages.getHistory#afa92846 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; - MessagesGetHistoryLayer51(context.Context, *TLMessagesGetHistoryLayer51) (*Messages_Messages, error) - // messages.getDialogs#191ba9c5 flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int = messages.Dialogs; - MessagesGetDialogsLayer62(context.Context, *TLMessagesGetDialogsLayer62) (*Messages_Dialogs, error) - // messages.search#f288a275 flags:# peer:InputPeer q:string from_id:flags.0?InputUser filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = messages.Messages; - MessagesSearchLayer68(context.Context, *TLMessagesSearchLayer68) (*Messages_Messages, error) - // messages.getMessages#4222fa74 id:Vector = messages.Messages; - MessagesGetMessagesLayer71(context.Context, *TLMessagesGetMessagesLayer71) (*Messages_Messages, error) - // messages.getMessages#63c66506 id:Vector = messages.Messages; - MessagesGetMessages(context.Context, *TLMessagesGetMessages) (*Messages_Messages, error) - // messages.getDialogs#b098aee6 flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:int = messages.Dialogs; - MessagesGetDialogs(context.Context, *TLMessagesGetDialogs) (*Messages_Dialogs, error) - // messages.getHistory#dcbb8260 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages; - MessagesGetHistory(context.Context, *TLMessagesGetHistory) (*Messages_Messages, error) - // messages.search#8614ef68 flags:# peer:InputPeer q:string from_id:flags.0?InputUser filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages; - MessagesSearch(context.Context, *TLMessagesSearch) (*Messages_Messages, error) - // messages.readHistory#e306d3a peer:InputPeer max_id:int = messages.AffectedMessages; - MessagesReadHistory(context.Context, *TLMessagesReadHistory) (*Messages_AffectedMessages, error) - // messages.deleteHistory#1c015b09 flags:# just_clear:flags.0?true peer:InputPeer max_id:int = messages.AffectedHistory; - MessagesDeleteHistory(context.Context, *TLMessagesDeleteHistory) (*Messages_AffectedHistory, error) - // messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector = messages.AffectedMessages; - MessagesDeleteMessages(context.Context, *TLMessagesDeleteMessages) (*Messages_AffectedMessages, error) - // messages.receivedMessages#5a954c0 max_id:int = Vector; - MessagesReceivedMessages(context.Context, *TLMessagesReceivedMessages) (*Vector_ReceivedNotifyMessage, error) - // messages.setTyping#a3825e50 peer:InputPeer action:SendMessageAction = Bool; - MessagesSetTyping(context.Context, *TLMessagesSetTyping) (*Bool, error) - // messages.sendMessage#fa88427a flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Updates; - MessagesSendMessage(context.Context, *TLMessagesSendMessage) (*Updates, error) - // messages.sendMedia#b8d1262b flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Updates; - MessagesSendMedia(context.Context, *TLMessagesSendMedia) (*Updates, error) - // messages.forwardMessages#708e0195 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true grouped:flags.9?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer = Updates; - MessagesForwardMessages(context.Context, *TLMessagesForwardMessages) (*Updates, error) - // messages.reportSpam#cf1592db peer:InputPeer = Bool; - MessagesReportSpam(context.Context, *TLMessagesReportSpam) (*Bool, error) - // messages.hideReportSpam#a8f1709b peer:InputPeer = Bool; - MessagesHideReportSpam(context.Context, *TLMessagesHideReportSpam) (*Bool, error) - // messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings; - MessagesGetPeerSettings(context.Context, *TLMessagesGetPeerSettings) (*PeerSettings, error) - // messages.report#bd82b658 peer:InputPeer id:Vector reason:ReportReason = Bool; - MessagesReport(context.Context, *TLMessagesReport) (*Bool, error) - // messages.getChats#3c6aa187 id:Vector = messages.Chats; - MessagesGetChats(context.Context, *TLMessagesGetChats) (*Messages_Chats, error) - // messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull; - MessagesGetFullChat(context.Context, *TLMessagesGetFullChat) (*Messages_ChatFull, error) - // messages.editChatTitle#dc452855 chat_id:int title:string = Updates; - MessagesEditChatTitle(context.Context, *TLMessagesEditChatTitle) (*Updates, error) - // messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates; - MessagesEditChatPhoto(context.Context, *TLMessagesEditChatPhoto) (*Updates, error) - // messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates; - MessagesAddChatUser(context.Context, *TLMessagesAddChatUser) (*Updates, error) - // messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates; - MessagesDeleteChatUser(context.Context, *TLMessagesDeleteChatUser) (*Updates, error) - // messages.createChat#9cb126e users:Vector title:string = Updates; - MessagesCreateChat(context.Context, *TLMessagesCreateChat) (*Updates, error) - // messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig; - MessagesGetDhConfig(context.Context, *TLMessagesGetDhConfig) (*Messages_DhConfig, error) - // messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat; - MessagesRequestEncryption(context.Context, *TLMessagesRequestEncryption) (*EncryptedChat, error) - // messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat; - MessagesAcceptEncryption(context.Context, *TLMessagesAcceptEncryption) (*EncryptedChat, error) - // messages.discardEncryption#edd923c5 chat_id:int = Bool; - MessagesDiscardEncryption(context.Context, *TLMessagesDiscardEncryption) (*Bool, error) - // messages.setEncryptedTyping#791451ed peer:InputEncryptedChat typing:Bool = Bool; - MessagesSetEncryptedTyping(context.Context, *TLMessagesSetEncryptedTyping) (*Bool, error) - // messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool; - MessagesReadEncryptedHistory(context.Context, *TLMessagesReadEncryptedHistory) (*Bool, error) - // messages.sendEncrypted#a9776773 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage; - MessagesSendEncrypted(context.Context, *TLMessagesSendEncrypted) (*Messages_SentEncryptedMessage, error) - // messages.sendEncryptedFile#9a901b66 peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage; - MessagesSendEncryptedFile(context.Context, *TLMessagesSendEncryptedFile) (*Messages_SentEncryptedMessage, error) - // messages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage; - MessagesSendEncryptedService(context.Context, *TLMessagesSendEncryptedService) (*Messages_SentEncryptedMessage, error) - // messages.receivedQueue#55a5bb66 max_qts:int = Vector; - MessagesReceivedQueue(context.Context, *TLMessagesReceivedQueue) (*VectorLong, error) - // messages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool; - MessagesReportEncryptedSpam(context.Context, *TLMessagesReportEncryptedSpam) (*Bool, error) - // messages.readMessageContents#36a73f77 id:Vector = messages.AffectedMessages; - MessagesReadMessageContents(context.Context, *TLMessagesReadMessageContents) (*Messages_AffectedMessages, error) - // messages.getStickers#43d4f2c emoticon:string hash:int = messages.Stickers; - MessagesGetStickers(context.Context, *TLMessagesGetStickers) (*Messages_Stickers, error) - // messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers; - MessagesGetAllStickers(context.Context, *TLMessagesGetAllStickers) (*Messages_AllStickers, error) - // messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector = MessageMedia; - MessagesGetWebPagePreview(context.Context, *TLMessagesGetWebPagePreview) (*MessageMedia, error) - // messages.exportChatInvite#7d885289 chat_id:int = ExportedChatInvite; - MessagesExportChatInvite(context.Context, *TLMessagesExportChatInvite) (*ExportedChatInvite, error) - // messages.checkChatInvite#3eadb1bb hash:string = ChatInvite; - MessagesCheckChatInvite(context.Context, *TLMessagesCheckChatInvite) (*ChatInvite, error) - // messages.importChatInvite#6c50051c hash:string = Updates; - MessagesImportChatInvite(context.Context, *TLMessagesImportChatInvite) (*Updates, error) - // messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet; - MessagesGetStickerSet(context.Context, *TLMessagesGetStickerSet) (*Messages_StickerSet, error) - // messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult; - MessagesInstallStickerSet(context.Context, *TLMessagesInstallStickerSet) (*Messages_StickerSetInstallResult, error) - // messages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool; - MessagesUninstallStickerSet(context.Context, *TLMessagesUninstallStickerSet) (*Bool, error) - // messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates; - MessagesStartBot(context.Context, *TLMessagesStartBot) (*Updates, error) - // messages.getMessagesViews#c4c8a55d peer:InputPeer id:Vector increment:Bool = Vector; - MessagesGetMessagesViews(context.Context, *TLMessagesGetMessagesViews) (*VectorInt, error) - // messages.toggleChatAdmins#ec8bd9e1 chat_id:int enabled:Bool = Updates; - MessagesToggleChatAdmins(context.Context, *TLMessagesToggleChatAdmins) (*Updates, error) - // messages.editChatAdmin#a9e69f2e chat_id:int user_id:InputUser is_admin:Bool = Bool; - MessagesEditChatAdmin(context.Context, *TLMessagesEditChatAdmin) (*Bool, error) - // messages.migrateChat#15a3b8e3 chat_id:int = Updates; - MessagesMigrateChat(context.Context, *TLMessagesMigrateChat) (*Updates, error) - // messages.searchGlobal#9e3cacb0 q:string offset_date:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; - MessagesSearchGlobal(context.Context, *TLMessagesSearchGlobal) (*Messages_Messages, error) - // messages.reorderStickerSets#78337739 flags:# masks:flags.0?true order:Vector = Bool; - MessagesReorderStickerSets(context.Context, *TLMessagesReorderStickerSets) (*Bool, error) - // messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document; - MessagesGetDocumentByHash(context.Context, *TLMessagesGetDocumentByHash) (*Document, error) - // messages.searchGifs#bf9a776b q:string offset:int = messages.FoundGifs; - MessagesSearchGifs(context.Context, *TLMessagesSearchGifs) (*Messages_FoundGifs, error) - // messages.getSavedGifs#83bf3d52 hash:int = messages.SavedGifs; - MessagesGetSavedGifs(context.Context, *TLMessagesGetSavedGifs) (*Messages_SavedGifs, error) - // messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; - MessagesSaveGif(context.Context, *TLMessagesSaveGif) (*Bool, error) - // messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults; - MessagesGetInlineBotResults(context.Context, *TLMessagesGetInlineBotResults) (*Messages_BotResults, error) - // messages.setInlineBotResults#eb5ea206 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM = Bool; - MessagesSetInlineBotResults(context.Context, *TLMessagesSetInlineBotResults) (*Bool, error) - // messages.sendInlineBotResult#b16e06fe flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string = Updates; - MessagesSendInlineBotResult(context.Context, *TLMessagesSendInlineBotResult) (*Updates, error) - // messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData; - MessagesGetMessageEditData(context.Context, *TLMessagesGetMessageEditData) (*Messages_MessageEditData, error) - // messages.editMessage#c000e4c8 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector geo_point:flags.13?InputGeoPoint = Updates; - MessagesEditMessage(context.Context, *TLMessagesEditMessage) (*Updates, error) - // messages.editInlineBotMessage#adc3e828 flags:# no_webpage:flags.1?true stop_geo_live:flags.12?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector geo_point:flags.13?InputGeoPoint = Bool; - MessagesEditInlineBotMessage(context.Context, *TLMessagesEditInlineBotMessage) (*Bool, error) - // messages.getBotCallbackAnswer#810a9fec flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes = messages.BotCallbackAnswer; - MessagesGetBotCallbackAnswer(context.Context, *TLMessagesGetBotCallbackAnswer) (*Messages_BotCallbackAnswer, error) - // messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool; - MessagesSetBotCallbackAnswer(context.Context, *TLMessagesSetBotCallbackAnswer) (*Bool, error) - // messages.getPeerDialogs#e470bcfd peers:Vector = messages.PeerDialogs; - MessagesGetPeerDialogs(context.Context, *TLMessagesGetPeerDialogs) (*Messages_PeerDialogs, error) - // messages.saveDraft#bc39e14b flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int peer:InputPeer message:string entities:flags.3?Vector = Bool; - MessagesSaveDraft(context.Context, *TLMessagesSaveDraft) (*Bool, error) - // messages.getAllDrafts#6a3f8d65 = Updates; - MessagesGetAllDrafts(context.Context, *TLMessagesGetAllDrafts) (*Updates, error) - // messages.getFeaturedStickers#2dacca4f hash:int = messages.FeaturedStickers; - MessagesGetFeaturedStickers(context.Context, *TLMessagesGetFeaturedStickers) (*Messages_FeaturedStickers, error) - // messages.readFeaturedStickers#5b118126 id:Vector = Bool; - MessagesReadFeaturedStickers(context.Context, *TLMessagesReadFeaturedStickers) (*Bool, error) - // messages.getRecentStickers#5ea192c9 flags:# attached:flags.0?true hash:int = messages.RecentStickers; - MessagesGetRecentStickers(context.Context, *TLMessagesGetRecentStickers) (*Messages_RecentStickers, error) - // messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool; - MessagesSaveRecentSticker(context.Context, *TLMessagesSaveRecentSticker) (*Bool, error) - // messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool; - MessagesClearRecentStickers(context.Context, *TLMessagesClearRecentStickers) (*Bool, error) - // messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers; - MessagesGetArchivedStickers(context.Context, *TLMessagesGetArchivedStickers) (*Messages_ArchivedStickers, error) - // messages.getMaskStickers#65b8c79f hash:int = messages.AllStickers; - MessagesGetMaskStickers(context.Context, *TLMessagesGetMaskStickers) (*Messages_AllStickers, error) - // messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector; - MessagesGetAttachedStickers(context.Context, *TLMessagesGetAttachedStickers) (*Vector_StickerSetCovered, error) - // messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates; - MessagesSetGameScore(context.Context, *TLMessagesSetGameScore) (*Updates, error) - // messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool; - MessagesSetInlineGameScore(context.Context, *TLMessagesSetInlineGameScore) (*Bool, error) - // messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores; - MessagesGetGameHighScores(context.Context, *TLMessagesGetGameHighScores) (*Messages_HighScores, error) - // messages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores; - MessagesGetInlineGameHighScores(context.Context, *TLMessagesGetInlineGameHighScores) (*Messages_HighScores, error) - // messages.getCommonChats#d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats; - MessagesGetCommonChats(context.Context, *TLMessagesGetCommonChats) (*Messages_Chats, error) - // messages.getAllChats#eba80ff0 except_ids:Vector = messages.Chats; - MessagesGetAllChats(context.Context, *TLMessagesGetAllChats) (*Messages_Chats, error) - // messages.getWebPage#32ca8f91 url:string hash:int = WebPage; - MessagesGetWebPage(context.Context, *TLMessagesGetWebPage) (*WebPage, error) - // messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool; - MessagesToggleDialogPin(context.Context, *TLMessagesToggleDialogPin) (*Bool, error) - // messages.reorderPinnedDialogs#5b51d63f flags:# force:flags.0?true order:Vector = Bool; - MessagesReorderPinnedDialogs(context.Context, *TLMessagesReorderPinnedDialogs) (*Bool, error) - // messages.getPinnedDialogs#e254d64e = messages.PeerDialogs; - MessagesGetPinnedDialogs(context.Context, *TLMessagesGetPinnedDialogs) (*Messages_PeerDialogs, error) - // messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; - MessagesSetBotShippingResults(context.Context, *TLMessagesSetBotShippingResults) (*Bool, error) - // messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; - MessagesSetBotPrecheckoutResults(context.Context, *TLMessagesSetBotPrecheckoutResults) (*Bool, error) - // messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia; - MessagesUploadMedia(context.Context, *TLMessagesUploadMedia) (*MessageMedia, error) - // messages.sendScreenshotNotification#c97df020 peer:InputPeer reply_to_msg_id:int random_id:long = Updates; - MessagesSendScreenshotNotification(context.Context, *TLMessagesSendScreenshotNotification) (*Updates, error) - // messages.getFavedStickers#21ce0b0e hash:int = messages.FavedStickers; - MessagesGetFavedStickers(context.Context, *TLMessagesGetFavedStickers) (*Messages_FavedStickers, error) - // messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool; - MessagesFaveSticker(context.Context, *TLMessagesFaveSticker) (*Bool, error) - // messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; - MessagesGetUnreadMentions(context.Context, *TLMessagesGetUnreadMentions) (*Messages_Messages, error) - // messages.readMentions#f0189d3 peer:InputPeer = messages.AffectedHistory; - MessagesReadMentions(context.Context, *TLMessagesReadMentions) (*Messages_AffectedHistory, error) - // messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages; - MessagesGetRecentLocations(context.Context, *TLMessagesGetRecentLocations) (*Messages_Messages, error) - // messages.sendMultiMedia#2095512f flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector = Updates; - MessagesSendMultiMedia(context.Context, *TLMessagesSendMultiMedia) (*Updates, error) - // messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile; - MessagesUploadEncryptedFile(context.Context, *TLMessagesUploadEncryptedFile) (*EncryptedFile, error) - // messages.searchStickerSets#c2b7d08b flags:# exclude_featured:flags.0?true q:string hash:int = messages.FoundStickerSets; - MessagesSearchStickerSets(context.Context, *TLMessagesSearchStickerSets) (*Messages_FoundStickerSets, error) - // messages.getSplitRanges#1cff7e08 = Vector; - MessagesGetSplitRanges(context.Context, *TLMessagesGetSplitRanges) (*Vector_MessageRange, error) - // messages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogPeer = Bool; - MessagesMarkDialogUnread(context.Context, *TLMessagesMarkDialogUnread) (*Bool, error) - // messages.getDialogUnreadMarks#22e24e22 = Vector; - MessagesGetDialogUnreadMarks(context.Context, *TLMessagesGetDialogUnreadMarks) (*Vector_DialogPeer, error) - // messages.clearAllDrafts#7e58ee9c = Bool; - MessagesClearAllDrafts(context.Context, *TLMessagesClearAllDrafts) (*Bool, error) -} - -func RegisterRPCMessagesServer(s *grpc.Server, srv RPCMessagesServer) { - s.RegisterService(&_RPCMessages_serviceDesc, srv) -} - -func _RPCMessages_MessagesReadHistoryLayer2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReadHistoryLayer2) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReadHistoryLayer2(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReadHistoryLayer2", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReadHistoryLayer2(ctx, req.(*TLMessagesReadHistoryLayer2)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetHistoryLayer51_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetHistoryLayer51) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetHistoryLayer51(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetHistoryLayer51", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetHistoryLayer51(ctx, req.(*TLMessagesGetHistoryLayer51)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetDialogsLayer62_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetDialogsLayer62) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetDialogsLayer62(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetDialogsLayer62", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetDialogsLayer62(ctx, req.(*TLMessagesGetDialogsLayer62)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSearchLayer68_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSearchLayer68) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSearchLayer68(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSearchLayer68", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSearchLayer68(ctx, req.(*TLMessagesSearchLayer68)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetMessagesLayer71_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetMessagesLayer71) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetMessagesLayer71(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetMessagesLayer71", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetMessagesLayer71(ctx, req.(*TLMessagesGetMessagesLayer71)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetMessages) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetMessages(ctx, req.(*TLMessagesGetMessages)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetDialogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetDialogs) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetDialogs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetDialogs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetDialogs(ctx, req.(*TLMessagesGetDialogs)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetHistory) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetHistory", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetHistory(ctx, req.(*TLMessagesGetHistory)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSearch) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSearch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSearch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSearch(ctx, req.(*TLMessagesSearch)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesReadHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReadHistory) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReadHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReadHistory", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReadHistory(ctx, req.(*TLMessagesReadHistory)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesDeleteHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesDeleteHistory) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesDeleteHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesDeleteHistory", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesDeleteHistory(ctx, req.(*TLMessagesDeleteHistory)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesDeleteMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesDeleteMessages) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesDeleteMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesDeleteMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesDeleteMessages(ctx, req.(*TLMessagesDeleteMessages)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesReceivedMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReceivedMessages) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReceivedMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReceivedMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReceivedMessages(ctx, req.(*TLMessagesReceivedMessages)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSetTyping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSetTyping) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSetTyping(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSetTyping", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSetTyping(ctx, req.(*TLMessagesSetTyping)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSendMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSendMessage) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSendMessage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSendMessage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSendMessage(ctx, req.(*TLMessagesSendMessage)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSendMedia_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSendMedia) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSendMedia(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSendMedia", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSendMedia(ctx, req.(*TLMessagesSendMedia)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesForwardMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesForwardMessages) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesForwardMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesForwardMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesForwardMessages(ctx, req.(*TLMessagesForwardMessages)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesReportSpam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReportSpam) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReportSpam(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReportSpam", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReportSpam(ctx, req.(*TLMessagesReportSpam)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesHideReportSpam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesHideReportSpam) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesHideReportSpam(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesHideReportSpam", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesHideReportSpam(ctx, req.(*TLMessagesHideReportSpam)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetPeerSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetPeerSettings) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetPeerSettings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetPeerSettings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetPeerSettings(ctx, req.(*TLMessagesGetPeerSettings)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReport) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReport(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReport", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReport(ctx, req.(*TLMessagesReport)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetChats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetChats) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetChats(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetChats", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetChats(ctx, req.(*TLMessagesGetChats)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetFullChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetFullChat) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetFullChat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetFullChat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetFullChat(ctx, req.(*TLMessagesGetFullChat)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesEditChatTitle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesEditChatTitle) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesEditChatTitle(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesEditChatTitle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesEditChatTitle(ctx, req.(*TLMessagesEditChatTitle)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesEditChatPhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesEditChatPhoto) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesEditChatPhoto(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesEditChatPhoto", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesEditChatPhoto(ctx, req.(*TLMessagesEditChatPhoto)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesAddChatUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesAddChatUser) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesAddChatUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesAddChatUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesAddChatUser(ctx, req.(*TLMessagesAddChatUser)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesDeleteChatUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesDeleteChatUser) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesDeleteChatUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesDeleteChatUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesDeleteChatUser(ctx, req.(*TLMessagesDeleteChatUser)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesCreateChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesCreateChat) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesCreateChat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesCreateChat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesCreateChat(ctx, req.(*TLMessagesCreateChat)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetDhConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetDhConfig) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetDhConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetDhConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetDhConfig(ctx, req.(*TLMessagesGetDhConfig)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesRequestEncryption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesRequestEncryption) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesRequestEncryption(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesRequestEncryption", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesRequestEncryption(ctx, req.(*TLMessagesRequestEncryption)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesAcceptEncryption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesAcceptEncryption) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesAcceptEncryption(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesAcceptEncryption", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesAcceptEncryption(ctx, req.(*TLMessagesAcceptEncryption)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesDiscardEncryption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesDiscardEncryption) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesDiscardEncryption(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesDiscardEncryption", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesDiscardEncryption(ctx, req.(*TLMessagesDiscardEncryption)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSetEncryptedTyping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSetEncryptedTyping) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSetEncryptedTyping(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSetEncryptedTyping", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSetEncryptedTyping(ctx, req.(*TLMessagesSetEncryptedTyping)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesReadEncryptedHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReadEncryptedHistory) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReadEncryptedHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReadEncryptedHistory", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReadEncryptedHistory(ctx, req.(*TLMessagesReadEncryptedHistory)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSendEncrypted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSendEncrypted) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSendEncrypted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSendEncrypted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSendEncrypted(ctx, req.(*TLMessagesSendEncrypted)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSendEncryptedFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSendEncryptedFile) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSendEncryptedFile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSendEncryptedFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSendEncryptedFile(ctx, req.(*TLMessagesSendEncryptedFile)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSendEncryptedService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSendEncryptedService) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSendEncryptedService(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSendEncryptedService", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSendEncryptedService(ctx, req.(*TLMessagesSendEncryptedService)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesReceivedQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReceivedQueue) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReceivedQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReceivedQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReceivedQueue(ctx, req.(*TLMessagesReceivedQueue)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesReportEncryptedSpam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReportEncryptedSpam) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReportEncryptedSpam(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReportEncryptedSpam", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReportEncryptedSpam(ctx, req.(*TLMessagesReportEncryptedSpam)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesReadMessageContents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReadMessageContents) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReadMessageContents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReadMessageContents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReadMessageContents(ctx, req.(*TLMessagesReadMessageContents)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetStickers) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetStickers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetStickers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetStickers(ctx, req.(*TLMessagesGetStickers)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetAllStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetAllStickers) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetAllStickers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetAllStickers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetAllStickers(ctx, req.(*TLMessagesGetAllStickers)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetWebPagePreview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetWebPagePreview) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetWebPagePreview(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetWebPagePreview", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetWebPagePreview(ctx, req.(*TLMessagesGetWebPagePreview)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesExportChatInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesExportChatInvite) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesExportChatInvite(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesExportChatInvite", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesExportChatInvite(ctx, req.(*TLMessagesExportChatInvite)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesCheckChatInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesCheckChatInvite) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesCheckChatInvite(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesCheckChatInvite", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesCheckChatInvite(ctx, req.(*TLMessagesCheckChatInvite)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesImportChatInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesImportChatInvite) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesImportChatInvite(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesImportChatInvite", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesImportChatInvite(ctx, req.(*TLMessagesImportChatInvite)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetStickerSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetStickerSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetStickerSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetStickerSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetStickerSet(ctx, req.(*TLMessagesGetStickerSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesInstallStickerSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesInstallStickerSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesInstallStickerSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesInstallStickerSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesInstallStickerSet(ctx, req.(*TLMessagesInstallStickerSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesUninstallStickerSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesUninstallStickerSet) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesUninstallStickerSet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesUninstallStickerSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesUninstallStickerSet(ctx, req.(*TLMessagesUninstallStickerSet)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesStartBot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesStartBot) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesStartBot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesStartBot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesStartBot(ctx, req.(*TLMessagesStartBot)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetMessagesViews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetMessagesViews) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetMessagesViews(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetMessagesViews", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetMessagesViews(ctx, req.(*TLMessagesGetMessagesViews)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesToggleChatAdmins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesToggleChatAdmins) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesToggleChatAdmins(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesToggleChatAdmins", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesToggleChatAdmins(ctx, req.(*TLMessagesToggleChatAdmins)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesEditChatAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesEditChatAdmin) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesEditChatAdmin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesEditChatAdmin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesEditChatAdmin(ctx, req.(*TLMessagesEditChatAdmin)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesMigrateChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesMigrateChat) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesMigrateChat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesMigrateChat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesMigrateChat(ctx, req.(*TLMessagesMigrateChat)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSearchGlobal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSearchGlobal) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSearchGlobal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSearchGlobal", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSearchGlobal(ctx, req.(*TLMessagesSearchGlobal)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesReorderStickerSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReorderStickerSets) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReorderStickerSets(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReorderStickerSets", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReorderStickerSets(ctx, req.(*TLMessagesReorderStickerSets)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetDocumentByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetDocumentByHash) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetDocumentByHash(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetDocumentByHash", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetDocumentByHash(ctx, req.(*TLMessagesGetDocumentByHash)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSearchGifs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSearchGifs) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSearchGifs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSearchGifs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSearchGifs(ctx, req.(*TLMessagesSearchGifs)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetSavedGifs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetSavedGifs) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetSavedGifs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetSavedGifs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetSavedGifs(ctx, req.(*TLMessagesGetSavedGifs)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSaveGif_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSaveGif) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSaveGif(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSaveGif", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSaveGif(ctx, req.(*TLMessagesSaveGif)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetInlineBotResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetInlineBotResults) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetInlineBotResults(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetInlineBotResults", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetInlineBotResults(ctx, req.(*TLMessagesGetInlineBotResults)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSetInlineBotResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSetInlineBotResults) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSetInlineBotResults(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSetInlineBotResults", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSetInlineBotResults(ctx, req.(*TLMessagesSetInlineBotResults)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesSendInlineBotResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSendInlineBotResult) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSendInlineBotResult(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSendInlineBotResult", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSendInlineBotResult(ctx, req.(*TLMessagesSendInlineBotResult)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesGetMessageEditData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetMessageEditData) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetMessageEditData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetMessageEditData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetMessageEditData(ctx, req.(*TLMessagesGetMessageEditData)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesEditMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesEditMessage) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesEditMessage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesEditMessage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesEditMessage(ctx, req.(*TLMessagesEditMessage)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCMessages_MessagesEditInlineBotMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesEditInlineBotMessage) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesEditInlineBotMessage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesEditInlineBotMessage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesEditInlineBotMessage(ctx, req.(*TLMessagesEditInlineBotMessage)) - } - return interceptor(ctx, in, info, handler) +var _RPCMessages_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCMessages", + HandlerType: (*RPCMessagesServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "messages_readHistoryLayer2", + Handler: _RPCMessages_MessagesReadHistoryLayer2_Handler, + }, + { + MethodName: "messages_getHistoryLayer51", + Handler: _RPCMessages_MessagesGetHistoryLayer51_Handler, + }, + { + MethodName: "messages_getDialogsLayer62", + Handler: _RPCMessages_MessagesGetDialogsLayer62_Handler, + }, + { + MethodName: "messages_searchLayer68", + Handler: _RPCMessages_MessagesSearchLayer68_Handler, + }, + { + MethodName: "messages_getMessagesLayer71", + Handler: _RPCMessages_MessagesGetMessagesLayer71_Handler, + }, + { + MethodName: "messages_getRecentLocationsLayer72", + Handler: _RPCMessages_MessagesGetRecentLocationsLayer72_Handler, + }, + { + MethodName: "messages_getMessages", + Handler: _RPCMessages_MessagesGetMessages_Handler, + }, + { + MethodName: "messages_getDialogs", + Handler: _RPCMessages_MessagesGetDialogs_Handler, + }, + { + MethodName: "messages_getHistory", + Handler: _RPCMessages_MessagesGetHistory_Handler, + }, + { + MethodName: "messages_search", + Handler: _RPCMessages_MessagesSearch_Handler, + }, + { + MethodName: "messages_readHistory", + Handler: _RPCMessages_MessagesReadHistory_Handler, + }, + { + MethodName: "messages_deleteHistory", + Handler: _RPCMessages_MessagesDeleteHistory_Handler, + }, + { + MethodName: "messages_deleteMessages", + Handler: _RPCMessages_MessagesDeleteMessages_Handler, + }, + { + MethodName: "messages_receivedMessages", + Handler: _RPCMessages_MessagesReceivedMessages_Handler, + }, + { + MethodName: "messages_setTyping", + Handler: _RPCMessages_MessagesSetTyping_Handler, + }, + { + MethodName: "messages_sendMessage", + Handler: _RPCMessages_MessagesSendMessage_Handler, + }, + { + MethodName: "messages_sendMedia", + Handler: _RPCMessages_MessagesSendMedia_Handler, + }, + { + MethodName: "messages_forwardMessages", + Handler: _RPCMessages_MessagesForwardMessages_Handler, + }, + { + MethodName: "messages_reportSpam", + Handler: _RPCMessages_MessagesReportSpam_Handler, + }, + { + MethodName: "messages_hideReportSpam", + Handler: _RPCMessages_MessagesHideReportSpam_Handler, + }, + { + MethodName: "messages_getPeerSettings", + Handler: _RPCMessages_MessagesGetPeerSettings_Handler, + }, + { + MethodName: "messages_report", + Handler: _RPCMessages_MessagesReport_Handler, + }, + { + MethodName: "messages_getChats", + Handler: _RPCMessages_MessagesGetChats_Handler, + }, + { + MethodName: "messages_getFullChat", + Handler: _RPCMessages_MessagesGetFullChat_Handler, + }, + { + MethodName: "messages_editChatTitle", + Handler: _RPCMessages_MessagesEditChatTitle_Handler, + }, + { + MethodName: "messages_editChatPhoto", + Handler: _RPCMessages_MessagesEditChatPhoto_Handler, + }, + { + MethodName: "messages_addChatUser", + Handler: _RPCMessages_MessagesAddChatUser_Handler, + }, + { + MethodName: "messages_deleteChatUser", + Handler: _RPCMessages_MessagesDeleteChatUser_Handler, + }, + { + MethodName: "messages_createChat", + Handler: _RPCMessages_MessagesCreateChat_Handler, + }, + { + MethodName: "messages_getDhConfig", + Handler: _RPCMessages_MessagesGetDhConfig_Handler, + }, + { + MethodName: "messages_requestEncryption", + Handler: _RPCMessages_MessagesRequestEncryption_Handler, + }, + { + MethodName: "messages_acceptEncryption", + Handler: _RPCMessages_MessagesAcceptEncryption_Handler, + }, + { + MethodName: "messages_discardEncryption", + Handler: _RPCMessages_MessagesDiscardEncryption_Handler, + }, + { + MethodName: "messages_setEncryptedTyping", + Handler: _RPCMessages_MessagesSetEncryptedTyping_Handler, + }, + { + MethodName: "messages_readEncryptedHistory", + Handler: _RPCMessages_MessagesReadEncryptedHistory_Handler, + }, + { + MethodName: "messages_sendEncrypted", + Handler: _RPCMessages_MessagesSendEncrypted_Handler, + }, + { + MethodName: "messages_sendEncryptedFile", + Handler: _RPCMessages_MessagesSendEncryptedFile_Handler, + }, + { + MethodName: "messages_sendEncryptedService", + Handler: _RPCMessages_MessagesSendEncryptedService_Handler, + }, + { + MethodName: "messages_receivedQueue", + Handler: _RPCMessages_MessagesReceivedQueue_Handler, + }, + { + MethodName: "messages_reportEncryptedSpam", + Handler: _RPCMessages_MessagesReportEncryptedSpam_Handler, + }, + { + MethodName: "messages_readMessageContents", + Handler: _RPCMessages_MessagesReadMessageContents_Handler, + }, + { + MethodName: "messages_getStickers", + Handler: _RPCMessages_MessagesGetStickers_Handler, + }, + { + MethodName: "messages_getAllStickers", + Handler: _RPCMessages_MessagesGetAllStickers_Handler, + }, + { + MethodName: "messages_getWebPagePreview", + Handler: _RPCMessages_MessagesGetWebPagePreview_Handler, + }, + { + MethodName: "messages_exportChatInvite", + Handler: _RPCMessages_MessagesExportChatInvite_Handler, + }, + { + MethodName: "messages_checkChatInvite", + Handler: _RPCMessages_MessagesCheckChatInvite_Handler, + }, + { + MethodName: "messages_importChatInvite", + Handler: _RPCMessages_MessagesImportChatInvite_Handler, + }, + { + MethodName: "messages_getStickerSet", + Handler: _RPCMessages_MessagesGetStickerSet_Handler, + }, + { + MethodName: "messages_installStickerSet", + Handler: _RPCMessages_MessagesInstallStickerSet_Handler, + }, + { + MethodName: "messages_uninstallStickerSet", + Handler: _RPCMessages_MessagesUninstallStickerSet_Handler, + }, + { + MethodName: "messages_startBot", + Handler: _RPCMessages_MessagesStartBot_Handler, + }, + { + MethodName: "messages_getMessagesViews", + Handler: _RPCMessages_MessagesGetMessagesViews_Handler, + }, + { + MethodName: "messages_toggleChatAdmins", + Handler: _RPCMessages_MessagesToggleChatAdmins_Handler, + }, + { + MethodName: "messages_editChatAdmin", + Handler: _RPCMessages_MessagesEditChatAdmin_Handler, + }, + { + MethodName: "messages_migrateChat", + Handler: _RPCMessages_MessagesMigrateChat_Handler, + }, + { + MethodName: "messages_searchGlobal", + Handler: _RPCMessages_MessagesSearchGlobal_Handler, + }, + { + MethodName: "messages_reorderStickerSets", + Handler: _RPCMessages_MessagesReorderStickerSets_Handler, + }, + { + MethodName: "messages_getDocumentByHash", + Handler: _RPCMessages_MessagesGetDocumentByHash_Handler, + }, + { + MethodName: "messages_searchGifs", + Handler: _RPCMessages_MessagesSearchGifs_Handler, + }, + { + MethodName: "messages_getSavedGifs", + Handler: _RPCMessages_MessagesGetSavedGifs_Handler, + }, + { + MethodName: "messages_saveGif", + Handler: _RPCMessages_MessagesSaveGif_Handler, + }, + { + MethodName: "messages_getInlineBotResults", + Handler: _RPCMessages_MessagesGetInlineBotResults_Handler, + }, + { + MethodName: "messages_setInlineBotResults", + Handler: _RPCMessages_MessagesSetInlineBotResults_Handler, + }, + { + MethodName: "messages_sendInlineBotResult", + Handler: _RPCMessages_MessagesSendInlineBotResult_Handler, + }, + { + MethodName: "messages_getMessageEditData", + Handler: _RPCMessages_MessagesGetMessageEditData_Handler, + }, + { + MethodName: "messages_editMessage", + Handler: _RPCMessages_MessagesEditMessage_Handler, + }, + { + MethodName: "messages_editInlineBotMessage", + Handler: _RPCMessages_MessagesEditInlineBotMessage_Handler, + }, + { + MethodName: "messages_getBotCallbackAnswer", + Handler: _RPCMessages_MessagesGetBotCallbackAnswer_Handler, + }, + { + MethodName: "messages_setBotCallbackAnswer", + Handler: _RPCMessages_MessagesSetBotCallbackAnswer_Handler, + }, + { + MethodName: "messages_getPeerDialogs", + Handler: _RPCMessages_MessagesGetPeerDialogs_Handler, + }, + { + MethodName: "messages_saveDraft", + Handler: _RPCMessages_MessagesSaveDraft_Handler, + }, + { + MethodName: "messages_getAllDrafts", + Handler: _RPCMessages_MessagesGetAllDrafts_Handler, + }, + { + MethodName: "messages_getFeaturedStickers", + Handler: _RPCMessages_MessagesGetFeaturedStickers_Handler, + }, + { + MethodName: "messages_readFeaturedStickers", + Handler: _RPCMessages_MessagesReadFeaturedStickers_Handler, + }, + { + MethodName: "messages_getRecentStickers", + Handler: _RPCMessages_MessagesGetRecentStickers_Handler, + }, + { + MethodName: "messages_saveRecentSticker", + Handler: _RPCMessages_MessagesSaveRecentSticker_Handler, + }, + { + MethodName: "messages_clearRecentStickers", + Handler: _RPCMessages_MessagesClearRecentStickers_Handler, + }, + { + MethodName: "messages_getArchivedStickers", + Handler: _RPCMessages_MessagesGetArchivedStickers_Handler, + }, + { + MethodName: "messages_getMaskStickers", + Handler: _RPCMessages_MessagesGetMaskStickers_Handler, + }, + { + MethodName: "messages_getAttachedStickers", + Handler: _RPCMessages_MessagesGetAttachedStickers_Handler, + }, + { + MethodName: "messages_setGameScore", + Handler: _RPCMessages_MessagesSetGameScore_Handler, + }, + { + MethodName: "messages_setInlineGameScore", + Handler: _RPCMessages_MessagesSetInlineGameScore_Handler, + }, + { + MethodName: "messages_getGameHighScores", + Handler: _RPCMessages_MessagesGetGameHighScores_Handler, + }, + { + MethodName: "messages_getInlineGameHighScores", + Handler: _RPCMessages_MessagesGetInlineGameHighScores_Handler, + }, + { + MethodName: "messages_getCommonChats", + Handler: _RPCMessages_MessagesGetCommonChats_Handler, + }, + { + MethodName: "messages_getAllChats", + Handler: _RPCMessages_MessagesGetAllChats_Handler, + }, + { + MethodName: "messages_getWebPage", + Handler: _RPCMessages_MessagesGetWebPage_Handler, + }, + { + MethodName: "messages_toggleDialogPin", + Handler: _RPCMessages_MessagesToggleDialogPin_Handler, + }, + { + MethodName: "messages_reorderPinnedDialogs", + Handler: _RPCMessages_MessagesReorderPinnedDialogs_Handler, + }, + { + MethodName: "messages_getPinnedDialogs", + Handler: _RPCMessages_MessagesGetPinnedDialogs_Handler, + }, + { + MethodName: "messages_setBotShippingResults", + Handler: _RPCMessages_MessagesSetBotShippingResults_Handler, + }, + { + MethodName: "messages_setBotPrecheckoutResults", + Handler: _RPCMessages_MessagesSetBotPrecheckoutResults_Handler, + }, + { + MethodName: "messages_uploadMedia", + Handler: _RPCMessages_MessagesUploadMedia_Handler, + }, + { + MethodName: "messages_sendScreenshotNotification", + Handler: _RPCMessages_MessagesSendScreenshotNotification_Handler, + }, + { + MethodName: "messages_getFavedStickers", + Handler: _RPCMessages_MessagesGetFavedStickers_Handler, + }, + { + MethodName: "messages_faveSticker", + Handler: _RPCMessages_MessagesFaveSticker_Handler, + }, + { + MethodName: "messages_getUnreadMentions", + Handler: _RPCMessages_MessagesGetUnreadMentions_Handler, + }, + { + MethodName: "messages_readMentions", + Handler: _RPCMessages_MessagesReadMentions_Handler, + }, + { + MethodName: "messages_getRecentLocations", + Handler: _RPCMessages_MessagesGetRecentLocations_Handler, + }, + { + MethodName: "messages_sendMultiMedia", + Handler: _RPCMessages_MessagesSendMultiMedia_Handler, + }, + { + MethodName: "messages_uploadEncryptedFile", + Handler: _RPCMessages_MessagesUploadEncryptedFile_Handler, + }, + { + MethodName: "messages_searchStickerSets", + Handler: _RPCMessages_MessagesSearchStickerSets_Handler, + }, + { + MethodName: "messages_getSplitRanges", + Handler: _RPCMessages_MessagesGetSplitRanges_Handler, + }, + { + MethodName: "messages_markDialogUnread", + Handler: _RPCMessages_MessagesMarkDialogUnread_Handler, + }, + { + MethodName: "messages_getDialogUnreadMarks", + Handler: _RPCMessages_MessagesGetDialogUnreadMarks_Handler, + }, + { + MethodName: "messages_clearAllDrafts", + Handler: _RPCMessages_MessagesClearAllDrafts_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "schema.tl.sync_service.proto", } -func _RPCMessages_MessagesGetBotCallbackAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetBotCallbackAnswer) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetBotCallbackAnswer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetBotCallbackAnswer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetBotCallbackAnswer(ctx, req.(*TLMessagesGetBotCallbackAnswer)) - } - return interceptor(ctx, in, info, handler) +// RPCBotsClient is the client API for RPCBots service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCBotsClient interface { + // bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; + BotsSendCustomRequest(ctx context.Context, in *TLBotsSendCustomRequest, opts ...grpc.CallOption) (*DataJSON, error) + // bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; + BotsAnswerWebhookJSONQuery(ctx context.Context, in *TLBotsAnswerWebhookJSONQuery, opts ...grpc.CallOption) (*Bool, error) } - -func _RPCMessages_MessagesSetBotCallbackAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSetBotCallbackAnswer) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSetBotCallbackAnswer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSetBotCallbackAnswer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSetBotCallbackAnswer(ctx, req.(*TLMessagesSetBotCallbackAnswer)) - } - return interceptor(ctx, in, info, handler) + +type rPCBotsClient struct { + cc *grpc.ClientConn } -func _RPCMessages_MessagesGetPeerDialogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetPeerDialogs) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetPeerDialogs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetPeerDialogs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetPeerDialogs(ctx, req.(*TLMessagesGetPeerDialogs)) - } - return interceptor(ctx, in, info, handler) +func NewRPCBotsClient(cc *grpc.ClientConn) RPCBotsClient { + return &rPCBotsClient{cc} } -func _RPCMessages_MessagesSaveDraft_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSaveDraft) - if err := dec(in); err != nil { +func (c *rPCBotsClient) BotsSendCustomRequest(ctx context.Context, in *TLBotsSendCustomRequest, opts ...grpc.CallOption) (*DataJSON, error) { + out := new(DataJSON) + err := c.cc.Invoke(ctx, "/mtproto.RPCBots/bots_sendCustomRequest", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSaveDraft(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSaveDraft", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSaveDraft(ctx, req.(*TLMessagesSaveDraft)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesGetAllDrafts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetAllDrafts) - if err := dec(in); err != nil { +func (c *rPCBotsClient) BotsAnswerWebhookJSONQuery(ctx context.Context, in *TLBotsAnswerWebhookJSONQuery, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCBots/bots_answerWebhookJSONQuery", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetAllDrafts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetAllDrafts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetAllDrafts(ctx, req.(*TLMessagesGetAllDrafts)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesGetFeaturedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetFeaturedStickers) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetFeaturedStickers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetFeaturedStickers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetFeaturedStickers(ctx, req.(*TLMessagesGetFeaturedStickers)) - } - return interceptor(ctx, in, info, handler) +// RPCBotsServer is the server API for RPCBots service. +type RPCBotsServer interface { + // bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; + BotsSendCustomRequest(context.Context, *TLBotsSendCustomRequest) (*DataJSON, error) + // bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; + BotsAnswerWebhookJSONQuery(context.Context, *TLBotsAnswerWebhookJSONQuery) (*Bool, error) } -func _RPCMessages_MessagesReadFeaturedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReadFeaturedStickers) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReadFeaturedStickers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReadFeaturedStickers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReadFeaturedStickers(ctx, req.(*TLMessagesReadFeaturedStickers)) - } - return interceptor(ctx, in, info, handler) +func RegisterRPCBotsServer(s *grpc.Server, srv RPCBotsServer) { + s.RegisterService(&_RPCBots_serviceDesc, srv) } -func _RPCMessages_MessagesGetRecentStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetRecentStickers) +func _RPCBots_BotsSendCustomRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLBotsSendCustomRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetRecentStickers(ctx, in) + return srv.(RPCBotsServer).BotsSendCustomRequest(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetRecentStickers", + FullMethod: "/mtproto.RPCBots/BotsSendCustomRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetRecentStickers(ctx, req.(*TLMessagesGetRecentStickers)) + return srv.(RPCBotsServer).BotsSendCustomRequest(ctx, req.(*TLBotsSendCustomRequest)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesSaveRecentSticker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSaveRecentSticker) +func _RPCBots_BotsAnswerWebhookJSONQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLBotsAnswerWebhookJSONQuery) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSaveRecentSticker(ctx, in) + return srv.(RPCBotsServer).BotsAnswerWebhookJSONQuery(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSaveRecentSticker", + FullMethod: "/mtproto.RPCBots/BotsAnswerWebhookJSONQuery", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSaveRecentSticker(ctx, req.(*TLMessagesSaveRecentSticker)) + return srv.(RPCBotsServer).BotsAnswerWebhookJSONQuery(ctx, req.(*TLBotsAnswerWebhookJSONQuery)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesClearRecentStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesClearRecentStickers) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesClearRecentStickers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesClearRecentStickers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesClearRecentStickers(ctx, req.(*TLMessagesClearRecentStickers)) - } - return interceptor(ctx, in, info, handler) +var _RPCBots_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCBots", + HandlerType: (*RPCBotsServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "bots_sendCustomRequest", + Handler: _RPCBots_BotsSendCustomRequest_Handler, + }, + { + MethodName: "bots_answerWebhookJSONQuery", + Handler: _RPCBots_BotsAnswerWebhookJSONQuery_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "schema.tl.sync_service.proto", } -func _RPCMessages_MessagesGetArchivedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetArchivedStickers) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetArchivedStickers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetArchivedStickers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetArchivedStickers(ctx, req.(*TLMessagesGetArchivedStickers)) - } - return interceptor(ctx, in, info, handler) +// RPCStickersClient is the client API for RPCStickers service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCStickersClient interface { + // stickers.createStickerSet#9bd86e6a flags:# masks:flags.0?true user_id:InputUser title:string short_name:string stickers:Vector = messages.StickerSet; + StickersCreateStickerSet(ctx context.Context, in *TLStickersCreateStickerSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) + // stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; + StickersRemoveStickerFromSet(ctx context.Context, in *TLStickersRemoveStickerFromSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) + // stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; + StickersChangeStickerPosition(ctx context.Context, in *TLStickersChangeStickerPosition, opts ...grpc.CallOption) (*Messages_StickerSet, error) + // stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; + StickersAddStickerToSet(ctx context.Context, in *TLStickersAddStickerToSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) } -func _RPCMessages_MessagesGetMaskStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetMaskStickers) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetMaskStickers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetMaskStickers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetMaskStickers(ctx, req.(*TLMessagesGetMaskStickers)) - } - return interceptor(ctx, in, info, handler) +type rPCStickersClient struct { + cc *grpc.ClientConn } -func _RPCMessages_MessagesGetAttachedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetAttachedStickers) - if err := dec(in); err != nil { +func NewRPCStickersClient(cc *grpc.ClientConn) RPCStickersClient { + return &rPCStickersClient{cc} +} + +func (c *rPCStickersClient) StickersCreateStickerSet(ctx context.Context, in *TLStickersCreateStickerSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) { + out := new(Messages_StickerSet) + err := c.cc.Invoke(ctx, "/mtproto.RPCStickers/stickers_createStickerSet", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetAttachedStickers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetAttachedStickers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetAttachedStickers(ctx, req.(*TLMessagesGetAttachedStickers)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesSetGameScore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSetGameScore) - if err := dec(in); err != nil { +func (c *rPCStickersClient) StickersRemoveStickerFromSet(ctx context.Context, in *TLStickersRemoveStickerFromSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) { + out := new(Messages_StickerSet) + err := c.cc.Invoke(ctx, "/mtproto.RPCStickers/stickers_removeStickerFromSet", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSetGameScore(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSetGameScore", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSetGameScore(ctx, req.(*TLMessagesSetGameScore)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesSetInlineGameScore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSetInlineGameScore) - if err := dec(in); err != nil { +func (c *rPCStickersClient) StickersChangeStickerPosition(ctx context.Context, in *TLStickersChangeStickerPosition, opts ...grpc.CallOption) (*Messages_StickerSet, error) { + out := new(Messages_StickerSet) + err := c.cc.Invoke(ctx, "/mtproto.RPCStickers/stickers_changeStickerPosition", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSetInlineGameScore(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSetInlineGameScore", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSetInlineGameScore(ctx, req.(*TLMessagesSetInlineGameScore)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesGetGameHighScores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetGameHighScores) - if err := dec(in); err != nil { +func (c *rPCStickersClient) StickersAddStickerToSet(ctx context.Context, in *TLStickersAddStickerToSet, opts ...grpc.CallOption) (*Messages_StickerSet, error) { + out := new(Messages_StickerSet) + err := c.cc.Invoke(ctx, "/mtproto.RPCStickers/stickers_addStickerToSet", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetGameHighScores(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetGameHighScores", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetGameHighScores(ctx, req.(*TLMessagesGetGameHighScores)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesGetInlineGameHighScores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetInlineGameHighScores) +// RPCStickersServer is the server API for RPCStickers service. +type RPCStickersServer interface { + // stickers.createStickerSet#9bd86e6a flags:# masks:flags.0?true user_id:InputUser title:string short_name:string stickers:Vector = messages.StickerSet; + StickersCreateStickerSet(context.Context, *TLStickersCreateStickerSet) (*Messages_StickerSet, error) + // stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; + StickersRemoveStickerFromSet(context.Context, *TLStickersRemoveStickerFromSet) (*Messages_StickerSet, error) + // stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; + StickersChangeStickerPosition(context.Context, *TLStickersChangeStickerPosition) (*Messages_StickerSet, error) + // stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; + StickersAddStickerToSet(context.Context, *TLStickersAddStickerToSet) (*Messages_StickerSet, error) +} + +func RegisterRPCStickersServer(s *grpc.Server, srv RPCStickersServer) { + s.RegisterService(&_RPCStickers_serviceDesc, srv) +} + +func _RPCStickers_StickersCreateStickerSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLStickersCreateStickerSet) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetInlineGameHighScores(ctx, in) + return srv.(RPCStickersServer).StickersCreateStickerSet(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetInlineGameHighScores", + FullMethod: "/mtproto.RPCStickers/StickersCreateStickerSet", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetInlineGameHighScores(ctx, req.(*TLMessagesGetInlineGameHighScores)) + return srv.(RPCStickersServer).StickersCreateStickerSet(ctx, req.(*TLStickersCreateStickerSet)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesGetCommonChats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetCommonChats) +func _RPCStickers_StickersRemoveStickerFromSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLStickersRemoveStickerFromSet) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetCommonChats(ctx, in) + return srv.(RPCStickersServer).StickersRemoveStickerFromSet(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetCommonChats", + FullMethod: "/mtproto.RPCStickers/StickersRemoveStickerFromSet", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetCommonChats(ctx, req.(*TLMessagesGetCommonChats)) + return srv.(RPCStickersServer).StickersRemoveStickerFromSet(ctx, req.(*TLStickersRemoveStickerFromSet)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesGetAllChats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetAllChats) +func _RPCStickers_StickersChangeStickerPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLStickersChangeStickerPosition) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetAllChats(ctx, in) + return srv.(RPCStickersServer).StickersChangeStickerPosition(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetAllChats", + FullMethod: "/mtproto.RPCStickers/StickersChangeStickerPosition", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetAllChats(ctx, req.(*TLMessagesGetAllChats)) + return srv.(RPCStickersServer).StickersChangeStickerPosition(ctx, req.(*TLStickersChangeStickerPosition)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesGetWebPage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetWebPage) +func _RPCStickers_StickersAddStickerToSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLStickersAddStickerToSet) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetWebPage(ctx, in) + return srv.(RPCStickersServer).StickersAddStickerToSet(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetWebPage", + FullMethod: "/mtproto.RPCStickers/StickersAddStickerToSet", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetWebPage(ctx, req.(*TLMessagesGetWebPage)) + return srv.(RPCStickersServer).StickersAddStickerToSet(ctx, req.(*TLStickersAddStickerToSet)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesToggleDialogPin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesToggleDialogPin) - if err := dec(in); err != nil { +var _RPCStickers_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCStickers", + HandlerType: (*RPCStickersServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "stickers_createStickerSet", + Handler: _RPCStickers_StickersCreateStickerSet_Handler, + }, + { + MethodName: "stickers_removeStickerFromSet", + Handler: _RPCStickers_StickersRemoveStickerFromSet_Handler, + }, + { + MethodName: "stickers_changeStickerPosition", + Handler: _RPCStickers_StickersChangeStickerPosition_Handler, + }, + { + MethodName: "stickers_addStickerToSet", + Handler: _RPCStickers_StickersAddStickerToSet_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "schema.tl.sync_service.proto", +} + +// RPCLangpackClient is the client API for RPCLangpack service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCLangpackClient interface { + // langpack.getLanguages#800fd57d = Vector; + LangpackGetLanguagesLayer70(ctx context.Context, in *TLLangpackGetLanguagesLayer70, opts ...grpc.CallOption) (*Vector_LangPackLanguage, error) + // langpack.getLangPack#9ab5c58e lang_code:string = LangPackDifference; + LangpackGetLangPackLayer71(ctx context.Context, in *TLLangpackGetLangPackLayer71, opts ...grpc.CallOption) (*LangPackDifference, error) + // langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference; + LangpackGetLangPack(ctx context.Context, in *TLLangpackGetLangPack, opts ...grpc.CallOption) (*LangPackDifference, error) + // langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector = Vector; + LangpackGetStrings(ctx context.Context, in *TLLangpackGetStrings, opts ...grpc.CallOption) (*Vector_LangPackString, error) + // langpack.getDifference#b2e4d7d from_version:int = LangPackDifference; + LangpackGetDifference(ctx context.Context, in *TLLangpackGetDifference, opts ...grpc.CallOption) (*LangPackDifference, error) + // langpack.getLanguages#42c6978f lang_pack:string = Vector; + LangpackGetLanguages(ctx context.Context, in *TLLangpackGetLanguages, opts ...grpc.CallOption) (*Vector_LangPackLanguage, error) +} + +type rPCLangpackClient struct { + cc *grpc.ClientConn +} + +func NewRPCLangpackClient(cc *grpc.ClientConn) RPCLangpackClient { + return &rPCLangpackClient{cc} +} + +func (c *rPCLangpackClient) LangpackGetLanguagesLayer70(ctx context.Context, in *TLLangpackGetLanguagesLayer70, opts ...grpc.CallOption) (*Vector_LangPackLanguage, error) { + out := new(Vector_LangPackLanguage) + err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getLanguagesLayer70", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesToggleDialogPin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesToggleDialogPin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesToggleDialogPin(ctx, req.(*TLMessagesToggleDialogPin)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesReorderPinnedDialogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReorderPinnedDialogs) - if err := dec(in); err != nil { +func (c *rPCLangpackClient) LangpackGetLangPackLayer71(ctx context.Context, in *TLLangpackGetLangPackLayer71, opts ...grpc.CallOption) (*LangPackDifference, error) { + out := new(LangPackDifference) + err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getLangPackLayer71", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReorderPinnedDialogs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReorderPinnedDialogs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReorderPinnedDialogs(ctx, req.(*TLMessagesReorderPinnedDialogs)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesGetPinnedDialogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetPinnedDialogs) - if err := dec(in); err != nil { +func (c *rPCLangpackClient) LangpackGetLangPack(ctx context.Context, in *TLLangpackGetLangPack, opts ...grpc.CallOption) (*LangPackDifference, error) { + out := new(LangPackDifference) + err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getLangPack", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetPinnedDialogs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetPinnedDialogs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetPinnedDialogs(ctx, req.(*TLMessagesGetPinnedDialogs)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesSetBotShippingResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSetBotShippingResults) - if err := dec(in); err != nil { +func (c *rPCLangpackClient) LangpackGetStrings(ctx context.Context, in *TLLangpackGetStrings, opts ...grpc.CallOption) (*Vector_LangPackString, error) { + out := new(Vector_LangPackString) + err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getStrings", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSetBotShippingResults(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSetBotShippingResults", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSetBotShippingResults(ctx, req.(*TLMessagesSetBotShippingResults)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesSetBotPrecheckoutResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSetBotPrecheckoutResults) - if err := dec(in); err != nil { +func (c *rPCLangpackClient) LangpackGetDifference(ctx context.Context, in *TLLangpackGetDifference, opts ...grpc.CallOption) (*LangPackDifference, error) { + out := new(LangPackDifference) + err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getDifference", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSetBotPrecheckoutResults(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSetBotPrecheckoutResults", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSetBotPrecheckoutResults(ctx, req.(*TLMessagesSetBotPrecheckoutResults)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesUploadMedia_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesUploadMedia) - if err := dec(in); err != nil { +func (c *rPCLangpackClient) LangpackGetLanguages(ctx context.Context, in *TLLangpackGetLanguages, opts ...grpc.CallOption) (*Vector_LangPackLanguage, error) { + out := new(Vector_LangPackLanguage) + err := c.cc.Invoke(ctx, "/mtproto.RPCLangpack/langpack_getLanguages", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesUploadMedia(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesUploadMedia", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesUploadMedia(ctx, req.(*TLMessagesUploadMedia)) - } - return interceptor(ctx, in, info, handler) + return out, nil +} + +// RPCLangpackServer is the server API for RPCLangpack service. +type RPCLangpackServer interface { + // langpack.getLanguages#800fd57d = Vector; + LangpackGetLanguagesLayer70(context.Context, *TLLangpackGetLanguagesLayer70) (*Vector_LangPackLanguage, error) + // langpack.getLangPack#9ab5c58e lang_code:string = LangPackDifference; + LangpackGetLangPackLayer71(context.Context, *TLLangpackGetLangPackLayer71) (*LangPackDifference, error) + // langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference; + LangpackGetLangPack(context.Context, *TLLangpackGetLangPack) (*LangPackDifference, error) + // langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector = Vector; + LangpackGetStrings(context.Context, *TLLangpackGetStrings) (*Vector_LangPackString, error) + // langpack.getDifference#b2e4d7d from_version:int = LangPackDifference; + LangpackGetDifference(context.Context, *TLLangpackGetDifference) (*LangPackDifference, error) + // langpack.getLanguages#42c6978f lang_pack:string = Vector; + LangpackGetLanguages(context.Context, *TLLangpackGetLanguages) (*Vector_LangPackLanguage, error) } -func _RPCMessages_MessagesSendScreenshotNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSendScreenshotNotification) +func RegisterRPCLangpackServer(s *grpc.Server, srv RPCLangpackServer) { + s.RegisterService(&_RPCLangpack_serviceDesc, srv) +} + +func _RPCLangpack_LangpackGetLanguagesLayer70_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLLangpackGetLanguagesLayer70) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSendScreenshotNotification(ctx, in) + return srv.(RPCLangpackServer).LangpackGetLanguagesLayer70(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSendScreenshotNotification", + FullMethod: "/mtproto.RPCLangpack/LangpackGetLanguagesLayer70", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSendScreenshotNotification(ctx, req.(*TLMessagesSendScreenshotNotification)) + return srv.(RPCLangpackServer).LangpackGetLanguagesLayer70(ctx, req.(*TLLangpackGetLanguagesLayer70)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesGetFavedStickers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetFavedStickers) +func _RPCLangpack_LangpackGetLangPackLayer71_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLLangpackGetLangPackLayer71) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetFavedStickers(ctx, in) + return srv.(RPCLangpackServer).LangpackGetLangPackLayer71(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetFavedStickers", + FullMethod: "/mtproto.RPCLangpack/LangpackGetLangPackLayer71", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetFavedStickers(ctx, req.(*TLMessagesGetFavedStickers)) + return srv.(RPCLangpackServer).LangpackGetLangPackLayer71(ctx, req.(*TLLangpackGetLangPackLayer71)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesFaveSticker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesFaveSticker) +func _RPCLangpack_LangpackGetLangPack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLLangpackGetLangPack) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesFaveSticker(ctx, in) + return srv.(RPCLangpackServer).LangpackGetLangPack(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesFaveSticker", + FullMethod: "/mtproto.RPCLangpack/LangpackGetLangPack", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesFaveSticker(ctx, req.(*TLMessagesFaveSticker)) + return srv.(RPCLangpackServer).LangpackGetLangPack(ctx, req.(*TLLangpackGetLangPack)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesGetUnreadMentions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetUnreadMentions) +func _RPCLangpack_LangpackGetStrings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLLangpackGetStrings) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetUnreadMentions(ctx, in) + return srv.(RPCLangpackServer).LangpackGetStrings(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetUnreadMentions", + FullMethod: "/mtproto.RPCLangpack/LangpackGetStrings", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetUnreadMentions(ctx, req.(*TLMessagesGetUnreadMentions)) + return srv.(RPCLangpackServer).LangpackGetStrings(ctx, req.(*TLLangpackGetStrings)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesReadMentions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesReadMentions) +func _RPCLangpack_LangpackGetDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLLangpackGetDifference) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesReadMentions(ctx, in) + return srv.(RPCLangpackServer).LangpackGetDifference(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesReadMentions", + FullMethod: "/mtproto.RPCLangpack/LangpackGetDifference", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesReadMentions(ctx, req.(*TLMessagesReadMentions)) + return srv.(RPCLangpackServer).LangpackGetDifference(ctx, req.(*TLLangpackGetDifference)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesGetRecentLocations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetRecentLocations) +func _RPCLangpack_LangpackGetLanguages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLLangpackGetLanguages) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetRecentLocations(ctx, in) + return srv.(RPCLangpackServer).LangpackGetLanguages(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetRecentLocations", + FullMethod: "/mtproto.RPCLangpack/LangpackGetLanguages", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetRecentLocations(ctx, req.(*TLMessagesGetRecentLocations)) + return srv.(RPCLangpackServer).LangpackGetLanguages(ctx, req.(*TLLangpackGetLanguages)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesSendMultiMedia_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSendMultiMedia) - if err := dec(in); err != nil { +var _RPCLangpack_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCLangpack", + HandlerType: (*RPCLangpackServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "langpack_getLanguagesLayer70", + Handler: _RPCLangpack_LangpackGetLanguagesLayer70_Handler, + }, + { + MethodName: "langpack_getLangPackLayer71", + Handler: _RPCLangpack_LangpackGetLangPackLayer71_Handler, + }, + { + MethodName: "langpack_getLangPack", + Handler: _RPCLangpack_LangpackGetLangPack_Handler, + }, + { + MethodName: "langpack_getStrings", + Handler: _RPCLangpack_LangpackGetStrings_Handler, + }, + { + MethodName: "langpack_getDifference", + Handler: _RPCLangpack_LangpackGetDifference_Handler, + }, + { + MethodName: "langpack_getLanguages", + Handler: _RPCLangpack_LangpackGetLanguages_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "schema.tl.sync_service.proto", +} + +// RPCUploadClient is the client API for RPCUpload service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCUploadClient interface { + // upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool; + UploadSaveFilePart(ctx context.Context, in *TLUploadSaveFilePart, opts ...grpc.CallOption) (*Bool, error) + // upload.getFile#e3a6cfb5 location:InputFileLocation offset:int limit:int = upload.File; + UploadGetFile(ctx context.Context, in *TLUploadGetFile, opts ...grpc.CallOption) (*Upload_File, error) + // upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool; + UploadSaveBigFilePart(ctx context.Context, in *TLUploadSaveBigFilePart, opts ...grpc.CallOption) (*Bool, error) + // upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile; + UploadGetWebFile(ctx context.Context, in *TLUploadGetWebFile, opts ...grpc.CallOption) (*Upload_WebFile, error) + // upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile; + UploadGetCdnFile(ctx context.Context, in *TLUploadGetCdnFile, opts ...grpc.CallOption) (*Upload_CdnFile, error) + // upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector; + UploadReuploadCdnFile(ctx context.Context, in *TLUploadReuploadCdnFile, opts ...grpc.CallOption) (*Vector_FileHash, error) + // upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector; + UploadGetCdnFileHashes(ctx context.Context, in *TLUploadGetCdnFileHashes, opts ...grpc.CallOption) (*Vector_FileHash, error) + // upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector; + UploadGetFileHashes(ctx context.Context, in *TLUploadGetFileHashes, opts ...grpc.CallOption) (*Vector_FileHash, error) +} + +type rPCUploadClient struct { + cc *grpc.ClientConn +} + +func NewRPCUploadClient(cc *grpc.ClientConn) RPCUploadClient { + return &rPCUploadClient{cc} +} + +func (c *rPCUploadClient) UploadSaveFilePart(ctx context.Context, in *TLUploadSaveFilePart, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_saveFilePart", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSendMultiMedia(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSendMultiMedia", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSendMultiMedia(ctx, req.(*TLMessagesSendMultiMedia)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesUploadEncryptedFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesUploadEncryptedFile) - if err := dec(in); err != nil { +func (c *rPCUploadClient) UploadGetFile(ctx context.Context, in *TLUploadGetFile, opts ...grpc.CallOption) (*Upload_File, error) { + out := new(Upload_File) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getFile", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesUploadEncryptedFile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesUploadEncryptedFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesUploadEncryptedFile(ctx, req.(*TLMessagesUploadEncryptedFile)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesSearchStickerSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesSearchStickerSets) - if err := dec(in); err != nil { +func (c *rPCUploadClient) UploadSaveBigFilePart(ctx context.Context, in *TLUploadSaveBigFilePart, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_saveBigFilePart", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesSearchStickerSets(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesSearchStickerSets", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesSearchStickerSets(ctx, req.(*TLMessagesSearchStickerSets)) + return out, nil +} + +func (c *rPCUploadClient) UploadGetWebFile(ctx context.Context, in *TLUploadGetWebFile, opts ...grpc.CallOption) (*Upload_WebFile, error) { + out := new(Upload_WebFile) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getWebFile", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCMessages_MessagesGetSplitRanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetSplitRanges) - if err := dec(in); err != nil { +func (c *rPCUploadClient) UploadGetCdnFile(ctx context.Context, in *TLUploadGetCdnFile, opts ...grpc.CallOption) (*Upload_CdnFile, error) { + out := new(Upload_CdnFile) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getCdnFile", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetSplitRanges(ctx, in) + return out, nil +} + +func (c *rPCUploadClient) UploadReuploadCdnFile(ctx context.Context, in *TLUploadReuploadCdnFile, opts ...grpc.CallOption) (*Vector_FileHash, error) { + out := new(Vector_FileHash) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_reuploadCdnFile", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetSplitRanges", + return out, nil +} + +func (c *rPCUploadClient) UploadGetCdnFileHashes(ctx context.Context, in *TLUploadGetCdnFileHashes, opts ...grpc.CallOption) (*Vector_FileHash, error) { + out := new(Vector_FileHash) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getCdnFileHashes", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetSplitRanges(ctx, req.(*TLMessagesGetSplitRanges)) + return out, nil +} + +func (c *rPCUploadClient) UploadGetFileHashes(ctx context.Context, in *TLUploadGetFileHashes, opts ...grpc.CallOption) (*Vector_FileHash, error) { + out := new(Vector_FileHash) + err := c.cc.Invoke(ctx, "/mtproto.RPCUpload/upload_getFileHashes", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil +} + +// RPCUploadServer is the server API for RPCUpload service. +type RPCUploadServer interface { + // upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool; + UploadSaveFilePart(context.Context, *TLUploadSaveFilePart) (*Bool, error) + // upload.getFile#e3a6cfb5 location:InputFileLocation offset:int limit:int = upload.File; + UploadGetFile(context.Context, *TLUploadGetFile) (*Upload_File, error) + // upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool; + UploadSaveBigFilePart(context.Context, *TLUploadSaveBigFilePart) (*Bool, error) + // upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile; + UploadGetWebFile(context.Context, *TLUploadGetWebFile) (*Upload_WebFile, error) + // upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile; + UploadGetCdnFile(context.Context, *TLUploadGetCdnFile) (*Upload_CdnFile, error) + // upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector; + UploadReuploadCdnFile(context.Context, *TLUploadReuploadCdnFile) (*Vector_FileHash, error) + // upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector; + UploadGetCdnFileHashes(context.Context, *TLUploadGetCdnFileHashes) (*Vector_FileHash, error) + // upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector; + UploadGetFileHashes(context.Context, *TLUploadGetFileHashes) (*Vector_FileHash, error) +} + +func RegisterRPCUploadServer(s *grpc.Server, srv RPCUploadServer) { + s.RegisterService(&_RPCUpload_serviceDesc, srv) } -func _RPCMessages_MessagesMarkDialogUnread_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesMarkDialogUnread) +func _RPCUpload_UploadSaveFilePart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUploadSaveFilePart) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesMarkDialogUnread(ctx, in) + return srv.(RPCUploadServer).UploadSaveFilePart(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesMarkDialogUnread", + FullMethod: "/mtproto.RPCUpload/UploadSaveFilePart", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesMarkDialogUnread(ctx, req.(*TLMessagesMarkDialogUnread)) + return srv.(RPCUploadServer).UploadSaveFilePart(ctx, req.(*TLUploadSaveFilePart)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesGetDialogUnreadMarks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesGetDialogUnreadMarks) +func _RPCUpload_UploadGetFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUploadGetFile) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesGetDialogUnreadMarks(ctx, in) + return srv.(RPCUploadServer).UploadGetFile(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesGetDialogUnreadMarks", + FullMethod: "/mtproto.RPCUpload/UploadGetFile", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesGetDialogUnreadMarks(ctx, req.(*TLMessagesGetDialogUnreadMarks)) + return srv.(RPCUploadServer).UploadGetFile(ctx, req.(*TLUploadGetFile)) } return interceptor(ctx, in, info, handler) } -func _RPCMessages_MessagesClearAllDrafts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLMessagesClearAllDrafts) +func _RPCUpload_UploadSaveBigFilePart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUploadSaveBigFilePart) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCMessagesServer).MessagesClearAllDrafts(ctx, in) + return srv.(RPCUploadServer).UploadSaveBigFilePart(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCMessages/MessagesClearAllDrafts", + FullMethod: "/mtproto.RPCUpload/UploadSaveBigFilePart", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCMessagesServer).MessagesClearAllDrafts(ctx, req.(*TLMessagesClearAllDrafts)) + return srv.(RPCUploadServer).UploadSaveBigFilePart(ctx, req.(*TLUploadSaveBigFilePart)) } return interceptor(ctx, in, info, handler) -} - -var _RPCMessages_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCMessages", - HandlerType: (*RPCMessagesServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "messages_readHistoryLayer2", - Handler: _RPCMessages_MessagesReadHistoryLayer2_Handler, - }, - { - MethodName: "messages_getHistoryLayer51", - Handler: _RPCMessages_MessagesGetHistoryLayer51_Handler, - }, - { - MethodName: "messages_getDialogsLayer62", - Handler: _RPCMessages_MessagesGetDialogsLayer62_Handler, - }, - { - MethodName: "messages_searchLayer68", - Handler: _RPCMessages_MessagesSearchLayer68_Handler, - }, - { - MethodName: "messages_getMessagesLayer71", - Handler: _RPCMessages_MessagesGetMessagesLayer71_Handler, - }, - { - MethodName: "messages_getMessages", - Handler: _RPCMessages_MessagesGetMessages_Handler, - }, - { - MethodName: "messages_getDialogs", - Handler: _RPCMessages_MessagesGetDialogs_Handler, - }, - { - MethodName: "messages_getHistory", - Handler: _RPCMessages_MessagesGetHistory_Handler, - }, - { - MethodName: "messages_search", - Handler: _RPCMessages_MessagesSearch_Handler, - }, - { - MethodName: "messages_readHistory", - Handler: _RPCMessages_MessagesReadHistory_Handler, - }, - { - MethodName: "messages_deleteHistory", - Handler: _RPCMessages_MessagesDeleteHistory_Handler, - }, - { - MethodName: "messages_deleteMessages", - Handler: _RPCMessages_MessagesDeleteMessages_Handler, - }, - { - MethodName: "messages_receivedMessages", - Handler: _RPCMessages_MessagesReceivedMessages_Handler, - }, - { - MethodName: "messages_setTyping", - Handler: _RPCMessages_MessagesSetTyping_Handler, - }, - { - MethodName: "messages_sendMessage", - Handler: _RPCMessages_MessagesSendMessage_Handler, - }, - { - MethodName: "messages_sendMedia", - Handler: _RPCMessages_MessagesSendMedia_Handler, - }, - { - MethodName: "messages_forwardMessages", - Handler: _RPCMessages_MessagesForwardMessages_Handler, - }, - { - MethodName: "messages_reportSpam", - Handler: _RPCMessages_MessagesReportSpam_Handler, - }, - { - MethodName: "messages_hideReportSpam", - Handler: _RPCMessages_MessagesHideReportSpam_Handler, - }, - { - MethodName: "messages_getPeerSettings", - Handler: _RPCMessages_MessagesGetPeerSettings_Handler, - }, - { - MethodName: "messages_report", - Handler: _RPCMessages_MessagesReport_Handler, - }, - { - MethodName: "messages_getChats", - Handler: _RPCMessages_MessagesGetChats_Handler, - }, - { - MethodName: "messages_getFullChat", - Handler: _RPCMessages_MessagesGetFullChat_Handler, - }, - { - MethodName: "messages_editChatTitle", - Handler: _RPCMessages_MessagesEditChatTitle_Handler, - }, - { - MethodName: "messages_editChatPhoto", - Handler: _RPCMessages_MessagesEditChatPhoto_Handler, - }, - { - MethodName: "messages_addChatUser", - Handler: _RPCMessages_MessagesAddChatUser_Handler, - }, - { - MethodName: "messages_deleteChatUser", - Handler: _RPCMessages_MessagesDeleteChatUser_Handler, - }, - { - MethodName: "messages_createChat", - Handler: _RPCMessages_MessagesCreateChat_Handler, - }, - { - MethodName: "messages_getDhConfig", - Handler: _RPCMessages_MessagesGetDhConfig_Handler, - }, - { - MethodName: "messages_requestEncryption", - Handler: _RPCMessages_MessagesRequestEncryption_Handler, - }, - { - MethodName: "messages_acceptEncryption", - Handler: _RPCMessages_MessagesAcceptEncryption_Handler, - }, - { - MethodName: "messages_discardEncryption", - Handler: _RPCMessages_MessagesDiscardEncryption_Handler, - }, - { - MethodName: "messages_setEncryptedTyping", - Handler: _RPCMessages_MessagesSetEncryptedTyping_Handler, - }, - { - MethodName: "messages_readEncryptedHistory", - Handler: _RPCMessages_MessagesReadEncryptedHistory_Handler, - }, - { - MethodName: "messages_sendEncrypted", - Handler: _RPCMessages_MessagesSendEncrypted_Handler, - }, - { - MethodName: "messages_sendEncryptedFile", - Handler: _RPCMessages_MessagesSendEncryptedFile_Handler, - }, - { - MethodName: "messages_sendEncryptedService", - Handler: _RPCMessages_MessagesSendEncryptedService_Handler, - }, - { - MethodName: "messages_receivedQueue", - Handler: _RPCMessages_MessagesReceivedQueue_Handler, - }, - { - MethodName: "messages_reportEncryptedSpam", - Handler: _RPCMessages_MessagesReportEncryptedSpam_Handler, - }, - { - MethodName: "messages_readMessageContents", - Handler: _RPCMessages_MessagesReadMessageContents_Handler, - }, - { - MethodName: "messages_getStickers", - Handler: _RPCMessages_MessagesGetStickers_Handler, - }, - { - MethodName: "messages_getAllStickers", - Handler: _RPCMessages_MessagesGetAllStickers_Handler, - }, - { - MethodName: "messages_getWebPagePreview", - Handler: _RPCMessages_MessagesGetWebPagePreview_Handler, - }, - { - MethodName: "messages_exportChatInvite", - Handler: _RPCMessages_MessagesExportChatInvite_Handler, - }, - { - MethodName: "messages_checkChatInvite", - Handler: _RPCMessages_MessagesCheckChatInvite_Handler, - }, - { - MethodName: "messages_importChatInvite", - Handler: _RPCMessages_MessagesImportChatInvite_Handler, - }, - { - MethodName: "messages_getStickerSet", - Handler: _RPCMessages_MessagesGetStickerSet_Handler, - }, - { - MethodName: "messages_installStickerSet", - Handler: _RPCMessages_MessagesInstallStickerSet_Handler, - }, - { - MethodName: "messages_uninstallStickerSet", - Handler: _RPCMessages_MessagesUninstallStickerSet_Handler, - }, - { - MethodName: "messages_startBot", - Handler: _RPCMessages_MessagesStartBot_Handler, - }, - { - MethodName: "messages_getMessagesViews", - Handler: _RPCMessages_MessagesGetMessagesViews_Handler, - }, - { - MethodName: "messages_toggleChatAdmins", - Handler: _RPCMessages_MessagesToggleChatAdmins_Handler, - }, - { - MethodName: "messages_editChatAdmin", - Handler: _RPCMessages_MessagesEditChatAdmin_Handler, - }, - { - MethodName: "messages_migrateChat", - Handler: _RPCMessages_MessagesMigrateChat_Handler, - }, - { - MethodName: "messages_searchGlobal", - Handler: _RPCMessages_MessagesSearchGlobal_Handler, - }, +} + +func _RPCUpload_UploadGetWebFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUploadGetWebFile) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCUploadServer).UploadGetWebFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCUpload/UploadGetWebFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCUploadServer).UploadGetWebFile(ctx, req.(*TLUploadGetWebFile)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCUpload_UploadGetCdnFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUploadGetCdnFile) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCUploadServer).UploadGetCdnFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCUpload/UploadGetCdnFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCUploadServer).UploadGetCdnFile(ctx, req.(*TLUploadGetCdnFile)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCUpload_UploadReuploadCdnFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUploadReuploadCdnFile) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCUploadServer).UploadReuploadCdnFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCUpload/UploadReuploadCdnFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCUploadServer).UploadReuploadCdnFile(ctx, req.(*TLUploadReuploadCdnFile)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCUpload_UploadGetCdnFileHashes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUploadGetCdnFileHashes) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCUploadServer).UploadGetCdnFileHashes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCUpload/UploadGetCdnFileHashes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCUploadServer).UploadGetCdnFileHashes(ctx, req.(*TLUploadGetCdnFileHashes)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCUpload_UploadGetFileHashes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLUploadGetFileHashes) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCUploadServer).UploadGetFileHashes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCUpload/UploadGetFileHashes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCUploadServer).UploadGetFileHashes(ctx, req.(*TLUploadGetFileHashes)) + } + return interceptor(ctx, in, info, handler) +} + +var _RPCUpload_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCUpload", + HandlerType: (*RPCUploadServer)(nil), + Methods: []grpc.MethodDesc{ { - MethodName: "messages_reorderStickerSets", - Handler: _RPCMessages_MessagesReorderStickerSets_Handler, + MethodName: "upload_saveFilePart", + Handler: _RPCUpload_UploadSaveFilePart_Handler, }, { - MethodName: "messages_getDocumentByHash", - Handler: _RPCMessages_MessagesGetDocumentByHash_Handler, + MethodName: "upload_getFile", + Handler: _RPCUpload_UploadGetFile_Handler, }, { - MethodName: "messages_searchGifs", - Handler: _RPCMessages_MessagesSearchGifs_Handler, + MethodName: "upload_saveBigFilePart", + Handler: _RPCUpload_UploadSaveBigFilePart_Handler, }, { - MethodName: "messages_getSavedGifs", - Handler: _RPCMessages_MessagesGetSavedGifs_Handler, + MethodName: "upload_getWebFile", + Handler: _RPCUpload_UploadGetWebFile_Handler, }, { - MethodName: "messages_saveGif", - Handler: _RPCMessages_MessagesSaveGif_Handler, + MethodName: "upload_getCdnFile", + Handler: _RPCUpload_UploadGetCdnFile_Handler, }, { - MethodName: "messages_getInlineBotResults", - Handler: _RPCMessages_MessagesGetInlineBotResults_Handler, + MethodName: "upload_reuploadCdnFile", + Handler: _RPCUpload_UploadReuploadCdnFile_Handler, }, { - MethodName: "messages_setInlineBotResults", - Handler: _RPCMessages_MessagesSetInlineBotResults_Handler, + MethodName: "upload_getCdnFileHashes", + Handler: _RPCUpload_UploadGetCdnFileHashes_Handler, }, { - MethodName: "messages_sendInlineBotResult", - Handler: _RPCMessages_MessagesSendInlineBotResult_Handler, + MethodName: "upload_getFileHashes", + Handler: _RPCUpload_UploadGetFileHashes_Handler, }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "schema.tl.sync_service.proto", +} + +// RPCPaymentsClient is the client API for RPCPayments service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCPaymentsClient interface { + // payments.getPaymentForm#99f09745 msg_id:int = payments.PaymentForm; + PaymentsGetPaymentForm(ctx context.Context, in *TLPaymentsGetPaymentForm, opts ...grpc.CallOption) (*Payments_PaymentForm, error) + // payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt; + PaymentsGetPaymentReceipt(ctx context.Context, in *TLPaymentsGetPaymentReceipt, opts ...grpc.CallOption) (*Payments_PaymentReceipt, error) + // payments.validateRequestedInfo#770a8e74 flags:# save:flags.0?true msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo; + PaymentsValidateRequestedInfo(ctx context.Context, in *TLPaymentsValidateRequestedInfo, opts ...grpc.CallOption) (*Payments_ValidatedRequestedInfo, error) + // payments.sendPaymentForm#2b8879b3 flags:# msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials = payments.PaymentResult; + PaymentsSendPaymentForm(ctx context.Context, in *TLPaymentsSendPaymentForm, opts ...grpc.CallOption) (*Payments_PaymentResult, error) + // payments.getSavedInfo#227d824b = payments.SavedInfo; + PaymentsGetSavedInfo(ctx context.Context, in *TLPaymentsGetSavedInfo, opts ...grpc.CallOption) (*Payments_SavedInfo, error) + // payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool; + PaymentsClearSavedInfo(ctx context.Context, in *TLPaymentsClearSavedInfo, opts ...grpc.CallOption) (*Bool, error) +} + +type rPCPaymentsClient struct { + cc *grpc.ClientConn +} + +func NewRPCPaymentsClient(cc *grpc.ClientConn) RPCPaymentsClient { + return &rPCPaymentsClient{cc} +} + +func (c *rPCPaymentsClient) PaymentsGetPaymentForm(ctx context.Context, in *TLPaymentsGetPaymentForm, opts ...grpc.CallOption) (*Payments_PaymentForm, error) { + out := new(Payments_PaymentForm) + err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_getPaymentForm", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCPaymentsClient) PaymentsGetPaymentReceipt(ctx context.Context, in *TLPaymentsGetPaymentReceipt, opts ...grpc.CallOption) (*Payments_PaymentReceipt, error) { + out := new(Payments_PaymentReceipt) + err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_getPaymentReceipt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCPaymentsClient) PaymentsValidateRequestedInfo(ctx context.Context, in *TLPaymentsValidateRequestedInfo, opts ...grpc.CallOption) (*Payments_ValidatedRequestedInfo, error) { + out := new(Payments_ValidatedRequestedInfo) + err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_validateRequestedInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCPaymentsClient) PaymentsSendPaymentForm(ctx context.Context, in *TLPaymentsSendPaymentForm, opts ...grpc.CallOption) (*Payments_PaymentResult, error) { + out := new(Payments_PaymentResult) + err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_sendPaymentForm", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCPaymentsClient) PaymentsGetSavedInfo(ctx context.Context, in *TLPaymentsGetSavedInfo, opts ...grpc.CallOption) (*Payments_SavedInfo, error) { + out := new(Payments_SavedInfo) + err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_getSavedInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCPaymentsClient) PaymentsClearSavedInfo(ctx context.Context, in *TLPaymentsClearSavedInfo, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_clearSavedInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RPCPaymentsServer is the server API for RPCPayments service. +type RPCPaymentsServer interface { + // payments.getPaymentForm#99f09745 msg_id:int = payments.PaymentForm; + PaymentsGetPaymentForm(context.Context, *TLPaymentsGetPaymentForm) (*Payments_PaymentForm, error) + // payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt; + PaymentsGetPaymentReceipt(context.Context, *TLPaymentsGetPaymentReceipt) (*Payments_PaymentReceipt, error) + // payments.validateRequestedInfo#770a8e74 flags:# save:flags.0?true msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo; + PaymentsValidateRequestedInfo(context.Context, *TLPaymentsValidateRequestedInfo) (*Payments_ValidatedRequestedInfo, error) + // payments.sendPaymentForm#2b8879b3 flags:# msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials = payments.PaymentResult; + PaymentsSendPaymentForm(context.Context, *TLPaymentsSendPaymentForm) (*Payments_PaymentResult, error) + // payments.getSavedInfo#227d824b = payments.SavedInfo; + PaymentsGetSavedInfo(context.Context, *TLPaymentsGetSavedInfo) (*Payments_SavedInfo, error) + // payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool; + PaymentsClearSavedInfo(context.Context, *TLPaymentsClearSavedInfo) (*Bool, error) +} + +func RegisterRPCPaymentsServer(s *grpc.Server, srv RPCPaymentsServer) { + s.RegisterService(&_RPCPayments_serviceDesc, srv) +} + +func _RPCPayments_PaymentsGetPaymentForm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPaymentsGetPaymentForm) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCPaymentsServer).PaymentsGetPaymentForm(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPayments/PaymentsGetPaymentForm", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPaymentsServer).PaymentsGetPaymentForm(ctx, req.(*TLPaymentsGetPaymentForm)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCPayments_PaymentsGetPaymentReceipt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPaymentsGetPaymentReceipt) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCPaymentsServer).PaymentsGetPaymentReceipt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPayments/PaymentsGetPaymentReceipt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPaymentsServer).PaymentsGetPaymentReceipt(ctx, req.(*TLPaymentsGetPaymentReceipt)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCPayments_PaymentsValidateRequestedInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPaymentsValidateRequestedInfo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCPaymentsServer).PaymentsValidateRequestedInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPayments/PaymentsValidateRequestedInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPaymentsServer).PaymentsValidateRequestedInfo(ctx, req.(*TLPaymentsValidateRequestedInfo)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCPayments_PaymentsSendPaymentForm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPaymentsSendPaymentForm) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCPaymentsServer).PaymentsSendPaymentForm(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPayments/PaymentsSendPaymentForm", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPaymentsServer).PaymentsSendPaymentForm(ctx, req.(*TLPaymentsSendPaymentForm)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCPayments_PaymentsGetSavedInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPaymentsGetSavedInfo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCPaymentsServer).PaymentsGetSavedInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPayments/PaymentsGetSavedInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPaymentsServer).PaymentsGetSavedInfo(ctx, req.(*TLPaymentsGetSavedInfo)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCPayments_PaymentsClearSavedInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPaymentsClearSavedInfo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCPaymentsServer).PaymentsClearSavedInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCPayments/PaymentsClearSavedInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCPaymentsServer).PaymentsClearSavedInfo(ctx, req.(*TLPaymentsClearSavedInfo)) + } + return interceptor(ctx, in, info, handler) +} + +var _RPCPayments_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCPayments", + HandlerType: (*RPCPaymentsServer)(nil), + Methods: []grpc.MethodDesc{ { - MethodName: "messages_getMessageEditData", - Handler: _RPCMessages_MessagesGetMessageEditData_Handler, + MethodName: "payments_getPaymentForm", + Handler: _RPCPayments_PaymentsGetPaymentForm_Handler, }, { - MethodName: "messages_editMessage", - Handler: _RPCMessages_MessagesEditMessage_Handler, + MethodName: "payments_getPaymentReceipt", + Handler: _RPCPayments_PaymentsGetPaymentReceipt_Handler, }, { - MethodName: "messages_editInlineBotMessage", - Handler: _RPCMessages_MessagesEditInlineBotMessage_Handler, + MethodName: "payments_validateRequestedInfo", + Handler: _RPCPayments_PaymentsValidateRequestedInfo_Handler, }, { - MethodName: "messages_getBotCallbackAnswer", - Handler: _RPCMessages_MessagesGetBotCallbackAnswer_Handler, + MethodName: "payments_sendPaymentForm", + Handler: _RPCPayments_PaymentsSendPaymentForm_Handler, }, { - MethodName: "messages_setBotCallbackAnswer", - Handler: _RPCMessages_MessagesSetBotCallbackAnswer_Handler, + MethodName: "payments_getSavedInfo", + Handler: _RPCPayments_PaymentsGetSavedInfo_Handler, }, { - MethodName: "messages_getPeerDialogs", - Handler: _RPCMessages_MessagesGetPeerDialogs_Handler, + MethodName: "payments_clearSavedInfo", + Handler: _RPCPayments_PaymentsClearSavedInfo_Handler, }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "schema.tl.sync_service.proto", +} + +// RPCHelpClient is the client API for RPCHelp service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCHelpClient interface { + // help.getScheme#dbb69a9e version:int = Scheme; + HelpGetScheme(ctx context.Context, in *TLHelpGetScheme, opts ...grpc.CallOption) (*Scheme, error) + // help.getInviteText#a4a95186 lang_code:string = help.InviteText; + HelpGetInviteTextLayer46(ctx context.Context, in *TLHelpGetInviteTextLayer46, opts ...grpc.CallOption) (*Help_InviteText, error) + // help.getAppUpdate#c812ac7e device_model:string system_version:string app_version:string lang_code:string = help.AppUpdate; + HelpGetAppUpdateLayer46(ctx context.Context, in *TLHelpGetAppUpdateLayer46, opts ...grpc.CallOption) (*Help_AppUpdate, error) + // help.getAppUpdate#ae2de196 = help.AppUpdate; + HelpGetAppUpdateLayer62(ctx context.Context, in *TLHelpGetAppUpdateLayer62, opts ...grpc.CallOption) (*Help_AppUpdate, error) + // help.getConfig#c4f9186b = Config; + HelpGetConfig(ctx context.Context, in *TLHelpGetConfig, opts ...grpc.CallOption) (*Config, error) + // help.getNearestDc#1fb33026 = NearestDc; + HelpGetNearestDc(ctx context.Context, in *TLHelpGetNearestDc, opts ...grpc.CallOption) (*NearestDc, error) + // help.getAppUpdate#522d5a7d source:string = help.AppUpdate; + HelpGetAppUpdate(ctx context.Context, in *TLHelpGetAppUpdate, opts ...grpc.CallOption) (*Help_AppUpdate, error) + // help.saveAppLog#6f02f748 events:Vector = Bool; + HelpSaveAppLog(ctx context.Context, in *TLHelpSaveAppLog, opts ...grpc.CallOption) (*Bool, error) + // help.getInviteText#4d392343 = help.InviteText; + HelpGetInviteText(ctx context.Context, in *TLHelpGetInviteText, opts ...grpc.CallOption) (*Help_InviteText, error) + // help.getSupport#9cdf08cd = help.Support; + HelpGetSupport(ctx context.Context, in *TLHelpGetSupport, opts ...grpc.CallOption) (*Help_Support, error) + // help.getAppChangelog#9010ef6f prev_app_version:string = Updates; + HelpGetAppChangelog(ctx context.Context, in *TLHelpGetAppChangelog, opts ...grpc.CallOption) (*Updates, error) + // help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool; + HelpSetBotUpdatesStatus(ctx context.Context, in *TLHelpSetBotUpdatesStatus, opts ...grpc.CallOption) (*Bool, error) + // help.getCdnConfig#52029342 = CdnConfig; + HelpGetCdnConfig(ctx context.Context, in *TLHelpGetCdnConfig, opts ...grpc.CallOption) (*CdnConfig, error) + // help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls; + HelpGetRecentMeUrls(ctx context.Context, in *TLHelpGetRecentMeUrls, opts ...grpc.CallOption) (*Help_RecentMeUrls, error) + // help.getProxyData#3d7758e1 = help.ProxyData; + HelpGetProxyData(ctx context.Context, in *TLHelpGetProxyData, opts ...grpc.CallOption) (*Help_ProxyData, error) + // help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate; + HelpGetTermsOfServiceUpdate(ctx context.Context, in *TLHelpGetTermsOfServiceUpdate, opts ...grpc.CallOption) (*Help_TermsOfServiceUpdate, error) + // help.acceptTermsOfService#ee72f79a id:DataJSON = Bool; + HelpAcceptTermsOfService(ctx context.Context, in *TLHelpAcceptTermsOfService, opts ...grpc.CallOption) (*Bool, error) + // help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo; + HelpGetDeepLinkInfo(ctx context.Context, in *TLHelpGetDeepLinkInfo, opts ...grpc.CallOption) (*Help_DeepLinkInfo, error) + // help.getPassportConfig#c661ad08 hash:int = help.PassportConfig; + HelpGetPassportConfig(ctx context.Context, in *TLHelpGetPassportConfig, opts ...grpc.CallOption) (*Help_PassportConfig, error) + // help.test#c0e202f7 = Bool; + HelpTest(ctx context.Context, in *TLHelpTest, opts ...grpc.CallOption) (*Bool, error) +} + +type rPCHelpClient struct { + cc *grpc.ClientConn +} + +func NewRPCHelpClient(cc *grpc.ClientConn) RPCHelpClient { + return &rPCHelpClient{cc} +} + +func (c *rPCHelpClient) HelpGetScheme(ctx context.Context, in *TLHelpGetScheme, opts ...grpc.CallOption) (*Scheme, error) { + out := new(Scheme) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getScheme", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetInviteTextLayer46(ctx context.Context, in *TLHelpGetInviteTextLayer46, opts ...grpc.CallOption) (*Help_InviteText, error) { + out := new(Help_InviteText) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getInviteTextLayer46", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetAppUpdateLayer46(ctx context.Context, in *TLHelpGetAppUpdateLayer46, opts ...grpc.CallOption) (*Help_AppUpdate, error) { + out := new(Help_AppUpdate) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getAppUpdateLayer46", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetAppUpdateLayer62(ctx context.Context, in *TLHelpGetAppUpdateLayer62, opts ...grpc.CallOption) (*Help_AppUpdate, error) { + out := new(Help_AppUpdate) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getAppUpdateLayer62", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetConfig(ctx context.Context, in *TLHelpGetConfig, opts ...grpc.CallOption) (*Config, error) { + out := new(Config) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetNearestDc(ctx context.Context, in *TLHelpGetNearestDc, opts ...grpc.CallOption) (*NearestDc, error) { + out := new(NearestDc) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getNearestDc", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetAppUpdate(ctx context.Context, in *TLHelpGetAppUpdate, opts ...grpc.CallOption) (*Help_AppUpdate, error) { + out := new(Help_AppUpdate) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getAppUpdate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpSaveAppLog(ctx context.Context, in *TLHelpSaveAppLog, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_saveAppLog", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetInviteText(ctx context.Context, in *TLHelpGetInviteText, opts ...grpc.CallOption) (*Help_InviteText, error) { + out := new(Help_InviteText) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getInviteText", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetSupport(ctx context.Context, in *TLHelpGetSupport, opts ...grpc.CallOption) (*Help_Support, error) { + out := new(Help_Support) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getSupport", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetAppChangelog(ctx context.Context, in *TLHelpGetAppChangelog, opts ...grpc.CallOption) (*Updates, error) { + out := new(Updates) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getAppChangelog", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpSetBotUpdatesStatus(ctx context.Context, in *TLHelpSetBotUpdatesStatus, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_setBotUpdatesStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetCdnConfig(ctx context.Context, in *TLHelpGetCdnConfig, opts ...grpc.CallOption) (*CdnConfig, error) { + out := new(CdnConfig) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getCdnConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetRecentMeUrls(ctx context.Context, in *TLHelpGetRecentMeUrls, opts ...grpc.CallOption) (*Help_RecentMeUrls, error) { + out := new(Help_RecentMeUrls) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getRecentMeUrls", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetProxyData(ctx context.Context, in *TLHelpGetProxyData, opts ...grpc.CallOption) (*Help_ProxyData, error) { + out := new(Help_ProxyData) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getProxyData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetTermsOfServiceUpdate(ctx context.Context, in *TLHelpGetTermsOfServiceUpdate, opts ...grpc.CallOption) (*Help_TermsOfServiceUpdate, error) { + out := new(Help_TermsOfServiceUpdate) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getTermsOfServiceUpdate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpAcceptTermsOfService(ctx context.Context, in *TLHelpAcceptTermsOfService, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_acceptTermsOfService", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetDeepLinkInfo(ctx context.Context, in *TLHelpGetDeepLinkInfo, opts ...grpc.CallOption) (*Help_DeepLinkInfo, error) { + out := new(Help_DeepLinkInfo) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getDeepLinkInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpGetPassportConfig(ctx context.Context, in *TLHelpGetPassportConfig, opts ...grpc.CallOption) (*Help_PassportConfig, error) { + out := new(Help_PassportConfig) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_getPassportConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCHelpClient) HelpTest(ctx context.Context, in *TLHelpTest, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCHelp/help_test", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RPCHelpServer is the server API for RPCHelp service. +type RPCHelpServer interface { + // help.getScheme#dbb69a9e version:int = Scheme; + HelpGetScheme(context.Context, *TLHelpGetScheme) (*Scheme, error) + // help.getInviteText#a4a95186 lang_code:string = help.InviteText; + HelpGetInviteTextLayer46(context.Context, *TLHelpGetInviteTextLayer46) (*Help_InviteText, error) + // help.getAppUpdate#c812ac7e device_model:string system_version:string app_version:string lang_code:string = help.AppUpdate; + HelpGetAppUpdateLayer46(context.Context, *TLHelpGetAppUpdateLayer46) (*Help_AppUpdate, error) + // help.getAppUpdate#ae2de196 = help.AppUpdate; + HelpGetAppUpdateLayer62(context.Context, *TLHelpGetAppUpdateLayer62) (*Help_AppUpdate, error) + // help.getConfig#c4f9186b = Config; + HelpGetConfig(context.Context, *TLHelpGetConfig) (*Config, error) + // help.getNearestDc#1fb33026 = NearestDc; + HelpGetNearestDc(context.Context, *TLHelpGetNearestDc) (*NearestDc, error) + // help.getAppUpdate#522d5a7d source:string = help.AppUpdate; + HelpGetAppUpdate(context.Context, *TLHelpGetAppUpdate) (*Help_AppUpdate, error) + // help.saveAppLog#6f02f748 events:Vector = Bool; + HelpSaveAppLog(context.Context, *TLHelpSaveAppLog) (*Bool, error) + // help.getInviteText#4d392343 = help.InviteText; + HelpGetInviteText(context.Context, *TLHelpGetInviteText) (*Help_InviteText, error) + // help.getSupport#9cdf08cd = help.Support; + HelpGetSupport(context.Context, *TLHelpGetSupport) (*Help_Support, error) + // help.getAppChangelog#9010ef6f prev_app_version:string = Updates; + HelpGetAppChangelog(context.Context, *TLHelpGetAppChangelog) (*Updates, error) + // help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool; + HelpSetBotUpdatesStatus(context.Context, *TLHelpSetBotUpdatesStatus) (*Bool, error) + // help.getCdnConfig#52029342 = CdnConfig; + HelpGetCdnConfig(context.Context, *TLHelpGetCdnConfig) (*CdnConfig, error) + // help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls; + HelpGetRecentMeUrls(context.Context, *TLHelpGetRecentMeUrls) (*Help_RecentMeUrls, error) + // help.getProxyData#3d7758e1 = help.ProxyData; + HelpGetProxyData(context.Context, *TLHelpGetProxyData) (*Help_ProxyData, error) + // help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate; + HelpGetTermsOfServiceUpdate(context.Context, *TLHelpGetTermsOfServiceUpdate) (*Help_TermsOfServiceUpdate, error) + // help.acceptTermsOfService#ee72f79a id:DataJSON = Bool; + HelpAcceptTermsOfService(context.Context, *TLHelpAcceptTermsOfService) (*Bool, error) + // help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo; + HelpGetDeepLinkInfo(context.Context, *TLHelpGetDeepLinkInfo) (*Help_DeepLinkInfo, error) + // help.getPassportConfig#c661ad08 hash:int = help.PassportConfig; + HelpGetPassportConfig(context.Context, *TLHelpGetPassportConfig) (*Help_PassportConfig, error) + // help.test#c0e202f7 = Bool; + HelpTest(context.Context, *TLHelpTest) (*Bool, error) +} + +func RegisterRPCHelpServer(s *grpc.Server, srv RPCHelpServer) { + s.RegisterService(&_RPCHelp_serviceDesc, srv) +} + +func _RPCHelp_HelpGetScheme_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetScheme) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetScheme(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetScheme", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetScheme(ctx, req.(*TLHelpGetScheme)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetInviteTextLayer46_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetInviteTextLayer46) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetInviteTextLayer46(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetInviteTextLayer46", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetInviteTextLayer46(ctx, req.(*TLHelpGetInviteTextLayer46)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetAppUpdateLayer46_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetAppUpdateLayer46) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetAppUpdateLayer46(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetAppUpdateLayer46", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetAppUpdateLayer46(ctx, req.(*TLHelpGetAppUpdateLayer46)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetAppUpdateLayer62_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetAppUpdateLayer62) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetAppUpdateLayer62(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetAppUpdateLayer62", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetAppUpdateLayer62(ctx, req.(*TLHelpGetAppUpdateLayer62)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetConfig) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetConfig(ctx, req.(*TLHelpGetConfig)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetNearestDc_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetNearestDc) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetNearestDc(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetNearestDc", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetNearestDc(ctx, req.(*TLHelpGetNearestDc)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetAppUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetAppUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetAppUpdate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetAppUpdate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetAppUpdate(ctx, req.(*TLHelpGetAppUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpSaveAppLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpSaveAppLog) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpSaveAppLog(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpSaveAppLog", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpSaveAppLog(ctx, req.(*TLHelpSaveAppLog)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetInviteText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetInviteText) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetInviteText(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetInviteText", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetInviteText(ctx, req.(*TLHelpGetInviteText)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetSupport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetSupport) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetSupport(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetSupport", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetSupport(ctx, req.(*TLHelpGetSupport)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetAppChangelog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetAppChangelog) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetAppChangelog(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetAppChangelog", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetAppChangelog(ctx, req.(*TLHelpGetAppChangelog)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpSetBotUpdatesStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpSetBotUpdatesStatus) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpSetBotUpdatesStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpSetBotUpdatesStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpSetBotUpdatesStatus(ctx, req.(*TLHelpSetBotUpdatesStatus)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetCdnConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetCdnConfig) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetCdnConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetCdnConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetCdnConfig(ctx, req.(*TLHelpGetCdnConfig)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetRecentMeUrls_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetRecentMeUrls) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetRecentMeUrls(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetRecentMeUrls", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetRecentMeUrls(ctx, req.(*TLHelpGetRecentMeUrls)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetProxyData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetProxyData) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetProxyData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetProxyData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetProxyData(ctx, req.(*TLHelpGetProxyData)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetTermsOfServiceUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetTermsOfServiceUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetTermsOfServiceUpdate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetTermsOfServiceUpdate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetTermsOfServiceUpdate(ctx, req.(*TLHelpGetTermsOfServiceUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpAcceptTermsOfService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpAcceptTermsOfService) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpAcceptTermsOfService(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpAcceptTermsOfService", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpAcceptTermsOfService(ctx, req.(*TLHelpAcceptTermsOfService)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetDeepLinkInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetDeepLinkInfo) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetDeepLinkInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetDeepLinkInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetDeepLinkInfo(ctx, req.(*TLHelpGetDeepLinkInfo)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpGetPassportConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpGetPassportConfig) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpGetPassportConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpGetPassportConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpGetPassportConfig(ctx, req.(*TLHelpGetPassportConfig)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCHelp_HelpTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLHelpTest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCHelpServer).HelpTest(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCHelp/HelpTest", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCHelpServer).HelpTest(ctx, req.(*TLHelpTest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RPCHelp_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCHelp", + HandlerType: (*RPCHelpServer)(nil), + Methods: []grpc.MethodDesc{ { - MethodName: "messages_saveDraft", - Handler: _RPCMessages_MessagesSaveDraft_Handler, + MethodName: "help_getScheme", + Handler: _RPCHelp_HelpGetScheme_Handler, }, { - MethodName: "messages_getAllDrafts", - Handler: _RPCMessages_MessagesGetAllDrafts_Handler, + MethodName: "help_getInviteTextLayer46", + Handler: _RPCHelp_HelpGetInviteTextLayer46_Handler, }, { - MethodName: "messages_getFeaturedStickers", - Handler: _RPCMessages_MessagesGetFeaturedStickers_Handler, + MethodName: "help_getAppUpdateLayer46", + Handler: _RPCHelp_HelpGetAppUpdateLayer46_Handler, }, { - MethodName: "messages_readFeaturedStickers", - Handler: _RPCMessages_MessagesReadFeaturedStickers_Handler, + MethodName: "help_getAppUpdateLayer62", + Handler: _RPCHelp_HelpGetAppUpdateLayer62_Handler, }, { - MethodName: "messages_getRecentStickers", - Handler: _RPCMessages_MessagesGetRecentStickers_Handler, + MethodName: "help_getConfig", + Handler: _RPCHelp_HelpGetConfig_Handler, }, { - MethodName: "messages_saveRecentSticker", - Handler: _RPCMessages_MessagesSaveRecentSticker_Handler, + MethodName: "help_getNearestDc", + Handler: _RPCHelp_HelpGetNearestDc_Handler, }, { - MethodName: "messages_clearRecentStickers", - Handler: _RPCMessages_MessagesClearRecentStickers_Handler, + MethodName: "help_getAppUpdate", + Handler: _RPCHelp_HelpGetAppUpdate_Handler, }, { - MethodName: "messages_getArchivedStickers", - Handler: _RPCMessages_MessagesGetArchivedStickers_Handler, + MethodName: "help_saveAppLog", + Handler: _RPCHelp_HelpSaveAppLog_Handler, }, { - MethodName: "messages_getMaskStickers", - Handler: _RPCMessages_MessagesGetMaskStickers_Handler, + MethodName: "help_getInviteText", + Handler: _RPCHelp_HelpGetInviteText_Handler, }, { - MethodName: "messages_getAttachedStickers", - Handler: _RPCMessages_MessagesGetAttachedStickers_Handler, + MethodName: "help_getSupport", + Handler: _RPCHelp_HelpGetSupport_Handler, }, { - MethodName: "messages_setGameScore", - Handler: _RPCMessages_MessagesSetGameScore_Handler, + MethodName: "help_getAppChangelog", + Handler: _RPCHelp_HelpGetAppChangelog_Handler, }, { - MethodName: "messages_setInlineGameScore", - Handler: _RPCMessages_MessagesSetInlineGameScore_Handler, + MethodName: "help_setBotUpdatesStatus", + Handler: _RPCHelp_HelpSetBotUpdatesStatus_Handler, }, { - MethodName: "messages_getGameHighScores", - Handler: _RPCMessages_MessagesGetGameHighScores_Handler, + MethodName: "help_getCdnConfig", + Handler: _RPCHelp_HelpGetCdnConfig_Handler, }, { - MethodName: "messages_getInlineGameHighScores", - Handler: _RPCMessages_MessagesGetInlineGameHighScores_Handler, + MethodName: "help_getRecentMeUrls", + Handler: _RPCHelp_HelpGetRecentMeUrls_Handler, }, { - MethodName: "messages_getCommonChats", - Handler: _RPCMessages_MessagesGetCommonChats_Handler, + MethodName: "help_getProxyData", + Handler: _RPCHelp_HelpGetProxyData_Handler, }, { - MethodName: "messages_getAllChats", - Handler: _RPCMessages_MessagesGetAllChats_Handler, + MethodName: "help_getTermsOfServiceUpdate", + Handler: _RPCHelp_HelpGetTermsOfServiceUpdate_Handler, }, { - MethodName: "messages_getWebPage", - Handler: _RPCMessages_MessagesGetWebPage_Handler, + MethodName: "help_acceptTermsOfService", + Handler: _RPCHelp_HelpAcceptTermsOfService_Handler, }, { - MethodName: "messages_toggleDialogPin", - Handler: _RPCMessages_MessagesToggleDialogPin_Handler, + MethodName: "help_getDeepLinkInfo", + Handler: _RPCHelp_HelpGetDeepLinkInfo_Handler, }, { - MethodName: "messages_reorderPinnedDialogs", - Handler: _RPCMessages_MessagesReorderPinnedDialogs_Handler, + MethodName: "help_getPassportConfig", + Handler: _RPCHelp_HelpGetPassportConfig_Handler, }, { - MethodName: "messages_getPinnedDialogs", - Handler: _RPCMessages_MessagesGetPinnedDialogs_Handler, + MethodName: "help_test", + Handler: _RPCHelp_HelpTest_Handler, }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "schema.tl.sync_service.proto", +} + +// RPCAuthClient is the client API for RPCAuth service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCAuthClient interface { + // auth.sendCode#ccfd70cf flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string lang_code:string = auth.SentCode; + AuthSendCodeLayer51(ctx context.Context, in *TLAuthSendCodeLayer51, opts ...grpc.CallOption) (*Auth_SentCode, error) + // auth.sendCode#86aef0ec flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string = auth.SentCode; + AuthSendCode(ctx context.Context, in *TLAuthSendCode, opts ...grpc.CallOption) (*Auth_SentCode, error) + // auth.signUp#1b067634 phone_number:string phone_code_hash:string phone_code:string first_name:string last_name:string = auth.Authorization; + AuthSignUp(ctx context.Context, in *TLAuthSignUp, opts ...grpc.CallOption) (*Auth_Authorization, error) + // auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization; + AuthSignIn(ctx context.Context, in *TLAuthSignIn, opts ...grpc.CallOption) (*Auth_Authorization, error) + // auth.logOut#5717da40 = Bool; + AuthLogOut(ctx context.Context, in *TLAuthLogOut, opts ...grpc.CallOption) (*Bool, error) + // auth.resetAuthorizations#9fab0d1a = Bool; + AuthResetAuthorizations(ctx context.Context, in *TLAuthResetAuthorizations, opts ...grpc.CallOption) (*Bool, error) + // auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization; + AuthExportAuthorization(ctx context.Context, in *TLAuthExportAuthorization, opts ...grpc.CallOption) (*Auth_ExportedAuthorization, error) + // auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization; + AuthImportAuthorization(ctx context.Context, in *TLAuthImportAuthorization, opts ...grpc.CallOption) (*Auth_Authorization, error) + // auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool; + AuthBindTempAuthKey(ctx context.Context, in *TLAuthBindTempAuthKey, opts ...grpc.CallOption) (*Bool, error) + // auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization; + AuthImportBotAuthorization(ctx context.Context, in *TLAuthImportBotAuthorization, opts ...grpc.CallOption) (*Auth_Authorization, error) + // auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization; + AuthCheckPassword(ctx context.Context, in *TLAuthCheckPassword, opts ...grpc.CallOption) (*Auth_Authorization, error) + // auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; + AuthRequestPasswordRecovery(ctx context.Context, in *TLAuthRequestPasswordRecovery, opts ...grpc.CallOption) (*Auth_PasswordRecovery, error) + // auth.recoverPassword#4ea56e92 code:string = auth.Authorization; + AuthRecoverPassword(ctx context.Context, in *TLAuthRecoverPassword, opts ...grpc.CallOption) (*Auth_Authorization, error) + // auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode; + AuthResendCode(ctx context.Context, in *TLAuthResendCode, opts ...grpc.CallOption) (*Auth_SentCode, error) + // auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool; + AuthCancelCode(ctx context.Context, in *TLAuthCancelCode, opts ...grpc.CallOption) (*Bool, error) + // auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool; + AuthDropTempAuthKeys(ctx context.Context, in *TLAuthDropTempAuthKeys, opts ...grpc.CallOption) (*Bool, error) +} + +type rPCAuthClient struct { + cc *grpc.ClientConn +} + +func NewRPCAuthClient(cc *grpc.ClientConn) RPCAuthClient { + return &rPCAuthClient{cc} +} + +func (c *rPCAuthClient) AuthSendCodeLayer51(ctx context.Context, in *TLAuthSendCodeLayer51, opts ...grpc.CallOption) (*Auth_SentCode, error) { + out := new(Auth_SentCode) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_sendCodeLayer51", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthSendCode(ctx context.Context, in *TLAuthSendCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { + out := new(Auth_SentCode) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_sendCode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthSignUp(ctx context.Context, in *TLAuthSignUp, opts ...grpc.CallOption) (*Auth_Authorization, error) { + out := new(Auth_Authorization) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_signUp", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthSignIn(ctx context.Context, in *TLAuthSignIn, opts ...grpc.CallOption) (*Auth_Authorization, error) { + out := new(Auth_Authorization) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_signIn", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthLogOut(ctx context.Context, in *TLAuthLogOut, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_logOut", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthResetAuthorizations(ctx context.Context, in *TLAuthResetAuthorizations, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_resetAuthorizations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthExportAuthorization(ctx context.Context, in *TLAuthExportAuthorization, opts ...grpc.CallOption) (*Auth_ExportedAuthorization, error) { + out := new(Auth_ExportedAuthorization) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_exportAuthorization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthImportAuthorization(ctx context.Context, in *TLAuthImportAuthorization, opts ...grpc.CallOption) (*Auth_Authorization, error) { + out := new(Auth_Authorization) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_importAuthorization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthBindTempAuthKey(ctx context.Context, in *TLAuthBindTempAuthKey, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_bindTempAuthKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthImportBotAuthorization(ctx context.Context, in *TLAuthImportBotAuthorization, opts ...grpc.CallOption) (*Auth_Authorization, error) { + out := new(Auth_Authorization) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_importBotAuthorization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthCheckPassword(ctx context.Context, in *TLAuthCheckPassword, opts ...grpc.CallOption) (*Auth_Authorization, error) { + out := new(Auth_Authorization) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_checkPassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthRequestPasswordRecovery(ctx context.Context, in *TLAuthRequestPasswordRecovery, opts ...grpc.CallOption) (*Auth_PasswordRecovery, error) { + out := new(Auth_PasswordRecovery) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_requestPasswordRecovery", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthRecoverPassword(ctx context.Context, in *TLAuthRecoverPassword, opts ...grpc.CallOption) (*Auth_Authorization, error) { + out := new(Auth_Authorization) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_recoverPassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthResendCode(ctx context.Context, in *TLAuthResendCode, opts ...grpc.CallOption) (*Auth_SentCode, error) { + out := new(Auth_SentCode) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_resendCode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthCancelCode(ctx context.Context, in *TLAuthCancelCode, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_cancelCode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCAuthClient) AuthDropTempAuthKeys(ctx context.Context, in *TLAuthDropTempAuthKeys, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCAuth/auth_dropTempAuthKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RPCAuthServer is the server API for RPCAuth service. +type RPCAuthServer interface { + // auth.sendCode#ccfd70cf flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string lang_code:string = auth.SentCode; + AuthSendCodeLayer51(context.Context, *TLAuthSendCodeLayer51) (*Auth_SentCode, error) + // auth.sendCode#86aef0ec flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string = auth.SentCode; + AuthSendCode(context.Context, *TLAuthSendCode) (*Auth_SentCode, error) + // auth.signUp#1b067634 phone_number:string phone_code_hash:string phone_code:string first_name:string last_name:string = auth.Authorization; + AuthSignUp(context.Context, *TLAuthSignUp) (*Auth_Authorization, error) + // auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization; + AuthSignIn(context.Context, *TLAuthSignIn) (*Auth_Authorization, error) + // auth.logOut#5717da40 = Bool; + AuthLogOut(context.Context, *TLAuthLogOut) (*Bool, error) + // auth.resetAuthorizations#9fab0d1a = Bool; + AuthResetAuthorizations(context.Context, *TLAuthResetAuthorizations) (*Bool, error) + // auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization; + AuthExportAuthorization(context.Context, *TLAuthExportAuthorization) (*Auth_ExportedAuthorization, error) + // auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization; + AuthImportAuthorization(context.Context, *TLAuthImportAuthorization) (*Auth_Authorization, error) + // auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool; + AuthBindTempAuthKey(context.Context, *TLAuthBindTempAuthKey) (*Bool, error) + // auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization; + AuthImportBotAuthorization(context.Context, *TLAuthImportBotAuthorization) (*Auth_Authorization, error) + // auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization; + AuthCheckPassword(context.Context, *TLAuthCheckPassword) (*Auth_Authorization, error) + // auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; + AuthRequestPasswordRecovery(context.Context, *TLAuthRequestPasswordRecovery) (*Auth_PasswordRecovery, error) + // auth.recoverPassword#4ea56e92 code:string = auth.Authorization; + AuthRecoverPassword(context.Context, *TLAuthRecoverPassword) (*Auth_Authorization, error) + // auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode; + AuthResendCode(context.Context, *TLAuthResendCode) (*Auth_SentCode, error) + // auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool; + AuthCancelCode(context.Context, *TLAuthCancelCode) (*Bool, error) + // auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool; + AuthDropTempAuthKeys(context.Context, *TLAuthDropTempAuthKeys) (*Bool, error) +} + +func RegisterRPCAuthServer(s *grpc.Server, srv RPCAuthServer) { + s.RegisterService(&_RPCAuth_serviceDesc, srv) +} + +func _RPCAuth_AuthSendCodeLayer51_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthSendCodeLayer51) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthSendCodeLayer51(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthSendCodeLayer51", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthSendCodeLayer51(ctx, req.(*TLAuthSendCodeLayer51)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthSendCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthSendCode) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthSendCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthSendCode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthSendCode(ctx, req.(*TLAuthSendCode)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthSignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthSignUp) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthSignUp(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthSignUp", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthSignUp(ctx, req.(*TLAuthSignUp)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthSignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthSignIn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthSignIn(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthSignIn", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthSignIn(ctx, req.(*TLAuthSignIn)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthLogOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthLogOut) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthLogOut(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthLogOut", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthLogOut(ctx, req.(*TLAuthLogOut)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthResetAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthResetAuthorizations) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthResetAuthorizations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthResetAuthorizations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthResetAuthorizations(ctx, req.(*TLAuthResetAuthorizations)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthExportAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthExportAuthorization) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthExportAuthorization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthExportAuthorization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthExportAuthorization(ctx, req.(*TLAuthExportAuthorization)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthImportAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthImportAuthorization) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthImportAuthorization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthImportAuthorization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthImportAuthorization(ctx, req.(*TLAuthImportAuthorization)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthBindTempAuthKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthBindTempAuthKey) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthBindTempAuthKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthBindTempAuthKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthBindTempAuthKey(ctx, req.(*TLAuthBindTempAuthKey)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthImportBotAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthImportBotAuthorization) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthImportBotAuthorization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthImportBotAuthorization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthImportBotAuthorization(ctx, req.(*TLAuthImportBotAuthorization)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthCheckPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthCheckPassword) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthCheckPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthCheckPassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthCheckPassword(ctx, req.(*TLAuthCheckPassword)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthRequestPasswordRecovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthRequestPasswordRecovery) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthRequestPasswordRecovery(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthRequestPasswordRecovery", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthRequestPasswordRecovery(ctx, req.(*TLAuthRequestPasswordRecovery)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthRecoverPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthRecoverPassword) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthRecoverPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthRecoverPassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthRecoverPassword(ctx, req.(*TLAuthRecoverPassword)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthResendCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthResendCode) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthResendCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthResendCode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthResendCode(ctx, req.(*TLAuthResendCode)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthCancelCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthCancelCode) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthCancelCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthCancelCode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthCancelCode(ctx, req.(*TLAuthCancelCode)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCAuth_AuthDropTempAuthKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLAuthDropTempAuthKeys) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCAuthServer).AuthDropTempAuthKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCAuth/AuthDropTempAuthKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCAuthServer).AuthDropTempAuthKeys(ctx, req.(*TLAuthDropTempAuthKeys)) + } + return interceptor(ctx, in, info, handler) +} + +var _RPCAuth_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCAuth", + HandlerType: (*RPCAuthServer)(nil), + Methods: []grpc.MethodDesc{ { - MethodName: "messages_setBotShippingResults", - Handler: _RPCMessages_MessagesSetBotShippingResults_Handler, + MethodName: "auth_sendCodeLayer51", + Handler: _RPCAuth_AuthSendCodeLayer51_Handler, }, { - MethodName: "messages_setBotPrecheckoutResults", - Handler: _RPCMessages_MessagesSetBotPrecheckoutResults_Handler, + MethodName: "auth_sendCode", + Handler: _RPCAuth_AuthSendCode_Handler, }, { - MethodName: "messages_uploadMedia", - Handler: _RPCMessages_MessagesUploadMedia_Handler, + MethodName: "auth_signUp", + Handler: _RPCAuth_AuthSignUp_Handler, }, { - MethodName: "messages_sendScreenshotNotification", - Handler: _RPCMessages_MessagesSendScreenshotNotification_Handler, + MethodName: "auth_signIn", + Handler: _RPCAuth_AuthSignIn_Handler, }, { - MethodName: "messages_getFavedStickers", - Handler: _RPCMessages_MessagesGetFavedStickers_Handler, + MethodName: "auth_logOut", + Handler: _RPCAuth_AuthLogOut_Handler, }, { - MethodName: "messages_faveSticker", - Handler: _RPCMessages_MessagesFaveSticker_Handler, + MethodName: "auth_resetAuthorizations", + Handler: _RPCAuth_AuthResetAuthorizations_Handler, }, { - MethodName: "messages_getUnreadMentions", - Handler: _RPCMessages_MessagesGetUnreadMentions_Handler, + MethodName: "auth_exportAuthorization", + Handler: _RPCAuth_AuthExportAuthorization_Handler, }, { - MethodName: "messages_readMentions", - Handler: _RPCMessages_MessagesReadMentions_Handler, + MethodName: "auth_importAuthorization", + Handler: _RPCAuth_AuthImportAuthorization_Handler, }, { - MethodName: "messages_getRecentLocations", - Handler: _RPCMessages_MessagesGetRecentLocations_Handler, + MethodName: "auth_bindTempAuthKey", + Handler: _RPCAuth_AuthBindTempAuthKey_Handler, }, { - MethodName: "messages_sendMultiMedia", - Handler: _RPCMessages_MessagesSendMultiMedia_Handler, + MethodName: "auth_importBotAuthorization", + Handler: _RPCAuth_AuthImportBotAuthorization_Handler, }, { - MethodName: "messages_uploadEncryptedFile", - Handler: _RPCMessages_MessagesUploadEncryptedFile_Handler, + MethodName: "auth_checkPassword", + Handler: _RPCAuth_AuthCheckPassword_Handler, }, { - MethodName: "messages_searchStickerSets", - Handler: _RPCMessages_MessagesSearchStickerSets_Handler, + MethodName: "auth_requestPasswordRecovery", + Handler: _RPCAuth_AuthRequestPasswordRecovery_Handler, }, { - MethodName: "messages_getSplitRanges", - Handler: _RPCMessages_MessagesGetSplitRanges_Handler, + MethodName: "auth_recoverPassword", + Handler: _RPCAuth_AuthRecoverPassword_Handler, }, { - MethodName: "messages_markDialogUnread", - Handler: _RPCMessages_MessagesMarkDialogUnread_Handler, + MethodName: "auth_resendCode", + Handler: _RPCAuth_AuthResendCode_Handler, }, { - MethodName: "messages_getDialogUnreadMarks", - Handler: _RPCMessages_MessagesGetDialogUnreadMarks_Handler, + MethodName: "auth_cancelCode", + Handler: _RPCAuth_AuthCancelCode_Handler, }, { - MethodName: "messages_clearAllDrafts", - Handler: _RPCMessages_MessagesClearAllDrafts_Handler, + MethodName: "auth_dropTempAuthKeys", + Handler: _RPCAuth_AuthDropTempAuthKeys_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "schema.tl.sync_service.proto", } -// RPCPaymentsClient is the client API for RPCPayments service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCPaymentsClient interface { - // payments.getPaymentForm#99f09745 msg_id:int = payments.PaymentForm; - PaymentsGetPaymentForm(ctx context.Context, in *TLPaymentsGetPaymentForm, opts ...grpc.CallOption) (*Payments_PaymentForm, error) - // payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt; - PaymentsGetPaymentReceipt(ctx context.Context, in *TLPaymentsGetPaymentReceipt, opts ...grpc.CallOption) (*Payments_PaymentReceipt, error) - // payments.validateRequestedInfo#770a8e74 flags:# save:flags.0?true msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo; - PaymentsValidateRequestedInfo(ctx context.Context, in *TLPaymentsValidateRequestedInfo, opts ...grpc.CallOption) (*Payments_ValidatedRequestedInfo, error) - // payments.sendPaymentForm#2b8879b3 flags:# msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials = payments.PaymentResult; - PaymentsSendPaymentForm(ctx context.Context, in *TLPaymentsSendPaymentForm, opts ...grpc.CallOption) (*Payments_PaymentResult, error) - // payments.getSavedInfo#227d824b = payments.SavedInfo; - PaymentsGetSavedInfo(ctx context.Context, in *TLPaymentsGetSavedInfo, opts ...grpc.CallOption) (*Payments_SavedInfo, error) - // payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool; - PaymentsClearSavedInfo(ctx context.Context, in *TLPaymentsClearSavedInfo, opts ...grpc.CallOption) (*Bool, error) +// RPCContactsClient is the client API for RPCContacts service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCContactsClient interface { + // contacts.getStatuses#c4a353ee = Vector; + ContactsGetStatuses(ctx context.Context, in *TLContactsGetStatuses, opts ...grpc.CallOption) (*Vector_ContactStatus, error) + // contacts.getContacts#c023849f hash:int = contacts.Contacts; + ContactsGetContacts(ctx context.Context, in *TLContactsGetContacts, opts ...grpc.CallOption) (*Contacts_Contacts, error) + // contacts.importContacts#2c800be5 contacts:Vector = contacts.ImportedContacts; + ContactsImportContacts(ctx context.Context, in *TLContactsImportContacts, opts ...grpc.CallOption) (*Contacts_ImportedContacts, error) + // contacts.deleteContact#8e953744 id:InputUser = contacts.Link; + ContactsDeleteContact(ctx context.Context, in *TLContactsDeleteContact, opts ...grpc.CallOption) (*Contacts_Link, error) + // contacts.deleteContacts#59ab389e id:Vector = Bool; + ContactsDeleteContacts(ctx context.Context, in *TLContactsDeleteContacts, opts ...grpc.CallOption) (*Bool, error) + // contacts.block#332b49fc id:InputUser = Bool; + ContactsBlock(ctx context.Context, in *TLContactsBlock, opts ...grpc.CallOption) (*Bool, error) + // contacts.unblock#e54100bd id:InputUser = Bool; + ContactsUnblock(ctx context.Context, in *TLContactsUnblock, opts ...grpc.CallOption) (*Bool, error) + // contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked; + ContactsGetBlocked(ctx context.Context, in *TLContactsGetBlocked, opts ...grpc.CallOption) (*Contacts_Blocked, error) + // contacts.exportCard#84e53737 = Vector; + ContactsExportCard(ctx context.Context, in *TLContactsExportCard, opts ...grpc.CallOption) (*VectorInt, error) + // contacts.importCard#4fe196fe export_card:Vector = User; + ContactsImportCard(ctx context.Context, in *TLContactsImportCard, opts ...grpc.CallOption) (*User, error) + // contacts.search#11f812d8 q:string limit:int = contacts.Found; + ContactsSearch(ctx context.Context, in *TLContactsSearch, opts ...grpc.CallOption) (*Contacts_Found, error) + // contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer; + ContactsResolveUsername(ctx context.Context, in *TLContactsResolveUsername, opts ...grpc.CallOption) (*Contacts_ResolvedPeer, error) + // contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers; + ContactsGetTopPeers(ctx context.Context, in *TLContactsGetTopPeers, opts ...grpc.CallOption) (*Contacts_TopPeers, error) + // contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool; + ContactsResetTopPeerRating(ctx context.Context, in *TLContactsResetTopPeerRating, opts ...grpc.CallOption) (*Bool, error) + // contacts.resetSaved#879537f1 = Bool; + ContactsResetSaved(ctx context.Context, in *TLContactsResetSaved, opts ...grpc.CallOption) (*Bool, error) + // contacts.getSaved#82f1e39f = Vector; + ContactsGetSaved(ctx context.Context, in *TLContactsGetSaved, opts ...grpc.CallOption) (*Vector_SavedContact, error) + // contacts.toggleTopPeers#8514bdda enabled:Bool = Bool; + ContactsToggleTopPeers(ctx context.Context, in *TLContactsToggleTopPeers, opts ...grpc.CallOption) (*Bool, error) +} + +type rPCContactsClient struct { + cc *grpc.ClientConn +} + +func NewRPCContactsClient(cc *grpc.ClientConn) RPCContactsClient { + return &rPCContactsClient{cc} +} + +func (c *rPCContactsClient) ContactsGetStatuses(ctx context.Context, in *TLContactsGetStatuses, opts ...grpc.CallOption) (*Vector_ContactStatus, error) { + out := new(Vector_ContactStatus) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getStatuses", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsGetContacts(ctx context.Context, in *TLContactsGetContacts, opts ...grpc.CallOption) (*Contacts_Contacts, error) { + out := new(Contacts_Contacts) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getContacts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsImportContacts(ctx context.Context, in *TLContactsImportContacts, opts ...grpc.CallOption) (*Contacts_ImportedContacts, error) { + out := new(Contacts_ImportedContacts) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_importContacts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsDeleteContact(ctx context.Context, in *TLContactsDeleteContact, opts ...grpc.CallOption) (*Contacts_Link, error) { + out := new(Contacts_Link) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_deleteContact", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsDeleteContacts(ctx context.Context, in *TLContactsDeleteContacts, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_deleteContacts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsBlock(ctx context.Context, in *TLContactsBlock, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_block", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsUnblock(ctx context.Context, in *TLContactsUnblock, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_unblock", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -type rPCPaymentsClient struct { - cc *grpc.ClientConn +func (c *rPCContactsClient) ContactsGetBlocked(ctx context.Context, in *TLContactsGetBlocked, opts ...grpc.CallOption) (*Contacts_Blocked, error) { + out := new(Contacts_Blocked) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getBlocked", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func NewRPCPaymentsClient(cc *grpc.ClientConn) RPCPaymentsClient { - return &rPCPaymentsClient{cc} +func (c *rPCContactsClient) ContactsExportCard(ctx context.Context, in *TLContactsExportCard, opts ...grpc.CallOption) (*VectorInt, error) { + out := new(VectorInt) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_exportCard", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (c *rPCPaymentsClient) PaymentsGetPaymentForm(ctx context.Context, in *TLPaymentsGetPaymentForm, opts ...grpc.CallOption) (*Payments_PaymentForm, error) { - out := new(Payments_PaymentForm) - err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_getPaymentForm", in, out, opts...) +func (c *rPCContactsClient) ContactsImportCard(ctx context.Context, in *TLContactsImportCard, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_importCard", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsSearch(ctx context.Context, in *TLContactsSearch, opts ...grpc.CallOption) (*Contacts_Found, error) { + out := new(Contacts_Found) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_search", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsResolveUsername(ctx context.Context, in *TLContactsResolveUsername, opts ...grpc.CallOption) (*Contacts_ResolvedPeer, error) { + out := new(Contacts_ResolvedPeer) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_resolveUsername", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsGetTopPeers(ctx context.Context, in *TLContactsGetTopPeers, opts ...grpc.CallOption) (*Contacts_TopPeers, error) { + out := new(Contacts_TopPeers) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getTopPeers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsResetTopPeerRating(ctx context.Context, in *TLContactsResetTopPeerRating, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_resetTopPeerRating", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsResetSaved(ctx context.Context, in *TLContactsResetSaved, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_resetSaved", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsGetSaved(ctx context.Context, in *TLContactsGetSaved, opts ...grpc.CallOption) (*Vector_SavedContact, error) { + out := new(Vector_SavedContact) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_getSaved", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCContactsClient) ContactsToggleTopPeers(ctx context.Context, in *TLContactsToggleTopPeers, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCContacts/contacts_toggleTopPeers", in, out, opts...) if err != nil { return nil, err } - return out, nil + return out, nil +} + +// RPCContactsServer is the server API for RPCContacts service. +type RPCContactsServer interface { + // contacts.getStatuses#c4a353ee = Vector; + ContactsGetStatuses(context.Context, *TLContactsGetStatuses) (*Vector_ContactStatus, error) + // contacts.getContacts#c023849f hash:int = contacts.Contacts; + ContactsGetContacts(context.Context, *TLContactsGetContacts) (*Contacts_Contacts, error) + // contacts.importContacts#2c800be5 contacts:Vector = contacts.ImportedContacts; + ContactsImportContacts(context.Context, *TLContactsImportContacts) (*Contacts_ImportedContacts, error) + // contacts.deleteContact#8e953744 id:InputUser = contacts.Link; + ContactsDeleteContact(context.Context, *TLContactsDeleteContact) (*Contacts_Link, error) + // contacts.deleteContacts#59ab389e id:Vector = Bool; + ContactsDeleteContacts(context.Context, *TLContactsDeleteContacts) (*Bool, error) + // contacts.block#332b49fc id:InputUser = Bool; + ContactsBlock(context.Context, *TLContactsBlock) (*Bool, error) + // contacts.unblock#e54100bd id:InputUser = Bool; + ContactsUnblock(context.Context, *TLContactsUnblock) (*Bool, error) + // contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked; + ContactsGetBlocked(context.Context, *TLContactsGetBlocked) (*Contacts_Blocked, error) + // contacts.exportCard#84e53737 = Vector; + ContactsExportCard(context.Context, *TLContactsExportCard) (*VectorInt, error) + // contacts.importCard#4fe196fe export_card:Vector = User; + ContactsImportCard(context.Context, *TLContactsImportCard) (*User, error) + // contacts.search#11f812d8 q:string limit:int = contacts.Found; + ContactsSearch(context.Context, *TLContactsSearch) (*Contacts_Found, error) + // contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer; + ContactsResolveUsername(context.Context, *TLContactsResolveUsername) (*Contacts_ResolvedPeer, error) + // contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers; + ContactsGetTopPeers(context.Context, *TLContactsGetTopPeers) (*Contacts_TopPeers, error) + // contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool; + ContactsResetTopPeerRating(context.Context, *TLContactsResetTopPeerRating) (*Bool, error) + // contacts.resetSaved#879537f1 = Bool; + ContactsResetSaved(context.Context, *TLContactsResetSaved) (*Bool, error) + // contacts.getSaved#82f1e39f = Vector; + ContactsGetSaved(context.Context, *TLContactsGetSaved) (*Vector_SavedContact, error) + // contacts.toggleTopPeers#8514bdda enabled:Bool = Bool; + ContactsToggleTopPeers(context.Context, *TLContactsToggleTopPeers) (*Bool, error) +} + +func RegisterRPCContactsServer(s *grpc.Server, srv RPCContactsServer) { + s.RegisterService(&_RPCContacts_serviceDesc, srv) +} + +func _RPCContacts_ContactsGetStatuses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsGetStatuses) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCContactsServer).ContactsGetStatuses(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsGetStatuses", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsGetStatuses(ctx, req.(*TLContactsGetStatuses)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCContacts_ContactsGetContacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsGetContacts) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCContactsServer).ContactsGetContacts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsGetContacts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsGetContacts(ctx, req.(*TLContactsGetContacts)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCContacts_ContactsImportContacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsImportContacts) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCContactsServer).ContactsImportContacts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsImportContacts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsImportContacts(ctx, req.(*TLContactsImportContacts)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCContacts_ContactsDeleteContact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsDeleteContact) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCContactsServer).ContactsDeleteContact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsDeleteContact", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsDeleteContact(ctx, req.(*TLContactsDeleteContact)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCContacts_ContactsDeleteContacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsDeleteContacts) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCContactsServer).ContactsDeleteContacts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsDeleteContacts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsDeleteContacts(ctx, req.(*TLContactsDeleteContacts)) + } + return interceptor(ctx, in, info, handler) +} + +func _RPCContacts_ContactsBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsBlock) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCContactsServer).ContactsBlock(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsBlock", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsBlock(ctx, req.(*TLContactsBlock)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCPaymentsClient) PaymentsGetPaymentReceipt(ctx context.Context, in *TLPaymentsGetPaymentReceipt, opts ...grpc.CallOption) (*Payments_PaymentReceipt, error) { - out := new(Payments_PaymentReceipt) - err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_getPaymentReceipt", in, out, opts...) - if err != nil { +func _RPCContacts_ContactsUnblock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsUnblock) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCContactsServer).ContactsUnblock(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsUnblock", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsUnblock(ctx, req.(*TLContactsUnblock)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCPaymentsClient) PaymentsValidateRequestedInfo(ctx context.Context, in *TLPaymentsValidateRequestedInfo, opts ...grpc.CallOption) (*Payments_ValidatedRequestedInfo, error) { - out := new(Payments_ValidatedRequestedInfo) - err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_validateRequestedInfo", in, out, opts...) - if err != nil { +func _RPCContacts_ContactsGetBlocked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsGetBlocked) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCContactsServer).ContactsGetBlocked(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsGetBlocked", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsGetBlocked(ctx, req.(*TLContactsGetBlocked)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCPaymentsClient) PaymentsSendPaymentForm(ctx context.Context, in *TLPaymentsSendPaymentForm, opts ...grpc.CallOption) (*Payments_PaymentResult, error) { - out := new(Payments_PaymentResult) - err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_sendPaymentForm", in, out, opts...) - if err != nil { +func _RPCContacts_ContactsExportCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsExportCard) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCContactsServer).ContactsExportCard(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsExportCard", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsExportCard(ctx, req.(*TLContactsExportCard)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCPaymentsClient) PaymentsGetSavedInfo(ctx context.Context, in *TLPaymentsGetSavedInfo, opts ...grpc.CallOption) (*Payments_SavedInfo, error) { - out := new(Payments_SavedInfo) - err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_getSavedInfo", in, out, opts...) - if err != nil { +func _RPCContacts_ContactsImportCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsImportCard) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCContactsServer).ContactsImportCard(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsImportCard", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsImportCard(ctx, req.(*TLContactsImportCard)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCPaymentsClient) PaymentsClearSavedInfo(ctx context.Context, in *TLPaymentsClearSavedInfo, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCPayments/payments_clearSavedInfo", in, out, opts...) - if err != nil { +func _RPCContacts_ContactsSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsSearch) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -// RPCPaymentsServer is the server API for RPCPayments service. -type RPCPaymentsServer interface { - // payments.getPaymentForm#99f09745 msg_id:int = payments.PaymentForm; - PaymentsGetPaymentForm(context.Context, *TLPaymentsGetPaymentForm) (*Payments_PaymentForm, error) - // payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt; - PaymentsGetPaymentReceipt(context.Context, *TLPaymentsGetPaymentReceipt) (*Payments_PaymentReceipt, error) - // payments.validateRequestedInfo#770a8e74 flags:# save:flags.0?true msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo; - PaymentsValidateRequestedInfo(context.Context, *TLPaymentsValidateRequestedInfo) (*Payments_ValidatedRequestedInfo, error) - // payments.sendPaymentForm#2b8879b3 flags:# msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials = payments.PaymentResult; - PaymentsSendPaymentForm(context.Context, *TLPaymentsSendPaymentForm) (*Payments_PaymentResult, error) - // payments.getSavedInfo#227d824b = payments.SavedInfo; - PaymentsGetSavedInfo(context.Context, *TLPaymentsGetSavedInfo) (*Payments_SavedInfo, error) - // payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool; - PaymentsClearSavedInfo(context.Context, *TLPaymentsClearSavedInfo) (*Bool, error) -} - -func RegisterRPCPaymentsServer(s *grpc.Server, srv RPCPaymentsServer) { - s.RegisterService(&_RPCPayments_serviceDesc, srv) + if interceptor == nil { + return srv.(RPCContactsServer).ContactsSearch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCContacts/ContactsSearch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCContactsServer).ContactsSearch(ctx, req.(*TLContactsSearch)) + } + return interceptor(ctx, in, info, handler) } -func _RPCPayments_PaymentsGetPaymentForm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPaymentsGetPaymentForm) +func _RPCContacts_ContactsResolveUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsResolveUsername) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPaymentsServer).PaymentsGetPaymentForm(ctx, in) + return srv.(RPCContactsServer).ContactsResolveUsername(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPayments/PaymentsGetPaymentForm", + FullMethod: "/mtproto.RPCContacts/ContactsResolveUsername", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPaymentsServer).PaymentsGetPaymentForm(ctx, req.(*TLPaymentsGetPaymentForm)) + return srv.(RPCContactsServer).ContactsResolveUsername(ctx, req.(*TLContactsResolveUsername)) } return interceptor(ctx, in, info, handler) } -func _RPCPayments_PaymentsGetPaymentReceipt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPaymentsGetPaymentReceipt) +func _RPCContacts_ContactsGetTopPeers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsGetTopPeers) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPaymentsServer).PaymentsGetPaymentReceipt(ctx, in) + return srv.(RPCContactsServer).ContactsGetTopPeers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPayments/PaymentsGetPaymentReceipt", + FullMethod: "/mtproto.RPCContacts/ContactsGetTopPeers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPaymentsServer).PaymentsGetPaymentReceipt(ctx, req.(*TLPaymentsGetPaymentReceipt)) + return srv.(RPCContactsServer).ContactsGetTopPeers(ctx, req.(*TLContactsGetTopPeers)) } return interceptor(ctx, in, info, handler) } -func _RPCPayments_PaymentsValidateRequestedInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPaymentsValidateRequestedInfo) +func _RPCContacts_ContactsResetTopPeerRating_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsResetTopPeerRating) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPaymentsServer).PaymentsValidateRequestedInfo(ctx, in) + return srv.(RPCContactsServer).ContactsResetTopPeerRating(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPayments/PaymentsValidateRequestedInfo", + FullMethod: "/mtproto.RPCContacts/ContactsResetTopPeerRating", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPaymentsServer).PaymentsValidateRequestedInfo(ctx, req.(*TLPaymentsValidateRequestedInfo)) + return srv.(RPCContactsServer).ContactsResetTopPeerRating(ctx, req.(*TLContactsResetTopPeerRating)) } return interceptor(ctx, in, info, handler) } -func _RPCPayments_PaymentsSendPaymentForm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPaymentsSendPaymentForm) +func _RPCContacts_ContactsResetSaved_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsResetSaved) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPaymentsServer).PaymentsSendPaymentForm(ctx, in) + return srv.(RPCContactsServer).ContactsResetSaved(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPayments/PaymentsSendPaymentForm", + FullMethod: "/mtproto.RPCContacts/ContactsResetSaved", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPaymentsServer).PaymentsSendPaymentForm(ctx, req.(*TLPaymentsSendPaymentForm)) + return srv.(RPCContactsServer).ContactsResetSaved(ctx, req.(*TLContactsResetSaved)) } return interceptor(ctx, in, info, handler) } -func _RPCPayments_PaymentsGetSavedInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPaymentsGetSavedInfo) +func _RPCContacts_ContactsGetSaved_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsGetSaved) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPaymentsServer).PaymentsGetSavedInfo(ctx, in) + return srv.(RPCContactsServer).ContactsGetSaved(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPayments/PaymentsGetSavedInfo", + FullMethod: "/mtproto.RPCContacts/ContactsGetSaved", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPaymentsServer).PaymentsGetSavedInfo(ctx, req.(*TLPaymentsGetSavedInfo)) + return srv.(RPCContactsServer).ContactsGetSaved(ctx, req.(*TLContactsGetSaved)) } return interceptor(ctx, in, info, handler) } -func _RPCPayments_PaymentsClearSavedInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPaymentsClearSavedInfo) +func _RPCContacts_ContactsToggleTopPeers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLContactsToggleTopPeers) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPaymentsServer).PaymentsClearSavedInfo(ctx, in) + return srv.(RPCContactsServer).ContactsToggleTopPeers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPayments/PaymentsClearSavedInfo", + FullMethod: "/mtproto.RPCContacts/ContactsToggleTopPeers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPaymentsServer).PaymentsClearSavedInfo(ctx, req.(*TLPaymentsClearSavedInfo)) + return srv.(RPCContactsServer).ContactsToggleTopPeers(ctx, req.(*TLContactsToggleTopPeers)) } return interceptor(ctx, in, info, handler) } -var _RPCPayments_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCPayments", - HandlerType: (*RPCPaymentsServer)(nil), +var _RPCContacts_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCContacts", + HandlerType: (*RPCContactsServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "payments_getPaymentForm", - Handler: _RPCPayments_PaymentsGetPaymentForm_Handler, + MethodName: "contacts_getStatuses", + Handler: _RPCContacts_ContactsGetStatuses_Handler, }, { - MethodName: "payments_getPaymentReceipt", - Handler: _RPCPayments_PaymentsGetPaymentReceipt_Handler, + MethodName: "contacts_getContacts", + Handler: _RPCContacts_ContactsGetContacts_Handler, }, { - MethodName: "payments_validateRequestedInfo", - Handler: _RPCPayments_PaymentsValidateRequestedInfo_Handler, + MethodName: "contacts_importContacts", + Handler: _RPCContacts_ContactsImportContacts_Handler, }, { - MethodName: "payments_sendPaymentForm", - Handler: _RPCPayments_PaymentsSendPaymentForm_Handler, + MethodName: "contacts_deleteContact", + Handler: _RPCContacts_ContactsDeleteContact_Handler, }, { - MethodName: "payments_getSavedInfo", - Handler: _RPCPayments_PaymentsGetSavedInfo_Handler, + MethodName: "contacts_deleteContacts", + Handler: _RPCContacts_ContactsDeleteContacts_Handler, }, { - MethodName: "payments_clearSavedInfo", - Handler: _RPCPayments_PaymentsClearSavedInfo_Handler, + MethodName: "contacts_block", + Handler: _RPCContacts_ContactsBlock_Handler, + }, + { + MethodName: "contacts_unblock", + Handler: _RPCContacts_ContactsUnblock_Handler, + }, + { + MethodName: "contacts_getBlocked", + Handler: _RPCContacts_ContactsGetBlocked_Handler, + }, + { + MethodName: "contacts_exportCard", + Handler: _RPCContacts_ContactsExportCard_Handler, + }, + { + MethodName: "contacts_importCard", + Handler: _RPCContacts_ContactsImportCard_Handler, + }, + { + MethodName: "contacts_search", + Handler: _RPCContacts_ContactsSearch_Handler, + }, + { + MethodName: "contacts_resolveUsername", + Handler: _RPCContacts_ContactsResolveUsername_Handler, + }, + { + MethodName: "contacts_getTopPeers", + Handler: _RPCContacts_ContactsGetTopPeers_Handler, + }, + { + MethodName: "contacts_resetTopPeerRating", + Handler: _RPCContacts_ContactsResetTopPeerRating_Handler, + }, + { + MethodName: "contacts_resetSaved", + Handler: _RPCContacts_ContactsResetSaved_Handler, + }, + { + MethodName: "contacts_getSaved", + Handler: _RPCContacts_ContactsGetSaved_Handler, + }, + { + MethodName: "contacts_toggleTopPeers", + Handler: _RPCContacts_ContactsToggleTopPeers_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -25608,792 +25692,775 @@ var _RPCPayments_serviceDesc = grpc.ServiceDesc{ } func init() { - proto.RegisterFile("schema.tl.sync_service.proto", fileDescriptor_schema_tl_sync_service_65847f175cce3fc4) -} - -var fileDescriptor_schema_tl_sync_service_65847f175cce3fc4 = []byte{ - // 12528 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7d, 0x4b, 0x6c, 0x24, 0x47, - 0x9a, 0x1e, 0xab, 0x8a, 0xcf, 0x20, 0xfb, 0xa1, 0xec, 0x17, 0xbb, 0xfa, 0x9d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x12, 0x91, 0x06, - 0x81, 0xa2, 0x7d, 0x3c, 0xd3, 0x8f, 0x12, 0x90, 0x26, 0x92, 0xe5, 0xbf, 0xa4, 0x59, 0x33, 0x2c, - 0xcb, 0x7f, 0x09, 0x59, 0xe5, 0x14, 0x34, 0x2b, 0x4f, 0x41, 0xd2, 0xb8, 0x99, 0x93, 0xc7, 0x8d, - 0x90, 0x22, 0x24, 0x4b, 0xd1, 0x33, 0x74, 0x91, 0x68, 0xc3, 0x20, 0x48, 0x87, 0x49, 0xd1, 0xc9, - 0x70, 0x37, 0xca, 0x0b, 0x9c, 0xdd, 0x07, 0x81, 0xa0, 0x53, 0xef, 0x6d, 0x32, 0x7a, 0x8b, 0x74, - 0x07, 0x27, 0x30, 0x91, 0x33, 0x81, 0x9a, 0x83, 0x94, 0xcd, 0xbd, 0x01, 0xf4, 0x02, 0xfc, 0x60, - 0xd2, 0x44, 0x7f, 0xb8, 0x9f, 0x23, 0x57, 0x22, 0x3c, 0x4c, 0x5e, 0x21, 0xe9, 0xb7, 0xd1, 0x79, - 0x6d, 0x28, 0x73, 0xbe, 0x72, 0xb2, 0x87, 0x51, 0x13, 0x44, 0xbf, 0x75, 0x63, 0xca, 0x6b, 0x46, - 0xa1, 0xfb, 0x6d, 0xf8, 0x42, 0xb7, 0x2f, 0x88, 0x80, 0xf1, 0x2f, 0x6a, 0xe7, 0xe5, 0xf7, 0xc1, - 0xf6, 0x88, 0x92, 0xdd, 0x74, 0x07, 0x2f, 0x6f, 0x17, 0x38, 0x7b, 0x9c, 0x77, 0x81, 0xcd, 0x79, - 0x97, 0x0f, 0xb1, 0x96, 0x37, 0xd5, 0xcf, 0xbb, 0x94, 0xcd, 0x54, 0x26, 0x9b, 0xb2, 0x4c, 0xae, - 0x20, 0xa7, 0x42, 0x21, 0x77, 0x4e, 0xa1, 0x19, 0x4a, 0x22, 0x87, 0xba, 0xb6, 0xbc, 0x69, 0xa0, - 0x91, 0x5b, 0x88, 0xfc, 0xeb, 0x26,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 0xc2, 0x0d, 0xb0, - 0xba, 0xce, 0x21, 0x54, 0xe2, 0x58, 0x33, 0xe7, 0x04, 0x84, 0x64, 0x6f, 0x47, 0x59, 0x5e, 0x74, - 0x12, 0xbf, 0xcf, 0xcd, 0xe7, 0x39, 0x48, 0xf9, 0xd8, 0xef, 0xb3, 0x61, 0xc0, 0x73, 0xa7, 0xb8, - 0xa4, 0xd3, 0x4c, 0xf7, 0x4b, 0xb5, 0xde, 0xab, 0xc9, 0x2f, 0xaf, 0xde, 0xee, 0xd1, 0xb2, 0xec, - 0x38, 0xed, 0x7e, 0x32, 0x2c, 0x98, 0x59, 0x05, 0x29, 0x19, 0xce, 0x71, 0xb1, 0x3c, 0x2c, 0x7a, - 0x69, 0x16, 0x7d, 0xe9, 0x13, 0xdd, 0x93, 0xbb, 0x4b, 0x65, 0x36, 0x7e, 0x39, 0x48, 0x33, 0x35, - 0xdf, 0x39, 0x86, 0xa6, 0xc2, 0xa0, 0xb4, 0x42, 0x26, 0xc3, 0x60, 0x35, 0x74, 0x57, 0xca, 0x6f, - 0xa2, 0x7e, 0xf5, 0x1b, 0xae, 0xbb, 0x1b, 0x54, 0x77, 0x13, 0x39, 0xdd, 0xda, 0x2b, 0x70, 0xce, - 0xe5, 0x14, 0x7e, 0xb8, 0xff, 0x58, 0x32, 0xe3, 0xb7, 0xa2, 0x24, 0xdc, 0xc4, 0xfd, 0x01, 0xa1, - 0xf3, 0x11, 0xde, 0x73, 0xae, 0xa3, 0xa3, 0x03, 0x9c, 0xf5, 0x69, 0xe6, 0x0e, 0xde, 0x2b, 0xc5, - 0xff, 0x10, 0x49, 0x67, 0x30, 0x3a, 0x04, 0x92, 0x34, 0x09, 0x30, 0x90, 0x6e, 0x79, 0xf4, 0x07, - 0xe1, 0x11, 0x7e, 0x39, 0x88, 0x32, 0x9c, 0x77, 0x7c, 0xbe, 0xbc, 0x9b, 0x63, 0x29, 0xcb, 0x85, - 0xf3, 0x06, 0x7a, 0x0d, 0x27, 0x41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0xb9, 0x62, 0xa3, 0xb3, 0xc2, 0x0a, - 0x49, 0x21, 0xdd, 0xc2, 0x94, 0x1e, 0xd5, 0x63, 0xec, 0x17, 0xa8, 0x5f, 0xae, 0xe1, 0x66, 0x98, - 0xfa, 0xe5, 0xaa, 0xcd, 0xb6, 0xa9, 0x2b, 0x78, 0x37, 0x27, 0x87, 0x48, 0xf0, 0xe1, 0x86, 0xa4, - 0xe1, 0xf6, 0x3b, 0x30, 0xf5, 0xc8, 0xfc, 0x14, 0x5c, 0xf1, 0x7c, 0xb2, 0x94, 0x70, 0xbe, 0x89, - 0x66, 0x03, 0xbf, 0xc0, 0xdd, 0x34, 0xab, 0xfa, 0x07, 0x18, 0x72, 0x85, 0xe5, 0x7b, 0x02, 0x39, - 0xee, 0xc6, 0xb9, 0x2e, 0x5e, 0x50, 0xfe, 0x86, 0xbf, 0x8b, 0x43, 0xf7, 0x24, 0xa8, 0x41, 0x45, - 0xa5, 0x40, 0xfa, 0x03, 0x75, 0x38, 0x16, 0x69, 0xb7, 0x1b, 0x63, 0xd1, 0x91, 0xd7, 0xd1, 0x0c, - 0x4e, 0xfc, 0xad, 0x18, 0x87, 0x16, 0x67, 0x12, 0xcb, 0x75, 0xdf, 0x07, 0x61, 0x30, 0x6d, 0x0b, - 0x3b, 0x57, 0xa5, 0x21, 0xad, 0xa9, 0x17, 0xbe, 0xcf, 0x46, 0x46, 0xd8, 0x9f, 0x53, 0xd3, 0xc1, - 0x10, 0x24, 0xf2, 0xab, 0x16, 0x1d, 0x22, 0x24, 0x63, 0x46, 0x92, 0x8c, 0xff, 0x55, 0x6d, 0x1e, - 0x8b, 0x06, 0xfa, 0x4b, 0x13, 0x06, 0x24, 0xda, 0x3d, 0x2b, 0xb5, 0xfb, 0x7f, 0x36, 0x41, 0x39, - 0x69, 0x01, 0x21, 0x7f, 0x89, 0x22, 0x41, 0x94, 0x5e, 0x99, 0xd5, 0x7a, 0x45, 0x65, 0xfa, 0x9c, - 0x95, 0xe9, 0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, 0x75, 0xe5, 0x0a, 0x48, 0x01, 0x84, 0x73, 0xe5, 0xea, - 0x3d, 0x25, 0x34, 0x54, 0xec, 0xb2, 0x34, 0x17, 0x68, 0x33, 0x23, 0x0d, 0x05, 0xa3, 0xc7, 0xa1, - 0x14, 0x22, 0x64, 0x64, 0x29, 0x44, 0xae, 0xb1, 0x71, 0x62, 0xd4, 0x68, 0xd2, 0xf0, 0xf8, 0x36, - 0x58, 0x82, 0x8c, 0x0e, 0x8d, 0xe7, 0x02, 0x02, 0xb9, 0xa8, 0x46, 0xab, 0xae, 0x1a, 0x3f, 0xa5, - 0x17, 0x51, 0xb1, 0xef, 0xd9, 0xb1, 0x40, 0x46, 0x60, 0x5f, 0x86, 0xaf, 0x65, 0xcf, 0x47, 0x9a, - 0x2d, 0x5a, 0xec, 0x9e, 0x41, 0xd5, 0x20, 0x56, 0x96, 0xb0, 0x21, 0x34, 0x86, 0x72, 0x03, 0xd6, - 0xfd, 0xa4, 0xa1, 0xeb, 0x7e, 0x06, 0xfb, 0x7f, 0x70, 0x3a, 0x52, 0xdc, 0x85, 0x45, 0x3a, 0x0d, - 0xb3, 0x70, 0x37, 0x92, 0x31, 0xf0, 0x33, 0x5e, 0xf4, 0xec, 0x36, 0xff, 0x4a, 0x5c, 0xbe, 0xd5, - 0x92, 0x2f, 0xdf, 0xda, 0xa3, 0x07, 0x21, 0x69, 0x29, 0x64, 0xe2, 0x27, 0x8a, 0xec, 0x0e, 0x9a, - 0x8d, 0xd9, 0x74, 0xc2, 0x5a, 0xdb, 0xae, 0xf2, 0x9c, 0x4f, 0x38, 0x9e, 0xc0, 0x5a, 0xdb, 0x6d, - 0xb6, 0xf8, 0x7f, 0x9f, 0xee, 0xb7, 0x4a, 0x2d, 0xbc, 0x17, 0x75, 0xbf, 0x62, 0x23, 0x6f, 0xa0, - 0xa3, 0x90, 0x49, 0x07, 0x2a, 0x81, 0xf0, 0x7b, 0x84, 0x0f, 0x93, 0x74, 0x18, 0xa9, 0x04, 0x98, - 0x97, 0xec, 0x98, 0x94, 0xd9, 0xf1, 0x57, 0xe9, 0xf1, 0x4e, 0xc1, 0x8e, 0x67, 0x78, 0x0b, 0x38, - 0xf2, 0x6b, 0x15, 0x8e, 0x68, 0x1b, 0x3a, 0x0c, 0xf8, 0x95, 0x99, 0x12, 0x68, 0x15, 0x58, 0x09, - 0x93, 0x87, 0xe2, 0xd2, 0x1f, 0x68, 0xd8, 0x0e, 0x4e, 0xd8, 0xde, 0xe5, 0x1c, 0x6d, 0xd2, 0x0e, - 0xde, 0x6f, 0x21, 0x1d, 0x99, 0xf1, 0x19, 0xa6, 0xff, 0x8c, 0x59, 0xd2, 0x65, 0x74, 0x88, 0x45, - 0x04, 0x76, 0xca, 0x6b, 0x9d, 0x16, 0xc8, 0x4c, 0x0b, 0x89, 0xfc, 0x6a, 0xb2, 0xb6, 0xa9, 0x15, - 0xec, 0x08, 0xfb, 0xc1, 0xda, 0xe2, 0x46, 0x30, 0x3a, 0x55, 0x51, 0x65, 0x14, 0x5f, 0xb1, 0xc0, - 0xba, 0xc7, 0x94, 0x1b, 0xca, 0x69, 0x58, 0x25, 0x3b, 0xf3, 0xc6, 0x13, 0x3f, 0xc6, 0x7e, 0x86, - 0xf3, 0xe2, 0x7e, 0xe0, 0xde, 0x52, 0xd2, 0xc5, 0x75, 0xc5, 0x60, 0x16, 0xa5, 0x43, 0xa2, 0xc2, - 0xd9, 0xed, 0x39, 0xf4, 0x97, 0x7b, 0x1f, 0xe2, 0x8f, 0x01, 0x4f, 0x84, 0x7e, 0x79, 0x30, 0x58, - 0x4b, 0xbb, 0xce, 0x2d, 0x34, 0x8d, 0x77, 0xe1, 0x70, 0x63, 0x43, 0xf3, 0x79, 0x42, 0x03, 0x96, - 0x07, 0x83, 0x07, 0x24, 0xdb, 0x63, 0x28, 0xf7, 0x14, 0xb8, 0x71, 0xab, 0xb7, 0x93, 0xbb, 0xc7, - 0x4b, 0xf2, 0x64, 0xb2, 0x1b, 0x0e, 0x06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 0xd6, - 0x07, 0xc2, 0xaf, 0x98, 0xc8, 0xeb, 0xa8, 0xf6, 0x29, 0x95, 0xba, 0xc8, 0xaf, 0x23, 0x7e, 0x67, - 0x69, 0x1c, 0xe2, 0x77, 0x96, 0xea, 0x88, 0x4b, 0xac, 0x65, 0xfb, 0xd2, 0x46, 0xd6, 0xd2, 0x3c, - 0x89, 0xb5, 0xcc, 0x88, 0x9c, 0x70, 0x3e, 0x40, 0xaf, 0x55, 0x22, 0x29, 0x9c, 0x73, 0x26, 0x1a, - 0x22, 0xbb, 0x5d, 0xea, 0xba, 0x32, 0xf8, 0x62, 0xc2, 0x79, 0x5c, 0x52, 0x2a, 0x63, 0x2f, 0xce, - 0xd5, 0x36, 0xb0, 0xbe, 0x65, 0x47, 0xf4, 0xd0, 0x8c, 0x33, 0x15, 0x62, 0x65, 0x66, 0x5b, 0xf5, - 0x56, 0xb8, 0x13, 0xce, 0x3a, 0x72, 0xaa, 0xd2, 0xe0, 0x9c, 0xaf, 0x97, 0x96, 0x5a, 0x31, 0x79, - 0xc4, 0xaa, 0x54, 0x86, 0x73, 0x18, 0xaa, 0x54, 0x66, 0xb6, 0x4f, 0xa8, 0xb4, 0x78, 0x08, 0xc8, - 0x84, 0xb3, 0x86, 0x8e, 0x1b, 0x23, 0x40, 0x2e, 0x5a, 0xb8, 0x25, 0x10, 0xed, 0xa3, 0xa5, 0xae, - 0xa7, 0xd1, 0x1b, 0xee, 0x84, 0xf3, 0x29, 0x13, 0x30, 0x53, 0x28, 0x48, 0x55, 0xc0, 0x0c, 0xa8, - 0x2a, 0xef, 0x24, 0xa9, 0x10, 0x01, 0x1f, 0xe6, 0xbe, 0x14, 0xd9, 0x92, 0x54, 0x94, 0x31, 0x22, - 0x13, 0xce, 0xd3, 0xb2, 0xa9, 0x4a, 0x88, 0x88, 0xb1, 0xa9, 0x32, 0xa2, 0xdd, 0x56, 0xb9, 0x27, - 0xe7, 0xa9, 0xd2, 0x26, 0xa2, 0x48, 0xcc, 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 0x43, - 0xa1, 0x14, 0xf1, 0x34, 0x21, 0xaa, 0x92, 0x1e, 0xa2, 0x53, 0xb6, 0x90, 0xa7, 0xcb, 0x46, 0x6a, - 0x2a, 0x48, 0x6a, 0x80, 0x88, 0x56, 0x5f, 0xde, 0xde, 0xc6, 0x41, 0xf9, 0xcc, 0x2c, 0xd1, 0x31, - 0x11, 0x6a, 0xd7, 0x44, 0x3e, 0x5d, 0xab, 0x29, 0x48, 0xc2, 0xb5, 0x2f, 0xd9, 0xcb, 0x62, 0x10, - 0x98, 0x5a, 0x8e, 0x99, 0x82, 0x9c, 0x2e, 0x58, 0x58, 0xc3, 0x01, 0x46, 0x1d, 0x60, 0x8c, 0x52, - 0x32, 0x33, 0x59, 0x42, 0x48, 0x3a, 0x40, 0xd4, 0x53, 0xe1, 0xc5, 0xa2, 0x35, 0x12, 0xe9, 0x8a, - 0x8d, 0xb6, 0x8c, 0x6a, 0x97, 0x5a, 0x4d, 0x40, 0x0c, 0x71, 0x47, 0xee, 0x84, 0xb3, 0x2d, 0x75, - 0xae, 0x16, 0x26, 0x74, 0x79, 0x8c, 0x92, 0xda, 0x57, 0xc6, 0x29, 0x08, 0x74, 0xf0, 0x71, 0x63, - 0x48, 0x90, 0x95, 0x55, 0x1c, 0x21, 0x4d, 0x24, 0x82, 0x55, 0x70, 0x42, 0x12, 0x74, 0xe5, 0x29, - 0x5b, 0x94, 0x90, 0xb5, 0xf2, 0x12, 0xc8, 0xd4, 0x0b, 0x84, 0x34, 0x81, 0x80, 0x4d, 0x73, 0xd2, - 0x12, 0x33, 0xe4, 0x1a, 0x89, 0x2b, 0x18, 0xa3, 0xf1, 0xf0, 0x00, 0x39, 0x86, 0x00, 0xa0, 0xf3, - 0x46, 0x6a, 0x22, 0xdf, 0x64, 0x30, 0x38, 0x86, 0x30, 0x9f, 0x1a, 0x32, 0x24, 0xdf, 0x58, 0x21, - 0x9d, 0x12, 0x8d, 0xbc, 0xb1, 0x53, 0x82, 0xfc, 0xb1,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x59, 0x6e, 0x1e, 0xb0, 0x55, 0x9c, 0x64, 0x4a, - 0x55, 0x0f, 0xb5, 0x51, 0x17, 0x8b, 0xf4, 0xb1, 0x7c, 0xe0, 0xcd, 0xd6, 0xdd, 0x12, 0x66, 0x14, - 0xf1, 0xa7, 0xe8, 0x94, 0x10, 0x68, 0x7f, 0x17, 0xcb, 0xd4, 0x2f, 0x1b, 0xa5, 0x5e, 0x05, 0xb5, - 0x8d, 0x87, 0xec, 0x68, 0x34, 0xbe, 0x3a, 0x03, 0xca, 0x94, 0xaf, 0xda, 0x27, 0x4a, 0x99, 0x76, - 0x85, 0xdd, 0xaa, 0x68, 0x2a, 0x9d, 0x03, 0xb7, 0x25, 0xdc, 0x18, 0x47, 0x13, 0x13, 0xa4, 0x41, - 0x34, 0x2b, 0x18, 0xd5, 0x88, 0xa5, 0xf1, 0x15, 0x75, 0x4b, 0x69, 0x3b, 0x70, 0xe4, 0x8c, 0xfa, - 0x14, 0x67, 0xd1, 0xf6, 0xde, 0x18, 0x33, 0xaa, 0x06, 0x1c, 0x6f, 0x46, 0xdd, 0x2d, 0x3f, 0x32, - 0xeb, 0x7c, 0x09, 0x50, 0xad, 0x6a, 0xcf, 0x54, 0xd5, 0x07, 0x7d, 0x3f, 0x8a, 0xc7, 0xa9, 0xaa, - 0x00, 0xca, 0x0b, 0x72, 0x86, 0x22, 0xb5, 0x15, 0xf9, 0xa6, 0x2a, 0x43, 0x66, 0x5d, 0x95, 0x01, - 0x60, 0xe2, 0xae, 0x18, 0x95, 0x51, 0x12, 0x15, 0x9b, 0xfe, 0x0e, 0x4e, 0x87, 0xc5, 0x06, 0xce, - 0x73, 0xeb, 0x34, 0x5a, 0xc5, 0x49, 0x9b, 0xb9, 0x42, 0x4f, 0x52, 0x80, 0xba, 0x36, 0xdb, 0x8e, - 0x92, 0x28, 0xef, 0x69, 0x65, 0x18, 0x05, 0xd1, 0x84, 0xac, 0xae, 0xb2, 0xff, 0xa2, 0x01, 0x91, - 0x49,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xdc, 0xb3, 0xa9, 0x01, 0x8e, 0x28, 0xe5, 0x29, 0x3a, - 0x6e, 0xfa, 0x58, 0x35, 0xeb, 0x4c, 0x88, 0x11, 0x74, 0x37, 0xd0, 0x31, 0x03, 0x53, 0x55, 0x65, - 0x68, 0x00, 0xd4, 0xb3, 0x7b, 0x53, 0x25, 0xca, 0x43, 0x40, 0x2f, 0x8c, 0x10, 0x97, 0x11, 0x55, - 0x5d, 0x43, 0x47, 0xb4, 0x0e, 0x52, 0xbd, 0x94, 0x5a, 0xe6, 0x08, 0x6a, 0x3f, 0x94, 0x18, 0x6a, - 0x3d, 0xd2, 0x64, 0x42, 0x8c, 0x79, 0x02, 0xc9, 0x97, 0x44, 0xae, 0x26, 0x12, 0xd6, 0x8c, 0x19, - 0x6f, 0x70, 0x86, 0xe8, 0x94, 0xf6, 0xb9, 0xf9, 0x28, 0x95, 0x05, 0x34, 0x66, 0x43, 0x76, 0xd0, - 0x69, 0x89, 0x0d, 0x34, 0xba, 0x52, 0x94, 0x73, 0xd5, 0xc2, 0x2d, 0x15, 0x26, 0x1d, 0x20, 0xaa, - 0xbb, 0x2a, 0x80, 0x3a, 0xa1, 0xe4, 0xb7, 0xab, 0x36, 0xf7, 0x06, 0x51, 0xd2, 0x55, 0x5d, 0x29, - 0xd5, 0x7c, 0xe3, 0xa9, 0x0a, 0xf5, 0xa5, 0x1d, 0x16, 0x9c, 0x7e, 0xd1, 0x42, 0x28, 0xa9, 0x0d, - 0x4a, 0xff, 0x40, 0xa9, 0x54, 0xc2, 0xde, 0xb6, 0x3a, 0x5f, 0x43, 0x2b, 0x8c, 0x7c, 0xdb, 0x79, - 0x8a, 0xf2, 0xb9, 0xa7, 0x34, 0x7b, 0xe1, 0x67, 0x25, 0x2b, 0xaf, 0x18, 0xe9, 0x69, 0x28, 0x5b, - 0x04, 0xa9, 0xc4, 0x7a, 0xf3, 0x09, 0x34, 0x03, 0xc0, 0x78, 0xba, 0x45, 0xe0, 0x7a, 0x51, 0x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- 0xc2, 0x4c, 0xb7, 0x68, 0x7d, 0xd5, 0xec, 0x8a, 0xb1, 0x4c, 0x0d, 0x25, 0xe9, 0xf0, 0x6a, 0xfb, - 0x84, 0x8f, 0xf9, 0x84, 0xf1, 0x99, 0x31, 0x55, 0x29, 0x1a, 0x21, 0x92, 0x2f, 0x4c, 0xe4, 0x97, - 0xcf, 0x94, 0x81, 0x94, 0xd9, 0x5e, 0x29, 0x33, 0x0b, 0x81, 0x0a, 0xaa, 0x48, 0xd9, 0xbd, 0x37, - 0xd0, 0xf9, 0xa0, 0xe7, 0x17, 0xb7, 0x12, 0xbc, 0x35, 0x8c, 0xfd, 0x5b, 0xe4, 0x7f, 0x9c, 0x74, - 0xa3, 0x04, 0x73, 0xe0, 0xbd, 0x99, 0xc7, 0x9b, 0xf0, 0x34, 0xd1, 0x07, 0xcd, 0xad, 0x69, 0x48, - 0x79, 0xe7, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x49, 0x42, 0x4a, 0x55, 0xcc, 0xde, 0x00, 0x00, + proto.RegisterFile("schema.tl.sync_service.proto", fileDescriptor_schema_tl_sync_service_30d0792b587d59c0) +} + +var fileDescriptor_schema_tl_sync_service_30d0792b587d59c0 = []byte{ + // 12242 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0xbd, 0x4b, 0x8c, 0x1c, 0x47, + 0x9a, 0x1f, 0xce, 0xaa, 0xea, 0x67, 0x74, 0xf3, 0x95, 0x7c, 0x35, 0x8b, 0x64, 0x93, 0x4c, 0xbe, + 0xa5, 0x11, 0x25, 0xb5, 0x46, 0x94, 0x76, 0x76, 0x67, 0x46, 0xcd, 0x26, 0x29, 0xb5, 0xd4, 0x94, + 0x5a, 0xd9, 0x4d, 0x51, 0xfa, 0xcf, 0xce, 0xd6, 0x64, 0x57, 0x46, 0x57, 0xa7, 0x3a, 0x2b, 0xb3, + 0x98, 0x99, 0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0xb3, 0x2c, 0x09, 0x8e, 0x32, 0x10, 0xfb, 0xea, 0x0c, 0x9a, 0x0a, 0x07, + 0x31, 0x91, 0xb6, 0x49, 0x5a, 0xe9, 0x70, 0x10, 0xaf, 0x46, 0xde, 0x79, 0x34, 0x43, 0x92, 0x77, + 0xc2, 0x62, 0x67, 0x61, 0x0a, 0xca, 0x9a, 0x0e, 0x07, 0xf1, 0x07, 0x61, 0xb1, 0xa3, 0x76, 0xd4, + 0xb4, 0xd6, 0x51, 0xff, 0xa5, 0xa1, 0x0e, 0x83, 0x1e, 0x2e, 0xe5, 0x51, 0xf0, 0xf6, 0x9b, 0x63, + 0x0f, 0x83, 0x0b, 0x68, 0x96, 0x4a, 0x78, 0x35, 0x12, 0x66, 0x68, 0xc2, 0x6a, 0x44, 0xa4, 0x89, + 0x65, 0x12, 0x81, 0x60, 0x7d, 0x80, 0x68, 0xd2, 0x83, 0xb0, 0xc4, 0xde, 0x25, 0x84, 0xc2, 0x28, + 0xea, 0xb0, 0x11, 0x43, 0xfb, 0x63, 0x36, 0x8c, 0xa2, 0x4f, 0x20, 0xa1, 0xea, 0xa9, 0x49, 0xa9, + 0xa7, 0xa4, 0x91, 0x37, 0x25, 0x8f, 0x3c, 0x92, 0x1c, 0xa7, 0x24, 0x79, 0x9a, 0x25, 0xc7, 0xe9, + 0x6a, 0xe4, 0x5f, 0xaa, 0x19, 0x3a, 0xf7, 0x96, 0xfc, 0xff, 0x68, 0x72, 0xe2, 0x41, 0x1c, 0x26, + 0x59, 0xaf, 0x60, 0x08, 0x32, 0x72, 0xf0, 0x8b, 0x6e, 0x32, 0x8c, 0x70, 0x67, 0x10, 0xa7, 0x29, + 0x8e, 0x58, 0xdf, 0x1f, 0x65, 0xa9, 0xeb, 0x90, 0x38, 0xba, 0xad, 0x0a, 0xa7, 0x26, 0x34, 0x4e, + 0xbd, 0x25, 0xbe, 0x06, 0xae, 0x4f, 0x3a, 0xb9, 0xce, 0x28, 0x92, 0xff, 0x2b, 0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8, 0xdc, 0x5c, 0x0b, 0x08, + 0xc6, 0xff, 0x49, 0x43, 0x19, 0x23, 0x30, 0x6f, 0xec, 0x10, 0xcb, 0x79, 0x5d, 0x58, 0x66, 0xff, + 0xd7, 0x4d, 0x59, 0xff, 0x6f, 0x36, 0xd0, 0x59, 0x45, 0xd0, 0x44, 0x05, 0x7f, 0x81, 0x86, 0xde, + 0x3b, 0xe0, 0x74, 0x53, 0x85, 0x96, 0x39, 0x00, 0xb2, 0xee, 0x2e, 0x06, 0x37, 0xfa, 0x00, 0xe7, + 0x71, 0xc6, 0x2d, 0x31, 0xf6, 0xcb, 0x5f, 0xd4, 0x75, 0x9a, 0x66, 0x10, 0xbe, 0xa5, 0x10, 0x36, + 0x4d, 0x46, 0x32, 0xdb, 0x43, 0xad, 0xa9, 0x41, 0x06, 0xff, 0xfb, 0x0b, 0x0a, 0x47, 0xc8, 0x48, + 0xe0, 0x96, 0xc5, 0xaf, 0x2b, 0x1d, 0x2a, 0xe5, 0x08, 0x25, 0xfa, 0x75, 0xec, 0x96, 0x3f, 0x69, + 0xa0, 0xab, 0xa6, 0xc6, 0x7c, 0x89, 0x25, 0x78, 0xab, 0x68, 0x3e, 0xc5, 0xcf, 0x3b, 0xda, 0x24, + 0x72, 0x53, 0x7c, 0xcf, 0x8b, 0xe6, 0x5f, 0x03, 0x3d, 0x31, 0x95, 0xcc, 0xa5, 0xf8, 0xb9, 0xd0, + 0xee, 0x7f, 0xa4, 0xce, 0x6e, 0xd4, 0x28, 0x4a, 0xb7, 0xe3, 0xbc, 0x7f, 0x08, 0xe9, 0xe6, 0xbd, + 0x40, 0x05, 0x03, 0xfe, 0x3f, 0xa4, 0x38, 0xff, 0x48, 0x99, 0x06, 0xba, 0x52, 0x8d, 0x6c, 0xb2, + 0xda, 0x18, 0x2d, 0xab, 0x4d, 0x5d, 0x56, 0x33, 0x45, 0xc1, 0xf6, 0x70, 0xb9, 0xd9, 0x1f, 0xbc, + 0x0c, 0xb3, 0x55, 0x92, 0xf1, 0xa6, 0x22, 0xe3, 0x57, 0x15, 0x46, 0x93, 0x59, 0x09, 0x6f, 0x69, + 0x62, 0x7e, 0x4f, 0xf3, 0xce, 0x15, 0x26, 0xc8, 0x2a, 0xe9, 0xd7, 0x14, 0x81, 0xb3, 0x7e, 0x57, + 0xf8, 0x97, 0x95, 0x31, 0x44, 0xc6, 0x58, 0x92, 0x6c, 0xe0, 0xee, 0x30, 0xc7, 0x9f, 0x85, 0xc9, + 0x10, 0x17, 0xfe, 0x47, 0x3a, 0x47, 0xa4, 0x5c, 0xef, 0x2e, 0x9a, 0x84, 0x7d, 0x3d, 0xb0, 0x28, + 0x65, 0xd5, 0x2f, 0x81, 0x88, 0x8d, 0x15, 0x50, 0x98, 0xff, 0x1c, 0xfc, 0x13, 0x42, 0xac, 0xc2, + 0x3d, 0x2c, 0x53, 0x7b, 0x1d, 0x4d, 0xee, 0x91, 0x7f, 0x18, 0x73, 0xb5, 0xa9, 0x41, 0x42, 0x06, + 0x14, 0x07, 0xce, 0x20, 0x48, 0xed, 0x50, 0x3b, 0x91, 0x2f, 0x61, 0x5a, 0xc1, 0x31, 0x9a, 0xbe, + 0x01, 0xc9, 0xab, 0x91, 0xff, 0xb1, 0xa2, 0x4a, 0xe8, 0x24, 0xf2, 0x75, 0x1a, 0xd2, 0xd7, 0xbb, + 0x4d, 0x61, 0xeb, 0xa3, 0x2c, 0xef, 0x93, 0x55, 0x15, 0x59, 0x23, 0x55, 0xde, 0xf7, 0xad, 0x8c, + 0xb9, 0x42, 0x8a, 0x6e, 0x36, 0xe0, 0xb2, 0x47, 0x7f, 0x80, 0x58, 0x0e, 0xb7, 0x92, 0xb8, 0x4b, + 0x0c, 0x74, 0xa1, 0x42, 0x21, 0xe5, 0x23, 0xbc, 0xef, 0xff, 0xa5, 0x3a, 0xd9, 0x84, 0x5d, 0x6e, + 0xb8, 0x57, 0x12, 0xf0, 0x12, 0x8b, 0xf3, 0x7e, 0x15, 0xcd, 0x03, 0x83, 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x4c, 0x29, 0x96, 0x0d, 0x3f, 0xf9, 0xe8, 0xdf, 0x83, + 0x79, 0xc8, 0xf2, 0x51, 0x80, 0xbb, 0x38, 0x1e, 0x94, 0xae, 0xef, 0xfe, 0x06, 0x3d, 0x2d, 0x20, + 0x3e, 0xdc, 0x0b, 0x93, 0x98, 0x68, 0x6f, 0xc6, 0x40, 0x1c, 0x71, 0x2f, 0x86, 0xb8, 0x5b, 0x30, + 0x13, 0xc0, 0xff, 0x12, 0xc1, 0x96, 0x7c, 0x04, 0xf3, 0x4d, 0x34, 0x11, 0xa7, 0xdb, 0x19, 0xd3, + 0x23, 0x95, 0x17, 0x55, 0x54, 0x47, 0xa2, 0x1b, 0x00, 0xd4, 0xff, 0x39, 0x5d, 0x91, 0x8a, 0x3a, + 0x90, 0x6e, 0xb4, 0x37, 0xb9, 0x29, 0x97, 0xf4, 0x0a, 0x3a, 0x99, 0x73, 0x6a, 0x1d, 0x42, 0x88, + 0xd7, 0x65, 0x36, 0x38, 0x9e, 0xcb, 0xc5, 0xac, 0x46, 0xde, 0xb7, 0x90, 0xa7, 0x9d, 0x5e, 0xe0, + 0x67, 0x47, 0x67, 0x83, 0x13, 0xea, 0x31, 0x85, 0xd5, 0xc8, 0xbb, 0x6f, 0x7b, 0x83, 0x53, 0x7f, + 0x4e, 0x9e, 0x56, 0x50, 0x7a, 0x89, 0x53, 0x7d, 0x80, 0x93, 0x9e, 0x58, 0x94, 0x3b, 0x04, 0xee, + 0x7f, 0x90, 0xfa, 0xf8, 0x81, 0xda, 0xc3, 0xb0, 0xa1, 0x25, 0x72, 0xbd, 0x2b, 0x6a, 0xe9, 0xec, + 0x70, 0x95, 0x94, 0x44, 0xba, 0x03, 0x78, 0x4c, 0x57, 0x69, 0x94, 0x89, 0xff, 0x89, 0xde, 0xe2, + 0xe2, 0x8a, 0x89, 0x2d, 0xfd, 0xa4, 0x5b, 0x6c, 0xf6, 0xb3, 0x77, 0x07, 0x39, 0xc2, 0xe4, 0x58, + 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0x01, 0x93, 0x84, 0xd3, 0x8c, 0x78, 0xe7, 0x1f, 0xf1, 0x9e, 0xa2, 0x0b, 0x35, 0x81, 0xe9, 0xbc, + 0x5b, 0x76, 0x26, 0x1b, 0x40, 0xb3, 0xee, 0x1f, 0xa1, 0x33, 0xf6, 0x78, 0x76, 0x57, 0xdd, 0xfc, + 0x60, 0x90, 0xb6, 0x6a, 0x6a, 0xf8, 0x47, 0xbc, 0x55, 0x74, 0xda, 0x1a, 0xae, 0xee, 0x8a, 0x9b, + 0x16, 0x45, 0x98, 0xf5, 0x7a, 0x5a, 0xd5, 0x4b, 0x89, 0x5a, 0x67, 0xaf, 0x97, 0x02, 0x91, 0xe6, + 0x06, 0xdd, 0x4e, 0xf3, 0x8f, 0x78, 0x0f, 0x91, 0x67, 0x09, 0x79, 0xb7, 0x68, 0x67, 0x20, 0xcf, + 0xaf, 0xe5, 0x9b, 0xba, 0x71, 0x6a, 0xad, 0x9f, 0x02, 0xa9, 0x1d, 0x3d, 0xda, 0xde, 0xa8, 0xef, + 0xe6, 0x9c, 0x85, 0x1c, 0xeb, 0x86, 0x27, 0x55, 0x13, 0xa5, 0xa0, 0x77, 0x8b, 0x0e, 0xc6, 0xb1, + 0xfc, 0xf6, 0x25, 0x33, 0x66, 0x56, 0x15, 0x97, 0xae, 0x50, 0xc9, 0x16, 0x23, 0xc8, 0x16, 0x07, + 0x20, 0x2b, 0x71, 0x52, 0x8d, 0x73, 0x67, 0xe5, 0xa4, 0x02, 0x31, 0x39, 0xf9, 0x44, 0x11, 0x1b, + 0x29, 0xc8, 0x9d, 0x4b, 0x6c, 0x2a, 0x48, 0xdb, 0x15, 0xfa, 0x4e, 0xad, 0x63, 0x31, 0x9a, 0xac, + 0x02, 0x31, 0xeb, 0xf8, 0xa3, 0x6a, 0x2c, 0x5b, 0x03, 0xe8, 0xd9, 0x49, 0x1a, 0x40, 0x69, 0x96, + 0x84, 0x20, 0xa7, 0x1b, 0x38, 0x2d, 0x61, 0x31, 0x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x94, 0xeb, 0x56, 0x9a, 0x1a, 0x4a, 0x52, 0x90, 0x02, 0x12, + 0x50, 0x48, 0xc4, 0xb6, 0x61, 0xb4, 0x41, 0xb8, 0x99, 0x0d, 0x48, 0x46, 0xcd, 0x20, 0xe4, 0x08, + 0xdb, 0x20, 0xe4, 0x79, 0x74, 0xbb, 0x44, 0xae, 0x95, 0xf8, 0x8e, 0x3d, 0x51, 0x76, 0xcb, 0x55, + 0x7d, 0x0d, 0x68, 0x0a, 0x93, 0xdc, 0x51, 0x80, 0x07, 0xcf, 0x82, 0xa3, 0xa3, 0x2a, 0x80, 0x49, + 0x28, 0x40, 0x27, 0x15, 0xbd, 0x05, 0x64, 0x2e, 0x39, 0xd5, 0x1a, 0x10, 0x31, 0xf6, 0xe4, 0xe4, + 0xb8, 0x1d, 0xda, 0xe0, 0xa5, 0xc7, 0x2c, 0x04, 0x43, 0xed, 0x83, 0x57, 0x05, 0x19, 0x95, 0xbc, + 0xff, 0x2a, 0x5a, 0xec, 0xee, 0x84, 0xe5, 0xdd, 0x14, 0x6f, 0x0d, 0x93, 0xf0, 0x2e, 0xf9, 0x1f, + 0xa7, 0xbd, 0x38, 0xc5, 0x1c, 0x78, 0x7f, 0xfa, 0xf1, 0x26, 0x84, 0x43, 0xfa, 0xa0, 0xb9, 0x35, + 0x05, 0x29, 0x6f, 0xfd, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x13, 0x04, 0xba, 0xb0, 0xa7, 0xdf, + 0x00, 0x00, } diff --git a/mtproto/schema.tl.sync_service.proto b/mtproto/schema.tl.sync_service.proto index 8e5b2e870..133fc3e2b 100644 --- a/mtproto/schema.tl.sync_service.proto +++ b/mtproto/schema.tl.sync_service.proto @@ -164,6 +164,13 @@ message TL_langpack_getLangPackLayer71 { string lang_code = 1; } +/////////////////////////////////////////////////////////////////////////////// +// messages.getRecentLocations#249431e2 peer:InputPeer limit:int = messages.Messages; +message TL_messages_getRecentLocationsLayer72 { + InputPeer peer = 1; + int32 limit = 2; +} + /////////////////////////////////////////////////////////////////////////////// // invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; message TL_invokeAfterMsg { @@ -2177,47 +2184,15 @@ message Vector_LangPackString { /////////////////////////////////////////////////////////////////////////////// // rpc -service RPCHelp { - // help.getScheme#dbb69a9e version:int = Scheme; - rpc help_getScheme(TL_help_getScheme) returns (Scheme) {} - // help.getInviteText#a4a95186 lang_code:string = help.InviteText; - rpc help_getInviteTextLayer46(TL_help_getInviteTextLayer46) returns (help_InviteText) {} - // help.getAppUpdate#c812ac7e device_model:string system_version:string app_version:string lang_code:string = help.AppUpdate; - rpc help_getAppUpdateLayer46(TL_help_getAppUpdateLayer46) returns (help_AppUpdate) {} - // help.getAppUpdate#ae2de196 = help.AppUpdate; - rpc help_getAppUpdateLayer62(TL_help_getAppUpdateLayer62) returns (help_AppUpdate) {} - // help.getConfig#c4f9186b = Config; - rpc help_getConfig(TL_help_getConfig) returns (Config) {} - // help.getNearestDc#1fb33026 = NearestDc; - rpc help_getNearestDc(TL_help_getNearestDc) returns (NearestDc) {} - // help.getAppUpdate#522d5a7d source:string = help.AppUpdate; - rpc help_getAppUpdate(TL_help_getAppUpdate) returns (help_AppUpdate) {} - // help.saveAppLog#6f02f748 events:Vector = Bool; - rpc help_saveAppLog(TL_help_saveAppLog) returns (Bool) {} - // help.getInviteText#4d392343 = help.InviteText; - rpc help_getInviteText(TL_help_getInviteText) returns (help_InviteText) {} - // help.getSupport#9cdf08cd = help.Support; - rpc help_getSupport(TL_help_getSupport) returns (help_Support) {} - // help.getAppChangelog#9010ef6f prev_app_version:string = Updates; - rpc help_getAppChangelog(TL_help_getAppChangelog) returns (Updates) {} - // help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool; - rpc help_setBotUpdatesStatus(TL_help_setBotUpdatesStatus) returns (Bool) {} - // help.getCdnConfig#52029342 = CdnConfig; - rpc help_getCdnConfig(TL_help_getCdnConfig) returns (CdnConfig) {} - // help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls; - rpc help_getRecentMeUrls(TL_help_getRecentMeUrls) returns (help_RecentMeUrls) {} - // help.getProxyData#3d7758e1 = help.ProxyData; - rpc help_getProxyData(TL_help_getProxyData) returns (help_ProxyData) {} - // help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate; - rpc help_getTermsOfServiceUpdate(TL_help_getTermsOfServiceUpdate) returns (help_TermsOfServiceUpdate) {} - // help.acceptTermsOfService#ee72f79a id:DataJSON = Bool; - rpc help_acceptTermsOfService(TL_help_acceptTermsOfService) returns (Bool) {} - // help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo; - rpc help_getDeepLinkInfo(TL_help_getDeepLinkInfo) returns (help_DeepLinkInfo) {} - // help.getPassportConfig#c661ad08 hash:int = help.PassportConfig; - rpc help_getPassportConfig(TL_help_getPassportConfig) returns (help_PassportConfig) {} - // help.test#c0e202f7 = Bool; - rpc help_test(TL_help_test) returns (Bool) {} +service RPCPhotos { + // photos.updateProfilePhoto#f0bb5152 id:InputPhoto = UserProfilePhoto; + rpc photos_updateProfilePhoto(TL_photos_updateProfilePhoto) returns (UserProfilePhoto) {} + // photos.uploadProfilePhoto#4f32c098 file:InputFile = photos.Photo; + rpc photos_uploadProfilePhoto(TL_photos_uploadProfilePhoto) returns (photos_Photo) {} + // photos.deletePhotos#87cf7f2f id:Vector = Vector; + rpc photos_deletePhotos(TL_photos_deletePhotos) returns (Vector_long) {} + // photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos; + rpc photos_getUserPhotos(TL_photos_getUserPhotos) returns (photos_Photos) {} } service RPCUpdates { @@ -2231,6 +2206,125 @@ service RPCUpdates { rpc updates_getChannelDifference(TL_updates_getChannelDifference) returns (updates_ChannelDifference) {} } +service RPCAccount { + // account.registerDevice#637ea878 token_type:int token:string = Bool; + rpc account_registerDeviceLayer71(TL_account_registerDeviceLayer71) returns (Bool) {} + // account.unregisterDevice#65c55b40 token_type:int token:string = Bool; + rpc account_unregisterDeviceLayer71(TL_account_unregisterDeviceLayer71) returns (Bool) {} + // account.registerDevice#5cbea590 token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector = Bool; + rpc account_registerDevice(TL_account_registerDevice) returns (Bool) {} + // account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector = Bool; + rpc account_unregisterDevice(TL_account_unregisterDevice) returns (Bool) {} + // account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool; + rpc account_updateNotifySettings(TL_account_updateNotifySettings) returns (Bool) {} + // account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings; + rpc account_getNotifySettings(TL_account_getNotifySettings) returns (PeerNotifySettings) {} + // account.resetNotifySettings#db7e1747 = Bool; + rpc account_resetNotifySettings(TL_account_resetNotifySettings) returns (Bool) {} + // account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User; + rpc account_updateProfile(TL_account_updateProfile) returns (User) {} + // account.updateStatus#6628562c offline:Bool = Bool; + rpc account_updateStatus(TL_account_updateStatus) returns (Bool) {} + // account.getWallPapers#c04cfac2 = Vector; + rpc account_getWallPapers(TL_account_getWallPapers) returns (Vector_WallPaper) {} + // account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool; + rpc account_reportPeer(TL_account_reportPeer) returns (Bool) {} + // account.checkUsername#2714d86c username:string = Bool; + rpc account_checkUsername(TL_account_checkUsername) returns (Bool) {} + // account.updateUsername#3e0bdd7c username:string = User; + rpc account_updateUsername(TL_account_updateUsername) returns (User) {} + // account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules; + rpc account_getPrivacy(TL_account_getPrivacy) returns (account_PrivacyRules) {} + // account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector = account.PrivacyRules; + rpc account_setPrivacy(TL_account_setPrivacy) returns (account_PrivacyRules) {} + // account.deleteAccount#418d4e0b reason:string = Bool; + rpc account_deleteAccount(TL_account_deleteAccount) returns (Bool) {} + // account.getAccountTTL#8fc711d = AccountDaysTTL; + rpc account_getAccountTTL(TL_account_getAccountTTL) returns (AccountDaysTTL) {} + // account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool; + rpc account_setAccountTTL(TL_account_setAccountTTL) returns (Bool) {} + // account.sendChangePhoneCode#8e57deb flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; + rpc account_sendChangePhoneCode(TL_account_sendChangePhoneCode) returns (auth_SentCode) {} + // account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User; + rpc account_changePhone(TL_account_changePhone) returns (User) {} + // account.updateDeviceLocked#38df3532 period:int = Bool; + rpc account_updateDeviceLocked(TL_account_updateDeviceLocked) returns (Bool) {} + // account.getAuthorizations#e320c158 = account.Authorizations; + rpc account_getAuthorizations(TL_account_getAuthorizations) returns (account_Authorizations) {} + // account.resetAuthorization#df77f3bc hash:long = Bool; + rpc account_resetAuthorization(TL_account_resetAuthorization) returns (Bool) {} + // account.getPassword#548a30f5 = account.Password; + rpc account_getPassword(TL_account_getPassword) returns (account_Password) {} + // account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings; + rpc account_getPasswordSettings(TL_account_getPasswordSettings) returns (account_PasswordSettings) {} + // account.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool; + rpc account_updatePasswordSettings(TL_account_updatePasswordSettings) returns (Bool) {} + // account.sendConfirmPhoneCode#1516d7bd flags:# allow_flashcall:flags.0?true hash:string current_number:flags.0?Bool = auth.SentCode; + rpc account_sendConfirmPhoneCode(TL_account_sendConfirmPhoneCode) returns (auth_SentCode) {} + // account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool; + rpc account_confirmPhone(TL_account_confirmPhone) returns (Bool) {} + // account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword; + rpc account_getTmpPassword(TL_account_getTmpPassword) returns (account_TmpPassword) {} + // account.getWebAuthorizations#182e6d6f = account.WebAuthorizations; + rpc account_getWebAuthorizations(TL_account_getWebAuthorizations) returns (account_WebAuthorizations) {} + // account.resetWebAuthorization#2d01b9ef hash:long = Bool; + rpc account_resetWebAuthorization(TL_account_resetWebAuthorization) returns (Bool) {} + // account.resetWebAuthorizations#682d2594 = Bool; + rpc account_resetWebAuthorizations(TL_account_resetWebAuthorizations) returns (Bool) {} + // account.getAllSecureValues#b288bc7d = Vector; + rpc account_getAllSecureValues(TL_account_getAllSecureValues) returns (Vector_SecureValue) {} + // account.getSecureValue#73665bc2 types:Vector = Vector; + rpc account_getSecureValue(TL_account_getSecureValue) returns (Vector_SecureValue) {} + // account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue; + rpc account_saveSecureValue(TL_account_saveSecureValue) returns (SecureValue) {} + // account.deleteSecureValue#b880bc4b types:Vector = Bool; + rpc account_deleteSecureValue(TL_account_deleteSecureValue) returns (Bool) {} + // account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm; + rpc account_getAuthorizationForm(TL_account_getAuthorizationForm) returns (account_AuthorizationForm) {} + // account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector credentials:SecureCredentialsEncrypted = Bool; + rpc account_acceptAuthorization(TL_account_acceptAuthorization) returns (Bool) {} + // account.sendVerifyPhoneCode#823380b4 flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; + rpc account_sendVerifyPhoneCode(TL_account_sendVerifyPhoneCode) returns (auth_SentCode) {} + // account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool; + rpc account_verifyPhone(TL_account_verifyPhone) returns (Bool) {} + // account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode; + rpc account_sendVerifyEmailCode(TL_account_sendVerifyEmailCode) returns (account_SentEmailCode) {} + // account.verifyEmail#ecba39db email:string code:string = Bool; + rpc account_verifyEmail(TL_account_verifyEmail) returns (Bool) {} + // account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout; + rpc account_initTakeoutSession(TL_account_initTakeoutSession) returns (account_Takeout) {} + // account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool; + rpc account_finishTakeoutSession(TL_account_finishTakeoutSession) returns (Bool) {} +} + +service RPCPhone { + // phone.getCallConfig#55451fa9 = DataJSON; + rpc phone_getCallConfig(TL_phone_getCallConfig) returns (DataJSON) {} + // phone.requestCall#5b95b3d4 user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall; + rpc phone_requestCall(TL_phone_requestCall) returns (phone_PhoneCall) {} + // phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall; + rpc phone_acceptCall(TL_phone_acceptCall) returns (phone_PhoneCall) {} + // phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall; + rpc phone_confirmCall(TL_phone_confirmCall) returns (phone_PhoneCall) {} + // phone.receivedCall#17d54f61 peer:InputPhoneCall = Bool; + rpc phone_receivedCall(TL_phone_receivedCall) returns (Bool) {} + // phone.discardCall#78d413a6 peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates; + rpc phone_discardCall(TL_phone_discardCall) returns (Updates) {} + // phone.setCallRating#1c536a34 peer:InputPhoneCall rating:int comment:string = Updates; + rpc phone_setCallRating(TL_phone_setCallRating) returns (Updates) {} + // phone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool; + rpc phone_saveCallDebug(TL_phone_saveCallDebug) returns (Bool) {} +} + +service RPCUsers { + // users.getUsers#d91a548 id:Vector = Vector; + rpc users_getUsers(TL_users_getUsers) returns (Vector_User) {} + // users.getFullUser#ca30a5b1 id:InputUser = UserFull; + rpc users_getFullUser(TL_users_getFullUser) returns (UserFull) {} + // users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector = Bool; + rpc users_setSecureValueErrors(TL_users_setSecureValueErrors) returns (Bool) {} +} + service RPCChannels { // channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; rpc channels_readHistory(TL_channels_readHistory) returns (Bool) {} @@ -2300,260 +2394,6 @@ service RPCChannels { rpc channels_getLeftChannels(TL_channels_getLeftChannels) returns (messages_Chats) {} } -service RPCPhone { - // phone.getCallConfig#55451fa9 = DataJSON; - rpc phone_getCallConfig(TL_phone_getCallConfig) returns (DataJSON) {} - // phone.requestCall#5b95b3d4 user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall; - rpc phone_requestCall(TL_phone_requestCall) returns (phone_PhoneCall) {} - // phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall; - rpc phone_acceptCall(TL_phone_acceptCall) returns (phone_PhoneCall) {} - // phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall; - rpc phone_confirmCall(TL_phone_confirmCall) returns (phone_PhoneCall) {} - // phone.receivedCall#17d54f61 peer:InputPhoneCall = Bool; - rpc phone_receivedCall(TL_phone_receivedCall) returns (Bool) {} - // phone.discardCall#78d413a6 peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates; - rpc phone_discardCall(TL_phone_discardCall) returns (Updates) {} - // phone.setCallRating#1c536a34 peer:InputPhoneCall rating:int comment:string = Updates; - rpc phone_setCallRating(TL_phone_setCallRating) returns (Updates) {} - // phone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool; - rpc phone_saveCallDebug(TL_phone_saveCallDebug) returns (Bool) {} -} - -service RPCPhotos { - // photos.updateProfilePhoto#f0bb5152 id:InputPhoto = UserProfilePhoto; - rpc photos_updateProfilePhoto(TL_photos_updateProfilePhoto) returns (UserProfilePhoto) {} - // photos.uploadProfilePhoto#4f32c098 file:InputFile = photos.Photo; - rpc photos_uploadProfilePhoto(TL_photos_uploadProfilePhoto) returns (photos_Photo) {} - // photos.deletePhotos#87cf7f2f id:Vector = Vector; - rpc photos_deletePhotos(TL_photos_deletePhotos) returns (Vector_long) {} - // photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos; - rpc photos_getUserPhotos(TL_photos_getUserPhotos) returns (photos_Photos) {} -} - -service RPCUpload { - // upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool; - rpc upload_saveFilePart(TL_upload_saveFilePart) returns (Bool) {} - // upload.getFile#e3a6cfb5 location:InputFileLocation offset:int limit:int = upload.File; - rpc upload_getFile(TL_upload_getFile) returns (upload_File) {} - // upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool; - rpc upload_saveBigFilePart(TL_upload_saveBigFilePart) returns (Bool) {} - // upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile; - rpc upload_getWebFile(TL_upload_getWebFile) returns (upload_WebFile) {} - // upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile; - rpc upload_getCdnFile(TL_upload_getCdnFile) returns (upload_CdnFile) {} - // upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector; - rpc upload_reuploadCdnFile(TL_upload_reuploadCdnFile) returns (Vector_FileHash) {} - // upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector; - rpc upload_getCdnFileHashes(TL_upload_getCdnFileHashes) returns (Vector_FileHash) {} - // upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector; - rpc upload_getFileHashes(TL_upload_getFileHashes) returns (Vector_FileHash) {} -} - -service RPCStickers { - // stickers.createStickerSet#9bd86e6a flags:# masks:flags.0?true user_id:InputUser title:string short_name:string stickers:Vector = messages.StickerSet; - rpc stickers_createStickerSet(TL_stickers_createStickerSet) returns (messages_StickerSet) {} - // stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; - rpc stickers_removeStickerFromSet(TL_stickers_removeStickerFromSet) returns (messages_StickerSet) {} - // stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; - rpc stickers_changeStickerPosition(TL_stickers_changeStickerPosition) returns (messages_StickerSet) {} - // stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; - rpc stickers_addStickerToSet(TL_stickers_addStickerToSet) returns (messages_StickerSet) {} -} - -service RPCContacts { - // contacts.getStatuses#c4a353ee = Vector; - rpc contacts_getStatuses(TL_contacts_getStatuses) returns (Vector_ContactStatus) {} - // contacts.getContacts#c023849f hash:int = contacts.Contacts; - rpc contacts_getContacts(TL_contacts_getContacts) returns (contacts_Contacts) {} - // contacts.importContacts#2c800be5 contacts:Vector = contacts.ImportedContacts; - rpc contacts_importContacts(TL_contacts_importContacts) returns (contacts_ImportedContacts) {} - // contacts.deleteContact#8e953744 id:InputUser = contacts.Link; - rpc contacts_deleteContact(TL_contacts_deleteContact) returns (contacts_Link) {} - // contacts.deleteContacts#59ab389e id:Vector = Bool; - rpc contacts_deleteContacts(TL_contacts_deleteContacts) returns (Bool) {} - // contacts.block#332b49fc id:InputUser = Bool; - rpc contacts_block(TL_contacts_block) returns (Bool) {} - // contacts.unblock#e54100bd id:InputUser = Bool; - rpc contacts_unblock(TL_contacts_unblock) returns (Bool) {} - // contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked; - rpc contacts_getBlocked(TL_contacts_getBlocked) returns (contacts_Blocked) {} - // contacts.exportCard#84e53737 = Vector; - rpc contacts_exportCard(TL_contacts_exportCard) returns (Vector_int) {} - // contacts.importCard#4fe196fe export_card:Vector = User; - rpc contacts_importCard(TL_contacts_importCard) returns (User) {} - // contacts.search#11f812d8 q:string limit:int = contacts.Found; - rpc contacts_search(TL_contacts_search) returns (contacts_Found) {} - // contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer; - rpc contacts_resolveUsername(TL_contacts_resolveUsername) returns (contacts_ResolvedPeer) {} - // contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers; - rpc contacts_getTopPeers(TL_contacts_getTopPeers) returns (contacts_TopPeers) {} - // contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool; - rpc contacts_resetTopPeerRating(TL_contacts_resetTopPeerRating) returns (Bool) {} - // contacts.resetSaved#879537f1 = Bool; - rpc contacts_resetSaved(TL_contacts_resetSaved) returns (Bool) {} - // contacts.getSaved#82f1e39f = Vector; - rpc contacts_getSaved(TL_contacts_getSaved) returns (Vector_SavedContact) {} - // contacts.toggleTopPeers#8514bdda enabled:Bool = Bool; - rpc contacts_toggleTopPeers(TL_contacts_toggleTopPeers) returns (Bool) {} -} - -service RPCLangpack { - // langpack.getLanguages#800fd57d = Vector; - rpc langpack_getLanguagesLayer70(TL_langpack_getLanguagesLayer70) returns (Vector_LangPackLanguage) {} - // langpack.getLangPack#9ab5c58e lang_code:string = LangPackDifference; - rpc langpack_getLangPackLayer71(TL_langpack_getLangPackLayer71) returns (LangPackDifference) {} - // langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference; - rpc langpack_getLangPack(TL_langpack_getLangPack) returns (LangPackDifference) {} - // langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector = Vector; - rpc langpack_getStrings(TL_langpack_getStrings) returns (Vector_LangPackString) {} - // langpack.getDifference#b2e4d7d from_version:int = LangPackDifference; - rpc langpack_getDifference(TL_langpack_getDifference) returns (LangPackDifference) {} - // langpack.getLanguages#42c6978f lang_pack:string = Vector; - rpc langpack_getLanguages(TL_langpack_getLanguages) returns (Vector_LangPackLanguage) {} -} - -service RPCAuth { - // auth.sendCode#ccfd70cf flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string lang_code:string = auth.SentCode; - rpc auth_sendCodeLayer51(TL_auth_sendCodeLayer51) returns (auth_SentCode) {} - // auth.sendCode#86aef0ec flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string = auth.SentCode; - rpc auth_sendCode(TL_auth_sendCode) returns (auth_SentCode) {} - // auth.signUp#1b067634 phone_number:string phone_code_hash:string phone_code:string first_name:string last_name:string = auth.Authorization; - rpc auth_signUp(TL_auth_signUp) returns (auth_Authorization) {} - // auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization; - rpc auth_signIn(TL_auth_signIn) returns (auth_Authorization) {} - // auth.logOut#5717da40 = Bool; - rpc auth_logOut(TL_auth_logOut) returns (Bool) {} - // auth.resetAuthorizations#9fab0d1a = Bool; - rpc auth_resetAuthorizations(TL_auth_resetAuthorizations) returns (Bool) {} - // auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization; - rpc auth_exportAuthorization(TL_auth_exportAuthorization) returns (auth_ExportedAuthorization) {} - // auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization; - rpc auth_importAuthorization(TL_auth_importAuthorization) returns (auth_Authorization) {} - // auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool; - rpc auth_bindTempAuthKey(TL_auth_bindTempAuthKey) returns (Bool) {} - // auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization; - rpc auth_importBotAuthorization(TL_auth_importBotAuthorization) returns (auth_Authorization) {} - // auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization; - rpc auth_checkPassword(TL_auth_checkPassword) returns (auth_Authorization) {} - // auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; - rpc auth_requestPasswordRecovery(TL_auth_requestPasswordRecovery) returns (auth_PasswordRecovery) {} - // auth.recoverPassword#4ea56e92 code:string = auth.Authorization; - rpc auth_recoverPassword(TL_auth_recoverPassword) returns (auth_Authorization) {} - // auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode; - rpc auth_resendCode(TL_auth_resendCode) returns (auth_SentCode) {} - // auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool; - rpc auth_cancelCode(TL_auth_cancelCode) returns (Bool) {} - // auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool; - rpc auth_dropTempAuthKeys(TL_auth_dropTempAuthKeys) returns (Bool) {} -} - -service RPCAccount { - // account.registerDevice#637ea878 token_type:int token:string = Bool; - rpc account_registerDeviceLayer71(TL_account_registerDeviceLayer71) returns (Bool) {} - // account.unregisterDevice#65c55b40 token_type:int token:string = Bool; - rpc account_unregisterDeviceLayer71(TL_account_unregisterDeviceLayer71) returns (Bool) {} - // account.registerDevice#5cbea590 token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector = Bool; - rpc account_registerDevice(TL_account_registerDevice) returns (Bool) {} - // account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector = Bool; - rpc account_unregisterDevice(TL_account_unregisterDevice) returns (Bool) {} - // account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool; - rpc account_updateNotifySettings(TL_account_updateNotifySettings) returns (Bool) {} - // account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings; - rpc account_getNotifySettings(TL_account_getNotifySettings) returns (PeerNotifySettings) {} - // account.resetNotifySettings#db7e1747 = Bool; - rpc account_resetNotifySettings(TL_account_resetNotifySettings) returns (Bool) {} - // account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User; - rpc account_updateProfile(TL_account_updateProfile) returns (User) {} - // account.updateStatus#6628562c offline:Bool = Bool; - rpc account_updateStatus(TL_account_updateStatus) returns (Bool) {} - // account.getWallPapers#c04cfac2 = Vector; - rpc account_getWallPapers(TL_account_getWallPapers) returns (Vector_WallPaper) {} - // account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool; - rpc account_reportPeer(TL_account_reportPeer) returns (Bool) {} - // account.checkUsername#2714d86c username:string = Bool; - rpc account_checkUsername(TL_account_checkUsername) returns (Bool) {} - // account.updateUsername#3e0bdd7c username:string = User; - rpc account_updateUsername(TL_account_updateUsername) returns (User) {} - // account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules; - rpc account_getPrivacy(TL_account_getPrivacy) returns (account_PrivacyRules) {} - // account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector = account.PrivacyRules; - rpc account_setPrivacy(TL_account_setPrivacy) returns (account_PrivacyRules) {} - // account.deleteAccount#418d4e0b reason:string = Bool; - rpc account_deleteAccount(TL_account_deleteAccount) returns (Bool) {} - // account.getAccountTTL#8fc711d = AccountDaysTTL; - rpc account_getAccountTTL(TL_account_getAccountTTL) returns (AccountDaysTTL) {} - // account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool; - rpc account_setAccountTTL(TL_account_setAccountTTL) returns (Bool) {} - // account.sendChangePhoneCode#8e57deb flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; - rpc account_sendChangePhoneCode(TL_account_sendChangePhoneCode) returns (auth_SentCode) {} - // account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User; - rpc account_changePhone(TL_account_changePhone) returns (User) {} - // account.updateDeviceLocked#38df3532 period:int = Bool; - rpc account_updateDeviceLocked(TL_account_updateDeviceLocked) returns (Bool) {} - // account.getAuthorizations#e320c158 = account.Authorizations; - rpc account_getAuthorizations(TL_account_getAuthorizations) returns (account_Authorizations) {} - // account.resetAuthorization#df77f3bc hash:long = Bool; - rpc account_resetAuthorization(TL_account_resetAuthorization) returns (Bool) {} - // account.getPassword#548a30f5 = account.Password; - rpc account_getPassword(TL_account_getPassword) returns (account_Password) {} - // account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings; - rpc account_getPasswordSettings(TL_account_getPasswordSettings) returns (account_PasswordSettings) {} - // account.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool; - rpc account_updatePasswordSettings(TL_account_updatePasswordSettings) returns (Bool) {} - // account.sendConfirmPhoneCode#1516d7bd flags:# allow_flashcall:flags.0?true hash:string current_number:flags.0?Bool = auth.SentCode; - rpc account_sendConfirmPhoneCode(TL_account_sendConfirmPhoneCode) returns (auth_SentCode) {} - // account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool; - rpc account_confirmPhone(TL_account_confirmPhone) returns (Bool) {} - // account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword; - rpc account_getTmpPassword(TL_account_getTmpPassword) returns (account_TmpPassword) {} - // account.getWebAuthorizations#182e6d6f = account.WebAuthorizations; - rpc account_getWebAuthorizations(TL_account_getWebAuthorizations) returns (account_WebAuthorizations) {} - // account.resetWebAuthorization#2d01b9ef hash:long = Bool; - rpc account_resetWebAuthorization(TL_account_resetWebAuthorization) returns (Bool) {} - // account.resetWebAuthorizations#682d2594 = Bool; - rpc account_resetWebAuthorizations(TL_account_resetWebAuthorizations) returns (Bool) {} - // account.getAllSecureValues#b288bc7d = Vector; - rpc account_getAllSecureValues(TL_account_getAllSecureValues) returns (Vector_SecureValue) {} - // account.getSecureValue#73665bc2 types:Vector = Vector; - rpc account_getSecureValue(TL_account_getSecureValue) returns (Vector_SecureValue) {} - // account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue; - rpc account_saveSecureValue(TL_account_saveSecureValue) returns (SecureValue) {} - // account.deleteSecureValue#b880bc4b types:Vector = Bool; - rpc account_deleteSecureValue(TL_account_deleteSecureValue) returns (Bool) {} - // account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm; - rpc account_getAuthorizationForm(TL_account_getAuthorizationForm) returns (account_AuthorizationForm) {} - // account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector credentials:SecureCredentialsEncrypted = Bool; - rpc account_acceptAuthorization(TL_account_acceptAuthorization) returns (Bool) {} - // account.sendVerifyPhoneCode#823380b4 flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode; - rpc account_sendVerifyPhoneCode(TL_account_sendVerifyPhoneCode) returns (auth_SentCode) {} - // account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool; - rpc account_verifyPhone(TL_account_verifyPhone) returns (Bool) {} - // account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode; - rpc account_sendVerifyEmailCode(TL_account_sendVerifyEmailCode) returns (account_SentEmailCode) {} - // account.verifyEmail#ecba39db email:string code:string = Bool; - rpc account_verifyEmail(TL_account_verifyEmail) returns (Bool) {} - // account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout; - rpc account_initTakeoutSession(TL_account_initTakeoutSession) returns (account_Takeout) {} - // account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool; - rpc account_finishTakeoutSession(TL_account_finishTakeoutSession) returns (Bool) {} -} - -service RPCUsers { - // users.getUsers#d91a548 id:Vector = Vector; - rpc users_getUsers(TL_users_getUsers) returns (Vector_User) {} - // users.getFullUser#ca30a5b1 id:InputUser = UserFull; - rpc users_getFullUser(TL_users_getFullUser) returns (UserFull) {} - // users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector = Bool; - rpc users_setSecureValueErrors(TL_users_setSecureValueErrors) returns (Bool) {} -} - -service RPCBots { - // bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; - rpc bots_sendCustomRequest(TL_bots_sendCustomRequest) returns (DataJSON) {} - // bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; - rpc bots_answerWebhookJSONQuery(TL_bots_answerWebhookJSONQuery) returns (Bool) {} -} - service RPCMessages { // messages.readHistory#b04f2510 peer:InputPeer max_id:int offset:int = messages.AffectedHistory; rpc messages_readHistoryLayer2(TL_messages_readHistoryLayer2) returns (messages_AffectedHistory) {} @@ -2565,6 +2405,8 @@ service RPCMessages { rpc messages_searchLayer68(TL_messages_searchLayer68) returns (messages_Messages) {} // messages.getMessages#4222fa74 id:Vector = messages.Messages; rpc messages_getMessagesLayer71(TL_messages_getMessagesLayer71) returns (messages_Messages) {} + // messages.getRecentLocations#249431e2 peer:InputPeer limit:int = messages.Messages; + rpc messages_getRecentLocationsLayer72(TL_messages_getRecentLocationsLayer72) returns (messages_Messages) {} // messages.getMessages#63c66506 id:Vector = messages.Messages; rpc messages_getMessages(TL_messages_getMessages) returns (messages_Messages) {} // messages.getDialogs#b098aee6 flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:int = messages.Dialogs; @@ -2767,6 +2609,58 @@ service RPCMessages { rpc messages_clearAllDrafts(TL_messages_clearAllDrafts) returns (Bool) {} } +service RPCBots { + // bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; + rpc bots_sendCustomRequest(TL_bots_sendCustomRequest) returns (DataJSON) {} + // bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; + rpc bots_answerWebhookJSONQuery(TL_bots_answerWebhookJSONQuery) returns (Bool) {} +} + +service RPCStickers { + // stickers.createStickerSet#9bd86e6a flags:# masks:flags.0?true user_id:InputUser title:string short_name:string stickers:Vector = messages.StickerSet; + rpc stickers_createStickerSet(TL_stickers_createStickerSet) returns (messages_StickerSet) {} + // stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; + rpc stickers_removeStickerFromSet(TL_stickers_removeStickerFromSet) returns (messages_StickerSet) {} + // stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; + rpc stickers_changeStickerPosition(TL_stickers_changeStickerPosition) returns (messages_StickerSet) {} + // stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; + rpc stickers_addStickerToSet(TL_stickers_addStickerToSet) returns (messages_StickerSet) {} +} + +service RPCLangpack { + // langpack.getLanguages#800fd57d = Vector; + rpc langpack_getLanguagesLayer70(TL_langpack_getLanguagesLayer70) returns (Vector_LangPackLanguage) {} + // langpack.getLangPack#9ab5c58e lang_code:string = LangPackDifference; + rpc langpack_getLangPackLayer71(TL_langpack_getLangPackLayer71) returns (LangPackDifference) {} + // langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference; + rpc langpack_getLangPack(TL_langpack_getLangPack) returns (LangPackDifference) {} + // langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector = Vector; + rpc langpack_getStrings(TL_langpack_getStrings) returns (Vector_LangPackString) {} + // langpack.getDifference#b2e4d7d from_version:int = LangPackDifference; + rpc langpack_getDifference(TL_langpack_getDifference) returns (LangPackDifference) {} + // langpack.getLanguages#42c6978f lang_pack:string = Vector; + rpc langpack_getLanguages(TL_langpack_getLanguages) returns (Vector_LangPackLanguage) {} +} + +service RPCUpload { + // upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool; + rpc upload_saveFilePart(TL_upload_saveFilePart) returns (Bool) {} + // upload.getFile#e3a6cfb5 location:InputFileLocation offset:int limit:int = upload.File; + rpc upload_getFile(TL_upload_getFile) returns (upload_File) {} + // upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool; + rpc upload_saveBigFilePart(TL_upload_saveBigFilePart) returns (Bool) {} + // upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile; + rpc upload_getWebFile(TL_upload_getWebFile) returns (upload_WebFile) {} + // upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile; + rpc upload_getCdnFile(TL_upload_getCdnFile) returns (upload_CdnFile) {} + // upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector; + rpc upload_reuploadCdnFile(TL_upload_reuploadCdnFile) returns (Vector_FileHash) {} + // upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector; + rpc upload_getCdnFileHashes(TL_upload_getCdnFileHashes) returns (Vector_FileHash) {} + // upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector; + rpc upload_getFileHashes(TL_upload_getFileHashes) returns (Vector_FileHash) {} +} + service RPCPayments { // payments.getPaymentForm#99f09745 msg_id:int = payments.PaymentForm; rpc payments_getPaymentForm(TL_payments_getPaymentForm) returns (payments_PaymentForm) {} @@ -2782,3 +2676,118 @@ service RPCPayments { rpc payments_clearSavedInfo(TL_payments_clearSavedInfo) returns (Bool) {} } +service RPCHelp { + // help.getScheme#dbb69a9e version:int = Scheme; + rpc help_getScheme(TL_help_getScheme) returns (Scheme) {} + // help.getInviteText#a4a95186 lang_code:string = help.InviteText; + rpc help_getInviteTextLayer46(TL_help_getInviteTextLayer46) returns (help_InviteText) {} + // help.getAppUpdate#c812ac7e device_model:string system_version:string app_version:string lang_code:string = help.AppUpdate; + rpc help_getAppUpdateLayer46(TL_help_getAppUpdateLayer46) returns (help_AppUpdate) {} + // help.getAppUpdate#ae2de196 = help.AppUpdate; + rpc help_getAppUpdateLayer62(TL_help_getAppUpdateLayer62) returns (help_AppUpdate) {} + // help.getConfig#c4f9186b = Config; + rpc help_getConfig(TL_help_getConfig) returns (Config) {} + // help.getNearestDc#1fb33026 = NearestDc; + rpc help_getNearestDc(TL_help_getNearestDc) returns (NearestDc) {} + // help.getAppUpdate#522d5a7d source:string = help.AppUpdate; + rpc help_getAppUpdate(TL_help_getAppUpdate) returns (help_AppUpdate) {} + // help.saveAppLog#6f02f748 events:Vector = Bool; + rpc help_saveAppLog(TL_help_saveAppLog) returns (Bool) {} + // help.getInviteText#4d392343 = help.InviteText; + rpc help_getInviteText(TL_help_getInviteText) returns (help_InviteText) {} + // help.getSupport#9cdf08cd = help.Support; + rpc help_getSupport(TL_help_getSupport) returns (help_Support) {} + // help.getAppChangelog#9010ef6f prev_app_version:string = Updates; + rpc help_getAppChangelog(TL_help_getAppChangelog) returns (Updates) {} + // help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool; + rpc help_setBotUpdatesStatus(TL_help_setBotUpdatesStatus) returns (Bool) {} + // help.getCdnConfig#52029342 = CdnConfig; + rpc help_getCdnConfig(TL_help_getCdnConfig) returns (CdnConfig) {} + // help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls; + rpc help_getRecentMeUrls(TL_help_getRecentMeUrls) returns (help_RecentMeUrls) {} + // help.getProxyData#3d7758e1 = help.ProxyData; + rpc help_getProxyData(TL_help_getProxyData) returns (help_ProxyData) {} + // help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate; + rpc help_getTermsOfServiceUpdate(TL_help_getTermsOfServiceUpdate) returns (help_TermsOfServiceUpdate) {} + // help.acceptTermsOfService#ee72f79a id:DataJSON = Bool; + rpc help_acceptTermsOfService(TL_help_acceptTermsOfService) returns (Bool) {} + // help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo; + rpc help_getDeepLinkInfo(TL_help_getDeepLinkInfo) returns (help_DeepLinkInfo) {} + // help.getPassportConfig#c661ad08 hash:int = help.PassportConfig; + rpc help_getPassportConfig(TL_help_getPassportConfig) returns (help_PassportConfig) {} + // help.test#c0e202f7 = Bool; + rpc help_test(TL_help_test) returns (Bool) {} +} + +service RPCAuth { + // auth.sendCode#ccfd70cf flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string lang_code:string = auth.SentCode; + rpc auth_sendCodeLayer51(TL_auth_sendCodeLayer51) returns (auth_SentCode) {} + // auth.sendCode#86aef0ec flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string = auth.SentCode; + rpc auth_sendCode(TL_auth_sendCode) returns (auth_SentCode) {} + // auth.signUp#1b067634 phone_number:string phone_code_hash:string phone_code:string first_name:string last_name:string = auth.Authorization; + rpc auth_signUp(TL_auth_signUp) returns (auth_Authorization) {} + // auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization; + rpc auth_signIn(TL_auth_signIn) returns (auth_Authorization) {} + // auth.logOut#5717da40 = Bool; + rpc auth_logOut(TL_auth_logOut) returns (Bool) {} + // auth.resetAuthorizations#9fab0d1a = Bool; + rpc auth_resetAuthorizations(TL_auth_resetAuthorizations) returns (Bool) {} + // auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization; + rpc auth_exportAuthorization(TL_auth_exportAuthorization) returns (auth_ExportedAuthorization) {} + // auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization; + rpc auth_importAuthorization(TL_auth_importAuthorization) returns (auth_Authorization) {} + // auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool; + rpc auth_bindTempAuthKey(TL_auth_bindTempAuthKey) returns (Bool) {} + // auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization; + rpc auth_importBotAuthorization(TL_auth_importBotAuthorization) returns (auth_Authorization) {} + // auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization; + rpc auth_checkPassword(TL_auth_checkPassword) returns (auth_Authorization) {} + // auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; + rpc auth_requestPasswordRecovery(TL_auth_requestPasswordRecovery) returns (auth_PasswordRecovery) {} + // auth.recoverPassword#4ea56e92 code:string = auth.Authorization; + rpc auth_recoverPassword(TL_auth_recoverPassword) returns (auth_Authorization) {} + // auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode; + rpc auth_resendCode(TL_auth_resendCode) returns (auth_SentCode) {} + // auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool; + rpc auth_cancelCode(TL_auth_cancelCode) returns (Bool) {} + // auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool; + rpc auth_dropTempAuthKeys(TL_auth_dropTempAuthKeys) returns (Bool) {} +} + +service RPCContacts { + // contacts.getStatuses#c4a353ee = Vector; + rpc contacts_getStatuses(TL_contacts_getStatuses) returns (Vector_ContactStatus) {} + // contacts.getContacts#c023849f hash:int = contacts.Contacts; + rpc contacts_getContacts(TL_contacts_getContacts) returns (contacts_Contacts) {} + // contacts.importContacts#2c800be5 contacts:Vector = contacts.ImportedContacts; + rpc contacts_importContacts(TL_contacts_importContacts) returns (contacts_ImportedContacts) {} + // contacts.deleteContact#8e953744 id:InputUser = contacts.Link; + rpc contacts_deleteContact(TL_contacts_deleteContact) returns (contacts_Link) {} + // contacts.deleteContacts#59ab389e id:Vector = Bool; + rpc contacts_deleteContacts(TL_contacts_deleteContacts) returns (Bool) {} + // contacts.block#332b49fc id:InputUser = Bool; + rpc contacts_block(TL_contacts_block) returns (Bool) {} + // contacts.unblock#e54100bd id:InputUser = Bool; + rpc contacts_unblock(TL_contacts_unblock) returns (Bool) {} + // contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked; + rpc contacts_getBlocked(TL_contacts_getBlocked) returns (contacts_Blocked) {} + // contacts.exportCard#84e53737 = Vector; + rpc contacts_exportCard(TL_contacts_exportCard) returns (Vector_int) {} + // contacts.importCard#4fe196fe export_card:Vector = User; + rpc contacts_importCard(TL_contacts_importCard) returns (User) {} + // contacts.search#11f812d8 q:string limit:int = contacts.Found; + rpc contacts_search(TL_contacts_search) returns (contacts_Found) {} + // contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer; + rpc contacts_resolveUsername(TL_contacts_resolveUsername) returns (contacts_ResolvedPeer) {} + // contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers; + rpc contacts_getTopPeers(TL_contacts_getTopPeers) returns (contacts_TopPeers) {} + // contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool; + rpc contacts_resetTopPeerRating(TL_contacts_resetTopPeerRating) returns (Bool) {} + // contacts.resetSaved#879537f1 = Bool; + rpc contacts_resetSaved(TL_contacts_resetSaved) returns (Bool) {} + // contacts.getSaved#82f1e39f = Vector; + rpc contacts_getSaved(TL_contacts_getSaved) returns (Vector_SavedContact) {} + // contacts.toggleTopPeers#8514bdda enabled:Bool = Bool; + rpc contacts_toggleTopPeers(TL_contacts_toggleTopPeers) returns (Bool) {} +} + diff --git a/mtproto/schema.tl.transport.pb.go b/mtproto/schema.tl.transport.pb.go index 15335bacf..09910f507 100644 --- a/mtproto/schema.tl.transport.pb.go +++ b/mtproto/schema.tl.transport.pb.go @@ -19,134 +19,182 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // ///////////////////////////////////////////////////////////////////////////// -// MsgsStateInfo <-- -// + TL_msgs_state_info +// IpPort <-- +// + TL_ipPort +// + TL_ipPortSecret // -type MsgsStateInfo_Data struct { - ReqMsgId int64 `protobuf:"varint,1,opt,name=req_msg_id,json=reqMsgId,proto3" json:"req_msg_id,omitempty"` - Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` +type IpPort_Data struct { + Ipv4 int32 `protobuf:"varint,1,opt,name=ipv4,proto3" json:"ipv4,omitempty"` + Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` + Secret []byte `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *MsgsStateInfo_Data) Reset() { *m = MsgsStateInfo_Data{} } -func (m *MsgsStateInfo_Data) String() string { return proto.CompactTextString(m) } -func (*MsgsStateInfo_Data) ProtoMessage() {} -func (*MsgsStateInfo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{0} +func (m *IpPort_Data) Reset() { *m = IpPort_Data{} } +func (m *IpPort_Data) String() string { return proto.CompactTextString(m) } +func (*IpPort_Data) ProtoMessage() {} +func (*IpPort_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{0} } -func (m *MsgsStateInfo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgsStateInfo_Data.Unmarshal(m, b) +func (m *IpPort_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IpPort_Data.Unmarshal(m, b) } -func (m *MsgsStateInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgsStateInfo_Data.Marshal(b, m, deterministic) +func (m *IpPort_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IpPort_Data.Marshal(b, m, deterministic) } -func (dst *MsgsStateInfo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgsStateInfo_Data.Merge(dst, src) +func (dst *IpPort_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_IpPort_Data.Merge(dst, src) } -func (m *MsgsStateInfo_Data) XXX_Size() int { - return xxx_messageInfo_MsgsStateInfo_Data.Size(m) +func (m *IpPort_Data) XXX_Size() int { + return xxx_messageInfo_IpPort_Data.Size(m) } -func (m *MsgsStateInfo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MsgsStateInfo_Data.DiscardUnknown(m) +func (m *IpPort_Data) XXX_DiscardUnknown() { + xxx_messageInfo_IpPort_Data.DiscardUnknown(m) } -var xxx_messageInfo_MsgsStateInfo_Data proto.InternalMessageInfo +var xxx_messageInfo_IpPort_Data proto.InternalMessageInfo -func (m *MsgsStateInfo_Data) GetReqMsgId() int64 { +func (m *IpPort_Data) GetIpv4() int32 { if m != nil { - return m.ReqMsgId + return m.Ipv4 } return 0 } -func (m *MsgsStateInfo_Data) GetInfo() string { +func (m *IpPort_Data) GetPort() int32 { if m != nil { - return m.Info + return m.Port } - return "" + return 0 } -type MsgsStateInfo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MsgsStateInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *IpPort_Data) GetSecret() []byte { + if m != nil { + return m.Secret + } + return nil } -func (m *MsgsStateInfo) Reset() { *m = MsgsStateInfo{} } -func (m *MsgsStateInfo) String() string { return proto.CompactTextString(m) } -func (*MsgsStateInfo) ProtoMessage() {} -func (*MsgsStateInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{1} +type IpPort struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *IpPort_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MsgsStateInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgsStateInfo.Unmarshal(m, b) + +func (m *IpPort) Reset() { *m = IpPort{} } +func (m *IpPort) String() string { return proto.CompactTextString(m) } +func (*IpPort) ProtoMessage() {} +func (*IpPort) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{1} } -func (m *MsgsStateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgsStateInfo.Marshal(b, m, deterministic) +func (m *IpPort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IpPort.Unmarshal(m, b) } -func (dst *MsgsStateInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgsStateInfo.Merge(dst, src) +func (m *IpPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IpPort.Marshal(b, m, deterministic) } -func (m *MsgsStateInfo) XXX_Size() int { - return xxx_messageInfo_MsgsStateInfo.Size(m) +func (dst *IpPort) XXX_Merge(src proto.Message) { + xxx_messageInfo_IpPort.Merge(dst, src) } -func (m *MsgsStateInfo) XXX_DiscardUnknown() { - xxx_messageInfo_MsgsStateInfo.DiscardUnknown(m) +func (m *IpPort) XXX_Size() int { + return xxx_messageInfo_IpPort.Size(m) +} +func (m *IpPort) XXX_DiscardUnknown() { + xxx_messageInfo_IpPort.DiscardUnknown(m) } -var xxx_messageInfo_MsgsStateInfo proto.InternalMessageInfo +var xxx_messageInfo_IpPort proto.InternalMessageInfo -func (m *MsgsStateInfo) GetConstructor() TLConstructor { +func (m *IpPort) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MsgsStateInfo) GetData2() *MsgsStateInfo_Data { +func (m *IpPort) GetData2() *IpPort_Data { if m != nil { return m.Data2 } return nil } -// msgs_state_info#04deb57d req_msg_id:long info:string = MsgsStateInfo; -type TLMsgsStateInfo struct { - Data2 *MsgsStateInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ipPort#d433ad73 ipv4:int port:int = IpPort; +type TLIpPort struct { + Data2 *IpPort_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMsgsStateInfo) Reset() { *m = TLMsgsStateInfo{} } -func (m *TLMsgsStateInfo) String() string { return proto.CompactTextString(m) } -func (*TLMsgsStateInfo) ProtoMessage() {} -func (*TLMsgsStateInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{2} +func (m *TLIpPort) Reset() { *m = TLIpPort{} } +func (m *TLIpPort) String() string { return proto.CompactTextString(m) } +func (*TLIpPort) ProtoMessage() {} +func (*TLIpPort) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{2} } -func (m *TLMsgsStateInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMsgsStateInfo.Unmarshal(m, b) +func (m *TLIpPort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLIpPort.Unmarshal(m, b) } -func (m *TLMsgsStateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMsgsStateInfo.Marshal(b, m, deterministic) +func (m *TLIpPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLIpPort.Marshal(b, m, deterministic) } -func (dst *TLMsgsStateInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMsgsStateInfo.Merge(dst, src) +func (dst *TLIpPort) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLIpPort.Merge(dst, src) } -func (m *TLMsgsStateInfo) XXX_Size() int { - return xxx_messageInfo_TLMsgsStateInfo.Size(m) +func (m *TLIpPort) XXX_Size() int { + return xxx_messageInfo_TLIpPort.Size(m) } -func (m *TLMsgsStateInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLMsgsStateInfo.DiscardUnknown(m) +func (m *TLIpPort) XXX_DiscardUnknown() { + xxx_messageInfo_TLIpPort.DiscardUnknown(m) } -var xxx_messageInfo_TLMsgsStateInfo proto.InternalMessageInfo +var xxx_messageInfo_TLIpPort proto.InternalMessageInfo -func (m *TLMsgsStateInfo) GetData2() *MsgsStateInfo_Data { +func (m *TLIpPort) GetData2() *IpPort_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort; +type TLIpPortSecret struct { + Data2 *IpPort_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLIpPortSecret) Reset() { *m = TLIpPortSecret{} } +func (m *TLIpPortSecret) String() string { return proto.CompactTextString(m) } +func (*TLIpPortSecret) ProtoMessage() {} +func (*TLIpPortSecret) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{3} +} +func (m *TLIpPortSecret) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLIpPortSecret.Unmarshal(m, b) +} +func (m *TLIpPortSecret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLIpPortSecret.Marshal(b, m, deterministic) +} +func (dst *TLIpPortSecret) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLIpPortSecret.Merge(dst, src) +} +func (m *TLIpPortSecret) XXX_Size() int { + return xxx_messageInfo_TLIpPortSecret.Size(m) +} +func (m *TLIpPortSecret) XXX_DiscardUnknown() { + xxx_messageInfo_TLIpPortSecret.DiscardUnknown(m) +} + +var xxx_messageInfo_TLIpPortSecret proto.InternalMessageInfo + +func (m *TLIpPortSecret) GetData2() *IpPort_Data { if m != nil { return m.Data2 } @@ -154,190 +202,134 @@ func (m *TLMsgsStateInfo) GetData2() *MsgsStateInfo_Data { } // ///////////////////////////////////////////////////////////////////////////// -// BadMsgNotification <-- -// + TL_bad_msg_notification -// + TL_bad_server_salt +// MsgsAllInfo <-- +// + TL_msgs_all_info // -type BadMsgNotification_Data struct { - BadMsgId int64 `protobuf:"varint,1,opt,name=bad_msg_id,json=badMsgId,proto3" json:"bad_msg_id,omitempty"` - BadMsgSeqno int32 `protobuf:"varint,2,opt,name=bad_msg_seqno,json=badMsgSeqno,proto3" json:"bad_msg_seqno,omitempty"` - ErrorCode int32 `protobuf:"varint,3,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` - NewServerSalt int64 `protobuf:"varint,4,opt,name=new_server_salt,json=newServerSalt,proto3" json:"new_server_salt,omitempty"` +type MsgsAllInfo_Data struct { + MsgIds []int64 `protobuf:"varint,1,rep,packed,name=msg_ids,json=msgIds,proto3" json:"msg_ids,omitempty"` + Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *BadMsgNotification_Data) Reset() { *m = BadMsgNotification_Data{} } -func (m *BadMsgNotification_Data) String() string { return proto.CompactTextString(m) } -func (*BadMsgNotification_Data) ProtoMessage() {} -func (*BadMsgNotification_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{3} +func (m *MsgsAllInfo_Data) Reset() { *m = MsgsAllInfo_Data{} } +func (m *MsgsAllInfo_Data) String() string { return proto.CompactTextString(m) } +func (*MsgsAllInfo_Data) ProtoMessage() {} +func (*MsgsAllInfo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{4} } -func (m *BadMsgNotification_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BadMsgNotification_Data.Unmarshal(m, b) +func (m *MsgsAllInfo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgsAllInfo_Data.Unmarshal(m, b) } -func (m *BadMsgNotification_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BadMsgNotification_Data.Marshal(b, m, deterministic) +func (m *MsgsAllInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgsAllInfo_Data.Marshal(b, m, deterministic) } -func (dst *BadMsgNotification_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_BadMsgNotification_Data.Merge(dst, src) +func (dst *MsgsAllInfo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgsAllInfo_Data.Merge(dst, src) } -func (m *BadMsgNotification_Data) XXX_Size() int { - return xxx_messageInfo_BadMsgNotification_Data.Size(m) +func (m *MsgsAllInfo_Data) XXX_Size() int { + return xxx_messageInfo_MsgsAllInfo_Data.Size(m) } -func (m *BadMsgNotification_Data) XXX_DiscardUnknown() { - xxx_messageInfo_BadMsgNotification_Data.DiscardUnknown(m) +func (m *MsgsAllInfo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MsgsAllInfo_Data.DiscardUnknown(m) } -var xxx_messageInfo_BadMsgNotification_Data proto.InternalMessageInfo +var xxx_messageInfo_MsgsAllInfo_Data proto.InternalMessageInfo -func (m *BadMsgNotification_Data) GetBadMsgId() int64 { +func (m *MsgsAllInfo_Data) GetMsgIds() []int64 { if m != nil { - return m.BadMsgId + return m.MsgIds } - return 0 + return nil } -func (m *BadMsgNotification_Data) GetBadMsgSeqno() int32 { +func (m *MsgsAllInfo_Data) GetInfo() string { if m != nil { - return m.BadMsgSeqno + return m.Info } - return 0 + return "" } -func (m *BadMsgNotification_Data) GetErrorCode() int32 { - if m != nil { - return m.ErrorCode - } - return 0 +type MsgsAllInfo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MsgsAllInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BadMsgNotification_Data) GetNewServerSalt() int64 { - if m != nil { - return m.NewServerSalt - } - return 0 -} - -type BadMsgNotification struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *BadMsgNotification_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BadMsgNotification) Reset() { *m = BadMsgNotification{} } -func (m *BadMsgNotification) String() string { return proto.CompactTextString(m) } -func (*BadMsgNotification) ProtoMessage() {} -func (*BadMsgNotification) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{4} +func (m *MsgsAllInfo) Reset() { *m = MsgsAllInfo{} } +func (m *MsgsAllInfo) String() string { return proto.CompactTextString(m) } +func (*MsgsAllInfo) ProtoMessage() {} +func (*MsgsAllInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{5} } -func (m *BadMsgNotification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BadMsgNotification.Unmarshal(m, b) +func (m *MsgsAllInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgsAllInfo.Unmarshal(m, b) } -func (m *BadMsgNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BadMsgNotification.Marshal(b, m, deterministic) +func (m *MsgsAllInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgsAllInfo.Marshal(b, m, deterministic) } -func (dst *BadMsgNotification) XXX_Merge(src proto.Message) { - xxx_messageInfo_BadMsgNotification.Merge(dst, src) +func (dst *MsgsAllInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgsAllInfo.Merge(dst, src) } -func (m *BadMsgNotification) XXX_Size() int { - return xxx_messageInfo_BadMsgNotification.Size(m) +func (m *MsgsAllInfo) XXX_Size() int { + return xxx_messageInfo_MsgsAllInfo.Size(m) } -func (m *BadMsgNotification) XXX_DiscardUnknown() { - xxx_messageInfo_BadMsgNotification.DiscardUnknown(m) +func (m *MsgsAllInfo) XXX_DiscardUnknown() { + xxx_messageInfo_MsgsAllInfo.DiscardUnknown(m) } -var xxx_messageInfo_BadMsgNotification proto.InternalMessageInfo +var xxx_messageInfo_MsgsAllInfo proto.InternalMessageInfo -func (m *BadMsgNotification) GetConstructor() TLConstructor { +func (m *MsgsAllInfo) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *BadMsgNotification) GetData2() *BadMsgNotification_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification; -type TLBadMsgNotification struct { - Data2 *BadMsgNotification_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLBadMsgNotification) Reset() { *m = TLBadMsgNotification{} } -func (m *TLBadMsgNotification) String() string { return proto.CompactTextString(m) } -func (*TLBadMsgNotification) ProtoMessage() {} -func (*TLBadMsgNotification) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{5} -} -func (m *TLBadMsgNotification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBadMsgNotification.Unmarshal(m, b) -} -func (m *TLBadMsgNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBadMsgNotification.Marshal(b, m, deterministic) -} -func (dst *TLBadMsgNotification) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBadMsgNotification.Merge(dst, src) -} -func (m *TLBadMsgNotification) XXX_Size() int { - return xxx_messageInfo_TLBadMsgNotification.Size(m) -} -func (m *TLBadMsgNotification) XXX_DiscardUnknown() { - xxx_messageInfo_TLBadMsgNotification.DiscardUnknown(m) -} - -var xxx_messageInfo_TLBadMsgNotification proto.InternalMessageInfo - -func (m *TLBadMsgNotification) GetData2() *BadMsgNotification_Data { +func (m *MsgsAllInfo) GetData2() *MsgsAllInfo_Data { if m != nil { return m.Data2 } return nil } -// bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification; -type TLBadServerSalt struct { - Data2 *BadMsgNotification_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// msgs_all_info#8cc0d131 msg_ids:Vector info:string = MsgsAllInfo; +type TLMsgsAllInfo struct { + Data2 *MsgsAllInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLBadServerSalt) Reset() { *m = TLBadServerSalt{} } -func (m *TLBadServerSalt) String() string { return proto.CompactTextString(m) } -func (*TLBadServerSalt) ProtoMessage() {} -func (*TLBadServerSalt) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{6} +func (m *TLMsgsAllInfo) Reset() { *m = TLMsgsAllInfo{} } +func (m *TLMsgsAllInfo) String() string { return proto.CompactTextString(m) } +func (*TLMsgsAllInfo) ProtoMessage() {} +func (*TLMsgsAllInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{6} } -func (m *TLBadServerSalt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLBadServerSalt.Unmarshal(m, b) +func (m *TLMsgsAllInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMsgsAllInfo.Unmarshal(m, b) } -func (m *TLBadServerSalt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLBadServerSalt.Marshal(b, m, deterministic) +func (m *TLMsgsAllInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMsgsAllInfo.Marshal(b, m, deterministic) } -func (dst *TLBadServerSalt) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLBadServerSalt.Merge(dst, src) +func (dst *TLMsgsAllInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMsgsAllInfo.Merge(dst, src) } -func (m *TLBadServerSalt) XXX_Size() int { - return xxx_messageInfo_TLBadServerSalt.Size(m) +func (m *TLMsgsAllInfo) XXX_Size() int { + return xxx_messageInfo_TLMsgsAllInfo.Size(m) } -func (m *TLBadServerSalt) XXX_DiscardUnknown() { - xxx_messageInfo_TLBadServerSalt.DiscardUnknown(m) +func (m *TLMsgsAllInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLMsgsAllInfo.DiscardUnknown(m) } -var xxx_messageInfo_TLBadServerSalt proto.InternalMessageInfo +var xxx_messageInfo_TLMsgsAllInfo proto.InternalMessageInfo -func (m *TLBadServerSalt) GetData2() *BadMsgNotification_Data { +func (m *TLMsgsAllInfo) GetData2() *MsgsAllInfo_Data { if m != nil { return m.Data2 } @@ -345,134 +337,142 @@ func (m *TLBadServerSalt) GetData2() *BadMsgNotification_Data { } // ///////////////////////////////////////////////////////////////////////////// -// RpcError <-- -// + TL_rpc_error +// NewSession <-- +// + TL_new_session_created // -type RpcError_Data struct { - ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` +type NewSession_Data struct { + FirstMsgId int64 `protobuf:"varint,1,opt,name=first_msg_id,json=firstMsgId,proto3" json:"first_msg_id,omitempty"` + UniqueId int64 `protobuf:"varint,2,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` + ServerSalt int64 `protobuf:"varint,3,opt,name=server_salt,json=serverSalt,proto3" json:"server_salt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *RpcError_Data) Reset() { *m = RpcError_Data{} } -func (m *RpcError_Data) String() string { return proto.CompactTextString(m) } -func (*RpcError_Data) ProtoMessage() {} -func (*RpcError_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{7} +func (m *NewSession_Data) Reset() { *m = NewSession_Data{} } +func (m *NewSession_Data) String() string { return proto.CompactTextString(m) } +func (*NewSession_Data) ProtoMessage() {} +func (*NewSession_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{7} } -func (m *RpcError_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RpcError_Data.Unmarshal(m, b) +func (m *NewSession_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NewSession_Data.Unmarshal(m, b) } -func (m *RpcError_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RpcError_Data.Marshal(b, m, deterministic) +func (m *NewSession_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NewSession_Data.Marshal(b, m, deterministic) } -func (dst *RpcError_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcError_Data.Merge(dst, src) +func (dst *NewSession_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_NewSession_Data.Merge(dst, src) } -func (m *RpcError_Data) XXX_Size() int { - return xxx_messageInfo_RpcError_Data.Size(m) +func (m *NewSession_Data) XXX_Size() int { + return xxx_messageInfo_NewSession_Data.Size(m) } -func (m *RpcError_Data) XXX_DiscardUnknown() { - xxx_messageInfo_RpcError_Data.DiscardUnknown(m) +func (m *NewSession_Data) XXX_DiscardUnknown() { + xxx_messageInfo_NewSession_Data.DiscardUnknown(m) } -var xxx_messageInfo_RpcError_Data proto.InternalMessageInfo +var xxx_messageInfo_NewSession_Data proto.InternalMessageInfo -func (m *RpcError_Data) GetErrorCode() int32 { +func (m *NewSession_Data) GetFirstMsgId() int64 { if m != nil { - return m.ErrorCode + return m.FirstMsgId } return 0 } -func (m *RpcError_Data) GetErrorMessage() string { +func (m *NewSession_Data) GetUniqueId() int64 { if m != nil { - return m.ErrorMessage + return m.UniqueId } - return "" + return 0 } -type RpcError struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *RpcError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *NewSession_Data) GetServerSalt() int64 { + if m != nil { + return m.ServerSalt + } + return 0 } -func (m *RpcError) Reset() { *m = RpcError{} } -func (m *RpcError) String() string { return proto.CompactTextString(m) } -func (*RpcError) ProtoMessage() {} -func (*RpcError) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{8} +type NewSession struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *NewSession_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RpcError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RpcError.Unmarshal(m, b) + +func (m *NewSession) Reset() { *m = NewSession{} } +func (m *NewSession) String() string { return proto.CompactTextString(m) } +func (*NewSession) ProtoMessage() {} +func (*NewSession) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{8} } -func (m *RpcError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RpcError.Marshal(b, m, deterministic) +func (m *NewSession) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NewSession.Unmarshal(m, b) } -func (dst *RpcError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcError.Merge(dst, src) +func (m *NewSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NewSession.Marshal(b, m, deterministic) } -func (m *RpcError) XXX_Size() int { - return xxx_messageInfo_RpcError.Size(m) +func (dst *NewSession) XXX_Merge(src proto.Message) { + xxx_messageInfo_NewSession.Merge(dst, src) } -func (m *RpcError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcError.DiscardUnknown(m) +func (m *NewSession) XXX_Size() int { + return xxx_messageInfo_NewSession.Size(m) +} +func (m *NewSession) XXX_DiscardUnknown() { + xxx_messageInfo_NewSession.DiscardUnknown(m) } -var xxx_messageInfo_RpcError proto.InternalMessageInfo +var xxx_messageInfo_NewSession proto.InternalMessageInfo -func (m *RpcError) GetConstructor() TLConstructor { +func (m *NewSession) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *RpcError) GetData2() *RpcError_Data { +func (m *NewSession) GetData2() *NewSession_Data { if m != nil { return m.Data2 } return nil } -// rpc_error#2144ca19 error_code:int error_message:string = RpcError; -type TLRpcError struct { - Data2 *RpcError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession; +type TLNewSessionCreated struct { + Data2 *NewSession_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLRpcError) Reset() { *m = TLRpcError{} } -func (m *TLRpcError) String() string { return proto.CompactTextString(m) } -func (*TLRpcError) ProtoMessage() {} -func (*TLRpcError) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{9} +func (m *TLNewSessionCreated) Reset() { *m = TLNewSessionCreated{} } +func (m *TLNewSessionCreated) String() string { return proto.CompactTextString(m) } +func (*TLNewSessionCreated) ProtoMessage() {} +func (*TLNewSessionCreated) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{9} } -func (m *TLRpcError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLRpcError.Unmarshal(m, b) +func (m *TLNewSessionCreated) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLNewSessionCreated.Unmarshal(m, b) } -func (m *TLRpcError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLRpcError.Marshal(b, m, deterministic) +func (m *TLNewSessionCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLNewSessionCreated.Marshal(b, m, deterministic) } -func (dst *TLRpcError) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLRpcError.Merge(dst, src) +func (dst *TLNewSessionCreated) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLNewSessionCreated.Merge(dst, src) } -func (m *TLRpcError) XXX_Size() int { - return xxx_messageInfo_TLRpcError.Size(m) +func (m *TLNewSessionCreated) XXX_Size() int { + return xxx_messageInfo_TLNewSessionCreated.Size(m) } -func (m *TLRpcError) XXX_DiscardUnknown() { - xxx_messageInfo_TLRpcError.DiscardUnknown(m) +func (m *TLNewSessionCreated) XXX_DiscardUnknown() { + xxx_messageInfo_TLNewSessionCreated.DiscardUnknown(m) } -var xxx_messageInfo_TLRpcError proto.InternalMessageInfo +var xxx_messageInfo_TLNewSessionCreated proto.InternalMessageInfo -func (m *TLRpcError) GetData2() *RpcError_Data { +func (m *TLNewSessionCreated) GetData2() *NewSession_Data { if m != nil { return m.Data2 } @@ -480,142 +480,126 @@ func (m *TLRpcError) GetData2() *RpcError_Data { } // ///////////////////////////////////////////////////////////////////////////// -// FutureSalt <-- -// + TL_future_salt +// MsgsStateReq <-- +// + TL_msgs_state_req // -type FutureSalt_Data struct { - ValidSince int32 `protobuf:"varint,1,opt,name=valid_since,json=validSince,proto3" json:"valid_since,omitempty"` - ValidUntil int32 `protobuf:"varint,2,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` - Salt int64 `protobuf:"varint,3,opt,name=salt,proto3" json:"salt,omitempty"` +type MsgsStateReq_Data struct { + MsgIds []int64 `protobuf:"varint,1,rep,packed,name=msg_ids,json=msgIds,proto3" json:"msg_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *FutureSalt_Data) Reset() { *m = FutureSalt_Data{} } -func (m *FutureSalt_Data) String() string { return proto.CompactTextString(m) } -func (*FutureSalt_Data) ProtoMessage() {} -func (*FutureSalt_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{10} -} -func (m *FutureSalt_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FutureSalt_Data.Unmarshal(m, b) +func (m *MsgsStateReq_Data) Reset() { *m = MsgsStateReq_Data{} } +func (m *MsgsStateReq_Data) String() string { return proto.CompactTextString(m) } +func (*MsgsStateReq_Data) ProtoMessage() {} +func (*MsgsStateReq_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{10} } -func (m *FutureSalt_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FutureSalt_Data.Marshal(b, m, deterministic) +func (m *MsgsStateReq_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgsStateReq_Data.Unmarshal(m, b) } -func (dst *FutureSalt_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_FutureSalt_Data.Merge(dst, src) +func (m *MsgsStateReq_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgsStateReq_Data.Marshal(b, m, deterministic) } -func (m *FutureSalt_Data) XXX_Size() int { - return xxx_messageInfo_FutureSalt_Data.Size(m) +func (dst *MsgsStateReq_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgsStateReq_Data.Merge(dst, src) } -func (m *FutureSalt_Data) XXX_DiscardUnknown() { - xxx_messageInfo_FutureSalt_Data.DiscardUnknown(m) +func (m *MsgsStateReq_Data) XXX_Size() int { + return xxx_messageInfo_MsgsStateReq_Data.Size(m) } - -var xxx_messageInfo_FutureSalt_Data proto.InternalMessageInfo - -func (m *FutureSalt_Data) GetValidSince() int32 { - if m != nil { - return m.ValidSince - } - return 0 +func (m *MsgsStateReq_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MsgsStateReq_Data.DiscardUnknown(m) } -func (m *FutureSalt_Data) GetValidUntil() int32 { - if m != nil { - return m.ValidUntil - } - return 0 -} +var xxx_messageInfo_MsgsStateReq_Data proto.InternalMessageInfo -func (m *FutureSalt_Data) GetSalt() int64 { +func (m *MsgsStateReq_Data) GetMsgIds() []int64 { if m != nil { - return m.Salt + return m.MsgIds } - return 0 + return nil } -type FutureSalt struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *FutureSalt_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MsgsStateReq struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MsgsStateReq_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FutureSalt) Reset() { *m = FutureSalt{} } -func (m *FutureSalt) String() string { return proto.CompactTextString(m) } -func (*FutureSalt) ProtoMessage() {} -func (*FutureSalt) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{11} +func (m *MsgsStateReq) Reset() { *m = MsgsStateReq{} } +func (m *MsgsStateReq) String() string { return proto.CompactTextString(m) } +func (*MsgsStateReq) ProtoMessage() {} +func (*MsgsStateReq) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{11} } -func (m *FutureSalt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FutureSalt.Unmarshal(m, b) +func (m *MsgsStateReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgsStateReq.Unmarshal(m, b) } -func (m *FutureSalt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FutureSalt.Marshal(b, m, deterministic) +func (m *MsgsStateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgsStateReq.Marshal(b, m, deterministic) } -func (dst *FutureSalt) XXX_Merge(src proto.Message) { - xxx_messageInfo_FutureSalt.Merge(dst, src) +func (dst *MsgsStateReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgsStateReq.Merge(dst, src) } -func (m *FutureSalt) XXX_Size() int { - return xxx_messageInfo_FutureSalt.Size(m) +func (m *MsgsStateReq) XXX_Size() int { + return xxx_messageInfo_MsgsStateReq.Size(m) } -func (m *FutureSalt) XXX_DiscardUnknown() { - xxx_messageInfo_FutureSalt.DiscardUnknown(m) +func (m *MsgsStateReq) XXX_DiscardUnknown() { + xxx_messageInfo_MsgsStateReq.DiscardUnknown(m) } -var xxx_messageInfo_FutureSalt proto.InternalMessageInfo +var xxx_messageInfo_MsgsStateReq proto.InternalMessageInfo -func (m *FutureSalt) GetConstructor() TLConstructor { +func (m *MsgsStateReq) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *FutureSalt) GetData2() *FutureSalt_Data { +func (m *MsgsStateReq) GetData2() *MsgsStateReq_Data { if m != nil { return m.Data2 } return nil } -// future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt; -type TLFutureSalt struct { - Data2 *FutureSalt_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// msgs_state_req#da69fb52 msg_ids:Vector = MsgsStateReq; +type TLMsgsStateReq struct { + Data2 *MsgsStateReq_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLFutureSalt) Reset() { *m = TLFutureSalt{} } -func (m *TLFutureSalt) String() string { return proto.CompactTextString(m) } -func (*TLFutureSalt) ProtoMessage() {} -func (*TLFutureSalt) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{12} +func (m *TLMsgsStateReq) Reset() { *m = TLMsgsStateReq{} } +func (m *TLMsgsStateReq) String() string { return proto.CompactTextString(m) } +func (*TLMsgsStateReq) ProtoMessage() {} +func (*TLMsgsStateReq) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{12} } -func (m *TLFutureSalt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLFutureSalt.Unmarshal(m, b) +func (m *TLMsgsStateReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMsgsStateReq.Unmarshal(m, b) } -func (m *TLFutureSalt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLFutureSalt.Marshal(b, m, deterministic) +func (m *TLMsgsStateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMsgsStateReq.Marshal(b, m, deterministic) } -func (dst *TLFutureSalt) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLFutureSalt.Merge(dst, src) +func (dst *TLMsgsStateReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMsgsStateReq.Merge(dst, src) } -func (m *TLFutureSalt) XXX_Size() int { - return xxx_messageInfo_TLFutureSalt.Size(m) +func (m *TLMsgsStateReq) XXX_Size() int { + return xxx_messageInfo_TLMsgsStateReq.Size(m) } -func (m *TLFutureSalt) XXX_DiscardUnknown() { - xxx_messageInfo_TLFutureSalt.DiscardUnknown(m) +func (m *TLMsgsStateReq) XXX_DiscardUnknown() { + xxx_messageInfo_TLMsgsStateReq.DiscardUnknown(m) } -var xxx_messageInfo_TLFutureSalt proto.InternalMessageInfo +var xxx_messageInfo_TLMsgsStateReq proto.InternalMessageInfo -func (m *TLFutureSalt) GetData2() *FutureSalt_Data { +func (m *TLMsgsStateReq) GetData2() *MsgsStateReq_Data { if m != nil { return m.Data2 } @@ -623,285 +607,325 @@ func (m *TLFutureSalt) GetData2() *FutureSalt_Data { } // ///////////////////////////////////////////////////////////////////////////// -// FutureSalts <-- -// + TL_future_salts +// MsgDetailedInfo <-- +// + TL_msg_detailed_info +// + TL_msg_new_detailed_info // -type FutureSalts_Data struct { - ReqMsgId int64 `protobuf:"varint,1,opt,name=req_msg_id,json=reqMsgId,proto3" json:"req_msg_id,omitempty"` - Now int32 `protobuf:"varint,2,opt,name=now,proto3" json:"now,omitempty"` - Salts []*TLFutureSalt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MsgDetailedInfo_Data struct { + MsgId int64 `protobuf:"varint,1,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` + AnswerMsgId int64 `protobuf:"varint,2,opt,name=answer_msg_id,json=answerMsgId,proto3" json:"answer_msg_id,omitempty"` + Bytes int32 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"` + Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FutureSalts_Data) Reset() { *m = FutureSalts_Data{} } -func (m *FutureSalts_Data) String() string { return proto.CompactTextString(m) } -func (*FutureSalts_Data) ProtoMessage() {} -func (*FutureSalts_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{13} +func (m *MsgDetailedInfo_Data) Reset() { *m = MsgDetailedInfo_Data{} } +func (m *MsgDetailedInfo_Data) String() string { return proto.CompactTextString(m) } +func (*MsgDetailedInfo_Data) ProtoMessage() {} +func (*MsgDetailedInfo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{13} } -func (m *FutureSalts_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FutureSalts_Data.Unmarshal(m, b) +func (m *MsgDetailedInfo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgDetailedInfo_Data.Unmarshal(m, b) } -func (m *FutureSalts_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FutureSalts_Data.Marshal(b, m, deterministic) +func (m *MsgDetailedInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgDetailedInfo_Data.Marshal(b, m, deterministic) } -func (dst *FutureSalts_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_FutureSalts_Data.Merge(dst, src) +func (dst *MsgDetailedInfo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDetailedInfo_Data.Merge(dst, src) } -func (m *FutureSalts_Data) XXX_Size() int { - return xxx_messageInfo_FutureSalts_Data.Size(m) +func (m *MsgDetailedInfo_Data) XXX_Size() int { + return xxx_messageInfo_MsgDetailedInfo_Data.Size(m) } -func (m *FutureSalts_Data) XXX_DiscardUnknown() { - xxx_messageInfo_FutureSalts_Data.DiscardUnknown(m) +func (m *MsgDetailedInfo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDetailedInfo_Data.DiscardUnknown(m) } -var xxx_messageInfo_FutureSalts_Data proto.InternalMessageInfo +var xxx_messageInfo_MsgDetailedInfo_Data proto.InternalMessageInfo -func (m *FutureSalts_Data) GetReqMsgId() int64 { +func (m *MsgDetailedInfo_Data) GetMsgId() int64 { if m != nil { - return m.ReqMsgId + return m.MsgId } return 0 } -func (m *FutureSalts_Data) GetNow() int32 { +func (m *MsgDetailedInfo_Data) GetAnswerMsgId() int64 { if m != nil { - return m.Now + return m.AnswerMsgId } return 0 } -func (m *FutureSalts_Data) GetSalts() []*TLFutureSalt { +func (m *MsgDetailedInfo_Data) GetBytes() int32 { if m != nil { - return m.Salts + return m.Bytes } - return nil + return 0 } -type FutureSalts struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *FutureSalts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MsgDetailedInfo_Data) GetStatus() int32 { + if m != nil { + return m.Status + } + return 0 } -func (m *FutureSalts) Reset() { *m = FutureSalts{} } -func (m *FutureSalts) String() string { return proto.CompactTextString(m) } -func (*FutureSalts) ProtoMessage() {} -func (*FutureSalts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{14} +type MsgDetailedInfo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MsgDetailedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FutureSalts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FutureSalts.Unmarshal(m, b) + +func (m *MsgDetailedInfo) Reset() { *m = MsgDetailedInfo{} } +func (m *MsgDetailedInfo) String() string { return proto.CompactTextString(m) } +func (*MsgDetailedInfo) ProtoMessage() {} +func (*MsgDetailedInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{14} } -func (m *FutureSalts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FutureSalts.Marshal(b, m, deterministic) +func (m *MsgDetailedInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgDetailedInfo.Unmarshal(m, b) } -func (dst *FutureSalts) XXX_Merge(src proto.Message) { - xxx_messageInfo_FutureSalts.Merge(dst, src) +func (m *MsgDetailedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgDetailedInfo.Marshal(b, m, deterministic) } -func (m *FutureSalts) XXX_Size() int { - return xxx_messageInfo_FutureSalts.Size(m) +func (dst *MsgDetailedInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDetailedInfo.Merge(dst, src) } -func (m *FutureSalts) XXX_DiscardUnknown() { - xxx_messageInfo_FutureSalts.DiscardUnknown(m) +func (m *MsgDetailedInfo) XXX_Size() int { + return xxx_messageInfo_MsgDetailedInfo.Size(m) +} +func (m *MsgDetailedInfo) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDetailedInfo.DiscardUnknown(m) } -var xxx_messageInfo_FutureSalts proto.InternalMessageInfo +var xxx_messageInfo_MsgDetailedInfo proto.InternalMessageInfo -func (m *FutureSalts) GetConstructor() TLConstructor { +func (m *MsgDetailedInfo) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *FutureSalts) GetData2() *FutureSalts_Data { +func (m *MsgDetailedInfo) GetData2() *MsgDetailedInfo_Data { if m != nil { return m.Data2 } return nil } -// future_salts#ae500895 req_msg_id:long now:int salts:vector = FutureSalts; -type TLFutureSalts struct { - Data2 *FutureSalts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo; +type TLMsgDetailedInfo struct { + Data2 *MsgDetailedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLFutureSalts) Reset() { *m = TLFutureSalts{} } -func (m *TLFutureSalts) String() string { return proto.CompactTextString(m) } -func (*TLFutureSalts) ProtoMessage() {} -func (*TLFutureSalts) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{15} +func (m *TLMsgDetailedInfo) Reset() { *m = TLMsgDetailedInfo{} } +func (m *TLMsgDetailedInfo) String() string { return proto.CompactTextString(m) } +func (*TLMsgDetailedInfo) ProtoMessage() {} +func (*TLMsgDetailedInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{15} } -func (m *TLFutureSalts) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLFutureSalts.Unmarshal(m, b) +func (m *TLMsgDetailedInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMsgDetailedInfo.Unmarshal(m, b) } -func (m *TLFutureSalts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLFutureSalts.Marshal(b, m, deterministic) +func (m *TLMsgDetailedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMsgDetailedInfo.Marshal(b, m, deterministic) } -func (dst *TLFutureSalts) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLFutureSalts.Merge(dst, src) +func (dst *TLMsgDetailedInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMsgDetailedInfo.Merge(dst, src) } -func (m *TLFutureSalts) XXX_Size() int { - return xxx_messageInfo_TLFutureSalts.Size(m) +func (m *TLMsgDetailedInfo) XXX_Size() int { + return xxx_messageInfo_TLMsgDetailedInfo.Size(m) } -func (m *TLFutureSalts) XXX_DiscardUnknown() { - xxx_messageInfo_TLFutureSalts.DiscardUnknown(m) +func (m *TLMsgDetailedInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLMsgDetailedInfo.DiscardUnknown(m) } -var xxx_messageInfo_TLFutureSalts proto.InternalMessageInfo +var xxx_messageInfo_TLMsgDetailedInfo proto.InternalMessageInfo -func (m *TLFutureSalts) GetData2() *FutureSalts_Data { +func (m *TLMsgDetailedInfo) GetData2() *MsgDetailedInfo_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// AccessPointRule <-- -// + TL_accessPointRule -// -type AccessPointRule_Data struct { - PhonePrefixRules string `protobuf:"bytes,1,opt,name=phone_prefix_rules,json=phonePrefixRules,proto3" json:"phone_prefix_rules,omitempty"` - DcId int32 `protobuf:"varint,2,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` - Ips []*IpPort `protobuf:"bytes,3,rep,name=ips,proto3" json:"ips,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo; +type TLMsgNewDetailedInfo struct { + Data2 *MsgDetailedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *AccessPointRule_Data) Reset() { *m = AccessPointRule_Data{} } -func (m *AccessPointRule_Data) String() string { return proto.CompactTextString(m) } -func (*AccessPointRule_Data) ProtoMessage() {} -func (*AccessPointRule_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{16} +func (m *TLMsgNewDetailedInfo) Reset() { *m = TLMsgNewDetailedInfo{} } +func (m *TLMsgNewDetailedInfo) String() string { return proto.CompactTextString(m) } +func (*TLMsgNewDetailedInfo) ProtoMessage() {} +func (*TLMsgNewDetailedInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{16} } -func (m *AccessPointRule_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AccessPointRule_Data.Unmarshal(m, b) +func (m *TLMsgNewDetailedInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMsgNewDetailedInfo.Unmarshal(m, b) } -func (m *AccessPointRule_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AccessPointRule_Data.Marshal(b, m, deterministic) +func (m *TLMsgNewDetailedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMsgNewDetailedInfo.Marshal(b, m, deterministic) } -func (dst *AccessPointRule_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccessPointRule_Data.Merge(dst, src) +func (dst *TLMsgNewDetailedInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMsgNewDetailedInfo.Merge(dst, src) } -func (m *AccessPointRule_Data) XXX_Size() int { - return xxx_messageInfo_AccessPointRule_Data.Size(m) +func (m *TLMsgNewDetailedInfo) XXX_Size() int { + return xxx_messageInfo_TLMsgNewDetailedInfo.Size(m) } -func (m *AccessPointRule_Data) XXX_DiscardUnknown() { - xxx_messageInfo_AccessPointRule_Data.DiscardUnknown(m) +func (m *TLMsgNewDetailedInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLMsgNewDetailedInfo.DiscardUnknown(m) } -var xxx_messageInfo_AccessPointRule_Data proto.InternalMessageInfo +var xxx_messageInfo_TLMsgNewDetailedInfo proto.InternalMessageInfo -func (m *AccessPointRule_Data) GetPhonePrefixRules() string { +func (m *TLMsgNewDetailedInfo) GetData2() *MsgDetailedInfo_Data { if m != nil { - return m.PhonePrefixRules + return m.Data2 } - return "" + return nil } -func (m *AccessPointRule_Data) GetDcId() int32 { +// ///////////////////////////////////////////////////////////////////////////// +// RpcError <-- +// + TL_rpc_error +// +type RpcError_Data struct { + ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RpcError_Data) Reset() { *m = RpcError_Data{} } +func (m *RpcError_Data) String() string { return proto.CompactTextString(m) } +func (*RpcError_Data) ProtoMessage() {} +func (*RpcError_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{17} +} +func (m *RpcError_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RpcError_Data.Unmarshal(m, b) +} +func (m *RpcError_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RpcError_Data.Marshal(b, m, deterministic) +} +func (dst *RpcError_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcError_Data.Merge(dst, src) +} +func (m *RpcError_Data) XXX_Size() int { + return xxx_messageInfo_RpcError_Data.Size(m) +} +func (m *RpcError_Data) XXX_DiscardUnknown() { + xxx_messageInfo_RpcError_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcError_Data proto.InternalMessageInfo + +func (m *RpcError_Data) GetErrorCode() int32 { if m != nil { - return m.DcId + return m.ErrorCode } return 0 } -func (m *AccessPointRule_Data) GetIps() []*IpPort { +func (m *RpcError_Data) GetErrorMessage() string { if m != nil { - return m.Ips + return m.ErrorMessage } - return nil + return "" } -type AccessPointRule struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *AccessPointRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type RpcError struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *RpcError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *AccessPointRule) Reset() { *m = AccessPointRule{} } -func (m *AccessPointRule) String() string { return proto.CompactTextString(m) } -func (*AccessPointRule) ProtoMessage() {} -func (*AccessPointRule) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{17} +func (m *RpcError) Reset() { *m = RpcError{} } +func (m *RpcError) String() string { return proto.CompactTextString(m) } +func (*RpcError) ProtoMessage() {} +func (*RpcError) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{18} } -func (m *AccessPointRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AccessPointRule.Unmarshal(m, b) +func (m *RpcError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RpcError.Unmarshal(m, b) } -func (m *AccessPointRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AccessPointRule.Marshal(b, m, deterministic) +func (m *RpcError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RpcError.Marshal(b, m, deterministic) } -func (dst *AccessPointRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccessPointRule.Merge(dst, src) +func (dst *RpcError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcError.Merge(dst, src) } -func (m *AccessPointRule) XXX_Size() int { - return xxx_messageInfo_AccessPointRule.Size(m) +func (m *RpcError) XXX_Size() int { + return xxx_messageInfo_RpcError.Size(m) } -func (m *AccessPointRule) XXX_DiscardUnknown() { - xxx_messageInfo_AccessPointRule.DiscardUnknown(m) +func (m *RpcError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcError.DiscardUnknown(m) } -var xxx_messageInfo_AccessPointRule proto.InternalMessageInfo +var xxx_messageInfo_RpcError proto.InternalMessageInfo -func (m *AccessPointRule) GetConstructor() TLConstructor { +func (m *RpcError) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *AccessPointRule) GetData2() *AccessPointRule_Data { +func (m *RpcError) GetData2() *RpcError_Data { if m != nil { return m.Data2 } return nil } -// accessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector = AccessPointRule; -type TLAccessPointRule struct { - Data2 *AccessPointRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// rpc_error#2144ca19 error_code:int error_message:string = RpcError; +type TLRpcError struct { + Data2 *RpcError_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAccessPointRule) Reset() { *m = TLAccessPointRule{} } -func (m *TLAccessPointRule) String() string { return proto.CompactTextString(m) } -func (*TLAccessPointRule) ProtoMessage() {} -func (*TLAccessPointRule) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{18} +func (m *TLRpcError) Reset() { *m = TLRpcError{} } +func (m *TLRpcError) String() string { return proto.CompactTextString(m) } +func (*TLRpcError) ProtoMessage() {} +func (*TLRpcError) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{19} } -func (m *TLAccessPointRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAccessPointRule.Unmarshal(m, b) +func (m *TLRpcError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLRpcError.Unmarshal(m, b) } -func (m *TLAccessPointRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAccessPointRule.Marshal(b, m, deterministic) +func (m *TLRpcError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLRpcError.Marshal(b, m, deterministic) } -func (dst *TLAccessPointRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAccessPointRule.Merge(dst, src) +func (dst *TLRpcError) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLRpcError.Merge(dst, src) } -func (m *TLAccessPointRule) XXX_Size() int { - return xxx_messageInfo_TLAccessPointRule.Size(m) +func (m *TLRpcError) XXX_Size() int { + return xxx_messageInfo_TLRpcError.Size(m) } -func (m *TLAccessPointRule) XXX_DiscardUnknown() { - xxx_messageInfo_TLAccessPointRule.DiscardUnknown(m) +func (m *TLRpcError) XXX_DiscardUnknown() { + xxx_messageInfo_TLRpcError.DiscardUnknown(m) } -var xxx_messageInfo_TLAccessPointRule proto.InternalMessageInfo +var xxx_messageInfo_TLRpcError proto.InternalMessageInfo -func (m *TLAccessPointRule) GetData2() *AccessPointRule_Data { +func (m *TLRpcError) GetData2() *RpcError_Data { if m != nil { return m.Data2 } @@ -909,611 +933,635 @@ func (m *TLAccessPointRule) GetData2() *AccessPointRule_Data { } // ///////////////////////////////////////////////////////////////////////////// -// MsgsAck <-- -// + TL_msgs_ack +// RpcDropAnswer <-- +// + TL_rpc_answer_unknown +// + TL_rpc_answer_dropped_running +// + TL_rpc_answer_dropped // -type MsgsAck_Data struct { - MsgIds []int64 `protobuf:"varint,1,rep,packed,name=msg_ids,json=msgIds,proto3" json:"msg_ids,omitempty"` +type RpcDropAnswer_Data struct { + MsgId int64 `protobuf:"varint,1,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` + SeqNo int32 `protobuf:"varint,2,opt,name=seq_no,json=seqNo,proto3" json:"seq_no,omitempty"` + Bytes int32 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *MsgsAck_Data) Reset() { *m = MsgsAck_Data{} } -func (m *MsgsAck_Data) String() string { return proto.CompactTextString(m) } -func (*MsgsAck_Data) ProtoMessage() {} -func (*MsgsAck_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{19} +func (m *RpcDropAnswer_Data) Reset() { *m = RpcDropAnswer_Data{} } +func (m *RpcDropAnswer_Data) String() string { return proto.CompactTextString(m) } +func (*RpcDropAnswer_Data) ProtoMessage() {} +func (*RpcDropAnswer_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{20} } -func (m *MsgsAck_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgsAck_Data.Unmarshal(m, b) +func (m *RpcDropAnswer_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RpcDropAnswer_Data.Unmarshal(m, b) } -func (m *MsgsAck_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgsAck_Data.Marshal(b, m, deterministic) +func (m *RpcDropAnswer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RpcDropAnswer_Data.Marshal(b, m, deterministic) } -func (dst *MsgsAck_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgsAck_Data.Merge(dst, src) +func (dst *RpcDropAnswer_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDropAnswer_Data.Merge(dst, src) } -func (m *MsgsAck_Data) XXX_Size() int { - return xxx_messageInfo_MsgsAck_Data.Size(m) +func (m *RpcDropAnswer_Data) XXX_Size() int { + return xxx_messageInfo_RpcDropAnswer_Data.Size(m) } -func (m *MsgsAck_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MsgsAck_Data.DiscardUnknown(m) +func (m *RpcDropAnswer_Data) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDropAnswer_Data.DiscardUnknown(m) } -var xxx_messageInfo_MsgsAck_Data proto.InternalMessageInfo +var xxx_messageInfo_RpcDropAnswer_Data proto.InternalMessageInfo -func (m *MsgsAck_Data) GetMsgIds() []int64 { +func (m *RpcDropAnswer_Data) GetMsgId() int64 { if m != nil { - return m.MsgIds + return m.MsgId } - return nil + return 0 } -type MsgsAck struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MsgsAck_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *RpcDropAnswer_Data) GetSeqNo() int32 { + if m != nil { + return m.SeqNo + } + return 0 } -func (m *MsgsAck) Reset() { *m = MsgsAck{} } -func (m *MsgsAck) String() string { return proto.CompactTextString(m) } -func (*MsgsAck) ProtoMessage() {} -func (*MsgsAck) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{20} +func (m *RpcDropAnswer_Data) GetBytes() int32 { + if m != nil { + return m.Bytes + } + return 0 } -func (m *MsgsAck) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgsAck.Unmarshal(m, b) + +type RpcDropAnswer struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *RpcDropAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MsgsAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgsAck.Marshal(b, m, deterministic) + +func (m *RpcDropAnswer) Reset() { *m = RpcDropAnswer{} } +func (m *RpcDropAnswer) String() string { return proto.CompactTextString(m) } +func (*RpcDropAnswer) ProtoMessage() {} +func (*RpcDropAnswer) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{21} } -func (dst *MsgsAck) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgsAck.Merge(dst, src) +func (m *RpcDropAnswer) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RpcDropAnswer.Unmarshal(m, b) } -func (m *MsgsAck) XXX_Size() int { - return xxx_messageInfo_MsgsAck.Size(m) +func (m *RpcDropAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RpcDropAnswer.Marshal(b, m, deterministic) } -func (m *MsgsAck) XXX_DiscardUnknown() { - xxx_messageInfo_MsgsAck.DiscardUnknown(m) +func (dst *RpcDropAnswer) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDropAnswer.Merge(dst, src) +} +func (m *RpcDropAnswer) XXX_Size() int { + return xxx_messageInfo_RpcDropAnswer.Size(m) +} +func (m *RpcDropAnswer) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDropAnswer.DiscardUnknown(m) } -var xxx_messageInfo_MsgsAck proto.InternalMessageInfo +var xxx_messageInfo_RpcDropAnswer proto.InternalMessageInfo -func (m *MsgsAck) GetConstructor() TLConstructor { +func (m *RpcDropAnswer) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MsgsAck) GetData2() *MsgsAck_Data { +func (m *RpcDropAnswer) GetData2() *RpcDropAnswer_Data { if m != nil { return m.Data2 } return nil } -// msgs_ack#62d6b459 msg_ids:Vector = MsgsAck; -type TLMsgsAck struct { - Data2 *MsgsAck_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// rpc_answer_unknown#5e2ad36e = RpcDropAnswer; +type TLRpcAnswerUnknown struct { + Data2 *RpcDropAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMsgsAck) Reset() { *m = TLMsgsAck{} } -func (m *TLMsgsAck) String() string { return proto.CompactTextString(m) } -func (*TLMsgsAck) ProtoMessage() {} -func (*TLMsgsAck) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{21} +func (m *TLRpcAnswerUnknown) Reset() { *m = TLRpcAnswerUnknown{} } +func (m *TLRpcAnswerUnknown) String() string { return proto.CompactTextString(m) } +func (*TLRpcAnswerUnknown) ProtoMessage() {} +func (*TLRpcAnswerUnknown) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{22} } -func (m *TLMsgsAck) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMsgsAck.Unmarshal(m, b) +func (m *TLRpcAnswerUnknown) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLRpcAnswerUnknown.Unmarshal(m, b) } -func (m *TLMsgsAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMsgsAck.Marshal(b, m, deterministic) +func (m *TLRpcAnswerUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLRpcAnswerUnknown.Marshal(b, m, deterministic) } -func (dst *TLMsgsAck) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMsgsAck.Merge(dst, src) +func (dst *TLRpcAnswerUnknown) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLRpcAnswerUnknown.Merge(dst, src) } -func (m *TLMsgsAck) XXX_Size() int { - return xxx_messageInfo_TLMsgsAck.Size(m) +func (m *TLRpcAnswerUnknown) XXX_Size() int { + return xxx_messageInfo_TLRpcAnswerUnknown.Size(m) } -func (m *TLMsgsAck) XXX_DiscardUnknown() { - xxx_messageInfo_TLMsgsAck.DiscardUnknown(m) +func (m *TLRpcAnswerUnknown) XXX_DiscardUnknown() { + xxx_messageInfo_TLRpcAnswerUnknown.DiscardUnknown(m) } -var xxx_messageInfo_TLMsgsAck proto.InternalMessageInfo +var xxx_messageInfo_TLRpcAnswerUnknown proto.InternalMessageInfo -func (m *TLMsgsAck) GetData2() *MsgsAck_Data { +func (m *TLRpcAnswerUnknown) GetData2() *RpcDropAnswer_Data { if m != nil { return m.Data2 } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// MsgsStateReq <-- -// + TL_msgs_state_req -// -type MsgsStateReq_Data struct { - MsgIds []int64 `protobuf:"varint,1,rep,packed,name=msg_ids,json=msgIds,proto3" json:"msg_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// rpc_answer_dropped_running#cd78e586 = RpcDropAnswer; +type TLRpcAnswerDroppedRunning struct { + Data2 *RpcDropAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MsgsStateReq_Data) Reset() { *m = MsgsStateReq_Data{} } -func (m *MsgsStateReq_Data) String() string { return proto.CompactTextString(m) } -func (*MsgsStateReq_Data) ProtoMessage() {} -func (*MsgsStateReq_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{22} +func (m *TLRpcAnswerDroppedRunning) Reset() { *m = TLRpcAnswerDroppedRunning{} } +func (m *TLRpcAnswerDroppedRunning) String() string { return proto.CompactTextString(m) } +func (*TLRpcAnswerDroppedRunning) ProtoMessage() {} +func (*TLRpcAnswerDroppedRunning) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{23} } -func (m *MsgsStateReq_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgsStateReq_Data.Unmarshal(m, b) +func (m *TLRpcAnswerDroppedRunning) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLRpcAnswerDroppedRunning.Unmarshal(m, b) } -func (m *MsgsStateReq_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgsStateReq_Data.Marshal(b, m, deterministic) +func (m *TLRpcAnswerDroppedRunning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLRpcAnswerDroppedRunning.Marshal(b, m, deterministic) } -func (dst *MsgsStateReq_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgsStateReq_Data.Merge(dst, src) +func (dst *TLRpcAnswerDroppedRunning) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLRpcAnswerDroppedRunning.Merge(dst, src) } -func (m *MsgsStateReq_Data) XXX_Size() int { - return xxx_messageInfo_MsgsStateReq_Data.Size(m) +func (m *TLRpcAnswerDroppedRunning) XXX_Size() int { + return xxx_messageInfo_TLRpcAnswerDroppedRunning.Size(m) } -func (m *MsgsStateReq_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MsgsStateReq_Data.DiscardUnknown(m) +func (m *TLRpcAnswerDroppedRunning) XXX_DiscardUnknown() { + xxx_messageInfo_TLRpcAnswerDroppedRunning.DiscardUnknown(m) } -var xxx_messageInfo_MsgsStateReq_Data proto.InternalMessageInfo +var xxx_messageInfo_TLRpcAnswerDroppedRunning proto.InternalMessageInfo -func (m *MsgsStateReq_Data) GetMsgIds() []int64 { +func (m *TLRpcAnswerDroppedRunning) GetData2() *RpcDropAnswer_Data { if m != nil { - return m.MsgIds + return m.Data2 } return nil } -type MsgsStateReq struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MsgsStateReq_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer; +type TLRpcAnswerDropped struct { + Data2 *RpcDropAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MsgsStateReq) Reset() { *m = MsgsStateReq{} } -func (m *MsgsStateReq) String() string { return proto.CompactTextString(m) } -func (*MsgsStateReq) ProtoMessage() {} -func (*MsgsStateReq) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{23} +func (m *TLRpcAnswerDropped) Reset() { *m = TLRpcAnswerDropped{} } +func (m *TLRpcAnswerDropped) String() string { return proto.CompactTextString(m) } +func (*TLRpcAnswerDropped) ProtoMessage() {} +func (*TLRpcAnswerDropped) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{24} } -func (m *MsgsStateReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgsStateReq.Unmarshal(m, b) +func (m *TLRpcAnswerDropped) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLRpcAnswerDropped.Unmarshal(m, b) } -func (m *MsgsStateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgsStateReq.Marshal(b, m, deterministic) +func (m *TLRpcAnswerDropped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLRpcAnswerDropped.Marshal(b, m, deterministic) } -func (dst *MsgsStateReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgsStateReq.Merge(dst, src) +func (dst *TLRpcAnswerDropped) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLRpcAnswerDropped.Merge(dst, src) } -func (m *MsgsStateReq) XXX_Size() int { - return xxx_messageInfo_MsgsStateReq.Size(m) +func (m *TLRpcAnswerDropped) XXX_Size() int { + return xxx_messageInfo_TLRpcAnswerDropped.Size(m) } -func (m *MsgsStateReq) XXX_DiscardUnknown() { - xxx_messageInfo_MsgsStateReq.DiscardUnknown(m) +func (m *TLRpcAnswerDropped) XXX_DiscardUnknown() { + xxx_messageInfo_TLRpcAnswerDropped.DiscardUnknown(m) } -var xxx_messageInfo_MsgsStateReq proto.InternalMessageInfo +var xxx_messageInfo_TLRpcAnswerDropped proto.InternalMessageInfo -func (m *MsgsStateReq) GetConstructor() TLConstructor { +func (m *TLRpcAnswerDropped) GetData2() *RpcDropAnswer_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN -} - -func (m *MsgsStateReq) GetData2() *MsgsStateReq_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// msgs_state_req#da69fb52 msg_ids:Vector = MsgsStateReq; -type TLMsgsStateReq struct { - Data2 *MsgsStateReq_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLMsgsStateReq) Reset() { *m = TLMsgsStateReq{} } -func (m *TLMsgsStateReq) String() string { return proto.CompactTextString(m) } -func (*TLMsgsStateReq) ProtoMessage() {} -func (*TLMsgsStateReq) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{24} -} -func (m *TLMsgsStateReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMsgsStateReq.Unmarshal(m, b) -} -func (m *TLMsgsStateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMsgsStateReq.Marshal(b, m, deterministic) -} -func (dst *TLMsgsStateReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMsgsStateReq.Merge(dst, src) -} -func (m *TLMsgsStateReq) XXX_Size() int { - return xxx_messageInfo_TLMsgsStateReq.Size(m) -} -func (m *TLMsgsStateReq) XXX_DiscardUnknown() { - xxx_messageInfo_TLMsgsStateReq.DiscardUnknown(m) -} - -var xxx_messageInfo_TLMsgsStateReq proto.InternalMessageInfo - -func (m *TLMsgsStateReq) GetData2() *MsgsStateReq_Data { - if m != nil { - return m.Data2 - } - return nil + return nil } // ///////////////////////////////////////////////////////////////////////////// -// MsgDetailedInfo <-- -// + TL_msg_detailed_info -// + TL_msg_new_detailed_info +// FutureSalt <-- +// + TL_future_salt // -type MsgDetailedInfo_Data struct { - MsgId int64 `protobuf:"varint,1,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` - AnswerMsgId int64 `protobuf:"varint,2,opt,name=answer_msg_id,json=answerMsgId,proto3" json:"answer_msg_id,omitempty"` - Bytes int32 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"` - Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` +type FutureSalt_Data struct { + ValidSince int32 `protobuf:"varint,1,opt,name=valid_since,json=validSince,proto3" json:"valid_since,omitempty"` + ValidUntil int32 `protobuf:"varint,2,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` + Salt int64 `protobuf:"varint,3,opt,name=salt,proto3" json:"salt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *MsgDetailedInfo_Data) Reset() { *m = MsgDetailedInfo_Data{} } -func (m *MsgDetailedInfo_Data) String() string { return proto.CompactTextString(m) } -func (*MsgDetailedInfo_Data) ProtoMessage() {} -func (*MsgDetailedInfo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{25} +func (m *FutureSalt_Data) Reset() { *m = FutureSalt_Data{} } +func (m *FutureSalt_Data) String() string { return proto.CompactTextString(m) } +func (*FutureSalt_Data) ProtoMessage() {} +func (*FutureSalt_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{25} } -func (m *MsgDetailedInfo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgDetailedInfo_Data.Unmarshal(m, b) +func (m *FutureSalt_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FutureSalt_Data.Unmarshal(m, b) } -func (m *MsgDetailedInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgDetailedInfo_Data.Marshal(b, m, deterministic) +func (m *FutureSalt_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FutureSalt_Data.Marshal(b, m, deterministic) } -func (dst *MsgDetailedInfo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDetailedInfo_Data.Merge(dst, src) +func (dst *FutureSalt_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_FutureSalt_Data.Merge(dst, src) } -func (m *MsgDetailedInfo_Data) XXX_Size() int { - return xxx_messageInfo_MsgDetailedInfo_Data.Size(m) +func (m *FutureSalt_Data) XXX_Size() int { + return xxx_messageInfo_FutureSalt_Data.Size(m) } -func (m *MsgDetailedInfo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDetailedInfo_Data.DiscardUnknown(m) +func (m *FutureSalt_Data) XXX_DiscardUnknown() { + xxx_messageInfo_FutureSalt_Data.DiscardUnknown(m) } -var xxx_messageInfo_MsgDetailedInfo_Data proto.InternalMessageInfo - -func (m *MsgDetailedInfo_Data) GetMsgId() int64 { - if m != nil { - return m.MsgId - } - return 0 -} +var xxx_messageInfo_FutureSalt_Data proto.InternalMessageInfo -func (m *MsgDetailedInfo_Data) GetAnswerMsgId() int64 { +func (m *FutureSalt_Data) GetValidSince() int32 { if m != nil { - return m.AnswerMsgId + return m.ValidSince } return 0 } -func (m *MsgDetailedInfo_Data) GetBytes() int32 { +func (m *FutureSalt_Data) GetValidUntil() int32 { if m != nil { - return m.Bytes + return m.ValidUntil } return 0 } -func (m *MsgDetailedInfo_Data) GetStatus() int32 { +func (m *FutureSalt_Data) GetSalt() int64 { if m != nil { - return m.Status + return m.Salt } return 0 } -type MsgDetailedInfo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MsgDetailedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type FutureSalt struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *FutureSalt_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MsgDetailedInfo) Reset() { *m = MsgDetailedInfo{} } -func (m *MsgDetailedInfo) String() string { return proto.CompactTextString(m) } -func (*MsgDetailedInfo) ProtoMessage() {} -func (*MsgDetailedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{26} +func (m *FutureSalt) Reset() { *m = FutureSalt{} } +func (m *FutureSalt) String() string { return proto.CompactTextString(m) } +func (*FutureSalt) ProtoMessage() {} +func (*FutureSalt) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{26} } -func (m *MsgDetailedInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgDetailedInfo.Unmarshal(m, b) +func (m *FutureSalt) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FutureSalt.Unmarshal(m, b) } -func (m *MsgDetailedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgDetailedInfo.Marshal(b, m, deterministic) +func (m *FutureSalt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FutureSalt.Marshal(b, m, deterministic) } -func (dst *MsgDetailedInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDetailedInfo.Merge(dst, src) +func (dst *FutureSalt) XXX_Merge(src proto.Message) { + xxx_messageInfo_FutureSalt.Merge(dst, src) } -func (m *MsgDetailedInfo) XXX_Size() int { - return xxx_messageInfo_MsgDetailedInfo.Size(m) +func (m *FutureSalt) XXX_Size() int { + return xxx_messageInfo_FutureSalt.Size(m) } -func (m *MsgDetailedInfo) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDetailedInfo.DiscardUnknown(m) +func (m *FutureSalt) XXX_DiscardUnknown() { + xxx_messageInfo_FutureSalt.DiscardUnknown(m) } -var xxx_messageInfo_MsgDetailedInfo proto.InternalMessageInfo +var xxx_messageInfo_FutureSalt proto.InternalMessageInfo -func (m *MsgDetailedInfo) GetConstructor() TLConstructor { +func (m *FutureSalt) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MsgDetailedInfo) GetData2() *MsgDetailedInfo_Data { +func (m *FutureSalt) GetData2() *FutureSalt_Data { if m != nil { return m.Data2 } return nil } -// msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo; -type TLMsgDetailedInfo struct { - Data2 *MsgDetailedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt; +type TLFutureSalt struct { + Data2 *FutureSalt_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMsgDetailedInfo) Reset() { *m = TLMsgDetailedInfo{} } -func (m *TLMsgDetailedInfo) String() string { return proto.CompactTextString(m) } -func (*TLMsgDetailedInfo) ProtoMessage() {} -func (*TLMsgDetailedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{27} +func (m *TLFutureSalt) Reset() { *m = TLFutureSalt{} } +func (m *TLFutureSalt) String() string { return proto.CompactTextString(m) } +func (*TLFutureSalt) ProtoMessage() {} +func (*TLFutureSalt) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{27} } -func (m *TLMsgDetailedInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMsgDetailedInfo.Unmarshal(m, b) +func (m *TLFutureSalt) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLFutureSalt.Unmarshal(m, b) } -func (m *TLMsgDetailedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMsgDetailedInfo.Marshal(b, m, deterministic) +func (m *TLFutureSalt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLFutureSalt.Marshal(b, m, deterministic) } -func (dst *TLMsgDetailedInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMsgDetailedInfo.Merge(dst, src) +func (dst *TLFutureSalt) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLFutureSalt.Merge(dst, src) } -func (m *TLMsgDetailedInfo) XXX_Size() int { - return xxx_messageInfo_TLMsgDetailedInfo.Size(m) +func (m *TLFutureSalt) XXX_Size() int { + return xxx_messageInfo_TLFutureSalt.Size(m) } -func (m *TLMsgDetailedInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLMsgDetailedInfo.DiscardUnknown(m) +func (m *TLFutureSalt) XXX_DiscardUnknown() { + xxx_messageInfo_TLFutureSalt.DiscardUnknown(m) } -var xxx_messageInfo_TLMsgDetailedInfo proto.InternalMessageInfo +var xxx_messageInfo_TLFutureSalt proto.InternalMessageInfo -func (m *TLMsgDetailedInfo) GetData2() *MsgDetailedInfo_Data { +func (m *TLFutureSalt) GetData2() *FutureSalt_Data { if m != nil { return m.Data2 } return nil } -// msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo; -type TLMsgNewDetailedInfo struct { - Data2 *MsgDetailedInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// AccessPointRule <-- +// + TL_accessPointRule +// +type AccessPointRule_Data struct { + PhonePrefixRules string `protobuf:"bytes,1,opt,name=phone_prefix_rules,json=phonePrefixRules,proto3" json:"phone_prefix_rules,omitempty"` + DcId int32 `protobuf:"varint,2,opt,name=dc_id,json=dcId,proto3" json:"dc_id,omitempty"` + Ips []*IpPort `protobuf:"bytes,3,rep,name=ips,proto3" json:"ips,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMsgNewDetailedInfo) Reset() { *m = TLMsgNewDetailedInfo{} } -func (m *TLMsgNewDetailedInfo) String() string { return proto.CompactTextString(m) } -func (*TLMsgNewDetailedInfo) ProtoMessage() {} -func (*TLMsgNewDetailedInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{28} +func (m *AccessPointRule_Data) Reset() { *m = AccessPointRule_Data{} } +func (m *AccessPointRule_Data) String() string { return proto.CompactTextString(m) } +func (*AccessPointRule_Data) ProtoMessage() {} +func (*AccessPointRule_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{28} } -func (m *TLMsgNewDetailedInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMsgNewDetailedInfo.Unmarshal(m, b) +func (m *AccessPointRule_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AccessPointRule_Data.Unmarshal(m, b) } -func (m *TLMsgNewDetailedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMsgNewDetailedInfo.Marshal(b, m, deterministic) +func (m *AccessPointRule_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AccessPointRule_Data.Marshal(b, m, deterministic) } -func (dst *TLMsgNewDetailedInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMsgNewDetailedInfo.Merge(dst, src) +func (dst *AccessPointRule_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccessPointRule_Data.Merge(dst, src) } -func (m *TLMsgNewDetailedInfo) XXX_Size() int { - return xxx_messageInfo_TLMsgNewDetailedInfo.Size(m) +func (m *AccessPointRule_Data) XXX_Size() int { + return xxx_messageInfo_AccessPointRule_Data.Size(m) } -func (m *TLMsgNewDetailedInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLMsgNewDetailedInfo.DiscardUnknown(m) +func (m *AccessPointRule_Data) XXX_DiscardUnknown() { + xxx_messageInfo_AccessPointRule_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLMsgNewDetailedInfo proto.InternalMessageInfo +var xxx_messageInfo_AccessPointRule_Data proto.InternalMessageInfo -func (m *TLMsgNewDetailedInfo) GetData2() *MsgDetailedInfo_Data { +func (m *AccessPointRule_Data) GetPhonePrefixRules() string { if m != nil { - return m.Data2 + return m.PhonePrefixRules } - return nil + return "" } -// ///////////////////////////////////////////////////////////////////////////// -// DestroySessionRes <-- -// + TL_destroy_session_ok -// + TL_destroy_session_none -// -type DestroySessionRes_Data struct { - SessionId int64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *AccessPointRule_Data) GetDcId() int32 { + if m != nil { + return m.DcId + } + return 0 } -func (m *DestroySessionRes_Data) Reset() { *m = DestroySessionRes_Data{} } -func (m *DestroySessionRes_Data) String() string { return proto.CompactTextString(m) } -func (*DestroySessionRes_Data) ProtoMessage() {} -func (*DestroySessionRes_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{29} +func (m *AccessPointRule_Data) GetIps() []*IpPort { + if m != nil { + return m.Ips + } + return nil } -func (m *DestroySessionRes_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DestroySessionRes_Data.Unmarshal(m, b) + +type AccessPointRule struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *AccessPointRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DestroySessionRes_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DestroySessionRes_Data.Marshal(b, m, deterministic) + +func (m *AccessPointRule) Reset() { *m = AccessPointRule{} } +func (m *AccessPointRule) String() string { return proto.CompactTextString(m) } +func (*AccessPointRule) ProtoMessage() {} +func (*AccessPointRule) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{29} } -func (dst *DestroySessionRes_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_DestroySessionRes_Data.Merge(dst, src) +func (m *AccessPointRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AccessPointRule.Unmarshal(m, b) } -func (m *DestroySessionRes_Data) XXX_Size() int { - return xxx_messageInfo_DestroySessionRes_Data.Size(m) +func (m *AccessPointRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AccessPointRule.Marshal(b, m, deterministic) } -func (m *DestroySessionRes_Data) XXX_DiscardUnknown() { - xxx_messageInfo_DestroySessionRes_Data.DiscardUnknown(m) +func (dst *AccessPointRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccessPointRule.Merge(dst, src) +} +func (m *AccessPointRule) XXX_Size() int { + return xxx_messageInfo_AccessPointRule.Size(m) +} +func (m *AccessPointRule) XXX_DiscardUnknown() { + xxx_messageInfo_AccessPointRule.DiscardUnknown(m) } -var xxx_messageInfo_DestroySessionRes_Data proto.InternalMessageInfo +var xxx_messageInfo_AccessPointRule proto.InternalMessageInfo -func (m *DestroySessionRes_Data) GetSessionId() int64 { +func (m *AccessPointRule) GetConstructor() TLConstructor { if m != nil { - return m.SessionId + return m.Constructor } - return 0 + return TLConstructor_CRC32_UNKNOWN } -type DestroySessionRes struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *DestroySessionRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *AccessPointRule) GetData2() *AccessPointRule_Data { + if m != nil { + return m.Data2 + } + return nil } -func (m *DestroySessionRes) Reset() { *m = DestroySessionRes{} } -func (m *DestroySessionRes) String() string { return proto.CompactTextString(m) } -func (*DestroySessionRes) ProtoMessage() {} -func (*DestroySessionRes) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{30} +// accessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector = AccessPointRule; +type TLAccessPointRule struct { + Data2 *AccessPointRule_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DestroySessionRes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DestroySessionRes.Unmarshal(m, b) + +func (m *TLAccessPointRule) Reset() { *m = TLAccessPointRule{} } +func (m *TLAccessPointRule) String() string { return proto.CompactTextString(m) } +func (*TLAccessPointRule) ProtoMessage() {} +func (*TLAccessPointRule) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{30} } -func (m *DestroySessionRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DestroySessionRes.Marshal(b, m, deterministic) +func (m *TLAccessPointRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAccessPointRule.Unmarshal(m, b) } -func (dst *DestroySessionRes) XXX_Merge(src proto.Message) { - xxx_messageInfo_DestroySessionRes.Merge(dst, src) +func (m *TLAccessPointRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAccessPointRule.Marshal(b, m, deterministic) } -func (m *DestroySessionRes) XXX_Size() int { - return xxx_messageInfo_DestroySessionRes.Size(m) +func (dst *TLAccessPointRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAccessPointRule.Merge(dst, src) } -func (m *DestroySessionRes) XXX_DiscardUnknown() { - xxx_messageInfo_DestroySessionRes.DiscardUnknown(m) +func (m *TLAccessPointRule) XXX_Size() int { + return xxx_messageInfo_TLAccessPointRule.Size(m) +} +func (m *TLAccessPointRule) XXX_DiscardUnknown() { + xxx_messageInfo_TLAccessPointRule.DiscardUnknown(m) } -var xxx_messageInfo_DestroySessionRes proto.InternalMessageInfo +var xxx_messageInfo_TLAccessPointRule proto.InternalMessageInfo -func (m *DestroySessionRes) GetConstructor() TLConstructor { +func (m *TLAccessPointRule) GetData2() *AccessPointRule_Data { if m != nil { - return m.Constructor + return m.Data2 } - return TLConstructor_CRC32_UNKNOWN + return nil } -func (m *DestroySessionRes) GetData2() *DestroySessionRes_Data { +// ///////////////////////////////////////////////////////////////////////////// +// MsgsAck <-- +// + TL_msgs_ack +// +type MsgsAck_Data struct { + MsgIds []int64 `protobuf:"varint,1,rep,packed,name=msg_ids,json=msgIds,proto3" json:"msg_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MsgsAck_Data) Reset() { *m = MsgsAck_Data{} } +func (m *MsgsAck_Data) String() string { return proto.CompactTextString(m) } +func (*MsgsAck_Data) ProtoMessage() {} +func (*MsgsAck_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{31} +} +func (m *MsgsAck_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgsAck_Data.Unmarshal(m, b) +} +func (m *MsgsAck_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgsAck_Data.Marshal(b, m, deterministic) +} +func (dst *MsgsAck_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgsAck_Data.Merge(dst, src) +} +func (m *MsgsAck_Data) XXX_Size() int { + return xxx_messageInfo_MsgsAck_Data.Size(m) +} +func (m *MsgsAck_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MsgsAck_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgsAck_Data proto.InternalMessageInfo + +func (m *MsgsAck_Data) GetMsgIds() []int64 { if m != nil { - return m.Data2 + return m.MsgIds } return nil } -// destroy_session_ok#e22045fc session_id:long = DestroySessionRes; -type TLDestroySessionOk struct { - Data2 *DestroySessionRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MsgsAck struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MsgsAck_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDestroySessionOk) Reset() { *m = TLDestroySessionOk{} } -func (m *TLDestroySessionOk) String() string { return proto.CompactTextString(m) } -func (*TLDestroySessionOk) ProtoMessage() {} -func (*TLDestroySessionOk) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{31} +func (m *MsgsAck) Reset() { *m = MsgsAck{} } +func (m *MsgsAck) String() string { return proto.CompactTextString(m) } +func (*MsgsAck) ProtoMessage() {} +func (*MsgsAck) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{32} } -func (m *TLDestroySessionOk) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDestroySessionOk.Unmarshal(m, b) +func (m *MsgsAck) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgsAck.Unmarshal(m, b) } -func (m *TLDestroySessionOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDestroySessionOk.Marshal(b, m, deterministic) +func (m *MsgsAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgsAck.Marshal(b, m, deterministic) } -func (dst *TLDestroySessionOk) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDestroySessionOk.Merge(dst, src) +func (dst *MsgsAck) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgsAck.Merge(dst, src) } -func (m *TLDestroySessionOk) XXX_Size() int { - return xxx_messageInfo_TLDestroySessionOk.Size(m) +func (m *MsgsAck) XXX_Size() int { + return xxx_messageInfo_MsgsAck.Size(m) } -func (m *TLDestroySessionOk) XXX_DiscardUnknown() { - xxx_messageInfo_TLDestroySessionOk.DiscardUnknown(m) +func (m *MsgsAck) XXX_DiscardUnknown() { + xxx_messageInfo_MsgsAck.DiscardUnknown(m) } -var xxx_messageInfo_TLDestroySessionOk proto.InternalMessageInfo +var xxx_messageInfo_MsgsAck proto.InternalMessageInfo -func (m *TLDestroySessionOk) GetData2() *DestroySessionRes_Data { +func (m *MsgsAck) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *MsgsAck) GetData2() *MsgsAck_Data { if m != nil { return m.Data2 } return nil } -// destroy_session_none#62d350c9 session_id:long = DestroySessionRes; -type TLDestroySessionNone struct { - Data2 *DestroySessionRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// msgs_ack#62d6b459 msg_ids:Vector = MsgsAck; +type TLMsgsAck struct { + Data2 *MsgsAck_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLDestroySessionNone) Reset() { *m = TLDestroySessionNone{} } -func (m *TLDestroySessionNone) String() string { return proto.CompactTextString(m) } -func (*TLDestroySessionNone) ProtoMessage() {} -func (*TLDestroySessionNone) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{32} +func (m *TLMsgsAck) Reset() { *m = TLMsgsAck{} } +func (m *TLMsgsAck) String() string { return proto.CompactTextString(m) } +func (*TLMsgsAck) ProtoMessage() {} +func (*TLMsgsAck) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{33} } -func (m *TLDestroySessionNone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLDestroySessionNone.Unmarshal(m, b) +func (m *TLMsgsAck) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMsgsAck.Unmarshal(m, b) } -func (m *TLDestroySessionNone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLDestroySessionNone.Marshal(b, m, deterministic) +func (m *TLMsgsAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMsgsAck.Marshal(b, m, deterministic) } -func (dst *TLDestroySessionNone) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLDestroySessionNone.Merge(dst, src) +func (dst *TLMsgsAck) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMsgsAck.Merge(dst, src) } -func (m *TLDestroySessionNone) XXX_Size() int { - return xxx_messageInfo_TLDestroySessionNone.Size(m) +func (m *TLMsgsAck) XXX_Size() int { + return xxx_messageInfo_TLMsgsAck.Size(m) } -func (m *TLDestroySessionNone) XXX_DiscardUnknown() { - xxx_messageInfo_TLDestroySessionNone.DiscardUnknown(m) +func (m *TLMsgsAck) XXX_DiscardUnknown() { + xxx_messageInfo_TLMsgsAck.DiscardUnknown(m) } -var xxx_messageInfo_TLDestroySessionNone proto.InternalMessageInfo +var xxx_messageInfo_TLMsgsAck proto.InternalMessageInfo -func (m *TLDestroySessionNone) GetData2() *DestroySessionRes_Data { +func (m *TLMsgsAck) GetData2() *MsgsAck_Data { if m != nil { return m.Data2 } @@ -1521,142 +1569,190 @@ func (m *TLDestroySessionNone) GetData2() *DestroySessionRes_Data { } // ///////////////////////////////////////////////////////////////////////////// -// NewSession <-- -// + TL_new_session_created +// BadMsgNotification <-- +// + TL_bad_msg_notification +// + TL_bad_server_salt // -type NewSession_Data struct { - FirstMsgId int64 `protobuf:"varint,1,opt,name=first_msg_id,json=firstMsgId,proto3" json:"first_msg_id,omitempty"` - UniqueId int64 `protobuf:"varint,2,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` - ServerSalt int64 `protobuf:"varint,3,opt,name=server_salt,json=serverSalt,proto3" json:"server_salt,omitempty"` +type BadMsgNotification_Data struct { + BadMsgId int64 `protobuf:"varint,1,opt,name=bad_msg_id,json=badMsgId,proto3" json:"bad_msg_id,omitempty"` + BadMsgSeqno int32 `protobuf:"varint,2,opt,name=bad_msg_seqno,json=badMsgSeqno,proto3" json:"bad_msg_seqno,omitempty"` + ErrorCode int32 `protobuf:"varint,3,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` + NewServerSalt int64 `protobuf:"varint,4,opt,name=new_server_salt,json=newServerSalt,proto3" json:"new_server_salt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *NewSession_Data) Reset() { *m = NewSession_Data{} } -func (m *NewSession_Data) String() string { return proto.CompactTextString(m) } -func (*NewSession_Data) ProtoMessage() {} -func (*NewSession_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{33} +func (m *BadMsgNotification_Data) Reset() { *m = BadMsgNotification_Data{} } +func (m *BadMsgNotification_Data) String() string { return proto.CompactTextString(m) } +func (*BadMsgNotification_Data) ProtoMessage() {} +func (*BadMsgNotification_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{34} } -func (m *NewSession_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NewSession_Data.Unmarshal(m, b) +func (m *BadMsgNotification_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BadMsgNotification_Data.Unmarshal(m, b) } -func (m *NewSession_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NewSession_Data.Marshal(b, m, deterministic) +func (m *BadMsgNotification_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BadMsgNotification_Data.Marshal(b, m, deterministic) } -func (dst *NewSession_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_NewSession_Data.Merge(dst, src) +func (dst *BadMsgNotification_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_BadMsgNotification_Data.Merge(dst, src) } -func (m *NewSession_Data) XXX_Size() int { - return xxx_messageInfo_NewSession_Data.Size(m) +func (m *BadMsgNotification_Data) XXX_Size() int { + return xxx_messageInfo_BadMsgNotification_Data.Size(m) } -func (m *NewSession_Data) XXX_DiscardUnknown() { - xxx_messageInfo_NewSession_Data.DiscardUnknown(m) +func (m *BadMsgNotification_Data) XXX_DiscardUnknown() { + xxx_messageInfo_BadMsgNotification_Data.DiscardUnknown(m) } -var xxx_messageInfo_NewSession_Data proto.InternalMessageInfo +var xxx_messageInfo_BadMsgNotification_Data proto.InternalMessageInfo -func (m *NewSession_Data) GetFirstMsgId() int64 { +func (m *BadMsgNotification_Data) GetBadMsgId() int64 { if m != nil { - return m.FirstMsgId + return m.BadMsgId } return 0 } -func (m *NewSession_Data) GetUniqueId() int64 { +func (m *BadMsgNotification_Data) GetBadMsgSeqno() int32 { if m != nil { - return m.UniqueId + return m.BadMsgSeqno } return 0 } -func (m *NewSession_Data) GetServerSalt() int64 { +func (m *BadMsgNotification_Data) GetErrorCode() int32 { if m != nil { - return m.ServerSalt + return m.ErrorCode } return 0 } -type NewSession struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *NewSession_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *BadMsgNotification_Data) GetNewServerSalt() int64 { + if m != nil { + return m.NewServerSalt + } + return 0 } -func (m *NewSession) Reset() { *m = NewSession{} } -func (m *NewSession) String() string { return proto.CompactTextString(m) } -func (*NewSession) ProtoMessage() {} -func (*NewSession) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{34} +type BadMsgNotification struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *BadMsgNotification_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BadMsgNotification) Reset() { *m = BadMsgNotification{} } +func (m *BadMsgNotification) String() string { return proto.CompactTextString(m) } +func (*BadMsgNotification) ProtoMessage() {} +func (*BadMsgNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{35} +} +func (m *BadMsgNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BadMsgNotification.Unmarshal(m, b) +} +func (m *BadMsgNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BadMsgNotification.Marshal(b, m, deterministic) +} +func (dst *BadMsgNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_BadMsgNotification.Merge(dst, src) +} +func (m *BadMsgNotification) XXX_Size() int { + return xxx_messageInfo_BadMsgNotification.Size(m) +} +func (m *BadMsgNotification) XXX_DiscardUnknown() { + xxx_messageInfo_BadMsgNotification.DiscardUnknown(m) +} + +var xxx_messageInfo_BadMsgNotification proto.InternalMessageInfo + +func (m *BadMsgNotification) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *BadMsgNotification) GetData2() *BadMsgNotification_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification; +type TLBadMsgNotification struct { + Data2 *BadMsgNotification_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLBadMsgNotification) Reset() { *m = TLBadMsgNotification{} } +func (m *TLBadMsgNotification) String() string { return proto.CompactTextString(m) } +func (*TLBadMsgNotification) ProtoMessage() {} +func (*TLBadMsgNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{36} } -func (m *NewSession) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NewSession.Unmarshal(m, b) +func (m *TLBadMsgNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBadMsgNotification.Unmarshal(m, b) } -func (m *NewSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NewSession.Marshal(b, m, deterministic) +func (m *TLBadMsgNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBadMsgNotification.Marshal(b, m, deterministic) } -func (dst *NewSession) XXX_Merge(src proto.Message) { - xxx_messageInfo_NewSession.Merge(dst, src) +func (dst *TLBadMsgNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBadMsgNotification.Merge(dst, src) } -func (m *NewSession) XXX_Size() int { - return xxx_messageInfo_NewSession.Size(m) +func (m *TLBadMsgNotification) XXX_Size() int { + return xxx_messageInfo_TLBadMsgNotification.Size(m) } -func (m *NewSession) XXX_DiscardUnknown() { - xxx_messageInfo_NewSession.DiscardUnknown(m) +func (m *TLBadMsgNotification) XXX_DiscardUnknown() { + xxx_messageInfo_TLBadMsgNotification.DiscardUnknown(m) } -var xxx_messageInfo_NewSession proto.InternalMessageInfo - -func (m *NewSession) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLBadMsgNotification proto.InternalMessageInfo -func (m *NewSession) GetData2() *NewSession_Data { +func (m *TLBadMsgNotification) GetData2() *BadMsgNotification_Data { if m != nil { return m.Data2 } return nil } -// new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession; -type TLNewSessionCreated struct { - Data2 *NewSession_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification; +type TLBadServerSalt struct { + Data2 *BadMsgNotification_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLNewSessionCreated) Reset() { *m = TLNewSessionCreated{} } -func (m *TLNewSessionCreated) String() string { return proto.CompactTextString(m) } -func (*TLNewSessionCreated) ProtoMessage() {} -func (*TLNewSessionCreated) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{35} +func (m *TLBadServerSalt) Reset() { *m = TLBadServerSalt{} } +func (m *TLBadServerSalt) String() string { return proto.CompactTextString(m) } +func (*TLBadServerSalt) ProtoMessage() {} +func (*TLBadServerSalt) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{37} } -func (m *TLNewSessionCreated) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLNewSessionCreated.Unmarshal(m, b) +func (m *TLBadServerSalt) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLBadServerSalt.Unmarshal(m, b) } -func (m *TLNewSessionCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLNewSessionCreated.Marshal(b, m, deterministic) +func (m *TLBadServerSalt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLBadServerSalt.Marshal(b, m, deterministic) } -func (dst *TLNewSessionCreated) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLNewSessionCreated.Merge(dst, src) +func (dst *TLBadServerSalt) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLBadServerSalt.Merge(dst, src) } -func (m *TLNewSessionCreated) XXX_Size() int { - return xxx_messageInfo_TLNewSessionCreated.Size(m) +func (m *TLBadServerSalt) XXX_Size() int { + return xxx_messageInfo_TLBadServerSalt.Size(m) } -func (m *TLNewSessionCreated) XXX_DiscardUnknown() { - xxx_messageInfo_TLNewSessionCreated.DiscardUnknown(m) +func (m *TLBadServerSalt) XXX_DiscardUnknown() { + xxx_messageInfo_TLBadServerSalt.DiscardUnknown(m) } -var xxx_messageInfo_TLNewSessionCreated proto.InternalMessageInfo +var xxx_messageInfo_TLBadServerSalt proto.InternalMessageInfo -func (m *TLNewSessionCreated) GetData2() *NewSession_Data { +func (m *TLBadServerSalt) GetData2() *BadMsgNotification_Data { if m != nil { return m.Data2 } @@ -1680,7 +1776,7 @@ func (m *HttpWait_Data) Reset() { *m = HttpWait_Data{} } func (m *HttpWait_Data) String() string { return proto.CompactTextString(m) } func (*HttpWait_Data) ProtoMessage() {} func (*HttpWait_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{36} + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{38} } func (m *HttpWait_Data) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_HttpWait_Data.Unmarshal(m, b) @@ -1733,7 +1829,7 @@ func (m *HttpWait) Reset() { *m = HttpWait{} } func (m *HttpWait) String() string { return proto.CompactTextString(m) } func (*HttpWait) ProtoMessage() {} func (*HttpWait) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{37} + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{39} } func (m *HttpWait) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_HttpWait.Unmarshal(m, b) @@ -1772,217 +1868,34 @@ type TLHttpWait struct { Data2 *HttpWait_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLHttpWait) Reset() { *m = TLHttpWait{} } -func (m *TLHttpWait) String() string { return proto.CompactTextString(m) } -func (*TLHttpWait) ProtoMessage() {} -func (*TLHttpWait) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{38} -} -func (m *TLHttpWait) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHttpWait.Unmarshal(m, b) -} -func (m *TLHttpWait) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHttpWait.Marshal(b, m, deterministic) -} -func (dst *TLHttpWait) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHttpWait.Merge(dst, src) -} -func (m *TLHttpWait) XXX_Size() int { - return xxx_messageInfo_TLHttpWait.Size(m) -} -func (m *TLHttpWait) XXX_DiscardUnknown() { - xxx_messageInfo_TLHttpWait.DiscardUnknown(m) -} - -var xxx_messageInfo_TLHttpWait proto.InternalMessageInfo - -func (m *TLHttpWait) GetData2() *HttpWait_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// ///////////////////////////////////////////////////////////////////////////// -// IpPort <-- -// + TL_ipPort -// + TL_ipPortSecret -// -type IpPort_Data struct { - Ipv4 int32 `protobuf:"varint,1,opt,name=ipv4,proto3" json:"ipv4,omitempty"` - Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` - Secret []byte `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IpPort_Data) Reset() { *m = IpPort_Data{} } -func (m *IpPort_Data) String() string { return proto.CompactTextString(m) } -func (*IpPort_Data) ProtoMessage() {} -func (*IpPort_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{39} -} -func (m *IpPort_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IpPort_Data.Unmarshal(m, b) -} -func (m *IpPort_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IpPort_Data.Marshal(b, m, deterministic) -} -func (dst *IpPort_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_IpPort_Data.Merge(dst, src) -} -func (m *IpPort_Data) XXX_Size() int { - return xxx_messageInfo_IpPort_Data.Size(m) -} -func (m *IpPort_Data) XXX_DiscardUnknown() { - xxx_messageInfo_IpPort_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_IpPort_Data proto.InternalMessageInfo - -func (m *IpPort_Data) GetIpv4() int32 { - if m != nil { - return m.Ipv4 - } - return 0 -} - -func (m *IpPort_Data) GetPort() int32 { - if m != nil { - return m.Port - } - return 0 -} - -func (m *IpPort_Data) GetSecret() []byte { - if m != nil { - return m.Secret - } - return nil -} - -type IpPort struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *IpPort_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IpPort) Reset() { *m = IpPort{} } -func (m *IpPort) String() string { return proto.CompactTextString(m) } -func (*IpPort) ProtoMessage() {} -func (*IpPort) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{40} -} -func (m *IpPort) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IpPort.Unmarshal(m, b) -} -func (m *IpPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IpPort.Marshal(b, m, deterministic) -} -func (dst *IpPort) XXX_Merge(src proto.Message) { - xxx_messageInfo_IpPort.Merge(dst, src) -} -func (m *IpPort) XXX_Size() int { - return xxx_messageInfo_IpPort.Size(m) -} -func (m *IpPort) XXX_DiscardUnknown() { - xxx_messageInfo_IpPort.DiscardUnknown(m) -} - -var xxx_messageInfo_IpPort proto.InternalMessageInfo - -func (m *IpPort) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} - -func (m *IpPort) GetData2() *IpPort_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// ipPort#d433ad73 ipv4:int port:int = IpPort; -type TLIpPort struct { - Data2 *IpPort_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLIpPort) Reset() { *m = TLIpPort{} } -func (m *TLIpPort) String() string { return proto.CompactTextString(m) } -func (*TLIpPort) ProtoMessage() {} -func (*TLIpPort) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{41} -} -func (m *TLIpPort) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLIpPort.Unmarshal(m, b) -} -func (m *TLIpPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLIpPort.Marshal(b, m, deterministic) -} -func (dst *TLIpPort) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLIpPort.Merge(dst, src) -} -func (m *TLIpPort) XXX_Size() int { - return xxx_messageInfo_TLIpPort.Size(m) -} -func (m *TLIpPort) XXX_DiscardUnknown() { - xxx_messageInfo_TLIpPort.DiscardUnknown(m) -} - -var xxx_messageInfo_TLIpPort proto.InternalMessageInfo - -func (m *TLIpPort) GetData2() *IpPort_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort; -type TLIpPortSecret struct { - Data2 *IpPort_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLIpPortSecret) Reset() { *m = TLIpPortSecret{} } -func (m *TLIpPortSecret) String() string { return proto.CompactTextString(m) } -func (*TLIpPortSecret) ProtoMessage() {} -func (*TLIpPortSecret) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{42} +func (m *TLHttpWait) Reset() { *m = TLHttpWait{} } +func (m *TLHttpWait) String() string { return proto.CompactTextString(m) } +func (*TLHttpWait) ProtoMessage() {} +func (*TLHttpWait) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{40} } -func (m *TLIpPortSecret) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLIpPortSecret.Unmarshal(m, b) +func (m *TLHttpWait) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHttpWait.Unmarshal(m, b) } -func (m *TLIpPortSecret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLIpPortSecret.Marshal(b, m, deterministic) +func (m *TLHttpWait) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHttpWait.Marshal(b, m, deterministic) } -func (dst *TLIpPortSecret) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLIpPortSecret.Merge(dst, src) +func (dst *TLHttpWait) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHttpWait.Merge(dst, src) } -func (m *TLIpPortSecret) XXX_Size() int { - return xxx_messageInfo_TLIpPortSecret.Size(m) +func (m *TLHttpWait) XXX_Size() int { + return xxx_messageInfo_TLHttpWait.Size(m) } -func (m *TLIpPortSecret) XXX_DiscardUnknown() { - xxx_messageInfo_TLIpPortSecret.DiscardUnknown(m) +func (m *TLHttpWait) XXX_DiscardUnknown() { + xxx_messageInfo_TLHttpWait.DiscardUnknown(m) } -var xxx_messageInfo_TLIpPortSecret proto.InternalMessageInfo +var xxx_messageInfo_TLHttpWait proto.InternalMessageInfo -func (m *TLIpPortSecret) GetData2() *IpPort_Data { +func (m *TLHttpWait) GetData2() *HttpWait_Data { if m != nil { return m.Data2 } @@ -1990,134 +1903,142 @@ func (m *TLIpPortSecret) GetData2() *IpPort_Data { } // ///////////////////////////////////////////////////////////////////////////// -// MsgsAllInfo <-- -// + TL_msgs_all_info +// help_ConfigSimple <-- +// + TL_help_configSimple // -type MsgsAllInfo_Data struct { - MsgIds []int64 `protobuf:"varint,1,rep,packed,name=msg_ids,json=msgIds,proto3" json:"msg_ids,omitempty"` - Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Help_ConfigSimple_Data struct { + Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` + Expires int32 `protobuf:"varint,2,opt,name=expires,proto3" json:"expires,omitempty"` + Rules []*AccessPointRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MsgsAllInfo_Data) Reset() { *m = MsgsAllInfo_Data{} } -func (m *MsgsAllInfo_Data) String() string { return proto.CompactTextString(m) } -func (*MsgsAllInfo_Data) ProtoMessage() {} -func (*MsgsAllInfo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{43} +func (m *Help_ConfigSimple_Data) Reset() { *m = Help_ConfigSimple_Data{} } +func (m *Help_ConfigSimple_Data) String() string { return proto.CompactTextString(m) } +func (*Help_ConfigSimple_Data) ProtoMessage() {} +func (*Help_ConfigSimple_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{41} } -func (m *MsgsAllInfo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgsAllInfo_Data.Unmarshal(m, b) +func (m *Help_ConfigSimple_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_ConfigSimple_Data.Unmarshal(m, b) } -func (m *MsgsAllInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgsAllInfo_Data.Marshal(b, m, deterministic) +func (m *Help_ConfigSimple_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_ConfigSimple_Data.Marshal(b, m, deterministic) } -func (dst *MsgsAllInfo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgsAllInfo_Data.Merge(dst, src) +func (dst *Help_ConfigSimple_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_ConfigSimple_Data.Merge(dst, src) } -func (m *MsgsAllInfo_Data) XXX_Size() int { - return xxx_messageInfo_MsgsAllInfo_Data.Size(m) +func (m *Help_ConfigSimple_Data) XXX_Size() int { + return xxx_messageInfo_Help_ConfigSimple_Data.Size(m) } -func (m *MsgsAllInfo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MsgsAllInfo_Data.DiscardUnknown(m) +func (m *Help_ConfigSimple_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Help_ConfigSimple_Data.DiscardUnknown(m) } -var xxx_messageInfo_MsgsAllInfo_Data proto.InternalMessageInfo +var xxx_messageInfo_Help_ConfigSimple_Data proto.InternalMessageInfo -func (m *MsgsAllInfo_Data) GetMsgIds() []int64 { +func (m *Help_ConfigSimple_Data) GetDate() int32 { if m != nil { - return m.MsgIds + return m.Date } - return nil + return 0 } -func (m *MsgsAllInfo_Data) GetInfo() string { +func (m *Help_ConfigSimple_Data) GetExpires() int32 { if m != nil { - return m.Info + return m.Expires } - return "" + return 0 } -type MsgsAllInfo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MsgsAllInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *Help_ConfigSimple_Data) GetRules() []*AccessPointRule { + if m != nil { + return m.Rules + } + return nil } -func (m *MsgsAllInfo) Reset() { *m = MsgsAllInfo{} } -func (m *MsgsAllInfo) String() string { return proto.CompactTextString(m) } -func (*MsgsAllInfo) ProtoMessage() {} -func (*MsgsAllInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{44} +type Help_ConfigSimple struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Help_ConfigSimple_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MsgsAllInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgsAllInfo.Unmarshal(m, b) + +func (m *Help_ConfigSimple) Reset() { *m = Help_ConfigSimple{} } +func (m *Help_ConfigSimple) String() string { return proto.CompactTextString(m) } +func (*Help_ConfigSimple) ProtoMessage() {} +func (*Help_ConfigSimple) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{42} } -func (m *MsgsAllInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgsAllInfo.Marshal(b, m, deterministic) +func (m *Help_ConfigSimple) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Help_ConfigSimple.Unmarshal(m, b) } -func (dst *MsgsAllInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgsAllInfo.Merge(dst, src) +func (m *Help_ConfigSimple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Help_ConfigSimple.Marshal(b, m, deterministic) } -func (m *MsgsAllInfo) XXX_Size() int { - return xxx_messageInfo_MsgsAllInfo.Size(m) +func (dst *Help_ConfigSimple) XXX_Merge(src proto.Message) { + xxx_messageInfo_Help_ConfigSimple.Merge(dst, src) } -func (m *MsgsAllInfo) XXX_DiscardUnknown() { - xxx_messageInfo_MsgsAllInfo.DiscardUnknown(m) +func (m *Help_ConfigSimple) XXX_Size() int { + return xxx_messageInfo_Help_ConfigSimple.Size(m) +} +func (m *Help_ConfigSimple) XXX_DiscardUnknown() { + xxx_messageInfo_Help_ConfigSimple.DiscardUnknown(m) } -var xxx_messageInfo_MsgsAllInfo proto.InternalMessageInfo +var xxx_messageInfo_Help_ConfigSimple proto.InternalMessageInfo -func (m *MsgsAllInfo) GetConstructor() TLConstructor { +func (m *Help_ConfigSimple) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MsgsAllInfo) GetData2() *MsgsAllInfo_Data { +func (m *Help_ConfigSimple) GetData2() *Help_ConfigSimple_Data { if m != nil { return m.Data2 } return nil } -// msgs_all_info#8cc0d131 msg_ids:Vector info:string = MsgsAllInfo; -type TLMsgsAllInfo struct { - Data2 *MsgsAllInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; +type TLHelpConfigSimple struct { + Data2 *Help_ConfigSimple_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMsgsAllInfo) Reset() { *m = TLMsgsAllInfo{} } -func (m *TLMsgsAllInfo) String() string { return proto.CompactTextString(m) } -func (*TLMsgsAllInfo) ProtoMessage() {} -func (*TLMsgsAllInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{45} +func (m *TLHelpConfigSimple) Reset() { *m = TLHelpConfigSimple{} } +func (m *TLHelpConfigSimple) String() string { return proto.CompactTextString(m) } +func (*TLHelpConfigSimple) ProtoMessage() {} +func (*TLHelpConfigSimple) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{43} } -func (m *TLMsgsAllInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMsgsAllInfo.Unmarshal(m, b) +func (m *TLHelpConfigSimple) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHelpConfigSimple.Unmarshal(m, b) } -func (m *TLMsgsAllInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMsgsAllInfo.Marshal(b, m, deterministic) +func (m *TLHelpConfigSimple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHelpConfigSimple.Marshal(b, m, deterministic) } -func (dst *TLMsgsAllInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMsgsAllInfo.Merge(dst, src) +func (dst *TLHelpConfigSimple) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHelpConfigSimple.Merge(dst, src) } -func (m *TLMsgsAllInfo) XXX_Size() int { - return xxx_messageInfo_TLMsgsAllInfo.Size(m) +func (m *TLHelpConfigSimple) XXX_Size() int { + return xxx_messageInfo_TLHelpConfigSimple.Size(m) } -func (m *TLMsgsAllInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLMsgsAllInfo.DiscardUnknown(m) +func (m *TLHelpConfigSimple) XXX_DiscardUnknown() { + xxx_messageInfo_TLHelpConfigSimple.DiscardUnknown(m) } -var xxx_messageInfo_TLMsgsAllInfo proto.InternalMessageInfo +var xxx_messageInfo_TLHelpConfigSimple proto.InternalMessageInfo -func (m *TLMsgsAllInfo) GetData2() *MsgsAllInfo_Data { +func (m *TLHelpConfigSimple) GetData2() *Help_ConfigSimple_Data { if m != nil { return m.Data2 } @@ -2125,126 +2046,134 @@ func (m *TLMsgsAllInfo) GetData2() *MsgsAllInfo_Data { } // ///////////////////////////////////////////////////////////////////////////// -// MsgResendReq <-- -// + TL_msg_resend_req +// MsgsStateInfo <-- +// + TL_msgs_state_info // -type MsgResendReq_Data struct { - MsgIds []int64 `protobuf:"varint,1,rep,packed,name=msg_ids,json=msgIds,proto3" json:"msg_ids,omitempty"` +type MsgsStateInfo_Data struct { + ReqMsgId int64 `protobuf:"varint,1,opt,name=req_msg_id,json=reqMsgId,proto3" json:"req_msg_id,omitempty"` + Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *MsgResendReq_Data) Reset() { *m = MsgResendReq_Data{} } -func (m *MsgResendReq_Data) String() string { return proto.CompactTextString(m) } -func (*MsgResendReq_Data) ProtoMessage() {} -func (*MsgResendReq_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{46} +func (m *MsgsStateInfo_Data) Reset() { *m = MsgsStateInfo_Data{} } +func (m *MsgsStateInfo_Data) String() string { return proto.CompactTextString(m) } +func (*MsgsStateInfo_Data) ProtoMessage() {} +func (*MsgsStateInfo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{44} } -func (m *MsgResendReq_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgResendReq_Data.Unmarshal(m, b) +func (m *MsgsStateInfo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgsStateInfo_Data.Unmarshal(m, b) } -func (m *MsgResendReq_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgResendReq_Data.Marshal(b, m, deterministic) +func (m *MsgsStateInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgsStateInfo_Data.Marshal(b, m, deterministic) } -func (dst *MsgResendReq_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgResendReq_Data.Merge(dst, src) +func (dst *MsgsStateInfo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgsStateInfo_Data.Merge(dst, src) } -func (m *MsgResendReq_Data) XXX_Size() int { - return xxx_messageInfo_MsgResendReq_Data.Size(m) +func (m *MsgsStateInfo_Data) XXX_Size() int { + return xxx_messageInfo_MsgsStateInfo_Data.Size(m) } -func (m *MsgResendReq_Data) XXX_DiscardUnknown() { - xxx_messageInfo_MsgResendReq_Data.DiscardUnknown(m) +func (m *MsgsStateInfo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MsgsStateInfo_Data.DiscardUnknown(m) } -var xxx_messageInfo_MsgResendReq_Data proto.InternalMessageInfo +var xxx_messageInfo_MsgsStateInfo_Data proto.InternalMessageInfo -func (m *MsgResendReq_Data) GetMsgIds() []int64 { +func (m *MsgsStateInfo_Data) GetReqMsgId() int64 { if m != nil { - return m.MsgIds + return m.ReqMsgId } - return nil + return 0 } -type MsgResendReq struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *MsgResendReq_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *MsgsStateInfo_Data) GetInfo() string { + if m != nil { + return m.Info + } + return "" } -func (m *MsgResendReq) Reset() { *m = MsgResendReq{} } -func (m *MsgResendReq) String() string { return proto.CompactTextString(m) } -func (*MsgResendReq) ProtoMessage() {} -func (*MsgResendReq) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{47} +type MsgsStateInfo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MsgsStateInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MsgsStateInfo) Reset() { *m = MsgsStateInfo{} } +func (m *MsgsStateInfo) String() string { return proto.CompactTextString(m) } +func (*MsgsStateInfo) ProtoMessage() {} +func (*MsgsStateInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{45} } -func (m *MsgResendReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgResendReq.Unmarshal(m, b) +func (m *MsgsStateInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgsStateInfo.Unmarshal(m, b) } -func (m *MsgResendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgResendReq.Marshal(b, m, deterministic) +func (m *MsgsStateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgsStateInfo.Marshal(b, m, deterministic) } -func (dst *MsgResendReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgResendReq.Merge(dst, src) +func (dst *MsgsStateInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgsStateInfo.Merge(dst, src) } -func (m *MsgResendReq) XXX_Size() int { - return xxx_messageInfo_MsgResendReq.Size(m) +func (m *MsgsStateInfo) XXX_Size() int { + return xxx_messageInfo_MsgsStateInfo.Size(m) } -func (m *MsgResendReq) XXX_DiscardUnknown() { - xxx_messageInfo_MsgResendReq.DiscardUnknown(m) +func (m *MsgsStateInfo) XXX_DiscardUnknown() { + xxx_messageInfo_MsgsStateInfo.DiscardUnknown(m) } -var xxx_messageInfo_MsgResendReq proto.InternalMessageInfo +var xxx_messageInfo_MsgsStateInfo proto.InternalMessageInfo -func (m *MsgResendReq) GetConstructor() TLConstructor { +func (m *MsgsStateInfo) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *MsgResendReq) GetData2() *MsgResendReq_Data { +func (m *MsgsStateInfo) GetData2() *MsgsStateInfo_Data { if m != nil { return m.Data2 } return nil } -// msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq; -type TLMsgResendReq struct { - Data2 *MsgResendReq_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// msgs_state_info#04deb57d req_msg_id:long info:string = MsgsStateInfo; +type TLMsgsStateInfo struct { + Data2 *MsgsStateInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLMsgResendReq) Reset() { *m = TLMsgResendReq{} } -func (m *TLMsgResendReq) String() string { return proto.CompactTextString(m) } -func (*TLMsgResendReq) ProtoMessage() {} -func (*TLMsgResendReq) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{48} +func (m *TLMsgsStateInfo) Reset() { *m = TLMsgsStateInfo{} } +func (m *TLMsgsStateInfo) String() string { return proto.CompactTextString(m) } +func (*TLMsgsStateInfo) ProtoMessage() {} +func (*TLMsgsStateInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{46} } -func (m *TLMsgResendReq) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLMsgResendReq.Unmarshal(m, b) +func (m *TLMsgsStateInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMsgsStateInfo.Unmarshal(m, b) } -func (m *TLMsgResendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLMsgResendReq.Marshal(b, m, deterministic) +func (m *TLMsgsStateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMsgsStateInfo.Marshal(b, m, deterministic) } -func (dst *TLMsgResendReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLMsgResendReq.Merge(dst, src) +func (dst *TLMsgsStateInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMsgsStateInfo.Merge(dst, src) } -func (m *TLMsgResendReq) XXX_Size() int { - return xxx_messageInfo_TLMsgResendReq.Size(m) +func (m *TLMsgsStateInfo) XXX_Size() int { + return xxx_messageInfo_TLMsgsStateInfo.Size(m) } -func (m *TLMsgResendReq) XXX_DiscardUnknown() { - xxx_messageInfo_TLMsgResendReq.DiscardUnknown(m) +func (m *TLMsgsStateInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLMsgsStateInfo.DiscardUnknown(m) } -var xxx_messageInfo_TLMsgResendReq proto.InternalMessageInfo +var xxx_messageInfo_TLMsgsStateInfo proto.InternalMessageInfo -func (m *TLMsgResendReq) GetData2() *MsgResendReq_Data { +func (m *TLMsgsStateInfo) GetData2() *MsgsStateInfo_Data { if m != nil { return m.Data2 } @@ -2252,222 +2181,301 @@ func (m *TLMsgResendReq) GetData2() *MsgResendReq_Data { } // ///////////////////////////////////////////////////////////////////////////// -// RpcDropAnswer <-- -// + TL_rpc_answer_unknown -// + TL_rpc_answer_dropped_running -// + TL_rpc_answer_dropped +// Pong <-- +// + TL_pong // -type RpcDropAnswer_Data struct { +type Pong_Data struct { MsgId int64 `protobuf:"varint,1,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` - SeqNo int32 `protobuf:"varint,2,opt,name=seq_no,json=seqNo,proto3" json:"seq_no,omitempty"` - Bytes int32 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"` + PingId int64 `protobuf:"varint,2,opt,name=ping_id,json=pingId,proto3" json:"ping_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *RpcDropAnswer_Data) Reset() { *m = RpcDropAnswer_Data{} } -func (m *RpcDropAnswer_Data) String() string { return proto.CompactTextString(m) } -func (*RpcDropAnswer_Data) ProtoMessage() {} -func (*RpcDropAnswer_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{49} +func (m *Pong_Data) Reset() { *m = Pong_Data{} } +func (m *Pong_Data) String() string { return proto.CompactTextString(m) } +func (*Pong_Data) ProtoMessage() {} +func (*Pong_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{47} } -func (m *RpcDropAnswer_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RpcDropAnswer_Data.Unmarshal(m, b) +func (m *Pong_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Pong_Data.Unmarshal(m, b) } -func (m *RpcDropAnswer_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RpcDropAnswer_Data.Marshal(b, m, deterministic) +func (m *Pong_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Pong_Data.Marshal(b, m, deterministic) } -func (dst *RpcDropAnswer_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDropAnswer_Data.Merge(dst, src) +func (dst *Pong_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Pong_Data.Merge(dst, src) } -func (m *RpcDropAnswer_Data) XXX_Size() int { - return xxx_messageInfo_RpcDropAnswer_Data.Size(m) +func (m *Pong_Data) XXX_Size() int { + return xxx_messageInfo_Pong_Data.Size(m) } -func (m *RpcDropAnswer_Data) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDropAnswer_Data.DiscardUnknown(m) +func (m *Pong_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Pong_Data.DiscardUnknown(m) } -var xxx_messageInfo_RpcDropAnswer_Data proto.InternalMessageInfo +var xxx_messageInfo_Pong_Data proto.InternalMessageInfo -func (m *RpcDropAnswer_Data) GetMsgId() int64 { +func (m *Pong_Data) GetMsgId() int64 { if m != nil { return m.MsgId } return 0 } -func (m *RpcDropAnswer_Data) GetSeqNo() int32 { - if m != nil { - return m.SeqNo - } - return 0 -} - -func (m *RpcDropAnswer_Data) GetBytes() int32 { +func (m *Pong_Data) GetPingId() int64 { if m != nil { - return m.Bytes + return m.PingId } return 0 } -type RpcDropAnswer struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *RpcDropAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type Pong struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Pong_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RpcDropAnswer) Reset() { *m = RpcDropAnswer{} } -func (m *RpcDropAnswer) String() string { return proto.CompactTextString(m) } -func (*RpcDropAnswer) ProtoMessage() {} -func (*RpcDropAnswer) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{50} +func (m *Pong) Reset() { *m = Pong{} } +func (m *Pong) String() string { return proto.CompactTextString(m) } +func (*Pong) ProtoMessage() {} +func (*Pong) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{48} } -func (m *RpcDropAnswer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RpcDropAnswer.Unmarshal(m, b) +func (m *Pong) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Pong.Unmarshal(m, b) } -func (m *RpcDropAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RpcDropAnswer.Marshal(b, m, deterministic) +func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Pong.Marshal(b, m, deterministic) } -func (dst *RpcDropAnswer) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDropAnswer.Merge(dst, src) +func (dst *Pong) XXX_Merge(src proto.Message) { + xxx_messageInfo_Pong.Merge(dst, src) } -func (m *RpcDropAnswer) XXX_Size() int { - return xxx_messageInfo_RpcDropAnswer.Size(m) +func (m *Pong) XXX_Size() int { + return xxx_messageInfo_Pong.Size(m) } -func (m *RpcDropAnswer) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDropAnswer.DiscardUnknown(m) +func (m *Pong) XXX_DiscardUnknown() { + xxx_messageInfo_Pong.DiscardUnknown(m) } -var xxx_messageInfo_RpcDropAnswer proto.InternalMessageInfo +var xxx_messageInfo_Pong proto.InternalMessageInfo -func (m *RpcDropAnswer) GetConstructor() TLConstructor { +func (m *Pong) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *RpcDropAnswer) GetData2() *RpcDropAnswer_Data { +func (m *Pong) GetData2() *Pong_Data { if m != nil { return m.Data2 } return nil } -// rpc_answer_unknown#5e2ad36e = RpcDropAnswer; -type TLRpcAnswerUnknown struct { - Data2 *RpcDropAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// pong#347773c5 msg_id:long ping_id:long = Pong; +type TLPong struct { + Data2 *Pong_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLPong) Reset() { *m = TLPong{} } +func (m *TLPong) String() string { return proto.CompactTextString(m) } +func (*TLPong) ProtoMessage() {} +func (*TLPong) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{49} +} +func (m *TLPong) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPong.Unmarshal(m, b) +} +func (m *TLPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPong.Marshal(b, m, deterministic) +} +func (dst *TLPong) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPong.Merge(dst, src) +} +func (m *TLPong) XXX_Size() int { + return xxx_messageInfo_TLPong.Size(m) +} +func (m *TLPong) XXX_DiscardUnknown() { + xxx_messageInfo_TLPong.DiscardUnknown(m) +} + +var xxx_messageInfo_TLPong proto.InternalMessageInfo + +func (m *TLPong) GetData2() *Pong_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// ///////////////////////////////////////////////////////////////////////////// +// DestroySessionRes <-- +// + TL_destroy_session_ok +// + TL_destroy_session_none +// +type DestroySessionRes_Data struct { + SessionId int64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DestroySessionRes_Data) Reset() { *m = DestroySessionRes_Data{} } +func (m *DestroySessionRes_Data) String() string { return proto.CompactTextString(m) } +func (*DestroySessionRes_Data) ProtoMessage() {} +func (*DestroySessionRes_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{50} +} +func (m *DestroySessionRes_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DestroySessionRes_Data.Unmarshal(m, b) +} +func (m *DestroySessionRes_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DestroySessionRes_Data.Marshal(b, m, deterministic) +} +func (dst *DestroySessionRes_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_DestroySessionRes_Data.Merge(dst, src) +} +func (m *DestroySessionRes_Data) XXX_Size() int { + return xxx_messageInfo_DestroySessionRes_Data.Size(m) +} +func (m *DestroySessionRes_Data) XXX_DiscardUnknown() { + xxx_messageInfo_DestroySessionRes_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_DestroySessionRes_Data proto.InternalMessageInfo + +func (m *DestroySessionRes_Data) GetSessionId() int64 { + if m != nil { + return m.SessionId + } + return 0 } -func (m *TLRpcAnswerUnknown) Reset() { *m = TLRpcAnswerUnknown{} } -func (m *TLRpcAnswerUnknown) String() string { return proto.CompactTextString(m) } -func (*TLRpcAnswerUnknown) ProtoMessage() {} -func (*TLRpcAnswerUnknown) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{51} +type DestroySessionRes struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *DestroySessionRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLRpcAnswerUnknown) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLRpcAnswerUnknown.Unmarshal(m, b) + +func (m *DestroySessionRes) Reset() { *m = DestroySessionRes{} } +func (m *DestroySessionRes) String() string { return proto.CompactTextString(m) } +func (*DestroySessionRes) ProtoMessage() {} +func (*DestroySessionRes) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{51} } -func (m *TLRpcAnswerUnknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLRpcAnswerUnknown.Marshal(b, m, deterministic) +func (m *DestroySessionRes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DestroySessionRes.Unmarshal(m, b) } -func (dst *TLRpcAnswerUnknown) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLRpcAnswerUnknown.Merge(dst, src) +func (m *DestroySessionRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DestroySessionRes.Marshal(b, m, deterministic) } -func (m *TLRpcAnswerUnknown) XXX_Size() int { - return xxx_messageInfo_TLRpcAnswerUnknown.Size(m) +func (dst *DestroySessionRes) XXX_Merge(src proto.Message) { + xxx_messageInfo_DestroySessionRes.Merge(dst, src) } -func (m *TLRpcAnswerUnknown) XXX_DiscardUnknown() { - xxx_messageInfo_TLRpcAnswerUnknown.DiscardUnknown(m) +func (m *DestroySessionRes) XXX_Size() int { + return xxx_messageInfo_DestroySessionRes.Size(m) +} +func (m *DestroySessionRes) XXX_DiscardUnknown() { + xxx_messageInfo_DestroySessionRes.DiscardUnknown(m) } -var xxx_messageInfo_TLRpcAnswerUnknown proto.InternalMessageInfo +var xxx_messageInfo_DestroySessionRes proto.InternalMessageInfo -func (m *TLRpcAnswerUnknown) GetData2() *RpcDropAnswer_Data { +func (m *DestroySessionRes) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *DestroySessionRes) GetData2() *DestroySessionRes_Data { if m != nil { return m.Data2 } return nil } -// rpc_answer_dropped_running#cd78e586 = RpcDropAnswer; -type TLRpcAnswerDroppedRunning struct { - Data2 *RpcDropAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// destroy_session_ok#e22045fc session_id:long = DestroySessionRes; +type TLDestroySessionOk struct { + Data2 *DestroySessionRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLRpcAnswerDroppedRunning) Reset() { *m = TLRpcAnswerDroppedRunning{} } -func (m *TLRpcAnswerDroppedRunning) String() string { return proto.CompactTextString(m) } -func (*TLRpcAnswerDroppedRunning) ProtoMessage() {} -func (*TLRpcAnswerDroppedRunning) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{52} +func (m *TLDestroySessionOk) Reset() { *m = TLDestroySessionOk{} } +func (m *TLDestroySessionOk) String() string { return proto.CompactTextString(m) } +func (*TLDestroySessionOk) ProtoMessage() {} +func (*TLDestroySessionOk) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{52} } -func (m *TLRpcAnswerDroppedRunning) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLRpcAnswerDroppedRunning.Unmarshal(m, b) +func (m *TLDestroySessionOk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDestroySessionOk.Unmarshal(m, b) } -func (m *TLRpcAnswerDroppedRunning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLRpcAnswerDroppedRunning.Marshal(b, m, deterministic) +func (m *TLDestroySessionOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDestroySessionOk.Marshal(b, m, deterministic) } -func (dst *TLRpcAnswerDroppedRunning) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLRpcAnswerDroppedRunning.Merge(dst, src) +func (dst *TLDestroySessionOk) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDestroySessionOk.Merge(dst, src) } -func (m *TLRpcAnswerDroppedRunning) XXX_Size() int { - return xxx_messageInfo_TLRpcAnswerDroppedRunning.Size(m) +func (m *TLDestroySessionOk) XXX_Size() int { + return xxx_messageInfo_TLDestroySessionOk.Size(m) } -func (m *TLRpcAnswerDroppedRunning) XXX_DiscardUnknown() { - xxx_messageInfo_TLRpcAnswerDroppedRunning.DiscardUnknown(m) +func (m *TLDestroySessionOk) XXX_DiscardUnknown() { + xxx_messageInfo_TLDestroySessionOk.DiscardUnknown(m) } -var xxx_messageInfo_TLRpcAnswerDroppedRunning proto.InternalMessageInfo +var xxx_messageInfo_TLDestroySessionOk proto.InternalMessageInfo -func (m *TLRpcAnswerDroppedRunning) GetData2() *RpcDropAnswer_Data { +func (m *TLDestroySessionOk) GetData2() *DestroySessionRes_Data { if m != nil { return m.Data2 } return nil } -// rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer; -type TLRpcAnswerDropped struct { - Data2 *RpcDropAnswer_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// destroy_session_none#62d350c9 session_id:long = DestroySessionRes; +type TLDestroySessionNone struct { + Data2 *DestroySessionRes_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLRpcAnswerDropped) Reset() { *m = TLRpcAnswerDropped{} } -func (m *TLRpcAnswerDropped) String() string { return proto.CompactTextString(m) } -func (*TLRpcAnswerDropped) ProtoMessage() {} -func (*TLRpcAnswerDropped) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{53} +func (m *TLDestroySessionNone) Reset() { *m = TLDestroySessionNone{} } +func (m *TLDestroySessionNone) String() string { return proto.CompactTextString(m) } +func (*TLDestroySessionNone) ProtoMessage() {} +func (*TLDestroySessionNone) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{53} } -func (m *TLRpcAnswerDropped) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLRpcAnswerDropped.Unmarshal(m, b) +func (m *TLDestroySessionNone) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLDestroySessionNone.Unmarshal(m, b) } -func (m *TLRpcAnswerDropped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLRpcAnswerDropped.Marshal(b, m, deterministic) +func (m *TLDestroySessionNone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLDestroySessionNone.Marshal(b, m, deterministic) } -func (dst *TLRpcAnswerDropped) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLRpcAnswerDropped.Merge(dst, src) +func (dst *TLDestroySessionNone) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLDestroySessionNone.Merge(dst, src) } -func (m *TLRpcAnswerDropped) XXX_Size() int { - return xxx_messageInfo_TLRpcAnswerDropped.Size(m) +func (m *TLDestroySessionNone) XXX_Size() int { + return xxx_messageInfo_TLDestroySessionNone.Size(m) } -func (m *TLRpcAnswerDropped) XXX_DiscardUnknown() { - xxx_messageInfo_TLRpcAnswerDropped.DiscardUnknown(m) +func (m *TLDestroySessionNone) XXX_DiscardUnknown() { + xxx_messageInfo_TLDestroySessionNone.DiscardUnknown(m) } -var xxx_messageInfo_TLRpcAnswerDropped proto.InternalMessageInfo +var xxx_messageInfo_TLDestroySessionNone proto.InternalMessageInfo -func (m *TLRpcAnswerDropped) GetData2() *RpcDropAnswer_Data { +func (m *TLDestroySessionNone) GetData2() *DestroySessionRes_Data { if m != nil { return m.Data2 } @@ -2475,134 +2483,126 @@ func (m *TLRpcAnswerDropped) GetData2() *RpcDropAnswer_Data { } // ///////////////////////////////////////////////////////////////////////////// -// Pong <-- -// + TL_pong +// MsgResendReq <-- +// + TL_msg_resend_req // -type Pong_Data struct { - MsgId int64 `protobuf:"varint,1,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` - PingId int64 `protobuf:"varint,2,opt,name=ping_id,json=pingId,proto3" json:"ping_id,omitempty"` +type MsgResendReq_Data struct { + MsgIds []int64 `protobuf:"varint,1,rep,packed,name=msg_ids,json=msgIds,proto3" json:"msg_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Pong_Data) Reset() { *m = Pong_Data{} } -func (m *Pong_Data) String() string { return proto.CompactTextString(m) } -func (*Pong_Data) ProtoMessage() {} -func (*Pong_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{54} +func (m *MsgResendReq_Data) Reset() { *m = MsgResendReq_Data{} } +func (m *MsgResendReq_Data) String() string { return proto.CompactTextString(m) } +func (*MsgResendReq_Data) ProtoMessage() {} +func (*MsgResendReq_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{54} } -func (m *Pong_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Pong_Data.Unmarshal(m, b) +func (m *MsgResendReq_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgResendReq_Data.Unmarshal(m, b) } -func (m *Pong_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Pong_Data.Marshal(b, m, deterministic) +func (m *MsgResendReq_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgResendReq_Data.Marshal(b, m, deterministic) } -func (dst *Pong_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Pong_Data.Merge(dst, src) +func (dst *MsgResendReq_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgResendReq_Data.Merge(dst, src) } -func (m *Pong_Data) XXX_Size() int { - return xxx_messageInfo_Pong_Data.Size(m) +func (m *MsgResendReq_Data) XXX_Size() int { + return xxx_messageInfo_MsgResendReq_Data.Size(m) } -func (m *Pong_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Pong_Data.DiscardUnknown(m) +func (m *MsgResendReq_Data) XXX_DiscardUnknown() { + xxx_messageInfo_MsgResendReq_Data.DiscardUnknown(m) } -var xxx_messageInfo_Pong_Data proto.InternalMessageInfo - -func (m *Pong_Data) GetMsgId() int64 { - if m != nil { - return m.MsgId - } - return 0 -} +var xxx_messageInfo_MsgResendReq_Data proto.InternalMessageInfo -func (m *Pong_Data) GetPingId() int64 { +func (m *MsgResendReq_Data) GetMsgIds() []int64 { if m != nil { - return m.PingId + return m.MsgIds } - return 0 + return nil } -type Pong struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Pong_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MsgResendReq struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *MsgResendReq_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Pong) Reset() { *m = Pong{} } -func (m *Pong) String() string { return proto.CompactTextString(m) } -func (*Pong) ProtoMessage() {} -func (*Pong) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{55} +func (m *MsgResendReq) Reset() { *m = MsgResendReq{} } +func (m *MsgResendReq) String() string { return proto.CompactTextString(m) } +func (*MsgResendReq) ProtoMessage() {} +func (*MsgResendReq) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{55} } -func (m *Pong) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Pong.Unmarshal(m, b) +func (m *MsgResendReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MsgResendReq.Unmarshal(m, b) } -func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Pong.Marshal(b, m, deterministic) +func (m *MsgResendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MsgResendReq.Marshal(b, m, deterministic) } -func (dst *Pong) XXX_Merge(src proto.Message) { - xxx_messageInfo_Pong.Merge(dst, src) +func (dst *MsgResendReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgResendReq.Merge(dst, src) } -func (m *Pong) XXX_Size() int { - return xxx_messageInfo_Pong.Size(m) +func (m *MsgResendReq) XXX_Size() int { + return xxx_messageInfo_MsgResendReq.Size(m) } -func (m *Pong) XXX_DiscardUnknown() { - xxx_messageInfo_Pong.DiscardUnknown(m) +func (m *MsgResendReq) XXX_DiscardUnknown() { + xxx_messageInfo_MsgResendReq.DiscardUnknown(m) } -var xxx_messageInfo_Pong proto.InternalMessageInfo +var xxx_messageInfo_MsgResendReq proto.InternalMessageInfo -func (m *Pong) GetConstructor() TLConstructor { +func (m *MsgResendReq) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Pong) GetData2() *Pong_Data { +func (m *MsgResendReq) GetData2() *MsgResendReq_Data { if m != nil { return m.Data2 } return nil } -// pong#347773c5 msg_id:long ping_id:long = Pong; -type TLPong struct { - Data2 *Pong_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq; +type TLMsgResendReq struct { + Data2 *MsgResendReq_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPong) Reset() { *m = TLPong{} } -func (m *TLPong) String() string { return proto.CompactTextString(m) } -func (*TLPong) ProtoMessage() {} -func (*TLPong) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{56} +func (m *TLMsgResendReq) Reset() { *m = TLMsgResendReq{} } +func (m *TLMsgResendReq) String() string { return proto.CompactTextString(m) } +func (*TLMsgResendReq) ProtoMessage() {} +func (*TLMsgResendReq) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{56} } -func (m *TLPong) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPong.Unmarshal(m, b) +func (m *TLMsgResendReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLMsgResendReq.Unmarshal(m, b) } -func (m *TLPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPong.Marshal(b, m, deterministic) +func (m *TLMsgResendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLMsgResendReq.Marshal(b, m, deterministic) } -func (dst *TLPong) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPong.Merge(dst, src) +func (dst *TLMsgResendReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLMsgResendReq.Merge(dst, src) } -func (m *TLPong) XXX_Size() int { - return xxx_messageInfo_TLPong.Size(m) +func (m *TLMsgResendReq) XXX_Size() int { + return xxx_messageInfo_TLMsgResendReq.Size(m) } -func (m *TLPong) XXX_DiscardUnknown() { - xxx_messageInfo_TLPong.DiscardUnknown(m) +func (m *TLMsgResendReq) XXX_DiscardUnknown() { + xxx_messageInfo_TLMsgResendReq.DiscardUnknown(m) } -var xxx_messageInfo_TLPong proto.InternalMessageInfo +var xxx_messageInfo_TLMsgResendReq proto.InternalMessageInfo -func (m *TLPong) GetData2() *Pong_Data { +func (m *TLMsgResendReq) GetData2() *MsgResendReq_Data { if m != nil { return m.Data2 } @@ -2610,142 +2610,142 @@ func (m *TLPong) GetData2() *Pong_Data { } // ///////////////////////////////////////////////////////////////////////////// -// help_ConfigSimple <-- -// + TL_help_configSimple +// FutureSalts <-- +// + TL_future_salts // -type Help_ConfigSimple_Data struct { - Date int32 `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"` - Expires int32 `protobuf:"varint,2,opt,name=expires,proto3" json:"expires,omitempty"` - Rules []*AccessPointRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type FutureSalts_Data struct { + ReqMsgId int64 `protobuf:"varint,1,opt,name=req_msg_id,json=reqMsgId,proto3" json:"req_msg_id,omitempty"` + Now int32 `protobuf:"varint,2,opt,name=now,proto3" json:"now,omitempty"` + Salts []*TLFutureSalt `protobuf:"bytes,3,rep,name=salts,proto3" json:"salts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_ConfigSimple_Data) Reset() { *m = Help_ConfigSimple_Data{} } -func (m *Help_ConfigSimple_Data) String() string { return proto.CompactTextString(m) } -func (*Help_ConfigSimple_Data) ProtoMessage() {} -func (*Help_ConfigSimple_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{57} +func (m *FutureSalts_Data) Reset() { *m = FutureSalts_Data{} } +func (m *FutureSalts_Data) String() string { return proto.CompactTextString(m) } +func (*FutureSalts_Data) ProtoMessage() {} +func (*FutureSalts_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{57} } -func (m *Help_ConfigSimple_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_ConfigSimple_Data.Unmarshal(m, b) +func (m *FutureSalts_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FutureSalts_Data.Unmarshal(m, b) } -func (m *Help_ConfigSimple_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_ConfigSimple_Data.Marshal(b, m, deterministic) +func (m *FutureSalts_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FutureSalts_Data.Marshal(b, m, deterministic) } -func (dst *Help_ConfigSimple_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_ConfigSimple_Data.Merge(dst, src) +func (dst *FutureSalts_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_FutureSalts_Data.Merge(dst, src) } -func (m *Help_ConfigSimple_Data) XXX_Size() int { - return xxx_messageInfo_Help_ConfigSimple_Data.Size(m) +func (m *FutureSalts_Data) XXX_Size() int { + return xxx_messageInfo_FutureSalts_Data.Size(m) } -func (m *Help_ConfigSimple_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Help_ConfigSimple_Data.DiscardUnknown(m) +func (m *FutureSalts_Data) XXX_DiscardUnknown() { + xxx_messageInfo_FutureSalts_Data.DiscardUnknown(m) } -var xxx_messageInfo_Help_ConfigSimple_Data proto.InternalMessageInfo +var xxx_messageInfo_FutureSalts_Data proto.InternalMessageInfo -func (m *Help_ConfigSimple_Data) GetDate() int32 { +func (m *FutureSalts_Data) GetReqMsgId() int64 { if m != nil { - return m.Date + return m.ReqMsgId } return 0 } -func (m *Help_ConfigSimple_Data) GetExpires() int32 { +func (m *FutureSalts_Data) GetNow() int32 { if m != nil { - return m.Expires + return m.Now } return 0 } -func (m *Help_ConfigSimple_Data) GetRules() []*AccessPointRule { +func (m *FutureSalts_Data) GetSalts() []*TLFutureSalt { if m != nil { - return m.Rules + return m.Salts } return nil } -type Help_ConfigSimple struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Help_ConfigSimple_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type FutureSalts struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *FutureSalts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Help_ConfigSimple) Reset() { *m = Help_ConfigSimple{} } -func (m *Help_ConfigSimple) String() string { return proto.CompactTextString(m) } -func (*Help_ConfigSimple) ProtoMessage() {} -func (*Help_ConfigSimple) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{58} +func (m *FutureSalts) Reset() { *m = FutureSalts{} } +func (m *FutureSalts) String() string { return proto.CompactTextString(m) } +func (*FutureSalts) ProtoMessage() {} +func (*FutureSalts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{58} } -func (m *Help_ConfigSimple) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Help_ConfigSimple.Unmarshal(m, b) +func (m *FutureSalts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FutureSalts.Unmarshal(m, b) } -func (m *Help_ConfigSimple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Help_ConfigSimple.Marshal(b, m, deterministic) +func (m *FutureSalts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FutureSalts.Marshal(b, m, deterministic) } -func (dst *Help_ConfigSimple) XXX_Merge(src proto.Message) { - xxx_messageInfo_Help_ConfigSimple.Merge(dst, src) +func (dst *FutureSalts) XXX_Merge(src proto.Message) { + xxx_messageInfo_FutureSalts.Merge(dst, src) } -func (m *Help_ConfigSimple) XXX_Size() int { - return xxx_messageInfo_Help_ConfigSimple.Size(m) +func (m *FutureSalts) XXX_Size() int { + return xxx_messageInfo_FutureSalts.Size(m) } -func (m *Help_ConfigSimple) XXX_DiscardUnknown() { - xxx_messageInfo_Help_ConfigSimple.DiscardUnknown(m) +func (m *FutureSalts) XXX_DiscardUnknown() { + xxx_messageInfo_FutureSalts.DiscardUnknown(m) } -var xxx_messageInfo_Help_ConfigSimple proto.InternalMessageInfo +var xxx_messageInfo_FutureSalts proto.InternalMessageInfo -func (m *Help_ConfigSimple) GetConstructor() TLConstructor { +func (m *FutureSalts) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *Help_ConfigSimple) GetData2() *Help_ConfigSimple_Data { +func (m *FutureSalts) GetData2() *FutureSalts_Data { if m != nil { return m.Data2 } return nil } -// help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; -type TLHelpConfigSimple struct { - Data2 *Help_ConfigSimple_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// future_salts#ae500895 req_msg_id:long now:int salts:vector = FutureSalts; +type TLFutureSalts struct { + Data2 *FutureSalts_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHelpConfigSimple) Reset() { *m = TLHelpConfigSimple{} } -func (m *TLHelpConfigSimple) String() string { return proto.CompactTextString(m) } -func (*TLHelpConfigSimple) ProtoMessage() {} -func (*TLHelpConfigSimple) Descriptor() ([]byte, []int) { - return fileDescriptor_schema_tl_transport_da431c561823d737, []int{59} +func (m *TLFutureSalts) Reset() { *m = TLFutureSalts{} } +func (m *TLFutureSalts) String() string { return proto.CompactTextString(m) } +func (*TLFutureSalts) ProtoMessage() {} +func (*TLFutureSalts) Descriptor() ([]byte, []int) { + return fileDescriptor_schema_tl_transport_8cad032860f49f5a, []int{59} } -func (m *TLHelpConfigSimple) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHelpConfigSimple.Unmarshal(m, b) +func (m *TLFutureSalts) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLFutureSalts.Unmarshal(m, b) } -func (m *TLHelpConfigSimple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHelpConfigSimple.Marshal(b, m, deterministic) +func (m *TLFutureSalts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLFutureSalts.Marshal(b, m, deterministic) } -func (dst *TLHelpConfigSimple) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHelpConfigSimple.Merge(dst, src) +func (dst *TLFutureSalts) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLFutureSalts.Merge(dst, src) } -func (m *TLHelpConfigSimple) XXX_Size() int { - return xxx_messageInfo_TLHelpConfigSimple.Size(m) +func (m *TLFutureSalts) XXX_Size() int { + return xxx_messageInfo_TLFutureSalts.Size(m) } -func (m *TLHelpConfigSimple) XXX_DiscardUnknown() { - xxx_messageInfo_TLHelpConfigSimple.DiscardUnknown(m) +func (m *TLFutureSalts) XXX_DiscardUnknown() { + xxx_messageInfo_TLFutureSalts.DiscardUnknown(m) } -var xxx_messageInfo_TLHelpConfigSimple proto.InternalMessageInfo +var xxx_messageInfo_TLFutureSalts proto.InternalMessageInfo -func (m *TLHelpConfigSimple) GetData2() *Help_ConfigSimple_Data { +func (m *TLFutureSalts) GetData2() *FutureSalts_Data { if m != nil { return m.Data2 } @@ -2753,163 +2753,163 @@ func (m *TLHelpConfigSimple) GetData2() *Help_ConfigSimple_Data { } func init() { - proto.RegisterType((*MsgsStateInfo_Data)(nil), "mtproto.MsgsStateInfo_Data") - proto.RegisterType((*MsgsStateInfo)(nil), "mtproto.MsgsStateInfo") - proto.RegisterType((*TLMsgsStateInfo)(nil), "mtproto.TL_msgs_state_info") - proto.RegisterType((*BadMsgNotification_Data)(nil), "mtproto.BadMsgNotification_Data") - proto.RegisterType((*BadMsgNotification)(nil), "mtproto.BadMsgNotification") - proto.RegisterType((*TLBadMsgNotification)(nil), "mtproto.TL_bad_msg_notification") - proto.RegisterType((*TLBadServerSalt)(nil), "mtproto.TL_bad_server_salt") + proto.RegisterType((*IpPort_Data)(nil), "mtproto.IpPort_Data") + proto.RegisterType((*IpPort)(nil), "mtproto.IpPort") + proto.RegisterType((*TLIpPort)(nil), "mtproto.TL_ipPort") + proto.RegisterType((*TLIpPortSecret)(nil), "mtproto.TL_ipPortSecret") + proto.RegisterType((*MsgsAllInfo_Data)(nil), "mtproto.MsgsAllInfo_Data") + proto.RegisterType((*MsgsAllInfo)(nil), "mtproto.MsgsAllInfo") + proto.RegisterType((*TLMsgsAllInfo)(nil), "mtproto.TL_msgs_all_info") + proto.RegisterType((*NewSession_Data)(nil), "mtproto.NewSession_Data") + proto.RegisterType((*NewSession)(nil), "mtproto.NewSession") + proto.RegisterType((*TLNewSessionCreated)(nil), "mtproto.TL_new_session_created") + proto.RegisterType((*MsgsStateReq_Data)(nil), "mtproto.MsgsStateReq_Data") + proto.RegisterType((*MsgsStateReq)(nil), "mtproto.MsgsStateReq") + proto.RegisterType((*TLMsgsStateReq)(nil), "mtproto.TL_msgs_state_req") + proto.RegisterType((*MsgDetailedInfo_Data)(nil), "mtproto.MsgDetailedInfo_Data") + proto.RegisterType((*MsgDetailedInfo)(nil), "mtproto.MsgDetailedInfo") + proto.RegisterType((*TLMsgDetailedInfo)(nil), "mtproto.TL_msg_detailed_info") + proto.RegisterType((*TLMsgNewDetailedInfo)(nil), "mtproto.TL_msg_new_detailed_info") proto.RegisterType((*RpcError_Data)(nil), "mtproto.RpcError_Data") proto.RegisterType((*RpcError)(nil), "mtproto.RpcError") proto.RegisterType((*TLRpcError)(nil), "mtproto.TL_rpc_error") + proto.RegisterType((*RpcDropAnswer_Data)(nil), "mtproto.RpcDropAnswer_Data") + proto.RegisterType((*RpcDropAnswer)(nil), "mtproto.RpcDropAnswer") + proto.RegisterType((*TLRpcAnswerUnknown)(nil), "mtproto.TL_rpc_answer_unknown") + proto.RegisterType((*TLRpcAnswerDroppedRunning)(nil), "mtproto.TL_rpc_answer_dropped_running") + proto.RegisterType((*TLRpcAnswerDropped)(nil), "mtproto.TL_rpc_answer_dropped") proto.RegisterType((*FutureSalt_Data)(nil), "mtproto.FutureSalt_Data") proto.RegisterType((*FutureSalt)(nil), "mtproto.FutureSalt") proto.RegisterType((*TLFutureSalt)(nil), "mtproto.TL_future_salt") - proto.RegisterType((*FutureSalts_Data)(nil), "mtproto.FutureSalts_Data") - proto.RegisterType((*FutureSalts)(nil), "mtproto.FutureSalts") - proto.RegisterType((*TLFutureSalts)(nil), "mtproto.TL_future_salts") proto.RegisterType((*AccessPointRule_Data)(nil), "mtproto.AccessPointRule_Data") proto.RegisterType((*AccessPointRule)(nil), "mtproto.AccessPointRule") proto.RegisterType((*TLAccessPointRule)(nil), "mtproto.TL_accessPointRule") proto.RegisterType((*MsgsAck_Data)(nil), "mtproto.MsgsAck_Data") proto.RegisterType((*MsgsAck)(nil), "mtproto.MsgsAck") proto.RegisterType((*TLMsgsAck)(nil), "mtproto.TL_msgs_ack") - proto.RegisterType((*MsgsStateReq_Data)(nil), "mtproto.MsgsStateReq_Data") - proto.RegisterType((*MsgsStateReq)(nil), "mtproto.MsgsStateReq") - proto.RegisterType((*TLMsgsStateReq)(nil), "mtproto.TL_msgs_state_req") - proto.RegisterType((*MsgDetailedInfo_Data)(nil), "mtproto.MsgDetailedInfo_Data") - proto.RegisterType((*MsgDetailedInfo)(nil), "mtproto.MsgDetailedInfo") - proto.RegisterType((*TLMsgDetailedInfo)(nil), "mtproto.TL_msg_detailed_info") - proto.RegisterType((*TLMsgNewDetailedInfo)(nil), "mtproto.TL_msg_new_detailed_info") + proto.RegisterType((*BadMsgNotification_Data)(nil), "mtproto.BadMsgNotification_Data") + proto.RegisterType((*BadMsgNotification)(nil), "mtproto.BadMsgNotification") + proto.RegisterType((*TLBadMsgNotification)(nil), "mtproto.TL_bad_msg_notification") + proto.RegisterType((*TLBadServerSalt)(nil), "mtproto.TL_bad_server_salt") + proto.RegisterType((*HttpWait_Data)(nil), "mtproto.HttpWait_Data") + proto.RegisterType((*HttpWait)(nil), "mtproto.HttpWait") + proto.RegisterType((*TLHttpWait)(nil), "mtproto.TL_http_wait") + proto.RegisterType((*Help_ConfigSimple_Data)(nil), "mtproto.help_ConfigSimple_Data") + proto.RegisterType((*Help_ConfigSimple)(nil), "mtproto.help_ConfigSimple") + proto.RegisterType((*TLHelpConfigSimple)(nil), "mtproto.TL_help_configSimple") + proto.RegisterType((*MsgsStateInfo_Data)(nil), "mtproto.MsgsStateInfo_Data") + proto.RegisterType((*MsgsStateInfo)(nil), "mtproto.MsgsStateInfo") + proto.RegisterType((*TLMsgsStateInfo)(nil), "mtproto.TL_msgs_state_info") + proto.RegisterType((*Pong_Data)(nil), "mtproto.Pong_Data") + proto.RegisterType((*Pong)(nil), "mtproto.Pong") + proto.RegisterType((*TLPong)(nil), "mtproto.TL_pong") proto.RegisterType((*DestroySessionRes_Data)(nil), "mtproto.DestroySessionRes_Data") proto.RegisterType((*DestroySessionRes)(nil), "mtproto.DestroySessionRes") proto.RegisterType((*TLDestroySessionOk)(nil), "mtproto.TL_destroy_session_ok") proto.RegisterType((*TLDestroySessionNone)(nil), "mtproto.TL_destroy_session_none") - proto.RegisterType((*NewSession_Data)(nil), "mtproto.NewSession_Data") - proto.RegisterType((*NewSession)(nil), "mtproto.NewSession") - proto.RegisterType((*TLNewSessionCreated)(nil), "mtproto.TL_new_session_created") - proto.RegisterType((*HttpWait_Data)(nil), "mtproto.HttpWait_Data") - proto.RegisterType((*HttpWait)(nil), "mtproto.HttpWait") - proto.RegisterType((*TLHttpWait)(nil), "mtproto.TL_http_wait") - proto.RegisterType((*IpPort_Data)(nil), "mtproto.IpPort_Data") - proto.RegisterType((*IpPort)(nil), "mtproto.IpPort") - proto.RegisterType((*TLIpPort)(nil), "mtproto.TL_ipPort") - proto.RegisterType((*TLIpPortSecret)(nil), "mtproto.TL_ipPortSecret") - proto.RegisterType((*MsgsAllInfo_Data)(nil), "mtproto.MsgsAllInfo_Data") - proto.RegisterType((*MsgsAllInfo)(nil), "mtproto.MsgsAllInfo") - proto.RegisterType((*TLMsgsAllInfo)(nil), "mtproto.TL_msgs_all_info") proto.RegisterType((*MsgResendReq_Data)(nil), "mtproto.MsgResendReq_Data") proto.RegisterType((*MsgResendReq)(nil), "mtproto.MsgResendReq") proto.RegisterType((*TLMsgResendReq)(nil), "mtproto.TL_msg_resend_req") - proto.RegisterType((*RpcDropAnswer_Data)(nil), "mtproto.RpcDropAnswer_Data") - proto.RegisterType((*RpcDropAnswer)(nil), "mtproto.RpcDropAnswer") - proto.RegisterType((*TLRpcAnswerUnknown)(nil), "mtproto.TL_rpc_answer_unknown") - proto.RegisterType((*TLRpcAnswerDroppedRunning)(nil), "mtproto.TL_rpc_answer_dropped_running") - proto.RegisterType((*TLRpcAnswerDropped)(nil), "mtproto.TL_rpc_answer_dropped") - proto.RegisterType((*Pong_Data)(nil), "mtproto.Pong_Data") - proto.RegisterType((*Pong)(nil), "mtproto.Pong") - proto.RegisterType((*TLPong)(nil), "mtproto.TL_pong") - proto.RegisterType((*Help_ConfigSimple_Data)(nil), "mtproto.help_ConfigSimple_Data") - proto.RegisterType((*Help_ConfigSimple)(nil), "mtproto.help_ConfigSimple") - proto.RegisterType((*TLHelpConfigSimple)(nil), "mtproto.TL_help_configSimple") + proto.RegisterType((*FutureSalts_Data)(nil), "mtproto.FutureSalts_Data") + proto.RegisterType((*FutureSalts)(nil), "mtproto.FutureSalts") + proto.RegisterType((*TLFutureSalts)(nil), "mtproto.TL_future_salts") } func init() { - proto.RegisterFile("schema.tl.transport.proto", fileDescriptor_schema_tl_transport_da431c561823d737) -} - -var fileDescriptor_schema_tl_transport_da431c561823d737 = []byte{ - // 1451 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xeb, 0x73, 0x1b, 0xb5, - 0x17, 0x1d, 0xd7, 0x71, 0x1c, 0x5f, 0x27, 0x4d, 0xba, 0xbf, 0x3c, 0xdc, 0xf6, 0x57, 0x1a, 0x96, - 0x19, 0x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 0x15, 0x7e, 0x79, 0xff, 0x7e, 0x52, 0x33, 0x4e, - 0xd4, 0xd1, 0x99, 0xf6, 0xf7, 0x60, 0xb5, 0xea, 0x92, 0x2e, 0x47, 0x5c, 0x26, 0x20, 0xc9, 0x69, - 0x16, 0xa0, 0x7f, 0x73, 0xb0, 0x73, 0x84, 0xbd, 0x06, 0xef, 0x9c, 0x86, 0xc2, 0x6f, 0xfb, 0x2e, - 0x16, 0x7e, 0x48, 0x13, 0x51, 0xce, 0xb1, 0x37, 0x22, 0xca, 0xb9, 0x4a, 0xae, 0x79, 0x96, 0x0d, - 0x6b, 0x66, 0x94, 0x93, 0x1e, 0xd5, 0xea, 0x14, 0x9c, 0xb2, 0x4e, 0x68, 0xca, 0x90, 0xf5, 0x00, - 0x80, 0x30, 0x16, 0x32, 0xe4, 0x86, 0x1e, 0xa9, 0xe4, 0x55, 0x42, 0x49, 0x45, 0x8e, 0x43, 0x8f, - 0x58, 0xef, 0xc2, 0x3a, 0x25, 0xd7, 0x88, 0x13, 0x76, 0x45, 0x18, 0xe2, 0x38, 0x10, 0x95, 0x25, - 0x35, 0xcb, 0x1a, 0x25, 0xd7, 0x4d, 0x15, 0x6d, 0xe2, 0x40, 0xd8, 0xff, 0xe4, 0xc0, 0x1a, 0x27, - 0x39, 0x87, 0xe2, 0x9f, 0x65, 0x85, 0xda, 0x4d, 0x6a, 0x5e, 0x22, 0x85, 0x51, 0xeb, 0x67, 0xd8, - 0x69, 0xd5, 0x91, 0x69, 0x9b, 0x0e, 0x93, 0x99, 0x15, 0xb2, 0xae, 0xbe, 0xa4, 0x84, 0x1c, 0x92, - 0x61, 0x66, 0xb4, 0x26, 0xac, 0x39, 0x91, 0xfb, 0x44, 0x69, 0xae, 0xbe, 0x61, 0xf6, 0x0b, 0xe4, - 0x46, 0xbf, 0xc0, 0x3b, 0xb0, 0xa6, 0x87, 0xbb, 0x84, 0x73, 0xdc, 0x21, 0xf1, 0x12, 0x5f, 0x55, - 0xc1, 0x86,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0x8e, 0xaf, 0xb3, - 0x97, 0x65, 0x6c, 0x25, 0x35, 0x09, 0x29, 0x43, 0xf4, 0x00, 0x8a, 0xad, 0x3a, 0x8a, 0xe4, 0x74, - 0x37, 0x2f, 0xba, 0x82, 0xed, 0x0b, 0x12, 0x44, 0xe8, 0x38, 0xa4, 0x6d, 0xbf, 0xd3, 0xf4, 0xbb, - 0x91, 0xb9, 0x32, 0x5a, 0xb0, 0xe4, 0x61, 0x61, 0xfe, 0x84, 0x50, 0xcf, 0x56, 0x05, 0x8a, 0x64, - 0x10, 0xf9, 0x8c, 0xf0, 0x78, 0x8d, 0x9a, 0x57, 0x79, 0xb6, 0xea, 0x3b, 0xa5, 0xbe, 0x1f, 0x56, - 0x5e, 0x76, 0xc3, 0x72, 0x74, 0x9a, 0x72, 0x6e, 0x63, 0x13, 0x2f, 0xc2, 0xb9, 0x4d, 0xee, 0x2e, - 0x3d, 0xc8, 0xa4, 0x2f, 0x56, 0x39, 0xee, 0x30, 0x91, 0xd9, 0xe0, 0x8e, 0x1e, 0xc1, 0x5b, 0xee, - 0x05, 0x16, 0x55, 0x4a, 0xce, 0xfb, 0x01, 0xae, 0xca, 0x67, 0x42, 0x3b, 0x3e, 0x25, 0xa6, 0xfe, - 0xa8, 0xd8, 0x68, 0x9d, 0xc9, 0x87, 0x67, 0xb7, 0xce, 0x97, 0x55, 0xe4, 0xe0, 0xbf, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x90, 0xe4, 0x0b, 0xfc, 0x28, 0x16, 0x00, 0x00, + proto.RegisterFile("schema.tl.transport.proto", fileDescriptor_schema_tl_transport_8cad032860f49f5a) +} + +var fileDescriptor_schema_tl_transport_8cad032860f49f5a = []byte{ + // 1454 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xfb, 0x73, 0x1b, 0xb5, + 0x13, 0x1f, 0xd7, 0x71, 0x1c, 0xaf,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a, 0x3e, 0x96, + 0x78, 0x57, 0x1f, 0x58, 0xde, 0x5d, 0x4f, 0x6c, 0x52, 0x44, 0x5d, 0xa3, 0x52, 0x7d, 0x0c, 0xa5, + 0x76, 0x03, 0x05, 0xe6, 0xc8, 0x49, 0x0c, 0xbf, 0x81, 0xd5, 0xc4, 0xb0, 0xa5, 0xb9, 0x4f, 0x64, + 0xfe, 0x2d, 0xac, 0x35, 0x45, 0x57, 0xec, 0x87, 0x61, 0x9d, 0x76, 0x98, 0x89, 0xdd, 0x16, 0x14, + 0x7b, 0xa2, 0x8b, 0x02, 0x5f, 0x54, 0x72, 0xdb, 0xf9, 0x9d, 0xbc, 0xbb, 0xd8, 0x13, 0xdd, 0xba, + 0x2f, 0x74, 0x50, 0x69, 0x87, 0x69, 0xdc, 0x92, 0xab, 0xd7, 0xd5, 0x21, 0x94, 0x53, 0x00, 0x33, + 0x44, 0xeb, 0xa3, 0x2c, 0xeb, 0xdb, 0x89, 0xcd, 0x38, 0x3f, 0x4b, 0xfd, 0x10, 0xd6, 0xda, 0x0d, + 0xd4, 0x13, 0x5d, 0x81, 0x70, 0x18, 0x22, 0xc5, 0x66, 0x72, 0x90, 0x3e, 0xac, 0x1e, 0x93, 0xcb, + 0x16, 0x11, 0x22, 0x60, 0xd4, 0xb8, 0xbf, 0x0d, 0xcb, 0x9d, 0x80, 0x0b, 0x89, 0x4c, 0x10, 0xb4, + 0x0f, 0x79, 0x17, 0xb4, 0xac, 0xa9, 0x02, 0xe1, 0xdc, 0x85, 0xd2, 0x80, 0x06, 0xfd, 0x01, 0x51, + 0xdb, 0x37, 0xf4, 0xf6, 0x92, 0x11, 0xd4, 0x7d, 0xe7, 0x01, 0x94, 0x05, 0xe1, 0x17, 0x84, 0x23, + 0x81, 0x43, 0x93, 0x56, 0x79, 0x17, 0x8c, 0xa8, 0x85, 0x43, 0x59, 0xbd, 0x00, 0x18, 0x1d, 0x39, + 0x43, 0xc0, 0x6a, 0x59, 0x5f, 0x2b, 0x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a, 0x46, 0x27, 0xb9, 0xd5, 0xb3, 0xf3, 0x69, 0xf1, + 0x4e, 0x74, 0x17, 0x18, 0xc7, 0xa3, 0x8c, 0x92, 0x69, 0x11, 0xcd, 0x9f, 0x02, 0x97, 0x08, 0x42, + 0xfd, 0x37, 0xfd, 0x53, 0x90, 0x68, 0xcf, 0xe9, 0x4f, 0x41, 0x96, 0xcd, 0x95, 0x3f, 0x05, 0x88, + 0xeb, 0xfd, 0xd7, 0xfe, 0x29, 0xb8, 0x1e, 0xa6, 0x0f, 0x6b, 0xa3, 0x99, 0x55, 0xbc, 0x49, 0xf5, + 0x58, 0x83, 0x3c, 0x65, 0x97, 0x71, 0x35, 0x56, 0x4b, 0xe7, 0x43, 0x28, 0xa8, 0x5e, 0x69, 0x2b, + 0xf1, 0x56, 0xca, 0xe1, 0xf4, 0xd4, 0xec, 0x1a, 0xad, 0xea, 0x10, 0xca, 0xa9, 0x23, 0xe7, 0xf1, + 0x07, 0x6e, 0xdc, 0x23, 0xeb, 0xec, 0x81, 0xfe, 0xf7, 0x98, 0xa2, 0x24, 0x26, 0xc6, 0x38, 0x78, + 0x08, 0xff, 0xf7, 0xce, 0xb0, 0xac, 0x51, 0x72, 0x3a, 0x08, 0x71, 0x4d, 0xad, 0x09, 0xed, 0x06, + 0x94, 0x58, 0xcb, 0x83, 0x62, 0xb3, 0x7d, 0xa2, 0x16, 0xcf, 0x6e, 0x9c, 0x2e, 0x6a, 0xc9, 0xde, + 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x50, 0x25, 0x90, 0x90, 0x28, 0x16, 0x00, 0x00, } diff --git a/mtproto/schema.tl.transport.proto b/mtproto/schema.tl.transport.proto index e277788fb..332e7ce90 100644 --- a/mtproto/schema.tl.transport.proto +++ b/mtproto/schema.tl.transport.proto @@ -30,48 +30,111 @@ import "schema.tl.crc32.proto"; /////////////////////////////////////////////////////////////////////////////// -// MsgsStateInfo <-- -// + TL_msgs_state_info +// IpPort <-- +// + TL_ipPort +// + TL_ipPortSecret // -message MsgsStateInfo_Data { - int64 req_msg_id = 1; +message IpPort_Data { + int32 ipv4 = 1; + int32 port = 2; + bytes secret = 3; +} + +message IpPort { + TLConstructor constructor = 1; + IpPort_Data data2 = 2; +} + +// ipPort#d433ad73 ipv4:int port:int = IpPort; +message TL_ipPort { + IpPort_Data data2 = 2; +} +// ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort; +message TL_ipPortSecret { + IpPort_Data data2 = 2; +} + +/////////////////////////////////////////////////////////////////////////////// +// MsgsAllInfo <-- +// + TL_msgs_all_info +// +message MsgsAllInfo_Data { + repeated int64 msg_ids = 1; string info = 2; } -message MsgsStateInfo { +message MsgsAllInfo { TLConstructor constructor = 1; - MsgsStateInfo_Data data2 = 2; + MsgsAllInfo_Data data2 = 2; } -// msgs_state_info#04deb57d req_msg_id:long info:string = MsgsStateInfo; -message TL_msgs_state_info { - MsgsStateInfo_Data data2 = 2; +// msgs_all_info#8cc0d131 msg_ids:Vector info:string = MsgsAllInfo; +message TL_msgs_all_info { + MsgsAllInfo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// BadMsgNotification <-- -// + TL_bad_msg_notification -// + TL_bad_server_salt +// NewSession <-- +// + TL_new_session_created // -message BadMsgNotification_Data { - int64 bad_msg_id = 1; - int32 bad_msg_seqno = 2; - int32 error_code = 3; - int64 new_server_salt = 4; +message NewSession_Data { + int64 first_msg_id = 1; + int64 unique_id = 2; + int64 server_salt = 3; } -message BadMsgNotification { +message NewSession { TLConstructor constructor = 1; - BadMsgNotification_Data data2 = 2; + NewSession_Data data2 = 2; } -// bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification; -message TL_bad_msg_notification { - BadMsgNotification_Data data2 = 2; +// new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession; +message TL_new_session_created { + NewSession_Data data2 = 2; } -// bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification; -message TL_bad_server_salt { - BadMsgNotification_Data data2 = 2; + +/////////////////////////////////////////////////////////////////////////////// +// MsgsStateReq <-- +// + TL_msgs_state_req +// +message MsgsStateReq_Data { + repeated int64 msg_ids = 1; +} + +message MsgsStateReq { + TLConstructor constructor = 1; + MsgsStateReq_Data data2 = 2; +} + +// msgs_state_req#da69fb52 msg_ids:Vector = MsgsStateReq; +message TL_msgs_state_req { + MsgsStateReq_Data data2 = 2; +} + +/////////////////////////////////////////////////////////////////////////////// +// MsgDetailedInfo <-- +// + TL_msg_detailed_info +// + TL_msg_new_detailed_info +// +message MsgDetailedInfo_Data { + int64 msg_id = 1; + int64 answer_msg_id = 2; + int32 bytes = 3; + int32 status = 4; +} + +message MsgDetailedInfo { + TLConstructor constructor = 1; + MsgDetailedInfo_Data data2 = 2; +} + +// msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo; +message TL_msg_detailed_info { + MsgDetailedInfo_Data data2 = 2; +} +// msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo; +message TL_msg_new_detailed_info { + MsgDetailedInfo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// @@ -93,6 +156,36 @@ message TL_rpc_error { RpcError_Data data2 = 2; } +/////////////////////////////////////////////////////////////////////////////// +// RpcDropAnswer <-- +// + TL_rpc_answer_unknown +// + TL_rpc_answer_dropped_running +// + TL_rpc_answer_dropped +// +message RpcDropAnswer_Data { + int64 msg_id = 1; + int32 seq_no = 2; + int32 bytes = 3; +} + +message RpcDropAnswer { + TLConstructor constructor = 1; + RpcDropAnswer_Data data2 = 2; +} + +// rpc_answer_unknown#5e2ad36e = RpcDropAnswer; +message TL_rpc_answer_unknown { + RpcDropAnswer_Data data2 = 2; +} +// rpc_answer_dropped_running#cd78e586 = RpcDropAnswer; +message TL_rpc_answer_dropped_running { + RpcDropAnswer_Data data2 = 2; +} +// rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer; +message TL_rpc_answer_dropped { + RpcDropAnswer_Data data2 = 2; +} + /////////////////////////////////////////////////////////////////////////////// // FutureSalt <-- // + TL_future_salt @@ -113,26 +206,6 @@ message TL_future_salt { FutureSalt_Data data2 = 2; } -/////////////////////////////////////////////////////////////////////////////// -// FutureSalts <-- -// + TL_future_salts -// -message FutureSalts_Data { - int64 req_msg_id = 1; - int32 now = 2; - repeated TL_future_salt salts = 3; -} - -message FutureSalts { - TLConstructor constructor = 1; - FutureSalts_Data data2 = 2; -} - -// future_salts#ae500895 req_msg_id:long now:int salts:vector = FutureSalts; -message TL_future_salts { - FutureSalts_Data data2 = 2; -} - /////////////////////////////////////////////////////////////////////////////// // AccessPointRule <-- // + TL_accessPointRule @@ -172,90 +245,29 @@ message TL_msgs_ack { } /////////////////////////////////////////////////////////////////////////////// -// MsgsStateReq <-- -// + TL_msgs_state_req -// -message MsgsStateReq_Data { - repeated int64 msg_ids = 1; -} - -message MsgsStateReq { - TLConstructor constructor = 1; - MsgsStateReq_Data data2 = 2; -} - -// msgs_state_req#da69fb52 msg_ids:Vector = MsgsStateReq; -message TL_msgs_state_req { - MsgsStateReq_Data data2 = 2; -} - -/////////////////////////////////////////////////////////////////////////////// -// MsgDetailedInfo <-- -// + TL_msg_detailed_info -// + TL_msg_new_detailed_info -// -message MsgDetailedInfo_Data { - int64 msg_id = 1; - int64 answer_msg_id = 2; - int32 bytes = 3; - int32 status = 4; -} - -message MsgDetailedInfo { - TLConstructor constructor = 1; - MsgDetailedInfo_Data data2 = 2; -} - -// msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo; -message TL_msg_detailed_info { - MsgDetailedInfo_Data data2 = 2; -} -// msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo; -message TL_msg_new_detailed_info { - MsgDetailedInfo_Data data2 = 2; -} - -/////////////////////////////////////////////////////////////////////////////// -// DestroySessionRes <-- -// + TL_destroy_session_ok -// + TL_destroy_session_none +// BadMsgNotification <-- +// + TL_bad_msg_notification +// + TL_bad_server_salt // -message DestroySessionRes_Data { - int64 session_id = 1; +message BadMsgNotification_Data { + int64 bad_msg_id = 1; + int32 bad_msg_seqno = 2; + int32 error_code = 3; + int64 new_server_salt = 4; } -message DestroySessionRes { +message BadMsgNotification { TLConstructor constructor = 1; - DestroySessionRes_Data data2 = 2; -} - -// destroy_session_ok#e22045fc session_id:long = DestroySessionRes; -message TL_destroy_session_ok { - DestroySessionRes_Data data2 = 2; -} -// destroy_session_none#62d350c9 session_id:long = DestroySessionRes; -message TL_destroy_session_none { - DestroySessionRes_Data data2 = 2; -} - -/////////////////////////////////////////////////////////////////////////////// -// NewSession <-- -// + TL_new_session_created -// -message NewSession_Data { - int64 first_msg_id = 1; - int64 unique_id = 2; - int64 server_salt = 3; + BadMsgNotification_Data data2 = 2; } -message NewSession { - TLConstructor constructor = 1; - NewSession_Data data2 = 2; +// bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification; +message TL_bad_msg_notification { + BadMsgNotification_Data data2 = 2; } - -// new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession; -message TL_new_session_created { - NewSession_Data data2 = 2; +// bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification; +message TL_bad_server_salt { + BadMsgNotification_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// @@ -279,133 +291,121 @@ message TL_http_wait { } /////////////////////////////////////////////////////////////////////////////// -// IpPort <-- -// + TL_ipPort -// + TL_ipPortSecret +// help_ConfigSimple <-- +// + TL_help_configSimple // -message IpPort_Data { - int32 ipv4 = 1; - int32 port = 2; - bytes secret = 3; +message help_ConfigSimple_Data { + int32 date = 1; + int32 expires = 2; + repeated AccessPointRule rules = 3; } -message IpPort { +message help_ConfigSimple { TLConstructor constructor = 1; - IpPort_Data data2 = 2; + help_ConfigSimple_Data data2 = 2; } -// ipPort#d433ad73 ipv4:int port:int = IpPort; -message TL_ipPort { - IpPort_Data data2 = 2; -} -// ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort; -message TL_ipPortSecret { - IpPort_Data data2 = 2; +// help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; +message TL_help_configSimple { + help_ConfigSimple_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// MsgsAllInfo <-- -// + TL_msgs_all_info +// MsgsStateInfo <-- +// + TL_msgs_state_info // -message MsgsAllInfo_Data { - repeated int64 msg_ids = 1; +message MsgsStateInfo_Data { + int64 req_msg_id = 1; string info = 2; } -message MsgsAllInfo { +message MsgsStateInfo { TLConstructor constructor = 1; - MsgsAllInfo_Data data2 = 2; + MsgsStateInfo_Data data2 = 2; } -// msgs_all_info#8cc0d131 msg_ids:Vector info:string = MsgsAllInfo; -message TL_msgs_all_info { - MsgsAllInfo_Data data2 = 2; +// msgs_state_info#04deb57d req_msg_id:long info:string = MsgsStateInfo; +message TL_msgs_state_info { + MsgsStateInfo_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// MsgResendReq <-- -// + TL_msg_resend_req +// Pong <-- +// + TL_pong // -message MsgResendReq_Data { - repeated int64 msg_ids = 1; +message Pong_Data { + int64 msg_id = 1; + int64 ping_id = 2; } -message MsgResendReq { +message Pong { TLConstructor constructor = 1; - MsgResendReq_Data data2 = 2; + Pong_Data data2 = 2; } -// msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq; -message TL_msg_resend_req { - MsgResendReq_Data data2 = 2; +// pong#347773c5 msg_id:long ping_id:long = Pong; +message TL_pong { + Pong_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// RpcDropAnswer <-- -// + TL_rpc_answer_unknown -// + TL_rpc_answer_dropped_running -// + TL_rpc_answer_dropped +// DestroySessionRes <-- +// + TL_destroy_session_ok +// + TL_destroy_session_none // -message RpcDropAnswer_Data { - int64 msg_id = 1; - int32 seq_no = 2; - int32 bytes = 3; +message DestroySessionRes_Data { + int64 session_id = 1; } -message RpcDropAnswer { +message DestroySessionRes { TLConstructor constructor = 1; - RpcDropAnswer_Data data2 = 2; + DestroySessionRes_Data data2 = 2; } -// rpc_answer_unknown#5e2ad36e = RpcDropAnswer; -message TL_rpc_answer_unknown { - RpcDropAnswer_Data data2 = 2; -} -// rpc_answer_dropped_running#cd78e586 = RpcDropAnswer; -message TL_rpc_answer_dropped_running { - RpcDropAnswer_Data data2 = 2; +// destroy_session_ok#e22045fc session_id:long = DestroySessionRes; +message TL_destroy_session_ok { + DestroySessionRes_Data data2 = 2; } -// rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer; -message TL_rpc_answer_dropped { - RpcDropAnswer_Data data2 = 2; +// destroy_session_none#62d350c9 session_id:long = DestroySessionRes; +message TL_destroy_session_none { + DestroySessionRes_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// Pong <-- -// + TL_pong +// MsgResendReq <-- +// + TL_msg_resend_req // -message Pong_Data { - int64 msg_id = 1; - int64 ping_id = 2; +message MsgResendReq_Data { + repeated int64 msg_ids = 1; } -message Pong { +message MsgResendReq { TLConstructor constructor = 1; - Pong_Data data2 = 2; + MsgResendReq_Data data2 = 2; } -// pong#347773c5 msg_id:long ping_id:long = Pong; -message TL_pong { - Pong_Data data2 = 2; +// msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq; +message TL_msg_resend_req { + MsgResendReq_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// help_ConfigSimple <-- -// + TL_help_configSimple +// FutureSalts <-- +// + TL_future_salts // -message help_ConfigSimple_Data { - int32 date = 1; - int32 expires = 2; - repeated AccessPointRule rules = 3; +message FutureSalts_Data { + int64 req_msg_id = 1; + int32 now = 2; + repeated TL_future_salt salts = 3; } -message help_ConfigSimple { +message FutureSalts { TLConstructor constructor = 1; - help_ConfigSimple_Data data2 = 2; + FutureSalts_Data data2 = 2; } -// help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple; -message TL_help_configSimple { - help_ConfigSimple_Data data2 = 2; +// future_salts#ae500895 req_msg_id:long now:int salts:vector = FutureSalts; +message TL_future_salts { + FutureSalts_Data data2 = 2; } diff --git a/mtproto/service.tl.pb.go b/mtproto/service.tl.pb.go index 22bb75c3d..9d0ea0d03 100644 --- a/mtproto/service.tl.pb.go +++ b/mtproto/service.tl.pb.go @@ -39,7 +39,7 @@ func (m *RSAPublicKey_Data) Reset() { *m = RSAPublicKey_Data{} } func (m *RSAPublicKey_Data) String() string { return proto.CompactTextString(m) } func (*RSAPublicKey_Data) ProtoMessage() {} func (*RSAPublicKey_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{0} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{0} } func (m *RSAPublicKey_Data) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RSAPublicKey_Data.Unmarshal(m, b) @@ -85,7 +85,7 @@ func (m *RSAPublicKey) Reset() { *m = RSAPublicKey{} } func (m *RSAPublicKey) String() string { return proto.CompactTextString(m) } func (*RSAPublicKey) ProtoMessage() {} func (*RSAPublicKey) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{1} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{1} } func (m *RSAPublicKey) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RSAPublicKey.Unmarshal(m, b) @@ -131,7 +131,7 @@ func (m *TLRsaPublicKey) Reset() { *m = TLRsaPublicKey{} } func (m *TLRsaPublicKey) String() string { return proto.CompactTextString(m) } func (*TLRsaPublicKey) ProtoMessage() {} func (*TLRsaPublicKey) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{2} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{2} } func (m *TLRsaPublicKey) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLRsaPublicKey.Unmarshal(m, b) @@ -176,7 +176,7 @@ func (m *SessionClientEvent_Data) Reset() { *m = SessionClientEvent_Data func (m *SessionClientEvent_Data) String() string { return proto.CompactTextString(m) } func (*SessionClientEvent_Data) ProtoMessage() {} func (*SessionClientEvent_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{3} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{3} } func (m *SessionClientEvent_Data) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SessionClientEvent_Data.Unmarshal(m, b) @@ -229,7 +229,7 @@ func (m *SessionClientEvent) Reset() { *m = SessionClientEvent{} } func (m *SessionClientEvent) String() string { return proto.CompactTextString(m) } func (*SessionClientEvent) ProtoMessage() {} func (*SessionClientEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{4} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{4} } func (m *SessionClientEvent) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SessionClientEvent.Unmarshal(m, b) @@ -275,7 +275,7 @@ func (m *TLSessionClientCreated) Reset() { *m = TLSessionClientCreated{} func (m *TLSessionClientCreated) String() string { return proto.CompactTextString(m) } func (*TLSessionClientCreated) ProtoMessage() {} func (*TLSessionClientCreated) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{5} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{5} } func (m *TLSessionClientCreated) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionClientCreated.Unmarshal(m, b) @@ -314,7 +314,7 @@ func (m *TLSessionClientClosed) Reset() { *m = TLSessionClientClosed{} } func (m *TLSessionClientClosed) String() string { return proto.CompactTextString(m) } func (*TLSessionClientClosed) ProtoMessage() {} func (*TLSessionClientClosed) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{6} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{6} } func (m *TLSessionClientClosed) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionClientClosed.Unmarshal(m, b) @@ -342,404 +342,214 @@ func (m *TLSessionClientClosed) GetData2() *SessionClientEvent_Data { } // ///////////////////////////////////////////////////////////////////////////// -// Int32 <-- -// + TL_int32 +// RawMessageData <-- +// + TL_handshakeData +// + TL_sessionMessageData // -type Int32_Data struct { - V int32 `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type RawMessageData_Data struct { + State int32 `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` + ResState int32 `protobuf:"varint,2,opt,name=res_state,json=resState,proto3" json:"res_state,omitempty"` + ClientConnId int64 `protobuf:"varint,3,opt,name=client_conn_id,json=clientConnId,proto3" json:"client_conn_id,omitempty"` + Ctx *HandshakeContext `protobuf:"bytes,4,opt,name=ctx,proto3" json:"ctx,omitempty"` + AuthKeyId int64 `protobuf:"varint,5,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` + QuickAck int32 `protobuf:"varint,6,opt,name=quick_ack,json=quickAck,proto3" json:"quick_ack,omitempty"` + ConnType int32 `protobuf:"varint,7,opt,name=conn_type,json=connType,proto3" json:"conn_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Int32_Data) Reset() { *m = Int32_Data{} } -func (m *Int32_Data) String() string { return proto.CompactTextString(m) } -func (*Int32_Data) ProtoMessage() {} -func (*Int32_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{7} +func (m *RawMessageData_Data) Reset() { *m = RawMessageData_Data{} } +func (m *RawMessageData_Data) String() string { return proto.CompactTextString(m) } +func (*RawMessageData_Data) ProtoMessage() {} +func (*RawMessageData_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{7} } -func (m *Int32_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Int32_Data.Unmarshal(m, b) +func (m *RawMessageData_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RawMessageData_Data.Unmarshal(m, b) } -func (m *Int32_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Int32_Data.Marshal(b, m, deterministic) +func (m *RawMessageData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RawMessageData_Data.Marshal(b, m, deterministic) } -func (dst *Int32_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_Int32_Data.Merge(dst, src) +func (dst *RawMessageData_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawMessageData_Data.Merge(dst, src) } -func (m *Int32_Data) XXX_Size() int { - return xxx_messageInfo_Int32_Data.Size(m) +func (m *RawMessageData_Data) XXX_Size() int { + return xxx_messageInfo_RawMessageData_Data.Size(m) } -func (m *Int32_Data) XXX_DiscardUnknown() { - xxx_messageInfo_Int32_Data.DiscardUnknown(m) +func (m *RawMessageData_Data) XXX_DiscardUnknown() { + xxx_messageInfo_RawMessageData_Data.DiscardUnknown(m) } -var xxx_messageInfo_Int32_Data proto.InternalMessageInfo +var xxx_messageInfo_RawMessageData_Data proto.InternalMessageInfo -func (m *Int32_Data) GetV() int32 { +func (m *RawMessageData_Data) GetState() int32 { if m != nil { - return m.V + return m.State } return 0 } -type Int32 struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *Int32_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Int32) Reset() { *m = Int32{} } -func (m *Int32) String() string { return proto.CompactTextString(m) } -func (*Int32) ProtoMessage() {} -func (*Int32) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{8} -} -func (m *Int32) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Int32.Unmarshal(m, b) -} -func (m *Int32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Int32.Marshal(b, m, deterministic) -} -func (dst *Int32) XXX_Merge(src proto.Message) { - xxx_messageInfo_Int32.Merge(dst, src) -} -func (m *Int32) XXX_Size() int { - return xxx_messageInfo_Int32.Size(m) -} -func (m *Int32) XXX_DiscardUnknown() { - xxx_messageInfo_Int32.DiscardUnknown(m) -} - -var xxx_messageInfo_Int32 proto.InternalMessageInfo - -func (m *Int32) GetConstructor() TLConstructor { +func (m *RawMessageData_Data) GetResState() int32 { if m != nil { - return m.Constructor + return m.ResState } - return TLConstructor_CRC32_UNKNOWN + return 0 } -func (m *Int32) GetData2() *Int32_Data { +func (m *RawMessageData_Data) GetClientConnId() int64 { if m != nil { - return m.Data2 + return m.ClientConnId } - return nil -} - -// int32 v:int = Int32; -type TLInt32 struct { - Data2 *Int32_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLInt32) Reset() { *m = TLInt32{} } -func (m *TLInt32) String() string { return proto.CompactTextString(m) } -func (*TLInt32) ProtoMessage() {} -func (*TLInt32) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{9} -} -func (m *TLInt32) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLInt32.Unmarshal(m, b) -} -func (m *TLInt32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLInt32.Marshal(b, m, deterministic) -} -func (dst *TLInt32) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLInt32.Merge(dst, src) -} -func (m *TLInt32) XXX_Size() int { - return xxx_messageInfo_TLInt32.Size(m) -} -func (m *TLInt32) XXX_DiscardUnknown() { - xxx_messageInfo_TLInt32.DiscardUnknown(m) + return 0 } -var xxx_messageInfo_TLInt32 proto.InternalMessageInfo - -func (m *TLInt32) GetData2() *Int32_Data { +func (m *RawMessageData_Data) GetCtx() *HandshakeContext { if m != nil { - return m.Data2 + return m.Ctx } return nil } -// ///////////////////////////////////////////////////////////////////////////// -// AuthKeyInfo <-- -// + TL_authKeyInfo -// -type AuthKeyInfo_Data struct { - AuthKeyId int64 `protobuf:"varint,1,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` - AuthKey []byte `protobuf:"bytes,2,opt,name=auth_key,json=authKey,proto3" json:"auth_key,omitempty"` - FutureSalt *FutureSalt `protobuf:"bytes,3,opt,name=future_salt,json=futureSalt,proto3" json:"future_salt,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AuthKeyInfo_Data) Reset() { *m = AuthKeyInfo_Data{} } -func (m *AuthKeyInfo_Data) String() string { return proto.CompactTextString(m) } -func (*AuthKeyInfo_Data) ProtoMessage() {} -func (*AuthKeyInfo_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{10} -} -func (m *AuthKeyInfo_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthKeyInfo_Data.Unmarshal(m, b) -} -func (m *AuthKeyInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthKeyInfo_Data.Marshal(b, m, deterministic) -} -func (dst *AuthKeyInfo_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthKeyInfo_Data.Merge(dst, src) -} -func (m *AuthKeyInfo_Data) XXX_Size() int { - return xxx_messageInfo_AuthKeyInfo_Data.Size(m) -} -func (m *AuthKeyInfo_Data) XXX_DiscardUnknown() { - xxx_messageInfo_AuthKeyInfo_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_AuthKeyInfo_Data proto.InternalMessageInfo - -func (m *AuthKeyInfo_Data) GetAuthKeyId() int64 { +func (m *RawMessageData_Data) GetAuthKeyId() int64 { if m != nil { return m.AuthKeyId } return 0 } -func (m *AuthKeyInfo_Data) GetAuthKey() []byte { +func (m *RawMessageData_Data) GetQuickAck() int32 { if m != nil { - return m.AuthKey + return m.QuickAck } - return nil + return 0 } -func (m *AuthKeyInfo_Data) GetFutureSalt() *FutureSalt { +func (m *RawMessageData_Data) GetConnType() int32 { if m != nil { - return m.FutureSalt + return m.ConnType } - return nil + return 0 } -type AuthKeyInfo struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *AuthKeyInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type RawMessageData struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *RawMessageData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *AuthKeyInfo) Reset() { *m = AuthKeyInfo{} } -func (m *AuthKeyInfo) String() string { return proto.CompactTextString(m) } -func (*AuthKeyInfo) ProtoMessage() {} -func (*AuthKeyInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{11} +func (m *RawMessageData) Reset() { *m = RawMessageData{} } +func (m *RawMessageData) String() string { return proto.CompactTextString(m) } +func (*RawMessageData) ProtoMessage() {} +func (*RawMessageData) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{8} } -func (m *AuthKeyInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthKeyInfo.Unmarshal(m, b) +func (m *RawMessageData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RawMessageData.Unmarshal(m, b) } -func (m *AuthKeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthKeyInfo.Marshal(b, m, deterministic) +func (m *RawMessageData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RawMessageData.Marshal(b, m, deterministic) } -func (dst *AuthKeyInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthKeyInfo.Merge(dst, src) +func (dst *RawMessageData) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawMessageData.Merge(dst, src) } -func (m *AuthKeyInfo) XXX_Size() int { - return xxx_messageInfo_AuthKeyInfo.Size(m) +func (m *RawMessageData) XXX_Size() int { + return xxx_messageInfo_RawMessageData.Size(m) } -func (m *AuthKeyInfo) XXX_DiscardUnknown() { - xxx_messageInfo_AuthKeyInfo.DiscardUnknown(m) +func (m *RawMessageData) XXX_DiscardUnknown() { + xxx_messageInfo_RawMessageData.DiscardUnknown(m) } -var xxx_messageInfo_AuthKeyInfo proto.InternalMessageInfo +var xxx_messageInfo_RawMessageData proto.InternalMessageInfo -func (m *AuthKeyInfo) GetConstructor() TLConstructor { +func (m *RawMessageData) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *AuthKeyInfo) GetData2() *AuthKeyInfo_Data { +func (m *RawMessageData) GetData2() *RawMessageData_Data { if m != nil { return m.Data2 } return nil } -// authKeyInfo flags:# auth_key_id:long auth_key:bytes future_salt:flags.0?FutureSalt= AuthKeyInfo; -type TLAuthKeyInfo struct { - Data2 *AuthKeyInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// handshakeData state:int res_state:int client_conn_id:long ctx:HandshakeContext = RawMessageData; +type TLHandshakeData struct { + Data2 *RawMessageData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLAuthKeyInfo) Reset() { *m = TLAuthKeyInfo{} } -func (m *TLAuthKeyInfo) String() string { return proto.CompactTextString(m) } -func (*TLAuthKeyInfo) ProtoMessage() {} -func (*TLAuthKeyInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{12} -} -func (m *TLAuthKeyInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLAuthKeyInfo.Unmarshal(m, b) +func (m *TLHandshakeData) Reset() { *m = TLHandshakeData{} } +func (m *TLHandshakeData) String() string { return proto.CompactTextString(m) } +func (*TLHandshakeData) ProtoMessage() {} +func (*TLHandshakeData) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{9} } -func (m *TLAuthKeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLAuthKeyInfo.Marshal(b, m, deterministic) +func (m *TLHandshakeData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHandshakeData.Unmarshal(m, b) } -func (dst *TLAuthKeyInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLAuthKeyInfo.Merge(dst, src) -} -func (m *TLAuthKeyInfo) XXX_Size() int { - return xxx_messageInfo_TLAuthKeyInfo.Size(m) -} -func (m *TLAuthKeyInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLAuthKeyInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_TLAuthKeyInfo proto.InternalMessageInfo - -func (m *TLAuthKeyInfo) GetData2() *AuthKeyInfo_Data { - if m != nil { - return m.Data2 - } - return nil -} - -// ///////////////////////////////////////////////////////////////////////////// -// ServerConnected <-- -// + TL_push_sessionServerConnected -// -type ServerConnected_Data struct { - SessionServerId int32 `protobuf:"varint,1,opt,name=session_server_id,json=sessionServerId,proto3" json:"session_server_id,omitempty"` - ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServerConnected_Data) Reset() { *m = ServerConnected_Data{} } -func (m *ServerConnected_Data) String() string { return proto.CompactTextString(m) } -func (*ServerConnected_Data) ProtoMessage() {} -func (*ServerConnected_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{13} -} -func (m *ServerConnected_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerConnected_Data.Unmarshal(m, b) -} -func (m *ServerConnected_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerConnected_Data.Marshal(b, m, deterministic) -} -func (dst *ServerConnected_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerConnected_Data.Merge(dst, src) -} -func (m *ServerConnected_Data) XXX_Size() int { - return xxx_messageInfo_ServerConnected_Data.Size(m) -} -func (m *ServerConnected_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ServerConnected_Data.DiscardUnknown(m) -} - -var xxx_messageInfo_ServerConnected_Data proto.InternalMessageInfo - -func (m *ServerConnected_Data) GetSessionServerId() int32 { - if m != nil { - return m.SessionServerId - } - return 0 -} - -func (m *ServerConnected_Data) GetServerName() string { - if m != nil { - return m.ServerName - } - return "" -} - -type ServerConnected struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ServerConnected_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServerConnected) Reset() { *m = ServerConnected{} } -func (m *ServerConnected) String() string { return proto.CompactTextString(m) } -func (*ServerConnected) ProtoMessage() {} -func (*ServerConnected) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{14} -} -func (m *ServerConnected) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerConnected.Unmarshal(m, b) -} -func (m *ServerConnected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerConnected.Marshal(b, m, deterministic) +func (m *TLHandshakeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHandshakeData.Marshal(b, m, deterministic) } -func (dst *ServerConnected) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerConnected.Merge(dst, src) +func (dst *TLHandshakeData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHandshakeData.Merge(dst, src) } -func (m *ServerConnected) XXX_Size() int { - return xxx_messageInfo_ServerConnected.Size(m) +func (m *TLHandshakeData) XXX_Size() int { + return xxx_messageInfo_TLHandshakeData.Size(m) } -func (m *ServerConnected) XXX_DiscardUnknown() { - xxx_messageInfo_ServerConnected.DiscardUnknown(m) +func (m *TLHandshakeData) XXX_DiscardUnknown() { + xxx_messageInfo_TLHandshakeData.DiscardUnknown(m) } -var xxx_messageInfo_ServerConnected proto.InternalMessageInfo - -func (m *ServerConnected) GetConstructor() TLConstructor { - if m != nil { - return m.Constructor - } - return TLConstructor_CRC32_UNKNOWN -} +var xxx_messageInfo_TLHandshakeData proto.InternalMessageInfo -func (m *ServerConnected) GetData2() *ServerConnected_Data { +func (m *TLHandshakeData) GetData2() *RawMessageData_Data { if m != nil { return m.Data2 } return nil } -// push.sessionServerConnected session_server_id:int server_name:string = ServerConnected; -type TLPushSessionServerConnected struct { - Data2 *ServerConnected_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// sessionMessageData auth_key_id:long quick_ack:int client_conn_id:long conn_type:int = RawMessageData; +type TLSessionMessageData struct { + Data2 *RawMessageData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLPushSessionServerConnected) Reset() { *m = TLPushSessionServerConnected{} } -func (m *TLPushSessionServerConnected) String() string { return proto.CompactTextString(m) } -func (*TLPushSessionServerConnected) ProtoMessage() {} -func (*TLPushSessionServerConnected) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{15} +func (m *TLSessionMessageData) Reset() { *m = TLSessionMessageData{} } +func (m *TLSessionMessageData) String() string { return proto.CompactTextString(m) } +func (*TLSessionMessageData) ProtoMessage() {} +func (*TLSessionMessageData) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{10} } -func (m *TLPushSessionServerConnected) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLPushSessionServerConnected.Unmarshal(m, b) +func (m *TLSessionMessageData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLSessionMessageData.Unmarshal(m, b) } -func (m *TLPushSessionServerConnected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLPushSessionServerConnected.Marshal(b, m, deterministic) +func (m *TLSessionMessageData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLSessionMessageData.Marshal(b, m, deterministic) } -func (dst *TLPushSessionServerConnected) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLPushSessionServerConnected.Merge(dst, src) +func (dst *TLSessionMessageData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLSessionMessageData.Merge(dst, src) } -func (m *TLPushSessionServerConnected) XXX_Size() int { - return xxx_messageInfo_TLPushSessionServerConnected.Size(m) +func (m *TLSessionMessageData) XXX_Size() int { + return xxx_messageInfo_TLSessionMessageData.Size(m) } -func (m *TLPushSessionServerConnected) XXX_DiscardUnknown() { - xxx_messageInfo_TLPushSessionServerConnected.DiscardUnknown(m) +func (m *TLSessionMessageData) XXX_DiscardUnknown() { + xxx_messageInfo_TLSessionMessageData.DiscardUnknown(m) } -var xxx_messageInfo_TLPushSessionServerConnected proto.InternalMessageInfo +var xxx_messageInfo_TLSessionMessageData proto.InternalMessageInfo -func (m *TLPushSessionServerConnected) GetData2() *ServerConnected_Data { +func (m *TLSessionMessageData) GetData2() *RawMessageData_Data { if m != nil { return m.Data2 } @@ -747,174 +557,198 @@ func (m *TLPushSessionServerConnected) GetData2() *ServerConnected_Data { } // ///////////////////////////////////////////////////////////////////////////// -// HandshakeContext <-- -// + TL_handshakeContext +// ClientSession <-- +// + TL_clientSessionInfo // -type HandshakeContext_Data struct { - Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` - NewNonce []byte `protobuf:"bytes,3,opt,name=new_nonce,json=newNonce,proto3" json:"new_nonce,omitempty"` - A []byte `protobuf:"bytes,4,opt,name=a,proto3" json:"a,omitempty"` - P []byte `protobuf:"bytes,5,opt,name=p,proto3" json:"p,omitempty"` - AuthKeyId int64 `protobuf:"varint,6,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` - AuthKey []byte `protobuf:"bytes,7,opt,name=auth_key,json=authKey,proto3" json:"auth_key,omitempty"` +type ClientSession_Data struct { + AuthKeyId int64 `protobuf:"varint,1,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` + Layer int32 `protobuf:"varint,3,opt,name=layer,proto3" json:"layer,omitempty"` + ApiId int32 `protobuf:"varint,4,opt,name=api_id,json=apiId,proto3" json:"api_id,omitempty"` + DeviceModel string `protobuf:"bytes,5,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"` + SystemVersion string `protobuf:"bytes,6,opt,name=system_version,json=systemVersion,proto3" json:"system_version,omitempty"` + AppVersion string `protobuf:"bytes,7,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` + SystemLangCode string `protobuf:"bytes,8,opt,name=system_lang_code,json=systemLangCode,proto3" json:"system_lang_code,omitempty"` + LangPack string `protobuf:"bytes,9,opt,name=lang_pack,json=langPack,proto3" json:"lang_pack,omitempty"` + LangCode string `protobuf:"bytes,10,opt,name=lang_code,json=langCode,proto3" json:"lang_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *HandshakeContext_Data) Reset() { *m = HandshakeContext_Data{} } -func (m *HandshakeContext_Data) String() string { return proto.CompactTextString(m) } -func (*HandshakeContext_Data) ProtoMessage() {} -func (*HandshakeContext_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{16} +func (m *ClientSession_Data) Reset() { *m = ClientSession_Data{} } +func (m *ClientSession_Data) String() string { return proto.CompactTextString(m) } +func (*ClientSession_Data) ProtoMessage() {} +func (*ClientSession_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{11} } -func (m *HandshakeContext_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HandshakeContext_Data.Unmarshal(m, b) +func (m *ClientSession_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientSession_Data.Unmarshal(m, b) } -func (m *HandshakeContext_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HandshakeContext_Data.Marshal(b, m, deterministic) +func (m *ClientSession_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientSession_Data.Marshal(b, m, deterministic) } -func (dst *HandshakeContext_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_HandshakeContext_Data.Merge(dst, src) +func (dst *ClientSession_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientSession_Data.Merge(dst, src) } -func (m *HandshakeContext_Data) XXX_Size() int { - return xxx_messageInfo_HandshakeContext_Data.Size(m) +func (m *ClientSession_Data) XXX_Size() int { + return xxx_messageInfo_ClientSession_Data.Size(m) } -func (m *HandshakeContext_Data) XXX_DiscardUnknown() { - xxx_messageInfo_HandshakeContext_Data.DiscardUnknown(m) +func (m *ClientSession_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ClientSession_Data.DiscardUnknown(m) } -var xxx_messageInfo_HandshakeContext_Data proto.InternalMessageInfo +var xxx_messageInfo_ClientSession_Data proto.InternalMessageInfo -func (m *HandshakeContext_Data) GetNonce() []byte { +func (m *ClientSession_Data) GetAuthKeyId() int64 { if m != nil { - return m.Nonce + return m.AuthKeyId } - return nil + return 0 } -func (m *HandshakeContext_Data) GetServerNonce() []byte { +func (m *ClientSession_Data) GetIp() string { if m != nil { - return m.ServerNonce + return m.Ip } - return nil + return "" } -func (m *HandshakeContext_Data) GetNewNonce() []byte { +func (m *ClientSession_Data) GetLayer() int32 { if m != nil { - return m.NewNonce + return m.Layer } - return nil + return 0 } -func (m *HandshakeContext_Data) GetA() []byte { +func (m *ClientSession_Data) GetApiId() int32 { if m != nil { - return m.A + return m.ApiId } - return nil + return 0 } -func (m *HandshakeContext_Data) GetP() []byte { +func (m *ClientSession_Data) GetDeviceModel() string { if m != nil { - return m.P + return m.DeviceModel } - return nil + return "" } -func (m *HandshakeContext_Data) GetAuthKeyId() int64 { +func (m *ClientSession_Data) GetSystemVersion() string { if m != nil { - return m.AuthKeyId + return m.SystemVersion } - return 0 + return "" } -func (m *HandshakeContext_Data) GetAuthKey() []byte { +func (m *ClientSession_Data) GetAppVersion() string { if m != nil { - return m.AuthKey + return m.AppVersion } - return nil + return "" } -type HandshakeContext struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *HandshakeContext_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ClientSession_Data) GetSystemLangCode() string { + if m != nil { + return m.SystemLangCode + } + return "" } -func (m *HandshakeContext) Reset() { *m = HandshakeContext{} } -func (m *HandshakeContext) String() string { return proto.CompactTextString(m) } -func (*HandshakeContext) ProtoMessage() {} -func (*HandshakeContext) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{17} +func (m *ClientSession_Data) GetLangPack() string { + if m != nil { + return m.LangPack + } + return "" } -func (m *HandshakeContext) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HandshakeContext.Unmarshal(m, b) + +func (m *ClientSession_Data) GetLangCode() string { + if m != nil { + return m.LangCode + } + return "" } -func (m *HandshakeContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HandshakeContext.Marshal(b, m, deterministic) + +type ClientSession struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ClientSession_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (dst *HandshakeContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_HandshakeContext.Merge(dst, src) + +func (m *ClientSession) Reset() { *m = ClientSession{} } +func (m *ClientSession) String() string { return proto.CompactTextString(m) } +func (*ClientSession) ProtoMessage() {} +func (*ClientSession) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{12} } -func (m *HandshakeContext) XXX_Size() int { - return xxx_messageInfo_HandshakeContext.Size(m) +func (m *ClientSession) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientSession.Unmarshal(m, b) } -func (m *HandshakeContext) XXX_DiscardUnknown() { - xxx_messageInfo_HandshakeContext.DiscardUnknown(m) +func (m *ClientSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientSession.Marshal(b, m, deterministic) +} +func (dst *ClientSession) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientSession.Merge(dst, src) +} +func (m *ClientSession) XXX_Size() int { + return xxx_messageInfo_ClientSession.Size(m) +} +func (m *ClientSession) XXX_DiscardUnknown() { + xxx_messageInfo_ClientSession.DiscardUnknown(m) } -var xxx_messageInfo_HandshakeContext proto.InternalMessageInfo +var xxx_messageInfo_ClientSession proto.InternalMessageInfo -func (m *HandshakeContext) GetConstructor() TLConstructor { +func (m *ClientSession) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *HandshakeContext) GetData2() *HandshakeContext_Data { +func (m *ClientSession) GetData2() *ClientSession_Data { if m != nil { return m.Data2 } return nil } -// handshakeContext nonce:int128 server_nonce:int128 new_nonce:int256 a:bytes p:bytes auth_key_id:long auth_key:bytes = HandshakeContext; -type TLHandshakeContext struct { - Data2 *HandshakeContext_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// clientSessionInfo auth_key_id:long ip:string layer:int api_id:int device_model:string system_version:string app_version:string system_lang_code:string lang_pack:string lang_code:string = ClientSession; +type TLClientSessionInfo struct { + Data2 *ClientSession_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHandshakeContext) Reset() { *m = TLHandshakeContext{} } -func (m *TLHandshakeContext) String() string { return proto.CompactTextString(m) } -func (*TLHandshakeContext) ProtoMessage() {} -func (*TLHandshakeContext) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{18} +func (m *TLClientSessionInfo) Reset() { *m = TLClientSessionInfo{} } +func (m *TLClientSessionInfo) String() string { return proto.CompactTextString(m) } +func (*TLClientSessionInfo) ProtoMessage() {} +func (*TLClientSessionInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{13} } -func (m *TLHandshakeContext) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHandshakeContext.Unmarshal(m, b) +func (m *TLClientSessionInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLClientSessionInfo.Unmarshal(m, b) } -func (m *TLHandshakeContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHandshakeContext.Marshal(b, m, deterministic) +func (m *TLClientSessionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLClientSessionInfo.Marshal(b, m, deterministic) } -func (dst *TLHandshakeContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHandshakeContext.Merge(dst, src) +func (dst *TLClientSessionInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLClientSessionInfo.Merge(dst, src) } -func (m *TLHandshakeContext) XXX_Size() int { - return xxx_messageInfo_TLHandshakeContext.Size(m) +func (m *TLClientSessionInfo) XXX_Size() int { + return xxx_messageInfo_TLClientSessionInfo.Size(m) } -func (m *TLHandshakeContext) XXX_DiscardUnknown() { - xxx_messageInfo_TLHandshakeContext.DiscardUnknown(m) +func (m *TLClientSessionInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLClientSessionInfo.DiscardUnknown(m) } -var xxx_messageInfo_TLHandshakeContext proto.InternalMessageInfo +var xxx_messageInfo_TLClientSessionInfo proto.InternalMessageInfo -func (m *TLHandshakeContext) GetData2() *HandshakeContext_Data { +func (m *TLClientSessionInfo) GetData2() *ClientSession_Data { if m != nil { return m.Data2 } @@ -922,214 +756,301 @@ func (m *TLHandshakeContext) GetData2() *HandshakeContext_Data { } // ///////////////////////////////////////////////////////////////////////////// -// RawMessageData <-- -// + TL_handshakeData -// + TL_sessionMessageData +// HandshakeContext <-- +// + TL_handshakeContext // -type RawMessageData_Data struct { - State int32 `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` - ResState int32 `protobuf:"varint,2,opt,name=res_state,json=resState,proto3" json:"res_state,omitempty"` - ClientConnId int64 `protobuf:"varint,3,opt,name=client_conn_id,json=clientConnId,proto3" json:"client_conn_id,omitempty"` - Ctx *HandshakeContext `protobuf:"bytes,4,opt,name=ctx,proto3" json:"ctx,omitempty"` - AuthKeyId int64 `protobuf:"varint,5,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` - QuickAck int32 `protobuf:"varint,6,opt,name=quick_ack,json=quickAck,proto3" json:"quick_ack,omitempty"` - ConnType int32 `protobuf:"varint,7,opt,name=conn_type,json=connType,proto3" json:"conn_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type HandshakeContext_Data struct { + Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + ServerNonce []byte `protobuf:"bytes,2,opt,name=server_nonce,json=serverNonce,proto3" json:"server_nonce,omitempty"` + NewNonce []byte `protobuf:"bytes,3,opt,name=new_nonce,json=newNonce,proto3" json:"new_nonce,omitempty"` + A []byte `protobuf:"bytes,4,opt,name=a,proto3" json:"a,omitempty"` + P []byte `protobuf:"bytes,5,opt,name=p,proto3" json:"p,omitempty"` + AuthKeyId int64 `protobuf:"varint,6,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` + AuthKey []byte `protobuf:"bytes,7,opt,name=auth_key,json=authKey,proto3" json:"auth_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RawMessageData_Data) Reset() { *m = RawMessageData_Data{} } -func (m *RawMessageData_Data) String() string { return proto.CompactTextString(m) } -func (*RawMessageData_Data) ProtoMessage() {} -func (*RawMessageData_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{19} +func (m *HandshakeContext_Data) Reset() { *m = HandshakeContext_Data{} } +func (m *HandshakeContext_Data) String() string { return proto.CompactTextString(m) } +func (*HandshakeContext_Data) ProtoMessage() {} +func (*HandshakeContext_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{14} } -func (m *RawMessageData_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RawMessageData_Data.Unmarshal(m, b) +func (m *HandshakeContext_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HandshakeContext_Data.Unmarshal(m, b) } -func (m *RawMessageData_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RawMessageData_Data.Marshal(b, m, deterministic) +func (m *HandshakeContext_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HandshakeContext_Data.Marshal(b, m, deterministic) } -func (dst *RawMessageData_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawMessageData_Data.Merge(dst, src) +func (dst *HandshakeContext_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_HandshakeContext_Data.Merge(dst, src) } -func (m *RawMessageData_Data) XXX_Size() int { - return xxx_messageInfo_RawMessageData_Data.Size(m) +func (m *HandshakeContext_Data) XXX_Size() int { + return xxx_messageInfo_HandshakeContext_Data.Size(m) } -func (m *RawMessageData_Data) XXX_DiscardUnknown() { - xxx_messageInfo_RawMessageData_Data.DiscardUnknown(m) +func (m *HandshakeContext_Data) XXX_DiscardUnknown() { + xxx_messageInfo_HandshakeContext_Data.DiscardUnknown(m) } -var xxx_messageInfo_RawMessageData_Data proto.InternalMessageInfo +var xxx_messageInfo_HandshakeContext_Data proto.InternalMessageInfo -func (m *RawMessageData_Data) GetState() int32 { +func (m *HandshakeContext_Data) GetNonce() []byte { if m != nil { - return m.State + return m.Nonce } - return 0 + return nil } -func (m *RawMessageData_Data) GetResState() int32 { +func (m *HandshakeContext_Data) GetServerNonce() []byte { if m != nil { - return m.ResState + return m.ServerNonce } - return 0 + return nil } -func (m *RawMessageData_Data) GetClientConnId() int64 { +func (m *HandshakeContext_Data) GetNewNonce() []byte { if m != nil { - return m.ClientConnId + return m.NewNonce } - return 0 + return nil } -func (m *RawMessageData_Data) GetCtx() *HandshakeContext { +func (m *HandshakeContext_Data) GetA() []byte { if m != nil { - return m.Ctx + return m.A } return nil } -func (m *RawMessageData_Data) GetAuthKeyId() int64 { +func (m *HandshakeContext_Data) GetP() []byte { if m != nil { - return m.AuthKeyId + return m.P } - return 0 + return nil } -func (m *RawMessageData_Data) GetQuickAck() int32 { +func (m *HandshakeContext_Data) GetAuthKeyId() int64 { if m != nil { - return m.QuickAck + return m.AuthKeyId } return 0 } -func (m *RawMessageData_Data) GetConnType() int32 { +func (m *HandshakeContext_Data) GetAuthKey() []byte { if m != nil { - return m.ConnType + return m.AuthKey } - return 0 + return nil } -type RawMessageData struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *RawMessageData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type HandshakeContext struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *HandshakeContext_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RawMessageData) Reset() { *m = RawMessageData{} } -func (m *RawMessageData) String() string { return proto.CompactTextString(m) } -func (*RawMessageData) ProtoMessage() {} -func (*RawMessageData) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{20} +func (m *HandshakeContext) Reset() { *m = HandshakeContext{} } +func (m *HandshakeContext) String() string { return proto.CompactTextString(m) } +func (*HandshakeContext) ProtoMessage() {} +func (*HandshakeContext) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{15} } -func (m *RawMessageData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RawMessageData.Unmarshal(m, b) +func (m *HandshakeContext) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HandshakeContext.Unmarshal(m, b) } -func (m *RawMessageData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RawMessageData.Marshal(b, m, deterministic) +func (m *HandshakeContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HandshakeContext.Marshal(b, m, deterministic) } -func (dst *RawMessageData) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawMessageData.Merge(dst, src) +func (dst *HandshakeContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_HandshakeContext.Merge(dst, src) } -func (m *RawMessageData) XXX_Size() int { - return xxx_messageInfo_RawMessageData.Size(m) +func (m *HandshakeContext) XXX_Size() int { + return xxx_messageInfo_HandshakeContext.Size(m) } -func (m *RawMessageData) XXX_DiscardUnknown() { - xxx_messageInfo_RawMessageData.DiscardUnknown(m) +func (m *HandshakeContext) XXX_DiscardUnknown() { + xxx_messageInfo_HandshakeContext.DiscardUnknown(m) } -var xxx_messageInfo_RawMessageData proto.InternalMessageInfo +var xxx_messageInfo_HandshakeContext proto.InternalMessageInfo -func (m *RawMessageData) GetConstructor() TLConstructor { +func (m *HandshakeContext) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *RawMessageData) GetData2() *RawMessageData_Data { +func (m *HandshakeContext) GetData2() *HandshakeContext_Data { if m != nil { return m.Data2 } return nil } -// handshakeData state:int res_state:int client_conn_id:long ctx:HandshakeContext = RawMessageData; -type TLHandshakeData struct { - Data2 *RawMessageData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TLHandshakeData) Reset() { *m = TLHandshakeData{} } -func (m *TLHandshakeData) String() string { return proto.CompactTextString(m) } -func (*TLHandshakeData) ProtoMessage() {} -func (*TLHandshakeData) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{21} +// handshakeContext nonce:int128 server_nonce:int128 new_nonce:int256 a:bytes p:bytes auth_key_id:long auth_key:bytes = HandshakeContext; +type TLHandshakeContext struct { + Data2 *HandshakeContext_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLHandshakeData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLHandshakeData.Unmarshal(m, b) + +func (m *TLHandshakeContext) Reset() { *m = TLHandshakeContext{} } +func (m *TLHandshakeContext) String() string { return proto.CompactTextString(m) } +func (*TLHandshakeContext) ProtoMessage() {} +func (*TLHandshakeContext) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{16} } -func (m *TLHandshakeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLHandshakeData.Marshal(b, m, deterministic) +func (m *TLHandshakeContext) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLHandshakeContext.Unmarshal(m, b) } -func (dst *TLHandshakeData) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLHandshakeData.Merge(dst, src) +func (m *TLHandshakeContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLHandshakeContext.Marshal(b, m, deterministic) } -func (m *TLHandshakeData) XXX_Size() int { - return xxx_messageInfo_TLHandshakeData.Size(m) +func (dst *TLHandshakeContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLHandshakeContext.Merge(dst, src) } -func (m *TLHandshakeData) XXX_DiscardUnknown() { - xxx_messageInfo_TLHandshakeData.DiscardUnknown(m) +func (m *TLHandshakeContext) XXX_Size() int { + return xxx_messageInfo_TLHandshakeContext.Size(m) +} +func (m *TLHandshakeContext) XXX_DiscardUnknown() { + xxx_messageInfo_TLHandshakeContext.DiscardUnknown(m) } -var xxx_messageInfo_TLHandshakeData proto.InternalMessageInfo +var xxx_messageInfo_TLHandshakeContext proto.InternalMessageInfo -func (m *TLHandshakeData) GetData2() *RawMessageData_Data { +func (m *TLHandshakeContext) GetData2() *HandshakeContext_Data { if m != nil { return m.Data2 } return nil } -// sessionMessageData auth_key_id:long quick_ack:int client_conn_id:long conn_type:int = RawMessageData; -type TLSessionMessageData struct { - Data2 *RawMessageData_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// ///////////////////////////////////////////////////////////////////////////// +// Int32 <-- +// + TL_int32 +// +type Int32_Data struct { + V int32 `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLSessionMessageData) Reset() { *m = TLSessionMessageData{} } -func (m *TLSessionMessageData) String() string { return proto.CompactTextString(m) } -func (*TLSessionMessageData) ProtoMessage() {} -func (*TLSessionMessageData) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{22} +func (m *Int32_Data) Reset() { *m = Int32_Data{} } +func (m *Int32_Data) String() string { return proto.CompactTextString(m) } +func (*Int32_Data) ProtoMessage() {} +func (*Int32_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{17} } -func (m *TLSessionMessageData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLSessionMessageData.Unmarshal(m, b) +func (m *Int32_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Int32_Data.Unmarshal(m, b) } -func (m *TLSessionMessageData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLSessionMessageData.Marshal(b, m, deterministic) +func (m *Int32_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Int32_Data.Marshal(b, m, deterministic) } -func (dst *TLSessionMessageData) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLSessionMessageData.Merge(dst, src) +func (dst *Int32_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Int32_Data.Merge(dst, src) } -func (m *TLSessionMessageData) XXX_Size() int { - return xxx_messageInfo_TLSessionMessageData.Size(m) +func (m *Int32_Data) XXX_Size() int { + return xxx_messageInfo_Int32_Data.Size(m) } -func (m *TLSessionMessageData) XXX_DiscardUnknown() { - xxx_messageInfo_TLSessionMessageData.DiscardUnknown(m) +func (m *Int32_Data) XXX_DiscardUnknown() { + xxx_messageInfo_Int32_Data.DiscardUnknown(m) } -var xxx_messageInfo_TLSessionMessageData proto.InternalMessageInfo +var xxx_messageInfo_Int32_Data proto.InternalMessageInfo -func (m *TLSessionMessageData) GetData2() *RawMessageData_Data { +func (m *Int32_Data) GetV() int32 { + if m != nil { + return m.V + } + return 0 +} + +type Int32 struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *Int32_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Int32) Reset() { *m = Int32{} } +func (m *Int32) String() string { return proto.CompactTextString(m) } +func (*Int32) ProtoMessage() {} +func (*Int32) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{18} +} +func (m *Int32) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Int32.Unmarshal(m, b) +} +func (m *Int32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Int32.Marshal(b, m, deterministic) +} +func (dst *Int32) XXX_Merge(src proto.Message) { + xxx_messageInfo_Int32.Merge(dst, src) +} +func (m *Int32) XXX_Size() int { + return xxx_messageInfo_Int32.Size(m) +} +func (m *Int32) XXX_DiscardUnknown() { + xxx_messageInfo_Int32.DiscardUnknown(m) +} + +var xxx_messageInfo_Int32 proto.InternalMessageInfo + +func (m *Int32) GetConstructor() TLConstructor { + if m != nil { + return m.Constructor + } + return TLConstructor_CRC32_UNKNOWN +} + +func (m *Int32) GetData2() *Int32_Data { + if m != nil { + return m.Data2 + } + return nil +} + +// int32 v:int = Int32; +type TLInt32 struct { + Data2 *Int32_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLInt32) Reset() { *m = TLInt32{} } +func (m *TLInt32) String() string { return proto.CompactTextString(m) } +func (*TLInt32) ProtoMessage() {} +func (*TLInt32) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{19} +} +func (m *TLInt32) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLInt32.Unmarshal(m, b) +} +func (m *TLInt32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLInt32.Marshal(b, m, deterministic) +} +func (dst *TLInt32) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLInt32.Merge(dst, src) +} +func (m *TLInt32) XXX_Size() int { + return xxx_messageInfo_TLInt32.Size(m) +} +func (m *TLInt32) XXX_DiscardUnknown() { + xxx_messageInfo_TLInt32.DiscardUnknown(m) +} + +var xxx_messageInfo_TLInt32 proto.InternalMessageInfo + +func (m *TLInt32) GetData2() *Int32_Data { if m != nil { return m.Data2 } @@ -1151,7 +1072,7 @@ func (m *Int64_Data) Reset() { *m = Int64_Data{} } func (m *Int64_Data) String() string { return proto.CompactTextString(m) } func (*Int64_Data) ProtoMessage() {} func (*Int64_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{23} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{20} } func (m *Int64_Data) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Int64_Data.Unmarshal(m, b) @@ -1190,7 +1111,7 @@ func (m *Int64) Reset() { *m = Int64{} } func (m *Int64) String() string { return proto.CompactTextString(m) } func (*Int64) ProtoMessage() {} func (*Int64) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{24} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{21} } func (m *Int64) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Int64.Unmarshal(m, b) @@ -1236,7 +1157,7 @@ func (m *TLLong) Reset() { *m = TLLong{} } func (m *TLLong) String() string { return proto.CompactTextString(m) } func (*TLLong) ProtoMessage() {} func (*TLLong) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{25} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{22} } func (m *TLLong) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLLong.Unmarshal(m, b) @@ -1278,7 +1199,7 @@ func (m *String_Data) Reset() { *m = String_Data{} } func (m *String_Data) String() string { return proto.CompactTextString(m) } func (*String_Data) ProtoMessage() {} func (*String_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{26} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{23} } func (m *String_Data) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_String_Data.Unmarshal(m, b) @@ -1317,7 +1238,7 @@ func (m *String) Reset() { *m = String{} } func (m *String) String() string { return proto.CompactTextString(m) } func (*String) ProtoMessage() {} func (*String) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{27} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{24} } func (m *String) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_String.Unmarshal(m, b) @@ -1363,7 +1284,7 @@ func (m *TLString) Reset() { *m = TLString{} } func (m *TLString) String() string { return proto.CompactTextString(m) } func (*TLString) ProtoMessage() {} func (*TLString) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{28} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{25} } func (m *TLString) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLString.Unmarshal(m, b) @@ -1391,198 +1312,277 @@ func (m *TLString) GetData2() *String_Data { } // ///////////////////////////////////////////////////////////////////////////// -// ClientSession <-- -// + TL_clientSessionInfo +// AuthKeyInfo <-- +// + TL_authKeyInfo // -type ClientSession_Data struct { - AuthKeyId int64 `protobuf:"varint,1,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` - Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` - Layer int32 `protobuf:"varint,3,opt,name=layer,proto3" json:"layer,omitempty"` - ApiId int32 `protobuf:"varint,4,opt,name=api_id,json=apiId,proto3" json:"api_id,omitempty"` - DeviceModel string `protobuf:"bytes,5,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"` - SystemVersion string `protobuf:"bytes,6,opt,name=system_version,json=systemVersion,proto3" json:"system_version,omitempty"` - AppVersion string `protobuf:"bytes,7,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` - SystemLangCode string `protobuf:"bytes,8,opt,name=system_lang_code,json=systemLangCode,proto3" json:"system_lang_code,omitempty"` - LangPack string `protobuf:"bytes,9,opt,name=lang_pack,json=langPack,proto3" json:"lang_pack,omitempty"` - LangCode string `protobuf:"bytes,10,opt,name=lang_code,json=langCode,proto3" json:"lang_code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type AuthKeyInfo_Data struct { + AuthKeyId int64 `protobuf:"varint,1,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` + AuthKey []byte `protobuf:"bytes,2,opt,name=auth_key,json=authKey,proto3" json:"auth_key,omitempty"` + FutureSalt *FutureSalt `protobuf:"bytes,3,opt,name=future_salt,json=futureSalt,proto3" json:"future_salt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ClientSession_Data) Reset() { *m = ClientSession_Data{} } -func (m *ClientSession_Data) String() string { return proto.CompactTextString(m) } -func (*ClientSession_Data) ProtoMessage() {} -func (*ClientSession_Data) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{29} +func (m *AuthKeyInfo_Data) Reset() { *m = AuthKeyInfo_Data{} } +func (m *AuthKeyInfo_Data) String() string { return proto.CompactTextString(m) } +func (*AuthKeyInfo_Data) ProtoMessage() {} +func (*AuthKeyInfo_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{26} } -func (m *ClientSession_Data) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClientSession_Data.Unmarshal(m, b) +func (m *AuthKeyInfo_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AuthKeyInfo_Data.Unmarshal(m, b) } -func (m *ClientSession_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClientSession_Data.Marshal(b, m, deterministic) +func (m *AuthKeyInfo_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AuthKeyInfo_Data.Marshal(b, m, deterministic) } -func (dst *ClientSession_Data) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClientSession_Data.Merge(dst, src) +func (dst *AuthKeyInfo_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthKeyInfo_Data.Merge(dst, src) } -func (m *ClientSession_Data) XXX_Size() int { - return xxx_messageInfo_ClientSession_Data.Size(m) +func (m *AuthKeyInfo_Data) XXX_Size() int { + return xxx_messageInfo_AuthKeyInfo_Data.Size(m) } -func (m *ClientSession_Data) XXX_DiscardUnknown() { - xxx_messageInfo_ClientSession_Data.DiscardUnknown(m) +func (m *AuthKeyInfo_Data) XXX_DiscardUnknown() { + xxx_messageInfo_AuthKeyInfo_Data.DiscardUnknown(m) } -var xxx_messageInfo_ClientSession_Data proto.InternalMessageInfo +var xxx_messageInfo_AuthKeyInfo_Data proto.InternalMessageInfo -func (m *ClientSession_Data) GetAuthKeyId() int64 { +func (m *AuthKeyInfo_Data) GetAuthKeyId() int64 { if m != nil { return m.AuthKeyId } return 0 } -func (m *ClientSession_Data) GetIp() string { - if m != nil { - return m.Ip - } - return "" -} - -func (m *ClientSession_Data) GetLayer() int32 { +func (m *AuthKeyInfo_Data) GetAuthKey() []byte { if m != nil { - return m.Layer + return m.AuthKey } - return 0 + return nil } -func (m *ClientSession_Data) GetApiId() int32 { +func (m *AuthKeyInfo_Data) GetFutureSalt() *FutureSalt { if m != nil { - return m.ApiId + return m.FutureSalt } - return 0 + return nil } -func (m *ClientSession_Data) GetDeviceModel() string { - if m != nil { - return m.DeviceModel - } - return "" +type AuthKeyInfo struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *AuthKeyInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ClientSession_Data) GetSystemVersion() string { +func (m *AuthKeyInfo) Reset() { *m = AuthKeyInfo{} } +func (m *AuthKeyInfo) String() string { return proto.CompactTextString(m) } +func (*AuthKeyInfo) ProtoMessage() {} +func (*AuthKeyInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{27} +} +func (m *AuthKeyInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AuthKeyInfo.Unmarshal(m, b) +} +func (m *AuthKeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AuthKeyInfo.Marshal(b, m, deterministic) +} +func (dst *AuthKeyInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthKeyInfo.Merge(dst, src) +} +func (m *AuthKeyInfo) XXX_Size() int { + return xxx_messageInfo_AuthKeyInfo.Size(m) +} +func (m *AuthKeyInfo) XXX_DiscardUnknown() { + xxx_messageInfo_AuthKeyInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthKeyInfo proto.InternalMessageInfo + +func (m *AuthKeyInfo) GetConstructor() TLConstructor { if m != nil { - return m.SystemVersion + return m.Constructor } - return "" + return TLConstructor_CRC32_UNKNOWN } -func (m *ClientSession_Data) GetAppVersion() string { +func (m *AuthKeyInfo) GetData2() *AuthKeyInfo_Data { if m != nil { - return m.AppVersion + return m.Data2 } - return "" + return nil } -func (m *ClientSession_Data) GetSystemLangCode() string { +// authKeyInfo flags:# auth_key_id:long auth_key:bytes future_salt:flags.0?FutureSalt= AuthKeyInfo; +type TLAuthKeyInfo struct { + Data2 *AuthKeyInfo_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TLAuthKeyInfo) Reset() { *m = TLAuthKeyInfo{} } +func (m *TLAuthKeyInfo) String() string { return proto.CompactTextString(m) } +func (*TLAuthKeyInfo) ProtoMessage() {} +func (*TLAuthKeyInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{28} +} +func (m *TLAuthKeyInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLAuthKeyInfo.Unmarshal(m, b) +} +func (m *TLAuthKeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLAuthKeyInfo.Marshal(b, m, deterministic) +} +func (dst *TLAuthKeyInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLAuthKeyInfo.Merge(dst, src) +} +func (m *TLAuthKeyInfo) XXX_Size() int { + return xxx_messageInfo_TLAuthKeyInfo.Size(m) +} +func (m *TLAuthKeyInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TLAuthKeyInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_TLAuthKeyInfo proto.InternalMessageInfo + +func (m *TLAuthKeyInfo) GetData2() *AuthKeyInfo_Data { if m != nil { - return m.SystemLangCode + return m.Data2 } - return "" + return nil } -func (m *ClientSession_Data) GetLangPack() string { +// ///////////////////////////////////////////////////////////////////////////// +// ServerConnected <-- +// + TL_push_sessionServerConnected +// +type ServerConnected_Data struct { + SessionServerId int32 `protobuf:"varint,1,opt,name=session_server_id,json=sessionServerId,proto3" json:"session_server_id,omitempty"` + ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServerConnected_Data) Reset() { *m = ServerConnected_Data{} } +func (m *ServerConnected_Data) String() string { return proto.CompactTextString(m) } +func (*ServerConnected_Data) ProtoMessage() {} +func (*ServerConnected_Data) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{29} +} +func (m *ServerConnected_Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ServerConnected_Data.Unmarshal(m, b) +} +func (m *ServerConnected_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ServerConnected_Data.Marshal(b, m, deterministic) +} +func (dst *ServerConnected_Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerConnected_Data.Merge(dst, src) +} +func (m *ServerConnected_Data) XXX_Size() int { + return xxx_messageInfo_ServerConnected_Data.Size(m) +} +func (m *ServerConnected_Data) XXX_DiscardUnknown() { + xxx_messageInfo_ServerConnected_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_ServerConnected_Data proto.InternalMessageInfo + +func (m *ServerConnected_Data) GetSessionServerId() int32 { if m != nil { - return m.LangPack + return m.SessionServerId } - return "" + return 0 } -func (m *ClientSession_Data) GetLangCode() string { +func (m *ServerConnected_Data) GetServerName() string { if m != nil { - return m.LangCode + return m.ServerName } return "" } -type ClientSession struct { - Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` - Data2 *ClientSession_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ServerConnected struct { + Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=mtproto.TLConstructor" json:"constructor,omitempty"` + Data2 *ServerConnected_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ClientSession) Reset() { *m = ClientSession{} } -func (m *ClientSession) String() string { return proto.CompactTextString(m) } -func (*ClientSession) ProtoMessage() {} -func (*ClientSession) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{30} +func (m *ServerConnected) Reset() { *m = ServerConnected{} } +func (m *ServerConnected) String() string { return proto.CompactTextString(m) } +func (*ServerConnected) ProtoMessage() {} +func (*ServerConnected) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{30} } -func (m *ClientSession) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClientSession.Unmarshal(m, b) +func (m *ServerConnected) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ServerConnected.Unmarshal(m, b) } -func (m *ClientSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClientSession.Marshal(b, m, deterministic) +func (m *ServerConnected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ServerConnected.Marshal(b, m, deterministic) } -func (dst *ClientSession) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClientSession.Merge(dst, src) +func (dst *ServerConnected) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerConnected.Merge(dst, src) } -func (m *ClientSession) XXX_Size() int { - return xxx_messageInfo_ClientSession.Size(m) +func (m *ServerConnected) XXX_Size() int { + return xxx_messageInfo_ServerConnected.Size(m) } -func (m *ClientSession) XXX_DiscardUnknown() { - xxx_messageInfo_ClientSession.DiscardUnknown(m) +func (m *ServerConnected) XXX_DiscardUnknown() { + xxx_messageInfo_ServerConnected.DiscardUnknown(m) } -var xxx_messageInfo_ClientSession proto.InternalMessageInfo +var xxx_messageInfo_ServerConnected proto.InternalMessageInfo -func (m *ClientSession) GetConstructor() TLConstructor { +func (m *ServerConnected) GetConstructor() TLConstructor { if m != nil { return m.Constructor } return TLConstructor_CRC32_UNKNOWN } -func (m *ClientSession) GetData2() *ClientSession_Data { +func (m *ServerConnected) GetData2() *ServerConnected_Data { if m != nil { return m.Data2 } return nil } -// clientSessionInfo auth_key_id:long ip:string layer:int api_id:int device_model:string system_version:string app_version:string system_lang_code:string lang_pack:string lang_code:string = ClientSession; -type TLClientSessionInfo struct { - Data2 *ClientSession_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// push.sessionServerConnected session_server_id:int server_name:string = ServerConnected; +type TLPushSessionServerConnected struct { + Data2 *ServerConnected_Data `protobuf:"bytes,2,opt,name=data2,proto3" json:"data2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TLClientSessionInfo) Reset() { *m = TLClientSessionInfo{} } -func (m *TLClientSessionInfo) String() string { return proto.CompactTextString(m) } -func (*TLClientSessionInfo) ProtoMessage() {} -func (*TLClientSessionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{31} +func (m *TLPushSessionServerConnected) Reset() { *m = TLPushSessionServerConnected{} } +func (m *TLPushSessionServerConnected) String() string { return proto.CompactTextString(m) } +func (*TLPushSessionServerConnected) ProtoMessage() {} +func (*TLPushSessionServerConnected) Descriptor() ([]byte, []int) { + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{31} } -func (m *TLClientSessionInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TLClientSessionInfo.Unmarshal(m, b) +func (m *TLPushSessionServerConnected) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TLPushSessionServerConnected.Unmarshal(m, b) } -func (m *TLClientSessionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TLClientSessionInfo.Marshal(b, m, deterministic) +func (m *TLPushSessionServerConnected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TLPushSessionServerConnected.Marshal(b, m, deterministic) } -func (dst *TLClientSessionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TLClientSessionInfo.Merge(dst, src) +func (dst *TLPushSessionServerConnected) XXX_Merge(src proto.Message) { + xxx_messageInfo_TLPushSessionServerConnected.Merge(dst, src) } -func (m *TLClientSessionInfo) XXX_Size() int { - return xxx_messageInfo_TLClientSessionInfo.Size(m) +func (m *TLPushSessionServerConnected) XXX_Size() int { + return xxx_messageInfo_TLPushSessionServerConnected.Size(m) } -func (m *TLClientSessionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TLClientSessionInfo.DiscardUnknown(m) +func (m *TLPushSessionServerConnected) XXX_DiscardUnknown() { + xxx_messageInfo_TLPushSessionServerConnected.DiscardUnknown(m) } -var xxx_messageInfo_TLClientSessionInfo proto.InternalMessageInfo +var xxx_messageInfo_TLPushSessionServerConnected proto.InternalMessageInfo -func (m *TLClientSessionInfo) GetData2() *ClientSession_Data { +func (m *TLPushSessionServerConnected) GetData2() *ServerConnected_Data { if m != nil { return m.Data2 } @@ -1602,7 +1602,7 @@ func (m *TLSessionSetClientSessionInfo) Reset() { *m = TLSessionSetClien func (m *TLSessionSetClientSessionInfo) String() string { return proto.CompactTextString(m) } func (*TLSessionSetClientSessionInfo) ProtoMessage() {} func (*TLSessionSetClientSessionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{32} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{32} } func (m *TLSessionSetClientSessionInfo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionSetClientSessionInfo.Unmarshal(m, b) @@ -1643,7 +1643,7 @@ func (m *TLSessionGetAuthorizations) Reset() { *m = TLSessionGetAuthoriz func (m *TLSessionGetAuthorizations) String() string { return proto.CompactTextString(m) } func (*TLSessionGetAuthorizations) ProtoMessage() {} func (*TLSessionGetAuthorizations) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{33} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{33} } func (m *TLSessionGetAuthorizations) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionGetAuthorizations.Unmarshal(m, b) @@ -1691,7 +1691,7 @@ func (m *TLSessionResetAuthorization) Reset() { *m = TLSessionResetAutho func (m *TLSessionResetAuthorization) String() string { return proto.CompactTextString(m) } func (*TLSessionResetAuthorization) ProtoMessage() {} func (*TLSessionResetAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{34} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{34} } func (m *TLSessionResetAuthorization) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionResetAuthorization.Unmarshal(m, b) @@ -1738,7 +1738,7 @@ func (m *TLSessionGetLayer) Reset() { *m = TLSessionGetLayer{} } func (m *TLSessionGetLayer) String() string { return proto.CompactTextString(m) } func (*TLSessionGetLayer) ProtoMessage() {} func (*TLSessionGetLayer) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{35} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{35} } func (m *TLSessionGetLayer) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionGetLayer.Unmarshal(m, b) @@ -1778,7 +1778,7 @@ func (m *TLSessionGetLangCode) Reset() { *m = TLSessionGetLangCode{} } func (m *TLSessionGetLangCode) String() string { return proto.CompactTextString(m) } func (*TLSessionGetLangCode) ProtoMessage() {} func (*TLSessionGetLangCode) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{36} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{36} } func (m *TLSessionGetLangCode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionGetLangCode.Unmarshal(m, b) @@ -1818,7 +1818,7 @@ func (m *TLSessionGetUserId) Reset() { *m = TLSessionGetUserId{} } func (m *TLSessionGetUserId) String() string { return proto.CompactTextString(m) } func (*TLSessionGetUserId) ProtoMessage() {} func (*TLSessionGetUserId) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{37} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{37} } func (m *TLSessionGetUserId) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionGetUserId.Unmarshal(m, b) @@ -1860,7 +1860,7 @@ func (m *TLSessionGetPushSessionId) Reset() { *m = TLSessionGetPushSessi func (m *TLSessionGetPushSessionId) String() string { return proto.CompactTextString(m) } func (*TLSessionGetPushSessionId) ProtoMessage() {} func (*TLSessionGetPushSessionId) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{38} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{38} } func (m *TLSessionGetPushSessionId) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionGetPushSessionId.Unmarshal(m, b) @@ -1915,7 +1915,7 @@ func (m *TLSessionGetFutureSalts) Reset() { *m = TLSessionGetFutureSalts func (m *TLSessionGetFutureSalts) String() string { return proto.CompactTextString(m) } func (*TLSessionGetFutureSalts) ProtoMessage() {} func (*TLSessionGetFutureSalts) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{39} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{39} } func (m *TLSessionGetFutureSalts) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionGetFutureSalts.Unmarshal(m, b) @@ -1962,7 +1962,7 @@ func (m *TLSessionQueryAuthKey) Reset() { *m = TLSessionQueryAuthKey{} } func (m *TLSessionQueryAuthKey) String() string { return proto.CompactTextString(m) } func (*TLSessionQueryAuthKey) ProtoMessage() {} func (*TLSessionQueryAuthKey) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{40} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{40} } func (m *TLSessionQueryAuthKey) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionQueryAuthKey.Unmarshal(m, b) @@ -2002,7 +2002,7 @@ func (m *TLSessionSetAuthKey) Reset() { *m = TLSessionSetAuthKey{} } func (m *TLSessionSetAuthKey) String() string { return proto.CompactTextString(m) } func (*TLSessionSetAuthKey) ProtoMessage() {} func (*TLSessionSetAuthKey) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{41} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{41} } func (m *TLSessionSetAuthKey) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionSetAuthKey.Unmarshal(m, b) @@ -2043,7 +2043,7 @@ func (m *TLSessionBindAuthKeyUser) Reset() { *m = TLSessionBindAuthKeyUs func (m *TLSessionBindAuthKeyUser) String() string { return proto.CompactTextString(m) } func (*TLSessionBindAuthKeyUser) ProtoMessage() {} func (*TLSessionBindAuthKeyUser) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{42} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{42} } func (m *TLSessionBindAuthKeyUser) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionBindAuthKeyUser.Unmarshal(m, b) @@ -2091,7 +2091,7 @@ func (m *TLSessionUnbindAuthKeyUser) Reset() { *m = TLSessionUnbindAuthK func (m *TLSessionUnbindAuthKeyUser) String() string { return proto.CompactTextString(m) } func (*TLSessionUnbindAuthKeyUser) ProtoMessage() {} func (*TLSessionUnbindAuthKeyUser) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{43} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{43} } func (m *TLSessionUnbindAuthKeyUser) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSessionUnbindAuthKeyUser.Unmarshal(m, b) @@ -2141,7 +2141,7 @@ func (m *TLSyncSyncUpdates) Reset() { *m = TLSyncSyncUpdates{} } func (m *TLSyncSyncUpdates) String() string { return proto.CompactTextString(m) } func (*TLSyncSyncUpdates) ProtoMessage() {} func (*TLSyncSyncUpdates) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{44} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{44} } func (m *TLSyncSyncUpdates) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSyncSyncUpdates.Unmarshal(m, b) @@ -2203,7 +2203,7 @@ func (m *TLSyncPushUpdates) Reset() { *m = TLSyncPushUpdates{} } func (m *TLSyncPushUpdates) String() string { return proto.CompactTextString(m) } func (*TLSyncPushUpdates) ProtoMessage() {} func (*TLSyncPushUpdates) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{45} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{45} } func (m *TLSyncPushUpdates) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSyncPushUpdates.Unmarshal(m, b) @@ -2254,7 +2254,7 @@ func (m *TLSyncSyncChannelUpdates) Reset() { *m = TLSyncSyncChannelUpdat func (m *TLSyncSyncChannelUpdates) String() string { return proto.CompactTextString(m) } func (*TLSyncSyncChannelUpdates) ProtoMessage() {} func (*TLSyncSyncChannelUpdates) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{46} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{46} } func (m *TLSyncSyncChannelUpdates) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSyncSyncChannelUpdates.Unmarshal(m, b) @@ -2324,7 +2324,7 @@ func (m *TLSyncPushChannelUpdates) Reset() { *m = TLSyncPushChannelUpdat func (m *TLSyncPushChannelUpdates) String() string { return proto.CompactTextString(m) } func (*TLSyncPushChannelUpdates) ProtoMessage() {} func (*TLSyncPushChannelUpdates) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{47} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{47} } func (m *TLSyncPushChannelUpdates) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSyncPushChannelUpdates.Unmarshal(m, b) @@ -2381,7 +2381,7 @@ func (m *TLSyncPushRpcResult) Reset() { *m = TLSyncPushRpcResult{} } func (m *TLSyncPushRpcResult) String() string { return proto.CompactTextString(m) } func (*TLSyncPushRpcResult) ProtoMessage() {} func (*TLSyncPushRpcResult) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{48} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{48} } func (m *TLSyncPushRpcResult) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSyncPushRpcResult.Unmarshal(m, b) @@ -2443,7 +2443,7 @@ func (m *TLSyncGetState) Reset() { *m = TLSyncGetState{} } func (m *TLSyncGetState) String() string { return proto.CompactTextString(m) } func (*TLSyncGetState) ProtoMessage() {} func (*TLSyncGetState) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{49} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{49} } func (m *TLSyncGetState) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSyncGetState.Unmarshal(m, b) @@ -2495,7 +2495,7 @@ func (m *TLSyncGetDifference) Reset() { *m = TLSyncGetDifference{} } func (m *TLSyncGetDifference) String() string { return proto.CompactTextString(m) } func (*TLSyncGetDifference) ProtoMessage() {} func (*TLSyncGetDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{50} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{50} } func (m *TLSyncGetDifference) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSyncGetDifference.Unmarshal(m, b) @@ -2576,7 +2576,7 @@ func (m *TLSyncGetChannelDifference) Reset() { *m = TLSyncGetChannelDiff func (m *TLSyncGetChannelDifference) String() string { return proto.CompactTextString(m) } func (*TLSyncGetChannelDifference) ProtoMessage() {} func (*TLSyncGetChannelDifference) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{51} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{51} } func (m *TLSyncGetChannelDifference) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLSyncGetChannelDifference.Unmarshal(m, b) @@ -2658,7 +2658,7 @@ func (m *TLPushConnectToSessionServer) Reset() { *m = TLPushConnectToSes func (m *TLPushConnectToSessionServer) String() string { return proto.CompactTextString(m) } func (*TLPushConnectToSessionServer) ProtoMessage() {} func (*TLPushConnectToSessionServer) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{52} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{52} } func (m *TLPushConnectToSessionServer) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPushConnectToSessionServer.Unmarshal(m, b) @@ -2700,7 +2700,7 @@ func (m *TLPushPushUpdatesData) Reset() { *m = TLPushPushUpdatesData{} } func (m *TLPushPushUpdatesData) String() string { return proto.CompactTextString(m) } func (*TLPushPushUpdatesData) ProtoMessage() {} func (*TLPushPushUpdatesData) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{53} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{53} } func (m *TLPushPushUpdatesData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPushPushUpdatesData.Unmarshal(m, b) @@ -2755,7 +2755,7 @@ func (m *TLPushPushRpcResultData) Reset() { *m = TLPushPushRpcResultData func (m *TLPushPushRpcResultData) String() string { return proto.CompactTextString(m) } func (*TLPushPushRpcResultData) ProtoMessage() {} func (*TLPushPushRpcResultData) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{54} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{54} } func (m *TLPushPushRpcResultData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLPushPushRpcResultData.Unmarshal(m, b) @@ -2805,7 +2805,7 @@ func (m *TLBotExecuteCommand) Reset() { *m = TLBotExecuteCommand{} } func (m *TLBotExecuteCommand) String() string { return proto.CompactTextString(m) } func (*TLBotExecuteCommand) ProtoMessage() {} func (*TLBotExecuteCommand) Descriptor() ([]byte, []int) { - return fileDescriptor_service_tl_a58e6fd4cab568d2, []int{55} + return fileDescriptor_service_tl_2d383e5ceaf09e3e, []int{55} } func (m *TLBotExecuteCommand) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TLBotExecuteCommand.Unmarshal(m, b) @@ -2861,31 +2861,31 @@ func init() { proto.RegisterType((*SessionClientEvent)(nil), "mtproto.SessionClientEvent") proto.RegisterType((*TLSessionClientCreated)(nil), "mtproto.TL_sessionClientCreated") proto.RegisterType((*TLSessionClientClosed)(nil), "mtproto.TL_sessionClientClosed") - proto.RegisterType((*Int32_Data)(nil), "mtproto.Int32_Data") - proto.RegisterType((*Int32)(nil), "mtproto.Int32") - proto.RegisterType((*TLInt32)(nil), "mtproto.TL_int32") - proto.RegisterType((*AuthKeyInfo_Data)(nil), "mtproto.AuthKeyInfo_Data") - proto.RegisterType((*AuthKeyInfo)(nil), "mtproto.AuthKeyInfo") - proto.RegisterType((*TLAuthKeyInfo)(nil), "mtproto.TL_authKeyInfo") - proto.RegisterType((*ServerConnected_Data)(nil), "mtproto.ServerConnected_Data") - proto.RegisterType((*ServerConnected)(nil), "mtproto.ServerConnected") - proto.RegisterType((*TLPushSessionServerConnected)(nil), "mtproto.TL_push_sessionServerConnected") - proto.RegisterType((*HandshakeContext_Data)(nil), "mtproto.HandshakeContext_Data") - proto.RegisterType((*HandshakeContext)(nil), "mtproto.HandshakeContext") - proto.RegisterType((*TLHandshakeContext)(nil), "mtproto.TL_handshakeContext") proto.RegisterType((*RawMessageData_Data)(nil), "mtproto.RawMessageData_Data") proto.RegisterType((*RawMessageData)(nil), "mtproto.RawMessageData") proto.RegisterType((*TLHandshakeData)(nil), "mtproto.TL_handshakeData") proto.RegisterType((*TLSessionMessageData)(nil), "mtproto.TL_sessionMessageData") + proto.RegisterType((*ClientSession_Data)(nil), "mtproto.ClientSession_Data") + proto.RegisterType((*ClientSession)(nil), "mtproto.ClientSession") + proto.RegisterType((*TLClientSessionInfo)(nil), "mtproto.TL_clientSessionInfo") + proto.RegisterType((*HandshakeContext_Data)(nil), "mtproto.HandshakeContext_Data") + proto.RegisterType((*HandshakeContext)(nil), "mtproto.HandshakeContext") + proto.RegisterType((*TLHandshakeContext)(nil), "mtproto.TL_handshakeContext") + proto.RegisterType((*Int32_Data)(nil), "mtproto.Int32_Data") + proto.RegisterType((*Int32)(nil), "mtproto.Int32") + proto.RegisterType((*TLInt32)(nil), "mtproto.TL_int32") proto.RegisterType((*Int64_Data)(nil), "mtproto.Int64_Data") proto.RegisterType((*Int64)(nil), "mtproto.Int64") proto.RegisterType((*TLLong)(nil), "mtproto.TL_long") proto.RegisterType((*String_Data)(nil), "mtproto.String_Data") proto.RegisterType((*String)(nil), "mtproto.String") proto.RegisterType((*TLString)(nil), "mtproto.TL_string") - proto.RegisterType((*ClientSession_Data)(nil), "mtproto.ClientSession_Data") - proto.RegisterType((*ClientSession)(nil), "mtproto.ClientSession") - proto.RegisterType((*TLClientSessionInfo)(nil), "mtproto.TL_clientSessionInfo") + proto.RegisterType((*AuthKeyInfo_Data)(nil), "mtproto.AuthKeyInfo_Data") + proto.RegisterType((*AuthKeyInfo)(nil), "mtproto.AuthKeyInfo") + proto.RegisterType((*TLAuthKeyInfo)(nil), "mtproto.TL_authKeyInfo") + proto.RegisterType((*ServerConnected_Data)(nil), "mtproto.ServerConnected_Data") + proto.RegisterType((*ServerConnected)(nil), "mtproto.ServerConnected") + proto.RegisterType((*TLPushSessionServerConnected)(nil), "mtproto.TL_push_sessionServerConnected") proto.RegisterType((*TLSessionSetClientSessionInfo)(nil), "mtproto.TL_session_setClientSessionInfo") proto.RegisterType((*TLSessionGetAuthorizations)(nil), "mtproto.TL_session_getAuthorizations") proto.RegisterType((*TLSessionResetAuthorization)(nil), "mtproto.TL_session_resetAuthorization") @@ -2920,1111 +2920,1111 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// RPCSessionClient is the client API for RPCSession service. +// RPCSyncClient is the client API for RPCSync service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCSessionClient interface { - // session.setClientSessionInfo session:ClientSession = Bool; - SessionSetClientSessionInfo(ctx context.Context, in *TLSessionSetClientSessionInfo, opts ...grpc.CallOption) (*Bool, error) - // session.getAuthorizations user_id:int exclude_auth_keyId:long = account.Authorizations; - SessionGetAuthorizations(ctx context.Context, in *TLSessionGetAuthorizations, opts ...grpc.CallOption) (*Account_Authorizations, error) - // session.resetAuthorization user_id:int hash:long = Int64; - SessionResetAuthorization(ctx context.Context, in *TLSessionResetAuthorization, opts ...grpc.CallOption) (*Int64, error) - // session.getLayer auth_key_id:long = Int32; - SessionGetLayer(ctx context.Context, in *TLSessionGetLayer, opts ...grpc.CallOption) (*Int32, error) - // session.getLangCode auth_key_id:long = String; - SessionGetLangCode(ctx context.Context, in *TLSessionGetLangCode, opts ...grpc.CallOption) (*String, error) - // session.getUserId auth_key_id:long = Int32; - SessionGetUserId(ctx context.Context, in *TLSessionGetUserId, opts ...grpc.CallOption) (*Int32, error) - // session.getPushSessionId user_id:int auth_key_id:long token_type:int = Int64; - SessionGetPushSessionId(ctx context.Context, in *TLSessionGetPushSessionId, opts ...grpc.CallOption) (*Int64, error) - // session.getFutureSalts auth_key_id:long num:int = FutureSalts; - SessionGetFutureSalts(ctx context.Context, in *TLSessionGetFutureSalts, opts ...grpc.CallOption) (*FutureSalts, error) - // session.queryAuthKey auth_key_id:long = AuthKeyInfo; - SessionQueryAuthKey(ctx context.Context, in *TLSessionQueryAuthKey, opts ...grpc.CallOption) (*AuthKeyInfo, error) - // session.setAuthKey auth_key:AuthKeyInfo = Bool; - SessionSetAuthKey(ctx context.Context, in *TLSessionSetAuthKey, opts ...grpc.CallOption) (*Bool, error) - // session.bindAuthKeyUser auth_key_id:long user_id:int = Bool; - SessionBindAuthKeyUser(ctx context.Context, in *TLSessionBindAuthKeyUser, opts ...grpc.CallOption) (*Bool, error) - // session.unbindAuthKeyUser auth_key_id:long user_id:int = Bool; - SessionUnbindAuthKeyUser(ctx context.Context, in *TLSessionUnbindAuthKeyUser, opts ...grpc.CallOption) (*Bool, error) +type RPCSyncClient interface { + // sync.syncUpdates flags:# user_id:int auth_key_id:long server_id:flags.0?int updates:Updates = Bool; + SyncSyncUpdates(ctx context.Context, in *TLSyncSyncUpdates, opts ...grpc.CallOption) (*Bool, error) + // sync.pushUpdates user_id:int updates:Updates = Bool; + SyncPushUpdates(ctx context.Context, in *TLSyncPushUpdates, opts ...grpc.CallOption) (*Bool, error) + // sync.syncChannelUpdates flags:# channel_id:int user_id:int auth_key_id:long server_id:flags.0?int updates:Updates = Bool; + SyncSyncChannelUpdates(ctx context.Context, in *TLSyncSyncChannelUpdates, opts ...grpc.CallOption) (*Bool, error) + // sync.pushChannelUpdates channel_id:int user_id:int updates:Updates = Bool; + SyncPushChannelUpdates(ctx context.Context, in *TLSyncPushChannelUpdates, opts ...grpc.CallOption) (*Bool, error) + // sync.pushRpcResult server_id:int auth_key_id:long req_msg_id:long result:bytes = Bool; + SyncPushRpcResult(ctx context.Context, in *TLSyncPushRpcResult, opts ...grpc.CallOption) (*Bool, error) + // sync.getState auth_key_id:long user_id:int = updates.State; + SyncGetState(ctx context.Context, in *TLSyncGetState, opts ...grpc.CallOption) (*Updates_State, error) + // sync.getDifference flags:# auth_key_id:long user_id:int pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference; + SyncGetDifference(ctx context.Context, in *TLSyncGetDifference, opts ...grpc.CallOption) (*Updates_Difference, error) + // sync.getChannelDifference flags:# auth_key_id:long user_id:int force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; + SyncGetChannelDifference(ctx context.Context, in *TLSyncGetChannelDifference, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) } -type rPCSessionClient struct { +type rPCSyncClient struct { cc *grpc.ClientConn } -func NewRPCSessionClient(cc *grpc.ClientConn) RPCSessionClient { - return &rPCSessionClient{cc} +func NewRPCSyncClient(cc *grpc.ClientConn) RPCSyncClient { + return &rPCSyncClient{cc} } -func (c *rPCSessionClient) SessionSetClientSessionInfo(ctx context.Context, in *TLSessionSetClientSessionInfo, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCSyncClient) SyncSyncUpdates(ctx context.Context, in *TLSyncSyncUpdates, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_setClientSessionInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCSessionClient) SessionGetAuthorizations(ctx context.Context, in *TLSessionGetAuthorizations, opts ...grpc.CallOption) (*Account_Authorizations, error) { - out := new(Account_Authorizations) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getAuthorizations", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCSessionClient) SessionResetAuthorization(ctx context.Context, in *TLSessionResetAuthorization, opts ...grpc.CallOption) (*Int64, error) { - out := new(Int64) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_resetAuthorization", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCSessionClient) SessionGetLayer(ctx context.Context, in *TLSessionGetLayer, opts ...grpc.CallOption) (*Int32, error) { - out := new(Int32) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getLayer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCSessionClient) SessionGetLangCode(ctx context.Context, in *TLSessionGetLangCode, opts ...grpc.CallOption) (*String, error) { - out := new(String) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getLangCode", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_syncUpdates", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCSessionClient) SessionGetUserId(ctx context.Context, in *TLSessionGetUserId, opts ...grpc.CallOption) (*Int32, error) { - out := new(Int32) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getUserId", in, out, opts...) +func (c *rPCSyncClient) SyncPushUpdates(ctx context.Context, in *TLSyncPushUpdates, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_pushUpdates", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCSessionClient) SessionGetPushSessionId(ctx context.Context, in *TLSessionGetPushSessionId, opts ...grpc.CallOption) (*Int64, error) { - out := new(Int64) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getPushSessionId", in, out, opts...) +func (c *rPCSyncClient) SyncSyncChannelUpdates(ctx context.Context, in *TLSyncSyncChannelUpdates, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_syncChannelUpdates", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCSessionClient) SessionGetFutureSalts(ctx context.Context, in *TLSessionGetFutureSalts, opts ...grpc.CallOption) (*FutureSalts, error) { - out := new(FutureSalts) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getFutureSalts", in, out, opts...) +func (c *rPCSyncClient) SyncPushChannelUpdates(ctx context.Context, in *TLSyncPushChannelUpdates, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_pushChannelUpdates", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCSessionClient) SessionQueryAuthKey(ctx context.Context, in *TLSessionQueryAuthKey, opts ...grpc.CallOption) (*AuthKeyInfo, error) { - out := new(AuthKeyInfo) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_queryAuthKey", in, out, opts...) +func (c *rPCSyncClient) SyncPushRpcResult(ctx context.Context, in *TLSyncPushRpcResult, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_pushRpcResult", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCSessionClient) SessionSetAuthKey(ctx context.Context, in *TLSessionSetAuthKey, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_setAuthKey", in, out, opts...) +func (c *rPCSyncClient) SyncGetState(ctx context.Context, in *TLSyncGetState, opts ...grpc.CallOption) (*Updates_State, error) { + out := new(Updates_State) + err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_getState", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCSessionClient) SessionBindAuthKeyUser(ctx context.Context, in *TLSessionBindAuthKeyUser, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_bindAuthKeyUser", in, out, opts...) +func (c *rPCSyncClient) SyncGetDifference(ctx context.Context, in *TLSyncGetDifference, opts ...grpc.CallOption) (*Updates_Difference, error) { + out := new(Updates_Difference) + err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_getDifference", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCSessionClient) SessionUnbindAuthKeyUser(ctx context.Context, in *TLSessionUnbindAuthKeyUser, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_unbindAuthKeyUser", in, out, opts...) +func (c *rPCSyncClient) SyncGetChannelDifference(ctx context.Context, in *TLSyncGetChannelDifference, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) { + out := new(Updates_ChannelDifference) + err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_getChannelDifference", in, out, opts...) if err != nil { return nil, err } return out, nil } -// RPCSessionServer is the server API for RPCSession service. -type RPCSessionServer interface { - // session.setClientSessionInfo session:ClientSession = Bool; - SessionSetClientSessionInfo(context.Context, *TLSessionSetClientSessionInfo) (*Bool, error) - // session.getAuthorizations user_id:int exclude_auth_keyId:long = account.Authorizations; - SessionGetAuthorizations(context.Context, *TLSessionGetAuthorizations) (*Account_Authorizations, error) - // session.resetAuthorization user_id:int hash:long = Int64; - SessionResetAuthorization(context.Context, *TLSessionResetAuthorization) (*Int64, error) - // session.getLayer auth_key_id:long = Int32; - SessionGetLayer(context.Context, *TLSessionGetLayer) (*Int32, error) - // session.getLangCode auth_key_id:long = String; - SessionGetLangCode(context.Context, *TLSessionGetLangCode) (*String, error) - // session.getUserId auth_key_id:long = Int32; - SessionGetUserId(context.Context, *TLSessionGetUserId) (*Int32, error) - // session.getPushSessionId user_id:int auth_key_id:long token_type:int = Int64; - SessionGetPushSessionId(context.Context, *TLSessionGetPushSessionId) (*Int64, error) - // session.getFutureSalts auth_key_id:long num:int = FutureSalts; - SessionGetFutureSalts(context.Context, *TLSessionGetFutureSalts) (*FutureSalts, error) - // session.queryAuthKey auth_key_id:long = AuthKeyInfo; - SessionQueryAuthKey(context.Context, *TLSessionQueryAuthKey) (*AuthKeyInfo, error) - // session.setAuthKey auth_key:AuthKeyInfo = Bool; - SessionSetAuthKey(context.Context, *TLSessionSetAuthKey) (*Bool, error) - // session.bindAuthKeyUser auth_key_id:long user_id:int = Bool; - SessionBindAuthKeyUser(context.Context, *TLSessionBindAuthKeyUser) (*Bool, error) - // session.unbindAuthKeyUser auth_key_id:long user_id:int = Bool; - SessionUnbindAuthKeyUser(context.Context, *TLSessionUnbindAuthKeyUser) (*Bool, error) +// RPCSyncServer is the server API for RPCSync service. +type RPCSyncServer interface { + // sync.syncUpdates flags:# user_id:int auth_key_id:long server_id:flags.0?int updates:Updates = Bool; + SyncSyncUpdates(context.Context, *TLSyncSyncUpdates) (*Bool, error) + // sync.pushUpdates user_id:int updates:Updates = Bool; + SyncPushUpdates(context.Context, *TLSyncPushUpdates) (*Bool, error) + // sync.syncChannelUpdates flags:# channel_id:int user_id:int auth_key_id:long server_id:flags.0?int updates:Updates = Bool; + SyncSyncChannelUpdates(context.Context, *TLSyncSyncChannelUpdates) (*Bool, error) + // sync.pushChannelUpdates channel_id:int user_id:int updates:Updates = Bool; + SyncPushChannelUpdates(context.Context, *TLSyncPushChannelUpdates) (*Bool, error) + // sync.pushRpcResult server_id:int auth_key_id:long req_msg_id:long result:bytes = Bool; + SyncPushRpcResult(context.Context, *TLSyncPushRpcResult) (*Bool, error) + // sync.getState auth_key_id:long user_id:int = updates.State; + SyncGetState(context.Context, *TLSyncGetState) (*Updates_State, error) + // sync.getDifference flags:# auth_key_id:long user_id:int pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference; + SyncGetDifference(context.Context, *TLSyncGetDifference) (*Updates_Difference, error) + // sync.getChannelDifference flags:# auth_key_id:long user_id:int force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; + SyncGetChannelDifference(context.Context, *TLSyncGetChannelDifference) (*Updates_ChannelDifference, error) } -func RegisterRPCSessionServer(s *grpc.Server, srv RPCSessionServer) { - s.RegisterService(&_RPCSession_serviceDesc, srv) +func RegisterRPCSyncServer(s *grpc.Server, srv RPCSyncServer) { + s.RegisterService(&_RPCSync_serviceDesc, srv) } -func _RPCSession_SessionSetClientSessionInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionSetClientSessionInfo) +func _RPCSync_SyncSyncUpdates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSyncSyncUpdates) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSessionServer).SessionSetClientSessionInfo(ctx, in) + return srv.(RPCSyncServer).SyncSyncUpdates(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSession/SessionSetClientSessionInfo", + FullMethod: "/mtproto.RPCSync/SyncSyncUpdates", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionSetClientSessionInfo(ctx, req.(*TLSessionSetClientSessionInfo)) + return srv.(RPCSyncServer).SyncSyncUpdates(ctx, req.(*TLSyncSyncUpdates)) } return interceptor(ctx, in, info, handler) } -func _RPCSession_SessionGetAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionGetAuthorizations) +func _RPCSync_SyncPushUpdates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSyncPushUpdates) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSessionServer).SessionGetAuthorizations(ctx, in) + return srv.(RPCSyncServer).SyncPushUpdates(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSession/SessionGetAuthorizations", + FullMethod: "/mtproto.RPCSync/SyncPushUpdates", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionGetAuthorizations(ctx, req.(*TLSessionGetAuthorizations)) + return srv.(RPCSyncServer).SyncPushUpdates(ctx, req.(*TLSyncPushUpdates)) } return interceptor(ctx, in, info, handler) } -func _RPCSession_SessionResetAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionResetAuthorization) +func _RPCSync_SyncSyncChannelUpdates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSyncSyncChannelUpdates) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSessionServer).SessionResetAuthorization(ctx, in) + return srv.(RPCSyncServer).SyncSyncChannelUpdates(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSession/SessionResetAuthorization", + FullMethod: "/mtproto.RPCSync/SyncSyncChannelUpdates", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionResetAuthorization(ctx, req.(*TLSessionResetAuthorization)) + return srv.(RPCSyncServer).SyncSyncChannelUpdates(ctx, req.(*TLSyncSyncChannelUpdates)) } return interceptor(ctx, in, info, handler) } -func _RPCSession_SessionGetLayer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionGetLayer) +func _RPCSync_SyncPushChannelUpdates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSyncPushChannelUpdates) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSessionServer).SessionGetLayer(ctx, in) + return srv.(RPCSyncServer).SyncPushChannelUpdates(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSession/SessionGetLayer", + FullMethod: "/mtproto.RPCSync/SyncPushChannelUpdates", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionGetLayer(ctx, req.(*TLSessionGetLayer)) + return srv.(RPCSyncServer).SyncPushChannelUpdates(ctx, req.(*TLSyncPushChannelUpdates)) } return interceptor(ctx, in, info, handler) } -func _RPCSession_SessionGetLangCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionGetLangCode) +func _RPCSync_SyncPushRpcResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSyncPushRpcResult) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSessionServer).SessionGetLangCode(ctx, in) + return srv.(RPCSyncServer).SyncPushRpcResult(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSession/SessionGetLangCode", + FullMethod: "/mtproto.RPCSync/SyncPushRpcResult", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionGetLangCode(ctx, req.(*TLSessionGetLangCode)) + return srv.(RPCSyncServer).SyncPushRpcResult(ctx, req.(*TLSyncPushRpcResult)) } return interceptor(ctx, in, info, handler) } -func _RPCSession_SessionGetUserId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionGetUserId) +func _RPCSync_SyncGetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSyncGetState) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSessionServer).SessionGetUserId(ctx, in) + return srv.(RPCSyncServer).SyncGetState(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSession/SessionGetUserId", + FullMethod: "/mtproto.RPCSync/SyncGetState", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionGetUserId(ctx, req.(*TLSessionGetUserId)) + return srv.(RPCSyncServer).SyncGetState(ctx, req.(*TLSyncGetState)) } return interceptor(ctx, in, info, handler) } -func _RPCSession_SessionGetPushSessionId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionGetPushSessionId) +func _RPCSync_SyncGetDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSyncGetDifference) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSessionServer).SessionGetPushSessionId(ctx, in) + return srv.(RPCSyncServer).SyncGetDifference(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSession/SessionGetPushSessionId", + FullMethod: "/mtproto.RPCSync/SyncGetDifference", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionGetPushSessionId(ctx, req.(*TLSessionGetPushSessionId)) + return srv.(RPCSyncServer).SyncGetDifference(ctx, req.(*TLSyncGetDifference)) } return interceptor(ctx, in, info, handler) } -func _RPCSession_SessionGetFutureSalts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionGetFutureSalts) +func _RPCSync_SyncGetChannelDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSyncGetChannelDifference) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSessionServer).SessionGetFutureSalts(ctx, in) + return srv.(RPCSyncServer).SyncGetChannelDifference(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSession/SessionGetFutureSalts", + FullMethod: "/mtproto.RPCSync/SyncGetChannelDifference", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionGetFutureSalts(ctx, req.(*TLSessionGetFutureSalts)) + return srv.(RPCSyncServer).SyncGetChannelDifference(ctx, req.(*TLSyncGetChannelDifference)) } return interceptor(ctx, in, info, handler) } -func _RPCSession_SessionQueryAuthKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionQueryAuthKey) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCSessionServer).SessionQueryAuthKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCSession/SessionQueryAuthKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionQueryAuthKey(ctx, req.(*TLSessionQueryAuthKey)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCSession_SessionSetAuthKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionSetAuthKey) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCSessionServer).SessionSetAuthKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCSession/SessionSetAuthKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionSetAuthKey(ctx, req.(*TLSessionSetAuthKey)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCSession_SessionBindAuthKeyUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionBindAuthKeyUser) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCSessionServer).SessionBindAuthKeyUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCSession/SessionBindAuthKeyUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionBindAuthKeyUser(ctx, req.(*TLSessionBindAuthKeyUser)) - } - return interceptor(ctx, in, info, handler) -} - -func _RPCSession_SessionUnbindAuthKeyUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSessionUnbindAuthKeyUser) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RPCSessionServer).SessionUnbindAuthKeyUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCSession/SessionUnbindAuthKeyUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSessionServer).SessionUnbindAuthKeyUser(ctx, req.(*TLSessionUnbindAuthKeyUser)) - } - return interceptor(ctx, in, info, handler) -} - -var _RPCSession_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCSession", - HandlerType: (*RPCSessionServer)(nil), +var _RPCSync_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCSync", + HandlerType: (*RPCSyncServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "session_setClientSessionInfo", - Handler: _RPCSession_SessionSetClientSessionInfo_Handler, - }, - { - MethodName: "session_getAuthorizations", - Handler: _RPCSession_SessionGetAuthorizations_Handler, - }, - { - MethodName: "session_resetAuthorization", - Handler: _RPCSession_SessionResetAuthorization_Handler, - }, - { - MethodName: "session_getLayer", - Handler: _RPCSession_SessionGetLayer_Handler, - }, - { - MethodName: "session_getLangCode", - Handler: _RPCSession_SessionGetLangCode_Handler, + MethodName: "sync_syncUpdates", + Handler: _RPCSync_SyncSyncUpdates_Handler, }, { - MethodName: "session_getUserId", - Handler: _RPCSession_SessionGetUserId_Handler, + MethodName: "sync_pushUpdates", + Handler: _RPCSync_SyncPushUpdates_Handler, }, { - MethodName: "session_getPushSessionId", - Handler: _RPCSession_SessionGetPushSessionId_Handler, + MethodName: "sync_syncChannelUpdates", + Handler: _RPCSync_SyncSyncChannelUpdates_Handler, }, { - MethodName: "session_getFutureSalts", - Handler: _RPCSession_SessionGetFutureSalts_Handler, + MethodName: "sync_pushChannelUpdates", + Handler: _RPCSync_SyncPushChannelUpdates_Handler, }, { - MethodName: "session_queryAuthKey", - Handler: _RPCSession_SessionQueryAuthKey_Handler, + MethodName: "sync_pushRpcResult", + Handler: _RPCSync_SyncPushRpcResult_Handler, }, { - MethodName: "session_setAuthKey", - Handler: _RPCSession_SessionSetAuthKey_Handler, + MethodName: "sync_getState", + Handler: _RPCSync_SyncGetState_Handler, }, { - MethodName: "session_bindAuthKeyUser", - Handler: _RPCSession_SessionBindAuthKeyUser_Handler, + MethodName: "sync_getDifference", + Handler: _RPCSync_SyncGetDifference_Handler, }, { - MethodName: "session_unbindAuthKeyUser", - Handler: _RPCSession_SessionUnbindAuthKeyUser_Handler, + MethodName: "sync_getChannelDifference", + Handler: _RPCSync_SyncGetChannelDifference_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.tl.proto", } -// RPCSyncClient is the client API for RPCSync service. +// RPCPushClient is the client API for RPCPush service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCSyncClient interface { - // sync.syncUpdates flags:# user_id:int auth_key_id:long server_id:flags.0?int updates:Updates = Bool; - SyncSyncUpdates(ctx context.Context, in *TLSyncSyncUpdates, opts ...grpc.CallOption) (*Bool, error) - // sync.pushUpdates user_id:int updates:Updates = Bool; - SyncPushUpdates(ctx context.Context, in *TLSyncPushUpdates, opts ...grpc.CallOption) (*Bool, error) - // sync.syncChannelUpdates flags:# channel_id:int user_id:int auth_key_id:long server_id:flags.0?int updates:Updates = Bool; - SyncSyncChannelUpdates(ctx context.Context, in *TLSyncSyncChannelUpdates, opts ...grpc.CallOption) (*Bool, error) - // sync.pushChannelUpdates channel_id:int user_id:int updates:Updates = Bool; - SyncPushChannelUpdates(ctx context.Context, in *TLSyncPushChannelUpdates, opts ...grpc.CallOption) (*Bool, error) - // sync.pushRpcResult server_id:int auth_key_id:long req_msg_id:long result:bytes = Bool; - SyncPushRpcResult(ctx context.Context, in *TLSyncPushRpcResult, opts ...grpc.CallOption) (*Bool, error) - // sync.getState auth_key_id:long user_id:int = updates.State; - SyncGetState(ctx context.Context, in *TLSyncGetState, opts ...grpc.CallOption) (*Updates_State, error) - // sync.getDifference flags:# auth_key_id:long user_id:int pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference; - SyncGetDifference(ctx context.Context, in *TLSyncGetDifference, opts ...grpc.CallOption) (*Updates_Difference, error) - // sync.getChannelDifference flags:# auth_key_id:long user_id:int force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; - SyncGetChannelDifference(ctx context.Context, in *TLSyncGetChannelDifference, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) +type RPCPushClient interface { + // push.connectToSessionServer sync_server_id:int = ServerConnected; + PushConnectToSessionServer(ctx context.Context, in *TLPushConnectToSessionServer, opts ...grpc.CallOption) (*ServerConnected, error) + // push.pushUpdatesData auth_key_id:long pts:int pts_count:int = Bool; + PushPushUpdatesData(ctx context.Context, in *TLPushPushUpdatesData, opts ...grpc.CallOption) (*Bool, error) + // push.pushRpcResultData auth_key_id:long client_req_msg_id:long = Bool; + PushPushRpcResultData(ctx context.Context, in *TLPushPushRpcResultData, opts ...grpc.CallOption) (*Bool, error) } -type rPCSyncClient struct { +type rPCPushClient struct { cc *grpc.ClientConn } -func NewRPCSyncClient(cc *grpc.ClientConn) RPCSyncClient { - return &rPCSyncClient{cc} -} - -func (c *rPCSyncClient) SyncSyncUpdates(ctx context.Context, in *TLSyncSyncUpdates, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_syncUpdates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCSyncClient) SyncPushUpdates(ctx context.Context, in *TLSyncPushUpdates, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_pushUpdates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func NewRPCPushClient(cc *grpc.ClientConn) RPCPushClient { + return &rPCPushClient{cc} } -func (c *rPCSyncClient) SyncSyncChannelUpdates(ctx context.Context, in *TLSyncSyncChannelUpdates, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_syncChannelUpdates", in, out, opts...) +func (c *rPCPushClient) PushConnectToSessionServer(ctx context.Context, in *TLPushConnectToSessionServer, opts ...grpc.CallOption) (*ServerConnected, error) { + out := new(ServerConnected) + err := c.cc.Invoke(ctx, "/mtproto.RPCPush/push_connectToSessionServer", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCSyncClient) SyncPushChannelUpdates(ctx context.Context, in *TLSyncPushChannelUpdates, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCPushClient) PushPushUpdatesData(ctx context.Context, in *TLPushPushUpdatesData, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_pushChannelUpdates", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCPush/push_pushUpdatesData", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *rPCSyncClient) SyncPushRpcResult(ctx context.Context, in *TLSyncPushRpcResult, opts ...grpc.CallOption) (*Bool, error) { +func (c *rPCPushClient) PushPushRpcResultData(ctx context.Context, in *TLPushPushRpcResultData, opts ...grpc.CallOption) (*Bool, error) { out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_pushRpcResult", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCSyncClient) SyncGetState(ctx context.Context, in *TLSyncGetState, opts ...grpc.CallOption) (*Updates_State, error) { - out := new(Updates_State) - err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_getState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCSyncClient) SyncGetDifference(ctx context.Context, in *TLSyncGetDifference, opts ...grpc.CallOption) (*Updates_Difference, error) { - out := new(Updates_Difference) - err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_getDifference", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rPCSyncClient) SyncGetChannelDifference(ctx context.Context, in *TLSyncGetChannelDifference, opts ...grpc.CallOption) (*Updates_ChannelDifference, error) { - out := new(Updates_ChannelDifference) - err := c.cc.Invoke(ctx, "/mtproto.RPCSync/sync_getChannelDifference", in, out, opts...) + err := c.cc.Invoke(ctx, "/mtproto.RPCPush/push_pushRpcResultData", in, out, opts...) if err != nil { return nil, err } return out, nil } -// RPCSyncServer is the server API for RPCSync service. -type RPCSyncServer interface { - // sync.syncUpdates flags:# user_id:int auth_key_id:long server_id:flags.0?int updates:Updates = Bool; - SyncSyncUpdates(context.Context, *TLSyncSyncUpdates) (*Bool, error) - // sync.pushUpdates user_id:int updates:Updates = Bool; - SyncPushUpdates(context.Context, *TLSyncPushUpdates) (*Bool, error) - // sync.syncChannelUpdates flags:# channel_id:int user_id:int auth_key_id:long server_id:flags.0?int updates:Updates = Bool; - SyncSyncChannelUpdates(context.Context, *TLSyncSyncChannelUpdates) (*Bool, error) - // sync.pushChannelUpdates channel_id:int user_id:int updates:Updates = Bool; - SyncPushChannelUpdates(context.Context, *TLSyncPushChannelUpdates) (*Bool, error) - // sync.pushRpcResult server_id:int auth_key_id:long req_msg_id:long result:bytes = Bool; - SyncPushRpcResult(context.Context, *TLSyncPushRpcResult) (*Bool, error) - // sync.getState auth_key_id:long user_id:int = updates.State; - SyncGetState(context.Context, *TLSyncGetState) (*Updates_State, error) - // sync.getDifference flags:# auth_key_id:long user_id:int pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference; - SyncGetDifference(context.Context, *TLSyncGetDifference) (*Updates_Difference, error) - // sync.getChannelDifference flags:# auth_key_id:long user_id:int force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; - SyncGetChannelDifference(context.Context, *TLSyncGetChannelDifference) (*Updates_ChannelDifference, error) +// RPCPushServer is the server API for RPCPush service. +type RPCPushServer interface { + // push.connectToSessionServer sync_server_id:int = ServerConnected; + PushConnectToSessionServer(context.Context, *TLPushConnectToSessionServer) (*ServerConnected, error) + // push.pushUpdatesData auth_key_id:long pts:int pts_count:int = Bool; + PushPushUpdatesData(context.Context, *TLPushPushUpdatesData) (*Bool, error) + // push.pushRpcResultData auth_key_id:long client_req_msg_id:long = Bool; + PushPushRpcResultData(context.Context, *TLPushPushRpcResultData) (*Bool, error) } -func RegisterRPCSyncServer(s *grpc.Server, srv RPCSyncServer) { - s.RegisterService(&_RPCSync_serviceDesc, srv) +func RegisterRPCPushServer(s *grpc.Server, srv RPCPushServer) { + s.RegisterService(&_RPCPush_serviceDesc, srv) } -func _RPCSync_SyncSyncUpdates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSyncSyncUpdates) +func _RPCPush_PushConnectToSessionServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPushConnectToSessionServer) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSyncServer).SyncSyncUpdates(ctx, in) + return srv.(RPCPushServer).PushConnectToSessionServer(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSync/SyncSyncUpdates", + FullMethod: "/mtproto.RPCPush/PushConnectToSessionServer", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSyncServer).SyncSyncUpdates(ctx, req.(*TLSyncSyncUpdates)) + return srv.(RPCPushServer).PushConnectToSessionServer(ctx, req.(*TLPushConnectToSessionServer)) } return interceptor(ctx, in, info, handler) } -func _RPCSync_SyncPushUpdates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSyncPushUpdates) +func _RPCPush_PushPushUpdatesData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPushPushUpdatesData) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSyncServer).SyncPushUpdates(ctx, in) + return srv.(RPCPushServer).PushPushUpdatesData(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSync/SyncPushUpdates", + FullMethod: "/mtproto.RPCPush/PushPushUpdatesData", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSyncServer).SyncPushUpdates(ctx, req.(*TLSyncPushUpdates)) + return srv.(RPCPushServer).PushPushUpdatesData(ctx, req.(*TLPushPushUpdatesData)) } return interceptor(ctx, in, info, handler) } -func _RPCSync_SyncSyncChannelUpdates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSyncSyncChannelUpdates) +func _RPCPush_PushPushRpcResultData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLPushPushRpcResultData) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSyncServer).SyncSyncChannelUpdates(ctx, in) + return srv.(RPCPushServer).PushPushRpcResultData(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSync/SyncSyncChannelUpdates", + FullMethod: "/mtproto.RPCPush/PushPushRpcResultData", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSyncServer).SyncSyncChannelUpdates(ctx, req.(*TLSyncSyncChannelUpdates)) + return srv.(RPCPushServer).PushPushRpcResultData(ctx, req.(*TLPushPushRpcResultData)) } return interceptor(ctx, in, info, handler) } -func _RPCSync_SyncPushChannelUpdates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSyncPushChannelUpdates) +var _RPCPush_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCPush", + HandlerType: (*RPCPushServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "push_connectToSessionServer", + Handler: _RPCPush_PushConnectToSessionServer_Handler, + }, + { + MethodName: "push_pushUpdatesData", + Handler: _RPCPush_PushPushUpdatesData_Handler, + }, + { + MethodName: "push_pushRpcResultData", + Handler: _RPCPush_PushPushRpcResultData_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service.tl.proto", +} + +// RPCBotClient is the client API for RPCBot service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCBotClient interface { + // bot.executeCommand bot_id:int peer_type:int peer_id:int command_line:string = Message; + BotExecuteCommand(ctx context.Context, in *TLBotExecuteCommand, opts ...grpc.CallOption) (*Message, error) +} + +type rPCBotClient struct { + cc *grpc.ClientConn +} + +func NewRPCBotClient(cc *grpc.ClientConn) RPCBotClient { + return &rPCBotClient{cc} +} + +func (c *rPCBotClient) BotExecuteCommand(ctx context.Context, in *TLBotExecuteCommand, opts ...grpc.CallOption) (*Message, error) { + out := new(Message) + err := c.cc.Invoke(ctx, "/mtproto.RPCBot/bot_executeCommand", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RPCBotServer is the server API for RPCBot service. +type RPCBotServer interface { + // bot.executeCommand bot_id:int peer_type:int peer_id:int command_line:string = Message; + BotExecuteCommand(context.Context, *TLBotExecuteCommand) (*Message, error) +} + +func RegisterRPCBotServer(s *grpc.Server, srv RPCBotServer) { + s.RegisterService(&_RPCBot_serviceDesc, srv) +} + +func _RPCBot_BotExecuteCommand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLBotExecuteCommand) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSyncServer).SyncPushChannelUpdates(ctx, in) + return srv.(RPCBotServer).BotExecuteCommand(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSync/SyncPushChannelUpdates", + FullMethod: "/mtproto.RPCBot/BotExecuteCommand", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSyncServer).SyncPushChannelUpdates(ctx, req.(*TLSyncPushChannelUpdates)) + return srv.(RPCBotServer).BotExecuteCommand(ctx, req.(*TLBotExecuteCommand)) } return interceptor(ctx, in, info, handler) } -func _RPCSync_SyncPushRpcResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSyncPushRpcResult) - if err := dec(in); err != nil { +var _RPCBot_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCBot", + HandlerType: (*RPCBotServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "bot_executeCommand", + Handler: _RPCBot_BotExecuteCommand_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service.tl.proto", +} + +// RPCSessionClient is the client API for RPCSession service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RPCSessionClient interface { + // session.setClientSessionInfo session:ClientSession = Bool; + SessionSetClientSessionInfo(ctx context.Context, in *TLSessionSetClientSessionInfo, opts ...grpc.CallOption) (*Bool, error) + // session.getAuthorizations user_id:int exclude_auth_keyId:long = account.Authorizations; + SessionGetAuthorizations(ctx context.Context, in *TLSessionGetAuthorizations, opts ...grpc.CallOption) (*Account_Authorizations, error) + // session.resetAuthorization user_id:int hash:long = Int64; + SessionResetAuthorization(ctx context.Context, in *TLSessionResetAuthorization, opts ...grpc.CallOption) (*Int64, error) + // session.getLayer auth_key_id:long = Int32; + SessionGetLayer(ctx context.Context, in *TLSessionGetLayer, opts ...grpc.CallOption) (*Int32, error) + // session.getLangCode auth_key_id:long = String; + SessionGetLangCode(ctx context.Context, in *TLSessionGetLangCode, opts ...grpc.CallOption) (*String, error) + // session.getUserId auth_key_id:long = Int32; + SessionGetUserId(ctx context.Context, in *TLSessionGetUserId, opts ...grpc.CallOption) (*Int32, error) + // session.getPushSessionId user_id:int auth_key_id:long token_type:int = Int64; + SessionGetPushSessionId(ctx context.Context, in *TLSessionGetPushSessionId, opts ...grpc.CallOption) (*Int64, error) + // session.getFutureSalts auth_key_id:long num:int = FutureSalts; + SessionGetFutureSalts(ctx context.Context, in *TLSessionGetFutureSalts, opts ...grpc.CallOption) (*FutureSalts, error) + // session.queryAuthKey auth_key_id:long = AuthKeyInfo; + SessionQueryAuthKey(ctx context.Context, in *TLSessionQueryAuthKey, opts ...grpc.CallOption) (*AuthKeyInfo, error) + // session.setAuthKey auth_key:AuthKeyInfo = Bool; + SessionSetAuthKey(ctx context.Context, in *TLSessionSetAuthKey, opts ...grpc.CallOption) (*Bool, error) + // session.bindAuthKeyUser auth_key_id:long user_id:int = Bool; + SessionBindAuthKeyUser(ctx context.Context, in *TLSessionBindAuthKeyUser, opts ...grpc.CallOption) (*Bool, error) + // session.unbindAuthKeyUser auth_key_id:long user_id:int = Bool; + SessionUnbindAuthKeyUser(ctx context.Context, in *TLSessionUnbindAuthKeyUser, opts ...grpc.CallOption) (*Bool, error) +} + +type rPCSessionClient struct { + cc *grpc.ClientConn +} + +func NewRPCSessionClient(cc *grpc.ClientConn) RPCSessionClient { + return &rPCSessionClient{cc} +} + +func (c *rPCSessionClient) SessionSetClientSessionInfo(ctx context.Context, in *TLSessionSetClientSessionInfo, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_setClientSessionInfo", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCSyncServer).SyncPushRpcResult(ctx, in) + return out, nil +} + +func (c *rPCSessionClient) SessionGetAuthorizations(ctx context.Context, in *TLSessionGetAuthorizations, opts ...grpc.CallOption) (*Account_Authorizations, error) { + out := new(Account_Authorizations) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getAuthorizations", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCSync/SyncPushRpcResult", + return out, nil +} + +func (c *rPCSessionClient) SessionResetAuthorization(ctx context.Context, in *TLSessionResetAuthorization, opts ...grpc.CallOption) (*Int64, error) { + out := new(Int64) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_resetAuthorization", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSyncServer).SyncPushRpcResult(ctx, req.(*TLSyncPushRpcResult)) + return out, nil +} + +func (c *rPCSessionClient) SessionGetLayer(ctx context.Context, in *TLSessionGetLayer, opts ...grpc.CallOption) (*Int32, error) { + out := new(Int32) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getLayer", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCSync_SyncGetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSyncGetState) - if err := dec(in); err != nil { +func (c *rPCSessionClient) SessionGetLangCode(ctx context.Context, in *TLSessionGetLangCode, opts ...grpc.CallOption) (*String, error) { + out := new(String) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getLangCode", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(RPCSyncServer).SyncGetState(ctx, in) + return out, nil +} + +func (c *rPCSessionClient) SessionGetUserId(ctx context.Context, in *TLSessionGetUserId, opts ...grpc.CallOption) (*Int32, error) { + out := new(Int32) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getUserId", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mtproto.RPCSync/SyncGetState", + return out, nil +} + +func (c *rPCSessionClient) SessionGetPushSessionId(ctx context.Context, in *TLSessionGetPushSessionId, opts ...grpc.CallOption) (*Int64, error) { + out := new(Int64) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getPushSessionId", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSyncServer).SyncGetState(ctx, req.(*TLSyncGetState)) + return out, nil +} + +func (c *rPCSessionClient) SessionGetFutureSalts(ctx context.Context, in *TLSessionGetFutureSalts, opts ...grpc.CallOption) (*FutureSalts, error) { + out := new(FutureSalts) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_getFutureSalts", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _RPCSync_SyncGetDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSyncGetDifference) +func (c *rPCSessionClient) SessionQueryAuthKey(ctx context.Context, in *TLSessionQueryAuthKey, opts ...grpc.CallOption) (*AuthKeyInfo, error) { + out := new(AuthKeyInfo) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_queryAuthKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCSessionClient) SessionSetAuthKey(ctx context.Context, in *TLSessionSetAuthKey, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_setAuthKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCSessionClient) SessionBindAuthKeyUser(ctx context.Context, in *TLSessionBindAuthKeyUser, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_bindAuthKeyUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *rPCSessionClient) SessionUnbindAuthKeyUser(ctx context.Context, in *TLSessionUnbindAuthKeyUser, opts ...grpc.CallOption) (*Bool, error) { + out := new(Bool) + err := c.cc.Invoke(ctx, "/mtproto.RPCSession/session_unbindAuthKeyUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RPCSessionServer is the server API for RPCSession service. +type RPCSessionServer interface { + // session.setClientSessionInfo session:ClientSession = Bool; + SessionSetClientSessionInfo(context.Context, *TLSessionSetClientSessionInfo) (*Bool, error) + // session.getAuthorizations user_id:int exclude_auth_keyId:long = account.Authorizations; + SessionGetAuthorizations(context.Context, *TLSessionGetAuthorizations) (*Account_Authorizations, error) + // session.resetAuthorization user_id:int hash:long = Int64; + SessionResetAuthorization(context.Context, *TLSessionResetAuthorization) (*Int64, error) + // session.getLayer auth_key_id:long = Int32; + SessionGetLayer(context.Context, *TLSessionGetLayer) (*Int32, error) + // session.getLangCode auth_key_id:long = String; + SessionGetLangCode(context.Context, *TLSessionGetLangCode) (*String, error) + // session.getUserId auth_key_id:long = Int32; + SessionGetUserId(context.Context, *TLSessionGetUserId) (*Int32, error) + // session.getPushSessionId user_id:int auth_key_id:long token_type:int = Int64; + SessionGetPushSessionId(context.Context, *TLSessionGetPushSessionId) (*Int64, error) + // session.getFutureSalts auth_key_id:long num:int = FutureSalts; + SessionGetFutureSalts(context.Context, *TLSessionGetFutureSalts) (*FutureSalts, error) + // session.queryAuthKey auth_key_id:long = AuthKeyInfo; + SessionQueryAuthKey(context.Context, *TLSessionQueryAuthKey) (*AuthKeyInfo, error) + // session.setAuthKey auth_key:AuthKeyInfo = Bool; + SessionSetAuthKey(context.Context, *TLSessionSetAuthKey) (*Bool, error) + // session.bindAuthKeyUser auth_key_id:long user_id:int = Bool; + SessionBindAuthKeyUser(context.Context, *TLSessionBindAuthKeyUser) (*Bool, error) + // session.unbindAuthKeyUser auth_key_id:long user_id:int = Bool; + SessionUnbindAuthKeyUser(context.Context, *TLSessionUnbindAuthKeyUser) (*Bool, error) +} + +func RegisterRPCSessionServer(s *grpc.Server, srv RPCSessionServer) { + s.RegisterService(&_RPCSession_serviceDesc, srv) +} + +func _RPCSession_SessionSetClientSessionInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionSetClientSessionInfo) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSyncServer).SyncGetDifference(ctx, in) + return srv.(RPCSessionServer).SessionSetClientSessionInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSync/SyncGetDifference", + FullMethod: "/mtproto.RPCSession/SessionSetClientSessionInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSyncServer).SyncGetDifference(ctx, req.(*TLSyncGetDifference)) + return srv.(RPCSessionServer).SessionSetClientSessionInfo(ctx, req.(*TLSessionSetClientSessionInfo)) } return interceptor(ctx, in, info, handler) } -func _RPCSync_SyncGetChannelDifference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLSyncGetChannelDifference) +func _RPCSession_SessionGetAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionGetAuthorizations) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCSyncServer).SyncGetChannelDifference(ctx, in) + return srv.(RPCSessionServer).SessionGetAuthorizations(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCSync/SyncGetChannelDifference", + FullMethod: "/mtproto.RPCSession/SessionGetAuthorizations", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCSyncServer).SyncGetChannelDifference(ctx, req.(*TLSyncGetChannelDifference)) - } - return interceptor(ctx, in, info, handler) -} - -var _RPCSync_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCSync", - HandlerType: (*RPCSyncServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "sync_syncUpdates", - Handler: _RPCSync_SyncSyncUpdates_Handler, - }, - { - MethodName: "sync_pushUpdates", - Handler: _RPCSync_SyncPushUpdates_Handler, - }, - { - MethodName: "sync_syncChannelUpdates", - Handler: _RPCSync_SyncSyncChannelUpdates_Handler, - }, - { - MethodName: "sync_pushChannelUpdates", - Handler: _RPCSync_SyncPushChannelUpdates_Handler, - }, - { - MethodName: "sync_pushRpcResult", - Handler: _RPCSync_SyncPushRpcResult_Handler, - }, - { - MethodName: "sync_getState", - Handler: _RPCSync_SyncGetState_Handler, - }, - { - MethodName: "sync_getDifference", - Handler: _RPCSync_SyncGetDifference_Handler, - }, - { - MethodName: "sync_getChannelDifference", - Handler: _RPCSync_SyncGetChannelDifference_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "service.tl.proto", -} - -// RPCPushClient is the client API for RPCPush service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCPushClient interface { - // push.connectToSessionServer sync_server_id:int = ServerConnected; - PushConnectToSessionServer(ctx context.Context, in *TLPushConnectToSessionServer, opts ...grpc.CallOption) (*ServerConnected, error) - // push.pushUpdatesData auth_key_id:long pts:int pts_count:int = Bool; - PushPushUpdatesData(ctx context.Context, in *TLPushPushUpdatesData, opts ...grpc.CallOption) (*Bool, error) - // push.pushRpcResultData auth_key_id:long client_req_msg_id:long = Bool; - PushPushRpcResultData(ctx context.Context, in *TLPushPushRpcResultData, opts ...grpc.CallOption) (*Bool, error) -} - -type rPCPushClient struct { - cc *grpc.ClientConn -} - -func NewRPCPushClient(cc *grpc.ClientConn) RPCPushClient { - return &rPCPushClient{cc} -} - -func (c *rPCPushClient) PushConnectToSessionServer(ctx context.Context, in *TLPushConnectToSessionServer, opts ...grpc.CallOption) (*ServerConnected, error) { - out := new(ServerConnected) - err := c.cc.Invoke(ctx, "/mtproto.RPCPush/push_connectToSessionServer", in, out, opts...) - if err != nil { - return nil, err + return srv.(RPCSessionServer).SessionGetAuthorizations(ctx, req.(*TLSessionGetAuthorizations)) } - return out, nil + return interceptor(ctx, in, info, handler) } -func (c *rPCPushClient) PushPushUpdatesData(ctx context.Context, in *TLPushPushUpdatesData, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCPush/push_pushUpdatesData", in, out, opts...) - if err != nil { +func _RPCSession_SessionResetAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionResetAuthorization) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCSessionServer).SessionResetAuthorization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCSession/SessionResetAuthorization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCSessionServer).SessionResetAuthorization(ctx, req.(*TLSessionResetAuthorization)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCPushClient) PushPushRpcResultData(ctx context.Context, in *TLPushPushRpcResultData, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/mtproto.RPCPush/push_pushRpcResultData", in, out, opts...) - if err != nil { +func _RPCSession_SessionGetLayer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionGetLayer) + if err := dec(in); err != nil { return nil, err } - return out, nil -} - -// RPCPushServer is the server API for RPCPush service. -type RPCPushServer interface { - // push.connectToSessionServer sync_server_id:int = ServerConnected; - PushConnectToSessionServer(context.Context, *TLPushConnectToSessionServer) (*ServerConnected, error) - // push.pushUpdatesData auth_key_id:long pts:int pts_count:int = Bool; - PushPushUpdatesData(context.Context, *TLPushPushUpdatesData) (*Bool, error) - // push.pushRpcResultData auth_key_id:long client_req_msg_id:long = Bool; - PushPushRpcResultData(context.Context, *TLPushPushRpcResultData) (*Bool, error) -} - -func RegisterRPCPushServer(s *grpc.Server, srv RPCPushServer) { - s.RegisterService(&_RPCPush_serviceDesc, srv) + if interceptor == nil { + return srv.(RPCSessionServer).SessionGetLayer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCSession/SessionGetLayer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCSessionServer).SessionGetLayer(ctx, req.(*TLSessionGetLayer)) + } + return interceptor(ctx, in, info, handler) } -func _RPCPush_PushConnectToSessionServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPushConnectToSessionServer) +func _RPCSession_SessionGetLangCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionGetLangCode) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPushServer).PushConnectToSessionServer(ctx, in) + return srv.(RPCSessionServer).SessionGetLangCode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPush/PushConnectToSessionServer", + FullMethod: "/mtproto.RPCSession/SessionGetLangCode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPushServer).PushConnectToSessionServer(ctx, req.(*TLPushConnectToSessionServer)) + return srv.(RPCSessionServer).SessionGetLangCode(ctx, req.(*TLSessionGetLangCode)) } return interceptor(ctx, in, info, handler) } -func _RPCPush_PushPushUpdatesData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPushPushUpdatesData) +func _RPCSession_SessionGetUserId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionGetUserId) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPushServer).PushPushUpdatesData(ctx, in) + return srv.(RPCSessionServer).SessionGetUserId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPush/PushPushUpdatesData", + FullMethod: "/mtproto.RPCSession/SessionGetUserId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPushServer).PushPushUpdatesData(ctx, req.(*TLPushPushUpdatesData)) + return srv.(RPCSessionServer).SessionGetUserId(ctx, req.(*TLSessionGetUserId)) } return interceptor(ctx, in, info, handler) } -func _RPCPush_PushPushRpcResultData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLPushPushRpcResultData) +func _RPCSession_SessionGetPushSessionId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionGetPushSessionId) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCPushServer).PushPushRpcResultData(ctx, in) + return srv.(RPCSessionServer).SessionGetPushSessionId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCPush/PushPushRpcResultData", + FullMethod: "/mtproto.RPCSession/SessionGetPushSessionId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCPushServer).PushPushRpcResultData(ctx, req.(*TLPushPushRpcResultData)) + return srv.(RPCSessionServer).SessionGetPushSessionId(ctx, req.(*TLSessionGetPushSessionId)) } return interceptor(ctx, in, info, handler) } -var _RPCPush_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCPush", - HandlerType: (*RPCPushServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "push_connectToSessionServer", - Handler: _RPCPush_PushConnectToSessionServer_Handler, - }, - { - MethodName: "push_pushUpdatesData", - Handler: _RPCPush_PushPushUpdatesData_Handler, - }, - { - MethodName: "push_pushRpcResultData", - Handler: _RPCPush_PushPushRpcResultData_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "service.tl.proto", -} - -// RPCBotClient is the client API for RPCBot service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RPCBotClient interface { - // bot.executeCommand bot_id:int peer_type:int peer_id:int command_line:string = Message; - BotExecuteCommand(ctx context.Context, in *TLBotExecuteCommand, opts ...grpc.CallOption) (*Message, error) -} - -type rPCBotClient struct { - cc *grpc.ClientConn -} - -func NewRPCBotClient(cc *grpc.ClientConn) RPCBotClient { - return &rPCBotClient{cc} +func _RPCSession_SessionGetFutureSalts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionGetFutureSalts) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCSessionServer).SessionGetFutureSalts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCSession/SessionGetFutureSalts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCSessionServer).SessionGetFutureSalts(ctx, req.(*TLSessionGetFutureSalts)) + } + return interceptor(ctx, in, info, handler) } -func (c *rPCBotClient) BotExecuteCommand(ctx context.Context, in *TLBotExecuteCommand, opts ...grpc.CallOption) (*Message, error) { - out := new(Message) - err := c.cc.Invoke(ctx, "/mtproto.RPCBot/bot_executeCommand", in, out, opts...) - if err != nil { +func _RPCSession_SessionQueryAuthKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionQueryAuthKey) + if err := dec(in); err != nil { return nil, err } - return out, nil + if interceptor == nil { + return srv.(RPCSessionServer).SessionQueryAuthKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCSession/SessionQueryAuthKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCSessionServer).SessionQueryAuthKey(ctx, req.(*TLSessionQueryAuthKey)) + } + return interceptor(ctx, in, info, handler) } -// RPCBotServer is the server API for RPCBot service. -type RPCBotServer interface { - // bot.executeCommand bot_id:int peer_type:int peer_id:int command_line:string = Message; - BotExecuteCommand(context.Context, *TLBotExecuteCommand) (*Message, error) +func _RPCSession_SessionSetAuthKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionSetAuthKey) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCSessionServer).SessionSetAuthKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCSession/SessionSetAuthKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCSessionServer).SessionSetAuthKey(ctx, req.(*TLSessionSetAuthKey)) + } + return interceptor(ctx, in, info, handler) } -func RegisterRPCBotServer(s *grpc.Server, srv RPCBotServer) { - s.RegisterService(&_RPCBot_serviceDesc, srv) +func _RPCSession_SessionBindAuthKeyUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionBindAuthKeyUser) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RPCSessionServer).SessionBindAuthKeyUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mtproto.RPCSession/SessionBindAuthKeyUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RPCSessionServer).SessionBindAuthKeyUser(ctx, req.(*TLSessionBindAuthKeyUser)) + } + return interceptor(ctx, in, info, handler) } -func _RPCBot_BotExecuteCommand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TLBotExecuteCommand) +func _RPCSession_SessionUnbindAuthKeyUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TLSessionUnbindAuthKeyUser) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(RPCBotServer).BotExecuteCommand(ctx, in) + return srv.(RPCSessionServer).SessionUnbindAuthKeyUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mtproto.RPCBot/BotExecuteCommand", + FullMethod: "/mtproto.RPCSession/SessionUnbindAuthKeyUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RPCBotServer).BotExecuteCommand(ctx, req.(*TLBotExecuteCommand)) + return srv.(RPCSessionServer).SessionUnbindAuthKeyUser(ctx, req.(*TLSessionUnbindAuthKeyUser)) } return interceptor(ctx, in, info, handler) } -var _RPCBot_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mtproto.RPCBot", - HandlerType: (*RPCBotServer)(nil), +var _RPCSession_serviceDesc = grpc.ServiceDesc{ + ServiceName: "mtproto.RPCSession", + HandlerType: (*RPCSessionServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "bot_executeCommand", - Handler: _RPCBot_BotExecuteCommand_Handler, + MethodName: "session_setClientSessionInfo", + Handler: _RPCSession_SessionSetClientSessionInfo_Handler, + }, + { + MethodName: "session_getAuthorizations", + Handler: _RPCSession_SessionGetAuthorizations_Handler, + }, + { + MethodName: "session_resetAuthorization", + Handler: _RPCSession_SessionResetAuthorization_Handler, + }, + { + MethodName: "session_getLayer", + Handler: _RPCSession_SessionGetLayer_Handler, + }, + { + MethodName: "session_getLangCode", + Handler: _RPCSession_SessionGetLangCode_Handler, + }, + { + MethodName: "session_getUserId", + Handler: _RPCSession_SessionGetUserId_Handler, + }, + { + MethodName: "session_getPushSessionId", + Handler: _RPCSession_SessionGetPushSessionId_Handler, + }, + { + MethodName: "session_getFutureSalts", + Handler: _RPCSession_SessionGetFutureSalts_Handler, + }, + { + MethodName: "session_queryAuthKey", + Handler: _RPCSession_SessionQueryAuthKey_Handler, + }, + { + MethodName: "session_setAuthKey", + Handler: _RPCSession_SessionSetAuthKey_Handler, + }, + { + MethodName: "session_bindAuthKeyUser", + Handler: _RPCSession_SessionBindAuthKeyUser_Handler, + }, + { + MethodName: "session_unbindAuthKeyUser", + Handler: _RPCSession_SessionUnbindAuthKeyUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.tl.proto", } -func init() { proto.RegisterFile("service.tl.proto", fileDescriptor_service_tl_a58e6fd4cab568d2) } - -var fileDescriptor_service_tl_a58e6fd4cab568d2 = []byte{ - // 2212 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xdd, 0x6e, 0xdb, 0xc8, - 0x15, 0x36, 0xa5, 0xc8, 0x92, 0x8e, 0x1c, 0x47, 0x61, 0x9c, 0xc4, 0x96, 0x13, 0x27, 0x65, 0x36, - 0xdb, 0x6c, 0xb6, 0x70, 0xb6, 0x8a, 0xd7, 0xdd, 0x5e, 0xda, 0x4a, 0x82, 0x08, 0x96, 0xb7, 0x2e, - 0xad, 0x6c, 0xd1, 0xde, 0x10, 0x34, 0x39, 0x96, 0x08, 0x53, 0x43, 0x9a, 0x33, 0x74, 0xac, 0xc5, - 0xa2, 0x58, 0xb4, 0x40, 0x17, 0xe8, 0x0b, 0xf4, 0x35, 0xfa, 0x02, 0x05, 0x7a, 0xd1, 0x47, 0xe9, - 0x2b, 0xf4, 0xb2, 0x45, 0x31, 0x3f, 0x14, 0xff, 0xa5, 0xc4, 0xde, 0xbd, 0x31, 0x38, 0xe7, 0x9c, - 0xf9, 0xe6, 0xfc, 0xcd, 0xcc, 0x37, 0x32, 0xb4, 0x09, 0x0a, 0x2e, 0x1c, 0x0b, 0x6d, 0x53, 0x77, - 0xdb, 0x0f, 0x3c, 0xea, 0xa9, 0xf5, 0x09, 0xe5, 0x1f, 0x9d, 0xbb, 0xc4, 0x1a, 0xa3, 0x89, 0xc9, - 0x34, 0x56, 0x60, 0xbd, 0xec, 0x0a, 0x7d, 0xa7, 0x93, 0x10, 0x7b, 0x01, 0x32, 0xe8, 0xd4, 0x47, - 0x44, 0xea, 0x36, 0x62, 0x1d, 0x0d, 0x4c, 0x4c, 0x7c, 0x2f, 0x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 0x5e, 0xdf, 0x89, 0xd9, 0xbf, - 0x64, 0x67, 0xda, 0xd2, 0xfe, 0xe7, 0xb0, 0x65, 0x8d, 0x4d, 0xba, 0x8d, 0xd1, 0x49, 0xe8, 0x9a, - 0xdb, 0xec, 0x1b, 0xe1, 0x91, 0x83, 0x51, 0x64, 0xbb, 0x5f, 0x3f, 0x1c, 0x1e, 0xb1, 0x8f, 0xb7, - 0x95, 0x93, 0x65, 0x2e, 0x79, 0xf9, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x03, 0xd2, 0xfd, - 0xad, 0x1f, 0x00, 0x00, +func init() { proto.RegisterFile("service.tl.proto", fileDescriptor_service_tl_2d383e5ceaf09e3e) } + +var fileDescriptor_service_tl_2d383e5ceaf09e3e = []byte{ + // 2217 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xdd, 0x6e, 0xdb, 0xc8, + 0x15, 0x36, 0xa5, 0xe8, 0xef, 0x48, 0x71, 0x14, 0x46, 0x4e, 0x6c, 0xd9, 0x71, 0x52, 0x26, 0xd9, + 0x66, 0xb3, 0x85, 0xb3, 0x95, 0xbd, 0xee, 0xf6, 0xd2, 0x56, 0x12, 0x44, 0x88, 0xdc, 0xba, 0x94, + 0xb2, 0x45, 0x7b, 0x43, 0xd0, 0xe4, 0x58, 0x22, 0x4c, 0x0d, 0x69, 0x72, 0xe8, 0x58, 0x8b, 0x45, + 0xb1, 0x68, 0x81, 0x2e, 0xd0, 0x17, 0xe8, 0x6b, 0xf4, 0x05, 0x0a, 0xf4, 0xa2, 0x8f, 0xd2, 0x57, + 0xe8, 0x65, 0x8b, 0x62, 0x7e, 0x28, 0xfe, 0x5b, 0x89, 0xbd, 0xbd, 0x11, 0xc4, 0x73, 0xce, 0x7c, + 0x73, 0xfe, 0xe6, 0xcc, 0x39, 0x03, 0x6d, 0x1f, 0x79, 0x17, 0x96,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21, 0xd8, 0x5d, 0x2f, 0x1a, 0x89, 0x94, 0x15, + 0x79, 0x00, 0x9d, 0xdc, 0x42, 0xf2, 0x38, 0x03, 0x9e, 0x92, 0xc8, 0xc6, 0xef, 0x08, 0xee, 0x17, + 0x54, 0x0a, 0x25, 0x17, 0x2c, 0x21, 0x93, 0x81, 0xeb, 0xa9, 0x50, 0x55, 0x8f, 0xfb, 0x87, 0x0e, + 0x91, 0xdf, 0x82, 0x9c, 0x53, 0x19, 0x12, 0x21, 0xcd, 0xf2, 0xbb, 0x51, 0x5b, 0x20, 0xca, 0xb6, + 0xb2, 0xd2, 0xfb, 0x57, 0x0d, 0x80, 0x9e, 0x6e, 0xf1, 0x3e, 0xfa, 0x3b, 0xd8, 0xba, 0x72, 0x04, + 0x7c, 0x9e, 0x88, 0xec, 0x15, 0x92, 0x59, 0x67, 0x20, 0xd8, 0x28, 0x1e, 0x04, 0x9f, 0xe5, 0xe1, + 0x66, 0xc4, 0xba, 0x8f, 0x16, 0x62, 0xba, 0xc1, 0xea, 0xb3, 0x96, 0x14, 0x50, 0x56, 0xe4, 0x6f, + 0xa0, 0x7b, 0xc5, 0x20, 0xf8, 0x59, 0xde, 0x3e, 0x59, 0xb9, 0xee, 0x6a, 0xf2, 0xc5, 0x49, 0x59, + 0x91, 0x0f, 0xa1, 0x9d, 0x19, 0x09, 0xb7, 0x0a, 0xb4, 0x66, 0xdc, 0x24, 0xc6, 0x6e, 0x8f, 0xa5, + 0xd6, 0xbd, 0xbc, 0xf9, 0xf0, 0x51, 0x21, 0x0c, 0x17, 0xe8, 0xde, 0x49, 0x3d, 0x1d, 0xb1, 0xd2, + 0x70, 0x37, 0x3b, 0x30, 0x3e, 0x2c, 0x00, 0xe2, 0xec, 0x1c, 0x85, 0x54, 0x58, 0x2f, 0x1c, 0x1f, + 0x9f, 0x16, 0x80, 0x25, 0xa4, 0x72, 0x1c, 0x35, 0x86, 0xfb, 0x05, 0xb3, 0xa1, 0x52, 0x80, 0x18, + 0x93, 0xe9, 0x76, 0x72, 0xde, 0xa8, 0x68, 0x58, 0x8f, 0xa1, 0x93, 0x3b, 0x22, 0x3e, 0xce, 0xc3, + 0x8c, 0x4b, 0x74, 0x73, 0x27, 0x3f, 0x51, 0xa3, 0xb3, 0x93, 0xe3, 0x76, 0x41, 0x82, 0x87, 0x68, + 0xb9, 0x77, 0x47, 0xc1, 0xd8, 0xf8, 0x24, 0x0f, 0x2b, 0x25, 0x94, 0x05, 0x1c, 0x45, 0xe7, 0x24, + 0x3b, 0x30, 0xe6, 0x9e, 0x93, 0x8c, 0x58, 0x06, 0xf4, 0xf0, 0x0b, 0xd8, 0x36, 0xa6, 0x3a, 0xd9, + 0xc1, 0xe8, 0x24, 0xb0, 0xf5, 0x1d, 0xfa, 0x1f, 0xe1, 0x89, 0x85, 0x51, 0x28, 0x78, 0x58, 0x3b, + 0x1a, 0x1f, 0xd3, 0x3f, 0x6f, 0x4b, 0x27, 0x55, 0x46, 0xd9, 0xfd, 0x5f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x90, 0xa8, 0xe8, 0xa8, 0xad, 0x1f, 0x00, 0x00, } diff --git a/mtproto/service.tl.proto b/mtproto/service.tl.proto index b4342e162..7f676e86a 100644 --- a/mtproto/service.tl.proto +++ b/mtproto/service.tl.proto @@ -80,62 +80,61 @@ message TL_sessionClientClosed { /////////////////////////////////////////////////////////////////////////////// -// Int32 <-- -// + TL_int32 +// RawMessageData <-- +// + TL_handshakeData +// + TL_sessionMessageData // -message Int32_Data { - int32 v = 1; +message RawMessageData_Data { + int32 state = 1; + int32 res_state = 2; + int64 client_conn_id = 3; + HandshakeContext ctx = 4; + int64 auth_key_id = 5; + int32 quick_ack = 6; + int32 conn_type = 7; } -message Int32 { +message RawMessageData { TLConstructor constructor = 1; - Int32_Data data2 = 2; -} - -// int32 v:int = Int32; -message TL_int32 { - Int32_Data data2 = 2; -} - - -/////////////////////////////////////////////////////////////////////////////// -// AuthKeyInfo <-- -// + TL_authKeyInfo -// -message AuthKeyInfo_Data { - int64 auth_key_id = 1; - bytes auth_key = 2; - FutureSalt future_salt = 3; + RawMessageData_Data data2 = 2; } -message AuthKeyInfo { - TLConstructor constructor = 1; - AuthKeyInfo_Data data2 = 2; +// handshakeData state:int res_state:int client_conn_id:long ctx:HandshakeContext = RawMessageData; +message TL_handshakeData { + RawMessageData_Data data2 = 2; } -// authKeyInfo flags:# auth_key_id:long auth_key:bytes future_salt:flags.0?FutureSalt= AuthKeyInfo; -message TL_authKeyInfo { - AuthKeyInfo_Data data2 = 2; +// sessionMessageData auth_key_id:long quick_ack:int client_conn_id:long conn_type:int = RawMessageData; +message TL_sessionMessageData { + RawMessageData_Data data2 = 2; } /////////////////////////////////////////////////////////////////////////////// -// ServerConnected <-- -// + TL_push_sessionServerConnected +// ClientSession <-- +// + TL_clientSessionInfo // -message ServerConnected_Data { - int32 session_server_id = 1; - string server_name = 2; +message ClientSession_Data { + int64 auth_key_id = 1; + string ip = 2; + int32 layer = 3; + int32 api_id = 4; + string device_model = 5; + string system_version = 6; + string app_version = 7; + string system_lang_code = 8; + string lang_pack = 9; + string lang_code = 10; } -message ServerConnected { +message ClientSession { TLConstructor constructor = 1; - ServerConnected_Data data2 = 2; + ClientSession_Data data2 = 2; } -// push.sessionServerConnected session_server_id:int server_name:string = ServerConnected; -message TL_push_sessionServerConnected { - ServerConnected_Data data2 = 2; +// clientSessionInfo auth_key_id:long ip:string layer:int api_id:int device_model:string system_version:string app_version:string system_lang_code:string lang_pack:string lang_code:string = ClientSession; +message TL_clientSessionInfo { + ClientSession_Data data2 = 2; } @@ -165,33 +164,21 @@ message TL_handshakeContext { /////////////////////////////////////////////////////////////////////////////// -// RawMessageData <-- -// + TL_handshakeData -// + TL_sessionMessageData +// Int32 <-- +// + TL_int32 // -message RawMessageData_Data { - int32 state = 1; - int32 res_state = 2; - int64 client_conn_id = 3; - HandshakeContext ctx = 4; - int64 auth_key_id = 5; - int32 quick_ack = 6; - int32 conn_type = 7; +message Int32_Data { + int32 v = 1; } -message RawMessageData { +message Int32 { TLConstructor constructor = 1; - RawMessageData_Data data2 = 2; -} - -// handshakeData state:int res_state:int client_conn_id:long ctx:HandshakeContext = RawMessageData; -message TL_handshakeData { - RawMessageData_Data data2 = 2; + Int32_Data data2 = 2; } -// sessionMessageData auth_key_id:long quick_ack:int client_conn_id:long conn_type:int = RawMessageData; -message TL_sessionMessageData { - RawMessageData_Data data2 = 2; +// int32 v:int = Int32; +message TL_int32 { + Int32_Data data2 = 2; } @@ -234,30 +221,43 @@ message TL_string { /////////////////////////////////////////////////////////////////////////////// -// ClientSession <-- -// + TL_clientSessionInfo +// AuthKeyInfo <-- +// + TL_authKeyInfo // -message ClientSession_Data { +message AuthKeyInfo_Data { int64 auth_key_id = 1; - string ip = 2; - int32 layer = 3; - int32 api_id = 4; - string device_model = 5; - string system_version = 6; - string app_version = 7; - string system_lang_code = 8; - string lang_pack = 9; - string lang_code = 10; + bytes auth_key = 2; + FutureSalt future_salt = 3; } -message ClientSession { +message AuthKeyInfo { TLConstructor constructor = 1; - ClientSession_Data data2 = 2; + AuthKeyInfo_Data data2 = 2; } -// clientSessionInfo auth_key_id:long ip:string layer:int api_id:int device_model:string system_version:string app_version:string system_lang_code:string lang_pack:string lang_code:string = ClientSession; -message TL_clientSessionInfo { - ClientSession_Data data2 = 2; +// authKeyInfo flags:# auth_key_id:long auth_key:bytes future_salt:flags.0?FutureSalt= AuthKeyInfo; +message TL_authKeyInfo { + AuthKeyInfo_Data data2 = 2; +} + + +/////////////////////////////////////////////////////////////////////////////// +// ServerConnected <-- +// + TL_push_sessionServerConnected +// +message ServerConnected_Data { + int32 session_server_id = 1; + string server_name = 2; +} + +message ServerConnected { + TLConstructor constructor = 1; + ServerConnected_Data data2 = 2; +} + +// push.sessionServerConnected session_server_id:int server_name:string = ServerConnected; +message TL_push_sessionServerConnected { + ServerConnected_Data data2 = 2; } @@ -453,33 +453,6 @@ message TL_bot_executeCommand { /////////////////////////////////////////////////////////////////////////////// // rpc -service RPCSession { - // session.setClientSessionInfo session:ClientSession = Bool; - rpc session_setClientSessionInfo(TL_session_setClientSessionInfo) returns (Bool) {} - // session.getAuthorizations user_id:int exclude_auth_keyId:long = account.Authorizations; - rpc session_getAuthorizations(TL_session_getAuthorizations) returns (account_Authorizations) {} - // session.resetAuthorization user_id:int hash:long = Int64; - rpc session_resetAuthorization(TL_session_resetAuthorization) returns (Int64) {} - // session.getLayer auth_key_id:long = Int32; - rpc session_getLayer(TL_session_getLayer) returns (Int32) {} - // session.getLangCode auth_key_id:long = String; - rpc session_getLangCode(TL_session_getLangCode) returns (String) {} - // session.getUserId auth_key_id:long = Int32; - rpc session_getUserId(TL_session_getUserId) returns (Int32) {} - // session.getPushSessionId user_id:int auth_key_id:long token_type:int = Int64; - rpc session_getPushSessionId(TL_session_getPushSessionId) returns (Int64) {} - // session.getFutureSalts auth_key_id:long num:int = FutureSalts; - rpc session_getFutureSalts(TL_session_getFutureSalts) returns (FutureSalts) {} - // session.queryAuthKey auth_key_id:long = AuthKeyInfo; - rpc session_queryAuthKey(TL_session_queryAuthKey) returns (AuthKeyInfo) {} - // session.setAuthKey auth_key:AuthKeyInfo = Bool; - rpc session_setAuthKey(TL_session_setAuthKey) returns (Bool) {} - // session.bindAuthKeyUser auth_key_id:long user_id:int = Bool; - rpc session_bindAuthKeyUser(TL_session_bindAuthKeyUser) returns (Bool) {} - // session.unbindAuthKeyUser auth_key_id:long user_id:int = Bool; - rpc session_unbindAuthKeyUser(TL_session_unbindAuthKeyUser) returns (Bool) {} -} - service RPCSync { // sync.syncUpdates flags:# user_id:int auth_key_id:long server_id:flags.0?int updates:Updates = Bool; rpc sync_syncUpdates(TL_sync_syncUpdates) returns (Bool) {} @@ -513,3 +486,30 @@ service RPCBot { rpc bot_executeCommand(TL_bot_executeCommand) returns (Message) {} } +service RPCSession { + // session.setClientSessionInfo session:ClientSession = Bool; + rpc session_setClientSessionInfo(TL_session_setClientSessionInfo) returns (Bool) {} + // session.getAuthorizations user_id:int exclude_auth_keyId:long = account.Authorizations; + rpc session_getAuthorizations(TL_session_getAuthorizations) returns (account_Authorizations) {} + // session.resetAuthorization user_id:int hash:long = Int64; + rpc session_resetAuthorization(TL_session_resetAuthorization) returns (Int64) {} + // session.getLayer auth_key_id:long = Int32; + rpc session_getLayer(TL_session_getLayer) returns (Int32) {} + // session.getLangCode auth_key_id:long = String; + rpc session_getLangCode(TL_session_getLangCode) returns (String) {} + // session.getUserId auth_key_id:long = Int32; + rpc session_getUserId(TL_session_getUserId) returns (Int32) {} + // session.getPushSessionId user_id:int auth_key_id:long token_type:int = Int64; + rpc session_getPushSessionId(TL_session_getPushSessionId) returns (Int64) {} + // session.getFutureSalts auth_key_id:long num:int = FutureSalts; + rpc session_getFutureSalts(TL_session_getFutureSalts) returns (FutureSalts) {} + // session.queryAuthKey auth_key_id:long = AuthKeyInfo; + rpc session_queryAuthKey(TL_session_queryAuthKey) returns (AuthKeyInfo) {} + // session.setAuthKey auth_key:AuthKeyInfo = Bool; + rpc session_setAuthKey(TL_session_setAuthKey) returns (Bool) {} + // session.bindAuthKeyUser auth_key_id:long user_id:int = Bool; + rpc session_bindAuthKeyUser(TL_session_bindAuthKeyUser) returns (Bool) {} + // session.unbindAuthKeyUser auth_key_id:long user_id:int = Bool; + rpc session_unbindAuthKeyUser(TL_session_unbindAuthKeyUser) returns (Bool) {} +} +